Changeset 3224949
- Timestamp:
- 01/18/2025 10:19:14 PM (13 months ago)
- Location:
- blocks-monster
- Files:
-
- 10 edited
- 1 copied
-
tags/1.8.6 (copied) (copied from blocks-monster/trunk)
-
tags/1.8.6/blocks-monster.php (modified) (2 diffs)
-
tags/1.8.6/includes/gutenberg/blocks/section/js/index.js (modified) (1 diff)
-
tags/1.8.6/includes/gutenberg/controls/assets/js/controls.js (modified) (1 diff)
-
tags/1.8.6/includes/gutenberg/controls/class-css.php (modified) (4 diffs)
-
tags/1.8.6/readme.txt (modified) (2 diffs)
-
trunk/blocks-monster.php (modified) (2 diffs)
-
trunk/includes/gutenberg/blocks/section/js/index.js (modified) (1 diff)
-
trunk/includes/gutenberg/controls/assets/js/controls.js (modified) (1 diff)
-
trunk/includes/gutenberg/controls/class-css.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blocks-monster/tags/1.8.6/blocks-monster.php
r3224940 r3224949 10 10 * @wordpress-plugin 11 11 * Plugin Name: Blocks Monster 12 * Version: 1.8. 512 * Version: 1.8.6 13 13 * Plugin URI: https://blocks.monster/blocks-monster 14 14 * Description: The library of all the blocks for the Elementor blocks. … … 35 35 * @var string 36 36 */ 37 public $version = '1.8. 5';37 public $version = '1.8.6'; 38 38 39 39 /** -
blocks-monster/tags/1.8.6/includes/gutenberg/blocks/section/js/index.js
r3224940 r3224949 1 !function(){var e={ 274:function(e,t,n){"use strict";n.d(t,{aE:function(){return Ye},kD:function(){return et},$K:function(){return le},$n:function(){return Me},sk:function(){return Ue},H2:function(){return wt},ZK:function(){return A},nl:function(){return M},so:function(){return je},Tj:function(){return Ct},JU:function(){return Xe},AM:function(){return Ve},yX:function(){return O},Yn:function(){return tt},Ft:function(){return De},fI:function(){return Je},Hw:function(){return P},Uw:function(){return nt},Py:function(){return D},yC:function(){return te},om:function(){return X},ZX:function(){return J},i7:function(){return T},Mi:function(){return V},x7:function(){return W},De:function(){return ke},z:function(){return q},eT:function(){return $},ph:function(){return H},gB:function(){return B},wR:function(){return Z},Xc:function(){return Y}});var c=wp.element,o=wp.components,a=function(){return wp.element.createElement(o.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},l=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},r=function(){return wp.element.createElement(o.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(o.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},m=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},u=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(o.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},s=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},d=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},f=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},p=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},h=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},w=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},v=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},E=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},x=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},k=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},R=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(o.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},j=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},S={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=S&&S[e]?"display: ".concat(null==S?void 0:S[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},M=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(Xe,{name:"Display",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Me,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(a,null)),wp.element.createElement(Me,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(l,null)),wp.element.createElement(Me,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(r,null)),wp.element.createElement(Me,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(i,null)),wp.element.createElement(Me,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(m,null)),wp.element.createElement(Me,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(u,null))))})),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(I(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(I(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(I(n[2])," } }"):""].filter(Boolean).join("\n")},I=function(e){var t,n,c,o;if(!e)return"";var a=J(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=$(l,""),i=q(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=$(m,""),s=q(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=$(d,""),p=q(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=$(h,""),v=q(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},P=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=J(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=$(u,""),d=q(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=$(f,""),h=q(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=$(w,""),g=q(w,"px"),b=(null===(o=m)||void 0===o?void 0:o[3])||"",_=$(b,""),k=q(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(Xe,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(Ye,{min:-9999,value:_,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(E,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(y,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(C,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(x,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},L={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=L&&L[e]?"position: ".concat(null==L?void 0:L[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},O=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(Xe,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(Je,{className:"bm-position-control__group"},wp.element.createElement(Me,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(_,null)),wp.element.createElement(Me,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(k,null)),wp.element.createElement(Me,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(R,null)),wp.element.createElement(Me,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(j,null)),wp.element.createElement(Me,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),z=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},G=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(U(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(U(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(U(n[2])," } }"):""].filter(Boolean).join("\n")},U=function(e){var t,n;if(!e)return"";var c=J(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=$(o,""),l=q(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=$(r,""),m=q(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},A=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=J(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",u=$(m,""),d=q(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=$(f,""),h=q(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(Xe,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(Je,null,wp.element.createElement(Ye,{placeholder:"auto",value:u,onChange:function(e){var t=w?p+(e-u):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(s,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(u).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Ye,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?u+(e-p):u).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(u).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Me,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(u).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(G,null):wp.element.createElement(z,null))))},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},D=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(Xe,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(Ye,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(b,null)}))},W=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},F=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},Y=function(e,t,n){var c=(e=J(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},X=function(e,t){var n=(e=J(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},J=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function K(e){throw new TypeError('"'+e+'" is read-only')}var Q=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},ee=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ne(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ne(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ne(n[2])," } }"):""].filter(Boolean).join("\n")},ne=function(e){if(!e)return"";var t=ae(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,C=t.borderRightValue,x=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,j=t.borderBottomUnit,N=t.borderBottomStyle,S=t.borderBottomColor,V=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,P=[];return P.push("margin-top: ".concat(n).concat(c,";")),P.push("margin-right: ".concat(o).concat(a," !important;")),P.push("margin-bottom: ".concat(l).concat(r,";")),P.push("margin-left: ".concat(i).concat(m," !important;")),P.push("padding-top: ".concat(u).concat(s,";")),P.push("padding-right: ".concat(d).concat(f,";")),P.push("padding-bottom: ".concat(p).concat(h,";")),P.push("padding-left: ".concat(w).concat(v,";")),P.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),P.push("border-right: ".concat(C).concat(x," ").concat(_," ").concat(k,";")),P.push("border-bottom: ".concat(R).concat(j," ").concat(N," ").concat(S,";")),P.push("border-left: ".concat(V).concat(M," ").concat(B," ").concat(I,";")),P.join("")},ce=function(e,t){return $((null==e?void 0:e[t])||"","")},oe=function(e,t){return q((null==e?void 0:e[t])||"","px")},ae=function(e){var t=J(e,"|",4).split("|"),n=J((null==t?void 0:t[0])||"",",",4).split(","),c=J((null==t?void 0:t[1])||"",",",4).split(","),o=J((null==t?void 0:t[2])||"",",",4).split(","),a=J((null==t?void 0:t[3])||"",",",3).split(","),l=J((null==o?void 0:o[0])||"","_",3).split("_"),r=J((null==o?void 0:o[1])||"","_",3).split("_"),i=J((null==o?void 0:o[2])||"","_",3).split("_"),m=J((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ce(n,0),marginTopUnit:oe(n,0),marginRightValue:ce(n,1),marginRightUnit:oe(n,1),marginBottomValue:ce(n,2),marginBottomUnit:oe(n,2),marginLeftValue:ce(n,3),marginLeftUnit:oe(n,3),paddingTopValue:ce(c,0),paddingTopUnit:oe(c,0),paddingRightValue:ce(c,1),paddingRightUnit:oe(c,1),paddingBottomValue:ce(c,2),paddingBottomUnit:oe(c,2),paddingLeftValue:ce(c,3),paddingLeftUnit:oe(c,3),borderTopValue:$(u),borderTopUnit:q(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:$(s),borderRightUnit:q(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:$(d),borderBottomUnit:q(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:$(f),borderLeftUnit:q(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},le=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=ae(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,C=l.paddingRightUnit,x=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,j=l.borderTopValue,N=l.borderTopUnit,S=l.borderTopStyle,V=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,P=l.borderRightColor,L=l.borderBottomValue,H=l.borderBottomUnit,O=l.borderBottomStyle,z=l.borderBottomColor,G=l.borderLeftValue,T=l.borderLeftUnit,U=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,D=l.isTickAllPadding,W=l.isTickAllBorder,q=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&K("margin"),"padding"===e&&K("padding"),"border"===e&&K("border"),"connected"===e&&K("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(Xe,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(Ye,{className:"bm-box-model__top",value:s,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):q("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):q("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",0,Z?0:1)}}),wp.element.createElement(Ye,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):q("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):q("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):q("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):q("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):q("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):q("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(Ue,{hideInput:!0,value:V,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",0,"".concat(j).concat(N,"_").concat(S,"_").concat(e))}}),wp.element.createElement(Ye,{value:j,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",0,"".concat(e).concat(N,"_").concat(S,"_").concat(V))},min:0,unit:N,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",0,"".concat(j).concat(e,"_").concat(S,"_").concat(V))}}),wp.element.createElement(et,{value:S,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(e,"_").concat(V),"".concat(M).concat(B,"_").concat(e,"_").concat(P),"".concat(L).concat(H,"_").concat(e,"_").concat(z),"".concat(G).concat(T,"_").concat(e,"_").concat(A))):q("border",0,"".concat(j).concat(N,"_").concat(e,"_").concat(V))}})),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",2,W?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(Ue,{hideInput:!0,value:P,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement(Ye,{direction:"vertical",value:M,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(P))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(P))}}),wp.element.createElement(et,{value:I,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(e,"_").concat(P),"".concat(L).concat(H,"_").concat(O,"_").concat(z),"".concat(G).concat(T,"_").concat(U,"_").concat(A))):q("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(P))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(et,{value:O,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(I,"_").concat(P),"".concat(L).concat(H,"_").concat(e,"_").concat(z),"".concat(G).concat(T,"_").concat(U,"_").concat(A))):q("border",2,"".concat(L).concat(H,"_").concat(e,"_").concat(z))}}),wp.element.createElement(Ye,{value:L,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",2,"".concat(e).concat(H,"_").concat(O,"_").concat(z))},min:0,unit:H,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",2,"".concat(L).concat(e,"_").concat(O,"_").concat(z))}}),wp.element.createElement(Ue,{hideInput:!0,value:z,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",2,"".concat(L).concat(H,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(et,{value:U,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(I,"_").concat(P),"".concat(L).concat(H,"_").concat(O,"_").concat(z),"".concat(G).concat(T,"_").concat(e,"_").concat(A))):q("border",3,"".concat(G).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement(Ye,{direction:"vertical",value:G,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",3,"".concat(e).concat(T,"_").concat(U,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",3,"".concat(G).concat(e,"_").concat(U,"_").concat(A))}}),wp.element.createElement(Ue,{hideInput:!0,value:A,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",3,"".concat(G).concat(T,"_").concat(U,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(Ye,{className:"bm-box-model__top",value:b,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):q("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):q("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",1,D?0:1)}}),wp.element.createElement(Ye,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C))):q("padding",1,"".concat(e).concat(C))},min:a,unit:C,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):q("padding",1,"".concat(y).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__bottom",value:x,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):q("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):q("padding",2,"".concat(x).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):q("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):q("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},re=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},ie=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},me=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},ue=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},se=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},de=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"13",width:"5",height:"2"}))},fe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},pe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"10",y:"13",width:"5",height:"2"}))},he=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},we=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(o.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(o.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},ge=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},be=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ee=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ye=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}))},Ce=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},xe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},_e=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Re(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Re(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Re(n[2])," } }"):""].filter(Boolean).join("\n")},Re=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=J(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=$(p,""),w=q(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=$(v,""),b=q(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},je=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=J(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=$(g,""),E=q(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",C=$(y,""),x=q(y,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(Xe,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Me,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(re,null)),wp.element.createElement(Me,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ie,null)),wp.element.createElement(Me,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(me,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(_e,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(_e,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(Ye,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:C).concat(x))},icon:wp.element.createElement(ue,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(C).concat("w"!==p?e:x))}}),"w"===p&&wp.element.createElement(Ye,{placeholder:b,value:C,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(x))},icon:wp.element.createElement(se,null),unit:x,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(e))}})))};function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ne.apply(this,arguments)}var Se,Ve=function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){var n=function(n){t.current&&!t.current.contains(n.target)&&e.onClose()};return function(){return document.removeEventListener("mousedown",n)}}),[t]),wp.element.createElement(o.Popover,Ne({},e,{ref:t,className:"bm-popover"}),wp.element.createElement("div",{ref:t},e.children))},Me=function(e){var t=e.style,n=void 0===t?{}:t,c=e.icon,a=void 0===c?null:c,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(o.Button,{style:n,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},Be=n(412);function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function He(e,t,n){var c;return c=function(e,t){if("object"!=Ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Ie(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ie(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=(He(He(He(He(He(He(He(He(He(He(Se={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),He(He(He(He(He(He(He(He(He(He(Se,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),He(He(He(He(He(He(He(He(He(He(Se,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),He(He(He(He(He(He(He(He(He(He(Se,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),He(He(He(He(He(He(He(He(He(He(Se,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),He(He(He(He(He(He(He(He(He(He(Se,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),He(He(He(He(He(He(He(He(He(He(Se,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),He(He(He(He(He(He(He(He(He(He(Se,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),He(He(He(He(He(He(He(He(He(He(Se,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),He(He(He(He(He(He(He(He(He(He(Se,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),He(He(He(He(He(He(He(He(He(He(Se,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),He(He(He(He(He(He(He(He(He(He(Se,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),He(He(He(He(He(He(He(He(He(He(Se,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),He(He(He(He(He(He(He(He(He(He(Se,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),He(He(He(He(He(He(Se,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),ze=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ge=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Te=function(e){var t=Ge(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},Ue=function(e){var t=e.hideInput,n=void 0!==t&&t,a=e.value,l=e.onChange,r=e.placeholder,i=Pe((0,c.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,Be.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,Be.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(Je,null,wp.element.createElement(Me,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),n?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ge(a),placeholder:Te(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Oe[n.toLowerCase()]){n=Oe[n.toLowerCase()];var c=(0,Be.Mj)(n).toRgb();c.a=d/100;var o=(0,Be.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,Be.Mj)(n).toRgb();a.a=d/100;var l=(0,Be.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(Ye,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,Be.Mj)(a).toRgb();n.a=t/100;var c=(0,Be.Mj)(n).toHex();p(c)},icon:wp.element.createElement(ze,null)}))),m?wp.element.createElement(o.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(o.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Ae=wp.data,Ze=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},De=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(tt,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Me,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Ae.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(d,null):"Tablet"===e?wp.element.createElement(f,null):wp.element.createElement(p,null))}))),o&&wp.element.createElement(Me,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Ze,null)))};function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var qe=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},$e=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},Ye=function(e){var t,n,o=e.canDrag,a=void 0===o||o,l=e.className,r=void 0===l?"":l,i=e.step,m=void 0===i?1:i,u=e.withIncrementors,s=void 0!==u&&u,d=e.placeholder,f=void 0===d?0:d,p=e.min,w=void 0===p?0:p,v=e.max,g=e.direction,b=e.value,E=e.onChange,y=e.onChangeUnit,C=e.icon,x=e.unit,_=e.units,k=e.suggests,R=void 0===k?{}:k,j=We((0,c.useState)(!1),2),N=j[0],S=(j[1],We((0,c.useState)(!1),2)),V=S[0],M=S[1],B=We((0,c.useState)(!1),2),I=B[0],P=B[1],L=We((0,c.useState)(!1),2),H=L[0],O=L[1],z=b&&"string"==typeof b&&b.startsWith("g:"),G="",T="",U="";z&&(G=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),U=(null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.modes)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),F(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},D=b?8*b.toString().length:8,W=We((0,c.useState)(!1),2),q=W[0],$=W[1],Y=We((0,c.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(N?"is-hovered":""," ").concat(V?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},C&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){z||A(e)},onMouseUp:function(){z||M(!1)}},C),s&&!z?wp.element.createElement(Me,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(qe,null)):null,z?wp.element.createElement("span",{className:"bm-global"},G,wp.element.createElement(Me,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(h,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:D},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){P(!0)},onFocus:function(){P(!0)},onBlur:function(){return P(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===H&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return O(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Me,{onClick:function(){Z(n),O(!1)}},e))}))))),x&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},x,K&&X&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Me,{onClick:function(){y(e)}},e))})))))),q&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.variables)||void 0===t?void 0:t.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[U])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Me,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!z?wp.element.createElement(Me,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement($e,null)):null)},Xe=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(tt,{onReset:o}))},Je=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},Ke=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},et=function(e){var t=e.value,n=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(t)},wp.element.createElement(o.Button,{className:"bm-border-style__button",onClick:function(){n&&n("dashed"===t?"solid":"dashed")}},"dashed"===t?wp.element.createElement(Ke,null):wp.element.createElement(Qe,null)))},tt=function(e){var t=e.onReset;return wp.element.createElement(Me,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(h,null))},nt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(Xe,{name:n}),wp.element.createElement(Je,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Me,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(w,null),"hover"===e&&wp.element.createElement(v,null),"active"===e&&wp.element.createElement(g,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},ct=n(470);wp.isShallowEqual;function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var lt=function(e){var t=e.parent,n=e.id,o=e.style,a=e.selector,l=ot((0,c.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(n=(n=(n=(n=(n=n||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=W(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,c.useEffect)((function(){u()}),[]),(0,c.useEffect)((function(){r(o)}),[o]),(0,c.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var n="";n+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,y,C,x,_="",k=n,R="".concat(n,":hover"),j="".concat(n,":focus");return e&&(R=(R=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),j=(j=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),_+=V(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,k),_+=V(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,R),_+=V(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,j),_+=B(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,k),_+=B(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,R),_+=B(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,j),_+=H(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,k),_+=H(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,R),_+=H(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,j),_+=Z(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,k),_+=Z(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,R),_+=Z(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,j),_+=T(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,k),_+=T(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,R),_+=T(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,j),_+=te(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,k),_+=te(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,R),_+=te(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,j),_+=ke(null==t||null===(y=t.normal)||void 0===y?void 0:y.flex,k),_+=ke(null==t||null===(C=t.hover)||void 0===C?void 0:C.flex,R),_+ke(null==t||null===(x=t.focus)||void 0===x?void 0:x.flex,j)}(t,o,a),e.innerHTML=n}),[o])},rt=n(838);function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},mt.apply(this,arguments)}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){var c;return c=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=it(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==it(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var ht=(0,c.memo)((function(e){var t=e.device,n=e.deviceType,o=e.element,a=e.style,l=e.onChange,r=ft((0,c.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,c.useRef)();(0,c.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return X(u(e),t)},f=function(e,n){!function(e,t){var n;l(st(st({},a),{},o?dt({},o,st(st({},null==a?void 0:a[o]),{},dt({},i,st(st({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},dt({},e,t))))):dt({},i,st(st({},null==a?void 0:a[i]),{},dt({},e,t)))))}(e,Y(u(e),n,t))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(nt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(De,{className:"bm-responsive--position bm-control-seperator",label:(0,ct.__)("Layout","bm"),device:n}),wp.element.createElement(M,mt({},e,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(je,mt({},e,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(O,mt({},e,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(P,mt({},e,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(D,mt({},e,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(De,{className:"bm-responsive--position bm-control-seperator",label:(0,ct.__)("Box Model","bm"),device:n}),wp.element.createElement(A,mt({},e,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(le,mt({},e,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})))})),wt=(0,c.memo)((function(e){var t=e.id,n=e.title,c=void 0===n?"Style":n,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Ae.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(lt,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(rt.InspectorControls,null,wp.element.createElement(o.PanelBody,{title:c,initialOpen:l},wp.element.createElement(ht,{deviceType:h,device:w,id:t,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),vt=n(164);n(964),wp.compose,wp.hooks;function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){var c;return c=function(e,t){if("object"!=gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=gt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ct=function(e){var t=e.childs,n=void 0===t?[]:t,c=e.placeholder,o=e.allowedBlocks,a=e.template,l=e.blockProps,r={templateLock:!1,renderAppender:rt.InnerBlocks.ButtonBlockAppender};o&&(r.allowedBlocks=o),a&&(r.template=a);var i=(0,rt.useInnerBlocksProps)(Et(Et({},l),{},{className:(0,vt.A)(l.className,"bm-inner-blocks")}),r);return c&&0===n.length?wp.element.createElement("div",i,c):wp.element.createElement("div",i)}},412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),C.string):"object"==n(e)&&null!==e?x(e,C.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},j=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(j(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(j(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},V=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n},164:function(e,t,n){"use strict";function c(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=c(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.A=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=c(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(964);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function o(e,n,c){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var c=e[Symbol.toPrimitive];if(void 0!==c){var o=c.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[n]=c,e}var a=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"bm/section","title":"Section","description":"Allow to create a section for the content.","version":"0.0.1","icon":"editor-table","attributes":{"_bm_id":{"type":"string","default":""},"_bm_style":{"type":"object"}},"category":"blocks-monster","textdomain":"blocks-monster","style":"file:./css/style.css","editorScript":"file:./js/index.js"}'),l=n(164),r=n(838),i=n(274),m=function(e){var t=e.attributes,n=t._bm_id,c=t._bm_style,o=e.setAttributes,a=e.className,m=e.clientId,u=(0,l.A)(a),s=(0,r.useBlockProps)({className:u});return wp.element.createElement(React.Fragment,null,wp.element.createElement(i.H2,{id:n,clientId:m,style:c,onChange:function(e){o({_bm_style:e})}}),wp.element.createElement(i.Tj,{blockProps:s}))},u=(n(470),function(){var e=r.useBlockProps.save();return wp.element.createElement("div",e,wp.element.createElement(r.InnerBlocks.Content,null))});!function(t){if(t){var n=t.metadata,a=t.settings,l=t.name;(0,e.registerBlockType)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:l},n),a)}}({name:a.name,metadata:a,settings:{icon:"list-view",edit:m,save:u}})}()}();1 !function(){var e={19:function(e,t,n){"use strict";n.d(t,{aE:function(){return mt},Z6:function(){return at},kD:function(){return ht},$K:function(){return ie},uO:function(){return me},$n:function(){return Pe},sk:function(){return We},H2:function(){return Bt},ZK:function(){return D},nl:function(){return I},so:function(){return Be},Tj:function(){return Ot},JU:function(){return st},AM:function(){return Le},yX:function(){return U},Yn:function(){return vt},Ft:function(){return $e},fI:function(){return dt},Hw:function(){return H},Uw:function(){return wt},Py:function(){return F},AQ:function(){return nt},yC:function(){return ce},TH:function(){return ue},om:function(){return K},ZX:function(){return Q},i7:function(){return A},Mi:function(){return M},x7:function(){return q},De:function(){return je},z:function(){return Y},eT:function(){return X},ph:function(){return z},gB:function(){return L},wR:function(){return W},Xc:function(){return J}});var c=wp.element,o=wp.components,a=function(){return wp.element.createElement(o.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},l=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},r=function(){return wp.element.createElement(o.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(o.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},u=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(o.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},s=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},d=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},f=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},p=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},h=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},E=function(){return wp.element.createElement(o.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}))},y=function(){return wp.element.createElement(o.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}),wp.element.createElement(o.Rect,{width:"10",height:"4",transform:"translate(3 6)",fill:"#00000080"}))},x=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},k=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},R=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},S=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},V=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(o.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},j=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},B={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=B&&B[e]?"display: ".concat(null==B?void 0:B[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},I=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(st,{name:"Display",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Pe,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(a,null)),wp.element.createElement(Pe,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(l,null)),wp.element.createElement(Pe,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(r,null)),wp.element.createElement(Pe,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(i,null)),wp.element.createElement(Pe,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(u,null)),wp.element.createElement(Pe,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(P(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(P(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(P(n[2])," } }"):""].filter(Boolean).join("\n")},P=function(e){var t,n,c,o;if(!e)return"";var a=Q(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=X(l,""),i=Y(l,"px"),u=(null===(n=a)||void 0===n?void 0:n[1])||"",m=X(u,""),s=Y(u,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=X(d,""),p=Y(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",v=X(h,""),w=Y(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(m).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(v).concat(w,";")),g.join("")},H=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,u=Q(a,",",4),m=(null===(t=u=u.split(","))||void 0===t?void 0:t[0])||"",s=X(m,""),d=Y(m,"px"),f=(null===(n=u)||void 0===n?void 0:n[1])||"",p=X(f,""),h=Y(f,"px"),v=(null===(c=u)||void 0===c?void 0:c[2])||"",w=X(v,""),g=Y(v,"px"),b=(null===(o=u)||void 0===o?void 0:o[3])||"",E=X(b,""),y=Y(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(st,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(mt,{min:-9999,value:E,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(e).concat(y))},icon:wp.element.createElement(x,null),unit:y,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(C,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(_,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w).concat(g,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:w,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(k,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(e,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},O={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=O&&O[e]?"position: ".concat(null==O?void 0:O[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},U=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(st,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(dt,{className:"bm-position-control__group"},wp.element.createElement(Pe,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(R,null)),wp.element.createElement(Pe,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(S,null)),wp.element.createElement(Pe,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(V,null)),wp.element.createElement(Pe,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(j,null)),wp.element.createElement(Pe,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),G=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},T=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Z(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Z(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Z(n[2])," } }"):""].filter(Boolean).join("\n")},Z=function(e){var t,n;if(!e)return"";var c=Q(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=X(o,""),l=Y(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=X(r,""),u=Y(r,"px"),m=[];return m.push("width: ".concat(a).concat(l,";")),m.push("height: ".concat(i).concat(u,";")),m.join("")},D=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=Q(o,",",3),u=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",m=X(u,""),d=Y(u,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=X(f,""),h=Y(f,"px"),v=Number((null===(c=i)||void 0===c?void 0:c[2])||0),w=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(st,{name:"Dimentions",onReset:function(){w(r)}}),wp.element.createElement(dt,null,wp.element.createElement(mt,{placeholder:"auto",value:m,onChange:function(e){var t=v?p+(e-m):p;w("".concat(e).concat(d,",").concat(t).concat(h,",").concat(v))},icon:wp.element.createElement(s,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){w("".concat(m).concat(e,",").concat(p).concat(h,",").concat(v))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(mt,{placeholder:"auto",value:p,onChange:function(e){w("".concat(v?m+(e-p):m).concat(d,",").concat(e).concat(h,",").concat(v))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){w("".concat(m).concat(d,",").concat(p).concat(e,",").concat(v))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Pe,{className:"bm-width-and-height-control__connect ".concat(v?"is-active":""),onClick:function(){var e=0===v?1:0;w("".concat(m).concat(d,",").concat(p).concat(h,",").concat(e))}},v?wp.element.createElement(T,null):wp.element.createElement(G,null))))},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},F=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(st,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(mt,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(b,null)}))},q=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},$=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},J=function(e,t,n){var c=(e=Q(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},K=function(e,t){var n=(e=Q(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},Q=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function ee(e){throw new TypeError('"'+e+'" is read-only')}var te=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},ne=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(oe(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(oe(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(oe(n[2])," } }"):""].filter(Boolean).join("\n")},oe=function(e){if(!e)return"";var t=re(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,u=t.marginLeftUnit,m=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,v=t.paddingLeftValue,w=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,x=t.borderRightValue,C=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,S=t.borderBottomUnit,V=t.borderBottomStyle,j=t.borderBottomColor,N=t.borderLeftValue,B=t.borderLeftUnit,M=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(u," !important;")),L.push("padding-top: ".concat(m).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(v).concat(w,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),L.push("border-right: ".concat(x).concat(C," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(S," ").concat(V," ").concat(j,";")),L.push("border-left: ".concat(N).concat(B," ").concat(M," ").concat(I,";")),L.join("")},ae=function(e,t){return X((null==e?void 0:e[t])||"","")},le=function(e,t){return Y((null==e?void 0:e[t])||"","px")},re=function(e){var t=Q(e,"|",4).split("|"),n=Q((null==t?void 0:t[0])||"",",",4).split(","),c=Q((null==t?void 0:t[1])||"",",",4).split(","),o=Q((null==t?void 0:t[2])||"",",",4).split(","),a=Q((null==t?void 0:t[3])||"",",",3).split(","),l=Q((null==o?void 0:o[0])||"","_",3).split("_"),r=Q((null==o?void 0:o[1])||"","_",3).split("_"),i=Q((null==o?void 0:o[2])||"","_",3).split("_"),u=Q((null==o?void 0:o[3])||"","_",3).split("_"),m=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==u?void 0:u[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ae(n,0),marginTopUnit:le(n,0),marginRightValue:ae(n,1),marginRightUnit:le(n,1),marginBottomValue:ae(n,2),marginBottomUnit:le(n,2),marginLeftValue:ae(n,3),marginLeftUnit:le(n,3),paddingTopValue:ae(c,0),paddingTopUnit:le(c,0),paddingRightValue:ae(c,1),paddingRightUnit:le(c,1),paddingBottomValue:ae(c,2),paddingBottomUnit:le(c,2),paddingLeftValue:ae(c,3),paddingLeftUnit:le(c,3),borderTopValue:X(m),borderTopUnit:Y(m),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:X(s),borderRightUnit:Y(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:X(d),borderBottomUnit:Y(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:X(f),borderLeftUnit:Y(f),borderLeftStyle:(null==u?void 0:u[1])||"",borderLeftColor:(null==u?void 0:u[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},ie=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=re(t),r=l.margin,i=l.padding,u=l.border,m=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,v=l.marginBottomUnit,w=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,x=l.paddingRightUnit,C=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,S=l.borderTopValue,V=l.borderTopUnit,j=l.borderTopStyle,N=l.borderTopColor,B=l.borderRightValue,M=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,P=l.borderBottomValue,H=l.borderBottomUnit,O=l.borderBottomStyle,z=l.borderBottomColor,U=l.borderLeftValue,G=l.borderLeftUnit,T=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,D=l.isTickAllPadding,W=l.isTickAllBorder,F=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(u[t]=c),"connected"===e&&(m[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(u.join(","),"|").concat(m.join(",")))},q=function(e,t){"margin"===e&&ee("margin"),"padding"===e&&ee("padding"),"border"===e&&ee("border"),"connected"===e&&ee("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(u.join(","),"|").concat(m.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(st,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(mt,{className:"bm-box-model__top",value:s,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):F("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):F("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",0,Z?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):F("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):F("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(v),"".concat(e).concat(v),"".concat(e).concat(v),"".concat(e).concat(v))):F("margin",2,"".concat(e).concat(v))},min:a,unit:v,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):F("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:w,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):F("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(w).concat(e),"".concat(w).concat(e),"".concat(w).concat(e),"".concat(w).concat(e))):F("margin",3,"".concat(w).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(We,{hideInput:!0,value:N,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",0,"".concat(S).concat(V,"_").concat(j,"_").concat(e))}}),wp.element.createElement(mt,{value:S,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",0,"".concat(e).concat(V,"_").concat(j,"_").concat(N))},min:0,unit:V,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",0,"".concat(S).concat(e,"_").concat(j,"_").concat(N))}}),wp.element.createElement(ht,{value:j,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(e,"_").concat(N),"".concat(B).concat(M,"_").concat(e,"_").concat(L),"".concat(P).concat(H,"_").concat(e,"_").concat(z),"".concat(U).concat(G,"_").concat(e,"_").concat(A))):F("border",0,"".concat(S).concat(V,"_").concat(e,"_").concat(N))}})),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",2,W?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(We,{hideInput:!0,value:L,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",1,"".concat(B).concat(M,"_").concat(I,"_").concat(e))}}),wp.element.createElement(mt,{direction:"vertical",value:B,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",1,"".concat(e).concat(M,"_").concat(I,"_").concat(L))},min:0,unit:M,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",1,"".concat(B).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(ht,{value:I,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(e,"_").concat(L),"".concat(P).concat(H,"_").concat(O,"_").concat(z),"".concat(U).concat(G,"_").concat(T,"_").concat(A))):F("border",1,"".concat(B).concat(M,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(ht,{value:O,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(I,"_").concat(L),"".concat(P).concat(H,"_").concat(e,"_").concat(z),"".concat(U).concat(G,"_").concat(T,"_").concat(A))):F("border",2,"".concat(P).concat(H,"_").concat(e,"_").concat(z))}}),wp.element.createElement(mt,{value:P,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",2,"".concat(e).concat(H,"_").concat(O,"_").concat(z))},min:0,unit:H,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",2,"".concat(P).concat(e,"_").concat(O,"_").concat(z))}}),wp.element.createElement(We,{hideInput:!0,value:z,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",2,"".concat(P).concat(H,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(ht,{value:T,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(I,"_").concat(L),"".concat(P).concat(H,"_").concat(O,"_").concat(z),"".concat(U).concat(G,"_").concat(e,"_").concat(A))):F("border",3,"".concat(U).concat(G,"_").concat(e,"_").concat(A))}}),wp.element.createElement(mt,{direction:"vertical",value:U,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",3,"".concat(e).concat(G,"_").concat(T,"_").concat(A))},min:0,unit:G,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",3,"".concat(U).concat(e,"_").concat(T,"_").concat(A))}}),wp.element.createElement(We,{hideInput:!0,value:A,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",3,"".concat(U).concat(G,"_").concat(T,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(mt,{className:"bm-box-model__top",value:b,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):F("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):F("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",1,D?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(x),"".concat(e).concat(x),"".concat(e).concat(x),"".concat(e).concat(x))):F("padding",1,"".concat(e).concat(x))},min:a,unit:x,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):F("padding",1,"".concat(y).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:C,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):F("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e))):F("padding",2,"".concat(C).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):F("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):F("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){if(!e)return"";switch(e){case"b":return"box-sizing: border-box;";case"c":return"box-sizing: content-box;"}return""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},me=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(e)};return wp.element.createElement("div",{className:"bm-box-sizing-control"},wp.element.createElement(st,{name:"Box Sizing",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-inline-row"},wp.element.createElement(Pe,{label:"Border Box",showTooltip:!0,className:"".concat("b"===a?"is-active":""),onClick:function(){return l("b")}},wp.element.createElement(E,null)),wp.element.createElement(Pe,{label:"Content Box",showTooltip:!0,className:"".concat("c"===t?"is-active":""),onClick:function(){return l("c")}},wp.element.createElement(y,null))))},se=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},de=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},fe=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},pe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},he=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"13",width:"5",height:"2"}))},we=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},ge=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"10",y:"13",width:"5",height:"2"}))},be=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},Ee=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},ye=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(o.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(o.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},xe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ce=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},_e=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ke=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}))},Re=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Se=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},Ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Ne(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Ne(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Ne(n[2])," } }"):""].filter(Boolean).join("\n")},Ne=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=Q(e,",",7),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=X(p,""),v=Y(p,"px"),w=(null===(r=i)||void 0===r?void 0:r[6])||"",g=X(w,""),b=Y(w,"px"),E=[];return u&&E.push("flex-direction: ".concat(u,";")),m&&E.push("flex-wrap: ".concat(m,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(v,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},Be=function(e){var t,n,c,o,a,l,r,i=e.value,u=e.onChange,m=e.reset,s=void 0===m?"":m,d=Q(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",v=(null===(o=d)||void 0===o?void 0:o[3])||"",w=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=X(g,""),E=Y(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",x=X(y,""),C=Y(y,"px"),_=function(e){u(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===v&&(null==e?void 0:e.justifyContent)===w};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(st,{name:"Flex Box",onReset:function(){u(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Pe,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(se,null)),wp.element.createElement(Pe,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(de,null)),wp.element.createElement(Pe,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(fe,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(mt,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(e).concat(E,",").concat("w"!==p?e:x).concat(C))},icon:wp.element.createElement(pe,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(e,",").concat(x).concat("w"!==p?e:C))}}),"w"===p&&wp.element.createElement(mt,{placeholder:b,value:x,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(e).concat(C))},icon:wp.element.createElement(he,null),unit:C,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(e))}})))};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Me.apply(this,arguments)}var Ie,Le=function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){var n=function(n){t.current&&!t.current.contains(n.target)&&e.onClose()};return function(){return document.removeEventListener("mousedown",n)}}),[t]),wp.element.createElement(o.Popover,Me({},e,{ref:t,className:"bm-popover"}),wp.element.createElement("div",{ref:t},e.children))},Pe=function(e){var t=e.style,n=void 0===t?{}:t,c=e.icon,a=void 0===c?null:c,l=e.label,r=void 0===l?"":l,i=e.showTooltip,u=void 0!==i&&i,m=e.onClick,s=e.className,d=e.children;return wp.element.createElement(o.Button,{style:n,icon:a,label:r,showTooltip:u,className:"bm-button-control ".concat(s),onClick:m},d)},He=n(412);function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function Ge(e,t,n){var c;return c=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Oe(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Oe(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),Ge(Ge(Ge(Ge(Ge(Ge(Ie,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Ae=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ze=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},De=function(e){var t=Ze(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},We=function(e){var t=e.hideInput,n=void 0!==t&&t,a=e.value,l=e.onChange,r=e.placeholder,i=ze((0,c.useState)(!1),2),u=i[0],m=i[1],s="",d=100;if(a=a||r){var f=(0,He.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,He.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(u?"is-active":"")},wp.element.createElement(dt,null,wp.element.createElement(Pe,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){m(!u)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),n?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ze(a),placeholder:De(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Te[n.toLowerCase()]){n=Te[n.toLowerCase()];var c=(0,He.Mj)(n).toRgb();c.a=d/100;var o=(0,He.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,He.Mj)(n).toRgb();a.a=d/100;var l=(0,He.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(mt,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,He.Mj)(a).toRgb();n.a=t/100;var c=(0,He.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Ae,null)}))),u?wp.element.createElement(o.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return m(!1)}},wp.element.createElement(o.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Fe=wp.data,qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},$e=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(vt,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Pe,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Fe.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(d,null):"Tablet"===e?wp.element.createElement(f,null):wp.element.createElement(p,null))}))),o&&wp.element.createElement(Pe,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(qe,null)))};function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Je=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M12.478 8H15.5a.5.5 0 0 1 0 1h-3c-.708 0-1.21 0-1.601.032-.386.032-.622.092-.807.186a2 2 0 0 0-.874.874c-.094.185-.154.42-.186.807C9 11.29 9 11.792 9 12.5v3a.5.5 0 0 1-1 0v-3.022c0-.681 0-1.223.036-1.66.036-.448.113-.83.291-1.18a3 3 0 0 1 1.311-1.311c.35-.178.732-.255 1.18-.291C11.254 8 11.796 8 12.477 8",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.522 8H8.5a.5.5 0 0 0 0 1h3c.708 0 1.21 0 1.601.032.386.032.622.092.807.186a2 2 0 0 1 .874.874c.094.185.154.42.186.807.032.392.032.893.032 1.601v3a.5.5 0 0 0 1 0v-3.022c0-.681 0-1.223-.036-1.66-.036-.448-.113-.83-.291-1.18a3 3 0 0 0-1.311-1.311c-.35-.178-.732-.255-1.18-.291C12.746 8 12.204 8 11.523 8",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M12.478 16H15.5a.5.5 0 0 0 0-1h-3c-.708 0-1.21 0-1.601-.032-.386-.032-.622-.092-.807-.186a2 2 0 0 1-.874-.874c-.094-.185-.154-.42-.186-.807C9 12.71 9 12.208 9 11.5v-3a.5.5 0 0 0-1 0v3.022c0 .681 0 1.223.036 1.66.036.448.113.83.291 1.18a3 3 0 0 0 1.311 1.311c.35.178.732.255 1.18.291.437.036.979.036 1.66.036",clipRule:"evenodd"}))},et=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.522 16H8.5a.5.5 0 0 1 0-1h3c.708 0 1.21 0 1.601-.032.386-.032.622-.092.807-.186a2 2 0 0 0 .874-.874c.094-.185.154-.42.186-.807C15 12.71 15 12.208 15 11.5v-3a.5.5 0 0 1 1 0v3.022c0 .681 0 1.223-.036 1.66-.036.448-.113.83-.291 1.18a3 3 0 0 1-1.311 1.311c-.35.178-.732.255-1.18.291-.437.036-.979.036-1.66.036",clipRule:"evenodd"}))},tt=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8.9 6h-.02c-.403 0-.735 0-1.006.022-.28.023-.54.072-.782.196a2 2 0 0 0-.874.874c-.124.243-.173.501-.196.782C6 8.144 6 8.477 6 8.88v.62a.5.5 0 0 0 1 0v-.6c0-.428 0-.72.019-.944.018-.22.05-.332.09-.41a1 1 0 0 1 .437-.437c.078-.04.19-.072.41-.09C8.18 7 8.472 7 8.9 7h.6a.5.5 0 0 0 0-1zm6.2 0h.02c.403 0 .735 0 1.006.022.281.023.54.072.782.196a2 2 0 0 1 .874.874c.124.243.173.501.196.782.022.27.022.603.022 1.005V9.5a.5.5 0 0 1-1 0v-.6c0-.428 0-.72-.019-.944-.018-.22-.05-.332-.09-.41a1 1 0 0 0-.437-.437c-.078-.04-.19-.072-.41-.09A13 13 0 0 0 15.1 7h-.6a.5.5 0 0 1 0-1zm.02 12h-.62a.5.5 0 0 1 0-1h.6c.428 0 .72 0 .944-.019.22-.018.332-.05.41-.09a1 1 0 0 0 .437-.437c.04-.078.072-.19.09-.41.019-.225.019-.516.019-.944v-.6a.5.5 0 0 1 1 0v.62c0 .403 0 .735-.022 1.006-.023.281-.072.54-.196.782a2 2 0 0 1-.874.874c-.243.124-.501.173-.782.196-.27.022-.603.022-1.005.022M8.9 18h-.02c-.403 0-.735 0-1.006-.022-.281-.023-.54-.072-.782-.196a2 2 0 0 1-.874-.874c-.124-.243-.173-.501-.196-.782A13 13 0 0 1 6 15.12v-.62a.5.5 0 0 1 1 0v.6c0 .428 0 .72.019.944.018.22.05.332.09.41a1 1 0 0 0 .437.437c.078.04.19.072.41.09.225.019.516.019.944.019h.6a.5.5 0 0 1 0 1z",clipRule:"evenodd"}))},nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ct(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ct(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ct(n[2])," } }"):""].filter(Boolean).join("\n")},ct=function(e){if(!e)return"";var t=ot(e),n=t.topLeftValue,c=t.topLeftUnit,o=t.topRightValue,a=t.topRightUnit,l=t.bottomRightValue,r=t.bottomRightUnit,i=t.bottomLeftValue,u=t.bottomLeftUnit,m=[];return m.push("border-top-left-radius: ".concat(n).concat(c,";")),m.push("border-top-right-radius: ".concat(o).concat(a,";")),m.push("border-bottom-left-radius: ".concat(i).concat(u,";")),m.push("border-bottom-right-radius: ".concat(l).concat(r,";")),m.join("")},ot=function(e){var t,n,c,o,a=Q(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=(null===(n=a)||void 0===n?void 0:n[1])||"",i=(null===(c=a)||void 0===c?void 0:c[2])||"",u=(null===(o=a)||void 0===o?void 0:o[3])||"";return{topLeftValue:X(l,""),topLeftUnit:Y(l,"px"),topRightValue:X(r,""),topRightUnit:Y(r,"px"),bottomRightValue:X(i,""),bottomRightUnit:Y(i,"px"),bottomLeftValue:X(u,""),bottomLeftUnit:Y(u,"px")}},at=function(e){var t=e.value,n=e.onChange,o=e.reset,a=void 0===o?"":o,l=ot(t),r=l.topLeftValue,i=l.topLeftUnit,u=l.topRightValue,m=l.topRightUnit,s=l.bottomRightValue,d=l.bottomRightUnit,f=l.bottomLeftValue,p=l.bottomLeftUnit,h=function(e){n(e)},v=Ye((0,c.useState)(!1),2),w=v[0],g=v[1],b=r===u&&u===s&&s===f?r:"Mixed";return wp.element.createElement("div",{className:"bm-radius-control"},wp.element.createElement(st,{name:"Corner Radius",onReset:function(){h(a)}}),wp.element.createElement(dt,null,wp.element.createElement(mt,{placeholder:b,value:"Mixed"===b?"":r,onChange:function(e){h("".concat(e).concat(i,",").concat(e).concat(m,",").concat(e).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(Pe,{onClick:function(){g(!w)}},wp.element.createElement(tt,null))),w?wp.element.createElement(Le,{className:"bm-radius-control__popover bm-popover",position:"bottom right",onClose:function(){g(!1)}},wp.element.createElement(dt,null,wp.element.createElement(mt,{value:r,onChange:function(e){h("".concat(e).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:u,onChange:function(e){h("".concat(r).concat(i,",").concat(e).concat(m,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Ke,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(p))}})),wp.element.createElement(dt,null,wp.element.createElement(mt,{value:f,onChange:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Qe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:s,onChange:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(e).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(et,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(e,",").concat(f).concat(p))}}))):null)};function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var it=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},ut=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},mt=function(e){var t,n,o=e.canDrag,a=void 0===o||o,l=e.className,r=void 0===l?"":l,i=e.step,u=void 0===i?1:i,m=e.withIncrementors,s=void 0!==m&&m,d=e.placeholder,f=void 0===d?0:d,p=e.min,v=void 0===p?0:p,w=e.max,g=e.direction,b=e.value,E=e.onChange,y=e.onChangeUnit,x=e.icon,C=e.unit,_=e.units,k=e.suggests,R=void 0===k?{}:k,S=lt((0,c.useState)(!1),2),V=S[0],j=(S[1],lt((0,c.useState)(!1),2)),N=j[0],B=j[1],M=lt((0,c.useState)(!1),2),I=M[0],L=M[1],P=lt((0,c.useState)(!1),2),H=P[0],O=P[1],z=b&&"string"==typeof b&&b.startsWith("g:"),U="",G="",T="";z&&(U=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(G=b.replace("g:","")),T=(null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.modes)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)||"");var A=function(e){if(a){B(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),B(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),$(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=v&&(e=v),e>=w&&(e=w)),E(e)},D=b?8*b.toString().length:8,W=lt((0,c.useState)(!1),2),F=W[0],q=W[1],Y=lt((0,c.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(V?"is-hovered":""," ").concat(N?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},x&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){z||A(e)},onMouseUp:function(){z||B(!1)}},x),s&&!z?wp.element.createElement(Pe,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-u)}},wp.element.createElement(it,null)):null,z?wp.element.createElement("span",{className:"bm-global"},U,wp.element.createElement(Pe,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(G))}},wp.element.createElement(h,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:D},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return B(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===H&&wp.element.createElement(Le,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return O(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Pe,{onClick:function(){Z(n),O(!1)}},e))}))))),C&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},C,K&&X&&wp.element.createElement(Le,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Pe,{onClick:function(){y(e)}},e))})))))),F&&wp.element.createElement(Le,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.variables)||void 0===t?void 0:t.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[T])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Pe,{onClick:function(){E("g:".concat(t)),q(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!z?wp.element.createElement(Pe,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+u)}},wp.element.createElement(ut,null)):null)},st=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(vt,{onReset:o}))},dt=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},ft=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},pt=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},ht=function(e){var t=e.value,n=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(t)},wp.element.createElement(o.Button,{className:"bm-border-style__button",onClick:function(){n&&n("dashed"===t?"solid":"dashed")}},"dashed"===t?wp.element.createElement(ft,null):wp.element.createElement(pt,null)))},vt=function(e){var t=e.onReset;return wp.element.createElement(Pe,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(h,null))},wt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(st,{name:n}),wp.element.createElement(dt,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Pe,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(v,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(g,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},gt=n(470);wp.isShallowEqual;function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var yt=function(e){var t=e.parent,n=e.id,o=e.style,a=e.selector,l=bt((0,c.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(n=(n=(n=(n=(n=n||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},u=q(),m=function(){var e=i();if(!u.getElementById(e)){var t=u.createElement("style");return t.id=e,u.head.appendChild(t),t}};(0,c.useEffect)((function(){m()}),[]),(0,c.useEffect)((function(){r(o)}),[o]),(0,c.useEffect)((function(){var e=u.getElementById(i());e||(e=m());var n="";n+=function(e,t,n){var c,o,a,l,r,i,u,m,s,d,f,p,h,v,w,g,b,E,y,x,C,_,k,R,S,V,j,N="",B=n,I="".concat(n,":hover"),P="".concat(n,":focus");return e&&(I=(I=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),P=(P=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),N+=M(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,B),N+=M(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,I),N+=M(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,P),N+=L(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,B),N+=L(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,I),N+=L(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,P),N+=z(null==t||null===(u=t.normal)||void 0===u?void 0:u.position,B),N+=z(null==t||null===(m=t.hover)||void 0===m?void 0:m.position,I),N+=z(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,P),N+=W(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,B),N+=W(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,I),N+=W(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,P),N+=A(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,B),N+=A(null==t||null===(v=t.hover)||void 0===v?void 0:v.dimentions,I),N+=A(null==t||null===(w=t.focus)||void 0===w?void 0:w.dimentions,P),N+=ce(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,B),N+=ce(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,I),N+=ce(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,P),N+=ue(null==t||null===(y=t.normal)||void 0===y?void 0:y.boxSizing,B),N+=ue(null==t||null===(x=t.hover)||void 0===x?void 0:x.boxSizing,I),N+=ue(null==t||null===(C=t.focus)||void 0===C?void 0:C.boxSizing,P),N+=je(null==t||null===(_=t.normal)||void 0===_?void 0:_.flex,B),N+=je(null==t||null===(k=t.hover)||void 0===k?void 0:k.flex,I),N+=je(null==t||null===(R=t.focus)||void 0===R?void 0:R.flex,P),N+=nt(null==t||null===(S=t.normal)||void 0===S?void 0:S.borderRadius,B),N+=nt(null==t||null===(V=t.hover)||void 0===V?void 0:V.borderRadius,I),N+nt(null==t||null===(j=t.focus)||void 0===j?void 0:j.borderRadius,P)}(t,o,a),e.innerHTML=n}),[o])},xt=n(838);function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},_t.apply(this,arguments)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t,n){var c;return c=function(e,t){if("object"!=Ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Ct(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ct(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Nt=(0,c.memo)((function(e){var t=e.device,n=e.deviceType,o=e.element,a=e.style,l=e.onChange,r=Vt((0,c.useState)("normal"),2),i=r[0],u=r[1],m=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,c.useRef)();(0,c.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return K(m(e),t)},f=function(e,n){!function(e,t){var n;l(Rt(Rt({},a),{},o?St({},o,Rt(Rt({},null==a?void 0:a[o]),{},St({},i,Rt(Rt({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},St({},e,t))))):St({},i,Rt(Rt({},null==a?void 0:a[i]),{},St({},e,t)))))}(e,J(m(e),n,t))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(wt,{value:i,onChange:function(e){return u(e)}}),wp.element.createElement($e,{className:"bm-responsive--position bm-control-seperator",label:(0,gt.__)("Layout","bm"),device:n}),wp.element.createElement(I,_t({},e,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(Be,_t({},e,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(U,_t({},e,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(H,_t({},e,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(F,_t({},e,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement($e,{className:"bm-responsive--position bm-control-seperator",label:(0,gt.__)("Box Model","bm"),device:n}),wp.element.createElement(D,_t({},e,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(ie,_t({},e,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})),wp.element.createElement(dt,null,wp.element.createElement(me,_t({},e,{value:d("boxSizing"),onChange:function(e){return f("boxSizing",e)}})),wp.element.createElement(at,_t({},e,{value:d("borderRadius"),onChange:function(e){return f("borderRadius",e)}}))))})),Bt=(0,c.memo)((function(e){var t=e.id,n=e.title,c=void 0===n?"Style":n,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,u=e.selector,m=void 0===u?"":u,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Fe.useSelect)((function(e){return e("core/editor").getDeviceType()})),v=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(yt,{style:r,selector:m||"#block-".concat(d)}),wp.element.createElement(xt.InspectorControls,null,wp.element.createElement(o.PanelBody,{title:c,initialOpen:l},wp.element.createElement(Nt,{deviceType:h,device:v,id:t,clientId:d,selector:m||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),Mt=n(164);n(964),wp.compose,wp.hooks;function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){var c;return c=function(e,t){if("object"!=It(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=It(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==It(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=function(e){var t=e.childs,n=void 0===t?[]:t,c=e.placeholder,o=e.allowedBlocks,a=e.template,l=e.blockProps,r={templateLock:!1,renderAppender:xt.InnerBlocks.ButtonBlockAppender};o&&(r.allowedBlocks=o),a&&(r.template=a);var i=(0,xt.useInnerBlocksProps)(Pt(Pt({},l),{},{className:(0,Mt.A)(l.className,"bm-inner-blocks")}),r);return c&&0===n.length?wp.element.createElement("div",i,c):wp.element.createElement("div",i)}},412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},u=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},m=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),u=a%6;return{r:255*[c,r,l,l,i,c][u],g:255*[i,c,c,r,l,l][u],b:255*[l,l,i,c,c,r][u],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},v=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},w=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x={string:[[function(e){var t=m.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return v(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return v(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var u=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(u)},"hsv"]]},C=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?C(e.trim(),x.string):"object"==n(e)&&null!==e?C(e,x.object):[null,void 0]},k=function(e,t){var n=w(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},S=function(e,t){var n=w(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},V=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(w(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(w(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return j({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),j(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),j(k(this.rgba,-e))},e.prototype.grayscale=function(){return j(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),j(S(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),j(S(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?j({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=w(this.rgba);return"number"==typeof e?j({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===j(e).toHex()},e}(),j=function(e){return e instanceof V?e:new V(e)},N=[];t.Mj=j},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n},164:function(e,t,n){"use strict";function c(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=c(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.A=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=c(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(964);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function o(e,n,c){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var c=e[Symbol.toPrimitive];if(void 0!==c){var o=c.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[n]=c,e}var a=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"bm/section","title":"Section","description":"Allow to create a section for the content.","version":"0.0.1","icon":"editor-table","attributes":{"_bm_id":{"type":"string","default":""},"_bm_style":{"type":"object"}},"category":"blocks-monster","textdomain":"blocks-monster","style":"file:./css/style.css","editorScript":"file:./js/index.js"}'),l=n(164),r=n(838),i=n(19),u=function(e){var t=e.attributes,n=t._bm_id,c=t._bm_style,o=e.setAttributes,a=e.className,u=e.clientId,m=(0,l.A)(a),s=(0,r.useBlockProps)({className:m});return wp.element.createElement(React.Fragment,null,wp.element.createElement(i.H2,{id:n,clientId:u,style:c,onChange:function(e){o({_bm_style:e})}}),wp.element.createElement(i.Tj,{blockProps:s}))},m=(n(470),function(){var e=r.useBlockProps.save();return wp.element.createElement("div",e,wp.element.createElement(r.InnerBlocks.Content,null))});!function(t){if(t){var n=t.metadata,a=t.settings,l=t.name;(0,e.registerBlockType)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:l},n),a)}}({name:a.name,metadata:a,settings:{icon:"list-view",edit:u,save:m}})}()}(); -
blocks-monster/tags/1.8.6/includes/gutenberg/controls/assets/js/controls.js
r3224940 r3224949 1 !function(){var e={412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),C.string):"object"==n(e)&&null!==e?x(e,C.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},N=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},V=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(N(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(N(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof V?e:new V(e)},j=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var c={};!function(){"use strict";n.d(c,{aE:function(){return $e},kD:function(){return Qe},$K:function(){return ae},$n:function(){return je},sk:function(){return Te},ZK:function(){return O},nl:function(){return j},so:function(){return Re},JU:function(){return Ye},AM:function(){return Se},yX:function(){return z},Yn:function(){return et},Ft:function(){return Ze},fI:function(){return Xe},Hw:function(){return I},Uw:function(){return tt},Py:function(){return Z},yC:function(){return ee},om:function(){return Y},ZX:function(){return X},i7:function(){return U},Mi:function(){return S},x7:function(){return W},De:function(){return _e},z:function(){return F},eT:function(){return q},ph:function(){return H},gB:function(){return M},wR:function(){return A},Xc:function(){return $}});var e=wp.element,t=wp.components,o=function(){return wp.element.createElement(t.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},a=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},l=function(){return wp.element.createElement(t.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(t.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},r=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(t.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},u=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},s=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},d=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},f=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},p=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},h=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},E=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},x=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},_=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},k=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(t.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},R=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},V={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=V&&V[e]?"display: ".concat(null==V?void 0:V[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},j=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,u=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(Ye,{name:"Display",onReset:function(){n(u)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(je,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(o,null)),wp.element.createElement(je,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(a,null)),wp.element.createElement(je,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(l,null)),wp.element.createElement(je,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(r,null)),wp.element.createElement(je,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(i,null)),wp.element.createElement(je,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(B(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(B(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(B(n[2])," } }"):""].filter(Boolean).join("\n")},B=function(e){var t,n,c,o;if(!e)return"";var a=X(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=q(l,""),i=F(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=q(m,""),s=F(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=q(d,""),p=F(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=q(h,""),v=F(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},I=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=X(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=q(u,""),d=F(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=q(f,""),h=F(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=q(w,""),g=F(w,"px"),x=(null===(o=m)||void 0===o?void 0:o[3])||"",_=q(x,""),k=F(x,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(Ye,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement($e,{min:-9999,value:_,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(b,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(E,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(y,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(C,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},L={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=L&&L[e]?"position: ".concat(null==L?void 0:L[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},z=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(Ye,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(Xe,{className:"bm-position-control__group"},wp.element.createElement(je,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(x,null)),wp.element.createElement(je,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(_,null)),wp.element.createElement(je,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(k,null)),wp.element.createElement(je,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(R,null)),wp.element.createElement(je,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),G=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},P=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(T(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(T(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(T(n[2])," } }"):""].filter(Boolean).join("\n")},T=function(e){var t,n;if(!e)return"";var c=X(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=q(o,""),l=F(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=q(r,""),m=F(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},O=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=X(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",s=q(m,""),d=F(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=q(f,""),h=F(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(Ye,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(Xe,null,wp.element.createElement($e,{placeholder:"auto",value:s,onChange:function(e){var t=w?p+(e-s):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(u,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement($e,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?s+(e-p):s).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(je,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(P,null):wp.element.createElement(G,null))))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},Z=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(Ye,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement($e,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(g,null)}))},W=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},D=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},$=function(e,t,n){var c=(e=X(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},Y=function(e,t){var n=(e=X(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},X=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function J(e){throw new TypeError('"'+e+'" is read-only')}var K=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},Q=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(te(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(te(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(te(n[2])," } }"):""].filter(Boolean).join("\n")},te=function(e){if(!e)return"";var t=oe(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,C=t.borderRightValue,x=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,N=t.borderBottomUnit,V=t.borderBottomStyle,S=t.borderBottomColor,j=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(m," !important;")),L.push("padding-top: ".concat(u).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(w).concat(v,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),L.push("border-right: ".concat(C).concat(x," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(N," ").concat(V," ").concat(S,";")),L.push("border-left: ".concat(j).concat(M," ").concat(B," ").concat(I,";")),L.join("")},ne=function(e,t){return q((null==e?void 0:e[t])||"","")},ce=function(e,t){return F((null==e?void 0:e[t])||"","px")},oe=function(e){var t=X(e,"|",4).split("|"),n=X((null==t?void 0:t[0])||"",",",4).split(","),c=X((null==t?void 0:t[1])||"",",",4).split(","),o=X((null==t?void 0:t[2])||"",",",4).split(","),a=X((null==t?void 0:t[3])||"",",",3).split(","),l=X((null==o?void 0:o[0])||"","_",3).split("_"),r=X((null==o?void 0:o[1])||"","_",3).split("_"),i=X((null==o?void 0:o[2])||"","_",3).split("_"),m=X((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ne(n,0),marginTopUnit:ce(n,0),marginRightValue:ne(n,1),marginRightUnit:ce(n,1),marginBottomValue:ne(n,2),marginBottomUnit:ce(n,2),marginLeftValue:ne(n,3),marginLeftUnit:ce(n,3),paddingTopValue:ne(c,0),paddingTopUnit:ce(c,0),paddingRightValue:ne(c,1),paddingRightUnit:ce(c,1),paddingBottomValue:ne(c,2),paddingBottomUnit:ce(c,2),paddingLeftValue:ne(c,3),paddingLeftUnit:ce(c,3),borderTopValue:q(u),borderTopUnit:F(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:q(s),borderRightUnit:F(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:q(d),borderBottomUnit:F(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:q(f),borderLeftUnit:F(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},ae=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=oe(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,C=l.paddingRightUnit,x=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,N=l.borderTopValue,V=l.borderTopUnit,S=l.borderTopStyle,j=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,H=l.borderBottomValue,z=l.borderBottomUnit,G=l.borderBottomStyle,P=l.borderBottomColor,U=l.borderLeftValue,T=l.borderLeftUnit,O=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,W=l.isTickAllPadding,F=l.isTickAllBorder,q=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&J("margin"),"padding"===e&&J("padding"),"border"===e&&J("border"),"connected"===e&&J("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(Ye,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement($e,{className:"bm-box-model__top",value:s,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):q("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):q("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",0,Z?0:1)}}),wp.element.createElement($e,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):q("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):q("margin",1,"".concat(f).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):q("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):q("margin",2,"".concat(h).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):q("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):q("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(Te,{hideInput:!0,value:j,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",0,"".concat(N).concat(V,"_").concat(S,"_").concat(e))}}),wp.element.createElement($e,{value:N,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",0,"".concat(e).concat(V,"_").concat(S,"_").concat(j))},min:0,unit:V,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",0,"".concat(N).concat(e,"_").concat(S,"_").concat(j))}}),wp.element.createElement(Qe,{value:S,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(e,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(P),"".concat(U).concat(T,"_").concat(e,"_").concat(A))):q("border",0,"".concat(N).concat(V,"_").concat(e,"_").concat(j))}})),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(F?"is-ticked":""),icon:F?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",2,F?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(Te,{hideInput:!0,value:L,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement($e,{direction:"vertical",value:M,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(L))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(Qe,{value:I,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(G,"_").concat(P),"".concat(U).concat(T,"_").concat(O,"_").concat(A))):q("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(Qe,{value:G,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(P),"".concat(U).concat(T,"_").concat(O,"_").concat(A))):q("border",2,"".concat(H).concat(z,"_").concat(e,"_").concat(P))}}),wp.element.createElement($e,{value:H,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",2,"".concat(e).concat(z,"_").concat(G,"_").concat(P))},min:0,unit:z,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",2,"".concat(H).concat(e,"_").concat(G,"_").concat(P))}}),wp.element.createElement(Te,{hideInput:!0,value:P,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",2,"".concat(H).concat(z,"_").concat(G,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(Qe,{value:O,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(G,"_").concat(P),"".concat(U).concat(T,"_").concat(e,"_").concat(A))):q("border",3,"".concat(U).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement($e,{direction:"vertical",value:U,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",3,"".concat(e).concat(T,"_").concat(O,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",3,"".concat(U).concat(e,"_").concat(O,"_").concat(A))}}),wp.element.createElement(Te,{hideInput:!0,value:A,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",3,"".concat(U).concat(T,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement($e,{className:"bm-box-model__top",value:b,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):q("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):q("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",1,W?0:1)}}),wp.element.createElement($e,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C))):q("padding",1,"".concat(e).concat(C))},min:a,unit:C,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):q("padding",1,"".concat(y).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__bottom",value:x,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):q("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):q("padding",2,"".concat(x).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):q("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):q("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},le=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},re=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},ie=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},me=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},ue=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},se=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"13",width:"5",height:"2"}))},de=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},fe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"10",y:"13",width:"5",height:"2"}))},pe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},he=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},we=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(t.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(t.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ge=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},be=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ee=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}))},ye=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Ce=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},xe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ke(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ke(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ke(n[2])," } }"):""].filter(Boolean).join("\n")},ke=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=X(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=q(p,""),w=F(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=q(v,""),b=F(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},Re=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=X(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=q(g,""),E=F(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",C=q(y,""),x=F(y,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(Ye,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(je,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(le,null)),wp.element.createElement(je,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(re,null)),wp.element.createElement(je,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ie,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement($e,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:C).concat(x))},icon:wp.element.createElement(me,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(C).concat("w"!==p?e:x))}}),"w"===p&&wp.element.createElement($e,{placeholder:b,value:C,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(x))},icon:wp.element.createElement(ue,null),unit:x,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(e))}})))};function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ne.apply(this,arguments)}var Ve,Se=function(n){var c=(0,e.useRef)();return(0,e.useEffect)((function(){var e=function(e){c.current&&!c.current.contains(e.target)&&n.onClose()};return function(){return document.removeEventListener("mousedown",e)}}),[c]),wp.element.createElement(t.Popover,Ne({},n,{ref:c,className:"bm-popover"}),wp.element.createElement("div",{ref:c},n.children))},je=function(e){var n=e.style,c=void 0===n?{}:n,o=e.icon,a=void 0===o?null:o,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(t.Button,{style:c,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},Me=n(412);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function He(e,t,n){var c;return c=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Be(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Be(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=(He(He(He(He(He(He(He(He(He(He(Ve={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),He(He(He(He(He(He(He(He(He(He(Ve,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),He(He(He(He(He(He(He(He(He(He(Ve,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),He(He(He(He(He(He(He(He(He(He(Ve,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),He(He(He(He(He(He(He(He(He(He(Ve,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),He(He(He(He(He(He(He(He(He(He(Ve,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),He(He(He(He(He(He(He(He(He(He(Ve,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),He(He(He(He(He(He(He(He(He(He(Ve,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),He(He(He(He(He(He(He(He(He(He(Ve,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),He(He(He(He(He(He(He(He(He(He(Ve,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),He(He(He(He(He(He(He(He(He(He(Ve,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),He(He(He(He(He(He(He(He(He(He(Ve,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),He(He(He(He(He(He(He(He(He(He(Ve,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),He(He(He(He(He(He(He(He(He(He(Ve,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),He(He(He(He(He(He(Ve,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Ge=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Pe=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Ue=function(e){var t=Pe(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},Te=function(n){var c=n.hideInput,o=void 0!==c&&c,a=n.value,l=n.onChange,r=n.placeholder,i=Ie((0,e.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,Me.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,Me.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(Xe,null,wp.element.createElement(je,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),o?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Pe(a),placeholder:Ue(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(ze[n.toLowerCase()]){n=ze[n.toLowerCase()];var c=(0,Me.Mj)(n).toRgb();c.a=d/100;var o=(0,Me.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,Me.Mj)(n).toRgb();a.a=d/100;var l=(0,Me.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement($e,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,Me.Mj)(a).toRgb();n.a=t/100;var c=(0,Me.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Ge,null)}))),m?wp.element.createElement(t.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(t.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Oe=wp.data,Ae=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},Ze=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(et,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(je,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Oe.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(s,null):"Tablet"===e?wp.element.createElement(d,null):wp.element.createElement(f,null))}))),o&&wp.element.createElement(je,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Ae,null)))};function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return De(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Fe=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},qe=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},$e=function(t){var n,c,o=t.canDrag,a=void 0===o||o,l=t.className,r=void 0===l?"":l,i=t.step,m=void 0===i?1:i,u=t.withIncrementors,s=void 0!==u&&u,d=t.placeholder,f=void 0===d?0:d,h=t.min,w=void 0===h?0:h,v=t.max,g=t.direction,b=t.value,E=t.onChange,y=t.onChangeUnit,C=t.icon,x=t.unit,_=t.units,k=t.suggests,R=void 0===k?{}:k,N=We((0,e.useState)(!1),2),V=N[0],S=(N[1],We((0,e.useState)(!1),2)),j=S[0],M=S[1],B=We((0,e.useState)(!1),2),I=B[0],L=B[1],H=We((0,e.useState)(!1),2),z=H[0],G=H[1],P=b&&"string"==typeof b&&b.startsWith("g:"),U="",T="",O="";P&&(U=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),O=(null===(c=ctcGbGlobalStyles)||void 0===c||null===(c=c.collections)||void 0===c||null===(c=c.modes)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),D(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},W=b?8*b.toString().length:8,F=We((0,e.useState)(!1),2),q=F[0],$=F[1],Y=We((0,e.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(V?"is-hovered":""," ").concat(j?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},C&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){P||A(e)},onMouseUp:function(){P||M(!1)}},C),s&&!P?wp.element.createElement(je,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(Fe,null)):null,P?wp.element.createElement("span",{className:"bm-global"},U,wp.element.createElement(je,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(p,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:W},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===z&&wp.element.createElement(Se,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return G(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(je,{onClick:function(){Z(n),G(!1)}},e))}))))),x&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},x,K&&X&&wp.element.createElement(Se,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(je,{onClick:function(){y(e)}},e))})))))),q&&wp.element.createElement(Se,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.variables)||void 0===n?void 0:n.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[O])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(je,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!P?wp.element.createElement(je,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement(qe,null)):null)},Ye=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(et,{onReset:o}))},Xe=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},Je=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},Qe=function(e){var n=e.value,c=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(n)},wp.element.createElement(t.Button,{className:"bm-border-style__button",onClick:function(){c&&c("dashed"===n?"solid":"dashed")}},"dashed"===n?wp.element.createElement(Je,null):wp.element.createElement(Ke,null)))},et=function(e){var t=e.onReset;return wp.element.createElement(je,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(p,null))},tt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(Ye,{name:n}),wp.element.createElement(Xe,null,["normal","hover","active"].map((function(e){return wp.element.createElement(je,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(h,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(v,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},nt=n(470);wp.isShallowEqual;function ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var at=function(t){var n=t.parent,c=t.id,o=t.style,a=t.selector,l=ct((0,e.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(c=(c=(c=(c=(c=c||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=W(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,e.useEffect)((function(){u()}),[]),(0,e.useEffect)((function(){r(o)}),[o]),(0,e.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var t="";t+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,y,C,x,_="",k=n,R="".concat(n,":hover"),N="".concat(n,":focus");return e&&(R=(R=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),N=(N=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),_+=S(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,k),_+=S(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,R),_+=S(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,N),_+=M(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,k),_+=M(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,R),_+=M(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,N),_+=H(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,k),_+=H(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,R),_+=H(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,N),_+=A(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,k),_+=A(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,R),_+=A(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,N),_+=U(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,k),_+=U(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,R),_+=U(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,N),_+=ee(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,k),_+=ee(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,R),_+=ee(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,N),_+=_e(null==t||null===(y=t.normal)||void 0===y?void 0:y.flex,k),_+=_e(null==t||null===(C=t.hover)||void 0===C?void 0:C.flex,R),_+_e(null==t||null===(x=t.focus)||void 0===x?void 0:x.flex,N)}(n,o,a),e.innerHTML=t}),[o])},lt=n(838);function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},it.apply(this,arguments)}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){var c;return c=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=rt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==rt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ft(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var pt=(0,e.memo)((function(t){var n=t.device,c=t.deviceType,o=t.element,a=t.style,l=t.onChange,r=dt((0,e.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,e.useRef)();(0,e.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return Y(u(e),n)},f=function(e,t){!function(e,t){var n;l(ut(ut({},a),{},o?st({},o,ut(ut({},null==a?void 0:a[o]),{},st({},i,ut(ut({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},st({},e,t))))):st({},i,ut(ut({},null==a?void 0:a[i]),{},st({},e,t)))))}(e,$(u(e),t,n))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(tt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(Ze,{className:"bm-responsive--position bm-control-seperator",label:(0,nt.__)("Layout","bm"),device:c}),wp.element.createElement(j,it({},t,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(Re,it({},t,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(z,it({},t,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(I,it({},t,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(Z,it({},t,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(Ze,{className:"bm-responsive--position bm-control-seperator",label:(0,nt.__)("Box Model","bm"),device:c}),wp.element.createElement(O,it({},t,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(ae,it({},t,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})))}));(0,e.memo)((function(e){var n=e.id,c=e.title,o=void 0===c?"Style":c,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Oe.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(at,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(lt.InspectorControls,null,wp.element.createElement(t.PanelBody,{title:o,initialOpen:l},wp.element.createElement(pt,{deviceType:h,device:w,id:n,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),n(964),wp.compose,wp.hooks}()}();1 !function(){var e={412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||x.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},C=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?C(e.trim(),y.string):"object"==n(e)&&null!==e?C(e,y.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},V=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(V(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(V(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},j=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var c={};!function(){"use strict";n.d(c,{aE:function(){return mt},Z6:function(){return ot},kD:function(){return pt},$K:function(){return re},uO:function(){return me},$n:function(){return Le},sk:function(){return We},ZK:function(){return Z},nl:function(){return B},so:function(){return je},JU:function(){return ut},AM:function(){return Ie},yX:function(){return G},Yn:function(){return ht},Ft:function(){return qe},fI:function(){return st},Hw:function(){return H},Uw:function(){return wt},Py:function(){return D},AQ:function(){return tt},yC:function(){return ne},TH:function(){return ie},om:function(){return J},ZX:function(){return K},i7:function(){return O},Mi:function(){return M},x7:function(){return F},De:function(){return Ne},z:function(){return $},eT:function(){return Y},ph:function(){return U},gB:function(){return I},wR:function(){return W},Xc:function(){return X}});var e=wp.element,t=wp.components,o=function(){return wp.element.createElement(t.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},a=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},l=function(){return wp.element.createElement(t.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(t.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},r=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(t.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},u=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},s=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},d=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},f=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},p=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},h=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(t.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}))},E=function(){return wp.element.createElement(t.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}),wp.element.createElement(t.Rect,{width:"10",height:"4",transform:"translate(3 6)",fill:"#00000080"}))},x=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},k=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},R=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},V=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(t.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},N=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},S=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},j={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=j&&j[e]?"display: ".concat(null==j?void 0:j[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},B=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,u=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(ut,{name:"Display",onReset:function(){n(u)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Le,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(o,null)),wp.element.createElement(Le,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(a,null)),wp.element.createElement(Le,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(l,null)),wp.element.createElement(Le,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(r,null)),wp.element.createElement(Le,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(i,null)),wp.element.createElement(Le,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(L(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(L(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(L(n[2])," } }"):""].filter(Boolean).join("\n")},L=function(e){var t,n,c,o;if(!e)return"";var a=K(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=Y(l,""),i=$(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=Y(m,""),s=$(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=Y(d,""),p=$(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=Y(h,""),v=$(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},H=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=K(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=Y(u,""),d=$(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=Y(f,""),h=$(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=Y(w,""),g=$(w,"px"),b=(null===(o=m)||void 0===o?void 0:o[3])||"",E=Y(b,""),k=$(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(ut,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(mt,{min:-9999,value:E,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(x,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(y,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(C,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(_,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},z={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=z&&z[e]?"position: ".concat(null==z?void 0:z[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},G=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(ut,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(st,{className:"bm-position-control__group"},wp.element.createElement(Le,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(k,null)),wp.element.createElement(Le,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(R,null)),wp.element.createElement(Le,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(V,null)),wp.element.createElement(Le,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(N,null)),wp.element.createElement(Le,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(S,null))))})),P=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},T=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(A(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(A(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(A(n[2])," } }"):""].filter(Boolean).join("\n")},A=function(e){var t,n;if(!e)return"";var c=K(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=Y(o,""),l=$(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=Y(r,""),m=$(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},Z=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=K(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",s=Y(m,""),d=$(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=Y(f,""),h=$(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(ut,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(st,null,wp.element.createElement(mt,{placeholder:"auto",value:s,onChange:function(e){var t=w?p+(e-s):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(u,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(mt,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?s+(e-p):s).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Le,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(T,null):wp.element.createElement(P,null))))},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},D=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(ut,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(mt,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(g,null)}))},F=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},q=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},X=function(e,t,n){var c=(e=K(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},J=function(e,t){var n=(e=K(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function Q(e){throw new TypeError('"'+e+'" is read-only')}var ee=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},te=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ce(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ce(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ce(n[2])," } }"):""].filter(Boolean).join("\n")},ce=function(e){if(!e)return"";var t=le(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,x=t.borderTopColor,y=t.borderRightValue,C=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,V=t.borderBottomUnit,N=t.borderBottomStyle,S=t.borderBottomColor,j=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(m," !important;")),L.push("padding-top: ".concat(u).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(w).concat(v,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(x,";")),L.push("border-right: ".concat(y).concat(C," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(V," ").concat(N," ").concat(S,";")),L.push("border-left: ".concat(j).concat(M," ").concat(B," ").concat(I,";")),L.join("")},oe=function(e,t){return Y((null==e?void 0:e[t])||"","")},ae=function(e,t){return $((null==e?void 0:e[t])||"","px")},le=function(e){var t=K(e,"|",4).split("|"),n=K((null==t?void 0:t[0])||"",",",4).split(","),c=K((null==t?void 0:t[1])||"",",",4).split(","),o=K((null==t?void 0:t[2])||"",",",4).split(","),a=K((null==t?void 0:t[3])||"",",",3).split(","),l=K((null==o?void 0:o[0])||"","_",3).split("_"),r=K((null==o?void 0:o[1])||"","_",3).split("_"),i=K((null==o?void 0:o[2])||"","_",3).split("_"),m=K((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:oe(n,0),marginTopUnit:ae(n,0),marginRightValue:oe(n,1),marginRightUnit:ae(n,1),marginBottomValue:oe(n,2),marginBottomUnit:ae(n,2),marginLeftValue:oe(n,3),marginLeftUnit:ae(n,3),paddingTopValue:oe(c,0),paddingTopUnit:ae(c,0),paddingRightValue:oe(c,1),paddingRightUnit:ae(c,1),paddingBottomValue:oe(c,2),paddingBottomUnit:ae(c,2),paddingLeftValue:oe(c,3),paddingLeftUnit:ae(c,3),borderTopValue:Y(u),borderTopUnit:$(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:Y(s),borderRightUnit:$(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:Y(d),borderBottomUnit:$(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:Y(f),borderLeftUnit:$(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},re=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=le(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,x=l.paddingRightValue,y=l.paddingRightUnit,C=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,V=l.borderTopValue,N=l.borderTopUnit,S=l.borderTopStyle,j=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,H=l.borderBottomValue,z=l.borderBottomUnit,U=l.borderBottomStyle,G=l.borderBottomColor,P=l.borderLeftValue,T=l.borderLeftUnit,O=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,W=l.isTickAllPadding,D=l.isTickAllBorder,F=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&Q("margin"),"padding"===e&&Q("padding"),"border"===e&&Q("border"),"connected"===e&&Q("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(ut,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(mt,{className:"bm-box-model__top",value:s,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):F("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):F("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",0,Z?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):F("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):F("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):F("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):F("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):F("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):F("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(We,{hideInput:!0,value:j,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",0,"".concat(V).concat(N,"_").concat(S,"_").concat(e))}}),wp.element.createElement(mt,{value:V,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",0,"".concat(e).concat(N,"_").concat(S,"_").concat(j))},min:0,unit:N,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",0,"".concat(V).concat(e,"_").concat(S,"_").concat(j))}}),wp.element.createElement(pt,{value:S,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(e,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(G),"".concat(P).concat(T,"_").concat(e,"_").concat(A))):F("border",0,"".concat(V).concat(N,"_").concat(e,"_").concat(j))}})),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",2,D?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(We,{hideInput:!0,value:L,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement(mt,{direction:"vertical",value:M,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(L))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(pt,{value:I,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(U,"_").concat(G),"".concat(P).concat(T,"_").concat(O,"_").concat(A))):F("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(pt,{value:U,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(G),"".concat(P).concat(T,"_").concat(O,"_").concat(A))):F("border",2,"".concat(H).concat(z,"_").concat(e,"_").concat(G))}}),wp.element.createElement(mt,{value:H,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",2,"".concat(e).concat(z,"_").concat(U,"_").concat(G))},min:0,unit:z,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",2,"".concat(H).concat(e,"_").concat(U,"_").concat(G))}}),wp.element.createElement(We,{hideInput:!0,value:G,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",2,"".concat(H).concat(z,"_").concat(U,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(pt,{value:O,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(U,"_").concat(G),"".concat(P).concat(T,"_").concat(e,"_").concat(A))):F("border",3,"".concat(P).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement(mt,{direction:"vertical",value:P,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",3,"".concat(e).concat(T,"_").concat(O,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",3,"".concat(P).concat(e,"_").concat(O,"_").concat(A))}}),wp.element.createElement(We,{hideInput:!0,value:A,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",3,"".concat(P).concat(T,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(mt,{className:"bm-box-model__top",value:b,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):F("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):F("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",1,W?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:x,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(y),"".concat(e).concat(y),"".concat(e).concat(y),"".concat(e).concat(y))):F("padding",1,"".concat(e).concat(y))},min:a,unit:y,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):F("padding",1,"".concat(x).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:C,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):F("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e))):F("padding",2,"".concat(C).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):F("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):F("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){if(!e)return"";switch(e){case"b":return"box-sizing: border-box;";case"c":return"box-sizing: content-box;"}return""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},me=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(e)};return wp.element.createElement("div",{className:"bm-box-sizing-control"},wp.element.createElement(ut,{name:"Box Sizing",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-inline-row"},wp.element.createElement(Le,{label:"Border Box",showTooltip:!0,className:"".concat("b"===a?"is-active":""),onClick:function(){return l("b")}},wp.element.createElement(b,null)),wp.element.createElement(Le,{label:"Content Box",showTooltip:!0,className:"".concat("c"===t?"is-active":""),onClick:function(){return l("c")}},wp.element.createElement(E,null))))},ue=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},se=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},de=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},fe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},pe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},he=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"13",width:"5",height:"2"}))},we=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"10",y:"13",width:"5",height:"2"}))},ge=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},be=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},Ee=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(t.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(t.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},xe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ye=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ce=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},_e=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}))},ke=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Re=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},Ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Se(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Se(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Se(n[2])," } }"):""].filter(Boolean).join("\n")},Se=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=K(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=Y(p,""),w=$(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=Y(v,""),b=$(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},je=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=K(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=Y(g,""),E=$(g,"px"),x=(null===(r=d)||void 0===r?void 0:r[6])||"",y=Y(x,""),C=$(x,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(ut,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Le,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ue,null)),wp.element.createElement(Le,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(se,null)),wp.element.createElement(Le,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(de,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(mt,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:y).concat(C))},icon:wp.element.createElement(fe,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(y).concat("w"!==p?e:C))}}),"w"===p&&wp.element.createElement(mt,{placeholder:b,value:y,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(C))},icon:wp.element.createElement(pe,null),unit:C,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(e))}})))};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Me.apply(this,arguments)}var Be,Ie=function(n){var c=(0,e.useRef)();return(0,e.useEffect)((function(){var e=function(e){c.current&&!c.current.contains(e.target)&&n.onClose()};return function(){return document.removeEventListener("mousedown",e)}}),[c]),wp.element.createElement(t.Popover,Me({},n,{ref:c,className:"bm-popover"}),wp.element.createElement("div",{ref:c},n.children))},Le=function(e){var n=e.style,c=void 0===n?{}:n,o=e.icon,a=void 0===o?null:o,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(t.Button,{style:c,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},He=n(412);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function Pe(e,t,n){var c;return c=function(e,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=ze(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ze(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),Pe(Pe(Pe(Pe(Pe(Pe(Be,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Oe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ae=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Ze=function(e){var t=Ae(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},We=function(n){var c=n.hideInput,o=void 0!==c&&c,a=n.value,l=n.onChange,r=n.placeholder,i=Ue((0,e.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,He.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,He.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(st,null,wp.element.createElement(Le,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),o?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ae(a),placeholder:Ze(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Te[n.toLowerCase()]){n=Te[n.toLowerCase()];var c=(0,He.Mj)(n).toRgb();c.a=d/100;var o=(0,He.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,He.Mj)(n).toRgb();a.a=d/100;var l=(0,He.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(mt,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,He.Mj)(a).toRgb();n.a=t/100;var c=(0,He.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Oe,null)}))),m?wp.element.createElement(t.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(t.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},De=wp.data,Fe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},qe=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(ht,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Le,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,De.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(s,null):"Tablet"===e?wp.element.createElement(d,null):wp.element.createElement(f,null))}))),o&&wp.element.createElement(Le,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Fe,null)))};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Xe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M12.478 8H15.5a.5.5 0 0 1 0 1h-3c-.708 0-1.21 0-1.601.032-.386.032-.622.092-.807.186a2 2 0 0 0-.874.874c-.094.185-.154.42-.186.807C9 11.29 9 11.792 9 12.5v3a.5.5 0 0 1-1 0v-3.022c0-.681 0-1.223.036-1.66.036-.448.113-.83.291-1.18a3 3 0 0 1 1.311-1.311c.35-.178.732-.255 1.18-.291C11.254 8 11.796 8 12.477 8",clipRule:"evenodd"}))},Je=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.522 8H8.5a.5.5 0 0 0 0 1h3c.708 0 1.21 0 1.601.032.386.032.622.092.807.186a2 2 0 0 1 .874.874c.094.185.154.42.186.807.032.392.032.893.032 1.601v3a.5.5 0 0 0 1 0v-3.022c0-.681 0-1.223-.036-1.66-.036-.448-.113-.83-.291-1.18a3 3 0 0 0-1.311-1.311c-.35-.178-.732-.255-1.18-.291C12.746 8 12.204 8 11.523 8",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M12.478 16H15.5a.5.5 0 0 0 0-1h-3c-.708 0-1.21 0-1.601-.032-.386-.032-.622-.092-.807-.186a2 2 0 0 1-.874-.874c-.094-.185-.154-.42-.186-.807C9 12.71 9 12.208 9 11.5v-3a.5.5 0 0 0-1 0v3.022c0 .681 0 1.223.036 1.66.036.448.113.83.291 1.18a3 3 0 0 0 1.311 1.311c.35.178.732.255 1.18.291.437.036.979.036 1.66.036",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.522 16H8.5a.5.5 0 0 1 0-1h3c.708 0 1.21 0 1.601-.032.386-.032.622-.092.807-.186a2 2 0 0 0 .874-.874c.094-.185.154-.42.186-.807C15 12.71 15 12.208 15 11.5v-3a.5.5 0 0 1 1 0v3.022c0 .681 0 1.223-.036 1.66-.036.448-.113.83-.291 1.18a3 3 0 0 1-1.311 1.311c-.35.178-.732.255-1.18.291-.437.036-.979.036-1.66.036",clipRule:"evenodd"}))},et=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8.9 6h-.02c-.403 0-.735 0-1.006.022-.28.023-.54.072-.782.196a2 2 0 0 0-.874.874c-.124.243-.173.501-.196.782C6 8.144 6 8.477 6 8.88v.62a.5.5 0 0 0 1 0v-.6c0-.428 0-.72.019-.944.018-.22.05-.332.09-.41a1 1 0 0 1 .437-.437c.078-.04.19-.072.41-.09C8.18 7 8.472 7 8.9 7h.6a.5.5 0 0 0 0-1zm6.2 0h.02c.403 0 .735 0 1.006.022.281.023.54.072.782.196a2 2 0 0 1 .874.874c.124.243.173.501.196.782.022.27.022.603.022 1.005V9.5a.5.5 0 0 1-1 0v-.6c0-.428 0-.72-.019-.944-.018-.22-.05-.332-.09-.41a1 1 0 0 0-.437-.437c-.078-.04-.19-.072-.41-.09A13 13 0 0 0 15.1 7h-.6a.5.5 0 0 1 0-1zm.02 12h-.62a.5.5 0 0 1 0-1h.6c.428 0 .72 0 .944-.019.22-.018.332-.05.41-.09a1 1 0 0 0 .437-.437c.04-.078.072-.19.09-.41.019-.225.019-.516.019-.944v-.6a.5.5 0 0 1 1 0v.62c0 .403 0 .735-.022 1.006-.023.281-.072.54-.196.782a2 2 0 0 1-.874.874c-.243.124-.501.173-.782.196-.27.022-.603.022-1.005.022M8.9 18h-.02c-.403 0-.735 0-1.006-.022-.281-.023-.54-.072-.782-.196a2 2 0 0 1-.874-.874c-.124-.243-.173-.501-.196-.782A13 13 0 0 1 6 15.12v-.62a.5.5 0 0 1 1 0v.6c0 .428 0 .72.019.944.018.22.05.332.09.41a1 1 0 0 0 .437.437c.078.04.19.072.41.09.225.019.516.019.944.019h.6a.5.5 0 0 1 0 1z",clipRule:"evenodd"}))},tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(nt(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(nt(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(nt(n[2])," } }"):""].filter(Boolean).join("\n")},nt=function(e){if(!e)return"";var t=ct(e),n=t.topLeftValue,c=t.topLeftUnit,o=t.topRightValue,a=t.topRightUnit,l=t.bottomRightValue,r=t.bottomRightUnit,i=t.bottomLeftValue,m=t.bottomLeftUnit,u=[];return u.push("border-top-left-radius: ".concat(n).concat(c,";")),u.push("border-top-right-radius: ".concat(o).concat(a,";")),u.push("border-bottom-left-radius: ".concat(i).concat(m,";")),u.push("border-bottom-right-radius: ".concat(l).concat(r,";")),u.join("")},ct=function(e){var t,n,c,o,a=K(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=(null===(n=a)||void 0===n?void 0:n[1])||"",i=(null===(c=a)||void 0===c?void 0:c[2])||"",m=(null===(o=a)||void 0===o?void 0:o[3])||"";return{topLeftValue:Y(l,""),topLeftUnit:$(l,"px"),topRightValue:Y(r,""),topRightUnit:$(r,"px"),bottomRightValue:Y(i,""),bottomRightUnit:$(i,"px"),bottomLeftValue:Y(m,""),bottomLeftUnit:$(m,"px")}},ot=function(t){var n=t.value,c=t.onChange,o=t.reset,a=void 0===o?"":o,l=ct(n),r=l.topLeftValue,i=l.topLeftUnit,m=l.topRightValue,u=l.topRightUnit,s=l.bottomRightValue,d=l.bottomRightUnit,f=l.bottomLeftValue,p=l.bottomLeftUnit,h=function(e){c(e)},w=$e((0,e.useState)(!1),2),v=w[0],g=w[1],b=r===m&&m===s&&s===f?r:"Mixed";return wp.element.createElement("div",{className:"bm-radius-control"},wp.element.createElement(ut,{name:"Corner Radius",onReset:function(){h(a)}}),wp.element.createElement(st,null,wp.element.createElement(mt,{placeholder:b,value:"Mixed"===b?"":r,onChange:function(e){h("".concat(e).concat(i,",").concat(e).concat(u,",").concat(e).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Xe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(Le,{onClick:function(){g(!v)}},wp.element.createElement(et,null))),v?wp.element.createElement(Ie,{className:"bm-radius-control__popover bm-popover",position:"bottom right",onClose:function(){g(!1)}},wp.element.createElement(st,null,wp.element.createElement(mt,{value:r,onChange:function(e){h("".concat(e).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Xe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:m,onChange:function(e){h("".concat(r).concat(i,",").concat(e).concat(u,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(p))}})),wp.element.createElement(st,null,wp.element.createElement(mt,{value:f,onChange:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Ke,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:s,onChange:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(e).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Qe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(e,",").concat(f).concat(p))}}))):null)};function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var rt=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},it=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},mt=function(t){var n,c,o=t.canDrag,a=void 0===o||o,l=t.className,r=void 0===l?"":l,i=t.step,m=void 0===i?1:i,u=t.withIncrementors,s=void 0!==u&&u,d=t.placeholder,f=void 0===d?0:d,h=t.min,w=void 0===h?0:h,v=t.max,g=t.direction,b=t.value,E=t.onChange,x=t.onChangeUnit,y=t.icon,C=t.unit,_=t.units,k=t.suggests,R=void 0===k?{}:k,V=at((0,e.useState)(!1),2),N=V[0],S=(V[1],at((0,e.useState)(!1),2)),j=S[0],M=S[1],B=at((0,e.useState)(!1),2),I=B[0],L=B[1],H=at((0,e.useState)(!1),2),z=H[0],U=H[1],G=b&&"string"==typeof b&&b.startsWith("g:"),P="",T="",O="";G&&(P=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),O=(null===(c=ctcGbGlobalStyles)||void 0===c||null===(c=c.collections)||void 0===c||null===(c=c.modes)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),q(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},W=b?8*b.toString().length:8,D=at((0,e.useState)(!1),2),F=D[0],$=D[1],Y=at((0,e.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(N?"is-hovered":""," ").concat(j?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},y&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){G||A(e)},onMouseUp:function(){G||M(!1)}},y),s&&!G?wp.element.createElement(Le,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(rt,null)):null,G?wp.element.createElement("span",{className:"bm-global"},P,wp.element.createElement(Le,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(p,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:W},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===z&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return U(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Le,{onClick:function(){Z(n),U(!1)}},e))}))))),C&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},C,K&&X&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Le,{onClick:function(){x(e)}},e))})))))),F&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.variables)||void 0===n?void 0:n.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[O])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Le,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!G?wp.element.createElement(Le,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement(it,null)):null)},ut=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(ht,{onReset:o}))},st=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},dt=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},ft=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},pt=function(e){var n=e.value,c=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(n)},wp.element.createElement(t.Button,{className:"bm-border-style__button",onClick:function(){c&&c("dashed"===n?"solid":"dashed")}},"dashed"===n?wp.element.createElement(dt,null):wp.element.createElement(ft,null)))},ht=function(e){var t=e.onReset;return wp.element.createElement(Le,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(p,null))},wt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(ut,{name:n}),wp.element.createElement(st,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Le,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(h,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(v,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},vt=n(470);wp.isShallowEqual;function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Et=function(t){var n=t.parent,c=t.id,o=t.style,a=t.selector,l=gt((0,e.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(c=(c=(c=(c=(c=c||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=F(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,e.useEffect)((function(){u()}),[]),(0,e.useEffect)((function(){r(o)}),[o]),(0,e.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var t="";t+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,x,y,C,_,k,R,V,N,S,j="",B=n,L="".concat(n,":hover"),H="".concat(n,":focus");return e&&(L=(L=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),H=(H=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),j+=M(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,B),j+=M(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,L),j+=M(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,H),j+=I(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,B),j+=I(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,L),j+=I(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,H),j+=U(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,B),j+=U(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,L),j+=U(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,H),j+=W(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,B),j+=W(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,L),j+=W(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,H),j+=O(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,B),j+=O(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,L),j+=O(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,H),j+=ne(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,B),j+=ne(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,L),j+=ne(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,H),j+=ie(null==t||null===(x=t.normal)||void 0===x?void 0:x.boxSizing,B),j+=ie(null==t||null===(y=t.hover)||void 0===y?void 0:y.boxSizing,L),j+=ie(null==t||null===(C=t.focus)||void 0===C?void 0:C.boxSizing,H),j+=Ne(null==t||null===(_=t.normal)||void 0===_?void 0:_.flex,B),j+=Ne(null==t||null===(k=t.hover)||void 0===k?void 0:k.flex,L),j+=Ne(null==t||null===(R=t.focus)||void 0===R?void 0:R.flex,H),j+=tt(null==t||null===(V=t.normal)||void 0===V?void 0:V.borderRadius,B),j+=tt(null==t||null===(N=t.hover)||void 0===N?void 0:N.borderRadius,L),j+tt(null==t||null===(S=t.focus)||void 0===S?void 0:S.borderRadius,H)}(n,o,a),e.innerHTML=t}),[o])},xt=n(838);function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ct.apply(this,arguments)}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){var c;return c=function(e,t){if("object"!=yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=yt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==yt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var St=(0,e.memo)((function(t){var n=t.device,c=t.deviceType,o=t.element,a=t.style,l=t.onChange,r=Vt((0,e.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,e.useRef)();(0,e.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return J(u(e),n)},f=function(e,t){!function(e,t){var n;l(kt(kt({},a),{},o?Rt({},o,kt(kt({},null==a?void 0:a[o]),{},Rt({},i,kt(kt({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},Rt({},e,t))))):Rt({},i,kt(kt({},null==a?void 0:a[i]),{},Rt({},e,t)))))}(e,X(u(e),t,n))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(wt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(qe,{className:"bm-responsive--position bm-control-seperator",label:(0,vt.__)("Layout","bm"),device:c}),wp.element.createElement(B,Ct({},t,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(je,Ct({},t,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(G,Ct({},t,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(H,Ct({},t,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(D,Ct({},t,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(qe,{className:"bm-responsive--position bm-control-seperator",label:(0,vt.__)("Box Model","bm"),device:c}),wp.element.createElement(Z,Ct({},t,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(re,Ct({},t,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})),wp.element.createElement(st,null,wp.element.createElement(me,Ct({},t,{value:d("boxSizing"),onChange:function(e){return f("boxSizing",e)}})),wp.element.createElement(ot,Ct({},t,{value:d("borderRadius"),onChange:function(e){return f("borderRadius",e)}}))))}));(0,e.memo)((function(e){var n=e.id,c=e.title,o=void 0===c?"Style":c,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,De.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(Et,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(xt.InspectorControls,null,wp.element.createElement(t.PanelBody,{title:o,initialOpen:l},wp.element.createElement(St,{deviceType:h,device:w,id:n,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),n(964),wp.compose,wp.hooks}()}(); -
blocks-monster/tags/1.8.6/includes/gutenberg/controls/class-css.php
r3224940 r3224949 131 131 case 'boxModel': 132 132 $properties .= $this->get_box_model_css( $value ); 133 break; 134 case 'boxSizing': 135 $properties .= $this->get_box_sizing_css( $value ); 136 break; 137 case 'borderRadius': 138 $properties .= $this->get_border_radius_css( $value ); 133 139 break; 134 140 } … … 350 356 351 357 $css = ''; 352 if ( $top_value ) {358 if ( '' !== $top_value ) { 353 359 $css .= 'top: ' . $top_value . $top_unit . ';'; 354 360 } 355 if ( $right_value ) {361 if ( '' !== $right_value ) { 356 362 $css .= 'right: ' . $right_value . $right_unit . ';'; 357 363 } 358 if ( $bottom_value ) {364 if ( '' !== $bottom_value ) { 359 365 $css .= 'bottom: ' . $bottom_value . $bottom_unit . ';'; 360 366 } 361 if ( $left_value ) {367 if ( '' !== $left_value ) { 362 368 $css .= 'left: ' . $left_value . $left_unit . ';'; 363 369 } … … 494 500 495 501 /** 502 * Get box sizing CSS 503 * 504 * @param array $value 505 */ 506 public function get_box_sizing_css( $value ) { 507 if ( ! $value ) { 508 return; 509 } 510 511 switch ( $value ) { 512 case 'c': $value = 'content-box'; break; 513 case 'b': $value = 'border-box'; break; 514 } 515 516 if ( ! $value ) { 517 return; 518 } 519 520 return 'box-sizing: ' . $value . ';'; 521 } 522 523 /** 524 * Get border radius CSS 525 * 526 * @param array $value 527 */ 528 public function get_border_radius_css( $value ) { 529 if ( ! $value ) { 530 return; 531 } 532 533 $filled = $this->get_device_values( $value, ',', 4 ); 534 $filled = explode( ',', $filled ); 535 536 $top_left = $filled[0] ?? ''; 537 $top_left_value = $this->get_value( $top_left ); 538 $top_left_unit = $this->get_unit( $top_left ); 539 $top_right = $filled[1] ?? ''; 540 $top_right_value = $this->get_value( $top_right ); 541 $top_right_unit = $this->get_unit( $top_right ); 542 $bottom_right = $filled[2] ?? ''; 543 $bottom_right_value = $this->get_value( $bottom_right ); 544 $bottom_right_unit = $this->get_unit( $bottom_right ); 545 $bottom_left = $filled[3] ?? ''; 546 $bottom_left_value = $this->get_value( $bottom_left ); 547 $bottom_left_unit = $this->get_unit( $bottom_left ); 548 549 $css = ''; 550 551 if ( $top_left_value ) { 552 $css .= 'border-top-left-radius: ' . $top_left_value . $top_left_unit . ';'; 553 } 554 555 if ( $top_right_value ) { 556 $css .= 'border-top-right-radius: ' . $top_right_value . $top_right_unit . ';'; 557 } 558 559 if ( $bottom_right_value ) { 560 $css .= 'border-bottom-right-radius: ' . $bottom_right_value . $bottom_right_unit . ';'; 561 } 562 563 if ( $bottom_left_value ) { 564 $css .= 'border-bottom-left-radius: ' . $bottom_left_value . $bottom_left_unit . ';'; 565 } 566 567 return $css; 568 } 569 570 /** 496 571 * Get value 497 572 * … … 500 575 */ 501 576 public function get_value( $value, $default = '' ) { 502 return preg_replace( '/[^0-9.]/', '', $value ) ?: $default; 577 $numeric_value = preg_replace( '/[^0-9.-]/', '', $value ); 578 return $numeric_value !== '' ? $numeric_value : $default; 503 579 } 504 580 -
blocks-monster/tags/1.8.6/readme.txt
r3224940 r3224949 3 3 Tags: Blocks, Gutenberg, Gutenberg Blocks, Elementor, Elementor Blocks 4 4 Tested up to: 6.7.1 5 Stable tag: 1.8. 55 Stable tag: 1.8.6 6 6 Requires PHP: 5.6 7 7 Requires at least: 4.4 … … 39 39 40 40 == Changelog == 41 42 = 1.8.6 = 43 44 * Improvement: Added the border radius control support for the Section Gutenberg block. 45 * Improvement: Added the box sizing control support for the Section Gutenberg block. 41 46 42 47 = 1.8.5 = -
blocks-monster/trunk/blocks-monster.php
r3224940 r3224949 10 10 * @wordpress-plugin 11 11 * Plugin Name: Blocks Monster 12 * Version: 1.8. 512 * Version: 1.8.6 13 13 * Plugin URI: https://blocks.monster/blocks-monster 14 14 * Description: The library of all the blocks for the Elementor blocks. … … 35 35 * @var string 36 36 */ 37 public $version = '1.8. 5';37 public $version = '1.8.6'; 38 38 39 39 /** -
blocks-monster/trunk/includes/gutenberg/blocks/section/js/index.js
r3224940 r3224949 1 !function(){var e={ 274:function(e,t,n){"use strict";n.d(t,{aE:function(){return Ye},kD:function(){return et},$K:function(){return le},$n:function(){return Me},sk:function(){return Ue},H2:function(){return wt},ZK:function(){return A},nl:function(){return M},so:function(){return je},Tj:function(){return Ct},JU:function(){return Xe},AM:function(){return Ve},yX:function(){return O},Yn:function(){return tt},Ft:function(){return De},fI:function(){return Je},Hw:function(){return P},Uw:function(){return nt},Py:function(){return D},yC:function(){return te},om:function(){return X},ZX:function(){return J},i7:function(){return T},Mi:function(){return V},x7:function(){return W},De:function(){return ke},z:function(){return q},eT:function(){return $},ph:function(){return H},gB:function(){return B},wR:function(){return Z},Xc:function(){return Y}});var c=wp.element,o=wp.components,a=function(){return wp.element.createElement(o.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},l=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},r=function(){return wp.element.createElement(o.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(o.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},m=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},u=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(o.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},s=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},d=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},f=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},p=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},h=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},w=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},v=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},E=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},x=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},k=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},R=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(o.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},j=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},S={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=S&&S[e]?"display: ".concat(null==S?void 0:S[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},M=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(Xe,{name:"Display",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Me,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(a,null)),wp.element.createElement(Me,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(l,null)),wp.element.createElement(Me,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(r,null)),wp.element.createElement(Me,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(i,null)),wp.element.createElement(Me,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(m,null)),wp.element.createElement(Me,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(u,null))))})),B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(I(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(I(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(I(n[2])," } }"):""].filter(Boolean).join("\n")},I=function(e){var t,n,c,o;if(!e)return"";var a=J(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=$(l,""),i=q(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=$(m,""),s=q(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=$(d,""),p=q(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=$(h,""),v=q(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},P=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=J(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=$(u,""),d=q(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=$(f,""),h=q(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=$(w,""),g=q(w,"px"),b=(null===(o=m)||void 0===o?void 0:o[3])||"",_=$(b,""),k=q(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(Xe,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(Ye,{min:-9999,value:_,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(E,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(y,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(C,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(Ye,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(x,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},L={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=L&&L[e]?"position: ".concat(null==L?void 0:L[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},O=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(Xe,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(Je,{className:"bm-position-control__group"},wp.element.createElement(Me,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(_,null)),wp.element.createElement(Me,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(k,null)),wp.element.createElement(Me,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(R,null)),wp.element.createElement(Me,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(j,null)),wp.element.createElement(Me,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),z=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},G=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(U(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(U(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(U(n[2])," } }"):""].filter(Boolean).join("\n")},U=function(e){var t,n;if(!e)return"";var c=J(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=$(o,""),l=q(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=$(r,""),m=q(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},A=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=J(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",u=$(m,""),d=q(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=$(f,""),h=q(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(Xe,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(Je,null,wp.element.createElement(Ye,{placeholder:"auto",value:u,onChange:function(e){var t=w?p+(e-u):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(s,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(u).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Ye,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?u+(e-p):u).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(u).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Me,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(u).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(G,null):wp.element.createElement(z,null))))},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},D=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(Xe,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(Ye,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(b,null)}))},W=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},F=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},Y=function(e,t,n){var c=(e=J(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},X=function(e,t){var n=(e=J(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},J=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function K(e){throw new TypeError('"'+e+'" is read-only')}var Q=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},ee=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ne(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ne(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ne(n[2])," } }"):""].filter(Boolean).join("\n")},ne=function(e){if(!e)return"";var t=ae(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,C=t.borderRightValue,x=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,j=t.borderBottomUnit,N=t.borderBottomStyle,S=t.borderBottomColor,V=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,P=[];return P.push("margin-top: ".concat(n).concat(c,";")),P.push("margin-right: ".concat(o).concat(a," !important;")),P.push("margin-bottom: ".concat(l).concat(r,";")),P.push("margin-left: ".concat(i).concat(m," !important;")),P.push("padding-top: ".concat(u).concat(s,";")),P.push("padding-right: ".concat(d).concat(f,";")),P.push("padding-bottom: ".concat(p).concat(h,";")),P.push("padding-left: ".concat(w).concat(v,";")),P.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),P.push("border-right: ".concat(C).concat(x," ").concat(_," ").concat(k,";")),P.push("border-bottom: ".concat(R).concat(j," ").concat(N," ").concat(S,";")),P.push("border-left: ".concat(V).concat(M," ").concat(B," ").concat(I,";")),P.join("")},ce=function(e,t){return $((null==e?void 0:e[t])||"","")},oe=function(e,t){return q((null==e?void 0:e[t])||"","px")},ae=function(e){var t=J(e,"|",4).split("|"),n=J((null==t?void 0:t[0])||"",",",4).split(","),c=J((null==t?void 0:t[1])||"",",",4).split(","),o=J((null==t?void 0:t[2])||"",",",4).split(","),a=J((null==t?void 0:t[3])||"",",",3).split(","),l=J((null==o?void 0:o[0])||"","_",3).split("_"),r=J((null==o?void 0:o[1])||"","_",3).split("_"),i=J((null==o?void 0:o[2])||"","_",3).split("_"),m=J((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ce(n,0),marginTopUnit:oe(n,0),marginRightValue:ce(n,1),marginRightUnit:oe(n,1),marginBottomValue:ce(n,2),marginBottomUnit:oe(n,2),marginLeftValue:ce(n,3),marginLeftUnit:oe(n,3),paddingTopValue:ce(c,0),paddingTopUnit:oe(c,0),paddingRightValue:ce(c,1),paddingRightUnit:oe(c,1),paddingBottomValue:ce(c,2),paddingBottomUnit:oe(c,2),paddingLeftValue:ce(c,3),paddingLeftUnit:oe(c,3),borderTopValue:$(u),borderTopUnit:q(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:$(s),borderRightUnit:q(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:$(d),borderBottomUnit:q(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:$(f),borderLeftUnit:q(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},le=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=ae(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,C=l.paddingRightUnit,x=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,j=l.borderTopValue,N=l.borderTopUnit,S=l.borderTopStyle,V=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,P=l.borderRightColor,L=l.borderBottomValue,H=l.borderBottomUnit,O=l.borderBottomStyle,z=l.borderBottomColor,G=l.borderLeftValue,T=l.borderLeftUnit,U=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,D=l.isTickAllPadding,W=l.isTickAllBorder,q=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&K("margin"),"padding"===e&&K("padding"),"border"===e&&K("border"),"connected"===e&&K("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(Xe,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(Ye,{className:"bm-box-model__top",value:s,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):q("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):q("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",0,Z?0:1)}}),wp.element.createElement(Ye,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):q("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):q("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):q("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):q("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=F(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):q("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):q("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(Ue,{hideInput:!0,value:V,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",0,"".concat(j).concat(N,"_").concat(S,"_").concat(e))}}),wp.element.createElement(Ye,{value:j,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",0,"".concat(e).concat(N,"_").concat(S,"_").concat(V))},min:0,unit:N,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",0,"".concat(j).concat(e,"_").concat(S,"_").concat(V))}}),wp.element.createElement(et,{value:S,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(e,"_").concat(V),"".concat(M).concat(B,"_").concat(e,"_").concat(P),"".concat(L).concat(H,"_").concat(e,"_").concat(z),"".concat(G).concat(T,"_").concat(e,"_").concat(A))):q("border",0,"".concat(j).concat(N,"_").concat(e,"_").concat(V))}})),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",2,W?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(Ue,{hideInput:!0,value:P,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement(Ye,{direction:"vertical",value:M,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(P))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(P))}}),wp.element.createElement(et,{value:I,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(e,"_").concat(P),"".concat(L).concat(H,"_").concat(O,"_").concat(z),"".concat(G).concat(T,"_").concat(U,"_").concat(A))):q("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(P))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(et,{value:O,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(I,"_").concat(P),"".concat(L).concat(H,"_").concat(e,"_").concat(z),"".concat(G).concat(T,"_").concat(U,"_").concat(A))):q("border",2,"".concat(L).concat(H,"_").concat(e,"_").concat(z))}}),wp.element.createElement(Ye,{value:L,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",2,"".concat(e).concat(H,"_").concat(O,"_").concat(z))},min:0,unit:H,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",2,"".concat(L).concat(e,"_").concat(O,"_").concat(z))}}),wp.element.createElement(Ue,{hideInput:!0,value:z,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",2,"".concat(L).concat(H,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(et,{value:U,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(V),"".concat(M).concat(B,"_").concat(I,"_").concat(P),"".concat(L).concat(H,"_").concat(O,"_").concat(z),"".concat(G).concat(T,"_").concat(e,"_").concat(A))):q("border",3,"".concat(G).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement(Ye,{direction:"vertical",value:G,onChange:function(e){e=F(e)?e:0,W?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(V),"".concat(e).concat(B,"_").concat(I,"_").concat(P),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(T,"_").concat(U,"_").concat(A))):q("border",3,"".concat(e).concat(T,"_").concat(U,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){W?$("border",("".concat(j).concat(e,"_").concat(S,"_").concat(V),"".concat(M).concat(e,"_").concat(I,"_").concat(P),"".concat(L).concat(e,"_").concat(O,"_").concat(z),"".concat(G).concat(e,"_").concat(U,"_").concat(A))):q("border",3,"".concat(G).concat(e,"_").concat(U,"_").concat(A))}}),wp.element.createElement(Ue,{hideInput:!0,value:A,onChange:function(e){W?$("border",("".concat(j).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(L).concat(H,"_").concat(O,"_").concat(e),"".concat(G).concat(T,"_").concat(U,"_").concat(e))):q("border",3,"".concat(G).concat(T,"_").concat(U,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(Ye,{className:"bm-box-model__top",value:b,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):q("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):q("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Me,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(Q,null):wp.element.createElement(ee,null),onClick:function(){q("connected",1,D?0:1)}}),wp.element.createElement(Ye,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C))):q("padding",1,"".concat(e).concat(C))},min:a,unit:C,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):q("padding",1,"".concat(y).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__bottom",value:x,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):q("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):q("padding",2,"".concat(x).concat(e))}}),wp.element.createElement(Ye,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=F(e)?e:0,D?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):q("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){D?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):q("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},re=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},ie=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},me=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},ue=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},se=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},de=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"13",width:"5",height:"2"}))},fe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},pe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"10",y:"13",width:"5",height:"2"}))},he=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},we=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(o.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(o.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},ge=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},be=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ee=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ye=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}))},Ce=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},xe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},_e=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Re(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Re(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Re(n[2])," } }"):""].filter(Boolean).join("\n")},Re=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=J(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=$(p,""),w=q(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=$(v,""),b=q(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},je=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=J(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=$(g,""),E=q(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",C=$(y,""),x=q(y,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(Xe,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Me,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(re,null)),wp.element.createElement(Me,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ie,null)),wp.element.createElement(Me,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(me,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(_e,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(_e,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null))):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(Me,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Me,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(Me,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),"w"===p?wp.element.createElement(Me,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(Me,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(Ye,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:C).concat(x))},icon:wp.element.createElement(ue,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(C).concat("w"!==p?e:x))}}),"w"===p&&wp.element.createElement(Ye,{placeholder:b,value:C,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(x))},icon:wp.element.createElement(se,null),unit:x,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(e))}})))};function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ne.apply(this,arguments)}var Se,Ve=function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){var n=function(n){t.current&&!t.current.contains(n.target)&&e.onClose()};return function(){return document.removeEventListener("mousedown",n)}}),[t]),wp.element.createElement(o.Popover,Ne({},e,{ref:t,className:"bm-popover"}),wp.element.createElement("div",{ref:t},e.children))},Me=function(e){var t=e.style,n=void 0===t?{}:t,c=e.icon,a=void 0===c?null:c,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(o.Button,{style:n,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},Be=n(412);function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function He(e,t,n){var c;return c=function(e,t){if("object"!=Ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Ie(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ie(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=(He(He(He(He(He(He(He(He(He(He(Se={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),He(He(He(He(He(He(He(He(He(He(Se,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),He(He(He(He(He(He(He(He(He(He(Se,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),He(He(He(He(He(He(He(He(He(He(Se,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),He(He(He(He(He(He(He(He(He(He(Se,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),He(He(He(He(He(He(He(He(He(He(Se,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),He(He(He(He(He(He(He(He(He(He(Se,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),He(He(He(He(He(He(He(He(He(He(Se,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),He(He(He(He(He(He(He(He(He(He(Se,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),He(He(He(He(He(He(He(He(He(He(Se,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),He(He(He(He(He(He(He(He(He(He(Se,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),He(He(He(He(He(He(He(He(He(He(Se,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),He(He(He(He(He(He(He(He(He(He(Se,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),He(He(He(He(He(He(He(He(He(He(Se,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),He(He(He(He(He(He(Se,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),ze=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ge=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Te=function(e){var t=Ge(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},Ue=function(e){var t=e.hideInput,n=void 0!==t&&t,a=e.value,l=e.onChange,r=e.placeholder,i=Pe((0,c.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,Be.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,Be.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(Je,null,wp.element.createElement(Me,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),n?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ge(a),placeholder:Te(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Oe[n.toLowerCase()]){n=Oe[n.toLowerCase()];var c=(0,Be.Mj)(n).toRgb();c.a=d/100;var o=(0,Be.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,Be.Mj)(n).toRgb();a.a=d/100;var l=(0,Be.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(Ye,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,Be.Mj)(a).toRgb();n.a=t/100;var c=(0,Be.Mj)(n).toHex();p(c)},icon:wp.element.createElement(ze,null)}))),m?wp.element.createElement(o.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(o.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Ae=wp.data,Ze=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},De=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(tt,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Me,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Ae.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(d,null):"Tablet"===e?wp.element.createElement(f,null):wp.element.createElement(p,null))}))),o&&wp.element.createElement(Me,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Ze,null)))};function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var qe=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},$e=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},Ye=function(e){var t,n,o=e.canDrag,a=void 0===o||o,l=e.className,r=void 0===l?"":l,i=e.step,m=void 0===i?1:i,u=e.withIncrementors,s=void 0!==u&&u,d=e.placeholder,f=void 0===d?0:d,p=e.min,w=void 0===p?0:p,v=e.max,g=e.direction,b=e.value,E=e.onChange,y=e.onChangeUnit,C=e.icon,x=e.unit,_=e.units,k=e.suggests,R=void 0===k?{}:k,j=We((0,c.useState)(!1),2),N=j[0],S=(j[1],We((0,c.useState)(!1),2)),V=S[0],M=S[1],B=We((0,c.useState)(!1),2),I=B[0],P=B[1],L=We((0,c.useState)(!1),2),H=L[0],O=L[1],z=b&&"string"==typeof b&&b.startsWith("g:"),G="",T="",U="";z&&(G=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),U=(null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.modes)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),F(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},D=b?8*b.toString().length:8,W=We((0,c.useState)(!1),2),q=W[0],$=W[1],Y=We((0,c.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(N?"is-hovered":""," ").concat(V?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},C&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){z||A(e)},onMouseUp:function(){z||M(!1)}},C),s&&!z?wp.element.createElement(Me,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(qe,null)):null,z?wp.element.createElement("span",{className:"bm-global"},G,wp.element.createElement(Me,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(h,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:D},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){P(!0)},onFocus:function(){P(!0)},onBlur:function(){return P(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===H&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return O(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Me,{onClick:function(){Z(n),O(!1)}},e))}))))),x&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},x,K&&X&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Me,{onClick:function(){y(e)}},e))})))))),q&&wp.element.createElement(Ve,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.variables)||void 0===t?void 0:t.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[U])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Me,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!z?wp.element.createElement(Me,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement($e,null)):null)},Xe=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(tt,{onReset:o}))},Je=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},Ke=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},et=function(e){var t=e.value,n=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(t)},wp.element.createElement(o.Button,{className:"bm-border-style__button",onClick:function(){n&&n("dashed"===t?"solid":"dashed")}},"dashed"===t?wp.element.createElement(Ke,null):wp.element.createElement(Qe,null)))},tt=function(e){var t=e.onReset;return wp.element.createElement(Me,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(h,null))},nt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(Xe,{name:n}),wp.element.createElement(Je,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Me,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(w,null),"hover"===e&&wp.element.createElement(v,null),"active"===e&&wp.element.createElement(g,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},ct=n(470);wp.isShallowEqual;function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var lt=function(e){var t=e.parent,n=e.id,o=e.style,a=e.selector,l=ot((0,c.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(n=(n=(n=(n=(n=n||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=W(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,c.useEffect)((function(){u()}),[]),(0,c.useEffect)((function(){r(o)}),[o]),(0,c.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var n="";n+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,y,C,x,_="",k=n,R="".concat(n,":hover"),j="".concat(n,":focus");return e&&(R=(R=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),j=(j=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),_+=V(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,k),_+=V(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,R),_+=V(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,j),_+=B(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,k),_+=B(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,R),_+=B(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,j),_+=H(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,k),_+=H(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,R),_+=H(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,j),_+=Z(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,k),_+=Z(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,R),_+=Z(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,j),_+=T(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,k),_+=T(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,R),_+=T(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,j),_+=te(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,k),_+=te(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,R),_+=te(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,j),_+=ke(null==t||null===(y=t.normal)||void 0===y?void 0:y.flex,k),_+=ke(null==t||null===(C=t.hover)||void 0===C?void 0:C.flex,R),_+ke(null==t||null===(x=t.focus)||void 0===x?void 0:x.flex,j)}(t,o,a),e.innerHTML=n}),[o])},rt=n(838);function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},mt.apply(this,arguments)}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){var c;return c=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=it(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==it(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var ht=(0,c.memo)((function(e){var t=e.device,n=e.deviceType,o=e.element,a=e.style,l=e.onChange,r=ft((0,c.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,c.useRef)();(0,c.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return X(u(e),t)},f=function(e,n){!function(e,t){var n;l(st(st({},a),{},o?dt({},o,st(st({},null==a?void 0:a[o]),{},dt({},i,st(st({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},dt({},e,t))))):dt({},i,st(st({},null==a?void 0:a[i]),{},dt({},e,t)))))}(e,Y(u(e),n,t))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(nt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(De,{className:"bm-responsive--position bm-control-seperator",label:(0,ct.__)("Layout","bm"),device:n}),wp.element.createElement(M,mt({},e,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(je,mt({},e,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(O,mt({},e,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(P,mt({},e,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(D,mt({},e,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(De,{className:"bm-responsive--position bm-control-seperator",label:(0,ct.__)("Box Model","bm"),device:n}),wp.element.createElement(A,mt({},e,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(le,mt({},e,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})))})),wt=(0,c.memo)((function(e){var t=e.id,n=e.title,c=void 0===n?"Style":n,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Ae.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(lt,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(rt.InspectorControls,null,wp.element.createElement(o.PanelBody,{title:c,initialOpen:l},wp.element.createElement(ht,{deviceType:h,device:w,id:t,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),vt=n(164);n(964),wp.compose,wp.hooks;function gt(e){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(e)}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){var c;return c=function(e,t){if("object"!=gt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=gt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==gt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ct=function(e){var t=e.childs,n=void 0===t?[]:t,c=e.placeholder,o=e.allowedBlocks,a=e.template,l=e.blockProps,r={templateLock:!1,renderAppender:rt.InnerBlocks.ButtonBlockAppender};o&&(r.allowedBlocks=o),a&&(r.template=a);var i=(0,rt.useInnerBlocksProps)(Et(Et({},l),{},{className:(0,vt.A)(l.className,"bm-inner-blocks")}),r);return c&&0===n.length?wp.element.createElement("div",i,c):wp.element.createElement("div",i)}},412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),C.string):"object"==n(e)&&null!==e?x(e,C.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},j=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(j(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(j(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},V=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n},164:function(e,t,n){"use strict";function c(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=c(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.A=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=c(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(964);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function o(e,n,c){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var c=e[Symbol.toPrimitive];if(void 0!==c){var o=c.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[n]=c,e}var a=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"bm/section","title":"Section","description":"Allow to create a section for the content.","version":"0.0.1","icon":"editor-table","attributes":{"_bm_id":{"type":"string","default":""},"_bm_style":{"type":"object"}},"category":"blocks-monster","textdomain":"blocks-monster","style":"file:./css/style.css","editorScript":"file:./js/index.js"}'),l=n(164),r=n(838),i=n(274),m=function(e){var t=e.attributes,n=t._bm_id,c=t._bm_style,o=e.setAttributes,a=e.className,m=e.clientId,u=(0,l.A)(a),s=(0,r.useBlockProps)({className:u});return wp.element.createElement(React.Fragment,null,wp.element.createElement(i.H2,{id:n,clientId:m,style:c,onChange:function(e){o({_bm_style:e})}}),wp.element.createElement(i.Tj,{blockProps:s}))},u=(n(470),function(){var e=r.useBlockProps.save();return wp.element.createElement("div",e,wp.element.createElement(r.InnerBlocks.Content,null))});!function(t){if(t){var n=t.metadata,a=t.settings,l=t.name;(0,e.registerBlockType)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:l},n),a)}}({name:a.name,metadata:a,settings:{icon:"list-view",edit:m,save:u}})}()}();1 !function(){var e={19:function(e,t,n){"use strict";n.d(t,{aE:function(){return mt},Z6:function(){return at},kD:function(){return ht},$K:function(){return ie},uO:function(){return me},$n:function(){return Pe},sk:function(){return We},H2:function(){return Bt},ZK:function(){return D},nl:function(){return I},so:function(){return Be},Tj:function(){return Ot},JU:function(){return st},AM:function(){return Le},yX:function(){return U},Yn:function(){return vt},Ft:function(){return $e},fI:function(){return dt},Hw:function(){return H},Uw:function(){return wt},Py:function(){return F},AQ:function(){return nt},yC:function(){return ce},TH:function(){return ue},om:function(){return K},ZX:function(){return Q},i7:function(){return A},Mi:function(){return M},x7:function(){return q},De:function(){return je},z:function(){return Y},eT:function(){return X},ph:function(){return z},gB:function(){return L},wR:function(){return W},Xc:function(){return J}});var c=wp.element,o=wp.components,a=function(){return wp.element.createElement(o.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},l=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},r=function(){return wp.element.createElement(o.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(o.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},u=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(o.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(o.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(o.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(o.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(o.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(o.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},s=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},d=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},f=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},p=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},h=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(o.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(o.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(o.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},E=function(){return wp.element.createElement(o.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}))},y=function(){return wp.element.createElement(o.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}),wp.element.createElement(o.Rect,{width:"10",height:"4",transform:"translate(3 6)",fill:"#00000080"}))},x=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},k=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},R=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},S=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},V=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(o.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},j=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(o.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},B={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=B&&B[e]?"display: ".concat(null==B?void 0:B[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},I=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(st,{name:"Display",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Pe,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(a,null)),wp.element.createElement(Pe,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(l,null)),wp.element.createElement(Pe,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(r,null)),wp.element.createElement(Pe,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(i,null)),wp.element.createElement(Pe,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(u,null)),wp.element.createElement(Pe,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(P(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(P(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(P(n[2])," } }"):""].filter(Boolean).join("\n")},P=function(e){var t,n,c,o;if(!e)return"";var a=Q(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=X(l,""),i=Y(l,"px"),u=(null===(n=a)||void 0===n?void 0:n[1])||"",m=X(u,""),s=Y(u,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=X(d,""),p=Y(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",v=X(h,""),w=Y(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(m).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(v).concat(w,";")),g.join("")},H=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,u=Q(a,",",4),m=(null===(t=u=u.split(","))||void 0===t?void 0:t[0])||"",s=X(m,""),d=Y(m,"px"),f=(null===(n=u)||void 0===n?void 0:n[1])||"",p=X(f,""),h=Y(f,"px"),v=(null===(c=u)||void 0===c?void 0:c[2])||"",w=X(v,""),g=Y(v,"px"),b=(null===(o=u)||void 0===o?void 0:o[3])||"",E=X(b,""),y=Y(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(st,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(mt,{min:-9999,value:E,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(e).concat(y))},icon:wp.element.createElement(x,null),unit:y,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(C,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(w).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(_,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w).concat(g,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:w,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(E).concat(y))},icon:wp.element.createElement(k,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(w).concat(e,",").concat(E).concat(y))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},O={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=O&&O[e]?"position: ".concat(null==O?void 0:O[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},U=(0,c.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(st,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(dt,{className:"bm-position-control__group"},wp.element.createElement(Pe,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(R,null)),wp.element.createElement(Pe,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(S,null)),wp.element.createElement(Pe,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(V,null)),wp.element.createElement(Pe,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(j,null)),wp.element.createElement(Pe,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),G=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},T=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Z(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Z(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Z(n[2])," } }"):""].filter(Boolean).join("\n")},Z=function(e){var t,n;if(!e)return"";var c=Q(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=X(o,""),l=Y(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=X(r,""),u=Y(r,"px"),m=[];return m.push("width: ".concat(a).concat(l,";")),m.push("height: ".concat(i).concat(u,";")),m.join("")},D=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=Q(o,",",3),u=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",m=X(u,""),d=Y(u,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=X(f,""),h=Y(f,"px"),v=Number((null===(c=i)||void 0===c?void 0:c[2])||0),w=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(st,{name:"Dimentions",onReset:function(){w(r)}}),wp.element.createElement(dt,null,wp.element.createElement(mt,{placeholder:"auto",value:m,onChange:function(e){var t=v?p+(e-m):p;w("".concat(e).concat(d,",").concat(t).concat(h,",").concat(v))},icon:wp.element.createElement(s,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){w("".concat(m).concat(e,",").concat(p).concat(h,",").concat(v))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(mt,{placeholder:"auto",value:p,onChange:function(e){w("".concat(v?m+(e-p):m).concat(d,",").concat(e).concat(h,",").concat(v))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){w("".concat(m).concat(d,",").concat(p).concat(e,",").concat(v))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Pe,{className:"bm-width-and-height-control__connect ".concat(v?"is-active":""),onClick:function(){var e=0===v?1:0;w("".concat(m).concat(d,",").concat(p).concat(h,",").concat(e))}},v?wp.element.createElement(T,null):wp.element.createElement(G,null))))},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},F=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(st,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(mt,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(b,null)}))},q=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},$=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},J=function(e,t,n){var c=(e=Q(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},K=function(e,t){var n=(e=Q(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},Q=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function ee(e){throw new TypeError('"'+e+'" is read-only')}var te=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},ne=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(oe(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(oe(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(oe(n[2])," } }"):""].filter(Boolean).join("\n")},oe=function(e){if(!e)return"";var t=re(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,u=t.marginLeftUnit,m=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,v=t.paddingLeftValue,w=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,x=t.borderRightValue,C=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,S=t.borderBottomUnit,V=t.borderBottomStyle,j=t.borderBottomColor,N=t.borderLeftValue,B=t.borderLeftUnit,M=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(u," !important;")),L.push("padding-top: ".concat(m).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(v).concat(w,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),L.push("border-right: ".concat(x).concat(C," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(S," ").concat(V," ").concat(j,";")),L.push("border-left: ".concat(N).concat(B," ").concat(M," ").concat(I,";")),L.join("")},ae=function(e,t){return X((null==e?void 0:e[t])||"","")},le=function(e,t){return Y((null==e?void 0:e[t])||"","px")},re=function(e){var t=Q(e,"|",4).split("|"),n=Q((null==t?void 0:t[0])||"",",",4).split(","),c=Q((null==t?void 0:t[1])||"",",",4).split(","),o=Q((null==t?void 0:t[2])||"",",",4).split(","),a=Q((null==t?void 0:t[3])||"",",",3).split(","),l=Q((null==o?void 0:o[0])||"","_",3).split("_"),r=Q((null==o?void 0:o[1])||"","_",3).split("_"),i=Q((null==o?void 0:o[2])||"","_",3).split("_"),u=Q((null==o?void 0:o[3])||"","_",3).split("_"),m=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==u?void 0:u[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ae(n,0),marginTopUnit:le(n,0),marginRightValue:ae(n,1),marginRightUnit:le(n,1),marginBottomValue:ae(n,2),marginBottomUnit:le(n,2),marginLeftValue:ae(n,3),marginLeftUnit:le(n,3),paddingTopValue:ae(c,0),paddingTopUnit:le(c,0),paddingRightValue:ae(c,1),paddingRightUnit:le(c,1),paddingBottomValue:ae(c,2),paddingBottomUnit:le(c,2),paddingLeftValue:ae(c,3),paddingLeftUnit:le(c,3),borderTopValue:X(m),borderTopUnit:Y(m),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:X(s),borderRightUnit:Y(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:X(d),borderBottomUnit:Y(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:X(f),borderLeftUnit:Y(f),borderLeftStyle:(null==u?void 0:u[1])||"",borderLeftColor:(null==u?void 0:u[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},ie=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=re(t),r=l.margin,i=l.padding,u=l.border,m=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,v=l.marginBottomUnit,w=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,x=l.paddingRightUnit,C=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,S=l.borderTopValue,V=l.borderTopUnit,j=l.borderTopStyle,N=l.borderTopColor,B=l.borderRightValue,M=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,P=l.borderBottomValue,H=l.borderBottomUnit,O=l.borderBottomStyle,z=l.borderBottomColor,U=l.borderLeftValue,G=l.borderLeftUnit,T=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,D=l.isTickAllPadding,W=l.isTickAllBorder,F=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(u[t]=c),"connected"===e&&(m[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(u.join(","),"|").concat(m.join(",")))},q=function(e,t){"margin"===e&&ee("margin"),"padding"===e&&ee("padding"),"border"===e&&ee("border"),"connected"===e&&ee("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(u.join(","),"|").concat(m.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(st,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(mt,{className:"bm-box-model__top",value:s,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):F("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):F("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",0,Z?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):F("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):F("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(v),"".concat(e).concat(v),"".concat(e).concat(v),"".concat(e).concat(v))):F("margin",2,"".concat(e).concat(v))},min:a,unit:v,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):F("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:w,onChange:function(e){e=$(e)?e:0,Z?q("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):F("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?q("margin",("".concat(w).concat(e),"".concat(w).concat(e),"".concat(w).concat(e),"".concat(w).concat(e))):F("margin",3,"".concat(w).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(We,{hideInput:!0,value:N,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",0,"".concat(S).concat(V,"_").concat(j,"_").concat(e))}}),wp.element.createElement(mt,{value:S,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",0,"".concat(e).concat(V,"_").concat(j,"_").concat(N))},min:0,unit:V,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",0,"".concat(S).concat(e,"_").concat(j,"_").concat(N))}}),wp.element.createElement(ht,{value:j,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(e,"_").concat(N),"".concat(B).concat(M,"_").concat(e,"_").concat(L),"".concat(P).concat(H,"_").concat(e,"_").concat(z),"".concat(U).concat(G,"_").concat(e,"_").concat(A))):F("border",0,"".concat(S).concat(V,"_").concat(e,"_").concat(N))}})),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",2,W?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(We,{hideInput:!0,value:L,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",1,"".concat(B).concat(M,"_").concat(I,"_").concat(e))}}),wp.element.createElement(mt,{direction:"vertical",value:B,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",1,"".concat(e).concat(M,"_").concat(I,"_").concat(L))},min:0,unit:M,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",1,"".concat(B).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(ht,{value:I,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(e,"_").concat(L),"".concat(P).concat(H,"_").concat(O,"_").concat(z),"".concat(U).concat(G,"_").concat(T,"_").concat(A))):F("border",1,"".concat(B).concat(M,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(ht,{value:O,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(I,"_").concat(L),"".concat(P).concat(H,"_").concat(e,"_").concat(z),"".concat(U).concat(G,"_").concat(T,"_").concat(A))):F("border",2,"".concat(P).concat(H,"_").concat(e,"_").concat(z))}}),wp.element.createElement(mt,{value:P,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",2,"".concat(e).concat(H,"_").concat(O,"_").concat(z))},min:0,unit:H,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",2,"".concat(P).concat(e,"_").concat(O,"_").concat(z))}}),wp.element.createElement(We,{hideInput:!0,value:z,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",2,"".concat(P).concat(H,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(ht,{value:T,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(N),"".concat(B).concat(M,"_").concat(I,"_").concat(L),"".concat(P).concat(H,"_").concat(O,"_").concat(z),"".concat(U).concat(G,"_").concat(e,"_").concat(A))):F("border",3,"".concat(U).concat(G,"_").concat(e,"_").concat(A))}}),wp.element.createElement(mt,{direction:"vertical",value:U,onChange:function(e){e=$(e)?e:0,W?q("border",("".concat(e).concat(V,"_").concat(j,"_").concat(N),"".concat(e).concat(M,"_").concat(I,"_").concat(L),"".concat(e).concat(H,"_").concat(O,"_").concat(z),"".concat(e).concat(G,"_").concat(T,"_").concat(A))):F("border",3,"".concat(e).concat(G,"_").concat(T,"_").concat(A))},min:0,unit:G,units:["px","em","%"],onChangeUnit:function(e){W?q("border",("".concat(S).concat(e,"_").concat(j,"_").concat(N),"".concat(B).concat(e,"_").concat(I,"_").concat(L),"".concat(P).concat(e,"_").concat(O,"_").concat(z),"".concat(U).concat(e,"_").concat(T,"_").concat(A))):F("border",3,"".concat(U).concat(e,"_").concat(T,"_").concat(A))}}),wp.element.createElement(We,{hideInput:!0,value:A,onChange:function(e){W?q("border",("".concat(S).concat(V,"_").concat(j,"_").concat(e),"".concat(B).concat(M,"_").concat(I,"_").concat(e),"".concat(P).concat(H,"_").concat(O,"_").concat(e),"".concat(U).concat(G,"_").concat(T,"_").concat(e))):F("border",3,"".concat(U).concat(G,"_").concat(T,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(mt,{className:"bm-box-model__top",value:b,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):F("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):F("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Pe,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(te,null):wp.element.createElement(ne,null),onClick:function(){F("connected",1,D?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(x),"".concat(e).concat(x),"".concat(e).concat(x),"".concat(e).concat(x))):F("padding",1,"".concat(e).concat(x))},min:a,unit:x,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):F("padding",1,"".concat(y).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:C,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):F("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e))):F("padding",2,"".concat(C).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=$(e)?e:0,D?q("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):F("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){D?q("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):F("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){if(!e)return"";switch(e){case"b":return"box-sizing: border-box;";case"c":return"box-sizing: content-box;"}return""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},me=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(e)};return wp.element.createElement("div",{className:"bm-box-sizing-control"},wp.element.createElement(st,{name:"Box Sizing",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-inline-row"},wp.element.createElement(Pe,{label:"Border Box",showTooltip:!0,className:"".concat("b"===a?"is-active":""),onClick:function(){return l("b")}},wp.element.createElement(E,null)),wp.element.createElement(Pe,{label:"Content Box",showTooltip:!0,className:"".concat("c"===t?"is-active":""),onClick:function(){return l("c")}},wp.element.createElement(y,null))))},se=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},de=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},fe=function(){return wp.element.createElement(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(o.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},pe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},he=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"13",width:"5",height:"2"}))},we=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},ge=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(o.Rect,{x:"10",y:"13",width:"5",height:"2"}))},be=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},Ee=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(o.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},ye=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(o.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(o.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},xe=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ce=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},_e=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(o.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ke=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"5",y:"9",width:"10",height:"2"}))},Re=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Se=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},Ve=function(){return wp.element.createElement(o.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Ne(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Ne(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Ne(n[2])," } }"):""].filter(Boolean).join("\n")},Ne=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=Q(e,",",7),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=X(p,""),v=Y(p,"px"),w=(null===(r=i)||void 0===r?void 0:r[6])||"",g=X(w,""),b=Y(w,"px"),E=[];return u&&E.push("flex-direction: ".concat(u,";")),m&&E.push("flex-wrap: ".concat(m,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(v,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},Be=function(e){var t,n,c,o,a,l,r,i=e.value,u=e.onChange,m=e.reset,s=void 0===m?"":m,d=Q(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",v=(null===(o=d)||void 0===o?void 0:o[3])||"",w=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=X(g,""),E=Y(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",x=X(y,""),C=Y(y,"px"),_=function(e){u(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===v&&(null==e?void 0:e.justifyContent)===w};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(st,{name:"Flex Box",onReset:function(){u(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Pe,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(se,null)),wp.element.createElement(Pe,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(de,null)),wp.element.createElement(Pe,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(fe,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Se,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(be,null))):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Pe,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ve,null))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",c,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"sb"===w?wp.element.createElement(Pe,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Pe,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",sb,").concat(b).concat(E,",").concat(x).concat(C)):_("".concat(f,",").concat(p,",c,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Pe,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Pe,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(v,",fe,").concat(b).concat(E,",").concat(x).concat(C))}},wp.element.createElement(ge,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(mt,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(e).concat(E,",").concat("w"!==p?e:x).concat(C))},icon:wp.element.createElement(pe,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(e,",").concat(x).concat("w"!==p?e:C))}}),"w"===p&&wp.element.createElement(mt,{placeholder:b,value:x,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(e).concat(C))},icon:wp.element.createElement(he,null),unit:C,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(v,",").concat(w,",").concat(b).concat(E,",").concat(x).concat(e))}})))};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Me.apply(this,arguments)}var Ie,Le=function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){var n=function(n){t.current&&!t.current.contains(n.target)&&e.onClose()};return function(){return document.removeEventListener("mousedown",n)}}),[t]),wp.element.createElement(o.Popover,Me({},e,{ref:t,className:"bm-popover"}),wp.element.createElement("div",{ref:t},e.children))},Pe=function(e){var t=e.style,n=void 0===t?{}:t,c=e.icon,a=void 0===c?null:c,l=e.label,r=void 0===l?"":l,i=e.showTooltip,u=void 0!==i&&i,m=e.onClick,s=e.className,d=e.children;return wp.element.createElement(o.Button,{style:n,icon:a,label:r,showTooltip:u,className:"bm-button-control ".concat(s),onClick:m},d)},He=n(412);function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function Ge(e,t,n){var c;return c=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Oe(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Oe(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ge(Ie,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),Ge(Ge(Ge(Ge(Ge(Ge(Ie,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Ae=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ze=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},De=function(e){var t=Ze(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},We=function(e){var t=e.hideInput,n=void 0!==t&&t,a=e.value,l=e.onChange,r=e.placeholder,i=ze((0,c.useState)(!1),2),u=i[0],m=i[1],s="",d=100;if(a=a||r){var f=(0,He.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,He.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(u?"is-active":"")},wp.element.createElement(dt,null,wp.element.createElement(Pe,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){m(!u)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),n?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ze(a),placeholder:De(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Te[n.toLowerCase()]){n=Te[n.toLowerCase()];var c=(0,He.Mj)(n).toRgb();c.a=d/100;var o=(0,He.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,He.Mj)(n).toRgb();a.a=d/100;var l=(0,He.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(mt,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,He.Mj)(a).toRgb();n.a=t/100;var c=(0,He.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Ae,null)}))),u?wp.element.createElement(o.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return m(!1)}},wp.element.createElement(o.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Fe=wp.data,qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},$e=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(vt,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Pe,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Fe.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(d,null):"Tablet"===e?wp.element.createElement(f,null):wp.element.createElement(p,null))}))),o&&wp.element.createElement(Pe,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(qe,null)))};function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Je=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M12.478 8H15.5a.5.5 0 0 1 0 1h-3c-.708 0-1.21 0-1.601.032-.386.032-.622.092-.807.186a2 2 0 0 0-.874.874c-.094.185-.154.42-.186.807C9 11.29 9 11.792 9 12.5v3a.5.5 0 0 1-1 0v-3.022c0-.681 0-1.223.036-1.66.036-.448.113-.83.291-1.18a3 3 0 0 1 1.311-1.311c.35-.178.732-.255 1.18-.291C11.254 8 11.796 8 12.477 8",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.522 8H8.5a.5.5 0 0 0 0 1h3c.708 0 1.21 0 1.601.032.386.032.622.092.807.186a2 2 0 0 1 .874.874c.094.185.154.42.186.807.032.392.032.893.032 1.601v3a.5.5 0 0 0 1 0v-3.022c0-.681 0-1.223-.036-1.66-.036-.448-.113-.83-.291-1.18a3 3 0 0 0-1.311-1.311c-.35-.178-.732-.255-1.18-.291C12.746 8 12.204 8 11.523 8",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M12.478 16H15.5a.5.5 0 0 0 0-1h-3c-.708 0-1.21 0-1.601-.032-.386-.032-.622-.092-.807-.186a2 2 0 0 1-.874-.874c-.094-.185-.154-.42-.186-.807C9 12.71 9 12.208 9 11.5v-3a.5.5 0 0 0-1 0v3.022c0 .681 0 1.223.036 1.66.036.448.113.83.291 1.18a3 3 0 0 0 1.311 1.311c.35.178.732.255 1.18.291.437.036.979.036 1.66.036",clipRule:"evenodd"}))},et=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M11.522 16H8.5a.5.5 0 0 1 0-1h3c.708 0 1.21 0 1.601-.032.386-.032.622-.092.807-.186a2 2 0 0 0 .874-.874c.094-.185.154-.42.186-.807C15 12.71 15 12.208 15 11.5v-3a.5.5 0 0 1 1 0v3.022c0 .681 0 1.223-.036 1.66-.036.448-.113.83-.291 1.18a3 3 0 0 1-1.311 1.311c-.35.178-.732.255-1.18.291-.437.036-.979.036-1.66.036",clipRule:"evenodd"}))},tt=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M8.9 6h-.02c-.403 0-.735 0-1.006.022-.28.023-.54.072-.782.196a2 2 0 0 0-.874.874c-.124.243-.173.501-.196.782C6 8.144 6 8.477 6 8.88v.62a.5.5 0 0 0 1 0v-.6c0-.428 0-.72.019-.944.018-.22.05-.332.09-.41a1 1 0 0 1 .437-.437c.078-.04.19-.072.41-.09C8.18 7 8.472 7 8.9 7h.6a.5.5 0 0 0 0-1zm6.2 0h.02c.403 0 .735 0 1.006.022.281.023.54.072.782.196a2 2 0 0 1 .874.874c.124.243.173.501.196.782.022.27.022.603.022 1.005V9.5a.5.5 0 0 1-1 0v-.6c0-.428 0-.72-.019-.944-.018-.22-.05-.332-.09-.41a1 1 0 0 0-.437-.437c-.078-.04-.19-.072-.41-.09A13 13 0 0 0 15.1 7h-.6a.5.5 0 0 1 0-1zm.02 12h-.62a.5.5 0 0 1 0-1h.6c.428 0 .72 0 .944-.019.22-.018.332-.05.41-.09a1 1 0 0 0 .437-.437c.04-.078.072-.19.09-.41.019-.225.019-.516.019-.944v-.6a.5.5 0 0 1 1 0v.62c0 .403 0 .735-.022 1.006-.023.281-.072.54-.196.782a2 2 0 0 1-.874.874c-.243.124-.501.173-.782.196-.27.022-.603.022-1.005.022M8.9 18h-.02c-.403 0-.735 0-1.006-.022-.281-.023-.54-.072-.782-.196a2 2 0 0 1-.874-.874c-.124-.243-.173-.501-.196-.782A13 13 0 0 1 6 15.12v-.62a.5.5 0 0 1 1 0v.6c0 .428 0 .72.019.944.018.22.05.332.09.41a1 1 0 0 0 .437.437c.078.04.19.072.41.09.225.019.516.019.944.019h.6a.5.5 0 0 1 0 1z",clipRule:"evenodd"}))},nt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ct(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ct(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ct(n[2])," } }"):""].filter(Boolean).join("\n")},ct=function(e){if(!e)return"";var t=ot(e),n=t.topLeftValue,c=t.topLeftUnit,o=t.topRightValue,a=t.topRightUnit,l=t.bottomRightValue,r=t.bottomRightUnit,i=t.bottomLeftValue,u=t.bottomLeftUnit,m=[];return m.push("border-top-left-radius: ".concat(n).concat(c,";")),m.push("border-top-right-radius: ".concat(o).concat(a,";")),m.push("border-bottom-left-radius: ".concat(i).concat(u,";")),m.push("border-bottom-right-radius: ".concat(l).concat(r,";")),m.join("")},ot=function(e){var t,n,c,o,a=Q(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=(null===(n=a)||void 0===n?void 0:n[1])||"",i=(null===(c=a)||void 0===c?void 0:c[2])||"",u=(null===(o=a)||void 0===o?void 0:o[3])||"";return{topLeftValue:X(l,""),topLeftUnit:Y(l,"px"),topRightValue:X(r,""),topRightUnit:Y(r,"px"),bottomRightValue:X(i,""),bottomRightUnit:Y(i,"px"),bottomLeftValue:X(u,""),bottomLeftUnit:Y(u,"px")}},at=function(e){var t=e.value,n=e.onChange,o=e.reset,a=void 0===o?"":o,l=ot(t),r=l.topLeftValue,i=l.topLeftUnit,u=l.topRightValue,m=l.topRightUnit,s=l.bottomRightValue,d=l.bottomRightUnit,f=l.bottomLeftValue,p=l.bottomLeftUnit,h=function(e){n(e)},v=Ye((0,c.useState)(!1),2),w=v[0],g=v[1],b=r===u&&u===s&&s===f?r:"Mixed";return wp.element.createElement("div",{className:"bm-radius-control"},wp.element.createElement(st,{name:"Corner Radius",onReset:function(){h(a)}}),wp.element.createElement(dt,null,wp.element.createElement(mt,{placeholder:b,value:"Mixed"===b?"":r,onChange:function(e){h("".concat(e).concat(i,",").concat(e).concat(m,",").concat(e).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(Pe,{onClick:function(){g(!w)}},wp.element.createElement(tt,null))),w?wp.element.createElement(Le,{className:"bm-radius-control__popover bm-popover",position:"bottom right",onClose:function(){g(!1)}},wp.element.createElement(dt,null,wp.element.createElement(mt,{value:r,onChange:function(e){h("".concat(e).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:u,onChange:function(e){h("".concat(r).concat(i,",").concat(e).concat(m,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Ke,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(e,",").concat(s).concat(e,",").concat(f).concat(p))}})),wp.element.createElement(dt,null,wp.element.createElement(mt,{value:f,onChange:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Qe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(d,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:s,onChange:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(e).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(et,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(u).concat(m,",").concat(s).concat(e,",").concat(f).concat(p))}}))):null)};function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var it=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},ut=function(){return wp.element.createElement(o.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},mt=function(e){var t,n,o=e.canDrag,a=void 0===o||o,l=e.className,r=void 0===l?"":l,i=e.step,u=void 0===i?1:i,m=e.withIncrementors,s=void 0!==m&&m,d=e.placeholder,f=void 0===d?0:d,p=e.min,v=void 0===p?0:p,w=e.max,g=e.direction,b=e.value,E=e.onChange,y=e.onChangeUnit,x=e.icon,C=e.unit,_=e.units,k=e.suggests,R=void 0===k?{}:k,S=lt((0,c.useState)(!1),2),V=S[0],j=(S[1],lt((0,c.useState)(!1),2)),N=j[0],B=j[1],M=lt((0,c.useState)(!1),2),I=M[0],L=M[1],P=lt((0,c.useState)(!1),2),H=P[0],O=P[1],z=b&&"string"==typeof b&&b.startsWith("g:"),U="",G="",T="";z&&(U=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(G=b.replace("g:","")),T=(null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.modes)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.id)||"");var A=function(e){if(a){B(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),B(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),$(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=v&&(e=v),e>=w&&(e=w)),E(e)},D=b?8*b.toString().length:8,W=lt((0,c.useState)(!1),2),F=W[0],q=W[1],Y=lt((0,c.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(V?"is-hovered":""," ").concat(N?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},x&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){z||A(e)},onMouseUp:function(){z||B(!1)}},x),s&&!z?wp.element.createElement(Pe,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-u)}},wp.element.createElement(it,null)):null,z?wp.element.createElement("span",{className:"bm-global"},U,wp.element.createElement(Pe,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(G))}},wp.element.createElement(h,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:D},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return B(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===H&&wp.element.createElement(Le,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return O(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Pe,{onClick:function(){Z(n),O(!1)}},e))}))))),C&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},C,K&&X&&wp.element.createElement(Le,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Pe,{onClick:function(){y(e)}},e))})))))),F&&wp.element.createElement(Le,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.variables)||void 0===t?void 0:t.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[T])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Pe,{onClick:function(){E("g:".concat(t)),q(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!z?wp.element.createElement(Pe,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+u)}},wp.element.createElement(ut,null)):null)},st=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(vt,{onReset:o}))},dt=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},ft=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},pt=function(){return wp.element.createElement(o.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(o.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},ht=function(e){var t=e.value,n=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(t)},wp.element.createElement(o.Button,{className:"bm-border-style__button",onClick:function(){n&&n("dashed"===t?"solid":"dashed")}},"dashed"===t?wp.element.createElement(ft,null):wp.element.createElement(pt,null)))},vt=function(e){var t=e.onReset;return wp.element.createElement(Pe,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(h,null))},wt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(st,{name:n}),wp.element.createElement(dt,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Pe,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(v,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(g,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},gt=n(470);wp.isShallowEqual;function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var yt=function(e){var t=e.parent,n=e.id,o=e.style,a=e.selector,l=bt((0,c.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(n=(n=(n=(n=(n=n||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},u=q(),m=function(){var e=i();if(!u.getElementById(e)){var t=u.createElement("style");return t.id=e,u.head.appendChild(t),t}};(0,c.useEffect)((function(){m()}),[]),(0,c.useEffect)((function(){r(o)}),[o]),(0,c.useEffect)((function(){var e=u.getElementById(i());e||(e=m());var n="";n+=function(e,t,n){var c,o,a,l,r,i,u,m,s,d,f,p,h,v,w,g,b,E,y,x,C,_,k,R,S,V,j,N="",B=n,I="".concat(n,":hover"),P="".concat(n,":focus");return e&&(I=(I=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),P=(P=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),N+=M(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,B),N+=M(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,I),N+=M(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,P),N+=L(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,B),N+=L(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,I),N+=L(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,P),N+=z(null==t||null===(u=t.normal)||void 0===u?void 0:u.position,B),N+=z(null==t||null===(m=t.hover)||void 0===m?void 0:m.position,I),N+=z(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,P),N+=W(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,B),N+=W(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,I),N+=W(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,P),N+=A(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,B),N+=A(null==t||null===(v=t.hover)||void 0===v?void 0:v.dimentions,I),N+=A(null==t||null===(w=t.focus)||void 0===w?void 0:w.dimentions,P),N+=ce(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,B),N+=ce(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,I),N+=ce(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,P),N+=ue(null==t||null===(y=t.normal)||void 0===y?void 0:y.boxSizing,B),N+=ue(null==t||null===(x=t.hover)||void 0===x?void 0:x.boxSizing,I),N+=ue(null==t||null===(C=t.focus)||void 0===C?void 0:C.boxSizing,P),N+=je(null==t||null===(_=t.normal)||void 0===_?void 0:_.flex,B),N+=je(null==t||null===(k=t.hover)||void 0===k?void 0:k.flex,I),N+=je(null==t||null===(R=t.focus)||void 0===R?void 0:R.flex,P),N+=nt(null==t||null===(S=t.normal)||void 0===S?void 0:S.borderRadius,B),N+=nt(null==t||null===(V=t.hover)||void 0===V?void 0:V.borderRadius,I),N+nt(null==t||null===(j=t.focus)||void 0===j?void 0:j.borderRadius,P)}(t,o,a),e.innerHTML=n}),[o])},xt=n(838);function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},_t.apply(this,arguments)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t,n){var c;return c=function(e,t){if("object"!=Ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Ct(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Ct(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Nt=(0,c.memo)((function(e){var t=e.device,n=e.deviceType,o=e.element,a=e.style,l=e.onChange,r=Vt((0,c.useState)("normal"),2),i=r[0],u=r[1],m=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,c.useRef)();(0,c.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return K(m(e),t)},f=function(e,n){!function(e,t){var n;l(Rt(Rt({},a),{},o?St({},o,Rt(Rt({},null==a?void 0:a[o]),{},St({},i,Rt(Rt({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},St({},e,t))))):St({},i,Rt(Rt({},null==a?void 0:a[i]),{},St({},e,t)))))}(e,J(m(e),n,t))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(wt,{value:i,onChange:function(e){return u(e)}}),wp.element.createElement($e,{className:"bm-responsive--position bm-control-seperator",label:(0,gt.__)("Layout","bm"),device:n}),wp.element.createElement(I,_t({},e,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(Be,_t({},e,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(U,_t({},e,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(H,_t({},e,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(F,_t({},e,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement($e,{className:"bm-responsive--position bm-control-seperator",label:(0,gt.__)("Box Model","bm"),device:n}),wp.element.createElement(D,_t({},e,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(ie,_t({},e,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})),wp.element.createElement(dt,null,wp.element.createElement(me,_t({},e,{value:d("boxSizing"),onChange:function(e){return f("boxSizing",e)}})),wp.element.createElement(at,_t({},e,{value:d("borderRadius"),onChange:function(e){return f("borderRadius",e)}}))))})),Bt=(0,c.memo)((function(e){var t=e.id,n=e.title,c=void 0===n?"Style":n,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,u=e.selector,m=void 0===u?"":u,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Fe.useSelect)((function(e){return e("core/editor").getDeviceType()})),v=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(yt,{style:r,selector:m||"#block-".concat(d)}),wp.element.createElement(xt.InspectorControls,null,wp.element.createElement(o.PanelBody,{title:c,initialOpen:l},wp.element.createElement(Nt,{deviceType:h,device:v,id:t,clientId:d,selector:m||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),Mt=n(164);n(964),wp.compose,wp.hooks;function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){var c;return c=function(e,t){if("object"!=It(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=It(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==It(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=function(e){var t=e.childs,n=void 0===t?[]:t,c=e.placeholder,o=e.allowedBlocks,a=e.template,l=e.blockProps,r={templateLock:!1,renderAppender:xt.InnerBlocks.ButtonBlockAppender};o&&(r.allowedBlocks=o),a&&(r.template=a);var i=(0,xt.useInnerBlocksProps)(Pt(Pt({},l),{},{className:(0,Mt.A)(l.className,"bm-inner-blocks")}),r);return c&&0===n.length?wp.element.createElement("div",i,c):wp.element.createElement("div",i)}},412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},u=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},m=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),u=a%6;return{r:255*[c,r,l,l,i,c][u],g:255*[i,c,c,r,l,l][u],b:255*[l,l,i,c,c,r][u],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},v=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},w=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x={string:[[function(e){var t=m.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return v(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return v(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var u=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(u)},"hsv"]]},C=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?C(e.trim(),x.string):"object"==n(e)&&null!==e?C(e,x.object):[null,void 0]},k=function(e,t){var n=w(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},S=function(e,t){var n=w(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},V=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=u(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return u(this.rgba)},e.prototype.toRgbString=function(){return t=(e=u(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(w(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(w(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return j({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),j(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),j(k(this.rgba,-e))},e.prototype.grayscale=function(){return j(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),j(S(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),j(S(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?j({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=w(this.rgba);return"number"==typeof e?j({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===j(e).toHex()},e}(),j=function(e){return e instanceof V?e:new V(e)},N=[];t.Mj=j},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n},164:function(e,t,n){"use strict";function c(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=c(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}t.A=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=c(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(964);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function o(e,n,c){var o;return o=function(e,n){if("object"!=t(e)||!e)return e;var c=e[Symbol.toPrimitive];if(void 0!==c){var o=c.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[n]=c,e}var a=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"bm/section","title":"Section","description":"Allow to create a section for the content.","version":"0.0.1","icon":"editor-table","attributes":{"_bm_id":{"type":"string","default":""},"_bm_style":{"type":"object"}},"category":"blocks-monster","textdomain":"blocks-monster","style":"file:./css/style.css","editorScript":"file:./js/index.js"}'),l=n(164),r=n(838),i=n(19),u=function(e){var t=e.attributes,n=t._bm_id,c=t._bm_style,o=e.setAttributes,a=e.className,u=e.clientId,m=(0,l.A)(a),s=(0,r.useBlockProps)({className:m});return wp.element.createElement(React.Fragment,null,wp.element.createElement(i.H2,{id:n,clientId:u,style:c,onChange:function(e){o({_bm_style:e})}}),wp.element.createElement(i.Tj,{blockProps:s}))},m=(n(470),function(){var e=r.useBlockProps.save();return wp.element.createElement("div",e,wp.element.createElement(r.InnerBlocks.Content,null))});!function(t){if(t){var n=t.metadata,a=t.settings,l=t.name;(0,e.registerBlockType)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:l},n),a)}}({name:a.name,metadata:a,settings:{icon:"list-view",edit:u,save:m}})}()}(); -
blocks-monster/trunk/includes/gutenberg/controls/assets/js/controls.js
r3224940 r3224949 1 !function(){var e={412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||y.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?x(e.trim(),C.string):"object"==n(e)&&null!==e?x(e,C.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},N=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},V=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(N(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(N(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof V?e:new V(e)},j=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var c={};!function(){"use strict";n.d(c,{aE:function(){return $e},kD:function(){return Qe},$K:function(){return ae},$n:function(){return je},sk:function(){return Te},ZK:function(){return O},nl:function(){return j},so:function(){return Re},JU:function(){return Ye},AM:function(){return Se},yX:function(){return z},Yn:function(){return et},Ft:function(){return Ze},fI:function(){return Xe},Hw:function(){return I},Uw:function(){return tt},Py:function(){return Z},yC:function(){return ee},om:function(){return Y},ZX:function(){return X},i7:function(){return U},Mi:function(){return S},x7:function(){return W},De:function(){return _e},z:function(){return F},eT:function(){return q},ph:function(){return H},gB:function(){return M},wR:function(){return A},Xc:function(){return $}});var e=wp.element,t=wp.components,o=function(){return wp.element.createElement(t.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},a=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},l=function(){return wp.element.createElement(t.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(t.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},r=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(t.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},u=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},s=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},d=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},f=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},p=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},h=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},E=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},x=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},_=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},k=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(t.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},R=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},N=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},V={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=V&&V[e]?"display: ".concat(null==V?void 0:V[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},j=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,u=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(Ye,{name:"Display",onReset:function(){n(u)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(je,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(o,null)),wp.element.createElement(je,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(a,null)),wp.element.createElement(je,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(l,null)),wp.element.createElement(je,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(r,null)),wp.element.createElement(je,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(i,null)),wp.element.createElement(je,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(B(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(B(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(B(n[2])," } }"):""].filter(Boolean).join("\n")},B=function(e){var t,n,c,o;if(!e)return"";var a=X(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=q(l,""),i=F(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=q(m,""),s=F(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=q(d,""),p=F(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=q(h,""),v=F(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},I=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=X(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=q(u,""),d=F(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=q(f,""),h=F(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=q(w,""),g=F(w,"px"),x=(null===(o=m)||void 0===o?void 0:o[3])||"",_=q(x,""),k=F(x,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(Ye,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement($e,{min:-9999,value:_,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(b,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(E,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(y,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement($e,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(_).concat(k))},icon:wp.element.createElement(C,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(_).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},L={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=L&&L[e]?"position: ".concat(null==L?void 0:L[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},z=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(Ye,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(Xe,{className:"bm-position-control__group"},wp.element.createElement(je,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(x,null)),wp.element.createElement(je,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(_,null)),wp.element.createElement(je,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(k,null)),wp.element.createElement(je,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(R,null)),wp.element.createElement(je,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(N,null))))})),G=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},P=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(T(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(T(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(T(n[2])," } }"):""].filter(Boolean).join("\n")},T=function(e){var t,n;if(!e)return"";var c=X(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=q(o,""),l=F(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=q(r,""),m=F(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},O=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=X(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",s=q(m,""),d=F(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=q(f,""),h=F(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(Ye,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(Xe,null,wp.element.createElement($e,{placeholder:"auto",value:s,onChange:function(e){var t=w?p+(e-s):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(u,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement($e,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?s+(e-p):s).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(je,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(P,null):wp.element.createElement(G,null))))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},Z=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(Ye,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement($e,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(g,null)}))},W=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},D=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},$=function(e,t,n){var c=(e=X(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},Y=function(e,t){var n=(e=X(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},X=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function J(e){throw new TypeError('"'+e+'" is read-only')}var K=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},Q=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(te(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(te(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(te(n[2])," } }"):""].filter(Boolean).join("\n")},te=function(e){if(!e)return"";var t=oe(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,y=t.borderTopColor,C=t.borderRightValue,x=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,N=t.borderBottomUnit,V=t.borderBottomStyle,S=t.borderBottomColor,j=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(m," !important;")),L.push("padding-top: ".concat(u).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(w).concat(v,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(y,";")),L.push("border-right: ".concat(C).concat(x," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(N," ").concat(V," ").concat(S,";")),L.push("border-left: ".concat(j).concat(M," ").concat(B," ").concat(I,";")),L.join("")},ne=function(e,t){return q((null==e?void 0:e[t])||"","")},ce=function(e,t){return F((null==e?void 0:e[t])||"","px")},oe=function(e){var t=X(e,"|",4).split("|"),n=X((null==t?void 0:t[0])||"",",",4).split(","),c=X((null==t?void 0:t[1])||"",",",4).split(","),o=X((null==t?void 0:t[2])||"",",",4).split(","),a=X((null==t?void 0:t[3])||"",",",3).split(","),l=X((null==o?void 0:o[0])||"","_",3).split("_"),r=X((null==o?void 0:o[1])||"","_",3).split("_"),i=X((null==o?void 0:o[2])||"","_",3).split("_"),m=X((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:ne(n,0),marginTopUnit:ce(n,0),marginRightValue:ne(n,1),marginRightUnit:ce(n,1),marginBottomValue:ne(n,2),marginBottomUnit:ce(n,2),marginLeftValue:ne(n,3),marginLeftUnit:ce(n,3),paddingTopValue:ne(c,0),paddingTopUnit:ce(c,0),paddingRightValue:ne(c,1),paddingRightUnit:ce(c,1),paddingBottomValue:ne(c,2),paddingBottomUnit:ce(c,2),paddingLeftValue:ne(c,3),paddingLeftUnit:ce(c,3),borderTopValue:q(u),borderTopUnit:F(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:q(s),borderRightUnit:F(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:q(d),borderBottomUnit:F(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:q(f),borderLeftUnit:F(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},ae=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=oe(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,y=l.paddingRightValue,C=l.paddingRightUnit,x=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,N=l.borderTopValue,V=l.borderTopUnit,S=l.borderTopStyle,j=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,H=l.borderBottomValue,z=l.borderBottomUnit,G=l.borderBottomStyle,P=l.borderBottomColor,U=l.borderLeftValue,T=l.borderLeftUnit,O=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,W=l.isTickAllPadding,F=l.isTickAllBorder,q=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&J("margin"),"padding"===e&&J("padding"),"border"===e&&J("border"),"connected"===e&&J("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(Ye,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement($e,{className:"bm-box-model__top",value:s,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):q("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):q("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",0,Z?0:1)}}),wp.element.createElement($e,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):q("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):q("margin",1,"".concat(f).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):q("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):q("margin",2,"".concat(h).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=D(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):q("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):q("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(Te,{hideInput:!0,value:j,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",0,"".concat(N).concat(V,"_").concat(S,"_").concat(e))}}),wp.element.createElement($e,{value:N,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",0,"".concat(e).concat(V,"_").concat(S,"_").concat(j))},min:0,unit:V,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",0,"".concat(N).concat(e,"_").concat(S,"_").concat(j))}}),wp.element.createElement(Qe,{value:S,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(e,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(P),"".concat(U).concat(T,"_").concat(e,"_").concat(A))):q("border",0,"".concat(N).concat(V,"_").concat(e,"_").concat(j))}})),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(F?"is-ticked":""),icon:F?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",2,F?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(Te,{hideInput:!0,value:L,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement($e,{direction:"vertical",value:M,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(L))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(Qe,{value:I,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(G,"_").concat(P),"".concat(U).concat(T,"_").concat(O,"_").concat(A))):q("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(Qe,{value:G,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(P),"".concat(U).concat(T,"_").concat(O,"_").concat(A))):q("border",2,"".concat(H).concat(z,"_").concat(e,"_").concat(P))}}),wp.element.createElement($e,{value:H,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",2,"".concat(e).concat(z,"_").concat(G,"_").concat(P))},min:0,unit:z,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",2,"".concat(H).concat(e,"_").concat(G,"_").concat(P))}}),wp.element.createElement(Te,{hideInput:!0,value:P,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",2,"".concat(H).concat(z,"_").concat(G,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(Qe,{value:O,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(G,"_").concat(P),"".concat(U).concat(T,"_").concat(e,"_").concat(A))):q("border",3,"".concat(U).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement($e,{direction:"vertical",value:U,onChange:function(e){e=D(e)?e:0,F?$("border",("".concat(e).concat(V,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(G,"_").concat(P),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):q("border",3,"".concat(e).concat(T,"_").concat(O,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){F?$("border",("".concat(N).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(G,"_").concat(P),"".concat(U).concat(e,"_").concat(O,"_").concat(A))):q("border",3,"".concat(U).concat(e,"_").concat(O,"_").concat(A))}}),wp.element.createElement(Te,{hideInput:!0,value:A,onChange:function(e){F?$("border",("".concat(N).concat(V,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(G,"_").concat(e),"".concat(U).concat(T,"_").concat(O,"_").concat(e))):q("border",3,"".concat(U).concat(T,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement($e,{className:"bm-box-model__top",value:b,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):q("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):q("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(je,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(K,null):wp.element.createElement(Q,null),onClick:function(){q("connected",1,W?0:1)}}),wp.element.createElement($e,{className:"bm-box-model__right",direction:"vertical",value:y,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C),"".concat(e).concat(C))):q("padding",1,"".concat(e).concat(C))},min:a,unit:C,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e),"".concat(y).concat(e))):q("padding",1,"".concat(y).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__bottom",value:x,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):q("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):q("padding",2,"".concat(x).concat(e))}}),wp.element.createElement($e,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=D(e)?e:0,W?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):q("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):q("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},le=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},re=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},ie=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},me=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},ue=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},se=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"13",width:"5",height:"2"}))},de=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},fe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"10",y:"13",width:"5",height:"2"}))},pe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},he=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},we=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(t.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(t.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ge=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},be=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ee=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}))},ye=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Ce=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},xe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ke(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ke(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ke(n[2])," } }"):""].filter(Boolean).join("\n")},ke=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=X(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=q(p,""),w=F(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=q(v,""),b=F(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},Re=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=X(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=q(g,""),E=F(g,"px"),y=(null===(r=d)||void 0===r?void 0:r[6])||"",C=q(y,""),x=F(y,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(Ye,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(je,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(le,null)),wp.element.createElement(je,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(re,null)),wp.element.createElement(je,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ie,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(we,null)):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(xe,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ye,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ce,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(pe,null))):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ve,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(je,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(se,null))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(ge,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(je,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(Ee,null)):wp.element.createElement(je,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(C).concat(x)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(de,null)))),"w"===p?wp.element.createElement(je,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(he,null)):wp.element.createElement(je,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(C).concat(x))}},wp.element.createElement(fe,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement($e,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:C).concat(x))},icon:wp.element.createElement(me,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(C).concat("w"!==p?e:x))}}),"w"===p&&wp.element.createElement($e,{placeholder:b,value:C,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(x))},icon:wp.element.createElement(ue,null),unit:x,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(C).concat(e))}})))};function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ne.apply(this,arguments)}var Ve,Se=function(n){var c=(0,e.useRef)();return(0,e.useEffect)((function(){var e=function(e){c.current&&!c.current.contains(e.target)&&n.onClose()};return function(){return document.removeEventListener("mousedown",e)}}),[c]),wp.element.createElement(t.Popover,Ne({},n,{ref:c,className:"bm-popover"}),wp.element.createElement("div",{ref:c},n.children))},je=function(e){var n=e.style,c=void 0===n?{}:n,o=e.icon,a=void 0===o?null:o,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(t.Button,{style:c,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},Me=n(412);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function He(e,t,n){var c;return c=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=Be(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Be(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=(He(He(He(He(He(He(He(He(He(He(Ve={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),He(He(He(He(He(He(He(He(He(He(Ve,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),He(He(He(He(He(He(He(He(He(He(Ve,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),He(He(He(He(He(He(He(He(He(He(Ve,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),He(He(He(He(He(He(He(He(He(He(Ve,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),He(He(He(He(He(He(He(He(He(He(Ve,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),He(He(He(He(He(He(He(He(He(He(Ve,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),He(He(He(He(He(He(He(He(He(He(Ve,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),He(He(He(He(He(He(He(He(He(He(Ve,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),He(He(He(He(He(He(He(He(He(He(Ve,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),He(He(He(He(He(He(He(He(He(He(Ve,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),He(He(He(He(He(He(He(He(He(He(Ve,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),He(He(He(He(He(He(He(He(He(He(Ve,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),He(He(He(He(He(He(He(He(He(He(Ve,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),He(He(He(He(He(He(Ve,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Ge=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Pe=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Ue=function(e){var t=Pe(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},Te=function(n){var c=n.hideInput,o=void 0!==c&&c,a=n.value,l=n.onChange,r=n.placeholder,i=Ie((0,e.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,Me.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,Me.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(Xe,null,wp.element.createElement(je,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),o?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Pe(a),placeholder:Ue(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(ze[n.toLowerCase()]){n=ze[n.toLowerCase()];var c=(0,Me.Mj)(n).toRgb();c.a=d/100;var o=(0,Me.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,Me.Mj)(n).toRgb();a.a=d/100;var l=(0,Me.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement($e,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,Me.Mj)(a).toRgb();n.a=t/100;var c=(0,Me.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Ge,null)}))),m?wp.element.createElement(t.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(t.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},Oe=wp.data,Ae=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},Ze=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(et,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(je,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,Oe.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(s,null):"Tablet"===e?wp.element.createElement(d,null):wp.element.createElement(f,null))}))),o&&wp.element.createElement(je,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Ae,null)))};function We(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return De(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Fe=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},qe=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},$e=function(t){var n,c,o=t.canDrag,a=void 0===o||o,l=t.className,r=void 0===l?"":l,i=t.step,m=void 0===i?1:i,u=t.withIncrementors,s=void 0!==u&&u,d=t.placeholder,f=void 0===d?0:d,h=t.min,w=void 0===h?0:h,v=t.max,g=t.direction,b=t.value,E=t.onChange,y=t.onChangeUnit,C=t.icon,x=t.unit,_=t.units,k=t.suggests,R=void 0===k?{}:k,N=We((0,e.useState)(!1),2),V=N[0],S=(N[1],We((0,e.useState)(!1),2)),j=S[0],M=S[1],B=We((0,e.useState)(!1),2),I=B[0],L=B[1],H=We((0,e.useState)(!1),2),z=H[0],G=H[1],P=b&&"string"==typeof b&&b.startsWith("g:"),U="",T="",O="";P&&(U=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),O=(null===(c=ctcGbGlobalStyles)||void 0===c||null===(c=c.collections)||void 0===c||null===(c=c.modes)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),D(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},W=b?8*b.toString().length:8,F=We((0,e.useState)(!1),2),q=F[0],$=F[1],Y=We((0,e.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(V?"is-hovered":""," ").concat(j?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},C&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){P||A(e)},onMouseUp:function(){P||M(!1)}},C),s&&!P?wp.element.createElement(je,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(Fe,null)):null,P?wp.element.createElement("span",{className:"bm-global"},U,wp.element.createElement(je,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(p,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:W},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===z&&wp.element.createElement(Se,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return G(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(je,{onClick:function(){Z(n),G(!1)}},e))}))))),x&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},x,K&&X&&wp.element.createElement(Se,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(je,{onClick:function(){y(e)}},e))})))))),q&&wp.element.createElement(Se,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.variables)||void 0===n?void 0:n.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[O])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(je,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!P?wp.element.createElement(je,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement(qe,null)):null)},Ye=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(et,{onReset:o}))},Xe=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},Je=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},Qe=function(e){var n=e.value,c=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(n)},wp.element.createElement(t.Button,{className:"bm-border-style__button",onClick:function(){c&&c("dashed"===n?"solid":"dashed")}},"dashed"===n?wp.element.createElement(Je,null):wp.element.createElement(Ke,null)))},et=function(e){var t=e.onReset;return wp.element.createElement(je,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(p,null))},tt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(Ye,{name:n}),wp.element.createElement(Xe,null,["normal","hover","active"].map((function(e){return wp.element.createElement(je,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(h,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(v,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},nt=n(470);wp.isShallowEqual;function ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var at=function(t){var n=t.parent,c=t.id,o=t.style,a=t.selector,l=ct((0,e.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(c=(c=(c=(c=(c=c||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=W(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,e.useEffect)((function(){u()}),[]),(0,e.useEffect)((function(){r(o)}),[o]),(0,e.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var t="";t+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,y,C,x,_="",k=n,R="".concat(n,":hover"),N="".concat(n,":focus");return e&&(R=(R=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),N=(N=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),_+=S(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,k),_+=S(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,R),_+=S(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,N),_+=M(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,k),_+=M(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,R),_+=M(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,N),_+=H(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,k),_+=H(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,R),_+=H(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,N),_+=A(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,k),_+=A(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,R),_+=A(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,N),_+=U(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,k),_+=U(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,R),_+=U(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,N),_+=ee(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,k),_+=ee(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,R),_+=ee(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,N),_+=_e(null==t||null===(y=t.normal)||void 0===y?void 0:y.flex,k),_+=_e(null==t||null===(C=t.hover)||void 0===C?void 0:C.flex,R),_+_e(null==t||null===(x=t.focus)||void 0===x?void 0:x.flex,N)}(n,o,a),e.innerHTML=t}),[o])},lt=n(838);function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},it.apply(this,arguments)}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){var c;return c=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=rt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==rt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ft(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var pt=(0,e.memo)((function(t){var n=t.device,c=t.deviceType,o=t.element,a=t.style,l=t.onChange,r=dt((0,e.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,e.useRef)();(0,e.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return Y(u(e),n)},f=function(e,t){!function(e,t){var n;l(ut(ut({},a),{},o?st({},o,ut(ut({},null==a?void 0:a[o]),{},st({},i,ut(ut({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},st({},e,t))))):st({},i,ut(ut({},null==a?void 0:a[i]),{},st({},e,t)))))}(e,$(u(e),t,n))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(tt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(Ze,{className:"bm-responsive--position bm-control-seperator",label:(0,nt.__)("Layout","bm"),device:c}),wp.element.createElement(j,it({},t,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(Re,it({},t,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(z,it({},t,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(I,it({},t,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(Z,it({},t,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(Ze,{className:"bm-responsive--position bm-control-seperator",label:(0,nt.__)("Box Model","bm"),device:c}),wp.element.createElement(O,it({},t,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(ae,it({},t,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})))}));(0,e.memo)((function(e){var n=e.id,c=e.title,o=void 0===c?"Style":c,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,Oe.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(at,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(lt.InspectorControls,null,wp.element.createElement(t.PanelBody,{title:o,initialOpen:l},wp.element.createElement(pt,{deviceType:h,device:w,id:n,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),n(964),wp.compose,wp.hooks}()}();1 !function(){var e={412:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var c={grad:.9,turn:360,rad:360/(2*Math.PI)},o=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},a=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},l=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},r=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},i=function(e){return{r:l(e.r,0,255),g:l(e.g,0,255),b:l(e.b,0,255),a:l(e.a)}},m=function(e){return{r:a(e.r),g:a(e.g),b:a(e.b),a:a(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,s=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d=function(e){var t=e.r,n=e.g,c=e.b,o=e.a,a=Math.max(t,n,c),l=a-Math.min(t,n,c),r=l?a===t?(n-c)/l:a===n?2+(c-t)/l:4+(t-n)/l:0;return{h:60*(r<0?r+6:r),s:a?l/a*100:0,v:a/255*100,a:o}},f=function(e){var t=e.h,n=e.s,c=e.v,o=e.a;t=t/360*6,n/=100,c/=100;var a=Math.floor(t),l=c*(1-n),r=c*(1-(t-a)*n),i=c*(1-(1-t+a)*n),m=a%6;return{r:255*[c,r,l,l,i,c][m],g:255*[i,c,c,r,l,l][m],b:255*[l,l,i,c,c,r][m],a:o}},p=function(e){return{h:r(e.h),s:l(e.s,0,100),l:l(e.l,0,100),a:l(e.a)}},h=function(e){return{h:a(e.h),s:a(e.s),l:a(e.l),a:a(e.a,3)}},w=function(e){return f((n=(t=e).s,{h:t.h,s:(n*=((c=t.l)<50?c:100-c)/100)>0?2*n/(c+n)*100:0,v:c+n,a:t.a}));var t,n,c},v=function(e){return{h:(t=d(e)).h,s:(o=(200-(n=t.s))*(c=t.v)/100)>0&&o<200?n*c/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,c,o},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?a(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?a(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=E.exec(e)||x.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:i({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=g.exec(e)||b.exec(e);if(!t)return null;var n,o,a=p({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(c[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return w(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,c=e.b,a=e.a,l=void 0===a?1:a;return o(t)&&o(n)&&o(c)?i({r:Number(t),g:Number(n),b:Number(c),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,c=e.l,a=e.a,l=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var r=p({h:Number(t),s:Number(n),l:Number(c),a:Number(l)});return w(r)},"hsl"],[function(e){var t=e.h,n=e.s,c=e.v,a=e.a,i=void 0===a?1:a;if(!o(t)||!o(n)||!o(c))return null;var m=function(e){return{h:r(e.h),s:l(e.s,0,100),v:l(e.v,0,100),a:l(e.a)}}({h:Number(t),s:Number(n),v:Number(c),a:Number(i)});return f(m)},"hsv"]]},C=function(e,t){for(var n=0;n<t.length;n++){var c=t[n][0](e);if(c)return[c,t[n][1]]}return[null,void 0]},_=function(e){return"string"==typeof e?C(e.trim(),y.string):"object"==n(e)&&null!==e?C(e,y.object):[null,void 0]},k=function(e,t){var n=v(e);return{h:n.h,s:l(n.s+100*t,0,100),l:n.l,a:n.a}},R=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},V=function(e,t){var n=v(e);return{h:n.h,s:n.s,l:l(n.l+100*t,0,100),a:n.a}},N=function(){function e(e){this.parsed=_(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return a(R(this.rgba),2)},e.prototype.isDark=function(){return R(this.rgba)<.5},e.prototype.isLight=function(){return R(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,l=(o=e.a)<1?s(a(255*o)):"","#"+s(t)+s(n)+s(c)+l;var e,t,n,c,o,l},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,c=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+c+", "+o+")":"rgb("+t+", "+n+", "+c+")";var e,t,n,c,o},e.prototype.toHsl=function(){return h(v(this.rgba))},e.prototype.toHslString=function(){return t=(e=h(v(this.rgba))).h,n=e.s,c=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+c+"%, "+o+")":"hsl("+t+", "+n+"%, "+c+"%)";var e,t,n,c,o},e.prototype.toHsv=function(){return e=d(this.rgba),{h:a(e.h),s:a(e.s),v:a(e.v),a:a(e.a,3)};var e},e.prototype.invert=function(){return S({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),S(k(this.rgba,-e))},e.prototype.grayscale=function(){return S(k(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),S(V(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),S(V(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?S({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):a(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=v(this.rgba);return"number"==typeof e?S({h:e,s:t.s,l:t.l,a:t.a}):a(t.h)},e.prototype.isEqual=function(e){return this.toHex()===S(e).toHex()},e}(),S=function(e){return e instanceof N?e:new N(e)},j=[];t.Mj=S},838:function(e){"use strict";e.exports=wp.blockEditor},964:function(e){"use strict";e.exports=wp.blocks},470:function(e){"use strict";e.exports=wp.i18n}},t={};function n(c){var o=t[c];if(void 0!==o)return o.exports;var a=t[c]={exports:{}};return e[c](a,a.exports,n),a.exports}n.d=function(e,t){for(var c in t)n.o(t,c)&&!n.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var c={};!function(){"use strict";n.d(c,{aE:function(){return mt},Z6:function(){return ot},kD:function(){return pt},$K:function(){return re},uO:function(){return me},$n:function(){return Le},sk:function(){return We},ZK:function(){return Z},nl:function(){return B},so:function(){return je},JU:function(){return ut},AM:function(){return Ie},yX:function(){return G},Yn:function(){return ht},Ft:function(){return qe},fI:function(){return st},Hw:function(){return H},Uw:function(){return wt},Py:function(){return D},AQ:function(){return tt},yC:function(){return ne},TH:function(){return ie},om:function(){return J},ZX:function(){return K},i7:function(){return O},Mi:function(){return M},x7:function(){return F},De:function(){return Ne},z:function(){return $},eT:function(){return Y},ph:function(){return U},gB:function(){return I},wR:function(){return W},Xc:function(){return X}});var e=wp.element,t=wp.components,o=function(){return wp.element.createElement(t.SVG,{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.25",y:"0.75",width:"11.5",height:"0.5",rx:"0.25",stroke:"currentColor",strokeWidth:"0.5"}))},a=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}))},l=function(){return wp.element.createElement(t.SVG,{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3C2 2.44772 2.44772 2 3 2H8C8.55228 2 9 2.44772 9 3V8C9 8.55228 8.55228 9 8 9H3C2.44772 9 2 8.55228 2 8V3Z"}),wp.element.createElement(t.Path,{d:"M2 2H9H2ZM9 9H2H9ZM3 9C2.28203 9 1.7 8.41797 1.7 7.7V3.3C1.7 2.58203 2.28203 2 3 2H3C2.6134 2 2.3 2.44772 2.3 3V8C2.3 8.55228 2.6134 9 3 9H3ZM8 2C8.71797 2 9.3 2.58203 9.3 3.3V7.7C9.3 8.41797 8.71797 9 8 9H8C8.3866 9 8.7 8.55228 8.7 8V3C8.7 2.44772 8.3866 2 8 2H8Z",fill:"currentColor"}))},r=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}))},i=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"1",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Rect,{x:"2.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"2.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"2.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"8.75",y:"4.75",width:"0.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"5.75",y:"4.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}),wp.element.createElement(t.Rect,{x:"2.75",y:"6.75",width:"1.5",height:"0.5",stroke:"currentColor",strokeWidth:"0.5"}))},m=function(){return wp.element.createElement(t.SVG,{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"1",width:"10",height:"10",rx:"1.5",stroke:"currentColor"}),wp.element.createElement(t.Path,{d:"M2 3.5C2 2.94772 2.44772 2.5 3 2.5H8C8.55228 2.5 9 2.94772 9 3.5V8.5C9 9.05228 8.55228 9.5 8 9.5H3C2.44772 9.5 2 9.05228 2 8.5V3.5Z"}),wp.element.createElement(t.Path,{d:"M3 2.8H8V2.2H3V2.8ZM8.7 3.5V8.5H9.3V3.5H8.7ZM8 9.2H3V9.8H8V9.2ZM2.3 8.5V3.5H1.7V8.5H2.3ZM3 9.2C2.6134 9.2 2.3 8.8866 2.3 8.5H1.7C1.7 9.21797 2.28203 9.8 3 9.8V9.2ZM8.7 8.5C8.7 8.8866 8.3866 9.2 8 9.2V9.8C8.71797 9.8 9.3 9.21797 9.3 8.5H8.7ZM8 2.8C8.3866 2.8 8.7 3.1134 8.7 3.5H9.3C9.3 2.78203 8.71797 2.2 8 2.2V2.8ZM3 2.2C2.28203 2.2 1.7 2.78203 1.7 3.5H2.3C2.3 3.1134 2.6134 2.8 3 2.8V2.2Z",fill:"currentColor"}),wp.element.createElement(t.Rect,{x:"3.15",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"3.65",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"3.65",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"7.43577",y:"4.84995",width:"0.414286",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"5.29282",y:"4.84995",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}),wp.element.createElement(t.Rect,{x:"3.15",y:"6.05002",width:"1.12857",height:"0.3",stroke:"currentColor",strokeWidth:"0.3"}))},u=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5.5 18a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5m13 0a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 1 0v11a.5.5 0 0 1-.5.5M7.604 8l1.882 8h1.03L12 10.062 13.485 16h1.029l1.882-8h-1.027l-1.384 5.88L12.515 8h-1.03l-1.47 5.88L8.63 8z",clipRule:"evenodd"}))},s=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}))},d=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}))},f=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}))},p=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.13401 15.866 6 12 6H7M7 6L10 3M7 6L10 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},h=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M7.51228 8.00118L6.68058 9.80319C6.30692 10.6128 5.1407 10.5655 4.83374 9.72839L2.74287 4.026C2.44968 3.22639 3.22639 2.44968 4.026 2.74287L9.72839 4.83374C10.5655 5.1407 10.6128 6.30692 9.80319 6.68058L8.00118 7.51228C7.78526 7.61193 7.61193 7.78526 7.51228 8.00118Z",stroke:"currentColor"}))},w=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M11.6045 5.46828V4.56119C11.6045 3.66469 11.6045 3.21644 11.43 2.87402C11.2766 2.57282 11.0317 2.32794 10.7305 2.17447C10.388 2 9.93983 2 9.0433 2H4.5612C3.6647 2 3.21644 2 2.87403 2.17447C2.57282 2.32794 2.32794 2.57282 2.17447 2.87402C2 3.21644 2 3.66469 2 4.56119V9.04328C2 9.9398 2 10.388 2.17447 10.7305C2.32794 11.0317 2.57282 11.2765 2.87403 11.43C3.21644 11.6045 3.6647 11.6045 4.5612 11.6045H5.46829M9.67624 9.84968L8.77005 11.5326C8.62193 11.8077 8.54787 11.9452 8.45759 11.9811C8.37926 12.0123 8.29074 12.0045 8.21897 11.9603C8.13626 11.9093 8.08717 11.761 7.98899 11.4644L6.53567 7.07505C6.44966 6.81531 6.40665 6.68549 6.4376 6.59899C6.46449 6.5237 6.52372 6.46448 6.59901 6.43758C6.6855 6.40664 6.81532 6.44964 7.07507 6.53566L11.4644 7.98897C11.761 8.08721 11.9093 8.1363 11.9603 8.21895C12.0046 8.29077 12.0123 8.37923 11.9811 8.45762C11.9452 8.54785 11.8077 8.62191 11.5326 8.77003L9.84971 9.67621C9.80782 9.69878 9.78685 9.71009 9.76849 9.72455C9.75222 9.73747 9.73749 9.75219 9.72458 9.76847C9.71012 9.78682 9.69881 9.80779 9.67624 9.84968Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v=function(){return wp.element.createElement(t.SVG,{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M5.55131 2.76099V2M3.55276 3.55276L3.01466 3.01466M3.55276 7.58061L3.01466 8.11873M7.58063 3.55276L8.11875 3.01466M2.76099 5.55129H2M9.03387 9.19878L7.76971 11.5464C7.62532 11.8146 7.55308 11.9487 7.46622 11.9826C7.39083 12.0121 7.30591 12.0037 7.23767 11.9603C7.15898 11.9101 7.11419 11.7646 7.02449 11.4735L5.26984 5.77718C5.19658 5.53938 5.15995 5.42047 5.18942 5.34016C5.2151 5.27021 5.27022 5.21508 5.34017 5.18942C5.42048 5.15995 5.53939 5.19657 5.7772 5.26982L11.4735 7.02447C11.7646 7.11417 11.9101 7.15902 11.9603 7.23765C12.0038 7.30594 12.012 7.39081 11.9826 7.4662C11.9487 7.55311 11.8146 7.6253 11.5464 7.76974L9.19881 9.03385C9.15893 9.05531 9.13899 9.06601 9.12159 9.07981C9.10607 9.09204 9.09206 9.10604 9.07984 9.12156C9.06604 9.13896 9.05533 9.1589 9.03387 9.19878Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},g=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},wp.element.createElement(t.Path,{d:"M13.01 2.92007L18.91 5.54007C20.61 6.29007 20.61 7.53007 18.91 8.28007L13.01 10.9001C12.34 11.2001 11.24 11.2001 10.57 10.9001L4.67 8.28007C2.97 7.53007 2.97 6.29007 4.67 5.54007L10.57 2.92007C11.24 2.62007 12.34 2.62007 13.01 2.92007Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement(t.Path,{d:"M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}))},b=function(){return wp.element.createElement(t.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}))},E=function(){return wp.element.createElement(t.SVG,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"15",height:"15",stroke:"#00000080"}),wp.element.createElement(t.Rect,{width:"10",height:"4",transform:"translate(3 6)",fill:"#00000080"}))},x=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M9 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zM8 7v10H7V7zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},y=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7 6a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zm0 1h10v1H7zm1 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m9 0a.5.5 0 0 0-1 0 .5.5 0 0 0 0 1 1 1 0 0 0 1-1m-7 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},C=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M18 7a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1zm-1 0v10h-1V7zM8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm-5 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm0 3a.5.5 0 0 0-1 0 1 1 0 0 0 1 1 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},_=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7a1 1 0 0 0-1 1 .5.5 0 0 0 1 0 .5.5 0 0 0 0-1m2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1zm3 0a.5.5 0 0 0 0 1 .5.5 0 0 0 1 0 1 1 0 0 0-1-1m-8 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm-9 3a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zm9 0a.5.5 0 0 0-1 0v1a.5.5 0 0 0 1 0zM7 15a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zm0 1h10v1H7z",clipRule:"evenodd"}))},k=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{d:"M0 4V0H4M8 0H12V4M12 8V12H8M4 12H0V8",stroke:"black",strokeWidth:"2"}))},R=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}))},V=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black"}),wp.element.createElement(t.Rect,{x:"2",y:"2",width:"4",height:"4",fill:"black"}))},N=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Rect,{x:"3.5",y:"3.5",width:"5",height:"5",stroke:"black",strokeLinecap:"square"}))},S=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"0.5",y:"0.5",width:"11",height:"11",rx:"0.5",stroke:"black",strokeLinecap:"square",strokeLinejoin:"round"}),wp.element.createElement(t.Line,{x1:"2",y1:"4",x2:"10",y2:"4",stroke:"black",strokeWidth:"2"}))},j={n:"none",b:"block",i:"inline",ib:"inline-block",f:"flex",if:"inline-flex"},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=j&&j[e]?"display: ".concat(null==j?void 0:j[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},B=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,u=void 0===c?"":c,s=function(e){n(e)},d=t;return wp.element.createElement("div",{className:"bm-display-control"},wp.element.createElement(ut,{name:"Display",onReset:function(){n(u)}}),wp.element.createElement("div",{className:"bm-display-control__group"},wp.element.createElement(Le,{label:"None",showTooltip:!0,className:"".concat("n"===d?"is-active":""),onClick:function(){return s("n")}},wp.element.createElement(o,null)),wp.element.createElement(Le,{label:"Block",showTooltip:!0,className:"".concat("b"===d?"is-active":""),onClick:function(){return s("b")}},wp.element.createElement(a,null)),wp.element.createElement(Le,{label:"Inline",showTooltip:!0,className:"".concat("i"===d?"is-active":""),onClick:function(){return s("i")}},wp.element.createElement(l,null)),wp.element.createElement(Le,{label:"Inline Block",showTooltip:!0,className:"".concat("ib"===d?"is-active":""),onClick:function(){return s("ib")}},wp.element.createElement(r,null)),wp.element.createElement(Le,{label:"Flex",showTooltip:!0,className:"".concat("f"===d?"is-active":""),onClick:function(){return s("f")}},wp.element.createElement(i,null)),wp.element.createElement(Le,{label:"Inline Flex",showTooltip:!0,className:"".concat("if"===d?"is-active":""),onClick:function(){return s("if")}},wp.element.createElement(m,null))))})),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(L(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(L(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(L(n[2])," } }"):""].filter(Boolean).join("\n")},L=function(e){var t,n,c,o;if(!e)return"";var a=K(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=Y(l,""),i=$(l,"px"),m=(null===(n=a)||void 0===n?void 0:n[1])||"",u=Y(m,""),s=$(m,"px"),d=(null===(c=a)||void 0===c?void 0:c[2])||"",f=Y(d,""),p=$(d,"px"),h=(null===(o=a)||void 0===o?void 0:o[3])||"",w=Y(h,""),v=$(h,"px"),g=[];return g.push("top: ".concat(r).concat(i,";")),g.push("right: ".concat(u).concat(s,";")),g.push("bottom: ".concat(f).concat(p,";")),g.push("left: ".concat(w).concat(v,";")),g.join("")},H=function(e){var t,n,c,o,a=e.value,l=e.onChange,r=e.reset,i=void 0===r?"":r,m=K(a,",",4),u=(null===(t=m=m.split(","))||void 0===t?void 0:t[0])||"",s=Y(u,""),d=$(u,"px"),f=(null===(n=m)||void 0===n?void 0:n[1])||"",p=Y(f,""),h=$(f,"px"),w=(null===(c=m)||void 0===c?void 0:c[2])||"",v=Y(w,""),g=$(w,"px"),b=(null===(o=m)||void 0===o?void 0:o[3])||"",E=Y(b,""),k=$(b,"px"),R=function(e){l(e)};return wp.element.createElement("div",{className:"bm-sides-control"},wp.element.createElement(ut,{name:"Sides",onReset:function(){l(i)}}),wp.element.createElement("div",{className:"bm-position-control__sides"},wp.element.createElement(mt,{min:-9999,value:E,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(e).concat(k))},icon:wp.element.createElement(x,null),unit:k,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(e))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:s,placeholder:"auto",onChange:function(e){R("".concat(e).concat(d,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(y,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(e,",").concat(p).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:p,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(e).concat(h,",").concat(v).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(C,null),unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(e,",").concat(v).concat(g,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}}),wp.element.createElement(mt,{min:-9999,value:v,placeholder:"auto",onChange:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e).concat(g,",").concat(E).concat(k))},icon:wp.element.createElement(_,null),unit:g,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){R("".concat(s).concat(d,",").concat(p).concat(h,",").concat(v).concat(e,",").concat(E).concat(k))},suggests:{auto:"auto",0:"0",10:"10",20:"20",50:"50",100:"100"}})))},z={s:"static",r:"relative",a:"absolute",f:"fixed",st:"sticky"},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null!=z&&z[e]?"position: ".concat(null==z?void 0:z[e],";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},G=(0,e.memo)((function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=function(e){n(e)},l=t;return wp.element.createElement("div",{className:"bm-position-control"},wp.element.createElement(ut,{name:"Position",onReset:function(){n(o)}}),wp.element.createElement(st,{className:"bm-position-control__group"},wp.element.createElement(Le,{label:"Static",showTooltip:!0,className:"".concat("s"===l?"is-active":""),onClick:function(){return a("s")}},wp.element.createElement(k,null)),wp.element.createElement(Le,{label:"Relative",showTooltip:!0,className:"".concat("r"===l?"is-active":""),onClick:function(){return a("r")}},wp.element.createElement(R,null)),wp.element.createElement(Le,{label:"Absolute",showTooltip:!0,className:"".concat("a"===l?"is-active":""),onClick:function(){return a("a")}},wp.element.createElement(V,null)),wp.element.createElement(Le,{label:"Fixed",showTooltip:!0,className:"".concat("f"===l?"is-active":""),onClick:function(){return a("f")}},wp.element.createElement(N,null)),wp.element.createElement(Le,{label:"Sticky",showTooltip:!0,className:"".concat("st"===l?"is-active":""),onClick:function(){return a("st")}},wp.element.createElement(S,null))))})),P=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},T=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(A(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(A(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(A(n[2])," } }"):""].filter(Boolean).join("\n")},A=function(e){var t,n;if(!e)return"";var c=K(e,",",3),o=(null===(t=c=c.split(","))||void 0===t?void 0:t[0])||"",a=Y(o,""),l=$(o,"px"),r=(null===(n=c)||void 0===n?void 0:n[1])||"",i=Y(r,""),m=$(r,"px"),u=[];return u.push("width: ".concat(a).concat(l,";")),u.push("height: ".concat(i).concat(m,";")),u.join("")},Z=function(e){var t,n,c,o=e.value,a=e.onChange,l=e.reset,r=void 0===l?"":l,i=K(o,",",3),m=(null===(t=i=i.split(","))||void 0===t?void 0:t[0])||"",s=Y(m,""),d=$(m,"px"),f=(null===(n=i)||void 0===n?void 0:n[1])||"",p=Y(f,""),h=$(f,"px"),w=Number((null===(c=i)||void 0===c?void 0:c[2])||0),v=function(e){a(e)};return wp.element.createElement("div",{className:"bm-width-and-height-control"},wp.element.createElement(ut,{name:"Dimentions",onReset:function(){v(r)}}),wp.element.createElement(st,null,wp.element.createElement(mt,{placeholder:"auto",value:s,onChange:function(e){var t=w?p+(e-s):p;v("".concat(e).concat(d,",").concat(t).concat(h,",").concat(w))},icon:wp.element.createElement(u,null),unit:d,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(e,",").concat(p).concat(h,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(mt,{placeholder:"auto",value:p,onChange:function(e){v("".concat(w?s+(e-p):s).concat(d,",").concat(e).concat(h,",").concat(w))},icon:"H",unit:h,units:["px","%","em","rem","vh","vw"],onChangeUnit:function(e){v("".concat(s).concat(d,",").concat(p).concat(e,",").concat(w))},suggests:{auto:"auto",100:100,200:200,300:300,400:400}}),wp.element.createElement(Le,{className:"bm-width-and-height-control__connect ".concat(w?"is-active":""),onClick:function(){var e=0===w?1:0;v("".concat(s).concat(d,",").concat(p).concat(h,",").concat(e))}},w?wp.element.createElement(T,null):wp.element.createElement(P,null))))},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){return e?"z-index: ".concat(e,";"):""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},D=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(Number(e))};return wp.element.createElement("div",{className:"bm-z-index-control"},wp.element.createElement(ut,{name:"Z Index",onReset:function(){n(o)}}),wp.element.createElement(mt,{value:a,placeholder:"0",onChange:function(e){l(e)},icon:wp.element.createElement(g,null)}))},F=function(){var e,t=document.querySelector('iframe[name="editor-canvas"]');return t?null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document:document},q=function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(!e||"string"!=typeof e)return t;var n=e.match(/[a-z%]+$/i);return n?n[0]:t},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||"string"!=typeof e)return t;var n=null==e?void 0:e.match(/^-?\d*\.?\d+/);return n?Number(n[0]):t},X=function(e,t,n){var c=(e=K(e)).split(";");"desktop"===n&&(c[0]=t),"tablet"===n&&(c[1]=t),"mobile"===n&&(c[2]=t);var o=c.join(";");return";;"===o?"":o},J=function(e,t){var n=(e=K(e)).split(";");return"tablet"===t?(null==n?void 0:n[1])||"":"mobile"===t?(null==n?void 0:n[2])||"":(null==n?void 0:n[0])||""},K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,c=e?e.split(t):[];c.length<n;)c.push("");return c.slice(0,n).join(t)};function Q(e){throw new TypeError('"'+e+'" is read-only')}var ee=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 0 0 1 0V8a3 3 0 1 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 0 1 1 0V16a3 3 0 1 1-6 0v-1.5a.5.5 0 0 1 1 0zm2.5-6a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0z",clipRule:"evenodd"}))},te=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M10 8a2 2 0 1 1 4 0v1.5a.5.5 0 1 0 1 0V8a3 3 0 0 0-6 0v1.5a.5.5 0 0 0 1 0zm0 8a2 2 0 1 0 4 0v-1.5a.5.5 0 1 1 1 0V16a3 3 0 0 1-6 0v-1.5a.5.5 0 0 1 1 0z",clipRule:"evenodd"}))},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(ce(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(ce(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(ce(n[2])," } }"):""].filter(Boolean).join("\n")},ce=function(e){if(!e)return"";var t=le(e),n=t.marginTopValue,c=t.marginTopUnit,o=t.marginRightValue,a=t.marginRightUnit,l=t.marginBottomValue,r=t.marginBottomUnit,i=t.marginLeftValue,m=t.marginLeftUnit,u=t.paddingTopValue,s=t.paddingTopUnit,d=t.paddingRightValue,f=t.paddingRightUnit,p=t.paddingBottomValue,h=t.paddingBottomUnit,w=t.paddingLeftValue,v=t.paddingLeftUnit,g=t.borderTopValue,b=t.borderTopUnit,E=t.borderTopStyle,x=t.borderTopColor,y=t.borderRightValue,C=t.borderRightUnit,_=t.borderRightStyle,k=t.borderRightColor,R=t.borderBottomValue,V=t.borderBottomUnit,N=t.borderBottomStyle,S=t.borderBottomColor,j=t.borderLeftValue,M=t.borderLeftUnit,B=t.borderLeftStyle,I=t.borderLeftColor,L=[];return L.push("margin-top: ".concat(n).concat(c,";")),L.push("margin-right: ".concat(o).concat(a," !important;")),L.push("margin-bottom: ".concat(l).concat(r,";")),L.push("margin-left: ".concat(i).concat(m," !important;")),L.push("padding-top: ".concat(u).concat(s,";")),L.push("padding-right: ".concat(d).concat(f,";")),L.push("padding-bottom: ".concat(p).concat(h,";")),L.push("padding-left: ".concat(w).concat(v,";")),L.push("border-top: ".concat(g).concat(b," ").concat(E," ").concat(x,";")),L.push("border-right: ".concat(y).concat(C," ").concat(_," ").concat(k,";")),L.push("border-bottom: ".concat(R).concat(V," ").concat(N," ").concat(S,";")),L.push("border-left: ".concat(j).concat(M," ").concat(B," ").concat(I,";")),L.join("")},oe=function(e,t){return Y((null==e?void 0:e[t])||"","")},ae=function(e,t){return $((null==e?void 0:e[t])||"","px")},le=function(e){var t=K(e,"|",4).split("|"),n=K((null==t?void 0:t[0])||"",",",4).split(","),c=K((null==t?void 0:t[1])||"",",",4).split(","),o=K((null==t?void 0:t[2])||"",",",4).split(","),a=K((null==t?void 0:t[3])||"",",",3).split(","),l=K((null==o?void 0:o[0])||"","_",3).split("_"),r=K((null==o?void 0:o[1])||"","_",3).split("_"),i=K((null==o?void 0:o[2])||"","_",3).split("_"),m=K((null==o?void 0:o[3])||"","_",3).split("_"),u=(null==l?void 0:l[0])||"",s=(null==r?void 0:r[0])||"",d=(null==i?void 0:i[0])||"",f=(null==m?void 0:m[0])||"";return{margin:n,padding:c,border:o,connected:a,marginTopValue:oe(n,0),marginTopUnit:ae(n,0),marginRightValue:oe(n,1),marginRightUnit:ae(n,1),marginBottomValue:oe(n,2),marginBottomUnit:ae(n,2),marginLeftValue:oe(n,3),marginLeftUnit:ae(n,3),paddingTopValue:oe(c,0),paddingTopUnit:ae(c,0),paddingRightValue:oe(c,1),paddingRightUnit:ae(c,1),paddingBottomValue:oe(c,2),paddingBottomUnit:ae(c,2),paddingLeftValue:oe(c,3),paddingLeftUnit:ae(c,3),borderTopValue:Y(u),borderTopUnit:$(u),borderTopStyle:(null==l?void 0:l[1])||"",borderTopColor:(null==l?void 0:l[2])||"",borderRightValue:Y(s),borderRightUnit:$(s),borderRightStyle:(null==r?void 0:r[1])||"",borderRightColor:(null==r?void 0:r[2])||"",borderBottomValue:Y(d),borderBottomUnit:$(d),borderBottomStyle:(null==i?void 0:i[1])||"",borderBottomColor:(null==i?void 0:i[2])||"",borderLeftValue:Y(f),borderLeftUnit:$(f),borderLeftStyle:(null==m?void 0:m[1])||"",borderLeftColor:(null==m?void 0:m[2])||"",isTickAllMargin:1===(null==a?void 0:a[0]),isTickAllPadding:1===(null==a?void 0:a[1]),isTickAllBorder:1===(null==a?void 0:a[2])}},re=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=-9999,l=le(t),r=l.margin,i=l.padding,m=l.border,u=l.connected,s=l.marginTopValue,d=l.marginTopUnit,f=l.marginRightValue,p=l.marginRightUnit,h=l.marginBottomValue,w=l.marginBottomUnit,v=l.marginLeftValue,g=l.marginLeftUnit,b=l.paddingTopValue,E=l.paddingTopUnit,x=l.paddingRightValue,y=l.paddingRightUnit,C=l.paddingBottomValue,_=l.paddingBottomUnit,k=l.paddingLeftValue,R=l.paddingLeftUnit,V=l.borderTopValue,N=l.borderTopUnit,S=l.borderTopStyle,j=l.borderTopColor,M=l.borderRightValue,B=l.borderRightUnit,I=l.borderRightStyle,L=l.borderRightColor,H=l.borderBottomValue,z=l.borderBottomUnit,U=l.borderBottomStyle,G=l.borderBottomColor,P=l.borderLeftValue,T=l.borderLeftUnit,O=l.borderLeftStyle,A=l.borderLeftColor,Z=l.isTickAllMargin,W=l.isTickAllPadding,D=l.isTickAllBorder,F=function(e,t,c){"margin"===e&&(r[t]=c),"padding"===e&&(i[t]=c),"border"===e&&(m[t]=c),"connected"===e&&(u[t]=c),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))},$=function(e,t){"margin"===e&&Q("margin"),"padding"===e&&Q("padding"),"border"===e&&Q("border"),"connected"===e&&Q("connected"),n("".concat(r.join(","),"|").concat(i.join(","),"|").concat(m.join(","),"|").concat(u.join(",")))};return wp.element.createElement("div",{className:"bm-box-model-control"},wp.element.createElement(ut,{name:"Box Model",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-box-model__box"},wp.element.createElement("div",{className:"bm-box-model__margin"},wp.element.createElement(mt,{className:"bm-box-model__top",value:s,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d),"".concat(e).concat(d))):F("margin",0,"".concat(e).concat(d))},min:a,unit:d,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e),"".concat(s).concat(e))):F("margin",0,"".concat(s).concat(e))}}),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(Z?"is-ticked":""),icon:Z?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",0,Z?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:f,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p),"".concat(e).concat(p))):F("margin",1,"".concat(e).concat(p))},min:a,unit:p,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e),"".concat(f).concat(e))):F("margin",1,"".concat(f).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:h,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w),"".concat(e).concat(w))):F("margin",2,"".concat(e).concat(w))},min:a,unit:w,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e),"".concat(h).concat(e))):F("margin",2,"".concat(h).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:v,onChange:function(e){e=q(e)?e:0,Z?$("margin",("".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g),"".concat(e).concat(g))):F("margin",3,"".concat(e).concat(g))},min:a,unit:g,units:["px","em","%"],onChangeUnit:function(e){Z?$("margin",("".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e),"".concat(v).concat(e))):F("margin",3,"".concat(v).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__border"},wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--top bm-box-model__top"},wp.element.createElement(We,{hideInput:!0,value:j,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",0,"".concat(V).concat(N,"_").concat(S,"_").concat(e))}}),wp.element.createElement(mt,{value:V,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",0,"".concat(e).concat(N,"_").concat(S,"_").concat(j))},min:0,unit:N,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",0,"".concat(V).concat(e,"_").concat(S,"_").concat(j))}}),wp.element.createElement(pt,{value:S,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(e,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(G),"".concat(P).concat(T,"_").concat(e,"_").concat(A))):F("border",0,"".concat(V).concat(N,"_").concat(e,"_").concat(j))}})),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(D?"is-ticked":""),icon:D?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",2,D?0:1)}}),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--right bm-box-model__right"},wp.element.createElement(We,{hideInput:!0,value:L,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",1,"".concat(M).concat(B,"_").concat(I,"_").concat(e))}}),wp.element.createElement(mt,{direction:"vertical",value:M,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",1,"".concat(e).concat(B,"_").concat(I,"_").concat(L))},min:0,unit:B,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",1,"".concat(M).concat(e,"_").concat(I,"_").concat(L))}}),wp.element.createElement(pt,{value:I,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(e,"_").concat(L),"".concat(H).concat(z,"_").concat(U,"_").concat(G),"".concat(P).concat(T,"_").concat(O,"_").concat(A))):F("border",1,"".concat(M).concat(B,"_").concat(e,"_").concat(L))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--bottom bm-box-model__bottom"},wp.element.createElement(pt,{value:U,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(e,"_").concat(G),"".concat(P).concat(T,"_").concat(O,"_").concat(A))):F("border",2,"".concat(H).concat(z,"_").concat(e,"_").concat(G))}}),wp.element.createElement(mt,{value:H,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",2,"".concat(e).concat(z,"_").concat(U,"_").concat(G))},min:0,unit:z,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",2,"".concat(H).concat(e,"_").concat(U,"_").concat(G))}}),wp.element.createElement(We,{hideInput:!0,value:G,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",2,"".concat(H).concat(z,"_").concat(U,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__border-control bm-box-model__border-control--left bm-box-model__left"},wp.element.createElement(pt,{value:O,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(j),"".concat(M).concat(B,"_").concat(I,"_").concat(L),"".concat(H).concat(z,"_").concat(U,"_").concat(G),"".concat(P).concat(T,"_").concat(e,"_").concat(A))):F("border",3,"".concat(P).concat(T,"_").concat(e,"_").concat(A))}}),wp.element.createElement(mt,{direction:"vertical",value:P,onChange:function(e){e=q(e)?e:0,D?$("border",("".concat(e).concat(N,"_").concat(S,"_").concat(j),"".concat(e).concat(B,"_").concat(I,"_").concat(L),"".concat(e).concat(z,"_").concat(U,"_").concat(G),"".concat(e).concat(T,"_").concat(O,"_").concat(A))):F("border",3,"".concat(e).concat(T,"_").concat(O,"_").concat(A))},min:0,unit:T,units:["px","em","%"],onChangeUnit:function(e){D?$("border",("".concat(V).concat(e,"_").concat(S,"_").concat(j),"".concat(M).concat(e,"_").concat(I,"_").concat(L),"".concat(H).concat(e,"_").concat(U,"_").concat(G),"".concat(P).concat(e,"_").concat(O,"_").concat(A))):F("border",3,"".concat(P).concat(e,"_").concat(O,"_").concat(A))}}),wp.element.createElement(We,{hideInput:!0,value:A,onChange:function(e){D?$("border",("".concat(V).concat(N,"_").concat(S,"_").concat(e),"".concat(M).concat(B,"_").concat(I,"_").concat(e),"".concat(H).concat(z,"_").concat(U,"_").concat(e),"".concat(P).concat(T,"_").concat(O,"_").concat(e))):F("border",3,"".concat(P).concat(T,"_").concat(O,"_").concat(e))}})),wp.element.createElement("div",{className:"bm-box-model__padding"},wp.element.createElement(mt,{className:"bm-box-model__top",value:b,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E),"".concat(e).concat(E))):F("padding",0,"".concat(e).concat(E))},min:a,unit:E,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e),"".concat(b).concat(e))):F("padding",0,"".concat(b).concat(e))}}),wp.element.createElement(Le,{label:"Tick all",showTooltip:!0,className:"bm-box-model__tick ".concat(W?"is-ticked":""),icon:W?wp.element.createElement(ee,null):wp.element.createElement(te,null),onClick:function(){F("connected",1,W?0:1)}}),wp.element.createElement(mt,{className:"bm-box-model__right",direction:"vertical",value:x,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(y),"".concat(e).concat(y),"".concat(e).concat(y),"".concat(e).concat(y))):F("padding",1,"".concat(e).concat(y))},min:a,unit:y,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e),"".concat(x).concat(e))):F("padding",1,"".concat(x).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__bottom",value:C,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_),"".concat(e).concat(_))):F("padding",2,"".concat(e).concat(_))},min:a,unit:_,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e),"".concat(C).concat(e))):F("padding",2,"".concat(C).concat(e))}}),wp.element.createElement(mt,{className:"bm-box-model__left",direction:"vertical",value:k,onChange:function(e){e=q(e)?e:0,W?$("padding",("".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R),"".concat(e).concat(R))):F("padding",3,"".concat(e).concat(R))},min:a,unit:R,units:["px","em","%"],onChangeUnit:function(e){W?$("padding",("".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e),"".concat(k).concat(e))):F("padding",3,"".concat(k).concat(e))}}),wp.element.createElement("div",{className:"bm-box-model__inner"}))))))},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");n=n.map((function(e){return function(e){if(!e)return"";switch(e){case"b":return"box-sizing: border-box;";case"c":return"box-sizing: content-box;"}return""}(e)}));var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(n[0]," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(n[1]," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(n[2]," } }"):""].filter(Boolean).join("\n")},me=function(e){var t=e.value,n=e.onChange,c=e.reset,o=void 0===c?"":c,a=t,l=function(e){n(e)};return wp.element.createElement("div",{className:"bm-box-sizing-control"},wp.element.createElement(ut,{name:"Box Sizing",onReset:function(){n(o)}}),wp.element.createElement("div",{className:"bm-inline-row"},wp.element.createElement(Le,{label:"Border Box",showTooltip:!0,className:"".concat("b"===a?"is-active":""),onClick:function(){return l("b")}},wp.element.createElement(b,null)),wp.element.createElement(Le,{label:"Content Box",showTooltip:!0,className:"".concat("c"===t?"is-active":""),onClick:function(){return l("c")}},wp.element.createElement(E,null))))},ue=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M4 10.207.646 6.854l.708-.708L3.5 8.293V0h1v8.293l2.146-2.147.708.708z"}))},se=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"7",viewBox:"0 0 11 7"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M10.707 3.5 7.354.146l-.708.708L8.793 3H.5v1h8.293L6.646 6.146l.708.708z"}))},de=function(){return wp.element.createElement(t.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},wp.element.createElement(t.Path,{fillRule:"evenodd",stroke:"none",d:"M8 3h2c1.933 0 3.5 1.567 3.5 3.5 0 1.933-1.567 3.5-3.5 3.5H4.707l2.147 2.146-.708.708-3-3-.353-.354.353-.354 3-3 .708.708L4.707 9H10c1.38 0 2.5-1.12 2.5-2.5C12.5 5.12 11.38 4 10 4H8z"}))},fe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M15 14.75c0 .138.112.25.25.25h.25a.5.5 0 0 1 0 1h-.25c-.69 0-1.25-.56-1.25-1.25v-6.5c0-.69.56-1.25 1.25-1.25h.25a.5.5 0 0 1 0 1h-.25a.25.25 0 0 0-.25.25zm-8 .75a.5.5 0 0 1 .5-.5h.25a.25.25 0 0 0 .25-.25v-6.5A.25.25 0 0 0 7.75 8H7.5a.5.5 0 0 1 0-1h.25C8.44 7 9 7.56 9 8.25v6.5C9 15.44 8.44 16 7.75 16H7.5a.5.5 0 0 1-.5-.5m4-2a.5.5 0 1 0 1 0v-4a.5.5 0 0 0-1 0z",clipRule:"evenodd"}))},pe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M7.5 7a.5.5 0 0 1 .5.5v.25c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V7.5a.5.5 0 0 1 1 0v.25C16 8.44 15.44 9 14.75 9h-6.5C7.56 9 7 8.44 7 7.75V7.5a.5.5 0 0 1 .5-.5m.75 8a.25.25 0 0 0-.25.25v.25a.5.5 0 0 1-1 0v-.25c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v.25a.5.5 0 0 1-1 0v-.25a.25.25 0 0 0-.25-.25zm1.25-4a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},he=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"13",width:"5",height:"2"}))},we=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"6.5",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"7.5",y:"13",width:"5",height:"2"}))},ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"8",y:"5",width:"7",height:"2"}),wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}),wp.element.createElement(t.Rect,{x:"10",y:"13",width:"5",height:"2"}))},ge=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"13.5",width:"7",height:"2",transform:"rotate(-90 5 13.5)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"12.5",width:"5",height:"2",transform:"rotate(-90 13 12.5)"}))},be=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"15",width:"7",height:"2",transform:"rotate(-90 5 15)"}),wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}),wp.element.createElement(t.Rect,{x:"13",y:"15",width:"5",height:"2",transform:"rotate(-90 13 15)"}))},Ee=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"7",height:"2",transform:"matrix(0 1 1 0 5 5)"}),wp.element.createElement(t.Rect,{width:"10",height:"2",transform:"matrix(0 1 1 0 9 5)"}),wp.element.createElement(t.Rect,{width:"5",height:"2",transform:"matrix(0 1 1 0 13 5)"}))},xe=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},ye=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 7 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 11 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},Ce=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 15)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 5 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 9 9)"}),wp.element.createElement(t.Rect,{width:"2",height:"4",transform:"matrix(1 0 0 -1 13 9)"}))},_e=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"5",y:"9",width:"10",height:"2"}))},ke=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"7.5",y:"9",width:"5",height:"2"}))},Re=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"15",width:"10",height:"2",transform:"rotate(-90 9 15)"}))},Ve=function(){return wp.element.createElement(t.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Rect,{x:"9",y:"12.5",width:"5",height:"2",transform:"rotate(-90 9 12.5)"}))},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(Se(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(Se(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(Se(n[2])," } }"):""].filter(Boolean).join("\n")},Se=function(e){var t,n,c,o,a,l,r;if(!e)return"";var i=K(e,",",7),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column";switch(e){case"c":return"column";case"r":return"row";case"cr":return"column-reverse";case"rr":return"row-reverse"}return t}(null===(t=i=i.split(","))||void 0===t?void 0:t[0]),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"w":return"wrap";case"n":return"nowrap";case"rw":return"wrap-reverse"}return t}(null===(n=i)||void 0===n?void 0:n[1]),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"b":return"baseline"}return t}(null===(c=i)||void 0===c?void 0:c[2]),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"s":return"stretch";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(o=i)||void 0===o?void 0:o[3]),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"fs":return"flex-start";case"c":return"center";case"fe":return"flex-end";case"sb":return"space-between";case"sa":return"space-around"}return t}(null===(a=i)||void 0===a?void 0:a[4]),p=(null===(l=i)||void 0===l?void 0:l[5])||"",h=Y(p,""),w=$(p,"px"),v=(null===(r=i)||void 0===r?void 0:r[6])||"",g=Y(v,""),b=$(v,"px"),E=[];return m&&E.push("flex-direction: ".concat(m,";")),u&&E.push("flex-wrap: ".concat(u,";")),s&&E.push("align-items: ".concat(s,";")),d&&E.push("align-content: ".concat(d,";")),f&&E.push("justify-content: ".concat(f,";")),h&&E.push("row-gap: ".concat(h).concat(w,";")),g&&E.push("column-gap: ".concat(g).concat(b,";")),E.join("")},je=function(e){var t,n,c,o,a,l,r,i=e.value,m=e.onChange,u=e.reset,s=void 0===u?"":u,d=K(i,",",7),f=(null===(t=d=d.split(","))||void 0===t?void 0:t[0])||"c",p=(null===(n=d)||void 0===n?void 0:n[1])||"",h=(null===(c=d)||void 0===c?void 0:c[2])||"",w=(null===(o=d)||void 0===o?void 0:o[3])||"",v=(null===(a=d)||void 0===a?void 0:a[4])||"",g=(null===(l=d)||void 0===l?void 0:l[5])||"",b=Y(g,""),E=$(g,"px"),x=(null===(r=d)||void 0===r?void 0:r[6])||"",y=Y(x,""),C=$(x,"px"),_=function(e){m(e)},k=function(e){return(null==e?void 0:e.flexDirection)===f&&(null==e?void 0:e.flexWrap)===p&&(null==e?void 0:e.alignItems)===h&&(null==e?void 0:e.alignContent)===w&&(null==e?void 0:e.justifyContent)===v};return wp.element.createElement("div",{className:"bm-flex-control"},wp.element.createElement(ut,{name:"Flex Box",onReset:function(){m(s)}}),wp.element.createElement("div",{className:"bm-flex-control__display"},wp.element.createElement(Le,{className:"".concat("c"===f?"is-active":""),onClick:function(){_("c,".concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ue,null)),wp.element.createElement(Le,{className:"".concat("r"===f&&"w"!==p?"is-active":""),onClick:function(){_("r,,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(se,null)),wp.element.createElement(Le,{className:"".concat("w"===p?"is-active":""),onClick:function(){_("r,w,".concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(de,null))),wp.element.createElement("div",{className:"bm-flex-control__align-box"},wp.element.createElement("div",{className:"bm-flex-control__align-left"},"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"fs",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fs,fs,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fs,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ee,null)):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-center"},"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"c",alignContent:"fs"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:""})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"c"})?"is-active":"",onClick:function(e){_("".concat(f,",").concat(p,",fs,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ve,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ke,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"c",alignContent:"c"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("r,w,c,c,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null))):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Re,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ge,null))):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null)))),wp.element.createElement("div",{className:"bm-flex-control__align-right"},"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"",alignItems:"fe",alignContent:"fs"})?"is-active":"",onClick:function(){_("r,w,fe,fe,,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(xe,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:""})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(Le,{className:k({alignItems:"fs",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fs,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(he,null))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"c",alignItems:"c",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,c,fe,c,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ye,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"c"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",c,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(React.Fragment,null,"sb"===v?wp.element.createElement(Le,{className:k({justifyContent:"sb"})?"is-active":"",onClick:function(e){2===e.detail&&_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(_e,null)):wp.element.createElement(Le,{className:k({alignItems:"c",justifyContent:"fe"})?"is-active":"",onClick:function(e){2===e.detail?_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",sb,").concat(b).concat(E,",").concat(y).concat(C)):_("".concat(f,",").concat(p,",c,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(we,null)))),"w"===p?wp.element.createElement(Le,{className:k({flexDirection:"r",flexWrap:"w",justifyContent:"fe",alignItems:"fe",alignContent:"fe"})?"is-active":"",onClick:function(){_("r,w,fe,fe,fe,".concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(Ce,null)):wp.element.createElement(React.Fragment,null,"r"===f?wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(be,null)):wp.element.createElement(Le,{className:k({alignItems:"fe",justifyContent:"fe"})?"is-active":"",onClick:function(){_("".concat(f,",").concat(p,",fe,").concat(w,",fe,").concat(b).concat(E,",").concat(y).concat(C))}},wp.element.createElement(ve,null))))),wp.element.createElement("div",{className:"bm-flex-control__gap"},wp.element.createElement(mt,{value:b,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(e).concat(E,",").concat("w"!==p?e:y).concat(C))},icon:wp.element.createElement(fe,null),unit:E,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(e,",").concat(y).concat("w"!==p?e:C))}}),"w"===p&&wp.element.createElement(mt,{placeholder:b,value:y,onChange:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(e).concat(C))},icon:wp.element.createElement(pe,null),unit:C,units:["px","em","rem","%"],onChangeUnit:function(e){_("".concat(f,",").concat(p,",").concat(h,",").concat(w,",").concat(v,",").concat(b).concat(E,",").concat(y).concat(e))}})))};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Me.apply(this,arguments)}var Be,Ie=function(n){var c=(0,e.useRef)();return(0,e.useEffect)((function(){var e=function(e){c.current&&!c.current.contains(e.target)&&n.onClose()};return function(){return document.removeEventListener("mousedown",e)}}),[c]),wp.element.createElement(t.Popover,Me({},n,{ref:c,className:"bm-popover"}),wp.element.createElement("div",{ref:c},n.children))},Le=function(e){var n=e.style,c=void 0===n?{}:n,o=e.icon,a=void 0===o?null:o,l=e.label,r=void 0===l?"":l,i=e.showTooltip,m=void 0!==i&&i,u=e.onClick,s=e.className,d=e.children;return wp.element.createElement(t.Button,{style:c,icon:a,label:r,showTooltip:m,className:"bm-button-control ".concat(s),onClick:u},d)},He=n(412);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function Pe(e,t,n){var c;return c=function(e,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=ze(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==ze(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be={transparent:"rgba(0,0,0,0)",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00fff",aliceblue:"#f0f8ff",antiquewhite:"#faebd7"},"aqua","#00ffff"),"aquamarine","#7fffd4"),"azure","#f0ffff"),"beige","#f5f5dc"),"bisque","#ffe4c4"),"black","#000000"),"blanchedalmond","#ffebcd"),"blue","#0000ff"),"blueviolet","#8a2be2"),"brown","#a52a2a"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"burlywood","#deb887"),"cadetblue","#5f9ea0"),"chartreuse","#7fff00"),"chocolate","#d2691e"),"coral","#ff7f50"),"cornflowerblue","#6495ed"),"cornsilk","#fff8dc"),"crimson","#dc143c"),"cyan","#00ffff"),"darkblue","#00008b"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"darkcyan","#008b8b"),"darkgoldenrod","#b8860b"),"darkgray","#a9a9a9"),"darkgreen","#006400"),"darkgrey","#a9a9a9"),"darkkhaki","#bdb76b"),"darkmagenta","#8b008b"),"darkolivegreen","#556b2f"),"darkorange","#ff8c00"),"darkorchid","#9932cc"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"darkred","#8b0000"),"darksalmon","#e9967a"),"darkseagreen","#8fbc8f"),"darkslateblue","#483d8b"),"darkslategray","#2f4f4f"),"darkslategrey","#2f4f4f"),"darkturquoise","#00ced1"),"darkviolet","#9400d3"),"deeppink","#ff1493"),"deepskyblue","#00bfff"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"dimgray","#696969"),"dimgrey","#696969"),"dodgerblue","#1e90ff"),"firebrick","#b22222"),"floralwhite","#fffaf0"),"forestgreen","#228b22"),"fuchsia","#ff00ff"),"gainsboro","#dcdcdc"),"ghostwhite","#f8f8ff"),"gold","#ffd700"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"goldenrod","#daa520"),"gray","#808080"),"green","#008000"),"greenyellow","#adff2f"),"grey","#808080"),"honeydew","#f0fff0"),"hotpink","#ff69b4"),"indianred","#cd5c5c"),"indigo","#4b0082"),"ivory","#fffff0"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"khaki","#f0e68c"),"lavender","#e6e6fa"),"lavenderblush","#fff0f5"),"lawngreen","#7cfc00"),"lemonchiffon","#fffacd"),"lightblue","#add8e6"),"lightcoral","#f08080"),"lightcyan","#e0ffff"),"lightgoldenrodyellow","#fafad2"),"lightgray","#d3d3d3"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"lightgreen","#90ee90"),"lightgrey","#d3d3d3"),"lightpink","#ffb6c1"),"lightsalmon","#ffa07a"),"lightseagreen","#20b2aa"),"lightskyblue","#87cefa"),"lightslategray","#778899"),"lightslategrey","#778899"),"lightsteelblue","#b0c4de"),"lightyellow","#ffffe0"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"lime","#00ff00"),"limegreen","#32cd32"),"linen","#faf0e6"),"magenta","#ff00f"),"maroon","#800000"),"mediumaquamarine","#66cdaa"),"mediumblue","#0000cd"),"mediumorchid","#ba55d3"),"mediumpurple","#9370db"),"mediumseagreen","#3cb371"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"mediumslateblue","#7b68ee"),"mediumspringgreen","#00fa9a"),"mediumturquoise","#48d1cc"),"mediumvioletred","#c71585"),"midnightblue","#191970"),"mintcream","#f5fffa"),"mistyrose","#ffe4e1"),"moccasin","#ffe4b5"),"navajowhite","#ffdead"),"navy","#000080"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"oldlace","#fdf5e6"),"olive","#808000"),"olivedrab","#6b8e23"),"orange","#ffa500"),"orangered","#ff4500"),"orchid","#da70d6"),"palegoldenrod","#eee8aa"),"palegreen","#98fb98"),"paleturquoise","#afeeee"),"palevioletred","#db7093"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"papayawhip","#ffefd5"),"peachpuff","#ffdab9"),"peru","#cd853f"),"pink","#ffc0cb"),"plum","#dda0dd"),"powderblue","#b0e0e6"),"purple","#800080"),"rebeccapurple","#663399"),"red","#ff0000"),"rosybrown","#bc8f8f"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"royalblue","#4169e1"),"saddlebrown","#8b4513"),"salmon","#fa8072"),"sandybrown","#f4a460"),"seagreen","#2e8b57"),"seashell","#fff5ee"),"sienna","#a0522d"),"silver","#c0c0c0"),"skyblue","#87ceeb"),"slateblue","#6a5acd"),Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Pe(Be,"slategray","#708090"),"slategrey","#708090"),"snow","#fffafa"),"springgreen","#00ff7f"),"steelblue","#4682b4"),"tan","#d2b48c"),"teal","#008080"),"thistle","#d8bfd8"),"tomato","#ff6347"),"turquoise","#40e0d0"),Pe(Pe(Pe(Pe(Pe(Pe(Be,"violet","#ee82ee"),"wheat","#f5deb3"),"white","#ffffff"),"whitesmoke","#f5f5f5"),"yellow","#ffff00"),"yellowgreen","#9acd3")),Oe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8 7h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1M6 8a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm8.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M13 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-2 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m1.5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m2-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m2-4a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0m-.5 2.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1m.5 1.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0",clipRule:"evenodd"}))},Ae=function(e){return e?e=(e=(e=e.replace("#","")).substr(0,6)).toUpperCase():""},Ze=function(e){var t=Ae(e);return t?(8===t.length&&(t=t.slice(0,6)),t.toUpperCase()):""},We=function(n){var c=n.hideInput,o=void 0!==c&&c,a=n.value,l=n.onChange,r=n.placeholder,i=Ue((0,e.useState)(!1),2),m=i[0],u=i[1],s="",d=100;if(a=a||r){var f=(0,He.Mj)(a).toRgb();d=100*f.a,f.a=1,s=(0,He.Mj)(f).toHex()}var p=function(e){return l(e)};return wp.element.createElement("div",{className:"bm-color-picker ".concat(m?"is-active":"")},wp.element.createElement(st,null,wp.element.createElement(Le,{className:"bm-color-picker__preview",style:{border:"none",height:"16px",width:"16px",backgroundImage:'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHZpZXdCb3g9IjAgMCA2IDYiIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0wIDBIM1YzSDBWMFoiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMyAwSDZWM0gzVjBaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0zIDNINlY2SDNWM1oiIGZpbGw9IiNFMUUxRTEiLz48cGF0aCBkPSJNMCAzSDNWNkgwVjNaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==")'},onClick:function(){u(!m)}},wp.element.createElement("span",{style:{backgroundColor:s}}),wp.element.createElement("span",{style:{backgroundColor:a}})),o?null:wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{className:"bm-color-picker__input",autoComplete:"false",spellCheck:"false",dir:"auto",value:Ae(a),placeholder:Ze(a),onChange:function(e){var t;p(null==e||null===(t=e.target)||void 0===t?void 0:t.value)},onBlur:function(e){var t,n=(null==e||null===(t=e.target)||void 0===t?void 0:t.value)||"";if(n)if(Te[n.toLowerCase()]){n=Te[n.toLowerCase()];var c=(0,He.Mj)(n).toRgb();c.a=d/100;var o=(0,He.Mj)(c).toHex();p(o)}else if(n.length<=7){n=n.startsWith("#")?n:"#".concat(n);var a=(0,He.Mj)(n).toRgb();a.a=d/100;var l=(0,He.Mj)(a).toHex();p(l)}else;}}),wp.element.createElement(mt,{min:0,step:1,max:100,value:d.toFixed(0),onChange:function(e){var t=e||0,n=(0,He.Mj)(a).toRgb();n.a=t/100;var c=(0,He.Mj)(n).toHex();p(c)},icon:wp.element.createElement(Oe,null)}))),m?wp.element.createElement(t.Popover,{className:"bm-color-picker__popover",position:"bottom start",focusOnMount:!1,onClose:function(){return u(!1)}},wp.element.createElement(t.ColorPicker,{color:a,onChange:function(e){},onChangeComplete:function(e){p(e.hex)}})):null)},De=wp.data,Fe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.5 6a.5.5 0 0 1 .5.5V11h4.5a.5.5 0 0 1 0 1H12v4.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H11V6.5a.5.5 0 0 1 .5-.5",clipRule:"evenodd"}))},qe=function(e){var t=e.className,n=e.label,c=e.device,o=e.onAddNew,a=e.onReset,l=void 0!==a&&a;return wp.element.createElement("div",{className:"bm-responsive ".concat(t)},n&&wp.element.createElement("label",null,n),!1===l?null:wp.element.createElement(ht,{onReset:l}),wp.element.createElement("div",{className:"bm-responsive__buttons"},["Desktop","Tablet","Mobile"].map((function(e,t){return wp.element.createElement(Le,{label:e,showTooltip:!0,key:t,className:"bm-responsive__button ".concat(c.toLowerCase()===e.toLowerCase()?"is-active":""),onClick:function(){return t=e,void(0,De.dispatch)("core/editor").setDeviceType(t);var t}},"Desktop"===e?wp.element.createElement(s,null):"Tablet"===e?wp.element.createElement(d,null):wp.element.createElement(f,null))}))),o&&wp.element.createElement(Le,{label:"Add new",showTooltip:!0,className:"bm-responsive__add-new",onClick:o},wp.element.createElement(Fe,null)))};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ye(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Xe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M12.478 8H15.5a.5.5 0 0 1 0 1h-3c-.708 0-1.21 0-1.601.032-.386.032-.622.092-.807.186a2 2 0 0 0-.874.874c-.094.185-.154.42-.186.807C9 11.29 9 11.792 9 12.5v3a.5.5 0 0 1-1 0v-3.022c0-.681 0-1.223.036-1.66.036-.448.113-.83.291-1.18a3 3 0 0 1 1.311-1.311c.35-.178.732-.255 1.18-.291C11.254 8 11.796 8 12.477 8",clipRule:"evenodd"}))},Je=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.522 8H8.5a.5.5 0 0 0 0 1h3c.708 0 1.21 0 1.601.032.386.032.622.092.807.186a2 2 0 0 1 .874.874c.094.185.154.42.186.807.032.392.032.893.032 1.601v3a.5.5 0 0 0 1 0v-3.022c0-.681 0-1.223-.036-1.66-.036-.448-.113-.83-.291-1.18a3 3 0 0 0-1.311-1.311c-.35-.178-.732-.255-1.18-.291C12.746 8 12.204 8 11.523 8",clipRule:"evenodd"}))},Ke=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M12.478 16H15.5a.5.5 0 0 0 0-1h-3c-.708 0-1.21 0-1.601-.032-.386-.032-.622-.092-.807-.186a2 2 0 0 1-.874-.874c-.094-.185-.154-.42-.186-.807C9 12.71 9 12.208 9 11.5v-3a.5.5 0 0 0-1 0v3.022c0 .681 0 1.223.036 1.66.036.448.113.83.291 1.18a3 3 0 0 0 1.311 1.311c.35.178.732.255 1.18.291.437.036.979.036 1.66.036",clipRule:"evenodd"}))},Qe=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M11.522 16H8.5a.5.5 0 0 1 0-1h3c.708 0 1.21 0 1.601-.032.386-.032.622-.092.807-.186a2 2 0 0 0 .874-.874c.094-.185.154-.42.186-.807C15 12.71 15 12.208 15 11.5v-3a.5.5 0 0 1 1 0v3.022c0 .681 0 1.223-.036 1.66-.036.448-.113.83-.291 1.18a3 3 0 0 1-1.311 1.311c-.35.178-.732.255-1.18.291-.437.036-.979.036-1.66.036",clipRule:"evenodd"}))},et=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M8.9 6h-.02c-.403 0-.735 0-1.006.022-.28.023-.54.072-.782.196a2 2 0 0 0-.874.874c-.124.243-.173.501-.196.782C6 8.144 6 8.477 6 8.88v.62a.5.5 0 0 0 1 0v-.6c0-.428 0-.72.019-.944.018-.22.05-.332.09-.41a1 1 0 0 1 .437-.437c.078-.04.19-.072.41-.09C8.18 7 8.472 7 8.9 7h.6a.5.5 0 0 0 0-1zm6.2 0h.02c.403 0 .735 0 1.006.022.281.023.54.072.782.196a2 2 0 0 1 .874.874c.124.243.173.501.196.782.022.27.022.603.022 1.005V9.5a.5.5 0 0 1-1 0v-.6c0-.428 0-.72-.019-.944-.018-.22-.05-.332-.09-.41a1 1 0 0 0-.437-.437c-.078-.04-.19-.072-.41-.09A13 13 0 0 0 15.1 7h-.6a.5.5 0 0 1 0-1zm.02 12h-.62a.5.5 0 0 1 0-1h.6c.428 0 .72 0 .944-.019.22-.018.332-.05.41-.09a1 1 0 0 0 .437-.437c.04-.078.072-.19.09-.41.019-.225.019-.516.019-.944v-.6a.5.5 0 0 1 1 0v.62c0 .403 0 .735-.022 1.006-.023.281-.072.54-.196.782a2 2 0 0 1-.874.874c-.243.124-.501.173-.782.196-.27.022-.603.022-1.005.022M8.9 18h-.02c-.403 0-.735 0-1.006-.022-.281-.023-.54-.072-.782-.196a2 2 0 0 1-.874-.874c-.124-.243-.173-.501-.196-.782A13 13 0 0 1 6 15.12v-.62a.5.5 0 0 1 1 0v.6c0 .428 0 .72.019.944.018.22.05.332.09.41a1 1 0 0 0 .437.437c.078.04.19.072.41.09.225.019.516.019.944.019h.6a.5.5 0 0 1 0 1z",clipRule:"evenodd"}))},tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("string"!=typeof e)return"";for(var n=e.split(";");n.length<3;)n.push("");var c="@media (max-width: 782px)",o="@media (max-width: 600px)";return[n[0]?"".concat(t," { ").concat(nt(n[0])," }"):"",n[1]?"".concat(c," { ").concat(t," { ").concat(nt(n[1])," } }"):"",n[2]?"".concat(o," { ").concat(t," { ").concat(nt(n[2])," } }"):""].filter(Boolean).join("\n")},nt=function(e){if(!e)return"";var t=ct(e),n=t.topLeftValue,c=t.topLeftUnit,o=t.topRightValue,a=t.topRightUnit,l=t.bottomRightValue,r=t.bottomRightUnit,i=t.bottomLeftValue,m=t.bottomLeftUnit,u=[];return u.push("border-top-left-radius: ".concat(n).concat(c,";")),u.push("border-top-right-radius: ".concat(o).concat(a,";")),u.push("border-bottom-left-radius: ".concat(i).concat(m,";")),u.push("border-bottom-right-radius: ".concat(l).concat(r,";")),u.join("")},ct=function(e){var t,n,c,o,a=K(e,",",4),l=(null===(t=a=a.split(","))||void 0===t?void 0:t[0])||"",r=(null===(n=a)||void 0===n?void 0:n[1])||"",i=(null===(c=a)||void 0===c?void 0:c[2])||"",m=(null===(o=a)||void 0===o?void 0:o[3])||"";return{topLeftValue:Y(l,""),topLeftUnit:$(l,"px"),topRightValue:Y(r,""),topRightUnit:$(r,"px"),bottomRightValue:Y(i,""),bottomRightUnit:$(i,"px"),bottomLeftValue:Y(m,""),bottomLeftUnit:$(m,"px")}},ot=function(t){var n=t.value,c=t.onChange,o=t.reset,a=void 0===o?"":o,l=ct(n),r=l.topLeftValue,i=l.topLeftUnit,m=l.topRightValue,u=l.topRightUnit,s=l.bottomRightValue,d=l.bottomRightUnit,f=l.bottomLeftValue,p=l.bottomLeftUnit,h=function(e){c(e)},w=$e((0,e.useState)(!1),2),v=w[0],g=w[1],b=r===m&&m===s&&s===f?r:"Mixed";return wp.element.createElement("div",{className:"bm-radius-control"},wp.element.createElement(ut,{name:"Corner Radius",onReset:function(){h(a)}}),wp.element.createElement(st,null,wp.element.createElement(mt,{placeholder:b,value:"Mixed"===b?"":r,onChange:function(e){h("".concat(e).concat(i,",").concat(e).concat(u,",").concat(e).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Xe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(Le,{onClick:function(){g(!v)}},wp.element.createElement(et,null))),v?wp.element.createElement(Ie,{className:"bm-radius-control__popover bm-popover",position:"bottom right",onClose:function(){g(!1)}},wp.element.createElement(st,null,wp.element.createElement(mt,{value:r,onChange:function(e){h("".concat(e).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Xe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(e,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:m,onChange:function(e){h("".concat(r).concat(i,",").concat(e).concat(u,",").concat(s).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Je,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(e,",").concat(s).concat(e,",").concat(f).concat(p))}})),wp.element.createElement(st,null,wp.element.createElement(mt,{value:f,onChange:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(e).concat(p))},icon:wp.element.createElement(Ke,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(d,",").concat(f).concat(e))}}),wp.element.createElement(mt,{value:s,onChange:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(e).concat(d,",").concat(f).concat(p))},icon:wp.element.createElement(Qe,null),min:0,max:500,unit:"px",units:["px","%"],onChangeUnit:function(e){h("".concat(r).concat(i,",").concat(m).concat(u,",").concat(s).concat(e,",").concat(f).concat(p))}}))):null)};function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var rt=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.80109 2.07902 5.61032 2.21967 5.46967C2.36032 5.32902 2.55109 5.25 2.75 5.25H9.25C9.44891 5.25 9.63968 5.32902 9.78033 5.46967C9.92098 5.61032 10 5.80109 10 6C10 6.19891 9.92098 6.38968 9.78033 6.53033C9.63968 6.67098 9.44891 6.75 9.25 6.75H2.75C2.55109 6.75 2.36032 6.67098 2.21967 6.53033C2.07902 6.38968 2 6.19891 2 6Z",fill:"currentColor"}))},it=function(){return wp.element.createElement(t.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(t.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 9.25a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5Z",fill:"currentColor"}))},mt=function(t){var n,c,o=t.canDrag,a=void 0===o||o,l=t.className,r=void 0===l?"":l,i=t.step,m=void 0===i?1:i,u=t.withIncrementors,s=void 0!==u&&u,d=t.placeholder,f=void 0===d?0:d,h=t.min,w=void 0===h?0:h,v=t.max,g=t.direction,b=t.value,E=t.onChange,x=t.onChangeUnit,y=t.icon,C=t.unit,_=t.units,k=t.suggests,R=void 0===k?{}:k,V=at((0,e.useState)(!1),2),N=V[0],S=(V[1],at((0,e.useState)(!1),2)),j=S[0],M=S[1],B=at((0,e.useState)(!1),2),I=B[0],L=B[1],H=at((0,e.useState)(!1),2),z=H[0],U=H[1],G=b&&"string"==typeof b&&b.startsWith("g:"),P="",T="",O="";G&&(P=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e?void 0:e.name)||""):""}(T=b.replace("g:","")),O=(null===(c=ctcGbGlobalStyles)||void 0===c||null===(c=c.collections)||void 0===c||null===(c=c.modes)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.id)||"");var A=function(e){if(a){M(!0);var t=b||0,n="vertical"===g?e.clientY:e.clientX,c=function(e){if(!(a=t)||("string"==typeof a&&(a=a.trim()),a&&a.toString().match(/^[0-9]+$/))){var c="vertical"===g?e.clientY:e.clientX,o=t+(c-n);"vertical"===g&&(o=t-(c-n)),Z(o)}var a};document.addEventListener("mousemove",c),document.addEventListener("mouseup",(function e(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",e),M(!1)}))}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e||(e=0),q(e)&&(t&&n&&("increase"===n&&(e=parseInt(e)+t),"decrease"===n&&(e=parseInt(e)-t)),(e=parseInt(e))<=w&&(e=w),e>=v&&(e=v)),E(e)},W=b?8*b.toString().length:8,D=at((0,e.useState)(!1),2),F=D[0],$=D[1],Y=at((0,e.useState)(!1),2),X=Y[0],J=Y[1],K=_&&_.length>1;return wp.element.createElement("div",{className:"bm-base-input ".concat(r," ").concat(N?"is-hovered":""," ").concat(j?"is-dragging":""," ").concat(I?"is-focused":""," ").concat("vertical"===g?"is-vertical":""," ").concat(s?"with-incrementors":""," ").concat(a?"bm-can-drag":"")},y&&wp.element.createElement("div",{className:"bm-base-input__icon",onMouseDown:function(e){G||A(e)},onMouseUp:function(){G||M(!1)}},y),s&&!G?wp.element.createElement(Le,{className:"bm-base-input__decrement",onClick:function(){var e=b?parseInt(b):0;Z(e-m)}},wp.element.createElement(rt,null)):null,G?wp.element.createElement("span",{className:"bm-global"},P,wp.element.createElement(Le,{onClick:function(){Z(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n?(c||(c=(null===(t=ctcGbGlobalStyles)||void 0===t||null===(t=t.collections)||void 0===t||null===(t=t.modes)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)||""),(null===(e=ctcGbGlobalStyles)||void 0===e||null===(e=e.collections)||void 0===e||null===(e=e.variables)||void 0===e||null===(e=e.find((function(e){return parseInt(e.id)===parseInt(n)})))||void 0===e||null===(e=e.values)||void 0===e?void 0:e[c])||""):""}(T))}},wp.element.createElement(p,null))):wp.element.createElement(React.Fragment,null,wp.element.createElement("input",{style:{width:W},placeholder:f,autoComplete:"false",spellCheck:"false",dir:"auto",value:b,onChange:function(e){Z(e.target.value)},onClick:function(){L(!0)},onFocus:function(){L(!0)},onBlur:function(){return L(!1)},onMouseDown:A,onMouseUp:function(){return M(!1)},onKeyDown:function(e){"ArrowUp"===e.key?Z(b,e.shiftKey?10:1,"increase"):"ArrowDown"===e.key&&Z(b,e.shiftKey?10:1,"decrease")}}),Object.keys(R).length>1&&!0===z&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-suggest-popover",onClose:function(){return U(!1)}},wp.element.createElement("div",{className:"bm-suggest-popover__content"},wp.element.createElement("ul",null,Object.keys(R).map((function(e){var t,n=(null===(t=R[e])||void 0===t?void 0:t.value)||"";return wp.element.createElement("li",{key:e},wp.element.createElement(Le,{onClick:function(){Z(n),U(!1)}},e))}))))),C&&wp.element.createElement("span",{className:"bm-base-input__unit",onClick:function(){K&&J(!X)}},C,K&&X&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-unit-popover",onClose:function(){return J(!1)}},wp.element.createElement("div",{className:"bm-unit-popover__content"},wp.element.createElement("ul",null,_.map((function(e){return wp.element.createElement("li",{key:e},wp.element.createElement(Le,{onClick:function(){x(e)}},e))})))))),F&&wp.element.createElement(Ie,{position:"bottom right",className:"bm-global-popover"},wp.element.createElement("div",{className:"bm-global-popover__content",style:{width:"200px"}},wp.element.createElement("h3",null,"Global Variables"),wp.element.createElement("ul",null,null===(n=ctcGbGlobalStyles)||void 0===n||null===(n=n.collections)||void 0===n||null===(n=n.variables)||void 0===n?void 0:n.map((function(e){var t=e.id,n=e.type,c=e.name,o=e.values,a=(null==o?void 0:o[O])||"";return wp.element.createElement("li",{key:t},wp.element.createElement(Le,{onClick:function(){E("g:".concat(t)),$(!1)}},wp.element.createElement("span",{style:{height:20,width:20,background:"color"===n?a:"transparent"}},"A"),c))})))))),s&&!G?wp.element.createElement(Le,{className:"bm-base-input__increment",onClick:function(){var e=b?parseInt(b):0;Z(e+m)}},wp.element.createElement(it,null)):null)},ut=function(e){var t=e.name,n=void 0===t?"":t,c=e.onReset,o=void 0!==c&&c;if(n)return wp.element.createElement("div",{className:"bm-control-label"},n,!1===o?null:wp.element.createElement(ht,{onReset:o}))},st=function(e){var t=e.children,n=e.label,c=void 0===n?"":n,o=e.className,a=void 0===o?"":o;return wp.element.createElement("div",{className:"bm-row ".concat(a)},c&&wp.element.createElement("div",{className:"bm-row__label"},c),t)},dt=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m5.5 0a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m6-.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z",clipRule:"evenodd"}))},ft=function(){return wp.element.createElement(t.SVG,{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},wp.element.createElement(t.Path,{fillRule:"evenodd",d:"M5 11.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5",clipRule:"evenodd"}))},pt=function(e){var n=e.value,c=e.onChange;return wp.element.createElement("div",{className:"bm-border-style bm-border-style--".concat(n)},wp.element.createElement(t.Button,{className:"bm-border-style__button",onClick:function(){c&&c("dashed"===n?"solid":"dashed")}},"dashed"===n?wp.element.createElement(dt,null):wp.element.createElement(ft,null)))},ht=function(e){var t=e.onReset;return wp.element.createElement(Le,{label:"Reset",showTooltip:!0,className:"bm-reset",onClick:t},wp.element.createElement(p,null))},wt=function(e){var t=e.label,n=void 0===t?"":t,c=e.value,o=void 0===c?"normal":c,a=e.onChange;return wp.element.createElement("div",{className:"bm-state-control"},wp.element.createElement(ut,{name:n}),wp.element.createElement(st,null,["normal","hover","active"].map((function(e){return wp.element.createElement(Le,{key:e,className:"".concat(o===e?"is-active":""),onClick:function(){a(e)}},"normal"===e&&wp.element.createElement(h,null),"hover"===e&&wp.element.createElement(w,null),"active"===e&&wp.element.createElement(v,null),wp.element.createElement("span",{className:"bm-state-control__label"},e))}))))},vt=n(470);wp.isShallowEqual;function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Et=function(t){var n=t.parent,c=t.id,o=t.style,a=t.selector,l=gt((0,e.useState)(o),2),r=(l[0],l[1]),i=function(){return"style-"+(c=(c=(c=(c=(c=c||a).replace(/\s+/g,"-")).replace(/[^a-zA-Z0-9-]/g,"")).replaceAll("#","")).replaceAll("wp-block-",""))},m=F(),u=function(){var e=i();if(!m.getElementById(e)){var t=m.createElement("style");return t.id=e,m.head.appendChild(t),t}};(0,e.useEffect)((function(){u()}),[]),(0,e.useEffect)((function(){r(o)}),[o]),(0,e.useEffect)((function(){var e=m.getElementById(i());e||(e=u());var t="";t+=function(e,t,n){var c,o,a,l,r,i,m,u,s,d,f,p,h,w,v,g,b,E,x,y,C,_,k,R,V,N,S,j="",B=n,L="".concat(n,":hover"),H="".concat(n,":focus");return e&&(L=(L=n.replace(":hover","")).replace("#block-".concat(e," >"),"#block-".concat(e,":hover >")),H=(H=n.replace(":focus","")).replace("#block-".concat(e," >"),"#block-".concat(e,":focus >"))),j+=M(null==t||null===(c=t.normal)||void 0===c?void 0:c.display,B),j+=M(null==t||null===(o=t.hover)||void 0===o?void 0:o.display,L),j+=M(null==t||null===(a=t.focus)||void 0===a?void 0:a.display,H),j+=I(null==t||null===(l=t.normal)||void 0===l?void 0:l.sides,B),j+=I(null==t||null===(r=t.hover)||void 0===r?void 0:r.sides,L),j+=I(null==t||null===(i=t.focus)||void 0===i?void 0:i.sides,H),j+=U(null==t||null===(m=t.normal)||void 0===m?void 0:m.position,B),j+=U(null==t||null===(u=t.hover)||void 0===u?void 0:u.position,L),j+=U(null==t||null===(s=t.focus)||void 0===s?void 0:s.position,H),j+=W(null==t||null===(d=t.normal)||void 0===d?void 0:d.zIndex,B),j+=W(null==t||null===(f=t.hover)||void 0===f?void 0:f.zIndex,L),j+=W(null==t||null===(p=t.focus)||void 0===p?void 0:p.zIndex,H),j+=O(null==t||null===(h=t.normal)||void 0===h?void 0:h.dimentions,B),j+=O(null==t||null===(w=t.hover)||void 0===w?void 0:w.dimentions,L),j+=O(null==t||null===(v=t.focus)||void 0===v?void 0:v.dimentions,H),j+=ne(null==t||null===(g=t.normal)||void 0===g?void 0:g.boxModel,B),j+=ne(null==t||null===(b=t.hover)||void 0===b?void 0:b.boxModel,L),j+=ne(null==t||null===(E=t.focus)||void 0===E?void 0:E.boxModel,H),j+=ie(null==t||null===(x=t.normal)||void 0===x?void 0:x.boxSizing,B),j+=ie(null==t||null===(y=t.hover)||void 0===y?void 0:y.boxSizing,L),j+=ie(null==t||null===(C=t.focus)||void 0===C?void 0:C.boxSizing,H),j+=Ne(null==t||null===(_=t.normal)||void 0===_?void 0:_.flex,B),j+=Ne(null==t||null===(k=t.hover)||void 0===k?void 0:k.flex,L),j+=Ne(null==t||null===(R=t.focus)||void 0===R?void 0:R.flex,H),j+=tt(null==t||null===(V=t.normal)||void 0===V?void 0:V.borderRadius,B),j+=tt(null==t||null===(N=t.hover)||void 0===N?void 0:N.borderRadius,L),j+tt(null==t||null===(S=t.focus)||void 0===S?void 0:S.borderRadius,H)}(n,o,a),e.innerHTML=t}),[o])},xt=n(838);function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},Ct.apply(this,arguments)}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){var c;return c=function(e,t){if("object"!=yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var c=n.call(e,t||"default");if("object"!=yt(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==yt(c)?c:String(c))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var c,o,a,l,r=[],i=!0,m=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(c=a.call(n)).done)&&(r.push(c.value),r.length!==t);i=!0);}catch(e){m=!0,o=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(m)throw o}}return r}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var St=(0,e.memo)((function(t){var n=t.device,c=t.deviceType,o=t.element,a=t.style,l=t.onChange,r=Vt((0,e.useState)("normal"),2),i=r[0],m=r[1],u=function(e){var t,n;return o?(null==a||null===(n=a[o])||void 0===n||null===(n=n[i])||void 0===n?void 0:n[e])||"":(null==a||null===(t=a[i])||void 0===t?void 0:t[e])||""},s=(0,e.useRef)();(0,e.useEffect)((function(){if(null!=s&&s.current){var e="bm-controls--hover",t=function(){document.body.classList.add(e)},n=function(){document.body.classList.remove(e)};return s.current.addEventListener("mouseenter",t),s.current.addEventListener("mouseleave",n),function(){s.current&&(s.current.removeEventListener("mouseenter",t),s.current.removeEventListener("mouseleave",n))}}}),[]);var d=function(e){return J(u(e),n)},f=function(e,t){!function(e,t){var n;l(kt(kt({},a),{},o?Rt({},o,kt(kt({},null==a?void 0:a[o]),{},Rt({},i,kt(kt({},null==a||null===(n=a[o])||void 0===n?void 0:n[i]),{},Rt({},e,t))))):Rt({},i,kt(kt({},null==a?void 0:a[i]),{},Rt({},e,t)))))}(e,X(u(e),t,n))};return wp.element.createElement("div",{ref:s,className:"bm-controls"},wp.element.createElement(wt,{value:i,onChange:function(e){return m(e)}}),wp.element.createElement(qe,{className:"bm-responsive--position bm-control-seperator",label:(0,vt.__)("Layout","bm"),device:c}),wp.element.createElement(B,Ct({},t,{value:d("display"),onChange:function(e){return f("display",e)}})),d("display")&&d("display").includes("f")?wp.element.createElement(je,Ct({},t,{value:d("flex"),onChange:function(e){return f("flex",e)}})):null,wp.element.createElement(G,Ct({},t,{value:d("position"),onChange:function(e){return f("position",e)}})),wp.element.createElement(H,Ct({},t,{value:d("sides"),onChange:function(e){return f("sides",e)}})),wp.element.createElement(D,Ct({},t,{value:d("zIndex"),onChange:function(e){return f("zIndex",e)}})),wp.element.createElement(qe,{className:"bm-responsive--position bm-control-seperator",label:(0,vt.__)("Box Model","bm"),device:c}),wp.element.createElement(Z,Ct({},t,{value:d("dimentions"),onChange:function(e){return f("dimentions",e)}})),wp.element.createElement(re,Ct({},t,{value:d("boxModel"),onChange:function(e){return f("boxModel",e)}})),wp.element.createElement(st,null,wp.element.createElement(me,Ct({},t,{value:d("boxSizing"),onChange:function(e){return f("boxSizing",e)}})),wp.element.createElement(ot,Ct({},t,{value:d("borderRadius"),onChange:function(e){return f("borderRadius",e)}}))))}));(0,e.memo)((function(e){var n=e.id,c=e.title,o=void 0===c?"Style":c,a=e.initialOpen,l=void 0===a||a,r=e.style,i=e.onChange,m=e.selector,u=void 0===m?"":m,s=e.clientId,d=void 0===s?"":s,f=e.allowed,p=void 0===f?{}:f,h=(0,De.useSelect)((function(e){return e("core/editor").getDeviceType()})),w=h.toLowerCase();return wp.element.createElement(React.Fragment,null,wp.element.createElement(Et,{style:r,selector:u||"#block-".concat(d)}),wp.element.createElement(xt.InspectorControls,null,wp.element.createElement(t.PanelBody,{title:o,initialOpen:l},wp.element.createElement(St,{deviceType:h,device:w,id:n,clientId:d,selector:u||"#block-".concat(d),element:"",style:r,onChange:i,allowed:p}))))})),n(964),wp.compose,wp.hooks}()}(); -
blocks-monster/trunk/includes/gutenberg/controls/class-css.php
r3224940 r3224949 131 131 case 'boxModel': 132 132 $properties .= $this->get_box_model_css( $value ); 133 break; 134 case 'boxSizing': 135 $properties .= $this->get_box_sizing_css( $value ); 136 break; 137 case 'borderRadius': 138 $properties .= $this->get_border_radius_css( $value ); 133 139 break; 134 140 } … … 350 356 351 357 $css = ''; 352 if ( $top_value ) {358 if ( '' !== $top_value ) { 353 359 $css .= 'top: ' . $top_value . $top_unit . ';'; 354 360 } 355 if ( $right_value ) {361 if ( '' !== $right_value ) { 356 362 $css .= 'right: ' . $right_value . $right_unit . ';'; 357 363 } 358 if ( $bottom_value ) {364 if ( '' !== $bottom_value ) { 359 365 $css .= 'bottom: ' . $bottom_value . $bottom_unit . ';'; 360 366 } 361 if ( $left_value ) {367 if ( '' !== $left_value ) { 362 368 $css .= 'left: ' . $left_value . $left_unit . ';'; 363 369 } … … 494 500 495 501 /** 502 * Get box sizing CSS 503 * 504 * @param array $value 505 */ 506 public function get_box_sizing_css( $value ) { 507 if ( ! $value ) { 508 return; 509 } 510 511 switch ( $value ) { 512 case 'c': $value = 'content-box'; break; 513 case 'b': $value = 'border-box'; break; 514 } 515 516 if ( ! $value ) { 517 return; 518 } 519 520 return 'box-sizing: ' . $value . ';'; 521 } 522 523 /** 524 * Get border radius CSS 525 * 526 * @param array $value 527 */ 528 public function get_border_radius_css( $value ) { 529 if ( ! $value ) { 530 return; 531 } 532 533 $filled = $this->get_device_values( $value, ',', 4 ); 534 $filled = explode( ',', $filled ); 535 536 $top_left = $filled[0] ?? ''; 537 $top_left_value = $this->get_value( $top_left ); 538 $top_left_unit = $this->get_unit( $top_left ); 539 $top_right = $filled[1] ?? ''; 540 $top_right_value = $this->get_value( $top_right ); 541 $top_right_unit = $this->get_unit( $top_right ); 542 $bottom_right = $filled[2] ?? ''; 543 $bottom_right_value = $this->get_value( $bottom_right ); 544 $bottom_right_unit = $this->get_unit( $bottom_right ); 545 $bottom_left = $filled[3] ?? ''; 546 $bottom_left_value = $this->get_value( $bottom_left ); 547 $bottom_left_unit = $this->get_unit( $bottom_left ); 548 549 $css = ''; 550 551 if ( $top_left_value ) { 552 $css .= 'border-top-left-radius: ' . $top_left_value . $top_left_unit . ';'; 553 } 554 555 if ( $top_right_value ) { 556 $css .= 'border-top-right-radius: ' . $top_right_value . $top_right_unit . ';'; 557 } 558 559 if ( $bottom_right_value ) { 560 $css .= 'border-bottom-right-radius: ' . $bottom_right_value . $bottom_right_unit . ';'; 561 } 562 563 if ( $bottom_left_value ) { 564 $css .= 'border-bottom-left-radius: ' . $bottom_left_value . $bottom_left_unit . ';'; 565 } 566 567 return $css; 568 } 569 570 /** 496 571 * Get value 497 572 * … … 500 575 */ 501 576 public function get_value( $value, $default = '' ) { 502 return preg_replace( '/[^0-9.]/', '', $value ) ?: $default; 577 $numeric_value = preg_replace( '/[^0-9.-]/', '', $value ); 578 return $numeric_value !== '' ? $numeric_value : $default; 503 579 } 504 580 -
blocks-monster/trunk/readme.txt
r3224940 r3224949 3 3 Tags: Blocks, Gutenberg, Gutenberg Blocks, Elementor, Elementor Blocks 4 4 Tested up to: 6.7.1 5 Stable tag: 1.8. 55 Stable tag: 1.8.6 6 6 Requires PHP: 5.6 7 7 Requires at least: 4.4 … … 39 39 40 40 == Changelog == 41 42 = 1.8.6 = 43 44 * Improvement: Added the border radius control support for the Section Gutenberg block. 45 * Improvement: Added the box sizing control support for the Section Gutenberg block. 41 46 42 47 = 1.8.5 =
Note: See TracChangeset
for help on using the changeset viewer.