Liferay.Loader.define("@liferay/object-web@1.0.145/js/utils/visitor",["module","exports","require"],(function(t,e,o){window;{function ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach((function(e){_defineProperty(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function _defineProperty(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 TabsVisitor{constructor(t){_defineProperty(this,"_layout",null),this.setLayout(t)}dispose(){this._layout=null}setLayout(t){this._layout=_objectSpread({},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=TabsVisitor;class BoxesVisitor{constructor(t){_defineProperty(this,"_tab",null),this.setTab(t)}dispose(){this._tab=null}setTab(t){this._tab=_objectSpread({},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=BoxesVisitor;class RowsVisitor{constructor(t){_defineProperty(this,"_box",null),this.setBox(t)}dispose(){this._box=null}setBox(t){this._box=_objectSpread({},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=RowsVisitor}}));
//# sourceMappingURL=visitor.js.map