Liferay.Loader.define("data-engine-js-components-web@1.0.55/js/core/components/Tabs.es",["module","exports","require","@frontend-taglib-clay$clayui/layout","@frontend-taglib-clay$clayui/tabs","liferay!frontend-js-react-web$react","../../utils/visitors.es","../actions/eventTypes.es","../hooks/useForm.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=function({activePage:e,pages:t}){const a=(0,i.useForm)(),u=(0,o.useMemo)((()=>{let e=!0;return new l.PagesVisitor(t).mapFields((t=>{"autocomplete"!==t.fieldName||t.visible||(e=!1)})),e}),[t]);return o.default.createElement("nav",{className:"component-tbar ddm-form-tabs mb-3 tbar"},o.default.createElement(r.default.ContainerFluid,{className:"pr-0"},o.default.createElement(n.default,null,t.map(((t,r)=>o.default.createElement(n.default.Item,{active:r===e,className:!u&&2===r&&"hide",disabled:!t.enabled,key:r,onClick:()=>a({payload:{activePage:r},type:s.EVENT_TYPES.PAGE.CHANGE})},o.default.createElement("span",{className:"navbar-text-truncate"},t.title)))))))};var r=c(a("@frontend-taglib-clay$clayui/layout")),n=c(a("@frontend-taglib-clay$clayui/tabs")),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();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 o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),l=a("../../utils/visitors.es"),s=a("../actions/eventTypes.es"),i=a("../hooks/useForm.es");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=Tabs.es.js.map