Liferay.Loader.define("@liferay/analytics-settings-web@5.0.42/js/App",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$react","./pages/default/DefaultPage","./pages/wizard/WizardPage"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Events=t.EPageView=t.AppContext=void 0;var n=r("@frontend-taglib-clay$clayui/icon"),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),o=i(r("./pages/default/DefaultPage")),c=i(r("./pages/wizard/WizardPage"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const e=a.default.createContext({connected:!1,liferayAnalyticsURL:"",token:""});let y,b;t.AppContext=e,t.EPageView=y,function(e){e.Wizard="VIEW_WIZARD_MODE",e.Default="VIEW_DEFAULT_MODE"}(y||(t.EPageView=y={})),t.Events=b,function(e){e.Connected="CONNECTED"}(b||(t.Events=b={}));const g={[y.Wizard]:c.default,[y.Default]:o.default};function d(e,t){switch(t.type){case b.Connected:return f(f({},e),t.payload);default:throw new Error}}var p=({connected:t,liferayAnalyticsURL:r,token:o})=>{const[c,i]=(0,a.useReducer)(d,{connected:t,liferayAnalyticsURL:r,token:o}),l=g[t?y.Default:y.Wizard],u=Liferay.ThemeDisplay.getPathThemeImages()+"/clay/icons.svg";return a.default.createElement(n.ClayIconSpriteContext.Provider,{value:u},a.default.createElement(e.Provider,{value:[c,i]},a.default.createElement("div",{className:"analytics-settings-web mt-5"},a.default.createElement(l,null))))};t.default=p}}));
//# sourceMappingURL=App.js.map