Liferay.Loader.define("@liferay/object-web@1.0.108/js/utils/visitor",["module","exports","require"],(function(t,e,o){window;{function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function s(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(e){i(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function i(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}Object.defineProperty(e,"__esModule",{value:!0}),e.TabsVisitor=e.RowsVisitor=e.BoxesVisitor=void 0;class t{constructor(t){i(this,"_layout",null),this.setLayout(t)}dispose(){this._layout=null}setLayout(t){this._layout=s({},t)}mapFields(t){var e;return null===(e=this._layout)||void 0===e?void 0:e.objectLayoutTabs.map((({objectLayoutBoxes:e})=>e.map((({objectLayoutRows:e})=>e.map((({objectLayoutColumns:e})=>e.map((e=>e&&t(e)))))))))}}e.TabsVisitor=t;class o{constructor(t){i(this,"_tab",null),this.setTab(t)}dispose(){this._tab=null}setTab(t){this._tab=s({},t)}mapFields(t){var e;return null===(e=this._tab)||void 0===e?void 0:e.objectLayoutBoxes.map((({objectLayoutRows:e})=>e.map((({objectLayoutColumns:e})=>e.map((e=>e&&t(e)))))))}}e.BoxesVisitor=o;class a{constructor(t){i(this,"_box",null),this.setBox(t)}dispose(){this._box=null}setBox(t){this._box=s({},t)}mapFields(t){var e;return null===(e=this._box)||void 0===e?void 0:e.objectLayoutRows.map((({objectLayoutColumns:e})=>e.map((e=>e&&t(e)))))}}e.RowsVisitor=a}}));
//# sourceMappingURL=visitor.js.map