PageSourceSearch

https://live.european-language-grid.eu/catalogue/static/js/2448.5e5c9bd2.chunk.js

js european-language-grid.eu collected 2026-10-02 02:55:05 UTC 493,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkelg_catalogue=self.webpackChunkelg_catalogue||[]).push([[2448],{33725:function(e,l,t){t.d(l,{r:function(){return _}});var a,n,i,r,o=t(47313),u=["title","titleId"];function s(){return s=Object.assign||function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(this,arguments)}function d(e,l){if(null==e)return{};var t,a,n=function(e,l){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e,l){var t=e.title,c=e.titleId,_=d(e,u);return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:l,"aria-labelledby":c},_),a||(a=o.createElement("defs",null,o.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),void 0===t?o.createElement("title",{id:c},"add-square"):t?o.createElement("title",{id:c},t):null,n||(n=o.createElement("line",{className:"a",x1:12,y1:7.5,x2:12,y2:16.5})),i||(i=o.createElement("line",{className:"a",x1:7.5,y1:12,x2:16.5,y2:12})),r||(r=o.createElement("rect",{className:"a",x:.75,y:.75,width:22.5,height:22.5,rx:3,ry:3})))}var _=o.forwardRef(c);t.p},6973:function(e,l,t){t.d(l,{r:function(){return _}});var a,n,i,r,o=t(47313),u=["title","titleId"];function s(){return s=Object.assign||function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(this,arguments)}function d(e,l){if(null==e)return{};var t,a,n=function(e,l){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e,l){var t=e.title,c=e.titleId,_=d(e,u);return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:l,"aria-labelledby":c},_),a||(a=o.createElement("defs",null,o.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),void 0===t?o.createElement("title",{id:c},"lock-1"):t?o.createElement("title",{id:c},t):null,n||(n=o.createElement("rect",{className:"a",x:3.75,y:9.75,width:16.5,height:13.5,rx:1.5,ry:1.5})),i||(i=o.createElement("path",{className:"a",d:"M6.75,9.75V6a5.25,5.25,0,0,1,10.5,0V9.75"})),r||(r=o.createElement("line",{className:"a",x1:12,y1:15,x2:12,y2:18})))}var _=o.forwardRef(c);t.p},5745:function(e,l,t){t.d(l,{r:function(){return _}});var a,n,i,r,o=t(47313),u=["title","titleId"];function s(){return s=Object.assign||function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},s.apply(this,arguments)}function d(e,l){if(null==e)return{};var t,a,n=function(e,l){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e,l){var t=e.title,c=e.titleId,_=d(e,u);return o.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:l,"aria-labelledby":c},_),a||(a=o.createElement("defs",null,o.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),void 0===t?o.createElement("title",{id:c},"remove-square-1"):t?o.createElement("title",{id:c},t):null,n||(n=o.createElement("line",{className:"a",x1:15.182,y1:8.818,x2:8.818,y2:15.181})),i||(i=o.createElement("line",{className:"a",x1:8.818,y1:8.818,x2:15.182,y2:15.181})),r||(r=o.createElement("rect",{className:"a",x:.75,y:.75,width:22.5,height:22.5,rx:3,ry:3})))}var _=o.forwardRef(c);t.p},4251:function(e,l,t){t.d(l,{Z:function(){return X}});var a=t(4942),n=t(1413),i=t(15671),r=t(43144),o=t(60136),u=t(29388),s=t(47313),d=t(31881),c=t.n(d),_=t
1(10367),b=t(24602),m=t(99902),f=t(45208),p=t(37930),h=t(63589),g=t(1767),y=t(20962),v=t(33623),R=t(72728),q=t(3873),E=t(26395),F=t(83870),x=t.n(F),Z=t(46642),w=t.n(Z),j=t(74700),I=t(57009),O=t(30679),z=t(46417),C=function(e){return"http://w3id.org/meta-share/meta-share/elg"===e.organization_identifier_scheme},X=function(e){(0,o.Z)(t,e);var l=(0,u.Z)(t);function t(e){var r;return(0,i.Z)(this,t),(r=l.call(this,e)).getOrganizationChoices=function(e,l){if(!(l.trim().length<=2)){r.state.source&&r.state.source.cancel("");var t=c().CancelToken.source();r.setState({loading:!0,source:t}),c().get((0,_.aN)(l),{cancelToken:t.token}).then((function(e){r.setState({options:e.data,loading:!1,source:null})})).catch((function(e){console.log(e),r.setState({loading:!1,options:[],source:null})}))}},r.setValues=function(e,l){var t=r.state.initialValue;if("autoCompleteSelected"===e)l.similarity&&delete l.similarity,l.display_name&&delete l.display_name,l.hasOwnProperty("editor-placeholder")&&delete l["editor-placeholder"],t=l,r.setState({initialValue:t,options:[]}),r.props.updateModel(r.props.index,t);r.setState({initialValue:t,options:[]})},r.autocompleteTextField=function(e){var l=r.props.activeLanguage||"en",t=b.Z.getFormElement("organization_identifier",r.state.schema.organization_identifier).formElements.organization_identifier_scheme.choices;return(0,z.jsx)("span",{children:(0,z.jsx)(E.ZP,{className:"wd-100",freeSolo:!0,clearOnBlur:!0,autoHighlight:!0,loading:r.state.loading,value:r.state.initialValue,onChange:function(l,t){t&&("object"===typeof t?r.setValues("autoCompleteSelected",t):r.setObjectGeneral(e,{en:t}))},options:r.state.loading?[]:r.state.options,filterOptions:function(l,t){var i,o=l;r.state.loading||""!==t.inputValue&&o.splice(0,0,(0,n.Z)((0,n.Z)({},JSON.parse(JSON.stringify(g.rZ))),{},(i={},(0,a.Z)(i,e,{en:t.inputValue}),(0,a.Z)(i,"display_name","Missing ".concat(t.inputValue,' ? Add "').concat(t.inputValue,'"')),i)));return o&&0===o.length&&r.state.loading?[{display_name:"Loading please wait..."}]:o},getOptionLabel:function(l){return l.organization_name?Object.keys(l[e]).includes("en")?l[e].en:Object.values(l[e])[0]:""},renderInput:function(l){return(0,z.jsx)(R.Z,(0,n.Z)((0,n.Z)({},l),{},{label:b.Z.getFormElement(e,r.state.schema[e]).label,helperText:b.Z.getFormElement(e,r.state.schema[e]).help_text,placeholder:b.Z.getFormElement(e,r.state.schema[e]).placeholder,variant:"outlined",onChange:function(l){r.getOrganizationChoices(e,l.target.value)},InputProps:(0,n.Z)((0,n.Z)({},l.InputProps),{},{endAdornment:(0,z.jsxs)(s.Fragment,{children:[r.state.loading?(0,z.jsx)(q.Z,{color:"inherit",size:20}):null,l.InputProps.endAdornment]})})}))},renderOption:function(a,n){var i=n.inputValue,o=r.getParentGeneric(a);if(a.display_name){var u=w()(a.display_name,i);return x()(a.display_name,u).map((function(e,l){return(0,z.jsxs)("span",{style:{fontWeight:e.highlight?1e3:400},children:[e.highlight?"\xa0":"",e.text]},l)}))}var s=w()(a[e][l]||Object.values(a[e])[0],i),d=x()(a[e][l]||Object.values(a[e])[0],s);return(0,z.jsxs)("div",{children:[a[e]&&(0,z.jsxs)("div",{children:[d.map((function(e,l){return(0,z.jsx)("span",{style:{fontWeight:e.highlight?1e3:400},children:e.text},l)})),o&&(0,z.jsxs)("span",{children:[", ",o]})]}),a.organization_identifier&&a.organization_identifier.map((function(e,l){return(0,z.jsx)("div",{children:"http://w3id.org/meta-share/meta-share/elg"===e.organization_identifier_scheme?"":"".concat(e.value," - ").concat(t.filter((function(l){return l.value===e.organization_identifier_scheme}))[0].display_name)},l)})),a.website&&a.website.map((function(e,l){return(0,z.jsx)("div",{children:(0,z.jsx)("span",{className:"info_url",children:(0,z.jsx)("span",{children:e})})},l)}))]})}})})},r.getParentGeneric=function(e){var l=null===e||void 0===e?void 0:e.is_division_of,t=r.getParents2(l);return t&&t.startsWith(",")&&(t=t.substring(1).trim()),t&&t.endsWith(",")&&(t=t.substring(0,t.length-1).trim()),t},r.getParents2=function(e){if(!e||0===e.length)return null;for(var l="",t=0;t<e.length;t++){var a=e[t].organization_name;e[t].is_division_of&&e[t].is_division_of.length>0?l+=r.getParents2(e[t].is_division_of)+"--:--"+a.en:l+=", "+a.en}if((l=l.split("--:--")).length>0){for(var n="",i=l.length-1;i>=0;i--){var o=l[i].trim().startsWith(",")?l[i].trim().substring(1):l[i].trim();n+=(o=o.trim().endsWith(",")?o.substring(0,o.trim().length-1):o)+", "}l=n.trim()}return l},r.setObjectGeneral=function(e,l){var t=r.state.initialValue;t[e]=l,t.hasOwnProperty("editor-placeholder")&&delete t["editor-placeholder"],r.setState({initialValue:t,options:[]})},r.updateModel_generic_array=function(e,l){var t=r.state.initialValue;t[e]||(t[e]=[]),t[e]=l,t.hasOwnProperty("editor-placeholder")&&delete t["editor-placeholder"],r.setState({initialValue:t,options:[]},r.onBlur)},r.updateDevisionOf=function(e){var l=r.state.initialValue;l.is_division_of||(l.is_division_of=null),l.is_division_of=e,l.hasOwnProperty("editor-placeholder")&&delete l["editor-placeholder"],r.setState({initialValue:l,options:[]},r.onBlur)},r.updateDevisionOfArray=function(e){var l=r.state.initialValue;l.is_division_of||(l.is_division_of=[]),l.is_division_of=e,l.hasOwnProperty("editor-placeholder")&&delete l["editor-placeholder"],r.setState({initialValue:l,options:[]},r.onBlur)},r.onBlur=function(){r.setState({options:[],loading:!1}),r.state.initialValue&&r.state.initialValue.organization_name&&r.state.initialValue.organization_name.en&&r.props.updateModel(r.props.index,r.state.initialValue)},r.state={schema:null,initialValue:e.initialValue||JSON.parse(JSON.stringify(g.rZ)),options:[],loading:!1,source:null},r.isUnmound=!1,r}
1return(0,r.Z)(t,[{key:"componentWillUnmount",value:function(){this.state.source&&this.state.source&&this.state.source.cancel("")}},{key:"componentDidMount",value:function(){var e=this;this.isUnmound=!0,this.state.source&&this.state.source.cancel("");var l=c().CancelToken.source();c().options((0,_.Uy)("generic_organization"),{cancelToken:l.token}).then((function(l){e.isUnmound&&l.data.actions&&l.data.actions.POST&&e.setState({schema:l.data.actions.POST,source:null})})).catch((function(l){console.log(l),e.setState({source:null})}))}},{key:"render",value:function(){var e=this.state,l=e.schema,t=e.initialValue;if(!l)return(0,z.jsx)(v.Z,{});var a=!!t.hasOwnProperty("pk");return(0,z.jsx)("div",{onBlur:this.onBlur,children:t.organization_name&&!t.organization_name.en?(0,z.jsx)("div",{children:(0,z.jsx)("div",{children:this.autocompleteTextField("organization_name")})}):(0,z.jsxs)("div",{className:"pb-3 inner--group nested--group",children:[(0,z.jsxs)("div",{onBlur:this.onBlur,children:[(0,z.jsx)(I.Z,{variant:"h3",className:"section-links pb1",children:j.Z.editor_generic_organization}),(0,z.jsx)(m.Z,(0,n.Z)((0,n.Z)({},b.Z.getFormElement("organization_name",l.organization_name)),{},{help_text:a?"":b.Z.getFormElement("organization_name",l.organization_name).help_text,defaultValueObj:t.organization_name||{en:""},field:"organization_name",disable:t.pk>=0,setLanguageSpecificText:this.setObjectGeneral})),(0,z.jsx)(f.Z,(0,n.Z)((0,n.Z)({},b.Z.getFormElement("organization_short_name",l.organization_short_name)),{},{help_text:a?"":b.Z.getFormElement("organization_short_name",l.organization_short_name).help_text,default_valueArray:t.organization_short_name||[],field:"organization_short_name",disable:t.pk>=0,show_heading:!1,setLanguageSpecifictextList:this.setObjectGeneral}))]}),t.pk&&(!t.organization_identifier||1===t.organization_identifier.length&&t.organization_identifier.some(C))?(0,z.jsx)(z.Fragment,{}):(0,z.jsxs)("div",{className:"inner--group nested--group",children:[(0,z.jsx)(h.Z,(0,n.Z)((0,n.Z)({},b.Z.getFormElement("organization_identifier",l.organization_identifier)),{},{identifier_scheme:"organization_identifier_scheme",scheme_choices:b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.choices,identifier_scheme_required:b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.required,identifier_scheme_label:b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.label,identifier_scheme_help_text:a?"":b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.help_text,identifier_value_required:b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.required,identifier_value_label:b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.label,identifier_value_placeholder:a?"":b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.placeholder,identifier_value_help_text:a?"":b.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.help_text,identifier_obj:JSON.parse(JSON.stringify(y.H4)),className:"wd-100",default_valueArray:t.organization_identifier,field:"organization_identifier",disable:t.pk>=0,updateModel_Identifier:this.updateModel_generic_array}),JSON.stringify(t)+"generic_organization"+this.props.index)," "]}),(0,z.jsx)("div",{className:"pt-3 pb-3",children:(0,z.jsx)(p.Z,(0,n.Z)((0,n.Z)({},b.Z.getFormElement("website",l.website)),{},{help_text:a?"":b.Z.getFormElement("website",l.website).help_text,className:"wd-100",default_value_Array:t.website||[],field:"website",disable:t.pk>=0,updateModel_website:this.updateModel_generic_array}))}),(0,z.jsx)("div",{children:(0,z.jsx)(O.Z,{initialValueArray:JSON.parse(JSON.stringify(t.is_division_of||[])),child_to_add_parents_name:t.organization_name&&t.organization_name.en||null,disable:a,updateDevisionOf:this.updateDevisionOfArray},t.is_division_of&&t.is_division_of.length>0?JSON.stringify(t.is_division_of):"key-".concat(Math.random()))})]})})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{initialValue:e.initialValue||JSON.parse(JSON.stringify(g.rZ))}}}]),t}(s.Component)},30679:function(e,l,t){t.d(l,{Z:function(){return U}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(57009),d=t(1767),c=t(4942),_=t(31881),b=t.n(_),m=t(10367),f=t(24602),p=t(99902),h=t(45208),g=t(37930),y=t(63589),v=t(20962),R=t(33623),q=t(72728),E=t(3873),F=t(26395),x=t(83870),Z=t.n(x),w=t(46642),j=t.n(w),I=t(74700),O=t(46417),z=function(e){return"http://w3id.org/meta-share/meta-share/elg"===e.organization_identifier_scheme},C=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).getOrganizationChoices=function(e,l){if(!(l.trim().length<=2)){i.state.source&&i.state.source.cancel("");var t=b().CancelToken.source();i.setState({loading:!0,source:t}),b().get((0,m.aN)(l),{cancelToken:t.token}).then((function(e){i.setState({options:e.data,loading:!1,source:null})})).catch((function(e){console.log(e),i.setState({loading:!1,options:[],source:null})}))}},i.setValues=function(e,l){var t=i.state.initialValue;if("autoCompleteSelected"===e)l.similarity&&delete l.similarity,l.display_name&&delete l.display_name,l.hasOwnProperty("editor-placeholder")&&delete l["editor-placeholder"],t=l,i.setState({initialValue:t,options:[]}),i.props.updateDevisionOf(t),i.onBlur();i.setState({initialValue:t,options:[]},i.onBlur)},i.autocompleteTextField=function(e){var l=i.props.activeLanguage||"en",t=f.Z.getFormElement("organization_identifier",i.state.schema.organization_identifier).formElements.organization_identifier_scheme.choices;return(0,O.jsx)("span",{children:(0,O.jsx)(F.ZP,{className:"wd-100",freeSolo:!0,clearOnBlur:!0,autoHighlight:!0,loading:i.state.loading,value:i.state.initialValue,onChange:function(l,t){t&&("object"===typeof t?i.setValues("autoCompleteSelected",t):i.setObjectGeneral(e,{en:t}))},options:i.state.loading?[]:i.state.options,filterOptions:function(l,t){var n,r=l;i.state.loading||""!==t.inputValue&&r.splice(0,0,(0,a.Z)((0,a.Z)({},JSON.parse(JSON.stringify(d.rZ))),{},(n={},(0,c.Z)(n,e,{en:t.inputValue}),(0,c.Z)(n,"display_name","Missing ".concat(t.inputValue,' ? Add "').concat(t.inputValue,'"')),n)
1));return r&&0===r.length&&i.state.loading?[{display_name:"Loading please wait..."}]:r},getOptionLabel:function(l){return l.organization_name?Object.keys(l[e]).includes("en")?l[e].en:Object.values(l[e])[0]:""},renderInput:function(l){return(0,O.jsx)(q.Z,(0,a.Z)((0,a.Z)({},l),{},{label:f.Z.getFormElement(e,i.state.schema[e]).label,helperText:f.Z.getFormElement(e,i.state.schema[e]).help_text,placeholder:f.Z.getFormElement(e,i.state.schema[e]).placeholder,variant:"outlined",onChange:function(l){i.getOrganizationChoices(e,l.target.value)},InputProps:(0,a.Z)((0,a.Z)({},l.InputProps),{},{endAdornment:(0,O.jsxs)(u.Fragment,{children:[i.state.loading?(0,O.jsx)(E.Z,{color:"inherit",size:20}):null,l.InputProps.endAdornment]})})}))},renderOption:function(a,n){var i=n.inputValue;if(a.display_name){var r=j()(a.display_name,i);return Z()(a.display_name,r).map((function(e,l){return(0,O.jsxs)("span",{style:{fontWeight:e.highlight?1e3:400},children:[e.highlight?"\xa0":"",e.text]},l)}))}var o=j()(a[e][l]||Object.values(a[e])[0],i),u=Z()(a[e][l]||Object.values(a[e])[0],o);return(0,O.jsxs)("div",{children:[a[e]&&(0,O.jsx)("div",{children:u.map((function(e,l){return(0,O.jsx)("span",{style:{fontWeight:e.highlight?1e3:400},children:e.text},l)}))}),a.organization_identifier&&a.organization_identifier.map((function(e,l){return(0,O.jsx)("div",{children:"http://w3id.org/meta-share/meta-share/elg"===e.organization_identifier_scheme?"":"".concat(e.value," - ").concat(t.filter((function(l){return l.value===e.organization_identifier_scheme}))[0].display_name)},l)})),a.website&&a.website.map((function(e,l){return(0,O.jsx)("div",{children:(0,O.jsx)("span",{className:"info_url",children:(0,O.jsx)("span",{children:e})})},l)}))]})}})})},i.setObjectGeneral=function(e,l){var t=i.state.initialValue;t[e]=l,t.hasOwnProperty("editor-placeholder")&&delete t["editor-placeholder"],i.setState({initialValue:t,options:[]},i.onBlur)},i.updateModel_generic_array=function(e,l){var t=i.state.initialValue;t[e]||(t[e]=[]),t[e]=l,t.hasOwnProperty("editor-placeholder")&&delete t["editor-placeholder"],i.setState({initialValue:t,options:[]},i.onBlur)},i.updateDevisionOfArray=function(e){var l=i.state.initialValue;l.is_division_of||(l.is_division_of=[]),l.is_division_of=e,l.hasOwnProperty("editor-placeholder")&&delete l["editor-placeholder"],i.setState({initialValue:l,options:[]},i.onBlur)},i.onBlur=function(){i.setState({options:[],loading:!1}),i.state.initialValue&&i.state.initialValue.organization_name&&i.state.initialValue.organization_name.en&&i.props.updateDevisionOf(i.props.itemIndex,i.state.initialValue)},i.state={schema:null,initialValue:e.initialValue||JSON.parse(JSON.stringify(d.rZ)),options:[],loading:!1,source:null},i.isUnmound=!1,i}return(0,i.Z)(t,[{key:"componentWillUnmount",value:function(){this.state.source&&this.state.source&&this.state.source.cancel("")}},{key:"componentDidMount",value:function(){var e=this;this.isUnmound=!0,this.state.source&&this.state.source.cancel("");var l=b().CancelToken.source();b().options((0,m.Uy)("generic_organization"),{cancelToken:l.token}).then((function(l){e.isUnmound&&l.data.actions&&l.data.actions.POST&&e.setState({schema:l.data.actions.POST,source:null})})).catch((function(l){console.log(l),e.setState({source:null})}))}},{key:"render",value:function(){var e=this.state,l=e.schema,t=e.initialValue;if(!l)return(0,O.jsx)(R.Z,{});var n=this.props.disable,i=this.props.disable;return(0,O.jsx)("div",{onBlur:this.onBlur,children:t.organization_name&&!t.organization_name.en?(0,O.jsx)("div",{children:(0,O.jsx)("div",{children:this.autocompleteTextField("organization_name")})}):(0,O.jsxs)("div",{className:"inner--group nested--group",children:[(0,O.jsxs)("div",{onBlur:this.onBlur,children:[!1,(0,O.jsx)(p.Z,(0,a.Z)((0,a.Z)({},f.Z.getFormElement("organization_name",l.organization_name)),{},{help_text:n?"":f.Z.getFormElement("organization_name",l.organization_name).help_text,defaultValueObj:t.organization_name||{en:""},field:"organization_name",disable:i,setLanguageSpecificText:this.setObjectGeneral})),(0,O.jsx)(h.Z,(0,a.Z)((0,a.Z)({},f.Z.getFormElement("organization_short_name",l.organization_short_name)),{},{help_text:n?"":f.Z.getFormElement("organization_short_name",l.organization_short_name).help_text,default_valueArray:t.organization_short_name||[],field:"organization_short_name",disable:t.pk>=0,show_heading:!1,setLanguageSpecifictextList:this.setObjectGeneral}))]}),t.pk&&(!t.organization_identifier||1===t.organization_identifier.length&&t.organization_identifier.some(z))?(0,O.jsx)(O.Fragment,{}
1):(0,O.jsxs)("div",{className:"inner--group nested--group",children:[(0,O.jsx)(y.Z,(0,a.Z)((0,a.Z)({},f.Z.getFormElement("organization_identifier",l.organization_identifier)),{},{identifier_scheme:"organization_identifier_scheme",scheme_choices:f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.choices,identifier_scheme_required:f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.required,identifier_scheme_label:f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.label,identifier_scheme_help_text:n?"":f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.organization_identifier_scheme.help_text,identifier_value_required:f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.required,identifier_value_label:f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.label,identifier_value_placeholder:n?"":f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.placeholder,identifier_value_help_text:n?"":f.Z.getFormElement("organization_identifier",l.organization_identifier).formElements.value.help_text,identifier_obj:JSON.parse(JSON.stringify(v.H4)),className:"wd-100",default_valueArray:t.organization_identifier,field:"organization_identifier",disable:i,updateModel_Identifier:this.updateModel_generic_array}),JSON.stringify(t)+"generic_organization"+this.props.index)," "]}),(0,O.jsx)("div",{className:"pt-3 pb-3",children:(0,O.jsx)(g.Z,(0,a.Z)((0,a.Z)({},f.Z.getFormElement("website",l.website)),{},{help_text:n?"":f.Z.getFormElement("website",l.website).help_text,className:"wd-100",default_value_Array:t.website||[],field:"website",disable:i,updateModel_website:this.updateModel_generic_array}))}),(0,O.jsx)("div",{children:(0,O.jsx)(U,{initialValueArray:JSON.parse(JSON.stringify(t.is_division_of||[])),child_to_add_parents_name:t.organization_name&&t.organization_name.en||null,disable:t.hasOwnProperty("pk"),updateDevisionOf:this.updateDevisionOfArray},t.is_division_of&&t.is_division_of.length>0?JSON.stringify(t.is_division_of):"key-".concat(Math.random()))})]})})}}]),t}(u.Component),X=t(21144),k=t(20337),N=t(34882),U=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var a;return(0,n.Z)(this,t),(a=l.call(this,e)).setValue=function(e,l){var t=a.state.initialValueArray;switch(e){case"fill_in_object":t.push(JSON.parse(JSON.stringify(d.rZ)));break;case"remove_object":if(1===t.length)return void a.props.updateDevisionOf([]);t.splice(l,1)}a.setState({initialValueArray:t},a.onBlur)},a.updateDevisionOf=function(e,l){var t=a.state.initialValueArray;t[e]=l,a.setState({initialValueArray:t},a.onBlur)},a.onBlur=function(){a.props.updateDevisionOf(a.state.initialValueArray)},a.state={initialValueArray:e.initialValueArray||[]},a}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.state.initialValueArray;return(0,O.jsxs)("div",{onBlur:this.onBlur,className:"pb-3 inner--group nested--group",children:[(0,O.jsxs)(X.Z,{container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,O.jsx)(X.Z,{item:!0,sm:11,children:(!this.props.disable||this.props.disable&&l.length>0)&&(0,O.jsxs)(s.Z,{variant:"h3",className:"section-links",style:{marginLeft:"2%"},children:[" ",this.props.child_to_add_parents_name," is division of"]})}),(0,O.jsx)(X.Z,{item:!0,sm:1,children:0===l.length&&!this.props.disable&&(0,O.jsx)(N.ZP,{title:"".concat(I.Z.group_elements_create," division of ").concat(this.props.child_to_add_parents_name),children:(0,O.jsxs)("span",{children:[" ",(0,O.jsx)(k.Z,{disabled:this.props.disable,className:"inner-link-default--purple",onClick:function(l){return e.setValue("fill_in_object")},children:I.Z.group_elements_create})]})})})]}),l.map((function(t,n){return(0,O.jsxs)("div",{className:"ml-20",style:{marginLeft:"2%"},children:[(0,O.jsx)(C,(0,a.Z)((0,a.Z)({},e.props),{},{disable:t.hasOwnProperty("pk"),initialValue:t,itemIndex:n,updateDevisionOf:e.updateDevisionOf})),(0,O.jsx)(X.Z,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"baseline",children:!e.props.disable&&(0,O.jsxs)(X.Z,{item:!0,children:[(0,O.jsx)("span",{children:(0,O.jsx)(N.ZP,{title:"".concat(I.Z.array_elements_remove," ").concat(t&&t.organization_name&&t.organization_name.en?t.organization_name.en:""," division of ").concat(e.props.child_to_add_parents_name||""),children:(0,O.jsx)("span",{children:(0,O.jsx)(k.Z,{disabled:e.props.disable,className:"inner
1-link-default--purple",onClick:function(l){return e.setValue("remove_object",n)},children:I.Z.array_elements_remove})})})}),n===l.length-1&&t&&t.organization_name&&t.organization_name.en&&(0,O.jsx)("span",{children:(0,O.jsx)(N.ZP,{title:"".concat(I.Z.array_elements_add," ").concat(l.length>=1?"another":""," division of ").concat(e.props.child_to_add_parents_name),children:(0,O.jsx)("span",{children:(0,O.jsx)(k.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValue("fill_in_object")},children:I.Z.array_elements_add})})})})]})})]},n)}))]})}}]),t}(u.Component)},63589:function(e,l,t){t.d(l,{Z:function(){return g}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(72728),d=t(20337),c=t(33725),_=t(5745),b=t(14636),m=t(57009),f=t(21144),p=t(74700),h=t(46417),g=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).setIdentifier=function(e,l,t,n){var r=i.state.LR_identifier,o=e&&e.target.name||t,u=r[l]||{};switch(o){case"identifier_value":return u.value=e.target.value,r[l]=(0,a.Z)({},u),void i.setState({LR_identifier:r});case"identifier_selection":u[i.props.identifier_scheme]=n[0].value,r[l]=(0,a.Z)({},u);break;case"addIdentifier":if(r.filter((function(e){return e.value})).length!==r.length||r.filter((function(e){return e[i.props.identifier_scheme]})).length!==r.length)return;r.push(JSON.parse(JSON.stringify(i.props.identifier_obj)));break;case"removeIdentifier":return r.splice(l,1),void i.setState({LR_identifier:r},i.onBlur)}i.setState({LR_identifier:r},i.onBlur)},i.onBlur=function(){i.props.updateModel_Identifier(i.props.field,i.state.LR_identifier)},i.state={LR_identifier:i.props.default_valueArray||[]},i}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.state.LR_identifier;return this.props.required&&0===l.length&&l.push(JSON.parse(JSON.stringify(this.props.identifier_obj))),(0,h.jsxs)("div",{className:"mb-3 inner--group nested--group",onBlur:this.onBlur,children:[(0,h.jsxs)(f.Z,{container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,h.jsxs)(f.Z,{item:!0,sm:11,children:[(0,h.jsxs)(m.Z,{variant:"h3",className:"section-links",children:[this.props.label," "]}),(0,h.jsxs)(m.Z,{className:"section-links",children:[this.props.help_text," "]})]}),(0,h.jsxs)(f.Z,{item:!0,sm:1,children:[0===l&&(0,h.jsx)(d.Z,{disabled:this.props.disable,className:"inner-link-default--purple",onClick:function(l){return e.setIdentifier(l,null,"addIdentifier")},children:p.Z.group_elements_create}),0===l.filter((function(l){return"http://w3id.org/meta-share/meta-share/elg"!==l[e.props.identifier_scheme]})).length&&(0,h.jsx)(d.Z,{disabled:this.props.disable,className:"inner-link-default--purple",onClick:function(l){return e.setIdentifier(l,null,"addIdentifier")},children:p.Z.group_elements_create})]})]}),l.map((function(t,a){var n=t.value||"",i=e.props.scheme_choices.filter((function(l){return l.value===t[e.props.identifier_scheme]})).length>0?e.props.scheme_choices.filter((function(l){return l.value===t[e.props.identifier_scheme]}))[0].display_name:"";return"ELG"===i?(0,h.jsx)("div",{},a):(0,h.jsx)("div",{className:"pt-3 pb-3",children:(0,h.jsxs)(f.Z,{container:!0,spacing:1,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,h.jsx)(f.Z,{item:!0,xs:4,children:(0,h.jsx)(s.Z,{className:"wd-100",required:e.props.identifier_scheme_required,label:e.props.identifier_scheme_label,helperText:e.props.identifier_scheme_help_text,variant:"outlined",disabled:e.props.disable||t.hasOwnProperty("pk"),select:!0,value:i,inputProps:{name:"identifier_selection"},onChange:function(l){return e.setIdentifier(l,a,null,e.props.scheme_choices.filter((function(e){return e.display_name===l.target.value})))},children:e.props.scheme_choices.filter((function(e){return"http://w3id.org/meta-share/meta-share/elg"!==e.value})).map((function(l,t){return(0,h.jsx)(b.Z,{onBlur:e.onBlur,value:l.display_name,children:l.display_name},t)}))})}),(0,h.jsx)(f.Z,{item:!0,xs:6,children:(0,h.jsx)(s.Z,{className:"wd-100",required:e.props.identifier_value_required,label:e.props.identifier_value_label,helperText:e.props.identifier_value_help_text,variant:"outlined",placeholder:e.props.identifier_value_placeholder||"",disabled:e.props.disable||t.hasOwnProperty("pk"),value:n,inputProps:{name:"identifier_value"},onChange:function(l){return e.setIdentifier(l,a)},onBlur:e.onBlur})}),(0,h.jsxs)(f.Z,{item:!0,xs:2,container:!0,direction:"row",justifyContent:"flex-start",alignItems:"baseline",children:[""===n&&""===i||l.length-1!==a?(0,h.jsx)(f.Z,{item:!0,children:(0,h.jsx)("span",{})}):(0,h.jsx)(f.Z,{item:!0,children:(0,h.jsx)(d.Z,{disabled:e.props.disable,onClick:function(l){return e.setIdentifier(l,a,"addIdentifier")},children:(0,h.jsx)(c.r,{className:"small-icon"})})}),(0,h.jsx)(f.Z,{item:!0,children:(0,h.jsx)(d.Z,{disabled:e.props.disable,onClick:function(l){return e.setIdentifier(l,a,"removeIdentifier")},children:(0,h.jsx)(_.r,{className:"small-icon"})})})]}),e.props.children]})},a)}))]})}}]),t}(u.Component)},75167:function(e,l,t){t.d(l,{d4:function(){return a},sW:function(){return n},wI:function(){return i},QG:function(){return r},hm:function(){return o},jQ:function(){return u},cB:function(){return s},zc:function(){return d},Ld:function(){return c},OY:function(){return _},_:function(){return b},ej:function(){return m},Dc:function(){return f},EI:function(){return p},Dq:function(){return h},OE:function(){return g},b:function(){return y},mD:function(){return v},Sl:function(){return R},fU:function(){return q},r5:function(){return E},pZ:function(){return F},zs:function(){return x},wG:function(){return Z},S$:function(){return w},vF:function(){return j}});var a=sessionStorage.org?JSON.parse(sessionStorage.org):{described_entity:{entity_type:"LanguageResource",resource_name:{en:""}
1,lr_subclass:{lr_type:"Corpus",corpus_media_part:null,unspecified_part:null}}},n={"editor-placeholder":!0,corpus_media_type:"CorpusTextPart",media_type:"http://w3id.org/meta-share/meta-share/text",linguality_type:null,multilinguality_type:null,multilinguality_type_details:null,language:[],modality_type:[],text_type:[],text_genre:[],annotation:[],creation_mode:null,is_created_by:[],has_original_source:[],original_source_description:null,synthetic_data:null,creation_details:null,link_to_other_media:[]},i={"editor-placeholder":!0,corpus_media_type:"CorpusAudioPart",media_type:"http://w3id.org/meta-share/meta-share/audio",linguality_type:null,multilinguality_type:null,multilinguality_type_details:null,language:[],modality_type:[],audio_genre:[],speech_genre:[],annotation:[],speech_item:[],non_speech_item:[],legend:null,noise_level:null,naturality:null,conversational_type:[],scenario_type:[],audience:null,interactivity:null,interaction:null,recording_device_type:null,recording_device_type_details:null,recording_platform_software:"",recording_environment:null,source_channel:null,source_channel_type:null,source_channel_name:null,source_channel_details:null,recorder:[],capturing_device_type:null,capturing_device_type_details:null,capturing_details:null,capturing_environment:null,sensor_technology:"",scene_illumination:null,number_of_participants:null,age_group_of_participants:null,age_range_start_of_participants:null,age_range_end_of_participants:null,sex_of_participants:null,origin_of_participants:null,dialect_accent_of_participants:null,geographic_distribution_of_participants:null,hearing_impairment_of_participants:null,speaking_impairment_of_participants:null,number_of_trained_speakers:null,speech_influence:null,creation_mode:null,is_created_by:[],has_original_source:[],original_source_description:null,synthetic_data:null,creation_details:null,link_to_other_media:[]},r={"editor-placeholder":!0,corpus_media_type:"CorpusTextNumericalPart",media_type:"http://w3id.org/meta-share/meta-share/textNumerical",modality_type:[],annotation:[],type_of_text_numerical_content:null,recording_device_type:null,recording_device_type_details:null,recording_platform_software:"",recording_environment:null,source_channel:null,source_channel_type:null,source_channel_name:null,source_channel_details:null,recorder:[],capturing_device_type:null,capturing_device_type_details:null,capturing_details:null,capturing_environment:null,sensor_technology:"",scene_illumination:null,number_of_participants:null,age_group_of_participants:null,age_range_start_of_participants:null,age_range_end_of_participants:null,sex_of_participants:null,origin_of_participants:null,dialect_accent_of_participants:null,geographic_distribution_of_participants:null,hearing_impairment_of_participants:null,speaking_impairment_of_participants:null,number_of_trained_speakers:null,speech_influence:null,creation_mode:null,is_created_by:[],has_original_source:[],original_source_description:null,synthetic_data:null,creation_details:null,link_to_other_media:[]},o={"editor-placeholder":!0,corpus_media_type:"CorpusVideoPart",media_type:"http://w3id.org/meta-share/meta-share/video",linguality_type:null,multilinguality_type:null,multilinguality_type_details:null,language:[],modality_type:[],video_genre:[],annotation:[],type_of_video_content:null,text_included_in_video:[],dynamic_element:[],naturality:null,conversational_type:[],scenario_type:[],audience:null,interactivity:null,interaction:null,recording_device_type:null,recording_device_type_details:null,recording_platform_software:"",recording_environment:null,source_channel:null,source_channel_type:null,source_channel_name:null,source_channel_details:null,recorder:[],capturing_device_type:null,capturing_device_type_details:null,capturing_details:null,capturing_environment:null,sensor_technology:"",scene_illumination:null,number_of_participants:null,age_group_of_participants:null,age_range_start_of_participants:null,age_range_end_of_participants:null,sex_of_participants:null,origin_of_participants:null,dialect_accent_of_participants:null,geographic_distribution_of_participants:null,hearing_impairment_of_participants:null,speaking_impairment_of_participants:null,number_of_trained_speakers:null,
1speech_influence:null,creation_mode:null,is_created_by:[],has_original_source:[],original_source_description:null,synthetic_data:null,creation_details:null,link_to_other_media:[]},u={"editor-placeholder":!0,corpus_media_type:"CorpusImagePart",media_type:"http://w3id.org/meta-share/meta-share/image",linguality_type:null,multilinguality_type:null,multilinguality_type_details:null,language:[],image_genre:[],annotation:[],type_of_image_content:null,text_included_in_image:[],static_element:[],capturing_device_type:null,capturing_device_type_details:null,capturing_details:null,capturing_environment:null,sensor_technology:"",scene_illumination:null,creation_mode:null,is_created_by:[],has_original_source:[],original_source_description:null,synthetic_data:null,creation_details:null,link_to_other_media:[]},s={amount:null,size_unit:null,language:[],domain:[],text_genre:[],audio_genre:[],speech_genre:[],video_genre:[],image_genre:[]},d={"editor-placeholder":!0,data_format:null,signal_encoding:null,sampling_rate:null,quantization:null,byte_order:null,sign_convention:null,audio_quality_measure_included:null,number_of_tracks:null,recording_quality:null,compressed:null,compression_name:null,compression_loss:null},c={"editor-placeholder":!0,amount:null,duration_unit:null},_={"editor-placeholder":!0,size:[],data_format:[],character_encoding:[]},b={"editor-placeholder":!0,size:[],data_format:[],video_format:[]},m={"editor-placeholder":!0,size:[],data_format:[],image_format:[]},f={"editor-placeholder":!0,size:[],data_format:[],duration_of_audio:[],duration_of_effective_speech:[],audio_format:[]},p={"editor-placeholder":!0,size:[],data_format:[]},h={"editor-placeholder":!0,size:[],data_format:[]},g={dataset_distribution_form:null,dataset:null,download_location:"",access_location:"",is_accessed_by:[],is_displayed_by:[],is_queried_by:[],samples_location:[],distribution_text_numerical_feature:[],distribution_image_feature:[],distribution_text_feature:[],distribution_audio_feature:[],distribution_video_feature:[],distribution_unspecified_feature:null,licence_terms:[],attribution_text:null,cost:null,membership_institution:[],copyright_statement:null,availability_start_date:null,availability_end_date:null,distribution_rights_holder:[],access_rights:[],private_resource:null},y="http://w3id.org/meta-share/meta-share/CD-ROM",v="http://w3id.org/meta-share/meta-share/DVD-R",R="http://w3id.org/meta-share/meta-share/accessibleThroughInterface",q="http://w3id.org/meta-share/meta-share/accessibleThroughQuery",E="http://w3id.org/meta-share/meta-share/bluRay",F="http://w3id.org/meta-share/meta-share/downloadable",x="http://w3id.org/meta-share/meta-share/hardDisk",Z="http://w3id.org/meta-share/meta-share/other",w="http://w3id.org/meta-share/meta-share/paperCopy",j="http://w3id.org/meta-share/meta-share/unspecified"},1767:function(e,l,t){t.d(l,{ep:function(){return a},b6:function(){return n},mc:function(){return i},_C:function(){return r},tL:function(){return o},jR:function(){return u},rC:function(){return s},Rm:function(){return d},ED:function(){return c},i4:function(){return _},en:function(){return b},_n:function(){return m},qM:function(){return f},rZ:function(){return p},a7:function(){return h}});var a={"editor-placeholder":!0,category_label:{en:""},subject_identifier:null},n={subject_classification_scheme:"",value:""},i={"editor-placeholder":!0,category_label:{en:""},text_type_identifier:null},r={text_type_classification_scheme:"",value:""},o={"editor-placeholder":!0,category_label:{en:""},audio_genre_identifier:null},u={audio_genre_classification_scheme:"",value:""},s={"editor-placeholder":!0,category_label:{en:""},speech_genre_identifier:null},d={speech_genre_classification_scheme:"",value:""},c={"editor-placeholder":!0,category_label:{en:""},image_genre_identifier:null},_={"editor-placeholder":!0,category_label:{en:""},video_genre_identifier:null},b={video_genre_classification_scheme:"",value:""},m={image_genre_classification_scheme:"",value:""},f={"editor-placeholder":!0,actor_type:"Person",surname:{en:""},given_name:{en:""},personal_identifier:null,email:[]},p={"editor-placeholder":!0,actor_type:"Organization",organization_name:{en:""},organization_identifier:null,website:[],is_division_of:[]},h={"editor-placeholder":!0,actor_type:"Group",organization_name:{en:""},group_identifier:null,website:[]}},20962:function(e,l,t){t.d(l,{hG:function(){return a},a1:function(){return n},M4:function(){return i},H4:function(){return r},i8:function(){return o},ef:function(){return u}});var a=sessionStorage.org?JSON.parse(sessionStorage.org):{described_entity:{entity_type:"Organization",organization_name:{en:""}}},n={"editor-placeholder":!0,category_label:{en:""},domain_identifier:null},i={domain_classification_scheme:"",value:""},r={organization_identifier_scheme:"",value:""},o={country:""},u={country:""}},85425:function(e,l,t){t.d(l,{Z:function(){return g}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(72728),d=t(21144),c=t(26395),_=t(83870),b=t.n(_),m=t(46642),f=t.n(m),p=t(96083),h=t(46417),g=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).setValues=function(e,l,t){var a=i.state.initialValuesArray;if("onchange"===e){a.length=0;for(var n=t.map((function(e){return e.value||e})),r=0;r<n.length;r++){var o=n[r];a.push(o)}}i.setState({initialValuesArray:a}),i.onBlur()},i.onBlur=function(){i.props.updateModel_array(i.props.field,i.state.initialValuesArray,i.props.lr_subclass)},i.renderAutocomplete=function(e){var l=e.map((function(e){var l=i.props.choices.filter((function(l){return l.value===e}));return l.length>0?l[0].display_name:e}));return(0,h.jsx)("div",{onBlur:i.onBlur,children:(0,h.jsx)(d.Z,{container:!0,direction:"row",alignItems:"center",justifyContent:"flex-start",children:(0,h.jsx)(d.Z,{item:!0,sm:12,children:(0,h.jsx)(c.ZP,{multiple:!0,selectOnFocus:!0,handleHomeEndKeys:!0,autoHighlight:!0,clearOnBlur:!0,blurOnSelect:!0,value:l,disabled:i.props.disabled,onChange:function(e,l){l=l.map((function(e){return i.props.choices.filter((function(l){return l.display_name===e})).length>0?i.props.choices.filter((function(l){return l.display_name===e}))[0]:e})),i.setValues("onchange",null,l)},options:i.props.choices,getOptionLabel:function(e){var l=i.props.choices.filter((function(l){return l.value===e.value}));return l.length>0?l[0].display_name:e},renderInput:function(e){return(0,h.jsx)(s.Z,(0,a.Z)((0,a.Z)({className:i.props.className},e),{},{disabled:i.props.disabled,label:i.props.label,helperText:i.props.help_text,required:i.props.required,variant:"outlined"}))},renderTags:function(e,l){return e.map((function(e,t){return(0,h.jsx)(p.Z,(0,a.Z)({variant:"outlined",label:e},l({index:t})))}))},renderOption:function(e,l){var t=l.inputValue,a=f()(e.display_name,t),n=b()(e.display_name,a);return(0,h.jsx)("div",{children:n.map((function(e,l){return(0,h.jsx)("span",{style:{fontWeight:e.highlight?1e3:400},children:e.text},l)}))})}})})})})},i.state={initialValuesArray:i.props.initialValuesArray||[]},i}return(0,i.Z)(t,[{key:"render",value:function(){var e=this.state.initialValuesArray;return(0,h.jsx)("div",{className:"mb1",onBlur:this.onBlur,children:(0,h.jsx)("div",{className:this.props.className,children:this.renderAutocomplete(e)})})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{initialValuesArray:e.initialValuesArray||[]}}}]),t}(u.Component)},26860:function(e,l,t){t.d(l,{Z:function(){return jl}});
1var a,n,i,r,o,u=t(15861),s=t(15671),d=t(43144),c=t(60136),_=t(29388),b=t(87757),m=t.n(b),f=t(47313),p=t(31881),h=t.n(p),g=t(63830),y=t(14069),v=t(35154),R=t(78371),q=t(38390),E=t(95939),F=t(20337),x=t(21303),Z=t(63630),w=t(64106),j=t(12720),I=t(21144),O=t(56446),z=t(34960),C=["title","titleId"];function X(){return X=Object.assign||function(e){for(var l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},X.apply(this,arguments)}function k(e,l){if(null==e)return{};var t,a,n=function(e,l){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||(n[t]=e[t]);return n}(e,l);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],l.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function N(e,l){var t=e.title,u=e.titleId,s=k(e,C);return f.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:l,"aria-labelledby":u},s),a||(a=f.createElement("defs",null,f.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}"))),void 0===t?f.createElement("title",{id:u},"add-circle-1"):t?f.createElement("title",{id:u},t):null,n||(n=f.createElement("path",{className:"a",d:"M6,3.816A9,9,0,0,0,6,20.182"})),i||(i=f.createElement("circle",{className:"a",cx:14.25,cy:12,r:9})),r||(r=f.createElement("line",{className:"a",x1:14.25,y1:7.5,x2:14.25,y2:16.5})),o||(o=f.createElement("line",{className:"a",x1:9.75,y1:12,x2:18.75,y2:12})))}var U=f.forwardRef(N),S=(t.p,t(1060)),P=t(8512),A=t(10367),Q=t(57009),J=t(10551),L=t(30912),T=t(2553),B=function(e){return"".concat(e," is a required field. Please fill in the required information or remove it from the form")},V=function(e){if(!e)return!1;var l=!0;return Object.keys(e).forEach((function(e){return l=!(!l||!e)})),l},D=function(e,l,t){return L.Ry().label(e).test("value",t||"".concat(e," is required"),(function(e){return function(e){if(!e)return!1;var l=!0;return Object.values(e).forEach((function(e){return l=!(!l||!e)})),l}(e)})).test("language key","".concat(e," language is required"),(function(e){return V(e)})).test("length of value","".concat(e," should be less than ").concat(l," characters"),(function(e){if(!e)return!0;if(l){var t=!0;return Object.values(e).forEach((function(e){return t=!!(t&&e.length<=l)})),t}return!0}))},K=function(e,l){return L.Ry().label(e).test("language key","".concat(e," language is required"),(function(e){return!e||V(e)})).test("length of value","".concat(e," should be less than ").concat(l," characters"),(function(e){if(!e)return!0;if(l){var t=!0;return Object.values(e).forEach((function(e){return t=!!(t&&e.length<=l)})),t}return!0}))},H=function(e,l){return L.Ry().shape({described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3),organization_name:D(T.Z.getOrganizationName(l).label,300).required().nullable().default(null),organization_short_name:L.IX().of(K(T.Z.getOrganizationShortName(l).label,100).nullable().default(null)).notRequired().label(T.Z.getOrganizationShortName(l).label).nullable().default(null),organization_alternative_name:L.IX().of(K(T.Z.getOrganizationAltName(l).label,300).nullable().default(null)).notRequired().label(T.Z.getOrganizationAltName(l).label).nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label(T.Z.getOrganizationIdentifier(l).organization_identifier_scheme_label).required(B(T.Z.getOrganizationIdentifier(l).organization_identifier_scheme_label)).nullable().default(null),value:L.Z_().label("organization identifier value").required(B("organization identifier value")).max(1e3).nullable().default(null)}).label(T.Z.getOrganizationIdentifier(l).label).nullable().default(null)).notRequired().label(T.Z.getOrganizationIdentifier(l).label).nullable().default(null),organization_bio:K(T.Z.getOrganizationBio(l).label,1e4).notRequired().nullable().default(null),logo:L.Z_().label("").url("Organization logo must point to a valid URL").nullable().default(null).notRequired(),lt_area:L.IX().of(L.Z_().label("lt area").required().max(200)).notRequired().label("lt area").nullable().default(null),service_offered:L.IX().of(K(T.Z.getservicesOfferedKeywords(l).label,100).nullable().default(null)).notRequired().label(T.Z.getservicesOfferedKeywords(l).label).nullable().default(null),discipline:L.IX().of(K(T.Z.getDisciplineKeywords(l).label,100).nullable().default(null)).notRequired().label(T.Z.getDisciplineKeywords(l).label).nullable().default(null),keyword:L.IX().of(K(T.Z.getKeywords(l).label,100).nullable().default(null)).notRequired().label(T.Z.getKeywords(l).label).nullable().default(null),domain:L.IX().of(L.Ry().shape({category_label:D("Domain "+T.Z.getDomainKeywords(l).category_label,150,B("Domain "+T.Z.getDomainKeywords(l).category_label)).required().nullable().default(null),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(T.Z.getDomainKeywords(l).domain_label).required(B(T.Z.getDomainKeywords(l).domain_label)).nullable().default(null),value:L.Z_().label("domain i
1dentifier value").max(1e3).required(B("domain identifier value")).nullable().default(null)}).label("domain identifier")})).notRequired().label("Domain").nullable().default(null),email:L.IX().of(L.Z_().email().max(254).label("Organization email").nullable().default(null)).notRequired().label("Email").nullable().default(null),website:L.IX().of(L.Z_().url("Organization website must point to a valid URL").max(1e3).label("").nullable().default(null)).notRequired().label("Website").nullable().default(null),head_office_address:L.Ry().nullable().default(null).notRequired().label(T.Z.GetHeadOfficeAddress(l).label).shape({address:K(T.Z.GetHeadOfficeAddress(l).address_label,300).notRequired().nullable().default(null),region:K(T.Z.GetHeadOfficeAddress(l).region_label,200).notRequired().nullable().default(null),zip_code:L.Z_().label(T.Z.GetHeadOfficeAddress(l).zip_code_label).max(20).notRequired().nullable().default(null),city:K(T.Z.GetHeadOfficeAddress(l).city_label,100).notRequired().nullable().default(null),country:L.Z_().label("Head office "+T.Z.GetHeadOfficeAddress(l).country_label).required(B("Head office "+T.Z.GetHeadOfficeAddress(l).country_label)).nullable().default(null)}),other_office_address:L.IX().notRequired().nullable().default(null).label(T.Z.GetOtherOfficeAddress(l).label).of(L.Ry().nullable().default(null).notRequired().label(T.Z.GetOtherOfficeAddress(l).label).shape({address:K(T.Z.GetOtherOfficeAddress(l).address_label,300).notRequired().nullable().default(null),region:K(T.Z.GetOtherOfficeAddress(l).region_label,200).notRequired().nullable().default(null),zip_code:L.Z_().label(T.Z.GetOtherOfficeAddress(l).zip_code_label).max(20).notRequired().nullable().default(null),city:K(T.Z.GetOtherOfficeAddress(l).city_label,100).notRequired().nullable().default(null),country:L.Z_().label("Other office "+T.Z.GetOtherOfficeAddress(l).country_label).required(B("Other office "+T.Z.GetOtherOfficeAddress(l).country_label)).nullable().default(null)})),telephone_number:L.IX().of(L.Z_().max(31).label(T.Z.getTelephoneNumbers(l).label).required().nullable().default(null)).notRequired().label(T.Z.getTelephoneNumbers(l).label).nullable().default(null),fax_number:L.IX().of(L.Z_().max(31).label(T.Z.getFaxNumbers(l).label).required()).notRequired().label(T.Z.getFaxNumbers(l).label).nullable().default(null),social_media_occupational_account:L.IX().of(L.Ry().required().label(T.Z.getSocialMedia(l).label).shape({social_media_occupational_account_type:L.Z_().label(T.Z.getSocialMedia(l).social_media_label).required(B(T.Z.getSocialMedia(l).social_media_label)).nullable().default(null),value:L.Z_().label("social media value").max(1e3).required(B("social media value")).nullable().default(null)})).notRequired().label(T.Z.getSocialMedia(l).label).nullable().default(null),member_of_association:L.IX().of(L.Ry().shape({organization_name:D("Member of association organization name",300,B("Member of association organization name")).required().nullable().default(null),organization_short_name:L.IX().of(K("Member of association organization short name",100).nullable().default(null)).notRequired().label("Member of association organization short name").nullable().default(null),website:L.IX().of(L.Z_().url("Member of association websites must point to valid URLs").max(1e3).label("").nullable().default(null)).notRequired().label("website").nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label(T.Z.get_member_of_association(l).organization_identifier_label).required(B(T.Z.get_member_of_association(l).organization_identifier_label)).nullable().default(null),value:L.Z_().label("organization identifier value").required(B("organization identifier value")).max(1e3).nullable().default(null)}).label(T.Z.get_member_of_association(l).label)).notRequired().label(T.Z.get_member_of_association(l).label).nullable().default(null),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("Member of association is division of").test({name:"test is division of recursion",test:function(e){for(var t=[];e;){if(Array.isArray(e))for(var a=0;a<e.length;a++){var n=e[a],i=n.organization_name,r=n.organization_short_name,o=n.organization_identifier,u=n.website;(0,J.uA)(T.Z.get_member_of_association(l).label+" ").validateSync({organization_name:i,organization_short_name:r,organization_identifier:o,website:u});var s=e[a].is_division_of;s&&s.length>0&&t.push(s)}else{var d=e,c=d.organization_name,_=d.organization_short_name,b=d.organization_identifier,m=d.website;(0,J.uA)(T.Z.get_member_of_association(l).label+" ").validateSync({organization_name:c,organization_short_name:_,organization_identifier:b,
1website:m});var f=e.is_division_of;f&&f.length>0&&t.push(f)}e=t.shift()}return!0}}))})).notRequired().label(T.Z.get_member_of_association(l).label).nullable().default(null),division_category:L.Z_().notRequired().nullable().default(null).label("Division category"),is_division_of:L.IX().of(L.Ry().shape({organization_name:D("Is division of",300,B("Is division of")).notRequired().nullable().default(null),organization_short_name:L.IX().of(K("Is division of organization short name",100).nullable().default(null)).notRequired().label("Is division of organization short name").nullable().default(null),website:L.IX().of(L.Z_().url("Is division of Organization website must point to valid URLs").max(1e3).label("").nullable().default(null)).notRequired().label("website").nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Is division of organization identifier scheme").required(B("Is division of organization identifier scheme")).nullable().default(null),value:L.Z_().label("Is division of organization identifier value").required(B("Is division of  organization identifier value")).max(1e3).nullable().default(null)}).label("Is division of organization identifier")).notRequired().label("Is division of").nullable().default(null),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(e){for(var l=[];e;){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t],n=a.organization_name,i=a.organization_short_name,r=a.organization_identifier,o=a.website;(0,J.uA)("").validateSync({organization_name:n,organization_short_name:i,organization_identifier:r,website:o});var u=e[t].is_division_of;u&&u.length>0&&l.push(u)}else{var s=e,d=s.organization_name,c=s.organization_short_name,_=s.organization_identifier,b=s.website;(0,J.uA)("").validateSync({organization_name:d,organization_short_name:c,organization_identifier:_,website:b});var m=e.is_division_of;m&&m.length>0&&l.push(m)}e=l.shift()}return!0}}))})).notRequired().nullable().default(null).label("Is division of"),replaces_organization:L.IX().of(L.Ry().shape({organization_name:D("Replaces organization name",300,B("Replaces organization name")).required().nullable().default(null),organization_short_name:L.IX().of(K("Replaces organization short name",100).nullable().default(null)).notRequired().label("Replaces organization short name").nullable().default(null),website:L.IX().of(L.Z_().url("Replaces organization website must point to valid URLs").max(1e3).label("").nullable().default(null)).notRequired().label("website").nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Replaces organization identifier scheme").required(B("Replaces organization identifier scheme")).nullable().default(null),value:L.Z_().label("Replaces organization identifier value").required(B("Replaces organization identifier value")).max(1e3).nullable().default(null)}).label(T.Z.get_member_of_association(l).label)).notRequired().label("Replaces organization").nullable().default(null),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(e){for(var l=[];e;){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t],n=a.organization_name,i=a.organization_short_name,r=a.organization_identifier,o=a.website;(0,J.uA)("Replaces ").validateSync({organization_name:n,organization_short_name:i,organization_identifier:r,website:o});var u=e[t].is_division_of;u&&u.length>0&&l.push(u)}else{var s=e,d=s.organization_name,c=s.organization_short_name,_=s.organization_identifier,b=s.website;(0,J.uA)("Replaces ").validateSync({organization_name:d,organization_short_name:c,organization_identifier:_,website:b});var m=e.is_division_of;m&&m.length>0&&l.push(m)}e=l.shift()}return!0}}))})).notRequired().label("Replaces organization").nullable().default(null)})}).validate(e)},M=t(24602),G=t(13479),W=M.Z,Y=function(e){return{amount:L.Rx().positive().min(0).required((0,J.NO)(e)).label(e+" amount").nullable(),currency:L.Z_().required((0,J.NO)(e+" currency")).label(e+" currency").nullable()}},$=function(e,l){return L.Ry().shape({described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3),project_identifier:L.IX().of(L.Ry().shape({project_identifier_scheme:L.Z_().label(W.getFormElement("project_identifier",l.project_identifier).formElements.project_identifier_scheme.label).required((0,J.NO)(W.getFormElement("project_identifier",l.project_identifier).formElements.project_identifier_scheme.label)).nullable().default(null),value:L.Z_().label("Project identifier value").required((0,J.NO)("Project identifier value")).max(1e3).nullable().default(null)}).label(W.getFormElement("project_identifier",l.project_identifier).label).nullable().default(null)).notRequired().label(W.getFormElement("project_identifier",l.project_identifier).label).nullable().default(null),project_name:(0,J.FF)(W.getFormElement("project_name",l.project_name).label,300).required().nullable().default(null),project_short_name:(0,J.qJ)(W.getFormElement("project_name",l.project_short_name).label,100).notRequired().nullable().default(null),project_alternative_name:L.IX().of((0,J.qJ)(W.getFormElement("project_alternative_name",l.project_alternative_name).label,300).required().nullable().default(null)).notRequired().label(W.getFormElement("project_alternative_name",l.project_alternative_name).label).nullable().default(null),funder:L.IX().of(L.Ry().required((0,J.NO)("Funder")).shape({actor_type:L.Z_().required().max(20).label("Actor type").test("Funder Actor type is recuired. Fill in the required information or remove it from the form.","Funder Actor type is recuired. Fill in the required information or remove it from the form.",(function(e){return"Person"===e||"Organization"===e||"Group"===e})),surname:L.Ry().when("actor_type",{is:"Person",then:(0,J.FF)("Funder surname",300,(0,J.NO)("Funder surname")).required().nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),given_name:L.Ry().when("actor_type",{is:"Person",then:(0,J.FF)("Funder name",200,(0,J.NO)("Funder name")).required().nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),personal_identifier:L.IX().of(L.Ry().shape({personal_identifier_scheme:L.Z_().label("Funder Personal identifier scheme").required((0,J.NO)("Funder Personal identifier scheme")).nullable().default(null),value:L.Z_().label("Funder Personal identifier value").max(1e3).required((0,J.NO)("Funder Personal identifier value")).nullable().default(null)}).label("Funder Personal identifier").required().label("Funder Personal identifier").nullable().default(null)).notRequired().nullable().default(null).label("Funder Personal identifier").nullable().default(null),email:L.IX().of(L.Z_().email().max(254).label("Funder email").nullable().default(null)).notRequired().label("Funder email").nullable().default(null),organization_name:L.Ry().when("actor_type",{is:function(e){return"Organization"===e||"Group"===e},then:(0,J.FF)("Funder organization name",300,(0,J.NO)("Funder organization name")).required().nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),organization_short_name:L.IX().when("actor_type",{is:function(e){return"Organization"===e},then:L.IX().of((0,J.qJ)("Funder organization short name",100,(0,J.NO)("Funder organization short name")).notRequired().nullable().default(null)).notRequired().label("Funder organization short name").nullable().default(null),otherwise:L.IX().of((0,J.qJ)("Funder organization short name",100,(0,J.NO)("Funder organization short name")).notRequired().nullable().default(null)).notRequired().label("Funder organization short name").nullable().default(null)}),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Funder organization identifier scheme").required((0,J.NO)("Funder organization identifier scheme")).nullable().default(null),value:L.Z_().label("Funder organization identifier value").max(1e3).required((0,J.NO)("Funder organization identifier value")).nullable().default(null)}).label("Funder organization identifier").required().label("Funder organization identifier")).notRequired().nullable().default(null).label("Funder organization identifier"),group_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Funder organization identifier scheme").required((0,J.NO)("Funder organization identifier scheme")).nullable().default(null),value:L.Z_().label("Funder organization identifier value").max(1e3).required((0,J.NO)("Funder organization identifier value")).nullable().default(null)}).label("Funder organization identifier").required().label("Funder organization identifier").nullable().default(null)).notRequired().nullable().default(null).label("Funder organization identifier"),website:L.IX().of(L.Z_().url("Funder organization website must point to a valid URL").max(1e3).label("").nullable().default(null)).notRequired().label("Website").nullable().default(null).notRequired(),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(e){for(var l=[];e;){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t],n=a.organization_name,i=a.organization_short_name,r=a.organization_identifier,o=a.website;(0,J.uA)("Funder ").validateSync({organization_name:n,organization_short_name:i,organization_identifier:r,website:o});var u=e[t].is_division_of;u&&u.length>0&&l.push(u)}else{var s=e,d=s.organization_name,c=s.organization_short_name,_=s.organization_identifier,b=s.website;(0,J.uA)("Funder ").validateSync({organization_name:d,organization_short_name:c,organization_identifier:_,website:b});var m=e.is_division_of;m&&m.length>0&&l.push(m)}e=l.shift()}return!0}})).notRequired().nullable().default(null)})).label(W.getFormElement("funder",l.funder).label).notRequired().nullable().default(null),project_start_date:L.hT().label(W.getFormElement("project_start_date",l.project_start_date).label).notRequired().nullable().default(null),project_end_date:L.hT().min(L.iH("project_start_date"),"The project end date could not be before the project start date "+e.described_entity.project_start_date).label(W.getFormElement("project_end_date",l.project_end_date).label).notRequired().nullable().default(null),website:L.IX().of(L.Z_().url("Project websites must point to valid URLs").max(1e3).label("").nullable().default(null)).notRequired().label("Website").nullable().default(null),email:L.IX().of(L.Z_().email().max(254).label("Project email").nullable().default(null)).notRequired().label("Project email").nullable().default(null),status:L.Z_().label("Project status").max(20).notRequired().nullable().default(null),logo:L.Z_().label("").url("Project logo must point to a valid URL").nullable().default(null).notRequired(),social_media_occupational_account:L.IX().of(L.Ry().required().label(W.getFormElement("social_media_occupational_account",l.social_media_occupational_account).label).shape({social_media_occupational_account_type:L.Z_().label(W.getFormElement("social_media_occupational_account",l.social_media_occupational_account).formElements.social_media_occupational_account_type.label).required((0,J.NO)(W.getFormElement("social_media_occupational_account",l.social_media_occupational_account).formElements.social_media_occupational_account_type.label)).nullable().default(null),value:L.Z_().label("social media value").max(1e3).required((0,J.NO)("social media value")).nullable().default(null)})).notRequired().label(W.getFormElement("social_media_occupational_account",l.social_media_occupational_account).label).nullable().default(null),grant_number:L.Z_().label(W.getFormElement("grant_number",l.grant_number).label).max(50).notRequired().nullable().default(null),project_summary:(0,J.qJ)(W.getFormElement("project_summary",l.project_summary).label,1e4).notRequired().nullable().default(null),project_report:(0,J.qJ)(W.getFormElement("project_report",l.project_report).label).notRequired().nullable().default(null),lt_area:L.IX().of(L.Z_().label("lt area").required().max(200)).notRequired().label("lt area").nullable().default(null),subject:L.IX().of(L.Ry().shape({category_label:(0,J.FF)("Subject "+W.getFormElement("subject",l.subject).formElements.category_label.label,150,(0,J.NO)("Subject "+W.getFormElement("subject",l.subject).formElements.category_label.label)).required().nullable().default(null),subject_identifier:L.Ry().default(null).nullable().notRequired().shape({subject_classification_scheme:L.Z_().label("Subject classification scheme").required((0,J.NO)("Subject classification scheme")).nullable().default(null),value:L.Z_().label("Subject identifier value").max(1e3).required((0,J.NO)("Subject identifier value")).nullable().default(null)}).label("Subject").nullable().default(null)})).nullable().default(null).notRequired().label("Subject"),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)("Domain "+W.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+W.getFormElement("domain",l.domain).formElements.category_label.label)).required().nullable().default(null),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label("Domain classification scheme").required((0,J.NO)("Domain classification scheme")).nullable().default(null),value:L.Z_().label("domain i
1dentifier value").max(1e3).required((0,J.NO)("domain identifier value")).nullable().default(null)}).label("domain identifier").nullable().default(null)})).notRequired().label("Domain").nullable().default(null),keyword:L.IX().of((0,J.qJ)(W.getFormElement("keyword",l.keyword).label,100).nullable().default(null)).notRequired().label(W.getFormElement("keyword",l.keyword).label).nullable().default(null),cost:L.Ry().shape(Y("Cost")).nullable().default(null).label("Cost"),ec_max_contribution:L.Ry().shape(Y("EC max contribution")).nullable().default(null).label("EC max contribution"),national_max_contribution:L.Ry().shape(Y("National max contribution")).nullable().default(null).label("National max contribution"),funding_scheme_category:L.Z_().notRequired().nullable().default(null).max(150).label(W.getFormElement("funding_scheme_category",l.funding_scheme_category).label),related_call:L.Z_().notRequired().nullable().default(null).max(150).label(W.getFormElement("related_call",l.related_call).label),related_programme:L.Z_().notRequired().nullable().default(null).max(150).label(W.getFormElement("related_programme",l.related_programme).label),related_subprogramme:L.Z_().notRequired().nullable().default(null).max(150).label(W.getFormElement("related_subprogramme",l.related_subprogramme).label),coordinator:L.Ry().nullable().default(null).notRequired().shape({organization_name:(0,J.FF)("Coordinator organization name",300,(0,J.NO)("Coordinator organization name")).required().nullable().default(null),organization_short_name:L.IX().of((0,J.qJ)("Coordinator organization short name",100).nullable().default(null)).notRequired().label("Coordinator organization short name").nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Coordinator organization identifier scheme").required((0,J.NO)("Coordinator organization identifier scheme")).nullable().default(null),value:L.Z_().label("Coordinator organization identifier value").max(1e3).required((0,J.NO)("Coordinator organization identifier value")).nullable().default(null)}).label("Coordinator organization identifier").required().label("Coordinator organization identifier")).notRequired().nullable().default(null).label("Coordinator organization identifier").nullable().default(null),website:L.IX().of(L.Z_().url("Coordinator organization website must point to a valid URL").max(1e3).label("").nullable().default(null)).notRequired().label("Coordinator").nullable().default(null).notRequired(),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(e){for(var l=[];e;){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t],n=a.organization_name,i=a.organization_short_name,r=a.organization_identifier,o=a.website;(0,J.uA)("Coordinator ").validateSync({organization_name:n,organization_short_name:i,organization_identifier:r,website:o});var u=e[t].is_division_of;u&&u.length>0&&l.push(u)}else{var s=e,d=s.organization_name,c=s.organization_short_name,_=s.organization_identifier,b=s.website;(0,J.uA)("Coordinator ").validateSync({organization_name:d,organization_short_name:c,organization_identifier:_,website:b});var m=e.is_division_of;m&&m.length>0&&l.push(m)}e=l.shift()}return!0}}))}),participating_organization:L.IX().nullable().default(null).notRequired().of(L.Ry().nullable().default(null).notRequired().shape({organization_name:(0,J.FF)("Participating organization name",300,(0,J.NO)("Participating organization name")).required().nullable().default(null),organization_short_name:L.IX().of((0,J.qJ)("Participating organization short name",100).nullable().default(null)).notRequired().label("Participating organization short name").nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("Participating organization identifier scheme").required((0,J.NO)("Participating organization identifier scheme")).nullable().default(null),value:L.Z_().label("Participating organization identifier value").max(1e3).required((0,J.NO)("Participating organization identifier value")).nullable().default(null)}).label("Participating organization identifier").required().label("Participating organization identifier").nullable().default(null)).notRequired().nullable().default(null).label("Participating organization identifier"),website:L.IX().of(L.Z_().url("Participating organization website must point to a valid URL").max(1e3).label("").nullable().default(null)).notRequired().label("Participating").nullable().default(null).notRequired(),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(e){for(var l=[];e;){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t],n=a.organization_name,i=a.organization_short_name,r=a.organization_identifier,o=a.website;(0,J.uA)("Participating organization ").validateSync({organization_name:n,organization_short_name:i,organization_identifier:r,website:o});var u=e[t].is_division_of;u&&u.length>0&&l.push(u)}else{var s=e,d=s.organization_name,c=s.organization_short_name,_=s.organization_identifier,b=s.website;(0,J.uA)("Participating organization ").validateSync({organization_name:d,organization_short_name:c,organization_identifier:_,website:b});var m=e.is_division_of;m&&m.length>0&&l.push(m)}e=l.shift()}return!0}}))})),replaces_project:L.IX().of(L.Ry().required((0,J.NO)("replaces project")).shape((0,G.Tf)("replaces project")).default(null).nullable()).label("replaces project").notRequired().nullable().default(null),is_related_to_document:L.IX().of(L.Ry().required("Is related to document is required").shape((0,G.SY)("Is related to document"))).label("Is related to document").notRequired().nullable().default(null)})}).validate(e)},ee=M.Z,le=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},te=function(e,l,t,a){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape((0,G.zW)(le(A.fb[0],A.pl[0])+"Source of metadata record")).label(le(A.fb[0],A.pl[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(le(A.fb[0],A.pl[0])+ee.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(le(A.fb[0],A.pl[0])+"Language Resource identifier value").required((0,J.NO)(le(A.fb[0],A.pl[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(le(A.fb[0],A.pl[0])+ee.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(le(A.fb[0],A.pl[0])+ee.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(le(A.fb[0],A.pl[0])+"".concat(ee.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.FF)(le(A.fb[0],A.pl[0])+"".concat(ee.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(le(A.fb[0],A.pl[0])+"".concat(ee.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(le(A.fb[0],A.pl[0])+ee.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_provider",l.resource_provider).label)).shape((0,G.cs)(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_creator",l.resource_creator).label)).shape((0,G.cs)(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(le(A.fb[0],A.pl[0])+ee.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(le(A.fb[0],A.pl[0])+ee.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("funding_project",l.funding_project).label)).shape((0,G.Tf)(le(A.fb[0],A.pl[0])+ee.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(le(A.fb[0],A.pl[0])+ee.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(le(A.fb[0],A.pl[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),creation_start_date:L.hT().label(le(A.fb[0],A.pl[0])+ee.getFormElement("creation_start_date",l.creation_start_date).label).notRequired().nullable().default(null),creation_end_date:L.hT().min(L.iH("creation_start_date"),"The Language resource creation start date could not be before the creation start date "+e.described_entity.creation_start_date).label(le(A.fb[0],A.pl[0])+ee.getFormElement("creation_end_date",l.creation_end_date).label).notRequired().nullable().default(null),creation_mode:L.Z_().label(le(A.fb[0],A.pl[0])+ee.getFormElement("creation_mode",l.creation_mode).label).notRequired().nullable().default(null),creation_details:(0,J.qJ)(le(A.fb[0],A.pl[0])+ee.getFormElement("creation_details",l.creation_details).label,3e3).notRequired().nullable().default(null),original_source_description:(0,J.qJ)(le(A.fb[0],A.pl[0])+ee.getFormElement("original_source_description",l.original_source_description).label,500).notRequired().nullable().default(null),update_frequency:(0,J.qJ)(le(A.fb[0],A.pl[0])+ee.getFormElement("update_frequency",l.update_frequency).label,100).notRequired().nullable().default(null),revision:(0,J.qJ)(le(A.fb[0],A.pl[0])+ee.getFormElement("revision",l.revision).label,500).notRequired().nullable().default(null),is_created_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("is_created_by",l.is_created_by).label)).shape((0,G.PM)(le(A.fb[0],A.pl[0])+ee.getFormElement("is_created_by",l.is_created_by).label))).label(le(A.fb[0],A.pl[0])+ee.getFormElement("is_created_by",l.is_created_by).label).notRequired().nullable().default(null),has_original_source:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("has_original_source",l.has_original_source).label)).shape((0,G.PM)(le(A.fb[0],A.pl[0])+ee.getFormElement("has_original_source",l.has_original_source).label))).label(le(A.fb[0],A.pl[0])+ee.getFormElement("has_original_source",l.has_original_source).label).notRequired().nullable().default(null),ipr_holder:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[0])+ee.getFormElement("ipr_holder",l.ipr_holder).label)).shape((0,G.cs)(le(A.fb[0],A.pl[0])+ee.getFormElement("ipr_holder",l.ipr_holder).label))).label(le(A.fb[0],A.pl[0])+ee.getFormElement("ipr_holder",l.ipr_holder).label).notRequired().nullable().default(null),intended_application:L.IX().of(L.Z_().label(le(A.fb[0],A.pl[1])+ee.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(le(A.fb[0],A.pl[1])+ee.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(le(A.fb[0],A.pl[1])+ee.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(le(A.fb[0],A.pl[1])+ee.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(le(A.fb[0],A.pl[1])+"Domain "+ee.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+ee.getFormElement("domain",l.domain).formElements.category_label.label)).required().default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(le(A.fb[0],A.pl[1])+"Domain classification scheme").required((0,J.NO)(le(A.fb[0],A.pl[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(le(A.fb[0],A.pl[1])+"domain i
1dentifier value").max(1e3).required((0,J.NO)(le(A.fb[0],A.pl[1])+"domain identifier value")).default(null).nullable()}).label(le(A.fb[0],A.pl[1])+"domain identifier").default(null).nullable()})).notRequired().label(le(A.fb[0],A.pl[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(le(A.fb[0],A.pl[1])+ee.getFormElement("keyword",l.keyword).label,100).required().default(null).nullable()).required().label(le(A.fb[0],A.pl[1])+"".concat(ee.getFormElement("keyword",l.keyword).label)).nullable().default(null),subject:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(le(A.fb[0],A.pl[1])+"Subject "+ee.getFormElement("subject",l.subject).formElements.category_label.label,150,(0,J.NO)("Subject "+ee.getFormElement("subject",l.subject).formElements.category_label.label)).required().default(null).nullable(),subject_identifier:L.Ry().default(null).nullable().notRequired().shape({subject_classification_scheme:L.Z_().label(le(A.fb[0],A.pl[1])+"Subject classification scheme").required((0,J.NO)(le(A.fb[0],A.pl[1])+"Subject classification scheme")).default(null).nullable(),value:L.Z_().label(le(A.fb[0],A.pl[1])+"Subject identifier value").max(1e3).required((0,J.NO)(le(A.fb[0],A.pl[1])+"Subject identifier value")).default(null).nullable()}).label(le(A.fb[0],A.pl[1])+"Subject").default(null).nullable()})).nullable().default(null).notRequired().label(le(A.fb[0],A.pl[1])+"Subject"),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(le(A.fb[0],A.pl[2])+ee.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:le(A.fb[0],A.pl[2])+ee.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(le(A.fb[0],A.pl[2])+ee.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).required().label(le(A.fb[0],A.pl[2])+"".concat(ee.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:le(A.fb[0],A.pl[2])+"".concat(ee.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[2])+ee.getFormElement("contact",l.contact).label)).shape((0,G.cs)(le(A.fb[0],A.pl[2])+ee.getFormElement("contact",l.contact).label)).default(null).nullable()).label(le(A.fb[0],A.pl[2])+ee.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),mailing_list_name:L.IX().of(L.Z_().label(le(A.fb[0],A.pl[2])+ee.getFormElement("mailing_list_name",l.mailing_list_name).label).max(100).default(null).nullable()).label(le(A.fb[0],A.pl[2])+ee.getFormElement("mailing_list_name",l.mailing_list_name).label).notRequired().nullable().default(null),discussion_url:L.IX().of(L.Z_().url().label(le(A.fb[0],A.pl[2])+ee.getFormElement("discussion_url",l.discussion_url).label).max(1e3).default(null).nullable()).label(le(A.fb[0],A.pl[2])+ee.getFormElement("discussion_url",l.discussion_url).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_documented_by",l.is_documented_by).label)).shape((0,G.SY)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_documented_by",l.is_documented_by).label))).label(le(A.fb[0],A.pl[3])+ee.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape((0,G.SY)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(le(A.fb[0],A.pl[3])+ee.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),is_described_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_described_by",l.is_described_by).label)).shape((0,G.SY)(le(A.fb[0],A.pl[3])+ee.getFormElement("is_described_by",l.is_described_by).label))).label(le(A.fb[0],A.pl[3])+ee.getFormElement("is_described_by",l.is_described_by).label).notRequired().nullable().default(null),support_type:L.Z_().notRequired().nullable().default(null).label(le(A.fb[0],A.pl[3])+"support type"),relation:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(le(A.fb[0],A.pl[4])+ee.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.FF)(le(A.fb[0],A.pl[4])+ee.getFormElement("relation",l.relation).formElements.relation_type.label,150).required().nullable().default(null)}).label(le(A.fb[0],A.pl[4])+ee.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_of",l.is_part_of).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_of",l.is_part_of).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_part_with:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_with",l.is_part_with).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_with",l.is_part_with).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_part_with",l.is_part_with).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(le(A.fb[0],A.pl[4])+(0,J.NO)(ee.getFormElement("is_similar_to",l.is_similar_to).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_similar_to",l.is_similar_to).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(le(A.fb[0],A.pl[4])+(0,J.NO)(ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),is_exact_match_with:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_exact_match_with",l.is_exact_match_with).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_exact_match_with",l.is_exact_match_with).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_exact_match_with",l.is_exact_match_with).label).notRequired().nullable().default(null),is_archived_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_archived_by",l.is_archived_by).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_archived_by",l.is_archived_by).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_archived_by",l.is_archived_by).label).notRequired().nullable().default(null),is_continuation_of:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_continuation_of",l.is_continuation_of).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_continuation_of",l.is_continuation_of).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("is_continuation_of",l.is_continuation_of).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[0],A.pl[4])+ee.getFormElement("replaces",l.replaces).label)).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("replaces",l.replaces).label))).label(le(A.fb[0],A.pl[4])+ee.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(le(A.fb[0],A.pl[4])+ee.getFormElement("is_version_of",l.is_version_of).label)),validated:L.O7().notRequired().label(ee.getFormElement("validated",l.validated).label).nullable(),actual_use:L.IX().of(L.Ry().required().shape({used_in_application:L.IX().of(L.Z_().label("used in application").required().default(null).nullable()).notRequired().label("used in application").nullable().default(null),has_outcome:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label)).shape((0,G.PM)(ee.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label))).label(ee.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label).notRequired().nullable().default(null),usage_project:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("actual_use",l.actual_use).formElements.usage_project.label)).shape((0,G.Tf)(ee.getFormElement("actual_use",l.actual_use).formElements.usage_project.label)).default(null).nullable()).label(ee.getFormElement("actual_use",l.actual_use).formElements.usage_project.label).notRequired().nullable().default(null),usage_report:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("actual_use",l.actual_use).formElements.usage_report.label)).shape((0,G.SY)(ee.getFormElement("actual_use",l.actual_use).formElements.usage_report.label))).label(ee.getFormElement("actual_use",l.actual_use).formElements.usage_report.label).notRequired().nullable().default(null),actual_use_details:(0,J.qJ)(ee.getFormElement("actual_use",l.actual_use).formElements.actual_use_details.label,500).notRequired().nullable().default(null)})).notRequired().label(ee.getFormElement("actual_use",l.actual_use).label).nullable().default(null),validation:L.IX().of(L.Ry().required().shape({validation_type:L.Z_().notRequired().default(null).nullable(),validation_mode:L.Z_().notRequired().default(null).nullable(),validation_details:(0,J.qJ)(ee.getFormElement("validation",l.validation).formElements.validation_details.label,500).notRequired().nullable().default(null),validation_extent:L.Z_().notRequired().default(null).nullable(),is_validated_by:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("validation",l.validation).formElements.is_validated_by.label)).shape((0,G.PM)(ee.getFormElement("validation",l.validation).formElements.is_validated_by.label)).default(null).nullable()).label(ee.getFormElement("validation",l.validation).formElements.is_validated_by.label).notRequired().nullable().default(null),validation_report:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("validation",l.validation).formElements.validation_report.label)).shape((0,G.SY)(ee.getFormElement("validation",l.validation).formElements.validation_report.label)).default(null).nullable()).label(ee.getFormElement("validation",l.validation).formElements.validation_report.label).notRequired().nullable().default(null),validator:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("validation",l.validation).formElements.validator.label)).shape((0,G.cs)(ee.getFormElement("validation",l.validation).formElements.validator.label)).default(null).nullable()).label(ee.getFormElement("validation",l.validation).formElements.validator.label).notRequired().nullable().default(null)})).notRequired().label(ee.getFormElement("validation",l.validation).label).nullable().default(null),is_cited_by:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("is_cited_by",l.is_cited_by).label)).shape((0,G.SY)(ee.getFormElement("is_cited_by",l.is_cited_by).label))).label(ee.getFormElement("is_cited_by",l.is_cited_by).label).notRequired().nullable().default(null),is_reviewed_by:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("is_reviewed_by",l.is_reviewed_by).label)).shape((0,G.SY)(ee.getFormElement("is_reviewed_by",l.is_reviewed_by).label)).default(null).nullable()).label(ee.getFormElement("is_reviewed_by",l.is_reviewed_by).label).notRequired().nullable().default(null),lr_subclass:L.Ry().required().shape({function:L.IX().of(L.Z_().label(le(A.fb[1],A.P2[0])+ee.getFormElement("function",t.function).label).required().max(200).default(null).nullable()).label(le(A.fb[1],A.P2[0])+"".concat(ee.getFormElement("function",t.function).label)).required().default(null).nullable(),development_framework:L.Z_().notRequired().label(le(A.fb[1],A.P2[0])+ee.getFormElement("development_framework",t.development_framework).label).nullable().default(null),implementation_language:L.Z_().label(le(A.fb[1],A.P2[0])+ee.getFormElement("implementation_language",t.implementation_language).label).max(100).nullable().default(null),formalism:(0,J.qJ)(ee.getFormElement("formalism",t.formalism).label,100).notRequired().nullable().default(null),method:L.Z_().notRequired().label(ee.getFormElement("method",t.method).label).nullable().default(null),language_dependent:L.O7().required().label(le(A.fb[1],A.P2[1])+ee.getFormElement("language_dependent",t.language_dependent).label).default(null).nullable(),required_hardware:L.IX().of(L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("required_hardware",t.required_hardware).label).required().default(null).nullable()).label(le(A.fb[1],A.P2[1])+ee.getFormElement("required_hardware",t.required_hardware).label).notRequired().nullable().default(null),running_environment_details:(0,J.qJ)(le(A.fb[1],A.P2[1])+ee.getFormElement("running_environment_details",t.running_environment_details).label,200).notRequired().nullable().default(null),requires_software:L.IX().of(L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("running_environment_details",t.running_environment_details).label).required().default(null).nullable()).label(le(A.fb[1],A.P2[1])+ee.getFormElement("running_environment_details",t.running_environment_details).label).notRequired().nullable().default(null),input_content_resource:L.IX().when("language_dependent",{is:!0,then:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("input_content_resource",t.input_content_resource).label)).shape((0,G.lY)(le(A.fb[1],A.P2[1])+ee.getFormElement("input_content_resource",t.input_content_resource).label,t.input_content_resource.child.children,!0))),otherwise:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("input_content_resource",t.input_content_resource).label)).shape((0,G.lY)(le(A.fb[1],A.P2[1])+ee.getFormElement("input_content_resource",t.input_content_resource).label,t.input_content_resource.child.children,!1)))}).required().label(le(A.fb[1],A.P2[1])+"".concat(ee.getFormElement("input_content_resource",t.input_content_resource).label)),output_resource:L.IX().when("language_dependent",{is:!0,then:L.IX().of(L.Ry().nullable().default(null).notRequired((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("output resource",t.output_resource).label)).shape((0,G.lY)(le(A.fb[1],A.P2[1])+ee.getFormElement("output_resource",t.output_resource).label,t.output_resource.child.children,!0))),otherwise:L.IX().of(L.Ry().nullable().default(null).notRequired((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("output resource",t.output_resource).label)).shape((0,G.lY)(le(A.fb[1],A.P2[1])+ee.getFormElement("output_resource",t.output_resource).label,t.output_resource.child.children,!1)))}).notRequired().label(le(A.fb[1],A.P2[1])+ee.getFormElement("output_resource",t.output_resource).label).nullable().default(null),requires_lr:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("requires_lr",t.requires_lr).label)).shape((0,G.PM)(le(A.fb[1],A.P2[1])+ee.getFormElement("requires_lr",t.requires_lr).label))).label(le(A.fb[1],A.P2[1])+ee.getFormElement("requires_lr",t.requires_lr).label).notRequired().nullable().default(null),typesystem:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(le(A.fb[1],A.P2[1])+ee.getFormElement("typesystem",t.typesystem).label)),annotation_schema:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(le(A.fb[1],A.P2[1])+ee.getFormElement("annotation_schema",t.annotation_schema).label)),annotation_resource:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("annotation_resource",t.annotation_resource).label)).shape((0,G.PM)(le(A.fb[1],A.P2[1])+ee.getFormElement("annotation_resource",t.annotation_resource).label))).label(le(A.fb[1],A.P2[1])+ee.getFormElement("annotation_resource",t.annotation_resource).label).notRequired().nullable().default(null),ml_model:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[1],A.P2[1])+ee.getFormElement("ml_model",t.ml_model).label)).shape((0,G.PM)(le(A.fb[1],A.P2[1])+ee.getFormElement("ml_model",t.ml_model).label))).label(le(A.fb[1],A.P2[1])+ee.getFormElement("ml_model",t.ml_model).label).notRequired().nullable().default(null),parameter:L.IX().of(L.Ry().shape({parameter_name:L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("parameter_name",t.parameter.child.children.parameter_name).label).required().max(100).default(null).nullable(),parameter_label:(0,J.FF)(le(A.fb[1],A.P2[1])+ee.getFormElement("parameter_label",t.parameter.child.children.parameter_label).label,100).required().default(null).nullable(),parameter_description:(0,J.FF)(le(A.fb[1],A.P2[1])+ee.getFormElement("parameter_description",t.parameter.child.children.parameter_description).label,100).required().default(null).nullable(),parameter_type:L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("parameter_type",t.parameter.child.children.parameter_type).label).required().default(null).nullable(),optional:L.O7().required().label(le(A.fb[1],A.P2[1])+ee.getFormElement("optional",t.parameter.child.children.optional).label).default(null).nullable(),multi_value:L.O7().required().label(le(A.fb[1],A.P2[1])+ee.getFormElement("multi_value",t.parameter.child.children.multi_value).label).default(null).nullable(),default_value:L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("default_value",t.parameter.child.children.default_value).label).notRequired().max(100).default(null).nullable(),data_format:L.IX().of(L.Z_().label(le(A.fb[1],A.P2[1])+"data format").notRequired().default(null).nullable()).label(ee.getFormElement(le(A.fb[1],A.P2[1])+"data_format",t.parameter.child.children.data_format).label).notRequired().nullable().default(null),enumeration_value:L.IX().of(L.Ry().shape({value_name:L.Z_().label(le(A.fb[1],A.P2[1])+ee.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_name.label).required().default(null).nullable(),value_label:(0,J.FF)(le(A.fb[1],A.P2[1])+"".concat(ee.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_label.label),150).default(null).nullable(),value_description:(0,J.FF)(le(A.fb[1],A.P2[1])+"".concat(ee.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_description.label),500).default(null).nullable()}).notRequired().nullable().default(null)).label(ee.getFormElement(le(A.fb[1],A.P2[1])+"enumeration_value",t.parameter.child.children.enumeration_value).label).notRequired().nullable().default(null)}).notRequired().nullable().default(null)).label(le(A.fb[1],A.P2[1])+ee.getFormElement("parameter",t.parameter).label).notRequired().nullable().default(null),trl:L.Z_().notRequired().nullable().default(null).label(le(A.fb[1],A.P2[2])+"trl"),running_time:L.Z_().notRequired().max(100).nullable().default(null).label(le(A.fb[1],A.P2[1])+"running time"),softw
1are_distribution:L.IX().of(L.Ry().label(le(A.fb[2],A.dT[0])+ee.getFormElement("software_distribution",t.software_distribution).label).required().shape({software_distribution_form:L.Z_().required().label(le(A.fb[2],A.dT[0])+ee.getFormElement("software_distribution_form",t.software_distribution.child.children.software_distribution_form).label).default(null).nullable(),operating_system:L.IX().nullable().default(null).notRequired().label(le(A.fb[2],A.dT[0])+ee.getFormElement("operating_system",t.software_distribution.child.children.operating_system).label).of(L.Z_().required().label(le(A.fb[2],A.dT[0])+ee.getFormElement("operating_system",t.software_distribution.child.children.operating_system).label).nullable().default(null)),membership_institution:L.IX().nullable().default(null).notRequired().label(le(A.fb[2],A.dT[0])+ee.getFormElement("membership_institution",t.software_distribution.child.children.membership_institution).label).of(L.Z_().required().label(le(A.fb[2],A.dT[0])+ee.getFormElement("membership_institution",t.software_distribution.child.children.membership_institution).label).nullable().default(null)),additional_hw_requirements:L.Z_().label(le(A.fb[2],A.dT[0])+"".concat(ee.getFormElement("additional_hw_requirements",t.software_distribution.child.children.additional_hw_requirements).label)).max(500).notRequired().nullable().default(null),command:L.Z_().label("".concat(ee.getFormElement("command",t.software_distribution.child.children.command).label)).max(500).notRequired().nullable().default(null),attribution_text:(0,J.qJ)(le(A.fb[2],A.dT[0])+ee.getFormElement("attribution_text",t.software_distribution.child.children.attribution_text).label).notRequired().nullable().default(null),copyright_statement:(0,J.qJ)(le(A.fb[2],A.dT[0])+ee.getFormElement("copyright_statement",t.s
1oftware_distribution.child.children.copyright_statement).label,200).notRequired().nullable().default(null),availability_start_date:L.hT().label(le(A.fb[2],A.dT[0])+ee.getFormElement("availability_start_date",t.software_distribution.child.children.availability_start_date).label).notRequired().nullable().default(null),availability_end_date:L.hT().min(L.iH("availability_start_date"),"The available end date of the software disstribution could not be before the corresponding start date ").label(le(A.fb[2],A.dT[0])+ee.getFormElement("availability_end_date",t.software_distribution.child.children.availability_end_date).label).notRequired().nullable().default(null),is_described_by:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[2],A.dT[0])+ee.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label)).shape((0,G.SY)(le(A.fb[2],A.dT[0])+ee.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label))).label(le(A.fb[2],A.dT[0])+ee.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label).notRequired().nullable().default(null),licence_terms:L.IX().of(L.Ry().required(le(A.fb[2],A.dT[0])+(0,J.NO)(ee.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label)).shape((0,G.BE)(le(A.fb[2],A.dT[0])+ee.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label))).required().label(le(A.fb[2],A.dT[0])+ee.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape((0,G.Au)(le(A.fb[2],A.dT[0])+"Software distribution Cost")).nullable().default(null).label(le(A.fb[2],A.dT[0])+"Software distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(le(A.fb[2],A.dT[0])+"Access rights category label",150,(0,J.NO)(le(A.fb[2],A.dT[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(le(A.fb[2],A.dT[0])+"Access rights statement scheme").required((0,J.NO)(le(A.fb[2],A.dT[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(le(A.fb[2],A.dT[0])+"Access rights statement value").max(1e3).required((0,J.NO)(le(A.fb[2],A.dT[0])+"Access rights statement value")).default(null).nullable()}).label(le(A.fb[2],A.dT[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(le(A.fb[2],A.dT[0])+"Access rights").nullable().default(null),distribution_rights_holder:L.IX().of(L.Ry().required((0,J.NO)(le(A.fb[2],A.dT[0])+ee.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label)).shape((0,G.cs)(le(A.fb[2],A.dT[0])+ee.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label))).label(le(A.fb[2],A.dT[0])+ee.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label).notRequired().nullable().default(null),private_resource:L.O7().label(le(A.fb[2],A.dT[0])+ee.getFormElement("private_resource",t.software_distribution.child.children.private_resource).label).default(null).nullable().when("software_distribution_form",(function(e,l){return e===A.Kh?l.required():l.notRequired()}))})).label(le(A.fb[2],A.dT[0])+"".concat(ee.getFormElement("software_distribution",t.software_distribution).label)).required().default(null).nullable(),evaluated:L.O7().notRequired().label(ee.getFormElement("evaluated",t.evaluated).label).nullable().default(null),evaluation:L.IX().of(L.Ry().label(ee.getFormElement("evaluation",t.evaluation).label).required().shape({evaluation_level:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label(ee.getFormElement("evaluation_level",t.evaluation.child.children.evaluation_level).label),evaluation_type:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label(ee.getFormElement("evaluation_type",t.evaluation.child.children.evaluation_type).label),evaluation_criterion:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label(ee.getFormElement("evaluation_criterion",t.evaluation.child.children.evaluation_criterion).label),evaluation_measure:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label(ee.getFormElement("evaluation_measure",t.evaluation.child.children.evaluation_measure).label),is_evaluated_by:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label)).shape((0,G.PM)(ee.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label))).label(ee.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label).notRequired().nullable().default(null),evaluation_report:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label)).shape((0,G.SY)(ee.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label))).label(ee.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label).notRequired().nullable().default(null),evaluation_details:(0,J.qJ)(ee.getFormElement("evaluation_details",t.evaluation.child.children.evaluation_details).label,500).notRequired().nullable().default(null),evaluator:L.IX().of(L.Ry().required((0,J.NO)(ee.getFormElement("evaluator",t.evaluation.child.children.evaluator).label)).shape((0,G.cs)(ee.getFormElement("evaluator",t.evaluation.child.children.evaluator).label))).label(ee.getFormElement("evaluator",t.evaluation.child.children.evaluator).label).notRequired().nullable().default(null),gold_standard_location:L.Z_().url("".concat(ee.getFormElement("gold_standard_location",t.evaluation.child.children.gold_standard_location).label," must be a valid URL")).max(1e3).label(ee.getFormElement("gold_standard_location",t.evaluation.child.children.gold_standard_location).label).notRequired().nullable().default(null),performance_indicator:L.IX().of(L.Ry().shape({metric:L.Z_().label("".concat(ee.getFormElement("performance_indicator",t.evaluation.child.children.performance_indicator.child.children.metric).label)).required().default(null).nullable(),measure:L.Rx().positive().min(0).required((0,J.NO)(ee.getFormElement("measure",t.evaluation.child.children.performance_indicator.child.children.measure).label)).label(ee.getFormElement("measure",t.evaluation.child.children.performance_indicator.child.children.measure).label).nullable(),unit_of_measure_metric:L.Z_().label(ee.getFormElement("unit_of_measure_metric",t.evaluation.child.children.performance_indicator.child.children.unit_of_measure_metric).label).required().max(100).nullable().default(null)})).label(ee.getFormElement("performance_indicator",t.evaluation.child.children.performance_indicator).label).notRequired().nullable().default(null)})).label(ee.getFormElement("evaluation",t.evaluation).label).notRequired()})})}).validate(e,{abortEarly:!1})},ae=function(e,l,t,a,n){var i=function(e){return le(A.fb[2],A.dT[0]+"> Software Distribution ".concat(e+1))},r=function(){return le(A.fb[2],A.dT[0]+"> Software Distribution ")},o=le(A.fb[2],A.dT[0]);return L.Ry().shape({described_entity:L.Ry().shape({lr_subclass:L.Ry().required().shape({software_distribution:L.IX().label(le(A.fb[2],A.dT[0])+ee.getFormElement("softw
1are_distribution",t.software_distribution).label).test({name:"docker_download_location",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form,n=t.docker_download_location,r=t.service_adapter_download_location;if(a===A.Kh&&!n)return this.createError({message:i(l)+"> Docker download location is required",path:i});if(n&&(n.indexOf(":/")>=0||n.indexOf("//")>=0))return this.createError({message:i(l)+"> Docker download location ".concat(n," is not a valid image reference. The valid format is [host.name/]image/name:version , e.g. docker.io/username/image"),path:i});if(r&&(r.indexOf(":/")>=0||r.indexOf("//")>=0))return this.createError({message:i(l)+"> Service adapter location ".concat(r," is not a valid image reference. The valid format is [host.name/]image/name:version , e.g. docker.io/username/image"),path:i})}return!0}}).test({name:"one of download_location-access_location-execution_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form,n=t.download_location,r=t.access_location,o=t.execution_location,u=t.package;if(a===A.Hf&&!n&&!r&&!o&&!u)return this.createError({message:i(l)+"> At least one of the following must be filled in: Download location, Access location, Execution location. Or upload a content file and associate it with the distribution.",path:i})}return!0}}).test({name:"one of access_location-execution_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form,n=t.access_location,r=t.execution_location;if(a===A.Oi&&!n&&!r)return this.createError({message:i(l)+"> At least one of the following must be filled in: Access location, Execution location",path:i})}return!0}}).test({name:"one of access_location - download_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form,n=t.access_location,r=t.download_location,o=t.package;if([A.Y3,A.wG,A.eE,A.PZ,A.Et,A.vF,A.$h].includes(a))if(a===A.vF||a===A.wG){if(!n&&!r)return this.createError({message:i(l)+"> At least one of the following must be filled in: Access location, Download location",path:i})}else if(!n&&!r&&!o)return this.createError({message:i(l)+"> At least one of the following must be filled in: access location, download location or upload a content file and accociate it with the distribution",path:i})}return!0}}).test({name:"execution location is required",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],n=t.software_distribution_form,r=t.execution_location,o=t.elg_compatible_distribution;if([A.Kh].includes(n)&&!0===a&&o&&!r)return this.createError({message:i(l)+"> Execution location is required",path:i})}return!0}}).test({name:"functional service should have docker image distribution",test:function(e){for(var l=!1,t=0;e&&t<e.length;
1t++){var n=e[t].software_distribution_form;a&&[A.Kh].includes(n)&&(l=!0)}return!(a&&!l)||this.createError({message:r()+"A docker image distribution should be created for ELG integrated services",path:i})}}).test({name:"elg_compatible_distribution should be assigned for functional service",test:function(e){for(var l=0,t=!1,n=0;e&&n<e.length;n++){var o=e[n],u=o.elg_compatible_distribution,s=o.software_distribution_form;s===A.Kh&&l++,u&&s===A.Kh&&(t=!0)}return!(a&&!t&&l>=2)||this.createError({message:r()+"There are multiple docker image distributions, you should select the one to be used for the ELG integration.",path:i})}}).test({name:"is url",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.execution_location,n=t.download_location,r=t.access_location,o=t.demo_location;if(a&&!(0,G.K2)(a))return this.createError({message:i(l)+"> Execution location is not a valid url",path:i});if(n&&!(0,G.K2)(n))return this.createError({message:i(l)+"> Download location is not a valid url",path:i});if(r&&!(0,G.K2)(r))return this.createError({message:i(l)+"> Access location is not a valid url",path:i});if(o&&!(0,G.K2)(o))return this.createError({message:i(l)+"> Demo location is not a valid url",path:i})}return!0}}).test({name:"web_service_type required",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form,n=t.web_service_type;if(a===A.Oi&&!n)return this.createError({message:i(l)+"> Web service type is required",path:i})}return!0}}).test({name:"max length url",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.execution_location,n=t.download_location,r=t.docker_download_location,o=t.service_adapter_download_location,u=t.access_location,s=t.demo_location,d=1e3;if(a&&a.length>d)return this.createError({message:i(l)+"> Execution location must be at most ".concat(d," characters"),path:i});if(n&&n.length>d)return this.createError({message:i(l)+"> Download location must be at most ".concat(d," characters"),path:i});if(r&&r.length>d)return this.createError({message:i(l)+"> Docker download location must be at most ".concat(d," characters"),path:i});if(o&&o.length>d)return this.createError({message:i(l)+"> Service adapter download location must be at most ".concat(d," characters"),path:i});if(u&&u.length>d)return this.createError({message:i(l)+"> Access location must be at most ".concat(d," characters"),path:i});if(s&&s.length>d)return this.createError({message:i(l)+"> Demo location must be at most ".concat(d," characters"),path:i})}return!0}}).test({name:"If has data=true there must be one distribution with the form libray, plugin, sourceAndExecutable, sourceCode, workFile and file associated with it",test:function(e){for(var l=n&&n.length>0,t=!1,a=0;l&&e&&a<e.length;a++){var r=e[a].software_distribution_form;[A.Y3,A.eE,A.PZ,A.Et,A.$h].includes(r)&&(t=!0)}return!(!t&&l)||this.createError({message:o+"> Since you have uploaded a content file you must create a distribution with one of the following forms: library, plugin, source and executable, source code, workflow file and associate the file with it. ",path:i})}})})})}).validate(e,{abortEarly:!1})},ne=t(75167),ie=M.Z,re=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},oe=function(e,l,t,a,n,i,r,o,u,s){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape((0,G.zW)(re(A.Ue[0],A.q0[0])+"Source of metadata record")).label(re(A.Ue[0],A.q0[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(re(A.Ue[0],A.q0[0])+ie.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(re(A.Ue[0],A.q0[0])+ie.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(re(A.Ue[0],A.q0[0])+"Language Resource identifier value").required((0,J.NO)(re(A.Ue[0],A.q0[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(re(A.Ue[0],A.q0[0])+ie.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(re(A.Ue[0],A.q0[0])+ie.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(re(A.Ue[0],A.q0[0])+"".concat(ie.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.FF)(re(A.Ue[0],A.q0[0])+"".concat(ie.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(re(A.Ue[0],A.q0[0])+"".concat(ie.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(re(A.Ue[0],A.q0[0])+ie.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_provider",l.resource_provider).label)).shape((0,G.cs)(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_creator",l.resource_creator).label)).shape((0,G.cs)(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(re(A.Ue[0],A.q0[0])+ie.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(re(A.Ue[0],A.q0[0])+ie.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[0])+ie.getFormElement("funding_project",l.funding_project).label)).shape((0,G.Tf)(re(A.Ue[0],A.q0[0])+ie.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(re(A.Ue[0],A.q0[0])+ie.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(re(A.Ue[0],A.q0[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(re(A.Ue[0],A.q0[
11])+ie.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(re(A.Ue[0],A.q0[1])+ie.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(re(A.Ue[0],A.q0[1])+ie.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(re(A.Ue[0],A.q0[1])+ie.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(re(A.Ue[0],A.q0[1])+"Domain "+ie.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+ie.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(re(A.Ue[0],A.q0[1])+"Domain classification scheme").required((0,J.NO)(re(A.Ue[0],A.q0[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(re(A.Ue[0],A.q0[
11])+"domain identifier value").max(1e3).required((0,J.NO)(re(A.Ue[0],A.q0[1])+"domain identifier value")).default(null).nullable()}).label(re(A.Ue[0],A.q0[1])+"domain identifier").default(null).nullable()})).notRequired().label(re(A.Ue[0],A.q0[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(re(A.Ue[0],A.q0[1])+ie.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).required().label(re(A.Ue[0],A.q0[1])+"".concat(ie.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(re(A.Ue[0],A.q0[2])+ie.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:re(A.Ue[0],A.q0[2])+ie.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(re(A.Ue[0],A.q0[2])+ie.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).required().label(re(A.Ue[0],A.q0[2])+"".concat(ie.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:re(A.Ue[0],A.q0[2])+"".concat(ie.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[2])+ie.getFormElement("contact",l.contact).label)).shape((0,G.cs)(re(A.Ue[0],A.q0[2])+ie.getFormElement("contact",l.contact).label)).default(null).nullable()).label(re(A.Ue[0],A.q0[2])+ie.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_documented_by",l.is_documented_by).label)).shape((0,G.SY)(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_documented_by",l.is_documented_by).label))).label(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape((0,G.SY)(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(re(A.Ue[0],A.q0[3])+ie.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[4])+ie.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(re(A.Ue[0],A.q0[4])+ie.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.FF)(re(A.Ue[0],A.q0[4])+ie.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(re(A.Ue[0],A.q0[4])+ie.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_part_of",l.is_part_of).label)).shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_part_of",l.is_part_of).label))).label(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(re(A.Ue[0],A.q0[4])+(0,J.NO)(ie.getFormElement("is_similar_to",l.is_similar_to).label)).shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_similar_to",l.is_similar_to).label))).label(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(re(A.Ue[0],A.q0[4])+(0,J.NO)(ie.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(re(A.Ue[0],A.q0[4])+ie.getFormElement("replaces",l.replaces).label)).shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("replaces",l.replaces).label))).label(re(A.Ue[0],A.q0[4])+ie.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(re(A.Ue[0],A.q0[4])+ie.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({corpus_subclass:L.Z_().required().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("corpus_subclass",t.corpus_subclass).label)).nullable().default(null),is_annotated_version_of:L.Ry().nullable().default(null).notRequired().label(re(A.Ue[1],A.Vu[0])+ie.getFormElement("is_annotated_version_of",t.is_annotated_version_of).label).shape((0,G.PM)(re(A.Ue[1],A.Vu[0])+ie.getFormElement("is_annotated_version_of",t.is_annotated_version_of).label)),personal_data_included:s?L.Z_().notRequired().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("personal_data_included",t.personal_data_included).label)):L.Z_().required().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(re(A.Ue[1],A.Vu[0])+ie.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:s?L.Z_().notRequired().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("sensitive_data_included",t.sensitive_data_included).label)):L.Z_().required().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(re(A.Ue[1],A.Vu[0])+ie.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().required().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(re(A.Ue[1],A.Vu[0])+"".concat(ie.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(re(A.Ue[1],A.Vu[0])+ie.getFormElement("anonymization_details",t.anonymization_details).label,500).notRequired().nullable().default(null),corpus_media_part:L.IX().default(null).nullable().label(re(A.Ue[2],A.Yd[0])+ie.getFormElement("corpus_media_part",t.corpus_media_part).label).test((0,G.z5)(re(A.Ue[2],A.Yd[0]),a,n,i,r,o)).when("corpus_subclass",(function(e,l){return s?l.notRequired():l.required()})),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(re(A.Ue[2],A.Yd[0])+ie.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).required().nullable().default(null).label("".concat(re(A.Ue[2],A.Yd[0])+ie.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(re(A.Ue[2],A.Yd[0])+ie.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(re(A.Ue[2],A.Yd[0])+ie.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(re(A.Ue[2],A.Yd[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(re(A.Ue[2],A.Yd[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(re(A.Ue[2],A.Yd[0])+ie.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("corpus_subclass",(function(e,l){return s?l.required():l.notRequired()})),dataset_distribution:L.IX().required().default(null).nullable().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),dataset:L.Ry().notRequired().nullable().default(null).shape({id:L.Rx().required(),file:L.Z_().required(),date_stored:L.Z_().required()}).label("dataset"),private_resource:L.O7().notRequired().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("dataset_distribution",t.dataset_distribution).label).nullable().default(null),access_location:L.Z_().max(1e3).default(null).nullable().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU,ne.wG,ne.vF,ne.r5,ne.b,ne.zs,ne.mD].includes(e)?l.required():l.notRequired()})).test({name:"access_location valid url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:re(A.Ue[3],A.gJ[0])+ie.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location","dataset"],(function(e,l,t,a){return e!==ne.pZ||l||t?a.notRequired():a.required(re(A.Ue[3],A.gJ[0])+"At least one of the following fields must be filled 
1in: download location, access location or upload a dataset and accociate it with the distribution")})).test({name:"download_location valid url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:re(A.Ue[3],A.gJ[0])+ie.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+(0,J.NO)(ie.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape((0,G.BE)(re(A.Ue[3],A.gJ[0])+ie.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).required().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape((0,G.Au)(re(A.Ue[3],A.gJ[0])+"Distribution Cost")).nullable().default(null).label(re(A.Ue[3],A.gJ[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(re(A.Ue[3],A.gJ[0])+"Access rights category label",150,(0,J.NO)(re(A.Ue[3],A.gJ[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(re(A.Ue[3],A.gJ[0])+"Access rights statement scheme").required((0,J.NO)(re(A.Ue[3],A.gJ[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(re(A.Ue[3],A.gJ[0])+"Access rights statement value").max(1e3).required((0,J.NO)(re(A.Ue[3],A.gJ[0])+"Access rights statement value")).default(null).nullable()}).label(re(A.Ue[3],A.gJ[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(re(A.Ue[3],A.gJ[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.corpus_media_part)for(var i=0;i<e.described_entity.lr_subclass.corpus_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.corpus_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_text_feature&&o.distribution_text_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.corpus_media_part)for(var i=0;i<e.described_entity.lr_subclass.corpus_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.corpus_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_video_feature&&o.distribution_video_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_text_numerical_feature:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_text_numerical_feature",t.dataset_distribution.child.children.distribution_text_numerical_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.data_format).label))})).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_text_numerical_feature",t.dataset_distribution.child.children.distribution_text_numerical_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.corpus_media_part)for(var i=0;i<e.described_entity.lr_subclass.corpus_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/textNumerical"===e.described_entity.lr_subclass.corpus_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_text_numerical_feature&&o.distribution_text_numerical_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.corpus_media_part)for(var i=0;i<e.described_entity.lr_subclass.corpus_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.corpus_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_image_feature&&o.distribution_image_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().required(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().required().default(null).nullable().label(re(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(re(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().required().default(null).nullable().label(re(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().required().default(null).nullable().min(0).label(re(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().required().default(null).nullable().label(re(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.corpus_media_part)for(var i=0;i<e.described_entity.lr_subclass.corpus_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.corpus_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_audio_feature&&o.distribution_audio_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_unspecified_feature:L.Ry().label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(re(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().required().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(re(A.Ue[3],A.gJ[0])+ie.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("corpus_subclass",(function(l,t){var a=!1;if(s)for(var n=0;e.described_entity.lr_subclass.dataset_distribution&&n<e.described_entity.lr_subclass.dataset_distribution.length;n++){var i=e.described_entity.lr_subclass.dataset_distribution[n];if(i&&i.distribution_unspecified_feature){a=!0;break}}return s?a?t.notRequired():t.required():t.notRequired()}))})).test({name:"If has data=true there must be at least one downloadable distribution and the file associated with it",test:function(e){for(var l=u&&u.length>0,t=!1,a=0;l&&e&&a<e.length;a++){var n=e[a].dataset_distribution_form;[ne.pZ].includes(n)&&(t=!0)}return!(!t&&l)||this.createError({message:re(A.Ue[3],A.gJ[0])+"Since you have uploaded a content file you must create at least one distribution of downloadable form and associate the file with it. ",path:re(A.Ue[3],A.gJ[0])})}})}).label("corpus subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},ue=function(e,l,t,a,n){return{name:"lcr media type validation",test:function(){var i=(0,u.Z)(m().mark((function i(r){var o,u,s,d;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=0;case 1:if(!(r&&o<r.length)){i.next=44;break}u=r[o],s=u.media_type,d=null,i.t0=s,i.next="http://w3id.org/meta-share/meta-share/text"===i.t0?8:"http://w3id.org/meta-share/meta-share/audio"===i.t0?16:"http://w3id.org/meta-share/meta-share/video"===i.t0?24:"http://w3id.org/meta-share/meta-share/image"===i.t0?32:40;break;case 8:return i.next=10,se(e,l,o,u);case 10:if
1(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=15;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 15:return i.abrupt("break",41);case 16:return i.next=18,de(e,t,o,u);case 18:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=23;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 23:return i.abrupt("break",41);case 24:return i.next=26,ce(e,a,o,u);case 26:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=31;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 31:return i.abrupt("break",41);case 32:return i.next=34,_e(e,n,o,u);case 34:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=39;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 39:case 40:return i.abrupt("break",41);case 41:o++,i.next=1;break;case 44:return i.abrupt("return",!0);case 45:case"end":return i.stop()}}),i,this)})));return function(e){return i.apply(this,arguments)}}()}},se=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce text part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length>=2?l.required():l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).required().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),de=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce audio part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length>=2?l.required():l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).required().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),speech_item:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.speech_item.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.speech_item.label)),non_speech_item:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.non_speech_item.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.non_speech_item.label)),legend:(0,J.qJ)("".concat(l," ").concat(t.legend.label),t.legend.max_length).notRequired().nullable().default(null),noise_level:L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.noise_level.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),ce=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce video part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length>=2?l.required():l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).required().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),type_of_video_content:L.IX().required().nullable().default(null).of((0,J.FF)(l+t.type_of_video_content.label,t.type_of_video_content.max_length)).label(l+t.type_of_video_content.label),text_included_in_video:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_video.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_video.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),_e=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce image part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length>=2?l.required():l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),type_of_image_content:L.IX().required().nullable().default(null).of((0,J.FF)(l+t.type_of_image_content.label,t.type_of_image_content.max_length)).label(l+t.type_of_image_content.label),text_included_in_image:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_image.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_image.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),be=M.Z,me=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},fe=function(e,l,t,a,n,i,r,o,u,s,d){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape((0,G.zW)(me(A.vR[0],A.KR[0])+"Source of metadata record")).label(me(A.vR[0],A.KR[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(me(A.vR[0],A.KR[0])+be.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(me(A.vR[0],A.KR[0])+be.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(me(A.vR[0],A.KR[0])+"Language Resource identifier value").required((0,J.NO)(me(A.vR[0],A.KR[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(me(A.vR[0],A.KR[0])+be.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(me(A.vR[0],A.KR[0])+be.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(me(A.vR[0],A.KR[0])+"".concat(be.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(me(A.vR[0],A.KR[0])+be.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.FF)(me(A.vR[0],A.KR[0])+"".concat(be.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(me(A.vR[0],A.KR[0])+"".concat(be.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(me(A.vR[0],A.KR[0])+be.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[0])+be.getFormElement("resource_provider",l.resource_provider).label)).shape((0,G.cs)(me(A.vR[0],A.KR[0])+be.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(me(A.vR[0],A.KR[0])+be.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[0])+be.getFormElement("resource_creator",l.resource_creator).label)).shape((0,G.cs)(me(A.vR[0],A.KR[0])+be.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(me(A.vR[0],A.KR[0])+be.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(me(A.vR[0],A.KR[0])+be.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[0])+be.getFormElement("funding_project",l.funding_project).label)).shape((0,G.Tf)(me(A.vR[0],A.KR[0])+be.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(me(A.vR[0],A.KR[0])+be.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(me(A.vR[0],A.KR[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(me(A.vR[0],A.KR[1])+be.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(me(A.vR[0],A.KR[1])+be.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(me(A.vR[0],A.KR[1])+be.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(me(A.vR[0],A.KR[1])+be.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(me(A.vR[0],A.KR[1])+"Domain "+be.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+be.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(me(A.vR[0],A.KR[1])+"Domain classification scheme").required((0,J.NO)(me(A.vR[0],A.KR[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(me(A.vR[0],A.KR[1])+"domain i
1dentifier value").max(1e3).required((0,J.NO)(me(A.vR[0],A.KR[1])+"domain identifier value")).default(null).nullable()}).label(me(A.vR[0],A.KR[1])+"domain identifier").default(null).nullable()})).notRequired().label(me(A.vR[0],A.KR[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(me(A.vR[0],A.KR[1])+be.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).required().label(me(A.vR[0],A.KR[1])+"".concat(be.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(me(A.vR[0],A.KR[2])+be.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:me(A.vR[0],A.KR[2])+be.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(me(A.vR[0],A.KR[2])+be.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).required().label(me(A.vR[0],A.KR[2])+"".concat(be.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:me(A.vR[0],A.KR[2])+"".concat(be.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[2])+be.getFormElement("contact",l.contact).label)).shape((0,G.cs)(me(A.vR[0],A.KR[2])+be.getFormElement("contact",l.contact).label)).default(null).nullable()).label(me(A.vR[0],A.KR[2])+be.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[3])+be.getFormElement("is_documented_by",l.is_documented_by).label)).shape((0,G.SY)(me(A.vR[0],A.KR[3])+be.getFormElement("is_documented_by",l.is_documented_by).label))).label(me(A.vR[0],A.KR[3])+be.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[3])+be.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape((0,G.SY)(me(A.vR[0],A.KR[3])+be.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(me(A.vR[0],A.KR[3])+be.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[4])+be.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(me(A.vR[0],A.KR[4])+be.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.FF)(me(A.vR[0],A.KR[4])+be.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(me(A.vR[0],A.KR[4])+be.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[4])+be.getFormElement("is_part_of",l.is_part_of).label)).shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("is_part_of",l.is_part_of).label))).label(me(A.vR[0],A.KR[4])+be.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(me(A.vR[0],A.KR[4])+(0,J.NO)(be.getFormElement("is_similar_to",l.is_similar_to).label)).shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("is_similar_to",l.is_similar_to).label))).label(me(A.vR[0],A.KR[4])+be.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(me(A.vR[0],A.KR[4])+(0,J.NO)(be.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(me(A.vR[0],A.KR[4])+be.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(me(A.vR[0],A.KR[4])+be.getFormElement("replaces",l.replaces).label)).shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("replaces",l.replaces).label))).label(me(A.vR[0],A.KR[4])+be.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(me(A.vR[0],A.KR[4])+be.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({encoding_level:L.IX().of(L.Z_().label(me(A.vR[1],A.p_[0])+be.getFormElement("encoding_level",t.encoding_level).label).required().default(null).nullable()).label(me(A.vR[1],A.p_[0])+be.getFormElement("encoding_level",t.encoding_level).label).required().nullable().default(null),lcr_subclass:L.Z_().notRequired().nullable().default(null).label(A.vR[1],A.p_[0]+"LCR subclass"),content_type:L.IX().of(L.Z_().label(me(A.vR[1],A.p_[0])+be.getFormElement("content_type",t.content_type).label).notRequired().default(null).nullable()).label(me(A.vR[1],A.p_[0])+be.getFormElement("content_type",t.content_type).label).notRequired().nullable().default(null),personal_data_included:d?L.Z_().notRequired().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("personal_data_included",t.personal_data_included).label)):L.Z_().required().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(me(A.vR[1],A.p_[0])+be.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:d?L.Z_().notRequired().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("sensitive_data_included",t.sensitive_data_included).label)):L.Z_().required().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(me(A.vR[1],A.p_[0])+be.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().required().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(me(A.vR[1],A.p_[0])+"".concat(be.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(me(A.vR[1],A.p_[0])+be.getFormElement("anonymization_details",t.anonymization_details).label,500).notRequired().nullable().default(null),lexical_conceptual_resource_media_part:L.IX().default(null).nullable().label(me(A.vR[2],A.O1[0])+be.getFormElement("lexical_conceptual_resource_media_part",t.lexical_conceptual_resource_media_part).label).test(ue(me(A.vR[2],A.O1[0]),a,n,i,o)).when("lcr_subclass",(function(e,l){return d?l.notRequired():l.required()})),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(me(A.vR[2],A.O1[0])+be.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).required().nullable().default(null).label("".concat(me(A.vR[2],A.O1[0])+be.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(me(A.vR[2],A.O1[0])+be.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(me(A.vR[2],A.O1[0])+be.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(me(A.vR[2],A.O1[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(me(A.vR[2],A.O1[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(me(A.vR[2],A.O1[0])+be.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("lcr_subclass",(function(e,l){return d?l.required():l.notRequired()})),dataset_distribution:L.IX().required().default(null).nullable().label(me(A.vR[3],A.le[0])+be.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),dataset:L.Ry().notRequired().nullable().default(null).shape({id:L.Rx().required(),file:L.Z_().required(),date_stored:L.Z_().required()}).label("dataset"),private_resource:L.O7().notRequired().label(me(A.vR[3],A.le[0])+be.getFormElement("dataset_distribution",t.dataset_distribution).label).nullable().default(null),access_location:L.Z_().max(1e3).default(null).nullable().label(me(A.vR[3],A.le[0])+be.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU].includes(e)?l.required():l.notRequired()})).test({name:"access_location valid url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:me(A.vR[3],A.le[0])+be.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(me(A.vR[3],A.le[0])+be.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location","dataset"],(function(e,l,t,a){return e!==ne.pZ||l||t?a.notRequired():a.required(me(A.vR[3],A.le[0])+"At least one of the following fields must be filled 
1in: download location, access location or upload a dataset and accociate it with the distribution")})).test({name:"download_location valid url",test:function(e){return!(e&&!(0,G.K2)(e))||this.createError({message:me(A.vR[3],A.le[0])+be.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(me(A.vR[3],A.le[0])+be.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(me(A.vR[3],A.le[0])+be.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),is_queried_by:L.IX().notRequired().default(null).nullable().of(L.Ry().required((0,J.NO)(me(A.vR[3],A.le[0])+be.getFormElement("is_queried_by",be.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by)).label)).shape((0,G.PM)(me(A.vR[3],A.le[0])+be.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by).label))).label(me(A.vR[3],A.le[0])+be.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(me(A.vR[3],A.le[0])+be.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(me(A.vR[3],A.le[0])+be.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(me(A.vR[3],A.le[0])+(0,J.NO)(be.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape((0,G.BE)(me(A.vR[3],A.le[0])+be.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).required().label(me(A.vR[3],A.le[0])+be.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape((0,G.Au)(me(A.vR[3],A.le[0])+"Distribution Cost")).nullable().default(null).label(me(A.vR[3],A.le[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(me(A.vR[3],A.le[0])+"Access rights category label",150,(0,J.NO)(me(A.vR[3],A.le[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(me(A.vR[3],A.le[0])+"Access rights statement scheme").required((0,J.NO)(me(A.vR[3],A.le[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(me(A.vR[3],A.le[0])+"Access rights statement value").max(1e3).required((0,J.NO)(me(A.vR[3],A.le[0])+"Access rights statement value")).default(null).nullable()}).label(me(A.vR[3],A.le[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(me(A.vR[3],A.le[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().required(me(A.vR[3],A.le[0])+be.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(me(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(me(A.vR[3],A.le[0])+be.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var i=0;i<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_text_feature&&o.distribution_text_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().required(me(A.vR[3],A.le[0])+be.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(me(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(me(A.vR[3],A.le[0])+be.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var i=0;i<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_video_feature&&o.distribution_video_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().required(me(A.vR[3],A.le[0])+be.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(me(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(me(A.vR[3],A.le[0])+be.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var i=0;i<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_image_feature&&o.distribution_image_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().required(me(A.vR[3],A.le[0])+be.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(me(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(me(A.vR[3],A.le[0])+be.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().required().default(null).nullable().label(me(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(me(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().required().default(null).nullable().label(me(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(me(A.vR[3],A.le[0])+be.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(me(A.vR[3],A.le[0])+be.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().required().default(null).nullable().min(0).label(me(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().required().default(null).nullable().label(me(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(me(A.vR[3],A.le[0])+be.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(me(A.vR[3],A.le[0])+be.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var i=0;i<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_audio_feature&&o.distribution_audio_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_unspecified_feature:L.Ry().label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(me(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(me(A.vR[3],A.le[0])+be.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().required().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(me(A.vR[3],A.le[0])+be.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(me(A.vR[3],A.le[0])+be.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("lcr_subclass",(function(l,t){var a=!1;if(d)for(var n=0;e.described_entity.lr_subclass.dataset_distribution&&n<e.described_entity.lr_subclass.dataset_distribution.length;n++){var i=e.described_entity.lr_subclass.dataset_distribution[n];if(i&&i.distribution_unspecified_feature){a=!0;break}}return d?a?t.notRequired():t.required():t.notRequired()}))})).test({name:"If has data=true there must be at least one downloadable distribution and the file associated with it",test:function(e){for(var l=u&&u.length>0,t=!1,a=0;l&&e&&a<e.length;a++){var n=e[a].dataset_distribution_form;[ne.pZ].includes(n)&&(t=!0)}return!(!t&&l)||this.createError({message:me(A.vR[3],A.le[0])+"Since you have uploaded a content file you must create at least one distribution of downloadable form and associate the file with it. ",path:me(A.vR[3],A.le[0])})}}).test({name:"Validations for service_compliant_dataset",test:function(e){for(var l=!1,t=null,a=0;s&&e&&a<e.length;a++){var n=e[a],i=n.dataset_distribution_form,r=n.is_queried_by;[ne.fU].includes(i)&&(l=!0,0===r.length?t="Query tool is missing. Since you are submitting an elg compatible resource that is accessible through query you should add an elg compatible service as a query tool":1!==r.length&&(t="Only one query tool is allowed. Since you are submitting an elg compatible resource that is accessible through query you should add only one elg compatible service as a query tool"))}return s&&!l?this.createError({message:me(A.vR[3],A.le[0])+'Since you are submitting an elg compatible resource you should create at least one "accessible through query" DatasetDistributionForm',path:me(A.vR[3],A.le[0])}):!(s&&l&&t)||this.createError({message:me(A.vR[3],A.le[0])+t,path:me(A.vR[3],A.le[0])})}})}).label("lexical conceptual resource subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},pe=function(e,l,t){return{name:"ld subclass validation",test:function(){var a=(0,u.Z)(m().mark((function a(n){var i,r;return m().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=n&&n.ld_subclass_type||"",r=null,a.t0=i,a.next="Grammar"===a.t0?5:"Model"===a.t0?13:21;break;case 5:return a.next=7,he(e,l,n);case 7:if(!((r=a.sent)&&r.errors&&r.errors.length)){a.next=12;break}return a.abrupt("return",this.createError({message:r.errors,path:"Language description type"}));case 12:case 20:case 21:return a.abrupt("break",22);case 13:return a.next=15,ge(e,t,n);case 15:if(!((r=a.sent)&&r.errors&&r.errors.length)){a.next=20;break}return a.abrupt("return",this.createError({message:r.errors,path:"Language description type"}));case 22:return
1 a.abrupt("return",!0);case 23:case"end":return a.stop()}}),a,this)})));return function(e){return a.apply(this,arguments)}}()}},he=function(){var e=(0,u.Z)(m().mark((function e(l,t,a){var n,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Grammar > </strong>"),n=L.Ry().shape({encoding_level:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.encoding_level.label))).required().nullable().default(null).label("".concat(l," ").concat(t.encoding_level.label)),formalism:(0,J.qJ)("".concat(l," ").concat(t.formalism.label),t.formalism.max_length).notRequired().nullable().default(null),ld_task:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.ld_task.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.ld_task.label))}),e.next=4,n.validate(a,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a){return e.apply(this,arguments)}}(),ge=function(){var e=(0,u.Z)(m().mark((function e(l,t,a){var n,i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Model> </strong>"),n=l.replace("</strong>"," N-gram model> </strong>"),i=L.Ry().shape({model_function:L.IX().of(L.Z_().required().label("".concat(l," ").concat(t.model_function.label)).max(t.model_function.child.max_length)).required().label("".concat(l," ").concat(t.model_function.label)).default(null).nullable(),model_type:L.IX().of(L.Z_().required().label("".concat(l," ").concat(t.model_type.label)).max(t.model_type.child.max_length)).notRequired().label("".concat(l," ").concat(t.model_type.label)).default(null).nullable(),model_variant:L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.model_variant.label)).max(t.model_variant.max_length),development_framework:L.Z_().notRequired().label("".concat(l," ").concat(t.development_framework.label)).nullable().default(null),training_corpus_details:(0,J.qJ)("".concat(l," ").concat(t.training_corpus_details.label),t.training_corpus_details.max_length).notRequired().nullable().default(null),training_process_details:(0,J.qJ)("".concat(l," ").concat(t.training_process_details.label),t.training_process_details.max_length).notRequired().nullable().default(null),bias_details:(0,J.qJ)("".concat(l," ").concat(t.bias_details.label),t.bias_details.max_length).notRequired().nullable().default(null),has_original_source:L.IX().notRequired().default(null).nullable().of(L.Ry().shape((0,G.PM)(l+t.has_original_source.label))).label(l+t.has_original_source.label),requires_lr:L.IX().notRequired().default(null).nullable().of(L.Ry().shape((0,G.PM)(l+t.requires_lr.label))).label(l+t.requires_lr.label),n_gram_model:L.Ry().shape({base_item:L.IX().of(L.Z_().required().label("".concat(n," ").concat(t.n_gram_model.children.base_item.label))).required("".concat(n," ").concat(t.n_gram_model.children.base_item.label," is required")).label().default(null).nullable(),order:L.Rx().required("".concat(n," ").concat(t.n_gram_model.children.order.label," is required")).min(0).nullable().default(null).label("".concat(n," ").concat(t.n_gram_model.children.order.label))}).label(l+t.n_gram_model.label).default(null).nullable().notRequired()}),e.next=5,i.validate(a,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(l,t,a){return e.apply(this,arguments)}}(),ye=function(e,l,t,a){return{name:"ld media type validation",test:function(){var n=(0,u.Z)(m().mark((function n(i){var r,o,u,s;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=0;case 1:if(!(i&&r<i.length)){n.next=36;break}o=i[r],u=o.media_type,s=null,n.t0=u,n.next="http://w3id.org/meta-share/meta-share/text"===n.t0?8:"http://w3id.org/meta-share/meta-share/video"===n.t0?16:"http://w3id.org/meta-share/meta-share/image"===n.t0?24:32;break;case 8:return n.next=10,ve(e,l,r,o);case 10:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=15;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 15:return n.abrupt("break",33);case 16:return n.next=18,Re(e,t,r,o);case 18:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=23;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 23:return n.abrupt("break",33);case 24:return n.next=26,qe(e,a,r,o);case 26:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=31;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 31:case 32:return n.abrupt("break",33);case 33:r++,n.next=1;break;case 36:return n.abrupt("return",!0);case 37:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()}},ve=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Language description text part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).required().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()}))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Re=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Language description video part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).required().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),type_of_video_content:L.IX().required().nullable().default(null).of((0,J.FF)(l+t.type_of_video_content.label,t.type_of_video_content.max_length)).label(l+t.type_of_video_content.label)}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),qe=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce image part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),type_of_image_content:L.IX().required().nullable().default(null).of((0,J.FF)(l+t.type_of_image_content.label,t.type_of_image_content.max_length)).label(l+t.type_of_image_content.label)}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Ee=M.Z,Fe=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},xe=function(e,l,t,a,n,i,r,o,u,s,d,c){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape((0,G.zW)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Source of metadata record")).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language Resource identifier value").required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(Ee.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(Ee.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(Ee.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_provider",l.resource_provider).label)).shape((0,G.cs)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_creator",l.resource_creator).label)).shape((0,G.cs)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("funding_project",l.funding_project).label)).shape((0,G.Tf)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+Ee.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+Ee.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+Ee.getFormElement("intended_application",l.intended_application).label).nullable().default(null).when("lr_subclass",(function(e,l){return e.ld_subclass===A.hL?l.required():l.notRequired()})),complies_with:L.IX().of(L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+Ee.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+Ee.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain "+Ee.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+Ee.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain classification scheme").required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain i
1dentifier value").max(1e3).required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain identifier value")).default(null).nullable()}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain identifier").default(null).nullable()})).notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+Ee.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).required().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"".concat(Ee.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(t){return!(t&&!(0,G.K2)(t))||this.createError({message:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).required().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+"".concat(Ee.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(t){for(var a=0;t&&a<t.length;a++){var n=t[a],i=n.landing_page,r=n.email;if(!i&&!r)return this.createError({message:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+"".concat(Ee.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("contact",l.contact).label)).shape((0,G.cs)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("contact",l.contact).label)).default(null).nullable()).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+Ee.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_documented_by",l.is_documented_by).label)).shape((0,G.SY)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_documented_by",l.is_documented_by).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape((0,G.SY)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+Ee.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_part_of",l.is_part_of).label)).shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_part_of",l.is_part_of).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+(0,J.NO)(Ee.getFormElement("is_similar_to",l.is_similar_to).label)).shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_similar_to",l.is_similar_to).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+(0,J.NO)(Ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("replaces",l.replaces).label)).shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("replaces",l.replaces).label))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape((0,G.PM)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+Ee.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({language_description_subclass:L.Ry().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("language_description_subclass",t.language_description_subclass).label)).test(pe(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0]),u,s)),ld_subclass:L.Z_().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("language_description_subclass",t.language_description_subclass).label)),personal_data_included:L.Z_().notRequired().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+Ee.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:L.Z_().notRequired().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+Ee.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().required().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+Ee.getFormElement("anonymization_details",t.anonymization_details).label,1e3).notRequired().nullable().default(null),additional_hw_requirements:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(Ee.getFormElement("additional_hw_requirements",t.additional_hw_requirements).label)).max(500).notRequired().nullable().default(null),language_description_media_part:L.IX().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("language_description_media_part",t.language_description_media_part).label).test(ye(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0]),a,i,o)).when("ld_subclass",(function(e,l){return e===A.hL||c?l.notRequired():l.required()})),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape((0,G.iC)("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).required().nullable().default(null).label("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape((0,G.iC)("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+Ee.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("ld_subclass",(function(e,l){return e===A.hL||c?l.required():l.notRequired()})),dataset_distribution:L.IX().required().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),dataset:L.Ry().notRequired().nullable().default(null).shape({id:L.Rx().required(),file:L.Z_().required(),date_stored:L.Z_().required()}).label("dataset"),private_resource:L.O7().notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("dataset_distribution",t.dataset_distribution).label).nullable().default(null),access_location:L.Z_().max(1e3).default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU].includes(e)?l.required():l.notRequired()})).test({name:"access_location valid url",test:function(l){return!(l&&!(0,G.K2)(l))||this.createError({message:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location","dataset"],(function(l,t,a,n){return l!==ne.pZ||t||a?n.notRequired():n.required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"At least one of the following fields must be filled 
1in: download location, access location or upload a dataset and accociate it with the distribution")})).test({name:"download_location valid url",test:function(l){return!(l&&!(0,G.K2)(l))||this.createError({message:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+(0,J.NO)(Ee.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape((0,G.BE)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).required().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape((0,G.Au)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Distribution Cost")).nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights category label",150,(0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement scheme").required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement value").max(1e3).required((0,J.NO)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement value")).default(null).nullable()}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.language_description_media_part)for(var i=0;i<e.described_entity.lr_subclass.language_description_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.language_description_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_text_feature&&o.distribution_text_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.language_description_media_part)for(var i=0;i<e.described_entity.lr_subclass.language_description_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.language_description_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_video_feature&&o.distribution_video_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.language_description_media_part)for(var i=0;i<e.described_entity.lr_subclass.language_description_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.language_description_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_image_feature&&o.distribution_image_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().required(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().required().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().required().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().required().default(null).nullable().min(0).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().required().default(null).nullable().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){var a=!1,n=!1;if(e.described_entity.lr_subclass.language_description_media_part)for(var i=0;i<e.described_entity.lr_subclass.language_description_media_part.length;i++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.language_description_media_part[i].media_type){a=!0;break}}if(a)for(var r=0;e.described_entity.lr_subclass.dataset_distribution&&r<e.described_entity.lr_subclass.dataset_distribution.length;r++){var o=e.described_entity.lr_subclass.dataset_distribution[r];if(o&&o.distribution_audio_feature&&o.distribution_audio_feature.length>0){n=!0;break}}return a?n?t.notRequired():t.required():t.notRequired()})),distribution_unspecified_feature:L.Ry().label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape((0,G.OG)(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().required().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+Ee.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("ld_subclass",(function(l,t){if(e.described_entity.lr_subclass.ld_subclass===A.hL||c)for(var a=0;e.described_entity.lr_subclass.dataset_distribution&&a<e.described_entity.lr_subclass.dataset_distribution.length;a++){var n=e.described_entity.lr_subclass.dataset_distribution[a];if(n&&n.distribution_unspecified_feature){!0;break}}return e.described_entity.lr_subclass.ld_subclass===A.hL||c?t.required():t.notRequired()}))})).test({name:"If has data=true th
1ere must be at least one downloadable distribution and the file associated with it",test:function(l){for(var t=d&&d.length>0,a=!1,n=0;t&&l&&n<l.length;n++){var i=l[n].dataset_distribution_form;[ne.pZ].includes(i)&&(a=!0)}return!(!a&&t)||this.createError({message:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Since you have uploaded a content file you must create at least one distribution of downloadable form and associate the file with it. ",path:Fe((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])})}})}).label("language description subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},Ze=t(11409),we=t(48242),je=t.n(we),Ie={protocols:["http","https","ftp"],require_tld:!1,require_protocol:!0,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,host_whitelist:!1,host_blacklist:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,disallow_auth:!1,allowLocal:!0},Oe=function(e){return je().isURL(e||"",Ie)},ze=function(e){return{actor_type:L.Z_().required().max(20).label(e).test("".concat(e," actor type is recuired. Fill in the required information or remove it from the form."),"".concat(e," actor type is recuired. Fill in the required information or remove it from the form."),(function(e){return"Person"===e||"Organization"===e||"Group"===e})),surname:L.Ry().when("actor_type",{is:"Person",then:(0,J.FF)("".concat(e," surname"),300,(0,J.NO)("".concat(e," surname"))).nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),given_name:L.Ry().when("actor_type",{is:"Person",then:(0,J.FF)("".concat(e," name"),200,(0,J.NO)("".concat(e," name"))).required().nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),personal_identifier:L.IX().of(L.Ry().shape({personal_identifier_scheme:L.Z_().label("".concat(e," Personal identifier scheme")).required((0,J.NO)("".concat(e," Personal identifier scheme"))),value:L.Z_().label("".concat(e," Personal identifier value")).max(1e3).required((0,J.NO)("".concat(e," Personal identifier value")))}).label("".concat(e," Personal identifier")).required().label("".concat(e," Personal identifier"))).notRequired().nullable().default(null).label("".concat(e," Personal identifier")),email:L.IX().of(L.Z_().email().max(254).label("".concat(e," email")).nullable().default(null)).notRequired().label("".concat(e," email")).nullable().default(null),organization_name:L.Ry().when("actor_type",{is:function(e){return"Organization"===e||"Group"===e},then:(0,J.FF)("".concat(e," organization name"),300,(0,J.NO)("".concat(e," organization name"))).nullable().default(null),otherwise:L.Ry().notRequired().nullable().default(null)}),organization_short_name:L.IX().when("actor_type",{is:function(e){return"Organization"===e},then:L.IX().of((0,J.qJ)("".concat(e," organization short name"),100,(0,J.NO)("".concat(e," organization short name"))).notRequired().nullable().default(null)).notRequired().label("".concat(e," organization short name")).nullable().default(null),otherwise:L.IX().of((0,J.qJ)("".concat(e," organization short name"),100,(0,J.NO)("".concat(e," organization short name"))).notRequired().nullable().default(null)).notRequired().label("".concat(e," organization short name")).nullable().default(null)}),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("".concat(e," organization identifier scheme")).required((0,J.NO)("".concat(e," organization identifier scheme"))),value:L.Z_().label("".concat(e," organization identifier value")).max(1e3).required((0,J.NO)("".concat(e," organization identifier value")))}).label("".concat(e," organization identifier")).required().label("".concat(e," organization identifier"))).notRequired().nullable().default(null).label("".concat(e," organization identifier")),group_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("".concat(e," organization identifier scheme")).required((0,J.NO)("".concat(e," organization identifier scheme"))),value:L.Z_().label("".concat(e," organization identifier value")).max(1e3).required((0,J.NO)("".concat(e," organization identifier value")))}).label("".concat(e," organization identifier")).required().label("".concat(e," organization identifier"))).notRequired().nullable().default(null).label("".concat(e," organization identifier")),website:L.IX().of(L.Z_().url("".concat(e," organization website must point to a valid URL")).max(1e3).label("").nullable().default(null)).notRequired().label("Website").nullable().default(null).notRequired(),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("is division of").test({name:"test is division of recursion",test:function(l){for(var t=[];l;){if(Array.isArray(l))for(var a=0;a<l.length;a++){var n=l[a],i=n.organization_name,r=n.organization_short_name,o=n.organization_identifier,u=n.website;(0,J.uA)(e+" ").validateSync({organization_name:i,organization_short_name:r,organization_identifier:o,website:u});var s=l[a].is_division_of;s&&s.length>0&&t.push(s)}else{var d=l,c=d.organization_name,_=d.organization_short_name,b=d.organization_identifier,m=d.website;(0,J.uA)(e+" ").validateSync({organization_name:c,organization_short_name:_,organization_identifier:b,
1website:m});var f=l.is_division_of;f&&f.length>0&&t.push(f)}l=t.shift()}return!0}})).notRequired().nullable().default(null)}},Ce=function(e){return{project_name:(0,J.FF)("".concat(e," Project name"),300,(0,J.NO)("".concat(e," Project name"))).nullable().default(null),project_short_name:(0,J.qJ)("".concat(e," Project short name"),100,(0,J.NO)("".concat(e," Project short name"))).nullable().default(null),project_identifier:L.IX().of(L.Ry().shape({project_identifier_scheme:L.Z_().label("".concat(e," project identifier scheme")).required((0,J.NO)("".concat(e," project identifier scheme"))),value:L.Z_().label("".concat(e," project identifier value")).max(1e3).required((0,J.NO)("".concat(e," project identifier value")))}).label("".concat(e," project identifier")).required().label("".concat(e," project identifier"))).notRequired().nullable().default(null).label("".concat(e," project identifier")),website:L.IX().of(L.Z_().url("".concat(e," website must point to a valid URL")).max(1e3).label("").nullable().default(null)).notRequired().label("Website").nullable().default(null).notRequired(),grant_number:L.Z_().label("".concat(e," Grant number")).max(1e3).notRequired().nullable().default(null),funding_type:L.IX().of(L.Z_().label("".concat(e," funding type")).notRequired().nullable().default(null)).notRequired().label("".concat(e," funding type")).nullable().default(null).notRequired(),funder:L.IX().of(L.Ry().required("".concat(e," Funder")).shape(ze("".concat(e," Funder")))).label("".concat(e," Funder")).notRequired().nullable().default(null)}},Xe=function(e){return{resource_name:(0,J.FF)("".concat(e," Resource name"),300,(0,J.NO)("".concat(e," Resource name"))).nullable().default(null),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label("".concat(e," Language Resource identifier scheme")).required((0,J.NO)("".concat(e," Language Resource identifier scheme"))),value:L.Z_().label("".concat(e," Language Resource identifier value")).required((0,J.NO)("".concat(e," Language Resource identifier value"))).max(1e3)}).label("".concat(e," Language Resource identifier scheme"))).notRequired().label("".concat(e," Language Resource identifier scheme")).nullable().default(null),version:L.Z_().label("".concat(e," Version")).max(50).notRequired().nullable().default(null)}},ke=function(e){return{repository_name:(0,J.FF)("".concat(e," Repository name"),200,(0,J.NO)("".concat(e," Repository name"))).nullable().default(null),repository_identifier:L.IX().of(L.Ry().shape({repository_identifier_scheme:L.Z_().label("".concat(e," Repository identifier scheme")).required((0,J.NO)("".concat(e," Repository identifier scheme"))),value:L.Z_().label("".concat(e," Repository identifier value")).required((0,J.NO)("".concat(e," Repository identifier value"))).max(1e3)}).label("".concat(e," Repository identifier"))).notRequired().label("".concat(e," Language Resource identifier")).nullable().default(null),repository_url:L.Z_().url().label("".concat(e," Repository URL")).notRequired().default(null).nullable().max(1e3),repository_institution:L.Ry().shape({organization_name:(0,J.FF)("".concat(e," Institution organization name"),300,(0,J.NO)("".concat(e," Institution organization name"))).required().nullable().default(null),organization_short_name:L.IX().of((0,J.qJ)("".concat(e," Institution organization short name"),100,(0,J.NO)("".concat(e," Institution organization short name"))).notRequired().nullable().default(null)).notRequired().label("".concat(e," Institution organization short name")).nullable().default(null),organization_identifier:L.IX().of(L.Ry().shape({organization_identifier_scheme:L.Z_().label("".concat(e," Institution organization identifier scheme")).required((0,J.NO)("".concat(e," Institution organization identifier scheme"))).nullable().default(null),value:L.Z_().label("".concat(e," Institution organization identifier value")).max(1e3).required((0,J.NO)("".concat(e," Institution organization identifier value"))).nullable().default(null)}).label("".concat(e," Institution organization identifier")).required().label("".concat(e," Institution organization identifier"))).notRequired().nullable().default(null).label("".concat(e," Institution organization identifier")).nullable().default(null),website:L.IX().of(L.Z_().url("".concat(e," Institution organization website must point to a valid URL")).max(1e3).label("").nullable().default(null)).notRequired().label("Institution website").nullable().default(null).notRequired(),is_division_of:L.IX().of(L.Ry().notRequired().nullable().default(null).label("".concat(e," Institution is division of")).test({name:"test Institution is division of recursion",test:function(l){for(var t=[];l;){if(Array.isArray(l))for(var a=0;a<l.length;a++){var n=l[a],i=n.organization_name,r=n.organization_short_name,o=n.organization_identifier,u=n.website;
1(0,J.uA)("".concat(e," Institution ")).validateSync({organization_name:i,organization_short_name:r,organization_identifier:o,website:u});var s=l[a].is_division_of;s&&s.length>0&&t.push(s)}else{var d=l,c=d.organization_name,_=d.organization_short_name,b=d.organization_identifier,m=d.website;(0,J.uA)("".concat(e," Institution ")).validateSync({organization_name:c,organization_short_name:_,organization_identifier:b,website:m});var f=l.is_division_of;f&&f.length>0&&t.push(f)}l=t.shift()}return!0}})).notRequired().nullable().default(null)}).notRequired().nullable().default(null).label("".concat(e," Repository institution"))}},Ne=function(e){return{category_label:(0,J.FF)("".concat(e," Category label"),150,(0,J.NO)("".concat(e," Category label"))).nullable().default(null),text_type_identifier:L.Ry().shape({text_type_classification_scheme:L.Z_().label("".concat(e," Text type classification scheme")).required((0,J.NO)("".concat(e," Text type classification scheme"))),value:L.Z_().label("".concat(e," Text type identifier value")).required((0,J.NO)("".concat(e," Text type identifier value"))).max(1e3)}).notRequired().default(null).nullable().label("".concat(e," Text type identifier"))}},Ue=function(e){return{category_label:(0,J.FF)("".concat(e," Category label"),150,(0,J.NO)("".concat(e," Category label"))).nullable().default(null),audio_genre_identifier:L.Ry().shape({audio_genre_classification_scheme:L.Z_().label("".concat(e," Audio genre classification scheme")).required((0,J.NO)("".concat(e," Audio genre classification scheme"))),value:L.Z_().label("".concat(e," Audio genre identifier value")).required((0,J.NO)("".concat(e," Audio genre identifier value"))).max(1e3)}).notRequired().default(null).nullable().label("".concat(e," Audio genre identifier"))}},Se=function(e){return{category_label:(0,J.FF)("".concat(e," Category label"),150,(0,J.NO)("".concat(e," Category label"))).nullable().default(null),speech_genre_identifier:L.Ry().shape({speech_genre_classification_scheme:L.Z_().label("".concat(e," Speech genre classification scheme")).required((0,J.NO)("".concat(e," Speech genre classification scheme"))),value:L.Z_().label("".concat(e," Speech genre identifier value")).required((0,J.NO)("".concat(e," Speech genre identifier value"))).max(1e3)}).notRequired().default(null).nullable().label("".concat(e," Speech genre identifier"))}},Pe=function(e){return{category_label:(0,J.FF)("".concat(e," Category label"),150,(0,J.NO)("".concat(e," Category label"))).nullable().default(null),video_genre_identifier:L.Ry().shape({video_genre_classification_scheme:L.Z_().label("".concat(e," Video genre classification scheme")).required((0,J.NO)("".concat(e," Video genre classification scheme"))),value:L.Z_().label("".concat(e," Video genre identifier value")).required((0,J.NO)("".concat(e," Video genre identifier value"))).max(1e3)}).notRequired().default(null).nullable().label("".concat(e," Video genre identifier"))}},Ae=function(e){return{category_label:(0,J.FF)("".concat(e," Category label"),150,(0,J.NO)("".concat(e," Category label"))).nullable().default(null),image_genre_identifier:L.Ry().shape({image_genre_classification_scheme:L.Z_().label("".concat(e," Image genre classification scheme")).required((0,J.NO)("".concat(e," Image genre classification scheme"))),value:L.Z_().label("".concat(e," Image genre identifier value")).required((0,J.NO)("".concat(e," Image genre identifier value"))).max(1e3)}).notRequired().default(null).nullable().label("".concat(e," Image genre identifier"))}},Qe=function(e){return{title:(0,J.FF)("".concat(e,"'s field Title"),500,(0,J.NO)("".concat(e,"'s  field Title"))).nullable().default(null),document_identifier:L.IX().of(L.Ry().shape({document_identifier_scheme:L.Z_().label("".concat(e,"'s field document identifier scheme")).required((0,J.NO)("".concat(e," document identifier scheme"))),value:L.Z_().label("".concat(e," 's document identifier value")).required((0,J.NO)("".concat(e,"'s field document identifier value"))).max(1e3)}).label("".concat(e,"'s document identifier"))).notRequired().label("".concat(e,"'s document identifier")).nullable().default(null),bibliographic_record:L.Z_().notRequired().nullable().default(null).max(5e3).label("".concat(e," 's bibliographic record"))}},Je=function(e){return{licence_terms_name:(0,J.FF)("".concat(e,"'s field Licence/terms of use/service name"),200,(0,J.NO)("".concat(e," s f
1ield Licence/terms of use/service name"))).nullable().default(null),licence_identifier:L.IX().of(L.Ry().shape({licence_identifier_scheme:L.Z_().label("".concat(e,"'s field licence identifier scheme")).required((0,J.NO)("".concat(e,"'s field licence identifier scheme"))).nullable().default(null),value:L.Z_().label("".concat(e,"'s field licence identifier value")).required((0,J.NO)("".concat(e,"'s field licence identifier value"))).max(1e3).nullable().default(null)}).label("".concat(e," licence identifier"))).notRequired().label("".concat(e," 's field licence identifier")).nullable().default(null),condition_of_use:L.IX().of(L.Z_().required().label("".concat(e,"'s field condition of use"))).required().nullable().default(null).label("".concat(e,"'s field condition of use")),licence_terms_url:L.IX().of(L.Z_().url().label("".concat(e,"'s field Licence/terms of use/service URL")).required().default(null).nullable()).required().nullable().default(null).label("".concat(e,"'s field Licence/terms of use/service URL"))}},Le=function(e){return{amount:L.Rx().positive().min(0).required((0,J.NO)(e)).label(e+" amount").nullable().default(null),currency:L.Z_().required((0,J.NO)(e+" currency")).label(e+" currency").nullable().default(null)}},Te=function(e){return{glottolog_code:L.Z_().max(10).label("".concat(e," Glottolog code")).nullable().default(null).when("language_id",(function(e,l){return"mis"===e?l.required():l.notRequired()})),language_tag:L.Z_().required().label("".concat(e," Language")).nullable().default(null),language_id:L.Z_().required().label("".concat(e," Language identifier")).nullable().default(null),script_id:L.Z_().notRequired().label("".concat(e," Language Script identifier")).nullable().default(null),region_id:L.Z_().notRequired().label("".concat(e," Language Region identifier")).nullable().default(null),variant_id:L.IX().of(L.Z_().notRequired().label("".concat(e," Language Variant identifier")).nullable().default(null)).label("".concat(e," Language Variant identifier")).nullable().default(null).notRequired(),language_variety_name:(0,J.qJ)("".concat(e," Language variety name"),150).notRequired().nullable().default(null)}},Be=function(e,l,t){return{processing_resource_type:L.Z_().label("".concat(e," ").concat(l.processing_resource_type.label)).notRequired("".concat(e," ").concat(l.processing_resource_type.label," is required")).nullable().default(null),sample:L.IX().of(L.Ry().notRequired().nullable().default(null).shape({sample_text:L.Z_().label("".concat(e," ").concat(l.sample.child.children.sample_text.label)).notRequired().nullable().default(null).max(1e3),samples_location:L.Z_().url("".concat(e," ").concat(l.sample.child.children.samples_location.label," is not a valid url")).max(1e3).label("").notRequired().nullable().default(null),tag:L.Z_().label("".concat(e," ").concat(l.sample.child.children.tag.label)).notRequired().nullable().default(null).max(100)})).label("".concat(e," ").concat(l.sample.label)).notRequired().nullable().default(null),language:L.IX().of(L.Ry().required().shape(Te("".concat(e)))).label("".concat(e," ").concat(l.language.label)).notRequired().nullable().default(null),media_type:L.Z_().label("".concat(e," ").concat(l.media_type.label)).notRequired().nullable().default(null),data_format:L.IX().of(L.Z_().label("".concat(e," ").concat(l.data_format.label)).required().nullable().default(null)).label("".concat(e," ").concat(l.data_format.label)).notRequired().nullable().default(null),character_encoding:L.IX().of(L.Z_().label("".concat(e," ").concat(l.character_encoding.label)).required().nullable().default(null)).label("".concat(e," ").concat(l.character_encoding.label)).notRequired().nullable().default(null),annotation_type:L.IX().of(L.Z_().label("".concat(e," ").concat(l.annotation_type.label)).required().nullable().default(null)).label("".concat(e," ").concat(l.annotation_type.label)).notRequired().nullable().default(null),segmentation_level:L.IX().of(L.Z_().label("".concat(e," ").concat(l.segmentation_level.label)).required().nullable().default(null)).label("".concat(e," ").concat(l.segmentation_level.label)).notRequired().nullable().default(null),typesystem:L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.typesystem.label))),annotation_schema:L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.annotation_schema.label))),annotation_resource:L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.annotation_resource.label))),modality_type:L.IX().of(L.Z_().label("".concat(e," ").concat(l.modality_type.label)).required().nullable().default(null)).label("".concat(e," ").concat(l.modality_type.label)).notRequired().nullable().default(null),modality_type_details:(0,J.qJ)("".concat(e," ").concat(l.modality_type_details.label),500).notRequired().nullable().default(null)}},Ve=function(e,l,t,a,n,i){return{name:"media type validation",test:function(){var r=(0,u.Z)(m().mark((function r(o){var u,s,d,c;return m().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:u=0;case 1:if(!(o&&u<o.length)){r.next=52;break}s=o[u],d=s.media_type,c=null,r.t0=d,r.next="http://w3id.org/meta-share/meta-share/text"===r.t0?8:"http://w3id.org/meta-share/meta-share/audio"===r.t0?16:"http://w3id.org/meta-share/meta-share/textNumerical"===r.t0?24:"http://w3id.org/meta-share/meta-share/video"===r.t0?32:"http://w3id.org/meta-share/meta-share/image"===r.t0?40:48;break;case 8:return r.next=10,De(e,l,u,s);case 10:if(!((c=r.sent)&&c.errors&&c.errors.length)){r.next=15;break}return r.abrupt("return",this.createError({message:c.errors,path:"media part"}));case 15:return r.abrupt("break",49);case 16:return r.next=18,Ke(e,t,u,s);case 18:if(!((c=r.sent)&&c.errors&&c.errors.length)){r.next=23;break}return r.abrupt("return",this.createError({message:c.errors,path:"media part"}));case 23:return r.abrupt("break",49);case 24:return r.next=26,He(e,n,u,s);case 26:if(!((c=r.sent)&&c.errors&&c.errors.length)){r.next=31;break}return r.abrupt("return",this.createError({message:c.errors,path:"media part"}));case 31:return r.abrupt("break",49);case 32:return r.next=34,Me(e,a,u,s);case 34:if(!((c=r.sent)&&c.errors&&c.errors.length)){r.next=39;break}return r.abrupt("return",this.createError({message:c.errors,path:"media part"}));case 39:return r.abrupt("break",49);case 40:return r.next=42,Ge(e,i,u,s);case 42:if(!((c=r.sent)&&c.errors&&c.errors.length)){r.next=47;break}return r.abrupt("return",this.createError({message:c.errors,path:"media part"}));case 47:case 48:return r.abrupt("break",49);case 49:u++,r.next=1;break;case 52:return r.abrupt("return",!0);case 53:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}()}},De=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Corpus text part > </strong>"),i=L.Ry().shape({corpus_media_type:L.Z_().notRequired().default(null).nullable().label("corpus media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),text_type:L.IX().of(L.Ry().nullable().default(null).shape(Ne(l))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_type.label)),annotation:L.IX().of(L.Ry().nullable().default(null).shape(We(l,t.annotation.child.children))).label("".concat(l," ").concat(t.annotation.label)).notRequired()}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Ke=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Corpus audio part > </strong>"),i=L.Ry().shape({corpus_media_type:L.Z_().notRequired().default(null).nullable().label("corpus media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),audio_genre:L.IX().of(L.Ry().nullable().default(null).shape(Ue(l))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.audio_genre.label)),speech_genre:L.IX().of(L.Ry().nullable().default(null).shape(Se(l))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.speech_genre.label)),number_of_participants:L.Rx().notRequired().nullable().default(null).max(t.number_of_participants.max_value).min(t.number_of_participants.min_value).label(t.number_of_participants.label),dialect_accent_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.dialect_accent_of_participants.label),t.dialect_accent_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.dialect_accent_of_participants.label)),geographic_distribution_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.geographic_distribution_of_participants.label),t.geographic_distribution_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.geographic_distribution_of_participants.label)),annotation:L.IX().of(L.Ry().nullable().default(null).shape(We(l,t.annotation.child.children))).label("".concat(l," ").concat(t.annotation.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),He=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Corpus text numerical part > </strong>"),i=L.Ry().shape({corpus_media_type:L.Z_().notRequired().default(null).nullable().label("corpus media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),type_of_text_numerical_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_text_numerical_content.label,t.type_of_text_numerical_content.max_length)).label(l+t.type_of_text_numerical_content.label),number_of_participants:L.Rx().notRequired().nullable().default(null).max(t.number_of_participants.max_value).min(t.number_of_participants.min_value).label(t.number_of_participants.label),dialect_accent_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.dialect_accent_of_participants.label),t.dialect_accent_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.dialect_accent_of_participants.label)),geographic_distribution_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.geographic_distribution_of_participants.label),t.geographic_distribution_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.geographic_distribution_of_participants.label)),annotation:L.IX().of(L.Ry().nullable().default(null).shape(We(l,t.annotation.child.children))).label("".concat(l," ").concat(t.annotation.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Me=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Corpus video part > </strong>"),i=L.Ry().shape({corpus_media_type:L.Z_().notRequired().default(null).nullable().label("corpus media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),type_of_video_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_video_content.label,t.type_of_video_content.max_length)).label(l+t.type_of_video_content.label),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),video_genre:L.IX().of(L.Ry().nullable().default(null).shape(Pe(l))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.video_genre.label)),number_of_participants:L.Rx().notRequired().nullable().default(null).max(t.number_of_participants.max_value).min(t.number_of_participants.min_value).label(t.number_of_participants.label),dialect_accent_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.dialect_accent_of_participants.label),t.dialect_accent_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.dialect_accent_of_participants.label)),geographic_distribution_of_participants:L.IX().of((0,J.qJ)("".concat(l," ").concat(t.geographic_distribution_of_participants.label),t.geographic_distribution_of_participants.max_length).notRequired().nullable().default(null)).nullable().default(null).notRequired().label("".concat(l," ").concat(t.geographic_distribution_of_participants.label)),annotation:L.IX().of(L.Ry().nullable().default(null).shape(We(l,t.annotation.child.children))).label("".concat(l," ").concat(t.annotation.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Ge=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Corpus image part > </strong>"),i=L.Ry().shape({corpus_media_type:L.Z_().notRequired().default(null).nullable().label("corpus media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),type_of_image_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_image_content.label,t.type_of_image_content.max_length)).label(l+t.type_of_image_content.label),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),image_genre:L.IX().of(L.Ry().nullable().default(null).shape(Ae(l))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.image_genre.label)),annotation:L.IX().of(L.Ry().nullable().default(null).shape(We(l,t.annotation.child.children))).label("".concat(l," ").concat(t.annotation.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((func
1tion(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),We=function(e,l){return{annotation_type:L.IX().notRequired().nullable().default(null).of(L.Z_().nullable().default(null).label(e+l.annotation_type.label)).label(e+l.annotation_type.label),annotated_element:L.IX().notRequired().nullable().default(null).of(L.Z_().nullable().default(null).label(e+l.annotated_element.label)).label(e+l.annotated_element.label),segmentation_level:L.IX().notRequired().nullable().default(null).of(L.Z_().nullable().default(null).label(e+l.segmentation_level.label)).label(e+l.segmentation_level.label),annotation_standoff:L.O7().notRequired().nullable().default(null).label(e+l.segmentation_level.label).label(e+l.annotation_standoff.label),guidelines:L.IX().of(L.Ry().required((0,J.NO)(e+l.guidelines.label)).shape(Qe(e+l.guidelines.label))).nullable().default(null).notRequired().label(e+l.guidelines.label),theoretic_model:(0,J.qJ)("".concat(e," ").concat(l.theoretic_model.label),200).notRequired().nullable().default(null),annotation_mode:L.Z_().nullable().default(null).notRequired().label(e+l.annotation_mode.label),annotation_mode_details:(0,J.qJ)("".concat(e," ").concat(l.annotation_mode_details.label),1e3).notRequired().nullable().default(null),is_annotated_by:L.IX().of(L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.is_annotated_by.label)))).nullable().default(null).notRequired().label(e+l.is_annotated_by.label),typesystem:L.IX().of(L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.typesystem.label)))).nullable().default(null).notRequired().label(e+l.typesystem.label),annotation_resource:L.IX().of(L.Ry().notRequired().nullable().default(null).shape(Xe("".concat(e," ").concat(l.annotation_resource.label)))).nullable().default(null).notRequired().label(e+l.annotation_resource.label),annotator:L.IX().of(L.Ry().required((0,J.NO)(e+l.annotator.label)).shape(ze(e+l.annotator.label)).default(null).nullable()).label(e+l.annotator.label).notRequired().nullable().default(null),interannotator_agreement:(0,J.qJ)("".concat(e," ").concat(l.interannotator_agreement.label),300).notRequired().nullable().default(null),intraannotator_agreement:(0,J.qJ)("".concat(e," ").concat(l.intraannotator_agreement.label),300).notRequired().nullable().default(null),annotation_report:L.IX().of(L.Ry().required((0,J.NO)(e+l.annotation_report.label)).shape(Qe(e+l.annotation_report.label))).nullable().default(null).notRequired().label(e+l.annotation_report.label),annotation_start_date:L.hT().label(e+l.annotation_start_date.label).notRequired().nullable().default(null),annotation_end_date:L.hT().min(L.iH("annotation_start_date"),"The annotation end date could not be before the corresponding start date ").label(e+l.annotation_end_date.labael).notRequired().nullable().default(null)}},Ye=function(e,l){return{amount:L.Rx().notRequired().default(null).nullable().min(0).label(e+l.amount.label),size_unit:L.Z_().notRequired().default(null).nullable().label(e+l.size_unit.label)}},$e=M.Z,el=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},ll=function(e,l,t,a){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape(ke(el(A.fb[0],A.pl[0])+"Source of metadata record")).label(el(A.fb[0],A.pl[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(el(A.fb[0],A.pl[0])+$e.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(el(A.fb[0],A.pl[0])+"Language Resource identifier value").required((0,J.NO)(el(A.fb[0],A.pl[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(el(A.fb[0],A.pl[0])+$e.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(el(A.fb[0],A.pl[0])+$e.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(el(A.fb[0],A.pl[0])+"".concat($e.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.qJ)(el(A.fb[0],A.pl[0])+"".concat($e.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(el(A.fb[0],A.pl[0])+"".concat($e.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(el(A.fb[0],A.pl[0])+$e.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_provider",l.resource_provider).label)).shape(ze(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_creator",l.resource_creator).label)).shape(ze(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(el(A.fb[0],A.pl[0])+$e.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(el(A.fb[0],A.pl[0])+$e.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("funding_project",l.funding_project).label)).shape(Ce(el(A.fb[0],A.pl[0])+$e.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(el(A.fb[0],A.pl[0])+$e.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(el(A.fb[0],A.pl[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),creation_start_date:L.hT().label(el(A.fb[0],A.pl[0])+$e.getFormElement("creation_start_date",l.creation_start_date).label).notRequired().nullable().default(null),creation_end_date:L.hT().min(L.iH("creation_start_date"),"The Language resource creation start date could not be before the creation start date "+e.described_entity.creation_start_date).label(el(A.fb[0],A.pl[0])+$e.getFormElement("creation_end_date",l.creation_end_date).label).notRequired().nullable().default(null),creation_mode:L.Z_().label(el(A.fb[0],A.pl[0])+$e.getFormElement("creation_mode",l.creation_mode).label).notRequired().nullable().default(null),creation_details:(0,J.qJ)(el(A.fb[0],A.pl[0])+$e.getFormElement("creation_details",l.creation_details).label,3e3).notRequired().nullable().default(null),original_source_description:(0,J.qJ)(el(A.fb[0],A.pl[0])+$e.getFormElement("original_source_description",l.original_source_description).label,500).notRequired().nullable().default(null),update_frequency:(0,J.qJ)(el(A.fb[0],A.pl[0])+$e.getFormElement("update_frequency",l.update_frequency).label,100).notRequired().nullable().default(null),revision:(0,J.qJ)(el(A.fb[0],A.pl[0])+$e.getFormElement("revision",l.revision).label,500).notRequired().nullable().default(null),is_created_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("is_created_by",l.is_created_by).label)).shape(Xe(el(A.fb[0],A.pl[0])+$e.getFormElement("is_created_by",l.is_created_by).label))).label(el(A.fb[0],A.pl[0])+$e.getFormElement("is_created_by",l.is_created_by).label).notRequired().nullable().default(null),has_original_source:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("has_original_source",l.has_original_source).label)).shape(Xe(el(A.fb[0],A.pl[0])+$e.getFormElement("has_original_source",l.has_original_source).label))).label(el(A.fb[0],A.pl[0])+$e.getFormElement("has_original_source",l.has_original_source).label).notRequired().nullable().default(null),ipr_holder:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[0])+$e.getFormElement("ipr_holder",l.ipr_holder).label)).shape(ze(el(A.fb[0],A.pl[0])+$e.getFormElement("ipr_holder",l.ipr_holder).label))).label(el(A.fb[0],A.pl[0])+$e.getFormElement("ipr_holder",l.ipr_holder).label).notRequired().nullable().default(null),intended_application:L.IX().of(L.Z_().label(el(A.fb[0],A.pl[1])+$e.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(el(A.fb[0],A.pl[1])+$e.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(el(A.fb[0],A.pl[1])+$e.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(el(A.fb[0],A.pl[1])+$e.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(el(A.fb[0],A.pl[1])+"Domain "+$e.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+$e.getFormElement("domain",l.domain).formElements.category_label.label)).required().default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(el(A.fb[0],A.pl[1])+"Domain classification scheme").required((0,J.NO)(el(A.fb[0],A.pl[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(el(A.fb[0],A.pl[1])+"domain i
1dentifier value").max(1e3).required((0,J.NO)(el(A.fb[0],A.pl[1])+"domain identifier value")).default(null).nullable()}).label(el(A.fb[0],A.pl[1])+"domain identifier").default(null).nullable()})).notRequired().label(el(A.fb[0],A.pl[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(el(A.fb[0],A.pl[1])+$e.getFormElement("keyword",l.keyword).label,100).required().default(null).nullable()).notRequired().label(el(A.fb[0],A.pl[1])+"".concat($e.getFormElement("keyword",l.keyword).label)).nullable().default(null),subject:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(el(A.fb[0],A.pl[1])+"Subject "+$e.getFormElement("subject",l.subject).formElements.category_label.label,150,(0,J.NO)("Subject "+$e.getFormElement("subject",l.subject).formElements.category_label.label)).required().default(null).nullable(),subject_identifier:L.Ry().default(null).nullable().notRequired().shape({subject_classification_scheme:L.Z_().label(el(A.fb[0],A.pl[1])+"Subject classification scheme").required((0,J.NO)(el(A.fb[0],A.pl[1])+"Subject classification scheme")).default(null).nullable(),value:L.Z_().label(el(A.fb[0],A.pl[1])+"Subject identifier value").max(1e3).required((0,J.NO)(el(A.fb[0],A.pl[1])+"Subject identifier value")).default(null).nullable()}).label(el(A.fb[0],A.pl[1])+"Subject").default(null).nullable()})).nullable().default(null).notRequired().label(el(A.fb[0],A.pl[1])+"Subject"),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(el(A.fb[0],A.pl[2])+$e.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!Oe(e))||this.createError({message:el(A.fb[0],A.pl[2])+$e.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(el(A.fb[0],A.pl[2])+$e.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).notRequired().label(el(A.fb[0],A.pl[2])+"".concat($e.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:el(A.fb[0],A.pl[2])+"".concat($e.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[2])+$e.getFormElement("contact",l.contact).label)).shape(ze(el(A.fb[0],A.pl[2])+$e.getFormElement("contact",l.contact).label)).default(null).nullable()).label(el(A.fb[0],A.pl[2])+$e.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),mailing_list_name:L.IX().of(L.Z_().label(el(A.fb[0],A.pl[2])+$e.getFormElement("mailing_list_name",l.mailing_list_name).label).max(100).default(null).nullable()).label(el(A.fb[0],A.pl[2])+$e.getFormElement("mailing_list_name",l.mailing_list_name).label).notRequired().nullable().default(null),discussion_url:L.IX().of(L.Z_().url().label(el(A.fb[0],A.pl[2])+$e.getFormElement("discussion_url",l.discussion_url).label).max(1e3).default(null).nullable()).label(el(A.fb[0],A.pl[2])+$e.getFormElement("discussion_url",l.discussion_url).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[3])+$e.getFormElement("is_documented_by",l.is_documented_by).label)).shape(Qe(el(A.fb[0],A.pl[3])+$e.getFormElement("is_documented_by",l.is_documented_by).label))).label(el(A.fb[0],A.pl[3])+$e.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[3])+$e.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape(Qe(el(A.fb[0],A.pl[3])+$e.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(el(A.fb[0],A.pl[3])+$e.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),is_described_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[3])+$e.getFormElement("is_described_by",l.is_described_by).label)).shape(Qe(el(A.fb[0],A.pl[3])+$e.getFormElement("is_described_by",l.is_described_by).label))).label(el(A.fb[0],A.pl[3])+$e.getFormElement("is_described_by",l.is_described_by).label).notRequired().nullable().default(null),support_type:L.Z_().notRequired().nullable().default(null).label(el(A.fb[0],A.pl[3])+"support type"),relation:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(el(A.fb[0],A.pl[4])+$e.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.qJ)(el(A.fb[0],A.pl[4])+$e.getFormElement("relation",l.relation).formElements.relation_type.label,150).required().nullable().default(null)}).label(el(A.fb[0],A.pl[4])+$e.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_of",l.is_part_of).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_of",l.is_part_of).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_part_with:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_with",l.is_part_with).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_with",l.is_part_with).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_part_with",l.is_part_with).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(el(A.fb[0],A.pl[4])+(0,J.NO)($e.getFormElement("is_similar_to",l.is_similar_to).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_similar_to",l.is_similar_to).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(el(A.fb[0],A.pl[4])+(0,J.NO)($e.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),is_exact_match_with:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("is_exact_match_with",l.is_exact_match_with).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_exact_match_with",l.is_exact_match_with).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_exact_match_with",l.is_exact_match_with).label).notRequired().nullable().default(null),is_archived_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("is_archived_by",l.is_archived_by).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_archived_by",l.is_archived_by).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_archived_by",l.is_archived_by).label).notRequired().nullable().default(null),is_continuation_of:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("is_continuation_of",l.is_continuation_of).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_continuation_of",l.is_continuation_of).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("is_continuation_of",l.is_continuation_of).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[0],A.pl[4])+$e.getFormElement("replaces",l.replaces).label)).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("replaces",l.replaces).label))).label(el(A.fb[0],A.pl[4])+$e.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape(Xe(el(A.fb[0],A.pl[4])+$e.getFormElement("is_version_of",l.is_version_of).label)),validated:L.O7().notRequired().label($e.getFormElement("validated",l.validated).label).nullable(),actual_use:L.IX().of(L.Ry().required().shape({used_in_application:L.IX().of(L.Z_().label("used in application").required().default(null).nullable()).notRequired().label("used in application").nullable().default(null),has_outcome:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label)).shape(Xe($e.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label))).label($e.getFormElement("actual_use",l.actual_use).formElements.has_outcome.label).notRequired().nullable().default(null),usage_project:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("actual_use",l.actual_use).formElements.usage_project.label)).shape(Ce($e.getFormElement("actual_use",l.actual_use).formElements.usage_project.label)).default(null).nullable()).label($e.getFormElement("actual_use",l.actual_use).formElements.usage_project.label).notRequired().nullable().default(null),usage_report:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("actual_use",l.actual_use).formElements.usage_report.label)).shape(Qe($e.getFormElement("actual_use",l.actual_use).formElements.usage_report.label))).label($e.getFormElement("actual_use",l.actual_use).formElements.usage_report.label).notRequired().nullable().default(null),actual_use_details:(0,J.qJ)($e.getFormElement("actual_use",l.actual_use).formElements.actual_use_details.label,500).notRequired().nullable().default(null)})).notRequired().label($e.getFormElement("actual_use",l.actual_use).label).nullable().default(null),validation:L.IX().of(L.Ry().required().shape({validation_type:L.Z_().notRequired().default(null).nullable(),validation_mode:L.Z_().notRequired().default(null).nullable(),validation_details:(0,J.qJ)($e.getFormElement("validation",l.validation).formElements.validation_details.label,500).notRequired().nullable().default(null),validation_extent:L.Z_().notRequired().default(null).nullable(),is_validated_by:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("validation",l.validation).formElements.is_validated_by.label)).shape(Xe($e.getFormElement("validation",l.validation).formElements.is_validated_by.label)).default(null).nullable()).label($e.getFormElement("validation",l.validation).formElements.is_validated_by.label).notRequired().nullable().default(null),validation_report:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("validation",l.validation).formElements.validation_report.label)).shape(Qe($e.getFormElement("validation",l.validation).formElements.validation_report.label)).default(null).nullable()).label($e.getFormElement("validation",l.validation).formElements.validation_report.label).notRequired().nullable().default(null),validator:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("validation",l.validation).formElements.validator.label)).shape(ze($e.getFormElement("validation",l.validation).formElements.validator.label)).default(null).nullable()).label($e.getFormElement("validation",l.validation).formElements.validator.label).notRequired().nullable().default(null)})).notRequired().label($e.getFormElement("validation",l.validation).label).nullable().default(null),is_cited_by:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("is_cited_by",l.is_cited_by).label)).shape(Qe($e.getFormElement("is_cited_by",l.is_cited_by).label))).label($e.getFormElement("is_cited_by",l.is_cited_by).label).notRequired().nullable().default(null),is_reviewed_by:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("is_reviewed_by",l.is_reviewed_by).label)).shape(Qe($e.getFormElement("is_reviewed_by",l.is_reviewed_by).label)).default(null).nullable()).label($e.getFormElement("is_reviewed_by",l.is_reviewed_by).label).notRequired().nullable().default(null),lr_subclass:L.Ry().required().shape({function:L.IX().of(L.Z_().label(el(A.fb[1],A.P2[0])+$e.getFormElement("function",t.function).label).required().max(200).default(null).nullable()).label(el(A.fb[1],A.P2[0])+"".concat($e.getFormElement("function",t.function).label)).notRequired().default(null).nullable(),development_framework:L.Z_().notRequired().label(el(A.fb[1],A.P2[0])+$e.getFormElement("development_framework",t.development_framework).label).nullable().default(null),implementation_language:L.Z_().label($e.getFormElement("implementation_language",t.implementation_language).label).max(100).nullable().default(null),formalism:(0,J.qJ)($e.getFormElement("formalism",t.formalism).label,100).notRequired().nullable().default(null),method:L.Z_().notRequired().label($e.getFormElement("method",t.method).label).nullable().default(null),language_dependent:L.O7().notRequired().label(el(A.fb[1],A.P2[1])+$e.getFormElement("language_dependent",t.language_dependent).label).default(null).nullable(),required_hardware:L.IX().of(L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("required_hardware",t.required_hardware).label).required().default(null).nullable()).label(el(A.fb[1],A.P2[1])+$e.getFormElement("required_hardware",t.required_hardware).label).notRequired().nullable().default(null),running_environment_details:(0,J.qJ)(el(A.fb[1],A.P2[1])+$e.getFormElement("running_environment_details",t.running_environment_details).label,200).notRequired().nullable().default(null),requires_software:L.IX().of(L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("running_environment_details",t.running_environment_details).label).required().default(null).nullable()).label(el(A.fb[1],A.P2[1])+$e.getFormElement("running_environment_details",t.running_environment_details).label).notRequired().nullable().default(null),input_content_resource:L.IX().when("language_dependent",{is:!0,then:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("input_content_resource",t.input_content_resource).label)).shape(Be(el(A.fb[1],A.P2[1])+$e.getFormElement("input_content_resource",t.input_content_resource).label,t.input_content_resource.child.children))),otherwise:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("input_content_resource",t.input_content_resource).label)).shape(Be(el(A.fb[1],A.P2[1])+$e.getFormElement("input_content_resource",t.input_content_resource).label,t.input_content_resource.child.children)))}).notRequired().label(el(A.fb[1],A.P2[1])+"".concat($e.getFormElement("input_content_resource",t.input_content_resource).label)),output_resource:L.IX().when("language_dependent",{is:!0,then:L.IX().of(L.Ry().nullable().default(null).notRequired((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("output resource",t.output_resource).label)).shape(Be(el(A.fb[1],A.P2[1])+$e.getFormElement("output_resource",t.output_resource).label,t.output_resource.child.children))),otherwise:L.IX().of(L.Ry().nullable().default(null).notRequired((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("output resource",t.output_resource).label)).shape(Be(el(A.fb[1],A.P2[1])+$e.getFormElement("output_resource",t.output_resource).label,t.output_resource.child.children)))}).notRequired().label(el(A.fb[1],A.P2[1])+$e.getFormElement("output_resource",t.output_resource).label).nullable().default(null),requires_lr:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("requires_lr",t.requires_lr).label)).shape(Xe(el(A.fb[1],A.P2[1])+$e.getFormElement("requires_lr",t.requires_lr).label))).label(el(A.fb[1],A.P2[1])+$e.getFormElement("requires_lr",t.requires_lr).label).notRequired().nullable().default(null),typesystem:L.Ry().notRequired().nullable().default(null).shape(Xe(el(A.fb[1],A.P2[1])+$e.getFormElement("typesystem",t.typesystem).label)),annotation_schema:L.Ry().notRequired().nullable().default(null).shape(Xe(el(A.fb[1],A.P2[1])+$e.getFormElement("annotation_schema",t.annotation_schema).label)),annotation_resource:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("annotation_resource",t.annotation_resource).label)).shape(Xe(el(A.fb[1],A.P2[1])+$e.getFormElement("annotation_resource",t.annotation_resource).label))).label(el(A.fb[1],A.P2[1])+$e.getFormElement("annotation_resource",t.annotation_resource).label).notRequired().nullable().default(null),ml_model:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[1],A.P2[1])+$e.getFormElement("ml_model",t.ml_model).label)).shape(Xe(el(A.fb[1],A.P2[1])+$e.getFormElement("ml_model",t.ml_model).label))).label(el(A.fb[1],A.P2[1])+$e.getFormElement("ml_model",t.ml_model).label).notRequired().nullable().default(null),parameter:L.IX().of(L.Ry().shape({parameter_name:L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("parameter_name",t.parameter.child.children.parameter_name).label).notRequired().max(100).default(null).nullable(),parameter_label:(0,J.qJ)(el(A.fb[1],A.P2[1])+$e.getFormElement("parameter_label",t.parameter.child.children.parameter_label).label,100).notRequired().default(null).nullable(),parameter_description:(0,J.qJ)(el(A.fb[1],A.P2[1])+$e.getFormElement("parameter_description",t.parameter.child.children.parameter_description).label,100).notRequired().default(null).nullable(),parameter_type:L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("parameter_type",t.parameter.child.children.parameter_type).label).notRequired().default(null).nullable(),optional:L.O7().notRequired().label(el(A.fb[1],A.P2[1])+$e.getFormElement("optional",t.parameter.child.children.optional).label).default(null).nullable(),multi_value:L.O7().notRequired().label(el(A.fb[1],A.P2[1])+$e.getFormElement("multi_value",t.parameter.child.children.multi_value).label).default(null).nullable(),default_value:L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("default_value",t.parameter.child.children.default_value).label).notRequired().max(100).default(null).nullable(),data_format:L.IX().of(L.Z_().label(el(A.fb[1],A.P2[1])+"data format").notRequired().default(null).nullable()).label($e.getFormElement(el(A.fb[1],A.P2[1])+"data_format",t.parameter.child.children.data_format).label).notRequired().nullable().default(null),enumeration_value:L.IX().of(L.Ry().shape({value_name:L.Z_().label(el(A.fb[1],A.P2[1])+$e.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_name.label).notRequired().default(null).nullable(),value_label:(0,J.qJ)(el(A.fb[1],A.P2[1])+"".concat($e.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_label.label),150).default(null).nullable(),value_description:(0,J.qJ)(el(A.fb[1],A.P2[1])+"".concat($e.getFormElement("enumeration_value",t.parameter.child.children.enumeration_value.child).formElements.value_description.label),500).default(null).nullable()}).notRequired().nullable().default(null)).label($e.getFormElement(el(A.fb[1],A.P2[1])+"enumeration_value",t.parameter.child.children.enumeration_value).label).notRequired().nullable().default(null)}).notRequired().nullable().default(null)).label(el(A.fb[1],A.P2[1])+$e.getFormElement("parameter",t.parameter).label).notRequired().nullable().default(null),trl:L.Z_().notRequired().nullable().default(null).label(el(A.fb[1],A.P2[2])+"trl"),running_time:L.Z_().notRequired().max(100).nullable().default(null).label(el(A.fb[1],A.P2[1])+"running time"),softw
1are_distribution:L.IX().of(L.Ry().label(el(A.fb[2],A.dT[0])+$e.getFormElement("software_distribution",t.software_distribution).label).required().shape({software_distribution_form:L.Z_().notRequired().label(el(A.fb[2],A.dT[0])+$e.getFormElement("software_distribution_form",t.software_distribution.child.children.software_distribution_form).label).default(null).nullable(),operating_system:L.IX().nullable().default(null).notRequired().label(el(A.fb[2],A.dT[0])+$e.getFormElement("operating_system",t.software_distribution.child.children.operating_system).label).of(L.Z_().required().label(el(A.fb[2],A.dT[0])+$e.getFormElement("operating_system",t.software_distribution.child.children.operating_system).label).nullable().default(null)),membership_institution:L.IX().nullable().default(null).notRequired().label(el(A.fb[2],A.dT[0])+$e.getFormElement("membership_institution",t.software_distribution.child.children.membership_institution).label).of(L.Z_().required().label(el(A.fb[2],A.dT[0])+$e.getFormElement("membership_institution",t.software_distribution.child.children.membership_institution).label).nullable().default(null)),additional_hw_requirements:L.Z_().label(el(A.fb[2],A.dT[0])+"".concat($e.getFormElement("additional_hw_requirements",t.software_distribution.child.children.additional_hw_requirements).label)).max(500).notRequired().nullable().default(null),command:L.Z_().label("".concat($e.getFormElement("command",t.software_distribution.child.children.command).label)).max(500).notRequired().nullable().default(null),attribution_text:(0,J.qJ)(el(A.fb[2],A.dT[0])+$e.getFormElement("attribution_text",t.software_distribution.child.children.attribution_text).label).notRequired().nullable().default(null),copyright_statement:(0,J.qJ)(el(A.fb[2],A.dT[0])+$e.getFormElement("copyright_statement",t.s
1oftware_distribution.child.children.copyright_statement).label,200).notRequired().nullable().default(null),availability_start_date:L.hT().label(el(A.fb[2],A.dT[0])+$e.getFormElement("availability_start_date",t.software_distribution.child.children.availability_start_date).label).notRequired().nullable().default(null),availability_end_date:L.hT().min(L.iH("availability_start_date"),"The available end date of the software disstribution could not be before the corresponding start date ").label(el(A.fb[2],A.dT[0])+$e.getFormElement("availability_end_date",t.software_distribution.child.children.availability_end_date).label).notRequired().nullable().default(null),is_described_by:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[2],A.dT[0])+$e.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label)).shape(Qe(el(A.fb[2],A.dT[0])+$e.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label))).label(el(A.fb[2],A.dT[0])+$e.getFormElement("is_described_by",t.software_distribution.child.children.is_described_by).label).notRequired().nullable().default(null),licence_terms:L.IX().of(L.Ry().required(el(A.fb[2],A.dT[0])+(0,J.NO)($e.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label)).shape(Je(el(A.fb[2],A.dT[0])+$e.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label))).notRequired().label(el(A.fb[2],A.dT[0])+$e.getFormElement("licence_terms",t.software_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape(Le(el(A.fb[2],A.dT[0])+"Software distribution Cost")).nullable().default(null).label(el(A.fb[2],A.dT[0])+"Software distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(el(A.fb[2],A.dT[0])+"Access rights category label",150,(0,J.NO)(el(A.fb[2],A.dT[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(el(A.fb[2],A.dT[0])+"Access rights statement scheme").required((0,J.NO)(el(A.fb[2],A.dT[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(el(A.fb[2],A.dT[0])+"Access rights statement value").max(1e3).required((0,J.NO)(el(A.fb[2],A.dT[0])+"Access rights statement value")).default(null).nullable()}).label(el(A.fb[2],A.dT[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(el(A.fb[2],A.dT[0])+"Access rights").nullable().default(null),distribution_rights_holder:L.IX().of(L.Ry().required((0,J.NO)(el(A.fb[2],A.dT[0])+$e.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label)).shape(ze(el(A.fb[2],A.dT[0])+$e.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label))).label(el(A.fb[2],A.dT[0])+$e.getFormElement("distribution_rights_holder",t.software_distribution.child.children.distribution_rights_holder).label).notRequired().nullable().default(null)})).label(el(A.fb[2],A.dT[0])+"".concat($e.getFormElement("software_distribution",t.software_distribution).label)).notRequired().default(null).nullable(),evaluated:L.O7().notRequired().label($e.getFormElement("evaluated",t.evaluated).label).nullable().default(null),evaluation:L.IX().of(L.Ry().label($e.getFormElement("evaluation",t.evaluation).label).required().shape({evaluation_level:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label($e.getFormElement("evaluation_level",t.evaluation.child.children.evaluation_level).label),evaluation_type:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label($e.getFormElement("evaluation_type",t.evaluation.child.children.evaluation_type).label),evaluation_criterion:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label($e.getFormElement("evaluation_criterion",t.evaluation.child.children.evaluation_criterion).label),evaluation_measure:L.IX().of(L.Z_().required()).notRequired().nullable().default(null).label($e.getFormElement("evaluation_measure",t.evaluation.child.children.evaluation_measure).label),is_evaluated_by:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label)).shape(Xe($e.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label))).label($e.getFormElement("is_evaluated_by",t.evaluation.child.children.is_evaluated_by).label).notRequired().nullable().default(null),evaluation_report:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label)).shape(Qe($e.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label))).label($e.getFormElement("evaluation_report",t.evaluation.child.children.evaluation_report).label).notRequired().nullable().default(null),evaluation_details:(0,J.qJ)($e.getFormElement("evaluation_details",t.evaluation.child.children.evaluation_details).label,500).notRequired().nullable().default(null),evaluator:L.IX().of(L.Ry().required((0,J.NO)($e.getFormElement("evaluator",t.evaluation.child.children.evaluator).label)).shape(ze($e.getFormElement("evaluator",t.evaluation.child.children.evaluator).label))).label($e.getFormElement("evaluator",t.evaluation.child.children.evaluator).label).notRequired().nullable().default(null),gold_standard_location:L.Z_().url("".concat($e.getFormElement("gold_standard_location",t.evaluation.child.children.gold_standard_location).label," must be a valid URL")).max(1e3).label($e.getFormElement("gold_standard_location",t.evaluation.child.children.gold_standard_location).label).notRequired().nullable().default(null),performance_indicator:L.IX().of(L.Ry().shape({metric:L.Z_().label("".concat($e.getFormElement("performance_indicator",t.evaluation.child.children.performance_indicator.child.children.metric).label)).required().default(null).nullable(),measure:L.Rx().positive().min(0).required((0,J.NO)($e.getFormElement("measure",t.evaluation.child.children.performance_indicator.child.children.measure).label)).label($e.getFormElement("measure",t.evaluation.child.children.performance_indicator.child.children.measure).label).nullable(),unit_of_measure_metric:L.Z_().label($e.getFormElement("unit_of_measure_metric",t.evaluation.child.children.performance_indicator.child.children.unit_of_measure_metric).label).required().max(100).nullable().default(null)})).label($e.getFormElement("performance_indicator",t.evaluation.child.children.performance_indicator).label).notRequired().nullable().default(null)})).label($e.getFormElement("evaluation",t.evaluation).label).notRequired()})})}).validate(e,{abortEarly:!1})},tl=function(e,l,t,a){var n=function(e){return el(A.fb[2],A.dT[0]+"> Software Distribution ".concat(e+1))};return L.Ry().shape({described_entity:L.Ry().shape({lr_subclass:L.Ry().required().shape({software_distribution:L.IX().label(el(A.fb[2],A.dT[0])+$e.getFormElement("softw
1are_distribution",t.software_distribution).label).test({name:"docker_download_location",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=(t.software_distribution_form,t.docker_download_location),i=t.service_adapter_download_location;if(A.Kh,a&&(a.indexOf(":/")>=0||a.indexOf("//")>=0))return this.createError({message:n(l)+"> Docker download location ".concat(a," is not a valid image reference. The valid format is [host.name/]image/name:version , e.g. docker.io/username/image"),path:n});if(i&&(i.indexOf(":/")>=0||i.indexOf("//")>=0))return this.createError({message:n(l)+"> Service adapter location ".concat(i," is not a valid image reference. The valid format is [host.name/]image/name:version , e.g. docker.io/username/image"),path:n})}return!0}}).test({name:"one of download_location-access_location-execution_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l];t.software_distribution_form,t.download_location,t.access_location,t.execution_location;A.Hf}return!0}}).test({name:"one of access_location-execution_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l];t.software_distribution_form,t.access_location,t.execution_location;A.Oi}return!0}}).test({name:"one of access_location - download_location must be filled",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form;t.access_location,t.download_location;[A.Y3,A.wG,A.eE,A.PZ,A.Et,A.vF,A.$h].includes(a)}return!0}}).test({name:"execution location is required",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.software_distribution_form;t.execution_location;[A.Kh].includes(a)}return!0}}).test({name:"is url",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.execution_location,i=t.download_location,r=t.access_location,o=t.demo_location;if(a&&!Oe(a))return this.createError({message:n(l)+"> Execution location is not a valid url",path:n});if(i&&!Oe(i))return this.createError({message:n(l)+"> Download location is not a valid url",path:n});if(r&&!Oe(r))return this.createError({message:n(l)+"> Access location is not a valid url",path:n});if(o&&!Oe(o))return this.createError({message:n(l)+"> Demo location is not a valid url",path:n})}return!0}}).test({name:"web_service_type required",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l];t.software_distribution_form,t.web_service_type;A.Oi}return!0}}).test({name:"max length url",test:function(e){for(var l=0;e&&l<e.length;l++){var t=e[l],a=t.execution_location,i=t.download_location,r=t.docker_download_location,o=t.service_adapter_download_location,u=t.access_location,s=t.demo_location,d=1e3;if(a&&a.length>d)return this.createError({message:n(l)+"> Execution location must be at most ".concat(d," characters"),path:n});if(i&&i.length>d)return this.createError({message:n(l)+"> Download location must be at most ".concat(d," characters"),path:n});if(r&&r.length>d)return this.createError({message:n(l)+"> Docker download location must be at most ".concat(d," characters"),path:n});if(o&&o.length>d)return this.createError({message:n(l)+"> Service adapter download location must be at most ".concat(d," characters"),path:n});if(u&&u.length>d)return this.createError({message:n(l)+"> Access location must be at most ".concat(d," characters"),path:n});if(s&&s.length>d)return this.createError({message:n(l)+"> Demo location must be at most ".concat(d," characters"),path:n})}return!0}})})})}).validate(e,{abortEarly:!1})},al=M.Z,nl=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},il=function(e,l,t,a,n,i,r,o,u){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape(ke(nl(A.Ue[0],A.q0[0])+"Source of metadata record")).label(nl(A.Ue[0],A.q0[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(nl(A.Ue[0],A.q0[0])+al.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(nl(A.Ue[0],A.q0[0])+al.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(nl(A.Ue[0],A.q0[0])+"Language Resource identifier value").required((0,J.NO)(nl(A.Ue[0],A.q0[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(nl(A.Ue[0],A.q0[0])+al.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(nl(A.Ue[0],A.q0[0])+al.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(nl(A.Ue[0],A.q0[0])+"".concat(al.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.qJ)(nl(A.Ue[0],A.q0[0])+"".concat(al.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(nl(A.Ue[0],A.q0[0])+"".concat(al.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(nl(A.Ue[0],A.q0[0])+al.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_provider",l.resource_provider).label)).shape(ze(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_creator",l.resource_creator).label)).shape(ze(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(nl(A.Ue[0],A.q0[0])+al.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(nl(A.Ue[0],A.q0[0])+al.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[0])+al.getFormElement("funding_project",l.funding_project).label)).shape(Ce(nl(A.Ue[0],A.q0[0])+al.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(nl(A.Ue[0],A.q0[0])+al.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(nl(A.Ue[0],A.q0[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(nl(A.Ue[0],A.q0[
11])+al.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(nl(A.Ue[0],A.q0[1])+al.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(nl(A.Ue[0],A.q0[1])+al.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(nl(A.Ue[0],A.q0[1])+al.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(nl(A.Ue[0],A.q0[1])+"Domain "+al.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+al.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(nl(A.Ue[0],A.q0[1])+"Domain classification scheme").required((0,J.NO)(nl(A.Ue[0],A.q0[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(nl(A.Ue[0],A.q0[
11])+"domain identifier value").max(1e3).required((0,J.NO)(nl(A.Ue[0],A.q0[1])+"domain identifier value")).default(null).nullable()}).label(nl(A.Ue[0],A.q0[1])+"domain identifier").default(null).nullable()})).notRequired().label(nl(A.Ue[0],A.q0[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(nl(A.Ue[0],A.q0[1])+al.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).notRequired().label(nl(A.Ue[0],A.q0[1])+"".concat(al.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(nl(A.Ue[0],A.q0[2])+al.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!Oe(e))||this.createError({message:nl(A.Ue[0],A.q0[2])+al.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(nl(A.Ue[0],A.q0[2])+al.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).notRequired().label(nl(A.Ue[0],A.q0[2])+"".concat(al.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:nl(A.Ue[0],A.q0[2])+"".concat(al.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[2])+al.getFormElement("contact",l.contact).label)).shape(ze(nl(A.Ue[0],A.q0[2])+al.getFormElement("contact",l.contact).label)).default(null).nullable()).label(nl(A.Ue[0],A.q0[2])+al.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_documented_by",l.is_documented_by).label)).shape(Qe(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_documented_by",l.is_documented_by).label))).label(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape(Qe(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(nl(A.Ue[0],A.q0[3])+al.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[4])+al.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(nl(A.Ue[0],A.q0[4])+al.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.qJ)(nl(A.Ue[0],A.q0[4])+al.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(nl(A.Ue[0],A.q0[4])+al.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_part_of",l.is_part_of).label)).shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_part_of",l.is_part_of).label))).label(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(nl(A.Ue[0],A.q0[4])+(0,J.NO)(al.getFormElement("is_similar_to",l.is_similar_to).label)).shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_similar_to",l.is_similar_to).label))).label(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(nl(A.Ue[0],A.q0[4])+(0,J.NO)(al.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(nl(A.Ue[0],A.q0[4])+al.getFormElement("replaces",l.replaces).label)).shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("replaces",l.replaces).label))).label(nl(A.Ue[0],A.q0[4])+al.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape(Xe(nl(A.Ue[0],A.q0[4])+al.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({corpus_subclass:L.Z_().notRequired().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("corpus_subclass",t.corpus_subclass).label)).nullable().default(null),is_annotated_version_of:L.Ry().nullable().default(null).notRequired().label(nl(A.Ue[1],A.Vu[0])+al.getFormElement("is_annotated_version_of",t.is_annotated_version_of).label).shape(Xe(nl(A.Ue[1],A.Vu[0])+al.getFormElement("is_annotated_version_of",t.is_annotated_version_of).label)),personal_data_included:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(nl(A.Ue[1],A.Vu[0])+al.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(nl(A.Ue[1],A.Vu[0])+al.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(nl(A.Ue[1],A.Vu[0])+"".concat(al.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(nl(A.Ue[1],A.Vu[0])+al.getFormElement("anonymization_details",t.anonymization_details).label,500).notRequired().nullable().default(null),corpus_media_part:L.IX().notRequired().default(null).nullable().label(nl(A.Ue[2],A.Yd[0])+al.getFormElement("corpus_media_part",t.corpus_media_part).label).test(Ve(nl(A.Ue[2],A.Yd[0]),a,n,i,r,o)),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape(Te("".concat(nl(A.Ue[2],A.Yd[0])+al.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).notRequired().nullable().default(null).label("".concat(nl(A.Ue[2],A.Yd[0])+al.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(nl(A.Ue[2],A.Yd[0])+al.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(nl(A.Ue[2],A.Yd[0])+al.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(nl(A.Ue[2],A.Yd[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(nl(A.Ue[2],A.Yd[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(nl(A.Ue[2],A.Yd[0])+al.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("corpus_subclass",(function(e,l){return l.notRequired()})),dataset_distribution:L.IX().notRequired().default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),access_location:L.Z_().max(1e3).default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU,ne.wG,ne.vF,ne.r5,ne.b,ne.zs,ne.mD].includes(e),l.notRequired()})).test({name:"access_location valid url",test:function(e){return!(e&&!Oe(e))||this.createError({message:nl(A.Ue[3],A.gJ[0])+al.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location"],(function(l,t,a){return l!==ne.pZ||t||e&&e.management_object&&e.management_object.size,a.notRequired()})).test({name:"download_location valid url",test:function(e){return!(e&&!Oe(e))||this.createError({message:nl(A.Ue[3],A.gJ[0])+al.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(nl(A.Ue[3],A.gJ[0])+(0,J.NO)(al.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape(Je(nl(A.Ue[3],A.gJ[0])+al.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).notRequired().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape(Le(nl(A.Ue[3],A.gJ[0])+"Distribution Cost")).nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(nl(A.Ue[3],A.gJ[0])+"Access rights category label",150,(0,J.NO)(nl(A.Ue[3],A.gJ[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(nl(A.Ue[3],A.gJ[0])+"Access rights statement scheme").required((0,J.NO)(nl(A.Ue[3],A.gJ[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(nl(A.Ue[3],A.gJ[0])+"Access rights statement value").max(1e3).required((0,J.NO)(nl(A.Ue[3],A.gJ[0])+"Access rights statement value")).default(null).nullable()}).label(nl(A.Ue[3],A.gJ[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(nl(A.Ue[3],A.gJ[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().notRequired(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){if(e.described_entity.lr_subclass.corpus_media_part)for(var a=0;a<e.described_entity.lr_subclass.corpus_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.corpus_media_part[a].media_type)return t.notRequired()}return t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().notRequired(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){if(e.described_entity.lr_subclass.corpus_media_part)for(var a=0;a<e.described_entity.lr_subclass.corpus_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.corpus_media_part[a].media_type)return t.notRequired()}return t.notRequired()})),distribution_text_numerical_feature:L.IX().of(L.Ry().notRequired(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_text_numerical_feature",t.dataset_distribution.child.children.distribution_text_numerical_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_numerical_feature.child.children.data_format).label))})).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_text_numerical_feature",t.dataset_distribution.child.children.distribution_text_numerical_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){if(e.described_entity.lr_subclass.corpus_media_part)for(var a=0;a<e.described_entity.lr_subclass.corpus_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/textNumerical"===e.described_entity.lr_subclass.corpus_media_part[a].media_type)return t.notRequired()}return t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().notRequired(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){if(e.described_entity.lr_subclass.corpus_media_part)for(var a=0;a<e.described_entity.lr_subclass.corpus_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.corpus_media_part[a].media_type)return t.notRequired()}return t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().notRequired(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().notRequired().default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().notRequired().default(null).nullable().min(0).label(nl(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().notRequired().default(null).nullable().label(nl(A.Ue[3],A.gJ[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().notRequired().nullable().default(null).labe
1l(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("corpus_media_part",(function(l,t){if(e.described_entity.lr_subclass.corpus_media_part)for(var a=0;a<e.described_entity.lr_subclass.corpus_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.corpus_media_part[a].media_type)return t.notRequired()}return t.notRequired()})),distribution_unspecified_feature:L.Ry().label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(nl(A.Ue[3],A.gJ[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(nl(A.Ue[3],A.gJ[0])+al.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("corpus_subclass",(function(e,l){return l.notRequired()}))}))}).label("corpus subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},rl=function(e,l,t){return{name:"ld subclass validation",test:function(){var a=(0,u.Z)(m().mark((function a(n){var i,r;return m().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=n&&n.ld_subclass_type||"",r=null,a.t0=i,a.next="Grammar"===a.t0?5:"Model"===a.t0?13:21;break;case 5:return a.next=7,ol(e,l,n);case 7:if(!((r=a.sent)&&r.errors&&r.errors.length)){a.next=12;break}return a.abrupt("return",this.createError({message:r.errors,path:"Language description type"}));case 12:case 20:case 21:return a.abrupt("break",22);case 13:return a.next=15,ul(e,t,n);case 15:if(!((r=a.sent)&&r.errors&&r.errors.length)){a.next=20;break}return a.abrupt("return",this.createError({message:r.errors,path:"Language description type"}));case 22:return a.abrupt("return",!0);case 23:case"end":return a.stop()}}),a,this)})));return function(e){return a.apply(this,arguments)}}()}},ol=function(){var e=(0,u.Z)(m().mark((function e(l,t,a){var n,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Grammar > </strong>"),n=L.Ry().shape({encoding_level:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.encoding_level.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.encoding_level.label)),formalism:(0,J.qJ)("".concat(l," ").concat(t.formalism.label),t.formalism.max_length).notRequired().nullable().default(null),ld_task:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.ld_task.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.ld_task.label))}),e.next=4,n.validate(a,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a){return e.apply(this,arguments)}}(),ul=function(){var e=(0,u.Z)(m().mark((function e(l,t,a){var n,i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Model> </strong>"),n=l.replace("</strong>"," N-gram model> </strong>"),i=L.Ry().shape({model_function:L.IX().of(L.Z_().required().label("".concat(l," ").concat(t.model_function.label)).max(t.model_function.child.max_length)).notRequired().label("".concat(l," ").concat(t.model_function.label)).default(null).nullable(),model_type:L.IX().of(L.Z_().required().label("".concat(l," ").concat(t.model_type.label)).max(t.model_type.child.max_length)).notRequired().label("".concat(l," ").concat(t.model_type.label)).default(null).nullable(),model_variant:L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.model_variant.label)).max(t.model_variant.max_length),development_framework:L.Z_().notRequired().label("".concat(l," ").concat(t.development_framework.label)).nullable().default(null),training_corpus_details:(0,J.qJ)("".concat(l," ").concat(t.training_corpus_details.label),t.training_corpus_details.max_length).notRequired().nullable().default(null),training_process_details:(0,J.qJ)("".concat(l," ").concat(t.training_process_details.label),t.training_process_details.max_length).notRequired().nullable().default(null),bias_details:(0,J.qJ)("".concat(l," ").concat(t.bias_details.label),t.bias_details.max_length).notRequired().nullable().default(null),has_original_source:L.IX().notRequired().default(null).nullable().of(L.Ry().shape(Xe(l+t.has_original_source.label))).label(l+t.has_original_source.label),requires_lr:L.IX().notRequired().default(null).nullable().of(L.Ry().shape(Xe(l+t.requires_lr.label))).label(l+t.requires_lr.label),n_gram_model:L.Ry().shape({base_item:L.IX().of(L.Z_().required().label("".concat(n," ").concat(t.n_gram_model.children.base_item.label))).notRequired("".concat(n," ").concat(t.n_gram_model.children.base_item.label," is required")).label().default(null).nullable(),order:L.Rx().notRequired("".concat(n," ").concat(t.n_gram_model.children.order.label," is required")).min(0).nullable().default(null).label("".concat(n," ").concat(t.n_gram_model.children.order.label))}).label(l+t.n_gram_model.label).default(null).nullable().notRequired()}
1),e.next=5,i.validate(a,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(l,t,a){return e.apply(this,arguments)}}(),sl=function(e,l,t,a){return{name:"ld media type validation",test:function(){var n=(0,u.Z)(m().mark((function n(i){var r,o,u,s;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=0;case 1:if(!(i&&r<i.length)){n.next=36;break}o=i[r],u=o.media_type,s=null,n.t0=u,n.next="http://w3id.org/meta-share/meta-share/text"===n.t0?8:"http://w3id.org/meta-share/meta-share/video"===n.t0?16:"http://w3id.org/meta-share/meta-share/image"===n.t0?24:32;break;case 8:return n.next=10,dl(e,l,r,o);case 10:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=15;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 15:return n.abrupt("break",33);case 16:return n.next=18,cl(e,t,r,o);case 18:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=23;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 23:return n.abrupt("break",33);case 24:return n.next=26,_l(e,a,r,o);case 26:if(!((s=n.sent)&&s.errors&&s.errors.length)){n.next=31;break}return n.abrupt("return",this.createError({message:s.errors,path:"media part"}));case 31:case 32:return n.abrupt("break",33);case 33:r++,n.next=1;break;case 36:return n.abrupt("return",!0);case 37:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}()}},dl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Language description text part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null)}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),cl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Language description video part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),type_of_video_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_video_content.label,t.type_of_video_content.max_length)).label(l+t.type_of_video_content.label),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null)}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),_l=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce image part > </strong>"),i=L.Ry().shape({ld_media_type:L.Z_().notRequired().default(null).nullable().label("ld media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),type_of_image_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_image_content.label,t.type_of_image_content.max_length)).label(l+t.type_of_image_content.label)}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),bl=M.Z,ml=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},fl=function(e,l,t,a,n,i,r,o,u,s,d){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape(ke(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Source of metadata record")).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language Resource identifier value").required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(bl.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(bl.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"".concat(bl.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("version_date",l.version_date).label).notRequired().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_provider",l.resource_provider).label)).shape(ze(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_creator",l.resource_creator).label)).shape(ze(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("funding_project",l.funding_project).label)).shape(Ce(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+bl.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+bl.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+bl.getFormElement("intended_application",l.intended_application).label).nullable().default(null).when("lr_subclass",(function(e,l){return e.ld_subclass,A.hL,l.notRequired()})),complies_with:L.IX().of(L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+bl.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+bl.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain "+bl.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+bl.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain classification scheme").required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain i
1dentifier value").max(1e3).required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain identifier value")).default(null).nullable()}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"domain identifier").default(null).nullable()})).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+bl.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[1])+"".concat(bl.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(t){return!(t&&!Oe(t))||this.createError({message:ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+"".concat(bl.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(t){for(var a=0;t&&a<t.length;a++){var n=t[a],i=n.landing_page,r=n.email;if(!i&&!r)return this.createError({message:ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+"".concat(bl.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}),contact:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("contact",l.contact).label)).shape(ze(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("contact",l.contact).label)).default(null).nullable()).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[2])+bl.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_documented_by",l.is_documented_by).label)).shape(Qe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_documented_by",l.is_documented_by).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape(Qe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[3])+bl.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_part_of",l.is_part_of).label)).shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_part_of",l.is_part_of).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+(0,J.NO)(bl.getFormElement("is_similar_to",l.is_similar_to).label)).shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_similar_to",l.is_similar_to).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+(0,J.NO)(bl.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("replaces",l.replaces).label)).shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("replaces",l.replaces).label))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_ver
1sion_of:L.Ry().notRequired().nullable().default(null).shape(Xe(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[0],A.B6[4])+bl.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({language_description_subclass:L.Ry().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("language_description_subclass",t.language_description_subclass).label)).test(rl(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0]),u,s)),ld_subclass:L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("language_description_subclass",t.language_description_subclass).label)),personal_data_included:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+bl.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+bl.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+bl.getFormElement("anonymization_details",t.anonymization_details).label,1e3).notRequired().nullable().default(null),additional_hw_requirements:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[1],A.ZX[0])+"".concat(bl.getFormElement("additional_hw_requirements",t.additional_hw_requirements).label)).max(500).notRequired().nullable().default(null),language_description_media_part:L.IX().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("language_description_media_part",t.language_description_media_part).label).test(sl(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0]),a,i,o)).when("ld_subclass",(function(e,l){return A.hL,l.notRequired()})),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape(Te("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).notRequired().nullable().default(null).label("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[2],A.kU[0])+bl.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("ld_subclass",(function(e,l){return A.hL,l.notRequired()})),dataset_distribution:L.IX().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),access_location:L.Z_().max(1e3).default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU].includes(e),l.notRequired()})).test({name:"access_location valid url",test:function(l){return!(l&&!Oe(l))||this.createError({message:ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location"],(function(l,t,a){return l!==ne.pZ||t||e&&e.management_object&&e.management_object.size,a.notRequired()})).test({name:"download_location valid url",test:function(l){return!(l&&!Oe(l))||this.createError({message:ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+(0,J.NO)(bl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape(Je(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape(Le(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Distribution Cost")).nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights category label",150,(0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement scheme").required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement value").max(1e3).required((0,J.NO)(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement value")).default(null).nullable()}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().notRequired(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){if(e.described_entity.lr_subclass.language_description_media_part)for(var a=0;a<e.described_entity.lr_subclass.language_description_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.language_description_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().notRequired(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){if(e.described_entity.lr_subclass.language_description_media_part)for(var a=0;a<e.described_entity.lr_subclass.language_description_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.language_description_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().notRequired(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){if(e.described_entity.lr_subclass.language_description_media_part)for(var a=0;a<e.described_entity.lr_subclass.language_description_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.language_description_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().notRequired(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().n
1ullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().notRequired().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().notRequired().default(null).nullable().min(0).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().notRequired().default(null).nullable().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("language_description_media_part",(function(l,t){if(e.described_entity.lr_subclass.language_description_media_part)for(var a=0;a<e.described_entity.lr_subclass.language_description_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.language_description_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_unspecified_feature:L.Ry().label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(ml((0,A.CQ)(e.described_entity.lr_subclass.ld_subclass)[3],A.FH[0])+bl.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("ld_subclass",(function(e,l){return A.hL,l.notRequired()}))}))}).label("language description subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},pl=function(e,l,t,a,n){return{name:"lcr media type validation",test:function(){var i=(0,u.Z)(m().mark((function i(r){var o,u,s,d;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=0;case 1:if(!(r&&o<r.length)){i.next=44;break}u=r[o],s=u.media_type,d=null,i.t0=s,i.next="http://w3id.org/meta-share/meta-share/text"===i.t0?8:"http://w3id.org/meta-share/meta-share/audio"===i.t0?16:"http://w3id.org/meta-share/meta-share/video"===i.t0?24:"http://w3id.org/meta-share/meta-share/image"===i.t0?32:40;break;case 8:return i.next=10,hl(e,l,o,u);case 10:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=15;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 15:return i.abrupt("break",41);case 16:return i.next=18,gl(e,t,o,u);case 18:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=23;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 23:return i.abrupt("break",41);case 24:return i.next=26,yl(e,a,o,u);case 26:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=31;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 31:return i.abrupt("break",41);case 32:return i.next=34,vl(e,n,o,u);case 34:if(!((d=i.sent)&&d.errors&&d.errors.length)){i.next=39;break}return i.abrupt("return",this.createError({message:d.errors,path:"media part"}));case 39:case 40:return i.abrupt("break",41);case 41:o++,i.next=1;break;case 44:return i.abrupt("return",!0);case 45:case"end":return i.stop()}}),i,this)})));return function(e){return i.apply(this,arguments)}}()}},hl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce text part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),gl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce audio part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),speech_item:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.speech_item.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.speech_item.label)),non_speech_item:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.non_speech_item.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.non_speech_item.label)),legend:(0,J.qJ)("".concat(l," ").concat(t.legend.label),t.legend.max_length).notRequired().nullable().default(null),noise_level:L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.noise_level.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),yl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce video part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),type_of_video_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_video_content.label,t.type_of_video_content.max_length)).label(l+t.type_of_video_content.label),text_included_in_video:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_video.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_video.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),vl=function(){var e=(0,u.Z)(m().mark((function e(l,t,a,n){var i,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=l.replace("</strong>","Lexical conceptual resouce image part > </strong>"),i=L.Ry().shape({lcr_media_type:L.Z_().notRequired().default(null).nullable().label("lcr media type"),media_type:L.Z_().notRequired().default(null).nullable().label("media type"),multilinguality_type:L.Z_().default(null).nullable().label(l+t.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(l," ").concat(t.multilinguality_type_details.label),t.multilinguality_type_details.max_length).notRequired().nullable().default(null),language:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.language.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(l," ").concat(t.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.metalanguage.label)),modality_type:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.modality_type.label)),type_of_image_content:L.IX().notRequired().nullable().default(null).of((0,J.FF)(l+t.type_of_image_content.label,t.type_of_image_content.max_length)).label(l+t.type_of_image_content.label),text_included_in_image:L.IX().of(L.Z_().notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_image.label))).notRequired().nullable().default(null).label("".concat(l," ").concat(t.text_included_in_image.label))}),e.next=4,i.validate(n,{abortEarly:!1}).then((function(e){return!0})).catch((function(e){return e}));case 4:return r=e.sent,e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(l,t,a,n){return e.apply(this,arguments)}}(),Rl=M.Z,ql=function(e,l){return'<strong style="color: black">  '.concat(e," >  ").concat(l," >  </strong> ")},El=function(e,l,t,a,n,i,r,o,u){return L.Ry().shape({source_of_metadata_record:L.Ry().notRequired().nullable().default(null).shape(ke(ql(A.vR[0],A.KR[0])+"Source of metadata record")).label(ql(A.vR[0],A.KR[0])+"Source of metadata record"),described_entity:L.Ry().shape({entity_type:L.Z_().label("Entity type").notRequired().max(1e3).default(null).nullable(),lr_identifier:L.IX().of(L.Ry().shape({lr_identifier_scheme:L.Z_().label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label).required((0,J.NO)(ql(A.vR[0],A.KR[0])+Rl.getFormElement("lr_identifier",l.lr_identifier).formElements.lr_identifier_scheme.label)).default(null).nullable(),value:L.Z_().label(ql(A.vR[0],A.KR[0])+"Language Resource identifier value").required((0,J.NO)(ql(A.vR[0],A.KR[0])+"Language Resource identifier value")).max(1e3).default(null).nullable()}).label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("lr_identifier",l.lr_identifier).label).default(null).nullable()).notRequired().label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("lr_identifier",l.lr_identifier).label).nullable().default(null),resource_name:(0,J.FF)(ql(A.vR[0],A.KR[0])+"".concat(Rl.getFormElement("resource_name",l.resource_name).label),1e3).default(null).nullable(),resource_short_name:(0,J.qJ)(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_short_name",l.resource_short_name).label,300).notRequired().nullable().default(null),description:(0,J.qJ)(ql(A.vR[0],A.KR[0])+"".concat(Rl.getFormElement("description",l.description).label),1e4).default(null).nullable(),version:L.Z_().label(ql(A.vR[0],A.KR[0])+"".concat(Rl.getFormElement("version",l.version).label)).notRequired().max(50).nullable().default(null),version_date:L.hT().label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("version_date",l.version_date).label).notRequi
1red().nullable().default(null),resource_provider:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_provider",l.resource_provider).label)).shape(ze(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_provider",l.resource_provider).label)).default(null).nullable()).label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_provider",l.resource_provider).label).notRequired().nullable().default(null),resource_creator:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_creator",l.resource_creator).label)).shape(ze(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_creator",l.resource_creator).label)).default(null).nullable()).label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("resource_creator",l.resource_creator).label).notRequired().nullable().default(null),publication_date:L.hT().label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("publication_date",l.publication_date).label).notRequired().nullable().default(null),funding_project:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[0])+Rl.getFormElement("funding_project",l.funding_project).label)).shape(Ce(ql(A.vR[0],A.KR[0])+Rl.getFormElement("funding_project",l.funding_project).label)).default(null).nullable()).label(ql(A.vR[0],A.KR[0])+Rl.getFormElement("funding_project",l.funding_project).label).notRequired().nullable().default(null),logo:L.Z_().label("").url(ql(A.vR[0],A.KR[0])+"Language resource logo must be a valid URL").nullable().default(null).notRequired(),intended_application:L.IX().of(L.Z_().label(ql(A.vR[0],A.KR[1])+Rl.getFormElement("intended_application",l.intended_application).label).notRequired().max(200).default(null).nullable()).label(ql(A.vR[0],A.KR[1])+Rl.getFormElement("intended_application",l.intended_application).label).notRequired().nullable().default(null),complies_with:L.IX().of(L.Z_().label(ql(A.vR[0],A.KR[1])+Rl.getFormElement("complies_with",l.complies_with).label).notRequired().default(null).nullable()).label(ql(A.vR[0],A.KR[1])+Rl.getFormElement("complies_with",l.complies_with).label).nullable().default(null).notRequired(),domain:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(ql(A.vR[0],A.KR[1])+"Domain "+Rl.getFormElement("domain",l.domain).formElements.category_label.label,150,(0,J.NO)("Domain "+Rl.getFormElement("domain",l.domain).formElements.category_label.label)).default(null).nullable(),domain_identifier:L.Ry().default(null).nullable().notRequired().shape({domain_classification_scheme:L.Z_().label(ql(A.vR[0],A.KR[1])+"Domain classification scheme").required((0,J.NO)(ql(A.vR[0],A.KR[1])+"Domain classification scheme")).default(null).nullable(),value:L.Z_().label(ql(A.vR[0],A.KR[1])+"domain identifier value").max(1e3).required((0,J.NO)(ql(A.vR[0],A.KR[1])+"domain identifier value")).default(null).nullable()}).label(ql(A.vR[0],A.KR[1])+"domain identifier").default(null).nullable()})).notRequired().label(ql(A.vR[0],A.KR[1])+"Domain").nullable().default(null),keyword:L.IX().of((0,J.FF)(ql(A.vR[0],A.KR[1])+Rl.getFormElement("keyword",l.keyword).label,100).default(null).nullable()).notRequired().label(ql(A.vR[0],A.KR[1])+"".concat(Rl.getFormElement("keyword",l.keyword).label)).nullable().default(null),additional_info:L.IX().of(L.Ry().shape({landing_page:L.Z_().max(1e3).label(ql(A.vR[0],A.KR[2])+Rl.getFormElement("additional_info",l.additional_info).label+" website").default(null).nullable().test({name:"landing_page url",test:function(e){return!(e&&!Oe(e))||this.createError({message:ql(A.vR[0],A.KR[2])+Rl.getFormElement("additional_info",l.additional_info).label+" must be a valid URL",path:""})}}),email:L.Z_().email().max(254).label(ql(A.vR[0],A.KR[2])+Rl.getFormElement("additional_info",l.additional_info).label+" email").default(null).nullable()})).notRequired().label(ql(A.vR[0],A.KR[2])+"".concat(Rl.getFormElement("additional_info",l.additional_info).label)).default(null).nullable().test({name:"validate existance of at least one entry",test:function(e){for(var t=0;e&&t<e.length;t++){var a=e[t],n=a.landing_page,i=a.email;if(!n&&!i)return this.createError({message:ql(A.vR[0],A.KR[2])+"".concat(Rl.getFormElement("additional_info",l.additional_info).label," landing page or email must be filled"),path:""})}return!0}}
1),contact:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[2])+Rl.getFormElement("contact",l.contact).label)).shape(ze(ql(A.vR[0],A.KR[2])+Rl.getFormElement("contact",l.contact).label)).default(null).nullable()).label(ql(A.vR[0],A.KR[2])+Rl.getFormElement("contact",l.contact).label).notRequired().nullable().default(null),is_documented_by:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_documented_by",l.is_documented_by).label)).shape(Qe(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_documented_by",l.is_documented_by).label))).label(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_documented_by",l.is_documented_by).label).notRequired().nullable().default(null),is_to_be_cited_by:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_to_be_cited_by",l.is_documented_by).label)).shape(Qe(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label))).label(ql(A.vR[0],A.KR[3])+Rl.getFormElement("is_to_be_cited_by",l.is_to_be_cited_by).label).notRequired().nullable().default(null),relation:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[4])+Rl.getFormElement("relation",l.relation).label)).shape({related_lr:L.Ry().nullable().default(null).required(ql(A.vR[0],A.KR[4])+Rl.getFormElement("relation",l.relation).formElements.related_lr.label+" required").shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("relation",l.relation).formElements.related_lr.label)),relation_type:(0,J.qJ)(ql(A.vR[0],A.KR[4])+Rl.getFormElement("relation",l.relation).formElements.relation_type.label,150).nullable().default(null)}).label(ql(A.vR[0],A.KR[4])+Rl.getFormElement("relation",l.relation).label).notRequired().nullable().default(null)).nullable().default(null),is_part_of:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_part_of",l.is_part_of).label)).shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_part_of",l.is_part_of).label))).label(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_part_of",l.is_part_of).label).notRequired().nullable().default(null),is_similar_to:L.IX().of(L.Ry().required(ql(A.vR[0],A.KR[4])+(0,J.NO)(Rl.getFormElement("is_similar_to",l.is_similar_to).label)).shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_similar_to",l.is_similar_to).label))).label(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_similar_to",l.is_similar_to).label).notRequired().nullable().default(null),is_related_to_lr:L.IX().of(L.Ry().required(ql(A.vR[0],A.KR[4])+(0,J.NO)(Rl.getFormElement("is_related_to_lr",l.is_related_to_lr).label)).shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_related_to_lr",l.is_related_to_lr).label))).label(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_related_to_lr",l.is_related_to_lr).label).notRequired().nullable().default(null),replaces:L.IX().of(L.Ry().required((0,J.NO)(ql(A.vR[0],A.KR[4])+Rl.getFormElement("replaces",l.replaces).label)).shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("replaces",l.replaces).label))).label(ql(A.vR[0],A.KR[4])+Rl.getFormElement("replaces",l.replaces).label).notRequired().nullable().default(null),is_version_of:L.Ry().notRequired().nullable().default(null).shape(Xe(ql(A.vR[0],A.KR[4])+Rl.getFormElement("is_version_of",l.is_version_of).label)),lr_subclass:L.Ry().shape({encoding_level:L.IX().of(L.Z_().label(ql(A.vR[1],A.p_[0])+Rl.getFormElement("encoding_level",t.encoding_level).label).required().default(null).nullable()).label(ql(A.vR[1],A.p_[0])+Rl.getFormElement("encoding_level",t.encoding_level).label).notRequired().nullable().default(null),lcr_subclass:L.Z_().notRequired().nullable().default(null).label(A.vR[1],A.p_[0]+"LCR subclass"),content_type:L.IX().of(L.Z_().label(ql(A.vR[1],A.p_[0])+Rl.getFormElement("content_type",t.content_type).label).notRequired().default(null).nullable()).label(ql(A.vR[1],A.p_[0])+Rl.getFormElement("content_type",t.content_type).label).notRequired().nullable().default(null),personal_data_included:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[1],A.p_[0])+"".concat(Rl.getFormElement("personal_data_included",t.personal_data_included).label)),personal_data_details:(0,J.qJ)(ql(A.vR[1],A.p_[0])+Rl.getFormElement("personal_data_details",t.personal_data_details).label,500).notRequired().nullable().default(null),sensitive_data_included:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[1],A.p_[0])+"".concat(Rl.getFormElement("sensitive_data_included",t.sensitive_data_included).label)),sensitive_data_details:(0,J.qJ)(ql(A.vR[1],A.p_[0])+Rl.getFormElement("sensitive_data_details",t.sensitive_data_details).label,500).notRequired().nullable().default(null),anonymized:L.Z_().when(["personal_data_included","sensitive_data_included"],{is:function(e,l){return"http://w3id.org/meta-share/meta-share/yesP"===e||"http://w3id.org/meta-share/meta-share/yesS"===l},then:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[1],A.p_[0])+"".concat(Rl.getFormElement("anonymized",t.anonymized).label)),otherwise:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[1],A.p_[0])+"".concat(Rl.getFormElement("anonymized",t.anonymized).label))}).notRequired().default(null).nullable().label(ql(A.vR[1],A.p_[0])+"".concat(Rl.getFormElement("anonymized",t.anonymized).label)),anonymization_details:(0,J.qJ)(ql(A.vR[1],A.p_[0])+Rl.getFormElement("anonymization_details",t.anonymization_details).label,500).notRequired().nullable().default(null),lexical_conceptual_resource_media_part:L.IX().notRequired().default(null).nullable().label(ql(A.vR[2],A.O1[0])+Rl.getFormElement("lexical_conceptual_resource_media_part",t.lexical_conceptual_resource_media_part).label).test(pl(ql(A.vR[2],A.O1[0]),a,n,i,o)),unspecified_part:L.Ry().shape({language:L.IX().of(L.Ry().shape(Te("".concat(ql(A.vR[2],A.O1[0])+Rl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)))).notRequired().nullable().default(null).label("".concat(ql(A.vR[2],A.O1[0])+Rl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.language.label)),metalanguage:L.IX().of(L.Ry().shape(Te("".concat(ql(A.vR[2],A.O1[0])+Rl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)))).notRequired().nullable().default(null).label("".concat(ql(A.vR[2],A.O1[0])+Rl.getFormElement("unspecified_part",t.unspecified_part).label," ").concat(t.unspecified_part.children.metalanguage.label)),multilinguality_type:L.Z_().default(null).nullable().label("".concat(ql(A.vR[2],A.O1[0]))+t.unspecified_part.children.multilinguality_type.label).when("language",(function(e,l){return e&&e.length,l.notRequired()})),multilinguality_type_details:(0,J.qJ)("".concat(ql(A.vR[2],A.O1[0])," ").concat(t.unspecified_part.children.multilinguality_type_details.label),t.unspecified_part.children.multilinguality_type_details.max_length).notRequired().nullable().default(null)}).label(ql(A.vR[2],A.O1[0])+Rl.getFormElement("unspecified_part",t.unspecified_part).label).nullable().default(null).when("lcr_subclass",(function(e,l){return l.notRequired()})),dataset_distribution:L.IX().notRequired().default(null).nullable().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("dataset_distribution",t.dataset_distribution).label).of(L.Ry().required().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("dataset_distribution",t.dataset_distribution).label).shape({dataset_distribution_form:L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("dataset_distribution_form",t.dataset_distribution.child.children.dataset_distribution_form).label),access_location:L.Z_().max(1e3).default(null).nullable().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label).when(["dataset_distribution_form"],(function(e,l){return[ne.Sl,ne.fU].includes(e),l.notRequired()})).test({name:"access_location valid url",test:function(e){return!(e&&!Oe(e))||this.createError({message:ql(A.vR[3],A.le[0])+Rl.getFormElement("access_location",t.dataset_distribution.child.children.access_location).label+" must be a valid URL",path:""})}}),download_location:L.Z_().max(1e3).default(null).nullable().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label).when(["dataset_distribution_form","access_location"],(function(l,t,a){return l!==ne.pZ||t||e&&e.management_object&&e.management_object.size,a.notRequired()})).test({name:"download_location valid url",test:function(e){return!(e&&!Oe(e))||this.createError({message:ql(A.vR[3],A.le[0])+Rl.getFormElement("download_location",t.dataset_distribution.child.children.download_location).label+" must be a valid URL",path:""})}}),samples_location:L.IX().notRequired().default(null).nullable().of(L.Z_().url().max(1e3).default(null).nullable().notRequired().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label)).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("samples_location",t.dataset_distribution.child.children.samples_location).label),is_queried_by:L.IX().notRequired().default(null).nullable().of(L.Ry().required((0,J.NO)(ql(A.vR[3],A.le[0])+Rl.getFormElement("is_queried_by",Rl.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by)).label)).shape(Xe(ql(A.vR[3],A.le[0])+Rl.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by).label))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("is_queried_by",t.dataset_distribution.child.children.is_queried_by).label),membership_institution:L.IX().notRequired().default(null).nullable().of(L.Z_().default(null).nullable().notRequired().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label)).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("membership_institution",t.dataset_distribution.child.children.membership_institution).label),licence_terms:L.IX().of(L.Ry().required(ql(A.vR[3],A.le[0])+(0,J.NO)(Rl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label)).shape(Je(ql(A.vR[3],A.le[0])+Rl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label))).notRequired().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("licence_terms",t.dataset_distribution.child.children.licence_terms).label).nullable().default(null),cost:L.Ry().shape(Le(ql(A.vR[3],A.le[0])+"Distribution Cost")).nullable().default(null).label(ql(A.vR[3],A.le[0])+"Distribution Cost"),access_rights:L.IX().of(L.Ry().shape({category_label:(0,J.FF)(ql(A.vR[3],A.le[0])+"Access rights category label",150,(0,J.NO)(ql(A.vR[3],A.le[0])+"Access rights category label")).required().default(null).nullable(),access_rights_statement_identifier:L.Ry().default(null).nullable().notRequired().shape({access_rights_statement_scheme:L.Z_().label(ql(A.vR[3],A.le[0])+"Access rights statement scheme").required((0,J.NO)(ql(A.vR[3],A.le[0])+"Access rights statement scheme")).default(null).nullable(),value:L.Z_().label(ql(A.vR[3],A.le[0])+"Access rights statement value").max(1e3).required((0,J.NO)(ql(A.vR[3],A.le[0])+"Access rights statement value")).default(null).nullable()}).label(ql(A.vR[3],A.le[0])+"Access rights statement identifier").default(null).nullable()})).notRequired().label(ql(A.vR[3],A.le[0])+"Access rights").nullable().default(null),distribution_text_feature:L.IX().of(L.Ry().notRequired(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ql(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_text_feature.child.children.size.child.children))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("size",t.dataset_distribution.child.children.distribution_text_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_text_feature.child.children.data_format).label))})).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_text_feature",t.dataset_distribution.child.children.distribution_text_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var a=0;a<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/text"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_video_feature:L.IX().of(L.Ry().notRequired(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ql(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_video_feature.child.children.size.child.children))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("size",t.dataset_distribution.child.children.distribution_video_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_video_feature.child.children.data_format).label))})).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_video_feature",t.dataset_distribution.child.children.distribution_video_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var a=0;a<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/video"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_image_feature:L.IX().of(L.Ry().notRequired(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).shape({size:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ql(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_image_feature.child.children.size.child.children))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("size",t.dataset_distribution.child.children.distribution_image_feature.child.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_image_feature.child.children.data_format).label))})).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_image_feature",t.dataset_distribution.child.children.distribution_image_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var a=0;a<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/image"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_audio_feature:L.IX().of(L.Ry().notRequired(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).shape({siz
1e:L.IX().notRequired().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ql(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_audio_feature.child.children.size.child.children))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("size",t.dataset_distribution.child.children.distribution_audio_feature.child.children.size).label),audio_format:L.IX().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({data_format:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.data_format.label),byte_order:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.byte_order.label),compressed:L.O7().notRequired().default(null).nullable().label(ql(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format.child.children.compressed.label)}).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label)).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("audio_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.audio_format).label),duration_of_audio:L.IX().notRequired().nullable().default(null).notRequired().of(L.Ry().notRequired().nullable().default(null).shape({amount:L.Rx().notRequired().default(null).nullable().min(0).label(ql(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.amount.label),duration_unit:L.Z_().notRequired().default(null).nullable().label(ql(A.vR[3],A.le[0])+t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio.child.children.duration_unit.label)}).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label)).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("duration_of_audio",t.dataset_distribution.child.children.distribution_audio_feature.child.children.duration_of_audio).label),data_format:L.IX().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_audio_feature.child.children.data_format).label))})).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_audio_feature",t.dataset_distribution.child.children.distribution_audio_feature).label).nullable().default(null).when("lexical_conceptual_resource_media_part",(function(l,t){if(e.described_entity.lr_subclass.lexical_conceptual_resource_media_part)for(var a=0;a<e.described_entity.lr_subclass.lexical_conceptual_resource_media_part.length;a++){if("http://w3id.org/meta-share/meta-share/audio"===e.described_entity.lr_subclass.lexical_conceptual_resource_media_part[a].media_type)return t.notRequired()}t.notRequired()})),distribution_unspecified_feature:L.Ry().label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).shape({size:L.IX().nullable().default(null).of(L.Ry().notRequired().default(null).nullable().shape(Ye(ql(A.vR[3],A.le[0]),t.dataset_distribution.child.children.distribution_unspecified_feature.children.size.child.children))).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("size",t.dataset_distribution.child.children.distribution_unspecified_feature.children.size).label),data_format:L.IX().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label).of(L.Z_().notRequired().nullable().default(null).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("data_format",t.dataset_distribution.child.children.distribution_unspecified_feature.children.data_format).label))}).label(ql(A.vR[3],A.le[0])+Rl.getFormElement("distribution_unspecified_feature",t.dataset_distribution.child.children.distribution_unspecified_feature).label).nullable().default(null).when("lcr_subclass",(function(e,l){return l.notRequired()}))}))}).label("lexical conceptual resource subclass").required().default(null).nullable()})}).validate(e,{abortEarly:!1})},Fl=t(34882),xl=t(74700),Zl=t(46417),wl=function(e){(0,c.Z)(t,e);var l=(0,_.Z)(t);function t(e){var a;return(0,s.Z)(this,t),(a=l.call(this,e)).retrieveRecordData=(0,u.Z)(m().mark((function e(){var l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!a.props.model.hasOwnProperty("pk")){e.next=6;break}return l=h().get((0,Ze.iF)(a.props.model.pk)),e.abrupt("return",l);case 6:return e.abrupt("return",[]);case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),a.isUpdate=function(){return a.props.model.pk}
1,a.sendToBackend=function(){var e=a.props.model.pk;a.setState({deactivateButton:!0}),e?a.updateExistingRecord(e):a.uploadNewRecord()},a.uploadNewRecord=function(){var e=a.props.model;h().post(A.J_,e,{headers:{"UNDER-CONSTRUCTION":!0===a.props.under_construction,"FUNCTIONAL-SERVICE":!0===a.props.functional_service,"SERVICE-COMPLIANT-DATASET":!0===a.props.service_compliant_dataset}}).then((function(e){a.success("Record created successfully.",e,!0)})).catch((function(e){a.failure("Record creation failed.",e)}))},a.updateExistingRecord=function(e){var l=a.props.model;h().put((0,A.A0)(e),l,{headers:{"UNDER-CONSTRUCTION":!0===a.props.under_construction,"FUNCTIONAL-SERVICE":!0===a.props.functional_service,"SERVICE-COMPLIANT-DATASET":!0===a.props.service_compliant_dataset}}).then((function(e){a.success("Record updated successfully.",e,!0)})).catch((function(e){a.failure("Record update failed.",e)}))},a.success=function(e,l,t){var n=!1;if(l.data.management_object&&(n=!0===l.data.management_object.under_construction,a.props.tool_service&&a.props.handleFunctionalService(!0===l.data.management_object.functional_service)),a.setState({deactivateButton:!1,under_construction:n}),P.Am.success(e,{autoClose:3500}),a.disableDisplay(),a.props.set_backend_successful_response(l.data),t){var i=l.data.pk,r="";if("Project"===l.data.described_entity.entity_type)r="/project/".concat(i);else if("Organization"===l.data.described_entity.entity_type)r="/organization/".concat(i);else if("LanguageResource"===l.data.described_entity.entity_type&&l.data.described_entity.lr_subclass&&"ToolService"===l.data.described_entity.lr_subclass.lr_type)r="/tool-service/".concat(i);else if("LanguageResource"===l.data.described_entity.entity_type&&l.data.described_entity.lr_subclass&&"Corpus"===l.data.described_entity.lr_subclass.lr_type)r="/corpus/".concat(i);else if("LanguageResource"===l.data.described_entity.entity_type&&l.data.described_entity.lr_subclass&&"LexicalConceptualResource"===l.data.described_entity.lr_subclass.lr_type)r="/lcr/".concat(i);else{if("LanguageResource"!==l.data.described_entity.entity_type||!l.data.described_entity.lr_subclass||"LanguageDescription"!==l.data.described_entity.lr_subclass.lr_type)return;r="/ld/".concat(i)}a.props.history.push({pathname:r})}},a.duplicateName=function(e){if(!e.hasOwnProperty("duplication_error"))return null;var l=e.duplication_error,t=e.duplicate_records;if(l&&t){var a=[];return a.push("There is already a record with this name. Please enter a different name."),a}},a.versionError=function(e){if(e.hasOwnProperty("described_entity")&&e.described_entity.hasOwnProperty("version")){var l=e.described_entity.version.map((function(e){return e}));return l&&l.length>0&&["Version error. "+l[0]]}return null},a.accessibleThroughQueryFunctionalServiceError=function(e){try{var l=a.props.model;if("LanguageResource"===l.described_entity.entity_type&&"LexicalConceptualResource"===l.described_entity.lr_subclass.lr_type&&a.props.service_compliant_dataset){if(!(e.hasOwnProperty("described_entity")&&e.described_entity.hasOwnProperty("lr_subclass")&&e.described_entity.lr_subclass.hasOwnProperty("dataset_distribution")))return null;if(Array.isArray(e.described_entity.lr_subclass.dataset_distribution)&&e.described_entity.lr_subclass.dataset_distribution.length>0)return[e.described_entity.lr_subclass.dataset_distribution[0]]}}catch(t){return null}return null},a.glottologError=function(e){try{var l=e&&JSON.stringify(e)||"";if((l=l.toLocaleLowerCase()).indexOf("glottolog_code")>=0)return["Invalid value for Glottolog code. "]}catch(t){return null}return null},a.failure=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";a.setState({deactivateButton:!1}),P.Am.error(e,{autoClose:3500}),a.disableDisplay();try{if(l&&l.response&&l.response.data){var t=a.duplicateName(l.response.data),n=a.versionError(l.response.data),i=a.accessibleThroughQueryFunctionalServiceError(l.response.data),r=a.glottologError(l.response.data);if(t)return void a.props.set_yup_error({errors:t});if(n&&n.length>0)return void a.props.set_yup_error({errors:n});if(i&&i.length>0)return void a.props.set_yup_error({errors:i});if(r&&r.length>0)return void a.props.set_yup_error({errors:r});a.props.set_backend_error_response(l.response.data)}else a.props.set_backend_error_response("unknown server error")}catch(o){console.log(l),a.props.set_backend_error_response("unknown server error")}},a.enableDisplay=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e?(a.setState({display:!1,draft_display:!0}),setTimeout((function(){return a.draft_validate()}),1e3)):(a.setState({display:!0,draft_display:!1}),setTimeout((function(){return a.validate()}),1e3))},a.disableDisplay=function(){a.props.set_backend_successful_response(a.props.model),a.state.foundValidationError||a.props.set_yup_error(null),a.setState({display:!1,draft_display:!1,validationInProgress:!1,validationResponse:null,foundValidationError:!1}),a.state.err&&a.props.set_yup_error(a.state.err)},a.clearEmptiesObj=function(e){for(var l in e)if(e[l]&&"object"===typeof e[l]&&(!Array.isArray(e[l])||0!==e[l].length)&&(a.clearEmptiesObj(e[l]),0===Object.keys(e[l]).length&&delete e[l],e[l]&&e[l].hasOwnProperty("ld_subclass_type")&&"ld_subclass_type"===e[l].ld_subclass_type&&delete e[l],e[l]&&e[l].hasOwnProperty("editor-placeholder")&&(e[l]=null),Array.isArray(e[l]))){if(0===e[l].length)return!0;e[l]=e[l].filter((function(e){if(!e)return!1;if("object"===typeof e){if(e.hasOwnProperty("selection")&&(delete e.selection,e.email&&(e.landing_page=""),e.landing_page&&(e.email="")),e.hasOwnProperty("actor_type")&&"actor_type"===e.actor_type)return!1;if(e.hasOwnProperty("corpus_media_type")&&"corpus_media_type"===e.corpus_media_type)return!1;if(e.hasOwnProperty("lcr_media_type")&&"lcr_media_type"===e.lcr_media_type)return!1;if(e.hasOwnProperty("ld_media_type")&&"ld_media_type"===e.ld_media_type)return!1;if(e.hasOwnProperty("editor-placeholder"))return!1;if(e.hasOwnProperty("en"))return!0;
1if(0===Object.keys(e).length)return!1;if(0===Object.values(e).filter((function(e){return e})).length)return!1;for(var l=0;l<Object.keys(e).length;l++){var t=Object.keys(e)[l],a=e[t];t&&t.indexOf("identifier")>0&&a&&0===Object.values(a).filter((function(e){return e})).length&&delete e[t],t||a||delete e[t]}return!0}return"string"!==typeof e||e}))}return e},a.unlinkDeletedFiles=function(e,l){var t;if(null!==e&&void 0!==e&&null!==(t=e.described_entity)&&void 0!==t&&t.lr_subclass)if(e.described_entity.lr_subclass.software_distribution){if(a.props.functional_service)1===e.described_entity.lr_subclass.software_distribution.filter((function(e){return e&&e.software_distribution_form===A.Kh})).length&&e.described_entity.lr_subclass.software_distribution.filter((function(e){return e&&e.software_distribution_form===A.Kh})).map((function(e){return e.elg_compatible_distribution=!0,e}));e.described_entity.lr_subclass.software_distribution.map((function(e){if(e.software_distribution_form!==A.Kh&&(e.elg_compatible_distribution=!1),a.props.functional_service||(e.elg_compatible_distribution=!1),e.package)if(l.some((function(l){return l.id===e.package.id&&l.file===e.package.file}))){var t=l.find((function(l){return l.id===e.package.id&&l.file===e.package.file}));e.package=t}else e.package=null;return e}))}else e.described_entity.lr_subclass.dataset_distribution&&e.described_entity.lr_subclass.dataset_distribution.map((function(e){if(e.dataset)if(l.some((function(l){return l.id===e.dataset.id&&l.file===e.dataset.file}))){var t=l.find((function(l){return l.id===e.dataset.id&&l.file===e.dataset.file}));e.dataset=t}else e.dataset=null;return e}));return e},a.deleteUnspecifiedDistribution=function(e){var l;return null!==e&&void 0!==e&&null!==(l=e.described_entity)&&void 0!==l&&l.lr_subclass&&(e.described_entity.lr_subclass.unspecified_part||e.described_entity.lr_subclass.dataset_distribution&&e.described_entity.lr_subclass.dataset_distribution.map((function(e){return e.distribution_unspecified_feature=[],e}))),e},a.saveDraft=function(){a.setState({deactivateButton:!0});var e=a.props.model;if(e.hasOwnProperty("pk")){var l=JSON.parse(JSON.stringify(e));delete l.management_object,h().put((0,A.sW)(l.pk),l,{headers:{"UNDER-CONSTRUCTION":!0===a.props.under_construction,"FUNCTIONAL-SERVICE":!0===a.props.functional_service,"SERVICE-COMPLIANT-DATASET":!0===a.props.service_compliant_dataset}}).then((function(e){var l=!1;e.data.management_object&&(l=!0===e.data.management_object.under_construction,a.props.tool_service&&a.props.handleFunctionalService(!0===e.data.management_object.functional_service)),a.setState({deactivateButton:!1,under_construction:l}),P.Am.success("Record saved as draft successfully.",{autoClose:3500}),a.disableDisplay(),a.props.set_backend_successful_response(e.data)})).catch((function(e){a.failure("Record could not be saved as draft.",e)}))}else h().post(A.n0,e,{headers:{"UNDER-CONSTRUCTION":!0===a.props.under_construction,"FUNCTIONAL-SERVICE":!0===a.props.functional_service,"SERVICE-COMPLIANT-DATASET":!0===a.props.service_compliant_dataset}}).then((function(e){var l=!1;e.data.management_object&&(l=!0===e.data.management_object.under_construction,a.props.tool_service&&a.props.handleFunctionalService(!0===e.data.management_object.functional_service)),a.setState({deactivateButton:!1,under_construction:l}),P.Am.success("Record saved as draft successfully.",{autoClose:3500}),a.disableDisplay(),a.props.set_backend_successful_response(e.data)})).catch((function(e){a.failure("Record could not be saved as draft.",e)}))},a.draft_validate=(0,u.Z)(m().mark((function e(){var l,t,n,i,r,o,u,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.retrieveRecordData();case 2:l=e.sent,t=[];try{l&&(t=(null===l||void 0===l||null===(n=l.data)||void 0===n?void 0:n.content_files)||[])}catch(d){}i=a.props.model,i=a.unlinkDeletedFiles(i,t),i=a.clearEmptiesObj(i),i=a.clearEmptiesObj(i),i=a.clearEmptiesObj(i),!1,r=null,o=function(e,l){return(0,Zl.jsxs)("div",{children:[(0,Zl.jsxs)(Q.Z,{children:[xl.Z.editor_create_first_part," ","save as draft the ",(0,Zl.jsx)("span",{className:"teal--font",children:l})," ","record"," ",xl.Z.editor_create_confirmation]}),(0,Zl.jsx)(Q.Z,{variant:"overline",children:"Draft records do not have a landing page. Submit your record 
1in order to visit and preview its landing page."})]})},"Organization"===i.described_entity.entity_type?(o=o("Organization",a.props.model.described_entity.organization_name?a.props.model.described_entity.organization_name.en:""),r=H(i,a.props.data)):"Project"===i.described_entity.entity_type?(o=o("Project",a.props.model.described_entity.project_name?a.props.model.described_entity.project_name.en:""),r=$(i,a.props.data)):"LanguageResource"===i.described_entity.entity_type&&"ToolService"===i.described_entity.lr_subclass.lr_type?(o=o("Tool/Service",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),r=ll(i,a.props.data,a.props.schema_lr_subclass,a.props.functional_service)):"LanguageResource"===i.described_entity.entity_type&&"Corpus"===i.described_entity.lr_subclass.lr_type?(o=o("Corpus",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),r=il(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,a.props.schema_audio_part,a.props.schema_video_part,a.props.schema_text_numerical,a.props.schema_image_part)):"LanguageResource"===i.described_entity.entity_type&&"LexicalConceptualResource"===i.described_entity.lr_subclass.lr_type?(o=o("Lexical Conceptual Resource",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),r=El(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,a.props.schema_audio_part,a.props.schema_video_part,0,a.props.schema_image_part)):"LanguageResource"===i.described_entity.entity_type&&"LanguageDescription"===i.described_entity.lr_subclass.lr_type&&(o=o("Language Description",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),null!==(u=i.described_entity)&&void 0!==u&&null!==(s=u.lr_subclass)&&void 0!==s&&s.ld_subclass||(i.described_entity.lr_subclass.ld_subclass=A.yI),r=fl(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,0,a.props.schema_video_part,0,a.props.schema_image_part,a.props.schema_grammar_part,a.props.schema_ml_model_part)),r&&("LanguageResource"===i.described_entity.entity_type&&"ToolService"===i.described_entity.lr_subclass.lr_type?r.then(tl(i,a.props.data,a.props.schema_lr_subclass,a.props.functional_service).then((function(e){a.setState({validationInProgress:!1,foundValidationError:!1,validationResponse:o,err:null})})).catch((function(e){var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)}))})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})}))).catch((function(e){console.log(e);var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)}))})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})})):r.then((function(e){a.setState({validationInProgress:!1,foundValidationError:!1,validationResponse:o,err:null})})).catch((function(e){console.log(e);var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e&&e.errors?e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)})):""})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})})));case 15:case"end":return e.stop()}}),e)}))),a.validate=(0,u.Z)(m().mark((function e(){var l,t,n,i,r,o,u,s,d;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.retrieveRecordData();case 2:l=e.sent,t=[];try{l&&(t=(null===l||void 0===l||null===(n=l.data)||void 0===n?void 0:n.content_files)||[])}catch(c){}i=a.props.model,i=a.unlinkDeletedFiles(i,t),i=a.clearEmptiesObj(i),i=a.clearEmptiesObj(i),i=a.clearEmptiesObj(i),r=!1,o=null,u=function(e,l){return(0,Zl.jsxs)(Q.Z,{children:[xl.Z.editor_create_first_part," ",a.isUpdate()?"update ":"ceate ",(0,Zl.jsx)("span",{className:"teal--font",children:l}),xl.Z.editor_create_confirmation]})},"Organization"===i.described_entity.entity_type?(u=u("Organization",a.props.model.described_entity.organization_name?a.props.model.described_entity.organization_name.en:""),o=(0,J.D)(i,a.props.data)):"Project"===i.described_entity.entity_type?(u=u("Project",a.props.model.described_entity.project_name?a.props.model.described_entity.project_name.en:""),o=$(i,a.props.data)):"LanguageResource"===i.described_entity.entity_type&&"ToolService"===i.described_entity.lr_subclass.lr_type?(u=u("Tool/Service",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),o=te(i,a.props.data,a.props.schema_lr_subclass,a.props.functional_service)):"LanguageResource"===i.described_entity.entity_type&&"Corpus"===i.described_entity.lr_subclass.lr_type?(u=u("Corpus",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),o=oe(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,a.props.schema_audio_part,a.props.schema_video_part,a.props.schema_text_numerical,a.props.schema_image_part,t,r)):"LanguageResource"===i.described_entity.entity_type&&"LexicalConceptualResource"===i.described_entity.lr_subclass.lr_type?(u=u("Lexical Conceptual Resource",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),o=fe(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,a.props.schema_audio_part,a.props.schema_video_part,0,a.props.schema_image_part,t,a.props.service_compliant_dataset,r)):"LanguageResource"===i.described_entity.entity_type&&"LanguageDescription"===i.described_entity.lr_subclass.lr_type&&(u=u("Language Description",a.props.model.described_entity.resource_name?a.props.model.described_entity.resource_name.en:""),null!==(s=i.described_entity)&&void 0!==s&&null!==(d=s.lr_subclass)&&void 0!==d&&d.ld_subclass||(i.described_entity.lr_subclass.ld_subclass=A.yI),o=xe(i,a.props.data,a.props.schema_lr_subclass,a.props.schema_text_part,0,a.props.schema_video_part,0,a.props.schema_image_part,a.props.schema_grammar_part,a.props.schema_ml_model_part,t,r)),o&&("LanguageResource"===i.described_entity.entity_type&&"ToolService"===i.described_entity.lr_subclass.lr_type?o.then(ae(i,a.props.data,a.props.schema_lr_subclass,a.props.functional_service,t).then((function(e){a.setState({validationInProgress:!1,foundValidationError:!1,validationResponse:u,err:null})})).catch((function(e){var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)}))})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})}))).catch((function(e){console.log(e);var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)}))})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})})):o.then((function(e){a.setState({validationInProgress:!1,foundValidationError:!1,validationResponse:u,err:null})})).catch((function(e){console.log(e);var l=(0,Zl.jsx)(Q.Z,{component:"div",children:(0,Zl.jsx)("ul",{children:e&&e.errors?e.errors.map((function(e,l){return(0,Zl.jsx)("li",{children:(0,Zl.jsx)("h5",{style:{color:"Tomato"},children:(0,Zl.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},l)})):""})});a.setState({validationInProgress:!1,foundValidationError:!0,validationResponse:l,err:e})})));case 15:case"end":return e.stop()}}),e)}))),a.hanldeUnderConstruction=function(e){a.props.handleUnderConstruction(e.target.checked)},a.handleFunctionalService=function(e){a.props.handleFunctionalService(e.target.checked)},a.handle_service_compliant_dataset=function(e){a.props.handle_service_compliant_dataset(e.target.checked)},a.state={display:!1,draft_display:!1,deactivateButton:!1,validationInProgress:!1,validationResponse:null,foundValidationError:!1,under_construction:!0===e.under_construction,err:null,datasets:[]},a}return(0,d.Z)(t,[{key:"render",value:function(){var e=this;return(0,Zl.jsxs)(Zl.Fragment,{children:[(0,Zl.jsxs)(I.Z,{item:!0,container:!0,xs:4,alignItems:"center",justifyContent:"flex-start",children:[!this.props.hide_checkboxes&&this.props.model&&this.props.model.described_entity&&"LanguageResource"===this.props.model.described_entity.entity_type&&(0,Zl.jsx)(I.Z,{item:!0,children:(0,Zl.jsx)(Fl.ZP,{title:xl.Z.editor_under_construction,children:(0,Zl.jsx)(O.Z,{control:(0,Zl.jsx)(z.Z,{checked:!0===this.props.under_construction,color:"primary",inputProps:{"aria-label":"under construction checkbox"},onChange:function(l){e.hanldeUnderConstruction(l)}}),label:xl.Z.label_under_construction})})}),!this.props.hide_checkboxes&&this.props.model&&this.props.model.described_entity&&"LanguageResource"===this.props.model.described_entity.entity_type&&"ToolService"===this.props.model.described_entity.lr_subclass.lr_type&&(0,Zl.jsx)(I.Z,{item:!0,children:(0,Zl.jsx)(Fl.ZP,{title:xl.Z.dialog_functional_service_title_message,children:(0,Zl.jsx)(O.Z,{control:(0,Zl.jsx)(z.Z,{checked:!0===this.props.functional_service,color:"primary",inputProps:{"aria-label":"functional service checkbox"},onChange:function(l){e.handleFunctionalService(l)}}),label:xl.Z.label_functional_service})})}),!this.props.hide_checkboxes&&this.props.show_lcr_elg_compatible_checkbox&&this.props.model&&this.props.model.described_entity&&"LanguageResource"===this.props.model.described_entity.entity_type&&"LexicalConceptualResource"===this.props.model.described_entity.lr_subclass.lr_type&&(0,Zl.jsx)(I.Z,{item:!0,children:(0,Zl.jsx)(Fl.ZP,{title:xl.Z.dialog_service_compliant_dataset_title_message,children:(0,Zl.jsx)(O.Z,{control:(0,Zl.jsx)(z.Z,{checked:!0===this.props.service_compliant_dataset,color:"primary",inputProps:{"aria-label":"service compliant dataset checkbox"},onChange:function(l){e.handle_service_compliant_dataset(l)}}),label:xl.Z.label_service_compliant_dataset})})})]}),(0,Zl.jsxs)(I.Z,{item:!0,container:!0,xs:8,alignItems:"center",justifyContent:"flex-end",children:[(0,Zl.jsx)(I.Z,{item:!0,children:(this.props.model&&!this.props.model.management_object||this.props.model&&this.props.model.management_object&&"d"===this.props.model.management_object.status)&&(0,Zl.jsxs)(F.Z,{id:"save-button",className:"inner
1-link-default--purple",onClick:function(){return e.enableDisplay(!0)},children:[(0,Zl.jsx)(S.r,{className:"xsmall-icon"})," ",(0,Zl.jsx)("span",{className:"p-1",children:xl.Z.editor_button_savedraft})]})}),this.isUpdate()&&(0,Zl.jsx)(I.Z,{item:!0,children:(0,Zl.jsxs)(F.Z,{id:"save-button",className:"inner-link-default--purple",onClick:function(){return e.enableDisplay(!1)},children:[(0,Zl.jsx)(w.Z,{className:"xsmall-icon"})," ",(0,Zl.jsx)("span",{className:"p-1",children:xl.Z.editor_button_save})]})}),!this.isUpdate()&&(0,Zl.jsx)(I.Z,{item:!0,children:(0,Zl.jsxs)(F.Z,{id:"save-button",className:"inner-link-default--purple",onClick:function(){return e.enableDisplay(!1)},children:[(0,Zl.jsx)(U,{className:"xsmall-icon"}),(0,Zl.jsx)("span",{className:"p-1",children:xl.Z.editor_button_save})]})})]}),this.state.display&&(0,Zl.jsxs)(y.Z,{open:this.state.display,onClose:this.disableDisplay,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",disableBackdropClick:!0,fullWidth:!0,children:[!this.state.validationResponse&&(0,Zl.jsxs)(E.Z,{children:[" ",(0,Zl.jsx)(j.Z,{})," "," ",xl.Z.dialog_validationResponse]}),this.state.validationResponse&&(0,Zl.jsx)(E.Z,{children:this.state.foundValidationError?(0,Zl.jsxs)("div",{children:[(0,Zl.jsx)(x.Z,{})," ",xl.Z.dialog_foundValidationError]}):(0,Zl.jsxs)("div",{children:[(0,Zl.jsx)(Z.Z,{}),xl.Z.editor_button_save]})}),this.state.validationResponse&&(0,Zl.jsx)(R.Z,{children:(0,Zl.jsx)(q.Z,{component:"div",children:this.state.validationResponse})}),this.state.validationResponse&&(0,Zl.jsxs)(v.Z,{children:[(0,Zl.jsx)(F.Z,{disabled:this.state.deactivateButton,onClick:this.disableDisplay,color:"primary",autoFocus:!0,children:xl.Z.dialog_validationResponse_close_button}),(0,Zl.jsx)(F.Z,{autoFocus:!0,disabled:this.state.deactivateButton||this.state.foundValidationError,onClick:this.sendToBackend,color:"primary",children:xl.Z.dialog_validationResponse_proceed_button})]})]}),this.state.draft_display&&(0,Zl.jsxs)(y.Z,{open:this.state.draft_display,onClose:this.disableDisplay,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"lg",disableBackdropClick:!0,fullWidth:!0,children:[!this.state.validationResponse&&(0,Zl.jsxs)(E.Z,{children:[" ",(0,Zl.jsx)(j.Z,{})," "," ",xl.Z.dialog_validationResponse]}),this.state.validationResponse&&(0,Zl.jsx)(E.Z,{children:this.state.foundValidationError?(0,Zl.jsxs)("div",{children:[(0,Zl.jsx)(x.Z,{})," ",xl.Z.dialog_foundValidationError]}):(0,Zl.jsxs)("div",{children:[(0,Zl.jsx)(Z.Z,{}),xl.Z.editor_button_savedraft]})}),this.state.validationResponse&&(0,Zl.jsx)(R.Z,{children:(0,Zl.jsx)(q.Z,{component:"div",children:this.state.validationResponse})}),this.state.validationResponse&&(0,Zl.jsxs)(v.Z,{children:[(0,Zl.jsx)(F.Z,{disabled:this.state.deactivateButton,onClick:this.disableDisplay,color:"primary",autoFocus:!0,children:xl.Z.dialog_validationResponse_close_button}),(0,Zl.jsx)(F.Z,{autoFocus:!0,disabled:this.state.deactivateButton||this.state.foundValidationError,onClick:this.saveDraft,color:"primary",children:xl.Z.dialog_validationResponse_proceed_button})]})]})]})}}]),t}(f.Component),jl=(0,g.EN)(wl)},8941:function(e,l,t){t.d(l,{Z:function(){return j}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(31881),d=t.n(s),c=t(72728),_=t(20337),b=t(57009),m=t(20962),f=t(21144),p=t(10367),h=t(26395),g=t(83870),y=t.n(g),v=t(46642),R=t.n(v),q=t(84660),E=t(99902),F=t(3873),x=t(74700),Z=t(46417),w=function(e){return"http://w3id.org/meta-share/meta-share/elg"===e.domain_classification_scheme},j=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).getDomainChoices=function(e){if(!(e.trim().length<=2)){i.state.source&&i.state.source.cancel("");var l=d().CancelToken.source();i.setState({loading:!0,source:l}),d().get((0,p.IT)(e),{cancelToken:l.token}).then((function(e){i.setState({domainChoices:e.data,loading:!1,source:null})})).catch((function(e){console.log(e),i.setState({loading:!1,source:null,domainChoices:[]})}))}},i.setDomain=function(e,l,t){var n=i.state.domainInitialArray,r=n&&n.length>=l?n[l]:{},o=r||"",u=o.category_label,s=void 0===u?{}:u,d=o.domain_identifier,c=void 0===d?{}:d;switch(i.setState({domainChoices:[]}),e){case"categoryValue":if(!t)return;s.en=t,r.hasOwnProperty("editor-placeholder")&&delete r["editor-placeholder"];break;case"addDomain":if(n.filter((function(e){return!(!e||!e.category_label)&&e.category_label.en})).length!==n.length)return;return n.push(JSON.parse(JSON.stringify(m.a1))),i.props.updateModel_Domain("domain",n),n;case"removeDomain":return n.splice(l,1),n&&0===n.length?void i.props.updateModel_Domain("domain",[]):(i.props.updateModel_Domain("domain",n),n);case"autoCompleteSelected":return t.similarity&&delete t.similarity,t.display_name&&delete t.dis
1play_name,t.hasOwnProperty("editor-placeholder")&&delete t["editor-placeholder"],n[l]=t,i.props.updateModel_Domain("domain",n),n}return r=(0,a.Z)((0,a.Z)({},r),{},{category_label:s,domain_identifier:c}),n[l]=r,i.props.updateModel_Domain("domain",n),n},i.setLanguageSpecificText=function(e,l){var t=i.state.domainInitialArray;t[e].category_label=l,t[e].hasOwnProperty("editor-placeholder")&&delete t[e]["editor-placeholder"],i.setState({domainChoices:[]}),i.props.updateModel_Domain("domain",t)},i.updateIdentifier=function(e,l){var t=i.state.domainInitialArray;t[e].domain_identifier=l,t[e].hasOwnProperty("editor-placeholder")&&delete t[e]["editor-placeholder"],i.setState({domainChoices:[]}),i.props.updateModel_Domain("domain",t)},i.autocompleteTextField=function(e,l,t){var n=i.props.activeLanguage||"en";return(0,Z.jsxs)("span",{children:[(0,Z.jsx)(h.ZP,{className:"wd-100",freeSolo:!0,clearOnBlur:!0,autoHighlight:!0,loading:i.state.loading,value:e||"",onChange:function(e,t){t&&("object"===typeof t?i.setDomain("autoCompleteSelected",l,t):i.setDomain("categoryValue",l,t))},options:i.state.loading?[]:i.state.domainChoices,filterOptions:function(e,l){var t=e;return i.state.loading||""!==l.inputValue&&t.splice(0,0,{category_label:{en:l.inputValue},display_name:"Missing ".concat(l.inputValue,' ? Add "').concat(l.inputValue,'"')}),t&&0===t.length&&i.state.loading?[{display_name:"Loading please wait..."}]:t},getOptionLabel:function(e){return e.category_label?Object.keys(e.category_label).includes("en")?e.category_label.en:Object.values(e.category_label)[0]:""},renderInput:function(e){return(0,Z.jsx)(c.Z,(0,a.Z)((0,a.Z)({},e),{},{label:i.props.category_label,helperText:i.props.category_help_text,placeholder:i.props.category_placeholder?i.props.category_placeholder:"",variant:"outlined",onChange:function(e){i.getDomainChoices(e.target.value)},InputProps:(0,a.Z)((0,a.Z)({},e.InputProps),{},{endAdornment:(0,Z.jsxs)(u.Fragment,{children:[i.state.loading?(0,Z.jsx)(F.Z,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})})}))},renderOption:function(e,l){var t=l.inputValue;if(e.display_name){var a=R()(e.display_name,t);return y()(e.display_name,a).map((function(e,l){return(0,Z.jsxs)("span",{style:{fontWeight:e.highlight?1e3:400},children:[e.highlight?"\xa0":"",e.text]},l)}))}var r=R()(e.category_label[n]||Object.values(e.category_label)[0],t),o=y()(e.category_label[n]||Object.values(e.category_label)[0],r);return(0,Z.jsxs)("div",{children:[e.category_label&&(0,Z.jsx)("div",{children:o.map((function(e,l){return(0,Z.jsx)("span",{style:{fontWeight:e.highlight?1e3:400},children:e.text},l)}))}),e.domain_identifier&&(0,Z.jsx)("div",{children:"http://w3id.org/meta-share/meta-share/ELG_domainClassification"===e.domain_identifier.domain_classification_scheme?"":"".concat(e.domain_identifier.value," - ").concat(i.props.domain_choices.filter((function(l){return l.value===e.domain_identifier.domain_classification_scheme}))[0].display_name)})]})}}),(0,Z.jsx)("div",{className:"pt-3 form-block-area",children:l>=1&&(0,Z.jsx)(f.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,Z.jsx)(f.Z,{item:!0,children:(0,Z.jsx)(_.Z,{className:"inner-link-default--purple",onClick:function(e){return i.setDomain("removeDomain",l)},children:x.Z.array_elements_remove})})})})]})},i.onBlur=function(){i.setState({domainChoices:[],loading:!1}),0===i.state.domainInitialArray.length?i.props.updateModel_Domain("domain",[]):1===i.state.domainInitialArray.length&&(i.state.domainInitialArray[0].hasOwnProperty("pk")||i.state.domainInitialArray[0].category_label&&!i.state.domainInitialArray[0].category_label.en&&i.props.updateModel_Domain("domain",[]))},i.state={domainInitialArray:i.props.default_valueArray||[],domainChoices:[],loading:!1,source:null},i}return(0,i.Z)(t,[{key:"componentWillUnmount",value:function(){this.state.source&&this.state.source&&this.state.source.cancel("")}},{key:"render",value:function(){var e=this,l=this.props,t=l.label,a=l.help_text,n=l.category_help_text,i=l.category_label,r=l.category_required,o=l.category_type,u=l.category_placeholder,s=l.domain_choices,d=l.domain_help_text,c=l.domain_label,p=l.domain_read_only,h=l.domain_required,g=l.value_label,y=l.value_required,v=l.value_placeholder,R=l.value_help_text,F=void 0===R?"":R,j=l.domain_identifier_label,I=l.domain_identifier_help_text;return 0===this.state.domainInitialArray.length&&this.state.domainInitialArray.push(JSON.parse(JSON.stringify(m.a1))),(0,Z.jsxs)("div",{onBlur:this.onBlur,children:[(0,Z.jsxs)(f.Z,{container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,Z.jsxs)(f.Z,{item:!0,sm:10,children:[(0,Z.jsxs)(b.Z,{variant:"h3",className:"section-links",children:[t," "]}),(0,Z.jsxs)(b.Z,{className:"section-links",children:[a," "]})]}),(0,Z.jsx)(f.Z,{item:!0,sm:1,children:0===this.state.domainInitialArray.length&&(0,Z.jsx)(_.Z,{className:"inner
1-link-default--purple",onClick:function(l){return e.setDomain("addDomain",0)},children:x.Z.array_elements_add})})]}),this.state.domainInitialArray.map((function(l,t){var a=!!l.hasOwnProperty("pk");return(0,Z.jsxs)("div",{children:[l.category_label&&!Object.values(l.category_label)[0]?e.autocompleteTextField(l,t):(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)("div",{className:"pb-3 inner--group nested--group",children:[(0,Z.jsx)(f.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,Z.jsx)(f.Z,{item:!0,children:(0,Z.jsx)(_.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setDomain("removeDomain",t)},children:"Remove"})})}),(0,Z.jsx)("div",{children:(0,Z.jsx)(E.Z,{defaultValueObj:l.category_label||{en:""},field:t,type:o,required:r,label:i,help_text:a?"":n,placeholder:u||"",disable:!!l.pk,setLanguageSpecificText:e.setLanguageSpecificText})}),(0,Z.jsx)("div",{children:l.pk&&(!l.domain_identifier||1===l.domain_identifier.length&&l.domain_identifier.some(w))?(0,Z.jsx)(Z.Fragment,{}):(0,Z.jsx)(q.Z,{initialIdentifierObj:l.domain_identifier||{},field:t,Identifier_Label:j,Identifier_help_text:a?"":I,identifier_scheme_choices:s,identifier_scheme_help_text:a?"":d,identifier_scheme_label:c,identifier_scheme_read_only:p,identifier_scheme_required:h,identifier_scheme_type:"",identifier_value_label:g,identifier_value_required:y,identifier_value_type:"",identifier_value_placeholder:a?"":v||"",identifier_value_read_only:p,identifier_value_helptext:a?"":F,classification_scheme:"domain_classification_scheme",scheme_choice_to_hide:"ELG domain classification",scheme_choice_uri_to_hide:"http://w3id.org/meta-share/meta-share/ELG_domainClassification",disable:!!l.pk,identifier_obj:m.M4,updateModel_Identifier:e.updateIdentifier})}),(0,Z.jsx)("div",{className:"pt-3 form-block-area",children:""!==l.category_label&&e.state.domainInitialArray.length-1===t?(0,Z.jsx)(f.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-start",alignItems:"baseline",children:(0,Z.jsx)(f.Z,{item:!0,children:(0,Z.jsx)(_.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setDomain("addDomain",t)},children:x.Z.array_elements_add})})}):(0,Z.jsx)("div",{style:{paddingBottom:"1em"}})})]})}),(0,Z.jsx)("div",{style:{marginTop:"1em"}})]},t)}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{domainInitialArray:e.default_valueArray||[]}}}]),t}(u.Component)},6783:function(e,l,t){t.d(l,{Z:function(){return h}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(72728),s=t(20337),d=t(33725),c=t(5745),_=t(48242),b=t.n(_),m=t(21144),f=t(46417),p="Enter a valid email address e.g. [email protected] \n",h=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).setEmail=function(e,l,t){var a=n.state,i=a.errorArray,r=a.emailArray;switch(e.target.name||t){case"emailValue":r[l]=e.target.value;break;case"addEmail":if(r.filter((function(e){return e})).length<r.length)return;r.push(""),i.push("");break;case"removeEmail":return r.splice(l,1),i.splice(l,1),void n.setState({emailArray:r,errorArray:i},n.blur)}n.setState({emailArray:r,errorArray:i,stopWriting:!1})},n.blur=function(e,l){var t=n.state,a=t.errorArray,i=t.emailArray,r=b().isEmail(i[l]||"");a[l]=!r,n.setState({errorArray:a,stopWriting:!0});var o=i.filter((function(e){return e}));i.length,n.props.updateModel_email(null!==n.props.field&&void 0!==n.props.field?n.props.field:"email",o)},n.state={emailArray:e.default_value_Array||[],errorArray:[],stopWriting:!0},n}return(0,n.Z)(t,[{key:"componentDidMount",value:function(){for(var e=this.state,l=e.errorArray,t=e.emailArray,a=0;a<t.length;a++){var n=b().isEmail(t[a]||"");l[a]=!n}this.setState({errorArray:l,stopWriting:!0})}},{key:"render",value:function(){var e=this,l=this.props,t=l.type,a=l.required,n=l.label,i=l.help_text,r=l.className,o=l.disable,_=this.state.emailArray,h=_[0]||"",g=!!h&&!b().isEmail(h||"");return(0,f.jsxs)("div",{children:[(0,f.jsxs)(m.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,f.jsx)(m.Z,{item:!0,xs:11,children:(0,f.jsx)(u.Z,{className:r,type:t,error:g&&this.state.stopWriting,required:a,label:n,variant:"outlined",helperText:g&&this.state.stopWriting?"".concat(p):i,inputProps:{name:"emailValue"},disabled:o,value:h,onChange:function(l){return e.setEmail(l,0)},onBlur:function(l){return e.blur(l,0)}})}),(0,f.jsx)(m.Z,{item:!0,xs:1,children:(0,f.jsx)(s.Z,{disabled:o,onClick:function(l){return e.setEmail(l,0,"addEmail")},children:(0,f.jsx)(d.r,{className:"small-icon"})})})]}),_.map((function(l,d){if(0!==d){var _=!!l&&!b().isEmail(l||"");return(0,f.jsxs)(m.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,f.jsx)(m.Z,{item:!0,xs:11,className:"pt1",children:(0,f.jsx)(u.Z,{className:r,type:t,error:_&&e.state.stopWriting,required:a,label:n,variant:"outlined",helperText:_&&e.state.stopWriting?"".concat(p):i,inputProps:{name:"emailValue"}
1,disabled:o,value:l,onChange:function(l){return e.setEmail(l,d)},onBlur:function(l){return e.blur(l,d)}})},d),(0,f.jsx)(m.Z,{item:!0,xs:1,children:(0,f.jsx)(s.Z,{disabled:o,onClick:function(l){return e.setEmail(l,d,"removeEmail")},children:(0,f.jsx)(c.r,{className:"small-icon"})})})]},d)}}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{emailArray:e.default_value_Array||[],stopWriting:!0,errorArray:[]}}}]),t}(o.Component)},5817:function(e,l,t){t.d(l,{Z:function(){return g}});var a=t(1413),n=t(4942),i=t(15671),r=t(43144),o=t(60136),u=t(29388),s=t(47313),d=t(72728),c=t(26395),_=JSON.parse('{"bg":"Bulgarian","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch; Flemish","en":"English","et":"Estonian","fi":"Finnish","fr":"French","de":"German","hu":"Hungarian","ga":"Irish","it":"Italian","lv":"Latvian","lt":"Lithuanian","mt":"Maltese","el":"Modern Greek (1453-)","pl":"Polish","pt":"Portuguese","ro":"Romanian; Moldavian; Moldovan","sk":"Slovak","sl":"Slovenian","es":"Spanish; Castilian","sv":"Swedish","ab":"Abkhazian","sq":"Albanian","an":"Aragonese","hy":"Armenian","ast":"Asturian; Asturleonese; Bable; Leonese","bar":"Bavarian","az":"Azerbaijani","be":"Belarusian","eu":"Basque","bs":"Bosnian","br":"Breton","ca":"Catalan; Valencian","ce":"Chechen","kw":"Cornish","co":"Corsican","fo":"Faroese","ka":"Georgian","gl":"Galician","is":"Icelandic","kk":"Kazakh","lij":"Ligurian","lmo":"Lombard","dsb":"Lower Sorbian","lb":"Luxembourgish; Letzeburgesch","mk":"Macedonian","nap":"Neapolitan","frr":"Northern Frisian","nn":"Norwegian Nynorsk","se":"Northern Sami","no":"Norwegian","oc":"Occitan (post 1500)","os":"Ossetian; Ossetic","pms":"Piemontese","ru":"Russian","sc":"Sardinian","sco":"Scots","sr":"Serbian","sh":"Serbo-Croatian","scn":"Sicilian","szl":"Silesian","sms":"Skolt Sami","swl":"Swedish Sign Language","tr":"Turkish","uk":"Ukrainian","hsb":"Upper Sorbian","vec":"Venetian","wa":"Walloon","cy":"Welsh","fy":"Western Frisian","gd":"Scottish Gaelic; Gaelic","nds":"Low German; Low Saxon","nb":"Norwegian Bokm\xe5l","gsw":"Swiss German; Alemannic; Alsatian","smi":"Sami languages","zh":"Chinese","ja":"Japanese"}'),b=t(83870),m=t.n(b),f=t(46642),p=t.n(f),h=t(46417),g=function(e){(0,o.Z)(t,e);var l=(0,u.Z)(t);function t(){var e;(0,i.Z)(this,t);for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(e=l.call.apply(l,[this].concat(n))).setValues=function(l,t,a){var n=t&&t.key||"";n&&e.props.setValues(l,e.props.languageIndex,"changeLanguage",n,a,e.props.objectIndex)},e}return(0,r.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.lang,i=l.languageIndex,r=l.disabledLanguagesArray,o=l.className,u=l.disable,s=i-1>=0?r.slice(0,i):[],b=Object.keys(_).map((function(e){var l;return l={},(0,n.Z)(l,e,_[e]),(0,n.Z)(l,"key",e),(0,n.Z)(l,"humanLabel",_[e]),l})),f=b.filter((function(e){return e.key===t})),g=t&&f.length>0?f[0]:{key:"",humanLabel:""};return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(c.ZP,{className:o,disabled:u||"en"===g.key,autoHighlight:!0,value:g,onChange:function(l,t){e.setValues(l,t,g)},options:b,getOptionLabel:function(e){return e.humanLabel||""},getOptionSelected:function(e,l){return e.key===l.key},getOptionDisabled:function(e){return s.filter((function(l){return l===e.key})).length>0},renderInput:function(l){return(0,h.jsx)(d.Z,(0,a.Z)((0,a.Z)({},l),{},{error:""===g.key,label:"language",variant:"outlined",helperText:e.props.showHelpText?"select language":""}))},renderOption:function(e,l){var t=l.inputValue,a=p()(e.humanLabel,t),n=m()(e.humanLabel,a);return(0,h.jsx)("div",{children:n.map((function(e,l){return(0,h.jsx)("span",{style:{fontWeight:e.highlight?700:400},children:e.text},l)}))})}})})}}]),t}(s.Component)},84660:function(e,l,t){t.d(l,{Z:function(){return h}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(72728),d=t(20337),c=t(5745),_=t(14636),b=t(57009),m=t(21144),f=t(74700),p=t(46417),h=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).setIdentifier=function(e,l){var t=i.props.initialIdentifierObj||{};switch(t[i.props.classification_scheme]=t[i.props.classification_scheme]||"",t.value=t.value||"",e){case"identifier_value":t.value=l,i.setState({identifier:t});break;case"identifier_selection":t[i.props.classification_scheme]=l[0].value,i.props.updateModel_Identifier(i.props.field,t);break;case"addIdentifier":var n=(0,a.Z)({},JSON.parse(JSON.stringify(i.props.identifier_obj)));i.props.updateModel_Identifier(i.props.field,n);break;case"removeIdentifier":i.props.updateModel_Identifier(i.props.field,null)}},i.onblur=function(){Object.values(i.state.initialIdentifierObj).filter((function(e){return e})).length,i.props.updateModel_Identifier(i.props.field,i.state.initialIdentifierObj)},i.state={initialIdentifierObj:e.initialIdentifierObj||{}},i}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.identifierIndex,a=l.classification_scheme,n=l.scheme_choice_to_hide,i=l.scheme_choice_uri_to_hide,r=l.identifier_scheme_choices,o=l.identifier_scheme_help_text,u=l.identifier_scheme_label,h=l.identifier_scheme_required,g=l.identifier_scheme_type,y=l.identifier_value_label,v=l.identifier_value_required,R=l.identifier_value_type,q=l.identifier_value_placeholder,E=l.identifier_value_helptext,F=l.disable,x=l.Identifier_Label,Z=l.Identifier_help_text,w=this.state.initialIdentifierObj,j=w.value||"",I=r.filter((function(e){return e.value===w[a]})).length>0?r.filter((function(e){return e.value===w[a]}))[0].display_name:"";return I===n?(0,p.jsx)("div",{}
1,t):(0,p.jsxs)("div",{className:"pb-3 inner--group",children:[(0,p.jsxs)(m.Z,{container:!0,direction:"row",alignItems:"center",justifyContent:"flex-start",children:[(0,p.jsxs)(m.Z,{item:!0,sm:11,children:[(0,p.jsxs)(b.Z,{variant:"h3",className:"section-links",children:[x," "]}),(0,p.jsxs)(b.Z,{className:"section-links",children:[Z," "]})]}),(0,p.jsx)(m.Z,{item:!0,sm:1,children:!Object.keys(w).includes("value")&&(0,p.jsx)(d.Z,{disabled:F,className:"inner-link-default--purple",onClick:function(l){return e.setIdentifier("addIdentifier")},children:f.Z.group_elements_create})})]}),Object.keys(w).includes("value")&&(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(m.Z,{container:!0,spacing:1,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,p.jsx)(m.Z,{item:!0,xs:4,children:(0,p.jsx)(s.Z,{className:"wd-100",type:g,required:h,label:u,helperText:o,disabled:F,variant:"outlined",select:!0,value:I,inputProps:{name:"identifier_selection"},onChange:function(l){return e.setIdentifier("identifier_selection",r.filter((function(e){return e.display_name===l.target.value})))},onBlur:this.onblur,children:r.filter((function(e){return e.value!==i})).map((function(e,l){return(0,p.jsx)(_.Z,{value:e.display_name,children:e.display_name},l)}))})}),(0,p.jsx)(m.Z,{item:!0,xs:7,children:(0,p.jsx)(s.Z,{className:"wd-100",type:R,required:v,label:y,variant:"outlined",placeholder:q||"",disabled:F,value:j,helperText:E,onChange:function(l){return e.setIdentifier("identifier_value",l.target.value)},onBlur:this.onblur})}),(0,p.jsx)(m.Z,{item:!0,xs:1,children:(0,p.jsx)(d.Z,{disabled:F,onClick:function(l){return e.setIdentifier("removeIdentifier")},children:(0,p.jsx)(c.r,{className:"small-icon"})})})]})})]},t)}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{initialIdentifierObj:e.initialIdentifierObj||{}}}}]),t}(u.Component)},99902:function(e,l,t){t.d(l,{Z:function(){return h}});var a=t(4942),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(72728),d=t(20337),c=t(33725),_=t(5745),b=t(5817),m=t(34882),f=t(74700),p=t(46417),h=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).setValues=function(e,l,t,n,r){var o=i.state.stateObj;switch(e.target.name||t){case"textValue":o[n]=e.target.value;break;case"changeLanguage":if(Object.keys(o).includes(n))return;var u=r.key;delete Object.assign(o,(0,a.Z)({},n,o[u]))[u];break;case"addLanguage":if(Object.values(o).filter((function(e){return e})).length!==Object.values(o).length)return;if(Object.keys(o).filter((function(e){return e})).length!==Object.keys(o).length)return;o[""]="";break;case"removeLanguage":delete o[n];break;default:return}i.setState({stateObj:o})},i.onBlur=function(){var e=i.state.errorObj;i.props.required&&Object.keys(i.state.stateObj).forEach((function(l){return i.state.stateObj[l]?e[l]="":e[l]="Required field"})),i.state.stateObj.en?i.props.setLanguageSpecificText(i.props.field,i.state.stateObj):i.props.setLanguageSpecificText(i.props.field,null)},i.state={stateObj:i.props.defaultValueObj?i.props.defaultValueObj:{en:""},errorObj:{en:""}},i}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.type,a=l.required,n=l.label,i=l.help_text,r=l.className,o=l.multiline,u=l.maxRows,h=l.disable,g=l.placeholder,y=Object.keys(this.state.stateObj)||["en"],v=[];return(0,p.jsx)("div",{onBlur:this.onBlur,children:y.map((function(l,y){return v.push(l),(0,p.jsxs)("div",{className:"inline--container",children:[(0,p.jsx)("span",{className:"wd-100",children:(0,p.jsx)(s.Z,{id:"".concat(n,"-").concat(l,"-").concat(y),fullWidth:!0,type:t,disabled:h,className:r,required:a,label:n,placeholder:g||"",variant:"outlined",helperText:e.state.errorObj[l]||i,inputProps:{autoComplete:"new-password"},value:e.state.stateObj[l]||"",onChange:function(t){return e.setValues(t,y,"textValue",l)},multiline:o,minRows:u||void 0,maxRows:u||void 0})}),(0,p.jsx)("span",{className:"pl10 wd-60",children:(0,p.jsx)(b.Z,{className:r,showHelpText:!!i,lang:l,languageIndex:y,disable:h,setValues:e.setValues,disabledLanguagesArray:v})}),0===y&&!h&&(0,p.jsx)(d.Z,{disabled:h,onClick:function(l){e.setValues(l,y,"addLanguage")},children:(0,p.jsx)(m.ZP,{title:f.Z.multilingual_elements_add_icon_hover,children:(0,p.jsx)(c.r,{className:"small-icon"})})}),"en"!==l&&!h&&(0,p.jsx)(d.Z,{disabled:h,onClick:function(t){e.setValues(t,y,"removeLanguage",l)},children:(0,p.jsx)(m.ZP,{title:f.Z.multilingual_elements_remove_icon_hover,children:(0,p.jsx)(_.r,{className:"small-icon"})})})]},y)}))})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{stateObj:e.defaultValueObj?e.defaultValueObj:{en:""},errorObj:{en:""}}}}]),t}(u.Component)},45208:function(e,l,t){t.d(l,{Z:function(){return m}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(57009),d=t(20337),c=t(99902),_=t(21144),b=t(46417),m=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var a;return(0,n.Z)(this,t),(a=l.call(this,e)).setValues=function(e,l,t){var n=a.state.stateArray;switch(e.target.name||t){case"addArrayItem":if(n.filter((function(e){return Object.values(e)[0]})).length!==n.length)return;if(n.filter((function(e){return Object.keys(e)[0]})).length!==n.length)return;n.push({en:""});break;case"removeArrayItem":n.splice(l,1);break;default:return}a.setState({stateArray:n},a.onBlur)},a.setLanguageSpecificText=function(e,l){if(null!==l){var t=a.state.stateArray;t[e]=l,a.setState({stateArray:t}),a.onBlur()}},a.onBlur=function(){if(a.state.stateArray&&1===a.state.stateArray.length){var e=a.state.stateArray[0];if(e&&e.hasOwnProperty("en")&&!e.en)return void a.props.setLanguageSpecifictextList(a.props.field,null)}a.props.setLanguageSpecifictextList(a.props.field,a.state.stateArray)},a.state={stateArray:a.props.default_valueArray||[],errorArray:[]},a}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.label,n=l.help_text,i=l.show_heading,r=void 0===i||i,o=l.disable,u=void 0!==o&&o,m=this.state.stateArray;return 0===m.length&&m.push({en:""}),(0,b.jsxs)("div",{className:"mb1",children:[r&&(0,b.jsxs)(s.Z,{variant:"h3",className:"section-links",children:[t," "]}),r&&(0,b.jsxs)(s.Z,{className:"section-links",children:[n," "]}),m.map((function(l,t){return(0,b.jsxs)("div",{onBlur:e.onBlur,className:"multiple",children:[""!==l.en&&!u&&(0,b.jsx)(_.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,b.jsx)(_.Z,{item:!0,children:(0,b.jsx)(d.Z,{className:"inner
1-link-default--purple",onClick:function(l){return e.setValues(l,t,"removeArrayItem")},children:"Remove"})})}),""===l.en&&0!==t&&!u&&(0,b.jsx)(_.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,b.jsx)(_.Z,{item:!0,children:(0,b.jsx)(d.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValues(l,t,"removeArrayItem")},children:"Remove"})})}),(0,b.jsx)(_.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:(0,b.jsx)(_.Z,{item:!0,xs:12,children:(0,b.jsx)(c.Z,(0,a.Z)((0,a.Z)({},e.props),{},{help_text:!1===r&&n||"",defaultValueObj:l,field:t,setLanguageSpecificText:e.setLanguageSpecificText}))})}),""!==l.en&&m.length-1===t?(0,b.jsx)(_.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-start",alignItems:"baseline",children:(0,b.jsx)(_.Z,{item:!0,children:(0,b.jsx)(d.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValues(l,t,"addArrayItem")},children:"Add"})})}):(0,b.jsx)("div",{style:{paddingBottom:"1em"}})]},t)}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{stateArray:e.default_valueArray||[],errorArray:[]}}}]),t}(u.Component)},38623:function(e,l,t){t.d(l,{Z:function(){return C}});var a=t(1413),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(57009),d=t(20337),c=t(4942),_=t(31881),b=t.n(_),m=t(72728),f=t(3873),p=t(81939),h=t(26395),g=t(83870),y=t.n(g),v=t(46642),R=t.n(v),q=t(10367),E=t(33725),F=t(5745),x=t(5817),Z=t(34882),w=t(74700),j=t(46417),I=(0,p.D)(),O=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).setValues=function(e,l,t,a,n,r){var o=i.state.stateObj;switch(e.target.name||t){case"textValue":o[a]=r;break;case"changeLanguage":if(Object.keys(o).includes(a))return;var u=n.key;delete Object.assign(o,(0,c.Z)({},a,o[u]))[u];break;case"addLanguage":if(Object.values(o).filter((function(e){return e})).length!==Object.values(o).length)return;if(Object.keys(o).filter((function(e){return e})).length!==Object.keys(o).length)return;o[""]="";break;case"removeLanguage":delete o[a];break;default:return}i.setState({stateObj:o,options:[]})},i.onBlur=function(){var e=i.state.errorObj;i.props.required&&Object.keys(i.state.stateObj).forEach((function(l){return i.state.stateObj[l]?e[l]="":e[l]="Required field"})),i.state.stateObj.en?i.props.setLanguageSpecificText(i.props.field,i.state.stateObj):i.props.setLanguageSpecificText(i.props.field,null)},i.getOptions=function(e,l){if(!(e.trim().length<=2)){i.state.source&&i.state.source.cancel("");var t=b().CancelToken.source();if(i.setState({loading:!0,source:t}),"keyword"===i.props.field_type){var a="".concat(i.props.entity_type,"=").concat(encodeURI(e),"&lang=").concat(l);b().get((0,q.hV)(a),{cancelToken:t.token}).then((function(e){i.setState({options:e.data,loading:!1,source:null})})).catch((function(e){console.log(e),i.setState({loading:!1,source:null,options:[]})}))}else if("service_offered"===i.props.field_type){var n="query=".concat(encodeURI(e),"&lang=").concat(l);b().get((0,q.G3)(n),{cancelToken:t.token}).then((function(e){i.setState({options:e.data,loading:!1,source:null})})).catch((function(e){console.log(e),i.setState({loading:!1,source:null,options:[]})}))}else console.log("unknown field type",i.props.field_type)}},i.autocompleteTextField=function(e,l){return(0,j.jsx)("span",{children:(0,j.jsx)(h.ZP,{className:"wd-100",disabled:!l,freeSolo:!0,clearOnBlur:!0,autoHighlight:!0,loading:i.state.loading,value:e||null,onChange:function(e,t){t&&("object"===typeof t?i.setValues(e,0,"textValue",l,null,t.keyword||t.service_offered):i.setValues(e,0,"textValue",l,null,t))},options:i.state.loading?[]:i.state.options,filterOptions:function(e,l){var t=I(e,l);return i.state.loading||""!==l.inputValue&&("keyword"===i.props.field_type?t.splice(0,0,{keyword:l.inputValue,display_name:"Missing ".concat(l.inputValue,'? Add "').concat(l.inputValue,'"')}):"service_offered"===i.props.field_type&&t.splice(0,0,{service_offered:l.inputValue,display_name:"Missing ".concat(l.inputValue,'? Add "').concat(l.inputValue,'"')})),t&&0===t.length&&i.state.loading?[{display_name:"Loading please wait..."}]:t},getOptionLabel:function(e){return"keyword"===i.props.field_type?e.keyword?e.keyword:e:e.service_offered?e.service_offered:e},renderInput:function(e){return(0,j.jsx)(m.Z,(0,a.Z)((0,a.Z)({},e),{},{required:i.props.required,label:i.props.label,help_text:i.props.help_text,placeholder:i.props.placeholder||"",variant:"outlined",onChange:function(e){i.getOptions(e.target.value,l)},InputProps:(0,a.Z)((0,a.Z)({},e.InputProps),{},{endAdornment:(0,j.jsxs)(u.Fragment,{children:[i.state.loading?(0,j.jsx)(f.Z,{color:"inherit",size:20}):null,e.InputProps.endAdornment]})})}))},renderOption:function(e,l){var t=l.inputValue;if(e.display_name){var a=R()(e.display_name,t);return y()(e.display_name,a).map((function(e,l){return(0,j.jsxs)("span",{style:{fontWeight:e.highlight?700:400},children:[e.highlight?"\xa0":"",e.text]},l)}))}var n=R()(e.keyword||e.service_offered,t),i=y()(e.keyword||e.service_offered,n);return(0,j.jsx)("div",{children:(e.keyword||e.service_offered)&&(0,j.jsx)("div",{children:i.map((function(e,l){return(0,j.jsx)("span",{style:{fontWeight:e.highlight?700:400},children:e.text},l)}))})})}})})},i.state={stateObj:i.props.defaultValueObj?i.props.defaultValueObj:{en:""},errorObj:{en:""},options:[],loading:!1,source:null},i}
1return(0,i.Z)(t,[{key:"componentWillUnmount",value:function(){this.state.source&&this.state.source.cancel("")}},{key:"render",value:function(){var e=this,l=this.props,t=l.help_text,a=l.className,n=l.disable,i=Object.keys(this.state.stateObj)||["en"],r=[];return(0,j.jsx)("div",{onBlur:this.onBlur,children:i.map((function(l,i){return r.push(l),(0,j.jsxs)("div",{className:"inline--container",children:[(0,j.jsx)("span",{className:"wd-100",children:e.autocompleteTextField(e.state.stateObj[l]||"",l)}),(0,j.jsx)("span",{className:"pl10 wd-60",children:(0,j.jsx)(x.Z,{className:a,showHelpText:!!t,lang:l,languageIndex:i,disable:n,setValues:e.setValues,disabledLanguagesArray:r})}),0===i&&(0,j.jsx)(d.Z,{disabled:n,onClick:function(l){e.setValues(l,i,"addLanguage")},children:(0,j.jsx)(Z.ZP,{title:w.Z.multilingual_elements_add_icon_hover,children:(0,j.jsx)(E.r,{className:"small-icon"})})}),"en"!==l&&(0,j.jsx)(d.Z,{disabled:n,onClick:function(t){e.setValues(t,i,"removeLanguage",l)},children:(0,j.jsx)(Z.ZP,{title:w.Z.multilingual_elements_remove_icon_hover,children:(0,j.jsx)(F.r,{className:"small-icon"})})})]},i)}))})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{stateObj:e.defaultValueObj?e.defaultValueObj:{en:""},errorObj:{en:""}}}}]),t}(u.Component),z=t(21144),C=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var a;return(0,n.Z)(this,t),(a=l.call(this,e)).setValues=function(e,l,t){var n=a.state.stateArray;switch(e.target.name||t){case"addArrayItem":if(n.filter((function(e){return Object.values(e)[0]})).length!==n.length)return;if(n.filter((function(e){return Object.keys(e)[0]})).length!==n.length)return;n.push({en:""});break;case"removeArrayItem":n.splice(l,1);break;default:return}a.setState({stateArray:n},a.onBlur)},a.setLanguageSpecificText=function(e,l){if(null!==l){var t=a.state.stateArray;t[e]=l,a.setState({stateArray:t}),a.onBlur()}},a.onBlur=function(){if(a.state.stateArray&&1===a.state.stateArray.length){var e=a.state.stateArray[0];if(e&&e.hasOwnProperty("en")&&!e.en)return void a.props.setLanguageSpecifictextList(a.props.field,null)}a.props.setLanguageSpecifictextList(a.props.field,a.state.stateArray)},a.state={stateArray:a.props.default_valueArray||[],errorArray:[]},a}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.label,n=l.help_text,i=this.state.stateArray;return 0===i.length&&i.push({en:""}),(0,j.jsxs)("div",{className:"mb1",children:[(0,j.jsxs)(s.Z,{variant:"h3",className:"section-links",children:[t," "]}),(0,j.jsxs)(s.Z,{className:"section-links",children:[n," "]}),i.map((function(l,t){return(0,j.jsxs)("div",{onBlur:e.onBlur,className:"multiple",children:[""!==l.en&&(0,j.jsx)(z.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,j.jsx)(z.Z,{item:!0,children:(0,j.jsx)(d.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValues(l,t,"removeArrayItem")},children:"Remove"})})}),""===l.en&&0!==t&&(0,j.jsx)(z.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-end",alignItems:"baseline",children:(0,j.jsx)(z.Z,{item:!0,children:(0,j.jsx)(d.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValues(l,t,"removeArrayItem")},children:"Remove"})})}),(0,j.jsx)(z.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:(0,j.jsx)(z.Z,{item:!0,xs:12,children:(0,j.jsx)(O,(0,a.Z)((0,a.Z)({},e.props),{},{help_text:"",defaultValueObj:l,field:t,setLanguageSpecificText:e.setLanguageSpecificText}))})}),""!==l.en&&i.length-1===t?(0,j.jsx)(z.Z,{container:!0,className:"pb1",direction:"row",justifyContent:"flex-start",alignItems:"baseline",children:(0,j.jsx)(z.Z,{item:!0,children:(0,j.jsx)(d.Z,{className:"inner-link-default--purple",onClick:function(l){return e.setValues(l,t,"addArrayItem")},children:"Add"})})}):(0,j.jsx)("div",{style:{paddingBottom:"1em"}})]},t)}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{stateArray:e.default_valueArray||[],errorArray:[]}}}]),t}(u.Component)},39052:function(e,l,t){t.d(l,{Z:function(){return R}});var a=t(4942),n=t(15671),i=t(43144),r=t(60136),o=t(29388),u=t(47313),s=t(20337),d=t(33725),c=t(5745),_=t(5817),b=t(34882),m=t(74700),f=t(57009),p=t(68144),h=t(44459),g=t.n(h),y=t(46417),v={removePlugins:["Title","FontSize","FontFamily","FontBackgroun
1dColor","Superscript","MediaEmbedToolbar","ImageToolbar","CloudServices","MathType","PageBreak","PasteFromOffice","TodoList"],toolbar:{items:["heading","bold","italic","underline","strikethrough","subscript","blockQuote","link","|","insertTable","|","undo","redo","|","numberedList","bulletedList","outdent","indent","|","code","codeBlock","|"]},shouldNotGroupWhenFull:!0,link:{addTargetToExternalLinks:!0},codeBlock:{languages:[{language:"plaintext",label:"Plain text"},{language:"diff",label:"Diff"},{language:"python",label:"Python"},{language:"xml",label:"XML"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"}]}},R=function(e){(0,r.Z)(t,e);var l=(0,o.Z)(t);function t(e){var i;return(0,n.Z)(this,t),(i=l.call(this,e)).onChangeInEditor=function(e,l,t,a,n){var r=l.getData(),o=i.state.stateObj;o[a]=r,i.setState({stateObj:o})},i.setValues=function(e,l,t,n,r){var o=i.state.stateObj;switch(e.target.name||t){case"changeLanguage":if(Object.keys(o).includes(n))return;var u=r.key;delete Object.assign(o,(0,a.Z)({},n,o[u]))[u];break;case"addLanguage":if(Object.values(o).filter((function(e){return e})).length!==Object.values(o).length)return;if(Object.keys(o).filter((function(e){return e})).length!==Object.keys(o).length)return;o[""]="";break;case"removeLanguage":delete o[n];break;default:return}i.setState({stateObj:o})},i.onBlur=function(){var e=i.state.errorObj;i.props.required&&Object.keys(i.state.stateObj).forEach((function(l){return i.state.stateObj[l]?e[l]="":e[l]="Required field"})),i.state.stateObj.en?(i.props.setLanguageSpecificText(i.props.field,i.state.stateObj),i.props.onDescriptionChange()):i.props.setLanguageSpecificText(i.props.field,null)},i.state={stateObj:i.props.defaultValueObj?i.props.defaultValueObj:{en:""},errorObj:{en:""}},i}return(0,i.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.label,a=l.help_text,n=l.className,i=l.disable,r=Object.keys(this.state.stateObj)||["en"],o=[];return(0,y.jsxs)("div",{onBlur:this.onBlur,children:[(0,y.jsxs)(f.Z,{variant:"h3",className:"section-links",children:[this.props.label," "]}),r.map((function(l,r){return o.push(l),(0,y.jsxs)("div",{className:"inline--container",children:[(0,y.jsx)("span",{className:"wd-100",children:(0,y.jsx)(p.CKEditor,{editor:g(),id:"".concat(t,"-").concat(l,"-").concat(r),config:v,data:e.state.stateObj[l]||"",onReady:function(e){},onChange:function(t,a){return e.onChangeInEditor(t,a,r,l)}})}),(0,y.jsx)("span",{className:"pl10 wd-60",children:(0,y.jsx)(_.Z,{className:n,showHelpText:!!a,lang:l,languageIndex:r,disable:i,setValues:e.setValues,disabledLanguagesArray:o})}),0===r&&(0,y.jsx)(s.Z,{disabled:i,onClick:function(l){e.setValues(l,r,"addLanguage")},children:(0,y.jsx)(b.ZP,{title:m.Z.multilingual_elements_add_icon_hover,children:(0,y.jsx)(d.r,{className:"small-icon"})})}),"en"!==l&&(0,y.jsx)(s.Z,{disabled:i,onClick:function(t){e.setValues(t,r,"removeLanguage",l)},children:(0,y.jsx)(b.ZP,{title:m.Z.multilingual_elements_remove_icon_hover,children:(0,y.jsx)(c.r,{className:"small-icon"})})})]},r)}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{stateObj:e.defaultValueObj?e.defaultValueObj:{en:""},errorObj:{en:""}}}}]),t}(u.Component)},97903:function(e,l,t){t.d(l,{Z:function(){return F}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(21144),s=t(72728),d=t(48242),c=t.n(d),_=t(31881),b=t.n(_),m=t(95761),f=(t(21504),t(11409)),p=t(8512),h=t(7531),g=t.n(h),y=t(46417);(0,m.fo)(g());var v=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).handleUpdate=function(e){n.setState({image:e.length?e[0].file:null})},n.processS3Upload=function(e,l,t,a,i,r,o,u,s){(new FormData).append("file",l,l.name);var d=b().CancelToken.source();return b().put(f.TZ,l,{headers:{"Content-Type":l.type?l.type:"image/jpeg",Authorization:(0,f.PW)(n.props.keycloak),"ELG-RESOURCE-ID":n.props.model&&n.props.model.pk?n.props.model.pk:0,scope:"public",filetype:"image","x-amz-acl":"public-read",filename:encodeURI(l.name)},cancelToken:d.token,progress:function(e){r(e.lengthComputable,e.loaded,e.total)}}).then((function(e){a(),n.setState({image:null}),n.handleS3Proxy(e)})).catch((function(e){console.log("error, ",e),b().isCancel(e)&&console.log("Request canceled",e.message),n.handleS3ProxyError(e)})),{abort:function(){d.cancel("Operation canceled by the user."),o()}}},n.handleS3Proxy=function(e){p.Am.success("File has been successfully uploaded.",{autoClose:3500});var l=e.headers,t=void 0===l?"":l,a=t&&t.location||"";n.props.setlogo(a)},n.handleS3ProxyError=function(e){p.Am.error("File upload failed.",{autoClose:3500}),console.log(JSON.stringify(e))},n.state={image:null},n.pond=o.createRef(),n}return(0,n.Z)(t,[{key:"render",value:function(){var e=this;return(0,y.jsx)(m.Q9,{credits:!1,stylePanelLayout:"compact",acceptedFileTypes:["image/*"],ref:this.pond,files:this.state.image,name:"file",allowMultiple:!1,allowDrop:!1,labelIdle:'<span class="filepond--label-action"> Browse </span>',server:{url:f.TZ,process:function(l,t,a,n,i,r,o,u,s){return e.processS3Upload(l,t,a,n,i,r,o,u,s)},revert:null,load:null,restore:null,fetch:null}})}}]),t}(o.Component),R=t(20337),q=t(57009),E={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!0,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,host_whitelist:!1,host_blacklist:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,disallow_auth:!1},F=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).setlogo=function(e){n.setState({logo:e,error:!1})},n.setPastelogo=function(e){n.setState({logo:e,error:!1}),n.props.updateModel_logo(n.props.field,e)},n.setLogoS3=function(e){n.setState({logo:e,error:!1}),n.props.updateModel_logo(n.props.field,e)},n.removeLogo=function(){n.setState({logo:"",error:!1}),n.props.updateModel_logo(n.props.field,"")},n.blur=function(){var e=n.state.logo;if(e){var l=!c().isURL(e||"",E);n.setState({error:l})}""===e?n.props.updateModel_logo(n.props.field,""):n.props.updateModel_logo(n.props.field,n.state.logo)},n.state={logo:e.logo,error:!1},n}
1return(0,n.Z)(t,[{key:"componentDidMount",value:function(){var e=this.state.logo;if(e){var l=!c().isURL(e||"",E);this.setState({error:l})}else this.setState({error:!1})}},{key:"render",value:function(){var e=this,l=this.props,t=l.type,a=l.required,n=l.label,i=l.help_text,r=l.className,o=l.disable,d=l.placeholder,c=this.state,_=c.logo,b=c.error;return(0,y.jsxs)("div",{className:"mb2",onBlur:function(){e.blur()},children:[(0,y.jsx)("span",{children:!(_.includes("https://s3.dbl.cloud.syseleven.net")||_.includes("https://s3.cbk.cloud.syseleven.net/"))&&(0,y.jsxs)(u.Z,{container:!0,spacing:1,alignItems:"center",children:[(0,y.jsx)(u.Z,{item:!0,xs:8,children:(0,y.jsx)(s.Z,{className:r,type:t,error:!!b,required:a,disabled:o,label:n,placeholder:d||"",variant:"outlined",helperText:b?"".concat("Enter a valid url, e.g. https://www.example.com \n"):i,inputProps:{name:"logoValue"},value:_,onChange:function(l){return e.setlogo(l.target.value)},onBlur:function(l){return e.blur()},onPaste:function(l){return e.setPastelogo(l.clipboardData.getData("Text"))}})}),(0,y.jsx)(u.Z,{item:!0,xs:4,children:(0,y.jsx)(v,{keycloak:this.props.keycloak,model:this.props.model,setlogo:this.setLogoS3})})]})}),_&&(0,y.jsxs)(u.Z,{container:!0,spacing:1,justifyContent:"flex-start",alignItems:"center",children:[(0,y.jsx)(u.Z,{item:!0,xs:12,children:(0,y.jsx)("span",{children:(0,y.jsx)("img",{width:"10%",src:_,alt:""})})}),(_.includes("https://s3.dbl.cloud.syseleven.net")||_.includes("https://s3.cbk.cloud.syseleven.net/"))&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u.Z,{item:!0,children:(0,y.jsx)(q.Z,{className:"section-links",children:n})}),(0,y.jsx)(u.Z,{item:!0,xs:12,children:(0,y.jsx)(R.Z,{className:"inner-link-default--purple",onClick:function(l){return e.removeLogo()},children:"Remove"})})]})]})]})}}]),t}(o.Component)},65622:function(e,l,t){t.d(l,{Z:function(){return m}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(25734),s=t(6085),d=t(73002),c=t(2297),_=t(10367),b=t(46417),m=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(){return(0,a.Z)(this,t),l.apply(this,arguments)}return(0,n.Z)(t,[{key:"render",value:function(){var e=this,l=this.props,t=l.required,a=l.label,n=l.help_text,i=l.default_value,r=void 0===i?"":i,o=l.choices,m=l.className,f=l.disabled,p=void 0!==f&&f,h=o.filter((function(e){return e.value===r})).length>0?o.filter((function(e){return e.value===r}))[0].display_name:"";return"unspecified"!==h&&(o=o.filter((function(e){return e&&e.value!==_.vF}))),(0,b.jsx)("div",{children:(0,b.jsx)("span",{children:(0,b.jsxs)(s.Z,{variant:"outlined",required:t,className:m,children:[(0,b.jsx)(c.Z,{htmlFor:"select-native-simple",children:a}),(0,b.jsxs)(d.Z,{disabled:p,native:!0,value:h,onChange:function(l){e.props.setSelectedvalue(l,o.filter((function(e){return e.display_name===l.target.value})),e.props.field,e.props.lr_subclass)},label:a,inputProps:{name:"value"},children:[(0,b.jsx)("option",{"aria-label":"None",value:""}),o.map((function(e,l){return(0,b.jsx)("option",{value:e.display_name,children:e.display_name},l)}))]}),(0,b.jsx)(u.Z,{children:n})]})})})}}]),t}(o.Component)},72822:function(e,l,t){t.d(l,{Z:function(){return f}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(49998),s=t(12037),d=t(54070),c=t(80458),_=t(3847),b=t(31648),m=t(46417),f=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).DescriptionMinLengthInfo=function(e){e.push((0,m.jsx)("div",{className:"mt1",children:"Please, add a longer description (more than 50 characters)"}))},n.state={open:!0},n}return(0,n.Z)(t,[{key:"render",value:function(){var e=this,l=[],t=this.props.showWarning;return this.DescriptionMinLengthInfo(l),(0,m.jsx)(m.Fragment,{children:t&&(0,m.jsxs)("div",{children:[(0,m.jsx)(c.Z,{in:this.state.open,children:(0,m.jsxs)(u.Z,{severity:"warning",action:(0,m.jsx)(d.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){e.setState({open:!1})},children:(0,m.jsx)(_.Z,{})}),children:[(0,m.jsx)(s.Z,{children:"Warning"}),(0,m.jsx)("ol",{children:l.length>0&&l.map((function(e,l){return(0,m.jsx)("span",{children:e},l)}))})]})}),!this.state.open&&(0,m.jsx)(b.Z,{onClick:function(l){e.setState({open:!0})}})]})})}}]),t}(o.Component)},54817:function(e,l,t){t.d(l,{Z:function(){return R}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(63830),s=t(49998),d=t(12037),c=t(54070),_=t(80458),b=t(3847),m=t(21303),f=t(74700),p=t(96083),h=t(31648),g=t(46417),y=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).getRequired=function(e,l){if(!l||0===l.length)return e;e.push((0,g.jsxs)("div",{children:["The following elements are required in order for you to be able to submit your record:",l.map((function(e){return(0,g.jsx)("span",{children:(0,g.jsx)(p.Z,{size:"small",label:e,className:"ChipTagLicence"})},e)}))]}))},n.saveDraftInfo=function(e){e.push((0,g.jsx)("div",{className:"mt1",children:"At any point you are able to save your progress as draft and continue editing at a later time"})),e.push((0,g.jsx)("div",{className:"mt1",children:"Once you submit your record you will not be able to save it as draft any more, but you will still be able to make changes and submit them."})),e.push((0,g.jsx)("div",{className:"mt1",children:"Visit all tabs in order to fill in as much information as possible for better visibility of your record."})),!n.props.hide_under_construction&&e.push((0,g.jsx)("div",{className:"mt1",children:'If the metadata record is for a resource that you plan to deliver later, please check the "work in progress" box.'}))},n.state={open:!0},n}return(0,n.Z)(t,[{key:"render",value:function(){var e=this,l=[],t=this.props.requiredFields;return this.getRequired(l,t),this.saveDraftInfo(l),(0,g.jsxs)("div",{children:[(0,g.jsx)(_.Z,{in:this.state.open,children:(0,g.jsxs)(s.Z,{severity:"info",action:(0,g.jsx)(c.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){e.setState({open:!1})},children:(0,g.jsx)(b.Z,{})}),children:[(0,g.jsx)(d.Z,{children:"Info"}),(0,g.jsx)("ol",{children:l.length>0&&l.map((function(e,l){return(0,g.jsx)("li",{children:e},l)}))})]})}),!this.state.open&&(0,g.jsx)(h.Z,{onClick:function(l){e.setState({open:!0})}})]})}}]),t}(o.Component),v=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).clickHanlder=function(e){var l=n.props.location.pathname,t=void 0===l?"":l;(t.toLowerCase().includes("/create/corpus")||t.toLowerCase().includes("/create/service")||t.toLowerCase().includes("/create/lexical_conceptual_resource")||t.toLowerCase().includes("/create/language_description"))&&n.props.handleYupErrorClick(e)},n.state={open:!0},n}return(0,n.Z)(t,[{key:"render",value:function(){var e=this,l=this.props.yupError;return!l||l&&l.errors&&0===l.errors.length?(0,g.jsx)(y,{requiredFields:this.props.requiredFields||[],hide_under_construction:this.props.hide_under_construction}):(0,g.jsxs)("div",{children:[(0,g.jsx)(_.Z,{in:this.state.open,children:(0,g.jsxs)(s.Z,{severity:"error",action:(0,g.jsx)(c.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){e.setState({open:!1})},children:(0,g.jsx)(b.Z,{})}),children:[(0,g.jsx)(d.Z,{children:f.Z.dialog_foundValidationError}),(0,g.jsx)("ol",{children:l&&l.errors&&l.errors.map((function(l,t){return(0,g.jsx)("li",{onClick:function(){e.clickHanlder(l)},className:"yup-error-link",children:(0,g.jsx)("h5",{style:{color:"Tomato"},children:(0,g.jsx)("div",{dangerouslySetInnerHTML:{__html:l}})})},t)}))})]})}),!this.state.open&&(0,g.jsx)("span",{style:{backgroundColor:"red"},children:(0,g.jsx)(m.Z,{onClick:function(l){e.setState({open:!0})}})})]})}}]),t}(o.Component),R=(0,u.EN)(v)},37930:function(e,l,t){t.d(l,{Z:function(){return g}});var a=t(15671),n=t(43144),i=t(60136),r=t(29388),o=t(47313),u=t(72728),s=t(20337),d=t(33725),c=t(5745),_=t(48242),b=t.n(_),m=t(21144),f=t(46417),p="Enter a valid website e.g. https://www.example.com \n",h={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!0,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,host_whitelist:!1,host_blacklist:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,disallow_auth:!1},g=function(e){(0,i.Z)(t,e);var l=(0,r.Z)(t);function t(e){var n;return(0,a.Z)(this,t),(n=l.call(this,e)).setWebsite=function(e,l,t){var a=n.state.errorArray,i=n.state.websiteArray;switch(e.target.name||t){case"websiteValue":i[l]=e.target.value;break;case"addWebsite":if(i.filter((function(e){return e})).length<i.length)return;i.push(""),a.push("");break;case"removeWebsite":return i.splice(l,1),a.splice(l,1),void n.setState({websiteArray:i,errorArray:a},n.blur)}n.setState({websiteArray:i,errorArray:a,stopWriting:!1})},n.blur=function(e,l){var t=n.state.errorArray,a=n.state.websiteArray,i=b().isURL(a[l]||"",h);t[l]=!i,n.setState({errorArray:t,stopWriting:!0});var r=a.filter((function(e){return e}));a.length,n.props.updateModel_website(null!==n.props.field&&void 0!==n.props.field?n.props.field:"website",r)},n.state={websiteArray:e.default_value_Array||[],errorArray:[],stopWriting:!0},n}
1return(0,n.Z)(t,[{key:"componentDidMount",value:function(){for(var e=this.state.errorArray,l=this.state.websiteArray,t=0;t<l.length;t++){var a=b().isURL(l[t]||"",h);e[t]=!a}this.setState({errorArray:e,stopWriting:!0})}},{key:"render",value:function(){var e=this,l=this.props,t=l.type,a=l.required,n=l.label,i=l.help_text,r=l.className,o=l.disable,_=l.placeholder,g=this.state.websiteArray,y=g[0]||"",v=!!y&&!b().isURL(y||"",h);return(0,f.jsxs)("div",{children:[(0,f.jsxs)(m.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,f.jsx)(m.Z,{item:!0,xs:11,children:(0,f.jsx)(u.Z,{className:r,type:t,error:v&&this.state.stopWriting,required:a,disabled:o,label:n,placeholder:_||"",variant:"outlined",helperText:v&&this.state.stopWriting?"".concat(p):i,inputProps:{name:"websiteValue"},value:y,onChange:function(l){return e.setWebsite(l,0)},onBlur:function(l){return e.blur(l,0)}})}),(0,f.jsx)(m.Z,{item:!0,xs:1,children:!o&&(0,f.jsx)(s.Z,{disabled:o,onClick:function(l){return e.setWebsite(l,0,"addWebsite")},children:(0,f.jsx)(d.r,{className:"small-icon"})})})]}),g.map((function(l,d){if(0===d)return(0,f.jsx)("div",{},d);var g=!!l&&!b().isURL(l||"",h);return(0,f.jsxs)(m.Z,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"baseline",children:[(0,f.jsx)(m.Z,{item:!0,xs:11,className:"pt1",children:(0,f.jsx)(u.Z,{className:r,type:t,error:g&&e.state.stopWriting,required:a,disabled:o,label:n,placeholder:_||"",variant:"outlined",helperText:g&&e.state.stopWriting?"".concat(p):i,inputProps:{name:"websiteValue"},value:l,onChange:function(l){return e.setWebsite(l,d)},onBlur:function(l){return e.blur(l,d)}})},d),!o&&(0,f.jsxs)(m.Z,{item:!0,xs:1,children:[" ",(0,f.jsx)(s.Z,{disabled:o,onClick:function(l){return e.setWebsite(l,d,"removeWebsite")},children:(0,f.jsx)(c.r,{className:"small-icon"})})]})]},d)}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,l){return{websiteArray:e.default_value_Array||[],stopWriting:!0,errorArray:[]}}}]),t}(o.Component)},61414:function(e,l,t){t.d(l,{Z:function(){return s}});var a=t(1413),n=t(45987),i=(t(47313),t(86571)),r=t(57009),o=t(46417),u=["children","value","index"];function s(e){var l=e.children,t=e.value,s=e.index,d=(0,n.Z)(e,u);return(0,o.jsx)(r.Z,(0,a.Z)((0,a.Z)({component:"div",role:"tabpanel",hidden:t!==s,id:"vertical-tabpanel-".concat(s),"aria-labelledby":"vertical-tab-".concat(s)},d),{},{children:t===s&&(0,o.jsx)(i.Z,{p:3,children:l})}))}},24602:function(e,l,t){var a=t(43144),n=t(15671),i=new((0,a.Z)((function e(){var l=this;(0,n.Z)(this,e),this.getFormElement=function(e,t){if("field"===t.type||"url"===t.type){var a=t.max_length?t.max_length:"",n=!!t.recommended&&t.recommended,i=!!t.placeholder&&t.placeholder,r=t.help_text,o=t.label,u=t.required,s=t.read_only,d=t.type;if(!t.child)return{help_text:r,label:o,required:u,read_only:s,type:d,max_length:a,recommended:n,placeholder:i};if("nested object"===t.child.type)return{help_text:r,label:o,required:u,read_only:s,type:d,max_length:a,recommended:n,formElements:l.readNestedObject(t.child.children),placeholder:i}}if("date"===t.type)return{help_text:t.help_text,label:t.label,required:t.required,read_only:t.read_only,type:t.type,recommended:!!t.recommended&&t.recommended,placeholder:!!t.placeholder&&t.placeholder};if("float"===t.type)return{help_text:t.help_text,label:t.label,required:t.required,read_only:t.read_only,type:t.type,recommended:!!t.recommended&&t.recommended,placeholder:!!t.placeholder&&t.placeholder};if("email"===t.type){var c=t.help_text,_=t.label,b=t.required,m=t.read_only,f=t.type,p=!!t.recommended&&t.recommended,h=!!t.placeholder&&t.placeholder;return{help_text:c,label:_,required:b,read_only:m,type:f,max_length:t.max_length?t.max_length:"",recommended:p,placeholder:h}}if("integer"===t.type)return{label:t.label,required:t.required,read_only:t.read_only,type:t.type};if("string"===t.type){var g=t.label,y=t.required,v=t.read_only,R=t.type;return{help_text:t.help_text?t.help_text:"",label:g,required:y,read_only:v,type:R,placeholder:!!t.placeholder&&t.placeholder,choices:t.recommended_choices?t.recommended_choices:[]}}if("choice"===t.type)return{help_text:t.help_text,label:t.label,required:t.required,read_only:t.read_only,type:t.type,choices:t.choices,recommended:!!t.recommended&&t.recommended,placeholder:!!t.placeholder&&t.placeholder};if("nested object"===t.type){var q=t.help_text,E=t.label,F=t.required,x=t.read_only,Z=t.type,w=!!t.recommended&&t.recommended,j=!!t.placeholder&&t.placeholder;return{help_text:q,label:E,required:F,read_only:x,type:Z,recommended:w,formElements:l.readNestedObject(t.children),placeholder:j}}if("list"===t.type){var I=t.help_text,O=t.label,z=t.required,C=t.read_only,X=t.type,k=!!t.recommended&&t.recommended,N=!!t.placeholder&&t.placeholder;if("choice"===t.child.type)return{help_text:I,label:O,required:z,read_only:C,type:X,choices:t.child.choices,recommended:k,placeholder:N};if("field"===t.child.type)return{help_text:I,label:O,required:z,type:X,read_only:C,max_length:t.child.max_length?t.child.max_length:"",recommended:k,placeholder:N};if("string"===t.child.type){var U=t.child.required,S=t.child.max_length?t.child.max_length:"",P=!!t.child.recommended&&t.child.recommended,A=!!t.placeholder&&t.placeholder;return{help_text:I,label:O,required:z,read_only:C,type:X,child_required:U,max_length:S,child_recommended:P,choices:t.child.recommended_choices?t.child.recommended_choices:[],placeholder:A}}if("email"===t.child.type||"url"===t.child.type||"website"===t.child.type){var Q=t.child.max_length?t.child.max_length:"";return{help_text:I,label:O,required:z,read_only:C,type:X,child_required:t.child.required,max_length:Q,child_recommended:!!t.child.recommended&&t.child.recommended,placeholder:N}}}return"boolean"===t.type?{help_text:t.help_text,label:t.label,required:t.required,read_only:t.read_only,type:t.type,recommended:!!t.recommended&&t.recommended,placeholder:!!t.placeholder&&t.placeholder}:void 0},this.readNestedObject=function(e){var t={};return Object.keys(e).map((function(a,n){t[a]=l.getFormElement(a,e[a])})),t},this.getFormElement=this.getFormElement.bind(this),this.readNestedObject=this.readNestedObject.bind(this)})));l.Z=i}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.