Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/utils/getPreviousResponsiveStyle",["module","exports","require","../../app/config/constants/viewportSizes"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getPreviousResponsiveStyle(t,o,s){if(s===i.VIEWPORT_SIZES.desktop)return null;const getViewportSize=(o,s)=>{var n;if(s===i.VIEWPORT_SIZES.desktop||s===i.VIEWPORT_SIZES.tablet)return i.VIEWPORT_SIZES.desktop;const r=e.indexOf(s),l=e[r-1];return(null===(n=o[l])||void 0===n?void 0:n.styles[t])?l:getViewportSize(o,l)},n=getViewportSize(o,s);return o[n]?o[n].styles[t]:o.styles[t]};var i=o("../../app/config/constants/viewportSizes");const e=[i.VIEWPORT_SIZES.desktop,i.VIEWPORT_SIZES.tablet,i.VIEWPORT_SIZES.landscapeMobile,i.VIEWPORT_SIZES.portraitMobile]}}));
//# sourceMappingURL=getPreviousResponsiveStyle.js.map