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