Liferay.Loader.define("data-engine-js-components-web@1.0.75/js/core/hooks/useDataView.es",["module","exports","require","../schema/DataDefinition.es","../schema/DataLayout.es","../schema/Schema.es"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.useDataView=function(e,a){return a?d(e,a):e};var n=t("../schema/DataDefinition.es"),o=t("../schema/DataLayout.es"),s=t("../schema/Schema.es");const e={dataDefinition:n.DataDefinitionSchema,dataLayout:o.DataLayoutSchema},i={},c=(e,a)=>a.reduce(((a,t)=>(a[t]=e[t],a)),{}),r=(a,t,n)=>e[a].props.some((e=>t[e]!==n[s.SYMBOL_RAW][e])),u=(a,t)=>{const n=e[a],o=new n(c(t,n.props));return i[a]=o,o},m=(e,a)=>e in i?r(e,a,i[e])?(delete i[e],u(e,a)):i[e]:u(e,a),d=(e,a)=>a.reduce(((a,t)=>{const n=m(t,e);return a[t]=n,a}),{})}}));
//# sourceMappingURL=useDataView.es.js.map