"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),c=require("react-redux"),o=require("./mobile.js"),n=require("./desktop.js"),u=require("../../lib/hooks/window-dimensions.js"),d=i=>{const e=i.getIn(["data","pageModuleProps"]),s={};return e&&(s.pageModuleProps=e),s},l={},a=i=>{const{pageModuleProps:e}=i,{deviceType:s,width:p,height:m}=u.useWindowDimensionsAndDevice({getDeviceType:!0,getHeight:!0});let t;return(e==null?void 0:e.editing)===!0&&(e!=null&&e.previewMode)?(e==null?void 0:e.previewMode)==="Desktop"?t=n.default:t=o.default:["tablet","mobile","midTablet"].includes(s)?t=o.default:t=n.default,r.jsx(t,{...i})},f=c.connect(d,l)(a);exports.default=f;
