Liferay.Loader.define("@liferay/analytics-settings-web@5.0.42/js/pages/wizard/WizardPage",["module","exports","require","@frontend-taglib-clay$clayui/multi-step-nav","liferay!frontend-js-react-web$react","./ConnectStep","./PeopleDataStep","./PeopleStep","./PropertyStep"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ESteps=void 0;var r=c(a("@frontend-taglib-clay$clayui/multi-step-nav")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),l=c(a("./ConnectStep")),o=c(a("./PeopleDataStep")),i=c(a("./PeopleStep")),u=c(a("./PropertyStep"));function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?f(Object(a),!0).forEach((function(t){y(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):f(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}let e;t.ESteps=e,function(e){e[e.ConnectAC=0]="ConnectAC",e[e.Property=1]="Property",e[e.People=2]="People",e[e.PeopleData=3]="PeopleData"}(e||(t.ESteps=e={}));const b=[{Component:l.default,available:!0,title:Liferay.Language.get("connect"),value:e.ConnectAC},{Component:u.default,available:!1,title:Liferay.Language.get("property"),value:e.Property},{Component:i.default,available:!1,title:Liferay.Language.get("people"),value:e.People},{Component:o.default,available:!1,title:Liferay.Language.get("people-data"),value:e.PeopleData}];var s=()=>{const[t,a]=(0,n.useState)(e.ConnectAC),[l,o]=(0,n.useState)(b);return n.default.createElement("div",{className:"sheet-lg"},n.default.createElement(r.default,{indicatorLabel:"top"},l.map((({available:e,title:l,value:o},i)=>n.default.createElement(r.default.Item,{active:o===t,complete:t>o,expand:i+1!==b.length,key:o},i<b.length-1&&n.default.createElement(r.default.Divider,null),n.default.createElement(r.default.Indicator,{complete:t>o&&o!==t,label:1+i,onClick:e?()=>a(o):()=>{},subTitle:l}))))),b.map((({Component:e,value:r})=>n.default.createElement("div",{key:r},r===t&&n.default.createElement(e,{onChangeStep:e=>{const t=l.map((t=>e===t.value?d(d({},t),{},{available:!0}):t));o(t),a(e)}})))))};t.default=s}}));
//# sourceMappingURL=WizardPage.js.map