Liferay.Loader.define("data-engine-js-components-web@1.0.112/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{allowInvalidAvailableLocalesForProperty:t,allowNestedFields:a,autocompleteUserURL:o,cancelLabel:r,config:n={},containerId:i,contentType:s,context:{sidebarPanels:l}={},dataDefinitionId:d,dataEngineModule:u,dataLayoutBuilderElementId:c,dataLayoutBuilderId:p,dataLayoutId:b,dataProviderInstanceParameterSettingsURL:f,dataProviderInstancesURL:L,defaultSiteLanguageId:m,displayChartAsTable:R,fieldSetDefinitionURL:y,fieldTypes:I,formInstanceId:P,formReportDataURL:h,functionsMetadata:U,functionsURL:w,groupId:g,portletNamespace:j,publishFormInstanceURL:v,published:O,redirectURL:S,rolesURL:F,rules:B,shareFormInstanceURL:T,sharedFormURL:_,showCancelButton:D,showPartialResultsToRespondents:A,showPublishAlert:C,showSubmitButton:E,spritemap:M,submitButtonId:x,submitLabel:N,submittable:k,validateCSRFTokenURL:W,view:K}=e,q=_objectWithoutProperties(e.context,["sidebarPanels"]),z=_objectWithoutProperties(e,["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:t,allowNestedFields:a,autocompleteUserURL:o,cancelLabel:r},n),{},{containerId:i,contentType:s,dataDefinitionId:d,dataEngineModule:u,dataLayoutBuilderElementId:c,dataLayoutBuilderId:p,dataLayoutId:b,dataProviderInstanceParameterSettingsURL:f,dataProviderInstancesURL:L,defaultSiteLanguageId:m,displayChartAsTable:R,fieldSetDefinitionURL:y,fieldTypes:I,formInstanceId:P,formReportDataURL:h,functionsMetadata:U,functionsURL:w,groupId:g,portletNamespace:j,publishFormInstanceURL:v,published:O,redirectURL:S,rolesURL:F,shareFormInstanceURL:T,sharedFormURL:_,showCancelButton:D,showPartialResultsToRespondents:A,showPublishAlert:C,showSubmitButton:E,sidebarPanels:l,spritemap:M,submitButtonId:x,submitLabel:N,submittable:k,validateCSRFTokenURL:W,view:K})),state:validator(_objectSpread(_objectSpread(_objectSpread({},z),q),{},{rules:B}))}};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