/*! For license information please see editor-styles.js.LICENSE.txt */
!function(){"use strict";var e={"./packages/packages/libs/editor-styles/src/types.ts":function(e,t,r){r.r(t)},"./packages/packages/libs/editor-styles/src/utils/generate-id.ts":function(e,t,r){function generateId(e="",t=[]){let r;do{r=e+Math.random().toString(16).slice(2,9)}while(t.includes(r));return r}r.r(t),r.d(t,{generateId:function(){return generateId}})},"./packages/packages/libs/editor-styles/src/utils/get-styles-schema.ts":function(e,t,r){r.r(t),r.d(t,{getStylesSchema:function(){return getStylesSchema},isExistingStyleProperty:function(){return isExistingStyleProperty}});const getStylesSchema=()=>{const e=(()=>{const e=window;return e.elementor?.config??{}})();return e?.atomic?.styles_schema??{}},isExistingStyleProperty=e=>{const t=getStylesSchema();return Object.keys(t).includes(e)}},"./packages/packages/libs/editor-styles/src/utils/get-variant-by-meta.ts":function(e,t,r){function getVariantByMeta(e,t){return e.variants.find(e=>e.meta.breakpoint===t.breakpoint&&e.meta.state===t.state)}r.r(t),r.d(t,{getVariantByMeta:function(){return getVariantByMeta}})},"./packages/packages/libs/editor-styles/src/utils/state-utils.ts":function(e,t,r){r.r(t),r.d(t,{getSelectorWithState:function(){return getSelectorWithState},isClassState:function(){return isClassState},isPseudoState:function(){return isPseudoState}});const s=["hover","focus","active","focus-visible"],i=["e--selected"];function getAdditionalStates(e){return"hover"===e?["focus-visible"]:[]}function isClassState(e){return i.includes(e)}function isPseudoState(e){return s.includes(e)}function getSelectorWithState(e,t){return t?[t,...getAdditionalStates(t)].map(t=>`${e}${function getStateSelector(e){return isClassState(e)?`.${e}`:isPseudoState(e)?`:${e}`:e}(t)}`).join(","):e}}},t={};function __webpack_require__(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){__webpack_require__.r(r),__webpack_require__.d(r,{generateId:function(){return e.generateId},getSelectorWithState:function(){return i.getSelectorWithState},getStylesSchema:function(){return t.getStylesSchema},getVariantByMeta:function(){return s.getVariantByMeta},isClassState:function(){return i.isClassState},isExistingStyleProperty:function(){return t.isExistingStyleProperty},isPseudoState:function(){return i.isPseudoState}});__webpack_require__("./packages/packages/libs/editor-styles/src/types.ts");var e=__webpack_require__("./packages/packages/libs/editor-styles/src/utils/generate-id.ts"),t=__webpack_require__("./packages/packages/libs/editor-styles/src/utils/get-styles-schema.ts"),s=__webpack_require__("./packages/packages/libs/editor-styles/src/utils/get-variant-by-meta.ts"),i=__webpack_require__("./packages/packages/libs/editor-styles/src/utils/state-utils.ts")}(),(window.elementorV2=window.elementorV2||{}).editorStyles=r}(),window.elementorV2.editorStyles?.init?.();
//# sourceMappingURL=editor-styles.js.map