/******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "./src/atomic-wind/blocks/icon/block.json":
/*!************************************************!*\
  !*** ./src/atomic-wind/blocks/icon/block.json ***!
  \************************************************/
/***/ (function(module) {

module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"atomic-wind/icon","title":"Icon","category":"atomic-wind","description":"An inline SVG icon from the Lucide icon set.","keywords":["icon","svg","lucide"],"textdomain":"atomic-wind","attributes":{"icon":{"type":"string","default":""},"customSvgEnabled":{"type":"boolean","default":false},"customSvg":{"type":"string","default":""},"metadata":{"type":"object"}},"supports":{"anchor":true,"html":false,"color":false,"typography":false,"spacing":false},"render":"file:./render.php","editorScript":"file:./index.js"}');

/***/ }),

/***/ "./src/atomic-wind/blocks/icon/edit.js":
/*!*********************************************!*\
  !*** ./src/atomic-wind/blocks/icon/edit.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": function() { return /* binding */ Edit; }
/* harmony export */ });
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);





const {
  icons: ALL_ICONS = [],
  iconsMap: ICONS_MAP = {}
} = window.atomicWindIcons ?? {};
const DEFAULT_ICON = 'circle';
const SVG_MAX_LENGTH = 50000;
const ELEMENT_NODE = 1;
const TEXT_NODE = 3;
const ALLOWED_SVG_TAGS = new Set(['svg', 'g', 'path', 'circle', 'rect', 'line', 'polyline', 'polygon', 'ellipse', 'defs', 'clippath', 'mask', 'lineargradient', 'radialgradient', 'stop', 'title', 'desc', 'text', 'tspan']);
const ALLOWED_SVG_ATTRIBUTES = new Set(['aria-hidden', 'class', 'clip-path', 'clip-rule', 'cx', 'cy', 'd', 'dx', 'dy', 'fill', 'fill-opacity', 'fill-rule', 'focusable', 'font-family', 'font-size', 'font-weight', 'fx', 'fy', 'gradienttransform', 'gradientunits', 'height', 'id', 'mask', 'offset', 'opacity', 'points', 'preserveaspectratio', 'r', 'role', 'rx', 'ry', 'spreadmethod', 'stop-color', 'stop-opacity', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'transform', 'viewbox', 'width', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2']);
const SVG_ATTRIBUTE_NAMES = {
  'class': 'className',
  'clip-path': 'clipPath',
  'clip-rule': 'clipRule',
  'fill-opacity': 'fillOpacity',
  'fill-rule': 'fillRule',
  'font-family': 'fontFamily',
  'font-size': 'fontSize',
  'font-weight': 'fontWeight',
  'gradienttransform': 'gradientTransform',
  'gradientunits': 'gradientUnits',
  'preserveaspectratio': 'preserveAspectRatio',
  'spreadmethod': 'spreadMethod',
  'stop-color': 'stopColor',
  'stop-opacity': 'stopOpacity',
  'stroke-dasharray': 'strokeDasharray',
  'stroke-dashoffset': 'strokeDashoffset',
  'stroke-linecap': 'strokeLinecap',
  'stroke-linejoin': 'strokeLinejoin',
  'stroke-miterlimit': 'strokeMiterlimit',
  'stroke-opacity': 'strokeOpacity',
  'stroke-width': 'strokeWidth',
  'text-anchor': 'textAnchor',
  'viewbox': 'viewBox'
};
function isSafeSvgAttribute(name, value) {
  const lowerName = name.toLowerCase();
  if (lowerName.startsWith('on')) {
    return false;
  }
  if (!ALLOWED_SVG_ATTRIBUTES.has(lowerName) && !lowerName.startsWith('aria-')) {
    return false;
  }
  const lowerValue = value.toLowerCase();
  if (lowerValue.includes('javascript:') || lowerValue.includes('vbscript:') || lowerValue.includes('data:') || /expression\s*\(/i.test(value)) {
    return false;
  }
  return !/url\s*\(\s*['"]?(?!#)/i.test(value);
}
function cleanSvgAttributes(element) {
  Array.from(element.attributes).forEach(attribute => {
    if (!isSafeSvgAttribute(attribute.name, attribute.value)) {
      element.removeAttribute(attribute.name);
    }
  });
}
function cleanSvgNode(node) {
  Array.from(node.childNodes).forEach(child => {
    if (child.nodeType === ELEMENT_NODE) {
      const tagName = child.tagName.toLowerCase();
      if (!ALLOWED_SVG_TAGS.has(tagName)) {
        child.remove();
        return;
      }
      cleanSvgAttributes(child);
      cleanSvgNode(child);
      return;
    }
    if (child.nodeType !== TEXT_NODE) {
      child.remove();
    }
  });
}
function sanitizeSvgCode(svgCode) {
  const value = (svgCode || '').trim();
  if (!value || value.length > SVG_MAX_LENGTH) {
    return {
      attributes: {},
      inner: '',
      isValid: false,
      svg: '',
      wasSanitized: false
    };
  }
  const document = new window.DOMParser().parseFromString(value, 'image/svg+xml');
  const root = document.documentElement;
  if (document.getElementsByTagName('parsererror').length || !root || root.tagName.toLowerCase() !== 'svg') {
    return {
      attributes: {},
      inner: '',
      isValid: false,
      svg: '',
      wasSanitized: false
    };
  }
  cleanSvgAttributes(root);
  cleanSvgNode(root);
  const serializer = new window.XMLSerializer();
  const inner = Array.from(root.childNodes).map(child => serializer.serializeToString(child)).join('');
  if (!inner.trim()) {
    return {
      attributes: {},
      inner: '',
      isValid: false,
      svg: '',
      wasSanitized: false
    };
  }
  const attributes = {};
  Array.from(root.attributes).forEach(attribute => {
    const name = SVG_ATTRIBUTE_NAMES[attribute.name.toLowerCase()] || attribute.name;
    attributes[name] = attribute.value;
  });
  const sanitizedSvg = serializer.serializeToString(root);
  return {
    attributes,
    inner,
    isValid: true,
    svg: sanitizedSvg,
    wasSanitized: sanitizedSvg !== value
  };
}
function mergeSvgProps(blockProps, svgAttributes) {
  const {
    className: svgClassName,
    ...attributes
  } = svgAttributes;
  return {
    ...attributes,
    ...blockProps,
    className: [svgClassName, blockProps.className].filter(Boolean).join(' ')
  };
}
function IconPreview({
  name,
  size,
  isSelected,
  onClick
}) {
  const svgInner = ICONS_MAP[name] || '';
  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("button", {
    type: "button",
    title: name,
    onClick: onClick,
    style: {
      background: isSelected ? 'var(--wp-admin-theme-color, #007cba)' : 'transparent',
      border: '1px solid',
      borderColor: isSelected ? 'transparent' : '#ddd',
      borderRadius: '4px',
      cursor: 'pointer',
      padding: '6px',
      color: isSelected ? '#fff' : 'currentColor',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center'
    },
    children: svgInner && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", {
      width: size,
      height: size,
      viewBox: "0 0 24 24",
      fill: "none",
      stroke: "currentColor",
      strokeWidth: "2",
      strokeLinecap: "round",
      strokeLinejoin: "round",
      dangerouslySetInnerHTML: {
        __html: svgInner
      }
    })
  });
}
function SelectedIcon({
  blockProps,
  customSvgEnabled,
  sanitizedCustomSvg,
  svgInner
}) {
  if (customSvgEnabled && sanitizedCustomSvg.isValid) {
    return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", {
      ...mergeSvgProps(blockProps, sanitizedCustomSvg.attributes),
      dangerouslySetInnerHTML: {
        __html: sanitizedCustomSvg.inner
      }
    });
  }
  if (customSvgEnabled) {
    return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
      ...blockProps,
      style: {
        ...blockProps.style,
        opacity: 0.4,
        fontSize: '12px'
      },
      children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Paste valid SVG code in the sidebar.', 'otter-blocks')
    });
  }
  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", {
    ...blockProps,
    viewBox: "0 0 24 24",
    fill: "none",
    stroke: "currentColor",
    strokeWidth: "2",
    strokeLinecap: "round",
    strokeLinejoin: "round",
    dangerouslySetInnerHTML: {
      __html: svgInner
    }
  });
}
function Edit({
  attributes,
  setAttributes
}) {
  const {
    icon,
    customSvgEnabled,
    customSvg
  } = attributes;
  const [search, setSearch] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useState)('');
  const blockProps = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.useBlockProps)();
  const svgInner = ICONS_MAP[icon] || ICONS_MAP[DEFAULT_ICON] || '';
  const sanitizedCustomSvg = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => sanitizeSvgCode(customSvg), [customSvg]);
  const filtered = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_3__.useMemo)(() => {
    const q = search.trim().toLowerCase();
    return q ? ALL_ICONS.filter(n => n.includes(q)) : ALL_ICONS;
  }, [search]);
  const onCustomSvgBlur = () => {
    if (sanitizedCustomSvg.isValid && sanitizedCustomSvg.svg !== (customSvg || '').trim()) {
      setAttributes({
        customSvg: sanitizedCustomSvg.svg
      });
    }
  };
  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
    children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_0__.InspectorControls, {
      children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.PanelBody, {
        title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Icon', 'otter-blocks'),
        children: [!customSvgEnabled && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SearchControl, {
            label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Search icons', 'otter-blocks'),
            value: search,
            onChange: setSearch
          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", {
            style: {
              display: 'grid',
              gridTemplateColumns: 'repeat(6, 1fr)',
              gap: '4px',
              maxHeight: '300px',
              overflowY: 'auto',
              marginTop: '8px'
            },
            children: filtered.slice(0, 120).map(name => /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(IconPreview, {
              name: name,
              size: "20",
              isSelected: name === icon,
              onClick: () => setAttributes({
                icon: name
              })
            }, name))
          }), search && filtered.length > 120 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("p", {
            style: {
              fontSize: '11px',
              color: '#757575',
              marginTop: '4px'
            },
            children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Showing first 120 results — refine your search.', 'otter-blocks')
          }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("p", {
            style: {
              margin: '12px 0',
              fontSize: '11px',
              color: '#757575',
              lineHeight: '1.4'
            },
            children: [(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Icons by', 'otter-blocks'), ' ', /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("a", {
              href: "https://lucide.dev",
              target: "_blank",
              rel: "noopener noreferrer",
              children: "Lucide"
            }), ' - ', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('open-source icon library.', 'otter-blocks')]
          })]
        }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, {
          label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Custom SVG', 'otter-blocks'),
          checked: !!customSvgEnabled,
          onChange: value => setAttributes({
            customSvgEnabled: value
          })
        }), customSvgEnabled && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
          children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextareaControl, {
            label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('SVG code', 'otter-blocks'),
            value: customSvg || '',
            rows: 8,
            onBlur: onCustomSvgBlur,
            onChange: value => setAttributes({
              customSvg: value
            })
          }), customSvg && !sanitizedCustomSvg.isValid && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Notice, {
            status: "warning",
            isDismissible: false,
            children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Enter a valid SVG element. Unsafe or unsupported SVG code will not render.', 'otter-blocks')
          }), sanitizedCustomSvg.isValid && sanitizedCustomSvg.wasSanitized && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Notice, {
            status: "info",
            isDismissible: false,
            children: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Unsupported SVG markup will be removed before preview and render.', 'otter-blocks')
          })]
        })]
      })
    }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(SelectedIcon, {
      blockProps: blockProps,
      customSvgEnabled: customSvgEnabled,
      sanitizedCustomSvg: sanitizedCustomSvg,
      svgInner: svgInner
    })]
  });
}

/***/ }),

/***/ "./src/atomic-wind/blocks/icon/icon.js":
/*!*********************************************!*\
  !*** ./src/atomic-wind/blocks/icon/icon.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);


/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.SVG, {
  width: "20",
  height: "20",
  viewBox: "0 0 20 20",
  fill: "none",
  xmlns: "http://www.w3.org/2000/svg",
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M3.37406 0.0019938C4.32295 0.0284722 5.391 0.315333 6.50102 0.791056C8.72516 1.74428 11.265 3.52089 13.6221 5.87797C15.9793 8.23508 17.7568 10.7749 18.71 12.9991C19.1856 14.109 19.4716 15.1772 19.4981 16.126C19.5246 17.0771 19.289 17.9806 18.6348 18.6348C17.9806 19.289 17.0771 19.5246 16.126 19.4981C15.1772 19.4716 14.109 19.1856 12.9991 18.71C10.7749 17.7568 8.23508 15.9793 5.87797 13.6221C3.52089 11.265 1.74428 8.72516 0.791056 6.50102C0.315333 5.391 0.0284722 4.32295 0.0019938 3.37406C-0.0245364 2.42302 0.211093 1.51946 0.865275 0.865275C1.51946 0.211093 2.42302 -0.0245364 3.37406 0.0019938ZM3.33207 1.50102C2.63821 1.48169 2.19437 1.65728 1.92582 1.92582C1.65728 2.19437 1.48169 2.63821 1.50102 3.33207C1.52044 4.0282 1.73768 4.90379 2.16899 5.9102C3.02992 7.91904 4.6818 10.3049 6.93852 12.5616C9.19523 14.8183 11.581 16.4702 13.5899 17.3311C14.5963 17.7624 15.4719 17.9796 16.168 17.9991C16.8619 18.0184 17.3057 17.8428 17.5743 17.5743C17.8428 17.3057 18.0184 16.8619 17.9991 16.168C17.9796 15.4719 17.7624 14.5963 17.3311 13.5899C16.4702 11.581 14.8183 9.19523 12.5616 6.93852C10.3049 4.6818 7.91904 3.02992 5.9102 2.16899C4.90379 1.73768 4.0282 1.52044 3.33207 1.50102Z",
    fill: "#F16574"
  }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M16.126 0.00198951C17.0177 -0.0228832 17.8671 0.183194 18.5088 0.748083L18.6348 0.865271L18.752 0.991247C19.3169 1.633 19.523 2.48241 19.4981 3.37406C19.4716 4.32286 19.1857 5.39109 18.71 6.50101C17.7568 8.72517 15.9793 11.265 13.6221 13.6221C11.265 15.9793 8.72517 17.7568 6.50102 18.71C5.3911 19.1856 4.32287 19.4716 3.37406 19.4981C2.42302 19.5246 1.51946 19.289 0.865275 18.6348C0.211108 17.9806 -0.0245362 17.0771 0.00199365 16.126C0.0284719 15.1771 0.315333 14.1091 0.791056 12.9991C1.74427 10.7749 3.52088 8.23506 5.87797 5.87797C8.23506 3.52088 10.7749 1.74427 12.9991 0.791052C14.1091 0.315328 15.1771 0.0284678 16.126 0.00198951ZM16.168 1.50101C15.4719 1.52044 14.5963 1.73768 13.5899 2.16898C11.581 3.02992 9.19524 4.6818 6.93852 6.93851C4.6818 9.19523 3.02992 11.581 2.16899 13.5899C1.73769 14.5963 1.52044 15.4719 1.50102 16.168C1.48169 16.8619 1.65824 17.3057 1.9268 17.5743H1.92582C2.19437 17.8428 2.6382 18.0184 3.33207 17.9991C4.0282 17.9796 4.90378 17.7624 5.9102 17.3311C7.91904 16.4702 10.3049 14.8183 12.5616 12.5616C14.8183 10.3049 16.4702 7.91904 17.3311 5.91019C17.7624 4.90378 17.9796 4.0282 17.9991 3.33207C18.0184 2.6382 17.8428 2.19436 17.5743 1.92582V1.92679C17.3057 1.65824 16.8619 1.48169 16.168 1.50101Z",
    fill: "#F16574"
  }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_0__.Path, {
    d: "M9.75879 9C10.173 9 10.5088 9.33579 10.5088 9.75C10.5088 10.1642 10.173 10.5 9.75879 10.5H9.75C9.33579 10.5 9 10.1642 9 9.75C9 9.33579 9.33579 9 9.75 9H9.75879Z",
    fill: "#F16574"
  })]
}));

/***/ }),

/***/ "./src/atomic-wind/blocks/labels.js":
/*!******************************************!*\
  !*** ./src/atomic-wind/blocks/labels.js ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   boxLabel: function() { return /* binding */ boxLabel; },
/* harmony export */   getStructuralLabel: function() { return /* binding */ getStructuralLabel; },
/* harmony export */   iconLabel: function() { return /* binding */ iconLabel; },
/* harmony export */   imageLabel: function() { return /* binding */ imageLabel; },
/* harmony export */   linkLabel: function() { return /* binding */ linkLabel; },
/* harmony export */   textLabel: function() { return /* binding */ textLabel; },
/* harmony export */   toPlainText: function() { return /* binding */ toPlainText; }
/* harmony export */ });
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);

const LABEL_CONTEXTS = ['list-view', 'breadcrumb'];

// Resolved lazily so locale data registered after module init still applies.
// div and span intentionally have no label so generic wrappers fall through
// to the block title and block variation matching.
const getTagLabel = tagName => {
  switch (tagName) {
    case 'section':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Section', 'otter-blocks');
    case 'article':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Article', 'otter-blocks');
    case 'main':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Main', 'otter-blocks');
    case 'aside':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Aside', 'otter-blocks');
    case 'header':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Header', 'otter-blocks');
    case 'footer':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Footer', 'otter-blocks');
    case 'nav':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Navigation', 'otter-blocks');
    case 'details':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Details', 'otter-blocks');
    case 'summary':
      return (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Summary', 'otter-blocks');
    default:
      return undefined;
  }
};
const toPlainText = value => {
  if (!value) {
    return '';
  }
  // DOMParser documents are inert (no script execution, no resource loading),
  // so this both strips markup completely and decodes entities.
  const text = typeof value === 'string' ? new window.DOMParser().parseFromString(value, 'text/html').body.textContent : value.toPlainText?.() ?? '';
  return text.replace(/\s+/g, ' ').trim();
};

// Builds an __experimentalLabel callback. The custom name written by the core
// Rename UI (attributes.metadata.name) must win, because defining our own
// label callback prevents core from displaying it; returning undefined when
// there is no better label keeps the block title and variation titles working.
// Content fallbacks return the raw attribute value (string or RichTextData)
// so core converts and decodes it exactly once.
const createLabel = getFallback => (attributes, {
  context
} = {}) => {
  if (!LABEL_CONTEXTS.includes(context)) {
    return undefined;
  }
  const customName = attributes?.metadata?.name;
  if (customName) {
    return customName;
  }
  return getFallback ? getFallback(attributes) : undefined;
};
const boxLabel = createLabel(({
  tagName
}) => getTagLabel(tagName));
const textLabel = createLabel(({
  content
}) => toPlainText(content) ? content : undefined);
const linkLabel = createLabel(({
  mode,
  text
}) => {
  if (mode === 'inner-blocks') {
    return undefined;
  }
  return toPlainText(text) ? text : undefined;
});
const imageLabel = createLabel(({
  alt
}) => toPlainText(alt) || undefined);
const iconLabel = createLabel();
const getStructuralLabel = (blockName, attributes) => {
  if (attributes?.metadata?.name) {
    return attributes.metadata.name;
  }
  return blockName === 'atomic-wind/box' ? getTagLabel(attributes?.tagName) : undefined;
};

/***/ }),

/***/ "@wordpress/block-editor":
/*!*************************************!*\
  !*** external ["wp","blockEditor"] ***!
  \*************************************/
/***/ (function(module) {

module.exports = window["wp"]["blockEditor"];

/***/ }),

/***/ "@wordpress/blocks":
/*!********************************!*\
  !*** external ["wp","blocks"] ***!
  \********************************/
/***/ (function(module) {

module.exports = window["wp"]["blocks"];

/***/ }),

/***/ "@wordpress/components":
/*!************************************!*\
  !*** external ["wp","components"] ***!
  \************************************/
/***/ (function(module) {

module.exports = window["wp"]["components"];

/***/ }),

/***/ "@wordpress/element":
/*!*********************************!*\
  !*** external ["wp","element"] ***!
  \*********************************/
/***/ (function(module) {

module.exports = window["wp"]["element"];

/***/ }),

/***/ "@wordpress/i18n":
/*!******************************!*\
  !*** external ["wp","i18n"] ***!
  \******************************/
/***/ (function(module) {

module.exports = window["wp"]["i18n"];

/***/ }),

/***/ "@wordpress/primitives":
/*!************************************!*\
  !*** external ["wp","primitives"] ***!
  \************************************/
/***/ (function(module) {

module.exports = window["wp"]["primitives"];

/***/ }),

/***/ "react/jsx-runtime":
/*!**********************************!*\
  !*** external "ReactJSXRuntime" ***!
  \**********************************/
/***/ (function(module) {

module.exports = window["ReactJSXRuntime"];

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
!function() {
/*!**********************************************!*\
  !*** ./src/atomic-wind/blocks/icon/index.js ***!
  \**********************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./block.json */ "./src/atomic-wind/blocks/icon/block.json");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./icon */ "./src/atomic-wind/blocks/icon/icon.js");
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./src/atomic-wind/blocks/icon/edit.js");
/* harmony import */ var _labels__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../labels */ "./src/atomic-wind/blocks/labels.js");





const {
  name,
  ...settings
} = _block_json__WEBPACK_IMPORTED_MODULE_1__;
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(name, {
  ...settings,
  icon: _icon__WEBPACK_IMPORTED_MODULE_2__["default"],
  edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"],
  save: () => null,
  __experimentalLabel: _labels__WEBPACK_IMPORTED_MODULE_4__.iconLabel
});
}();
/******/ })()
;
//# sourceMappingURL=index.js.map