Liferay.Loader.define("data-engine-js-components-web@1.0.89/js/utils/parseProps.es",["module","exports","require"],(function(e,t,a){window;{function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _objectWithoutProperties(e,t){if(null==e)return{};var a,o,r=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var a,o,r={},n=Object.keys(e);for(o=0;o<n.length;o++)a=n[o],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)a=n[o],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.parseProps=function parseProps(e){let{activePage:t,allowInvalidAvailableLocalesForProperty:a,allowNestedFields:o,autocompleteUserURL:r,cancelLabel:n,config:i={},containerId:s,contentType:l,context:{sidebarPanels:d}={},dataDefinitionId:u,dataEngineModule:c,dataLayoutBuilderElementId:p,dataLayoutBuilderId:b,dataLayoutId:f,dataProviderInstanceParameterSettingsURL:L,dataProviderInstancesURL:m,defaultSiteLanguageId:R,displayChartAsTable:y,fieldSetDefinitionURL:I,fieldTypes:P,formInstanceId:h,formReportDataURL:U,functionsMetadata:w,functionsURL:g,groupId:v,portletNamespace:j,publishFormInstanceURL:O,published:S,redirectURL:F,rolesURL:B,rules:T,shareFormInstanceURL:_,sharedFormURL:D,showCancelButton:A,showPartialResultsToRespondents:C,showPublishAlert:E,showSubmitButton:M,spritemap:x,submitButtonId:N,submitLabel:k,submittable:W,validateCSRFTokenURL:K,view:q}=e,z=_objectWithoutProperties(e.context,["sidebarPanels"]),G=_objectWithoutProperties(e,["activePage","allowInvalidAvailableLocalesForProperty","allowNestedFields","autocompleteUserURL","cancelLabel","config","containerId","contentType","context","dataDefinitionId","dataEngineModule","dataLayoutBuilderElementId","dataLayoutBuilderId","dataLayoutId","dataProviderInstanceParameterSettingsURL","dataProviderInstancesURL","defaultSiteLanguageId","displayChartAsTable","fieldSetDefinitionURL","fieldTypes","formInstanceId","formReportDataURL","functionsMetadata","functionsURL","groupId","portletNamespace","publishFormInstanceURL","published","redirectURL","rolesURL","rules","shareFormInstanceURL","sharedFormURL","showCancelButton","showPartialResultsToRespondents","showPublishAlert","showSubmitButton","spritemap","submitButtonId","submitLabel","submittable","validateCSRFTokenURL","view"]);return{config:validator(_objectSpread(_objectSpread({allowInvalidAvailableLocalesForProperty:a,allowNestedFields:o,autocompleteUserURL:r,cancelLabel:n},i),{},{containerId:s,contentType:l,dataDefinitionId:u,dataEngineModule:c,dataLayoutBuilderElementId:p,dataLayoutBuilderId:b,dataLayoutId:f,dataProviderInstanceParameterSettingsURL:L,dataProviderInstancesURL:m,defaultSiteLanguageId:R,displayChartAsTable:y,fieldSetDefinitionURL:I,fieldTypes:P,formInstanceId:h,formReportDataURL:U,functionsMetadata:w,functionsURL:g,groupId:v,portletNamespace:j,publishFormInstanceURL:O,published:S,redirectURL:F,rolesURL:B,shareFormInstanceURL:_,sharedFormURL:D,showCancelButton:A,showPartialResultsToRespondents:C,showPublishAlert:E,showSubmitButton:M,sidebarPanels:d,spritemap:x,submitButtonId:N,submitLabel:k,submittable:W,validateCSRFTokenURL:K,view:q})),state:validator(_objectSpread(_objectSpread(_objectSpread({},G),z),{},{activePage:null!=t?t:0,rules:T}))}};const validator=e=>{const t={};for(const a in e){const o=e[a];void 0!==o&&(t[a]=o)}return t}}}));
//# sourceMappingURL=parseProps.es.js.map