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1B,UAAWyF,EAAWF,EAAQ9I,KAAMuD,GACpCgD,WAAY0C,IAAA,IAAC,kBAAEP,GAAmBO,EAAA,OAChCnE,EAAAA,cAAAA,EAAAA,SAAA,KACEA,EAAAA,cAAA,OACEvB,UAAWyF,EACTF,EAAQI,GACRjG,EAAiBkG,EAAmBnJ,QAASmD,IAE/C,cAAawB,IAEd+D,QAOEU,EAAiBtE,EAAAA,WAAiB8D,GCpC/C,OAAgB,KAAO,SAAS,GAAK,UCQrC,MAAMS,EAGFA,CAAC3F,EAAOuB,IACHH,EAAAA,cAACsE,EAAc1I,IAAA,CAACuE,IAAKA,GAASvB,EAAK,CAAEoF,QAASlB,KCVvD,MAKa0B,EAAa,CACxB,wBAN8B,CAC9BC,UDYazE,EAAAA,WAAiBuE,I","sources":["webpack:///webpack/universalModuleDefinition","webpack:///external umd {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack:///../../../node_modules/@babel/runtime/helpers/extends.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///../../../node_modules/clsx/dist/clsx.mjs","webpack:///../../editor-elements-common-utils/dist/esm/cssEditing/class-names-formmater.js","webpack:///./components/Container/Container.semanticClassNames.ts","webpack:///../../editor-elements-common-utils/dist/esm/commons/utils.js","webpack:///../../editor-elements-common-utils/dist/esm/commons/a11y.js","webpack:///../../thunderbolt-elements/src/thunderbolt-core-components/MeshContainer/constants.ts","webpack:///../../thunderbolt-elements/src/thunderbolt-core-components/MeshContainer/viewer/MeshContainer.tsx","webpack:///./components/Container/viewer/shared/common.module.scss","webpack:///./components/Container/viewer/shared/constants.ts","webpack:///./components/Container/viewer/shared/ContainerLogic.tsx","webpack:///./components/Container/viewer/shared/BasicContainer.tsx","webpack:///./components/Container/viewer/skinComps/RectangleArea/RectangleArea.scss","webpack:///./components/Container/viewer/skinComps/RectangleArea/RectangleArea.skin.tsx","webpack:///./entries/rb_wixui.thunderbolt[Container_RectangleArea].ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"rb_wixui.thunderbolt[Container_RectangleArea]\", [\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"rb_wixui.thunderbolt[Container_RectangleArea]\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"rb_wixui.thunderbolt[Container_RectangleArea]\"] = factory(root[\"React\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE_Xdf___) {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE_Xdf___;","function _extends() {\n  return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {\n    for (var e = 1; e < arguments.length; e++) {\n      var t = arguments[e];\n      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n    }\n    return n;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _extends.apply(null, arguments);\n}\nmodule.exports = _extends, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","export const CSS_PREFIX = 'wixui-';\nexport const formatClassNames = (semanticClassName, ...customClassNames) => {\n    const result = [];\n    if (semanticClassName) {\n        result.push(`${CSS_PREFIX}${semanticClassName}`);\n    }\n    customClassNames.forEach(className => {\n        if (className) {\n            // add each custom class with and without the prefix\n            result.push(`${CSS_PREFIX}${className}`);\n            result.push(className);\n        }\n    });\n    return result.join(' ');\n};\n// remove when https://github.com/search?q=repo%3Awix-private%2Fthunderbolt%20customCssClasses&type=code has no usages\nexport const customCssClasses = (...classNames) => {\n    // eslint-disable-next-line no-console\n    console.warn('customCssClasses is deprecated, please use formatClassNames instead');\n    const [semantic, ...rest] = classNames;\n    return formatClassNames(semantic, ...rest);\n};\n//# sourceMappingURL=class-names-formmater.js.map","const semanticClassNames = {\n  root: 'box',\n} as const;\n\nexport default semanticClassNames;\n","import { keyCodes } from './a11y';\nexport const isThemeFont = (value) => /^font_\\d+$/.test(value);\nexport const debounce = (fn, ms = 0, { leading = false, trailing = true } = {}) => {\n    let timeoutId = null;\n    return function (...args) {\n        if (leading && timeoutId === null) {\n            fn.apply(this, args);\n        }\n        if (timeoutId) {\n            clearTimeout(timeoutId);\n        }\n        if (!trailing || !leading || timeoutId) {\n            timeoutId = setTimeout(() => {\n                if (trailing) {\n                    fn.apply(this, args);\n                }\n                timeoutId = null;\n            }, ms);\n        }\n        else {\n            // Special case for a single call with both leading and trailing (see tests)\n            timeoutId = setTimeout(() => {\n                timeoutId = null;\n            }, ms);\n        }\n    };\n};\nexport const throttle = (func, ms = 0) => {\n    let isThrottled = false, savedArgs;\n    function wrapper(...args) {\n        if (isThrottled) {\n            savedArgs = args;\n            return;\n        }\n        func.apply(this, args);\n        isThrottled = true;\n        setTimeout(() => {\n            isThrottled = false;\n            if (savedArgs) {\n                wrapper.apply(this, savedArgs);\n                savedArgs = null;\n            }\n        }, ms);\n    }\n    return wrapper;\n};\nexport const isBrowser = () => typeof window !== `undefined`;\nexport const performOnEnter = (fn) => {\n    return function (event) {\n        if (event.keyCode === keyCodes.enter) {\n            fn(event);\n        }\n    };\n};\nexport const isCSSMaskSupported = () => {\n    if (!isBrowser()) {\n        return true;\n    }\n    return (window.CSS &&\n        window.CSS.supports('(mask-repeat: no-repeat) or (-webkit-mask-repeat: no-repeat)'));\n};\nexport const isEmptyObject = (obj) => !obj || (Object.keys(obj).length === 0 && obj.constructor === Object);\nexport const isSafari = () => /^((?!chrome|android).)*safari/i.test(navigator?.userAgent);\n// even though navigator.platform is deprecated, it's still the most reliable way to detect the OS\n// suggested by https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n// this function is not working in SSR environment\n// should be used only in the browser environment\nexport const isMac = () => navigator?.platform?.toLowerCase().startsWith('mac');\nexport const getDataAttributes = (props) => {\n    return Object.entries(props).reduce((acc, [key, val]) => {\n        if (key.includes('data-')) {\n            acc[key] = val;\n        }\n        return acc;\n    }, {});\n};\nexport function pick(source, keys) {\n    return keys.reduce((acc, key) => {\n        if (!source.hasOwnProperty(key)) {\n            return acc;\n        }\n        return {\n            ...acc,\n            [key]: source[key],\n        };\n    }, {});\n}\nexport const idToCompRef = (id) => ({ id, type: 'DESKTOP' });\nexport const isWixDomain = (url) => ['editorx.io', 'wixsite.com', 'wix.com', 'wixstudio.io'].some(domain => url.includes(domain));\n//# sourceMappingURL=utils.js.map","export const keyCodes = {\n    enter: 13,\n    space: 32,\n    end: 35,\n    home: 36,\n    escape: 27,\n    arrowLeft: 37,\n    arrowUp: 38,\n    arrowRight: 39,\n    arrowDown: 40,\n    tab: 9,\n    delete: 46,\n    a: 65,\n    z: 90,\n    pageUp: 33,\n    pageDown: 34,\n};\nexport const keyboardShortcuts = {\n    confirmKey: 'Enter',\n    spaceKey: ' ',\n    arrowDownKey: 'ArrowDown',\n    arrowUpKey: 'ArrowUp',\n    escapeKey: 'Escape',\n};\n// see: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values\nexport const keys = {\n    space: ['Spacebar', ' '],\n    enter: ['Enter'],\n};\nfunction activateByKey(key) {\n    return event => {\n        if (event.keyCode === key) {\n            event.preventDefault();\n            event.stopPropagation();\n            event.currentTarget.click();\n        }\n    };\n}\nexport const activateBySpaceButton = activateByKey(keyCodes.space);\nexport const activateByEnterButton = activateByKey(keyCodes.enter);\nexport const activateBySpaceOrEnterButton = event => {\n    activateByEnterButton(event);\n    activateBySpaceButton(event);\n};\nexport const activateByEscapeButton = activateByKey(keyCodes.escape);\nexport const HAS_CUSTOM_FOCUS_CLASSNAME = 'has-custom-focus';\nexport const a11yBlackList = ['aria-id', 'aria-metadata', 'aria-type'];\nexport const filteredA11y = (a11y, blacklist) => {\n    return Object.entries(a11y).reduce((acc, [key, value]) => {\n        if (!blacklist.includes(key)) {\n            acc[key] = value;\n        }\n        return acc;\n    }, {});\n};\n/**\n * @deprecated use getAccessibilityAttributes instead wherever you can\n */\nexport const getAriaAttributes = ({ role, tabIndex, tabindex, ...ariaProps } = {}) => {\n    const result = Object.entries(ariaProps).reduce((prev, [key, value]) => {\n        return { ...prev, [`aria-${key}`.toLowerCase()]: value };\n    }, { role, tabIndex: tabIndex ?? tabindex });\n    Object.keys(result).forEach(key => {\n        if (result[key] === undefined || result[key] === null) {\n            // eslint-disable-next-line\n            delete result[key];\n        }\n    });\n    return filteredA11y(result, a11yBlackList);\n};\nexport const getTabIndexAttribute = (a11y = {}) => {\n    const tabIndex = a11y.tabIndex ?? a11y.tabindex ?? undefined;\n    return tabIndex !== undefined ? { tabIndex: Number(tabIndex) } : {};\n};\nexport const INNER_FOCUS_RING_CLASSNAME = 'has-inner-focus-ring';\nconst LINE1 = '0 0 0 1px';\nconst LINE2 = '0 0 0 3px';\nconst COLOR1 = '#ffffff';\nconst COLOR2 = '#116dff';\nconst OUTER_FOCUS_RING = `${LINE1}${COLOR1}, ${LINE2}${COLOR2}`;\nconst INNER_FOCUS_RING = `inset ${LINE1}${COLOR2}, inset ${LINE2}${COLOR1}`;\nexport const getFocusRingValue = (isOuter = true) => isOuter ? OUTER_FOCUS_RING : INNER_FOCUS_RING;\nexport const getAccessibilityAttributes = (attributes) => {\n    const { role, tabIndex, tabindex, screenReader, lang, ariaAttributes = {}, } = attributes;\n    const prefixedAriaAttributes = Object.entries(ariaAttributes).reduce((prev, [key, value]) => {\n        return { ...prev, [`aria-${key}`.toLowerCase()]: value };\n    }, {});\n    return {\n        role,\n        tabIndex: tabIndex ?? tabindex,\n        screenReader,\n        ariaAttributes: filteredA11y(prefixedAriaAttributes, a11yBlackList),\n        lang,\n    };\n};\nexport const getAccessibilityAttributesSpread = (attributes) => {\n    const a11yProps = getAccessibilityAttributes(attributes);\n    return {\n        ...a11yProps.ariaAttributes,\n        tabIndex: a11yProps.tabIndex,\n        screenReader: a11yProps.screenReader,\n        lang: a11yProps.lang,\n        role: a11yProps.role,\n    };\n};\n//# sourceMappingURL=a11y.js.map","export const TestIds = {\n  content: 'mesh-container-content',\n  inlineContent: 'inline-content',\n} as const;\n","import type {\n  DefaultCompPlatformProps,\n  DefaultContainerProps,\n} from '@wix/editor-elements-types/thunderbolt';\nimport classNames from 'clsx';\nimport type { ReactElement } from 'react';\nimport React from 'react';\nimport { getDataAttributes } from '@wix/editor-elements-common-utils';\nimport { TestIds } from '../constants';\n\nexport type MeshContainerProps = DefaultCompPlatformProps &\n  DefaultContainerProps & {\n    wedges?: Array<string>;\n    rotatedComponents?: Array<string>;\n    fixedComponents?: Array<string>;\n    extraClassName?: string;\n    renderRotatedComponents?: (child: ReactElement) => ReactElement;\n  };\n\nconst REPEATER_DELIMITER = '__';\n\nconst getTemplateId = (comp: ReactElement) =>\n  comp.props.id.split(REPEATER_DELIMITER)[0];\n\nconst renderRotatedComponentsWrapper = (child: ReactElement): ReactElement => (\n  <div\n    key={`${child.props.id}-rotated-wrapper`}\n    data-mesh-id={`${child.props.id}-rotated-wrapper`}\n  >\n    {child}\n  </div>\n);\n\ntype RenderChildrenProps = {\n  wedges: Array<string>;\n  rotatedComponents: Array<string>;\n  childrenArray: Array<React.ReactNode>;\n  renderRotatedComponents: (child: ReactElement) => ReactElement;\n};\n\nconst renderChildren = (props: RenderChildrenProps) => {\n  const { wedges, rotatedComponents, childrenArray, renderRotatedComponents } =\n    props;\n  const rotatedComponentsSet: Record<string, boolean> =\n    rotatedComponents.reduce(\n      (acc, rotatedComponent) => ({ ...acc, [rotatedComponent]: true }),\n      {},\n    );\n\n  const renderedRotatedComponents = childrenArray.map(child =>\n    rotatedComponentsSet[getTemplateId(child as React.ReactElement)]\n      ? renderRotatedComponents(child as React.ReactElement)\n      : child,\n  );\n  const renderedWedges = wedges.map(wedge => (\n    <div key={wedge} data-mesh-id={wedge} />\n  ));\n\n  return [...renderedRotatedComponents, ...renderedWedges];\n};\n\nconst MeshContainer: React.ForwardRefRenderFunction<\n  HTMLDivElement,\n  MeshContainerProps\n> = (props, ref) => {\n  const {\n    id,\n    className,\n    wedges = [],\n    rotatedComponents = [],\n    children,\n    fixedComponents = [],\n    extraClassName = '',\n    renderRotatedComponents = renderRotatedComponentsWrapper,\n  } = props;\n  const childrenArray = React.Children.toArray(children());\n\n  const fixedChildren: Array<React.ReactNode> = [];\n  const nonFixedChildren: Array<React.ReactNode> = [];\n\n  childrenArray.forEach(comp =>\n    fixedComponents.includes((comp as React.ReactElement).props.id)\n      ? fixedChildren.push(comp)\n      : nonFixedChildren.push(comp),\n  );\n\n  const meshChildren = renderChildren({\n    childrenArray: nonFixedChildren,\n    rotatedComponents,\n    wedges,\n    renderRotatedComponents,\n  });\n\n  return (\n    <div\n      {...getDataAttributes(props)}\n      data-mesh-id={`${id}inlineContent`}\n      data-testid={TestIds.inlineContent}\n      className={classNames(className, extraClassName)}\n      ref={ref}\n    >\n      <div\n        data-mesh-id={`${id}inlineContent-gridContainer`}\n        data-testid={TestIds.content}\n      >\n        {meshChildren}\n      </div>\n      {fixedChildren}\n    </div>\n  );\n};\n\nexport default React.forwardRef(MeshContainer);\n","// extracted by mini-css-extract-plugin\nexport default {\"clickable\":\"cwL6XW\"};","export const ARIA_LABEL_NAMESPACE = 'ariaLabels';\nexport const ARIA_LABEL_KEY = 'interactions_AriaLabel_contentOnHover_message';\nexport const ARIA_LABEL_DEFAULT =\n  'Interactive element, focus to trigger content change';\nexport const TestIds = {\n  BG: 'container-bg',\n};\n","import * as React from 'react';\nimport classNames from 'clsx';\n\nimport {\n  getAriaAttributes,\n  getDataAttributes,\n} from '@wix/editor-elements-common-utils';\nimport MeshContainer from '@wix/thunderbolt-elements/src/thunderbolt-core-components/MeshContainer/viewer/MeshContainer';\nimport type {\n  IContainerLogicProps,\n  IContainerImperativeActions,\n} from '../../Container.types';\nimport styles from './common.module.scss';\nimport { ARIA_LABEL_DEFAULT } from './constants';\n\nconst ContainerLogicComp: React.ForwardRefRenderFunction<\n  IContainerImperativeActions,\n  IContainerLogicProps\n> = (props, ref) => {\n  const {\n    id,\n    className,\n    meshProps,\n    renderSlot,\n    children,\n    onClick,\n    onKeyPress,\n    onDblClick,\n    onFocus,\n    onBlur,\n    onMouseEnter,\n    onMouseLeave,\n    translations,\n    hasPlatformClickHandler,\n    a11y = {},\n    ariaAttributes = {},\n    tabIndex,\n    role,\n    style,\n    lang,\n  } = props;\n\n  const rootElementRef = React.useRef<HTMLDivElement>(null);\n\n  const handleKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\n    if (onKeyPress) {\n      // Prevent browser scroll\n      e.key === ' ' && e.preventDefault();\n      onKeyPress(e);\n    }\n  };\n\n  const { 'aria-label-interactions': ariaLabelInteractions, ...a11yAttr } =\n    a11y;\n\n  if (ariaLabelInteractions) {\n    a11yAttr['aria-label'] = translations?.ariaLabel || ARIA_LABEL_DEFAULT;\n  }\n\n  const meshContainerProps = {\n    id,\n    children,\n    ...meshProps,\n  };\n\n  const containerClassName = classNames(className, {\n    [styles.clickable]: hasPlatformClickHandler,\n  });\n\n  React.useImperativeHandle(ref, () => {\n    return {\n      focus: () => {\n        rootElementRef.current?.focus();\n      },\n      blur: () => {\n        rootElementRef.current?.blur();\n      },\n    };\n  });\n\n  return (\n    <div\n      id={id}\n      {...getDataAttributes(props)}\n      ref={rootElementRef}\n      className={containerClassName}\n      onClick={onClick}\n      onKeyDown={handleKeyDown}\n      onFocus={onFocus}\n      onBlur={onBlur}\n      onDoubleClick={onDblClick}\n      onMouseEnter={onMouseEnter}\n      onMouseLeave={onMouseLeave}\n      style={style}\n      lang={lang}\n      {...a11yAttr}\n      {...getAriaAttributes({ ...ariaAttributes, tabIndex, role })}\n    >\n      {renderSlot({\n        containerChildren: <MeshContainer {...meshContainerProps} />,\n      })}\n    </div>\n  );\n};\n\nexport const ContainerLogic = React.forwardRef(ContainerLogicComp);\n","import * as React from 'react';\nimport classnames from 'clsx';\nimport { formatClassNames } from '@wix/editor-elements-common-utils';\nimport semanticClassNames from '../../Container.semanticClassNames';\nimport type {\n  ISkinableContainerProps,\n  IContainerImperativeActions,\n} from '../../Container.types';\nimport { ContainerLogic } from './ContainerLogic';\nimport { TestIds } from './constants';\n\n/** This is a shared dom structure for similar skins */\nconst BasicContainerComp: React.ForwardRefRenderFunction<\n  IContainerImperativeActions,\n  ISkinableContainerProps\n> = ({ classes, className, customClassNames = [], ...rest }, ref) => {\n  return (\n    <ContainerLogic\n      {...rest}\n      ref={ref}\n      className={classnames(classes.root, className)}\n      renderSlot={({ containerChildren }) => (\n        <>\n          <div\n            className={classnames(\n              classes.bg,\n              formatClassNames(semanticClassNames.root, ...customClassNames),\n            )}\n            data-testid={TestIds.BG}\n          />\n          {containerChildren}\n        </>\n      )}\n    />\n  );\n};\n\nexport const BasicContainer = React.forwardRef(BasicContainerComp);\n","// extracted by mini-css-extract-plugin\nexport default {\"root\":\"jbrj02\",\"bg\":\"IvR70V\"};","'use-client';\nimport * as React from 'react';\nimport type {\n  IContainerProps,\n  IContainerImperativeActions,\n} from '../../../Container.types';\nimport { BasicContainer } from '../../shared/BasicContainer';\nimport styles from './RectangleArea.scss';\n\nconst RectangleArea: React.ForwardRefRenderFunction<\n  IContainerImperativeActions,\n  IContainerProps\n> = (props, ref) => {\n  return <BasicContainer ref={ref} {...props} classes={styles} />;\n};\n\nexport default React.forwardRef(RectangleArea);\n","import Container_RectangleAreaComponent from '../components/Container/viewer/skinComps/RectangleArea/RectangleArea.skin';\n\n\nconst Container_RectangleArea = {\n  component: Container_RectangleAreaComponent\n};\n\n\nexport const components = {\n  ['Container_RectangleArea']: Container_RectangleArea\n};\n\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE_Xdf___","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","__esModule","apply","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","getter","d","a","definition","key","o","defineProperty","enumerable","get","obj","prop","prototype","Symbol","toStringTag","value","f","Array","isArray","CSS_PREFIX","formatClassNames","semanticClassName","customClassNames","result","push","forEach","className","join","getDataAttributes","props","entries","reduce","acc","val","includes","activateByKey","event","keyCode","preventDefault","stopPropagation","currentTarget","click","a11yBlackList","filteredA11y","a11y","blacklist","TestIds","renderRotatedComponentsWrapper","child","React","id","MeshContainer","ref","wedges","rotatedComponents","children","fixedComponents","extraClassName","renderRotatedComponents","childrenArray","toArray","fixedChildren","nonFixedChildren","comp","meshChildren","rotatedComponentsSet","rotatedComponent","map","split","wedge","renderChildren","classNames","ContainerLogicComp","meshProps","renderSlot","onClick","onKeyPress","onDblClick","onFocus","onBlur","onMouseEnter","onMouseLeave","translations","hasPlatformClickHandler","ariaAttributes","tabIndex","role","style","lang","rootElementRef","ariaLabelInteractions","a11yAttr","ariaLabel","meshContainerProps","containerClassName","styles","focus","_rootElementRef$curre","current","blur","_rootElementRef$curre2","onKeyDown","onDoubleClick","tabindex","ariaProps","prev","toLowerCase","keys","getAriaAttributes","containerChildren","ContainerLogic","BasicContainerComp","_ref","classes","rest","classnames","_ref2","bg","semanticClassNames","BasicContainer","RectangleArea","components","component"],"sourceRoot":""}