@plone/volto 15.1.1 → 15.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ (window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[7],{"+ArM":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill="currentColor" fill-rule="evenodd"><path d="M6.9996,3.0003 L6.9996,33.0003 L29.0006,33.0003 L29.0006,11.5863 L20.4136,3.0003 L6.9996,3.0003 Z M9.0006,5.0003 L19.0006,5.0003 L19.0006,13.0003 L27.0006,13.0003 L27.0006,31.0003 L9.0006,31.0003 L9.0006,5.0003 Z M20.9996,6.4143 L25.5856,11.0003 L20.9996,11.0003 L20.9996,6.4143 Z"/><path d="M11 27L25 27 25 25 11 25zM11 23L25 23 25 21 11 21zM11 19L18 19 18 17 11 17z"/></g>'}},"+BpV":function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("QkVN"),a=s.n(i),o=s("NIJN"),l=s.n(o),c=s("q1tI"),d=(s("17x9"),s("/MKj")),p=s("ANjH"),u=s("lHu7"),h=s("zSVi"),b=s("9At1"),j=s("Kvkj"),m=s("nKUr");const g=Object(u.defineMessages)({renameItems:{id:"Rename items",defaultMessage:"Rename items"},default:{id:"Default",defaultMessage:"Default"},title:{id:"Title",defaultMessage:"Title"},shortName:{id:"Short name",defaultMessage:"Short name"},shortNameDescription:{id:"This name will be displayed in the URL.",defaultMessage:"This name will be displayed in the URL."},loadingMessage:{id:"Rename Items Loading Message",defaultMessage:"Renaming items..."}});class f extends c.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this)}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.props.onOk()}onSubmit(e){this.props.updateContent(r()(this.props.items,e=>e.url),r()(this.props.items,(t,s)=>({id:e[s+"_id"],title:e[s+"_title"]})))}render(){return this.props.open&&Object(m.jsx)(j.vb,{open:this.props.open,loading:this.props.request.loading,loadingMessage:this.props.intl.formatMessage(g.loadingMessage),onSubmit:this.onSubmit,onCancel:this.props.onCancel,formData:a()(...r()(this.props.items,(e,t)=>({[t+"_title"]:e.title,[t+"_id"]:e.id}))),title:this.props.intl.formatMessage(g.renameItems),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(g.default),fields:l()(...r()(this.props.items,(e,t)=>[t+"_title",t+"_id"]))}],properties:a()(...r()(this.props.items,(e,t)=>({[t+"_title"]:{title:this.props.intl.formatMessage(g.title),type:"string",description:""},[t+"_id"]:{title:this.props.intl.formatMessage(g.shortName),type:"id",description:this.props.intl.formatMessage(g.shortNameDescription)}}))),required:[]}})}}t.a=Object(p.compose)(h.c,Object(d.connect)(e=>({request:e.content.update}),{updateContent:b.vb}))(f)},"+H0P":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("17x9"),l=s.n(o),c=s("ezNy"),d=s("5XkN"),p=s("QetY"),u=s("lHts"),h=s.n(u),b=s("zSVi"),j=s("DQaE"),m=s.n(j),g=s("Kvkj"),f=s("MKeS"),O=s("zpb6"),v=s("lHu7"),y=s.n(v),x=s("52Oh"),w=s("nKUr"),C=s.n(w);function S(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function M(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?S(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):S(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const k=["image/png","image/jpeg","image/webp","image/jpg","image/gif","image/svg+xml"],N=Object(f.a)({resolved:{},chunkName:()=>"react-dropzone",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(20).then(s.bind(null,"yzbm")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yzbm"}}),P=Object(v.defineMessages)({releaseDrag:{id:"Drop files here ...",defaultMessage:"Drop files here ..."},editFile:{id:"Drop file here to replace the existing file",defaultMessage:"Drop file here to replace the existing file"},fileDrag:{id:"Drop file here to upload a new file",defaultMessage:"Drop file here to upload a new file"},replaceFile:{id:"Replace existing file",defaultMessage:"Replace existing file"},addNewFile:{id:"Choose a file",defaultMessage:"Choose a file"}}),L=e=>{const{id:t,value:s,onChange:n}=e,[r,i]=a.a.useState(!1),o=Object(x.a)();a.a.useEffect(()=>{s&&k.includes(s["content-type"])&&i(!0)},[s]);const l=null!==s&&void 0!==s&&s.download?`${Object(O.q)(null===s||void 0===s?void 0:s.download)}?id=${Date.now()}`:null!==s&&void 0!==s&&s.data?`data:${s["content-type"]};${s.encoding},${s.data}`:null;return Object(w.jsxs)(g.db,M(M({},e),{},{children:[Object(w.jsx)(N,{onDrop:e=>{const s=e[0];Object(u.readAsDataURL)(s).then(e=>{const r=e.match(/^data:(.*);(.*),(.*)$/);n(t,{data:r[3],encoding:r[2],"content-type":r[1],filename:s.name})});let r=new FileReader;r.onload=function(){const e=r.result.match(/^data:(.*);(.*),(.*)$/);if(k.includes(e[1])){i(!0),document.getElementById(`field-${t}-image`).src=r.result}else i(!1)},r.readAsDataURL(e[0])},children:({getRootProps:e,getInputProps:n,isDragActive:i})=>Object(w.jsxs)("div",M(M({className:"file-widget-dropzone"},e()),{},{children:[i&&Object(w.jsx)(c.a,{active:!0}),r?Object(w.jsx)(d.a,{className:"image-preview",id:`field-${t}-image`,size:"small",src:l}):Object(w.jsx)("div",{className:"dropzone-placeholder",children:i?Object(w.jsx)("p",{className:"dropzone-text",children:o.formatMessage(P.releaseDrag)}):s?Object(w.jsx)("p",{className:"dropzone-text",children:o.formatMessage(P.editFile)}):Object(w.jsx)("p",{className:"dropzone-text",children:o.formatMessage(P.fileDrag)})}),Object(w.jsx)("label",{className:"label-file-widget-input",children:s?o.formatMessage(P.replaceFile):o.formatMessage(P.addNewFile)}),Object(w.jsx)("input",M(M({},n({type:"file",style:{display:"none"}})),{},{id:"field-"+t,name:t,type:"file"}))]}))}),Object(w.jsxs)("div",{className:"field-file-name",children:[s&&s.filename,s&&Object(w.jsx)(p.a,{icon:!0,basic:!0,className:"delete-button","aria-label":"delete file",onClick:()=>{n(t,null),i(!1)},children:Object(w.jsx)(g.jb,{name:m.a,size:"20px"})})]})]}))};L.defaultProps={description:null,required:!1,error:[],value:null},t.a=Object(b.c)(L)},"+IA5":function(e,t,s){"use strict";s("q1tI");var n=s("lHu7"),r=s("52Oh"),i=s("nKUr");const a=Object(n.defineMessages)({mainView:{id:"skiplink-main-content",defaultMessage:"Skip to main content"},navigation:{id:"skiplink-navigation",defaultMessage:"Skip to navigation"},footer:{id:"skiplink-footer",defaultMessage:"Skip to footer"}});t.a=()=>{const e=Object(r.a)();return Object(i.jsxs)("div",{className:"skiplinks-wrapper",role:"complementary","aria-label":"skiplinks",children:[Object(i.jsx)("a",{className:"skiplink",href:"#view",children:e.formatMessage(a.mainView)}),Object(i.jsx)("a",{className:"skiplink",href:"#navigation",children:e.formatMessage(a.navigation)}),Object(i.jsx)("a",{className:"skiplink",href:"#footer",children:e.formatMessage(a.footer)})]})}},"+UCF":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("ANjH")),o=s("/MKj"),l=s("55Ip"),c=s("pLir"),d=s("D1pA"),p=s("GGqY"),u=s("lHu7"),h=s("24R3"),b=s("zSVi"),j=s("9At1"),m=s("zpb6"),g=s("Kvkj"),f=s("nKUr");const O=Object(u.defineMessages)({cut:{id:"Cut",defaultMessage:"Cut"},copy:{id:"Copy",defaultMessage:"Copy"},paste:{id:"Paste",defaultMessage:"Paste"},rename:{id:"Rename",defaultMessage:"Rename"},messageCopied:{id:"{title} copied.",defaultMessage:"{title} copied."},messageCut:{id:"{title} cut.",defaultMessage:"{title} cut."},messageDeleted:{id:"{title} has been deleted.",defaultMessage:"{title} has been deleted."},messagePasted:{id:"Item(s) pasted.",defaultMessage:"Item(s) pasted."},success:{id:"Success",defaultMessage:"Success"}});class v extends i.Component{constructor(e){super(e),this.cut=this.cut.bind(this),this.copy=this.copy.bind(this),this.paste=this.paste.bind(this),this.rename=this.rename.bind(this),this.onRenameOk=this.onRenameOk.bind(this),this.onRenameCancel=this.onRenameCancel.bind(this),this.state={showRename:!1}}onRenameOk(){this.setState({showRename:!1})}onRenameCancel(){this.setState({showRename:!1})}cut(){this.props.cut([Object(m.r)(this.props.pathname)]),p.toast.success(Object(f.jsx)(g.Ub,{success:!0,title:this.props.intl.formatMessage(O.success),content:this.props.intl.formatMessage(O.messageCut,{title:this.props.title})}))}copy(){this.props.copy([Object(m.r)(this.props.pathname)]),p.toast.success(Object(f.jsx)(g.Ub,{success:!0,title:this.props.intl.formatMessage(O.success),content:this.props.intl.formatMessage(O.messageCopied,{title:this.props.title})}))}paste(){"copy"===this.props.action&&this.props.copyContent(this.props.source,Object(m.r)(this.props.pathname)),"cut"===this.props.action&&this.props.moveContent(this.props.source,Object(m.r)(this.props.pathname)),p.toast.success(Object(f.jsx)(g.Ub,{success:!0,title:this.props.intl.formatMessage(O.success),content:this.props.intl.formatMessage(O.messagePasted)}))}rename(){this.setState({showRename:!0})}render(){return Object(f.jsx)(c.a,{item:!0,id:"toolbar-actions",trigger:Object(f.jsxs)("span",{children:[Object(f.jsx)(d.a,{name:"lightning",size:"big"})," ",Object(f.jsx)(h.a,{id:"Actions",defaultMessage:"Actions"})]}),children:Object(f.jsxs)(c.a.Menu,{children:[this.props.actions.object_buttons&&this.props.actions.object_buttons.map(e=>{switch(e.id){case"cut":return Object(f.jsx)(c.a.Item,{icon:"cut",text:e.title,onClick:this.cut},e.id);case"copy":return Object(f.jsx)(c.a.Item,{icon:"copy",text:e.title,onClick:this.copy},e.id);case"paste":return Object(f.jsx)(c.a.Item,{icon:"paste",text:e.title,onClick:this.paste,disabled:null===this.props.action},e.id);case"delete":return Object(f.jsxs)(l.a,{to:this.props.pathname+"/delete",className:"item",children:[Object(f.jsx)(d.a,{name:"trash"}),e.title]},e.id);case"rename":return Object(f.jsx)(c.a.Item,{icon:"text cursor",text:e.title,onClick:this.rename},e.id);default:return null}}),Object(f.jsx)(g.H,{open:this.state.showRename,onCancel:this.onRenameCancel,onOk:this.onRenameOk,items:[{url:this.props.pathname,title:this.props.title,id:this.props.id}]})]})})}}r()(v,"defaultProps",{action:null,actions:null,source:null});Object(a.compose)(b.c,Object(o.connect)(e=>({actions:e.actions.actions,action:e.clipboard.action,source:e.clipboard.source,id:e.content.data?e.content.data.id:"",title:e.content.data?e.content.data.title:""}),{cut:j.k,copy:j.e,copyContent:j.f,moveContent:j.Z}))(v)},"+s89":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s("zpb6"),o=s("/MKj"),l=s("ANjH"),c=s("lHu7"),d=s("zSVi"),p=(s("17x9"),s("Ty5D")),u=s("GGqY"),h=s("Kvkj"),b=s("9At1"),j=s("nKUr");const m=Object(c.defineMessages)({title:{id:"Registration form",defaultMessage:"Registration form"},default:{id:"Default",defaultMessage:"Default"},fullnameTitle:{id:"Full Name",defaultMessage:"Full Name"},fullnameDescription:{id:"Enter full name, e.g. John Smith.",defaultMessage:"Enter full name, e.g. John Smith."},emailTitle:{id:"E-mail",defaultMessage:"E-mail"},emailDescription:{id:"Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere.",defaultMessage:"Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere."},successRegisterCompletedTitle:{id:"Account Registration Completed",defaultMessage:"Account Registration Completed"},successRegisterCompletedBody:{id:"The registration process has been successful. Please check your e-mail inbox for information on how activate your account.",defaultMessage:"The registration process has been successful. Please check your e-mail inbox for information on how activate your account."},register:{id:"Register",defaultMessage:"Register"}});class g extends i.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this),this.state={error:null}}UNSAFE_componentWillReceiveProps(e){this.props.loading&&e.loaded&&(u.toast.success(Object(j.jsx)(h.Ub,{success:!0,title:this.props.intl.formatMessage(m.successRegisterCompletedTitle),content:this.props.intl.formatMessage(m.successRegisterCompletedBody)})),this.props.history.push("/login"))}onSubmit(e){this.props.createUser({fullname:e.fullname,email:e.email,password:e.password}),this.setState({error:null})}render(){return Object(j.jsxs)("div",{id:"page-register",children:[Object(j.jsx)(a.d,{title:this.props.intl.formatMessage(m.register)}),Object(j.jsx)(h.cb,{onSubmit:this.onSubmit,title:this.props.intl.formatMessage(m.title),error:this.state.error||this.props.error,loading:this.props.loading,submitLabel:this.props.intl.formatMessage(m.register),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(m.default),fields:["fullname","email"]}],properties:{fullname:{type:"string",title:this.props.intl.formatMessage(m.fullnameTitle),description:this.props.intl.formatMessage(m.fullnameDescription)},email:{type:"string",title:this.props.intl.formatMessage(m.emailTitle),description:this.props.intl.formatMessage(m.emailDescription)}},required:["fullname","email"]}})]})}}r()(g,"defaultProps",{error:null}),t.a=Object(l.compose)(p.j,d.c,Object(o.connect)(e=>({loading:e.users.create.loading,loaded:e.users.create.loaded,error:e.users.create.error}),{createUser:b.i}))(g)},"/NTY":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("vFsZ")),o=s("3mGJ"),l=s("+6Dn"),c=s("hHGt"),d=s("lHu7"),p=s("24R3"),u=s("zSVi"),h=s("Kvkj"),b=s("Vgzb"),j=s("8fBM"),m=s.n(j),g=s("1Jxj"),f=s.n(g),O=s("hxMo"),v=s.n(O),y=s("5ymK"),x=s.n(y),w=s("zdp0"),C=s.n(w),S=s("nKUr");function M(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function k(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?M(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const N=Object(d.defineMessages)({LinkTo:{id:"Link to",defaultMessage:"Link to"},openLinkInNewTab:{id:"Open in a new tab",defaultMessage:"Open in a new tab"},videoURL:{id:"Video URL",defaultMessage:"Video URL"},Preview_image:{id:"Preview Image URL",defaultMessage:"Preview Image URL"}});t.a=Object(u.c)(({data:e,block:t,onChangeBlock:s,openObjectBrowser:n,required:r=!1,resetSubmitUrl:d,intl:u})=>{var j;const[g,O]=Object(i.useState)(0);return Object(S.jsxs)(o.a.Group,{raised:!0,children:[Object(S.jsx)("header",{className:"header pulled",children:Object(S.jsx)("h2",{children:Object(S.jsx)(p.a,{id:"Video",defaultMessage:"Video"})})}),!e.url&&Object(S.jsx)(S.Fragment,{children:Object(S.jsxs)(o.a,{className:"sidebar-metadata-container",secondary:!0,children:[Object(S.jsx)(p.a,{id:"No video selected",defaultMessage:"No video selected"}),Object(S.jsx)(h.jb,{name:m.a,size:"100px",color:"#b8c6c8"})]})}),e.url&&Object(S.jsxs)(S.Fragment,{children:[Object(S.jsxs)(o.a,{className:"form sidebar-image-data",children:[e.url&&Object(S.jsxs)(S.Fragment,{children:[Object(S.jsx)(h.Tb,{id:"external",title:u.formatMessage(N.videoURL),required:!1,value:e.url,icon:f.a,iconAction:()=>{d(),s(t,k(k({},e),{},{url:""}))},onChange:()=>{}}),Object(S.jsx)(h.Tb,{id:"video-preview-image",title:u.formatMessage(N.Preview_image),required:!1,value:null===(j=e.preview_image)||void 0===j?void 0:j.split("/").slice(-1)[0],icon:e.preview_image?f.a:C.a,iconAction:e.preview_image?()=>{s(t,k(k({},e),{},{preview_image:""}))}:()=>n({mode:"image",dataName:"preview_image"}),onChange:(n,r)=>{s(t,k(k({},e),{},{preview_image:r}))}})]}),Object(S.jsx)(a.a.Field,{inline:!0,required:r,children:Object(S.jsx)(l.a,{children:Object(S.jsxs)(l.a.Row,{children:[Object(S.jsx)(l.a.Column,{width:"4",children:Object(S.jsx)("div",{className:"wrapper",children:Object(S.jsx)("label",{htmlFor:"field-align",children:Object(S.jsx)(p.a,{id:"Alignment",defaultMessage:"Alignment"})})})}),Object(S.jsx)(l.a.Column,{width:"8",className:"align-tools",children:Object(S.jsx)(b.a,{align:e.align,onChangeBlock:s,data:e,block:t})})]})})})]}),e.url.match(".mp4")&&Object(S.jsxs)(c.a,{fluid:!0,styled:!0,className:"form",children:[Object(S.jsxs)(c.a.Title,{active:0===g,index:0,onClick:function(e,t){const{index:s}=t;O(g===s?-1:s)},children:["Link Settings",0===g?Object(S.jsx)(h.jb,{name:v.a,size:"20px"}):Object(S.jsx)(h.jb,{name:x.a,size:"20px"})]}),Object(S.jsxs)(c.a.Content,{active:0===g,children:[Object(S.jsx)(h.Tb,{id:"link",title:u.formatMessage(N.LinkTo),required:!1,value:e.href,icon:e.href?f.a:C.a,iconAction:e.href?()=>{s(t,k(k({},e),{},{href:""}))}:()=>n({mode:"link"}),onChange:(n,r)=>{s(t,k(k({},e),{},{href:r}))}}),Object(S.jsx)(h.o,{id:"openLinkInNewTab",title:u.formatMessage(N.openLinkInNewTab),value:!!e.openLinkInNewTab&&e.openLinkInNewTab,onChange:(n,r)=>{s(t,k(k({},e),{},{openLinkInNewTab:r}))}})]})]})]})]})})},"/Ngv":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("GoyQ"),a=s.n(i),o=s("J2m7"),l=s.n(o),c=s("q1tI"),d=s("lHu7"),p=s("zSVi"),u=(s("17x9"),s("ANjH")),h=s("/MKj"),b=s("Lf35"),j=s("zpb6"),m=s("9At1"),g=s("cuOu"),f=s("Kvkj"),O=s("nKUr");function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function y(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const x=Object(d.defineMessages)({select:{id:"Select\u2026",defaultMessage:"Select\u2026"},no_value:{id:"No value",defaultMessage:"No value"},no_options:{id:"No options",defaultMessage:"No options"}});class w extends c.Component{constructor(e){super(e),r()(this,"onSortEnd",(e,{oldIndex:t,newIndex:s})=>{const n=function(e,t,s){const n=e.slice();return n.splice(s<0?e.length+s:s,0,n.splice(t,1)[0]),n}(e,t,s);this.handleChange(n)}),this.handleChange=this.handleChange.bind(this)}componentDidMount(){var e,t,s;null!==(e=this.props.items)&&void 0!==e&&null!==(t=e.choices)&&void 0!==t&&t.length||null!==(s=this.props.choices)&&void 0!==s&&s.length||!this.props.vocabBaseUrl||this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl,size:-1,subrequest:this.props.intl.locale})}handleChange(e){this.props.onChange(this.props.id,e?e.map(e=>e.value):null)}render(){var e,t,s;const n=function(e){return Array.isArray(e)&&e.length&&Array.isArray(e[0])?e.map(e=>({value:e[0],label:"None"!==e[1]&&e[1]?e[1]:e[0]})):e}((null===(e=this.props)||void 0===e?void 0:e.choices)||[]),r=function(e,t){return t&&Array.isArray(t)?0===t.length?t:"string"===typeof t[0]?t.map(t=>{var s;return{label:(null===(s=l()(e,e=>e.value===t))||void 0===s?void 0:s.label)||t,value:t}}):a()(t[0])&&Object.keys(t[0]).includes("token")?t.map(t=>{const s=l()(e,e=>e.value===t.token);return s?{label:s.label||s.title||s.token,value:t.token}:{label:t.label,value:t.token}}).filter(e=>!!e):[]:[]}(n,this.props.value),i=this.props.reactSelectCreateable.default,{SortableContainer:o}=this.props.reactSortableHOC,c=this.props.reactSelect.default,d=null===(t=this.props)||void 0===t||!t.choices||Object(j.F)(this.props)||this.props.creatable?o(i):o(c);return Object(O.jsx)(f.db,y(y({},this.props),{},{children:Object(O.jsx)(d,{useDragHandle:!0,axis:"xy",onSortEnd:this.onSortEnd,distance:4,getHelperDimensions:({node:e})=>e.getBoundingClientRect(),id:"field-"+this.props.id,isDisabled:this.props.disabled||this.props.isDisabled,className:"react-select-container",classNamePrefix:"react-select",options:this.props.vocabBaseUrl?n:this.props.choices?[...n,...this.props.noValueOption&&!this.props.default?[{label:this.props.intl.formatMessage(x.no_value),value:"no-value"}]:[]]:[{label:this.props.intl.formatMessage(x.no_value),value:"no-value"}],styles:g.g,theme:g.h,components:y(y({},(null===(s=this.props.choices)||void 0===s?void 0:s.length)>25&&{MenuList:g.c}),{},{MultiValue:g.e,MultiValueLabel:g.f,DropdownIndicator:g.b,ClearIndicator:g.a,Option:g.d}),value:r||[],placeholder:this.props.intl.formatMessage(x.select),onChange:this.handleChange,isClearable:!0,isMulti:!0},this.props.id)}))}}r()(w,"defaultProps",{description:null,required:!1,items:{vocabulary:null},widgetOptions:{vocabulary:null},error:[],choices:[],value:null,creatable:!1});Object(p.c)(w);t.a=Object(u.compose)(p.c,Object(b.a)(["reactSelect","reactSelectCreateable","reactSortableHOC"]),Object(h.connect)((e,t)=>{var s,n,r,i;const a=Object(j.F)(t)||Object(j.E)(t)||Object(j.G)(t),o=null===(s=e.vocabularies)||void 0===s||null===(n=s[a])||void 0===n||null===(r=n.subrequests)||void 0===r?void 0:r[t.intl.locale];return null!==(i=t.items)&&void 0!==i&&i.choices?{choices:t.items.choices}:o?{choices:o.items,vocabBaseUrl:a}:{vocabBaseUrl:a}},{getVocabulary:m.H}))(w)},"/P7N":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("TSYQ")),a=s.n(i),o=s("zpb6"),l=s("Kvkj"),c=s("nKUr");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=Object(o.cb)(e=>{const{data:t,path:s,pathname:n}=e;return Object(c.jsx)("div",{className:a()("block listing",t.variation||"default"),children:Object(c.jsx)(l.pb,p(p({},e),{},{path:null!==s&&void 0!==s?s:n}))})})},"/Rrw":function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("yE/o"),r=s("5XkN"),i=s("zpb6"),a=s("2j9a"),o=s("nKUr");t.a=({content:e})=>Object(i.I)(e)?Object(o.jsx)("div",{id:"page-document",className:"ui container viewwrapper event-view",children:Object(o.jsx)(a.a,{content:e})}):Object(o.jsxs)(n.a,{className:"view-wrapper",children:[e.title&&Object(o.jsxs)("h1",{className:"documentFirstHeading",children:[e.title,e.subtitle&&" - "+e.subtitle]}),e.description&&Object(o.jsx)("p",{className:"documentDescription",children:e.description}),e.image&&Object(o.jsx)(r.a,{className:"documentImage",alt:e.title,title:e.title,src:"image/svg+xml"===e.image["content-type"]?Object(i.q)(e.image.download):Object(i.q)(e.image.scales.mini.download),floated:"right"}),e.text&&Object(o.jsx)("div",{dangerouslySetInnerHTML:{__html:Object(i.p)(e.text.data)}})]})},"/ZHd":function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("Kvkj"),r=s("kfnI"),i=s.n(r),a=s("A3In"),o=s.n(a),l=s("3sV1"),c=s.n(l),d=s("GHG5"),p=s.n(d),u=s("nKUr");t.a=e=>{const{title:t,content:s}=e;return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(n.jb,{name:function(e){return e.info?o.a:e.success?i.a:e.error?c.a:e.error?p.a:i.a}(e),size:"18px"}),Object(u.jsxs)("div",{className:"toast-inner-content",children:[t&&Object(u.jsx)("h4",{children:t}),Object(u.jsx)("p",{children:s})]})]})}},0:function(e,t){},"0DzI":function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("55Ip"),o=s("zpb6"),l=s("It+4"),c=s("yE/o"),d=s("ikXu"),p=s("QetY"),u=s("lHu7"),h=s("24R3"),b=s("zSVi"),j=s("9At1"),m=s("Kvkj"),g=s("qaC+"),f=s.n(g),O=s("nKUr");const v=Object(u.defineMessages)({back:{id:"Back",defaultMessage:"Back"},ModerateComments:{id:"Moderate comments",defaultMessage:"Moderate comments"}});class y extends n.Component{constructor(e){super(e),this.onDelete=this.onDelete.bind(this),this.onEdit=this.onEdit.bind(this),this.onEditOk=this.onEditOk.bind(this),this.onEditCancel=this.onEditCancel.bind(this),this.state={showEdit:!1,editId:null,editText:null,isClient:!1}}componentDidMount(){this.props.searchContent("",{portal_type:"Discussion Item",fullobjects:!0}),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.deleteRequest.loading&&e.deleteRequest.loaded&&this.props.searchContent("",{portal_type:"Discussion Item",fullobjects:!0})}onDelete(e,{value:t}){this.props.deleteComment(t)}onEdit(e,{value:t}){this.setState({showEdit:!0,editId:t.id,editText:t.text})}onEditOk(){this.setState({showEdit:!1,editId:null,editText:null}),this.props.searchContent("",{portal_type:"Discussion Item",fullobjects:!0})}onEditCancel(){this.setState({showEdit:!1,editId:null,editText:null})}onCancel(){this.props.history.push(Object(o.C)(this.props.pathname))}render(){return Object(O.jsxs)("div",{id:"page-moderate-comments",children:[Object(O.jsx)(m.q,{open:this.state.showEdit,onCancel:this.onEditCancel,onOk:this.onEditOk,id:this.state.editId,text:this.state.editText}),Object(O.jsx)(o.d,{title:this.props.intl.formatMessage(v.ModerateComments)}),Object(O.jsx)(c.a,{children:Object(O.jsxs)("article",{id:"content",children:[Object(O.jsx)("header",{children:Object(O.jsx)("h1",{className:"documentFirstHeading",children:Object(O.jsx)(h.a,{id:"Moderate comments",defaultMessage:"Moderate comments"})})}),Object(O.jsx)("section",{id:"content-core",children:Object(O.jsxs)(d.a,{compact:!0,singleLine:!0,striped:!0,children:[Object(O.jsx)(d.a.Header,{children:Object(O.jsxs)(d.a.Row,{children:[Object(O.jsx)(d.a.HeaderCell,{children:Object(O.jsx)(h.a,{id:"Commenter",defaultMessage:"Commenter"})}),Object(O.jsx)(d.a.HeaderCell,{children:Object(O.jsx)(h.a,{id:"Date",defaultMessage:"Date"})}),Object(O.jsx)(d.a.HeaderCell,{children:Object(O.jsx)(h.a,{id:"Comment",defaultMessage:"Comment"})}),Object(O.jsx)(d.a.HeaderCell,{children:Object(O.jsx)(h.a,{id:"Action",defaultMessage:"Action"})})]})}),Object(O.jsx)(d.a.Body,{children:this.props.items.map(e=>Object(O.jsxs)(d.a.Row,{children:[Object(O.jsx)(d.a.Cell,{children:e.author_name}),Object(O.jsx)(d.a.Cell,{children:Object(O.jsx)(m.fb,{date:e.creation_date})}),Object(O.jsx)(d.a.Cell,{children:e.text.data}),Object(O.jsxs)(d.a.Cell,{children:[e.is_editable&&Object(O.jsx)(p.a,{onClick:this.onEdit,value:{id:e["@id"],text:e.text.data},primary:!0,children:Object(O.jsx)(h.a,{id:"Edit",defaultMessage:"Edit"})}),e.is_deletable&&Object(O.jsx)(p.a,{onClick:this.onDelete,value:e["@id"],color:"red",children:Object(O.jsx)(h.a,{id:"Delete",defaultMessage:"Delete"})})]})]},e["@id"]))})]})})]})}),this.state.isClient&&Object(O.jsx)(l.a,{node:document.getElementById("toolbar"),children:Object(O.jsx)(m.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(O.jsx)(a.a,{className:"item",to:"#",onClick:()=>this.onCancel(),children:Object(O.jsx)(m.jb,{name:f.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(v.back)})})})})]})}}t.a=Object(i.compose)(b.c,Object(r.connect)((e,t)=>({items:e.search.items,deleteRequest:e.comments.delete,pathname:t.location.pathname}),{deleteComment:j.l,searchContent:j.kb}))(y)},"0mEo":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M27,30 C27,30.551 26.552,31 26,31 L10,31 C9.448,31 9,30.551 9,30 L9,18 C9,17.449 9.448,17 10,17 L26,17 C26.552,17 27,17.449 27,18 L27,30 Z M27,15.184 L27,12 C27,7.038 22.963,3 18,3 C13.037,3 9,7.038 9,12 L11,12 C11,8.14 14.141,5 18,5 C21.859,5 25,8.14 25,12 L25,15 L10,15 C8.346,15 7,16.346 7,18 L7,30 C7,31.654 8.346,33 10,33 L26,33 C27.654,33 29,31.654 29,30 L29,18 C29,16.698 28.161,15.598 27,15.184 L27,15.184 Z"/><path d="M18,20.5 C17.172,20.5 16.5,21.172 16.5,22 C16.5,22.443 16.695,22.836 17,23.111 L17,27 L19,27 L19,23.111 C19.305,22.836 19.5,22.443 19.5,22 C19.5,21.172 18.828,20.5 18,20.5"/></g>'}},"0pDM":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M21.0107,16.8418 C20.2147,16.0458 19.2217,15.4488 18.1387,15.1148 C15.6417,14.3438 12.9477,15.0058 11.1107,16.8418 L10.0507,17.9028 L11.4647,19.3168 L12.5247,18.2558 C13.8347,16.9448 15.7587,16.4718 17.5497,17.0258 C18.3337,17.2678 19.0217,17.6808 19.5957,18.2558 C19.7777,18.4378 19.9527,18.6478 20.1307,18.8988 C20.8217,19.8728 21.1417,21.0678 21.0317,22.2608 C20.9237,23.4198 20.4137,24.5088 19.5957,25.3268 L15.3537,29.5698 C13.4047,31.5188 10.2317,31.5188 8.2817,29.5698 C7.3427,28.6298 6.8247,27.3738 6.8247,26.0338 C6.8247,24.6938 7.3427,23.4378 8.2817,22.4988 L6.8677,21.0848 C5.5507,22.4018 4.8247,24.1588 4.8247,26.0338 C4.8247,27.9088 5.5507,29.6668 6.8677,30.9838 C8.2327,32.3478 10.0257,33.0298 11.8177,33.0298 C13.6107,33.0298 15.4027,32.3478 16.7677,30.9838 L21.0107,26.7408 C22.1567,25.5938 22.8717,24.0688 23.0227,22.4458 C23.1777,20.7758 22.7297,19.1058 21.7617,17.7408 C21.5177,17.3978 21.2717,17.1038 21.0107,16.8418"/><path d="M10.1343 22.0127C10.4893 22.2367 10.8293 22.4137 11.1733 22.5567 12.0123 22.9047 12.9223 23.0837 13.8363 23.0837 14.0523 23.0837 14.2703 23.0737 14.4863 23.0537 16.3673 22.8777 18.1243 21.9367 19.3063 20.4717L17.7493 19.2167C16.9053 20.2627 15.6473 20.9357 14.3003 21.0617 13.4823 21.1387 12.6873 21.0197 11.9393 20.7087 11.7003 20.6107 11.4583 20.4827 11.1983 20.3197 10.1863 19.6837 9.4343 18.7027 9.0803 17.5577 8.7363 16.4457 8.7893 15.2447 9.2323 14.1767L11.5283 8.6327C12.5833 6.0857 15.5133 4.8707 18.0613 5.9267L18.8263 4.0787C15.2603 2.6027 11.1583 4.3027 9.6803 7.8667L7.3843 13.4107C6.7633 14.9087 6.6873 16.5927 7.1693 18.1487 7.6653 19.7507 8.7183 21.1227 10.1343 22.0127M25 15.316L31 15.316 31 13.316 25 13.316zM24.949 3.633L23.052 3 21.052 9 22.949 9.633zM31.581 7.13L30.419 5.502 23.419 10.502 24.581 12.13zM24.553 18.211L28.553 20.211 29.448 18.422 25.448 16.422z"/></g>'}},1:function(e,t){},"1+Tp":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M28.1631,13.7905 C27.0391,11.0755 24.9251,8.9615 22.2101,7.8375 L21.4441,9.6855 C23.6651,10.6045 25.3951,12.3345 26.3151,14.5555 C27.2351,16.7765 27.2351,19.2235 26.3151,21.4435 C24.4161,26.0285 19.1381,28.2145 14.5561,26.3145 C12.3351,25.3945 10.6041,23.6655 9.6841,21.4445 C8.7651,19.2235 8.7651,16.7765 9.6841,14.5565 C10.6051,12.3345 12.3351,10.6045 14.5561,9.6855 L13.7901,7.8375 C11.0761,8.9615 8.9621,11.0755 7.8371,13.7905 C6.7131,16.5045 6.7131,19.4955 7.8371,22.2095 C8.9611,24.9245 11.0751,27.0385 13.7901,28.1625 C15.1621,28.7305 16.5851,28.9995 17.9851,28.9995 C22.3041,28.9995 26.4101,26.4405 28.1631,22.2095 C29.2871,19.4955 29.2871,16.5045 28.1631,13.7905"/><path d="M17 18L19 18 19 5 17 5z"/></g>'}},"17bv":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M25 7L25 5 19 5 19 7 20.612 7 13.279 29 11 29 11 31 17 31 17 29 15.388 29 22.721 7z"/>'}},"1Jxj":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M27.899 9.515L26.485 8.101 18 16.586 9.514 8.101 8.1 9.515 16.586 18 8.1 26.486 9.514 27.9 18 19.414 26.485 27.9 27.899 26.486 19.414 18z"/>'}},"1S4a":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("zpb6")),o=s("/MKj"),l=s("ANjH"),c=s("Ty5D"),d=s("It+4"),p=s("yE/o"),u=s("3mGJ"),h=s("WYlG"),b=s("QetY"),j=s("lHu7"),m=s("24R3"),g=s("zSVi"),f=s("cr+I"),O=s.n(f),v=s("9At1"),y=s("Kvkj"),x=s("nKUr");const w=Object(j.defineMessages)({delete:{id:"Delete",defaultMessage:"Delete"},ok:{id:"Ok",defaultMessage:"Ok"},cancel:{id:"Cancel",defaultMessage:"Cancel"}});class C extends i.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={isClient:!1}}UNSAFE_componentWillReceiveProps(e){this.props.deleteRequest.loading&&e.deleteRequest.loaded&&this.props.history.push(this.props.returnUrl||this.props.pathname.replace("/delete","").replace(/\/[^/]*$/,""))}componentDidMount(){this.props.getContent(this.props.pathname.split("/delete")[0]),this.setState({isClient:!0})}onSubmit(){this.props.deleteContent(this.props.pathname.replace("/delete",""))}onCancel(){this.props.history.push(this.props.pathname.replace("/delete",""))}render(){return this.props.content?Object(x.jsxs)("div",{id:"page-delete",children:[Object(x.jsx)(a.d,{title:this.props.intl.formatMessage(w.delete)}),Object(x.jsx)(p.a,{children:Object(x.jsxs)(u.a.Group,{raised:!0,children:[Object(x.jsx)(u.a,{className:"primary",children:Object(x.jsx)(m.a,{id:"Do you really want to delete this item?",defaultMessage:"Do you really want to delete this item?"})}),Object(x.jsx)(u.a,{attached:!0,children:Object(x.jsx)(h.a,{bulleted:!0,children:Object(x.jsx)(h.a.Item,{children:this.props.content.title})})}),Object(x.jsxs)(u.a,{className:"actions",clearing:!0,children:[Object(x.jsx)(b.a,{basic:!0,circular:!0,primary:!0,floated:"right",icon:"arrow right","aria-label":this.props.intl.formatMessage(w.ok),title:this.props.intl.formatMessage(w.ok),size:"big",onClick:this.onSubmit}),Object(x.jsx)(b.a,{basic:!0,circular:!0,secondary:!0,icon:"remove","aria-label":this.props.intl.formatMessage(w.cancel),title:this.props.intl.formatMessage(w.cancel),floated:"right",size:"big",onClick:this.onCancel})]})]})}),this.state.isClient&&Object(x.jsx)(d.a,{node:document.getElementById("toolbar"),children:Object(x.jsx)(y.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(x.jsx)("span",{})})})]}):Object(x.jsx)("div",{})}}r()(C,"defaultProps",{content:null,returnUrl:null}),t.a=Object(l.compose)(c.j,g.c,Object(o.connect)((e,t)=>({content:e.content.data,deleteRequest:e.content.delete,pathname:t.location.pathname,returnUrl:O.a.parse(t.location.search).return_url}),{deleteContent:v.m,getContent:v.t}))(C)},"1iDJ":function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("55Ip"),a=s("9At1"),o=s("nKUr");const l="plone.app.vocabularies.Keywords";class c extends n.Component{componentDidMount(){this.props.getVocabulary({vocabNameOrURL:l})}render(){return this.props.terms&&this.props.terms.length>0?Object(o.jsx)("div",{children:this.props.terms.map(e=>Object(o.jsx)(i.a,{className:"ui label",to:"/search?Subject="+e.title,children:e.title},e.title))}):Object(o.jsx)("span",{})}}t.a=Object(r.connect)(e=>({terms:e.vocabularies[l]&&e.vocabularies[l].terms?e.vocabularies[l].terms:[]}),{getVocabulary:a.H})(c)},"1n2t":function(e,t,s){"use strict";(function(e){s.d(t,"a",(function(){return I})),s.d(t,"b",(function(){return M})),s.d(t,"c",(function(){return R})),s.d(t,"d",(function(){return O}));var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("MgzW"),l=s.n(o),c=s("pmvk");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const u=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),h=e=>{const t=f(e,c.g.TITLE),s=f(e,c.c.TITLE_TEMPLATE);if(s&&t)return s.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t);const n=f(e,c.c.DEFAULT_TITLE);return t||n||void 0},b=e=>f(e,c.c.ON_CHANGE_CLIENT_STATE)||(()=>{}),j=(e,t)=>t.filter(t=>"undefined"!==typeof t[e]).map(t=>t[e]).reduce((e,t)=>p(p({},e),t),{}),m=(e,t)=>t.filter(e=>"undefined"!==typeof e[c.g.BASE]).map(e=>e[c.g.BASE]).reverse().reduce((t,s)=>{if(!t.length){const n=Object.keys(s);for(let r=0;r<n.length;r++){const i=n[r].toLowerCase();if(-1!==e.indexOf(i)&&s[i])return t.concat(s)}}return t},[]),g=(e,t,s)=>{const n={};return s.filter(t=>!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&C(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,s)=>{const r={};s.filter(e=>{let s;const i=Object.keys(e);for(let n=0;n<i.length;n++){const r=i[n],a=r.toLowerCase();-1===t.indexOf(a)||s===c.h.REL&&"canonical"===e[s].toLowerCase()||a===c.h.REL&&"stylesheet"===e[a].toLowerCase()||(s=a),-1===t.indexOf(r)||r!==c.h.INNER_HTML&&r!==c.h.CSS_TEXT&&r!==c.h.ITEM_PROP||(s=r)}if(!s||!e[s])return!1;const a=e[s].toLowerCase();return n[s]||(n[s]={}),r[s]||(r[s]={}),!n[s][a]&&(r[s][a]=!0,!0)}).reverse().forEach(t=>e.push(t));const i=Object.keys(r);for(let t=0;t<i.length;t++){const e=i[t],s=l()({},n[e],r[e]);n[e]=s}return e},[]).reverse()},f=(e,t)=>{for(let s=e.length-1;s>=0;s--){const n=e[s];if(n.hasOwnProperty(t))return n[t]}return null},O=e=>({baseTag:m([c.h.HREF,c.h.TARGET],e),bodyAttributes:j(c.a.BODY,e),defer:f(e,c.c.DEFER),encode:f(e,c.c.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:j(c.a.HTML,e),linkTags:g(c.g.LINK,[c.h.REL,c.h.HREF],e),metaTags:g(c.g.META,[c.h.NAME,c.h.CHARSET,c.h.HTTPEQUIV,c.h.PROPERTY,c.h.ITEM_PROP],e),noscriptTags:g(c.g.NOSCRIPT,[c.h.INNER_HTML],e),onChangeClientState:b(e),scriptTags:g(c.g.SCRIPT,[c.h.SRC,c.h.INNER_HTML],e),styleTags:g(c.g.STYLE,[c.h.CSS_TEXT],e),title:h(e),titleAttributes:j(c.a.TITLE,e)}),v=(()=>{let e=Date.now();return t=>{const s=Date.now();s-e>16?(e=s,t(s)):setTimeout(()=>{v(t)},0)}})(),y=e=>clearTimeout(e),x="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||v:e.requestAnimationFrame||v,w="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||y:e.cancelAnimationFrame||y,C=e=>console&&"function"===typeof console.warn&&console.warn(e);let S=null;const M=e=>{S&&w(S),e.defer?S=x(()=>{k(e,()=>{S=null})}):(k(e),S=null)},k=(e,t)=>{const{baseTag:s,bodyAttributes:n,htmlAttributes:r,linkTags:i,metaTags:a,noscriptTags:o,onChangeClientState:l,scriptTags:d,styleTags:p,title:u,titleAttributes:h}=e;L(c.g.BODY,n),L(c.g.HTML,r),P(u,h);const b={baseTag:D(c.g.BASE,s),linkTags:D(c.g.LINK,i),metaTags:D(c.g.META,a),noscriptTags:D(c.g.NOSCRIPT,o),scriptTags:D(c.g.SCRIPT,d),styleTags:D(c.g.STYLE,p)},j={},m={};Object.keys(b).forEach(e=>{const{newTags:t,oldTags:s}=b[e];t.length&&(j[e]=t),s.length&&(m[e]=b[e].oldTags)}),t&&t(),l(e,j,m)},N=e=>Array.isArray(e)?e.join(""):e,P=(e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=N(e)),L(c.g.TITLE,t)},L=(e,t)=>{const s=document.getElementsByTagName(e)[0];if(!s)return;const n=s.getAttribute(c.b),r=n?n.split(","):[],i=[].concat(r),a=Object.keys(t);for(let o=0;o<a.length;o++){const e=a[o],n=t[e]||"";s.getAttribute(e)!==n&&s.setAttribute(e,n),-1===r.indexOf(e)&&r.push(e);const l=i.indexOf(e);-1!==l&&i.splice(l,1)}for(let o=i.length-1;o>=0;o--)s.removeAttribute(i[o]);r.length===i.length?s.removeAttribute(c.b):s.getAttribute(c.b)!==a.join(",")&&s.setAttribute(c.b,a.join(","))},D=(e,t)=>{const s=document.head||document.querySelector(c.g.HEAD),n=s.querySelectorAll(`${e}[${c.b}]`),r=Array.prototype.slice.call(n),i=[];let a;return t&&t.length&&t.forEach(t=>{const s=document.createElement(e);for(const e in t)if(t.hasOwnProperty(e))if(e===c.h.INNER_HTML)s.innerHTML=t.innerHTML;else if(e===c.h.CSS_TEXT)s.styleSheet?s.styleSheet.cssText=t.cssText:s.appendChild(document.createTextNode(t.cssText));else{const n="undefined"===typeof t[e]?"":t[e];s.setAttribute(e,n)}s.setAttribute(c.b,"true"),r.some((e,t)=>(a=t,s.isEqualNode(e)))?r.splice(a,1):i.push(s)}),r.forEach(e=>e.parentNode.removeChild(e)),i.forEach(e=>s.appendChild(e)),{oldTags:r,newTags:i}},E=e=>Object.keys(e).reduce((t,s)=>{const n="undefined"!==typeof e[s]?`${s}="${e[s]}"`:""+s;return t?`${t} ${n}`:n},""),T=(e,t={})=>Object.keys(e).reduce((t,s)=>(t[c.e[s]||s]=e[s],t),t),I=(e,t={})=>Object.keys(e).reduce((t,s)=>(t[c.d[s]||s]=e[s],t),t),A=(e,t,s)=>{switch(e){case c.g.TITLE:return{toComponent:()=>((e,t,s)=>{const n={key:t,[c.b]:!0},r=T(s,n);return[a.a.createElement(c.g.TITLE,r,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,s,n)=>{const r=E(s),i=N(t);return r?`<${e} ${c.b}="true" ${r}>${u(i,n)}</${e}>`:`<${e} ${c.b}="true">${u(i,n)}</${e}>`})(e,t.title,t.titleAttributes,s)};case c.a.BODY:case c.a.HTML:return{toComponent:()=>T(t),toString:()=>E(t)};default:return{toComponent:()=>((e,t)=>t.map((t,s)=>{const n={key:s,[c.b]:!0};return Object.keys(t).forEach(e=>{const s=c.e[e]||e;if(s===c.h.INNER_HTML||s===c.h.CSS_TEXT){const e=t.innerHTML||t.cssText;n.dangerouslySetInnerHTML={__html:e}}else n[s]=t[e]}),a.a.createElement(e,n)}))(e,t),toString:()=>((e,t,s)=>t.reduce((t,n)=>{const r=Object.keys(n).filter(e=>!(e===c.h.INNER_HTML||e===c.h.CSS_TEXT)).reduce((e,t)=>{const r="undefined"===typeof n[t]?t:`${t}="${u(n[t],s)}"`;return e?`${e} ${r}`:r},""),i=n.innerHTML||n.cssText||"",a=-1===c.f.indexOf(e);return`${t}<${e} ${c.b}="true" ${r}${a?"/>":`>${i}</${e}>`}`},""))(e,t,s)}}},R=({baseTag:e,bodyAttributes:t,encode:s,htmlAttributes:n,linkTags:r,metaTags:i,noscriptTags:a,scriptTags:o,styleTags:l,title:d="",titleAttributes:p})=>({base:A(c.g.BASE,e,s),bodyAttributes:A(c.a.BODY,t,s),htmlAttributes:A(c.a.HTML,n,s),link:A(c.g.LINK,r,s),meta:A(c.g.META,i,s),noscript:A(c.g.NOSCRIPT,a,s),script:A(c.g.SCRIPT,o,s),style:A(c.g.STYLE,l,s),title:A(c.g.TITLE,{title:d,titleAttributes:p},s)})}).call(this,s("RLDh"))},2:function(e,t){},"20pZ":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("zpb6")),o=s("/MKj"),l=s("ANjH"),c=s("55Ip"),d=s("yE/o"),p=s("vFsZ"),u=s("3mGJ"),h=s("+6Dn"),b=s("umxb"),j=s("QetY"),m=s("lHu7"),g=s("24R3"),f=s("zSVi"),O=s("cr+I"),v=s.n(O),y=s("Ty5D"),x=s("Kvkj"),w=s("9At1"),C=s("GGqY"),S=s("EFnn"),M=s.n(S),k=s("1Jxj"),N=s.n(k),P=s("8ZS8"),L=s("nKUr");const D=Object(m.defineMessages)({login:{id:"Log in",defaultMessage:"Log in"},loginName:{id:"Login Name",defaultMessage:"Login Name"},Login:{id:"Login",defaultMessage:"Login"},password:{id:"Password",defaultMessage:"Password"},cancel:{id:"Cancel",defaultMessage:"Cancel"},error:{id:"Error",defaultMessage:"Error"},loginFailed:{id:"Login Failed",defaultMessage:"Login Failed"},loginFailedContent:{id:"Both email address and password are case sensitive, check that caps lock is not enabled.",defaultMessage:"Both email address and password are case sensitive, check that caps lock is not enabled."},register:{id:"Register",defaultMessage:"Register"},forgotPassword:{id:"box_forgot_password_option",defaultMessage:"Forgot your password?"}});class E extends i.Component{constructor(e){super(e),this.onLogin=this.onLogin.bind(this)}UNSAFE_componentWillReceiveProps(e){e.token&&(this.props.history.push(this.props.returnUrl||"/"),C.toast.isActive("loginFailed")&&C.toast.dismiss("loginFailed")),e.error&&(C.toast.isActive("loginFailed")||C.toast.error(Object(L.jsx)(x.Ub,{error:!0,title:this.props.intl.formatMessage(D.loginFailed),content:this.props.intl.formatMessage(D.loginFailedContent)}),{autoClose:!1,toastId:"loginFailed"}))}componentWillUnmount(){C.toast.isActive("loginFailed")&&C.toast.dismiss("loginFailed")}onLogin(e){this.props.login(document.getElementsByName("login")[0].value,document.getElementsByName("password")[0].value),e.preventDefault()}render(){return Object(L.jsxs)("div",{id:"page-login",children:[Object(L.jsx)(a.d,{title:this.props.intl.formatMessage(D.Login)}),Object(L.jsx)(d.a,{text:!0,children:Object(L.jsx)(p.a,{method:"post",onSubmit:this.onLogin,children:Object(L.jsxs)(u.a.Group,{raised:!0,children:[Object(L.jsx)(u.a,{className:"primary",children:Object(L.jsx)(g.a,{id:"Log In",defaultMessage:"Login"})}),Object(L.jsx)(u.a,{secondary:!0,children:Object(L.jsx)(g.a,{id:"Sign in to start session",defaultMessage:"Sign in to start session"})}),Object(L.jsxs)(u.a,{className:"form",children:[Object(L.jsx)(p.a.Field,{inline:!0,className:"help",children:Object(L.jsx)(h.a,{children:Object(L.jsxs)(h.a.Row,{stretched:!0,children:[Object(L.jsx)(h.a.Column,{width:"4",children:Object(L.jsx)("div",{className:"wrapper",children:Object(L.jsx)("label",{htmlFor:"login",children:Object(L.jsx)(g.a,{id:"Login Name",defaultMessage:"Login Name"})})})}),Object(L.jsx)(h.a.Column,{width:"8",children:Object(L.jsx)(b.a,{id:"login",name:"login",placeholder:this.props.intl.formatMessage(D.loginName),autoFocus:!0})})]})})}),Object(L.jsx)(p.a.Field,{inline:!0,className:"help",children:Object(L.jsx)(h.a,{children:Object(L.jsxs)(h.a.Row,{stretched:!0,children:[Object(L.jsx)(h.a.Column,{stretched:!0,width:"4",children:Object(L.jsx)("div",{className:"wrapper",children:Object(L.jsx)("label",{htmlFor:"password",children:Object(L.jsx)(g.a,{id:"Password",defaultMessage:"Password"})})})}),Object(L.jsx)(h.a.Column,{stretched:!0,width:"8",children:Object(L.jsx)(b.a,{type:"password",id:"password",name:"password",placeholder:this.props.intl.formatMessage(D.password),tabIndex:0})})]})})}),Object(L.jsx)(p.a.Field,{inline:!0,className:"help",children:Object(L.jsx)(h.a,{children:Object(L.jsxs)(h.a.Row,{stretched:!0,children:[P.a.settings.showSelfRegistration&&Object(L.jsx)(h.a.Column,{stretched:!0,width:"12",children:Object(L.jsx)("p",{className:"help",children:Object(L.jsx)(c.a,{to:"/register",children:this.props.intl.formatMessage(D.register)})})}),Object(L.jsx)(h.a.Column,{stretched:!0,width:"12",children:Object(L.jsx)("p",{className:"help",children:Object(L.jsx)(c.a,{to:"/password-reset",children:this.props.intl.formatMessage(D.forgotPassword)})})})]})})})]}),Object(L.jsxs)(u.a,{className:"actions",clearing:!0,children:[Object(L.jsx)(j.a,{basic:!0,primary:!0,icon:!0,floated:"right",type:"submit",id:"login-form-submit","aria-label":this.props.intl.formatMessage(D.login),title:this.props.intl.formatMessage(D.login),loading:this.props.loading,children:Object(L.jsx)(x.jb,{className:"circled",name:M.a,size:"30px"})}),Object(L.jsx)(j.a,{basic:!0,secondary:!0,icon:!0,floated:"right",id:"login-form-cancel",as:c.a,to:"/","aria-label":this.props.intl.formatMessage(D.cancel),title:this.props.intl.formatMessage(D.cancel),children:Object(L.jsx)(x.jb,{className:"circled",name:N.a,size:"30px"})})]})]})})})]})}}r()(E,"defaultProps",{error:null,loading:null,token:null,returnUrl:null}),t.a=Object(l.compose)(y.j,f.c,Object(o.connect)((e,t)=>({error:e.userSession.login.error,loading:e.userSession.login.loading,token:e.userSession.token,returnUrl:v.a.parse(t.location.search).return_url||t.location.pathname.replace(/\/login$/,"").replace(/\/logout$/,"")||"/"}),{login:w.W}))(E)},"23at":function(e,t,s){"use strict";t.a={title:"Block settings",fieldsets:[{id:"default",title:"Default",fields:["placeholder","required","fixed","disableNewBlocks","readOnly"]}],properties:{placeholder:{title:"Helper text",description:"A short hint that describes the expected value within this block",type:"string"},required:{title:"Required",description:"Don't allow deletion of this block",type:"boolean"},fixed:{title:"Fixed position",description:"Disable drag & drop on this block",type:"boolean"},disableNewBlocks:{title:"Disable new blocks",description:"Disable creation of new blocks after this block",type:"boolean"},readOnly:{title:"Read-only",description:"Disable editing on this block",type:"boolean"}},required:[]}},"2Cnc":function(e,t,s){"use strict";s.d(t,"a",(function(){return j})),s.d(t,"b",(function(){return m})),s.d(t,"c",(function(){return g}));var n=s("lSNA"),r=s.n(n),i=s("BkRI"),a=s.n(i),o=s("lHu7"),l=(s("q1tI"),s("52Oh")),c=s("8ZS8"),d=s("nKUr");function p(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function u(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?p(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const h=Object(o.defineMessages)({variation:{id:"Variation",defaultMessage:"Variation"}});function b(e,t){-1===e.fieldsets[0].fields.indexOf(t)&&e.fieldsets[0].fields.unshift(t)}const j=({schema:e,name:t,items:s,intl:n,title:r,description:i,insertFieldToOrder:a=b})=>{const o=n.formatMessage;a(e,t);const l=(null===s||void 0===s?void 0:s.findIndex(({isDefault:e})=>e))>-1;return l||console.warn("You should provide a default extension in extension:",t),e.properties[t]={title:o(r),choices:null===s||void 0===s?void 0:s.map(({id:e,title:t})=>[e,o({id:t,defaultMessage:t})]),noValueOption:!1,default:l?null===s||void 0===s?void 0:s.find(e=>e.isDefault).id:null},e},m=({schema:e,formData:t,intl:s})=>{var n,r,i,o;let l,d;const{blocks:p}=c.a,u=t["@type"],h=(null===p||void 0===p||null===(n=p.blocksConfig[u])||void 0===n?void 0:n.variations)||[];var b,j;if(0===h.length)return d=null===(b=p.blocksConfig)||void 0===b||null===(j=b[u])||void 0===j?void 0:j.schemaEnhancer,d&&(l=d({schema:a()(e),formData:t,intl:s})),l||e;const m=null===t||void 0===t?void 0:t.variation;let g=h.find(e=>e.id===m);return g||(g=h.find(e=>e.isDefault)),d=null===(r=g)||void 0===r?void 0:r.schemaEnhancer,l=d?d({schema:a()(e),formData:t,intl:s}):a()(e),d=null===(i=p.blocksConfig)||void 0===i||null===(o=i[u])||void 0===o?void 0:o.schemaEnhancer,d&&(l=d({schema:l,formData:t,intl:s})),l||e},g=e=>t=>{var s;const{formData:n,schema:r}=t,i=Object(l.a)(),{blocks:a}=c.a,o=n["@type"],p=(null===a||void 0===a||null===(s=a.blocksConfig[o])||void 0===s?void 0:s.variations)||[];let g=m({schema:r,formData:n,intl:i});return p.length>1&&j({schema:g,name:"variation",items:p,intl:i,title:h.variation,insertFieldToOrder:b}),Object(d.jsx)(e,u(u({},t),{},{schema:g}))}},"2OBh":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("QILm"),a=s.n(i),o=s("qPyV"),l=s.n(o),c=s("q1tI"),d=(s("17x9"),s("ANjH")),p=s("/MKj"),u=s("GGqY"),h=s("lHu7"),b=s("24R3"),j=s("zSVi"),m=s("ZiUS"),g=s.n(m),f=s("RBan"),O=s.n(f);function v(e,t){const s={published:{value:"public",label:"Public",color:"#007bc1",url:e},publish:{value:"public",label:"Public",color:"#007bc1",url:e},private:{value:"private",label:"Private",color:"#ed4033",url:e},pending:{value:"pending",label:"Pending",color:"#f6a808",url:e},send_back:{value:"private",label:"Private",color:"#ed4033",url:e},retract:{value:"private",label:"Private",color:"#ed4033",url:e},submit:{value:"review",label:"Review",color:"#f4e037",url:e}};if(e){const t=O()(g()(e,"/"));return t in s?s[t]:{value:t,label:t,color:"#000",url:e}}return t in s?s[t]:{value:t,label:t,color:"#000",url:e}}var y=s("Kvkj"),x=s("zpb6"),w=s("Lf35"),C=s("9At1"),S=s("5ymK"),M=s.n(S),k=s("hxMo"),N=s.n(k),P=s("8mwE"),L=s.n(P),D=s("nKUr");const E=["children"];function T(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function I(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?T(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):T(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const A=Object(h.defineMessages)({messageUpdated:{id:"Workflow updated.",defaultMessage:"Workflow updated."},messageNoWorkflow:{id:"No workflow",defaultMessage:"No workflow"}}),R=Object(w.a)("reactSelect")(e=>{let{children:t}=e,s=a()(e,E);const n={marginLeft:"10px",marginRight:"10px",display:"inline-block",backgroundColor:s.selectProps.value.color||null,content:" ",height:"10px",width:"10px",borderRadius:"50%"},{SingleValue:r}=s.reactSelect.components;return Object(D.jsxs)(r,I(I({},s),{},{children:[Object(D.jsx)("span",{style:n}),t]}))}),_=Object(w.a)("reactSelect")(e=>{const t={marginLeft:"10px",marginRight:"10px",display:"inline-block",backgroundColor:e.selectProps.value.value===e.data.value?e.selectProps.value.color:null,content:" ",height:"10px",width:"10px",borderRadius:"50%",border:e.selectProps.value.value!==e.data.value?"1px solid "+e.data.color:null},{Option:s}=e.reactSelect.components;return Object(D.jsxs)(s,I(I({},e),{},{children:[Object(D.jsx)("span",{style:t}),Object(D.jsx)("div",{style:{marginRight:"auto"},children:e.label}),e.isFocused&&!e.isSelected&&Object(D.jsx)(y.jb,{name:L.a,size:"24px",color:"#b8c6c8"}),e.isSelected&&Object(D.jsx)(y.jb,{name:L.a,size:"24px",color:"#007bc1"})]}))}),q=Object(w.a)("reactSelect")(e=>{const{DropdownIndicator:t}=e.reactSelect.components;return Object(D.jsx)(t,I(I({},e),{},{"data-testid":"workflow-select-dropdown",children:e.selectProps.menuIsOpen?Object(D.jsx)(y.jb,{name:N.a,size:"24px",color:"#007bc1"}):Object(D.jsx)(y.jb,{name:M.a,size:"24px",color:"#007bc1"})}))}),F=e=>I(I({},e),{},{borderRadius:0,colors:I(I({},e.colors),{},{primary25:"hotpink",primary:"#b8c6c8"})}),B={control:(e,t)=>I(I({},e),{},{border:"none",borderBottom:"2px solid #b8c6c8",boxShadow:"none",borderBottomStyle:t.menuIsOpen?"dotted":"solid"}),menu:(e,t)=>I(I({},e),{},{top:null,marginTop:0,boxShadow:"none",borderBottom:"2px solid #b8c6c8"}),indicatorSeparator:e=>I(I({},e),{},{width:null}),valueContainer:e=>I({},e),option:(e,t)=>I(I({},e),{},{backgroundColor:null,height:"50px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 12px",color:t.isSelected?"#007bc1":t.isFocused?"#4a4a4a":"inherit",":active":{backgroundColor:null}})};class z extends c.Component{constructor(...e){super(...e),r()(this,"state",{selectedOption:this.props.content.review_state?v(null,this.props.content.review_state):{}}),r()(this,"transition",e=>{this.props.transitionWorkflow(Object(x.q)(e.url)),this.setState({selectedOption:e}),u.toast.success(Object(D.jsx)(y.Ub,{success:!0,title:this.props.intl.formatMessage(A.messageUpdated)}))}),r()(this,"selectValue",e=>{const t={marginLeft:"10px",marginRight:"10px",display:"inline-block",backgroundColor:e.color||null,content:" ",height:"10px",width:"10px",borderRadius:"50%"};return Object(D.jsxs)(c.Fragment,{children:[Object(D.jsx)("span",{style:t}),Object(D.jsx)("span",{className:"Select-value-label",children:e.label})]})}),r()(this,"optionRenderer",e=>{const t={marginLeft:"10px",marginRight:"10px",display:"inline-block",backgroundColor:this.state.selectedOption.value===e.value?e.color:null,content:" ",height:"10px",width:"10px",borderRadius:"50%",border:this.state.selectedOption.value!==e.value?"1px solid "+e.color:null};return Object(D.jsxs)(c.Fragment,{children:[Object(D.jsx)("span",{style:t}),Object(D.jsx)("span",{style:{marginRight:"auto"},children:e.label}),Object(D.jsx)(y.jb,{name:L.a,size:"24px"})]})})}componentDidMount(){this.props.getWorkflow(this.props.pathname)}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&this.props.getWorkflow(e.pathname),!this.props.loaded&&e.loaded&&(this.props.getWorkflow(e.pathname),this.props.getContent(e.pathname))}render(){const{selectedOption:e}=this.state,{Placeholder:t}=this.props.reactSelect.components,s=this.props.reactSelect.default;return Object(D.jsxs)(c.Fragment,{children:[Object(D.jsx)("label",{htmlFor:"state-select",children:Object(D.jsx)(b.a,{id:"State",defaultMessage:"State"})}),Object(D.jsx)(s,{name:"state-select",className:"react-select-container",classNamePrefix:"react-select",isDisabled:!this.props.content.review_state||0===this.props.transitions.length,options:l()(this.props.transitions.map(e=>v(e["@id"])),"label").concat(e),styles:B,theme:F,components:{DropdownIndicator:q,Placeholder:t,Option:_,SingleValue:R},onChange:this.transition,defaultValue:this.props.content.review_state?e:{label:this.props.intl.formatMessage(A.messageNoWorkflow),value:"noworkflow"},isSearchable:!1})]})}}r()(z,"defaultProps",{history:[],transitions:[]});t.a=Object(d.compose)(j.c,Object(w.a)(["reactSelect"]),Object(p.connect)(e=>({loaded:e.workflow.transition.loaded,content:e.content.data,history:e.workflow.history,transitions:e.workflow.transitions}),{getContent:C.t,getWorkflow:C.J,transitionWorkflow:C.qb}))(z)},"2UM1":function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path d="M13 3H11V5H13V3Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 21V11H21V21H3ZM5 13H19V19H5V13Z" fill="currentcolor"/><path d="M15 3H17V5H15V3zM5 3H3V5H5V3zM7 3H9V5H7V3zM21 3H19V5H21V3zM19 7H21V9H19V7zM5 7H3V9H5V7z"/>'}},"2j9a":function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=(s("q1tI"),s("zpb6")),a=s("lHu7"),o=s("zSVi"),l=s("8ZS8"),c=s("nKUr");const d=Object(a.defineMessages)({unknownBlock:{id:"Unknown Block",defaultMessage:"Unknown Block {block}"}});t.a=Object(o.c)(e=>{const{path:t,intl:s,content:n,metadata:a}=e,o=Object(i.t)(n),p=Object(i.u)(n),u=e.blocksConfig||l.a.blocks.blocksConfig,h=""+(e.as||"div");return Object(i.I)(n)?Object(c.jsx)(h,{children:r()(n[p].items,e=>{var r,l,p,h,b;const j=null===(r=u[null===(l=n[o])||void 0===l||null===(p=l[e])||void 0===p?void 0:p["@type"]])||void 0===r?void 0:r.view,m=Object(i.i)({data:n[o][e],intl:s,metadata:a,properties:n});return j?Object(c.jsx)(j,{id:e,metadata:a,properties:n,data:m,path:Object(i.r)(t||""),blocksConfig:u},e):Object(c.jsx)("div",{children:s.formatMessage(d.unknownBlock,{block:null===(h=n[o])||void 0===h||null===(b=h[e])||void 0===b?void 0:b["@type"]})},e)})}):""})},"3JMB":function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path fill-rule="evenodd" clip-rule="evenodd" d="M3 13V3H21V13H3ZM5 5H19V11H5V5Z" fill="currentcolor"/><path d="M13 19H11V21H13V19zM15 19H17V21H15V19zM5 19H3V21H5V19zM7 19H9V21H7V19zM21 19H19V21H21V19zM19 15H21V17H19V15zM5 15H3V17H5V15z"/>'}},"3sV1":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M24.4258,29 L11.5738,29 L5.1578,18 L11.5738,7 L24.4258,7 L30.8428,18 L24.4258,29 Z M25.5738,5 L10.4258,5 L2.8428,18 L10.4258,31 L25.5738,31 L33.1568,18 L25.5738,5 Z"/><path d="M22.243 12.343L18 16.586 13.757 12.343 12.343 13.757 16.586 18 12.343 22.243 13.757 23.657 18 19.414 22.243 23.657 23.657 22.243 19.414 18 23.657 13.757z"/></g>'}},"3tf8":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("3tWz"),l=s.n(o),c=(s("17x9"),s("ANjH")),d=s("/MKj"),p=s("lHu7"),u=s("24R3"),h=s("zSVi"),b=s("3mGJ"),j=s("umxb"),m=s("Pefm"),g=s("Wl3A"),f=s("zfia"),O=s("5IEt"),v=s("8ZS8"),y=s("qaC+"),x=s.n(y),w=s("NHNY"),C=s.n(w),S=s("1Jxj"),M=s.n(S),k=s("SoYb"),N=s.n(k),P=s("XXUR"),L=s.n(P),D=s("aMsN"),E=s.n(D),T=s("Pj1C"),I=s("QetY"),A=s("52Oh"),R=s("TSYQ"),_=s.n(R),q=s("zpb6"),F=s("6fhb"),B=s.n(F),z=s("nKUr");const U=Object(p.defineMessages)({browse:{id:"Browse",defaultMessage:"Browse"},select:{id:"Select",defaultMessage:"Select"}});var H=({currentSearchResults:e,selected:t,handleClickOnItem:s,handleDoubleClickOnItem:n,mode:r,navigateTo:i,isSelectable:a})=>{const o=Object(A.a)(),l=e=>{let s=!1;return t&&t.filter(e=>null!=e).forEach(t=>{Object(q.q)(t["@id"])===Object(q.q)(e["@id"])&&(s=!0)}),s};return Object(z.jsx)(b.a,{as:"ul",className:"object-listing",children:e&&e.items.map(e=>Object(z.jsxs)("li",{role:"presentation","aria-label":e.is_folderish&&"image"===r?`${o.formatMessage(U.browse)} ${e.title}`:`${o.formatMessage(U.select)} ${e.title}`,className:_()("",{"selected-item":l(e),disabled:"image"===r?!v.a.settings.imageObjects.includes(e["@type"])&&!e.is_folderish:!a(e)}),onClick:()=>s(e),onDoubleClick:()=>n(e),children:[Object(z.jsxs)("span",{title:`${e["@id"]} (${e["@type"]})`,children:[Object(z.jsx)(T.a,{content:Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(f.a,{name:E.a,size:"18px"})," ",Object(q.q)(e["@id"])," ( ",e["@type"],")"]}),trigger:Object(z.jsx)("span",{children:Object(z.jsx)(f.a,{name:Object(q.x)(e["@type"],e.is_folderish),size:"24px"})})},e["@id"]),e.title]}),e.is_folderish&&"image"===r&&Object(z.jsx)(f.a,{className:"right-arrow-icon",name:B.a,size:"24px"}),e.is_folderish&&("link"===r||"multiple"===r)&&Object(z.jsx)("div",{role:"presentation",className:"right-arrow-link-mode",onClick:t=>{t.stopPropagation(),i(e["@id"])},children:Object(z.jsx)(I.a.Group,{children:Object(z.jsx)(I.a,{basic:!0,icon:!0,"aria-label":`${o.formatMessage(U.browse)} ${e.title}`,children:Object(z.jsx)(f.a,{className:"right-arrow-icon",name:B.a,size:"24px"})})})})]},e["@id"]))})};function K(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function G(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?K(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):K(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const V=Object(p.defineMessages)({SearchInputPlaceholder:{id:"Search content",defaultMessage:"Search content"},SelectedItems:{id:"Selected items",defaultMessage:"Selected items"},back:{id:"Back",defaultMessage:"Back"},search:{id:"Search SVG",defaultMessage:"Search SVG"},of:{id:"Selected items - x of y",defaultMessage:"of"}});function Z(e){return Object(O.d)(""+l()(e.split("/").slice(0,-1),"/"))||"/"}class W extends i.Component{constructor(e){var t,s,n,i;super(e),r()(this,"initialSearch",e=>{const t="multiple"===e?"":"image"===e?this.state.selectedImage:this.state.selectedHref;t&&Object(O.j)(t)?this.props.searchContent(Z(t),{"path.depth":1,sort_on:"getObjPositionInParent",metadata_fields:"_all",b_size:1e3},`${this.props.block}-${e}`):this.props.searchContent(this.state.currentFolder,{"path.depth":1,sort_on:"getObjPositionInParent",metadata_fields:"_all",b_size:1e3},`${this.props.block}-${e}`)}),r()(this,"navigateTo",e=>{this.props.searchContent(e,{"path.depth":1,sort_on:"getObjPositionInParent",metadata_fields:"_all",b_size:1e3},`${this.props.block}-${this.props.mode}`);const t=""+l()(e.split("/").slice(0,-1),"/")||"/";this.setState(()=>({parentFolder:t,currentFolder:e||"/"}))}),r()(this,"toggleSearchInput",()=>this.setState(e=>({showSearchInput:!e.showSearchInput}),()=>{var e;null!==(e=this.searchInputRef)&&void 0!==e&&e.current&&this.searchInputRef.current.focus()})),r()(this,"onSearch",e=>{const t=Object(O.d)(e.target.value);t.startsWith("/")?(this.setState({currentFolder:t}),this.props.searchContent(t,{"path.depth":1,sort_on:"getObjPositionInParent",metadata_fields:"_all"},`${this.props.block}-${this.props.mode}`)):t.length>2?this.props.searchContent("/",{SearchableText:t+"*",metadata_fields:"_all"},`${this.props.block}-${this.props.mode}`):this.props.searchContent("/",{"path.depth":1,sort_on:"getObjPositionInParent",metadata_fields:"_all"},`${this.props.block}-${this.props.mode}`)}),r()(this,"onSelectItem",e=>{const t=e["@id"],{block:s,data:n,mode:r,dataName:i,onChangeBlock:a}=this.props;i?a(s,G(G({},n),{},{[i]:t})):this.props.onSelectItem?this.props.onSelectItem(t,e):"image"===r?a(s,G(G({},n),{},{url:Object(O.d)(e.getURL),alt:""})):"link"===r&&a(s,G(G({},n),{},{href:Object(O.d)(t)})),(e=>{switch(e){case"image":this.setState({selectedImage:t,currentImageFolder:Z(t)});break;case"link":this.setState({selectedHref:t,currentLinkFolder:Z(t)})}})(r)}),r()(this,"onChangeBlockData",(e,t)=>{this.props.onChangeBlock(this.props.block,G(G({},this.props.data),{},{[e]:t}))}),r()(this,"isSelectable",e=>!(this.props.selectableTypes.length>0)||this.props.selectableTypes.indexOf(e["@type"])>=0),r()(this,"handleClickOnItem",e=>{if("image"===this.props.mode)e.is_folderish&&this.navigateTo(e["@id"]),v.a.settings.imageObjects.includes(e["@type"])&&this.onSelectItem(e);else if(this.isSelectable(e))if(!this.props.maximumSelectionSize||"multiple"===this.props.mode||!this.props.data||this.props.data.length<this.props.maximumSelectionSize){this.onSelectItem(e);let t=this.props.data?this.props.data.length:0;("multiple"!==this.props.mode||this.props.maximumSelectionSize>0&&t+1>=this.props.maximumSelectionSize)&&this.props.closeObjectBrowser()}else this.props.closeObjectBrowser();else this.navigateTo(e["@id"])}),r()(this,"handleDoubleClickOnItem",e=>{"image"===this.props.mode?(e.is_folderish&&this.navigateTo(e["@id"]),v.a.settings.imageObjects.includes(e["@type"])&&(this.onSelectItem(e),this.props.closeObjectBrowser())):this.isSelectable(e)?(this.props.data.length<this.props.maximumSelectionSize&&this.onSelectItem(e),this.props.closeObjectBrowser()):this.navigateTo(e["@id"])}),this.state={currentFolder:"multiple"===this.props.mode?"/":this.props.contextURL||"/",currentImageFolder:"multiple"===this.props.mode?"/":null!==(t=this.props.data)&&void 0!==t&&t.url?Z(this.props.data.url):"/",currentLinkFolder:"multiple"===this.props.mode?"/":null!==(s=this.props.data)&&void 0!==s&&s.href?Z(this.props.data.href):"/",parentFolder:"",selectedImage:"multiple"===this.props.mode?"":null!==(n=this.props.data)&&void 0!==n&&n.url?Object(O.d)(this.props.data.url):"",selectedHref:"multiple"===this.props.mode?"":null!==(i=this.props.data)&&void 0!==i&&i.href?Object(O.d)(this.props.data.href):"",showSearchInput:!1},this.searchInputRef=a.a.createRef()}componentDidMount(){this.initialSearch(this.props.mode)}render(){var e;return Object(z.jsxs)(b.a.Group,{raised:!0,children:[Object(z.jsxs)("header",{className:"header pulled",children:[Object(z.jsx)("div",{className:"vertical divider"}),"/"===this.state.currentFolder?Object(z.jsx)(z.Fragment,{children:"image"===this.props.mode?Object(z.jsx)(f.a,{name:C.a,size:"24px"}):Object(z.jsx)(f.a,{name:L.a,size:"24px"})}):Object(z.jsx)("button",{"aria-label":this.props.intl.formatMessage(V.back),onClick:()=>this.navigateTo(this.state.parentFolder),children:Object(z.jsx)(f.a,{name:x.a,size:"24px"})}),this.state.showSearchInput?Object(z.jsx)(j.a,{className:"search",ref:this.searchInputRef,onChange:this.onSearch,placeholder:this.props.intl.formatMessage(V.SearchInputPlaceholder)}):"image"===this.props.mode?Object(z.jsx)("h2",{children:Object(z.jsx)(u.a,{id:"Choose Image",defaultMessage:"Choose Image"})}):Object(z.jsx)("h2",{children:Object(z.jsx)(u.a,{id:"Choose Target",defaultMessage:"Choose Target"})}),Object(z.jsx)("button",{"aria-label":this.props.intl.formatMessage(V.search),onClick:this.toggleSearchInput,children:Object(z.jsx)(f.a,{name:N.a,size:"24px"})}),Object(z.jsx)("button",{className:"clearSVG",onClick:this.props.closeObjectBrowser,children:Object(z.jsx)(f.a,{name:M.a,size:"24px"})})]}),Object(z.jsx)(b.a,{secondary:!0,className:"breadcrumbs",vertical:!0,children:Object(z.jsx)(m.a,{children:"/"!==this.state.currentFolder?this.state.currentFolder.split("/").map((e,t,s)=>Object(z.jsx)(a.a.Fragment,{children:0===t?Object(z.jsx)(m.a.Section,{onClick:()=>this.navigateTo("/"),children:Object(z.jsx)(f.a,{className:"home-icon",name:E.a,size:"18px"})}):Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(m.a.Divider,{},"divider-"+e.url),Object(z.jsx)(m.a.Section,{onClick:()=>this.navigateTo(s.slice(0,t+1).join("/")),children:e})]})},`divider-${e}-${t}`)):Object(z.jsx)(m.a.Section,{onClick:()=>this.navigateTo("/"),children:Object(z.jsx)(f.a,{className:"home-icon",name:E.a,size:"18px"})})})}),"multiple"===this.props.mode&&Object(z.jsxs)(b.a,{className:"infos",children:[this.props.intl.formatMessage(V.SelectedItems),":"," ",null===(e=this.props.data)||void 0===e?void 0:e.length,this.props.maximumSelectionSize>0&&Object(z.jsxs)(z.Fragment,{children:[" ",this.props.intl.formatMessage(V.of)," ",this.props.maximumSelectionSize]})]}),Object(z.jsx)(H,{currentSearchResults:this.props.searchSubrequests[`${this.props.block}-${this.props.mode}`],selected:"multiple"===this.props.mode?this.props.data:[{"@id":"image"===this.props.mode?this.state.selectedImage:this.state.selectedHref}],handleClickOnItem:this.handleClickOnItem,handleDoubleClickOnItem:this.handleDoubleClickOnItem,mode:this.props.mode,navigateTo:this.navigateTo,isSelectable:this.isSelectable})]})}}r()(W,"defaultProps",{image:"",href:"",onSelectItem:null,dataName:null,selectableTypes:[],maximumSelectionSize:null});var $=Object(c.compose)(h.c,Object(d.connect)(e=>({searchSubrequests:e.search.subrequests}),{searchContent:g.b}))(W),Y=s("6hAl");function J(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Q(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?J(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):J(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{var t,s;return s=t=class extends a.a.Component{constructor(){super(),r()(this,"openObjectBrowser",({mode:e="image",onSelectItem:t=null,dataName:s=null,overlay:n=null,propDataName:r=null,selectableTypes:i,maximumSelectionSize:a,currentPath:o}={})=>this.setState(()=>({isObjectBrowserOpen:!0,mode:e,onSelectItem:t,dataName:s,overlay:n,propDataName:r,selectableTypes:i,maximumSelectionSize:a,currentPath:o}))),r()(this,"closeObjectBrowser",()=>this.setState({isObjectBrowserOpen:!1})),this.state={isObjectBrowserOpen:!1}}render(){var t,s;let n=this.props.pathname||(null===(t=this.props.location)||void 0===t?void 0:t.pathname)||(null===(s=this.state)||void 0===s?void 0:s.currentPath);return Object(z.jsxs)(z.Fragment,{children:[Object(z.jsx)(e,Q(Q({},this.props),{},{isObjectBrowserOpen:this.state.isObjectBrowserOpen,openObjectBrowser:this.openObjectBrowser,closeObjectBrowser:this.closeObjectBrowser})),Object(z.jsx)(z.Fragment,{children:Object(z.jsx)(Y.a,{open:this.state.isObjectBrowserOpen,onClose:this.closeObjectBrowser,overlay:this.state.overlay,children:Object(z.jsx)($,Q(Q({},this.props),{},{data:this.state.propDataName?this.props[this.state.propDataName]:this.props.data,contextURL:Object(q.r)(n),closeObjectBrowser:this.closeObjectBrowser,mode:this.state.mode,onSelectItem:this.state.onSelectItem,dataName:this.state.dataName,selectableTypes:this.state.selectableTypes,maximumSelectionSize:this.state.maximumSelectionSize}))})})]})}},r()(t,"defaultProps",{onChangeBlock:()=>{},data:{},block:(new Date).getTime()+""}),s}},"4/F1":function(e,t,s){"use strict";s("17x9");var n=s("5+2E"),r=s.n(n),i=(s("q1tI"),s("8ZS8")),a=s("nKUr");t.a=({data:e})=>e.text?r()(e.text,i.a.settings.richtextViewSettings.ToHTMLRenderers,i.a.settings.richtextViewSettings.ToHTMLOptions):Object(a.jsx)("br",{})},"4K5c":function(e,t,s){"use strict";s.d(t,"a",(function(){return g}));var n=s("dl5t"),r=s.n(n),i=s("XXUR"),a=s.n(i),o=s("K+a1"),l=s.n(o),c=s("NHNY"),d=s.n(c),p=s("sx21"),u=s.n(p),h=s("+ArM"),b=s.n(h),j=s("n2F9"),m=s.n(j);const g={Document:b.a,Folder:d.a,"News Item":r.a,Event:l.a,Image:m.a,File:u.a,Link:a.a}},"4Ll7":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M12.293 22.293L13.707 23.707 17 20.414 17 31 19 31 19 20.414 22.293 23.707 23.707 22.293 18 16.586z"/><path d="M28.9707,15.6641 C28.9907,15.4401 28.9997,15.2191 28.9997,15.0001 C28.9997,10.5891 25.4107,7.0001 20.9997,7.0001 C17.9547,7.0001 15.2217,8.7151 13.8727,11.3711 C13.2807,11.1261 12.6477,11.0001 11.9997,11.0001 C9.3517,11.0001 7.1777,13.0691 7.0107,15.6761 C4.5837,16.8221 2.9997,19.2771 2.9997,22.0001 C2.9997,25.8591 6.1407,29.0001 9.9997,29.0001 L11.9997,29.0001 L11.9997,27.0001 L9.9997,27.0001 C7.2427,27.0001 4.9997,24.7571 4.9997,22.0001 C4.9997,19.8761 6.3517,17.9791 8.3627,17.2801 L9.0977,17.0251 L8.9997,16.0001 C8.9997,14.3461 10.3457,13.0001 11.9997,13.0001 C12.6307,13.0001 13.2427,13.2051 13.7697,13.5931 L14.8757,14.4071 L15.3107,13.1031 C16.1287,10.6491 18.4147,9.0001 20.9997,9.0001 C24.3087,9.0001 26.9997,11.6911 26.9997,15.0001 C26.9997,15.3601 26.9637,15.7361 26.8917,16.1161 L26.7287,16.9781 L27.5617,17.2531 C29.6177,17.9301 30.9997,19.8371 30.9997,22.0001 C30.9997,24.7571 28.7567,27.0001 25.9997,27.0001 L23.9997,27.0001 L23.9997,29.0001 L25.9997,29.0001 C29.8597,29.0001 32.9997,25.8591 32.9997,22.0001 C32.9997,19.2551 31.4107,16.8041 28.9707,15.6641"/></g>'}},"4fDH":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M7,24.5859 L7,22.9999 L6,22.9999 C5.449,22.9999 5,22.5519 5,21.9999 L5,9.9999 C5,9.4479 5.449,8.9999 6,8.9999 L26,8.9999 C26.551,8.9999 27,9.4479 27,9.9999 L27,14.9999 L29,14.9999 L29,9.9999 C29,8.3459 27.654,6.9999 26,6.9999 L6,6.9999 C4.346,6.9999 3,8.3459 3,9.9999 L3,21.9999 C3,23.3039 3.836,24.4159 5,24.8289 L5,29.4139 L9.414,24.9999 L17,24.9999 L17,22.9999 L8.586,22.9999 L7,24.5859 Z"/><path d="M31,24 C31,24.552 30.551,25 30,25 L29,25 L29,26.586 L27.414,25 L22,25 C21.449,25 21,24.552 21,24 L21,20 C21,19.448 21.449,19 22,19 L30,19 C30.551,19 31,19.448 31,20 L31,24 Z M30,17 L22,17 C20.346,17 19,18.346 19,20 L19,24 C19,25.654 20.346,27 22,27 L26.586,27 L31,31.414 L31,26.829 C32.164,26.416 33,25.304 33,24 L33,20 C33,18.346 31.654,17 30,17 L30,17 Z"/></g>'}},"4nAz":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M12.293 22.293L13.707 23.707 17 20.414 17 31 19 31 19 20.414 22.293 23.707 23.707 22.293 18 16.586zM9 11L27 11 27 7 9 7 9 11zM7 13L29 13 29 5 7 5 7 13z"/></g>'}},"4u8c":function(e,t,s){"use strict";s("q1tI"),s("17x9"),s("nKUr")},"4yIa":function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("55Ip"),r=s("yE/o"),i=s("3mGJ"),a=s("5XkN"),o=s("nKUr");t.a=({content:e})=>Object(o.jsx)(r.a,{id:"page-home",children:Object(o.jsx)("section",{id:"content-core",children:e.items.map(e=>Object(o.jsxs)(i.a,{className:"listing-item",children:[Object(o.jsxs)(r.a,{children:[Object(o.jsx)("h2",{children:Object(o.jsx)(n.a,{to:e.url,title:e["@type"],children:e.title})}),e.description&&Object(o.jsx)("p",{children:e.description})]}),e.image&&Object(o.jsx)(a.a,{size:"small",alt:e.image_caption?e.image_caption:e.title,src:e.image.scales.thumb.download})]},e.url))})})},"53Vz":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M11.9341,27 L9.0001,27 L9.0001,24.277 L19.9311,13.398 L22.7861,16.174 L11.9341,27 Z M26.3841,6.999 L29.2121,9.827 L24.2271,14.813 L21.3981,11.984 L26.3841,6.999 Z M28.9351,12.932 L30.6261,11.241 C31.4061,10.461 31.4061,9.193 30.6261,8.413 L27.7971,5.584 C27.0421,4.829 25.6721,4.828 24.9161,5.584 L7.0001,23.449 L7.0001,27.48 L5.2401,29.293 L6.6811,30.654 L8.3091,29 L12.7621,29 L27.5211,14.294 L29.0011,15.801 L24.4141,20.401 L25.8281,21.822 L30.4151,17.238 C30.7921,16.861 31.0001,16.361 31.0001,15.826 C31.0001,15.29 30.7921,14.789 30.4151,14.412 L28.9351,12.932 Z"/>'}},"5GrA":function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("yE/o"),l=s("TbSc"),c=s("9At1"),d=s("nKUr");class p extends i.Component{constructor(e){super(e),this.onDismiss=this.onDismiss.bind(this)}onDismiss(e,{value:t}){this.props.removeMessage(t)}render(){return this.props.messages&&Object(d.jsx)(o.a,{className:"messages",children:r()(this.props.messages,(e,t)=>Object(d.jsx)(l.a,{value:t,onDismiss:this.onDismiss,error:"error"===e.level,success:"success"===e.level,warning:"warning"===e.level,info:"info"===e.level,header:e.title,content:e.body},e.id))})}}Object(a.connect)(e=>({messages:e.messages.messages}),{removeMessage:c.eb})(p)},"5IEt":function(e,t,s){"use strict";s.d(t,"e",(function(){return m})),s.d(t,"g",(function(){return g})),s.d(t,"f",(function(){return f})),s.d(t,"h",(function(){return O})),s.d(t,"d",(function(){return v})),s.d(t,"n",(function(){return y})),s.d(t,"o",(function(){return x})),s.d(t,"i",(function(){return w})),s.d(t,"c",(function(){return C})),s.d(t,"b",(function(){return S})),s.d(t,"j",(function(){return M})),s.d(t,"k",(function(){return k})),s.d(t,"l",(function(){return N})),s.d(t,"m",(function(){return P})),s.d(t,"a",(function(){return L}));var n=s("44Ds"),r=s.n(n),i=s("RBan"),a=s.n(i),o=s("wRvv"),l=s.n(o);const c="(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}",d="[0-9a-fA-F]{1,4}",p=`\n(\n(?:${d}:){7}(?:${d}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${d}:){6}(?:${c}|:${d}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${d}:){5}(?::${c}|(:${d}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${d}:){4}(?:(:${d}){0,1}:${c}|(:${d}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${d}:){3}(?:(:${d}){0,2}:${c}|(:${d}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${d}:){2}(?:(:${d}){0,3}:${c}|(:${d}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${d}:){1}(?:(:${d}){0,4}:${c}|(:${d}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${d}){0,5}:${c}|(?::${d}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),u=e=>e&&e.exact?new RegExp(`(?:^${c}$)|(?:^${p}$)`):new RegExp(`(?:${c})|(?:${p})`,"g");u.v4=e=>e&&e.exact?new RegExp(`^${c}$`):new RegExp(c,"g"),u.v6=e=>e&&e.exact?new RegExp(`^${p}$`):new RegExp(p,"g");var h=s("mXTs"),b=s.n(h),j=s("8ZS8");const m=r()(e=>{const{settings:t}=j.a;if(void 0===e)return;let s=t.nonContentRoutes.map(e=>e.test?e:new RegExp(e+"$")).reduce((e,t)=>e.replace(t,""),e);return s=s||"/","/"===s?"":s}),g=r()(e=>e.substring(0,e.lastIndexOf("/")));function f(e){return a()(e.replace(/\?.*$/,"").split("/"))}function O(e){const t=a()(e.replace(/\?.*$/,"").split("/"));return-1===["add","layout","contents","edit","delete","diff","history","sharing","controlpanel"].indexOf(t)?"view":"layout"===t?"edit":t}function v(e){const{settings:t}=j.a;return e&&e.replace(t.internalApiPath,"").replace(t.apiPath,"").replace(t.publicURL,"")}function y(e){return e.replace(/\?.*$/,"")}function x(e){const{settings:t}=j.a;return t.publicURL.concat(v(e))}const w=r()(e=>{const{settings:t}=j.a,s=e.replace(/\?.*$/,"");return t.nonContentRoutes.reduce((e,t)=>e||new RegExp(t).test("/"+s),!1)});function C(e){const{settings:t}=j.a;return t.internalApiPath?e.replace(new RegExp(t.internalApiPath,"g"),"").replace(new RegExp(t.apiPath,"g"),""):e.replace(new RegExp(t.apiPath,"g"),"")}function S(e){const{settings:t}=j.a;return 0===e.indexOf(t.apiPath)?e:`${t.apiPath}${e}`}function M(e){const{settings:t}=j.a;return e&&(-1!==e.indexOf(t.publicURL)||t.internalApiPath&&-1!==e.indexOf(t.internalApiPath)||-1!==e.indexOf(t.apiPath)||"/"===e.charAt(0)||"."===e.charAt(0)||e.startsWith("#"))}function k(e){return(e=>{const t=Object.assign({strict:!0},e),s=`(?:${"(?:(?:[a-z]+:)?//)"+(t.strict?"":"?")}|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${u.v4().source}|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*${`(?:\\.${t.strict?"(?:[a-z\\u00a1-\\uffff]{2,})":`(?:${l.a.sort((e,t)=>t.length-e.length).join("|")})`})\\.?`})(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return t.exact?new RegExp(`(?:^${s}$)`,"i"):new RegExp(s,"ig")})().test(e)}function N(e){return b()(e)}function P(e){return e.replace("https://","").replace("http://","")}const L={normalizeTelephone:function(e){return e.toLowerCase().startsWith("tel:")?e:"tel:"+e},normaliseMail:function(e){return e.toLowerCase().startsWith("mailto:")?e:"mailto:"+e},normalizeUrl:N,isTelephone:function(e){return/^[tel:]*[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/g.test(e)},isMail:function(e){return/^((mailto:[^<>()/[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i.test(e)},isUrl:k}},"5Ixu":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M23.7192,4.3052 L22.2812,5.6952 L25.4722,9.0002 L17.0002,9.0002 C11.4862,9.0002 7.0002,13.4862 7.0002,19.0002 C7.0002,24.5142 11.4862,29.0002 17.0002,29.0002 L18.0002,29.0002 L18.0002,27.0002 L17.0002,27.0002 C12.5892,27.0002 9.0002,23.4112 9.0002,19.0002 C9.0002,14.5892 12.5892,11.0002 17.0002,11.0002 L25.4722,11.0002 L22.2812,14.3052 L23.7192,15.6952 L29.2192,10.0002 L23.7192,4.3052 Z"/>'}},"5KwW":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M11 11L33 11 33 8.999 11 8.999zM11 19L33 19 33 17 11 17zM11 27L33 27 33 25 11 25zM6 11.5C6.828 11.5 7.5 10.828 7.5 10 7.5 9.172 6.828 8.5 6 8.5 5.172 8.5 4.5 9.172 4.5 10 4.5 10.828 5.172 11.5 6 11.5M6 19.5C6.828 19.5 7.5 18.828 7.5 18 7.5 17.172 6.828 16.5 6 16.5 5.172 16.5 4.5 17.172 4.5 18 4.5 18.828 5.172 19.5 6 19.5M6 27.5C6.828 27.5 7.5 26.828 7.5 26 7.5 25.172 6.828 24.5 6 24.5 5.172 24.5 4.5 25.172 4.5 26 4.5 26.828 5.172 27.5 6 27.5"/></g>'}},"5SMn":function(e,t){e.exports={en:"English",de:"Deutsch",nl:"Nederlands",ro:"Rom\xe2n\u0103",ja:"\u65e5\u672c\u8a9e",pt:"Portugu\xeas",pt_BR:"Portugu\xeas (Brasil)",es:"Spanish",it:"Italian",eu:"Euskara"}},"5XvZ":function(e,t,s){},"5acD":function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=s("Ty5D"),a=s("/MKj"),o=s("9At1"),l=s("zpb6"),c=s("8ZS8"),d=s("nKUr");t.a=e=>{const t=Object(a.useDispatch)(),{language:n,translationOf:p}=e.location.state,[u,h]=r.a.useState(null),[b,j]=r.a.useState(null),m=Object(a.useSelector)(e=>e.intl.locale);return r.a.useEffect(()=>(t(Object(o.E)(p,n)).then(e=>{h(e["@id"])}),t(Object(o.t)(p,null,"translationObject")).then(e=>{j(e)}),()=>{if(c.a.settings.supportedLanguages.includes(n)){const e=Object(l.S)(n);s("Zbgq")("./"+e+".json").then(e=>{t(Object(o.d)(n,e.default))})}}),[]),u&&b&&Object(d.jsx)(i.b,{to:{pathname:Object(l.q)(u)+"/add",search:"?type="+e.location.state.type,state:{translationOf:e.location.state.translationOf,language:e.location.state.language,translationObject:b,languageFrom:m}}})}},"5vrk":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M23 7L33 7 33 5 23 5z"/><path fill-rule="nonzero" d="M3,7 L5,5 L5,19 L3,17 L19,17 L17,19 L17,5 L19,7 L3,7 Z M19,5 L19,19 L3,19 L3,5 L19,5 Z"/><path d="M23 13L33 13 33 11 23 11zM23 19L33 19 33 17 23 17zM3 31L33 31 33 29 3 29zM3 25L33 25 33 23 3 23z"/></g>'}},"5wJP":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M21 25L23 25 23 11 21 11 21 25zM19 27L25 27 25 9 19 9 19 27zM13 25L15 25 15 11 13 11 13 25zM11 27L17 27 17 9 11 9 11 27z" fill-rule="evenodd"/>'}},"5ymK":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M9.293 14.707L10.707 13.293 18 20.586 25.293 13.293 26.707 14.707 18 23.414z"/>'}},"6EwQ":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("52Oh")),a=s("Kvkj"),o=s("RuZR"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{const{data:t,block:s,onChangeBlock:n}=e,r=Object(i.a)(),c=Object(o.b)(d(d({},e),{},{intl:r}));return Object(l.jsx)(a.h,{schema:c,title:c.title,onChangeField:(e,r)=>{n(s,d(d({},t),{},{[e]:r}))},formData:t,block:s})}},"6fhb":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M14.707 26.707L13.293 25.293 20.586 18 13.293 10.707 14.707 9.293 23.414 18z"/>'}},"6hAl":function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=s("It+4"),a=s("pQ8y"),o=(s("17x9"),s("xd3P")),l=s("nKUr");const c=e=>{var t;const{children:s,open:n,onClose:c,overlay:d}=e,p=r.a.createRef(),u=e=>{p&&Object(o.doesNodeContainClick)(p.current,e)||c()};return r.a.useEffect(()=>(document.addEventListener("mousedown",u,!1),()=>{document.removeEventListener("mousedown",u,!1)})),Object(l.jsxs)(l.Fragment,{children:[d&&Object(l.jsx)(a.a,{in:n,timeout:500,classNames:"overlay-container",unmountOnExit:!0,children:Object(l.jsx)(i.a,{node:null===(t=document)||void 0===t?void 0:t.body,children:Object(l.jsx)("div",{className:"overlay-container"})})}),Object(l.jsx)(a.a,{in:n,timeout:500,classNames:"sidebar-container",unmountOnExit:!0,children:Object(l.jsx)(i.a,{children:Object(l.jsx)("aside",{role:"presentation",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},ref:p,className:"sidebar-container",style:{overflowY:"auto"},children:s},"sidebarpopup")})})]})};c.defaultProps={open:!1,onClose:()=>{},overlay:!1},t.a=c},"6k/9":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("23at");function a(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?a(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):a(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const l=o(o({},i.a),{},{properties:o(o({},i.a.properties),{},{placeholder:o(o({},i.a.properties.placeholder),{},{title:"Title",description:"Table of contents heading text"})})});t.a=l},"76YJ":function(e,t,s){"use strict";s("q1tI");var n=s("lHu7"),r=s("zSVi"),i=(s("17x9"),s("TSYQ")),a=s.n(i),o=s("nKUr");const l=Object(n.defineMessages)({EmbededGoogleMaps:{id:"Embeded Google Maps",defaultMessage:"Embeded Google Maps"}});t.a=Object(r.c)(({data:e,intl:t})=>Object(o.jsx)("div",{className:a()("block maps align",{center:!Boolean(e.align)},e.align),children:Object(o.jsx)("div",{className:a()("maps-inner",{"full-width":"full"===e.align}),children:Object(o.jsx)("iframe",{title:t.formatMessage(l.EmbededGoogleMaps),src:e.url,className:"google-map",frameBorder:"0",allowFullScreen:!0})})}))},"7C3G":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("J2m7"),a=s.n(i),o=s("q1tI"),l=s("lHu7"),c=s("zSVi"),d=(s("17x9"),s("/MKj")),p=s("ANjH"),u=s("55Ip"),h=s("Ty5D"),b=s("GGqY"),j=s("NAv5"),m=s("Kvkj"),g=s("SAOm"),f=s("9At1"),O=s("zpb6"),v=s("8ZS8"),y=s("6fhb"),x=s.n(y),w=s("b6H7"),C=s.n(w),S=s("kfnI"),M=s.n(S),k=s("ZcMx"),N=s.n(k),P=s("nKUr");const L=Object(l.defineMessages)({personalTools:{id:"Personal tools",defaultMessage:"Personal tools"},history:{id:"History",defaultMessage:"History"},sharing:{id:"Sharing",defaultMessage:"Sharing"},ManageTranslations:{id:"Manage Translations",defaultMessage:"Manage Translations"},CreateWorkingCopy:{id:"Create working copy",defaultMessage:"Create working copy"},applyWorkingCopy:{id:"Apply working copy",defaultMessage:"Apply working copy"},removeWorkingCopy:{id:"Remove working copy",defaultMessage:"Remove working copy"},viewWorkingCopy:{id:"View working copy",defaultMessage:"View working copy"},workingAppliedTitle:{id:"Changes applied.",defaultMessage:"Changes applied"},workingCopyAppliedBy:{id:"Made by {creator} on {date}. This is not a working copy anymore, but the main content.",defaultMessage:"Made by {creator} on {date}. This is not a working copy anymore, but the main content."},workingCopyRemovedTitle:{id:"The working copy was discarded",defaultMessage:"The working copy was discarded"}});class D extends o.Component{constructor(...e){super(...e),r()(this,"state",{openManageTranslations:!1,pushed:!1}),r()(this,"push",e=>{this.setState(()=>({pushed:!0})),this.props.loadComponent(e),document.removeEventListener("mousedown",this.handleClickOutside,!1)})}render(){const e=Object(O.r)(this.props.pathname),t=a()(this.props.actions.object,{id:"edit"}),s=a()(this.props.actions.object,{id:"history"}),n=a()(this.props.actions.object,{id:"local_roles"}),{content:r,intl:i,lang:o}=this.props,l={year:"numeric",month:"long",day:"numeric"};return Object(P.jsxs)("div",{className:"menu-more pastanaga-menu",style:{flex:this.props.theToolbar.current?`0 0 ${this.props.theToolbar.current.getBoundingClientRect().width}px`:null},children:[Object(P.jsxs)("header",{children:[Object(P.jsx)("h2",{children:this.props.content.title}),Object(P.jsx)("button",{className:"more-user","aria-label":this.props.intl.formatMessage(L.personalTools),onClick:()=>this.push("personalTools"),tabIndex:0,children:Object(P.jsx)(m.jb,{name:C.a,size:"30px",title:this.props.intl.formatMessage(L.personalTools)})})]}),Object(P.jsx)("div",{className:"pastanaga-menu-list",children:Object(P.jsxs)("ul",{children:[Object(P.jsx)(g.b,{name:"toolbar-more-menu-list"}),Object(P.jsx)(g.a,{pluggable:"toolbar-more-menu-list",id:"state",children:"Plone Site"!==this.props.content["@type"]&&Object(P.jsx)("li",{className:"state-select",children:Object(P.jsx)(m.dc,{pathname:e})})}),Object(P.jsx)(g.a,{pluggable:"toolbar-more-menu-list",id:"view",children:"Plone Site"!==this.props.content["@type"]&&Object(P.jsx)("li",{className:"display-select",children:t&&Object(P.jsx)(m.U,{pathname:e})})}),Object(P.jsx)(g.a,{pluggable:"toolbar-more-menu-list",id:"history",children:"Plone Site"!==this.props.content["@type"]&&Object(P.jsx)("li",{children:Object(P.jsxs)(u.a,{to:e+"/history",children:[Object(P.jsxs)("div",{children:[Object(P.jsx)("span",{className:"pastanaga-menu-label",children:(null===s||void 0===s?void 0:s.title)||this.props.intl.formatMessage(L.history)}),Object(P.jsx)("span",{className:"pastanaga-menu-value"})]}),Object(P.jsx)(m.jb,{name:x.a,size:"24px"})]})})}),Object(P.jsx)(g.a,{pluggable:"toolbar-more-menu-list",id:"sharing",children:n&&Object(P.jsx)("li",{children:Object(P.jsxs)(u.a,{to:e+"/sharing",children:[this.props.intl.formatMessage(L.sharing),Object(P.jsx)(m.jb,{name:x.a,size:"24px"})]})})})]})}),Object(P.jsx)(g.b,{name:"toolbar-more-manage-content",children:e=>Object(P.jsx)(P.Fragment,{children:e.length>0&&Object(P.jsxs)(P.Fragment,{children:[Object(P.jsx)("header",{children:Object(P.jsx)("h2",{children:"Manage content..."})}),Object(P.jsx)("div",{className:"pastanaga-menu-list",children:Object(P.jsx)("ul",{children:e.map(e=>Object(P.jsx)(P.Fragment,{children:e()}))})})]})})}),v.a.settings.hasWorkingCopySupport&&"Plone Site"!==this.props.content["@type"]&&Object(P.jsxs)(P.Fragment,{children:[!this.props.content.working_copy&&Object(P.jsx)(g.a,{pluggable:"toolbar-more-manage-content",id:"workingcopy",children:Object(P.jsx)("li",{children:Object(P.jsxs)("button",{"aria-label":this.props.intl.formatMessage(L.CreateWorkingCopy),onClick:()=>{this.props.createWorkingCopy(e).then(e=>{this.props.history.push(Object(O.q)(e["@id"])),this.props.closeMenu()})},children:[this.props.intl.formatMessage(L.CreateWorkingCopy),Object(P.jsx)(m.jb,{name:x.a,size:"24px"})]})})}),this.props.content.working_copy&&this.props.content.working_copy_of&&Object(P.jsxs)(g.a,{pluggable:"toolbar-more-manage-content",id:"workingcopy",children:[Object(P.jsx)("li",{children:Object(P.jsxs)("button",{"aria-label":this.props.intl.formatMessage(L.applyWorkingCopy),onClick:()=>{this.props.applyWorkingCopy(e).then(e=>{var t,s;this.props.history.push(Object(O.q)(this.props.content.working_copy_of["@id"])),this.props.closeMenu(),b.toast.info(Object(P.jsx)(m.Ub,{info:!0,title:i.formatMessage(L.workingAppliedTitle),content:i.formatMessage(L.workingCopyAppliedBy,{creator:null===(t=r.working_copy)||void 0===t?void 0:t.creator_name,date:new Intl.DateTimeFormat(o,l).format(Object(j.parse)(null===(s=r.working_copy)||void 0===s?void 0:s.created))})}),{toastId:"workingcopyapplyinfo",autoClose:1e4})})},children:[this.props.intl.formatMessage(L.applyWorkingCopy),Object(P.jsx)(m.jb,{name:M.a,size:"24px",title:this.props.intl.formatMessage(L.applyWorkingCopy)})]})}),Object(P.jsx)("li",{children:Object(P.jsxs)("button",{"aria-label":this.props.intl.formatMessage(L.removeWorkingCopy),onClick:()=>{this.props.removeWorkingCopy(e).then(e=>{this.props.history.push(Object(O.q)(this.props.content.working_copy_of["@id"])),this.props.closeMenu(),b.toast.info(Object(P.jsx)(m.Ub,{info:!0,title:i.formatMessage(L.workingCopyRemovedTitle)}),{toastId:"workingcopyremovednotice",autoClose:1e4})})},children:[this.props.intl.formatMessage(L.removeWorkingCopy),Object(P.jsx)(m.jb,{name:N.a,size:"24px",color:"#e40166",title:this.props.intl.formatMessage(L.removeWorkingCopy)})]})})]}),this.props.content.working_copy&&!this.props.content.working_copy_of&&Object(P.jsx)(g.a,{pluggable:"toolbar-more-manage-content",id:"workingcopy",children:Object(P.jsx)("li",{children:Object(P.jsxs)(u.a,{to:Object(O.q)(this.props.content.working_copy["@id"]),onClick:()=>this.props.closeMenu(),children:[this.props.intl.formatMessage(L.viewWorkingCopy),Object(P.jsx)(m.jb,{name:x.a,size:"24px"})]})})})]}),t&&v.a.settings.isMultilingual&&Object(P.jsx)(g.a,{pluggable:"toolbar-more-manage-content",id:"multilingual",children:Object(P.jsx)("li",{children:Object(P.jsxs)(u.a,{to:e+"/manage-translations",children:[this.props.intl.formatMessage(L.ManageTranslations),Object(P.jsx)(m.jb,{name:x.a,size:"24px"})]})})})]})}}r()(D,"defaultProps",{actions:null,content:null}),t.a=Object(p.compose)(c.c,h.j,Object(d.connect)((e,t)=>({actions:e.actions.actions,pathname:t.pathname,content:e.content.data,lang:e.intl.locale}),{applyWorkingCopy:f.b,createWorkingCopy:f.j,removeWorkingCopy:f.fb}))(D)},"7SAC":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M24.707 19.293L23.293 20.707 18 15.414 12.707 20.707 11.293 19.293 18 12.586z"/><path d="M18,5 C10.832,5 5,10.832 5,18 C5,25.168 10.832,31 18,31 C25.168,31 31,25.168 31,18 C31,10.832 25.168,5 18,5 M18,33 C9.729,33 3,26.271 3,18 C3,9.729 9.729,3 18,3 C26.271,3 33,9.729 33,18 C33,26.271 26.271,33 18,33"/></g>'}},"7T5Z":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M6,11 C5.449,11 5,11.448 5,12 L5,26 C5,26.552 5.449,27 6,27 L30,27 C30.551,27 31,26.552 31,26 L31,12 C31,11.448 30.551,11 30,11 L25.382,11 L23.382,7 L12.618,7 L10.618,11 L6,11 Z M30,29 L6,29 C4.346,29 3,27.654 3,26 L3,12 C3,10.346 4.346,9 6,9 L9.382,9 L11.382,5 L24.618,5 L26.618,9 L30,9 C31.654,9 33,10.346 33,12 L33,26 C33,27.654 31.654,29 30,29 L30,29 Z"/><path d="M18 13C15.243 13 13 15.243 13 18 13 20.757 15.243 23 18 23 20.757 23 23 20.757 23 18 23 15.243 20.757 13 18 13M18 25C14.14 25 11 21.859 11 18 11 14.141 14.14 11 18 11 21.86 11 25 14.141 25 18 25 21.859 21.86 25 18 25M29.5 14C29.5 14.828 28.828 15.5 28 15.5 27.172 15.5 26.5 14.828 26.5 14 26.5 13.172 27.172 12.5 28 12.5 28.828 12.5 29.5 13.172 29.5 14"/></g>'}},"7XF9":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("55Ip"),c=s("zpb6"),d=s("24R3"),p=s("It+4"),u=s("yE/o"),h=s("aQu0"),b=s("QetY"),j=s("ztqQ"),m=s("cr+I"),g=s.n(m),f=s("TSYQ"),O=s.n(f),v=s("8ZS8"),y=s("9At1"),x=s("Kvkj"),w=s("GWVt"),C=s.n(w),S=s("6fhb"),M=s.n(S),k=s("nKUr");function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?N(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class L extends i.Component{constructor(e){super(e),r()(this,"UNSAFE_componentWillReceiveProps",e=>{this.props.location.search!==e.location.search&&this.doSearch()}),r()(this,"doSearch",()=>{const e=g.a.parse(this.props.history.location.search);this.setState({currentPage:1}),e.use_site_search_settings=1,this.props.searchContent("",e)}),r()(this,"handleQueryPaginationChange",(e,{activePage:t})=>{const{settings:s}=v.a;window.scrollTo(0,0);let n=g.a.parse(this.props.history.location.search);n.use_site_search_settings=1,this.setState({currentPage:t},()=>{this.props.searchContent("",P(P({},n),{},{b_start:(this.state.currentPage-1)*s.defaultPageSize}))})}),r()(this,"onSortChange",(e,t)=>{let s=g.a.parse(this.props.history.location.search);s.sort_on=e.target.name,s.sort_order=t||"ascending","relevance"===e.target.name&&(delete s.sort_on,delete s.sort_order);let n=g.a.stringify(s);this.setState({currentPage:1,active:e.target.name},()=>{this.props.history.replace({search:n})})}),this.state={currentPage:1,isClient:!1,active:"relevance"}}componentDidMount(){this.doSearch(),this.setState({isClient:!0})}render(){var e,t;const{settings:s}=v.a;return Object(k.jsxs)(u.a,{id:"page-search",children:[Object(k.jsx)(c.d,{title:"Search"}),Object(k.jsx)("div",{className:"container",children:Object(k.jsxs)("article",{id:"content",children:[Object(k.jsxs)("header",{children:[Object(k.jsx)("h1",{className:"documentFirstHeading",children:this.props.searchableText?Object(k.jsx)(d.a,{id:"Search results for {term}",defaultMessage:"Search results for {term}",values:{term:Object(k.jsx)("q",{children:this.props.searchableText})}}):Object(k.jsx)(d.a,{id:"Search results",defaultMessage:"Search results"})}),Object(k.jsx)(x.Kb,{}),(null===(e=this.props.search)||void 0===e?void 0:e.items_total)>0?Object(k.jsxs)("div",{className:"items_total",children:[this.props.search.items_total," ",Object(k.jsx)(d.a,{id:"results found",defaultMessage:"results"}),Object(k.jsx)(h.a,{children:Object(k.jsxs)(h.a.Content,{className:"header-content",children:[Object(k.jsx)("div",{className:"sort-by",children:Object(k.jsx)(d.a,{id:"Sort By:",defaultMessage:"Sort by:"})}),Object(k.jsx)(b.a,{onClick:e=>{this.onSortChange(e)},name:"relevance",size:"tiny",className:O()("button-sort",{"button-active":"relevance"===this.state.active}),children:Object(k.jsx)(d.a,{id:"Relevance",defaultMessage:"Relevance"})}),Object(k.jsx)(b.a,{onClick:e=>{this.onSortChange(e)},name:"sortable_title",size:"tiny",className:O()("button-sort",{"button-active":"sortable_title"===this.state.active}),children:Object(k.jsx)(d.a,{id:"Alphabetically",defaultMessage:"Alphabetically"})}),Object(k.jsx)(b.a,{onClick:e=>{this.onSortChange(e,"reverse")},name:"effective",size:"tiny",className:O()("button-sort",{"button-active":"effective"===this.state.active}),children:Object(k.jsx)(d.a,{id:"Date (newest first)",defaultMessage:"Date (newest first)"})})]})})]}):Object(k.jsx)("div",{children:Object(k.jsx)(d.a,{id:"No results found",defaultMessage:"No results found"})})]}),Object(k.jsxs)("section",{id:"content-core",children:[this.props.items.map(e=>Object(k.jsxs)("article",{className:"tileItem",children:[Object(k.jsx)("h2",{className:"tileHeadline",children:Object(k.jsx)(l.a,{to:e["@id"],className:"summary url",title:e["@type"],children:e.title})}),e.description&&Object(k.jsx)("div",{className:"tileBody",children:Object(k.jsx)("span",{className:"description",children:e.description})}),Object(k.jsx)("div",{className:"tileFooter",children:Object(k.jsx)(l.a,{to:e["@id"],children:Object(k.jsx)(d.a,{id:"Read More\u2026",defaultMessage:"Read More\u2026"})})}),Object(k.jsx)("div",{className:"visualClear"})]},e["@id"])),(null===(t=this.props.search)||void 0===t?void 0:t.batching)&&Object(k.jsx)("div",{className:"search-footer",children:Object(k.jsx)(j.a,{activePage:this.state.currentPage,totalPages:Math.ceil(this.props.search.items_total/s.defaultPageSize),onPageChange:this.handleQueryPaginationChange,firstItem:null,lastItem:null,prevItem:{content:Object(k.jsx)(x.jb,{name:C.a,size:"18px"}),icon:!0,"aria-disabled":!this.props.search.batching.prev,className:this.props.search.batching.prev?null:"disabled"},nextItem:{content:Object(k.jsx)(x.jb,{name:M.a,size:"18px"}),icon:!0,"aria-disabled":!this.props.search.batching.next,className:this.props.search.batching.next?null:"disabled"}})})]})]})}),this.state.isClient&&Object(k.jsx)(p.a,{node:document.getElementById("toolbar"),children:Object(k.jsx)(x.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(k.jsx)("span",{})})})]})}}r()(L,"defaultProps",{items:[],searchableText:null,subject:null,path:null});Object(a.connect)((e,t)=>({items:e.search.items,searchableText:g.a.parse(t.history.location.search).SearchableText,pathname:t.history.location.pathname}),{searchContent:y.kb})(L);t.a=Object(o.compose)(Object(a.connect)((e,t)=>({items:e.search.items,searchableText:g.a.parse(t.history.location.search).SearchableText,pathname:t.location.pathname}),{searchContent:y.kb}),Object(c.k)([{key:"search",promise:({location:e,store:{dispatch:t}})=>t(Object(y.kb)("",P(P({},g.a.parse(e.search)),{},{use_site_search_settings:1})))}]))(L)},"7awX":function(e,t,s){"use strict";s("q1tI");var n=s("nKUr");t.a=({color:e})=>Object(n.jsx)("svg",{height:"10",width:"10",style:{marginRight:5},children:Object(n.jsx)("circle",{cx:"5",cy:"5",r:"4",fill:e||"#51aa55"})})},"86CS":function(e,t,s){"use strict";s("17x9");var n=s("q1tI"),r=s("24R3"),i=s("zSVi"),a=s("ikXu"),o=s("T5N5"),l=s("pLir"),c=s("DQaE"),d=s.n(c),p=s("Kvkj"),u=s("DP9c"),h=s.n(u),b=s("nKUr");class j extends n.Component{constructor(e){super(e),this.state={},this.onChange=this.onChange.bind(this)}onChange(e,{value:t}){const[s,n]=t.split(".");this.props.updateUser(s,n)}render(){return Object(b.jsxs)(a.a.Row,{children:[Object(b.jsx)(a.a.Cell,{className:"fullname",children:this.props.user.fullname?this.props.user.fullname:this.props.user.username}),this.props.roles.map(e=>Object(b.jsx)(a.a.Cell,{children:this.props.inheritedRole&&this.props.inheritedRole.includes(e.id)?Object(b.jsx)(p.jb,{name:h.a,size:"20px",color:"#007EB1",title:"plone-svg"}):Object(b.jsx)(o.a,{checked:this.props.user.roles.includes(e.id),onChange:this.onChange,value:`${this.props.user.id}.${e.id}`})},e.id)),Object(b.jsx)(a.a.Cell,{textAlign:"right",children:Object(b.jsx)(l.a,{icon:"ellipsis horizontal",children:Object(b.jsx)(l.a.Menu,{className:"left",children:Object(b.jsxs)(l.a.Item,{onClick:this.props.onDelete,value:this.props.user["@id"],children:[Object(b.jsx)(p.jb,{name:d.a,size:"15px"}),Object(b.jsx)(r.a,{id:"Delete",defaultMessage:"Delete"})]})})})})]},this.props.user.username)}}t.a=Object(i.c)(j)},"8SHQ":function(e,t,s){"use strict";s.r(t),function(e){var t=s("lSNA"),n=s.n(t),r=s("CxY0"),i=s("tbCh"),a=s("OFTi"),o=s("BLV/"),l=s("fO1W"),c=s("AuP4"),d=s("YBxo"),p=s("GbF/"),u=s("4K5c"),h=s("UPfn"),b=s("Snbc"),j=s("DJQ5"),m=s("8ZS8");function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){n()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const O=e.env.RAZZLE_API_PATH||"",v={};let y={settings:{host:"localhost",port:3e3,publicURL:e.env.RAZZLE_PUBLIC_URL||(e=>{if(!e)return;const t=Object(r.parse)(e);return`${t.protocol}//${t.hostname}${t.port?":"+t.port:""}`})(e.env.RAZZLE_API_PATH)||"http://localhost:3000",apiPath:O,apiExpanders:[],devProxyToApiPath:e.env.RAZZLE_DEV_PROXY_API_PATH||e.env.RAZZLE_API_PATH||"http://localhost:8080/Plone",proxyRewriteTarget:e.env.RAZZLE_PROXY_REWRITE_TARGET||void 0,actions_raising_api_errors:["GET_CONTENT","UPDATE_CONTENT"],internalApiPath:e.env.RAZZLE_INTERNAL_API_PATH||void 0,websockets:e.env.RAZZLE_WEBSOCKETS||!1,legacyTraverse:e.env.RAZZLE_LEGACY_TRAVERSE||!1,cookieExpires:15552e3,nonContentRoutes:o.a,richtextEditorSettings:b.a,richtextViewSettings:b.b,imageObjects:["Image"],reservedIds:["login","layout","plone","zip","properties"],downloadableObjects:["File"],listingPreviewImageField:"image",customStyleMap:null,notSupportedBrowsers:["ie"],defaultPageSize:25,isMultilingual:!1,supportedLanguages:["en"],defaultLanguage:"en",navDepth:1,expressMiddleware:v.expressMiddleware,defaultBlockType:"text",verticalFormTabs:!1,persistentReducers:["blocksClipboard"],initialReducersBlacklist:[],asyncPropsExtenders:[],sentryOptions:f({},p.a),contentIcons:u.a,loadables:d.a,lazyBundles:{cms:["prettierStandalone","prettierParserHtml","prismCore","toastify","reactSelect","reactBeautifulDnd"],draftEditor:["immutableLib","draftJs","draftJsLibIsSoftNewlineEvent","draftJsFilters","draftJsInlineToolbarPlugin","draftJsImportHtml","draftJsBlockBreakoutPlugin"]},appExtras:[],maxResponseSize:2e9,serverConfig:v,storeExtenders:[],showTags:!0,controlPanelsIcons:h.a,externalRoutes:[],showSelfRegistration:!1,contentMetadataTagsImageField:"image",hasWorkingCopySupport:!1,maxUndoLevels:200,addonsInfo:j.a},widgets:f(f({},i.b),{},{default:i.a}),views:{layoutViews:a.d,contentTypesViews:a.a,defaultView:a.b,errorViews:a.c},blocks:{requiredBlocks:l.e,blocksConfig:l.a,groupBlocksOrder:l.b,initialBlocks:l.c,initialBlocksFocus:l.d,showEditBlocksInBabelView:!1},addonRoutes:[],addonReducers:{},components:c.a};y=Object(j.b)(y),m.a.settings=y.settings,m.a.blocks=y.blocks,m.a.views=y.views,m.a.widgets=y.widgets,m.a.addonRoutes=y.addonRoutes,m.a.addonReducers=y.addonReducers,m.a.appExtras=y.appExtras,m.a.components=y.components}.call(this,s("8oxB"))},"8Z/7":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M14.9997,3.0003 L14.9997,7.0003 L17.0007,7.0003 L17.0007,5.0003 L24.9997,5.0003 L24.9997,11.0003 L30.9997,11.0003 L30.9997,25.0003 L24.9997,25.0003 L24.9997,26.9993 L32.9997,26.9993 L32.9997,9.5853 L26.4147,3.0003 L14.9997,3.0003 Z M27.0007,6.4143 L29.5857,8.9993 L27.0007,8.9993 L27.0007,6.4143 Z"/><path d="M4.9998,8.9997 L4.9998,32.9997 L22.9998,32.9997 L22.9998,15.5857 L16.4148,8.9997 L4.9998,8.9997 Z M6.9998,11.0007 L14.9998,11.0007 L14.9998,16.9997 L20.9998,16.9997 L20.9998,31.0007 L6.9998,31.0007 L6.9998,11.0007 Z M17.0008,12.4147 L19.5858,14.9997 L17.0008,14.9997 L17.0008,12.4147 Z"/></g>'}},"8ZJL":function(e,t,s){"use strict";s.d(t,"b",(function(){return c}));var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("8ZS8")),a=s("nKUr");function o(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function l(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?o(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function c(e,t,s){const n=s[e];let r=t.findIndex(e=>e.id===n);return-1===r&&(r=t.findIndex(e=>e.isDefault)),-1!==r?t[r]:void 0}t.a=e=>t=>{const{data:s}=t,{extensions:n,resolvedExtensions:r}=function(e){const t=e["@type"],{extensions:s={},variations:n=[]}=i.a.blocks.blocksConfig[t],r=Object.assign({},...Object.keys(s).map(t=>({[t]:c(t,s[t].items||[],e)})));if(n.length){const t=e.variation?n.find(({id:t})=>t===e.variation):n.find(({isDefault:e})=>e);r.variation=t}return{extensions:s,resolvedExtensions:r}}(s);return Object(a.jsx)(e,l(l(l({},r),t),{},{extensions:n}))}},"8ZS8":function(e,t,s){"use strict";class n{constructor(){return n.instance||(this._data={},n.instance=this),n.instance}set(e,t){this._data[e]=t}get(e){return this._data[e]}get settings(){return this._data.settings}set settings(e){this._data.settings=e}get blocks(){return this._data.blocks}set blocks(e){this._data.blocks=e}get views(){return this._data.views}set views(e){this._data.views=e}get widgets(){return this._data.widgets}set widgets(e){this._data.widgets=e}get addonReducers(){return this._data.addonReducers}set addonReducers(e){this._data.addonReducers=e}get addonRoutes(){return this._data.addonRoutes}set addonRoutes(e){this._data.addonRoutes=e}get appExtras(){return this._data.appExtras}set appExtras(e){this._data.appExtras=e}get slots(){return this._data.slots}set slots(e){this._data.slots=e}get components(){return this._data.components}set components(e){this._data.components=e}resolve(e){return this._data.components[e]||{}}register(e,t){this._data.components[e]=t}}const r=new n;Object.freeze(r),t.a=r},"8fBM":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M3 27L23 27 23 9 3 9 3 27zM5 24.999L21 24.999 21 11 5 11 5 24.999zM24.9996 15.4644L24.9996 20.5354 32.9996 25.8684 32.9996 10.1314 24.9996 15.4644zM27.0006 19.4654L27.0006 16.5354 30.9996 13.8684 30.9996 22.1314 27.0006 19.4654z" fill-rule="evenodd"/>'}},"8h7z":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M25.9739,17 C25.9029,14.907 25.6159,12.946 25.1479,11.19 C26.0619,10.693 26.9229,10.092 27.7269,9.404 C29.5489,11.464 30.7269,14.097 30.9489,17 L25.9739,17 Z M25.1479,24.81 C25.6159,23.054 25.9029,21.093 25.9739,19 L30.9489,19 C30.7269,21.903 29.5489,24.536 27.7269,26.595 C26.9229,25.908 26.0619,25.307 25.1479,24.81 L25.1479,24.81 Z M24.5239,26.766 C25.1429,27.127 25.7399,27.531 26.2979,27.997 C25.2539,28.865 24.0689,29.565 22.7879,30.075 C23.4559,29.15 24.0419,28.037 24.5239,26.766 L24.5239,26.766 Z M11.4769,26.766 C11.9579,28.037 12.5439,29.15 13.2129,30.075 C11.9309,29.565 10.7459,28.865 9.7019,27.997 C10.2599,27.531 10.8569,27.127 11.4769,26.766 L11.4769,26.766 Z M10.0259,19 C10.0969,21.093 10.3839,23.054 10.8519,24.81 C9.9379,25.307 9.0769,25.908 8.2729,26.595 C6.4519,24.536 5.2729,21.903 5.0509,19 L10.0259,19 Z M10.8519,11.19 C10.3839,12.946 10.0969,14.907 10.0259,17 L5.0509,17 C5.2729,14.097 6.4509,11.464 8.2729,9.404 C9.0769,10.092 9.9379,10.693 10.8519,11.19 L10.8519,11.19 Z M11.4769,9.234 C10.8569,8.873 10.2599,8.468 9.7019,8.003 C10.7459,7.135 11.9309,6.435 13.2129,5.925 C12.5439,6.85 11.9579,7.963 11.4769,9.234 L11.4769,9.234 Z M22.7869,5.925 C24.0689,6.435 25.2539,7.135 26.2989,8.003 C25.7399,8.468 25.1429,8.873 24.5239,9.234 C24.0419,7.963 23.4559,6.85 22.7869,5.925 L22.7869,5.925 Z M18.9999,10.951 L18.9999,5.21 C20.4139,5.777 21.7809,7.513 22.7289,10.106 C21.5449,10.568 20.2919,10.853 18.9999,10.951 L18.9999,10.951 Z M18.9999,17 L18.9999,12.951 C20.4919,12.853 21.9389,12.539 23.3089,12.021 C23.6739,13.499 23.9109,15.17 23.9749,17 L18.9999,17 Z M18.9999,23.049 L18.9999,19 L23.9749,19 C23.9109,20.83 23.6739,22.501 23.3089,23.979 C21.9389,23.461 20.4919,23.147 18.9999,23.049 L18.9999,23.049 Z M18.9999,25.049 C20.2919,25.147 21.5449,25.432 22.7289,25.894 C21.7809,28.487 20.4139,30.223 18.9999,30.79 L18.9999,25.049 Z M16.9999,25.049 L16.9999,30.79 C15.5869,30.223 14.2189,28.487 13.2709,25.894 C14.4549,25.432 15.7079,25.147 16.9999,25.049 L16.9999,25.049 Z M16.9999,19 L16.9999,23.049 C15.5079,23.147 14.0619,23.461 12.6909,23.979 C12.3259,22.501 12.0889,20.83 12.0249,19 L16.9999,19 Z M16.9999,12.951 L16.9999,17 L12.0249,17 C12.0889,15.17 12.3259,13.499 12.6909,12.021 C14.0619,12.539 15.5079,12.853 16.9999,12.951 L16.9999,12.951 Z M16.9999,10.951 C15.7079,10.853 14.4549,10.568 13.2709,10.106 C14.2189,7.513 15.5869,5.777 16.9999,5.21 L16.9999,10.951 Z M17.9999,3 C9.7289,3 2.9999,9.729 2.9999,18 C2.9999,26.271 9.7289,33 17.9999,33 C26.2719,33 32.9999,26.271 32.9999,18 C32.9999,9.729 26.2719,3 17.9999,3 L17.9999,3 Z"/>'}},"8mwE":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M29 8L13.561 23.439 7.121 17 5 19.12 13.561 27.681 31.12 10.12z"/><path d="M29 8L13.561 23.439 7.121 17 5 19.12 13.561 27.681 31.12 10.12z"/></g>'}},"8qWX":function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path d="M3 11L3 13H5L5 11H3Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 21H11V3L21 3V21ZM13 19V5H19V19H13Z" fill="currentcolor"/><path d="M3 9L3 7H5V9H3zM3 19L3 21H5V19H3zM3 17L3 15H5V17H3zM3 3L3 5H5V3L3 3zM7 5V3L9 3V5H7zM7 19V21H9V19H7z"/>'}},"9At1":function(e,t,s){"use strict";s.d(t,"M",(function(){return r})),s.d(t,"s",(function(){return i})),s.d(t,"mb",(function(){return a})),s.d(t,"e",(function(){return c})),s.d(t,"k",(function(){return d})),s.d(t,"f",(function(){return o})),s.d(t,"Z",(function(){return l})),s.d(t,"K",(function(){return u})),s.d(t,"N",(function(){return p})),s.d(t,"rb",(function(){return h})),s.d(t,"Cb",(function(){return b})),s.d(t,"a",(function(){return j})),s.d(t,"l",(function(){return f})),s.d(t,"O",(function(){return m})),s.d(t,"R",(function(){return g})),s.d(t,"ub",(function(){return O})),s.d(t,"g",(function(){return x})),s.d(t,"m",(function(){return w})),s.d(t,"vb",(function(){return C})),s.d(t,"t",(function(){return k})),s.d(t,"ab",(function(){return S})),s.d(t,"pb",(function(){return M})),s.d(t,"tb",(function(){return N})),s.d(t,"V",(function(){return P})),s.d(t,"sb",(function(){return L})),s.d(t,"u",(function(){return D})),s.d(t,"bb",(function(){return E})),s.d(t,"n",(function(){return T})),s.d(t,"P",(function(){return I})),s.d(t,"wb",(function(){return A})),s.d(t,"D",(function(){return R})),s.d(t,"v",(function(){return _})),s.d(t,"w",(function(){return q})),s.d(t,"r",(function(){return F})),s.d(t,"h",(function(){return B})),s.d(t,"o",(function(){return z})),s.d(t,"Q",(function(){return U})),s.d(t,"xb",(function(){return H})),s.d(t,"x",(function(){return K})),s.d(t,"jb",(function(){return G})),s.d(t,"eb",(function(){return V})),s.d(t,"cb",(function(){return Z})),s.d(t,"y",(function(){return W})),s.d(t,"S",(function(){return $})),s.d(t,"B",(function(){return Y})),s.d(t,"db",(function(){return J})),s.d(t,"zb",(function(){return Q})),s.d(t,"ib",(function(){return X.a})),s.d(t,"kb",(function(){return X.b})),s.d(t,"Ab",(function(){return ee})),s.d(t,"C",(function(){return te})),s.d(t,"F",(function(){return se})),s.d(t,"i",(function(){return ne})),s.d(t,"q",(function(){return re})),s.d(t,"G",(function(){return ie})),s.d(t,"T",(function(){return ae})),s.d(t,"nb",(function(){return ce})),s.d(t,"hb",(function(){return de})),s.d(t,"yb",(function(){return le})),s.d(t,"Bb",(function(){return oe})),s.d(t,"W",(function(){return pe})),s.d(t,"X",(function(){return ue})),s.d(t,"Y",(function(){return he})),s.d(t,"H",(function(){return ye})),s.d(t,"I",(function(){return xe})),s.d(t,"J",(function(){return we})),s.d(t,"qb",(function(){return Ce})),s.d(t,"A",(function(){return Se})),s.d(t,"z",(function(){return Ne})),s.d(t,"ob",(function(){return Pe})),s.d(t,"p",(function(){return Ee})),s.d(t,"E",(function(){return Le})),s.d(t,"L",(function(){return De})),s.d(t,"lb",(function(){return Ie})),s.d(t,"gb",(function(){return Ae})),s.d(t,"U",(function(){return Re})),s.d(t,"c",(function(){return _e})),s.d(t,"d",(function(){return Be})),s.d(t,"b",(function(){return Ue})),s.d(t,"j",(function(){return ze})),s.d(t,"fb",(function(){return He}));var n=s("rXsB");function r(e){return{type:n.R,request:{op:"get",path:e+"/@actions"}}}function i(e){return{type:n.v,request:{op:"get",path:e+"/@breadcrumbs"}}}function a(e){return{type:n.u,isExpanded:e}}function o(e,t){return{type:n.f,request:{op:"post",path:t+"/@copy",data:{source:e}}}}function l(e,t){return{type:n.eb,request:{op:"post",path:t+"/@move",data:{source:e}}}}function c(e){return{type:n.e,source:e}}function d(e){return{type:n.k,source:e}}function p(){return{type:n.S,request:{op:"get",path:"/@addons"}}}function u(e){return{type:n.P,request:{op:"post",path:`/@addons/${e}/install`}}}function h(e){return{type:n.yb,request:{op:"post",path:`/@addons/${e}/uninstall`}}}function b(e){return{type:n.Jb,request:{op:"post",path:`/@addons/${e}/upgrade`}}}function j(e,t,s){const r=s?`${e}/@comments/${s}`:e+"/@comments";return{type:n.a,request:{op:"post",path:r,data:{text:t}}}}function m(e){return{type:n.T,request:{op:"get",path:e+"/@comments"}}}function g(e){return{type:n.W,request:{op:"get",path:""+e}}}function f(e){return{type:n.m,request:{op:"del",path:e}}}function O(e,t){return{type:n.Bb,request:{op:"patch",path:e,data:{text:t}}}}var v=s("zpb6"),y=s("8ZS8");function x(e,t,s){return{type:n.g,subrequest:s,mode:"serial",request:Array.isArray(t)?t.map(t=>({op:"post",path:e,data:t})):{op:"post",path:e,data:Object(v.Q)(t)}}}function w(e){return{type:n.n,mode:"serial",request:"string"===typeof e?{op:"del",path:e}:e.map(e=>({op:"del",path:e}))}}function C(e,t,s={}){return{type:n.Cb,request:"string"===typeof e?{op:"patch",path:e,data:Object(v.Q)(t),headers:s}:e.map((e,n)=>({op:"patch",path:e,data:Object(v.Q)(t[n]),headers:s}))}}function S(e,t,s,r){return{type:n.fb,request:{op:"patch",path:e,data:{ordering:{obj_id:t,delta:s,subset_ids:r}}}}}function M(e,t,s){return{type:n.Cb,sort:{on:t,order:s},request:{op:"patch",path:e,data:{sort:{on:t,order:s}}}}}function k(e,t=null,s=null,r=null,i=!1){const{settings:a}=y.a,o=Object.assign({},i||a.bbb_getContentFetchesFullobjects?{fullobjects:!0}:{},r?{b_start:a.defaultPageSize*(r-1),b_size:a.defaultPageSize}:{},a.isMultilingual?{expand:"translations"}:{});let l=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&");return{type:n.w,subrequest:s,request:{op:"get",path:`${e}${t?"/@history/"+t:""}${l?"?"+l:""}`}}}function N(e,t){return{type:n.Ab,indexcolumns:t}}function P(e){return{type:n.ab,mode:"serial",request:"string"===typeof e?{op:"post",path:e+"/@lock"}:e.map(e=>({op:"post",path:e+"/@lock"}))}}function L(e,t=!1){return{type:n.zb,mode:"serial",request:"string"===typeof e?{op:"del",path:e+"/@lock",data:t?{force:!0}:{}}:e.map(e=>({op:"del",path:e+"/@lock",data:t?{force:!0}:{}}))}}function D(e){return{type:n.y,request:{op:"get",path:"/@controlpanels/"+e}}}function E(e,t){return{type:n.gb,request:{op:"post",path:"/@controlpanels/"+e,data:t}}}function T(e,t){return{type:n.o,request:{op:"del",path:`/@controlpanels/${e}/${t}`}}}function I(){return{type:n.U,request:{op:"get",path:"/@controlpanels"}}}function A(e,t){return{type:n.Db,request:{op:"patch",path:e,data:t}}}function R(){return{type:n.wb,request:{op:"get",path:"/@system"}}}function _(){return{type:n.l,request:{op:"get",path:"/@database"}}}function q(e,t,s){return{type:n.z,request:[{op:"get",path:`${e}/@history/${t}`},{op:"get",path:`${e}/@history/${s}`}]}}function F(e,t,s,r){return{type:n.s,request:{op:"post",path:"/@email-notification",data:{from:e,message:t,name:s,subject:r}}}}function B(e){return{type:n.h,request:{op:"post",path:"/@groups",data:e}}}function z(e){return{type:n.p,request:{op:"del",path:"/@groups/"+e}}}function U(e){return{type:n.V,request:e?{op:"get",path:"/@groups?query="+e}:{op:"get",path:"/@groups"}}}function H(e,t){return{type:n.Eb,request:{op:"patch",path:"/@groups/"+e,data:t}}}function K(e){return{type:n.B,request:{op:"get",path:e+"/@history"}}}function G(e,t){return{type:n.rb,request:{op:"patch",path:e+"/@history",data:{version:t}}}}s("EcEN");function V(e){return{type:n.kb,index:e}}function Z(){return{type:n.ib}}function W(e,t){return{type:n.C,request:{op:"get",path:`${e}/@navigation${t?"?expand.navigation.depth="+t:""}`}}}function $(){return{type:n.X,request:{op:"get",path:"/@roles"}}}function Y(e,t){return t="undefined"!==typeof t?t:"",{type:n.F,request:{op:"get",path:`${t}/@types/${e}`}}}function J(e,t){return{type:n.jb,request:{op:"put",path:"/@types/"+e,data:t}}}function Q(e,t){return{type:n.Gb,request:{op:"patch",path:"/@types/"+e,data:t}}}var X=s("Wl3A");function ee(e,t){return{type:n.Hb,request:{op:"post",path:e+"/@sharing",data:t}}}function te(e,t=""){return{type:n.G,request:{op:"get",path:`${e}/@sharing${""!==t?"?search="+t:""}`}}}function se(e){return(t,s)=>{s().userSession.token&&t({type:n.I,request:{op:"get",path:e+"/@types"}})}}function ne(e){return{type:n.i,request:{op:"post",path:"/@users",data:e}}}function re(e){return{type:n.r,request:{op:"del",path:"/@users/"+e}}}function ie(e){return{type:n.J,request:{op:"get",path:"/@users/"+e}}}function ae(e){return{type:n.Y,request:e?{op:"get",path:"/@users?query="+e}:{op:"get",path:"/@users"}}}function oe(e,t){return{type:n.Ib,request:{op:"patch",path:"/@users/"+e,data:t}}}function le(e,t,s){return{type:n.Fb,request:{op:"post",path:`/@users/${e}/reset-password`,data:{old_password:t,new_password:s}}}}function ce(e,t,s){return{type:n.O,request:{op:"post",path:`/@users/${e}/reset-password`,data:{reset_token:t,new_password:s}}}}function de(e){return{type:n.pb,request:{op:"post",path:`/@users/${e}/reset-password`}}}function pe(e,t){return{type:n.bb,request:{op:"post",path:"@login",data:{login:e,password:t}}}}function ue(){return{type:n.cb,request:{op:"post",path:"@login-renew"}}}function he(){return{type:n.db,request:{op:"post",path:"@logout"}}}var be=s("lSNA"),je=s.n(be),me=s("w3Ui"),ge=s("cr+I"),fe=s.n(ge);function Oe(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function ve(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(s),!0).forEach((function(t){je()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Oe(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function ye({vocabNameOrURL:e,query:t=null,start:s=0,size:r,subrequest:i}){const a=Object(me.e)(e);let o=`b_start=${s}${r?"&b_size="+r:""}`;return t&&(o=`${o}&title=${t}`),{type:n.K,vocabulary:e,start:s,request:{op:"get",path:`/@vocabularies/${a}?${o}`},subrequest:i}}function xe({vocabNameOrURL:e,token:t=null,tokens:s=null,subrequest:r}){const i=Object(me.e)(e),a=ve(ve({},t&&{token:t}),s&&{tokens:s});return{type:n.L,vocabulary:e,token:t,tokens:s,subrequest:r,request:{op:"get",path:`/@vocabularies/${i}?b_size=-1&${fe.a.stringify(a,{encode:!1})}`}}}function we(e){return{type:"string"===typeof e?n.M:n.N,request:"string"===typeof e?{op:"get",path:e+"/@workflow"}:e.map(e=>({op:"get",path:e+"/@workflow"}))}}function Ce(e,t=!1){return{type:n.xb,request:"string"===typeof e?{op:"post",path:Object(v.q)(e),data:{include_children:t}}:e.map(e=>({op:"post",path:Object(v.q)(e),data:{include_children:t}}))}}function Se(){return{type:n.D,request:{op:"get",path:"/@querystring"}}}function Me(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function ke(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(s),!0).forEach((function(t){je()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Me(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Ne(e,t,s,r){const{settings:i}=y.a;let a=JSON.parse(JSON.stringify(t));return null!=(null===t||void 0===t?void 0:t.depth)&&(delete a.depth,a.query.forEach(e=>{"path"===e.i&&(e.v+="::"+t.depth)})),null!==(null===a||void 0===a?void 0:a.sort_order)&&"boolean"===typeof a.sort_order&&(a.sort_order=a.sort_order?"descending":"ascending"),{type:n.E,subrequest:s,request:{op:"post",path:e+"/@querystring-search",data:ke(ke(ke(ke({},a),!a.b_size&&{b_size:i.defaultPageSize}),r&&{b_start:a.b_size?t.b_size*(r-1):i.defaultPageSize*(r-1)}),{},{query:null===a||void 0===a?void 0:a.query})}}}function Pe(e){return{type:n.vb,index:e}}function Le(e,t){return{type:n.H,request:{op:"get",path:`${e}/@translation-locator?target_language=${t}`}}}function De(e,t){return{type:n.Q,request:{op:"post",path:e+"/@translations",data:{id:t}}}}function Ee(e,t){return{type:n.q,request:{op:"del",path:e+"/@translations",data:{language:t}}}}function Te(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ie(e){return function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(s),!0).forEach((function(t){je()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Te(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({type:n.ub},Object.assign({},e.cut?{cut:e.cut.filter(e=>!!e)}:{},e.copy?{copy:e.copy.filter(e=>!!e)}:{}))}function Ae(){return{type:n.nb}}function Re(e,t){return(s,r)=>{var i;null!==(i=r().lazyLibraries)&&void 0!==i&&i[e]||s({type:n.Z,libName:e,libModule:t})}}function _e(e){return{type:n.d,result:e}}s("BI65");var qe=s("5m5G"),Fe=s("9ONQ");function Be(e,t,s){return function(e,t){const s=new Fe.a,n={expires:new Date((new Date).getTime()+1e3*y.a.settings.cookieExpires),path:"/"};t?t.universalCookies.set("I18N_LANGUAGE",Object(v.S)(e)||"",n):s.set("I18N_LANGUAGE",Object(v.S)(e)||"",n)}(e,s),Object(qe.updateIntl)({locale:e,messages:t})}function ze(e){return{type:n.j,request:{op:"post",path:e+"/@workingcopy"}}}function Ue(e){return{type:n.c,request:{op:"patch",path:e+"/@workingcopy"}}}function He(e){return{type:n.lb,request:{op:"del",path:e+"/@workingcopy"}}}},"9N9b":function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path d="M5 9H19V11H21V7H3V17H15V15H5V9Z" fill="currentcolor"/><path d="M20.0001 17.4142L18.2072 19.2071L16.793 17.7929L18.5859 16L16.793 14.2071L18.2072 12.7929L20.0001 14.5858L21.793 12.7929L23.2072 14.2071L21.4143 16L23.2072 17.7929L21.793 19.2071L20.0001 17.4142Z"/>'}},"9wzT":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("zSVi")),a=s("Kvkj"),o=s("Vgzb"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=Object(i.c)(e=>{const{id:t,onChange:s,value:n}=e;return Object(l.jsx)(a.db,d(d({},e),{},{className:"align-widget",children:Object(l.jsx)(o.a,{align:n,onChangeBlock:(e,{align:n})=>s(t,n),data:{align:n},block:t})}))})},A3In:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18,13.5 C18.828,13.5 19.5,12.828 19.5,12 C19.5,11.172 18.828,10.5 18,10.5 C17.172,10.5 16.5,11.172 16.5,12 C16.5,12.828 17.172,13.5 18,13.5"/><path d="M18,31 C10.832,31 5,25.168 5,18 C5,10.832 10.832,5 18,5 C25.168,5 31,10.832 31,18 C31,25.168 25.168,31 18,31 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/><path d="M19 15L15 15 15 17 17 17 17 25 15 25 15 27 21 27 21 25 19 25z"/></g>'}},A9ig:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("qPyV"),a=s.n(i),o=s("P/G1"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("O7iK"),u=s.n(p),h=s("NIJN"),b=s.n(h),j=s("wig9"),m=s.n(j),g=s("q1tI"),f=(s("17x9"),s("/MKj")),O=s("ANjH"),v=s("Pj1C"),y=s("D1pA"),x=s("MqQV"),w=s("pLir"),C=s("lHu7"),S=s("zSVi"),M=s("Kvkj"),k=s("9At1"),N=s("zpb6"),P=s("nKUr");function L(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function D(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?L(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):L(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const E=Object(C.defineMessages)({no_results_found:{id:"No results found.",defaultMessage:"No results found."},no_value:{id:"No value",defaultMessage:"No value"}});class T extends g.Component{constructor(e){super(e),r()(this,"renderLabel",(e,t,s)=>Object(P.jsx)(v.a,{content:Object(P.jsxs)(P.Fragment,{children:[Object(P.jsx)(y.a,{name:"home"})," ",e.value]}),trigger:s&&Object(P.jsxs)(x.a,{active:s.active,children:[e.label.content,Object(P.jsx)(y.a,{name:"delete",onClick:e=>{s.onRemove(e,s)}})]})},e.value)),this.onSearchChange=this.onSearchChange.bind(this),this.state={choices:e.value?e.multiple?u()(d()(e.value,e=>[e["@id"],{key:e["@id"],text:Object(N.q)(e["@id"]),value:e["@id"],label:{content:e.title},data:e}])):{[e.value["@id"]]:{key:e.value["@id"],text:Object(N.q)(e.value),value:e.value["@id"],label:{content:e.value.title},data:e.value},novalue:{key:"novalue",text:this.props.intl.formatMessage(E.no_value),value:"novalue",data:null}}:{}}}componentDidMount(){this.props.resetSearchContent()}UNSAFE_componentWillReceiveProps(e){this.setState({choices:D(D({},u()(d()(a()(d()(m()(b()(e.value,e.search)),e=>D(D({},e),{},{"@id":Object(N.q)(e["@id"])})),"@id"),e=>[e["@id"],{key:e["@id"],text:Object(N.q)(e["@id"]),value:e["@id"],label:{content:e.title},data:e}]))),{},{novalue:{key:"novalue",text:this.props.intl.formatMessage(E.no_value),value:"novalue",data:null}})})}onSearchChange(e,t){t.searchQuery&&""!==t.searchQuery?this.props.searchContent("",{Title:`*${t.searchQuery}*`}):this.props.resetSearchContent()}render(){const{id:e,title:t,value:s,multiple:n,onChange:r}=this.props;return Object(P.jsx)(M.db,D(D({},this.props),{},{children:Object(P.jsx)(w.a,{options:l()(this.state.choices),placeholder:t,search:!0,selection:!0,fluid:!0,noResultsMessage:this.props.intl.formatMessage(E.no_results_found),multiple:n,value:n?s?d()(s,e=>e&&e["@id"]?Object(N.q)(e["@id"]):e):[]:s?Object(N.q)(s["@id"]):"",onChange:(t,s)=>r(e,n?d()(s.value,e=>this.state.choices[e].data):this.state.choices[s.value].data),onSearchChange:this.onSearchChange,renderLabel:this.renderLabel})}))}}r()(T,"defaultProps",{description:null,required:!1,error:[],search:[],value:null,multiple:!0}),t.a=Object(O.compose)(S.c,Object(f.connect)(e=>({search:e.search.items}),{resetSearchContent:k.ib,searchContent:k.kb}))(T)},ARif:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=(s("q1tI"),s("R6OX")),a=s("Kvkj"),o=(s("17x9"),s("24R3")),l=s("zSVi"),c=s("GWVt"),d=s.n(c),p=s("6fhb"),u=s.n(p),h=s("nKUr");const b=({current:e,total:t,pageSize:s,pageSizes:n,onChangePage:l,onChangePageSize:c})=>Object(h.jsxs)(i.a,{secondary:!0,attached:!0,children:[Object(h.jsxs)(i.a.Menu,{children:[e>0&&Object(h.jsx)(i.a.Item,{value:e-1,icon:Object(h.jsx)(a.jb,{name:d.a,size:"23px"}),className:"chevron-left-icon",onClick:l}),e>2&&Object(h.jsx)(i.a.Item,{value:0,onClick:l,children:"1"}),e>3&&Object(h.jsx)(i.a.Item,{disabled:!0,children:"..."}),e>1&&Object(h.jsx)(i.a.Item,{value:e-2,onClick:l,children:e-1}),e>0&&Object(h.jsx)(i.a.Item,{value:e-1,onClick:l,children:e}),t>1&&Object(h.jsx)(i.a.Item,{value:e,active:!0,onClick:l,children:e+1}),t>e+1&&Object(h.jsx)(i.a.Item,{value:e+1,onClick:l,children:e+2}),t>e+2&&Object(h.jsx)(i.a.Item,{value:e+2,onClick:l,children:e+3}),t>e+4&&Object(h.jsx)(i.a.Item,{disabled:!0,children:"..."}),t>e+3&&Object(h.jsx)(i.a.Item,{value:t-1,onClick:l,children:t}),e<t-1&&Object(h.jsx)(i.a.Item,{value:e+1,icon:Object(h.jsx)(a.jb,{name:u.a,size:"23px"}),className:"chevron-right-icon",onClick:l})]}),s&&Object(h.jsxs)(i.a.Menu,{position:"right",children:[Object(h.jsxs)(i.a.Item,{children:[Object(h.jsx)(o.a,{id:"Show",defaultMessage:"Show"}),":"]}),r()(n,e=>Object(h.jsx)(i.a.Item,{value:e,active:e===s,onClick:c,children:e},e))]})]});b.defaultProps={pageSize:null,pageSizes:[],onChangePageSize:null},t.a=Object(l.c)(b)},AiFk:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3tWz"),a=s.n(i),o=s("18Zd"),l=s.n(o),c=s("q1tI"),d=s.n(c),p=(s("17x9"),s("/MKj")),u=s("ANjH"),h=s("55Ip"),b=s("zpb6"),j=s("It+4"),m=s("3mGJ"),g=s("QetY"),f=s("GGqY"),O=s("lHu7"),v=s("24R3"),y=s("zSVi"),x=s("Kvkj"),w=s("9At1"),C=s("Z5Td"),S=s.n(C),M=s("1Jxj"),k=s.n(M),N=s("qaC+"),P=s.n(N),L=s("nKUr");function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function E(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?D(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const T=Object(O.defineMessages)({changesSaved:{id:"Changes saved.",defaultMessage:"Changes saved."},back:{id:"Back",defaultMessage:"Back"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},info:{id:"Info",defaultMessage:"Info"},enable:{id:"Enable editable Blocks",defaultMessage:"Enable editable Blocks"}});class I extends c.Component{constructor(e){super(e),this.state={visual:!1,content:null,readOnlyBehavior:null,error:null,isClient:!1},this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.onEnableBlocks=this.onEnableBlocks.bind(this),this.onDisableBlocksBehavior=this.onDisableBlocksBehavior.bind(this),this.form=d.a.createRef()}componentDidMount(){this.props.getControlpanel(a()([this.props.parent,this.props.id],"/")),this.props.getSchema(this.props.id),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){if(this.props.cpanelRequest.get.loading&&e.cpanelRequest.get.error&&this.setState({error:e.cpanelRequest.get.error}),this.props.schemaRequest.loading&&e.schemaRequest.loaded){var t;const i=(null===(t=e.schema)||void 0===t?void 0:t.properties)||{},a={};for(const e in i){const t=i[e].default;t&&(a[e]=t)}if(Object(b.I)(i)){var s,n,r;this.setState({visual:!0});const e=Object(b.t)(i),t=Object(b.u)(i);a[e]=(null===(s=i[e])||void 0===s?void 0:s.default)||{},a[t]=(null===(n=i[t])||void 0===n?void 0:n.default)||{items:[]};const o=(null===(r=i[e])||void 0===r?void 0:r.behavior)||"";this.setState({readOnlyBehavior:o.includes("generated")?"":o})}else this.setState({visual:!1,readOnlyBehavior:""});this.setState({content:a})}this.props.schemaRequest.update.loading&&e.schemaRequest.update.loaded&&(this.props.getSchema(this.props.id),f.toast.info(Object(L.jsx)(x.Ub,{info:!0,title:this.props.intl.formatMessage(T.info),content:this.props.intl.formatMessage(T.changesSaved)}))),this.props.cpanelRequest.update.loading&&e.cpanelRequest.update.loaded&&this.onEnableBlocks()}onSubmit(e){const t={properties:{}};Object.keys(e).filter(t=>e[t]).forEach(s=>t.properties[s]={default:e[s]}),this.props.updateSchema(this.props.id,t)}onCancel(){const e=Object(b.C)(this.props.pathname);this.props.history.push(Object(b.C)(e))}onEnableBlocks(){var e,t;const{properties:s={}}=this.props.schema,n=Object(b.t)(s),r=Object(b.u)(s),i={fieldsets:[{id:"layout",title:"Layout",fields:["blocks","blocks_layout"]}],properties:{blocks:{title:"Blocks",type:"dict",widget:"json",factory:"JSONField",default:(null===(e=s[n])||void 0===e?void 0:e.default)||{}},blocks_layout:{title:"Blocks Layout",type:"dict",widget:"json",factory:"JSONField",default:(null===(t=s[r])||void 0===t?void 0:t.default)||{items:[]}}}};this.props.updateSchema(this.props.id,i)}onDisableBlocksBehavior(){this.props.updateControlpanel(this.props.controlpanel["@id"],{[this.state.readOnlyBehavior]:!1})}render(){var e,t,s,n,r,i;if(this.state.error)return Object(L.jsx)(x.X,{error:this.state.error});if(!this.state.visual)return this.state.content?Object(L.jsxs)(L.Fragment,{children:[Object(L.jsxs)(m.a,{placeholder:!0,id:"page-controlpanel-layout",className:"ui container center aligned",children:[Object(L.jsx)("div",{children:Object(L.jsx)(v.a,{id:"Can not edit Layout for <strong>{type}</strong> content-type as it doesn't have support for <strong>Volto Blocks</strong> enabled",defaultMessage:"Can not edit Layout for <strong>{type}</strong> content-type as it doesn't have support for <strong>Volto Blocks</strong> enabled",values:{strong:(...e)=>Object(L.jsx)("strong",{children:e}),type:(null===(s=this.props)||void 0===s||null===(n=s.controlpanel)||void 0===n?void 0:n.title)||this.props.id}})}),Object(L.jsx)("div",{className:"ui divider"}),Object(L.jsx)(g.a,{primary:!0,onClick:this.onEnableBlocks,content:this.props.intl.formatMessage(T.enable)})]}),Object(L.jsx)(j.a,{node:this.state.isClient&&document.getElementById("toolbar"),children:Object(L.jsx)(x.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(L.jsx)(L.Fragment,{children:Object(L.jsx)(h.a,{className:"item",to:"#",onClick:()=>this.onCancel(),children:Object(L.jsx)(x.jb,{name:P.a,size:"30px",className:"contents circled",title:this.props.intl.formatMessage(T.back)})})})})})]}):Object(L.jsx)("div",{});if(this.state.readOnlyBehavior)return Object(L.jsxs)(L.Fragment,{children:[Object(L.jsxs)(m.a,{placeholder:!0,id:"page-controlpanel-layout",className:"ui container center aligned",children:[Object(L.jsx)("div",{children:Object(L.jsx)(v.a,{id:"Can not edit Layout for <strong>{type}</strong> content-type as the <strong>Blocks behavior</strong> is enabled and <strong>read-only</strong>",defaultMessage:"Can not edit Layout for <strong>{type}</strong> content-type as the <strong>Blocks behavior</strong> is enabled and <strong>read-only</strong>",values:{strong:(...e)=>Object(L.jsx)("strong",{children:e}),type:(null===(r=this.props)||void 0===r||null===(i=r.controlpanel)||void 0===i?void 0:i.title)||this.props.id}})}),Object(L.jsx)("div",{className:"ui divider"}),Object(L.jsx)(g.a,{primary:!0,onClick:this.onDisableBlocksBehavior,content:this.props.intl.formatMessage(T.enable)})]}),Object(L.jsx)(j.a,{node:this.state.isClient&&document.getElementById("toolbar"),children:Object(L.jsx)(x.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(L.jsx)(L.Fragment,{children:Object(L.jsx)(h.a,{className:"item",to:"#",onClick:()=>this.onCancel(),children:Object(L.jsx)(x.jb,{name:P.a,size:"30px",className:"contents circled",title:this.props.intl.formatMessage(T.back)})})})})})]});const a=Object(b.t)((null===(e=this.props.schema)||void 0===e?void 0:e.properties)||{}),o=Object(b.u)((null===(t=this.props.schema)||void 0===t?void 0:t.properties)||{});return Object(L.jsxs)("div",{id:"page-controlpanel-layout",children:[Object(L.jsx)(x.cb,{isAdminForm:!0,ref:this.form,schema:{fieldsets:[{id:"layout",title:"Layout",fields:[a,o]}],properties:E(E({},this.props.schema.properties[a]),this.props.schema.properties[o]),required:[]},formData:this.state.content,onSubmit:this.onSubmit,onCancel:this.onCancel,pathname:this.props.pathname,visual:this.state.visual,hideActions:!0}),Object(L.jsx)(j.a,{node:this.state.isClient&&document.getElementById("sidebar"),children:Object(L.jsx)(x.Ob,{settingsTab:!0,documentTab:!1})}),Object(L.jsx)(j.a,{node:this.state.isClient&&document.getElementById("toolbar"),children:Object(L.jsx)(x.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(L.jsxs)(L.Fragment,{children:[Object(L.jsx)(g.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(T.save),onClick:()=>this.form.current.onSubmit(),disabled:this.props.schemaRequest.update.loading,loading:this.props.schemaRequest.update.loading,children:Object(L.jsx)(x.jb,{name:S.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(T.save)})}),Object(L.jsx)(g.a,{className:"cancel","aria-label":this.props.intl.formatMessage(T.cancel),onClick:()=>this.onCancel(),children:Object(L.jsx)(x.jb,{name:k.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(T.cancel)})})]})})})]})}}r()(I,"defaultProps",{schema:{},controlpanel:null}),t.a=Object(u.compose)(y.c,Object(p.connect)((e,t)=>({schema:e.schema.schema,schemaRequest:e.schema,cpanelRequest:e.controlpanels,controlpanel:e.controlpanels.controlpanel,pathname:t.location.pathname,id:l()(t.location.pathname.split("/"),-2),parent:l()(t.location.pathname.split("/"),-3)}),{getSchema:w.B,updateSchema:w.zb,getControlpanel:w.u,updateControlpanel:w.wb}))(I)},AuP4:function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));const n={PreviewImage:{component:s("Kvkj").Db}}},B6gs:function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=s("lHu7"),a=s("52Oh"),o=s("8ZS8"),l=s("zpb6"),c=s("Kvkj"),d=s("QetY"),p=s("ZHsB"),u=s.n(p),h=s("1Jxj"),b=s.n(h),j=s("nKUr");const m=Object(i.defineMessages)({compare_to:{id:"compare_to",defaultMessage:"Compare to language"},stop_compare:{id:"Stop compare",defaultMessage:"Stop compare"}}),g=({theToolbar:e,translations:t,comparingLanguage:s,setComparingLanguage:n,closeMenu:r})=>{const i=Object(a.a)(),o=Object(l.Y)({onTriggered:()=>{r()},triggerKeys:["Escape"]});return Object(j.jsx)("div",{className:"toolbar-content show compare-languages",ref:o,style:{flex:e.current?`0 0 ${e.current.getBoundingClientRect().width}px`:null},children:Object(j.jsxs)("div",{className:"pastanaga-menu",children:[Object(j.jsx)("header",{children:i.formatMessage(m.compare_to)}),Object(j.jsx)("div",{className:"pastanaga-menu-list",children:Object(j.jsx)("ul",{children:t.map(e=>Object(j.jsx)("li",{children:s===e.language?Object(j.jsxs)("button",{"aria-label":`${i.formatMessage(m.stop_compare)} ${l.M[e.language].nativeName}`,title:`${i.formatMessage(m.stop_compare)} ${l.M[e.language].nativeName}`,onClick:()=>{n(null),r()},children:[l.M[e.language].nativeName,Object(j.jsx)(c.jb,{name:b.a,size:"30px"})]}):Object(j.jsx)("button",{"aria-label":`${i.formatMessage(m.compare_to)} ${l.M[e.language].nativeName.toLowerCase()}`,title:`${i.formatMessage(m.compare_to)} ${l.M[e.language].nativeName.toLowerCase()}`,onClick:()=>{n(e.language),r()},children:l.M[e.language].nativeName})},e["@id"]))})})]})})},f=r.a.forwardRef((e,t)=>{var s,r;const{content:i,comparingLanguage:l,setComparingLanguage:p,pathname:h,toolbarRef:f}=e,O=Object(a.a)(),[v,y]=Object(n.useState)(!1),x=o.a.settings.isMultilingual&&(null===i||void 0===i||null===(s=i["@components"])||void 0===s||null===(r=s.translations)||void 0===r?void 0:r.items)||[],w={};return x.forEach(e=>{w[e.language]=e["@id"]}),o.a.settings.isMultilingual&&x.length>0?Object(j.jsxs)("div",{className:"toolbar-compare-translations-wrapper",children:[Object(j.jsx)("div",{className:"toolbar-button-spacer"}),Object(j.jsxs)(d.a,{"aria-label":O.formatMessage(m.compare_to),title:O.formatMessage(m.compare_to),onClick:()=>{y(!v)},id:"toolbar-compare-translations",className:"toolbar-button-compare-translations",children:[Object(j.jsx)(c.jb,{className:"mobile hidden",name:u.a,size:"30px"}),v?Object(j.jsx)(c.jb,{className:"mobile only",name:b.a,size:"30px"}):Object(j.jsx)(c.jb,{className:"mobile only",name:u.a,size:"30px"})]}),v&&Object(j.jsx)(g,{pathname:h,theToolbar:f,closeMenu:()=>y(!1),translations:x,setComparingLanguage:e=>{p(e,w[e])},comparingLanguage:l},"compareLanguagesComponent")]}):null});t.a=f},BI65:function(e,t,s){"use strict";function n(){return{type:"@redux-conn/BEGIN_GLOBAL_LOAD"}}function r(){return{type:"@redux-conn/END_GLOBAL_LOAD"}}function i(e){return{type:"@redux-conn/LOAD",key:e}}function a(e,t){return{type:"@redux-conn/LOAD_SUCCESS",key:e,data:t}}function o(e,t){return{type:"@redux-conn/LOAD_FAIL",key:e,error:t}}s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return r})),s.d(t,"c",(function(){return i})),s.d(t,"e",(function(){return a})),s.d(t,"d",(function(){return o}))},"BLV/":function(e,t,s){"use strict";var n,r;s.d(t,"a",(function(){return i}));const i=[/\?.*$/,/\/add$/,"/contents","/delete","/diff",/\/edit$/,"/history","/layout","/login","/logout","/sitemap","/register","/sharing","/search","/change-password",/\/controlpanel\/.*$/,"/controlpanel","/contact-form","/personal-information","/personal-preferences","/register",/\/password-reset\/.*$/,"/password-reset","/create-translation","/manage-translations",...(null===(n=s("8ZS8").a.settings)||void 0===n||null===(r=n.externalRoutes)||void 0===r?void 0:r.map(e=>e.match.path))||[]]},BlEy:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M29 31L31 31 31 29 29 29zM17 31L19 31 19 29 17 29zM25 31L27 31 27 29 25 29zM21 31L23 31 23 29 21 29zM13 31L15 31 15 29 13 29zM9 31L11 31 11 29 9 29zM5 31L7 31 7 29 5 29zM5 19L7 19 7 17 5 17zM5 11L7 11 7 9 5 9zM5 27L7 27 7 25 5 25zM5 15L7 15 7 13 5 13zM5 23L7 23 7 21 5 21zM5 7L7 7 7 5 5 5zM21 7L23 7 23 5 21 5zM9 7L11 7 11 5 9 5zM13 7L15 7 15 5 13 5zM17 7L19 7 19 5 17 5zM25 7L27 7 27 5 25 5zM29 7L31 7 31 5 29 5zM29 11L31 11 31 9 29 9zM29 19L31 19 31 17 29 17zM29 15L31 15 31 13 29 13zM29 27L31 27 31 25 29 25zM29 23L31 23 31 21 29 21zM18 21C16.346 21 15 19.654 15 18 15 16.346 16.346 15 18 15 19.654 15 21 16.346 21 18 21 19.654 19.654 21 18 21M22.899 19L25 19 25 17 22.899 17C22.769 16.363 22.515 15.772 22.167 15.247L23.657 13.757 22.243 12.343 20.753 13.833C20.229 13.485 19.637 13.231 19 13.101L19 11 17 11 17 13.101C16.363 13.231 15.771 13.485 15.247 13.833L13.757 12.343 12.343 13.757 13.833 15.247C13.485 15.772 13.231 16.363 13.101 17L11 17 11 19 13.101 19C13.231 19.637 13.485 20.228 13.833 20.753L12.343 22.243 13.757 23.657 15.247 22.167C15.771 22.515 16.363 22.769 17 22.899L17 25 19 25 19 22.899C19.637 22.769 20.229 22.515 20.753 22.167L22.243 23.657 23.657 22.243 22.167 20.753C22.515 20.228 22.769 19.637 22.899 19"/></g>'}},CnFW:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("/MKj")),c=s("ANjH"),d=s("lHu7"),p=s("zSVi"),u=s("zpb6"),h=s("Kvkj"),b=s("9At1"),j=s("PFGh"),m=s("cuOu"),g=s("Lf35"),f=s("nKUr");function O(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function v(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?O(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):O(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const y=Object(d.defineMessages)({default:{id:"Default",defaultMessage:"Default"},idTitle:{id:"Short Name",defaultMessage:"Short Name"},idDescription:{id:"Used for programmatic access to the fieldset.",defaultMessage:"Used for programmatic access to the fieldset."},title:{id:"Title",defaultMessage:"Title"},description:{id:"Description",defaultMessage:"Description"},close:{id:"Close",defaultMessage:"Close"},choices:{id:"Choices",defaultMessage:"Choices"},required:{id:"Required",defaultMessage:"Required"},select:{id:"Select\u2026",defaultMessage:"Select\u2026"},no_value:{id:"No value",defaultMessage:"No value"},no_options:{id:"No options",defaultMessage:"No options"}});class x extends o.Component{componentDidMount(){var e;this.props.choices&&0!==(null===(e=this.props.choices)||void 0===e?void 0:e.length)||!this.props.vocabBaseUrl||this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl,size:-1,subrequest:this.props.intl.locale})}render(){var e;const{id:t,choices:s,value:n,intl:r,onChange:i}=this.props,o=Object(j.c)(s,n,r),l=this.props.disabled||this.props.isDisabled,c=this.props.reactSelect.default;let d=this.props.vocabBaseUrl?this.props.choices:[...a()(s,e=>({value:e[0],label:"None"!==e[1]&&e[1]?e[1]:e[0]})),...this.props.noValueOption&&!this.props.default?[{label:this.props.intl.formatMessage(y.no_value),value:"no-value"}]:[]];const p=this.props.isMulti?this.props.isMulti:"roles"===t||"groups"===t;return Object(f.jsx)(h.db,v(v({},this.props),{},{children:Object(f.jsx)(c,{id:"field-"+t,name:t,isDisabled:l,isSearchable:!0,className:"react-select-container",classNamePrefix:"react-select",isMulti:p,options:d,styles:m.g,theme:m.h,components:v(v({},(null===d||void 0===d?void 0:d.length)>25&&{MenuList:m.c}),{},{DropdownIndicator:m.b,ClearIndicator:m.a,Option:this.props.customOptionStyling||m.d}),value:o,placeholder:null!==(e=this.props.placeholder)&&void 0!==e?e:this.props.intl.formatMessage(y.select),onChange:e=>i(t,p?e.map(e=>e.value):e&&"no-value"!==e.value?e.value:void 0),isClearable:!0},s)}))}}r()(x,"defaultProps",{description:null,required:!1,items:{vocabulary:null},widgetOptions:{vocabulary:null},error:[],choices:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},onEdit:null,onDelete:null,noValueOption:!0,customOptionStyling:null});const w=Object(p.c)(x);t.a=Object(c.compose)(Object(g.a)(["reactSelect"]),Object(l.connect)((e,t)=>{var s,n,r;const i=t.choices?"":Object(u.F)(t)||Object(u.E)(t)||Object(u.G)(t),a=null===(s=e.vocabularies)||void 0===s||null===(n=s[i])||void 0===n||null===(r=n.subrequests)||void 0===r?void 0:r[t.intl.locale];return t.choices?{choices:t.choices}:a?{vocabBaseUrl:i,choices:null!==(o=null===a||void 0===a?void 0:a.items)&&void 0!==o?o:[]}:i?{vocabBaseUrl:i}:{};var o},{getVocabulary:b.H,getVocabularyTokenTitle:b.I}))(w)},"D/gK":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M29 23L29 21 21 21 21 29 23 29 23 24.414 29.293 30.707 30.707 29.293 24.414 23zM13 11.586L6.707 5.293 5.293 6.707 11.586 13 7 13 7 15 15 15 15 7 13 7zM29 13L24.414 13 30.707 6.707 29.293 5.293 23 11.586 23 7 21 7 21 15 29 15zM7 23L11.586 23 5.293 29.293 6.707 30.707 13 24.414 13 29 15 29 15 21 7 21z"/></g>'}},DJQ5:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));const n=s("8SHQ"),r={};t.b=e=>{const t=[];if(!t.every(e=>"function"===typeof e))throw new TypeError("Each addon has to provide a function applying its configuration to the projects configuration.");return(e=>"function"===typeof n.default?n.default(e):e)(t.reduce((e,t)=>{return(s=t,e=>{const t=s(e);if("undefined"===typeof t)throw new Error("Configuration function doesn't return config");return t})(e);var s},e))}},DP9c:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18.5,30 C12.159,30 7,24.841 7,18.5 C7,12.159 12.159,7 18.5,7 C24.841,7 30,12.159 30,18.5 C30,24.841 24.841,30 18.5,30 M18.5,4 C10.505,4 4,10.505 4,18.5 C4,26.495 10.505,33 18.5,33 C26.495,33 33,26.495 33,18.5 C33,10.505 26.495,4 18.5,4"/><path d="M16.5 15.5C18.157 15.5 19.5 14.157 19.5 12.5 19.5 10.843 18.157 9.5 16.5 9.5 14.843 9.5 13.5 10.843 13.5 12.5 13.5 14.157 14.843 15.5 16.5 15.5M16.5 21.5C14.843 21.5 13.5 22.843 13.5 24.5 13.5 26.157 14.843 27.5 16.5 27.5 18.157 27.5 19.5 26.157 19.5 24.5 19.5 22.843 18.157 21.5 16.5 21.5M22.5 15.5C20.843 15.5 19.5 16.843 19.5 18.5 19.5 20.157 20.843 21.5 22.5 21.5 24.157 21.5 25.5 20.157 25.5 18.5 25.5 16.843 24.157 15.5 22.5 15.5"/></g>'}},DQaE:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M27,30 C27,30.552 26.551,31 26,31 L12,31 C11.449,31 11,30.552 11,30 L11,9 L27,9 L27,30 Z M19,5 C20.103,5 21,5.897 21,7 L17,7 C17,5.897 17.897,5 19,5 L19,5 Z M31,7 L23,7 C23,4.794 21.206,3 19,3 C16.794,3 15,4.794 15,7 L7,7 L7,9 L9,9 L9,30 C9,31.654 10.346,33 12,33 L26,33 C27.654,33 29,31.654 29,30 L29,9 L31,9 L31,7 Z"/><path d="M15 28L17 28 17 12 15 12zM21 28L23 28 23 12 21 12z"/></g>'}},E9q0:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M5 7L31 7 31 5 5 5zM15 13L31 13 31 11 15 11zM15 25L31 25 31 23 15 23zM15 19L31 19 31 17 15 17zM5 31L31 31 31 29 5 29zM6.719 23.695L5.281 22.305 9.438 18 5.281 13.695 6.719 12.305 12.219 18z"/></g>'}},EFnn:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M18.707 5.293L17.293 6.707 27.586 17 5 17 5 19 27.586 19 17.293 29.293 18.707 30.707 31.414 18z"/>'}},EODC:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("8ZS8")),a=s("nKUr");function o(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function l(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?o(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{const{views:t}=i.a,{error:s}=e;let n;return n=void 0===s.status?t.errorViews.corsError:t.errorViews[s.status.toString()],n||(n=t.errorViews[404]),Object(a.jsx)("div",{id:"view",children:Object(a.jsx)(n,l({},e))})}},ERgP:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("24R3"),l=s("zSVi"),c=s("ztqQ"),d=s("ezNy"),p=s("NrgV"),u=s("Kvkj"),h=s("8ZS8"),b=s("/MKj"),j=s("2mql"),m=s.n(j),g=s("6crI"),f=s("9At1"),O=s("zpb6"),v=s("nKUr");function y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function x(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?y(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var w=s("GWVt"),C=s.n(w),S=s("6fhb"),M=s.n(S);function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P=function(e){function t(t){var s,n,r,i,o,l,c,d,p,u;const{data:j={},properties:m,path:y,variation:w}=t,{settings:C}=h.a,S=j.querystring||j,{block:M}=j,{b_size:k=C.defaultPageSize}=S,[N]=a.a.useState(Object(O.r)(y)),P=Object.assign(null!==w&&void 0!==w&&w.fullobjects?{fullobjects:1}:{metadata_fields:"_all"},{b_size:k},...["limit","query","sort_on","sort_order","depth"].map(e=>Object.keys(S).includes(e)?{[e]:S[e]}:{})),{currentPage:L,setCurrentPage:D}=Object(O.Z)(S,1),E=Object(b.useSelector)(e=>e.querystringsearch.subrequests),T=Object(b.useDispatch)(),I=null!==m&&void 0!==m&&m.is_folderish?m.items:[],A=(null===S||void 0===S||null===(s=S.query)||void 0===s?void 0:s.length)>0,R=!A||!(null!==E&&void 0!==E&&null!==(n=E[M])&&void 0!==n&&n.loading),_=(null===S||void 0===S||null===(r=S.query)||void 0===r?void 0:r.length)>0&&null!==E&&void 0!==E&&E[M]?(null===E||void 0===E||null===(i=E[M])||void 0===i?void 0:i.items)||[]:I,q=!A&&(null===m||void 0===m?void 0:m.items_total)>k,F=A&&(null===E||void 0===E||null===(o=E[M])||void 0===o?void 0:o.total)>k,B=q?Math.ceil(m.items_total/k):F?Math.ceil(E[M].total/k):0,z=q?null===(l=m.batching)||void 0===l?void 0:l.prev:F?null===(c=E[M].batching)||void 0===c?void 0:c.prev:null,U=q?null===(d=m.batching)||void 0===d?void 0:d.next:F?null===(p=E[M].batching)||void 0===p?void 0:p.next:null,H=!j.variation&&"imageGallery"===j.template||"imageGallery"===j.variation;return Object(g.a)(()=>{T(A?Object(f.z)(N,P,M,L):H&&!A?Object(f.z)(N,x(x({},P),{},{query:[{i:"path",o:"plone.app.querystring.operation.string.relativePath",v:""}]}),M):Object(f.t)(N,null,null,L))},[M,H,P,A,N,T,L]),Object(v.jsx)(e,x(x({},t),{},{onPaginationChange:(e,{activePage:t})=>D(t),total:null===E||void 0===E||null===(u=E[M])||void 0===u?void 0:u.total,batch_size:k,currentPage:L,totalPages:B,prevBatch:z,nextBatch:U,listingItems:_,hasLoaded:R,isFolderContentsListing:q}))}return t.displayName=`WithQuerystringResults(${function(e){return e.displayName||e.name||"Component"}(e)})`,m()(t,e)}(e=>{var t,s,n;const{data:r={},isEditMode:a,listingItems:l,totalPages:b,onPaginationChange:j,variation:m,currentPage:g,prevBatch:f,nextBatch:O,isFolderContentsListing:y,hasLoaded:x}=e;let w;const S=(null===(t=h.a.blocks)||void 0===t||null===(s=t.blocksConfig.listing)||void 0===s?void 0:s.variations)||[],k=null===(n=S.filter(e=>e.isDefault))||void 0===n?void 0:n[0];if(r.template&&!r.variation){w=S.find(e=>e.id===r.template).template}else{var P,L;w=null!==(P=null!==(L=null===m||void 0===m?void 0:m.template)&&void 0!==L?L:null===k||void 0===k?void 0:k.template)&&void 0!==P?P:null}const D=Object(i.createRef)();return(null===l||void 0===l?void 0:l.length)>0?Object(v.jsxs)("div",{ref:D,children:[Object(v.jsx)(w,N({items:l,isEditMode:a},r)),b>1&&Object(v.jsx)("div",{className:"pagination-wrapper",children:Object(v.jsx)(c.a,{activePage:g,totalPages:b,onPageChange:(e,{activePage:t})=>{!a&&D.current.scrollIntoView({behavior:"smooth"}),j(e,{activePage:t})},firstItem:null,lastItem:null,prevItem:{content:Object(v.jsx)(u.jb,{name:C.a,size:"18px"}),icon:!0,"aria-disabled":!f,className:f?null:"disabled"},nextItem:{content:Object(v.jsx)(u.jb,{name:M.a,size:"18px"}),icon:!0,"aria-disabled":!O,className:O?null:"disabled"}})})]}):a?Object(v.jsxs)("div",{className:"listing message",ref:D,children:[y&&Object(v.jsx)(o.a,{id:"No items found in this container.",defaultMessage:"No items found in this container."}),x&&Object(v.jsx)(o.a,{id:"No results found.",defaultMessage:"No results found."}),Object(v.jsx)(d.a,{active:!x,inverted:!0,children:Object(v.jsx)(p.a,{indeterminate:!0,size:"small",children:Object(v.jsx)(o.a,{id:"loading",defaultMessage:"Loading"})})})]}):Object(v.jsxs)("div",{children:[x&&Object(v.jsx)(o.a,{id:"No results found.",defaultMessage:"No results found."}),Object(v.jsx)(d.a,{active:!x,inverted:!0,children:Object(v.jsx)(p.a,{indeterminate:!0,size:"small",children:Object(v.jsx)(o.a,{id:"loading",defaultMessage:"Loading"})})})]})});t.a=Object(l.c)(P)},Ef8B:function(e,t,s){"use strict";s.d(t,"a",(function(){return g})),s.d(t,"g",(function(){return f})),s.d(t,"c",(function(){return y})),s.d(t,"b",(function(){return x})),s.d(t,"f",(function(){return w})),s.d(t,"e",(function(){return C})),s.d(t,"d",(function(){return S}));var n=s("lSNA"),r=s.n(n),i=s("UMpK"),a=s.n(i),o=s("GoyQ"),l=s.n(o),c=s("Y+p1"),d=s.n(c),p=s("TYy9"),u=s.n(p),h=(s("q1tI"),s("Ty5D")),b=s("8ZS8"),j=s("nKUr");function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function g(e,t){return a()(e,(e,s,n)=>{d()(s,t[n])||(e[n]=l()(s)&&l()(t[n])?g(s,t[n]):s)})}function f(e){return t=>s=>{if(s.staticContext&&0===Object.keys(s.staticContext).length){const{staticContext:t}=s;t.error_code=e,t.error=s.error}return Object(j.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},s))}}const O=["Black","Blue","BlueViolet","Brown","Crimson","DarkBlue","DarkCyan","DarkGreen","DarkMagenta","DarkOliveGreen","DarkOrchid","DarkRed","DarkSlateBlue","DarkSlateGray","DarkViolet","DeepPink","DimGray","DodgerBlue","Firebrick","ForestGreen","Fuchsia","Green","IndianRed","Indigo","Magenta","Maroon","MediumBlue","MediumSlateBlue","MediumVioletRed","MidnightBlue","Navy","Olive","OliveDrab","OrangeRed","Purple","Red","RoyalBlue","SaddleBrown","SeaGreen","Sienna","SlateBlue","SlateGray","SteelBlue","Teal"],v={},y=(e,t)=>{const s=e.split(" ").map(e=>e[0]?e[0].toUpperCase():"").join("");return t?s.substring(0,t):s},x=e=>{const t=v[e]?v[e]:O.length>0?O.pop():"#"+Math.floor(16777215*Math.random()).toString(16);return v[e]||(v[e]=t),t},w=(e,t,s,n)=>{n.defineLocale(e,n.localeData(e)._config);let r=null;return t&&(r=t.match(/T(.)*(-|\+|Z)/g)?n(t):n(t+"Z")),s&&r?r.format(s):r},C=e=>{if(e.includes("-")){let t=e.split("-");return t=`${t[0]}_${t[1].toUpperCase()}`,t}return e},S=(e,t="",s="GET_CONTENT")=>u()(b.a.settings.apiExpanders.filter(e=>Object(h.g)(t,e.match)&&e[s]).map(e=>e[s])).includes(e)},Ej58:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("Y+p1"),l=s.n(o),c=s("k4Da"),d=s.n(c),p=s("q1tI"),u=(s("17x9"),s("zpb6")),h=s("/MKj"),b=s("ANjH"),j=s("yE/o"),m=s("+6Dn"),g=s("QetY"),f=s("ikXu"),O=s("pLir"),v=s("55Ip"),y=s("Ty5D"),x=s("It+4"),w=s("lHu7"),C=s("24R3"),S=s("zSVi"),M=s("cr+I"),k=s.n(M),N=s("9At1"),P=s("Kvkj"),L=s("qaC+"),D=s.n(L),E=s("nKUr");const T=Object(w.defineMessages)({diff:{id:"Diff",defaultMessage:"Diff"},back:{id:"Back",defaultMessage:"Back"},split:{id:"Split",defaultMessage:"Split"},unified:{id:"Unified",defaultMessage:"Unified"}});class I extends p.Component{constructor(e){super(e),this.onChangeOne=this.onChangeOne.bind(this),this.onChangeTwo=this.onChangeTwo.bind(this),this.onSelectView=this.onSelectView.bind(this),this.state={isClient:!1}}componentDidMount(){this.props.getSchema(this.props.type),this.props.getHistory(Object(u.r)(this.props.pathname)),this.props.getDiff(Object(u.r)(this.props.pathname),this.props.one,this.props.two),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.pathname===e.pathname&&this.props.one===e.one&&this.props.two===e.two||this.props.getDiff(Object(u.r)(e.pathname),e.one,e.two)}onSelectView(e,{value:t}){this.props.history.push(`${this.props.pathname}?one=${this.props.one}&two=${this.props.two}&view=${t}`)}onChangeOne(e,{value:t}){this.props.history.push(`${this.props.pathname}?one=${t}&two=${this.props.two}&view=${this.props.view}`)}onChangeTwo(e,{value:t}){this.props.history.push(`${this.props.pathname}?one=${this.props.one}&two=${t}&view=${this.props.view}`)}render(){const e=a()(d()(this.props.historyEntries,e=>"version"in e),(e,t)=>({text:Object(E.jsxs)(E.Fragment,{children:[0===t?"Current":e.version,"\xa0(",Object(E.jsx)(P.eb,{date:e.time,long:!0,className:"text"}),", \xa0",e.actor.fullname,")"]}),value:""+e.version,key:""+e.version}));return Object(E.jsxs)(j.a,{id:"page-diff",children:[Object(E.jsx)(u.d,{title:this.props.intl.formatMessage(T.diff)}),Object(E.jsx)("h1",{children:Object(E.jsx)(C.a,{id:"Difference between revision {one} and {two} of {title}",defaultMessage:"Difference between revision {one} and {two} of {title}",values:{one:this.props.one,two:this.props.two,title:this.props.title}})}),Object(E.jsxs)(m.a,{children:[Object(E.jsx)(m.a.Column,{width:9,children:Object(E.jsx)("p",{className:"description",children:Object(E.jsx)(C.a,{id:"You can view the difference of the revisions below.",defaultMessage:"You can view the difference of the revisions below."})})}),Object(E.jsx)(m.a.Column,{width:3,textAlign:"right",children:Object(E.jsx)(g.a.Group,{children:a()([{id:"split",label:this.props.intl.formatMessage(T.split)},{id:"unified",label:this.props.intl.formatMessage(T.unified)}],e=>Object(E.jsx)(g.a,{value:e.id,active:this.props.view===e.id,onClick:this.onSelectView,children:e.label},e.id))})})]}),this.props.historyEntries.length>0&&Object(E.jsx)(f.a,{basic:"very",children:Object(E.jsx)(f.a.Header,{children:Object(E.jsxs)(f.a.Row,{children:[Object(E.jsxs)(f.a.HeaderCell,{width:6,children:[Object(E.jsx)(C.a,{id:"Base",defaultMessage:"Base"}),Object(E.jsx)(O.a,{onChange:this.onChangeOne,value:this.props.one,selection:!0,fluid:!0,options:e})]}),Object(E.jsxs)(f.a.HeaderCell,{width:6,children:[Object(E.jsx)(C.a,{id:"Compare",defaultMessage:"Compare"}),Object(E.jsx)(O.a,{onChange:this.onChangeTwo,value:this.props.two,selection:!0,fluid:!0,options:e})]})]})})}),this.props.schema&&this.props.data.length>0&&a()(this.props.schema.fieldsets,e=>a()(e.fields,e=>!l()(this.props.data[0][e],this.props.data[1][e])&&e!==Object(u.t)(this.props.data[0])&&e!==Object(u.u)(this.props.data[0])&&Object(E.jsx)(P.T,{one:this.props.data[0][e],two:this.props.data[1][e],schema:this.props.schema.properties[e],view:this.props.view},e))),this.props.schema&&this.props.data.length>0&&Object(u.I)(this.props.data[0])&&(!l()(this.props.data[0][Object(u.t)(this.props.data[0])],this.props.data[1][Object(u.t)(this.props.data[1])])||!l()(this.props.data[0][Object(u.u)(this.props.data[0])],this.props.data[1][Object(u.u)(this.props.data[1])]))&&Object(E.jsx)(P.T,{one:this.props.data[0][Object(u.t)(this.props.data[0])],two:this.props.data[1][Object(u.t)(this.props.data[1])],contentOne:this.props.data[0],contentTwo:this.props.data[1],schema:this.props.schema.properties[Object(u.t)(this.props.data[0])],view:this.props.view}),this.state.isClient&&Object(E.jsx)(x.a,{node:document.getElementById("toolbar"),children:Object(E.jsx)(P.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(E.jsx)(v.a,{to:Object(u.r)(this.props.pathname)+"/history",className:"item",children:Object(E.jsx)(P.jb,{name:D.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(T.back)})})})})]})}}r()(I,"defaultProps",{schema:null}),t.a=Object(b.compose)(y.j,S.c,Object(h.connect)((e,t)=>({data:e.diff.data,historyEntries:e.history.entries,schema:e.schema.schema,pathname:t.location.pathname,one:k.a.parse(t.location.search).one,two:k.a.parse(t.location.search).two,view:k.a.parse(t.location.search).view||"split",title:e.content.data.title,type:e.content.data["@type"]}),{getDiff:N.w,getSchema:N.B,getHistory:N.x}))(I)},ElzN:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("18Zd"),a=s.n(i),o=s("9At1"),l=s("zpb6"),c=s("Kvkj"),d=s("1Jxj"),p=s.n(d),u=s("Z5Td"),h=s.n(u),b=(s("17x9"),s("q1tI")),j=s.n(b),m=s("lHu7"),g=s("zSVi"),f=s("It+4"),O=s("/MKj"),v=s("GGqY"),y=s("ANjH"),x=s("aQu0"),w=s("QetY"),C=s("nKUr");function S(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function M(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?S(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):S(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const k=Object(m.defineMessages)({title:{id:"{id} Schema",defaultMessage:"{id} Schema"},success:{id:"Success",defaultMessage:"Success"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},error:{id:"Error",defaultMessage:"Error"},typeCreated:{id:"Schema updates",defaultMessage:"Schema updates"},info:{id:"Info",defaultMessage:"Info"},changesSaved:{id:"Changes saved.",defaultMessage:"Changes saved."}});class N extends b.Component{constructor(e){super(e),r()(this,"form",j.a.createRef()),r()(this,"makeSchemaList",e=>{const t={title:"Schema",type:"object",fieldsets:[{fields:["schema"],id:"default",title:"Default"}],properties:{schema:{description:"Form schema",title:"Form schema",type:"schema",id:"schema"}},required:[],layouts:null};return t.layouts=e.layouts.slice(),t}),r()(this,"isEditable",e=>!e.behavior||e.behavior.includes("generated")),r()(this,"makeSchemaData",(e,t)=>{const s=e.fieldsets.map(t=>{const s=t.fields.filter(t=>!this.isEditable(e.properties[t])&&"changeNote"!==t),n=t.fields.filter(t=>this.isEditable(e.properties[t])),r=t.fields.filter(e=>"changeNote"===e);return M(M({},t),{},{fields:[...s,...n,...r]})}),n=M(M({},e),{},{fieldsets:s,contentType:t});return{schema:JSON.stringify(n)}}),this.state={error:null,schema:null,content:null,isClient:!1},this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.form=j.a.createRef()}componentDidMount(){this.props.getSchema(this.props.id),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){if(this.props.schemaRequest.loading&&e.schemaRequest.error&&this.setState({error:e.schemaRequest.error}),this.props.schemaRequest.loading&&e.schemaRequest.loaded){var t;let s,n,r=(null===(t=e.schema)||void 0===t?void 0:t.properties)||{},i={};for(n in r)s=r[n].default,s&&(i[n]=s);this.setState({schema:e.schema,content:i})}this.props.schemaRequest.put.loading&&e.schemaRequest.put.loaded&&v.toast.info(Object(C.jsx)(c.Ub,{info:!0,title:this.props.intl.formatMessage(k.info),content:this.props.intl.formatMessage(k.changesSaved)})),this.props.schemaRequest.put.loading&&e.schemaRequest.put.error&&v.toast.error(Object(C.jsx)(c.Ub,{error:!0,title:this.props.intl.formatMessage(k.error),content:JSON.stringify(e.schemaRequest.put.error.response.body||e.schemaRequest.put.error.response.text)}))}onSubmit(e){this.props.putSchema(this.props.id,e.schema)}onCancel(){let e=Object(l.C)(this.props.pathname);this.props.history.push(Object(l.C)(e))}render(){if(this.state.error)return Object(C.jsx)(c.X,{error:this.state.error});if(this.state.schema){var e,t;const s=this.makeSchemaList(this.state.schema),n=this.makeSchemaData(this.state.schema,this.props.id);return Object(C.jsxs)("div",{id:"page-controlpanel-schema",className:"ui container",children:[Object(C.jsx)(x.a,{disabled:!0,children:this.props.intl.formatMessage(k.title,{id:(null===(e=this.props)||void 0===e||null===(t=e.schema)||void 0===t?void 0:t.title)||this.props.id})}),Object(C.jsx)(c.cb,{ref:this.form,schema:s,formData:n,pathname:this.props.pathname,onSubmit:this.onSubmit,onCancel:this.onCancel,hideActions:!0}),this.state.isClient&&Object(C.jsx)(f.a,{node:document.getElementById("toolbar"),children:Object(C.jsx)(c.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(w.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(k.save),onClick:()=>this.form.current.onSubmit(),disabled:this.props.schemaRequest.put.loading,loading:this.props.schemaRequest.put.loading,children:Object(C.jsx)(c.jb,{name:h.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(k.save)})}),Object(C.jsx)(w.a,{className:"cancel","aria-label":this.props.intl.formatMessage(k.cancel),onClick:()=>this.onCancel(),children:Object(C.jsx)(c.jb,{name:p.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(k.cancel)})})]})})})]})}return Object(C.jsx)("div",{})}}r()(N,"defaultProps",{}),t.a=Object(y.compose)(g.c,Object(O.connect)((e,t)=>({schema:e.schema.schema,schemaRequest:e.schema,pathname:t.location.pathname,id:a()(t.location.pathname.split("/"),-2)}),{getSchema:o.B,putSchema:o.db}))(N)},EzBE:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("qPyV"),a=s.n(i),o=s("3WF5"),l=s.n(o),c=s("RBan"),d=s.n(c),p=s("k4Da"),u=s.n(p),h=s("NIJN"),b=s.n(h),j=s("q1tI"),m=(s("17x9"),s("/MKj")),g=s("ANjH"),f=s("55Ip"),O=s("It+4"),v=s("zpb6"),y=s("yE/o"),x=s("3mGJ"),w=s("+6Dn"),C=s("aQu0"),S=s("lHu7"),M=s("24R3"),k=s("zSVi"),N=s("9At1"),P=s("Kvkj"),L=s("8ZS8"),D=s("qaC+"),E=s.n(D),T=s("nKUr");function I(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function A(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?I(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):I(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const R=Object(S.defineMessages)({sitesetup:{id:"Site Setup",defaultMessage:"Site Setup"},back:{id:"Back",defaultMessage:"Back"},versionoverview:{id:"Version Overview",defaultMessage:"Version Overview"},moderatecomments:{id:"Moderate Comments",defaultMessage:"Moderate Comments"},usersandgroups:{id:"Users and Groups",defaultMessage:"Users and Groups"},users:{id:"Users",defaultMessage:"Users"},groups:{id:"Groups",defaultMessage:"Groups"}});class _ extends j.Component{constructor(e){super(e),this.state={error:null,isClient:!1}}componentDidMount(){this.props.listControlpanels(),this.props.getSystemInformation(),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.controlpanelsRequest.loading&&e.controlpanelsRequest.error&&this.setState({error:e.controlpanelsRequest.error})}render(){if(this.state.error)return Object(T.jsx)(P.X,{error:this.state.error});const e=l()(b()(this.props.controlpanels,[{"@id":"/addons",group:"General",title:"Add-Ons"},{"@id":"/database",group:"General",title:"Database"},{"@id":"/moderate-comments",group:"Content",title:this.props.intl.formatMessage(R.moderatecomments)},{"@id":"/users",group:"Users and Groups",title:this.props.intl.formatMessage(R.users)},{"@id":"/groups",group:"Users and Groups",title:this.props.intl.formatMessage(R.groups)}]),e=>A(A({},e),{},{id:d()(e["@id"].split("/"))})),t=l()(a()(e,"group"),"group"),{controlPanelsIcons:s}=L.a.settings;return Object(T.jsxs)("div",{className:"view-wrapper",children:[Object(T.jsx)(v.d,{title:this.props.intl.formatMessage(R.sitesetup)}),Object(T.jsxs)(y.a,{className:"controlpanel",children:[Object(T.jsxs)(x.a.Group,{raised:!0,children:[Object(T.jsx)(x.a,{className:"primary",children:Object(T.jsx)(M.a,{id:"Site Setup",defaultMessage:"Site Setup"})}),l()(t,t=>[Object(T.jsx)(x.a,{secondary:!0,children:t},"header-"+t),Object(T.jsx)(x.a,{attached:!0,children:Object(T.jsx)(w.a,{columns:6,children:Object(T.jsx)(w.a.Row,{children:l()(u()(e,{group:t}),e=>Object(T.jsx)(w.a.Column,{children:Object(T.jsx)(f.a,{to:"/controlpanel/"+e.id,children:Object(T.jsxs)(C.a,{as:"h3",icon:!0,textAlign:"center",children:[Object(T.jsx)(P.jb,{name:(null===s||void 0===s?void 0:s[e.id])||s.default,size:"48px"}),Object(T.jsx)(C.a.Content,{children:e.title})]})})},e.id))})})},"body-"+t)])]}),Object(T.jsxs)(x.a.Group,{raised:!0,children:[Object(T.jsx)(x.a,{className:"primary",children:Object(T.jsx)(M.a,{id:"Version Overview",defaultMessage:"Version Overview"})}),Object(T.jsx)(x.a,{attached:!0,children:this.props.systemInformation?Object(T.jsx)(P.bc,A({},this.props.systemInformation)):null})]})]}),this.state.isClient&&Object(T.jsx)(O.a,{node:document.getElementById("toolbar"),children:Object(T.jsx)(P.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(T.jsx)(f.a,{to:"/",className:"item",children:Object(T.jsx)(P.jb,{name:E.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(R.back)})})})})]})}}t.a=Object(g.compose)(k.c,Object(m.connect)((e,t)=>({controlpanels:e.controlpanels.controlpanels,controlpanelsRequest:e.controlpanels.list,pathname:t.location.pathname,systemInformation:e.controlpanels.systeminformation}),{listControlpanels:N.P,getSystemInformation:N.D}))(_)},FX0u:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M31,25 L29,25 L29,24.18 L22.259,22.832 L13.196,21.02 L12.261,20.833 L7,19.78 L7,21 L5,21 L5,15 L7,15 L7,16.22 L29,11.82 L29,11 L31,11 L31,25 Z M20.502,25.868 C20.374,26.384 19.841,26.719 19.315,26.601 L14.221,25.469 C13.956,25.41 13.73,25.25 13.587,25.019 C13.445,24.787 13.402,24.514 13.468,24.25 L13.739,23.167 L20.823,24.584 L20.502,25.868 Z M27,9 L27,10.18 L9,13.78 L9,13 L3,13 L3,23 L9,23 L9,22.22 L11.776,22.775 L11.528,23.765 C11.33,24.557 11.457,25.375 11.886,26.07 C12.315,26.764 12.991,27.244 13.788,27.421 L18.881,28.553 C19.096,28.601 19.315,28.625 19.534,28.625 C20.912,28.625 22.108,27.691 22.443,26.353 L22.785,24.977 L27,25.82 L27,27 L33,27 L33,9 L27,9 Z"/>'}},Fqua:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("J2m7"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=(s("17x9"),s("zpb6")),d=s("/MKj"),p=s("ANjH"),u=s("lHu7"),h=s("zSVi"),b=s("+6Dn"),j=s("R6OX"),m=s("QetY"),g=s("It+4"),f=s("cr+I"),O=s.n(f),v=s("GGqY"),y=s("Kvkj"),x=s("9At1"),w=s("WZVz"),C=s("Z5Td"),S=s.n(C),M=s("1Jxj"),k=s.n(M),N=s("8ZS8"),P=s("nKUr");const L=Object(u.defineMessages)({edit:{id:"Edit {title}",defaultMessage:"Edit {title}"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},error:{id:"Error",defaultMessage:"Error"}});class D extends o.Component{constructor(e){super(e),r()(this,"form",l.a.createRef()),r()(this,"toolbarRef",l.a.createRef),this.state={visual:!0,isClient:!1,error:null,formSelected:"editForm"},this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){var e;this.props.getRequest.loaded&&null!==(e=this.props.content)&&void 0!==e&&e["@type"]&&this.props.getSchema(this.props.content["@type"],Object(c.r)(this.props.pathname)),this.setState({isClient:!0,comparingLanguage:null})}UNSAFE_componentWillReceiveProps(e){var t,s;if(this.props.schemaRequest.loading&&e.schemaRequest.loaded&&(Object(c.I)(e.schema.properties)||this.setState({visual:!1})),"Plone Site"===(null===(t=this.props)||void 0===t||null===(s=t.content)||void 0===s?void 0:s["@type"])&&this.setState({visual:!0}),this.props.updateRequest.loading&&e.updateRequest.loaded&&this.props.history.push(this.props.returnUrl||Object(c.r)(this.props.pathname)),this.props.updateRequest.loading&&e.updateRequest.error){var n,r,i,a,o,l,d,p,u,h,b;const t=(null===(n=e.updateRequest.error)||void 0===n||null===(r=n.response)||void 0===r||null===(i=r.body)||void 0===i||null===(a=i.error)||void 0===a?void 0:a.message)||(null===(o=e.updateRequest.error)||void 0===o||null===(l=o.response)||void 0===l||null===(d=l.body)||void 0===d?void 0:d.message)||(null===(p=e.updateRequest.error)||void 0===p||null===(u=p.response)||void 0===u?void 0:u.text)||"",s=(null===(h=(new DOMParser).parseFromString(t,"text/html"))||void 0===h||null===(b=h.all[0])||void 0===b?void 0:b.textContent)||t;this.setState({error:s}),v.toast.error(Object(P.jsx)(y.Ub,{error:!0,title:this.props.intl.formatMessage(L.error),content:`${e.updateRequest.error.status} ${s}`}))}e.compare_to&&(this.state.compareTo&&e.compare_to["@id"]!==this.state.compareTo["@id"]||!this.state.compareTo)&&this.setState({compareTo:e.compare_to})}componentWillUnmount(){var e,t;null!==(e=this.props.content)&&void 0!==e&&null!==(t=e.lock)&&void 0!==t&&t.locked&&this.props.unlockContent(Object(c.r)(this.props.pathname))}onSubmit(e){var t,s;const n=null===(t=this.props.content)||void 0===t||null===(s=t.lock)||void 0===s?void 0:s.token,r=n?{"Lock-Token":n}:{};this.props.updateContent(Object(c.r)(this.props.pathname),e,r)}onCancel(){this.props.history.push(this.props.returnUrl||Object(c.r)(this.props.pathname))}setComparingLanguage(e,t){this.setState({comparingLanguage:e}),this.props.getContent(t,null,"compare_to",null)}render(){var e,t,s,n,r,i,o,l,d;const p=a()(this.props.objectActions,{id:"edit"}),u=Object(P.jsx)(y.cb,{isEditForm:!0,ref:this.form,schema:this.props.schema,type:null===(e=this.props.content)||void 0===e?void 0:e["@type"],formData:this.props.content,requestError:this.state.error,onSubmit:this.onSubmit,hideActions:!0,pathname:this.props.pathname,visual:this.state.visual,title:null!==(t=this.props)&&void 0!==t&&null!==(s=t.schema)&&void 0!==s&&s.title?this.props.intl.formatMessage(L.edit,{title:this.props.schema.title}):null,loading:this.props.updateRequest.loading,isFormSelected:"editForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"editForm"})}});return Object(P.jsxs)("div",{id:"page-edit",children:[(null===(n=this.props.objectActions)||void 0===n?void 0:n.length)>0&&Object(P.jsxs)(P.Fragment,{children:[p&&Object(P.jsxs)(P.Fragment,{children:[Object(P.jsx)(c.d,{title:null!==(r=this.props)&&void 0!==r&&null!==(i=r.schema)&&void 0!==i&&i.title?this.props.intl.formatMessage(L.edit,{title:this.props.schema.title}):null,children:(null===(o=this.props.content)||void 0===o?void 0:o.language)&&Object(P.jsx)("html",{lang:this.props.content.language.token})}),this.state.comparingLanguage&&this.state.compareTo?Object(P.jsxs)(b.a,{celled:"internally",stackable:!0,columns:2,id:"page-compare-translation",children:[Object(P.jsx)(b.a.Column,{className:"source-object",children:Object(P.jsx)(y.Wb,{translationObject:this.state.compareTo,schema:this.props.schema,pathname:this.props.pathname,visual:this.state.visual,isFormSelected:"translationObjectForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"translationObjectForm"})}})}),Object(P.jsx)(b.a.Column,{children:Object(P.jsxs)("div",{className:"new-translation",children:[Object(P.jsx)(j.a,{pointing:!0,secondary:!0,attached:!0,tabular:!0,children:Object(P.jsx)(j.a.Item,{name:null===(l=this.props.content.language)||void 0===l?void 0:l.token.toUpperCase(),active:!0,children:null===(d=this.props.content.language)||void 0===d?void 0:d.token.toUpperCase()})}),u]})})]}):u]}),p&&this.state.visual&&this.state.isClient&&Object(P.jsx)(g.a,{node:document.getElementById("sidebar"),children:Object(P.jsx)(y.Ob,{})})]}),!p&&Object(P.jsx)(P.Fragment,{children:this.props.token?Object(P.jsx)(y.bb,{pathname:this.props.pathname,staticContext:this.props.staticContext}):Object(P.jsx)(y.Xb,{pathname:this.props.pathname,staticContext:this.props.staticContext})}),this.state.isClient&&Object(P.jsx)(g.a,{node:document.getElementById("toolbar"),children:Object(P.jsx)(y.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(P.jsxs)(P.Fragment,{children:[Object(P.jsx)(m.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(L.save),onClick:()=>this.form.current.onSubmit(),disabled:this.props.updateRequest.loading,loading:this.props.updateRequest.loading,children:Object(P.jsx)(y.jb,{name:S.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(L.save)})}),Object(P.jsx)(m.a,{className:"cancel","aria-label":this.props.intl.formatMessage(L.cancel),onClick:()=>this.onCancel(),children:Object(P.jsx)(y.jb,{name:k.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(L.cancel)})}),N.a.settings.isMultilingual&&Object(P.jsx)(y.s,{content:this.props.content,visual:this.state.visual,setComparingLanguage:(e,t)=>{this.setComparingLanguage(e,t)},comparingLanguage:this.state.comparingLanguage,pathname:this.props.location.pathname,toolbarRef:this.toolbarRef})]})})})]})}}r()(D,"defaultProps",{schema:null,content:null,returnUrl:null});Object(p.compose)(h.c,Object(d.connect)((e,t)=>{var s,n;return{objectActions:e.actions.actions.object,token:e.userSession.token,content:e.content.data,compare_to:null===(s=e.content.subrequests)||void 0===s||null===(n=s.compare_to)||void 0===n?void 0:n.data,schema:e.schema.schema,getRequest:e.content.get,schemaRequest:e.schema,updateRequest:e.content.update,createRequest:e.content.create,pathname:t.location.pathname,returnUrl:O.a.parse(t.location.search).return_url}},{updateContent:x.vb,getContent:x.t,getSchema:x.B,lockContent:x.V,unlockContent:x.sb}))(D);t.a=Object(p.compose)(h.c,Object(c.k)([{key:"actions",promise:async({location:e,store:{dispatch:t}})=>{await t(Object(x.M)(Object(c.r)(e.pathname)))}},{key:"content",promise:async({location:e,store:{dispatch:t}})=>{const s=await t(Object(x.t)(Object(c.r)(e.pathname)));return void 0!==(null===s||void 0===s?void 0:s.lock)&&await t(Object(x.V)(Object(c.r)(e.pathname))),s}}]),Object(d.connect)((e,t)=>{var s,n;return{objectActions:e.actions.actions.object,token:e.userSession.token,content:e.content.data,compare_to:null===(s=e.content.subrequests)||void 0===s||null===(n=s.compare_to)||void 0===n?void 0:n.data,schema:e.schema.schema,getRequest:e.content.get,schemaRequest:e.schema,updateRequest:e.content.update,pathname:t.location.pathname,returnUrl:O.a.parse(t.location.search).return_url}},{updateContent:x.vb,getContent:x.t,getSchema:x.B,lockContent:x.V,unlockContent:x.sb}),Object(w.a)("cms"))(D)},GHG5:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M6.7139,29 L29.2859,29 L17.9999,9.032 L6.7139,29 Z M32.7139,31 L3.2859,31 L17.9999,4.968 L32.7139,31 Z"/><path d="M19.5 26C19.5 26.828 18.828 27.5 18 27.5 17.172 27.5 16.5 26.828 16.5 26 16.5 25.172 17.172 24.5 18 24.5 18.828 24.5 19.5 25.172 19.5 26L19.5 26zM17 23L19 23 19 14 17 14z"/></g>'}},GWVt:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M21.293 9.293L22.707 10.707 15.414 18 22.707 25.293 21.293 26.707 12.586 18z"/>'}},"GbF/":function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));const n={integrations:[new(s("NueE").a)({levels:["error"]})]}},GhEF:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18,31 C10.832,31 5,25.168 5,18 C5,10.832 10.832,5 18,5 C25.168,5 31,10.832 31,18 C31,25.168 25.168,31 18,31 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/><path d="M19,11 L17,11 L17,13 L11,13 L11,15 L21.019,15 C20.951,16.355 20.437,19.122 17.782,21.903 C16.268,20.501 15.662,19.221 15.343,17.783 L13.39,18.217 C13.82,20.152 14.704,21.74 16.308,23.264 C15.515,23.902 14.596,24.529 13.517,25.125 L14.483,26.875 C15.812,26.142 16.93,25.364 17.881,24.569 C18.897,25.321 20.103,26.078 21.548,26.875 L22.515,25.125 C21.253,24.428 20.221,23.786 19.365,23.177 C22.399,19.954 22.963,16.678 23.026,15 L25,15 L25,13 L19,13 L19,11 Z"/></g>'}},H6Ro:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=s("ANjH"),c=(s("17x9"),s("lHu7")),d=s("zSVi"),p=s("TSYQ"),u=s.n(p),h=s("Lf35"),b=s("8ZS8"),j=s("nKUr");const m=Object(c.defineMessages)({description:{id:"Add a description\u2026",defaultMessage:"Add a description\u2026"}});class g extends o.Component{constructor(e){super(e);{const{Editor:t,EditorState:s,DefaultDraftBlockRenderMap:n}=e.draftJs,{Map:r}=e.immutableLib;this.Editor=t,this.EditorState=s,this.stateFromHTML=e.draftJsImportHtml.stateFromHTML;const i=r({unstyled:{element:"div"}});let a;if(this.extendedBlockRenderMap=n.merge(i),e.properties&&e.properties.description){const t=this.stateFromHTML(e.properties.description);a=this.EditorState.createWithContent(t)}else a=this.EditorState.createEmpty();this.state={editorState:a,focus:!1}}this.onChange=this.onChange.bind(this)}componentDidMount(){this.node&&(this.node._onBlur=()=>this.setState({focus:!1}),this.node._onFocus=()=>this.setState({focus:!0}))}UNSAFE_componentWillReceiveProps(e){if(e.properties.description&&this.props.properties.description!==e.properties.description&&!this.state.focus){const t=this.stateFromHTML(e.properties.description);this.setState({editorState:e.properties.description?this.EditorState.createWithContent(t):this.EditorState.createEmpty()})}!this.props.selected&&e.selected&&(this.node.focus(),this.setState({focus:!0}))}shouldComponentUpdate(e){return this.props.selected||!a()(this.props.properties.description,e.properties.description)}onChange(e){this.setState({editorState:e},()=>{this.props.onChangeField("description",e.getCurrentContent().getPlainText())})}render(){const e=this.Editor;return Object(j.jsx)("div",{className:u()("block description",{selected:this.props.selected}),children:Object(j.jsx)(e,{onChange:this.onChange,editorState:this.state.editorState,readOnly:!this.props.editable,blockRenderMap:this.extendedBlockRenderMap,handleReturn:()=>{var e;return null!==(e=this.props.data)&&void 0!==e&&e.disableNewBlocks||this.props.onSelectBlock(this.props.onAddBlock(b.a.settings.defaultBlockType,this.props.index+1)),"handled"},handleKeyCommand:(e,t)=>{"backspace"===e&&0===t.getCurrentContent().getPlainText().length&&this.props.onDeleteBlock(this.props.block,!0)},placeholder:this.props.intl.formatMessage(m.description),blockStyleFn:()=>"documentDescription",onUpArrow:()=>{const e=this.state.editorState.getSelection(),{editorState:t}=this.state;t.getCurrentContent().getBlockMap().first().getKey()===e.getFocusKey()&&this.props.onFocusPreviousBlock(this.props.block,this.node)},onDownArrow:()=>{const e=this.state.editorState.getSelection(),{editorState:t}=this.state;t.getCurrentContent().getBlockMap().last().getKey()===e.getFocusKey()&&this.props.onFocusNextBlock(this.props.block,this.node)},ref:e=>{this.node=e}})})}}r()(g,"defaultProps",{editable:!0}),t.a=Object(l.compose)(Object(h.a)(["draftJs","immutableLib","draftJsImportHtml"]),d.c)(g)},HFq4:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M27 16L25 16 23 16 21 16 19 16 17 16 15 16 13 16 11 16 9 16 7 16 7 10 29 10 29 16 27 16zM5 8L5 16 5 18 7 18 9 18 11 18 13 18 15 18 17 18 19 18 21 18 23 18 25 18 27 18 29 18 31 18 31 16 31 8 5 8zM5 24L31 24 31 22 5 22zM5 28L23 28 23 26 5 26z"/></g>'}},HWDG:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("Y+p1"),l=s.n(o),c=s("J2m7"),d=s.n(c),p=s("q1tI"),u=(s("17x9"),s("zpb6")),h=s("/MKj"),b=s("ANjH"),j=s("55Ip"),m=s("Ty5D"),g=s("It+4"),f=s("yE/o"),O=s("3mGJ"),v=s("vFsZ"),y=s("umxb"),x=s("ikXu"),w=s("D1pA"),C=s("T5N5"),S=s("QetY"),M=s("BOF4"),k=s.n(M),N=s("lHu7"),P=s("24R3"),L=s("zSVi"),D=s("9At1"),E=s("Kvkj"),T=s("GGqY"),I=s("EFnn"),A=s.n(I),R=s("1Jxj"),_=s.n(R),q=s("qaC+"),F=s.n(q),B=s("nKUr");function z(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function U(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?z(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):z(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const H=Object(N.defineMessages)({searchForUserOrGroup:{id:"Search for user or group",defaultMessage:"Search for user or group"},inherit:{id:"Inherit permissions from higher levels",defaultMessage:"Inherit permissions from higher levels"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},back:{id:"Back",defaultMessage:"Back"},sharing:{id:"Sharing",defaultMessage:"Sharing"},user:{id:"User",defaultMessage:"User"},group:{id:"Group",defaultMessage:"Group"},globalRole:{id:"Global role",defaultMessage:"Global role"},inheritedValue:{id:"Inherited value",defaultMessage:"Inherited value"},permissionsUpdated:{id:"Permissions updated",defaultMessage:"Permissions updated"},permissionsUpdatedSuccessfully:{id:"Permissions have been updated successfully",defaultMessage:"Permissions have been updated successfully"}});class K extends p.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onChange=this.onChange.bind(this),this.onChangeSearch=this.onChangeSearch.bind(this),this.onSearch=this.onSearch.bind(this),this.onSubmit=this.onSubmit.bind(this),this.onToggleInherit=this.onToggleInherit.bind(this),this.state={search:"",inherit:e.inherit,entries:e.entries,isClient:!1}}componentDidMount(){this.props.getSharing(Object(u.r)(this.props.pathname),this.state.search),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.updateRequest.loading&&e.updateRequest.loaded&&(this.props.getSharing(Object(u.r)(this.props.pathname),this.state.search),T.toast.success(Object(B.jsx)(E.Ub,{success:!0,title:this.props.intl.formatMessage(H.permissionsUpdated),content:this.props.intl.formatMessage(H.permissionsUpdatedSuccessfully)}))),this.setState({inherit:null===this.props.inherit?e.inherit:this.state.inherit,entries:a()(e.entries,e=>{const t=d()(this.state.entries,{id:e.id});return U(U({},e),{},{roles:t?t.roles:e.roles})})})}onSubmit(e){const t={entries:[]};e.preventDefault(),this.props.inherit!==this.state.inherit&&(t.inherit=this.state.inherit);for(let s=0;s<this.props.entries.length;s+=1)l()(this.props.entries[s].roles,this.state.entries[s].roles)||t.entries.push({id:this.state.entries[s].id,type:this.state.entries[s].type,roles:this.state.entries[s].roles});this.props.updateSharing(Object(u.r)(this.props.pathname),t)}onSearch(e){e.preventDefault(),this.props.getSharing(Object(u.r)(this.props.pathname),this.state.search)}onChangeSearch(e){this.setState({search:e.target.value})}onToggleInherit(){this.setState({inherit:!this.state.inherit})}onChange(e,{value:t}){const[s,n]=t.split(":");this.setState({entries:a()(this.state.entries,e=>U(U({},e),{},{roles:e.id===s?U(U({},e.roles),{},{[n]:!e.roles[n]}):e.roles}))})}onCancel(){this.props.history.push(Object(u.r)(this.props.pathname))}render(){var e,t;return Object(B.jsxs)(f.a,{id:"page-sharing",children:[Object(B.jsx)(u.d,{title:this.props.intl.formatMessage(H.sharing)}),Object(B.jsxs)(O.a.Group,{raised:!0,children:[Object(B.jsx)(O.a,{className:"primary",children:Object(B.jsx)(P.a,{id:"Sharing for {title}",defaultMessage:"Sharing for {title}",values:{title:Object(B.jsx)("q",{children:this.props.title})}})}),Object(B.jsx)(O.a,{secondary:!0,children:Object(B.jsx)(P.a,{id:"You can control who can view and edit your item using the list below.",defaultMessage:"You can control who can view and edit your item using the list below."})}),Object(B.jsx)(O.a,{children:Object(B.jsx)(v.a,{onSubmit:this.onSearch,children:Object(B.jsx)(v.a.Field,{children:Object(B.jsx)(y.a,{name:"SearchableText",action:{icon:"search"},placeholder:this.props.intl.formatMessage(H.searchForUserOrGroup),onChange:this.onChangeSearch})})})}),Object(B.jsxs)(v.a,{onSubmit:this.onSubmit,children:[Object(B.jsxs)(x.a,{celled:!0,padded:!0,striped:!0,attached:!0,children:[Object(B.jsx)(x.a.Header,{children:Object(B.jsxs)(x.a.Row,{children:[Object(B.jsx)(x.a.HeaderCell,{children:Object(B.jsx)(P.a,{id:"Name",defaultMessage:"Name"})}),null===(e=this.props.available_roles)||void 0===e?void 0:e.map(e=>Object(B.jsx)(x.a.HeaderCell,{children:e.title},e.id))]})}),Object(B.jsx)(x.a.Body,{children:null===(t=this.state.entries)||void 0===t?void 0:t.map(e=>{var t;return Object(B.jsxs)(x.a.Row,{children:[Object(B.jsxs)(x.a.Cell,{children:[Object(B.jsx)(w.a,{name:"user"===e.type?"user":"users",title:"user"===e.type?this.props.intl.formatMessage(H.user):this.props.intl.formatMessage(H.group)})," ",e.title,e.login&&` (${e.login})`]}),null===(t=this.props.available_roles)||void 0===t?void 0:t.map(t=>Object(B.jsxs)(x.a.Cell,{children:["global"===e.roles[t.id]&&Object(B.jsx)(w.a,{name:"check circle outline",title:this.props.intl.formatMessage(H.globalRole),color:"blue"}),"acquired"===e.roles[t.id]&&Object(B.jsx)(w.a,{name:"check circle outline",color:"green",title:this.props.intl.formatMessage(H.inheritedValue)}),"boolean"===typeof e.roles[t.id]&&Object(B.jsx)(C.a,{onChange:this.onChange,value:`${e.id}:${t.id}`,checked:e.roles[t.id],disabled:e.login===this.props.login})]},t.id))]},e.id)})})]}),Object(B.jsxs)(O.a,{attached:!0,children:[Object(B.jsx)(v.a.Field,{children:Object(B.jsx)(C.a,{checked:this.state.inherit,onChange:this.onToggleInherit,label:this.props.intl.formatMessage(H.inherit)})}),Object(B.jsx)("p",{className:"help",children:Object(B.jsx)(P.a,{id:"By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator.",defaultMessage:"By default, permissions from the container of this item are inherited. If you disable this, only the explicitly defined sharing permissions will be valid. In the overview, the symbol {inherited} indicates an inherited value. Similarly, the symbol {global} indicates a global role, which is managed by the site administrator.",values:{inherited:Object(B.jsx)(w.a,{name:"check circle outline",color:"green"}),global:Object(B.jsx)(w.a,{name:"check circle outline",color:"blue"})}})})]}),Object(B.jsxs)(O.a,{className:"actions",attached:!0,clearing:!0,children:[Object(B.jsx)(S.a,{basic:!0,primary:!0,floated:"right",type:"submit","aria-label":this.props.intl.formatMessage(H.save),title:this.props.intl.formatMessage(H.save),loading:this.props.updateRequest.loading,onClick:this.onSubmit,children:Object(B.jsx)(E.jb,{className:"circled",name:A.a,size:"30px"})}),Object(B.jsx)(S.a,{basic:!0,secondary:!0,"aria-label":this.props.intl.formatMessage(H.cancel),title:this.props.intl.formatMessage(H.cancel),floated:"right",onClick:this.onCancel,children:Object(B.jsx)(E.jb,{className:"circled",name:_.a,size:"30px"})})]})]})]}),this.state.isClient&&Object(B.jsx)(g.a,{node:document.getElementById("toolbar"),children:Object(B.jsx)(E.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(B.jsx)(j.a,{to:""+Object(u.r)(this.props.pathname),className:"item",children:Object(B.jsx)(E.jb,{name:F.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(H.back)})})})})]})}}r()(K,"defaultProps",{inherit:null,login:""}),t.a=Object(b.compose)(m.j,L.c,Object(h.connect)((e,t)=>({entries:e.sharing.data.entries,inherit:e.sharing.data.inherit,available_roles:e.sharing.data.available_roles,updateRequest:e.sharing.update,pathname:t.location.pathname,title:e.content.data.title,login:e.userSession.token?k()(e.userSession.token).sub:""}),{updateSharing:D.Ab,getSharing:D.C}))(K)},HcpN:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("55Ip"),l=s("R6OX"),c=s("24R3"),d=s("8ZS8"),p=s("nKUr");class u extends i.Component{render(){var e;const{settings:t}=d.a;return!this.props.token&&Object(p.jsxs)(l.a,{pointing:!0,secondary:!0,floated:"right",children:[Object(p.jsx)(l.a.Item,{children:Object(p.jsx)(o.a,{"aria-label":"login",to:"/login"+(null!==(e=this.props.content)&&void 0!==e&&e["@id"]?"?return_url="+this.props.content["@id"].replace(t.apiPath,""):""),children:Object(p.jsx)(c.a,{id:"Log in",defaultMessage:"Log in"})})}),t.showSelfRegistration&&Object(p.jsx)(l.a.Item,{children:Object(p.jsx)(o.a,{"aria-label":"register",to:"/register",children:Object(p.jsx)(c.a,{id:"Register",defaultMessage:"Register"})})})]})}}r()(u,"defaultProps",{token:null,content:{"@id":null}}),t.a=Object(a.connect)(e=>({token:e.userSession.token,content:e.content.data}))(u)},I24j:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("bt/X"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("k4Da"),u=s.n(p),h=s("q1tI"),b=s.n(h),j=(s("17x9"),s("hHGt")),m=s("QetY"),g=s("lHu7"),f=s("52Oh"),O=s("Kvkj"),v=s("cuY2"),y=s.n(v),x=s("8ZS8"),w=s("hxMo"),C=s.n(w),S=s("5ymK"),M=s.n(S),k=s("nKUr");function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?N(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const L=Object(g.defineMessages)({fold:{id:"Fold",defaultMessage:"Fold"},unfold:{id:"Unfold",defaultMessage:"Unfold"}}),D=({currentBlock:e,onInsertBlock:t,onMutateBlock:s,allowedBlocks:n,showRestricted:r,blocksConfig:i=x.a.blocks.blocksConfig,blockChooserRef:o,properties:c={}})=>{const p=Object(f.a)(),h=!a()(n),g=u()(i,e=>r?!h||n.includes(e.id):h?n.includes(e.id):"function"===typeof e.restricted?!e.restricted({properties:c,block:e}):!e.restricted);let v={};const w=u()(g,e=>e.mostUsed);w&&(v.mostUsed=w);const S=l()(g,e=>e.group);v=P(P({},v),S);const N=u()(x.a.blocks.groupBlocksOrder,e=>Object.keys(v).includes(e.id)),[D,E]=b.a.useState(0);function T(e,t){const{index:s}=t;E(D===s?-1:s)}return Object(k.jsx)("div",{className:"blocks-chooser",ref:o,children:Object(k.jsx)(j.a,{fluid:!0,styled:!0,className:"form",children:d()(N,(n,r)=>Object(k.jsxs)(b.a.Fragment,{children:[Object(k.jsxs)(j.a.Title,{"aria-label":D===r?`${p.formatMessage(L.fold)} ${n.title} blocks`:`${p.formatMessage(L.unfold)} ${n.title} blocks`,active:D===r,index:r,onClick:T,children:[p.formatMessage({id:n.id,defaultMessage:n.title}),Object(k.jsx)("div",{className:"accordion-tools",children:0===D?Object(k.jsx)(O.jb,{name:C.a,size:"20px"}):Object(k.jsx)(O.jb,{name:M.a,size:"20px"})})]}),Object(k.jsx)(j.a.Content,{className:n.id,active:D===r,children:Object(k.jsx)(y.a,{animateOpacity:!0,duration:500,height:D===r?"auto":0,children:d()(v[n.id],n=>Object(k.jsx)(m.a.Group,{children:Object(k.jsxs)(m.a,{icon:!0,basic:!0,className:n.id,onClick:r=>{t?t(e,{"@type":n.id}):s(e,{"@type":n.id}),r.stopPropagation()},children:[Object(k.jsx)(O.jb,{name:n.icon,size:"36px"}),p.formatMessage({id:n.title,defaultMessage:n.title})]})},n.id))})})]},n.id))})})};t.a=b.a.forwardRef((e,t)=>Object(k.jsx)(D,P(P({},e),{},{blockChooserRef:t})))},IBHA:function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("55Ip"),o=s("It+4"),l=s("yE/o"),c=s("3mGJ"),d=s("TbSc"),p=s("aQu0"),u=s("MqQV"),h=s("hHGt"),b=s("Mt1y"),j=s("QetY"),m=s("lHu7"),g=s("24R3"),f=s("zSVi"),O=s("9At1"),v=s("zpb6"),y=s("Kvkj"),x=s("OXrg"),w=s.n(x),C=s("7SAC"),S=s.n(C),M=s("qaC+"),k=s.n(M),N=s("nKUr");const P=Object(m.defineMessages)({activateAndDeactivate:{id:"Activate and deactivate",defaultMessage:"Activate and deactivate add-ons in the lists below."},addAddons:{id:"Add Addons",defaultMessage:"To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see"},addonsSettings:{id:"Add-ons Settings",defaultMessage:"Add-ons Settings"},available:{id:"Available",defaultMessage:"Available"},availableVersion:{id:"Latest version",defaultMessage:"Latest version"},back:{id:"Back",defaultMessage:"Back"},installed:{id:"Installed",defaultMessage:"Installed"},installedVersion:{id:"Installed version",defaultMessage:"Installed version"},noUninstallProfile:{id:"No uninstall profile",defaultMessage:"This addon does not provide an uninstall profile."},update:{id:"Update",defaultMessage:"Update"},updatesAvailable:{id:"Updates available",defaultMessage:"Updates available"},updateInstalledAddons:{id:"Update installed addons:",defaultMessage:"Update installed addons:"},uninstall:{id:"Uninstall",defaultMessage:"Uninstall"}});class L extends n.Component{constructor(e){super(e),this.onAccordionClick=this.onAccordionClick.bind(this),this.onInstall=this.onInstall.bind(this),this.onUninstall=this.onUninstall.bind(this),this.onUpgrade=this.onUpgrade.bind(this),this.state={activeIndex:-1,installedAddons:[],availableAddons:[],upgradableAddons:[],isClient:!1}}componentDidMount(){this.props.listAddons(),this.setState({isClient:!0})}onInstall(e,{value:t}){e.preventDefault(),this.props.installAddon(t).then(()=>this.props.listAddons())}onUninstall(e,{value:t}){e.preventDefault(),this.props.uninstallAddon(t).then(()=>this.props.listAddons())}onUpgrade(e,{value:t}){e.preventDefault(),this.props.upgradeAddon(t).then(()=>this.props.listAddons())}onAccordionClick(e,t){const{activeIndex:s}=this.state,n=s===t.index?-1:t.index;this.setState({activeIndex:n})}render(){return Object(N.jsxs)(l.a,{id:"page-addons",className:"controlpanel-addons",children:[Object(N.jsx)(v.d,{title:"Addons"}),Object(N.jsxs)(c.a.Group,{raised:!0,children:[Object(N.jsx)(c.a,{className:"primary",children:Object(N.jsx)(g.a,{id:"Add-ons Settings",defaultMessage:"Add-ons Settings"})}),this.props.upgradableAddons.length>0&&Object(N.jsxs)(d.a,{attached:!0,children:[Object(N.jsx)(d.a.Header,{children:Object(N.jsx)(g.a,{id:"Updates available",defaultMessage:"Updates available"})}),Object(N.jsx)(g.a,{id:"Update installed addons",defaultMessage:"Update installed addons"})]}),Object(N.jsxs)(c.a,{children:[Object(N.jsx)(p.a,{as:"h3",children:Object(N.jsx)(g.a,{id:"Activate and deactivate",defaultMessage:"Activate and deactivate add-ons in the lists below."})}),Object(N.jsx)(g.a,{id:"Add Addons",defaultMessage:"To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see"}),"\xa0",Object(N.jsx)("a",{href:"http://docs.plone.org/manage/installing/installing_addons.html",target:"_blank",rel:"noopener noreferrer",children:"Installing a third party add-on"}),"."]}),Object(N.jsxs)(c.a,{secondary:!0,children:[Object(N.jsx)(g.a,{id:"Installed",defaultMessage:"Installed"}),":",Object(N.jsx)(u.a,{circular:!0,children:this.props.installedAddons.length})]},"header-installed"),Object(N.jsx)(c.a,{attached:!0,children:Object(N.jsxs)(h.a,{children:[Object(N.jsx)(b.a,{}),this.props.installedAddons.map(e=>Object(N.jsxs)("div",{children:[Object(N.jsxs)(h.a.Title,{active:this.state.activeIndex===e.id,index:e.id,onClick:this.onAccordionClick,className:e.upgrade_info.available?"updateAvailable":"",children:[e.title,e.upgrade_info.available&&Object(N.jsx)("span",{className:"updateText",children:Object(N.jsx)(g.a,{id:"Update",defaultMessage:"Update"})}),Object(N.jsx)(y.jb,{name:this.state.activeIndex===e.id?S.a:w.a,size:"24px",className:"accordionToggle "+e.title,color:"#878f93"})]}),Object(N.jsxs)(h.a.Content,{active:this.state.activeIndex===e.id,children:[Object(N.jsx)("div",{className:"description",children:e.description}),Object(N.jsxs)(j.a.Group,{floated:"right",children:[e.upgrade_info.available&&Object(N.jsx)(j.a,{primary:!0,basic:!0,onClick:this.onUpgrade,value:e.id,children:Object(N.jsx)(g.a,{id:"Update",defaultMessage:"Update"})}),e.uninstall_profile_id&&Object(N.jsx)(j.a,{negative:!0,basic:!0,onClick:this.onUninstall,value:e.id,className:"uninstallAction",children:Object(N.jsx)(g.a,{id:"Uninstall",defaultMessage:"Uninstall",className:"button-label"})})]}),Object(N.jsxs)("div",{className:"version",children:[Object(N.jsx)(g.a,{id:"Installed version",defaultMessage:"Installed version"}),": \xa0 ",e.version]})]}),Object(N.jsx)(b.a,{})]},e.id))]})},"body-installed"),Object(N.jsxs)(c.a,{secondary:!0,children:[Object(N.jsx)(g.a,{id:"Available",defaultMessage:"Available"}),":",Object(N.jsx)(u.a,{circular:!0,children:this.props.availableAddons.length})]},"header-available"),Object(N.jsx)(c.a,{attached:!0,children:Object(N.jsxs)(h.a,{children:[Object(N.jsx)(b.a,{}),this.props.availableAddons.map(e=>Object(N.jsxs)("div",{children:[Object(N.jsxs)(h.a.Title,{active:this.state.activeIndex===e.id,index:e.id,onClick:this.onAccordionClick,children:[e.title,Object(N.jsx)(y.jb,{name:this.state.activeIndex===e.id?S.a:w.a,size:"23px",className:"accordionToggle "+e.title})]}),Object(N.jsxs)(h.a.Content,{active:this.state.activeIndex===e.id,children:[Object(N.jsx)("div",{className:"description",children:e.description}),""===e.uninstall_profile_id&&Object(N.jsx)("div",{children:Object(N.jsx)(d.a,{icon:"warning",warning:!0,children:Object(N.jsx)(g.a,{id:"No uninstall profile",defaultMessage:"This addon does not provide an uninstall profile."})})}),Object(N.jsx)(j.a.Group,{floated:"right",children:Object(N.jsx)(j.a,{primary:!0,basic:!0,onClick:this.onInstall,value:e.id,className:"installAction",children:Object(N.jsx)(g.a,{id:"Install",defaultMessage:"Install",className:"button-label"})})}),Object(N.jsxs)("div",{className:"version",children:[Object(N.jsx)(g.a,{id:"Latest version",defaultMessage:"Latest version"}),": \xa0",e.version]})]}),Object(N.jsx)(b.a,{})]},e.id))]})},"body-available")]}),this.state.isClient&&Object(N.jsx)(o.a,{node:document.getElementById("toolbar"),children:Object(N.jsx)(y.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(a.a,{to:"/controlpanel",className:"item",children:Object(N.jsx)(y.jb,{name:k.a,"aria-label":this.props.intl.formatMessage(P.back),className:"contents circled",size:"30px",title:this.props.intl.formatMessage(P.back)})})})})})]})}}t.a=Object(i.compose)(f.c,Object(r.connect)((e,t)=>({installedAddons:e.addons.installedAddons,availableAddons:e.addons.availableAddons,upgradableAddons:e.addons.upgradableAddons,pathname:t.location.pathname}),{installAddon:O.K,listAddons:O.N,uninstallAddon:O.rb,upgradeAddon:O.Cb}))(L)},INwX:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("lHu7")),a=s("52Oh"),o=s("3mGJ"),l=s("aQu0"),c=s("WYlG"),d=s("17x9"),p=s.n(d),u=s("TSYQ"),h=s.n(u),b=s("VbRK"),j=s("Lf35"),m=s("nKUr");const g=(e,t,s)=>{const n=s(e),r=s(t);if(!n.isValid()||!r.isValid())return null;return{sameDay:n.isSame(r,"day"),sameTime:n.isSame(r,"minute"),startDate:n.format("ll"),startTime:n.format("LT"),endDate:r.format("ll"),endTime:r.format("LT")}},f=Object(j.a)(["moment"])(({start:e,end:t,whole_day:s,open_end:n,moment:r})=>{const i=Object(a.a)(),o=r.default;o.locale(i.locale);const l=g(e,t,o);if(l)return Object(m.jsx)("p",{className:h()("event-when",{"same-day":l.sameDay,"same-time":l.sameTime,"whole-day":s,"open-end":n}),children:l.sameDay?Object(m.jsxs)(m.Fragment,{children:[s&&Object(m.jsx)("span",{className:"start-date",children:l.startDate}),n&&!s&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("span",{className:"start-date",children:l.startDate}),"\xa0from\xa0",Object(m.jsx)("span",{className:"start-time",children:l.startTime})]}),!(s||n)&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("span",{className:"start-date",children:l.startDate}),"\xa0from\xa0",Object(m.jsx)("span",{className:"start-time",children:l.startTime}),"\xa0to\xa0",Object(m.jsx)("span",{className:"end-time",children:l.endTime})]})]}):Object(m.jsxs)(m.Fragment,{children:[Object(m.jsxs)("span",{className:"start",children:[Object(m.jsx)("span",{className:"start-date",children:l.startDate}),!s&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("span",{children:" "}),Object(m.jsx)("span",{className:"start-time",children:l.startTime})]})]}),!n&&Object(m.jsxs)(m.Fragment,{children:["\xa0to\xa0",Object(m.jsxs)("span",{className:"end",children:[Object(m.jsx)("span",{className:"end-date",children:l.endDate}),!s&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("span",{children:" "}),Object(m.jsx)("span",{className:"end-time",children:l.endTime})]})]})]})]})})});f.propTypes={start:p.a.string.isRequired,end:p.a.string,whole_day:p.a.bool,open_end:p.a.bool};const O=Object(j.a)(["moment"])(({recurrence:e,start:t,moment:s})=>{const n=s.default;e.indexOf("DTSTART")<0&&(e=b.a.optionsToString({dtstart:new Date(t)})+"\n"+e);const r=Object(b.d)(e,{unfold:!0,forceset:!0});return Object(m.jsx)(c.a,{items:r.all().map(e=>g(e,void 0,n)).map(e=>e.startDate)})});function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function y(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}O.propTypes={recurrence:p.a.string.isRequired,start:p.a.string.isRequired};const x=Object(i.defineMessages)({what:{id:"event_what",defaultMessage:"What"},when:{id:"event_when",defaultMessage:"When"},allDates:{id:"event_alldates",defaultMessage:"All dates"},where:{id:"event_where",defaultMessage:"Where"},contactName:{id:"event_contactname",defaultMessage:"Contact Name"},contactPhone:{id:"event_contactphone",defaultMessage:"Contact Phone"},attendees:{id:"event_attendees",defaultMessage:"Attendees"},website:{id:"event_website",defaultMessage:"Website"},visitWebsite:{id:"visit_external_website",defaultMessage:"Visit external website"}});t.a=({content:e,display_as:t="aside"})=>{const s=Object(a.a)();return Object(m.jsxs)(o.a,y(y({as:t},"aside"===t?{floated:"right"}:{}),{},{children:[e.subjects.length>0&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.what)}),Object(m.jsx)(c.a,{items:e.subjects})]}),Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.when)}),Object(m.jsx)(f,{start:e.start,end:e.end,whole_day:e.whole_day,open_end:e.open_end}),e.recurrence&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.allDates)}),Object(m.jsx)(O,{recurrence:e.recurrence,start:e.start})]}),e.location&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.where)}),Object(m.jsx)("p",{children:e.location})]}),e.contact_name&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.contactName)}),Object(m.jsx)("p",{children:e.contact_email?Object(m.jsx)("a",{href:"mailto:"+e.contact_email,children:e.contact_name}):e.contact_name})]}),e.contact_phone&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.contactPhone)}),Object(m.jsx)("p",{children:e.contact_phone})]}),e.attendees.length>0&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.attendees)}),Object(m.jsx)(c.a,{items:e.attendees})]}),e.event_url&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(l.a,{dividing:!0,sub:!0,children:s.formatMessage(x.website)}),Object(m.jsx)("p",{children:Object(m.jsx)("a",{href:e.event_url,target:"_blank",rel:"noopener noreferrer",children:s.formatMessage(x.visitWebsite)})})]})]}))}},IUU3:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3tWz"),a=s.n(i),o=s("18Zd"),l=s.n(o),c=s("RBan"),d=s.n(c),p=s("q1tI"),u=s.n(p),h=(s("17x9"),s("/MKj")),b=s("ANjH"),j=s("zpb6"),m=s("It+4"),g=s("aQu0"),f=s("QetY"),O=s("lHu7"),v=s("zSVi"),y=s("GGqY"),x=s("Kvkj"),w=s("9At1"),C=s("Z5Td"),S=s.n(C),M=s("1Jxj"),k=s.n(M),N=s("nKUr");const P=Object(O.defineMessages)({title:{id:"{id} Content Type",defaultMessage:"{id} Content Type"},changesSaved:{id:"Changes saved.",defaultMessage:"Changes saved."},back:{id:"Back",defaultMessage:"Back"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},info:{id:"Info",defaultMessage:"Info"}});class L extends p.Component{constructor(e){super(e),this.state={visual:!1,error:null,isClient:!1},this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.form=u.a.createRef()}componentDidMount(){this.props.getControlpanel(a()([this.props.parent,this.props.id],"/")),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.cpanelRequest.get.loading&&e.cpanelRequest.get.error&&this.setState({error:e.cpanelRequest.get.error}),this.props.cpanelRequest.update.loading&&e.cpanelRequest.update.loaded&&y.toast.info(Object(N.jsx)(x.Ub,{info:!0,title:this.props.intl.formatMessage(P.info),content:this.props.intl.formatMessage(P.changesSaved)}))}onSubmit(e){this.props.updateControlpanel(this.props.controlpanel["@id"],e)}onCancel(){this.props.history.push(Object(j.C)(this.props.pathname))}render(){if(this.state.error)return Object(N.jsx)(x.X,{error:this.state.error});if(this.props.controlpanel){var e,t;let n=this.props.controlpanel;var s;if(!1===(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.filter_content_types)&&(n.data.filter_content_types={title:"all",token:"all"}),!0===(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.filter_content_types))((null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.allowed_content_types)||[]).length?n.data.filter_content_types={title:"some",token:"some"}:n.data.filter_content_types={title:"none",token:"none"};return Object(N.jsxs)("div",{id:"page-controlpanel",className:"ui container",children:[Object(N.jsx)(g.a,{disabled:!0,children:this.props.intl.formatMessage(P.title,{id:n.title})}),Object(N.jsx)(x.cb,{isEditForm:!0,ref:this.form,schema:n.schema,formData:n.data,onSubmit:this.onSubmit,onCancel:this.onCancel,pathname:this.props.pathname,visual:this.state.visual,hideActions:!0,loading:this.props.cpanelRequest.update.loading}),this.state.isClient&&Object(N.jsx)(m.a,{node:document.getElementById("toolbar"),children:Object(N.jsx)(x.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(f.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(P.save),onClick:()=>this.form.current.onSubmit(),disabled:this.props.cpanelRequest.update.loading,loading:this.props.cpanelRequest.update.loading,children:Object(N.jsx)(x.jb,{name:S.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(P.save)})}),Object(N.jsx)(f.a,{className:"cancel","aria-label":this.props.intl.formatMessage(P.cancel),onClick:()=>this.onCancel(),children:Object(N.jsx)(x.jb,{name:k.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(P.cancel)})})]})})})]})}return Object(N.jsx)("div",{})}}r()(L,"defaultProps",{controlpanel:null}),t.a=Object(b.compose)(v.c,Object(h.connect)((e,t)=>({controlpanel:e.controlpanels.controlpanel,cpanelRequest:e.controlpanels,pathname:t.location.pathname,id:d()(t.location.pathname.split("/")),parent:l()(t.location.pathname.split("/"),-2)}),{getControlpanel:w.u,updateControlpanel:w.wb}))(L)},IW6S:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M13 16C11.897 16 11 16.897 11 18 11 19.103 11.897 20 13 20 14.103 20 15 19.103 15 18 15 16.897 14.103 16 13 16M13 22C10.794 22 9 20.206 9 18 9 15.794 10.794 14 13 14 15.206 14 17 15.794 17 18 17 20.206 15.206 22 13 22M23 16C21.897 16 21 16.897 21 18 21 19.103 21.897 20 23 20 24.103 20 25 19.103 25 18 25 16.897 24.103 16 23 16M23 22C20.794 22 19 20.206 19 18 19 15.794 20.794 14 23 14 25.206 14 27 15.794 27 18 27 20.206 25.206 22 23 22M13 26C11.897 26 11 26.897 11 28 11 29.103 11.897 30 13 30 14.103 30 15 29.103 15 28 15 26.897 14.103 26 13 26M13 32C10.794 32 9 30.206 9 28 9 25.794 10.794 24 13 24 15.206 24 17 25.794 17 28 17 30.206 15.206 32 13 32M23 26C21.897 26 21 26.897 21 28 21 29.103 21.897 30 23 30 24.103 30 25 29.103 25 28 25 26.897 24.103 26 23 26M23 32C20.794 32 19 30.206 19 28 19 25.794 20.794 24 23 24 25.206 24 27 25.794 27 28 27 30.206 25.206 32 23 32M13 6C11.897 6 11 6.897 11 8 11 9.103 11.897 10 13 10 14.103 10 15 9.103 15 8 15 6.897 14.103 6 13 6M13 12C10.794 12 9 10.206 9 8 9 5.794 10.794 4 13 4 15.206 4 17 5.794 17 8 17 10.206 15.206 12 13 12M23 6C21.897 6 21 6.897 21 8 21 9.103 21.897 10 23 10 24.103 10 25 9.103 25 8 25 6.897 24.103 6 23 6M23 12C20.794 12 19 10.206 19 8 19 5.794 20.794 4 23 4 25.206 4 27 5.794 27 8 27 10.206 25.206 12 23 12" fill-rule="evenodd"/>'}},IXAa:function(e,t,s){"use strict";s("q1tI");var n=s("yE/o"),r=s("TbSc"),i=s("24R3"),a=s("/MKj"),o=s("8ZS8"),l=s("nKUr");t.a=()=>{const{settings:e}=o.a,t=Object(a.useSelector)(e=>e.browserdetect);return e.notSupportedBrowsers.includes(null===t||void 0===t?void 0:t.name)&&Object(l.jsx)(n.a,{style:{marginBottom:"20px"},children:Object(l.jsxs)(r.a,{negative:!0,children:[Object(l.jsx)(r.a.Header,{children:Object(l.jsx)(i.a,{id:"You are using an outdated browser",defaultMessage:"You are using an outdated browser"})}),Object(l.jsx)("p",{children:Object(l.jsx)(i.a,{id:"deprecated_browser_notice_message",defaultMessage:"You are using {browsername} {browserversion} which is deprecated by its vendor. That means that it does not get security updates and it is not ready for current modern web features, which deteriorates the user experience. Please upgrade to a modern browser.",values:{browsername:t.name,browserversion:t.version}})})]})})}},IgGk:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Wt1U"),a=s.n(i),o=s("Puqe"),l=s.n(o),c=s("Y+p1"),d=s.n(c),p=s("q1tI"),u=s.n(p),h=s("ANjH"),b=s("/MKj"),j=s("zSVi"),m=s("zpb6"),g=s("Kvkj"),f=s("SAOm"),O=s("EcEN"),v=s("lZPy"),y=s("9At1"),x=s("8ZS8"),w=s("8Z/7"),C=s.n(w),S=s("mz8Z"),M=s.n(S),k=s("om3J"),N=s.n(k),P=s("DQaE"),L=s.n(P),D=s("nKUr");function E(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function T(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?E(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):E(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class I extends u.a.Component{constructor(e){super(e),this.copyBlocksToClipboard=this.copyBlocksToClipboard.bind(this),this.cutBlocksToClipboard=this.cutBlocksToClipboard.bind(this),this.deleteBlocks=this.deleteBlocks.bind(this),this.loadFromStorage=this.loadFromStorage.bind(this),this.pasteBlocks=this.pasteBlocks.bind(this),this.setBlocksClipboard=this.setBlocksClipboard.bind(this)}loadFromStorage(){var e;const t=null===(e=Object(v.load)({states:["blocksClipboard"]}))||void 0===e?void 0:e.blocksClipboard;d()(t,this.props.blocksClipboard)||this.props.setBlocksClipboard(t||{})}componentDidMount(){window.addEventListener("storage",this.loadFromStorage,!0)}componentWillUnmount(){window.removeEventListener("storage",this.loadFromStorage)}deleteBlocks(){const e=this.props.selectedBlocks,{formData:t}=this.props,s=Object(m.t)(t),n=Object(m.u)(t);this.props.onSelectBlock(null);const r={[s]:l()(t[s],e),[n]:T(T({},t[n]),{},{items:a()(t[n].items,...e)})};this.props.onChangeBlocks(r)}copyBlocksToClipboard(){this.setBlocksClipboard("copy")}cutBlocksToClipboard(){this.setBlocksClipboard("cut"),this.deleteBlocks()}setBlocksClipboard(e){const{formData:t}=this.props,s=t[Object(m.t)(t)],n=this.props.selectedBlocks.map(e=>s[e]);this.props.setBlocksClipboard({[e]:n}),this.props.onSetSelectedBlocks([])}pasteBlocks(e){const{formData:t,blocksClipboard:s={},selectedBlock:n}=this.props,r=Object.keys(s).includes("cut")?"cut":"copy",i=(s[r]||[]).filter(e=>!!e["@type"]).map(e=>{const t=x.a.blocks.blocksConfig[e["@type"]];return"copy"===r&&t.cloneData?t.cloneData(e):[Object(O.v4)(),e]}).filter(e=>!!e),a=Object(m.t)(t),o=Object(m.u)(t),l=t[o].items.indexOf(n)+1,c={[a]:T(T({},t[a]),Object.assign({},...i.map(([e,t])=>({[e]:t})))),[o]:T(T({},t[o]),{},{items:[...t[o].items.slice(0,l),...i.map(([e])=>e),...t[o].items.slice(l)]})};e.ctrlKey||e.metaKey||this.props.resetBlocksClipboard(),this.props.onChangeBlocks(c)}render(){const{blocksClipboard:e={},selectedBlock:t,selectedBlocks:s,intl:n}=this.props;return Object(D.jsxs)(D.Fragment,{children:[s.length>0?Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(f.a,{pluggable:"main.toolbar.bottom",id:"blocks-delete-btn",children:Object(D.jsx)("button",{"aria-label":n.formatMessage(m.N.deleteBlocks),onClick:this.deleteBlocks,tabIndex:0,className:"deleteBlocks",id:"toolbar-delete-blocks",children:Object(D.jsx)(g.jb,{name:L.a,size:"30px"})})}),Object(D.jsx)(f.a,{pluggable:"main.toolbar.bottom",id:"blocks-cut-btn",children:Object(D.jsx)("button",{"aria-label":n.formatMessage(m.N.cutBlocks),onClick:this.cutBlocksToClipboard,tabIndex:0,className:"cutBlocks",id:"toolbar-cut-blocks",children:Object(D.jsx)(g.jb,{name:M.a,size:"30px"})})}),Object(D.jsx)(f.a,{pluggable:"main.toolbar.bottom",id:"blocks-copy-btn",children:Object(D.jsx)("button",{"aria-label":n.formatMessage(m.N.copyBlocks),onClick:this.copyBlocksToClipboard,tabIndex:0,className:"copyBlocks",id:"toolbar-copy-blocks",children:Object(D.jsx)(g.jb,{name:C.a,size:"30px"})})})]}):"",t&&((null===e||void 0===e?void 0:e.cut)||(null===e||void 0===e?void 0:e.copy))&&Object(D.jsx)(f.a,{pluggable:"main.toolbar.bottom",id:"block-paste-btn",children:Object(D.jsxs)("button",{"aria-label":n.formatMessage(m.N.pasteBlocks),onClick:this.pasteBlocks,tabIndex:0,className:"pasteBlocks",id:"toolbar-paste-blocks",children:[Object(D.jsx)("span",{className:"blockCount",children:(e.cut||e.copy).length}),Object(D.jsx)(g.jb,{name:N.a,size:"30px"})]})})]})}}t.a=Object(h.compose)(j.c,Object(b.connect)(e=>({blocksClipboard:(null===e||void 0===e?void 0:e.blocksClipboard)||{}}),{setBlocksClipboard:y.lb,resetBlocksClipboard:y.gb}))(I)},"J/R/":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M10 20C8.897 20 8 19.103 8 18 8 16.897 8.897 16 10 16 11.103 16 12 16.897 12 18 12 19.103 11.103 20 10 20M11 14.142L11 5 9 5 9 14.142C7.28 14.589 6 16.141 6 18 6 19.859 7.28 21.411 9 21.858L9 31 11 31 11 21.858C12.72 21.411 14 19.859 14 18 14 16.141 12.72 14.589 11 14.142M18 14C16.897 14 16 13.103 16 12 16 10.897 16.897 10 18 10 19.103 10 20 10.897 20 12 20 13.103 19.103 14 18 14M22 12C22 10.141 20.72 8.589 19 8.142L19 5 17 5 17 8.142C15.28 8.589 14 10.141 14 12 14 13.859 15.28 15.411 17 15.858L17 31 19 31 19 15.858C20.72 15.411 22 13.859 22 12M26 26C24.897 26 24 25.103 24 24 24 22.897 24.897 22 26 22 27.103 22 28 22.897 28 24 28 25.103 27.103 26 26 26M30 24C30 22.141 28.72 20.589 27 20.142L27 5 25 5 25 20.142C23.28 20.589 22 22.141 22 24 22 25.859 23.28 27.411 25 27.858L25 31 27 31 27 27.858C28.72 27.411 30 25.859 30 24" fill-rule="evenodd"/>'}},JWc7:function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("55Ip"),o=s("3mGJ"),l=s("yE/o"),c=s("Pefm"),d=s("lHu7"),p=s("zSVi"),u=s("Kvkj"),h=s("9At1"),b=s("zpb6"),j=s("aMsN"),m=s.n(j),g=s("nKUr");const f=Object(d.defineMessages)({home:{id:"Home",defaultMessage:"Home"},breadcrumbs:{id:"Breadcrumbs",defaultMessage:"Breadcrumbs"}});class O extends n.Component{componentDidMount(){Object(b.H)("breadcrumbs",Object(b.r)(this.props.pathname))||this.props.getBreadcrumbs(Object(b.r)(this.props.pathname))}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&(Object(b.H)("breadcrumbs",Object(b.r)(this.props.pathname))||this.props.getBreadcrumbs(Object(b.r)(e.pathname)))}render(){return Object(g.jsx)(o.a,{role:"navigation","aria-label":this.props.intl.formatMessage(f.breadcrumbs),className:"breadcrumbs",secondary:!0,vertical:!0,children:Object(g.jsx)(l.a,{children:Object(g.jsxs)(c.a,{children:[Object(g.jsx)(a.a,{to:this.props.root||"/",className:"section",title:this.props.intl.formatMessage(f.home),children:Object(g.jsx)(u.jb,{name:m.a,size:"18px"})}),this.props.items.map((e,t,s)=>[Object(g.jsx)(c.a.Divider,{},"divider-"+e.url),t<s.length-1?Object(g.jsx)(a.a,{to:e.url,className:"section",children:e.title},e.url):Object(g.jsx)(c.a.Section,{active:!0,children:e.title},e.url)])]})})})}}t.a=Object(i.compose)(p.c,Object(r.connect)(e=>({items:e.breadcrumbs.items,root:e.breadcrumbs.root}),{getBreadcrumbs:h.s}))(O)},JYpQ:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("55Ip"),l=s("BOF4"),c=s.n(l),d=s("TSYQ"),p=s.n(d),u=s("lHu7"),h=s("24R3"),b=s("zSVi"),j=s("Kvkj"),m=s("9At1"),g=s("SAOm"),f=s("zpb6"),O=s("1+Tp"),v=s.n(O),y=s("6fhb"),x=s.n(y),w=s("qaC+"),C=s.n(w),S=s("7T5Z"),M=s.n(S),k=s("nKUr");const N=Object(u.defineMessages)({back:{id:"Back",defaultMessage:"Back"},logout:{id:"Logout",defaultMessage:"Logout"},preferences:{id:"Preferences",defaultMessage:"Preferences"},profile:{id:"Profile",defaultMessage:"Profile"},userAvatar:{id:"user avatar",defaultMessage:"user avatar"}});class P extends i.Component{constructor(...e){super(...e),r()(this,"push",e=>{this.setState(()=>({pushed:!0})),this.props.loadComponent(e)}),r()(this,"pull",()=>{this.props.unloadComponent()})}componentDidMount(){this.props.getUser(this.props.userId)}render(){return Object(k.jsxs)("div",{className:p()("personal-tools pastanaga-menu",{"has-inner-actions":this.props.hasActions}),style:{flex:this.props.theToolbar.current?`0 0 ${this.props.theToolbar.current.getBoundingClientRect().width}px`:null},children:[Object(k.jsxs)("header",{className:"header",children:[Object(k.jsx)("button",{className:"back",onClick:this.pull,children:Object(k.jsx)(j.jb,{name:C.a,size:"30px",title:this.props.intl.formatMessage(N.back)})}),Object(k.jsx)("div",{className:"vertical divider"}),Object(k.jsx)("h2",{children:this.props.user.fullname?this.props.user.fullname:this.props.user.username}),Object(k.jsx)(o.a,{id:"toolbar-logout",to:"/logout",children:Object(k.jsx)(j.jb,{className:"logout",name:v.a,size:"30px",title:this.props.intl.formatMessage(N.logout)})})]}),Object(k.jsx)("div",{className:p()("avatar",{default:!this.props.user.portrait}),children:this.props.user.portrait?Object(k.jsx)("img",{src:this.props.user.portrait,alt:this.props.intl.formatMessage(N.userAvatar)}):Object(k.jsx)(j.jb,{name:M.a,size:"96px"})}),Object(k.jsx)("div",{className:"pastanaga-menu-list",children:Object(k.jsxs)("ul",{children:[Object(k.jsx)("li",{children:Object(k.jsxs)("button",{"aria-label":this.props.intl.formatMessage(N.profile),onClick:()=>this.push("profile"),children:[Object(k.jsx)(h.a,{id:"Profile",defaultMessage:"Profile"}),Object(k.jsx)(j.jb,{name:x.a,size:"24px"})]})}),Object(k.jsx)("li",{children:Object(k.jsxs)("button",{"aria-label":this.props.intl.formatMessage(N.preferences),onClick:()=>this.push("preferences"),children:[Object(k.jsx)(h.a,{id:"Preferences",defaultMessage:"Preferences"}),Object(k.jsx)(j.jb,{name:x.a,size:"24px"})]})}),Object(f.bb)(this.props.user,["Site Administrator","Manager"])&&Object(k.jsx)("li",{children:Object(k.jsxs)(o.a,{to:"/controlpanel",children:[Object(k.jsx)(h.a,{id:"Site Setup",defaultMessage:"Site Setup"}),Object(k.jsx)(j.jb,{name:x.a,size:"24px"})]})}),Object(k.jsx)(g.b,{name:"toolbar-user-menu"})]})})]})}}t.a=Object(b.c)(Object(a.connect)(e=>({user:e.users.user,userId:e.userSession.token?c()(e.userSession.token).sub:""}),{getUser:m.G})(P))},"K+a1":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M20.9997,2.9997 L20.9997,7.0007 L15.0007,7.0007 L15.0007,2.9997 L8.9997,2.9997 L8.9997,7.0007 L5.0007,7.0007 L5.0007,12.9997 L5.0007,15.0007 L5.0007,30.9997 L30.9997,30.9997 L30.9997,15.0007 L30.9997,12.9997 L30.9997,7.0007 L26.9997,7.0007 L26.9997,2.9997 L20.9997,2.9997 Z M23.0007,7.9997 L23.0007,5.0007 L25.0007,5.0007 L25.0007,7.9997 L25.0007,8.9987 L23.0007,8.9987 L23.0007,7.9997 Z M10.9997,7.9997 L10.9997,5.0007 L12.9997,5.0007 L12.9997,7.9997 L12.9997,8.9987 L10.9997,8.9987 L10.9997,7.9997 Z M26.9997,10.9997 L26.9997,8.9987 L28.9997,8.9987 L28.9997,12.9997 L7.0007,12.9997 L7.0007,8.9987 L8.9997,8.9987 L8.9997,10.9997 L15.0007,10.9997 L15.0007,8.9987 L20.9997,8.9987 L20.9997,10.9997 L26.9997,10.9997 Z M7.0007,28.9997 L29.0017,28.9997 L29.0017,15.0007 L7.0007,15.0007 L7.0007,28.9997 Z"/><path d="M9 19L11 19 11 17 9 17zM13 19L15 19 15 17 13 17zM17 19L19 19 19 17 17 17zM21 19L23 19 23 17 21 17zM25 19L27 19 27 17 25 17zM9 23L11 23 11 21 9 21zM13 23L15 23 15 21 13 21zM17 23L19 23 19 21 17 21zM21 23L23 23 23 21 21 21zM25 23L27 23 27 21 25 21zM9 27L11 27 11 25 9 25zM13 27L15 27 15 25 13 25zM17 27L19 27 19 25 17 25zM21 27L23 27 23 25 21 25zM25 27L27 27 27 25 25 25z"/></g>'}},K6UB:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("zpb6")),o=s("55Ip"),l=s("yE/o"),c=s("24R3"),d=s("nKUr");class p extends i.Component{componentDidMount(){if(!this.props.token){const{remoteUrl:e}=this.props.content;Object(a.L)(e)?this.props.history.replace(Object(a.q)(e)):window.location.href=Object(a.q)(e)}}render(){const{remoteUrl:e}=this.props.content;return Object(d.jsxs)(l.a,{id:"page-document",children:[Object(d.jsx)("h1",{className:"documentFirstHeading",children:this.props.content.title}),this.props.content.description&&Object(d.jsx)("p",{className:"documentDescription",children:this.props.content.description}),e&&Object(d.jsxs)("p",{children:[Object(d.jsx)(c.a,{id:"The link address is:",defaultMessage:"The link address is:"}),Object(a.L)(e)?Object(d.jsx)(o.a,{to:Object(a.q)(e),children:Object(a.q)(e)}):Object(d.jsx)(d.Fragment,{children:a.f.isMail("mailto:"+e)?Object(d.jsx)("a",{href:a.f.normaliseMail(e),rel:"noopener noreferrer",children:e}):Object(d.jsx)(d.Fragment,{children:a.f.isTelephone(e)?Object(d.jsx)("a",{href:a.f.normalizeTelephone(e),rel:"noopener noreferrer",children:e}):Object(d.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:e})})})]})]})}}r()(p,"defaultProps",{content:null,token:null}),t.a=p},KNwe:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("vFsZ")),o=s("3mGJ"),l=s("+6Dn"),c=s("hHGt"),d=s("lHu7"),p=s("24R3"),u=s("zSVi"),h=s("Kvkj"),b=s("zpb6"),j=s("Vgzb"),m=s("n2F9"),g=s.n(m),f=s("1Jxj"),O=s.n(f),v=s("hxMo"),y=s.n(v),x=s("5ymK"),w=s.n(x),C=s("zdp0"),S=s.n(C),M=s("nKUr");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P=Object(d.defineMessages)({Image:{id:"Image",defaultMessage:"Image"},Origin:{id:"Origin",defaultMessage:"Origin"},AltText:{id:"Alt text",defaultMessage:"Alt text"},Align:{id:"Alignment",defaultMessage:"Alignment"},LinkTo:{id:"Link to",defaultMessage:"Link to"},openLinkInNewTab:{id:"Open in a new tab",defaultMessage:"Open in a new tab"},NoImageSelected:{id:"No image set in image content field",defaultMessage:"No image set in image content field"},externalURL:{id:"External URL",defaultMessage:"External URL"}});t.a=Object(u.c)(({properties:e,data:t,block:s,onChangeBlock:n,openObjectBrowser:r,required:d=!1,onChangeField:u,intl:m})=>{const[f,v]=Object(i.useState)(0);return Object(M.jsxs)(o.a.Group,{raised:!0,children:[Object(M.jsx)("header",{className:"header pulled",children:Object(M.jsx)("h2",{children:Object(M.jsx)(p.a,{id:"Lead Image",defaultMessage:"Lead Image"})})}),!e.image&&Object(M.jsx)(M.Fragment,{children:Object(M.jsxs)(o.a,{className:"sidebar-metadata-container",secondary:!0,children:[Object(M.jsx)(p.a,{id:"No image set in Lead Image content field",defaultMessage:"No image set in Lead Image content field"}),Object(M.jsx)(h.jb,{name:g.a,size:"100px",color:"#b8c6c8"})]})}),e.image&&Object(M.jsxs)(M.Fragment,{children:[Object(M.jsxs)(o.a,{className:"sidebar-metadata-container",secondary:!0,children:[e.image.filename,Object(M.jsx)("img",{src:e.image.data?`data:${e.image["content-type"]};base64,${e.image.data}`:Object(b.q)(e.image.scales.mini.download),alt:e.image_caption||""})]}),Object(M.jsxs)(o.a,{className:"form sidebar-image-data",children:[Object(M.jsx)(h.Tb,{id:"alt",title:m.formatMessage(P.AltText),required:!1,value:e.image_caption,icon:e.image_caption?O.a:null,iconAction:()=>u("image_caption",""),onChange:(e,t)=>{u("image_caption",t)}}),Object(M.jsx)(a.a.Field,{inline:!0,required:d,children:Object(M.jsx)(l.a,{children:Object(M.jsxs)(l.a.Row,{children:[Object(M.jsx)(l.a.Column,{width:"4",children:Object(M.jsx)("div",{className:"wrapper",children:Object(M.jsx)("label",{htmlFor:"field-align",children:Object(M.jsx)(p.a,{id:"Alignment",defaultMessage:"Alignment"})})})}),Object(M.jsx)(l.a.Column,{width:"8",className:"align-tools",children:Object(M.jsx)(j.a,{align:t.align,onChangeBlock:n,data:t,block:s})})]})})})]}),Object(M.jsxs)(c.a,{fluid:!0,styled:!0,className:"form",children:[Object(M.jsxs)(c.a.Title,{active:0===f,index:0,onClick:function(e,t){const{index:s}=t;v(f===s?-1:s)},children:["Link Settings",0===f?Object(M.jsx)(h.jb,{name:y.a,size:"20px"}):Object(M.jsx)(h.jb,{name:w.a,size:"20px"})]}),Object(M.jsxs)(c.a.Content,{active:0===f,children:[Object(M.jsx)(h.Tb,{id:"link",title:m.formatMessage(P.LinkTo),required:!1,value:t.href,icon:t.href?O.a:S.a,iconAction:t.href?()=>{n(s,N(N({},t),{},{href:""}))}:()=>r({mode:"link"}),onChange:(e,r)=>{n(s,N(N({},t),{},{href:r}))}}),Object(M.jsx)(h.o,{id:"openLinkInNewTab",title:m.formatMessage(P.openLinkInNewTab),value:!!t.openLinkInNewTab&&t.openLinkInNewTab,onChange:(e,r)=>{n(s,N(N({},t),{},{openLinkInNewTab:r}))}})]})]})]})]})})},KWAS:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("cr+I"),l=s.n(o),c=s("Kvkj"),d=s("9At1"),p=s("nKUr");class u extends i.Component{componentDidMount(){this.props.logout(),this.props.purgeMessages()}render(){return Object(p.jsx)(c.qb,{location:{query:this.props.location.query}})}}r()(u,"defaultProps",{query:null}),t.a=Object(a.connect)((e,t)=>({query:l.a.parse(t.location.search)}),{logout:d.Y,purgeMessages:d.cb})(u)},KbSy:function(e,t,s){"use strict";s("q1tI");var n=s("3mGJ"),r=s("yE/o"),i=s("WYlG"),a=s("55Ip"),o=s("lHu7"),l=s("24R3"),c=s("zSVi"),d=s("/MKj"),p=s("8ZS8"),u=s("nKUr");const h=Object(o.defineMessages)({copyright:{id:"Copyright",defaultMessage:"Copyright"}});t.a=Object(c.c)(({intl:e})=>{const{settings:t}=p.a,s=Object(d.useSelector)(e=>e.intl.locale);return Object(u.jsx)(n.a,{role:"contentinfo",vertical:!0,padded:!0,inverted:!0,color:"grey",textAlign:"center",id:"footer",children:Object(u.jsxs)(r.a,{children:[Object(u.jsxs)(n.a,{basic:!0,inverted:!0,color:"grey",className:"discreet",children:[Object(u.jsx)(l.a,{id:"The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends.",defaultMessage:"The {plonecms} is {copyright} 2000-{current_year} by the {plonefoundation} and friends.",values:{plonecms:Object(u.jsx)(l.a,{id:"Plone{reg} Open Source CMS/WCM",defaultMessage:"Plone{reg} Open Source CMS/WCM",values:{reg:Object(u.jsx)("sup",{children:"\xae"})}}),copyright:Object(u.jsx)("abbr",{title:e.formatMessage(h.copyright),children:"\xa9"}),current_year:(new Date).getFullYear(),plonefoundation:Object(u.jsx)("a",{className:"item",href:"http://plone.org/foundation",children:Object(u.jsx)(l.a,{id:"Plone Foundation",defaultMessage:"Plone Foundation"})})}})," ",Object(u.jsx)(l.a,{id:"Distributed under the {license}.",defaultMessage:"Distributed under the {license}.",values:{license:Object(u.jsx)("a",{className:"item",href:"http://creativecommons.org/licenses/GPL/2.0/",children:Object(u.jsx)(l.a,{id:"GNU GPL license",defaultMessage:"GNU GPL license"})})}})]}),Object(u.jsxs)(i.a,{horizontal:!0,inverted:!0,children:[Object(u.jsx)("div",{role:"listitem",className:"item",children:Object(u.jsx)(a.a,{className:"item",to:t.isMultilingual?`/${s}/sitemap`:"/sitemap",children:Object(u.jsx)(l.a,{id:"Site Map",defaultMessage:"Site Map"})})}),Object(u.jsx)("div",{role:"listitem",className:"item",children:Object(u.jsx)(a.a,{className:"item",to:t.isMultilingual?`/${s}/accesibility-info`:"/accesibility-info",children:Object(u.jsx)(l.a,{id:"Accessibility",defaultMessage:"Accessibility"})})}),Object(u.jsx)("div",{role:"listitem",className:"item",children:Object(u.jsx)(a.a,{className:"item",to:t.isMultilingual?`/${s}/contact-form`:"/contact-form",children:Object(u.jsx)(l.a,{id:"Contact",defaultMessage:"Contact"})})}),Object(u.jsx)("div",{role:"listitem",className:"item",children:Object(u.jsx)("a",{className:"item",href:"https://plone.org",children:Object(u.jsx)(l.a,{id:"Powered by Plone & Python",defaultMessage:"Powered by Plone & Python"})})})]})]})})})},KhAO:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("MRwR")),a=s("Kvkj"),o=s("zpb6"),l=s("IW6S"),c=s.n(l),d=s("QetY"),p=s("ijCd"),u=s.n(p),h=s("Znm+"),b=s.n(h),j=s("lHu7"),m=s("zSVi"),g=s("8ZS8"),f=s("DQaE"),O=s.n(f),v=s("nKUr");function y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function x(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?y(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const w=Object(j.defineMessages)({delete:{id:"delete",defaultMessage:"delete"}});var C=Object(m.c)(e=>{const{intl:t,blockProps:s,draginfo:n,children:r}=e,{block:i,selected:l,type:p,onDeleteBlock:h,data:j,editable:m}=s,f=l&&!(t=>!!t.fixed||!(Object(o.l)(t)&&e.blockProps.editable))(j),y=b()(j.required)?j.required:u()(g.a.blocks.requiredBlocks,p);return Object(v.jsx)("div",x(x({ref:n.innerRef},n.draggableProps),{},{className:"block-editor-"+j["@type"],children:Object(v.jsxs)("div",{style:{position:"relative"},children:[Object(v.jsx)("div",x(x({style:{visibility:f?"visible":"hidden",display:"inline-block"}},n.dragHandleProps),{},{className:"drag handle wrapper",children:Object(v.jsx)(a.jb,{name:c.a,size:"18px"})})),Object(v.jsxs)("div",{className:"ui drag block inner "+p,children:[r,l&&!y&&m&&Object(v.jsx)(d.a,{icon:!0,basic:!0,onClick:()=>h(i,!0),className:"delete-button","aria-label":t.formatMessage(w.delete),children:Object(v.jsx)(a.jb,{name:O.a,size:"18px"})})]})]})}))}),S=s("9At1"),M=s("/MKj");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}t.a=e=>{const{pathname:t,onChangeField:s,properties:n,onChangeFormData:l,selectedBlock:c,multiSelected:d,onSelectBlock:p,allowedBlocks:u,showRestricted:h,title:b,description:j,metadata:m,manage:f,children:O,isMainForm:y=!0,blocksConfig:x=g.a.blocks.blocksConfig,editable:w=!0}=e,N=Object(o.s)(n),P=Object(M.useDispatch)(),L=Object(o.Y)({onTriggered:()=>{p(null),P(Object(S.ob)(0))},triggerKeys:["Escape"],disableClick:!0,disableKeys:!y}),D=(e,t,s,n,{disableEnter:r=!1,disableArrowUp:i=!1,disableArrowDown:a=!1}={})=>{const o=e.shiftKey;"ArrowUp"!==e.key||i||(E(s,n,o),e.preventDefault()),"ArrowDown"!==e.key||a||(T(s,n,o),e.preventDefault()),"Enter"!==e.key||r||(R(g.a.settings.defaultBlockType,t+1),e.preventDefault())},E=(e,t,s)=>{const r=Object(o.V)(n,e);null!==r&&(t.blur(),p(r,s))},T=(e,t,s)=>{const r=Object(o.R)(n,e);null!==r&&(t.blur(),p(r,s))},I=(e,t)=>{const s=Object(o.P)(n,e,t);l(s)},A=(e,t,s)=>{const[r,i]=Object(o.J)(n,e,t,s);return l(i),r},R=(e,t)=>{if(w){const[s,r]=Object(o.h)(n,e,t);return l(r),s}},_=(e,t)=>{const s=Object(o.m)(n,e,t);l(s)},q=(e,t)=>{const s=Object(o.V)(n,e),r=Object(o.n)(n,e);l(r),p(t?s:null)},F=(e,t)=>{const s=Object(o.O)(n,e,t);l(s)},B=O||(({draginfo:e},t,s)=>Object(v.jsx)(C,{draginfo:e,blockProps:s,children:t}));return Object(v.jsx)("div",{className:"blocks-form",ref:L,children:Object(v.jsx)("fieldset",{className:"invisible",disabled:!w,children:Object(v.jsx)(a.V,{childList:N,onMoveItem:e=>{const{source:t,destination:s}=e;if(!s)return;const r=Object(o.O)(n,t.index,s.index);return l(r),!0},children:e=>{const{child:a,childId:o,index:g}=e,O={allowedBlocks:u,showRestricted:h,block:o,data:a,handleKeyDown:D,id:o,formTitle:b,formDescription:j,index:g,manage:f,onAddBlock:R,onInsertBlock:A,onChangeBlock:_,onChangeField:s,onChangeFormData:l,onDeleteBlock:q,onFocusNextBlock:T,onFocusPreviousBlock:E,onMoveBlock:F,onMutateBlock:I,onSelectBlock:p,pathname:t,metadata:m,properties:n,blocksConfig:x,selected:c===o,multiSelected:null===d||void 0===d?void 0:d.includes(o),type:a["@type"],editable:w};return B(e,Object(v.jsx)(i.a,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},O),o),O)}})})})}},KqHE:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("Ty5D")),a=s("8ZS8"),o=s("nKUr");function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?l(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{const{settings:t}=a.a,{appExtras:s=[]}=t,{pathname:n}=e;return s.map(e=>{const t=Object(i.g)(n,e.match);return t?{reg:e,match:t}:null}).filter(e=>e).map(({reg:{component:t,props:s},match:n},r)=>{const i=t;return Object(o.jsx)(i,c(c({match:n},e),s),"appextra-"+r)})}},Kvkj:function(e,t,s){"use strict";s.d(t,"P",(function(){return as}));var n=s("MKeS"),r=s("KqHE");s.d(t,"d",(function(){return r.a}));var i=s("prz0");s.d(t,"hb",(function(){return i.a}));var a=s("yISy");s.d(t,"rb",(function(){return a.a}));var o=s("HcpN");s.d(t,"c",(function(){return o.a}));var l=s("xzfv");s.d(t,"xb",(function(){return l.a}));var c=s("JWc7");s.d(t,"m",(function(){return c.a}));var d=s("Znq/");s.d(t,"Lb",(function(){return d.a}));var p=s("KbSy");s.d(t,"ab",(function(){return p.a}));var u=s("4u8c"),h=s("VCTy");s.d(t,"Q",(function(){return h.a}));var b=s("ARif");s.d(t,"Bb",(function(){return b.a}));var j=s("ryoy");s.d(t,"Sb",(function(){return j.a}));var m=s("IXAa");s.d(t,"Ab",(function(){return m.a}));var g=s("Pkzq");s.d(t,"mb",(function(){return g.a}));var f=s("2j9a"),O=s("+IA5");s.d(t,"Rb",(function(){return O.a}));var v=s("INwX");s.d(t,"Y",(function(){return v.a}));var y=s("UpT+");s.d(t,"Db",(function(){return y.a}));var x=s("EODC");s.d(t,"X",(function(){return x.a}));var w=s("jgqj");s.d(t,"yb",(function(){return w.a}));var C=s("eUVD");s.d(t,"bb",(function(){return C.a}));var S=s("fmLK");s.d(t,"Xb",(function(){return S.a}));var M=s("MlRX");s.d(t,"e",(function(){return M.a}));var k=s("zfia");s.d(t,"jb",(function(){return k.a}));var N=s("cmtx");s.d(t,"u",(function(){return N.a}));var P=s("vIza");s.d(t,"Zb",(function(){return P.a}));var L=s("LxBh");s.d(t,"ob",(function(){return L.a}));var D=s("bpg7");s.d(t,"v",(function(){return D.a}));var E=s("20pZ");s.d(t,"qb",(function(){return E.a}));var T=s("KWAS");s.d(t,"sb",(function(){return T.a}));var I=s("kTm1");s.d(t,"Qb",(function(){return I.a}));var A=s("7XF9");s.d(t,"Jb",(function(){return A.a}));var R=s("RmU5");s.d(t,"r",(function(){return R.a}));var _=s("TNIF"),q=s("+s89");s.d(t,"Eb",(function(){return q.a}));var F=s("XvJD");s.d(t,"Cb",(function(){return F.a}));var B=s("whtX");s.d(t,"Hb",(function(){return B.a}));var z=s("Tr/i");s.d(t,"n",(function(){return z.a}));var U=s("UllI"),H=s("pCQg"),K=s("5acD");s.d(t,"N",(function(){return K.a}));var G=s("TBt0");s.d(t,"Wb",(function(){return G.a}));var V=s("B6gs");s.d(t,"s",(function(){return V.a}));var Z=s("T65m"),W=s("kFbN"),$=s("/Rrw"),Y=s("4yIa"),J=s("eYMU"),Q=s("X6Bh"),X=s("tN8b"),ee=s("+UCF"),te=s("qjD5");s.d(t,"a",(function(){return te.a}));var se=s("IBHA");s.d(t,"b",(function(){return se.a}));var ne=s("d/Yv");s.d(t,"C",(function(){return ne.a}));var re=s("7awX");s.d(t,"p",(function(){return re.a}));var ie=s("WUZh");s.d(t,"O",(function(){return ie.a}));var ae=s("drz+");s.d(t,"L",(function(){return ae.a}));var oe=s("EzBE");s.d(t,"M",(function(){return oe.a}));var le=s("dNBu");s.d(t,"A",(function(){return le.a}));var ce=s("IUU3");s.d(t,"x",(function(){return ce.a}));var de=s("AiFk");s.d(t,"y",(function(){return de.a}));var pe=s("ElzN");s.d(t,"z",(function(){return pe.a}));var ue=s("VEpf");s.d(t,"B",(function(){return ue.a}));var he=s("q2yr");s.d(t,"ac",(function(){return he.a}));var be=s("m1ZU");s.d(t,"gb",(function(){return be.a}));var je=s("0DzI");s.d(t,"wb",(function(){return je.a}));var me=s("TTMU");s.d(t,"bc",(function(){return me.a}));var ge=s("1S4a");s.d(t,"R",(function(){return ge.a}));var fe=s("Ej58");s.d(t,"S",(function(){return fe.a}));var Oe=s("S4Qz");s.d(t,"U",(function(){return Oe.a}));var ve=s("Fqua");s.d(t,"W",(function(){return ve.a}));var ye=s("SwtX");s.d(t,"vb",(function(){return ye.a}));var xe=s("mqnf");s.d(t,"ib",(function(){return xe.a}));var we=s("HWDG");s.d(t,"Nb",(function(){return we.a}));var Ce=s("2OBh");s.d(t,"dc",(function(){return Ce.a}));var Se=s("5GrA"),Me=s("I24j");s.d(t,"f",(function(){return Me.a}));var ke=s("hYiQ");s.d(t,"g",(function(){return ke.a}));var Ne=s("dpi8");s.d(t,"Vb",(function(){return Ne.a}));var Pe=s("UsXw");s.d(t,"Ob",(function(){return Pe.a}));var Le=s("6hAl"),De=s("ghgQ");s.d(t,"Pb",(function(){return De.a}));var Ee=s("JYpQ"),Te=s("7C3G"),Ie=s("Y/au"),Ae=s("/ZHd");s.d(t,"Ub",(function(){return Ae.a}));var Re=s("oY8O");s.d(t,"tb",(function(){return Re.a}));var _e=s("ZUIO");s.d(t,"cb",(function(){return _e.a}));var qe=s("IgGk");s.d(t,"l",(function(){return qe.a}));var Fe=s("h33a");s.d(t,"Yb",(function(){return Fe.a}));var Be=s("TmQW");s.d(t,"Z",(function(){return Be.a}));var ze=s("1iDJ");s.d(t,"Kb",(function(){return ze.a}));var Ue=s("qvOX");s.d(t,"q",(function(){return Ue.a}));var He=s("U7Zw");s.d(t,"D",(function(){return He.a}));var Ke=s("YWwg");s.d(t,"E",(function(){return Ke.a}));var Ge=s("zt6r");s.d(t,"F",(function(){return Ge.a}));var Ve=s("tZnM");s.d(t,"J",(function(){return Ve.a}));var Ze=s("l5nw");s.d(t,"G",(function(){return Ze.a}));var We=s("+BpV");s.d(t,"H",(function(){return We.a}));var $e=s("ukve");s.d(t,"K",(function(){return $e.a}));var Ye=s("Rzon");s.d(t,"I",(function(){return Ye.a}));var Je=s("86CS");s.d(t,"Gb",(function(){return Je.a}));var Qe=s("XBDg");s.d(t,"Fb",(function(){return Qe.a}));var Xe=s("ZuVO");s.d(t,"T",(function(){return Xe.a}));var et=s("maDu");s.d(t,"V",(function(){return et.a}));var tt=s("zVcF");s.d(t,"lb",(function(){return tt.a}));var st=s("KhAO");s.d(t,"k",(function(){return st.a}));var nt=s("iHLb");s.d(t,"h",(function(){return nt.a}));var rt=s("aRem");s.d(t,"db",(function(){return rt.a}));var it=s("/Ngv"),at=s("MdtH");s.d(t,"o",(function(){return at.a}));var ot=s("+H0P"),lt=s("rc+U"),ct=s("uHfn"),dt=s("A9ig"),pt=s("r04O"),ut=s("j4JH");s.d(t,"Ib",(function(){return ut.a}));var ht=s("CnFW");s.d(t,"Mb",(function(){return ht.a}));var bt=s("t0qM"),jt=s("onP0");s.d(t,"Tb",(function(){return jt.a}));var mt=s("wRHO"),gt=s("gXG4"),ft=s("UFgG");s.d(t,"zb",(function(){return ft.a}));var Ot=s("ZzPe"),vt=s("H6Ro"),yt=s("z7Iz"),xt=s("LVO0"),wt=s("Zig/"),Ct=s("dx+K"),St=s("jTJh"),Mt=s("oUnT"),kt=s("MRwR"),Nt=s("QM56"),Pt=s("bySv"),Lt=s("LOej"),Dt=s("banc"),Et=s("QgQa"),Tt=s("Qi1J"),It=s("l0jT"),At=s("4/F1"),Rt=s("djAN"),_t=s("/P7N"),qt=s("Zw3k"),Ft=s("76YJ"),Bt=s("siUG"),zt=s("ERgP");s.d(t,"pb",(function(){return zt.a}));var Ut=s("6EwQ"),Ht=s("jc6J");s.d(t,"kb",(function(){return Ht.a}));var Kt=s("Y4Fi");s.d(t,"ub",(function(){return Kt.a}));var Gt=s("/NTY");s.d(t,"cc",(function(){return Gt.a}));var Vt=s("KNwe");s.d(t,"nb",(function(){return Vt.a}));var Zt=s("gWfO"),Wt=s("u93t");s.d(t,"j",(function(){return Wt.a}));var $t=s("23at");s.d(t,"i",(function(){return $t.a}));var Yt=s("nNJO"),Jt=s("ohhH"),Qt=s("6k/9"),Xt=s("cy6M"),es=s("Y/f/");s.d(t,"w",(function(){return es.a}));var ts=s("SuHD");s.d(t,"eb",(function(){return ts.a}));var ss=s("ZJLr");s.d(t,"fb",(function(){return ss.a}));var ns=s("RAQX");s.d(t,"t",(function(){return ns.a}));var rs=s("x+9r");const is=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-theme-View-EventView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(10).then(s.bind(null,"dHAx")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"dHAx"}}),as=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-manage-Widgets-DatetimeWidget",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(9).then(s.bind(null,"f/pJ")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"f/pJ"}}),os=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-manage-Widgets-RecurrenceWidget-RecurrenceWidget",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"vaF2")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"vaF2"}})},LOej:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("TbSc")),c=s("umxb"),d=s("QetY"),p=s("lHu7"),u=s("24R3"),h=s("zSVi"),b=s("TSYQ"),j=s.n(b),m=s("Kvkj"),g=s("1Jxj"),f=s.n(g),O=s("EFnn"),v=s.n(O),y=s("VnOj"),x=s.n(y),w=s("nKUr");function C(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function S(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?C(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):C(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const M=Object(p.defineMessages)({MapsBlockInputPlaceholder:{id:"Enter map Embed Code",defaultMessage:"Enter map Embed Code"},left:{id:"Left",defaultMessage:"Left"},right:{id:"Right",defaultMessage:"Right"},center:{id:"Center",defaultMessage:"Center"},full:{id:"Full",defaultMessage:"Full"},GoogleMapsEmbeddedBlock:{id:"Google Maps Embedded Block",defaultMessage:"Google Maps Embedded Block"}});class k extends o.Component{constructor(e){super(e),r()(this,"onChangeUrl",({target:e})=>{this.setState({url:e.value})}),r()(this,"resetSubmitUrl",()=>{this.setState({url:""})}),this.getSrc=this.getSrc.bind(this),this.state={url:"",error:null},this.onSubmitUrl=this.onSubmitUrl.bind(this),this.onKeyDownVariantMenuForm=this.onKeyDownVariantMenuForm.bind(this)}shouldComponentUpdate(e){return this.props.selected||e.selected||!a()(this.props.data,e.data)}onSubmitUrl(){this.props.onChangeBlock(this.props.block,S(S({},this.props.data),{},{url:this.getSrc(this.state.url)}))}onKeyDownVariantMenuForm(e){"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmitUrl()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())}getSrc(e){const t=(new DOMParser).parseFromString(e,"text/html").getElementsByTagName("iframe");return 0===t.length?(this.setState({error:!0}),""):(this.setState({error:!1}),t[0].src)}render(){const e=this.props.data.placeholder||this.props.intl.formatMessage(M.MapsBlockInputPlaceholder);return Object(w.jsxs)("div",{className:j()("block maps align",{center:!Boolean(this.props.data.align)},this.props.data.align),children:[this.props.data.url?Object(w.jsx)("div",{className:j()("maps-inner",{"full-width":"full"===this.props.data.align}),children:Object(w.jsx)("iframe",{title:this.props.intl.formatMessage(M.GoogleMapsEmbeddedBlock),src:this.props.data.url,className:"google-map",frameBorder:"0",allowFullScreen:!0})}):Object(w.jsx)(l.a,{children:Object(w.jsxs)("center",{children:[Object(w.jsx)("img",{src:x.a,alt:""}),Object(w.jsxs)("div",{className:"toolbar-inner",children:[Object(w.jsx)(c.a,{onKeyDown:this.onKeyDownVariantMenuForm,onChange:this.onChangeUrl,placeholder:e,value:this.state.url,onClick:e=>e.stopPropagation()}),this.state.url&&Object(w.jsx)(d.a.Group,{children:Object(w.jsx)(d.a,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),this.setState({url:""})},children:Object(w.jsx)(m.jb,{name:f.a,size:"30px"})})}),Object(w.jsx)(d.a.Group,{children:Object(w.jsx)(d.a,{basic:!0,primary:!0,onClick:e=>{e.stopPropagation(),this.onSubmitUrl()},children:Object(w.jsx)(m.jb,{name:v.a,size:"30px"})})})]}),Object(w.jsxs)("div",{className:"message-text",children:[Object(w.jsx)(u.a,{id:"Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.",defaultMessage:"Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."}),this.state.error&&Object(w.jsx)("div",{style:{color:"red"},children:Object(w.jsx)(u.a,{id:"Embed code error, please follow the instructions and try again.",defaultMessage:"Embed code error, please follow the instructions and try again."})})]})]})}),!this.props.selected&&Object(w.jsx)("div",{className:"map-overlay"}),Object(w.jsx)(m.Pb,{selected:this.props.selected,children:Object(w.jsx)(m.ub,S(S({},this.props),{},{resetSubmitUrl:this.resetSubmitUrl}))})]})}}t.a=Object(h.c)(k)},LRtl:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M28 18L28 10 20 10 20 18 26 18C26 21.3137085 23.3137085 24 20 24L20 26C24.418278 26 28 22.418278 28 18L28 18zM26 12L26 16 22 16 22 12 26 12 26 12zM16 18L16 10 8 10 8 18 14 18C14 21.3137085 11.3137085 24 8 24L8 26C12.418278 26 16 22.418278 16 18L16 18zM14 12L14 16 10 16 10 12 14 12 14 12z" fill-rule="evenodd"/>'}},LVO0:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("l0jT"),r=s("nKUr");t.a=({properties:e,data:t})=>Object(r.jsx)(n.a,{properties:e,data:t})},Lf35:function(e,t,s){"use strict";s.d(t,"b",(function(){return v})),s.d(t,"a",(function(){return y}));var n=s("lSNA"),r=s.n(n),i=s("Puqe"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("2mql"),d=s.n(c),p=s("/MKj"),u=s("9At1"),h=s("8ZS8"),b=s("nKUr");function j(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function m(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?j(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):j(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const g=e=>{if(Array.isArray(e))return e.map(g).filter(e=>!!e).length>0;const{loadables:t,lazyBundles:s}=h.a.settings;return Object.keys(s).includes(e)||Object.keys(t).includes(e)},f=e=>{const{lazyBundles:t}=h.a.settings;if(!g(e))throw new Error("Invalid lib or bundle name "+e);if("string"===typeof e&&"object"===typeof t&&Object.keys(t).includes(e)){const s=t[e];return Array.isArray(s)?s:[s]}return Array.isArray(e)?e:[e]};function O(e,t={}){const s=f(e),{shouldRerender:n=!0}=t,{loadables:r}=h.a.settings,i=Object(p.useDispatch)(),a=Object(p.useSelector)(e=>e.lazyLibraries||{},(e,t)=>!n||Object(p.shallowEqual)(e,t)),o=(l=s,c=a,Object.assign({},...l.map(e=>c[e]?{[e]:c[e]}:{})));var l,c;return s.forEach(e=>{const t=r[e];a[e]||t.load().then(t=>{!a[e]&&t&&i(Object(u.U)(e,t))})}),o}function v(e,t=!0){return s=>{function n(r){O(e,{shouldRerender:!1});const i=Array.isArray(e)?e.join(","):e;return n.displayName=`PreloadLoadables(${i})(${x(s)})`,Object(b.jsx)(s,m(m({},a()(r,"forwardedRef")),{},{ref:t?r.forwardedRef:null}),i)}return t?d()(l.a.forwardRef((e,t)=>Object(b.jsx)(n,m(m({},e),{},{forwardedRef:t}))),s):d()(n,s)}}function y(e,t=!1){return s=>{let n;function r(i){n=n||f(e);const o=O(n,{shouldRerender:!0}),l=Object.keys(o).length===n.length;return r.displayName=`WithLoadables(${n.join(",")})(${x(s)})`,l?Object(b.jsx)(s,m(m(m({},a()(i,"forwardedRef")),o),{},{ref:t?i.forwardedRef:null}),Object.keys(o).join("|")):null}return t?d()(l.a.forwardRef((e,t)=>Object(b.jsx)(r,m(m({},e),{},{forwardedRef:t}))),s):d()(r,s)}}function x(e){return e.displayName||e.name||"Component"}},LxBh:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("zpb6"),r=s("5IEt"),i=s("Kvkj"),a=s("nKUr");t.a=({data:e,isEditMode:t})=>{var s,o;let l=(null===(s=e.linkHref)||void 0===s||null===(o=s[0])||void 0===o?void 0:o["@id"])||"",c=null;return Object(r.j)(l)?c=Object(a.jsx)(i.u,{to:Object(n.q)(l),condition:!t,children:e.linkTitle||l}):l&&(c=Object(a.jsx)(i.Zb,{href:l,children:e.linkTitle||l})),c?Object(a.jsx)("div",{className:"link-more",children:c}):null}},MRwR:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=(s("17x9"),s("ANjH")),l=s("/MKj"),c=s("lHu7"),d=s("zSVi"),p=s("TSYQ"),u=s.n(p),h=s("9At1"),b=s("8ZS8"),j=s("3tf8"),m=s("zpb6"),g=s("Kvkj"),f=s("nKUr");function O(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function v(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?O(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):O(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const y=Object(c.defineMessages)({unknownBlock:{id:"Unknown Block",defaultMessage:"Unknown Block {block}"}});class x extends i.Component{constructor(...e){super(...e),r()(this,"blockNode",a.a.createRef())}componentDidMount(){var e,t;const{type:s}=this.props,{blocksConfig:n=b.a.blocks.blocksConfig}=this.props;!((null===n||void 0===n||null===(e=n[s])||void 0===e?void 0:e.blockHasOwnFocusManagement)||null)&&this.props.selected&&this.blockNode.current&&this.blockNode.current.focus();const r=this.props.manage?1:(null===n||void 0===n||null===(t=n[s])||void 0===t?void 0:t.sidebarTab)||0;this.props.selected&&this.props.editable&&this.props.setSidebarTab(r)}UNSAFE_componentWillReceiveProps(e){var t;const{blocksConfig:s=b.a.blocks.blocksConfig}=this.props,{selected:n,type:r}=this.props;if(!((null===s||void 0===s||null===(t=s[r])||void 0===t?void 0:t.blockHasOwnFocusManagement)||null)&&e.selected&&n!==e.selected&&this.blockNode.current&&this.blockNode.current.focus(),(!this.props.selected&&e.selected||r!==e.type)&&this.props.editable){var i;const t=this.props.manage?1:(null===s||void 0===s||null===(i=s[e.type])||void 0===i?void 0:i.sidebarTab)||0;this.props.setSidebarTab(t)}}render(){var e,t,s,n,r;const{blocksConfig:i=b.a.blocks.blocksConfig}=this.props,{editable:a,type:o}=this.props,l=null===(e=this.props.data)||void 0===e?void 0:e.disableNewBlocks;let c=(null===i||void 0===i||null===(t=i[o])||void 0===t?void 0:t.edit)||null;var d;(null!==(s=this.props.data)&&void 0!==s&&s.readOnly||!a&&!b.a.blocks.showEditBlocksInBabelView)&&(c=(null===i||void 0===i||null===(d=i[o])||void 0===d?void 0:d.view)||null);const p=(null===i||void 0===i||null===(n=i[o])||void 0===n?void 0:n.schema)||g.i,h=(null===i||void 0===i||null===(r=i[o])||void 0===r?void 0:r.blockHasOwnFocusManagement)||null;return Object(f.jsx)(f.Fragment,{children:null!==c?Object(f.jsxs)("div",{role:"presentation",onClick:e=>{const t=e.shiftKey||e.ctrlKey||e.metaKey;!this.props.selected&&this.props.onSelectBlock(this.props.id,!this.props.selected&&t,e)},onKeyDown:h||l?null:e=>this.props.handleKeyDown(e,this.props.index,this.props.id,this.blockNode.current),className:u()("block "+o,{selected:this.props.selected||this.props.multiSelected,multiSelected:this.props.multiSelected}),style:{outline:"none"},ref:this.blockNode,tabIndex:h?null:-1,children:[Object(f.jsx)(c,v(v({},this.props),{},{blockNode:this.blockNode,data:Object(m.i)(this.props)})),this.props.manage&&Object(f.jsx)(g.Pb,{selected:this.props.selected,tab:"sidebar-settings",children:Object(f.jsx)(g.j,v(v({},this.props),{},{schema:p}))})]}):Object(f.jsx)("div",{role:"presentation",onClick:()=>!this.props.selected&&this.props.onSelectBlock(this.props.id),onKeyDown:h||l?null:e=>this.props.handleKeyDown(e,this.props.index,this.props.id,this.blockNode.current),className:u()("block "+o,{selected:this.props.selected}),style:{outline:"none"},ref:this.blockNode,tabIndex:-1,children:this.props.intl.formatMessage(y.unknownBlock,{block:o})})})}}r()(x,"defaultProps",{manage:!1,editable:!0}),t.a=Object(o.compose)(d.c,j.a,Object(l.connect)(null,{setSidebarTab:h.ob}))(x)},MdtH:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("T5N5")),a=s("zSVi"),o=s("Kvkj"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const p=e=>{const{id:t,title:s,value:n,onChange:r,isDisabled:a}=e;return Object(l.jsx)(o.db,d(d({},e),{},{columns:1,children:Object(l.jsx)("div",{className:"wrapper",children:Object(l.jsx)(i.a,{name:"field-"+t,checked:n||!1,disabled:a,onChange:(e,{checked:s})=>{r(t,s)},label:Object(l.jsx)("label",{htmlFor:"field-"+t,children:s})})})}))};p.defaultProps={description:null,required:!1,error:[],value:null,onChange:null,onEdit:null,onDelete:null},t.a=Object(a.c)(p)},MlRX:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("zpb6"),r=s("nKUr");const i=({src:e,title:t,text:s,size:i,color:a,className:o})=>{const l=Math.round(i/2);return Object(r.jsx)("div",{className:o,title:t,children:e?Object(r.jsx)("img",{src:e,alt:t}):Object(r.jsxs)("svg",{width:i,height:i,children:[Object(r.jsx)("circle",{cx:l,cy:l,r:l,fill:a}),Object(r.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",fill:"white",fontSize:l+"px",fontFamily:"Arial",dy:".3em",children:s||Object(n.z)(t,1)})]})})};i.defaultProps={src:null,title:null,text:null,size:30,color:"Teal",className:"avatar circular"},t.a=i},MwIl:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M3.1161,5.0001 L4.1161,21.0001 L3.0001,21.0001 L4.3341,29.0001 L32.0281,29.0001 L33.3611,21.0001 L32.2671,21.0001 L33.2681,9.0001 L17.5941,9.0001 L13.5951,5.0001 L3.1161,5.0001 Z M5.2451,7.0001 L12.7671,7.0001 L16.7661,11.0001 L31.0931,11.0001 L30.2611,21.0001 L6.1201,21.0001 L5.2451,7.0001 Z M5.3611,23.0001 L31.0001,23.0001 L30.3341,27.0001 L6.0271,27.0001 L5.3611,23.0001 Z"/>'}},NHNY:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M3,5.0001 L3,29.0001 L33,29.0001 L33,9.0001 L17.414,9.0001 L13.414,5.0001 L3,5.0001 Z M5,7.0001 L12.586,7.0001 L16.585,11.0001 L31,11.0001 L31,15.0001 L5,15.0001 L5,7.0001 Z M5,27.0001 L31,27.0001 L31,17.0001 L5,17.0001 L5,27.0001 Z"/>'}},NQu7:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path fill-rule="nonzero" d="M3,7 L5,5 L5,25 L3,23 L33,23 L31,25 L31,5 L33,7 L3,7 Z M33,5 L33,25 L3,25 L3,5 L33,5 Z"/><path d="M7 31L29 31 29 29 7 29zM25.314 10.757L28.557 14 7.444 14 10.687 10.757 9.272 9.343 3.616 15 9.272 20.657 10.687 19.243 7.444 16 28.557 16 25.314 19.243 26.728 20.657 32.385 15 26.728 9.343z"/></g>'}},NtjJ:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("bt/X"),l=s.n(o),c=s("9UKM"),d=s.n(c),p=(s("q1tI"),s("Kvkj")),u=s("lHu7"),h=s("52Oh"),b=s("/MKj"),j=s("cuOu"),m=s("Lf35"),g=s("nKUr");function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function O(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const v=Object(u.defineMessages)({SortOn:{id:"Sort on",defaultMessage:"Sort on"},NoSelection:{id:"No selection",defaultMessage:"No selection"}});t.a=Object(m.a)(["reactSelect"])((function(e){var t;const{id:s,value:n,onChange:r,reactSelect:i,isDisabled:o}=e,c=Object(b.useSelector)(e=>e.querystring.sortable_indexes),u=Object(h.a)(),m=i.default;return Object(g.jsx)(p.db,O(O({},e),{},{draggable:!1,className:"query-sort-on-widget",children:Object(g.jsx)(m,{id:"select-listingblock-sort-on",name:"select-listingblock-sort-on",className:"react-select-container",classNamePrefix:"react-select",isDisabled:o,options:[{label:u.formatMessage(v.NoSelection),value:""},...a()(d()(l()(d()(c),e=>e[1].group)),e=>({label:e[0],options:a()(e[1],e=>({label:e[1].title,value:e[0]}))}))],styles:j.g,theme:j.h,components:{DropdownIndicator:j.b,Option:j.d},value:{value:n||"",label:n&&c?null===(t=c[n])||void 0===t?void 0:t.title:n||u.formatMessage(v.NoSelection)},onChange:e=>{r(s,e.value)}})}))}))},OFTi:function(e,t,s){"use strict";s.d(t,"d",(function(){return O})),s.d(t,"a",(function(){return v})),s.d(t,"b",(function(){return y})),s.d(t,"c",(function(){return x}));var n=s("MKeS"),r=s("VCTy"),i=s("T65m"),a=s("kFbN"),o=s("4yIa"),l=s("/Rrw"),c=s("eYMU"),d=s("X6Bh"),p=s("K6UB"),u=s("jgqj"),h=s("ftGD"),b=s("rccD"),j=s("tN8b"),m=s("fmLK"),g=s("eUVD");const f=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-theme-View-EventView",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(10).then(s.bind(null,"dHAx")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"dHAx"}}),O={document_view:r.a,summary_view:c.a,tabular_view:d.a,listing_view:o.a,link_redirect_view:p.a,album_view:j.a},v={"News Item":l.a,File:i.a,Image:a.a,Event:f},y=r.a,x={404:u.a,401:m.a,403:g.a,ECONNREFUSED:h.a,corsError:b.a}},ONxa:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M3,29 L33,29 L33,6.999 L3,6.999 L3,29 Z M6.546,9 L29.454,9 L18,19.636 L6.546,9 Z M28.707,23.293 L23.07,17.656 L31,10.293 L31,27 L5,27 L5,10.293 L12.93,17.656 L7.293,23.293 L8.707,24.707 L14.396,19.018 L18,22.365 L21.604,19.018 L27.293,24.707 L28.707,23.293 Z"/>'}},OXrg:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M31,18 C31,10.832 25.168,5 18,5 C10.832,5 5,10.832 5,18 C5,25.168 10.832,31 18,31 C25.168,31 31,25.168 31,18 M3,18 C3,9.729 9.729,3 18,3 C26.271,3 33,9.729 33,18 C33,26.271 26.271,33 18,33 C9.729,33 3,26.271 3,18"/><path d="M11.293 16.707L12.707 15.293 18 20.586 23.293 15.293 24.707 16.707 18 23.414z"/></g>'}},PFGh:function(e,t,s){"use strict";s.d(t,"a",(function(){return u})),s.d(t,"b",(function(){return b})),s.d(t,"c",(function(){return j}));var n=s("4qC0"),r=s.n(n),i=s("GoyQ"),a=s.n(i),o=s("Znm+"),l=s.n(o),c=s("zpb6"),d=s("lHu7");const p=Object(d.defineMessages)({no_value:{id:"No value",defaultMessage:"No value"}});function u(e){var t;if(r()(e)||l()(e))return{token:e.toString()};if(!e)return{};if(Array.isArray(e))return{tokens:e.map(e=>{var t;return a()(e)?null!==(t=e.value)&&void 0!==t?t:e.token:r()(e)||l()(e)?e:null}).filter(e=>null!==e)};const s=null!==(t=e.value)&&void 0!==t?t:e.token;return r()(s)?{token:s}:{}}function h(e,t){var s,n,r,i,a;if(!e)return e;if(Array.isArray(e)){if(2===e.length)return{value:e[0],label:e[1]||e[0]};throw new Error("Unknown value type of select widget: "+e)}return{value:null!==(s=null!==(n=e.token)&&void 0!==n?n:e.value)&&void 0!==s?s:"no-value",label:null!==(r=null!==(i=null!==(a=e.title&&"None"!==e.title?e.title:void 0)&&void 0!==a?a:e.label)&&void 0!==i?i:e.token)&&void 0!==r?r:t.formatMessage(p.no_value)}}const b=(e,t)=>e.map(e=>h(e,t));function j(e,t,s){e=b(e||[],s);const n=Object.assign({},...e.map(({label:e,value:t})=>({[t]:e})));if(!a()(t)&&l()(t)){const e=n[Object(c.v)(t)];return e?{label:e,value:t}:{}}return"no-value"===t?{label:s.formatMessage(p.no_value),value:"no-value"}:void 0!==t&&t&&0!==t.length?Array.isArray(t)?t.map(t=>j(e,t)):a()(t)?h(t,s):Object.keys(n).includes(t)?{label:n[t],value:t}:{label:t,value:t}:null}},PMnK:function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=s("17x9"),a=s.n(i),o=s("MKeS"),l=s("2Sww"),c=s.n(l),d=s("QetY"),p=s("Kvkj"),u=s("zpb6"),h=s("8ZS8"),b=s("GWVt"),j=s.n(b),m=s("6fhb"),g=s.n(m),f=s("qcTF"),O=s.n(f),v=s("5wJP"),y=s.n(v),x=s("weNR"),w=s.n(x),C=s("D/gK"),S=s.n(C),M=s("nKUr"),k=s.n(M);const N=Object(o.a)({resolved:{},chunkName:()=>"react-image-gallery",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(18).then(s.t.bind(null,"svBs",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"svBs"}}),P=(e,t)=>Object(M.jsx)(d.a,{className:"image-gallery-icon image-gallery-left-nav primary basic",disabled:t,onClick:e,children:Object(M.jsx)(p.jb,{name:j.a,size:"48px",fill:"black"})}),L=(e,t)=>Object(M.jsx)(d.a,{className:"image-gallery-icon image-gallery-right-nav primary basic",disabled:t,onClick:e,children:Object(M.jsx)(p.jb,{name:g.a,size:"48px"})}),D=(e,t)=>Object(M.jsx)(d.a,{type:"button",className:"image-gallery-icon image-gallery-play-button basic primary",onClick:e,"aria-label":"Play or Pause Slideshow",children:t?Object(M.jsx)(p.jb,{name:y.a,size:"48px"}):Object(M.jsx)(p.jb,{name:O.a,size:"48px"})}),E=(e,t)=>Object(M.jsx)(d.a,{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button primary basic",onClick:e,"aria-label":"Open Fullscreen",children:t?Object(M.jsx)(p.jb,{name:S.a,size:"48px"}):Object(M.jsx)(p.jb,{name:w.a,size:"48px"})}),T=({items:e})=>{const{settings:t}=h.a,s=e.filter(e=>t.imageObjects.includes(e["@type"])&&e.image_field),n=s.map(e=>({original:`${Object(u.q)(e["@id"])}/@@images/${e.image_field}/large`,thumbnail:`${Object(u.q)(e["@id"])}/@@images/${e.image_field}/thumb`}));return s.length>0&&Object(M.jsx)(N,{items:n,renderLeftNav:P,renderRightNav:L,renderPlayPauseButton:D,renderFullscreenButton:E,lazyLoad:!0})};t.a=T},Pkzq:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("J2m7"),a=s.n(i),o=(s("q1tI"),s("17x9"),s("55Ip")),l=s("/MKj"),c=s("TSYQ"),d=s.n(c),p=s("zpb6"),u=s("8ZS8"),h=s("lHu7"),b=s("52Oh"),j=s("nKUr");const m=Object(h.defineMessages)({switchLanguageTo:{id:"Switch to",defaultMessage:"Switch to"}}),g=e=>{const t=Object(b.a)(),s=Object(l.useSelector)(e=>e.intl.locale),n=Object(l.useSelector)(e=>{var t,s,n;return null===(t=e.content.data)||void 0===t||null===(s=t["@components"])||void 0===s||null===(n=s.translations)||void 0===n?void 0:n.items}),{settings:i}=u.a;return i.isMultilingual?Object(j.jsx)("div",{className:"language-selector",children:r()(i.supportedLanguages,r=>{const i=a()(n,{language:r});return Object(j.jsx)(o.a,{"aria-label":`${t.formatMessage(m.switchLanguageTo)} ${p.M[r].nativeName.toLowerCase()}`,className:d()({selected:r===s}),to:i?Object(p.q)(i["@id"]):"/"+r,title:p.M[r].nativeName,onClick:()=>{e.onClickAction()},children:p.M[r].nativeName},"language-selector-"+r)})}):Object(j.jsx)(p.d,{children:Object(j.jsx)("html",{lang:i.defaultLanguage})})};g.defaultProps={onClickAction:()=>{}},t.a=g},Pl9N:function(e,t,s){"use strict";(function(e){const n=s("WSEr");t.a=t=>s=>r=>{try{return s(r)}catch(c){var i,a,o,l;throw void 0,(null!==(i=e)&&void 0!==i&&null!==(a=i.env)&&void 0!==a&&a.RAZZLE_SENTRY_DSN||null!==(o=window)&&void 0!==o&&null!==(l=o.env)&&void 0!==l&&l.RAZZLE_SENTRY_DSN)&&n.withScope(e=>{e.setExtras({action:r,state:t.getState()}),n.captureException(c)}),c}}}).call(this,s("8oxB"))},PrOb:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M14,28 L14,18 L21,18 C23.757,18 26,20.243 26,23 C26,25.757 23.757,28 21,28 L14,28 Z M20,8 C22,8 23.5,9.57 23.5,11.5 C23.5,13.43 22,15 20,15 L14,15 L14,8 L20,8 Z M29,23 C29,19.981 27.318,17.348 24.843,15.987 C25.907,14.819 26.5,13.24 26.5,11.5 C26.5,8.226 24.41,5.517 21,5.072 L21,5 L14,5 L11,5 L9,5 L9,8 L11,8 L11,28 L9,28 L9,31 L22,31 L22,30.931 C25.94,30.436 29,27.072 29,23 L29,23 Z"/>'}},Q5oq:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M11,25 L18.293,25 L17.419,26.503 C17.141,26.98 17,27.484 17,28 C17,29.654 18.346,31 20,31 C21.654,31 23,29.654 23,28 C23,27.484 22.859,26.98 22.581,26.503 L21.707,25 L27,25 L27,22.896 C26.672,22.965 26.338,23 26,23 C23.243,23 21,20.757 21,18 C21,15.243 23.243,13 26,13 C26.338,13 26.672,13.035 27,13.104 L27,11 L21.707,11 L22.581,9.497 C22.859,9.02 23,8.516 23,8 C23,6.346 21.654,5 20,5 C18.346,5 17,6.346 17,8 C17,8.516 17.141,9.02 17.419,9.497 L18.293,11 L11,11 L11,16.294 L9.497,15.419 C9.02,15.141 8.516,15 8,15 C6.346,15 5,16.346 5,18 C5,19.654 6.346,21 8,21 C8.516,21 9.02,20.859 9.497,20.581 L11,19.706 L11,25 Z M20,33 C17.243,33 15,30.757 15,28 C15,27.661 15.035,27.328 15.104,27 L9,27 L9,22.896 C8.672,22.965 8.338,23 8,23 C5.243,23 3,20.757 3,18 C3,15.243 5.243,13 8,13 C8.338,13 8.672,13.035 9,13.104 L9,9 L15.104,9 C15.035,8.672 15,8.339 15,8 C15,5.243 17.243,3 20,3 C22.757,3 25,5.243 25,8 C25,8.339 24.965,8.672 24.896,9 L29,9 L29,16.294 L27.497,15.419 C27.02,15.141 26.516,15 26,15 C24.346,15 23,16.346 23,18 C23,19.654 24.346,21 26,21 C26.516,21 27.02,20.859 27.497,20.581 L29,19.706 L29,27 L24.896,27 C24.965,27.328 25,27.661 25,28 C25,30.757 22.757,33 20,33 L20,33 Z"/>'}},Q8rs:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M3,29 L33,29 L33,6.999 L3,6.999 L3,29 Z M5,27 L31,27 L31,9 L5,9 L5,27 Z"/><path d="M12.293 22.707L7.586 18 12.293 13.293 13.707 14.707 10.414 18 13.707 21.293zM23.707 22.707L22.293 21.293 25.586 18 22.293 14.707 23.707 13.293 28.414 18zM16.949 24.316L15.052 23.683 19.052 11.683 20.949 12.316z"/></g>'}},QM56:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("/MKj")),c=s("ANjH"),d=s("lHts"),p=s("QetY"),u=s("TbSc"),h=s("ezNy"),b=s("NrgV"),j=s("lHu7"),m=s("zSVi"),g=s("TSYQ"),f=s.n(g),O=s("Lf35"),v=s("zpb6"),y=s("9At1"),x=s("Kvkj"),w=s("1Jxj"),C=s.n(w),S=s("52Oh"),M=s("kyj3"),k=s("nKUr");function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?N(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var L=e=>{const{block:t,data:s,onChangeBlock:n}=e,r=Object(S.a)(),i=Object(M.a)(P(P({},e),{},{intl:r}));return Object(k.jsx)(x.h,{block:t,schema:i,title:i.title,onChangeField:(e,r)=>{n(t,P(P({},s),{},{[e]:r}))},formData:s})};function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function E(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?D(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const T=Object(j.defineMessages)({title:{id:"Title",defaultMessage:"Title"},description:{id:"Description",defaultMessage:"Description"},placeholder:{id:"Upload a new image",defaultMessage:"Upload a new image"},image:{id:"Image",defaultMessage:"Image"},browse:{id:"Browse",defaultMessage:"Browse"},uploading:{id:"Uploading image",defaultMessage:"Uploading image"}});class I extends o.Component{constructor(e){super(e),this.onUploadImage=this.onUploadImage.bind(this),this.state={uploading:!1};const{Map:t}=this.props.immutableLib;{const{DefaultDraftBlockRenderMap:s,EditorState:n}=e.draftJs,{stateFromHTML:r}=e.draftJsImportHtml,i=t({unstyled:{element:"h1"}}),a=t({unstyled:{element:"div"}});let o,l;this.extendedBlockRenderMap=s.merge(i),this.extendedDescripBlockRenderMap=s.merge(a),o=e.data&&e.data.title?n.createWithContent(r(e.data.title)):n.createEmpty(),l=e.data&&e.data.description?n.createWithContent(r(e.data.description)):n.createEmpty(),this.state={uploading:!1,titleEditorState:o,descriptionEditorState:l,currentFocused:"title"}}this.onChangeTitle=this.onChangeTitle.bind(this),this.onChangeDescription=this.onChangeDescription.bind(this)}componentDidMount(){this.props.selected&&this.titleEditor.focus()}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.state.uploading&&(this.setState({uploading:!1}),this.props.onChangeBlock(this.props.block,E(E({},this.props.data),{},{url:e.content["@id"]})));const{EditorState:t}=this.props.draftJs,{stateFromHTML:s}=this.props.draftJsImportHtml;if(e.data.title&&this.props.data.title!==e.data.title&&!this.props.selected){const n=s(e.data.title);this.setState({titleEditorState:e.data.title?t.createWithContent(n):t.createEmpty()})}if(e.data.description&&this.props.data.description!==e.data.description&&!this.props.selected){const n=s(e.data.description);this.setState({descriptionEditorState:e.data.description?t.createWithContent(n):t.createEmpty()})}e.selected!==this.props.selected&&("title"===this.state.currentFocused?this.titleEditor.focus():this.descriptionEditor.focus())}shouldComponentUpdate(e){return this.props.selected||!a()(this.props.data,e.data)}onChangeTitle(e){this.setState({titleEditorState:e},()=>{this.props.onChangeBlock(this.props.block,E(E({},this.props.data),{},{title:e.getCurrentContent().getPlainText()}))})}onChangeDescription(e){this.setState({descriptionEditorState:e},()=>{this.props.onChangeBlock(this.props.block,E(E({},this.props.data),{},{description:e.getCurrentContent().getPlainText()}))})}onUploadImage({target:e}){const t=e.files[0];this.setState({uploading:!0}),Object(d.readAsDataURL)(t).then(e=>{const s=e.match(/^data:(.*);(.*),(.*)$/);this.props.createContent(Object(v.r)(this.props.pathname),{"@type":"Image",image:{data:s[3],encoding:s[2],"content-type":s[1],filename:t.name}},this.props.block)})}render(){const{Editor:e}=this.props.draftJs,t=this.props.data.placeholder||this.props.intl.formatMessage(T.placeholder);return Object(k.jsxs)("div",{className:f()("block hero",{selected:this.props.selected}),children:[this.props.selected&&this.props.editable&&!!this.props.data.url&&Object(k.jsx)("div",{className:"toolbar",children:Object(k.jsx)(p.a.Group,{children:Object(k.jsx)(p.a,{icon:!0,basic:!0,onClick:()=>this.props.onChangeBlock(this.props.block,E(E({},this.props.data),{},{url:""})),children:Object(k.jsx)(x.jb,{name:C.a,size:"24px",color:"#e40166"})})})}),Object(k.jsxs)("div",{className:"block-inner-wrapper",children:[this.props.data.url?Object(k.jsx)("img",{className:"hero-image",src:Object(v.q)(this.props.data.url)+"/@@images/image",alt:""}):Object(k.jsx)("div",{className:"image-add",children:Object(k.jsxs)(u.a,{className:"image-message",children:[this.state.uploading&&Object(k.jsx)(h.a,{active:!0,children:Object(k.jsx)(b.a,{indeterminate:!0,children:this.props.intl.formatMessage(T.uploading)})}),Object(k.jsxs)("center",{children:[Object(k.jsx)("h4",{children:this.props.intl.formatMessage(T.image)}),this.props.editable&&Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)("p",{children:t}),Object(k.jsx)("p",{children:Object(k.jsxs)("label",{className:"ui button file",children:[this.props.intl.formatMessage(T.browse),Object(k.jsx)("input",{type:"file",onChange:this.onUploadImage,style:{display:"none"}})]})})]})]})]})}),Object(k.jsxs)("div",{className:"hero-body",children:[Object(k.jsxs)("div",{className:"hero-text",children:[Object(k.jsx)(e,{ref:e=>{this.titleEditor=e},readOnly:!this.props.editable,onChange:this.onChangeTitle,editorState:this.state.titleEditorState,blockRenderMap:this.extendedBlockRenderMap,handleReturn:()=>!0,placeholder:this.props.intl.formatMessage(T.title),blockStyleFn:()=>"title-editor",onUpArrow:()=>{const e=this.state.titleEditorState.getSelection(),{titleEditorState:t}=this.state;t.getCurrentContent().getBlockMap().first().getKey()===e.getFocusKey()&&this.props.onFocusPreviousBlock(this.props.block,this.props.blockNode.current)},onDownArrow:()=>{const e=this.state.titleEditorState.getSelection(),{titleEditorState:t}=this.state;t.getCurrentContent().getBlockMap().last().getKey()===e.getFocusKey()&&(this.setState(()=>({currentFocused:"description"})),this.descriptionEditor.focus())}}),Object(k.jsx)(e,{ref:e=>{this.descriptionEditor=e},readOnly:!this.props.editable,onChange:this.onChangeDescription,editorState:this.state.descriptionEditorState,blockRenderMap:this.extendedDescripBlockRenderMap,handleReturn:()=>!0,placeholder:this.props.intl.formatMessage(T.description),blockStyleFn:()=>"description-editor",onUpArrow:()=>{0===this.state.descriptionEditorState.getSelection().getStartOffset()&&(this.setState(()=>({currentFocused:"title"})),this.titleEditor.focus())},onDownArrow:()=>{const e=this.state.descriptionEditorState.getSelection(),{descriptionEditorState:t}=this.state;e.getStartOffset()===t.getCurrentContent().getFirstBlock().getLength()&&this.props.onFocusNextBlock(this.props.block,this.props.blockNode.current)}})]}),Object(k.jsx)(x.ob,{data:this.props.data,isEditMode:!0})]})]}),Object(k.jsx)(x.Pb,{selected:this.props.selected,children:Object(k.jsx)(L,E({},this.props))})]})}}r()(I,"defaultProps",{editable:!0});const A=Object(O.a)(["draftJs","immutableLib","draftJsImportHtml"])(I);t.a=Object(c.compose)(m.c,Object(l.connect)((e,t)=>{var s;return{request:e.content.subrequests[t.block]||{},content:null===(s=e.content.subrequests[t.block])||void 0===s?void 0:s.data}},{createContent:y.g}))(A)},QWsx:function(e,t,s){e.exports=s.p+"static/media/block-image.8a4a14d5.svg"},QgQa:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("nKUr");t.a=({properties:e})=>Object(n.jsx)("p",{className:"documentDescription",children:e.description})},Qi1J:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("nKUr");t.a=({properties:e})=>Object(n.jsx)("h1",{className:"documentFirstHeading",children:e.title})},RAQX:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("QILm"),a=s.n(i),o=s("8ZS8"),l=s("nKUr");const c=["componentName"];function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}t.a=e=>{var t;let{componentName:s}=e,n=a()(e,c);const i=null===(t=o.a.resolve(s))||void 0===t?void 0:t.component;return i?Object(l.jsx)(i,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},n)):(console.warn("Component not found in registry: "+s),null)}},RmU5:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("9At1"),a=s("Kvkj"),o=s("zpb6"),l=(s("17x9"),s("q1tI")),c=s("lHu7"),d=s("24R3"),p=s("zSVi"),u=s("It+4"),h=s("/MKj"),b=s("ANjH"),j=s("FcLX"),m=s("D1pA"),g=s("yE/o"),f=s("QetY"),O=s("Lf35"),v=s("nKUr");function y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function x(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?y(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const w=Object(c.defineMessages)({comment:{id:"Comment",defaultMessage:"Comment"},comments:{id:"Comments",defaultMessage:"Comments"},commentDescription:{id:"You can add a comment by filling out the form below. Plain text formatting.",defaultMessage:"You can add a comment by filling out the form below. Plain text formatting."},default:{id:"Default",defaultMessage:"Default"},delete:{id:"Delete",defaultMessage:"Delete"},edit:{id:"Edit",defaultMessage:"Edit"},reply:{id:"Reply",defaultMessage:"Reply"},hideReplies:{id:"Hide Replies",defaultMessage:"Hide Replies"},showReplies:{id:"Show Replies",defaultMessage:"Show Replies"},loadMoreComments:{id:"Load more",defaultMessage:"Load more..."}}),C=e=>({fieldsets:[{fields:["comment"],id:"default",title:e.formatMessage(w.default)}],properties:{comment:{title:e.formatMessage(w.comment),type:"string",widget:"textarea"}},required:["comment1"]});class S extends l.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this),this.onDelete=this.onDelete.bind(this),this.onEdit=this.onEdit.bind(this),this.onEditOk=this.onEditOk.bind(this),this.onEditCancel=this.onEditCancel.bind(this),this.setReplyTo=this.setReplyTo.bind(this),this.loadMoreComments=this.loadMoreComments.bind(this),this.state={showEdit:!1,editId:null,editText:null,replyTo:null,collapsedComments:{}}}componentDidMount(){this.props.listComments(Object(o.r)(this.props.pathname))}UNSAFE_componentWillReceiveProps(e){(e.pathname!==this.props.pathname||this.props.addRequest.loading&&e.addRequest.loaded||this.props.deleteRequest.loading&&e.deleteRequest.loaded)&&this.props.listComments(Object(o.r)(e.pathname))}onSubmit(e){this.props.addComment(Object(o.r)(this.props.pathname),e.comment,this.state.replyTo),this.setState({replyTo:null})}setReplyTo(e){this.setState({replyTo:e})}loadMoreComments(){this.props.listMoreComments(this.props.next)}onDelete(e){this.props.deleteComment(e)}hideReply(e){this.setState(t=>{const s=t.collapsedComments[e],{collapsedComments:n}=t;return{collapsedComments:x(x({},n),{},{[e]:!s})}})}onEdit(e){this.setState({showEdit:!0,editId:e.id,editText:e.text})}onEditOk(){this.setState({showEdit:!1,editId:null,editText:null}),this.props.listComments(Object(o.r)(this.props.pathname))}onEditCancel(e){this.setState({showEdit:!1,editId:null,editText:null,replyTo:null})}addRepliesAsChildrenToComments(e){const t=e.reduce((e,t)=>x({[t.comment_id]:{comment:t,children:[]}},e),{});return e.forEach(e=>{e.in_reply_to&&t[e.in_reply_to].children.push(e)}),t}render(){const{items:e}=this.props,t=this.props.moment.default,{collapsedComments:s}=this.state,n=this.addRepliesAsChildrenToComments(e),r=e.filter(e=>!e.in_reply_to),i=e=>Object(v.jsxs)(j.a,{children:[Object(v.jsx)(a.e,{src:e.author_image,title:e.author_name||"Anonymous",color:Object(o.w)(e.author_username)}),Object(v.jsxs)(j.a.Content,{children:[Object(v.jsx)(j.a.Author,{children:e.author_name}),Object(v.jsx)(j.a.Metadata,{children:Object(v.jsxs)("span",{children:[" ",Object(v.jsx)("span",{title:t(e.creation_date).format("LLLL"),children:t(e.creation_date).fromNow()})]})}),Object(v.jsxs)(j.a.Text,{children:[" ","text/html"===e.text["mime-type"]?Object(v.jsx)("div",{dangerouslySetInnerHTML:{__html:e.text.data}}):e.text.data]}),Object(v.jsxs)(j.a.Actions,{children:[Object(v.jsx)(j.a.Action,{as:"a","aria-label":this.props.intl.formatMessage(w.reply),onClick:()=>this.setReplyTo(e.comment_id),children:Object(v.jsx)(d.a,{id:"Reply",defaultMessage:"Reply"})}),e.is_editable&&Object(v.jsx)(j.a.Action,{onClick:()=>this.onEdit({id:Object(o.q)(e["@id"]),text:e.text.data}),"aria-label":this.props.intl.formatMessage(w.edit),value:{id:Object(o.q)(e["@id"]),text:e.text.data},children:Object(v.jsx)(d.a,{id:"Edit",defaultMessage:"Edit"})}),e.is_deletable&&Object(v.jsxs)(j.a.Action,{"aria-label":this.props.intl.formatMessage(w.delete),onClick:()=>this.onDelete(Object(o.q)(e["@id"])),color:"red",children:[Object(v.jsx)(m.a,{name:"delete",color:"red"}),Object(v.jsx)(d.a,{id:"Delete",defaultMessage:"Delete",color:"red"})]}),Object(v.jsx)(j.a.Action,{as:"a",onClick:()=>this.hideReply(e.comment_id),children:n[e.comment_id].children.length>0?this.state.collapsedComments[e.comment_id]?Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)(m.a,{name:"eye",color:"blue"}),Object(v.jsx)(d.a,{id:"Show Replies",defaultMessage:"Show Replies"})]}):Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)(m.a,{name:"minus",color:"blue"}),Object(v.jsx)(d.a,{id:"Hide Replies",defaultMessage:"Hide Replies"})]}):null})]}),Object(v.jsx)("div",{id:"reply-place-"+e.comment_id})]}),n[e.comment_id].children.length>0?n[e.comment_id].children.map((t,n)=>Object(v.jsx)(j.a.Group,{collapsed:s[e.comment_id],children:i(t)},`group-${n}-${e.comment_id}`)):null]},e.comment_id);return Object(v.jsxs)(g.a,{className:"comments",children:[Object(v.jsx)(a.q,{open:this.state.showEdit,onCancel:this.onEditCancel,onOk:this.onEditOk,id:this.state.editId,text:this.state.editText}),Object(v.jsx)("div",{id:"comment-add-id",children:Object(v.jsx)(a.cb,{onSubmit:this.onSubmit,onCancel:this.onEditCancel,submitLabel:this.props.intl.formatMessage(w.comment),resetAfterSubmit:!0,schema:C(this.props.intl)})}),Object(v.jsx)(j.a.Group,{threaded:!0,children:r.map(e=>i(e))}),this.props.items_total>this.props.items.length&&Object(v.jsx)(f.a,{fluid:!0,basic:!0,color:"blue",onClick:this.loadMoreComments,children:Object(v.jsx)(d.a,{id:"Load more",defaultMessage:"Load more..."})}),this.state.replyTo&&Object(v.jsx)(u.a,{node:document&&document.getElementById("reply-place-"+this.state.replyTo),children:Object(v.jsx)(a.cb,{onSubmit:this.onSubmit,onCancel:this.onEditCancel,submitLabel:this.props.intl.formatMessage(w.comment),resetAfterSubmit:!0,schema:C(this.props.intl)})})]})}}t.a=Object(b.compose)(p.c,Object(O.a)(["moment"]),Object(h.connect)(e=>({items:e.comments.items,next:e.comments.next,items_total:e.comments.items_total,addRequest:e.comments.add,deleteRequest:e.comments.delete}),{addComment:i.a,deleteComment:i.l,listComments:i.O,listMoreComments:i.R}))(S)},RmW6:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("ANjH")),o=s("/MKj"),l=s("lHu7"),c=s("zSVi"),d=s("zpb6"),p=s("9At1"),u=s("cuOu"),h=s("Kvkj"),b=s("Lf35"),j=s("nKUr");function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function g(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const f=Object(l.defineMessages)({select:{id:"Select\u2026",defaultMessage:"Select\u2026"},no_options:{id:"No options",defaultMessage:"No options"}});class O extends i.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}componentDidMount(){var e;null!==(e=this.props.choices)&&void 0!==e&&e.length||this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl,size:-1,subrequest:this.props.intl.locale})}handleChange(e){this.props.onChange(this.props.id,e?e.map(e=>e.label):null)}render(){const e=this.props.value?this.props.value.map(e=>({label:e,value:e})):[],t=(this.props.choices||[]).filter(t=>!e.find(({label:e})=>e===t.label)).map(e=>({label:e.label||e.value,value:e.value})),s=this.props.reactSelectCreateable.default;return Object(j.jsx)(h.db,g(g({},this.props),{},{children:Object(j.jsx)(s,{id:"field-"+this.props.id,isDisabled:this.props.isDisabled,className:"react-select-container",classNamePrefix:"react-select",defaultOptions:t,options:t,styles:u.g,theme:u.h,components:{ClearIndicator:u.a,DropdownIndicator:u.b,Option:u.d},isMulti:!0,value:e||[],onChange:this.handleChange,placeholder:this.props.intl.formatMessage(f.select),noOptionsMessage:()=>this.props.intl.formatMessage(f.no_options)},this.props.id)}))}}r()(O,"defaultProps",{description:null,required:!1,items:{vocabulary:null},widgetOptions:{vocabulary:null},error:[],choices:[],value:null}),t.a=Object(a.compose)(c.c,Object(b.a)(["reactSelectCreateable"]),Object(o.connect)((e,t)=>{var s,n,r;const i=Object(d.F)(t)||Object(d.E)(t)||Object(d.G)(t),a=null===(s=e.vocabularies)||void 0===s||null===(n=s[i])||void 0===n||null===(r=n.subrequests)||void 0===r?void 0:r[t.intl.locale];return a?{choices:a.items?a.items.map(e=>({label:e.label||e.value,value:e.value})):[],vocabBaseUrl:i}:{vocabBaseUrl:i}},{getVocabulary:p.H}))(O)},RuZR:function(e,t,s){"use strict";s.d(t,"b",(function(){return a}));var n=s("lHu7"),r=s("8ZS8");const i=Object(n.defineMessages)({listing:{id:"Listing",defaultMessage:"Listing"},querystring:{id:"Query",defaultMessage:"Query"},more:{id:"Link more",defaultMessage:"Link more"},LinkTitle:{id:"Link title",defaultMessage:"Link Title"},LinkTo:{id:"Link to",defaultMessage:"Link to"}}),a=e=>{const{intl:t}=e;return{title:t.formatMessage(i.listing),fieldsets:[{id:"default",title:"Default",fields:["querystring"]},...r.a.blocks.blocksConfig.listing.showLinkMore?[{id:"linkmore",title:t.formatMessage(i.more),fields:["linkTitle","linkHref"]}]:[]],properties:{querystring:{title:t.formatMessage(i.querystring),widget:"querystring"},linkTitle:{title:t.formatMessage(i.LinkTitle)},linkHref:{title:t.formatMessage(i.LinkTo),widget:"object_browser",mode:"link",selectedItemAttrs:["Title","Description"],allowExternals:!0}},required:[]}};t.a=a},Rzon:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("lHu7"),c=s("zSVi"),d=s("9At1"),p=s("Kvkj"),u=s("nKUr");const h=Object(l.defineMessages)({default:{id:"Default",defaultMessage:"Default"},tags:{id:"Tags",defaultMessage:"Tags"},tagsToRemove:{id:"Tags to remove",defaultMessage:"Tags to remove"},tagsToAdd:{id:"Tags to add",defaultMessage:"Tags to add"}});class b extends i.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this)}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.props.onOk()}onSubmit({tags_to_add:e=[],tags_to_remove:t=[]}){this.props.updateContent(r()(this.props.items,e=>e.url),r()(this.props.items,s=>{var n;return{subjects:[...new Set((null!==(n=s.subjects)&&void 0!==n?n:[]).filter(e=>!t.includes(e)).concat(e))]}}))}render(){const e=[...new Set(this.props.items.map(e=>e.subjects).flat())];return this.props.open&&Object(u.jsx)(p.vb,{open:this.props.open,onSubmit:this.onSubmit,onCancel:this.props.onCancel,title:this.props.intl.formatMessage(h.tags),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(h.default),fields:["tags_to_remove","tags_to_add"]}],properties:{tags_to_remove:{type:"array",widget:"array",title:this.props.intl.formatMessage(h.tagsToRemove),choices:e.map(e=>[e,e])},tags_to_add:{type:"array",widget:"token",title:this.props.intl.formatMessage(h.tagsToAdd),items:{vocabulary:{"@id":"plone.app.vocabularies.Keywords"}}}},required:[]}})}}t.a=Object(o.compose)(c.c,Object(a.connect)(e=>({request:e.content.update}),{updateContent:d.vb}))(b)},"S+Ux":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18.0474,16.5 C17.2194,16.5 16.5474,17.172 16.5474,18 C16.5474,18.828 17.2194,19.5 18.0474,19.5 C18.8754,19.5 19.5474,18.828 19.5474,18 C19.5474,17.172 18.8754,16.5 18.0474,16.5"/><path d="M18.0474,23 C15.2904,23 13.0474,20.757 13.0474,18 C13.0474,15.243 15.2904,13 18.0474,13 C20.8044,13 23.0474,15.243 23.0474,18 C23.0474,20.757 20.8044,23 18.0474,23 M18.0474,11 C14.1874,11 11.0474,14.141 11.0474,18 C11.0474,21.859 14.1874,25 18.0474,25 C21.9074,25 25.0474,21.859 25.0474,18 C25.0474,14.141 21.9074,11 18.0474,11"/><path d="M18.0474,27 C12.1774,27 6.8994,23.314 5.0984,18 C6.8994,12.686 12.1774,9 18.0474,9 C23.9174,9 29.1954,12.686 30.9964,18 C29.1954,23.314 23.9174,27 18.0474,27 L18.0474,27 Z M33.0024,17.703 C31.0434,11.401 24.8934,7 18.0474,7 C11.2014,7 5.0514,11.401 3.0924,17.703 L3.0004,18 L3.0924,18.297 C5.0514,24.599 11.2014,29 18.0474,29 C24.8934,29 31.0434,24.599 33.0024,18.297 L33.0944,18 L33.0024,17.703 Z"/></g>'}},S4Qz:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("Lf35"),c=s("9At1"),d={album_view:"Album view",event_listing:"Event listing",full_view:"All content",listing_view:"Listing view",summary_view:"Summary view",tabular_view:"Tabular view",layout_view:"Mosaic layout",document_view:"Document view"},p=s("zpb6"),u=s("Kvkj"),h=s("24R3"),b=s("8ZS8"),j=s("5ymK"),m=s.n(j),g=s("hxMo"),f=s.n(g),O=s("8mwE"),v=s.n(O),y=s("nKUr");function x(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function w(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?x(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):x(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const C=Object(l.a)("reactSelect")(e=>{const{Option:t}=e.reactSelect.components;return Object(y.jsxs)(t,w(w({},e),{},{children:[Object(y.jsx)("div",{children:e.label}),e.isFocused&&!e.isSelected&&Object(y.jsx)(u.jb,{name:v.a,size:"24px",color:"#b8c6c8"}),e.isSelected&&Object(y.jsx)(u.jb,{name:v.a,size:"24px",color:"#007bc1"})]}))}),S=Object(l.a)("reactSelect")(e=>{const{DropdownIndicator:t}=e.reactSelect.components;return Object(y.jsx)(t,w(w({},e),{},{children:e.selectProps.menuIsOpen?Object(y.jsx)(u.jb,{name:f.a,size:"24px",color:"#007bc1"}):Object(y.jsx)(u.jb,{name:m.a,size:"24px",color:"#007bc1"})}))}),M=e=>w(w({},e),{},{borderRadius:0,colors:w(w({},e.colors),{},{primary25:"hotpink",primary:"#b8c6c8"})}),k={control:(e,t)=>w(w({},e),{},{border:"none",borderBottom:"2px solid #b8c6c8",boxShadow:"none",borderBottomStyle:t.menuIsOpen?"dotted":"solid"}),menu:(e,t)=>w(w({},e),{},{top:null,marginTop:0,boxShadow:"none",borderBottom:"2px solid #b8c6c8"}),menuList:(e,t)=>w(w({},e),{},{maxHeight:"400px"}),indicatorSeparator:e=>w(w({},e),{},{width:null}),valueContainer:e=>w({},e),option:(e,t)=>w(w({},e),{},{backgroundColor:null,height:"50px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"14px 12px",color:t.isSelected?"#007bc1":t.isFocused?"#4a4a4a":"inherit",":active":{backgroundColor:null}})};class N extends i.Component{constructor(...e){super(...e),r()(this,"state",{selectedOption:{value:this.props.layout,label:d[this.props.layout]||this.props.layout}}),r()(this,"setLayout",e=>{this.props.updateContent(this.props.pathname,{layout:e.value}),this.setState({selectedOption:e})}),r()(this,"selectValue",e=>Object(y.jsx)(i.Fragment,{children:Object(y.jsx)("span",{className:"Select-value-label",children:e.label})})),r()(this,"optionRenderer",e=>Object(y.jsxs)(i.Fragment,{children:[Object(y.jsx)("span",{style:{marginRight:"auto"},children:e.label}),Object(y.jsx)(u.jb,{name:v.a,size:"24px"})]}))}componentDidMount(){this.props.getSchema(this.props.type)}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&this.props.getSchema(e.type),!this.props.loaded&&e.loaded&&this.props.getContent(e.pathname)}render(){const{selectedOption:e}=this.state,t=this.props.reactSelect.default;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("label",{htmlFor:"display-select",children:Object(y.jsx)(h.a,{id:"Viewmode",defaultMessage:"View"})}),Object(y.jsx)(t,{name:"display-select",className:"react-select-container",classNamePrefix:"react-select",options:this.props.layouts.filter(e=>Object.keys(b.a.views.contentTypesViews).includes(e)||Object.keys(b.a.views.layoutViews).includes(e)).map(e=>({value:e,label:d[e]||e})),styles:k,theme:M,components:{DropdownIndicator:S,Option:C},onChange:this.setLayout,defaultValue:e,isSearchable:!1})]})}}r()(N,"defaultProps",{layouts:[],layout:""});t.a=Object(o.compose)(Object(l.a)("reactSelect"),Object(a.connect)(e=>({loaded:e.content.update.loaded,layouts:e.schema.schema?e.schema.schema.layouts:[],layout:e.content.data?e.content.data[Object(p.B)(e.content.data)]:"",layout_fieldname:e.content.data?Object(p.B)(e.content.data):"",type:e.content.data?e.content.data["@type"]:""}),{getSchema:c.B,updateContent:c.vb,getContent:c.t}))(N)},SAOm:function(e,t,s){"use strict";s.d(t,"b",(function(){return j})),s.d(t,"a",(function(){return m})),s.d(t,"c",(function(){return g}));var n=s("QILm"),r=s.n(n),i=s("lSNA"),a=s.n(i),o=s("xweI"),l=s.n(o),c=s("q1tI"),d=s.n(c);const p=["pluggable","id","dependencies","children"];function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){a()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const b=d.a.createContext();function j(e){const{name:t,maxCount:s,reversed:n,children:r,params:i}=e;let a=function(e){const t=d.a.useContext(b);if(!t)throw new Error("Using <Pluggable> component or usePluggable hook outside of <PluggablesProvider>");return t.pluggables[e]||[]}(t);if(void 0!==s&&(a=a.slice(0,s)),void 0!==n&&(a=[...a].reverse()),i&&r)throw Error("Cannot specify render function and params props at the same time");return d.a.useMemo(()=>r?r(a):d.a.createElement(d.a.Fragment,{},a.map((e,t)=>d.a.createElement(e,h({key:t.toString()},i)))),[i,a,r])}const m=e=>{let{pluggable:t,id:s,dependencies:n=[],children:i}=e,a=r()(e,p);return function({pluggable:e,id:t,renderer:s,dependencies:n,options:r}){const i=d.a.useContext(b);if(!i)throw new Error("Using <Plug> component or usePlug hook outside of <PluggablesProvider>");const{setPlug:a,removePlug:o}=i,{name:l,order:c,extra:p}=r;s&&Object.assign(s,{pluggableName:l,extra:p,order:c}),d.a.useEffect(()=>{if(s)return a(e,t,s),()=>o(e,t)},n)}({pluggable:t,id:s,renderer:i&&("function"===typeof i?i:()=>i),dependencies:n,options:a}),null};const g=({children:e})=>{const t={pluggables:{},setPlug:(e,t,s)=>{Object.assign(s,{id:t}),n(n=>h(h({},n),{},{pluggables:h(h({},n.pluggables),{},{[e]:l()([...(n.pluggables[e]||[]).filter(e=>e.id!==t),s],e=>e.order||0)})}))},removePlug:(e,t)=>{n(s=>h(h({},s),{},{pluggables:h(h({},s.pluggables),{},{[e]:l()((s.pluggables[e]||[]).filter(e=>e.id!==t),e=>e.order||0)})}))}},[s,n]=d.a.useState(t);return d.a.createElement(b.Provider,{value:s},e)}},Snbc:function(e,t,s){"use strict";s.d(t,"a",(function(){return Pe})),s.d(t,"b",(function(){return Le}));var n=s("lSNA"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("/MKj"),d=s("vIza"),p=s("nKUr");function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const b={code:{backgroundColor:"rgba(0, 0, 0, 0.05)",fontFamily:'"Inconsolata", "Menlo", "Consolas", monospace',fontSize:16,padding:2},codeBlock:{backgroundColor:"rgba(0, 0, 0, 0.05)",fontFamily:'"Inconsolata", "Menlo", "Consolas", monospace',fontSize:16,padding:20}},j=e=>{if("string"==typeof e[0]){const t=e[0];if(t.split("\n").length>1)return t.split("\n").map((e,t)=>Object(p.jsxs)(l.a.Fragment,{children:[e,(null===e||void 0===e?void 0:e.length)>0&&Object(p.jsx)("br",{})]},e+t))}return e},m={BOLD:(e,{key:t})=>Object(p.jsx)("strong",{children:j(e)},t),ITALIC:(e,{key:t})=>Object(p.jsx)("em",{children:j(e)},t),UNDERLINE:(e,{key:t})=>Object(p.jsx)("u",{children:j(e)},t),CODE:(e,{key:t})=>Object(p.jsx)("span",{style:b.code,children:e},t)},g=e=>e.map(e=>e[1].map(e=>[Object(p.jsxs)(l.a.Fragment,{children:[e,Object(p.jsx)("br",{})]},e)])),f=e=>e.map(e=>e.map(e=>Array.isArray(e)?e[0].split("\n"):e)),O=e=>e.map((e,t)=>Object(p.jsx)("li",{children:e.map(e=>Array.isArray(e)?e.map(e=>{if("string"===typeof e){const t=e.split("\n").length-1;return e.split("\n").map((e,s)=>Object(p.jsxs)(l.a.Fragment,{children:[e,s!==t&&Object(p.jsx)("br",{})]},s))}return e}):e)},t)),v=e=>(t,{depth:s,keys:n})=>e?Object(p.jsx)("ol",{keys:n,depth:s,children:O(t)},n[0]):Object(p.jsx)("ul",{keys:n,depth:s,children:O(t)},n[0]),y={unstyled:(e,{keys:t})=>((e,t)=>e.map(e=>e.map((e,t)=>Array.isArray(e)?a()(e)?Object(p.jsx)("br",{},t):e.map((e,t)=>{if("string"===typeof e){const t=e.split("\n").length-1;return e.split("\n").map((e,s)=>Object(p.jsxs)(l.a.Fragment,{children:[e,s!==t&&Object(p.jsx)("br",{})]},s))}return e}):e)).map((e,s)=>e&&Object(p.jsx)("p",{children:e},t[s])))(e,t),atomic:e=>e[0],blockquote:(e,{keys:t})=>Object(p.jsx)("blockquote",{children:g(f(e))},t[0]),"header-one":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h1",{children:e},t[s])),"header-two":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h2",{id:t[s],children:e},t[s])),"header-three":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h3",{id:t[s],children:e},t[s])),"header-four":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h4",{id:t[s],children:e},t[s])),"header-five":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h5",{id:t[s],children:e},t[s])),"header-six":(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("h6",{id:t[s],children:e},t[s])),"code-block":(e,{keys:t})=>Object(p.jsx)("pre",{style:b.codeBlock,children:g(e)},t[0]),"unordered-list-item":v(),"ordered-list-item":v(!0),callout:(e,{keys:t})=>e.map((e,s)=>Object(p.jsx)("p",{className:"callout",children:e},t[s]))},x=Object(c.connect)(e=>({token:e.userSession.token}))(({token:e,key:t,url:s,target:n,targetUrl:r,download:i,children:a})=>{const o=e?s:r||s;return Object(p.jsx)(d.a,{href:o,openLinkInNewTab:"_blank"===n||void 0,download:i,children:a})});var w={inline:m,blocks:y,entities:{LINK:(e,t,{key:s})=>Object(p.jsx)(x,h(h({},t),{},{children:e}),s),IMAGE:(e,t,{key:s})=>Object(p.jsx)("img",{src:t.src,alt:t.alt},s)}},C=s("tbpX"),S=s.n(C),M=(s("17x9"),s("zpb6"));const k=({children:e,className:t,entityKey:s,getEditorState:n,target:r})=>{const i=n().getCurrentContent().getEntity(s),a=i?i.get("data"):void 0,o=a&&a.url||void 0;return Object(p.jsx)("a",{className:t,title:o,href:Object(M.L)(o)?Object(M.q)(o):o,target:r,rel:"noopener noreferrer",children:e})};k.defaultProps={className:null,entityKey:null,target:null};var N=k,P=s("TSYQ"),L=s.n(P),D=({draftJs:e})=>({createLinkAtSelection(t,s){const n=t.getCurrentContent().createEntity("LINK","MUTABLE",{url:s}).getLastCreatedEntityKey(),r=e.RichUtils.toggleLink(t,t.getSelection(),n);return e.EditorState.forceSelection(r,t.getSelection())},removeLinkAtSelection(t){const s=t.getSelection();return e.RichUtils.toggleLink(t,s,null)},getCurrentEntityKey(e){const t=e.getSelection(),s=t.getAnchorKey(),n=e.getCurrentContent().getBlockForKey(s),r=t.isBackward?t.focusOffset:t.anchorOffset;return n.getEntityAt(r)},getCurrentEntity(e){const t=e.getCurrentContent(),s=this.getCurrentEntityKey(e);return s?t.getEntity(s):null},hasEntity(e,t){const s=this.getCurrentEntity(e);return s&&s.getType()===t}}),E=s("Lf35"),T=s("ANjH"),I=s("xd3P"),A=s("vFsZ"),R=s("umxb"),_=s("QetY"),q=s("lHu7"),F=s("zSVi"),B=s("1Jxj"),z=s.n(B),U=s("zdp0"),H=s.n(U),K=s("EFnn"),G=s.n(K),V=s("3tf8"),Z=s("Ty5D"),W=s("Kvkj");const $=Object(q.defineMessages)({placeholder:{id:"Enter URL or select an item",defaultMessage:"Enter URL or select an item"}});class Y extends o.Component{constructor(e){super(e),r()(this,"handleClickOutside",e=>{this.linkFormContainer.current&&Object(I.doesNodeContainClick)(this.linkFormContainer.current,e)||this.linkFormContainer.current&&this.props.isObjectBrowserOpen||this.onClose()}),r()(this,"linkFormContainer",l.a.createRef()),r()(this,"onSelectItem",(e,t)=>{e.preventDefault(),this.setState({value:t,isInvalid:!1}),this.props.onChangeValue(Object(M.g)(t))}),r()(this,"onClose",()=>this.props.onOverrideContent(void 0)),this.state={value:Object(M.L)(e.data.url)?Object(M.q)(e.data.url):e.data.url||"",isInvalid:!1},this.onRef=this.onRef.bind(this),this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){setTimeout(()=>this.input.focus(),50),document.addEventListener("mousedown",this.handleClickOutside,!1)}componentWillUnmount(){document.removeEventListener("mousedown",this.handleClickOutside,!1)}onRef(e){this.input=e}onChange(e,t){let s={value:e};t||(this.state.isInvalid&&M.f.isUrl(M.f.normalizeUrl(e))&&(s.isInvalid=!1),Object(M.L)(e)&&(s={value:Object(M.q)(e)})),this.setState(s),t&&this.props.onClear()}clear(){this.setState({value:""}),this.props.onClear()}onKeyDown(e){"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmit()):"Escape"===e.key&&(e.preventDefault(),this.onClose())}onSubmit(){let{value:e}=this.state;if(M.f.isMail(M.f.normaliseMail(e)))e=M.f.normaliseMail(e);else if(M.f.isTelephone(e))e=M.f.normalizeTelephone(e);else if(e=M.f.normalizeUrl(e),!M.f.isUrl(e)&&!e.startsWith("/"))return void this.setState({isInvalid:!0});const t=Object(M.L)(e)?Object(M.g)(e):e;this.props.onChangeValue(t),this.onClose()}render(){const{value:e,isInvalid:t}=this.state,s=t?L()("ui input editor-link","input-anchorlink-theme","input-anchorlink-theme-Invalid"):L()("ui input editor-link","input-anchorlink-theme");return Object(p.jsx)("div",{className:"link-form-container",ref:this.linkFormContainer,children:Object(p.jsxs)("div",{style:{marginLeft:"5px",display:"flex",alignItems:"center"},children:[Object(p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 36 36",fill:"#B8B2C8",children:Object(p.jsxs)("g",{fillRule:"evenodd",children:[Object(p.jsx)("path",{d:"M27.1318,7.333 C24.4028,4.604 19.9618,4.604 17.2328,7.333 L12.9898,11.576 C11.8428,12.723 11.1288,14.248 10.9778,15.871 C10.8228,17.541 11.2708,19.211 12.2378,20.576 C12.4818,20.919 12.7278,21.213 12.9888,21.475 C13.7848,22.271 14.7778,22.868 15.8608,23.202 C16.5498,23.415 17.2548,23.519 17.9518,23.518 C19.7808,23.518 21.5598,22.804 22.8888,21.475 L23.9498,20.414 L22.5358,19 L21.4748,20.061 C20.1648,21.371 18.2388,21.842 16.4498,21.291 C15.6668,21.049 14.9778,20.635 14.4038,20.061 C14.2218,19.879 14.0478,19.668 13.8698,19.418 C13.1778,18.443 12.8588,17.249 12.9688,16.056 C13.0768,14.896 13.5868,13.808 14.4038,12.99 L18.6468,8.747 C20.5958,6.798 23.7688,6.798 25.7178,8.747 C26.6568,9.687 27.1748,10.942 27.1748,12.283 C27.1748,13.623 26.6568,14.878 25.7178,15.818 L27.1318,17.232 C28.4488,15.915 29.1748,14.157 29.1748,12.283 C29.1748,10.408 28.4488,8.65 27.1318,7.333"}),Object(p.jsx)("path",{d:"M25.0107,16.5254 C24.2147,15.7294 23.2217,15.1324 22.1387,14.7984 C19.6417,14.0284 16.9477,14.6894 15.1107,16.5254 L14.0507,17.5864 L15.4647,19.0004 L16.5247,17.9394 C17.8357,16.6294 19.7587,16.1554 21.5497,16.7094 C22.3337,16.9514 23.0217,17.3644 23.5957,17.9394 C23.7777,18.1214 23.9527,18.3314 24.1307,18.5824 C24.8217,19.5564 25.1417,20.7514 25.0317,21.9444 C24.9237,23.1034 24.4137,24.1924 23.5957,25.0104 L19.3537,29.2534 C17.4047,31.2024 14.2317,31.2024 12.2817,29.2534 C11.3427,28.3134 10.8247,27.0574 10.8247,25.7174 C10.8247,24.3774 11.3427,23.1214 12.2817,22.1824 L10.8677,20.7684 C9.5507,22.0854 8.8247,23.8424 8.8247,25.7174 C8.8247,27.5924 9.5507,29.3504 10.8677,30.6674 C12.2327,32.0314 14.0257,32.7134 15.8177,32.7134 C17.6107,32.7134 19.4027,32.0314 20.7677,30.6674 L25.0107,26.4244 C26.1567,25.2774 26.8717,23.7524 27.0227,22.1294 C27.1777,20.4594 26.7297,18.7894 25.7617,17.4244 C25.5177,17.0814 25.2717,16.7874 25.0107,16.5254"})]})}),Object(p.jsx)(A.a.Field,{inline:!0,children:Object(p.jsxs)("div",{className:"wrapper",children:[Object(p.jsx)(R.a,{className:s,id:"field-link",name:"link",value:e||"",onChange:({target:e})=>this.onChange(e.value),placeholder:this.props.intl.formatMessage($.placeholder),onKeyDown:this.onKeyDown,ref:this.onRef}),e.length>0?Object(p.jsx)(_.a.Group,{children:Object(p.jsx)(_.a,{basic:!0,className:"cancel",onClick:e=>{e.preventDefault(),e.stopPropagation(),this.clear()},children:Object(p.jsx)(W.jb,{name:z.a,size:"24px"})})}):Object(p.jsx)(_.a.Group,{children:Object(p.jsx)(_.a,{basic:!0,icon:!0,onClick:e=>{e.preventDefault(),e.stopPropagation(),this.props.openObjectBrowser({mode:"link",overlay:!0,onSelectItem:e=>{this.onChange(e),this.onSubmit()}})},children:Object(p.jsx)(W.jb,{name:H.a,size:"24px"})})}),Object(p.jsx)(_.a.Group,{children:Object(p.jsx)(_.a,{basic:!0,primary:!0,disabled:!e.length>0,onClick:e=>{e.preventDefault(),e.stopPropagation(),this.onSubmit()},children:Object(p.jsx)(W.jb,{name:G.a,size:"24px"})})})]})})]})})}}r()(Y,"defaultProps",{placeholder:"Enter URL or select an item"});var J=Object(T.compose)(F.c,Z.j,V.a)(Y),Q=s("zfia"),X=s("XXUR"),ee=s.n(X),te=s("0pDM"),se=s.n(te);function ne(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function re(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ne(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class ie extends o.Component{constructor(e){super(e),r()(this,"onMouseDown",e=>{e.preventDefault()}),r()(this,"onAddLinkClick",e=>{var t,s;e.preventDefault(),e.stopPropagation();const{ownTheme:n,placeholder:r,onOverrideContent:i}=this.props,a=null===(t=this.EditorUtils.getCurrentEntity(this.props.getEditorState()))||void 0===t||null===(s=t.getData())||void 0===s?void 0:s.url;i(e=>Object(p.jsx)(J,re(re({},e),{},{placeholder:r,theme:n,block:"draft-js",data:{url:a||""},onChangeBlock:()=>{},onClear:()=>{this.props.setEditorState(this.DraftEditorUtils.removeLinkAtSelection(this.props.getEditorState()))},onChangeValue:e=>{this.props.setEditorState(this.DraftEditorUtils.createLinkAtSelection(this.props.getEditorState(),e))}})))}),this.DraftEditorUtils=e.draftJsPluginsUtils.default,this.EditorUtils=D(e)}render(){const{theme:e}=this.props,t=this.EditorUtils.hasEntity(this.props.getEditorState(),"LINK"),s=t?L()(e.button,e.active):e.button;return Object(p.jsx)("div",{className:e.buttonWrapper,onMouseDown:this.onMouseDown,role:"presentation",children:Object(p.jsx)("button",{className:s,onClick:this.onAddLinkClick,type:"button",children:t?Object(p.jsx)(Q.a,{name:se.a,size:"24px"}):Object(p.jsx)(Q.a,{name:ee.a,size:"24px"})})})}}r()(ie,"defaultProps",{placeholder:""});var ae=Object(E.a)(["draftJs","draftJsPluginsUtils"])(ie);const oe=e=>"LINK"===e;function le(e,t,s){s&&e.findEntityRanges(e=>{const t=e.getEntity();return null!==t&&oe(s.getEntity(t).getType())},t)}function ce(e){const t=e.getCurrentContent(),s=e.getSelection(),n=s.getStartKey(),r=t.getBlockForKey(n),i=s.getStartOffset(),a=r.getEntityAt(i);if(!a)return e;let o=null;r.findEntityRanges(e=>e.getEntity()===a,(e,t)=>{o=s.merge({anchorOffset:e,focusOffset:t,isBackward:!1})});const l=this.Modifier.applyEntity(t,o,null);return this.EditorState.push(e,l,"apply-entity")}var de=s("PrOb"),pe=s.n(de),ue=s("17bv"),he=s.n(ue),be=s("XYu4"),je=s.n(be),me=s("TBhe"),ge=s.n(me),fe=s("5KwW"),Oe=s.n(fe),ve=s("rfuH"),ye=s.n(ve),xe=s("LRtl"),we=s.n(xe),Ce=s("FX0u"),Se=s.n(Ce);const Me={doubleBreakoutBlocks:["unordered-list-item","ordered-list-item","code-block"],breakoutBlocks:["header-one","header-two","header-three","highlight","blockquote","callout"]};var ke=e=>{const{draftJsInlineToolbarPlugin:t,draftJsBlockBreakoutPlugin:s}=e,{Separator:n}=t,r=s.default(Me),i=((e={})=>{const t={},{theme:s=t,placeholder:n,Link:r,linkTarget:i,libraries:a}=e,o=ce.bind(a);return{decorators:[{strategy:le,matchesEntityType:oe,component:r||S()(N,{className:"link-anchorlink-theme",target:i})}],LinkButton:S()(ae,{ownTheme:s,placeholder:n,onRemoveLinkAtSelection:(e,t)=>e(o(t()))})}})({libraries:e}),a=function(e){const t=e.draftJsCreateInlineStyleButton.default,s=e.draftJsCreateBlockStyleButton.default,n=t({style:"BOLD",children:Object(p.jsx)(Q.a,{name:pe.a,size:"24px"})}),r=t({style:"ITALIC",children:Object(p.jsx)(Q.a,{name:he.a,size:"24px"})}),i=s({blockType:"header-two",children:Object(p.jsx)(Q.a,{name:je.a,size:"24px"})}),a=s({blockType:"header-three",children:Object(p.jsx)(Q.a,{name:ge.a,size:"24px"})}),o=s({blockType:"unordered-list-item",children:Object(p.jsx)(Q.a,{name:Oe.a,size:"24px"})}),l=s({blockType:"ordered-list-item",children:Object(p.jsx)(Q.a,{name:ye.a,size:"24px"})});return{BlockquoteButton:s({blockType:"blockquote",children:Object(p.jsx)(Q.a,{name:we.a,size:"24px"})}),BoldButton:n,CalloutButton:s({blockType:"callout",children:Object(p.jsx)(Q.a,{name:Se.a,size:"24px"})}),ItalicButton:r,HeadlineTwoButton:i,HeadlineThreeButton:a,OrderedListButton:l,UnorderedListButton:o}}(e),{BoldButton:o,ItalicButton:l,HeadlineTwoButton:c,HeadlineThreeButton:d,UnorderedListButton:u,OrderedListButton:h,BlockquoteButton:b,CalloutButton:j}=a;return{inlineToolbarButtons:[o,l,i.LinkButton,n,c,d,u,h,b,j],plugins:[i,r]}},Ne=e=>"callout"===e.className?{type:"callout"}:null;const Pe=e=>{const{plugins:t,inlineToolbarButtons:s}=ke(e),{extendedBlockRenderMap:n,blockStyleFn:r,listBlockTypes:i}=(e=>{const{draftJs:t,immutableLib:s}=e,{DefaultDraftBlockRenderMap:n}=t,{Map:r}=s,i=r({callout:{element:"p"},unstyled:{element:"div"}});return{extendedBlockRenderMap:n.merge(i),blockStyleFn:e=>"callout"===e.getType()?"callout":null,listBlockTypes:["unordered-list-item","ordered-list-item"]}})(e);return{extendedBlockRenderMap:n,blockStyleFn:r,listBlockTypes:i,richTextEditorPlugins:t,richTextEditorInlineToolbarButtons:s,FromHTMLCustomBlockFn:Ne}},Le={ToHTMLRenderers:w,ToHTMLOptions:{cleanup:!1}}},SoYb:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M7,16 C7,11.038 11.037,7 16,7 C20.963,7 25,11.038 25,16 C25,20.962 20.963,25 16,25 C11.037,25 7,20.962 7,16 L7,16 Z M32.707,31.293 L24.448,23.034 C26.039,21.125 27,18.673 27,16 C27,9.935 22.065,5 16,5 C9.935,5 5,9.935 5,16 C5,22.065 9.935,27 16,27 C18.673,27 21.125,26.039 23.034,24.448 L31.293,32.707 L32.707,31.293 Z"/>'}},SuHD:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("aUti")),a=s("/MKj"),o=s("nKUr");function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?l(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=({date:e,format:t,long:s,includeTime:n,relative:r,className:l,locale:d,children:p})=>{const u=Object(a.useSelector)(e=>d||e.intl.locale),h={date:e,long:s,includeTime:n,format:t,locale:u};return Object(o.jsx)("time",{className:l,dateTime:e,title:new Intl.DateTimeFormat(u,i.c).format(new Date((b=e,"string"===typeof b?new Date(b):b))),children:p?p(Object(i.a)(c(c({},h),{},{formatToParts:!0}))):Object(i.a)(h)});var b}},SwtX:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("7GkX"),l=s.n(o),c=s("q1tI"),d=(s("17x9"),s("fuXp")),p=s("aQu0"),u=s("ezNy"),h=s("NrgV"),b=s("vFsZ"),j=s("TbSc"),m=s("R6OX"),g=s("QetY"),f=s("lHu7"),O=s("24R3"),v=s("zSVi"),y=s("zpb6"),x=s("Kvkj"),w=s("EFnn"),C=s.n(w),S=s("1Jxj"),M=s.n(S),k=s("nKUr");function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?N(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const L=Object(f.defineMessages)({required:{id:"Required input is missing.",defaultMessage:"Required input is missing."},minLength:{id:"Minimum length is {len}.",defaultMessage:"Minimum length is {len}."},uniqueItems:{id:"Items must be unique.",defaultMessage:"Items must be unique."},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"}});class D extends c.Component{constructor(e){super(e),this.state={currentTab:0,errors:{},isFormPristine:!0,formData:e.formData},this.selectTab=this.selectTab.bind(this),this.onChangeField=this.onChangeField.bind(this),this.onBlurField=this.onBlurField.bind(this),this.onClickInput=this.onClickInput.bind(this),this.onSubmit=this.onSubmit.bind(this)}onChangeField(e,t){this.setState({formData:P(P({},this.state.formData),{},{[e]:t})})}onClickInput(e){this.setState({isFormPristine:!1})}onBlurField(e,t){if(!this.state.isFormPristine){const s=y.c.validateFieldsPerFieldset({schema:this.props.schema,formData:this.state.formData,formatMessage:this.props.intl.formatMessage,touchedField:{[e]:t}});this.setState({errors:s})}}onSubmit(e){e.preventDefault();const t=y.c.validateFieldsPerFieldset({schema:this.props.schema,formData:this.state.formData,formatMessage:this.props.intl.formatMessage});if(l()(t).length>0)this.setState({errors:t});else{let e=e=>{this.setState({formData:e,errors:{}})};this.props.onSubmit(this.state.formData,e)}}selectTab(e,{index:t}){this.setState({currentTab:t})}render(){const{schema:e,onCancel:t}=this.props,s=e.fieldsets[this.state.currentTab],n=a()(s.fields,t=>P(P({},e.properties[t]),{},{id:t,value:this.state.formData[t],required:-1!==e.required.indexOf(t),onChange:this.onChangeField,onBlur:this.onBlurField,onClick:this.onClickInput})),r=l()(this.state.errors).length>0;return Object(k.jsxs)(d.a,{open:this.props.open,className:this.props.className,children:[Object(k.jsx)(p.a,{children:this.props.title}),Object(k.jsx)(u.a,{active:this.props.loading,children:Object(k.jsx)(h.a,{children:this.props.loadingMessage||Object(k.jsx)(O.a,{id:"Loading",defaultMessage:"Loading."})})}),Object(k.jsx)(d.a.Content,{scrolling:!0,children:Object(k.jsxs)(b.a,{method:"post",onSubmit:this.onSubmit,error:r||Boolean(this.props.submitError),children:[Object(k.jsxs)(j.a,{error:!0,children:[r?Object(k.jsx)(O.a,{id:"There were some errors.",defaultMessage:"There were some errors."}):"",Object(k.jsx)("div",{children:this.props.submitError})]}),e.fieldsets.length>1&&Object(k.jsx)(m.a,{tabular:!0,stackable:!0,children:a()(e.fieldsets,(e,t)=>Object(k.jsx)(m.a.Item,{name:e.id,index:t,active:this.state.currentTab===t,onClick:this.selectTab,children:e.title},e.id))}),n.map(e=>Object(c.createElement)(x.Z,P(P({},e),{},{key:e.id,onBlur:this.onBlurField,onClick:this.onClickInput,error:this.state.errors[e.id]})))]})}),Object(k.jsxs)(d.a.Actions,{children:[Object(k.jsx)(g.a,{basic:!0,circular:!0,primary:!0,floated:"right","aria-label":this.props.submitLabel?this.props.submitLabel:this.props.intl.formatMessage(L.save),title:this.props.submitLabel?this.props.submitLabel:this.props.intl.formatMessage(L.save),onClick:this.onSubmit,loading:this.props.loading,children:Object(k.jsx)(x.jb,{name:C.a,className:"contents circled",size:"30px"})}),t&&Object(k.jsx)(g.a,{basic:!0,circular:!0,secondary:!0,"aria-label":this.props.intl.formatMessage(L.cancel),title:this.props.intl.formatMessage(L.cancel),floated:"right",onClick:t,children:Object(k.jsx)(x.jb,{name:M.a,className:"circled",size:"30px"})})]})]})}}r()(D,"defaultProps",{submitLabel:null,onCancel:null,formData:{},open:!0,loading:null,loadingMessage:null,submitError:null,className:null}),t.a=Object(v.c)(D)},T65m:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("yE/o"),r=s("zpb6"),i=s("nKUr");t.a=({content:e})=>{var t;return Object(i.jsxs)(n.a,{className:"view-wrapper",children:[Object(i.jsxs)("h1",{className:"documentFirstHeading",children:[e.title,e.subtitle&&" - "+e.subtitle]}),e.description&&Object(i.jsx)("p",{className:"documentDescription",children:e.description}),(null===(t=e.file)||void 0===t?void 0:t.download)&&Object(i.jsx)("a",{href:Object(r.q)(e.file.download),children:e.file.filename})]})}},TBhe:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M17 9L11 9 11 13 13 13 13 11 17 11 17 29 15 29 15 31 17 31 19 31 21 31 21 29 19 29 19 11 23 11 23 13 25 13 25 9 19 9z"/>'}},TBt0:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=s("lHu7"),c=s("52Oh"),d=s("R6OX"),p=s("vFsZ"),u=s("3mGJ"),h=s("5m5G"),b=s("Kvkj"),j=s("8ZS8"),m=s("wNa6"),g=s("zpb6"),f=s("LhCv"),O=s("nKUr");function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function y(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const x=Object(l.defineMessages)({document:{id:"Document",defaultMessage:"Document"}});t.a=({translationObject:e,schema:t,pathname:n,visual:r,isFormSelected:i,onSelectForm:l})=>{const v=Object(c.a)(),[w,C]=Object(o.useState)({}),[S,M]=Object(o.useState)(!1),[k,N]=Object(o.useState)("language"),P=(e,{name:t})=>{N(t)};Object(o.useEffect)(()=>{if(!S&&Object.keys(w).length<j.a.settings.supportedLanguages.length){M(!0);let e=j.a.settings.supportedLanguages[Object.keys(w).length];const t=Object(g.S)(e);s("Zbgq")("./"+t+".json").then(t=>{C(y(y({},w),{},{[e]:t.default})),M(!1)})}},[S,w]);const L=new g.a,D=Object(f.a)(),E=Object(m.a)(y(y({},window.__data),{},{intl:{defaultLocale:j.a.settings.defaultLanguage,locale:e.language.token,messages:w[e.language.token]}}),D,L),T=e.language.token;return e&&Object.keys(w).length>0?Object(O.jsx)(h.Provider,{store:E,children:Object(O.jsxs)(O.Fragment,{children:[Object(O.jsxs)(d.a,{pointing:!0,secondary:!0,attached:!0,tabular:!0,children:[Object(O.jsx)(d.a.Item,{name:"language",active:"language"===k,onClick:P,children:g.M[T].nativeName}),r&&Object(O.jsx)(d.a.Item,{name:"properties",active:"properties"===k,onClick:P,children:v.formatMessage(x.document)})]}),"language"===k&&Object(O.jsx)(b.cb,{schema:t,formData:e,type:e["@type"],onSubmit:()=>{},hideActions:!0,pathname:Object(g.q)(e["@id"]),visual:r,title:g.M[T].nativeName,loading:!1,isFormSelected:i,onSelectForm:l,editable:!1,onChange:()=>{}},"translation-object-form"),"properties"===k&&Object(O.jsx)(p.a,{method:"post",onSubmit:()=>{},children:Object(O.jsx)("fieldset",{className:"invisible",disabled:!0,children:t&&a()(t.fieldsets,s=>[Object(O.jsx)(u.a,{secondary:!0,attached:!0,children:s.title},s.title),Object(O.jsx)(u.a,{attached:!0,children:a()(s.fields,(s,n)=>Object(o.createElement)(b.Z,y(y({},t.properties[s]),{},{id:s,formData:e,focus:!1,value:e[s],required:-1!==t.required.indexOf(s),key:s,onChange:()=>{}})))},"fieldset-contents-"+s.title)])})})]})}):null}},THAZ:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M31 17L19 17 19 5 17 5 17 17 5 17 5 19 17 19 17 31 19 31 19 19 31 19z"/>'}},TNIF:function(e,t,s){"use strict";s("q1tI"),s("17x9"),s("yE/o"),s("QetY"),s("aWbt"),s("QeUd"),s("nKUr")},TTMU:function(e,t,s){"use strict";var n=s("E+oP"),r=s.n(n),i=(s("q1tI"),s("24R3")),a=s("kiQV"),o=s("lHu7"),l=s("52Oh"),c=s("8ZS8"),d=s("nKUr");const p=Object(o.defineMessages)({no_addons:{id:"No addons found",defaultMessage:"No addons found"}});t.a=({cmf_version:e,debug_mode:t,pil_version:s,plone_version:n,plone_restapi_version:o,python_version:u,zope_version:h})=>{const b=Object(l.a)(),{addonsInfo:j}=c.a.settings;return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsxs)("ul",{style:{fontSize:"16px",fontFamily:"Monospace",paddingLeft:"1rem"},children:[a.a&&Object(d.jsxs)("li",{children:["Volto ",a.a]}),Object(d.jsxs)("li",{children:["Plone ",n]}),Object(d.jsxs)("li",{children:["plone.restapi ",o]}),Object(d.jsxs)("li",{children:["CMF ",e]}),Object(d.jsxs)("li",{children:["Zope ",h]}),Object(d.jsxs)("li",{children:["Python ",u]}),Object(d.jsxs)("li",{children:["PIL ",s]})]}),Object(d.jsx)("h3",{children:"Add-ons"}),r()(j)?Object(d.jsx)("p",{children:b.formatMessage(p.no_addons)}):Object(d.jsx)("ul",{style:{fontSize:"16px",fontFamily:"Monospace"},children:Object.keys(j).map(e=>Object(d.jsx)("li",{children:`${e} ${j[e].version||""}`}))}),"No"!==t&&Object(d.jsx)("p",{children:Object(d.jsx)(i.a,{id:"Warning Regarding debug mode",defaultMessage:"You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."})})]})}},"Tdq+":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("lHu7")),a=s("52Oh"),o=s("UFgG"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const p=Object(i.defineMessages)({Criteria:{id:"Criteria",defaultMessage:"Criteria"},depth:{id:"Depth",defaultMessage:"Depth"},SortOn:{id:"Sort on",defaultMessage:"Sort on"},reversedOrder:{id:"Reversed order",defaultMessage:"Reversed order"},limit:{id:"Results limit",defaultMessage:"Results limit"},itemBatchSize:{id:"Item batch size",defaultMessage:"Item batch size"},NoSelection:{id:"No selection",defaultMessage:"No selection"}});t.a=e=>{var t,s;const{block:n,onChange:r,schemaEnhancer:i}=e,c=null===(t=e.value)||void 0===t||null===(s=t.query)||void 0===s||!s.length,u=Object(a.a)();let h=(({intl:e,isDisabled:t,value:s})=>{var n;return{fieldsets:[{id:"default",title:"Default",fields:["query",...(null===s||void 0===s||null===(n=s.query)||void 0===n?void 0:n.filter(e=>"path"===e.i).length)>0?["depth"]:[],"sort_on","sort_order_boolean","limit","b_size"]}],properties:{query:{title:e.formatMessage(p.Criteria),widget:"query"},depth:{title:e.formatMessage(p.depth),type:"number"},sort_on:{title:e.formatMessage(p.SortOn),widget:"query_sort_on",isDisabled:t},sort_order_boolean:{title:e.formatMessage(p.reversedOrder),type:"boolean",isDisabled:t},limit:{title:e.formatMessage(p.limit),type:"number",isDisabled:t},b_size:{title:e.formatMessage(p.itemBatchSize),type:"number",isDisabled:t}},required:[]}})(d(d({},e),{},{intl:u,isDisabled:c}));return h=i?i(d(d({},e),{},{intl:u,schema:h})):h,Object(l.jsx)("div",{className:"querystring-widget",children:Object(l.jsx)(o.a,d(d({},e),{},{block:n,schema:h,onChange:(e,t)=>{const s=d(d({},t),{},{sort_order:t.sort_order_boolean?"descending":"ascending"});r(e,s)}}))})}},TmQW:function(e,t,s){"use strict";var n=s("QILm"),r=s.n(n),i=s("lSNA"),a=s.n(i),o=(s("q1tI"),s("17x9"),s("zSVi")),l=s("8ZS8"),c=s("Lf35"),d=s("nKUr");const p=["connectDropTarget","connectDragSource","connectDragPreview"];function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){a()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const b=()=>l.a.widgets.default,j=(e,{intl:t})=>{const s=(o=e.id,l.a.widgets.id[o]||null||(e=>{var t;return"string"===typeof(null===e||void 0===e||null===(t=e.frontendOptions)||void 0===t?void 0:t.widget)?l.a.widgets.widget[e.frontendOptions.widget]:null})(e.widgetOptions)||("string"===typeof(a=e.widget)?l.a.widgets.widget[a]||b():null)||(e=>e.choices||e.vocabulary?l.a.widgets.choices:null)(e)||((i=e.vocabulary)&&i["@id"]?l.a.widgets.vocabulary[i["@id"].replace(l.a.settings.apiPath+"/@vocabularies/","")]:null)||(e=>e.widgetOptions&&e.widgetOptions.vocabulary?l.a.widgets.vocabulary[e.widgetOptions.vocabulary["@id"].replace(l.a.settings.apiPath+"/@vocabularies/","")]:null)(e)||(e=>{var t;return(null===(t=l.a.widgets.factory)||void 0===t?void 0:t[e])||null})(e.factory)||(n=e.type,l.a.widgets.type[n]||null)||b());var n,i,a,o;if("hidden"===e.mode)return null;const c=h(h({},e),(e=>{var t;return"object"===typeof(null===e||void 0===e||null===(t=e.frontendOptions)||void 0===t?void 0:t.widgetProps)?e.frontendOptions.widgetProps:null})(e.widgetOptions));if(e.onOrder){const{DropTarget:t,DragSource:n}=e.reactDnd,i=t("field",{hover(e,t){const s=t.getItem().order,n=e.order;s!==n&&(e.onOrder(s,n-s),t.getItem().order=n)}},e=>({connectDropTarget:e.dropTarget()}))(n("field",{beginDrag:e=>({id:e.label,order:e.order})},(e,t)=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}))(e=>{let{connectDropTarget:t,connectDragSource:n,connectDragPreview:i}=e,a=r()(e,p);return t(n(i(Object(d.jsx)("div",{children:Object(d.jsx)(s,h({},a))}))))}));return Object(d.jsx)(i,h({},c))}return Object(d.jsx)(s,h({},c))},m=Object(c.a)(["reactDnd"])(j),g=e=>e.onOrder?Object(d.jsx)(m,h({},e)):Object(d.jsx)(j,h({},e));g.defaultProps={widget:null,vocabulary:null,choices:null,type:"string",focus:!1,onOrder:null},t.a=Object(o.c)(g)},"Tr/i":function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("zpb6")),i=s("/MKj"),a=s("ANjH"),o=s("55Ip"),l=s("Ty5D"),c=s("It+4"),d=s("lHu7"),p=s("zSVi"),u=s("yE/o"),h=s("BOF4"),b=s.n(h),j=s("GGqY"),m=s("Kvkj"),g=s("9At1"),f=s("qaC+"),O=s.n(f),v=s("nKUr");const y=Object(d.defineMessages)({changePassword:{id:"Change Password",defaultMessage:"Change Password"},default:{id:"Default",defaultMessage:"Default"},oldPasswordTitle:{id:"Current password",defaultMessage:"Current password"},oldPasswordDescription:{id:"Enter your current password.",defaultMessage:"Enter your current password."},newPasswordTitle:{id:"New password",defaultMessage:"New password"},newPasswordDescription:{id:"Enter your new password. Minimum 5 characters.",defaultMessage:"Enter your new password. Minimum 5 characters."},newPasswordRepeatTitle:{id:"Confirm password",defaultMessage:"Confirm password"},newPasswordRepeatDescription:{id:"Re-enter the password. Make sure the passwords are identical.",defaultMessage:"Re-enter the password. Make sure the passwords are identical."},saved:{id:"Changes saved",defaultMessage:"Changes saved"},back:{id:"Back",defaultMessage:"Back"},success:{id:"Success",defaultMessage:"Success"}});class x extends n.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={isClient:!1}}componentDidMount(){this.setState({isClient:!0})}onSubmit(e){e.newPassword===e.newPasswordRepeat&&(this.props.updatePassword(this.props.userId,e.oldPassword,e.newPassword),j.toast.success(Object(v.jsx)(m.Ub,{success:!0,title:this.props.intl.formatMessage(y.success),content:this.props.intl.formatMessage(y.saved)})))}onCancel(){this.props.history.goBack()}render(){return Object(v.jsxs)(u.a,{id:"page-change-password",children:[Object(v.jsx)(r.d,{title:this.props.intl.formatMessage(y.changePassword)}),Object(v.jsx)(m.cb,{schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(y.default),fields:["oldPassword","newPassword","newPasswordRepeat"]}],properties:{oldPassword:{description:this.props.intl.formatMessage(y.oldPasswordDescription),title:this.props.intl.formatMessage(y.oldPasswordTitle),type:"string",widget:"password"},newPassword:{description:this.props.intl.formatMessage(y.newPasswordDescription),title:this.props.intl.formatMessage(y.newPasswordTitle),type:"string",widget:"password"},newPasswordRepeat:{description:this.props.intl.formatMessage(y.newPasswordRepeatDescription),title:this.props.intl.formatMessage(y.newPasswordRepeatTitle),type:"string",widget:"password"}},required:["oldPassword","newPassword","newPasswordRepeat"]},onSubmit:this.onSubmit,onCancel:this.onCancel,loading:this.props.loading}),this.state.isClient&&Object(v.jsx)(c.a,{node:document.getElementById("toolbar"),children:Object(v.jsx)(m.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(v.jsx)(o.a,{to:""+Object(r.r)(this.props.pathname),className:"item",children:Object(v.jsx)(m.jb,{name:O.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(y.back)})})})})]})}}t.a=Object(a.compose)(l.j,p.c,Object(i.connect)((e,t)=>({userId:e.userSession.token?b()(e.userSession.token).sub:"",loading:e.users.update_password.loading,pathname:t.location.pathname}),{updatePassword:g.yb}))(x)},U7Zw:function(e,t,s){"use strict";s("q1tI");var n=s("Pefm"),r=s("Ty5D"),i=s("55Ip"),a=s("lHu7"),o=s("52Oh"),l=s("8ZS8"),c=s("nKUr");const d=Object(a.defineMessages)({home:{id:"Home",defaultMessage:"Home"},root:{id:"Root",defaultMessage:"Root"}});t.a=e=>{var t;const{settings:s}=l.a,{items:a}=e,p=Object(o.a)(),u=Object(r.i)().pathname,h=u.split("/")[1];return Object(c.jsxs)(n.a,{children:[s.isMultilingual&&Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(i.a,{to:"/contents",className:"section",title:p.formatMessage(d.root),children:p.formatMessage(d.root)}),Object(c.jsx)(n.a.Divider,{})]}),s.isMultilingual&&(null===u||void 0===u||null===(t=u.split("/"))||void 0===t?void 0:t.length)>2&&Object(c.jsx)(i.a,{to:`/${h}/contents`,className:"section",title:p.formatMessage(d.home),children:h}),!s.isMultilingual&&Object(c.jsx)(i.a,{to:"/contents",className:"section",title:p.formatMessage(d.home),children:p.formatMessage(d.home)}),a.map((e,t,s)=>[Object(c.jsx)(n.a.Divider,{},"divider-"+e.url),t<s.length-1?Object(c.jsx)(i.a,{to:e.url+"/contents",className:"section",children:e.nav_title||e.title},e.url):Object(c.jsx)(n.a.Section,{active:!0,children:e.nav_title||e.title},e.url)])]})}},UFgG:function(e,t,s){"use strict";var n=s("QILm"),r=s.n(n),i=s("lSNA"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=(s("17x9"),s("lzXP")),d=s("TmQW"),p=s("nKUr");const u=["block","schema","value","onChange","errors","id"];function h(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function b(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?h(Object(s),!0).forEach((function(t){a()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const j=({block:e,data:t,index:s,schema:n,value:r,errors:i,onChange:a,onChangeBlock:l,id:c})=>t.fields.map((s,p)=>{var u;const h=(null===r||void 0===r?void 0:r[s])||n.properties[s].defaultValue;return Object(o.createElement)(d.a,b(b({},n.properties[s]),{},{id:`${s}-${p}-${c}`,fieldSet:t.title.toLowerCase(),block:e,value:h,objectvalue:r,required:-1!==(null===(u=n.required)||void 0===u?void 0:u.indexOf(s)),onChange:(e,t)=>a(c,b(b({},r),{},{[s]:t})),key:s,error:null===i||void 0===i?void 0:i[s],title:n.properties[s].title,onChangeBlock:l}))}),m=e=>{let{block:t,schema:s,value:n,onChange:i,errors:a={},id:o}=e;r()(e,u);const d=l.a.useCallback((e,r)=>({menuItem:e.title,render:()=>Object(p.jsx)(c.a.Pane,{children:Object(p.jsx)(j,{block:t,data:e,index:r,schema:s,errors:a,value:n,onChange:i,id:o})})}),[t,a,o,i,s,n]);return 1===s.fieldsets.length?Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(j,{block:t,data:s.fieldsets[0],index:0,schema:s,errors:a,value:n,onChange:i,id:o})}):Object(p.jsx)(c.a,{panes:s.fieldsets.map(d)})};m.defaultProps={value:null},t.a=m},UPfn:function(e,t,s){"use strict";s.d(t,"a",(function(){return R}));var n=s("vLxO"),r=s.n(n),i=s("K+a1"),a=s.n(i),o=s("GhEF"),l=s.n(o),c=s("ONxa"),d=s.n(c),p=s("zdp0"),u=s.n(p),h=s("el2M"),b=s.n(h),j=s("SoYb"),m=s.n(j),g=s("FX0u"),f=s.n(g),O=s("YIVY"),v=s.n(O),y=s("n2F9"),x=s.n(y),w=s("Q8rs"),C=s.n(w),S=s("4fDH"),M=s.n(S),k=s("m72t"),N=s.n(k),P=s("bzW1"),L=s.n(P),D=s("b6H7"),E=s.n(D),T=s("Q5oq"),I=s.n(T),A=s("J/R/");const R={default:s.n(A).a,"dexterity-types":r.a,"date-and-time":a.a,language:l.a,mail:d.a,navigation:u.a,site:b.a,search:m.a,socialmedia:f.a,editing:v.a,imaging:x.a,markup:C.a,"moderate-comments":M.a,security:N.a,users:E.a,groups:L.a,addons:I.a}},UllI:function(e,t,s){"use strict";var n=s("7GkX"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("/MKj")),c=s("ANjH"),d=s("2HEh"),p=s("lHu7"),u=s("zSVi"),h=s("GGqY"),b=s("Kvkj"),j=s("5SMn"),m=s.n(j),g=s("9At1"),f=s("zpb6"),O=s("8ZS8"),v=s("nKUr");const y=Object(p.defineMessages)({personalPreferences:{id:"Personal Preferences",defaultMessage:"Personal Preferences"},default:{id:"Default",defaultMessage:"Default"},language:{id:"Language",defaultMessage:"Language"},languageDescription:{id:"Your preferred language",defaultMessage:"Your preferred language"},saved:{id:"Changes saved",defaultMessage:"Changes saved"},back:{id:"Back",defaultMessage:"Back"},success:{id:"Success",defaultMessage:"Success"}});class x extends o.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this)}onSubmit(e){let t=e.language||"en";if(O.a.settings.supportedLanguages.includes(t)){const e=Object(f.S)(t);s("Zbgq")("./"+e+".json").then(e=>{this.props.changeLanguage(t,e.default)})}h.toast.success(Object(v.jsx)(b.Ub,{success:!0,title:this.props.intl.formatMessage(y.saved)})),this.props.closeMenu()}onCancel(){this.props.closeMenu()}render(){const{cookies:e}=this.props;return Object(v.jsx)(b.cb,{formData:{language:e.get("I18N_LANGUAGE")||""},schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(y.default),fields:["language"]}],properties:{language:{description:this.props.intl.formatMessage(y.languageDescription),title:this.props.intl.formatMessage(y.language),type:"string",choices:a()(r()(m.a),e=>[e,m.a[e]])}},required:[]},onSubmit:this.onSubmit,onCancel:this.onCancel})}}t.a=Object(c.compose)(u.c,d.a,Object(l.connect)(null,{changeLanguage:g.d}))(x)},"UpT+":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("QILm"),a=s.n(i),o=(s("q1tI"),s("17x9"),s("zpb6")),l=s("XrlW"),c=s.n(l),d=s("nKUr");const p=["item","size","alt"];function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}t.a=function(e){const{item:t,size:s="preview",alt:n}=e,i=a()(e,p),l=t.image_field?Object(o.q)(`${t["@id"]}/@@images/${t.image_field}/${s}`):c.a;return Object(d.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({src:l,alt:null!==n&&void 0!==n?n:t.title},i))}},UsXw:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("QetY")),o=s("lzXP"),l=s("/MKj"),c=s("ANjH"),d=s("2HEh"),p=s("lHu7"),u=s("zSVi"),h=s("TSYQ"),b=s.n(h),j=s("zpb6"),m=s("Kvkj"),g=s("tfRe"),f=s.n(g),O=s("9At1"),v=s("GWVt"),y=s.n(v),x=s("6fhb"),w=s.n(x),C=s("8ZS8"),S=s("nKUr");const M=Object(p.defineMessages)({document:{id:"Document",defaultMessage:"Document"},block:{id:"Block",defaultMessage:"Block"},settings:{id:"Settings",defaultMessage:"Settings"},shrinkSidebar:{id:"Shrink sidebar",defaultMessage:"Shrink sidebar"},expandSidebar:{id:"Expand sidebar",defaultMessage:"Expand sidebar"}});class k extends i.Component{constructor(e){super(e);const{cookies:t}=e;this.onToggleExpanded=this.onToggleExpanded.bind(this),this.onToggleFullSize=this.onToggleFullSize.bind(this),this.onTabChange=this.onTabChange.bind(this),this.state={expanded:"false"!==t.get("sidebar_expanded"),size:0,showFull:!0,showFullToolbarExpanded:!0}}onToggleExpanded(){const{cookies:e}=this.props;e.set("sidebar_expanded",!this.state.expanded,{expires:new Date((new Date).getTime()+1e3*C.a.settings.cookieExpires),path:"/"}),this.setState({expanded:!this.state.expanded}),this.resetFullSizeSidebar()}resetFullSizeSidebar(){if(!this.state.expanded){const e=document.querySelector("#sidebar").getElementsByClassName("sidebar-container")[0];e.classList.remove("full-size"),e.classList.remove("no-toolbar"),this.setState({showFull:!0})}}onToggleFullSize(){const e=document.querySelector("#sidebar").getElementsByClassName("sidebar-container")[0];this.state.showFull?(e.classList.add("full-size"),this.props.toolbarExpanded?e.classList.remove("no-toolbar"):e.classList.add("no-toolbar")):(e.classList.remove("full-size"),e.classList.remove("no-toolbar")),this.setState(e=>({showFull:!e.showFull}))}onTabChange(e,t){e.nativeEvent.stopImmediatePropagation(),this.props.setSidebarTab(t.activeIndex)}render(){const{expanded:e}=this.state;return Object(S.jsxs)(i.Fragment,{children:[Object(S.jsx)(j.b,{className:e?"has-sidebar":"has-sidebar-collapsed"}),Object(S.jsxs)("div",{className:b()("sidebar-container",{collapsed:!e}),style:this.state.size>0?{width:this.state.size}:null,children:[Object(S.jsx)(a.a,{"aria-label":e?this.props.intl.formatMessage(M.shrinkSidebar):this.props.intl.formatMessage(M.expandSidebar),className:this.props.content&&this.props.content.review_state?this.props.content.review_state+" trigger":"trigger",onClick:this.onToggleExpanded}),Object(S.jsx)(a.a,{className:"full-size-sidenav-btn",onClick:this.onToggleFullSize,"aria-label":"full-screen-sidenav",children:Object(S.jsx)(m.jb,{className:"full-size-icon",name:this.state.showFull?y.a:w.a})}),Object(S.jsx)(o.a,{menu:{secondary:!0,pointing:!0,attached:!0,tabular:!0,className:"formtabs"},className:"tabs-wrapper",renderActiveOnly:!1,activeIndex:this.props.tab,onTabChange:this.onTabChange,panes:[!!this.props.documentTab&&{menuItem:this.props.intl.formatMessage(M.document),pane:Object(S.jsx)(o.a.Pane,{className:"tab-wrapper",id:"sidebar-metadata"},"metadata")},!!this.props.blockTab&&{menuItem:this.props.intl.formatMessage(M.block),pane:Object(S.jsx)(o.a.Pane,{className:"tab-wrapper",id:"sidebar-properties",children:Object(S.jsx)(m.jb,{className:"tab-forbidden",name:f.a,size:"48px"})},"properties")},!!this.props.settingsTab&&{menuItem:this.props.intl.formatMessage(M.settings),pane:Object(S.jsx)(o.a.Pane,{className:"tab-wrapper",id:"sidebar-settings",children:Object(S.jsx)(m.jb,{className:"tab-forbidden",name:f.a,size:"48px"})},"settings")}].filter(e=>e)})]}),Object(S.jsx)("div",{className:this.state.expanded?"pusher expanded":"pusher"})]})}}r()(k,"defaultProps",{documentTab:!0,blockTab:!0,settingsTab:!1}),t.a=Object(c.compose)(u.c,d.a,Object(l.connect)(e=>({tab:e.sidebar.tab,toolbarExpanded:e.toolbar.expanded}),{setSidebarTab:O.ob}))(k)},V5N0:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s("ANjH"),o=(s("17x9"),s("umxb")),l=s("QetY"),c=s("Kvkj"),d=s("zpb6"),p=s("3tf8"),u=s("1Jxj"),h=s.n(u),b=s("zdp0"),j=s.n(b),m=s("nKUr");function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const O=e=>{const{id:t,onChange:s,onBlur:n,onClick:r,minLength:a,maxLength:p}=e,u="field-"+t,[b,g]=Object(i.useState)(Object(d.q)(e.value)),[O,v]=Object(i.useState)(!1),y=e=>{var n;let r=e;(null===(n=r)||void 0===n?void 0:n.length)>0&&(O&&d.f.isUrl(d.f.normalizeUrl(r))&&v(!1),Object(d.L)(r)&&(r=Object(d.q)(r))),g(r),r=Object(d.L)(r)?Object(d.g)(r):r,!Object(d.L)(r)&&r.length>0&&(d.f.isMail(d.f.normaliseMail(r))?r=d.f.normaliseMail(r):d.f.isTelephone(r)?r=d.f.normalizeTelephone(r):(r=d.f.normalizeUrl(r),d.f.isUrl(r)||v(!0))),s(t,""===r?void 0:r)};return Object(m.jsx)(c.db,f(f({},e),{},{className:"url wide",children:Object(m.jsxs)("div",{className:"wrapper",children:[Object(m.jsx)(o.a,{id:u,name:t,type:"url",value:b||"",onChange:({target:e})=>y(e.value),onBlur:({target:e})=>n(t,""===e.value?void 0:e.value),onClick:()=>r(),minLength:a||null,maxLength:p||null,error:O}),(null===b||void 0===b?void 0:b.length)>0?Object(m.jsx)(l.a.Group,{children:Object(m.jsx)(l.a,{basic:!0,className:"cancel","aria-label":"clearUrlBrowser",onClick:e=>{e.preventDefault(),e.stopPropagation(),g(""),s(t,void 0)},children:Object(m.jsx)(c.jb,{name:h.a,size:"30px"})})}):Object(m.jsx)(l.a.Group,{children:Object(m.jsx)(l.a,{basic:!0,icon:!0,"aria-label":"openUrlBrowser",onClick:t=>{t.preventDefault(),t.stopPropagation(),e.openObjectBrowser({mode:"link",overlay:!0,onSelectItem:e=>{y(e)}})},children:Object(m.jsx)(c.jb,{name:j.a,size:"24px"})})})]})}))};O.defaultProps={description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},minLength:null,maxLength:null},t.a=Object(a.compose)(p.a)(O)},VCTy:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("lHu7")),a=s("zSVi"),o=s("yE/o"),l=s("5XkN"),c=s("8ZS8"),d=s("zpb6"),p=s("nKUr");const u=Object(i.defineMessages)({unknownBlock:{id:"Unknown Block",defaultMessage:"Unknown Block {block}"}});t.a=Object(a.c)(({content:e,intl:t,location:s})=>{const n=Object(d.t)(e),i=Object(d.u)(e);return Object(d.I)(e)?Object(p.jsx)("div",{id:"page-document",className:"ui container",children:r()(e[i].items,r=>{var i,a,o,l,h;const b=(null===(i=c.a.blocks.blocksConfig[null===(a=e[n])||void 0===a||null===(o=a[r])||void 0===o?void 0:o["@type"]])||void 0===i?void 0:i.view)||null;return null!==b?Object(p.jsx)(b,{id:r,properties:e,data:e[n][r],path:Object(d.r)((null===s||void 0===s?void 0:s.pathname)||"")},r):Object(p.jsx)("div",{children:t.formatMessage(u.unknownBlock,{block:null===(l=e[n])||void 0===l||null===(h=l[r])||void 0===h?void 0:h["@type"]})},r)})}):Object(p.jsxs)(o.a,{id:"page-document",children:[Object(p.jsx)("h1",{className:"documentFirstHeading",children:e.title}),e.description&&Object(p.jsx)("p",{className:"documentDescription",children:e.description}),e.image&&Object(p.jsx)(l.a,{className:"document-image",src:e.image.scales.thumb.download,floated:"right"}),e.remoteUrl&&Object(p.jsxs)("span",{children:["The link address is:",Object(p.jsx)("a",{href:e.remoteUrl,children:e.remoteUrl})]}),e.text&&Object(p.jsx)("div",{dangerouslySetInnerHTML:{__html:e.text.data}})]})})},VEpf:function(e,t,s){"use strict";s("q1tI");var n=s("pLir"),r=s("24R3"),i=s("zSVi"),a=s("Kvkj"),o=s("DQaE"),l=s.n(o),c=s("sx21"),d=s.n(c),p=s("NHNY"),u=s.n(p),h=s("53Vz"),b=s.n(h),j=s("nKUr");t.a=Object(i.c)(({item:e,path:t,onEdit:s,onDelete:i,onLayout:o,onSchema:c})=>Object(j.jsx)(n.a,{icon:"ellipsis horizontal",className:"actions-"+e.id,children:Object(j.jsxs)(n.a.Menu,{className:"left",children:[Object(j.jsxs)(n.a.Item,{onClick:s,value:`${t}/${e.id}`,className:"edit-"+e.id,children:[Object(j.jsx)(a.jb,{name:b.a,size:"15px"}),Object(j.jsx)(r.a,{id:"Edit",defaultMessage:"Edit"})]}),Object(j.jsxs)(n.a.Item,{onClick:c,value:e.id,children:[Object(j.jsx)(a.jb,{name:u.a,size:"15px"}),Object(j.jsx)(r.a,{id:"Schema",defaultMessage:"Schema"})]}),Object(j.jsxs)(n.a.Item,{onClick:o,value:`${t}/${e.id}/layout`,className:"layout-"+e.id,children:[Object(j.jsx)(a.jb,{name:d.a,size:"15px"}),Object(j.jsx)(r.a,{id:"Layout",defaultMessage:"Layout"})]}),Object(j.jsxs)(n.a.Item,{onClick:i,value:e["@id"],className:"delete-"+e.id,children:[Object(j.jsx)(a.jb,{name:l.a,size:"15px"}),Object(j.jsx)(r.a,{id:"Delete",defaultMessage:"Delete"})]})]})}))},Vgzb:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("lHu7")),a=s("zSVi"),o=s("Kvkj"),l=s("QetY"),c=s("5vrk"),d=s.n(c),p=s("e1uu"),u=s.n(p),h=s("VlLU"),b=s.n(h),j=s("NQu7"),m=s.n(j),g=s("nKUr");function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function O(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const v=Object(i.defineMessages)({left:{id:"Left",defaultMessage:"Left"},right:{id:"Right",defaultMessage:"Right"},center:{id:"Center",defaultMessage:"Center"},full:{id:"Full",defaultMessage:"Full"}});t.a=Object(a.c)(({align:e,onChangeBlock:t,data:s,intl:n,block:r})=>{function i(e){t(r,O(O({},s),{},{align:e}))}return Object(g.jsxs)("div",{children:[Object(g.jsx)(l.a.Group,{children:Object(g.jsx)(l.a,{icon:!0,basic:!0,"aria-label":n.formatMessage(v.left),onClick:()=>i("left"),active:"left"===s.align,children:Object(g.jsx)(o.jb,{name:d.a,size:"24px"})})}),Object(g.jsx)(l.a.Group,{children:Object(g.jsx)(l.a,{icon:!0,basic:!0,"aria-label":n.formatMessage(v.right),onClick:()=>i("right"),active:"right"===s.align,children:Object(g.jsx)(o.jb,{name:u.a,size:"24px"})})}),Object(g.jsx)(l.a.Group,{children:Object(g.jsx)(l.a,{icon:!0,basic:!0,"aria-label":n.formatMessage(v.center),onClick:()=>i("center"),active:"center"===s.align||!s.align,children:Object(g.jsx)(o.jb,{name:b.a,size:"24px"})})}),Object(g.jsx)(l.a.Group,{children:Object(g.jsx)(l.a,{icon:!0,basic:!0,"aria-label":n.formatMessage(v.full),onClick:()=>i("full"),active:"full"===s.align,children:Object(g.jsx)(o.jb,{name:m.a,size:"24px"})})})]})})},VjUS:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M15 25L31 25 31 23 15 23zM17 19L29 19 29 17 17 17zM19 13L27 13 27 11 19 11zM15.707 12.293L10 6.586 4.293 12.293 5.707 13.707 9 10.414 9 29 11 29 11 10.414 14.293 13.707z"/></g>'}},VlLU:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path fill-rule="nonzero" d="M7,13 L9,11 L9,25 L7,23 L29,23 L27,25 L27,11 L29,13 L7,13 Z M29,11 L29,25 L7,25 L7,11 L29,11 Z"/><path d="M7 31L29 31 29 29 7 29zM7 7L29 7 29 5 7 5z"/></g>'}},VnOj:function(e,t,s){e.exports=s.p+"static/media/block-maps.731e84f6.svg"},WUZh:function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("55Ip"),o=s("It+4"),l=s("yE/o"),c=s("3mGJ"),d=s("TbSc"),p=s("ikXu"),u=s("Mt1y"),h=s("lHu7"),b=s("24R3"),j=s("zSVi"),m=s("9At1"),g=s("zpb6"),f=s("Kvkj"),O=s("qaC+"),v=s.n(O),y=s("nKUr");const x=Object(h.defineMessages)({back:{id:"Back",defaultMessage:"Back"}});class w extends n.Component{constructor(e){super(e),this.state={isClient:!1}}componentDidMount(){this.props.getDatabaseInformation(),this.setState({isClient:!0})}render(){return this.props.databaseInformation?Object(y.jsxs)(l.a,{id:"database-page",className:"controlpanel-database",children:[Object(y.jsx)(g.d,{title:"DatabaseInformation"}),Object(y.jsxs)(c.a.Group,{raised:!0,children:[Object(y.jsx)(c.a,{className:"primary",children:Object(y.jsx)(b.a,{id:"Database Information",defaultMessage:"Database Information"})}),Object(y.jsx)(c.a,{children:Object(y.jsx)(d.a,{children:Object(y.jsx)(b.a,{id:"The Database Manager allow you to view database status information",defaultMessage:"The Database Manager allow you to view database status information"})})}),Object(y.jsxs)(c.a,{children:[Object(y.jsx)(d.a,{children:Object(y.jsx)(d.a.Header,{children:Object(y.jsx)(b.a,{id:"Database main",defaultMessage:"Database main"})})}),Object(y.jsx)(p.a,{celled:!0,padded:!0,columns:"2",children:Object(y.jsxs)(p.a.Body,{children:[Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Database Location",defaultMessage:"Database Location"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.db_name})]}),Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Database Size",defaultMessage:"Database Size"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.database_size})]}),Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Total number of objects in the database",defaultMessage:"Total number of objects in the database"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.db_size})]}),Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Total number of objects in memory from all caches",defaultMessage:"Total number of objects in memory from all caches"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.cache_size})]}),Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Target number of objects in memory per cache",defaultMessage:"Target number of objects in memory per cache"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.cache_length})]}),Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:Object(y.jsx)(b.a,{id:"Target memory size per cache in bytes",defaultMessage:"Target memory size per cache in bytes"})}),Object(y.jsx)(p.a.Cell,{children:this.props.databaseInformation.cache_length_bytes})]})]})})]}),Object(y.jsxs)(c.a,{children:[Object(y.jsx)(u.a,{}),Object(y.jsx)(d.a,{children:Object(y.jsx)(d.a.Header,{children:Object(y.jsx)(b.a,{id:"Total number of objects in each cache",defaultMessage:"Total number of objects in each cache"})})}),Object(y.jsxs)(p.a,{celled:!0,padded:!0,children:[Object(y.jsx)(p.a.Header,{children:Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.HeaderCell,{children:Object(y.jsx)(b.a,{id:"Cache Name",defaultMessage:"Cache Name"})}),Object(y.jsx)(p.a.HeaderCell,{children:Object(y.jsx)(b.a,{id:"Number of active objects",defaultMessage:"Number of active objects"})}),Object(y.jsx)(p.a.HeaderCell,{children:Object(y.jsx)(b.a,{id:"Total active and non-active objects",defaultMessage:"Total active and non-active objects"})})]})}),this.props.databaseInformation.cache_detail_length.map(e=>Object(y.jsxs)(p.a.Row,{children:[Object(y.jsx)(p.a.Cell,{children:e.connection}),Object(y.jsx)(p.a.Cell,{children:e.ngsize}),Object(y.jsx)(p.a.Cell,{children:e.size})]}))]})]})]}),this.state.isClient&&Object(y.jsx)(o.a,{node:document.getElementById("toolbar"),children:Object(y.jsx)(f.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(y.jsx)(y.Fragment,{children:Object(y.jsx)(a.a,{to:"/controlpanel",className:"item",children:Object(y.jsx)(f.jb,{name:v.a,"aria-label":this.props.intl.formatMessage(x.back),className:"contents circled",size:"30px",title:this.props.intl.formatMessage(x.back)})})})})})]}):null}}t.a=Object(i.compose)(j.c,Object(r.connect)((e,t)=>({databaseInformation:e.controlpanels.databaseinformation,pathname:t.location.pathname}),{getDatabaseInformation:m.v}))(w)},WZVz:function(e,t,s){"use strict";var n=s("Lf35");s.d(t,"a",(function(){return n.b}))},Wiaw:function(e,t,s){"use strict";(function(e){s("3WF5"),s("24Ii"),s("Rwuk"),s("zpb6"),s("8ZS8")}).call(this,s("tjlA").Buffer)},Wl3A:function(e,t,s){"use strict";s.d(t,"b",(function(){return v})),s.d(t,"a",(function(){return y}));var n=s("zZ0H"),r=s.n(n),i=s("9UKM"),a=s.n(i),o=s("d8FT"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("3tWz"),u=s.n(p),h=s("Z0cm"),b=s.n(h),j=s("NIJN"),m=s.n(j),g=s("wig9"),f=s.n(g),O=s("rXsB");function v(e,t,s=null){let n=[];t=l()(t,r.a);const i=l()(t,e=>b()(e));n=m()(n,t?u()(d()(a()(l()(t,e=>!b()(e))),e=>("SearchableText"===e[0]&&(e[1]=e[1]+"*"),u()(e,"="))),"&"):""),n=m()(n,i?u()(d()(l()(i),(e,t)=>u()(e.map(e=>`${t}:list=${e}`),"&")),"&"):"");const o=u()(f()(n),"&");return{type:O.sb,subrequest:s,request:{op:"get",path:`${e}/@search${o?"?"+o:""}`}}}function y(e=null){return{type:O.qb,subrequest:e}}},X2qy:function(e,t,s){"use strict";s.d(t,"g",(function(){return S})),s.d(t,"h",(function(){return M})),s.d(t,"i",(function(){return k})),s.d(t,"c",(function(){return N})),s.d(t,"f",(function(){return P})),s.d(t,"k",(function(){return L})),s.d(t,"e",(function(){return D})),s.d(t,"a",(function(){return E})),s.d(t,"l",(function(){return T})),s.d(t,"j",(function(){return I})),s.d(t,"d",(function(){return A})),s.d(t,"m",(function(){return R})),s.d(t,"n",(function(){return _})),s.d(t,"o",(function(){return q})),s.d(t,"b",(function(){return F}));var n=s("QILm"),r=s.n(n),i=s("lSNA"),a=s.n(i),o=s("7GkX"),l=s.n(o),c=s("J2m7"),d=s.n(c),p=s("gb7j"),u=s.n(p),h=s("Wt1U"),b=s.n(h),j=s("Puqe"),m=s.n(j),g=s("aFK9"),f=s.n(g),O=s("EcEN"),v=s("8ZS8"),y=s("zpb6");const x=["data","intl"];function w(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function C(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?w(Object(s),!0).forEach((function(t){a()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function S(e){return d()(l()(e),e=>"volto.blocks"!==e&&u()(e,"blocks"))||null}function M(e){return d()(l()(e),e=>"volto.blocks"!==e&&u()(e,"blocks_layout"))||null}function k(e){return void 0!==d()(l()(e),e=>"volto.blocks"!==e&&u()(e,"blocks"))}function N(e){var t;const{blocks:s}=v.a,n=e["@type"],r=null===(t=s.blocksConfig[n])||void 0===t?void 0:t.blockHasValue;return!r||r(e)}const P=e=>{var t,s;const n=S(e),r=M(e);return(null===(t=e[r])||void 0===t||null===(s=t.items)||void 0===s?void 0:s.map(t=>[t,e[n][t]]))||[]};function L(e,t,s){const n=M(e);return C(C({},e),{},{[n]:{items:f()(e[n].items,t,s)}})}function D(e,t){const s=S(e),n=M(e);let r=C(C({},e),{},{[n]:{items:b()(e[n].items,t)},[s]:m()(e[s],[t])});return 0===r[n].items.length&&(r=E(r,v.a.settings.defaultBlockType,0)),r}function E(e,t,s){const{settings:n}=v.a,r=Object(O.v4)(),i=Object(O.v4)(),a=S(e),o=M(e),l=e[o].items.length,c=-1===s?l:s;return[r,C(C({},e),{},{[o]:{items:[...e[o].items.slice(0,c),r,...t!==n.defaultBlockType?[i]:[],...e[o].items.slice(c)]},[a]:C(C({},e[a]),{},{[r]:{"@type":t}},t!==n.defaultBlockType&&{[i]:{"@type":n.defaultBlockType}}),selected:r})]}function T(e,t,s){const{settings:n}=v.a,r=S(e),i=M(e),a=e[i].items.indexOf(t)+1,o=e[i].items[a];if(o){if(!N(e[r][o]))return C(C({},e),{},{[r]:C(C({},e[r]),{},{[t]:s||null})})}const l=Object(O.v4)();return C(C({},e),{},{[r]:C(C({},e[r]),{},{[t]:s||null,[l]:{"@type":n.defaultBlockType}}),[i]:{items:[...e[i].items.slice(0,a),l,...e[i].items.slice(a)]}})}function I(e,t,s,n={}){const r=S(e),i=M(e),a=e[i].items.indexOf(t),o=Object(O.v4)();return[o,C(C({},e),{},{[r]:C(C({},e[r]),{},{[o]:s||null,[t]:C(C({},e[r][t]),n)}),[i]:{items:[...e[i].items.slice(0,a),o,...e[i].items.slice(a)]}})]}function A(e,t,s){const n=S(e);return C(C({},e),{},{[n]:C(C({},e[n]),{},{[t]:s||null})})}function R(e,t){const s=M(e),n=e[s].items.indexOf(t);if(n===e[s].items.length-1)return null;const r=n+1;return e[s].items[r]}function _(e,t){const s=M(e),n=e[s].items.indexOf(t);if(0===n)return null;const r=n-1;return e[s].items[r]}function q(e,t){const s=P(e);for(;s.length>0;){const[e,n]=s.shift();t([e,n]),Object.keys(n||{}).indexOf("blocks")>-1&&s.push(...P(n)),Object.keys((null===n||void 0===n?void 0:n.data)||{}).indexOf("blocks")>-1&&s.push(...P(n.data))}}function F(e,t){let{data:s,intl:n}=e,i=r()(e,x);const a=s["@type"],{blockSchema:o}=(t||v.a.blocks.blocksConfig)[a]||{};if(!o)return s;let l="function"===typeof o?o(C({data:s,intl:n},i)):o;return l=Object(y.j)({schema:l,formData:s,intl:n}),function({data:e={},schema:t}){return C(C({},Object.keys(t.properties).reduce((e,s)=>t.properties[s].default?C(C({},e),{},{[s]:t.properties[s].default}):e,{})),e)}({data:s,schema:l})}},X6Bh:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("55Ip"),r=s("yE/o"),i=s("ikXu"),a=s("24R3"),o=s("nKUr");t.a=({content:e})=>Object(o.jsx)(r.a,{className:"view-wrapper",children:Object(o.jsxs)("article",{id:"content",children:[Object(o.jsxs)("header",{children:[Object(o.jsx)("h1",{className:"documentFirstHeading",children:e.title}),e.description&&Object(o.jsx)("p",{className:"documentDescription",children:e.description})]}),Object(o.jsx)("section",{id:"content-core",children:Object(o.jsxs)(i.a,{celled:!0,padded:!0,children:[Object(o.jsx)(i.a.Header,{children:Object(o.jsxs)(i.a.Row,{children:[Object(o.jsx)(i.a.HeaderCell,{children:Object(o.jsx)(a.a,{id:"Title",defaultMessage:"Title"})}),Object(o.jsx)(i.a.HeaderCell,{children:Object(o.jsx)(a.a,{id:"Description",defaultMessage:"Description"})}),Object(o.jsx)(i.a.HeaderCell,{children:Object(o.jsx)(a.a,{id:"Type",defaultMessage:"Type"})}),Object(o.jsx)(i.a.HeaderCell,{children:Object(o.jsx)(a.a,{id:"State",defaultMessage:"State"})})]})}),Object(o.jsx)(i.a.Body,{children:e.items.map(e=>Object(o.jsxs)(i.a.Row,{children:[Object(o.jsx)(i.a.Cell,{children:Object(o.jsx)(n.a,{to:e.url,className:"summary url",title:e["@type"],children:e.title})}),Object(o.jsx)(i.a.Cell,{children:e.description}),Object(o.jsx)(i.a.Cell,{children:e["@type"]}),Object(o.jsx)(i.a.Cell,{children:e.review_state})]},e.url))})]})})]})})},XBDg:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("17x9"),s("q1tI")),a=s("24R3"),o=s("zSVi"),l=s("ikXu"),c=s("T5N5"),d=s("pLir"),p=s("DQaE"),u=s.n(p),h=s("DP9c"),b=s.n(h),j=s("Kvkj"),m=s("nKUr");class g extends i.Component{constructor(e){super(e),r()(this,"isAuthGroup",e=>this.props.inheritedRole.includes(e)),this.onChange=this.onChange.bind(this)}onChange(e,{value:t}){const[s,n]=t.split(".");this.props.updateGroups(s,n)}render(){return Object(m.jsxs)(l.a.Row,{children:[Object(m.jsx)(l.a.Cell,{children:this.props.group.groupname}),this.props.roles.map(e=>Object(m.jsx)(l.a.Cell,{children:this.props.inheritedRole&&this.props.inheritedRole.includes(e.id)&&this.props.group.roles.includes("Authenticated")?Object(m.jsx)(j.jb,{name:b.a,size:"20px",color:"#007EB1",title:"plone-svg"}):Object(m.jsx)(c.a,{checked:"AuthenticatedUsers"===this.props.group.id?this.isAuthGroup(e.id):this.props.group.roles.includes(e.id),onChange:this.onChange,value:`${this.props.group.id}.${e.id}`})},e.id)),Object(m.jsx)(l.a.Cell,{textAlign:"right",children:Object(m.jsx)(d.a,{icon:"ellipsis horizontal",children:Object(m.jsx)(d.a.Menu,{className:"left",children:Object(m.jsxs)(d.a.Item,{onClick:this.props.onDelete,value:this.props.group["@id"],children:[Object(m.jsx)(j.jb,{name:u.a,size:"15px"}),Object(m.jsx)(a.a,{id:"Delete",defaultMessage:"Delete"})]})})})})]},this.props.group.title)}}t.a=Object(o.c)(g)},XXUR:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M27.1318,7.333 C24.4028,4.604 19.9618,4.604 17.2328,7.333 L12.9898,11.576 C11.8428,12.723 11.1288,14.248 10.9778,15.871 C10.8228,17.541 11.2708,19.211 12.2378,20.576 C12.4818,20.919 12.7278,21.213 12.9888,21.475 C13.7848,22.271 14.7778,22.868 15.8608,23.202 C16.5498,23.415 17.2548,23.519 17.9518,23.518 C19.7808,23.518 21.5598,22.804 22.8888,21.475 L23.9498,20.414 L22.5358,19 L21.4748,20.061 C20.1648,21.371 18.2388,21.842 16.4498,21.291 C15.6668,21.049 14.9778,20.635 14.4038,20.061 C14.2218,19.879 14.0478,19.668 13.8698,19.418 C13.1778,18.443 12.8588,17.249 12.9688,16.056 C13.0768,14.896 13.5868,13.808 14.4038,12.99 L18.6468,8.747 C20.5958,6.798 23.7688,6.798 25.7178,8.747 C26.6568,9.687 27.1748,10.942 27.1748,12.283 C27.1748,13.623 26.6568,14.878 25.7178,15.818 L27.1318,17.232 C28.4488,15.915 29.1748,14.157 29.1748,12.283 C29.1748,10.408 28.4488,8.65 27.1318,7.333"/><path d="M25.0107,16.5254 C24.2147,15.7294 23.2217,15.1324 22.1387,14.7984 C19.6417,14.0284 16.9477,14.6894 15.1107,16.5254 L14.0507,17.5864 L15.4647,19.0004 L16.5247,17.9394 C17.8357,16.6294 19.7587,16.1554 21.5497,16.7094 C22.3337,16.9514 23.0217,17.3644 23.5957,17.9394 C23.7777,18.1214 23.9527,18.3314 24.1307,18.5824 C24.8217,19.5564 25.1417,20.7514 25.0317,21.9444 C24.9237,23.1034 24.4137,24.1924 23.5957,25.0104 L19.3537,29.2534 C17.4047,31.2024 14.2317,31.2024 12.2817,29.2534 C11.3427,28.3134 10.8247,27.0574 10.8247,25.7174 C10.8247,24.3774 11.3427,23.1214 12.2817,22.1824 L10.8677,20.7684 C9.5507,22.0854 8.8247,23.8424 8.8247,25.7174 C8.8247,27.5924 9.5507,29.3504 10.8677,30.6674 C12.2327,32.0314 14.0257,32.7134 15.8177,32.7134 C17.6107,32.7134 19.4027,32.0314 20.7677,30.6674 L25.0107,26.4244 C26.1567,25.2774 26.8717,23.7524 27.0227,22.1294 C27.1777,20.4594 26.7297,18.7894 25.7617,17.4244 C25.5177,17.0814 25.2717,16.7874 25.0107,16.5254"/></g>'}},XYu4:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M19 5L17 5 9 5 9 9 11 9 11 7 17 7 17 29 15 29 15 31 17 31 19 31 21 31 21 29 19 29 19 7 25 7 25 9 27 9 27 5z"/>'}},XrlW:function(e,t,s){e.exports=s.p+"static/media/default-image.9451b251.svg"},XvJD:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("55Ip"),c=s("Ty5D"),d=s("zpb6"),p=s("yE/o"),u=s("lHu7"),h=s("24R3"),b=s("zSVi"),j=s("Kvkj"),m=s("9At1"),g=s("nKUr");const f=Object(u.defineMessages)({title:{id:"Set your password",defaultMessage:"Set your password"},description:{id:"Please fill out the form below to set your password.",defaultMessage:"Please fill out the form below to set your password."},default:{id:"Default",defaultMessage:"Default"},fullnameTitle:{id:"Full Name",defaultMessage:"Full Name"},fullnameDescription:{id:"Enter full name, e.g. John Smith.",defaultMessage:"Enter full name, e.g. John Smith."},emailTitle:{id:"My email address is",defaultMessage:"My email address is"},emailDescription:{id:"Enter your email address for verification.",defaultMessage:"Enter your email address for verification."},passwordTitle:{id:"New password",defaultMessage:"New password"},passwordDescription:{id:"Enter your new password. Minimum 5 characters.",defaultMessage:"Enter your new password. Minimum 5 characters."},passwordRepeatTitle:{id:"Confirm password",defaultMessage:"Confirm password"},passwordsDoNotMatch:{id:"Passwords do not match.",defaultMessage:"Passwords do not match."},mailDoNotMatch:{id:"E-mail addresses do not match.",defaultMessage:"E-mail addresses do not match."},passwordRepeatDescription:{id:"Re-enter the password. Make sure the passwords are identical.",defaultMessage:"Re-enter the password. Make sure the passwords are identical."},setMyPassword:{id:"Set my password",defaultMessage:"Set my password"},successRedirectToLoginTitle:{id:"Account activation completed",defaultMessage:"Account activation completed"},successRedirectToLoginBody:{id:"Your password has been set successfully. You may now {link} with your new password.",defaultMessage:"Your password has been set successfully. You may now {link} with your new password."},passwordReset:{id:"Password reset",defaultMessage:"Password reset"}});class O extends i.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={error:null,isSuccessful:!1}}UNSAFE_componentWillReceiveProps(e){this.props.loading&&e.loaded&&this.setState({isSuccessful:!0})}onSubmit(e){e.password===e.passwordRepeat?(this.props.setInitialPassword(e.email,this.props.token,e.password),this.setState({error:null})):this.setState({error:{message:this.props.intl.formatMessage(f.passwordsDoNotMatch)}})}onCancel(){this.props.history.goBack()}render(){return this.state.isSuccessful?Object(g.jsxs)(p.a,{children:[Object(g.jsx)("h1",{className:"documentFirstHeading",children:Object(g.jsx)(h.a,{id:"Account activation completed",defaultMessage:"Account activation completed"})}),Object(g.jsx)("p",{className:"description",children:Object(g.jsx)(h.a,{id:"Your password has been set successfully. You may now {link} with your new password.",defaultMessage:"Your password has been set successfully. You may now {link} with your new password.",values:{link:Object(g.jsx)(l.a,{to:"/login",children:this.props.intl.formatMessage({id:"Log In"})})}})})]}):this.props.token?Object(g.jsxs)("div",{id:"page-password-reset",children:[Object(g.jsx)(d.d,{title:this.props.intl.formatMessage(f.passwordReset)}),Object(g.jsx)(p.a,{children:Object(g.jsx)(j.cb,{title:this.props.intl.formatMessage(f.title),description:this.props.intl.formatMessage(f.description),onSubmit:this.onSubmit,onCancel:this.onCancel,error:this.state.error||this.props.error,schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(f.default),fields:["email","password","passwordRepeat"]}],properties:{email:{type:"string",title:this.props.intl.formatMessage(f.emailTitle),description:this.props.intl.formatMessage(f.emailDescription)},password:{description:this.props.intl.formatMessage(f.passwordDescription),title:this.props.intl.formatMessage(f.passwordTitle),type:"string",widget:"password"},passwordRepeat:{description:this.props.intl.formatMessage(f.passwordRepeatDescription),title:this.props.intl.formatMessage(f.passwordRepeatTitle),type:"string",widget:"password"}},submitLabel:this.props.intl.formatMessage(f.setMyPassword),required:["fullname","password","passwordRepeat"]}})})]}):Object(g.jsx)("div",{})}}r()(O,"defaultProps",{error:null}),t.a=Object(o.compose)(c.j,b.c,Object(a.connect)((e,t)=>({loading:e.users.initial.loading,loaded:e.users.initial.loaded,error:e.users.initial.error,token:t.match.params.token}),{setInitialPassword:m.nb}))(O)},"Y/au":function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("J2m7"),l=s.n(o),c=s("k4Da"),d=s.n(c),p=(s("q1tI"),s("17x9"),s("/MKj")),u=s("55Ip"),h=s("24R3"),b=s("zpb6"),j=s("8ZS8"),m=s("nKUr");t.a=Object(p.connect)(e=>({types:d()(e.types.types,"addable"),currentLanguage:e.intl.locale}),{})(({types:e,pathname:t,content:s,currentLanguage:n})=>{const{settings:i}=j.a;return e.length>0||i.isMultilingual&&s["@components"].translations?Object(m.jsxs)("div",{className:"menu-more pastanaga-menu",children:[e.length>0&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("header",{children:Object(m.jsx)(h.a,{id:"Add Content",defaultMessage:"Add Content\u2026"})}),Object(m.jsx)("div",{className:"pastanaga-menu-list",children:Object(m.jsx)("ul",{children:r()(d()(e),e=>{const s=e["@id"].split("@types/")[1],n=`${t.replace(/\/contents$/,"").replace(/\/$/,"")}/add?type=${s}`;return Object(m.jsx)("li",{children:Object(m.jsx)(u.a,{to:n,id:"toolbar-add-"+e["@id"].split("@types/")[1].toLowerCase().replace(" ","-"),className:"item",children:Object(m.jsx)(h.a,{id:e.title})},e.title)},e["@id"])})})})]}),i.isMultilingual&&s["@components"].translations&&(()=>{const e=d()(i.supportedLanguages,e=>!Boolean(s["@components"].translations&&l()(s["@components"].translations.items,{language:e}))&&n!==e);return!a()(e)&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("header",{children:Object(m.jsx)(h.a,{id:"Add Translation\u2026",defaultMessage:"Add Translation\u2026"})}),Object(m.jsx)("div",{className:"pastanaga-menu-list",children:Object(m.jsx)("ul",{children:r()(e,e=>Object(m.jsx)("li",{children:Object(m.jsx)(u.a,{to:{pathname:t+"/create-translation",state:{type:s["@type"],translationOf:Object(b.q)(s["@id"]),language:e}},className:"item",children:Object(m.jsx)(h.a,{id:"Translate to {lang}",defaultMessage:"Translate to {lang}",values:{lang:b.M[e].nativeName.toLowerCase()}})})},e))})})]})})()]}):Object(m.jsx)("span",{})})},"Y/f/":function(e,t,s){"use strict";s("q1tI");var n=s("zpb6"),r=s("8ZS8"),i=s("nKUr");t.a=e=>{const{opengraph_title:t,opengraph_description:s,seo_title:a,seo_description:o,seo_canonical_url:l,title:c,description:d}=e.content,p=(()=>{var t,s,n,i,a;const{contentMetadataTagsImageField:o}=r.a.settings,l=e.content[o],{opengraph_image:c}=e.content,d={contentHasImage:!1,url:null,height:null,width:null};return d.contentHasImage=(null===c||void 0===c||null===(t=c.scales)||void 0===t||null===(s=t.large)||void 0===s?void 0:s.download)||(null===l||void 0===l||null===(n=l.scales)||void 0===n||null===(i=n.large)||void 0===i?void 0:i.download)||!1,d.contentHasImage&&null!==c&&void 0!==c&&null!==(a=c.scales)&&void 0!==a&&a.large?(d.url=c.scales.large.download,d.height=c.scales.large.height,d.width=c.scales.large.width):d.contentHasImage&&(d.url=l.scales.large.download,d.height=l.scales.large.height,d.width=l.scales.large.width),d})();return Object(i.jsx)(i.Fragment,{children:Object(i.jsxs)(n.d,{children:[Object(i.jsx)("title",{children:a||c}),Object(i.jsx)("meta",{name:"description",content:o||d}),Object(i.jsx)("meta",{property:"og:title",content:t||a||c}),Object(i.jsx)("meta",{property:"og:url",content:l||Object(n.X)(e.content["@id"])}),p.contentHasImage&&Object(i.jsx)("meta",{property:"og:image",content:Object(n.X)(p.url)}),p.contentHasImage&&Object(i.jsx)("meta",{property:"og:image:width",content:p.width}),p.contentHasImage&&Object(i.jsx)("meta",{property:"og:image:height",content:p.height}),(s||o||d)&&Object(i.jsx)("meta",{property:"og:description",content:s||o||d}),Object(i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]})})}},Y4Fi:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("vFsZ")),a=s("3mGJ"),o=s("+6Dn"),l=s("lHu7"),c=s("24R3"),d=s("zSVi"),p=s("Kvkj"),u=s("Vgzb"),h=s("8h7z"),b=s.n(h),j=s("1Jxj"),m=s.n(j),g=s("nKUr");function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function O(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const v=Object(l.defineMessages)({LinkTo:{id:"Link to",defaultMessage:"Link to"},openLinkInNewTab:{id:"Open in a new tab",defaultMessage:"Open in a new tab"},MapsURL:{id:"Maps URL",defaultMessage:"Maps URL"}});t.a=Object(d.c)(({data:e,block:t,onChangeBlock:s,openObjectBrowser:n,required:r=!1,resetSubmitUrl:l,intl:d})=>Object(g.jsxs)(a.a.Group,{raised:!0,children:[Object(g.jsx)("header",{className:"header pulled",children:Object(g.jsx)("h2",{children:Object(g.jsx)(c.a,{id:"Map",defaultMessage:"Map"})})}),!e.url&&Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)(a.a,{className:"sidebar-metadata-container",secondary:!0,children:[Object(g.jsx)(c.a,{id:"No map selected",defaultMessage:"No map selected"}),Object(g.jsx)(p.jb,{name:b.a,size:"100px",color:"#b8c6c8"})]})}),e.url&&Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)(a.a,{className:"form sidebar-image-data",children:[e.url&&Object(g.jsx)(p.Tb,{id:"external",title:d.formatMessage(v.MapsURL),required:!1,value:e.url,icon:m.a,iconAction:()=>{l(),s(t,O(O({},e),{},{url:""}))},onChange:()=>{}}),Object(g.jsx)(i.a.Field,{inline:!0,required:r,children:Object(g.jsx)(o.a,{children:Object(g.jsxs)(o.a.Row,{children:[Object(g.jsx)(o.a.Column,{width:"4",children:Object(g.jsx)("div",{className:"wrapper",children:Object(g.jsx)("label",{htmlFor:"field-align",children:Object(g.jsx)(c.a,{id:"Alignment",defaultMessage:"Alignment"})})})}),Object(g.jsx)(o.a.Column,{width:"8",className:"align-tools",children:Object(g.jsx)(u.a,{align:e.align,onChangeBlock:s,data:e,block:t})})]})})})]})})]}))},YBxo:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));var n=s("MKeS");const r={prettierStandalone:n.a.lib({resolved:{},chunkName:()=>"prettier-standalone",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(36).then(s.t.bind(null,"MlsZ",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"MlsZ"}}),prettierParserHtml:n.a.lib({resolved:{},chunkName:()=>"prettier-parser-html",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(35).then(s.t.bind(null,"ml1W",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"ml1W"}}),prismCore:n.a.lib({resolved:{},chunkName:()=>"prismjs-components-prism-core",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(37).then(s.t.bind(null,"jHpe",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"jHpe"}}),toastify:n.a.lib({resolved:{},chunkName:()=>"react-toastify",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.resolve().then(s.bind(null,"GGqY")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"GGqY"}}),reactSelect:n.a.lib({resolved:{},chunkName:()=>"react-select",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"y2Vs")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"y2Vs"}},{ssr:!1}),reactWindow:n.a.lib({resolved:{},chunkName:()=>"react-window",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(39).then(s.bind(null,"iR1w")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"iR1w"}},{ssr:!1}),reactSortableHOC:n.a.lib({resolved:{},chunkName:()=>"react-sortable-hoc",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(21).then(s.bind(null,"YJCA")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"YJCA"}},{ssr:!1}),reactSelectAsyncPaginate:n.a.lib({resolved:{},chunkName:()=>"react-select-async-paginate",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"uKt4")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"uKt4"}},{ssr:!1}),reactSelectAsync:n.a.lib({resolved:{},chunkName:()=>"react-select-async",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"uANZ")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"uANZ"}},{ssr:!1}),reactSelectCreateable:n.a.lib({resolved:{},chunkName:()=>"react-select-creatable",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"wsII")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"wsII"}},{ssr:!1}),reactSelectAsyncCreateable:n.a.lib({resolved:{},chunkName:()=>"react-select-async-creatable",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"JuOV")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"JuOV"}},{ssr:!1}),diffLib:n.a.lib({resolved:{},chunkName:()=>"diff",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(34).then(s.t.bind(null,"v2jn",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"v2jn"}}),moment:n.a.lib({resolved:{},chunkName:()=>"moment",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(4),s.e(6),s.e(5)]).then(s.t.bind(null,"wd/R",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"wd/R"}}),reactDates:n.a.lib({resolved:{},chunkName:()=>"react-dates",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(4),s.e(15),s.e(11)]).then(s.t.bind(null,"qNGI",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"qNGI"}}),reactDnd:n.a.lib({resolved:{},chunkName:()=>"react-dnd",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(16).then(s.t.bind(null,"oz7q",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"oz7q"}}),reactDndHtml5Backend:n.a.lib({resolved:{},chunkName:()=>"react-dnd-html5-backend",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(17).then(s.t.bind(null,"7001",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"7001"}}),reactBeautifulDnd:n.a.lib({resolved:{},chunkName:()=>"react-beautiful-dnd",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(19).then(s.bind(null,"ngQI")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"ngQI"}}),immutableLib:n.a.lib({resolved:{},chunkName:()=>"immutable",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(0).then(s.t.bind(null,"JPcv",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"JPcv"}}),draftJs:n.a.lib({resolved:{},chunkName:()=>"draft-js",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"v83y",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"v83y"}}),draftJsLibIsSoftNewlineEvent:n.a.lib({resolved:{},chunkName:()=>"draft-js-lib-isSoftNewlineEvent",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(8).then(s.t.bind(null,"kE58",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"kE58"}}),draftJsFilters:n.a.lib({resolved:{},chunkName:()=>"draftjs-filters",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.bind(null,"pQlh")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"pQlh"}}),draftJsInlineToolbarPlugin:n.a.lib({resolved:{},chunkName:()=>"draft-js-inline-toolbar-plugin",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"s7sy",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"s7sy"}}),draftJsImportHtml:n.a.lib({resolved:{},chunkName:()=>"draft-js-import-html",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.bind(null,"3yY3")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"3yY3"}}),draftJsBlockBreakoutPlugin:n.a.lib({resolved:{},chunkName:()=>"draft-js-block-breakout-plugin",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"ShPq",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"ShPq"}}),draftJsCreateInlineStyleButton:n.a.lib({resolved:{},chunkName:()=>"draft-js-buttons-lib-utils-createInlineStyleButton",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"xPIU",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"xPIU"}}),draftJsCreateBlockStyleButton:n.a.lib({resolved:{},chunkName:()=>"draft-js-buttons-lib-utils-createBlockStyleButton",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"cyh7",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"cyh7"}}),draftJsPluginsUtils:n.a.lib({resolved:{},chunkName:()=>"draft-js-plugins-utils",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"etfJ",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"etfJ"}})}},YIVY:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M29.082,8.8701 L27.946,10.0061 L26.178,8.2381 L27.314,7.1021 L29.082,8.8701 Z M15.91,21.7981 L14.111,22.3351 L13.771,21.9951 L14.368,20.2551 L15.91,21.7981 Z M23.928,10.4881 L24.764,9.6521 L26.532,11.4201 L25.696,12.2561 L23.928,10.4881 Z M24.282,13.6701 L17.447,20.5061 L15.678,18.7371 L22.514,11.9021 L24.282,13.6701 Z M10.45,25.5141 L17.316,23.4651 L30.673,10.1071 C31.355,9.4251 31.355,8.3151 30.673,7.6331 L28.552,5.5121 C27.891,4.8501 26.738,4.8491 26.077,5.5121 L12.735,18.8531 L10.45,25.5141 Z"/><path d="M29 29L7 29 7 7 22 7 22 5 5 5 5 31 31 31 31 14 29 14z"/></g>'}},YLi1:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M15 13L31 13 31 11 15 11zM17 19L29 19 29 17 17 17zM19 25L27 25 27 23 19 23zM11 25.586L11 7 9 7 9 25.586 5.707 22.293 4.293 23.707 10 29.414 15.707 23.707 14.293 22.293z"/></g>'}},YWwg:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=(s("17x9"),s("zSVi")),l=s("Lf35"),c=s("nKUr");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}const p=["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fiveteen","sixteen"],u=({intl:e,width:t,label:s,connectDragSource:n,connectDropTarget:r,isDragging:i})=>r(n(Object(c.jsx)("th",{className:p[t-2]+" wide",style:{opacity:i?.5:1,cursor:"move"},children:e.formatMessage({id:s,defaultMessage:s})})));t.a=Object(l.a)("reactDnd")(e=>{const{DropTarget:t,DragSource:s}=e.reactDnd,n=a.a.useMemo(()=>t("index",{hover(e,t){const s=t.getItem().order,n=e.order;s!==n&&(e.onOrderIndex(s,n-s),t.getItem().order=n)}},e=>({connectDropTarget:e.dropTarget()}))(s("index",{beginDrag:e=>({id:e.label,order:e.order})},(e,t)=>({connectDragSource:e.dragSource(),isDragging:t.isDragging()}))(Object(o.c)(u))),[s,t]);return Object(c.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},e))})},Z5Td:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M29,28 C29,28.552 28.552,29 28,29 L27,29 L27,19 L9,19 L9,29 L8,29 C7.448,29 7,28.552 7,28 L7,8 C7,7.448 7.448,7 8,7 L11,7 L11,15 L25,15 L25,7.414 L29,11.414 L29,28 Z M11,29 L25,29 L25,21 L11,21 L11,29 Z M17,7 L17,12 L21,12 L21,7 L23,7 L23,13 L13,13 L13,7 L17,7 Z M25.414,5 L25,5 L21,5 L17,5 L11,5 L8,5 C6.346,5 5,6.346 5,8 L5,28 C5,29.654 6.346,31 8,31 L9,31 L27,31 L28,31 C29.654,31 31,29.654 31,28 L31,10.586 L25.414,5 Z"/>'}},ZHsB:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M7.7502 11.0004L4.2502 23.0004 3.0002 23.0004 3.0002 24.9994 6.9992 24.9994 6.9992 23.0004 6.3332 23.0004 7.2082 20.0004 10.7912 20.0004 11.6672 23.0004 11.0002 23.0004 11.0002 24.9994 14.9992 24.9994 14.9992 23.0004 13.7502 23.0004 10.2502 11.0004 7.7502 11.0004zM9.0002 13.8574L10.2082 17.9994 7.7912 17.9994 9.0002 13.8574zM33 13L33 11 27 11 27 9 25 9 25 11 19 11 19 13 29.019 13C28.951 14.355 28.437 17.122 25.782 19.903 24.268 18.501 23.662 17.221 23.342 15.783L21.39 16.217C21.821 18.152 22.705 19.74 24.308 21.264 23.515 21.902 22.596 22.529 21.517 23.124L22.483 24.876C23.812 24.143 24.93 23.365 25.881 22.569 26.897 23.322 28.103 24.079 29.548 24.876L30.514 23.124C29.252 22.428 28.22 21.786 27.365 21.177 30.399 17.954 30.963 14.678 31.027 13L33 13zM12.051 6.316L20.051 30.316 21.948 29.683 13.948 5.683z"/></g>'}},ZJLr:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("aUti"),l=s("/MKj"),c=s("nKUr");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=({date:e,style:t,relativeTo:s,className:n,locale:r,children:i,live:d=!1,refresh:u=5e3})=>{const h=Object(l.useSelector)(e=>r||e.intl.locale),[b,j]=a.a.useState(s?Object(o.d)(s):new Date),m=a.a.useRef();a.a.useEffect(()=>(d&&(m.current=setInterval(()=>{j(new Date)},u)),()=>m.current&&clearInterval(m.current)),[u,d]);const g={locale:h,date:e,style:t,relativeTo:b};return Object(c.jsx)("time",{className:n,dateTime:e,title:new Intl.DateTimeFormat(h,o.c).format(new Date(e)),children:i?i(Object(o.b)(p(p({},g),{},{formatToParts:!0}))):Object(o.b)(g)})}},ZPzw:function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path fill-rule="evenodd" clip-rule="evenodd" d="M13 21H3L3 3L13 3V21ZM5 19L5 5H11V19H5Z" fill="currentcolor"/><path d="M19 11V13H21V11H19zM19 9V7H21V9H19zM19 19V21H21V19H19zM19 17V15H21V17H19zM19 3V5H21V3L19 3zM15 5V3L17 3V5H15zM15 19V21H17V19H15z"/>'}},ZUIO:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("BkRI"),a=s.n(i),o=s("Wt1U"),l=s.n(o),c=s("d8FT"),d=s.n(c),p=s("noZS"),u=s.n(p),h=s("3WF5"),b=s.n(h),j=s("7GkX"),m=s.n(j),g=s("E+oP"),f=s.n(g),O=s("UfWW"),v=s.n(O),y=s("Kvkj"),x=s("zpb6"),w=s("EFnn"),C=s.n(w),S=s("1Jxj"),M=s.n(S),k=s("Znm+"),N=s.n(k),P=(s("17x9"),s("q1tI")),L=s("zSVi"),D=s("It+4"),E=s("/MKj"),T=s("vFsZ"),I=s("3mGJ"),A=s("yE/o"),R=s("lzXP"),_=s("TbSc"),q=s("QetY"),F=s("EcEN"),B=s("GGqY"),z=s("9At1"),U=s("ANjH"),H=s("8ZS8"),K=s("nKUr");function G(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function V(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?G(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):G(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class Z extends P.Component{constructor(e){super(e),r()(this,"getOnlyFormModifiedValues",()=>{const e=Object.keys(Object(x.o)(this.state.formData,this.state.initialFormData));return V(V({},d()(this.state.formData,(t,s)=>e.includes(s))),this.state.formData["@static_behaviors"]&&{"@static_behaviors":this.state.formData["@static_behaviors"]})}),r()(this,"removeBlocksLayoutFields",e=>{const t=V({},e),s=v()(t.fieldsets,e=>"layout"===e.id);if(s>-1){const e=t.fieldsets[s].fields;t.fieldsets[s].fields=e.filter(e=>"blocks"!==e&&"blocks_layout"!==e),0===t.fieldsets[s].fields.length&&(t.fieldsets=[...t.fieldsets.slice(0,s),...t.fieldsets.slice(s+1)])}return t});const t={title:Object(F.v4)(),text:Object(F.v4)()};let{formData:s}=e;const n=Object(x.t)(s),i=Object(x.u)(s);e.isEditForm||(s=V(V({},u()(e.schema.properties,"default")),s)),s.hasOwnProperty(n)&&s.hasOwnProperty(i)&&(s[i]&&!f()(s[i].items)||(s[i]={items:[t.title,t.text]}),s[n]&&!f()(s[n])||(s[n]={[t.title]:{"@type":"title"},[t.text]:{"@type":H.a.settings.defaultBlockType}}));let o=null;var l,c;s.hasOwnProperty(i)&&s[i].items.length>0&&(o=s[i].items[0],null!==(l=H.a.blocks)&&void 0!==l&&null!==(c=l.initialBlocksFocus)&&void 0!==c&&c[this.props.type]&&Object.keys(s[n]).forEach(e=>{var t,r;s[n][e]["@type"]===(null===(t=H.a.blocks)||void 0===t||null===(r=t.initialBlocksFocus)||void 0===r?void 0:r[this.props.type])&&(o=e)}));this.state={formData:s,initialFormData:a()(s),errors:{},selected:o,multiSelected:[],isClient:!1},this.onChangeField=this.onChangeField.bind(this),this.onSelectBlock=this.onSelectBlock.bind(this),this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.onTabChange=this.onTabChange.bind(this),this.onBlurField=this.onBlurField.bind(this),this.onClickInput=this.onClickInput.bind(this)}async componentDidUpdate(e,t){let{requestError:s}=this.props,n={},r=0;s&&e.requestError!==s&&(n=x.c.giveServerErrorsToCorrespondingFields(s),r=x.c.showFirstTabWithErrors({errors:n,schema:this.props.schema}),this.setState({errors:n,activeIndex:r})),this.props.onChangeFormData&&JSON.stringify(null===t||void 0===t?void 0:t.formData)!==JSON.stringify(this.state.formData)&&this.props.onChangeFormData(this.state.formData)}onTabChange(e,{activeIndex:t}){this.setState({activeIndex:t})}onClickInput(e){this.setState({isFormPristine:!1})}onBlurField(e,t){if(!this.state.isFormPristine){const s=x.c.validateFieldsPerFieldset({schema:this.props.schema,formData:this.state.formData,formatMessage:this.props.intl.formatMessage,touchedField:{[e]:t}});this.setState({errors:s})}}componentDidMount(){this.setState({isClient:!0})}static getDerivedStateFromProps(e,t){let s=V({},t);return e.isFormSelected||(s.selected=null),s}onChangeField(e,t){this.setState(s=>{const{errors:n,formData:r}=s;return delete n[e],{errors:n,formData:V(V({},r),{},{[e]:t||void 0!==t&&N()(t)?t:null})}})}onSelectBlock(e,t,s){let n=[],r=e;if(t){r=null;const t=Object(x.u)(this.state.formData),i=this.state.formData[t].items;if(s.shiftKey){const t=this.state.multiSelected.length>0?i.indexOf(this.state.multiSelected[0]):i.indexOf(this.state.selected),s=i.indexOf(e);n=t===s?[e]:s>t?[...i.slice(t,s+1)]:[...i.slice(s,t+1)]}!s.ctrlKey&&!s.metaKey||s.shiftKey||(n=this.state.multiSelected||[],this.state.multiSelected.includes(this.state.selected)||(n=[...n,this.state.selected],r=null),this.state.multiSelected.includes(e)?(r=null,n=l()(n,e)):n=[...n,e])}this.setState({selected:r,multiSelected:n}),this.props.onSelectForm&&(s&&s.nativeEvent.stopImmediatePropagation(),this.props.onSelectForm())}onCancel(e){e&&e.preventDefault(),this.props.resetAfterSubmit&&this.setState({formData:this.props.formData}),this.props.onCancel(e)}onSubmit(e){e&&e.preventDefault();const t=x.c.validateFieldsPerFieldset({schema:this.props.schema,formData:this.state.formData,formatMessage:this.props.intl.formatMessage});if(m()(t).length>0){const e=x.c.showFirstTabWithErrors({errors:t,schema:this.props.schema});this.setState({errors:t,activeIndex:e},()=>{Object.keys(t).forEach(e=>B.toast.error(Object(K.jsx)(y.Ub,{error:!0,title:e,content:t[e].join(", ")})))}),this.props.setSidebarTab(0)}else this.props.isEditForm?this.props.onSubmit(this.getOnlyFormModifiedValues()):this.props.onSubmit(this.state.formData),this.props.resetAfterSubmit&&this.setState({formData:this.props.formData})}render(){const{settings:e}=H.a,{schema:t,onCancel:s,onSubmit:n}=this.props,{formData:r}=this.state,i=this.removeBlocksLayoutFields(t);return this.props.visual?this.state.isClient&&Object(K.jsxs)("div",{className:"ui container",children:[Object(K.jsx)(y.l,{formData:this.state.formData,selectedBlock:this.state.selected,selectedBlocks:this.state.multiSelected,onChangeBlocks:e=>this.setState({formData:V(V({},r),e)}),onSetSelectedBlocks:e=>this.setState({multiSelected:e}),onSelectBlock:this.onSelectBlock}),Object(K.jsx)(y.Yb,{state:{formData:this.state.formData,selected:this.state.selected,multiSelected:this.state.multiSelected},enableHotKeys:!0,onUndoRedo:({state:e})=>this.setState(e)}),Object(K.jsx)(y.k,{onChangeFormData:e=>this.setState({formData:V(V({},r),e)}),onChangeField:this.onChangeField,onSelectBlock:this.onSelectBlock,properties:r,pathname:this.props.pathname,selectedBlock:this.state.selected,multiSelected:this.state.multiSelected,manage:this.props.isAdminForm,allowedBlocks:this.props.allowedBlocks,showRestricted:this.props.showRestricted,editable:this.props.editable,isMainForm:this.props.editable}),this.state.isClient&&this.props.editable&&Object(K.jsx)(D.a,{node:document.getElementById("sidebar-metadata"),children:Object(K.jsx)(T.a,{method:"post",onSubmit:this.onSubmit,error:m()(this.state.errors).length>0,children:i&&b()(i.fieldsets,e=>[Object(K.jsx)(I.a,{secondary:!0,attached:!0,className:"fieldset-"+e.id,children:e.title},e.title),Object(K.jsx)(I.a,{attached:!0,children:b()(e.fields,(t,s)=>{var n;return Object(P.createElement)(y.Z,V(V({},i.properties[t]),{},{id:t,fieldSet:e.title.toLowerCase(),formData:this.state.formData,focus:!1,value:null===(n=this.state.formData)||void 0===n?void 0:n[t],required:-1!==i.required.indexOf(t),onChange:this.onChangeField,onBlur:this.onBlurField,onClick:this.onClickInput,key:t,error:this.state.errors[t]}))})},"fieldset-contents-"+e.title)])})})]}):Object(K.jsx)(A.a,{children:Object(K.jsx)(T.a,{method:"post",onSubmit:this.onSubmit,error:m()(this.state.errors).length>0,className:e.verticalFormTabs?"vertical-form":"",children:Object(K.jsx)("fieldset",{className:"invisible",disabled:!this.props.editable,children:Object(K.jsxs)(I.a.Group,{raised:!0,children:[i&&i.fieldsets.length>1&&Object(K.jsxs)(K.Fragment,{children:[e.verticalFormTabs&&this.props.title&&Object(K.jsx)(I.a,{secondary:!0,attached:!0,children:this.props.title},this.props.title),Object(K.jsx)(R.a,{menu:{secondary:!0,pointing:!0,attached:!0,tabular:!0,className:"formtabs",vertical:e.verticalFormTabs},grid:{paneWidth:9,tabWidth:3,stackable:!0},onTabChange:this.onTabChange,activeIndex:this.state.activeIndex,panes:b()(i.fieldsets,t=>({menuItem:t.title,render:()=>[!e.verticalFormTabs&&this.props.title&&Object(K.jsx)(I.a,{secondary:!0,attached:!0,children:this.props.title},this.props.title),...b()(t.fields,(e,s)=>{var n;return Object(P.createElement)(y.Z,V(V({},i.properties[e]),{},{id:e,formData:this.state.formData,fieldSet:t.title.toLowerCase(),focus:0===s,value:null===(n=this.state.formData)||void 0===n?void 0:n[e],required:-1!==i.required.indexOf(e),onChange:this.onChangeField,onBlur:this.onBlurField,onClick:this.onClickInput,key:e,error:this.state.errors[e]}))})]}))})]}),i&&1===i.fieldsets.length&&Object(K.jsxs)(I.a,{children:[this.props.title&&Object(K.jsx)(I.a,{className:"primary",children:Object(K.jsxs)("h1",{style:{fontSize:"16px"},children:[" ",this.props.title]})}),this.props.description&&Object(K.jsx)(I.a,{secondary:!0,children:this.props.description}),m()(this.state.errors).length>0&&Object(K.jsx)(_.a,{icon:"warning",negative:!0,attached:!0,header:this.props.intl.formatMessage(x.N.error),content:this.props.intl.formatMessage(x.N.thereWereSomeErrors)}),this.props.error&&Object(K.jsx)(_.a,{icon:"warning",negative:!0,attached:!0,header:this.props.intl.formatMessage(x.N.error),content:this.props.error.message}),b()(i.fieldsets[0].fields,e=>{var t;return Object(P.createElement)(y.Z,V(V({},i.properties[e]),{},{id:e,value:null===(t=this.state.formData)||void 0===t?void 0:t[e],required:-1!==i.required.indexOf(e),onChange:this.onChangeField,onBlur:this.onBlurField,onClick:this.onClickInput,key:e,error:this.state.errors[e]}))})]}),!this.props.hideActions&&Object(K.jsxs)(I.a,{className:"actions",clearing:!0,children:[n&&Object(K.jsx)(q.a,{basic:!0,primary:!0,floated:"right",type:"submit","aria-label":this.props.submitLabel?this.props.submitLabel:this.props.intl.formatMessage(x.N.save),title:this.props.submitLabel?this.props.submitLabel:this.props.intl.formatMessage(x.N.save),loading:this.props.loading,children:Object(K.jsx)(y.jb,{className:"circled",name:C.a,size:"30px"})}),s&&Object(K.jsx)(q.a,{basic:!0,secondary:!0,"aria-label":this.props.intl.formatMessage(x.N.cancel),title:this.props.intl.formatMessage(x.N.cancel),floated:"right",onClick:this.onCancel,children:Object(K.jsx)(y.jb,{className:"circled",name:M.a,size:"30px"})})]})]})})})})}}r()(Z,"defaultProps",{formData:null,onSubmit:null,onCancel:null,submitLabel:null,resetAfterSubmit:!1,isEditForm:!1,isAdminForm:!1,title:null,description:null,error:null,loading:null,hideActions:!1,visual:!1,blocks:[],pathname:"",schema:{},isFormSelected:!0,onSelectForm:null,editable:!0,requestError:null,allowedBlocks:null});const W=Object(L.c)(Z,{forwardRef:!0});t.a=Object(U.compose)(Object(E.connect)(null,{setSidebarTab:z.ob},null,{forwardRef:!0}))(W)},Zbgq:function(e,t,s){var n={"./ca.json":["rwei",22],"./de.json":["GkOR",23],"./en.json":["cCmO",24],"./es.json":["qgB8",25],"./eu.json":["D1MZ",26],"./fr.json":["xSkN",27],"./it.json":["2WN/",28],"./ja.json":["fpnu",29],"./nl.json":["5dWb",30],"./pt.json":["v0ES",31],"./pt_BR.json":["+ZGd",32],"./ro.json":["eqea",33]};function r(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return s.e(t[1]).then((function(){return s.t(r,3)}))}r.keys=function(){return Object.keys(n)},r.id="Zbgq",e.exports=r},ZcMx:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M23.293 11.293L18 16.586 12.707 11.293 11.293 12.707 16.586 18 11.293 23.293 12.707 24.707 18 19.414 23.293 24.707 24.707 23.293 19.414 18 24.707 12.707z"/><path d="M18,31 C10.832,31 5,25.168 5,18 C5,10.832 10.832,5 18,5 C25.168,5 31,10.832 31,18 C31,25.168 25.168,31 18,31 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/></g>'}},"Zig/":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("ijCd"),l=s.n(o),c=s("q1tI"),d=s.n(c),p=s("17x9"),u=s.n(p),h=s("ANjH"),b=s("lHu7"),j=s.n(b),m=s("zSVi"),g=s("8ZS8"),f=s("Lf35"),O=s("Kvkj"),v=s("MKeS"),y=s("nKUr"),x=s.n(y);function w(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function C(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?w(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):w(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const S=Object(v.a)({resolved:{},chunkName:()=>"draft-js-plugins-editor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"yeYm",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yeYm"}}),M=Object(b.defineMessages)({text:{id:"Type text\u2026",defaultMessage:"Type text\u2026"}});class k extends c.Component{constructor(e){super(e);const{settings:t}=g.a;this.draftConfig=t.richtextEditorSettings(e);const{EditorState:s,convertFromRaw:n}=e.draftJs,r=e.draftJsInlineToolbarPlugin.default;{let t;t=e.data&&e.data.text?s.createWithContent(n(e.data.text)):s.createEmpty();const i=r({structure:this.draftConfig.richTextEditorInlineToolbarButtons});this.state={editorState:t,inlineToolbarPlugin:i}}this.onChange=this.onChange.bind(this)}componentDidMount(){this.props.selected&&setTimeout(this.node.focus,0)}UNSAFE_componentWillReceiveProps(e){if(!this.props.selected&&e.selected){const e=this.state.editorState.getSelection();if(e.getStartOffset()<e.getEndOffset());else{setTimeout(this.node.focus,0);const{EditorState:e}=this.props.draftJs;this.setState({editorState:e.moveFocusToEnd(this.state.editorState)})}}}componentDidUpdate(e){const{convertToRaw:t,EditorState:s,convertFromRaw:n}=this.props.draftJs;if(!a()(this.props.data,e.data)&&!a()(t(this.state.editorState.getCurrentContent()),this.props.data.text)){const e=this.props.data&&this.props.data.text?s.createWithContent(n(this.props.data.text)):s.createEmpty();this.setState({editorState:e})}}shouldComponentUpdate(e,t){return this.props.selected||!a()(this.props.data,e.data)||!a()(this.state.editorState,t.editorState)}onChange(e){const t="insert-fragment"===e.getLastChangeType(),{convertToRaw:s}=this.props.draftJs,{filterEditorState:n}=this.props.draftJsFilters;if(!a()(s(e.getCurrentContent()),s(this.state.editorState.getCurrentContent()))){if(t){let t=e;t=n({blocks:["unordered-list-item","ordered-list-item"],styles:["BOLD","ITALIC"],entities:[{type:"LINK",attributes:["url"]}],whitespacedCharacters:[]},t),e=t}this.props.onChangeBlock(this.props.block,C(C({},this.props.data),{},{text:s(e.getCurrentContent())}))}this.setState({editorState:e})}render(){var e;const t=this.props.data.placeholder||this.props.formTitle||this.props.intl.formatMessage(M.text),s=(null===(e=this.props.data)||void 0===e?void 0:e.disableNewBlocks)||this.props.detached,{InlineToolbar:n}=this.state.inlineToolbarPlugin,r=this.props.draftJsLibIsSoftNewlineEvent.default,{RichUtils:i}=this.props.draftJs;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(S,{readOnly:!this.props.editable,onChange:this.onChange,editorState:this.state.editorState,plugins:[this.state.inlineToolbarPlugin,...this.draftConfig.richTextEditorPlugins],blockRenderMap:this.draftConfig.extendedBlockRenderMap,blockStyleFn:this.draftConfig.blockStyleFn,customStyleMap:this.draftConfig.customStyleMap,placeholder:t,handleReturn:e=>{if(r(e))return this.onChange(i.insertSoftNewline(this.state.editorState)),"handled";if(!s){const e=this.state.editorState.getSelection().getAnchorKey(),t=this.state.editorState.getCurrentContent().getBlockForKey(e).getType();return l()(this.draftConfig.listBlockTypes,t)?"un-handled":(this.props.onSelectBlock(this.props.onAddBlock(g.a.settings.defaultBlockType,this.props.index+1)),"handled")}return{}},handleKeyCommand:(e,t)=>{this.props.data.required||"backspace"===e&&0===t.getCurrentContent().getPlainText().length&&this.props.onDeleteBlock(this.props.block,!0)},onUpArrow:()=>{0===this.state.editorState.getSelection().getStartOffset()&&this.props.onFocusPreviousBlock(this.props.block,this.node)},onDownArrow:()=>{const e=this.state.editorState.getSelection(),{editorState:t}=this.state;e.getStartOffset()===t.getCurrentContent().getFirstBlock().getLength()&&this.props.onFocusNextBlock(this.props.block,this.node)},ref:e=>{this.node=e}}),Object(y.jsx)(n,{}),this.props.selected&&Object(y.jsx)(O.g,{data:this.props.data,block:this.props.block,onInsertBlock:(e,t)=>{this.props.onSelectBlock(this.props.onInsertBlock(e,t))},allowedBlocks:this.props.allowedBlocks,blocksConfig:this.props.blocksConfig,size:"24px",className:"block-add-button",properties:this.props.properties})]})}}r()(k,"defaultProps",{detached:!1,editable:!0});const N=Object(h.compose)(m.c,Object(f.a)(["draftJs","draftJsLibIsSoftNewlineEvent","draftJsFilters","draftJsInlineToolbarPlugin","draftJsBlockBreakoutPlugin","draftJsCreateInlineStyleButton","draftJsCreateBlockStyleButton","immutableLib"]))(k),P=e=>{const[t,s]=d.a.useState(!1);return d.a.useEffect(()=>{S.load().then(()=>s(!0))},[]),t?Object(y.jsx)(N,C({},e)):null};t.a=P},"Znq/":function(e,t,s){"use strict";var n=s("q1tI"),r=s("Ty5D"),i=s("vFsZ"),a=s("umxb"),o=s("ANjH"),l=(s("17x9"),s("lHu7")),c=s("zSVi"),d=s("Kvkj"),p=s("SoYb"),u=s.n(p),h=s("nKUr");const b=Object(l.defineMessages)({search:{id:"Search",defaultMessage:"Search"},searchSite:{id:"Search Site",defaultMessage:"Search Site"}});class j extends n.Component{constructor(e){super(e),this.onChangeText=this.onChangeText.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={text:""}}onChangeText(e,{value:t}){this.setState({text:t})}onSubmit(e){var t;const s=(null===(t=this.props.pathname)||void 0===t?void 0:t.length)>0?"&path="+encodeURIComponent(this.props.pathname):"";this.props.history.push(`/search?SearchableText=${encodeURIComponent(this.state.text)}${s}`),e.preventDefault()}render(){return Object(h.jsx)(i.a,{action:"/search",onSubmit:this.onSubmit,children:Object(h.jsxs)(i.a.Field,{className:"searchbox",children:[Object(h.jsx)(a.a,{"aria-label":this.props.intl.formatMessage(b.search),onChange:this.onChangeText,name:"SearchableText",value:this.state.text,transparent:!0,autoComplete:"off",placeholder:this.props.intl.formatMessage(b.searchSite),title:this.props.intl.formatMessage(b.search)}),Object(h.jsx)("button",{"aria-label":this.props.intl.formatMessage(b.search),children:Object(h.jsx)(d.jb,{name:u.a,size:"18px"})})]})})}}t.a=Object(o.compose)(r.j,c.c)(j)},ZuVO:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("3tWz"),a=s.n(i),o=(s("q1tI"),s("17x9"),s("ikXu")),l=s("KAy6"),c=s.n(l),d=s("5m5G"),p=s("LhCv"),u=s("u4tm"),h=s("/MKj"),b=s("zpb6"),j=s("wNa6"),m=s("Kvkj"),g=s("Lf35"),f=s("nKUr");t.a=Object(g.a)("diffLib")(({one:e,two:t,contentOne:s,contentTwo:n,view:i,schema:l,diffLib:g})=>{const O=Object(h.useSelector)(e=>e.intl.locale),v={dateStyle:"full",timeStyle:"short"},y=(e,t)=>g.diffWords(String(e),String(t));let x,w,C;if(l.widget)switch(l.widget){case"richtext":x=y(null===e||void 0===e?void 0:e.data,null===t||void 0===t?void 0:t.data);break;case"datetime":x=y(new Intl.DateTimeFormat(O,v).format(new Date(e)),new Intl.DateTimeFormat(O,v).format(new Date(t)));break;case"json":const r=new b.a,i=Object(p.a)(),a=Object(j.a)(window.__data,i,r);x=y(c.a.renderToStaticMarkup(Object(f.jsx)(d.Provider,{store:a,children:Object(f.jsx)(u.a,{history:i,children:Object(f.jsx)(m.Q,{content:s})})})),c.a.renderToStaticMarkup(Object(f.jsx)(d.Provider,{store:a,children:Object(f.jsx)(u.a,{history:i,children:Object(f.jsx)(m.Q,{content:n})})})));break;case"textarea":default:x=y(e,t)}else"object"===l.type?x=y((null===e||void 0===e?void 0:e.filename)||e,(null===t||void 0===t?void 0:t.filename)||t):"array"===l.type?(w=(e||[]).map(e=>(null===e||void 0===e?void 0:e.title)||e),C=(t||[]).map(e=>(null===e||void 0===e?void 0:e.title)||e),x=y(w,C)):x=y((null===e||void 0===e?void 0:e.title)||e,(null===t||void 0===t?void 0:t.title)||t);return Object(f.jsxs)(o.a,{compact:!0,"data-testid":"DiffField",children:[Object(f.jsx)(o.a.Header,{children:Object(f.jsx)(o.a.Row,{children:Object(f.jsx)(o.a.HeaderCell,{colSpan:2,children:l.title})})}),Object(f.jsxs)(o.a.Body,{children:["split"===i&&Object(f.jsxs)(o.a.Row,{children:[Object(f.jsx)(o.a.Cell,{width:8,verticalAlign:"top",children:Object(f.jsx)("span",{dangerouslySetInnerHTML:{__html:a()(r()(x,e=>e.removed&&`<span class="deletion">${e.value}</span>`||!e.added&&`<span>${e.value}</span>`||""),"")}})}),Object(f.jsx)(o.a.Cell,{width:8,verticalAlign:"top",children:Object(f.jsx)("span",{dangerouslySetInnerHTML:{__html:a()(r()(x,e=>e.added&&`<span class="addition">${e.value}</span>`||!e.removed&&`<span>${e.value}</span>`||""),"")}})})]}),"unified"===i&&Object(f.jsx)(o.a.Row,{children:Object(f.jsx)(o.a.Cell,{width:16,verticalAlign:"top",children:Object(f.jsx)("span",{dangerouslySetInnerHTML:{__html:a()(r()(x,e=>e.removed&&`<span class="deletion">${e.value}</span>`||e.added&&`<span class="addition">${e.value}</span>`||!e.added&&`<span>${e.value}</span>`),"")}})})})]})]})})},Zw3k:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("eetn"),r=s("TSYQ"),i=s.n(r),a=s("zpb6"),o=s("8ZS8"),l=s("nKUr");t.a=({data:e})=>Object(l.jsx)("div",{className:i()("block video align",{center:!Boolean(e.align)},e.align),children:e.url&&Object(l.jsx)("div",{className:i()("video-inner",{"full-width":"full"===e.align}),children:e.url.match("youtu")?Object(l.jsx)(l.Fragment,{children:e.url.match("list")?e.preview_image?Object(l.jsx)(n.a,{url:"https://www.youtube.com/embed/videoseries?list="+e.url.match(/^.*\?list=(.*)$/)[1],placeholder:Object(a.L)(e.preview_image)?Object(a.q)(e.preview_image)+"/@@images/image":e.preview_image,defaultActive:!0,autoplay:!1}):Object(l.jsx)(n.a,{url:"https://www.youtube.com/embed/videoseries?list="+e.url.match(/^.*\?list=(.*)$/)[1],icon:"play",defaultActive:!0,autoplay:!1}):e.preview_image?Object(l.jsx)(n.a,{id:e.url.match(/.be\//)?e.url.match(/^.*\.be\/(.*)/)[1]:e.url.match(/^.*\?v=(.*)$/)[1],source:"youtube",placeholder:Object(a.L)(e.preview_image)?Object(a.q)(e.preview_image)+"/@@images/image":e.preview_image,icon:"play",autoplay:!1}):Object(l.jsx)(n.a,{id:e.url.match(/.be\//)?e.url.match(/^.*\.be\/(.*)/)[1]:e.url.match(/^.*\?v=(.*)$/)[1],source:"youtube",icon:"play",defaultActive:!0,autoplay:!1})}):Object(l.jsx)(l.Fragment,{children:e.url.match("vimeo")?e.preview_image?Object(l.jsx)(n.a,{id:e.url.match(/^.*\.com\/(.*)/)[1],source:"vimeo",placeholder:Object(a.L)(e.preview_image)?Object(a.q)(e.preview_image)+"/@@images/image":e.preview_image,icon:"play",autoplay:!1}):Object(l.jsx)(n.a,{id:e.url.match(/^.*\.com\/(.*)/)[1],source:"vimeo",icon:"play",defaultActive:!0,autoplay:!1}):Object(l.jsx)(l.Fragment,{children:e.url.match(".mp4")?Object(l.jsx)("video",{src:Object(a.L)(e.url.replace(Object(a.C)(o.a.settings.apiPath),""))?e.url+"/@@download/file":e.url,controls:!0,poster:e.preview_image?Object(a.L)(e.preview_image)?Object(a.q)(e.preview_image)+"/@@images/image":e.preview_image:"",type:"video/mp4"}):Object(l.jsx)("div",{className:"invalidVideoFormat"})})})})})},ZzPe:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("lHu7"),l=s("52Oh"),c=s("QetY"),d=s("hHGt"),p=s("3mGJ"),u=s("Kvkj"),h=s("UFgG"),b=s("hxMo"),j=s.n(b),m=s("5ymK"),g=s.n(m),f=s("DQaE"),O=s.n(f),v=s("THAZ"),y=s.n(v),x=s("IW6S"),w=s.n(x),C=s("EcEN"),S=s("nKUr");function M(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function k(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?M(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const N=Object(o.defineMessages)({labelRemoveItem:{id:"Remove item",defaultMessage:"Remove item"},labelCollapseItem:{id:"Collapse item",defaultMessage:"Collapse item"},labelShowItem:{id:"Show item",defaultMessage:"Show item"},emptyObjectList:{id:"Empty object list",defaultMessage:"Empty object list"},add:{id:"Add (object list)",defaultMessage:"Add"}});t.a=e=>{const{block:t,fieldSet:s,id:n,schema:r,value:o=[],onChange:b,schemaExtender:m}=e,[f,v]=a.a.useState(o.length-1),x=Object(l.a)();function M(e,t){const{index:s}=t;v(f===s?-1:s)}const P="function"===typeof r?r(e):r;return Object(S.jsxs)("div",{className:"objectlist-widget",children:[Object(S.jsxs)(u.db,k(k({},e),{},{noForInFieldLabel:!0,className:"objectlist",children:[Object(S.jsx)("div",{className:"add-item-button-wrapper",children:Object(S.jsxs)(c.a,{compact:!0,icon:!0,"aria-label":P.addMessage||`${x.formatMessage(N.add)} ${P.title}`,onClick:e=>{e.preventDefault(),b(n,[...o,{"@id":Object(C.v4)()}]),v(o.length)},children:[Object(S.jsx)(u.jb,{name:y.a,size:"18px"}),"\xa0",P.addMessage||`${x.formatMessage(N.add)} ${P.title}`]})}),0===o.length&&Object(S.jsx)("input",{"aria-labelledby":`fieldset-${s||"default"}-field-label-${n}`,type:"hidden",value:x.formatMessage(N.emptyObjectList)})]})),Object(S.jsx)(u.V,{style:{boxShadow:`0 1px 1px rgba(0,0,0,0.15)${o.length>1?", 0 10px 0 -5px #eee, 0 10px 1px -4px rgba(0,0,0,0.15)":""}${o.length>2?", 0 20px 0 -10px #eee, 0 20px 1px -9px rgba(0,0,0,0.15)":""}`},forwardedAriaLabelledBy:`fieldset-${s||"default"}-field-label-${n}`,childList:o.map(e=>[e["@id"],e]),onMoveItem:e=>{const{source:t,destination:s}=e;if(!s)return;const r=o[t.index],i=o[s.index];return o[s.index]=r,o[t.index]=i,b(n,o),!0},children:({child:e,childId:s,index:a,draginfo:l})=>Object(i.createElement)("div",k(k({ref:l.innerRef},l.draggableProps),{},{key:s}),Object(S.jsxs)(d.a,{fluid:!0,styled:!0,children:[Object(S.jsxs)(d.a.Title,{active:f===a,index:a,onClick:M,"aria-label":`${f===a?x.formatMessage(N.labelCollapseItem):x.formatMessage(N.labelShowItem)} #${a+1}`,children:[Object(S.jsx)("button",k(k({style:{visibility:"visible",display:"inline-block"}},l.dragHandleProps),{},{className:"drag handle",children:Object(S.jsx)(u.jb,{name:w.a,size:"18px"})})),Object(S.jsx)("div",{className:"accordion-title-wrapper",children:`${P.title} #${a+1}`}),Object(S.jsxs)("div",{className:"accordion-tools",children:[Object(S.jsx)("button",{"aria-label":`${x.formatMessage(N.labelRemoveItem)} #${a+1}`,onClick:()=>{b(n,o.filter((e,t)=>t!==a))},children:Object(S.jsx)(u.jb,{name:O.a,size:"20px",color:"#e40166"})}),f===a?Object(S.jsx)(u.jb,{name:j.a,size:"20px"}):Object(S.jsx)(u.jb,{name:g.a,size:"20px"})]})]}),Object(S.jsx)(d.a.Content,{active:f===a,children:Object(S.jsx)(p.a,{children:Object(S.jsx)(h.a,{id:`${n}-${a}`,block:t,schema:m?m(r,e,x):P,value:e,onChange:(e,t)=>{const s=o.map((e,s)=>s!==a?e:t);b(n,s)}},`ow-${n}-${a}`)})})]},a))})]})}},aMsN:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18 4.826L4.476 13.148 5.524 14.851 18 7.174 30.476 14.851 31.524 13.148zM25 27L21 27 21 19 15 19 15 27 11 27 11 15 9 15 9 29 17 29 17 21 19 21 19 29 27 29 27 15 25 15z"/></g>'}},aRem:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("MqQV")),c=s("vFsZ"),d=s("+6Dn"),p=s("D1pA"),u=s("TSYQ"),h=s.n(u),b=s("lHu7"),j=s("zSVi"),m=s("nKUr");const g=Object(b.defineMessages)({edit:{id:"Edit",defaultMessage:"Edit"},delete:{id:"Delete",defaultMessage:"Delete"},language_independent:{id:"Language independent field.",defaultMessage:"Language independent field."}});class f extends o.Component{render(){const{id:e,title:t,description:s,fieldSet:n,required:r,error:i,wrapped:o,columns:u,draggable:b,onEdit:j,className:f,isDisabled:O,onDelete:v,intl:y,noForInFieldLabel:x,multilingual_options:w}=this.props,C=Object(m.jsxs)(m.Fragment,{children:[this.props.children,a()(i,e=>Object(m.jsx)(l.a,{basic:!0,color:"red",pointing:!0,children:e},e))]});return o?Object(m.jsx)(c.a.Field,{inline:!0,required:r,error:i.length>0,className:h()(s?"help":"",f,"field-wrapper-"+e,null!==w&&void 0!==w&&w.language_independent?"language-independent-field":null),children:Object(m.jsxs)(d.a,{children:[Object(m.jsxs)(d.a.Row,{stretched:!0,children:[2===u&&Object(m.jsx)(d.a.Column,{width:"4",children:Object(m.jsx)("div",{className:"wrapper",children:Object(m.jsxs)("label",{id:`fieldset-${n}-field-label-${e}`,htmlFor:x?null:"field-"+e,children:[b&&j&&Object(m.jsx)("i",{"aria-hidden":"true",className:"grey bars icon drag handle"}),t]})})}),Object(m.jsxs)(d.a.Column,{width:2===u?8:12,children:[j&&!O&&Object(m.jsxs)("div",{className:"toolbar",style:{zIndex:"2"},children:[Object(m.jsx)("button",{"aria-label":y.formatMessage(g.edit),className:"item ui noborder button",onClick:t=>{t.preventDefault(),j(e)},children:Object(m.jsx)(p.a,{name:"write square",size:"large",color:"blue"})}),Object(m.jsx)("button",{"aria-label":y.formatMessage(g.delete),className:"item ui noborder button",onClick:t=>{t.preventDefault(),v(e)},children:Object(m.jsx)(p.a,{name:"close",size:"large",color:"red"})})]}),C]})]}),s&&Object(m.jsx)(d.a.Row,{stretched:!0,children:Object(m.jsx)(d.a.Column,{stretched:!0,width:"12",children:Object(m.jsxs)("p",{className:"help",children:[this.props.multilingual_options?y.formatMessage(g.language_independent)+" ":null,s]})})})]})}):Object(m.jsx)(m.Fragment,{children:C})}}r()(f,"defaultProps",{description:null,required:!1,error:[],wrapped:!0,columns:2,onDelete:null,intl:null,isDisabled:null,draggable:null}),t.a=Object(j.c)(f)},aUti:function(e,t,s){"use strict";s.d(t,"c",(function(){return a})),s.d(t,"d",(function(){return o})),s.d(t,"a",(function(){return l})),s.d(t,"b",(function(){return c}));const n=864e5,r={year:"numeric",month:"numeric",day:"numeric"},i={dateStyle:"short",timeStyle:"short"},a={dateStyle:"full",timeStyle:"short"},o=e=>["string","number"].includes(typeof e)?new Date(e):e;function l({date:e,format:t,locale:s="en",long:n,includeTime:l,formatToParts:c=!1}){e=o(e),t=t||(n&&!l?a:l?i:r);const d=new Intl.DateTimeFormat(s,t);return c?d.formatToParts(e):d.format(e)}function c({date:e,locale:t="en",relativeTo:s,style:r="long",formatToParts:i=!1}){e=o(e),s=o(s||new Date);const a=e.getTime()-s.getTime(),l=Math.abs(a),c=[l/31536e6,l/2592e6,l/n,l/36e5,l/6e4,l/1e3],d=c.map(Math.round).findIndex(e=>e>0),p=["years","months","days","hours","minutes","seconds"][d],u=new Intl.RelativeTimeFormat(t,{numeric:"auto",style:r}),h=Math.round(a<0?-1*c[d]:c[d]);return isNaN(h)?"":i?u.formatToParts(h,p):u.format(h,p)}},b6H7:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M6.1489,31 L29.8659,31 C28.9469,28.423 24.7499,26.945 24.7019,26.93 C20.1909,25.863 20.0059,23.309 19.9999,23.021 L19.9999,19.343 L20.5549,19.067 C21.9049,18.396 21.9389,17.185 21.9379,17.049 L21.9349,16.378 L22.5539,16.105 C22.7179,15.989 23.0089,15.3 23.1659,14.93 L23.3109,14.592 C23.2749,14.575 23.0639,14.35 22.9479,14.268 L22.3489,13.841 L23.0479,11.696 C23.4589,10.035 23.2839,8.605 22.5499,7.666 C22.1689,7.179 21.6629,7 21.1619,7 L20.6129,7 L20.3179,6.437 C20.3129,6.429 19.4429,5.078 18.0419,5.078 C17.4239,5.082 15.5859,5.212 14.5679,5.877 C13.3689,6.661 12.1199,8.31 12.9809,11.778 L13.6699,13.873 L13.0319,14.29 C12.8809,14.396 12.7099,14.61 12.7319,14.674 C13.1429,15.896 13.4309,16.093 13.4619,16.111 L14.1019,16.377 L14.0669,17.065 C14.0659,17.188 14.0969,18.398 15.4449,19.067 L15.9999,19.343 L15.9999,23 C15.9949,23.306 15.8159,25.862 11.2159,26.954 C10.0019,27.369 6.9249,28.854 6.1489,31 L6.1489,31 Z M31.9999,33 L3.9999,33 L3.9999,32 C3.9999,27.334 10.4089,25.125 10.6829,25.033 C13.8199,24.284 14.0089,22.949 14.0099,22.936 L14.0039,20.538 C12.6399,19.628 12.2339,18.339 12.1169,17.592 C11.4859,17.034 11.1059,16.11 10.8369,15.312 C10.5399,14.429 10.8879,13.668 11.3329,13.151 L11.0599,12.317 C9.8349,7.397 12.0479,5.109 13.4739,4.178 C15.1699,3.069 17.7509,3.029 18.0389,3.028 C19.8919,3.028 21.1359,4.191 21.6859,4.841 C22.6139,4.985 23.4829,5.512 24.1249,6.334 C24.7809,7.172 25.7619,9.056 24.9699,12.248 L24.6739,13.158 C25.1509,13.711 25.5249,14.519 25.1429,15.393 L25.0079,15.708 C24.7259,16.375 24.4159,17.109 23.8899,17.587 C23.7719,18.333 23.3679,19.625 21.9999,20.538 L21.9999,22.999 L21.9999,22.998 C22.0079,22.998 22.2369,24.298 25.2299,25.009 C25.5909,25.125 31.9999,27.334 31.9999,32 L31.9999,33 Z"/>'}},bVR5:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M23,17 L29,17 L29,13 L23,13 L23,17 Z M23,29 L29,29 L29,25 L23,25 L23,29 Z M15,29 L21,29 L21,25 L15,25 L15,29 Z M7,29 L13,29 L13,25 L7,25 L7,29 Z M7,17 L13,17 L13,13 L7,13 L7,17 Z M7,11 L13,11 L13,7 L7,7 L7,11 Z M15,17 L21,17 L21,13 L15,13 L15,17 Z M7,23 L13,23 L13,19 L7,19 L7,23 Z M23,23 L29,23 L29,19 L23,19 L23,23 Z M15,23 L21,23 L21,19 L15,19 L15,23 Z M15,11 L21,11 L21,7 L15,7 L15,11 Z M23,11 L29,11 L29,7 L23,7 L23,11 Z M23,5 L13,5 L5,5 L5,13 L5,17 L5,25 L5,31 L13,31 L23,31 L31,31 L31,25 L31,17 L31,13 L31,5 L23,5 Z"/>'}},banc:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("ANjH"),l=s("q1tI"),c=s.n(l),d=s("17x9"),p=s.n(d),u=s("Pj1C"),h=s("QetY"),b=s("lHu7"),j=s.n(b),m=s("zSVi"),g=s("MKeS"),f=s("Kvkj"),O=s("Lf35"),v=s("S+Ux"),y=s.n(v),x=s("1Jxj"),w=s.n(x),C=s("Q8rs"),S=s.n(C),M=s("E9q0"),k=s.n(M),N=s("nKUr"),P=s.n(N);function L(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function D(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?L(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):L(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const E=Object(g.a)({resolved:{},chunkName:()=>"react-simple-code-editor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(12).then(s.t.bind(null,"8Ppc",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"8Ppc"}}),T=Object(b.defineMessages)({source:{id:"Source",defaultMessage:"Source"},preview:{id:"Preview",defaultMessage:"Preview"},placeholder:{id:"<p>Add some HTML here</p>",defaultMessage:"<p>Add some HTML here</p>"},prettier:{id:"Prettify your code",defaultMessage:"Prettify your code"},clear:{id:"Clear",defaultMessage:"Clear"},code:{id:"Code",defaultMessage:"Code"}});class I extends l.Component{constructor(e){super(e),r()(this,"codeEditorRef",c.a.createRef()),r()(this,"savedSelection",{}),r()(this,"onPrettify",()=>{try{const e=this.props.prettierStandalone.format(this.getValue(),{parser:"html",plugins:[this.props.prettierParserHtml]}).trim();this.onChangeCode(e)}catch(e){}}),r()(this,"getSelection",e=>{if(!e._input)return{};const t={};return e._input.selectionStart&&(t.selectionStart=e._input.selectionStart),e._input.selectionEnd&&(t.selectionEnd=e._input.selectionEnd),t}),r()(this,"restoreSelectionAndFocus",e=>{var t,s,n,r;this.props.selected&&e._input&&"number"===typeof(null===(t=this.savedSelection)||void 0===t?void 0:t.selectionStart)&&"number"===typeof(null===(s=this.savedSelection)||void 0===s?void 0:s.selectionEnd)&&(e._input.selectionStart=null===(n=this.savedSelection)||void 0===n?void 0:n.selectionStart,e._input.selectionEnd=null===(r=this.savedSelection)||void 0===r?void 0:r.selectionEnd,e._input.focus())}),this.state={isPreview:!1},this.onChangeCode=this.onChangeCode.bind(this),this.onPreview=this.onPreview.bind(this),this.onCodeEditor=this.onCodeEditor.bind(this)}componentDidUpdate(e,t,s){this.savedSelection=s,this.restoreSelectionAndFocus(this.codeEditorRef.current)}shouldComponentUpdate(e){return!this._input||(this.props.selected||!a()(this.props.data,e.data)||this._input.selectionStart!==this.savedSelection.selectionStart||this._input.selectionEnd!==this.savedSelection.selectionEnd)}onChangeCode(e){this.props.onChangeBlock(this.props.block,D(D({},this.props.data),{},{html:e}))}getValue(){return this.props.data.html||""}onPreview(){try{const e=this.props.prettierStandalone.format(this.getValue(),{parser:"html",plugins:[this.props.prettierParserHtml]}).trim();this.setState({isPreview:!this.state.isPreview},()=>this.onChangeCode(e))}catch(e){}}onCodeEditor(){this.setState({isPreview:!this.state.isPreview})}getSnapshotBeforeUpdate(e,t){return this.getSelection(this.codeEditorRef.current)}render(){var e,t,s;const n=this.props.data.placeholder||this.props.intl.formatMessage(T.placeholder),r=this.getValue();return Object(N.jsxs)(N.Fragment,{children:[this.props.selected&&r&&Object(N.jsxs)("div",{className:"toolbar",children:[Object(N.jsx)(u.a,{trigger:Object(N.jsx)(h.a,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(T.source),active:!this.state.isPreview,onClick:this.onCodeEditor,children:Object(N.jsx)(f.jb,{name:S.a,size:"24px"})}),position:"top center",content:this.props.intl.formatMessage(T.code),size:"mini"}),Object(N.jsx)(u.a,{trigger:Object(N.jsx)(h.a,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(T.preview),active:this.state.isPreview,onClick:this.onPreview,children:Object(N.jsx)(f.jb,{name:y.a,size:"24px"})}),position:"top center",content:this.props.intl.formatMessage(T.preview),size:"mini"}),Object(N.jsx)(u.a,{trigger:Object(N.jsx)(h.a,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(T.prettier),onClick:this.onPrettify,children:Object(N.jsx)(f.jb,{name:k.a,size:"24px"})}),position:"top center",content:this.props.intl.formatMessage(T.prettier),size:"mini"}),Object(N.jsx)("div",{className:"separator"}),Object(N.jsx)(u.a,{trigger:Object(N.jsx)(h.a.Group,{children:Object(N.jsx)(h.a,{icon:!0,basic:!0,onClick:()=>this.onChangeCode(""),children:Object(N.jsx)(f.jb,{name:w.a,size:"24px",color:"#e40166"})})}),position:"top center",content:this.props.intl.formatMessage(T.clear),size:"mini"})]}),this.state.isPreview?Object(N.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):Object(N.jsx)(E,{value:this.getValue(),readOnly:!this.props.editable,placeholder:n,onValueChange:e=>this.onChangeCode(e),highlight:null!==(e=this.props.prismCore)&&void 0!==e&&e.highlight&&null!==(t=this.props.prismCore)&&void 0!==t&&null!==(s=t.languages)&&void 0!==s&&s.html?e=>this.props.prismCore.highlight(e,this.props.prismCore.languages.html,"html"):()=>{},padding:8,className:"html-editor",ref:e=>{e&&(this.codeEditorRef.current=e)},ignoreTabKey:!0})]})}}r()(I,"defaultProps",{editable:!0});const A=e=>t=>{const[n,r]=c.a.useState(),i=c.a.useRef(null),a=c.a.useRef(!1);return c.a.useEffect(()=>(i.current=s.e(38).then(s.t.bind(null,"bPOv",7)),i.current.then(()=>{a.current||r(!0)}),()=>{a.current=!0}),[]),n?Object(N.jsx)(e,D({},t)):null};t.a=Object(o.compose)(Object(O.a)(["prettierStandalone","prettierParserHtml","prismCore"]),A,m.c)(I)},bpg7:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("zpb6")),o=s("/MKj"),l=s("ANjH"),c=s("It+4"),d=s("yE/o"),p=s("TbSc"),u=s("D1pA"),h=s("lHu7"),b=s("zSVi"),j=s("55Ip"),m=s("Ty5D"),g=s("GGqY"),f=s("Kvkj"),O=s("9At1"),v=s("nKUr");const y=Object(h.defineMessages)({send:{id:"Send",defaultMessage:"Send"},contactForm:{id:"Contact form",defaultMessage:"Contact form"},default:{id:"Default",defaultMessage:"Default"},name:{id:"Name",defaultMessage:"Name"},from:{id:"From",defaultMessage:"From"},subject:{id:"Subject",defaultMessage:"Subject"},message:{id:"Message",defaultMessage:"Message"},error:{id:"Error",defaultMessage:"Error"},messageSent:{id:"Email sent",defaultMessage:"Email sent"},back:{id:"Back",defaultMessage:"Back"},success:{id:"Success",defaultMessage:"Success"}});class x extends i.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.state={isClient:!1}}UNSAFE_componentWillReceiveProps(e){this.props.loading&&e.loaded&&g.toast.success(Object(v.jsx)(f.Ub,{success:!0,title:this.props.intl.formatMessage(y.success),content:this.props.intl.formatMessage(y.messageSent)}))}componentDidMount(){this.setState({isClient:!0})}onSubmit(e){this.props.emailNotification(e.from,e.message,e.name,e.subject)}onCancel(){this.props.history.goBack()}render(){return Object(v.jsx)("div",{id:"contact-form",children:Object(v.jsxs)(d.a,{id:"view",children:[Object(v.jsx)(a.d,{title:this.props.intl.formatMessage(y.contactForm)}),this.props.error&&Object(v.jsx)(p.a,{icon:"warning",negative:!0,attached:!0,header:this.props.intl.formatMessage(y.error),content:this.props.error.message}),Object(v.jsx)(f.cb,{onSubmit:this.onSubmit,onCancel:this.onCancel,formData:{blocksLayoutFieldname:{}},submitLabel:this.props.intl.formatMessage(y.send),resetAfterSubmit:!0,title:this.props.intl.formatMessage(y.contactForm),loading:this.props.loading,schema:{fieldsets:[{fields:["name","from","subject","message"],id:"default",title:this.props.intl.formatMessage(y.default)}],properties:{name:{title:this.props.intl.formatMessage(y.name),type:"string"},from:{title:this.props.intl.formatMessage(y.from),type:"email"},subject:{title:this.props.intl.formatMessage(y.subject),type:"string"},message:{title:this.props.intl.formatMessage(y.message),type:"string",widget:"textarea"}},required:["from","message"]}}),this.state.isClient&&Object(v.jsx)(c.a,{node:document.getElementById("toolbar"),children:Object(v.jsx)(f.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(v.jsx)(j.a,{to:""+Object(a.r)(this.props.pathname),className:"item",children:Object(v.jsx)(u.a,{name:"arrow left",size:"big",color:"blue",title:this.props.intl.formatMessage(y.back)})})})})]})})}}r()(x,"defaultProps",{error:null,loading:null,loaded:null}),t.a=Object(l.compose)(m.j,b.c,Object(o.connect)((e,t)=>({loading:e.emailNotification.loading,loaded:e.emailNotification.loaded,error:e.emailNotification.error,pathname:t.location.pathname}),{emailNotification:O.r}))(x)},bySv:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("zpb6"),r=s("Kvkj"),i=s("nKUr");t.a=({data:e})=>Object(i.jsx)("div",{className:"block hero",children:Object(i.jsxs)("div",{className:"block-inner-wrapper",children:[e.url&&Object(i.jsx)("img",{src:Object(n.q)(e.url)+"/@@images/image",alt:"",className:"hero-image",loading:"lazy"}),Object(i.jsxs)("div",{className:"hero-body",children:[Object(i.jsxs)("div",{className:"hero-text",children:[e.title&&Object(i.jsx)("h1",{children:e.title}),e.description&&Object(i.jsx)("p",{children:e.description})]}),Object(i.jsx)(r.ob,{data:e})]})]})})},bzW1:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M4.8774,27 L23.1324,27 C22.3064,25.614 20.0084,24.548 19.0924,24.232 C15.4554,23.373 15.0454,21.379 15.0114,21.154 L15.0004,21.003 L15.0004,17.895 L15.6304,17.645 C16.8514,17.158 16.7644,16.393 16.7634,16.386 L16.6384,15.607 L17.3654,15.304 C17.4044,15.268 17.5774,15.064 17.9134,14.315 C17.8684,14.255 17.7984,14.185 17.7704,14.163 L17.1894,13.725 L17.8304,11.881 C18.1344,10.639 18.0094,9.353 17.4614,8.651 C17.1974,8.314 16.8544,8 16.5174,8 L15.9664,8 L15.6724,7.655 C15.6704,7.653 15.0354,6.766 14.0284,6.766 C13.5514,6.769 12.1334,6.916 11.3624,7.421 C10.4574,8.013 9.5174,9.292 10.1784,11.953 L10.7744,13.773 L10.1364,14.196 C10.0934,14.228 10.0314,14.292 9.9984,14.339 C10.1754,14.816 10.5154,15.233 10.6504,15.308 L11.4284,15.632 L11.2414,16.388 C11.2324,16.494 11.2244,17.188 12.3694,17.644 L13.0004,17.894 L12.9884,21.151 C12.9554,21.376 12.5524,23.373 8.8194,24.259 C7.9814,24.553 5.7004,25.615 4.8774,27 L4.8774,27 Z M25.0004,29 L3.0004,29 L3.0004,28 C3.0004,24.39 7.8954,22.539 8.4774,22.34 C10.5884,21.834 10.8954,21.057 11.0004,20.847 L11.0004,19.199 C9.8114,18.515 9.3684,17.523 9.2664,16.76 C8.7184,16.278 8.2894,15.536 8.0804,14.916 C7.8304,14.176 8.0854,13.536 8.4414,13.083 L8.2574,12.521 C7.2064,8.3 9.3144,6.401 10.2674,5.777 C11.6724,4.858 13.7894,4.827 14.0254,4.826 C15.5324,4.826 16.5564,5.734 17.0414,6.29 C17.8034,6.429 18.5104,6.867 19.0364,7.54 C19.5834,8.239 20.4024,9.807 19.7454,12.45 L19.5164,13.114 C19.9054,13.644 20.0924,14.325 19.7984,14.997 C19.5254,15.62 19.2044,16.289 18.7404,16.739 C18.6424,17.505 18.2004,18.509 17.0004,19.199 L17.0004,20.87 C17.0754,21.01 17.3384,21.816 19.4304,22.313 C20.1054,22.539 25.0004,24.389 25.0004,28 L25.0004,29 Z"/><path d="M33,29 L28,29 L28,27 L30.672,27 C29.782,25.622 27.317,24.555 26.333,24.238 C22.523,23.401 22.062,21.514 22.01,21.145 L22,21.003 L22,17.895 L22.63,17.645 C23.845,17.16 23.854,16.383 23.851,16.296 L23.826,15.586 L24.486,15.294 C24.643,15.191 24.916,14.646 25.069,14.327 C25.025,14.276 24.965,14.219 24.913,14.181 L24.301,13.734 L24.982,11.861 C25.416,10.223 24.956,9.155 24.642,8.745 C24.337,8.349 23.917,8 23.491,8 L22.962,8 L22.665,7.684 C22.642,7.651 21.984,6.802 20.88,6.767 C20.799,6.783 20.692,6.852 20.656,6.879 L19.312,5.413 C19.843,4.929 20.57,4.839 20.71,4.824 L20.814,4.822 C22.399,4.822 23.483,5.733 23.99,6.279 C24.854,6.414 25.651,6.897 26.228,7.647 C27.158,8.859 27.392,10.571 26.886,12.466 L26.654,13.098 C27.077,13.635 27.278,14.33 26.953,15.022 C26.63,15.709 26.295,16.358 25.813,16.785 C25.682,17.549 25.2,18.522 24,19.202 L24,20.874 C24.073,20.994 24.578,21.807 26.855,22.31 C27.563,22.532 33,24.375 33,28 L33,29 Z"/></g>'}},cgIO:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("bt/X"),a=s.n(i),o=s("9UKM"),l=s.n(o),c=s("k4Da"),d=s.n(c),p=s("0XPj"),u=s.n(p),h=s("3WF5"),b=s.n(h),j=s("q1tI"),m=(s("17x9"),s("Lf35")),g=s("ANjH"),f=s("Kvkj"),O=s("yr4J"),v=s("cuOu"),y=s("nKUr");function x(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function w(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?x(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):x(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const C=e=>e;class S extends j.Component{constructor(...e){super(...e),r()(this,"state",{selectedOption:this.props.value?{label:this.props.value.title,value:this.props.value.value}:{}}),r()(this,"loadOptions",(e,t,s)=>{let n=this.props.itemsTotal>t.length;if(n){const r=this.state.search!==e?0:s.offset;return this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl,query:e,start:r}),this.setState({search:e}),{options:u()(t,this.props.choices).length===this.props.choices.length?[]:this.props.choices,hasMore:n,additional:{offset:r===s.offset?r+25:r}}}return null}),r()(this,"handleChange",e=>{this.setState({selectedOption:e}),this.props.onChange(this.props.id,{value:e.value,title:e.label})})}componentDidMount(){!this.props.choices&&this.props.vocabBaseUrl&&this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl})}render(){const{id:e,value:t,onChange:s,querystring:n,filterOptions:r=C}=this.props,{indexes:i=[]}=n,o=this.props.reactSelect.default;return Object(y.jsx)(f.db,w(w({},this.props),{},{children:Object(y.jsx)(o,{id:"field-"+e,name:e,isDisabled:!1,className:"react-select-container",classNamePrefix:"react-select",options:b()(l()(a()(l()(r(i)),e=>e[1].group)),e=>({label:e[0],options:b()(d()(e[1],e=>e[1].enabled),e=>({label:e[1].title,value:e[0]}))})),styles:v.g,theme:v.h,components:{DropdownIndicator:v.b,Option:v.d},value:t,onChange:t=>{let n=[];if(Array.isArray(t)){for(let e of t)n.push(e.value);return s(e,n)}return s(e,t)}})}))}}r()(S,"defaultProps",{description:null,required:!1,items:{vocabulary:null},widgetOptions:{vocabulary:null},error:[],choices:[],loading:!1,value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},onEdit:null,onDelete:null}),t.a=Object(g.compose)(O.a,Object(m.a)(["reactSelect"]))(S)},cj9C:function(e,t,s){"use strict";(function(e){s.d(t,"a",(function(){return r}));let n={};if("undefined"===typeof window){if(e.env){n=Object.keys(e.env).filter(e=>e.startsWith("RAZZLE_")).reduce((t,s)=>Object.assign(t,{[s]:e.env[s]}),{})}}else if(window.env){n=Object.keys(window.env).reduce((e,t)=>Object.assign(e,{[t]:window.env[t]}),{})}const r=n}).call(this,s("8oxB"))},cmtx:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("QILm"),a=s.n(i),o=(s("q1tI"),s("Kvkj")),l=(s("17x9"),s("nKUr"));const c=["condition","to","item"];function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{let{condition:t,to:s,item:n}=e,r=a()(e,c);return t?Object(l.jsx)(o.Zb,p(p({href:s,item:n},r),{},{children:r.children})):r.children}},cuOu:function(e,t,s){"use strict";s.d(t,"c",(function(){return f})),s.d(t,"e",(function(){return O})),s.d(t,"f",(function(){return v})),s.d(t,"d",(function(){return y})),s.d(t,"b",(function(){return x})),s.d(t,"a",(function(){return w})),s.d(t,"h",(function(){return C})),s.d(t,"g",(function(){return S}));var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("Lf35")),a=s("Kvkj"),o=s("5ymK"),l=s.n(o),c=s("hxMo"),d=s.n(c),p=s("8mwE"),u=s.n(p),h=s("1Jxj"),b=s.n(h),j=s("nKUr");function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function g(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const f=Object(i.a)("reactWindow")(e=>{const{FixedSizeList:t}=e.reactWindow,{options:s,children:n,maxHeight:r,getValue:i}=e,[a]=i(),o=50*s.indexOf(a);return Object(j.jsx)(t,{height:r,itemCount:n.length,itemSize:50,initialScrollOffset:o,children:({index:e,style:t})=>Object(j.jsx)("div",{style:t,children:n[e]})})}),O=Object(i.a)(["reactSelect","reactSortableHOC"])(e=>{const{MultiValue:t}=e.reactSelect.components,{SortableElement:s}=e.reactSortableHOC,n=g(g({},e.innerProps),{},{onMouseDown:e=>{e.preventDefault(),e.stopPropagation()}}),r=s(t);return Object(j.jsx)(r,g(g({},e),{},{innerProps:n}))}),v=Object(i.a)(["reactSelect","reactSortableHOC"])(e=>{const{MultiValueLabel:t}=e.reactSelect.components,{SortableHandle:s}=e.reactSortableHOC,n=s(t);return Object(j.jsx)(n,g({},e))}),y=Object(i.a)("reactSelect")(e=>{const{Option:t}=e.reactSelect.components;return Object(j.jsxs)(t,g(g({},e),{},{children:[Object(j.jsx)("div",{children:e.label}),e.isFocused&&!e.isSelected&&Object(j.jsx)(a.jb,{name:u.a,size:"24px",color:"#b8c6c8"}),e.isSelected&&Object(j.jsx)(a.jb,{name:u.a,size:"24px",color:"#007bc1"})]}))}),x=Object(i.a)("reactSelect")(e=>{const{DropdownIndicator:t}=e.reactSelect.components;return Object(j.jsx)(t,g(g({},e),{},{children:e.selectProps.menuIsOpen?Object(j.jsx)(a.jb,{name:d.a,size:"24px",color:"#007bc1"}):Object(j.jsx)(a.jb,{name:l.a,size:"24px",color:"#007bc1"})}))}),w=Object(i.a)("reactSelect")(e=>{const{ClearIndicator:t}=e.reactSelect.components;return Object(j.jsx)(t,g(g({},e),{},{children:Object(j.jsx)(a.jb,{name:b.a,size:"18px",color:"#e40166"})}))}),C=(Object(i.a)("reactSelect")(e=>{const{Group:t}=e.reactSelect.components;return Object(j.jsx)(t,g({},e))}),e=>g(g({},e),{},{borderRadius:0,colors:g(g({},e.colors),{},{primary25:"hotpink",primary:"#b8c6c8"})})),S={control:(e,t)=>g(g({},e),{},{border:"none",borderBottom:"1px solid #c7d5d8",boxShadow:"none",borderBottomStyle:t.menuIsOpen?"dotted":"solid",minHeight:"60px"}),menu:(e,t)=>g(g({},e),{},{top:null,marginTop:0,boxShadow:"none",borderBottom:"1px solid #c7d5d8",zIndex:2}),indicatorSeparator:e=>g(g({},e),{},{width:null}),valueContainer:e=>g(g({},e),{},{paddingLeft:0}),dropdownIndicator:e=>({paddingRight:0}),clearIndicator:e=>({color:"#e40166"}),option:(e,t)=>g(g({},e),{},{backgroundColor:null,minHeight:"50px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 12px",color:t.isSelected?"#007bc1":t.isFocused?"#4a4a4a":"inherit",":active":{backgroundColor:null},svg:{flex:"0 0 auto"}})}},cy6M:function(e,t,s){"use strict";s("lSNA"),s("QILm"),s("q1tI"),s("nKUr")},"d/Yv":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("hzCD"),a=s.n(i),o=s("noZS"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("7GkX"),u=s.n(p),h=s("uoTU"),b=s.n(h),j=s("J2m7"),m=s.n(j),g=s("k4Da"),f=s.n(g),O=s("NIJN"),v=s.n(O),y=s("q1tI"),x=s.n(y),w=(s("17x9"),s("/MKj")),C=s("ANjH"),S=s("It+4"),M=s("55Ip"),k=s("yE/o"),N=s("ezNy"),P=s("NrgV"),L=s("X47e"),D=s("3mGJ"),E=s("R6OX"),T=s("Pj1C"),I=s("QetY"),A=s("umxb"),R=s("pLir"),_=s("ikXu"),q=s("aFK9"),F=s.n(q),B=s("lHu7"),z=s("24R3"),U=s("zSVi"),H=s("zpb6"),K=s("9At1"),G={sortable_title:{label:"Title",type:"string",sort_on:"sortable_title"},review_state:{label:"Review state",type:"string"},ModificationDate:{label:"Last modified",type:"date",sort_on:"modified"},EffectiveDate:{label:"Publication date",type:"date",sort_on:"effective"},id:{label:"ID",type:"string",sort_on:"id"},ExpirationDate:{label:"Expiration date",type:"date"},CreationDate:{label:"Created on",type:"date",sort_on:"created"},Subject:{label:"Tags",type:"array"},portal_type:{label:"Type",type:"string",sort_on:"portal_type"},is_folderish:{label:"Folder",type:"boolean"},exclude_from_nav:{label:"Excluded from navigation",type:"boolean"},getObjSize:{label:"Object Size",type:"string"},last_comment_date:{label:"Last comment date",type:"date"},total_comments:{label:"Total comments",type:"number"},end:{label:"End Date",type:"date"},Description:{label:"Description",type:"string"},Creator:{label:"Creator",type:"string"},location:{label:"Location",type:"string"},UID:{label:"UID",type:"string"},start:{label:"Start Date",type:"date"},Type:{label:"Type",type:"string"}};const V=["review_state","ModificationDate","EffectiveDate"];var Z=s("Kvkj"),W=s("Lf35"),$=s("qaC+"),Y=s.n($),J=s("mz8Z"),Q=s.n(J),X=s("DQaE"),ee=s.n(X),te=s("8Z/7"),se=s.n(te),ne=s("kbKZ"),re=s.n(ne),ie=s("qSC7"),ae=s.n(ie),oe=s("fqYu"),le=s.n(oe),ce=s("4Ll7"),de=s.n(ce),pe=s("gxrp"),ue=s.n(pe),he=s("om3J"),be=s.n(he),je=s("SoYb"),me=s.n(je),ge=s("uXAj"),fe=s.n(ge),Oe=s("zTLc"),ve=s.n(Oe),ye=s("rOmE"),xe=s.n(ye),we=s("BlEy"),Ce=s.n(we),Se=s("YLi1"),Me=s.n(Se),ke=s("VjUS"),Ne=s.n(ke),Pe=s("5ymK"),Le=s.n(Pe),De=s("iHvF"),Ee=s.n(De),Te=s("nKUr");function Ie(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ae(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ie(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Re=Object(B.defineMessages)({back:{id:"Back",defaultMessage:"Back"},contents:{id:"Contents",defaultMessage:"Contents"},copy:{id:"Copy",defaultMessage:"Copy"},cut:{id:"Cut",defaultMessage:"Cut"},error:{id:"You can't paste this content here",defaultMessage:"You can't paste this content here"},delete:{id:"Delete",defaultMessage:"Delete"},deleteConfirm:{id:"Do you really want to delete the following items?",defaultMessage:"Do you really want to delete the following items?"},deleteError:{id:"The item could not be deleted.",defaultMessage:"The item could not be deleted."},loading:{id:"loading",defaultMessage:"Loading"},home:{id:"Home",defaultMessage:"Home"},filter:{id:"Filter\u2026",defaultMessage:"Filter\u2026"},messageCopied:{id:"Item(s) copied.",defaultMessage:"Item(s) copied."},messageCut:{id:"Item(s) cut.",defaultMessage:"Item(s) cut."},messageUpdate:{id:"Item(s) has been updated.",defaultMessage:"Item(s) has been updated."},messageReorder:{id:"Item succesfully moved.",defaultMessage:"Item succesfully moved."},messagePasted:{id:"Item(s) pasted.",defaultMessage:"Item(s) pasted."},messageWorkflowUpdate:{id:"Item(s) state has been updated.",defaultMessage:"Item(s) state has been updated."},paste:{id:"Paste",defaultMessage:"Paste"},properties:{id:"Properties",defaultMessage:"Properties"},rearrangeBy:{id:"Rearrange items by\u2026",defaultMessage:"Rearrange items by\u2026"},rename:{id:"Rename",defaultMessage:"Rename"},select:{id:"Select\u2026",defaultMessage:"Select\u2026"},selected:{id:"{count} selected",defaultMessage:"{count} selected"},selectColumns:{id:"Select columns to show",defaultMessage:"Select columns to show"},sort:{id:"sort",defaultMessage:"sort"},state:{id:"State",defaultMessage:"State"},tags:{id:"Tags",defaultMessage:"Tags"},upload:{id:"Upload",defaultMessage:"Upload"},success:{id:"Success",defaultMessage:"Success"},publicationDate:{id:"Publication date",defaultMessage:"Publication date"},createdOn:{id:"Created on",defaultMessage:"Created on"},expirationDate:{id:"Expiration date",defaultMessage:"Expiration date"},id:{id:"ID",defaultMessage:"ID"},uid:{id:"UID",defaultMessage:"UID"},reviewState:{id:"Review state",defaultMessage:"Review state"},folder:{id:"Folder",defaultMessage:"Folder"},excludedFromNavigation:{id:"Excluded from navigation",defaultMessage:"Excluded from navigation"},objectSize:{id:"Object Size",defaultMessage:"Object Size"},lastCommentedDate:{id:"Last comment date",defaultMessage:"Last comment date"},totalComments:{id:"Total comments",defaultMessage:"Total comments"},creator:{id:"Creator",defaultMessage:"Creator"},endDate:{id:"End Date",defaultMessage:"End Date"},startDate:{id:"Start Date",defaultMessage:"Start Date"},all:{id:"All",defaultMessage:"All"}});class _e extends y.Component{constructor(e){var t,s;super(e),this.onDeselect=this.onDeselect.bind(this),this.onSelect=this.onSelect.bind(this),this.onSelectAll=this.onSelectAll.bind(this),this.onSelectIndex=this.onSelectIndex.bind(this),this.onSelectNone=this.onSelectNone.bind(this),this.onDeleteOk=this.onDeleteOk.bind(this),this.onDeleteCancel=this.onDeleteCancel.bind(this),this.onUploadOk=this.onUploadOk.bind(this),this.onUploadCancel=this.onUploadCancel.bind(this),this.onRenameOk=this.onRenameOk.bind(this),this.onRenameCancel=this.onRenameCancel.bind(this),this.onTagsOk=this.onTagsOk.bind(this),this.onTagsCancel=this.onTagsCancel.bind(this),this.onPropertiesOk=this.onPropertiesOk.bind(this),this.onPropertiesCancel=this.onPropertiesCancel.bind(this),this.onWorkflowOk=this.onWorkflowOk.bind(this),this.onWorkflowCancel=this.onWorkflowCancel.bind(this),this.onChangeFilter=this.onChangeFilter.bind(this),this.onChangePage=this.onChangePage.bind(this),this.onChangePageSize=this.onChangePageSize.bind(this),this.onOrderIndex=this.onOrderIndex.bind(this),this.onOrderItem=this.onOrderItem.bind(this),this.onSortItems=this.onSortItems.bind(this),this.onMoveToTop=this.onMoveToTop.bind(this),this.onChangeSelected=this.onChangeSelected.bind(this),this.onMoveToBottom=this.onMoveToBottom.bind(this),this.cut=this.cut.bind(this),this.copy=this.copy.bind(this),this.delete=this.delete.bind(this),this.upload=this.upload.bind(this),this.rename=this.rename.bind(this),this.tags=this.tags.bind(this),this.properties=this.properties.bind(this),this.workflow=this.workflow.bind(this),this.paste=this.paste.bind(this),this.fetchContents=this.fetchContents.bind(this),this.orderTimeout=null,this.state={selected:[],showDelete:!1,showUpload:!1,showRename:!1,showTags:!1,showProperties:!1,showWorkflow:!1,itemsToDelete:[],items:this.props.items,filter:"",currentPage:0,pageSize:50,index:this.props.index||{order:u()(G),values:l()(G,(e,t)=>Ae(Ae({},e),{},{selected:-1!==b()(V,t)})),selectedCount:V.length+1},sort_on:(null===(t=this.props.sort)||void 0===t?void 0:t.on)||"getObjPositionInParent",sort_order:(null===(s=this.props.sort)||void 0===s?void 0:s.order)||"ascending",isClient:!1},this.filterTimeout=null}componentDidMount(){this.fetchContents(),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){(this.props.clipboardRequest.loading&&e.clipboardRequest.loaded||this.props.deleteRequest.loading&&e.deleteRequest.loaded||this.props.updateRequest.loading&&e.updateRequest.loaded)&&this.fetchContents(e.pathname),this.props.updateRequest.loading&&e.updateRequest.loaded&&this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messageUpdate)})),this.props.pathname!==e.pathname&&this.setState({currentPage:0},()=>this.fetchContents(e.pathname)),this.props.searchRequest.loading&&e.searchRequest.loaded&&this.setState({items:e.items}),this.props.clipboardRequest.loading&&e.clipboardRequest.error&&this.props.toastify.toast.error(Object(Te.jsx)(Z.Ub,{error:!0,title:this.props.intl.formatMessage(Re.error),content:this.props.intl.formatMessage(Re.error)})),this.props.clipboardRequest.loading&&e.clipboardRequest.loaded&&this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messagePasted)})),this.props.deleteRequest.loading&&e.deleteRequest.error&&this.props.toastify.toast.error(Object(Te.jsx)(Z.Ub,{error:!0,title:this.props.intl.formatMessage(Re.deleteError),content:this.props.intl.formatMessage(Re.deleteError)})),this.props.orderRequest.loading&&e.orderRequest.loaded&&this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messageReorder)}))}onDeselect(e,{value:t}){this.setState({selected:a()(this.state.selected,t)})}onSelect(e,t){-1===b()(this.state.selected,t)?this.setState({selected:v()(this.state.selected,t)}):this.setState({selected:a()(this.state.selected,t)})}onSelectAll(){this.setState({selected:d()(this.state.items,e=>e["@id"])})}onSelectNone(){this.setState({selected:[]})}onSelectIndex(e,{value:t}){let s=Ae(Ae({},this.state.index),{},{selectedCount:this.state.index.selectedCount+(this.state.index.values[t].selected?-1:1),values:l()(this.state.index.values,(e,s)=>Ae(Ae({},e),{},{selected:s===t?!e.selected:e.selected}))});this.setState({index:s}),this.props.updateColumnsContent(Object(H.r)(this.props.pathname),s)}onChangeFilter(e,{value:t}){const s=this;clearTimeout(s.filterTimeout),this.setState({filter:t},()=>{s.filterTimeout=setTimeout(()=>{s.fetchContents()},200)})}onChangeSelected(e,{value:t}){e.stopPropagation();const{items:s,selected:n}=this.state,r=f()(n,e=>m()(s,t=>t["@id"]===e).title.toLowerCase().includes(t.toLowerCase()));this.setState({filteredItems:r})}onChangePage(e,{value:t}){this.setState({currentPage:t},()=>this.fetchContents())}onChangePageSize(e,{value:t}){this.setState({pageSize:t,currentPage:0},()=>this.fetchContents())}onOrderIndex(e,t){this.setState({index:Ae(Ae({},this.state.index),{},{order:F()(this.state.index.order,e,e+t)})}),this.props.updateColumnsContent(Object(H.r)(this.props.pathname),this.state.index)}onOrderItem(e,t,s,n){n?this.props.orderContent(Object(H.r)(this.props.pathname),e.replace(/^.*\//,""),s):this.setState({items:F()(this.state.items,t,t+s)})}onSortItems(e,{value:t}){const s=t.split("|");this.setState({sort_on:s[0],sort_order:s[1]}),this.props.sortContent(Object(H.r)(this.props.pathname),s[0],s[1])}onMoveToTop(e,{value:t}){const s=this.state.items[t]["@id"];t=this.state.currentPage*this.state.pageSize+t,this.props.orderContent(Object(H.r)(this.props.pathname),s.replace(/^.*\//,""),-t),this.setState({currentPage:0},()=>this.fetchContents())}onMoveToBottom(e,{value:t}){this.onOrderItem(this.state.items[t]["@id"],t,this.state.items.length-1-t,!1),this.onOrderItem(this.state.items[t]["@id"],t,this.state.items.length-1-t,!0)}onDeleteOk(){this.props.deleteContent(this.state.itemsToDelete),this.setState({showDelete:!1,itemsToDelete:[],selected:[]})}onDeleteCancel(){this.setState({showDelete:!1,itemsToDelete:[]})}onUploadOk(){this.fetchContents(),this.setState({showUpload:!1})}onUploadCancel(){this.setState({showUpload:!1})}onRenameOk(){this.setState({showRename:!1,selected:[]})}onRenameCancel(){this.setState({showRename:!1})}onTagsOk(){this.setState({showTags:!1,selected:[]})}onTagsCancel(){this.setState({showTags:!1})}onPropertiesOk(){this.setState({showProperties:!1,selected:[]})}onPropertiesCancel(){this.setState({showProperties:!1})}onWorkflowOk(){this.fetchContents(),this.setState({showWorkflow:!1,selected:[]}),this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messageWorkflowUpdate)}))}onWorkflowCancel(){this.setState({showWorkflow:!1})}getFieldById(e,t){const s=m()(this.state.items,{"@id":e});return s?s[t]:""}fetchContents(e){this.state.pageSize===this.props.intl.formatMessage(Re.all)?this.props.searchContent(Object(H.r)(e||this.props.pathname),Ae({"path.depth":1,sort_on:this.state.sort_on,sort_order:this.state.sort_order,metadata_fields:"_all",b_size:1e8},this.state.filter&&{SearchableText:this.state.filter+"*"})):this.props.searchContent(Object(H.r)(e||this.props.pathname),Ae(Ae({"path.depth":1,sort_on:this.state.sort_on,sort_order:this.state.sort_order,metadata_fields:"_all"},this.state.filter&&{SearchableText:this.state.filter+"*"}),{},{b_size:this.state.pageSize,b_start:this.state.currentPage*this.state.pageSize}))}cut(e,{value:t}){this.props.cut(t?[t]:this.state.selected),this.onSelectNone(),this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messageCut)}))}copy(e,{value:t}){this.props.copy(t?[t]:this.state.selected),this.onSelectNone(),this.props.toastify.toast.success(Object(Te.jsx)(Z.Ub,{success:!0,title:this.props.intl.formatMessage(Re.success),content:this.props.intl.formatMessage(Re.messageCopied)}))}delete(e,{value:t}){this.setState({showDelete:!0,itemsToDelete:t?[t]:this.state.selected})}upload(){this.setState({showUpload:!0})}rename(){this.setState({showRename:!0})}tags(){this.setState({showTags:!0})}properties(){this.setState({showProperties:!0})}workflow(){this.setState({showWorkflow:!0})}paste(){"copy"===this.props.action&&this.props.copyContent(this.props.source,Object(H.r)(this.props.pathname)),"cut"===this.props.action&&this.props.moveContent(this.props.source,Object(H.r)(this.props.pathname))}render(){var e,t,s,n,r,i,a,o,l,c;const p=this.state.selected.length>0,u=this.state.filteredItems||this.state.selected,h=Object(H.r)(this.props.pathname),j=m()(this.props.objectActions,{id:"folderContents"}),g=(null===(e=this.props.clipboardRequest)||void 0===e?void 0:e.loading)&&!(null!==(t=this.props.clipboardRequest)&&void 0!==t&&t.error)||(null===(s=this.props.deleteRequest)||void 0===s?void 0:s.loading)&&!(null!==(n=this.props.deleteRequest)&&void 0!==n&&n.error)||(null===(r=this.props.updateRequest)||void 0===r?void 0:r.loading)&&!(null!==(i=this.props.updateRequest)&&void 0!==i&&i.error)||(null===(a=this.props.orderRequest)||void 0===a?void 0:a.loading)&&!(null!==(o=this.props.orderRequest)&&void 0!==o&&o.error)||(null===(l=this.props.searchRequest)||void 0===l?void 0:l.loading)&&!(null!==(c=this.props.searchRequest)&&void 0!==c&&c.error);return this.props.token&&this.props.objectActions.length>0?Object(Te.jsx)(Te.Fragment,{children:j?Object(Te.jsx)(k.a,{id:"page-contents",className:"folder-contents",children:Object(Te.jsxs)(N.a.Dimmable,{as:"div",blurring:!0,dimmed:g,children:[Object(Te.jsx)(N.a,{active:g,inverted:!0,children:Object(Te.jsx)(P.a,{indeterminate:!0,size:"massive",children:this.props.intl.formatMessage(Re.loading)})}),Object(Te.jsx)(H.d,{title:this.props.intl.formatMessage(Re.contents)}),Object(Te.jsx)("div",{className:"container",children:Object(Te.jsxs)("article",{id:"content",children:[Object(Te.jsx)(L.a,{open:this.state.showDelete,header:this.props.intl.formatMessage(Re.deleteConfirm),content:Object(Te.jsx)("div",{className:"content",children:Object(Te.jsx)("ul",{className:"content",children:d()(this.state.itemsToDelete,e=>Object(Te.jsx)("li",{children:this.getFieldById(e,"title")},e))})}),onCancel:this.onDeleteCancel,onConfirm:this.onDeleteOk,size:"mini"}),Object(Te.jsx)(Z.J,{open:this.state.showUpload,onCancel:this.onUploadCancel,onOk:this.onUploadOk,pathname:Object(H.r)(this.props.pathname)}),Object(Te.jsx)(Z.H,{open:this.state.showRename,onCancel:this.onRenameCancel,onOk:this.onRenameOk,items:d()(this.state.selected,e=>({url:e,title:this.getFieldById(e,"title"),id:this.getFieldById(e,"id")}))}),Object(Te.jsx)(Z.I,{open:this.state.showTags,onCancel:this.onTagsCancel,onOk:this.onTagsOk,items:d()(this.state.selected,e=>({url:e,subjects:this.getFieldById(e,"Subject")}))}),Object(Te.jsx)(Z.G,{open:this.state.showProperties,onCancel:this.onPropertiesCancel,onOk:this.onPropertiesOk,items:this.state.selected}),this.state.showWorkflow&&Object(Te.jsx)(Z.K,{open:this.state.showWorkflow,onCancel:this.onWorkflowCancel,onOk:this.onWorkflowOk,items:this.state.selected}),Object(Te.jsx)("section",{id:"content-core",children:Object(Te.jsxs)(D.a.Group,{raised:!0,children:[Object(Te.jsxs)(E.a,{secondary:!0,attached:!0,className:"top-menu",children:[Object(Te.jsx)(E.a.Menu,{className:"top-menu-menu",children:Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.upload,className:"upload",children:Object(Te.jsx)(Z.jb,{name:de.a,color:"#007eb1",size:"24px",className:"upload"})}),position:"top center",content:this.props.intl.formatMessage(Re.upload),size:"mini"})}),Object(Te.jsxs)(E.a.Menu,{className:"top-menu-menu",children:[Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.rename,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:ae.a,color:p?"#826a6a":"grey",size:"24px",className:"rename"})}),position:"top center",content:this.props.intl.formatMessage(Re.rename),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.workflow,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:le.a,color:p?"#826a6a":"grey",size:"24px",className:"semaphore"})}),position:"top center",content:this.props.intl.formatMessage(Re.state),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.tags,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:re.a,color:p?"#826a6a":"grey",size:"24px",className:"tag"})}),position:"top center",content:this.props.intl.formatMessage(Re.tags),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.properties,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:ue.a,color:p?"#826a6a":"grey",size:"24px",className:"properties"})}),position:"top center",content:this.props.intl.formatMessage(Re.properties),size:"mini"})]}),Object(Te.jsxs)(E.a.Menu,{className:"top-menu-menu",children:[Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.cut,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:Q.a,color:p?"#826a6a":"grey",size:"24px",className:"cut"})}),position:"top center",content:this.props.intl.formatMessage(Re.cut),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.copy,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:se.a,color:p?"#826a6a":"grey",size:"24px",className:"copy"})}),position:"top center",content:this.props.intl.formatMessage(Re.copy),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.paste,disabled:!this.props.action,children:Object(Te.jsx)(Z.jb,{name:be.a,color:p?"#826a6a":"grey",size:"24px",className:"paste"})}),position:"top center",content:this.props.intl.formatMessage(Re.paste),size:"mini"}),Object(Te.jsx)(T.a,{trigger:Object(Te.jsx)(E.a.Item,{icon:!0,as:I.a,onClick:this.delete,disabled:!p,children:Object(Te.jsx)(Z.jb,{name:ee.a,color:p?"#e40166":"grey",size:"24px",className:"delete"})}),position:"top center",content:this.props.intl.formatMessage(Re.delete),size:"mini"})]}),Object(Te.jsx)(E.a.Menu,{position:"right",className:"top-menu-searchbox",children:Object(Te.jsxs)("div",{className:"ui right aligned category search item",children:[Object(Te.jsx)(A.a,{type:"text",transparent:!0,placeholder:this.props.intl.formatMessage(Re.filter),size:"small",value:this.state.filter,onChange:this.onChangeFilter}),Object(Te.jsx)(Z.jb,{name:me.a,size:"30px",color:"#007eb1",className:"zoom"}),Object(Te.jsx)("div",{className:"results"})]})})]}),Object(Te.jsxs)(D.a,{secondary:!0,attached:!0,className:"contents-breadcrumbs",children:[Object(Te.jsx)(Z.D,{items:this.props.breadcrumbs}),Object(Te.jsx)(R.a,{item:!0,upward:!1,icon:Object(Te.jsx)(Z.jb,{name:Ee.a,size:"24px",color:"#826a6a"}),className:"right floating selectIndex",children:Object(Te.jsxs)(R.a.Menu,{className:"left",children:[Object(Te.jsx)(R.a.Header,{content:this.props.intl.formatMessage(Re.selectColumns)}),Object(Te.jsx)(R.a.Menu,{scrolling:!0,children:d()(f()(this.state.index.order,e=>"sortable_title"!==e),e=>Object(Te.jsxs)(R.a.Item,{value:e,onClick:this.onSelectIndex,className:"iconAlign",children:[this.state.index.values[e].selected?Object(Te.jsx)(Z.jb,{name:ve.a,size:"24px",color:"#007eb1",className:this.state.index.values[e].label}):Object(Te.jsx)(Z.jb,{name:fe.a,className:this.state.index.values[e].label,size:"24px"}),Object(Te.jsxs)("span",{children:[" ",this.props.intl.formatMessage({id:this.state.index.values[e].label,defaultMessage:this.state.index.values[e].label})]})]},e))})]})})]}),Object(Te.jsx)("div",{className:"contents-table-wrapper",children:Object(Te.jsxs)(_.a,{selectable:!0,compact:!0,singleLine:!0,attached:!0,children:[Object(Te.jsx)(_.a.Header,{children:Object(Te.jsxs)(_.a.Row,{children:[Object(Te.jsx)(_.a.HeaderCell,{children:Object(Te.jsx)(R.a,{item:!0,upward:!1,className:"sort-icon","aria-label":this.props.intl.formatMessage(Re.sort),icon:Object(Te.jsx)(Z.jb,{name:Ce.a,size:"24px",color:"#826a6a",className:"configuration-svg"}),children:Object(Te.jsxs)(R.a.Menu,{children:[Object(Te.jsx)(R.a.Header,{content:this.props.intl.formatMessage(Re.rearrangeBy)}),d()(["id","sortable_title","EffectiveDate","CreationDate","ModificationDate","portal_type"],e=>Object(Te.jsxs)(R.a.Item,{className:`sort_${e} icon-align`,children:[Object(Te.jsx)(Z.jb,{name:Le.a,size:"24px"}),Object(Te.jsx)(z.a,{id:G[e].label}),Object(Te.jsxs)(R.a.Menu,{children:[Object(Te.jsxs)(R.a.Item,{onClick:this.onSortItems,value:G[e].sort_on+"|ascending",className:`sort_${G[e].sort_on}_ascending icon-align`,children:[Object(Te.jsx)(Z.jb,{name:Me.a,size:"24px"})," ",Object(Te.jsx)(z.a,{id:"Ascending",defaultMessage:"Ascending"})]}),Object(Te.jsxs)(R.a.Item,{onClick:this.onSortItems,value:G[e].sort_on+"|descending",className:`sort_${G[e].sort_on}_descending icon-align`,children:[Object(Te.jsx)(Z.jb,{name:Ne.a,size:"24px"})," ",Object(Te.jsx)(z.a,{id:"Descending",defaultMessage:"Descending"})]})]})]},e))]})})}),Object(Te.jsx)(_.a.HeaderCell,{children:Object(Te.jsx)(R.a,{upward:!1,trigger:Object(Te.jsx)(Z.jb,{name:0===this.state.selected.length?fe.a:this.state.selected.length===this.state.items.length?ve.a:xe.a,color:this.state.selected.length>0?"#007eb1":"#826a6a",size:"24px"}),icon:null,children:Object(Te.jsxs)(R.a.Menu,{children:[Object(Te.jsx)(R.a.Header,{content:this.props.intl.formatMessage(Re.select)}),Object(Te.jsxs)(R.a.Item,{onClick:this.onSelectAll,children:[Object(Te.jsx)(Z.jb,{name:ve.a,color:"#007eb1",size:"24px"})," ",Object(Te.jsx)(z.a,{id:"All",defaultMessage:"All"})]}),Object(Te.jsxs)(R.a.Item,{onClick:this.onSelectNone,children:[Object(Te.jsx)(Z.jb,{name:fe.a,size:"24px"})," ",Object(Te.jsx)(z.a,{id:"None",defaultMessage:"None"})]}),Object(Te.jsx)(R.a.Divider,{}),Object(Te.jsx)(R.a.Header,{content:this.props.intl.formatMessage(Re.selected,{count:this.state.selected.length})}),Object(Te.jsx)(A.a,{icon:Object(Te.jsx)(Z.jb,{name:me.a,size:"24px"}),iconPosition:"left",className:"search",placeholder:this.props.intl.formatMessage(Re.filter),onChange:this.onChangeSelected,onClick:e=>{e.preventDefault(),e.stopPropagation()}}),Object(Te.jsx)(R.a.Menu,{scrolling:!0,children:d()(u,e=>Object(Te.jsxs)(R.a.Item,{value:e,onClick:this.onDeselect,children:[Object(Te.jsx)(Z.jb,{name:ee.a,color:"#e40166",size:"24px"})," ",this.getFieldById(e,"title")]},e))})]})})}),Object(Te.jsx)(_.a.HeaderCell,{width:Math.ceil(16/this.state.index.selectedCount),children:Object(Te.jsx)(z.a,{id:"Title",defaultMessage:"Title"})}),d()(this.state.index.order,(e,t)=>this.state.index.values[e].selected&&Object(Te.jsx)(Z.E,{width:Math.ceil(16/this.state.index.selectedCount),label:this.state.index.values[e].label,order:t,onOrderIndex:this.onOrderIndex},e)),Object(Te.jsx)(_.a.HeaderCell,{textAlign:"right",children:Object(Te.jsx)(z.a,{id:"Actions",defaultMessage:"Actions"})})]})}),Object(Te.jsx)(_.a.Body,{children:this.state.items.map((e,t)=>Object(Te.jsx)(Z.F,{item:e,order:t,selected:-1!==b()(this.state.selected,e["@id"]),onClick:this.onSelect,indexes:f()(d()(this.state.index.order,e=>({id:e,type:this.state.index.values[e].type})),e=>this.state.index.values[e.id].selected),onCut:this.cut,onCopy:this.copy,onDelete:this.delete,onOrderItem:this.onOrderItem,onMoveToTop:this.onMoveToTop,onMoveToBottom:this.onMoveToBottom},e["@id"]))})]})}),Object(Te.jsx)("div",{className:"contents-pagination",children:Object(Te.jsx)(Z.Bb,{current:this.state.currentPage,total:Math.ceil(this.props.total/this.state.pageSize),pageSize:this.state.pageSize,pageSizes:[50,this.props.intl.formatMessage(Re.all)],onChangePage:this.onChangePage,onChangePageSize:this.onChangePageSize})})]})})]})}),this.state.isClient&&Object(Te.jsx)(S.a,{node:document.getElementById("toolbar"),children:Object(Te.jsx)(Z.Vb,{pathname:this.props.pathname,inner:Object(Te.jsx)(M.a,{to:""+h,"aria-label":this.props.intl.formatMessage(Re.back),children:Object(Te.jsx)(Z.jb,{name:Y.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(Re.back)})})})})]})}):Object(Te.jsx)(Z.Xb,{staticContext:this.props.staticContext})}):Object(Te.jsx)(Z.Xb,{staticContext:this.props.staticContext})}}r()(_e,"defaultProps",{items:[],action:null,source:null,index:{order:u()(G),values:l()(G,(e,t)=>Ae(Ae({},e),{},{selected:-1!==b()(V,t)})),selectedCount:V.length+1}});Object(C.compose)(U.c,Object(W.a)(["toastify","reactDnd"]),Object(w.connect)((e,t)=>({token:e.userSession.token,items:e.search.items,sort:e.content.update.sort,index:e.content.updatecolumns.idx,breadcrumbs:e.breadcrumbs.items,total:e.search.total,searchRequest:{loading:e.search.loading,loaded:e.search.loaded},pathname:t.location.pathname,action:e.clipboard.action,source:e.clipboard.source,clipboardRequest:e.clipboard.request,deleteRequest:e.content.delete,updateRequest:e.content.update,objectActions:e.actions.actions.object,orderRequest:e.content.order}),{searchContent:K.kb,cut:K.k,copy:K.e,copyContent:K.f,deleteContent:K.m,listActions:K.M,moveContent:K.Z,orderContent:K.ab,sortContent:K.pb,updateColumnsContent:K.tb}))(_e);t.a=Object(C.compose)(U.c,Object(w.connect)((e,t)=>({token:e.userSession.token,items:e.search.items,sort:e.content.update.sort,index:e.content.updatecolumns.idx,breadcrumbs:e.breadcrumbs.items,total:e.search.total,searchRequest:{loading:e.search.loading,loaded:e.search.loaded},pathname:t.location.pathname,action:e.clipboard.action,source:e.clipboard.source,clipboardRequest:e.clipboard.request,deleteRequest:e.content.delete,updateRequest:e.content.update,objectActions:e.actions.actions.object,orderRequest:e.content.order}),{searchContent:K.kb,cut:K.k,copy:K.e,copyContent:K.f,deleteContent:K.m,listActions:K.M,moveContent:K.Z,orderContent:K.ab,sortContent:K.pb,updateColumnsContent:K.tb}),Object(H.k)([{key:"actions",promise:async({location:e,store:{dispatch:t}})=>await t(Object(K.M)(Object(H.r)(e.pathname)))}]),Object(W.a)(["toastify","reactDnd","reactDndHtml5Backend"]))(e=>{const{DragDropContext:t}=e.reactDnd,s=e.reactDndHtml5Backend.default,n=x.a.useMemo(()=>t(s)(_e),[t,s]);return Object(Te.jsx)(n,Ae({},e))})},dNBu:function(e,t,s){"use strict";var n=s("RBan"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("55Ip"),c=s("zpb6"),d=s("It+4"),p=s("yE/o"),u=s("X47e"),h=s("aQu0"),b=s("ikXu"),j=s("QetY"),m=s("GGqY"),g=s("lHu7"),f=s("24R3"),O=s("zSVi"),v=s("Kvkj"),y=s("9At1"),x=s("vLsE"),w=s.n(x),C=s("qaC+"),S=s.n(C),M=s("nKUr");const k=Object(g.defineMessages)({add:{id:"Add",defaultMessage:"Add"},back:{id:"Back",defaultMessage:"Back"},yes:{id:"Yes",defaultMessage:"Yes"},no:{id:"No",defaultMessage:"No"},addTypeFormTitle:{id:"Add new content type",defaultMessage:"Add new content type"},addTypeButtonTitle:{id:"Add new content type",defaultMessage:"Add new content type"},addTypeFormTitleTitle:{id:"Title",defaultMessage:"Title"},addTypeFormDescriptionTitle:{id:"Description",defaultMessage:"Description"},success:{id:"Success",defaultMessage:"Success"},typeCreated:{id:"Content type created",defaultMessage:"Content type created"},deleteConfirmTitle:{id:"Delete Type",defaultMessage:"Delete Type"},typeDeleted:{id:"Content type deleted",defaultMessage:"Content type deleted"}});class N extends i.Component{constructor(e){super(e),this.onAddTypeSubmit=this.onAddTypeSubmit.bind(this),this.onAddTypeError=this.onAddTypeError.bind(this),this.onAddTypeSuccess=this.onAddTypeSuccess.bind(this),this.onEdit=this.onEdit.bind(this),this.onLayout=this.onLayout.bind(this),this.onSchema=this.onSchema.bind(this),this.onDelete=this.onDelete.bind(this),this.onDeleteCancel=this.onDeleteCancel.bind(this),this.onDeleteOk=this.onDeleteOk.bind(this),this.onDeleteTypeSuccess=this.onDeleteTypeSuccess.bind(this),this.state={showAddType:!1,addTypeError:"",showDelete:!1,typeToDelete:void 0,error:null,isClient:!1}}componentDidMount(){this.props.getControlpanel(this.props.id),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.cpanelRequest.get.loading&&e.cpanelRequest.get.error&&this.setState({error:e.cpanelRequest.get.error}),this.props.cpanelRequest.post.loading&&e.cpanelRequest.post.loaded&&(this.props.getControlpanel(this.props.id),this.onAddTypeSuccess()),this.props.cpanelRequest.post.loading&&e.cpanelRequest.post.error&&this.onAddTypeError(e.cpanelRequest.post.error),this.props.cpanelRequest.delete.loading&&e.cpanelRequest.delete.loaded&&(this.props.getControlpanel(this.props.id),this.onDeleteTypeSuccess())}onAddTypeSubmit(e,t){this.props.postControlpanel(this.props.id,e),this.setState({addTypeSetFormDataCallback:t})}onAddTypeError(e){this.setState({addTypeError:e.message})}onAddTypeSuccess(){this.state.addTypeSetFormDataCallback({}),this.setState({showAddType:!1,addTypeError:void 0,addTypeSetFormDataCallback:void 0}),m.toast.success(Object(M.jsx)(v.Ub,{success:!0,title:this.props.intl.formatMessage(k.success),content:this.props.intl.formatMessage(k.typeCreated)}))}onEdit(e,{value:t}){this.props.history.push(t)}onLayout(e,{value:t}){this.props.history.push(t)}onDelete(e,{value:t}){t&&this.setState({showDelete:!0,typeToDelete:t})}onSchema(e,{value:t}){t&&this.props.history.push(`${this.props.pathname}/${t}/schema`)}onDeleteOk(){const e=Object(c.y)(this.state.typeToDelete);this.props.deleteControlpanel(this.props.id,e),this.setState({showDelete:!1,typeToDelete:void 0})}onDeleteCancel(){this.setState({showDelete:!1,typeToDelete:void 0})}onDeleteTypeSuccess(){m.toast.success(Object(M.jsx)(v.Ub,{success:!0,title:this.props.intl.formatMessage(k.success),content:this.props.intl.formatMessage(k.typeDeleted)}))}render(){return this.state.error?Object(M.jsx)(v.X,{error:this.state.error}):this.props.controlpanel?Object(M.jsxs)(p.a,{className:"types-control-panel",children:[Object(M.jsxs)("div",{className:"container",children:[Object(M.jsx)(u.a,{open:this.state.showDelete,header:this.props.intl.formatMessage(k.deleteConfirmTitle),cancelButton:this.props.intl.formatMessage(k.no),confirmButton:this.props.intl.formatMessage(k.yes),content:Object(M.jsx)("div",{className:"content",children:Object(M.jsx)("ul",{className:"content",children:Object(M.jsx)(f.a,{id:"Do you really want to delete the type {typename}?",defaultMessage:"Do you really want to delete type {typename}?",values:{typename:Object(M.jsx)("b",{children:Object(c.y)(this.state.typeToDelete||"")})}})})}),onCancel:this.onDeleteCancel,onConfirm:this.onDeleteOk}),Object(M.jsx)(v.vb,{open:this.state.showAddType,className:"modal",onSubmit:this.onAddTypeSubmit,submitError:this.state.addTypeError,onCancel:()=>this.setState({showAddType:!1}),title:this.props.intl.formatMessage(k.addTypeFormTitle),loading:this.props.cpanelRequest.post.loading,schema:{fieldsets:[{id:"default",title:"Content type",fields:["title","description"]}],properties:{title:{title:this.props.intl.formatMessage(k.addTypeFormTitleTitle),type:"string",description:""},description:{title:this.props.intl.formatMessage(k.addTypeFormDescriptionTitle),type:"string",description:""}},required:["title"]}})]}),Object(M.jsx)(p.a,{children:Object(M.jsxs)("article",{id:"content",children:[Object(M.jsx)(h.a,{disabled:!0,children:this.props.controlpanel.title}),Object(M.jsx)("section",{id:"content-core",children:Object(M.jsxs)(b.a,{compact:!0,singleLine:!0,striped:!0,children:[Object(M.jsx)(b.a.Header,{children:Object(M.jsxs)(b.a.Row,{children:[Object(M.jsx)(b.a.HeaderCell,{children:Object(M.jsx)(f.a,{id:"Type",defaultMessage:"Type"})}),Object(M.jsx)(b.a.HeaderCell,{children:Object(M.jsx)(f.a,{id:"Description",defaultMessage:"Description"})}),Object(M.jsx)(b.a.HeaderCell,{children:Object(M.jsx)(f.a,{id:"Items",defaultMessage:"Items"})}),Object(M.jsx)(b.a.HeaderCell,{textAlign:"right",children:Object(M.jsx)(f.a,{id:"Actions",defaultMessage:"Actions"})})]})}),Object(M.jsx)(b.a.Body,{children:this.props.controlpanel.items.map(e=>Object(M.jsxs)(b.a.Row,{children:[Object(M.jsx)(b.a.Cell,{children:Object(M.jsx)(l.a,{to:`${this.props.pathname}/${e.id}`,children:e.title})}),Object(M.jsx)(b.a.Cell,{children:e.description}),Object(M.jsx)(b.a.Cell,{children:e.count}),Object(M.jsx)(b.a.Cell,{textAlign:"right",children:Object(M.jsx)(v.B,{item:e,path:this.props.pathname,onEdit:this.onEdit,onDelete:this.onDelete,onSchema:this.onSchema,onLayout:this.onLayout})})]},e["@id"]))})]})})]})}),this.state.isClient&&Object(M.jsx)(d.a,{node:document.getElementById("toolbar"),children:Object(M.jsx)(v.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(M.jsxs)(M.Fragment,{children:[Object(M.jsx)(l.a,{to:Object(c.C)(this.props.pathname),className:"item",children:Object(M.jsx)(v.jb,{name:S.a,size:"30px",className:"contents circled",title:this.props.intl.formatMessage(k.back)})}),Object(M.jsx)(j.a,{className:"add","aria-label":this.props.intl.formatMessage(k.add),tabIndex:0,id:"toolbar-add",onClick:()=>{this.setState({showAddType:!0})},children:Object(M.jsx)(v.jb,{name:w.a,title:this.props.intl.formatMessage(k.addTypeButtonTitle)})})]})})})]}):Object(M.jsx)("div",{})}}t.a=Object(o.compose)(O.c,Object(a.connect)((e,t)=>({controlpanel:e.controlpanels.controlpanel,cpanelRequest:e.controlpanels,pathname:t.location.pathname,id:r()(t.location.pathname.split("/"))}),{getControlpanel:y.u,postControlpanel:y.bb,deleteControlpanel:y.n}))(N)},djAN:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("55Ip"),r=s("TSYQ"),i=s.n(r),a=s("zpb6"),o=s("nKUr");t.a=({data:e,detached:t})=>Object(o.jsx)("p",{className:i()("block image align",{center:!Boolean(e.align),detached:t},e.align),children:e.url&&Object(o.jsx)(o.Fragment,{children:(()=>{const t=Object(o.jsx)("img",{className:i()({"full-width":"full"===e.align,large:"l"===e.size,medium:"m"===e.size,small:"s"===e.size}),src:Object(a.L)(e.url)?"l"===e.size?Object(a.q)(e.url)+"/@@images/image":"m"===e.size?Object(a.q)(e.url)+"/@@images/image/preview":"s"===e.size?Object(a.q)(e.url)+"/@@images/image/mini":Object(a.q)(e.url)+"/@@images/image":e.url,alt:e.alt||"",loading:"lazy"});return e.href?Object(a.L)(e.href)?Object(o.jsx)(n.a,{to:Object(a.q)(e.href),target:e.openLinkInNewTab?"_blank":null,children:t}):Object(o.jsx)("a",{target:e.openLinkInNewTab?"_blank":null,href:e.href,children:t}):t})()})})},dl5t:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M7,29 L29,29 L29,7 L7,7 L7,29 Z M5,31 L31,31 L31,5 L5,5 L5,31 Z"/><path d="M21 17L25 17 25 11 21 11 21 17zM19 19L27 19 27 9 19 9 19 19zM9 11L17 11 17 9 9 9zM9 15L17 15 17 13 9 13zM9 19L17 19 17 17 9 17zM9 23L27 23 27 21 9 21zM9 27L23 27 23 25 9 25z"/></g>'}},dpi8:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("J2m7"),a=s.n(i),o=s("k4Da"),l=s.n(o),c=s("q1tI"),d=s.n(c),p=s("lHu7"),u=s("zSVi"),h=(s("17x9"),s("55Ip")),b=s("BOF4"),j=s.n(b),m=s("/MKj"),g=s("ANjH"),f=s("xd3P"),O=s("2HEh"),v=s("TSYQ"),y=s.n(v),x=s("8ZS8"),w=s("7C3G"),C=s("JYpQ"),S=s("Y/au"),M=s("pCQg"),k=s("UllI"),N=s("Kvkj"),P=s("qaC+"),L=s.n(P),D=s("nKUr");var E=e=>Object(D.jsxs)("div",{className:y()(e.componentName+" pastanaga-menu",{"has-inner-actions":e.hasActions}),style:{flex:e.theToolbar.current?`0 0 ${e.theToolbar.current.getBoundingClientRect().width}px`:null},children:[Object(D.jsxs)("header",{className:"header pulled",children:[Object(D.jsx)("button",{onClick:function(){e.unloadComponent()},children:Object(D.jsx)(N.jb,{name:L.a,size:"30px"})}),Object(D.jsx)("div",{className:"vertical divider"}),Object(D.jsx)("h2",{children:e.componentTitle||e.componentName})]}),e.children]}),T=s("9At1"),I=s("zpb6"),A=s("SAOm"),R=s("53Vz"),_=s.n(R),q=s("0mEo"),F=s.n(q),B=s("NHNY"),z=s.n(B),U=s("vLsE"),H=s.n(U),K=s("iHvF"),G=s.n(K),V=s("b6H7"),Z=s.n(V),W=s("1Jxj"),$=s.n(W);const Y=Object(p.defineMessages)({edit:{id:"Edit",defaultMessage:"Edit"},contents:{id:"Contents",defaultMessage:"Contents"},add:{id:"Add",defaultMessage:"Add"},more:{id:"More",defaultMessage:"More"},personalTools:{id:"Personal tools",defaultMessage:"Personal tools"},shrinkToolbar:{id:"Shrink toolbar",defaultMessage:"Shrink toolbar"},personalInformation:{id:"Personal Information",defaultMessage:"Personal Information"},personalPreferences:{id:"Personal Preferences",defaultMessage:"Personal Preferences"},collection:{id:"Collection",defaultMessage:"Collection"},file:{id:"File",defaultMessage:"File"},link:{id:"Link",defaultMessage:"Link"},newsItem:{id:"News Item",defaultMessage:"News Item"},page:{id:"Page",defaultMessage:"Page"},back:{id:"Back",defaultMessage:"Back"},unlock:{id:"Unlock",defaultMessage:"Unlock"}}),J={personalTools:{component:C.a,wrapper:null},more:{component:w.a,wrapper:null},types:{component:S.a,wrapper:null,contentAsProps:!0},profile:{component:M.a,wrapper:E,wrapperTitle:Y.personalInformation,hideToolbarBody:!0},preferences:{component:k.a,wrapper:E,wrapperTitle:Y.personalPreferences,hideToolbarBody:!0}};class Q extends c.Component{constructor(e){super(e),r()(this,"toolbarWindow",d.a.createRef()),r()(this,"handleShrink",()=>{const{cookies:e}=this.props;e.set("toolbar_expanded",!this.state.expanded,{expires:new Date((new Date).getTime()+1e3*x.a.settings.cookieExpires),path:"/"}),this.setState(e=>({expanded:!e.expanded}),()=>this.props.setExpandedToolbar(this.state.expanded))}),r()(this,"closeMenu",()=>this.setState(()=>({showMenu:!1,loadedComponents:[]}))),r()(this,"loadComponent",e=>{const{loadedComponents:t}=this.state;this.state.loadedComponents.includes(e)||this.setState({loadedComponents:[...t,e],hideToolbarBody:J[e].hideToolbarBody||!1})}),r()(this,"unloadComponent",()=>{this.setState(e=>({loadedComponents:e.loadedComponents.slice(0,-1),hideToolbarBody:J[e.loadedComponents[e.loadedComponents.length-2]].hideToolbarBody||!1}))}),r()(this,"toggleMenu",(e,t)=>{this.state.showMenu?this.closeMenu():("personalTools"===t?this.setState(e=>({showMenu:!e.showMenu,menuStyle:{bottom:0}})):this.setState(e=>({showMenu:!e.showMenu,menuStyle:{top:0}})),this.loadComponent(t))}),r()(this,"handleClickOutside",e=>{this.pusher&&Object(f.doesNodeContainClick)(this.pusher,e)||this.closeMenu()}),r()(this,"unlock",e=>{this.props.unlockContent(Object(I.r)(this.props.pathname),!0)});const{cookies:t}=e;this.state={expanded:"false"!==t.get("toolbar_expanded"),showMenu:!1,menuStyle:{},menuComponents:[],loadedComponents:[],hideToolbarBody:!1}}componentDidMount(){this.props.listActions(Object(I.r)(this.props.pathname)),this.props.getTypes(Object(I.r)(this.props.pathname)),this.props.setExpandedToolbar(this.state.expanded),document.addEventListener("mousedown",this.handleClickOutside,!1)}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&(this.props.listActions(Object(I.r)(e.pathname)),this.props.getTypes(Object(I.r)(e.pathname))),this.props.unlockRequest.loading&&e.unlockRequest.loaded&&this.props.listActions(Object(I.r)(e.pathname))}componentWillUnmount(){document.removeEventListener("mousedown",this.handleClickOutside,!1)}render(){var e,t,s;const n=Object(I.r)(this.props.pathname),r=null===(e=this.props.content)||void 0===e?void 0:e.lock,i=(null===r||void 0===r?void 0:r.locked)&&(null===r||void 0===r?void 0:r.stealable)&&(null===r||void 0===r?void 0:r.creator)!==this.props.userId,o=!i&&a()(this.props.actions.object,{id:"edit"}),l=a()(this.props.actions.object,{id:"folderContents"}),{expanded:c}=this.state;return this.props.token&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(I.b,{className:c?"has-toolbar":"has-toolbar-collapsed"}),Object(D.jsxs)("div",{style:this.state.menuStyle,className:this.state.showMenu?"toolbar-content show":"toolbar-content",ref:this.toolbarWindow,children:[this.state.showMenu&&Object(D.jsx)(I.b,{className:"has-toolbar-menu-open"}),Object(D.jsx)("div",{className:"pusher-puller",ref:e=>this.pusher=e,style:{transform:this.toolbarWindow.current?`translateX(-${(this.state.loadedComponents.length-1)*this.toolbarWindow.current.getBoundingClientRect().width}px)`:null},children:this.state.loadedComponents.map((e,t)=>(()=>{const s=J[e].component,n=J[e].wrapper,r=J[e].hideToolbarBody,i=J[e].wrapperTitle&&this.props.intl.formatMessage(J[e].wrapperTitle);return n?Object(D.jsx)(n,{componentName:e,componentTitle:i,pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,closeMenu:this.closeMenu,hasActions:r,children:Object(D.jsx)(s,{pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,closeMenu:this.closeMenu,isToolbarEmbedded:!0})},"personalToolsComponent-"+t):Object(D.jsx)(s,{pathname:this.props.pathname,loadComponent:this.loadComponent,unloadComponent:this.unloadComponent,componentIndex:t,theToolbar:this.toolbarWindow,closeMenu:this.closeMenu,content:J[e].contentAsProps?this.props.content:null},"personalToolsComponent-"+t)})())})]}),Object(D.jsxs)("div",{className:this.state.expanded?"toolbar expanded":"toolbar",children:[Object(D.jsxs)("div",{className:"toolbar-body",children:[Object(D.jsxs)("div",{className:"toolbar-actions",children:[this.props.hideDefaultViewButtons&&this.props.inner&&Object(D.jsx)(D.Fragment,{children:this.props.inner}),!this.props.hideDefaultViewButtons&&Object(D.jsxs)(D.Fragment,{children:[i&&Object(D.jsx)("button",{"aria-label":this.props.intl.formatMessage(Y.unlock),className:"unlock",onClick:e=>this.unlock(e),tabIndex:0,children:Object(D.jsx)(N.jb,{name:F.a,size:"30px",className:"unlock",title:this.props.intl.formatMessage(Y.unlock)})}),o&&Object(D.jsx)(h.a,{"aria-label":this.props.intl.formatMessage(Y.edit),className:"edit",to:n+"/edit",children:Object(D.jsx)(N.jb,{name:_.a,size:"30px",className:"circled",title:this.props.intl.formatMessage(Y.edit)})}),this.props.content&&this.props.content.is_folderish&&l&&!this.props.pathname.endsWith("/contents")&&Object(D.jsx)(h.a,{"aria-label":this.props.intl.formatMessage(Y.contents),to:n+"/contents",children:Object(D.jsx)(N.jb,{name:z.a,size:"30px",title:this.props.intl.formatMessage(Y.contents)})}),this.props.content&&this.props.content.is_folderish&&l&&this.props.pathname.endsWith("/contents")&&Object(D.jsx)(h.a,{to:""+n,"aria-label":this.props.intl.formatMessage(Y.back),children:Object(D.jsx)(N.jb,{name:$.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(Y.back)})}),this.props.content&&(this.props.content.is_folderish&&this.props.types.length>0||x.a.settings.isMultilingual&&this.props.content["@components"].translations)&&Object(D.jsx)("button",{className:"add","aria-label":this.props.intl.formatMessage(Y.add),onClick:e=>this.toggleMenu(e,"types"),tabIndex:0,id:"toolbar-add",children:Object(D.jsx)(N.jb,{name:H.a,size:"30px",title:this.props.intl.formatMessage(Y.add)})}),Object(D.jsx)("div",{className:"toolbar-button-spacer"}),Object(D.jsxs)("button",{className:"more","aria-label":this.props.intl.formatMessage(Y.more),onClick:e=>this.toggleMenu(e,"more"),tabIndex:0,id:"toolbar-more",children:[Object(D.jsx)(N.jb,{className:"mobile hidden",name:G.a,size:"30px",title:this.props.intl.formatMessage(Y.more)}),this.state.showMenu?Object(D.jsx)(N.jb,{className:"mobile only",name:$.a,size:"30px"}):Object(D.jsx)(N.jb,{className:"mobile only",name:G.a,size:"30px"})]})]})]}),Object(D.jsxs)("div",{className:"toolbar-bottom",children:[Object(D.jsx)(A.b,{name:"main.toolbar.bottom"}),!this.props.hideDefaultViewButtons&&Object(D.jsx)("button",{className:"user","aria-label":this.props.intl.formatMessage(Y.personalTools),onClick:e=>this.toggleMenu(e,"personalTools"),tabIndex:0,id:"toolbar-personal",children:Object(D.jsx)(N.jb,{name:Z.a,size:"30px",title:this.props.intl.formatMessage(Y.personalTools)})})]})]}),Object(D.jsx)("div",{className:"toolbar-handler",children:Object(D.jsx)("button",{"aria-label":this.props.intl.formatMessage(Y.shrinkToolbar),className:y()({[null===(t=this.props.content)||void 0===t?void 0:t.review_state]:null===(s=this.props.content)||void 0===s?void 0:s.review_state}),onClick:this.handleShrink})})]}),Object(D.jsx)("div",{className:"pusher"})]})}}r()(Q,"defaultProps",{actions:null,token:null,userId:null,content:null,hideDefaultViewButtons:!1,types:[]});t.a=Object(g.compose)(u.c,O.a,Object(m.connect)((e,t)=>({actions:e.actions.actions,token:e.userSession.token,userId:e.userSession.token?j()(e.userSession.token).sub:"",content:e.content.data,pathname:t.pathname,types:l()(e.types.types,"addable"),unlockRequest:e.content.unlock}),{getTypes:T.F,listActions:T.M,setExpandedToolbar:T.mb,unlockContent:T.sb}))(Q)},"drz+":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=(s("17x9"),s("/MKj")),l=s("ANjH"),c=s("Ty5D"),d=s("zpb6"),p=s("It+4"),u=s("yE/o"),h=s("QetY"),b=s("lHu7"),j=s("zSVi"),m=s("GGqY"),g=s("Kvkj"),f=s("9At1"),O=s("Z5Td"),v=s.n(O),y=s("1Jxj"),x=s.n(y),w=s("nKUr");const C=Object(b.defineMessages)({changesSaved:{id:"Changes saved.",defaultMessage:"Changes saved."},back:{id:"Back",defaultMessage:"Back"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},info:{id:"Info",defaultMessage:"Info"}});class S extends i.Component{constructor(e){super(e),r()(this,"form",a.a.createRef()),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={isClient:!1}}componentDidMount(){this.props.getControlpanel(this.props.id),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.updateRequest.loading&&e.updateRequest.loaded&&m.toast.info(Object(w.jsx)(g.Ub,{info:!0,title:this.props.intl.formatMessage(C.info),content:this.props.intl.formatMessage(C.changesSaved)}))}onSubmit(e){this.props.updateControlpanel(this.props.controlpanel["@id"],e)}onCancel(){this.props.history.goBack()}render(){return this.props.controlpanel?Object(w.jsxs)("div",{id:"page-controlpanel",children:[Object(w.jsx)(d.d,{title:this.props.controlpanel.title}),Object(w.jsx)(u.a,{children:Object(w.jsx)(g.cb,{ref:this.form,title:this.props.controlpanel.title,schema:this.props.controlpanel.schema,formData:this.props.controlpanel.data,onSubmit:this.onSubmit,onCancel:this.onCancel,hideActions:!0,loading:this.props.updateRequest.loading})}),this.state.isClient&&Object(w.jsx)(p.a,{node:document.getElementById("toolbar"),children:Object(w.jsx)(g.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(w.jsxs)(w.Fragment,{children:[Object(w.jsx)(h.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(C.save),onClick:()=>this.form.current.onSubmit(),disabled:this.props.updateRequest.loading,loading:this.props.updateRequest.loading,children:Object(w.jsx)(g.jb,{name:v.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(C.save)})}),Object(w.jsx)(h.a,{className:"cancel","aria-label":this.props.intl.formatMessage(C.cancel),onClick:()=>this.onCancel(),children:Object(w.jsx)(g.jb,{name:x.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(C.cancel)})})]})})})]}):Object(w.jsx)("div",{})}}r()(S,"defaultProps",{controlpanel:null}),t.a=Object(l.compose)(j.c,Object(o.connect)((e,t)=>({controlpanel:e.controlpanels.controlpanel,updateRequest:e.controlpanels.update,id:t.match.params.id,pathname:t.location.pathname}),{updateControlpanel:f.wb,getControlpanel:f.u}),c.j)(S)},"dx+K":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("17x9"),d=s.n(c),p=s("/MKj"),u=s("ANjH"),h=s("lHts"),b=s.n(h),j=s("TbSc"),m=s("ezNy"),g=s("NrgV"),f=s("QetY"),O=s("umxb"),v=s("lHu7"),y=s.n(v),x=s("zSVi"),w=s("MKeS"),C=s("TSYQ"),S=s.n(C),M=s("Kvkj"),k=s("9At1"),N=s("zpb6"),P=s("QWsx"),L=s.n(P),D=s("1Jxj"),E=s.n(D),T=s("zdp0"),I=s.n(T),A=s("EFnn"),R=s.n(A),_=s("4Ll7"),q=s.n(_),F=s("nKUr"),B=s.n(F);function z(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function U(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?z(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):z(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const H=Object(w.a)({resolved:{},chunkName:()=>"react-dropzone",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(20).then(s.bind(null,"yzbm")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yzbm"}}),K=Object(v.defineMessages)({ImageBlockInputPlaceholder:{id:"Browse the site, drop an image, or type an URL",defaultMessage:"Browse the site, drop an image, or type an URL"}});class G extends o.Component{constructor(...e){super(...e),r()(this,"state",{uploading:!1,url:"",dragging:!1}),r()(this,"onUploadImage",e=>{e.stopPropagation();const t=e.target.files[0];this.setState({uploading:!0}),Object(h.readAsDataURL)(t).then(e=>{const s=e.match(/^data:(.*);(.*),(.*)$/);this.props.createContent(Object(N.r)(this.props.pathname),{"@type":"Image",title:t.name,image:{data:s[3],encoding:s[2],"content-type":s[1],filename:t.name}},this.props.block)})}),r()(this,"onChangeUrl",({target:e})=>{this.setState({url:e.value})}),r()(this,"onSubmitUrl",()=>{this.props.onChangeBlock(this.props.block,U(U({},this.props.data),{},{url:this.state.url}))}),r()(this,"resetSubmitUrl",()=>{this.setState({url:""})}),r()(this,"onDrop",e=>{this.setState({uploading:!0}),Object(h.readAsDataURL)(e[0]).then(t=>{const s=t.match(/^data:(.*);(.*),(.*)$/);this.props.createContent(Object(N.r)(this.props.pathname),{"@type":"Image",title:e[0].name,image:{data:s[3],encoding:s[2],"content-type":s[1],filename:e[0].name}},this.props.block)})}),r()(this,"onKeyDownVariantMenuForm",e=>{"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmitUrl()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())}),r()(this,"onDragEnter",()=>{this.setState({dragging:!0})}),r()(this,"onDragLeave",()=>{this.setState({dragging:!1})}),r()(this,"node",l.a.createRef())}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.state.uploading&&(this.setState({uploading:!1}),this.props.onChangeBlock(this.props.block,U(U({},this.props.data),{},{url:e.content["@id"],alt:""})))}shouldComponentUpdate(e){return this.props.selected||e.selected||!a()(this.props.data,e.data)}onAlignBlock(e){this.props.onChangeBlock(this.props.block,U(U({},this.props.data),{},{align:e}))}render(){const{data:e}=this.props,t=this.props.data.placeholder||this.props.intl.formatMessage(K.ImageBlockInputPlaceholder);return Object(F.jsxs)("div",{className:S()("block image align",{center:!Boolean(e.align)},e.align),children:[e.url?Object(F.jsx)("img",{className:S()({"full-width":"full"===e.align,large:"l"===e.size,medium:"m"===e.size,small:"s"===e.size}),src:Object(N.L)(e.url)?"l"===e.size?Object(N.q)(e.url)+"/@@images/image":"m"===e.size?Object(N.q)(e.url)+"/@@images/image/preview":"s"===e.size?Object(N.q)(e.url)+"/@@images/image/mini":Object(N.q)(e.url)+"/@@images/image":e.url,alt:e.alt||""}):Object(F.jsx)("div",{children:this.props.editable&&Object(F.jsx)(H,{noClick:!0,onDrop:this.onDrop,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,className:"dropzone",children:({getRootProps:e,getInputProps:s})=>Object(F.jsx)("div",U(U({},e()),{},{children:Object(F.jsxs)(j.a,{children:[this.state.dragging&&Object(F.jsx)(m.a,{active:!0}),this.state.uploading&&Object(F.jsx)(m.a,{active:!0,children:Object(F.jsx)(g.a,{indeterminate:!0,children:"Uploading image"})}),Object(F.jsxs)("div",{className:"no-image-wrapper",children:[Object(F.jsx)("img",{src:L.a,alt:""}),Object(F.jsxs)("div",{className:"toolbar-inner",children:[Object(F.jsx)(f.a.Group,{children:Object(F.jsx)(f.a,{basic:!0,icon:!0,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.props.openObjectBrowser()},children:Object(F.jsx)(M.jb,{name:I.a,size:"24px"})})}),Object(F.jsx)(f.a.Group,{children:Object(F.jsxs)("label",{className:"ui button basic icon",children:[Object(F.jsx)(M.jb,{name:q.a,size:"24px"}),Object(F.jsx)("input",U({},s({type:"file",onChange:this.onUploadImage,style:{display:"none"}})))]})}),Object(F.jsx)(O.a,{onKeyDown:this.onKeyDownVariantMenuForm,onChange:this.onChangeUrl,placeholder:t,value:this.state.url,onClick:e=>{e.target.focus()},onFocus:e=>{this.props.onSelectBlock(this.props.id)}}),this.state.url&&Object(F.jsx)(f.a.Group,{children:Object(F.jsx)(f.a,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),this.setState({url:""})},children:Object(F.jsx)(M.jb,{name:E.a,size:"30px"})})}),Object(F.jsx)(f.a.Group,{children:Object(F.jsx)(f.a,{basic:!0,primary:!0,disabled:!this.state.url,onClick:e=>{e.stopPropagation(),this.onSubmitUrl()},children:Object(F.jsx)(M.jb,{name:R.a,size:"30px"})})})]})]})]})}))})}),Object(F.jsx)(M.Pb,{selected:this.props.selected,children:Object(F.jsx)(M.kb,U(U({},this.props),{},{resetSubmitUrl:this.resetSubmitUrl}))})]})}}t.a=Object(u.compose)(x.c,Object(p.connect)((e,t)=>{var s;return{request:e.content.subrequests[t.block]||{},content:null===(s=e.content.subrequests[t.block])||void 0===s?void 0:s.data}},{createContent:k.g}))(G)},e1uu:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M3 7L13 7 13 5 3 5z"/><path fill-rule="nonzero" d="M17,7 L19,5 L19,19 L17,17 L33,17 L31,19 L31,5 L33,7 L17,7 Z M33,5 L33,19 L17,19 L17,5 L33,5 Z"/><path d="M3 13L13 13 13 11 3 11zM3 19L13 19 13 17 3 17zM3 31L33 31 33 29 3 29zM3 25L33 25 33 23 3 23z"/></g>'}},eUVD:function(e,t,s){"use strict";s("q1tI");var n=s("24R3"),r=s("yE/o"),i=s("Ef8B"),a=s("nKUr");t.a=Object(i.g)(403)(()=>Object(a.jsxs)(r.a,{className:"view-wrapper",children:[Object(a.jsx)("h1",{children:Object(a.jsx)(n.a,{id:"Forbidden",defaultMessage:"Forbidden"})}),Object(a.jsx)("p",{className:"description",children:Object(a.jsx)(n.a,{id:"We apologize for the inconvenience, but you don't have permissions on this resource.",defaultMessage:"We apologize for the inconvenience, but you don't have permissions on this resource."})})]}))},eYMU:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("55Ip"),r=s("yE/o"),i=s("5XkN"),a=s("24R3"),o=s("nKUr");t.a=({content:e})=>Object(o.jsx)(r.a,{className:"view-wrapper",children:Object(o.jsxs)("article",{id:"content",children:[Object(o.jsxs)("header",{children:[Object(o.jsx)("h1",{className:"documentFirstHeading",children:e.title}),e.description&&Object(o.jsx)("p",{className:"documentDescription",children:e.description})]}),Object(o.jsx)("section",{id:"content-core",children:e.items.map(e=>Object(o.jsxs)("article",{children:[Object(o.jsx)("h2",{children:Object(o.jsx)(n.a,{to:e.url,title:e["@type"],children:e.title})}),e.image&&Object(o.jsx)(i.a,{clearing:!0,floated:"right",alt:e.image_caption?e.image_caption:e.title,src:e.image.scales.thumb.download}),e.description&&Object(o.jsx)("p",{children:e.description}),Object(o.jsx)("p",{children:Object(o.jsx)(n.a,{to:e.url,children:Object(o.jsx)(a.a,{id:"Read More\u2026",defaultMessage:"Read More\u2026"})})})]},e.url))})]})})},el2M:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M22.7875,30.075 C24.0565,28.319 25.0255,25.873 25.5515,23 L29.9975,23 C28.6495,26.222 26.0375,28.782 22.7875,30.075 L22.7875,30.075 Z M6.0035,23 L10.4485,23 C10.9745,25.873 11.9435,28.319 13.2125,30.075 C9.9625,28.782 7.3505,26.222 6.0035,23 L6.0035,23 Z M13.2125,5.925 C11.9435,7.681 10.9745,10.127 10.4485,13 L6.0025,13 C7.3505,9.778 9.9625,7.218 13.2125,5.925 L13.2125,5.925 Z M19.0005,21 L19.0005,15 L23.8345,15 C23.9395,15.951 24.0005,16.95 24.0005,18 C24.0005,19.05 23.9395,20.049 23.8345,21 L19.0005,21 Z M19.0005,30.79 L19.0005,23 L23.5275,23 C22.6995,27.191 20.8895,30.032 19.0005,30.79 L19.0005,30.79 Z M17.0005,23 L17.0005,30.79 C15.1105,30.032 13.3005,27.191 12.4725,23 L17.0005,23 Z M17.0005,5.21 L17.0005,13 L12.4725,13 C13.3005,8.81 15.1105,5.968 17.0005,5.21 L17.0005,5.21 Z M23.5275,13 L19.0005,13 L19.0005,5.21 C20.8895,5.968 22.6995,8.81 23.5275,13 L23.5275,13 Z M12.0005,18 C12.0005,16.95 12.0605,15.951 12.1655,15 L17.0005,15 L17.0005,21 L12.1655,21 C12.0605,20.049 12.0005,19.05 12.0005,18 L12.0005,18 Z M5.0005,18 C5.0005,16.966 5.1345,15.965 5.3635,15 L10.1555,15 C10.0545,15.967 10.0005,16.969 10.0005,18 C10.0005,19.031 10.0545,20.033 10.1555,21 L5.3635,21 C5.1345,20.035 5.0005,19.034 5.0005,18 L5.0005,18 Z M31.0005,18 C31.0005,19.034 30.8655,20.035 30.6365,21 L25.8445,21 C25.9455,20.033 26.0005,19.031 26.0005,18 C26.0005,16.969 25.9455,15.967 25.8445,15 L30.6365,15 C30.8655,15.965 31.0005,16.966 31.0005,18 L31.0005,18 Z M29.9975,13 L25.5515,13 C25.0255,10.127 24.0565,7.681 22.7875,5.925 C26.0375,7.218 28.6495,9.778 29.9975,13 L29.9975,13 Z M18.0005,3 C9.7285,3 3.0005,9.729 3.0005,18 C3.0005,26.272 9.7285,33 18.0005,33 C26.2715,33 33.0005,26.272 33.0005,18 C33.0005,9.729 26.2715,3 18.0005,3 L18.0005,3 Z"/>'}},fO1W:function(e,t,s){"use strict";s.d(t,"b",(function(){return Sn})),s.d(t,"e",(function(){return kn})),s.d(t,"a",(function(){return Mn})),s.d(t,"c",(function(){return Nn})),s.d(t,"d",(function(){return Pn}));var n=s("lSNA"),r=s.n(n),i=s("lHu7"),a=s("Qi1J"),o=s("QgQa"),l=s("l0jT"),c=s("4/F1"),d=s("djAN"),p=s("q1tI"),u=s.n(p),h=(s("17x9"),s("55Ip")),b=s("TSYQ"),j=s.n(b),m=s("8ZS8"),g=s("zpb6"),f=s("nKUr");var O=({data:e,properties:t})=>Object(f.jsx)("p",{className:j()("block image align",{center:!Boolean(e.align)},e.align),children:t.image&&Object(f.jsx)(f.Fragment,{children:(()=>{const s=Object(f.jsx)("img",{className:j()({"full-width":"full"===e.align}),src:Object(g.q)(t.image.download),alt:t.image_caption||""});return e.href?!e.href.startsWith("http")&&!e.href.startsWith("https")||e.href.includes(m.a.settings.apiPath)?Object(f.jsx)(h.a,{to:Object(g.q)(e.href),target:e.openLinkInNewTab?"_blank":null,children:s}):Object(f.jsx)("a",{target:e.openLinkInNewTab?"_blank":null,href:e.href,children:s}):s})()})}),v=s("/P7N"),y=s("Zw3k"),x=s("bySv"),w=s("76YJ"),C=s("siUG"),S=s("3WF5"),M=s.n(S),k=s("ikXu"),N=s("5+2E"),P=s.n(N);var L=({data:e})=>e&&e.table&&Object(f.jsx)(k.a,{fixed:e.table.fixed,compact:e.table.compact,basic:!!e.table.basic&&"very",celled:e.table.celled,inverted:e.table.inverted,striped:e.table.striped,children:Object(f.jsx)(k.a.Body,{children:M()(e.table.rows,e=>Object(f.jsx)(k.a.Row,{children:M()(e.cells,e=>Object(f.jsx)(k.a.Cell,{as:"header"===e.type?"th":"td",children:e.value&&e.value.blocks&&e.value.blocks[0].text?P()(e.value,m.a.settings.richtextViewSettings.ToHTMLRenderers,m.a.settings.richtextViewSettings.ToHTMLOptions):"\xa0"},e.key))},e.key))})}),D=s("z7Iz"),E=s("H6Ro"),T=s("LVO0"),I=s("Zig/"),A=s("dx+K"),R=s("Y+p1"),_=s.n(R),q=s("ANjH"),F=s("zSVi"),B=s("TbSc"),z=s("Kvkj"),U=s("QWsx"),H=s.n(U);function K(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function G(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?K(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):K(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const V=Object(i.defineMessages)({ImageBlockInputPlaceholder:{id:"Upload a lead image in the 'Lead Image' content field.",defaultMessage:"Upload a lead image in the 'Lead Image' content field."}});class Z extends p.Component{constructor(...e){super(...e),r()(this,"node",u.a.createRef())}onAlignBlock(e){this.props.onChangeBlock(this.props.block,G(G({},this.props.data),{},{align:e}))}shouldComponentUpdate(e){return this.props.selected||!_()(this.props.data,e.data)}render(){const{data:e,properties:t}=this.props,s=this.props.data.placeholder||this.props.intl.formatMessage(V.ImageBlockInputPlaceholder);return Object(f.jsxs)("div",{className:j()("block image align",{center:!Boolean(e.align)},e.align),children:[!t.image&&Object(f.jsx)(B.a,{children:Object(f.jsxs)("center",{children:[Object(f.jsx)("img",{src:H.a,alt:""}),Object(f.jsx)("div",{className:"message-text",children:s})]})}),t.image&&Object(f.jsx)("img",{className:j()({"full-width":"full"===e.align}),src:t.image.data?`data:${t.image["content-type"]};base64,${t.image.data}`:Object(g.q)(t.image.download),alt:e.image_caption||""}),Object(f.jsx)(z.Pb,{selected:this.props.selected,children:Object(f.jsx)(z.nb,G({},this.props))})]})}}var W=Object(q.compose)(F.c)(Z),$=s("jTJh"),Y=s("5IEt");var J=({items:e,linkTitle:t,linkHref:s,isEditMode:n})=>{var r;let i=null,a=(null===s||void 0===s||null===(r=s[0])||void 0===r?void 0:r["@id"])||"";return Object(Y.j)(a)?i=Object(f.jsx)(z.u,{to:Object(g.q)(a),condition:!n,children:t||a}):a&&(i=Object(f.jsx)("a",{href:a,children:t||a})),Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)("div",{className:"items",children:e.map(e=>Object(f.jsx)("div",{className:"listing-item",children:Object(f.jsx)(z.u,{item:e,condition:!n,children:Object(f.jsxs)("div",{className:"listing-body",children:[Object(f.jsx)("h4",{children:e.title?e.title:e.id}),Object(f.jsx)("p",{children:e.description})]})})},e["@id"]))}),i&&Object(f.jsx)("div",{className:"footer",children:i})]})};var Q=({items:e,linkTitle:t,linkHref:s,isEditMode:n})=>{var r;let i=null,a=(null===s||void 0===s||null===(r=s[0])||void 0===r?void 0:r["@id"])||"";return Object(Y.j)(a)?i=Object(f.jsx)(z.u,{to:Object(g.q)(a),condition:!n,children:t||a}):a&&(i=Object(f.jsx)("a",{href:a,children:t||a})),Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)("div",{className:"items",children:e.map(e=>Object(f.jsx)("div",{className:"listing-item",children:Object(f.jsxs)(z.u,{item:e,condition:!n,children:[Object(f.jsx)(z.t,{componentName:"PreviewImage",item:e,alt:""}),Object(f.jsxs)("div",{className:"listing-body",children:[Object(f.jsx)("h3",{children:e.title?e.title:e.id}),Object(f.jsx)("p",{children:e.description})]})]})},e["@id"]))}),i&&Object(f.jsx)("div",{className:"footer",children:i})]})},X=s("oUnT"),ee=s("QM56"),te=s("LOej"),se=s("banc"),ne=s("wEy/"),re=s.n(ne),ie=s("QetY"),ae=s("vFsZ"),oe=s("3mGJ"),le=s("It+4"),ce=s("24R3"),de=s("mEAm"),pe=s("Lf35"),ue=s("3JMB"),he=s.n(ue),be=s("2UM1"),je=s.n(be),me=s("ZPzw"),ge=s.n(me),fe=s("8qWX"),Oe=s.n(fe),ve=s("9N9b"),ye=s.n(ve),xe=s("wDHP"),we=s.n(xe);function Ce(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Se(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ce(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Me=()=>Math.floor(Math.random()*Math.pow(2,24)).toString(32),ke=e=>({blocks:[{data:{},depth:0,entityRanges:[],inlineStyleRanges:[],key:Me(),text:e,type:"unstyled"}],entityMap:{}}),Ne=e=>({key:Me(),type:e||"data",value:ke("")}),Pe=e=>({key:Me(),cells:M()(e,()=>Ne())}),Le=()=>({fixed:!0,compact:!1,basic:!1,celled:!0,inverted:!1,striped:!1,rows:[{key:Me(),cells:[{key:Me(),type:"header",value:ke("")},{key:Me(),type:"header",value:ke("")}]},{key:Me(),cells:[{key:Me(),type:"data",value:ke("")},{key:Me(),type:"data",value:ke("")}]}]}),De=Object(i.defineMessages)({insertRowBefore:{id:"Insert row before",defaultMessage:"Insert row before"},insertRowAfter:{id:"Insert row after",defaultMessage:"Insert row after"},deleteRow:{id:"Delete row",defaultMessage:"Delete row"},insertColBefore:{id:"Insert col before",defaultMessage:"Insert col before"},insertColAfter:{id:"Insert col after",defaultMessage:"Insert col after"},deleteCol:{id:"Delete col",defaultMessage:"Delete col"},fixed:{id:"Fixed width table cells",defaultMessage:"Fixed width columns"},compact:{id:"Make the table compact",defaultMessage:"Reduce cell padding"},basic:{id:"Reduce complexity",defaultMessage:"Minimalistic table design"},celled:{id:"Divide each row into separate cells",defaultMessage:"Add border to inner columns"},striped:{id:"Stripe alternate rows with color",defaultMessage:"Alternate row background color"},headerCell:{id:"Header cell",defaultMessage:"Header cell"}});class Ee extends p.Component{constructor(e){super(e),this.state={selected:{row:0,cell:0},isClient:!1},this.onSelectCell=this.onSelectCell.bind(this),this.onInsertRowBefore=this.onInsertRowBefore.bind(this),this.onInsertRowAfter=this.onInsertRowAfter.bind(this),this.onInsertColBefore=this.onInsertColBefore.bind(this),this.onInsertColAfter=this.onInsertColAfter.bind(this),this.onDeleteRow=this.onDeleteRow.bind(this),this.onDeleteCol=this.onDeleteCol.bind(this),this.onChangeCell=this.onChangeCell.bind(this),this.toggleCellType=this.toggleCellType.bind(this),this.toggleBool=this.toggleBool.bind(this),this.toggleFixed=this.toggleFixed.bind(this),this.toggleCompact=this.toggleCompact.bind(this),this.toggleBasic=this.toggleBasic.bind(this),this.toggleCelled=this.toggleCelled.bind(this),this.toggleStriped=this.toggleStriped.bind(this);const{convertToRaw:t}=e.draftJs;this.convertToRaw=t}componentDidMount(){this.props.data.table||this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Le()})),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){e.data.table||this.props.onChangeBlock(e.block,Se(Se({},e.data),{},{table:Le()}))}onSelectCell(e,t){this.setState({selected:{row:e,cell:t}})}onChangeCell(e,t,s){const n=Se({},this.props.data.table);n.rows[e].cells[t].value=this.convertToRaw(s.getCurrentContent()),this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:n}))}toggleCellType(){const e=Se({},this.props.data.table);let t=e.rows[this.state.selected.row].cells[this.state.selected.cell].type;e.rows[this.state.selected.row].cells[this.state.selected.cell].type="header"===t?"data":"header",this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:e}))}onInsertRowBefore(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:[...t.rows.slice(0,this.state.selected.row),Pe(t.rows[0].cells),...t.rows.slice(this.state.selected.row)]})})),this.setState({selected:{row:this.state.selected.row+1,cell:this.state.selected.cell}})}onInsertRowAfter(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:[...t.rows.slice(0,this.state.selected.row+1),Pe(t.rows[0].cells),...t.rows.slice(this.state.selected.row+1)]})}))}onInsertColBefore(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:M()(t.rows,(e,s)=>Se(Se({},e),{},{cells:[...e.cells.slice(0,this.state.selected.cell),Ne(t.rows[s].cells[this.state.selected.cell].type),...e.cells.slice(this.state.selected.cell)]}))})})),this.setState({selected:{row:this.state.selected.row,cell:this.state.selected.cell+1}})}onInsertColAfter(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:M()(t.rows,(e,s)=>Se(Se({},e),{},{cells:[...e.cells.slice(0,this.state.selected.cell+1),Ne(t.rows[s].cells[this.state.selected.cell].type),...e.cells.slice(this.state.selected.cell+1)]}))})}))}onDeleteCol(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.state.selected.cell===t.rows[0].cells.length-1&&this.setState({selected:{row:this.state.selected.row,cell:this.state.selected.cell-1}}),this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:M()(t.rows,e=>Se(Se({},e),{},{cells:re()(e.cells,(e,t)=>t!==this.state.selected.cell)}))})}))}onDeleteRow(e){e.preventDefault(),e.stopPropagation();const t=this.props.data.table;this.state.selected.row===t.rows.length-1&&this.setState({selected:{row:this.state.selected.row-1,cell:this.state.selected.cell}}),this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{rows:re()(t.rows,(e,t)=>t!==this.state.selected.row)})}))}toggleBool(e){const t=this.props.data.table;this.props.onChangeBlock(this.props.block,Se(Se({},this.props.data),{},{table:Se(Se({},t),{},{[e]:!t[e]})}))}toggleFixed(){this.toggleBool("fixed")}toggleCompact(){this.toggleBool("compact")}toggleBasic(){this.toggleBool("basic")}toggleCelled(){this.toggleBool("celled")}toggleStriped(){this.toggleBool("striped")}render(){return this.state.isClient?Object(f.jsxs)("div",{className:j()("block table",{selected:this.props.selected}),children:[this.props.selected&&Object(f.jsxs)("div",{className:"toolbar",children:[Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onInsertRowBefore,title:this.props.intl.formatMessage(De.insertRowBefore),"aria-label":this.props.intl.formatMessage(De.insertRowBefore),children:Object(f.jsx)(z.jb,{name:he.a,size:"24px"})})}),Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onInsertRowAfter,title:this.props.intl.formatMessage(De.insertRowAfter),"aria-label":this.props.intl.formatMessage(De.insertRowAfter),children:Object(f.jsx)(z.jb,{name:je.a,size:"24px"})})}),Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onDeleteRow,disabled:this.props.data.table&&1===this.props.data.table.rows.length,title:this.props.intl.formatMessage(De.deleteRow),"aria-label":this.props.intl.formatMessage(De.deleteRow),children:Object(f.jsx)(z.jb,{name:ye.a,size:"24px"})})}),Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onInsertColBefore,title:this.props.intl.formatMessage(De.insertColBefore),"aria-label":this.props.intl.formatMessage(De.insertColBefore),children:Object(f.jsx)(z.jb,{name:ge.a,size:"24px"})})}),Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onInsertColAfter,title:this.props.intl.formatMessage(De.insertColAfter),"aria-label":this.props.intl.formatMessage(De.insertColAfter),children:Object(f.jsx)(z.jb,{name:Oe.a,size:"24px"})})}),Object(f.jsx)(ie.a.Group,{children:Object(f.jsx)(ie.a,{icon:!0,basic:!0,onClick:this.onDeleteCol,disabled:this.props.data.table&&1===this.props.data.table.rows[0].cells.length,title:this.props.intl.formatMessage(De.deleteCol),"aria-label":this.props.intl.formatMessage(De.deleteCol),children:Object(f.jsx)(z.jb,{name:we.a,size:"24px"})})})]}),this.props.data.table&&Object(f.jsx)(k.a,{fixed:this.props.data.table.fixed,compact:this.props.data.table.compact,basic:!!this.props.data.table.basic&&"very",celled:this.props.data.table.celled,inverted:this.props.data.table.inverted,striped:this.props.data.table.striped,children:Object(f.jsx)(k.a.Body,{children:M()(this.props.data.table.rows,(e,t)=>Object(f.jsx)(k.a.Row,{children:M()(e.cells,(e,s)=>{var n;return Object(f.jsx)(k.a.Cell,{as:"header"===e.type?"th":"td",className:t===this.state.selected.row&&s===this.state.selected.cell&&this.props.selected?"selected":"",children:Object(f.jsx)(de.a,{editable:this.props.editable,value:e.value,row:t,cell:s,onSelectCell:this.onSelectCell,selected:t===this.state.selected.row&&s===this.state.selected.cell,isTableBlockSelected:this.props.selected,onAddBlock:this.props.onAddBlock,onSelectBlock:this.props.onSelectBlock,onChange:this.onChangeCell,index:this.props.index,disableNewBlocks:null===(n=this.props.data)||void 0===n?void 0:n.disableNewBlocks})},e.key)})},e.key))})}),this.props.selected&&this.state.isClient&&Object(f.jsx)(le.a,{node:document.getElementById("sidebar-properties"),children:Object(f.jsxs)(ae.a,{method:"post",onSubmit:e=>{e.preventDefault(),e.stopPropagation()},children:[Object(f.jsx)(oe.a,{secondary:!0,attached:!0,children:Object(f.jsx)(ce.a,{id:"Table",defaultMessage:"Table"})}),Object(f.jsxs)(oe.a,{attached:!0,children:[Object(f.jsx)(z.Z,{id:"fixed",title:this.props.intl.formatMessage(De.fixed),type:"boolean",value:this.props.data.table&&this.props.data.table.fixed,onChange:()=>this.toggleFixed()}),Object(f.jsx)(z.Z,{id:"celled",title:this.props.intl.formatMessage(De.celled),type:"boolean",value:this.props.data.table&&this.props.data.table.celled,onChange:this.toggleCelled}),Object(f.jsx)(z.Z,{id:"striped",title:this.props.intl.formatMessage(De.striped),type:"boolean",value:this.props.data.table&&this.props.data.table.striped,onChange:this.toggleStriped}),Object(f.jsx)(z.Z,{id:"compact",title:this.props.intl.formatMessage(De.compact),type:"boolean",value:this.props.data.table&&this.props.data.table.compact,onChange:()=>this.toggleCompact()}),Object(f.jsx)(z.Z,{id:"basic",title:this.props.intl.formatMessage(De.basic),type:"boolean",value:this.props.data.table&&this.props.data.table.basic,onChange:this.toggleBasic})]}),Object(f.jsx)(oe.a,{secondary:!0,attached:!0,children:Object(f.jsx)(ce.a,{id:"Cell",defaultMessage:"Cell"})}),Object(f.jsx)(oe.a,{attached:!0,children:Object(f.jsx)(z.Z,{id:"celltype",title:this.props.intl.formatMessage(De.headerCell),type:"boolean",value:this.props.data.table&&"header"===this.props.data.table.rows[this.state.selected.row].cells[this.state.selected.cell].type,onChange:this.toggleCellType})})]})})]}):Object(f.jsx)("div",{})}}r()(Ee,"defaultProps",{detached:!1});var Te=Object(q.compose)(Object(pe.a)(["draftJs"]),F.c)(Ee),Ie=s("gVku"),Ae=s.n(Ie),Re=s("XYu4"),_e=s.n(Re),qe=s("TBhe"),Fe=s.n(qe),Be=s("7T5Z"),ze=s.n(Be),Ue=s("8fBM"),He=s.n(Ue),Ke=s("8h7z"),Ge=s.n(Ke),Ve=s("Q8rs"),Ze=s.n(Ve),We=s("HFq4"),$e=s.n(We),Ye=s("bVR5"),Je=s.n(Ye),Qe=s("5KwW"),Xe=s.n(Qe),et=s("SoYb"),tt=s.n(et),st=s("PMnK"),nt=s("23at"),rt=s("nNJO"),it=s("ohhH"),at=s("6k/9"),ot=s("lSCD"),lt=s.n(ot),ct=s("ERgP"),dt=s("yr4J"),pt=s("/MKj"),ut=s("cr+I"),ht=s.n(ut),bt=s("Ty5D"),jt=s("8ZJL");function mt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function gt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):mt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const ft=["SearchableText","b_size","limit","sort_on","sort_order"],Ot="plone.app.querystring.operation";const vt=(e,t)=>{const[s,n]=(()=>{const e=Object(bt.i)(),t=Object(bt.h)(),s=u.a.useMemo(()=>gt(gt({},ht.a.parse(e.search)),ht.a.parse(e.hash)),[e.hash,e.search]);return[Object.assign({},...Array.from(Object.keys(s)).map(e=>({[e]:s[e]}))),u.a.useCallback(n=>{const r=ht.a.parse(e.hash);let i=!1;Object.keys(n).sort().forEach(e=>{n[e]&&(r[e]=n[e],s[e]!==n[e]&&(i=!0))}),i&&t.push({hash:ht.a.stringify(r)})},[t,s,e.hash])]})(),[r,i]=u.a.useState({});return t?[r,i]:[s,n]},yt=e=>JSON.stringify(null===e||void 0===e?void 0:e.map(e=>gt(gt({},e),{},{o:e.o.replace(Ot,"paqo")})));var xt=e=>t=>{const{inputDelay:s=1e3}=e||{};function n(e){var n,r,i,a,o,l,c,d;const{data:p,id:h,editable:b=!1}=e,[j,g]=vt(0,b),O=j.query?(e=>{var t;return null===(t=JSON.parse(e))||void 0===t?void 0:t.map(e=>gt(gt({},e),{},{o:e.o.replace(/^paqo/,Ot)}))})(j.query):[],v=j.SearchableText||(null===(n=O.find(({i:e})=>"SearchableText"===e))||void 0===n?void 0:n.v)||"",[y,x]=u.a.useState(v),w=(null===(r=p.facets)||void 0===r?void 0:r.map(e=>{var t;return null===e||void 0===e||null===(t=e.field)||void 0===t?void 0:t.value}))||[],C=null===(i=p.facets)||void 0===i?void 0:i.filter(e=>null===e||void 0===e?void 0:e.multiple).map(e=>{var t;return null===e||void 0===e||null===(t=e.field)||void 0===t?void 0:t.value}),[S,M]=u.a.useState(Object.assign({},...O.map(({i:e,v:t})=>({[e]:t})),...w.map(e=>j[e]?{[e]:C.indexOf(e)>-1?[j[e]]:j[e]}:{}))),[k,N]=u.a.useState(null===p||void 0===p||null===(a=p.query)||void 0===a?void 0:a.sort_on),[P,L]=u.a.useState(null===p||void 0===p||null===(o=p.query)||void 0===o?void 0:o.sort_order),[D,E]=u.a.useState(function(e,t,s,n){var r,i,a,o,l;const{types:c}=m.a.blocks.blocksConfig.search.extensions.facetWidgets,d=(null===e||void 0===e?void 0:e.facets)||[];return{query:[...(null===(r=e.query)||void 0===r?void 0:r.query)||[],...(d||[]).map(e=>{if(null===e||void 0===e||!e.field)return null;const{valueToQuery:s}=Object(jt.b)("type",c,e),n=e.field.value;return s({value:t[n],facet:e})}).filter(e=>!!e),...s?[{i:"SearchableText",o:"plone.app.querystring.operation.string.contains",v:s}]:[]],sort_on:null===(i=e.query)||void 0===i?void 0:i.sort_on,sort_order:null===(a=e.query)||void 0===a?void 0:a.sort_order,b_size:null===(o=e.query)||void 0===o?void 0:o.b_size,limit:null===(l=e.query)||void 0===l?void 0:l.limit,block:n}}(p,S,v,h)),T=u.a.useRef(),I=null===p||void 0===p?void 0:p.facets,A=u.a.useCallback((e,t,n,r)=>{T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{const s=function({query:e,facets:t,id:s,searchText:n,sortOn:r,sortOrder:i,facetSettings:a}){const{types:o}=m.a.blocks.blocksConfig.search.extensions.facetWidgets,l={query:[...e.query||[],...(a||[]).map(e=>{if(null===e||void 0===e||!e.field)return null;const{valueToQuery:s}=Object(jt.b)("type",o,e),n=e.field.value;return s({value:t[n],facet:e})})].filter(e=>!!e),sort_on:r||e.sort_on,sort_order:i||e.sort_order,b_size:e.b_size,limit:e.limit,block:s};return l.query=l.query.reduce((e,t)=>"SearchableText"===t.i?e:[...e,t],[]),n&&l.query.push({i:"SearchableText",o:"plone.app.querystring.operation.string.contains",v:n}),l}({id:h,query:p.query||{},facets:t||S,searchText:e,sortOn:n||k,sortOrder:r||P,facetSettings:I});t&&M(t),n&&N(n),r&&L(r),E(s),g((e=>Object.assign({},...ft.map(t=>e[t]?{[t]:e[t]}:{}),e.query?{query:yt(e.query)}:{}))(s))},t?s/3:s)},[p.query,S,h,g,k,P,I]),R=Object(pt.useSelector)(e=>e.querystringsearch.subrequests),_=(null===(l=R[h])||void 0===l?void 0:l.total)||(null===(c=R[h])||void 0===c||null===(d=c.items)||void 0===d?void 0:d.length);return Object(f.jsx)(t,gt(gt({},e),{},{searchData:D,facets:S,setFacets:M,setSortOn:N,setSortOrder:L,sortOn:k,sortOrder:P,searchedText:v,searchText:y,setSearchText:x,onTriggerSearch:A,totalItems:_}))}return n.displayName=`WithSearch(${function(e){return e.displayName||e.name||"Component"}(t)})`,n};function wt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ct(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):wt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const St=e=>Object.assign({},...Object.keys(e).map(t=>"properties"!==t&&!(e=>lt()(e)||"function"===typeof e)(e[t])?{[t]:e[t]}:{})),Mt=(e,t)=>{const s=St(e),n=St(t);return _()(s,n)},kt=Object(q.compose)(g.cb,e=>u.a.memo(e,Mt))(e=>{const{data:t,searchData:s,mode:n="view",variation:r}=e,i=r.view,a=(e=>{const{variations:t}=m.a.blocks.blocksConfig.listing;return e.listingBodyTemplate?t.find(({id:t})=>t===e.listingBodyTemplate):t.find(({isDefault:e})=>e)})(t),o=((e,t)=>{var s;const n=[{i:"path",o:"plone.app.querystring.operation.string.absolutePath",v:t||"/"}];return Ct(Ct({},e),{},{sort_on:(null===e||void 0===e?void 0:e.sort_on)||"effective",sort_order:(null===e||void 0===e?void 0:e.sort_order)||"descending",query:null!==e&&void 0!==e&&null!==(s=e.query)&&void 0!==s&&s.length?e.query:n})})(s,Object(pt.useSelector)(e=>e.breadcrumbs.root));return Object(f.jsx)("div",{className:"block search",children:Object(f.jsx)(i,Ct(Ct({},e),{},{isEditMode:"edit"===n,children:Object(f.jsx)(ct.a,{variation:a,data:o,path:e.path,isEditMode:"edit"===n})}))})});var Nt=Object(q.compose)(dt.a,xt())(kt),Pt=s("6crI"),Lt=s("2Cnc"),Dt=s("BkRI"),Et=s.n(Dt);const Tt=new Set(["plone.app.querystring.operation.boolean.isFalse","plone.app.querystring.operation.boolean.isTrue"]),It=new Set(["plone.app.querystring.operation.date.between"]),At=e=>e.filter(e=>Tt.has(e)).length>0,Rt=e=>e.filter(e=>It.has(e)).length>0,_t=Object(i.defineMessages)({searchBlock:{id:"Search block",defaultMessage:"Search block"},controls:{id:"Controls",defaultMessage:"Controls"},baseSearchQuery:{id:"Base search query",defaultMessage:"Base search query"},sectionTitle:{id:"Section title",defaultMessage:"Section title"},headline:{id:"Headline",defaultMessage:"Headline"},searchInputPrompt:{id:"Search input label",defaultMessage:"Search input label"},showSearchInput:{id:"Show search input?",defaultMessage:"Show search input?"},showSearchButtonTitle:{id:"Show search button?",defaultMessage:"Show search button?"},showSearchButtonDescription:{id:"The button presence disables the live search, the query is issued when you press ENTER",defaultMessage:"The button presence disables the live search, the query is issued when you press ENTER"},searchButtonLabel:{id:"Search button label",defaultMessage:"Search button label"},searchButtonPlaceholder:{id:"Search",defaultMessage:"Search"},showSortOn:{id:"Show sorting?",defaultMessage:"Show sorting?"},sortOnLabel:{id:"Sort on label",defaultMessage:"Sort on label"},sortOnOptions:{id:"Sort on options",defaultMessage:"Sort on options"},facets:{id:"Facets",defaultMessage:"Facets"},facet:{id:"Facet",defaultMessage:"Facet"},label:{id:"Label",defaultMessage:"Label"},field:{id:"Field",defaultMessage:"Field"},multipleChoices:{id:"Multiple choices?",defaultMessage:"Multiple choices?"},hideFacetTitle:{id:"Hide facet?",defaultMessage:"Hide facet?"},hideFacetDescription:{id:"Hidden facets will still filter the results if proper parameters are passed in URLs",defaultMessage:"Hidden facets will still filter the results if proper parameters are passed in URLs"},facetWidget:{id:"Facet widget",defaultMessage:"Facet widget"}}),qt=(e,t)=>{var s;const n=m.a.blocks.blocksConfig.search.extensions.facetWidgets.types,r=null===t||void 0===t?void 0:t.type;let i=null===n||void 0===n?void 0:n.find(e=>e.id===r);i||(i=null===n||void 0===n?void 0:n.find(e=>e.isDefault));const a=null===(s=i)||void 0===s?void 0:s.schemaEnhancer;return a?a({schema:Et()(e),formData:t}):Et()(e)},Ft=({intl:e})=>({title:e.formatMessage(_t.facet),fieldsets:[{id:"default",title:"Default",fields:["title","field","type","hidden"]}],properties:{title:{title:e.formatMessage(_t.label)},field:{title:e.formatMessage(_t.field),widget:"select_querystring_field",vocabulary:{"@id":"plone.app.vocabularies.MetadataFields"},filterOptions:e=>Object.assign({},...Object.keys(e).map(t=>Object.keys(e[t].values||{}).length||At(e[t].operations)||Rt(e[t].operations)?{[t]:e[t]}:{}))},multiple:{type:"boolean",title:e.formatMessage(_t.multipleChoices),default:!1},hidden:{type:"boolean",title:e.formatMessage(_t.hideFacetTitle),default:!1,description:e.formatMessage(_t.hideFacetDescription)},type:{title:e.formatMessage(_t.facetWidget),choices:m.a.blocks.blocksConfig.search.extensions.facetWidgets.types.map(({id:e,title:t})=>[e,t]),defaultValue:m.a.blocks.blocksConfig.search.extensions.facetWidgets.types.find(({isDefault:e})=>e).id}},required:["field"]});var Bt=({data:e={},intl:t})=>{var s;return{title:t.formatMessage(_t.searchBlock),fieldsets:[{id:"default",title:"Default",fields:["headline"]},{id:"searchquery",title:t.formatMessage(_t.baseSearchQuery),fields:["query"]},{id:"facets",title:t.formatMessage(_t.facets),fields:["facetsTitle","facets"]},{id:"controls",title:t.formatMessage(_t.controls),fields:["showSortOn",...e.showSortOn?["sortOnLabel"]:[],...e.showSortOn?["sortOnOptions"]:[],"showSearchInput",...null===(s=e.showSearchInput)||void 0===s||s?["showSearchButton"]:[]]}],properties:{headline:{title:t.formatMessage(_t.headline)},searchInputPrompt:{title:t.formatMessage(_t.searchInputPrompt)},showSearchInput:{type:"boolean",title:t.formatMessage(_t.showSearchInput),default:!0},showSearchButton:{type:"boolean",title:t.formatMessage(_t.showSearchButtonTitle),description:t.formatMessage(_t.showSearchButtonDescription)},searchButtonLabel:{title:t.formatMessage(_t.searchButtonLabel),placeholder:t.formatMessage(_t.searchButtonPlaceholder)},showSortOn:{type:"boolean",title:t.formatMessage(_t.showSortOn)},sortOnLabel:{title:t.formatMessage(_t.sortOnLabel)},sortOnOptions:{title:t.formatMessage(_t.sortOnOptions),widget:"array"},facets:{title:t.formatMessage(_t.facets),widget:"object_list",schema:Ft({intl:t}),schemaExtender:qt},facetsTitle:{title:t.formatMessage(_t.sectionTitle)},query:{title:"Query"}},required:[]}};function zt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ut(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):zt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Ht=Object(i.defineMessages)({template:{id:"Results template",defaultMessage:"Results template"}});var Kt=Object(q.compose)(dt.a,xt())(e=>{const{block:t,onChangeBlock:s,data:n,selected:r,intl:i,onTriggerSearch:a,querystring:o={}}=e,{sortable_indexes:l={}}=o;let c=Bt({data:n,intl:i});c=Object(Lt.a)({schema:c,name:"listingBodyTemplate",items:m.a.blocks.blocksConfig.listing.variations,intl:i,title:{id:i.formatMessage(Ht.template)}}),c.properties.sortOnOptions.items={choices:Object.keys(l).map(e=>[e,l[e].title])};const{query:d={}}=n||{};return Object(Pt.a)(()=>{a()},[d,a]),Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)(kt,Ut(Ut({},e),{},{path:Object(g.r)(e.pathname),mode:"edit"})),Object(f.jsx)(z.Pb,{selected:r,children:Object(f.jsx)(z.h,{schema:c,onChangeField:(e,r)=>{s(t,Ut(Ut({},n),{},{[e]:r}))},formData:n})})]})}),Gt=s("52Oh");const Vt=Object(i.defineMessages)({searchResults:{id:"Search results",defaultMessage:"Search results"},searchedFor:{id:"Searched for",defaultMessage:"Searched for"}});var Zt=({total:e,text:t,as:s="h4"})=>{const n=s,r=Object(Gt.a)();return Object(f.jsxs)(n,{className:"search-details",children:[t?`${r.formatMessage(Vt.searchedFor)}: ${t}. `:"",r.formatMessage(Vt.searchResults),": ",e]})};function Wt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function $t(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Wt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var Yt=e=>{var t,s,n;const{querystring:r,data:i={},facets:a,setFacets:o,facetWrapper:l,isEditMode:c}=e,{search:d}=m.a.blocks.blocksConfig,p=l,u=Object.assign({},...(null===i||void 0===i||null===(t=i.query)||void 0===t||null===(s=t.query)||void 0===s?void 0:s.map(({i:e,v:t})=>({[e]:t})))||[]);return Object(f.jsx)(f.Fragment,{children:null===i||void 0===i||null===(n=i.facets)||void 0===n?void 0:n.filter(e=>!e.hidden).map(e=>{var t,s,n;const i=null===e||void 0===e||null===(t=e.field)||void 0===t?void 0:t.value,l=r.indexes[i]||{},{values:h={}}=l;let b=Object.keys(h).map(e=>({value:e,label:h[e].title})).filter(({value:e})=>!u[i]||u[i].includes(e));b=b.sort((e,t)=>e.label.localeCompare(t.label,"en",{sensitivity:"base"}));const j=e.multiple,m=a[null===e||void 0===e||null===(s=e.field)||void 0===s?void 0:s.value],{view:g,stateToValue:O}=Object(jt.b)("type",d.extensions.facetWidgets.types,e);let v=O({facetSettings:e,index:l,selectedValue:m});const{rewriteOptions:y=((e,t)=>t)}=d.extensions.facetWidgets;return p&&(c||(e=>{const{values:t}=e;return e&&!(!At(e.operations||[])&&!Rt(e.operations||[]))||t&&Object.keys(t).length>0})(l))?Object(f.jsx)(p,{children:Object(f.jsx)(g,{facet:e,choices:y(null===e||void 0===e||null===(n=e.field)||void 0===n?void 0:n.value,b),isMulti:j,value:v,isEditMode:c,onChange:(e,t)=>{!c&&o($t($t({},a),{},{[e]:t}))}})},e["@id"]):""})})},Jt=s("cuOu");function Qt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Xt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Qt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const es=e=>Xt(Xt({},e),{},{borderRadius:0,colors:Xt(Xt({},e.colors),{},{primary25:"hotpink",primary:"#b8c6c8"})}),ts={control:(e,t)=>Xt(Xt({},e),{},{border:"none",borderBottom:"1px solid #c7d5d8",boxShadow:"none",borderBottomStyle:t.menuIsOpen?"dotted":"solid",minHeight:"37px"}),menu:(e,t)=>Xt(Xt({},e),{},{top:null,marginTop:0,boxShadow:"none",borderBottom:"1px solid #c7d5d8",zIndex:2}),indicatorSeparator:e=>Xt(Xt({},e),{},{width:null}),valueContainer:e=>Xt(Xt({},e),{},{padding:"0px",paddingLeft:0}),dropdownIndicator:e=>({paddingRight:0,paddingTop:"4px"}),option:(e,t)=>Xt(Xt({},e),{},{backgroundColor:null,minHeight:"30px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 6px",color:t.isSelected?"#007bc1":t.isFocused?"#4a4a4a":"inherit",":active":{backgroundColor:null},svg:{flex:"0 0 auto",height:"18px !important",width:"18px !important"}})},ss={control:(e,t)=>Xt(Xt({},e),{},{border:"1px solid #c7d5d8",borderRadius:"5px",boxShadow:"none",minHeight:"20px",width:"170px"}),menu:(e,t)=>Xt(Xt({},e),{},{top:null,marginTop:0,boxShadow:"none",border:"1px solid #c7d5d8",zIndex:2,width:"170px"}),indicatorSeparator:e=>Xt(Xt({},e),{},{width:null}),dropdownIndicator:e=>Xt(Xt({},e),{},{padding:"3px"}),option:(e,t)=>Xt(Xt({},e),{},{backgroundColor:null,minHeight:"20px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 6px",color:t.isSelected?"#007bc1":t.isFocused?"#4a4a4a":"inherit",":active":{backgroundColor:null},svg:{flex:"0 0 auto",height:"18px !important",width:"18px !important"}})};var ns=s("E+oP"),rs=s.n(ns);const is=({facetSettings:e,index:t,selectedValue:s})=>{var n,r;const i=e.multiple;return s?i?Array.isArray(s)?s.map(e=>{var s,n;return{value:e,label:null===(s=t.values)||void 0===s||null===(n=s[e])||void 0===n?void 0:n.title}}):[]:{value:s,label:null===(n=t.values)||void 0===n||null===(r=n[s])||void 0===r?void 0:r.title}:[]},as=({schema:e,formData:t})=>{let{fields:s}=e.fieldsets[0];const n=s.indexOf("type")+1;return s=[...s.slice(0,n),"multiple",...s.slice(n,s.length)],e.fieldsets[0].fields=s,e},os=({value:e,facet:t})=>rs()(e)?void 0:{i:t.field.value,o:Array.isArray(e)?"plone.app.querystring.operation.list.contains":"plone.app.querystring.operation.selection.is",v:e},ls=e=>{var t,s;const{facet:n,choices:r,reactSelect:i,isMulti:a,onChange:o,value:l,isEditMode:c}=e,d=i.default,p=Array.isArray(l)&&0===l.length?null:l;return Object(f.jsx)(d,{placeholder:null!==(t=null===n||void 0===n?void 0:n.title)&&void 0!==t?t:(null===n||void 0===n||null===(s=n.field)||void 0===s?void 0:s.label)||"select...",className:"react-select-container",classNamePrefix:"react-select",options:r,styles:ts,theme:es,components:{DropdownIndicator:Jt.b,Option:Jt.d},isDisabled:c,onChange:e=>{o(n.field.value,e?a?e.map(({value:e})=>e):[e.value]:[])},isMulti:n.multiple,isClearable:!0,value:p})};ls.schemaEnhancer=as,ls.stateToValue=is,ls.valueToQuery=os;var cs=Object(pe.a)("reactSelect")(ls),ds=s("aQu0"),ps=s("T5N5");const us=e=>{var t,s;const{facet:n,choices:r,isMulti:i,onChange:a,value:o,isEditMode:l}=e,c=o;return Object(f.jsxs)("div",{className:"checkbox-facet",children:[Object(f.jsx)(ds.a,{as:"h4",children:null!==(t=n.title)&&void 0!==t?t:null===n||void 0===n||null===(s=n.field)||void 0===s?void 0:s.label}),Object(f.jsx)("div",{className:"entries",children:r.map(({label:e,value:t},s)=>Object(f.jsx)("div",{className:"entry",children:Object(f.jsx)(ps.a,{disabled:l,label:e,radio:!i,checked:i?!(null===c||void 0===c||!c.find(e=>e.value===t)):c&&c.value===t,onChange:(e,{checked:s})=>a(n.field.value,i?[...c.filter(e=>e.value!==t).map(e=>e.value),...s?[t]:[]]:s?t:null)})},t))})]})};us.schemaEnhancer=as,us.stateToValue=is,us.valueToQuery=os;var hs=us,bs=s("GWVt"),js=s.n(bs),ms=s("6fhb"),gs=s.n(ms),fs=s("1Jxj"),Os=s.n(fs);s("GG7f"),s("P+y9");const vs=Object(i.defineMessages)({startDate:{id:"Start Date",defaultMessage:"Start Date"},endDate:{id:"End Date",defaultMessage:"End Date"}}),ys=()=>Object(f.jsx)("div",{className:"prev-icon",style:{color:"#000",left:"22px",padding:"5px",position:"absolute",top:"15px"},tabIndex:"0",children:Object(f.jsx)(z.jb,{name:js.a,size:"30px"})}),xs=()=>Object(f.jsx)("div",{className:"next-icon",style:{color:"#000",right:"22px",padding:"5px",position:"absolute",top:"15px"},tabIndex:"0",children:Object(f.jsx)(z.jb,{name:gs.a,size:"30px"})}),ws=()=>Object(f.jsx)(z.jb,{name:Os.a,size:"24px",className:"close"}),Cs=e=>{var t,s;const{facet:n,isEditMode:r,onChange:i,value:a,reactDates:o,intl:l}=e,c=e.moment.default,{DateRangePicker:d}=o,[u,h]=Object(p.useState)(null);return Object(f.jsxs)("div",{className:"daterange-facet",children:[Object(f.jsx)(ds.a,{as:"h4",children:null!==(t=null===n||void 0===n?void 0:n.title)&&void 0!==t?t:null===n||void 0===n||null===(s=n.field)||void 0===s?void 0:s.label}),Object(f.jsx)("div",{className:"ui form date-time-widget-wrapper",children:Object(f.jsx)("div",{className:"ui input date-input",children:Object(f.jsx)(d,{startDate:a&&a[0]?c(a[0]):null,startDateId:n["@id"]+"-start-date",startDatePlaceholderText:l.formatMessage(vs.startDate),endDate:a&&a[1]?c(a[1]):null,endDateId:n["@id"]+"-end-date",endDatePlaceholderText:l.formatMessage(vs.endDate),numberOfMonths:1,disabled:r,noBorder:!0,showClearDates:!0,customCloseIcon:Object(f.jsx)(ws,{}),displayFormat:c.localeData(l.locale).longDateFormat("L"),focusedInput:u,onFocusChange:e=>h(e),onDatesChange:({startDate:e,endDate:t})=>{i(n.field.value,[e?e.format("YYYY-MM-DD"):null,t?t.format("YYYY-MM-DD"):null])},isOutsideRange:()=>!1,navPrev:Object(f.jsx)(ys,{}),navNext:Object(f.jsx)(xs,{})})})})]})};Cs.stateToValue=({facetSettings:e,index:t,selectedValue:s})=>s||[null,null],Cs.valueToQuery=({value:e,facet:t})=>e&&"string"===typeof e[0]&&"string"===typeof e[1]?{i:t.field.value,o:"plone.app.querystring.operation.date.between",v:e}:null;var Ss=Object(q.compose)(Object(pe.a)(["reactDates","moment"]),F.c)(Cs),Ms=s("umxb");const ks=Object(i.defineMessages)({search:{id:"Search",defaultMessage:"Search"}});var Ns=e=>{const{data:t,searchText:s,setSearchText:n,isLive:r,onTriggerSearch:i}=e,a=Object(Gt.a)();return Object(f.jsxs)("div",{className:"search-input",children:[Object(f.jsx)(Ms.a,{id:e.id+"-searchtext",value:s,placeholder:t.searchInputPrompt||a.formatMessage(ks.search),fluid:!0,onKeyPress:e=>{(r||"Enter"===e.key)&&i(s)},onChange:(e,{value:t})=>{n(t),r&&i(t)}}),r&&Object(f.jsx)(ie.a,{basic:!0,icon:!0,className:"search-input-live-icon-button",children:Object(f.jsx)(z.jb,{name:tt.a})})]})},Ps=s("hHGt"),Ls=s("D1pA"),Ds=s("5ymK"),Es=s.n(Ds);function Ts(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Is(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ts(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const As=Object(i.defineMessages)({currentFilters:{id:"Current filters applied",defaultMessage:"Current filters applied"},clearFilters:{id:"Clear filters",defaultMessage:"Clear filters"}});var Rs=e=>{var t;const{data:s={},facets:n={},setFacets:r,isEditMode:i}=e,a=s.facets||[],[o,l]=u.a.useState(!1),c=a.filter(({field:e})=>e&&Object.keys(n).includes(e.value)&&n[e.value]).length,{types:d}=m.a.blocks.blocksConfig.search.extensions.facetWidgets,p=Object(Gt.a)();return c?Object(f.jsxs)(Ps.a,{className:"filter-listing",children:[Object(f.jsxs)(Ps.a.Title,{className:"filter-list-header",active:o,onClick:()=>l(!o),children:[Object(f.jsxs)("div",{className:"filter-list-title",children:[Object(f.jsx)(z.jb,{name:Es.a,size:"18px"}),p.formatMessage(As.currentFilters),": ",c]}),Object(f.jsxs)(ie.a,{icon:!0,basic:!0,compact:!0,size:"small",onClick:e=>{e.stopPropagation(),!i&&r({})},children:[Object(f.jsx)(Ls.a,{name:"trash"}),p.formatMessage(As.clearFilters)]})]}),Object(f.jsx)(Ps.a.Content,{className:"filter-list-content",active:o,children:Object(f.jsx)("div",{className:"filter-list",children:null===(t=s.facets)||void 0===t?void 0:t.map((t,s)=>{var r,i,a;const{filterListComponent:o}=Object(jt.b)("type",d,t),l=null===t||void 0===t||null===(r=t.field)||void 0===r?void 0:r.value;return l?Object(f.jsx)("div",{children:Object.keys(n).includes(l)&&!!n[l]&&Object(f.jsxs)("div",{className:"filter-list-group",children:[Object(f.jsx)("span",{className:"label-title",children:null!==(i=t.title)&&void 0!==i?i:null===t||void 0===t||null===(a=t.field)||void 0===a?void 0:a.label}),Object(f.jsx)(o,Is(Is({},e),{},{facet:l}))]},s)},s):null})})})]}):null},_s=s("VjUS"),qs=s.n(_s),Fs=s("YLi1"),Bs=s.n(Fs);const zs=Object(i.defineMessages)({noSelection:{id:"No selection",defaultMessage:"No selection"},sortOn:{id:"Sort on",defaultMessage:"Sort on"},ascending:{id:"Ascending",defaultMessage:"Ascending"},descending:{id:"Descending",defaultMessage:"Descending"}});var Us=Object(q.compose)(F.c,Object(pe.a)(["reactSelect"]))(e=>{var t,s;const{data:n={},reactSelect:r,sortOn:i=null,sortOrder:a=null,setSortOn:o,setSortOrder:l,isEditMode:c,querystring:d={},intl:p}=e,{sortable_indexes:u}=d,h=r.default,b=i||(null===n||void 0===n||null===(t=n.query)||void 0===t?void 0:t.sort_on)||"",{sortOnOptions:m=[]}=n,g={value:b||p.formatMessage(zs.noSelection),label:b&&u?null===(s=u[b])||void 0===s?void 0:s.title:b||p.formatMessage(zs.noSelection)};return Object(f.jsxs)("div",{className:"search-sort-wrapper",children:[Object(f.jsxs)("div",{className:"search-sort-on",children:[n.sortOnLabel&&Object(f.jsx)("span",{className:"sort-label",children:n.sortOnLabel}),Object(f.jsx)(h,{id:"select-search-sort-on",name:"select-searchblock-sort-on",className:"search-react-select-container",classNamePrefix:"react-select",placeholder:p.formatMessage(zs.sortOn),styles:ss,theme:es,components:{DropdownIndicator:Jt.b,Option:Jt.d},options:[...m.map(e=>{var t;return{value:e,label:(null===(t=u[e])||void 0===t?void 0:t.title)||e}})],value:g,onChange:e=>{!c&&o(e.value)}})]}),Object(f.jsx)(ie.a,{icon:!0,basic:!0,compact:!0,title:p.formatMessage(zs.ascending),className:j()({active:"ascending"===a}),onClick:()=>{!c&&l("ascending")},children:Object(f.jsx)(z.jb,{name:qs.a,size:"25px"})}),Object(f.jsx)(ie.a,{icon:!0,basic:!0,compact:!0,title:p.formatMessage(zs.descending),className:j()({active:"descending"===a}),onClick:()=>{!c&&l("descending")},children:Object(f.jsx)(z.jb,{name:Bs.a,size:"25px"})})]})}),Hs=s("/fAC");const Ks=e=>{var t,s;const{facet:n,isEditMode:r,onChange:i,value:a}=e;return Object(f.jsxs)("div",{className:"checkbox-facet",children:[Object(f.jsx)(ds.a,{as:"h4",children:null!==(t=null===n||void 0===n?void 0:n.title)&&void 0!==t?t:null===n||void 0===n||null===(s=n.field)||void 0===s?void 0:s.label}),Object(f.jsx)("div",{className:"radio",children:Object(f.jsx)(Hs.a,{toggle:!0,checked:a||"string"===typeof a,disabled:r,onChange:(e,{checked:t})=>{i(n.field.value,t)}})})]})};Ks.stateToValue=({facetSettings:e,index:t,selectedValue:s})=>s||"string"===typeof s,Ks.valueToQuery=({value:e,facet:t})=>e||"string"===typeof e?{i:t.field.value,o:"plone.app.querystring.operation.boolean.isTrue",v:""}:null;var Gs=Ks,Vs=s("MqQV");function Zs(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ws(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Zs(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var $s=function(e){const{facet:t,isEditMode:s,setFacets:n,facets:r}=e;return"string"===typeof r[t]?Object(f.jsxs)(Vs.a,{size:"small",children:[r[t],Object(f.jsx)(Ls.a,{name:"delete",onClick:()=>{!s&&n(Ws(Ws({},r),{},{[t]:""}))}})]}):Object(f.jsx)(f.Fragment,{children:r[t].map((e,i)=>Object(f.jsxs)(Vs.a,{size:"small",children:[e,Object(f.jsx)(Ls.a,{name:"delete",onClick:()=>{const i=r[t].filter(t=>t!==e);!s&&n(Ws(Ws({},r),{},{[t]:i}))}})]},i))})};const Ys=Object(i.defineMessages)({yes:{id:"yes",defaultMessage:"Yes"},no:{id:"no",defaultMessage:"No"}});var Js=function(e){const{facet:t,isEditMode:s,setFacets:n,facets:r}=e,i=Object(Gt.a)();return Object(f.jsxs)(Vs.a,{size:"small",children:[i.formatMessage(r[t]?Ys.yes:Ys.no),Object(f.jsx)(Ls.a,{name:"delete",onClick:()=>{const e=Object.assign({},...Object.keys(r).filter(e=>e!==t).map(e=>({[e]:r[e]})));!s&&n(e)}})]})};const Qs=Object(i.defineMessages)({yes:{id:"yes",defaultMessage:"Yes"},no:{id:"no",defaultMessage:"No"}});var Xs=function(e){const{facet:t,isEditMode:s,setFacets:n,facets:r}=e,i=Object(Gt.a)();return Object(f.jsxs)(Vs.a,{size:"small",children:[i.formatMessage(r[t]?Qs.yes:Qs.no),Object(f.jsx)(Ls.a,{name:"delete",onClick:()=>{const e=Object.assign({},...Object.keys(r).filter(e=>e!==t).map(e=>({[e]:r[e]})));!s&&n(e)}})]})},en=s("+6Dn"),tn=s("i8i4");function sn(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function nn(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):sn(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const rn=Object(i.defineMessages)({searchButtonText:{id:"Search",defaultMessage:"Search"}}),an=({children:e})=>Object(f.jsx)(oe.a,{basic:!0,className:"facet",children:e});var on=e=>{var t,s,n;const{children:r,data:i,totalItems:a,facets:o,setFacets:l,setSortOn:c,setSortOrder:d,sortOn:p,sortOrder:u,onTriggerSearch:h,searchedText:b,searchText:j,isEditMode:m,querystring:g={}}=e,{showSearchButton:O}=i,v=!O,y=Object(Gt.a)();return Object(f.jsxs)(en.a,{className:"searchBlock-facets right-column-facets",stackable:!0,children:[Object(f.jsx)(en.a.Row,{children:Object(f.jsx)(en.a.Column,{children:i.headline&&Object(f.jsx)("h2",{className:"headline",children:i.headline})})}),Object(f.jsxs)(en.a.Row,{children:[Object(f.jsxs)(en.a.Column,{mobile:12,tablet:null!==(t=i.facets)&&void 0!==t&&t.length?8:12,computer:null!==(s=i.facets)&&void 0!==s&&s.length?9:12,children:[(!Object.keys(i).includes("showSearchInput")||i.showSearchInput)&&Object(f.jsxs)("div",{className:"search-wrapper",children:[Object(f.jsx)(Ns,nn(nn({},e),{},{isLive:v})),i.showSearchButton&&Object(f.jsx)(ie.a,{primary:!0,onClick:()=>h(j),children:i.searchButtonLabel||y.formatMessage(rn.searchButtonText)})]}),Object(f.jsx)("div",{children:Object(f.jsx)(Rs,nn(nn({},e),{},{isEditMode:m,setFacets:e=>{Object(tn.flushSync)(()=>{l(e),h(b||"",e)})}}))}),Object(f.jsxs)("div",{className:"search-results-count-sort",children:[Object(f.jsx)(Zt,{text:b,total:a}),i.showSortOn&&Object(f.jsx)(Us,{data:i,querystring:g,isEditMode:m,sortOrder:u,sortOn:p,setSortOn:e=>{Object(tn.flushSync)(()=>{c(e),h(b||"",o,e)})},setSortOrder:e=>{Object(tn.flushSync)(()=>{d(e),h(b||"",o,p,e)})}})]}),r]}),(null===(n=i.facets)||void 0===n?void 0:n.length)&&Object(f.jsx)(en.a.Column,{mobile:12,tablet:4,computer:3,children:Object(f.jsxs)("div",{className:"facets",children:[i.facetsTitle&&Object(f.jsx)("h3",{children:i.facetsTitle}),Object(f.jsx)(Yt,{querystring:g,data:i,facets:o,isEditMode:m,setFacets:e=>{Object(tn.flushSync)(()=>{l(e),h(b||"",e)})},facetWrapper:an})]})})]})]})};function ln(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function cn(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ln(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const dn=Object(i.defineMessages)({searchButtonText:{id:"Search",defaultMessage:"Search"}}),pn=({children:e})=>Object(f.jsx)(oe.a,{basic:!0,className:"facet",children:e});var un=e=>{var t,s,n;const{children:r,data:i,totalItems:a,facets:o,setFacets:l,setSortOn:c,setSortOrder:d,sortOn:p,sortOrder:u,onTriggerSearch:h,searchedText:b,searchText:j,isEditMode:m,querystring:g={}}=e,{showSearchButton:O}=i,v=!O,y=Object(Gt.a)();return Object(f.jsxs)(en.a,{className:"searchBlock-facets left-column-facets",stackable:!0,children:[Object(f.jsx)(en.a.Row,{children:Object(f.jsx)(en.a.Column,{children:i.headline&&Object(f.jsx)("h2",{className:"headline",children:i.headline})})}),Object(f.jsxs)(en.a.Row,{children:[(null===(t=i.facets)||void 0===t?void 0:t.length)&&Object(f.jsx)(en.a.Column,{mobile:12,tablet:4,computer:3,children:Object(f.jsxs)("div",{className:"facets",children:[i.facetsTitle&&Object(f.jsx)("h3",{children:i.facetsTitle}),Object(f.jsx)(Yt,{querystring:g,data:i,facets:o,setFacets:e=>{Object(tn.flushSync)(()=>{l(e),h(b||"",e)})},facetWrapper:pn})]})}),Object(f.jsxs)(en.a.Column,{mobile:12,tablet:null!==(s=i.facets)&&void 0!==s&&s.length?8:12,computer:null!==(n=i.facets)&&void 0!==n&&n.length?9:12,children:[(!Object.keys(i).includes("showSearchInput")||i.showSearchInput)&&Object(f.jsxs)("div",{className:"search-wrapper",children:[Object(f.jsx)(Ns,cn(cn({},e),{},{isLive:v})),i.showSearchButton&&Object(f.jsx)(ie.a,{primary:!0,onClick:()=>h(j),children:i.searchButtonLabel||y.formatMessage(dn.searchButtonText)})]}),Object(f.jsx)("div",{children:Object(f.jsx)(Rs,cn(cn({},e),{},{isEditMode:m,setFacets:e=>{Object(tn.flushSync)(()=>{l(e),h(b||"",e)})}}))}),Object(f.jsxs)("div",{className:"search-results-count-sort",children:[Object(f.jsx)(Zt,{text:b,total:a}),i.showSortOn&&Object(f.jsx)(Us,{querystring:g,data:i,isEditMode:m,sortOn:p,sortOrder:u,setSortOn:e=>{Object(tn.flushSync)(()=>{c(e),h(b||"",o,e)})},setSortOrder:e=>{Object(tn.flushSync)(()=>{d(e),h(b||"",o,p,e)})}})]}),r]})]})]})};function hn(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function bn(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):hn(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const jn=Object(i.defineMessages)({searchButtonText:{id:"Search",defaultMessage:"Search"}}),mn=({children:e})=>Object(f.jsx)(en.a.Column,{mobile:12,tablet:4,computer:3,children:e});var gn=e=>{var t;const{children:s,data:n,totalItems:r,facets:i,setFacets:a,setSortOn:o,setSortOrder:l,sortOn:c,sortOrder:d,onTriggerSearch:p,searchedText:u,searchText:h,isEditMode:b,querystring:j={}}=e,{showSearchButton:m}=n,g=!m,O=Object(Gt.a)();return Object(f.jsxs)(en.a,{className:"searchBlock-facets",stackable:!0,children:[Object(f.jsx)(en.a.Row,{children:Object(f.jsx)(en.a.Column,{children:n.headline&&Object(f.jsx)("h2",{className:"headline",children:n.headline})})}),Object(f.jsx)(en.a.Row,{children:Object(f.jsxs)(en.a.Column,{children:[(!Object.keys(n).includes("showSearchInput")||n.showSearchInput)&&Object(f.jsxs)("div",{className:"search-wrapper",children:[Object(f.jsx)(Ns,bn(bn({},e),{},{isLive:g})),n.showSearchButton&&Object(f.jsx)(ie.a,{primary:!0,onClick:()=>p(h),children:n.searchButtonLabel||O.formatMessage(jn.searchButtonText)})]}),Object(f.jsxs)("div",{className:"search-filters-sort",children:[Object(f.jsx)(Rs,bn(bn({},e),{},{isEditMode:b,setFacets:e=>{Object(tn.flushSync)(()=>{a(e),p(u||"",e)})}})),n.showSortOn&&Object(f.jsx)(Us,{data:n,querystring:j,isEditMode:b,sortOn:c,sortOrder:d,setSortOn:e=>{Object(tn.flushSync)(()=>{o(e),p(u||"",i,e)})},setSortOrder:e=>{Object(tn.flushSync)(()=>{l(e),p(u||"",i,c,e)})}})]}),(null===(t=n.facets)||void 0===t?void 0:t.length)>0&&Object(f.jsxs)("div",{className:"facets",children:[n.facetsTitle&&Object(f.jsx)("h3",{children:n.facetsTitle}),Object(f.jsx)(en.a,{verticalAlign:"bottom",columns:12,children:Object(f.jsx)(Yt,{data:n,querystring:j,facets:i,setFacets:e=>{Object(tn.flushSync)(()=>{a(e),p(u||"",e)})},facetWrapper:mn})})]}),Object(f.jsx)(Zt,{text:u,total:r,as:"h5"})]})}),Object(f.jsx)(en.a.Row,{children:Object(f.jsx)(en.a.Column,{children:s})})]})},fn=s("9At1");function On(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function vn(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?On(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):On(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var yn=s("kyj3"),xn=s("RuZR");function wn(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Cn(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):wn(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}Object(i.defineMessages)({title:{id:"title",defaultMessage:"Title"},description:{id:"description",defaultMessage:"Description"},text:{id:"text",defaultMessage:"Text"},toc:{id:"toc",defaultMessage:"Table of Contents"},image:{id:"image",defaultMessage:"Image"},video:{id:"video",defaultMessage:"Video"},hero:{id:"hero",defaultMessage:"Hero"},table:{id:"table",defaultMessage:"Table"},maps:{id:"maps",defaultMessage:"Maps"},html:{id:"html",defaultMessage:"HTML"},leadimage:{id:"leadimage",defaultMessage:"Lead Image Field"},listing:{id:"listing",defaultMessage:"Listing"},mostUsed:{id:"mostUsed",defaultMessage:"Most used"},media:{id:"media",defaultMessage:"Media"},common:{id:"common",defaultMessage:"Common"},summary:{id:"Summary",defaultMessage:"Summary"},imageGallery:{id:"Image gallery",defaultMessage:"Image gallery"},facetsRightSide:{id:"Facets on right side",defaultMessage:"Facets on right side"},facetsLeftSide:{id:"Facets on left side",defaultMessage:"Facets on left side"},facetsTopSide:{id:"Facets on top",defaultMessage:"Facets on top"}});const Sn=[{id:"mostUsed",title:"Most used"},{id:"text",title:"Text"},{id:"media",title:"Media"},{id:"common",title:"Common"}],Mn={title:{id:"title",title:"Title",icon:_e.a,group:"text",view:a.a,edit:D.a,schema:nt.a,restricted:({properties:e,block:t})=>{var s,n;return null===(s=e.blocks_layout)||void 0===s||null===(n=s.items)||void 0===n?void 0:n.find(s=>{var n,r;return(null===(n=e.blocks)||void 0===n||null===(r=n[s])||void 0===r?void 0:r["@type"])===t.id})},mostUsed:!1,blockHasOwnFocusManagement:!0,sidebarTab:0,security:{addPermission:[],view:[]}},description:{id:"description",title:"Description",icon:Ae.a,group:"text",view:o.a,edit:E.a,schema:nt.a,restricted:!0,mostUsed:!1,blockHasOwnFocusManagement:!0,sidebarTab:0,security:{addPermission:[],view:[]}},text:{id:"text",title:"Text",icon:Fe.a,group:"text",view:c.a,edit:I.a,schema:rt.a,restricted:!1,mostUsed:!1,blockHasOwnFocusManagement:!0,sidebarTab:0,security:{addPermission:[],view:[]},blockHasValue:e=>{var t,s;return!(!e.text||1===(null===(t=e.text)||void 0===t||null===(s=t.blocks)||void 0===s?void 0:s.length)&&""===e.text.blocks[0].text)}},image:{id:"image",title:"Image",icon:ze.a,group:"media",view:d.a,edit:A.a,schema:it.a,restricted:!1,mostUsed:!0,sidebarTab:1,security:{addPermission:[],view:[]}},leadimage:{id:"leadimage",title:"Lead Image Field",icon:ze.a,group:"media",view:O,edit:W,schema:nt.a,restricted:({properties:e})=>!e.hasOwnProperty("image"),mostUsed:!1,sidebarTab:1,security:{addPermission:[],view:[]}},listing:{id:"listing",title:"Listing",icon:Xe.a,group:"common",view:v.a,edit:$.a,schema:nt.a,blockSchema:xn.a,restricted:!1,mostUsed:!0,sidebarTab:1,showLinkMore:!1,security:{addPermission:[],view:[]},variations:[{id:"default",isDefault:!0,title:"Default",template:J},{id:"imageGallery",title:"Image gallery",template:st.a},{id:"summary",title:"Summary",template:Q}],getAsyncData:({dispatch:e,data:t,path:s})=>{var n;return[e(Object(fn.z)(s,vn(vn({},t.querystring),null!==(n=t.variation)&&void 0!==n&&n.fullobjects?{fullobjects:1}:{metadata_fields:"_all"}),t.block))]}},video:{id:"video",title:"Video",icon:He.a,group:"media",view:y.a,edit:X.a,schema:nt.a,restricted:!1,mostUsed:!0,sidebarTab:1,security:{addPermission:[],view:[]}},toc:{id:"toc",title:"Table of Contents",icon:Xe.a,group:"common",view:l.a,edit:T.a,schema:at.a,restricted:!1,mostUsed:!1,sidebarTab:0,security:{addPermission:[],view:[]}},hero:{id:"hero",title:"Hero",icon:$e.a,group:"common",view:x.a,edit:ee.a,schema:nt.a,blockSchema:yn.a,restricted:!1,mostUsed:!1,blockHasOwnFocusManagement:!0,sidebarTab:1,security:{addPermission:[],view:[]}},maps:{id:"maps",title:"Maps",icon:Ge.a,group:"common",view:w.a,edit:te.a,schema:nt.a,restricted:!1,mostUsed:!1,sidebarTab:1,security:{addPermission:[],view:[]}},html:{id:"html",title:"HTML",icon:Ze.a,group:"common",view:C.a,edit:se.a,schema:nt.a,restricted:!1,mostUsed:!1,sidebarTab:0,security:{addPermission:[],view:[]}},table:{id:"table",title:"Table",icon:Je.a,group:"common",view:L,edit:Te,schema:nt.a,restricted:!1,mostUsed:!1,blockHasOwnFocusManagement:!0,sidebarTab:1,security:{addPermission:[],view:[]}},search:{id:"search",title:"Search",icon:tt.a,group:"common",view:Nt,edit:Kt,blockSchema:Bt,restricted:!1,mostUsed:!1,sidebarTab:1,security:{addPermission:[],view:[]},variations:[{id:"facetsRightSide",title:"Facets on right side",view:on,isDefault:!0},{id:"facetsLeftSide",title:"Facets on left side",view:un,isDefault:!1},{id:"facetsTopSide",title:"Facets on top",view:gn,isDefault:!1}],extensions:{facetWidgets:{rewriteOptions:(e,t)=>"review_state"===e?t.map(e=>Cn(Cn({},e),{},{label:e.label.replace(/\[.+\]/,"").trim()})):t,types:[{id:"selectFacet",title:"Select",view:cs,isDefault:!0,schemaEnhancer:cs.schemaEnhancer,stateToValue:cs.stateToValue,valueToQuery:cs.valueToQuery,filterListComponent:$s},{id:"checkboxFacet",title:"Checkbox",view:hs,isDefault:!1,schemaEnhancer:hs.schemaEnhancer,stateToValue:hs.stateToValue,valueToQuery:hs.valueToQuery,filterListComponent:$s},{id:"daterangeFacet",title:"Date range",view:Ss,isDefault:!1,stateToValue:Ss.stateToValue,valueToQuery:Ss.valueToQuery,filterListComponent:Xs},{id:"toggleFacet",title:"Toggle",view:Gs,isDefault:!1,stateToValue:Gs.stateToValue,valueToQuery:Gs.valueToQuery,filterListComponent:Js}]}}}},kn=["title"],Nn={},Pn={}},fSJZ:function(e,t,s){"use strict";s.d(t,"b",(function(){return E})),s.d(t,"a",(function(){return T}));var n=s("lSNA"),r=s.n(n),i=s("Ty5D"),a=s("/MKj"),o=s("8ZS8"),l=s("V/vL"),c=s("BI65");function d(e){return"object"===typeof e&&e&&e.then instanceof Function}const p=Promise.mapSeries||function(e,t){const{length:s}=e,n=new Array(s);let r=0;return function i(){return t(e[r],r,e).then(e=>(n[r]=e,r+=1,r<s?i():n))}()},u=e=>e;let h=u,b=u;const j=e=>b(e);var m=s("QILm"),g=s.n(m),f=s("q1tI");s("17x9");const O=["location","routes","filter"];function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function y(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function x(e){let{location:t,routes:s=[],filter:n=(()=>!0)}=e,r=g()(e,O);const i=Object(l.a)(s,t.pathname).reduce((e,{route:t,match:s})=>(t.component&&t.component.reduxAsyncConnect&&e.push([t.component,{route:t,match:s}]),e),[]);return 0===i.length?Promise.resolve():p(i,([e,i])=>{if(null==e)return Promise.resolve();const a=[],o=e.reduxAsyncConnect,l=[...e.reduxAsyncConnect];o.forEach(o=>{if(n(o,e)){if("voltoLoadAsyncProps"===o.key){a.push(o);const e=o.promise(y(y(y({},r),i),{},{location:t,routes:s}));return l.push(...e),void e.forEach(e=>{let t=e&&e.promise||e;d(t)&&(t=t.catch(e=>({error:e}))),a.push(t)})}let e=o.promise(y(y(y({},r),i),{},{location:t,routes:s}));d(e)&&(e=e.catch(e=>({error:e}))),a.push(e)}});return Promise.all(a).then(e=>Object.assign({},e.map((e,t)=>{const{key:s}=l[t];return s?{[s]:e}:null})))})}var w=s("nKUr");const C=["reduxConnectStore"],S=["context"];function M(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function k(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?M(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class N extends f.Component{constructor(e){super(e),this.state={previousLocation:this.isLoaded()?null:e.location},this.mounted=!1,this.loadDataCounter=0}componentDidMount(){this.mounted=!0;this.isLoaded()||this.loadAsyncData(this.props)}UNSAFE_componentWillReceiveProps(e){const{location:t,reloadOnPropsChange:s}=this.props;t!==e.location&&s(this.props,e)&&this.loadAsyncData(e)}componentWillUnmount(){this.mounted=!1}isLoaded(){const{reduxConnectStore:e}=this.props;return j(e.getState()).reduxAsyncConnect.loaded}loadAsyncData(e){let{reduxConnectStore:t}=e,s=g()(e,C);const{location:n,beginGlobalLoad:r,endGlobalLoad:i}=this.props,a=x(k(k({},s),{},{store:t}));return this.setState({previousLocation:n}),this.loadDataCounter+=1,r(),(e=>a.then(()=>{this.loadDataCounter===e&&!1!==this.mounted&&this.setState({previousLocation:null}),i()}))(this.loadDataCounter)}render(){const{previousLocation:e}=this.state,{location:t,render:s}=this.props;return Object(w.jsx)(i.c,{location:e||t,render:()=>s(this.props)})}}N.defaultProps={helpers:{},reloadOnPropsChange:()=>!0,render:({routes:e})=>Object(l.b)(e)};function P(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function L(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?P(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const D=(e,t)=>{const{asyncPropsExtenders:s=[]}=o.a.settings;return Object(l.a)(s,t).reduce((e,t)=>t.route.extend(e),e).reduce((e,t)=>(e.some(e=>e.key===t.key)||e.push(t),e),[])};function E(e,t,s,n,r){return i=>{i.reduxAsyncConnect=((e,t=[])=>[{key:"voltoLoadAsyncProps",promise:s=>{const{store:{dispatch:n},location:{pathname:r}}=s,i=D(t,r).map(e=>{const{key:t}=e;if(!t)return e;const r=e.promise(s);return d(r)?(n(Object(c.c)(t)),r.then(e=>n(Object(c.e)(t,e))).catch(e=>n(Object(c.d)(t,e)))):r&&n(Object(c.e)(t,r)),L(L({},e),{},{promise:r})});return e.reduxAsyncConnect=i,i}}])(i,e);return Object(a.connect)((s,n)=>{const{pathname:r}=s.router.location,i=D(e,r),a=j(s),o=i.reduce((e,{key:t})=>t?L(L({},e),{},{[t]:a.reduxAsyncConnect[t]}):e,{});return"function"!==typeof t?o:L(L({},t((e=>h(e))(a),n)),o)},s,n,r)(i)}}const T=Object(a.connect)(null,{beginGlobalLoad:c.a,endGlobalLoad:c.b})(Object(i.j)(e=>{let{context:t}=e,s=g()(e,S);const n=t||a.ReactReduxContext;if(null==n)throw new Error("Please upgrade to react-redux v6");return Object(w.jsx)(n.Consumer,{children:({store:e})=>Object(w.jsx)(N,k({reduxConnectStore:e},s))})}))},fmLK:function(e,t,s){"use strict";s("q1tI");var n=s("24R3"),r=s("55Ip"),i=s("yE/o"),a=s("/MKj"),o=s("Ty5D"),l=s("Ef8B"),c=s("zpb6"),d=s("nKUr");t.a=Object(l.g)(401)(()=>{const e=Object(a.useSelector)(e=>e.apierror.message);let t=Object(o.i)();return Object(d.jsxs)(i.a,{className:"view-wrapper",children:[Object(d.jsx)("h1",{children:Object(d.jsx)(n.a,{id:"Unauthorized",defaultMessage:"Unauthorized"})}),Object(d.jsx)("h3",{children:e}),Object(d.jsx)("p",{className:"description",children:Object(d.jsx)(n.a,{id:"You are trying to access a protected resource, please {login} first.",defaultMessage:"You are trying to access a protected resource, please {login} first.",values:{login:Object(d.jsx)(r.a,{to:Object(c.r)(t.pathname)+"/login",children:Object(d.jsx)(n.a,{id:"log in",defaultMessage:"log in"})})}})}),Object(d.jsx)("p",{children:Object(d.jsx)(n.a,{id:"If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}.",defaultMessage:"If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}.",values:{site_admin:Object(d.jsx)(r.a,{to:"/contact-form",children:Object(d.jsx)(n.a,{id:"Site Administration",defaultMessage:"Site Administration"})})}})}),Object(d.jsx)("p",{children:Object(d.jsx)(n.a,{id:"Thank you.",defaultMessage:"Thank you."})})]})})},fqYu:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18 11C17.449 11 17 10.552 17 10 17 9.448 17.449 9 18 9 18.551 9 19 9.448 19 10 19 10.552 18.551 11 18 11M18 7C16.346 7 15 8.346 15 10 15 11.654 16.346 13 18 13 19.654 13 21 11.654 21 10 21 8.346 19.654 7 18 7M18 19C17.449 19 17 18.552 17 18 17 17.448 17.449 17 18 17 18.551 17 19 17.448 19 18 19 18.552 18.551 19 18 19M18 15C16.346 15 15 16.346 15 18 15 19.654 16.346 21 18 21 19.654 21 21 19.654 21 18 21 16.346 19.654 15 18 15"/><path d="M23,22 C23,22.552 22.551,23 22,23 L14,23 C13.449,23 13,22.552 13,22 L13,6 C13,5.448 13.449,5 14,5 L22,5 C22.551,5 23,5.448 23,6 L23,22 Z M27,11 L27,9 L25,9 L25,6 C25,4.346 23.654,3 22,3 L14,3 C12.346,3 11,4.346 11,6 L11,9 L9,9 L9,11 L11,11 L11,17 L9,17 L9,19 L11,19 L11,22 C11,23.654 12.346,25 14,25 L17,25 L17,31 L13,31 L13,33 L23,33 L23,31 L19,31 L19,25 L22,25 C23.654,25 25,23.654 25,22 L25,19 L27,19 L27,17 L25,17 L25,11 L27,11 Z"/></g>'}},ftGD:function(e,t,s){"use strict";s("q1tI");var n=s("24R3"),r=s("yE/o"),i=(s("8ZS8"),s("nKUr"));t.a=()=>Object(i.jsxs)(r.a,{className:"view-wrapper",style:{fontFamily:"Helvetica, sans-serif",fontSize:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[Object(i.jsxs)("h1",{style:{textAlign:"center",lineHeight:"40px"},children:[Object(i.jsx)(n.a,{id:"Connection refused",defaultMessage:"Connection refused"}),!1]}),!1,Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("p",{className:"description",style:{textAlign:"center",margin:"20px auto",width:"475px"},children:Object(i.jsx)(n.a,{id:"We apologize for the inconvenience, but the backend of the site you are accessing is not available right now. Please, try again later.",defaultMessage:"We apologize for the inconvenience, but the backend of the site you are accessing is not available right now. Please, try again later."})}),Object(i.jsx)("p",{style:{textAlign:"center"},children:Object(i.jsx)(n.a,{id:"Thank you.",defaultMessage:"Thank you."})})]})]})},ftlp:function(e,t,s){"use strict";s.r(t);s("8SHQ"),s("tDNE"),s("5XvZ");var n=s("q1tI"),r=s("i8i4"),i=s("/MKj"),a=s("5m5G"),o=s("u4tm"),l=s("LhCv"),c=s("fSJZ"),d=s("MKeS"),p=s("zyEs"),u=s("NOtv"),h=s.n(u),b=s("lSNA"),j=s.n(b),m=s("Kvkj"),g=s("x+9r"),f=(s("17x9"),s("ANjH")),O=s("Ty5D"),v=s("It+4"),y=s("zSVi"),x=s("cr+I"),w=s.n(x),C=s("9At1"),S=s("zpb6"),M=s("8ZS8"),k=s("nKUr");function N(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function P(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?N(Object(s),!0).forEach((function(t){j()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):N(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class L extends n.Component{constructor(...e){super(...e),j()(this,"state",{hasObjectButtons:null,isClient:!1}),j()(this,"getViewDefault",()=>M.a.views.defaultView),j()(this,"getViewByType",()=>M.a.views.contentTypesViews[this.props.content["@type"]]||null),j()(this,"getViewByLayout",()=>M.a.views.layoutViews[this.props.content[Object(S.B)(this.props.content)]]||null),j()(this,"cleanViewName",e=>e.replace("Connect(","").replace("injectIntl(","").replace(")","").replace("connect(","").toLowerCase())}componentDidMount(){this.props.listActions(Object(S.r)(this.props.pathname)),this.props.getContent(Object(S.r)(this.props.pathname),this.props.versionId),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){if(e.pathname!==this.props.pathname&&(this.props.listActions(Object(S.r)(e.pathname)),this.props.getContent(Object(S.r)(e.pathname),this.props.versionId)),e.actions.object_buttons){const t=e.actions.object_buttons;this.setState({hasObjectButtons:!!t.length})}}render(){const{views:e}=M.a;if(this.props.error&&301===this.props.error.code)return Object(k.jsx)(O.b,{to:Object(S.q)(this.props.error.url)});if(this.props.error&&!this.props.connectionRefused){let t;return t=void 0===this.props.error.status?e.errorViews.corsError:e.errorViews[this.props.error.status.toString()],t||(t=e.errorViews[404]),Object(k.jsx)("div",{id:"view",children:Object(k.jsx)(t,P({},this.props))})}if(!this.props.content)return Object(k.jsx)("span",{});const t=this.getViewByType()||this.getViewByLayout()||this.getViewDefault();return Object(k.jsxs)("div",{id:"view",children:[Object(k.jsx)(m.w,{content:this.props.content}),Object(k.jsx)(S.b,{className:t.displayName?"view-"+this.cleanViewName(t.displayName):null}),Object(k.jsx)(t,{content:this.props.content,location:this.props.location,token:this.props.token,history:this.props.history}),M.a.settings.showTags&&this.props.content.subjects&&this.props.content.subjects.length>0&&Object(k.jsx)(m.Sb,{tags:this.props.content.subjects}),this.props.content.allow_discussion&&Object(k.jsx)(m.r,{pathname:this.props.pathname}),this.state.isClient&&Object(k.jsx)(v.a,{node:document.getElementById("toolbar"),children:Object(k.jsx)(m.Vb,{pathname:this.props.pathname,inner:Object(k.jsx)("span",{})})})]})}}j()(L,"defaultProps",{actions:null,content:null,versionId:null,error:null});var D,E,T,I,A,R,_,q,F,B=Object(f.compose)(y.c,Object(i.connect)((e,t)=>({actions:e.actions.actions,token:e.userSession.token,content:e.content.data,error:e.content.get.error,apiError:e.apierror.error,connectionRefused:e.apierror.connectionRefused,pathname:t.location.pathname,versionId:w.a.parse(t.location.search)&&w.a.parse(t.location.search).version}),{listActions:C.M,getContent:C.t}))(L);function z(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function U(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?z(Object(s),!0).forEach((function(t){j()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):z(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const H=[{path:`/(${null===(D=M.a.settings)||void 0===D?void 0:D.supportedLanguages.join("|")})/sitemap`,component:m.Qb},{path:`/(${null===(E=M.a.settings)||void 0===E?void 0:E.supportedLanguages.join("|")})/search`,component:m.Jb},{path:`/(${null===(T=M.a.settings)||void 0===T?void 0:T.supportedLanguages.join("|")})/contact-form`,component:m.v},{path:`/(${null===(I=M.a.settings)||void 0===I?void 0:I.supportedLanguages.join("|")})/change-password`,component:m.n},{path:`/(${null===(A=M.a.settings)||void 0===A?void 0:A.supportedLanguages.join("|")})/register`,component:m.Eb},{path:`/(${null===(R=M.a.settings)||void 0===R?void 0:R.supportedLanguages.join("|")})/password-reset`,component:m.Hb,exact:!0},{path:`/(${null===(_=M.a.settings)||void 0===_?void 0:_.supportedLanguages.join("|")})/password-reset/:token`,component:m.Cb,exact:!0}],K=[{path:"/",component:B,exact:!0},{path:"/login",component:m.qb},{path:"/logout",component:m.sb},{path:"/sitemap",component:m.Qb},{path:"/search",component:m.Jb},{path:"/contact-form",component:m.v},{path:"/controlpanel",exact:!0,component:m.M},{path:"/controlpanel/dexterity-types/:id/layout",component:m.y},{path:"/controlpanel/dexterity-types/:id/schema",component:m.z},{path:"/controlpanel/dexterity-types/:id",component:m.x},{path:"/controlpanel/dexterity-types",component:m.A},{path:"/controlpanel/addons",component:m.b},{path:"/controlpanel/database",component:m.O},{path:"/controlpanel/moderate-comments",component:m.wb},{path:"/controlpanel/users",component:m.ac},{path:"/controlpanel/groups",component:m.gb},{path:"/controlpanel/:id",component:m.L},{path:"/change-password",component:m.n},{path:"/add",component:m.a},{path:"/edit",component:m.W},{path:"/contents",component:m.C},{path:"/sharing",component:m.Nb},{path:"/**/add",component:m.a},{path:"/**/create-translation",component:m.N},{path:"/**/contents",component:m.C},{path:"/**/sharing",component:m.Nb},{path:"/**/delete",component:m.R},{path:"/**/diff",component:m.S},{path:"/**/edit",component:m.W},{path:"/**/history",component:m.ib},{path:"/**/sharing",component:m.Nb},{path:"/**/manage-translations",component:m.tb},{path:"/**/login",component:m.qb},{path:"/register",component:m.Eb},{path:"/password-reset",component:m.Hb,exact:!0},{path:"/password-reset/:token",component:m.Cb,exact:!0},{path:"/**",component:B},{path:"*",component:m.yb}];var G=[{path:"/",component:g.a,routes:[...((null===(q=M.a.settings)||void 0===q?void 0:q.externalRoutes)||[]).map(e=>U(U({},e.match),{},{component:m.yb})),...M.a.addonRoutes||[],...(null===(F=M.a.settings)||void 0===F?void 0:F.isMultilingual)&&H||[],...K]}],V=s("wNa6"),Z=s("WSEr");function W(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}const $=["tags","extras"];var Y=e=>{var t;const{settings:s}=M.a;let n=void 0;var r,i,a,o,l,c;if(null!==(r=window)&&void 0!==r&&null!==(i=r.env)&&void 0!==i&&i.RAZZLE_SENTRY_DSN&&(n||(n={}),n.SENTRY_DSN=window.env.RAZZLE_SENTRY_DSN),n&&(null!==(a=window)&&void 0!==a&&null!==(o=a.env)&&void 0!==o&&o.RAZZLE_SENTRY_FRONTEND_CONFIG&&(n.SENTRY_CONFIG=JSON.parse(window.env.RAZZLE_SENTRY_FRONTEND_CONFIG)),null!==(l=window)&&void 0!==l&&null!==(c=l.env)&&void 0!==c&&c.RAZZLE_SENTRY_RELEASE&&(n.SENTRY_CONFIG||(n.SENTRY_CONFIG={}),n.SENTRY_CONFIG.release=window.env.RAZZLE_SENTRY_RELEASE)),n||null!==s&&void 0!==s&&null!==(t=s.sentryOptions)&&void 0!==t&&t.dsn){var d,p,u;let t=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?W(Object(s),!0).forEach((function(t){j()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):W(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},s.sentryOptions);if(null!==(d=n)&&void 0!==d&&d.SENTRY_DSN&&(t.dsn=n.SENTRY_DSN),void 0!==(null===(p=n)||void 0===p?void 0:p.SENTRY_CONFIG)){Object.keys(n.SENTRY_CONFIG).forEach(e=>{$.includes(e)||(t[e]=n.SENTRY_CONFIG[e])})}var h,b,m,g;if(e.init(t),null!==t&&void 0!==t&&t.tags&&e.setTags(t.tags),null!==t&&void 0!==t&&t.extras&&e.setExtras(t.extras),void 0!==(null===(u=n)||void 0===u?void 0:u.SENTRY_CONFIG))void 0!==(null===(h=n)||void 0===h||null===(b=h.SENTRY_CONFIG)||void 0===b?void 0:b.tags)&&e.setTags(n.SENTRY_CONFIG.tags),void 0!==(null===(m=n)||void 0===m||null===(g=m.SENTRY_CONFIG)||void 0===g?void 0:g.extras)&&e.setExtras(n.SENTRY_CONFIG.extras)}};const J=Object(l.a)();function Q(e){h()("i18n")(e)}Y(Z);(()=>{const e=new S.a,t=Object(V.a)(window.__data,J,e);Object(S.U)(t),window.Cypress&&(window.appHistory=J,window.store=t,window.settings=M.a.settings),window.env.apiPath&&(M.a.settings.apiPath=window.env.apiPath),window.env.publicURL&&(M.a.settings.publicURL=window.env.publicURL),window.env.RAZZLE_LEGACY_TRAVERSE&&(M.a.settings.legacyTraverse=!0),Object(d.b)(()=>{Object(r.hydrate)(Object(k.jsx)(p.a,{children:Object(k.jsx)(i.Provider,{store:t,children:Object(k.jsx)(a.IntlProvider,{onError:Q,children:Object(k.jsx)(o.a,{history:J,children:Object(k.jsx)(S.e,{children:Object(k.jsx)(c.a,{routes:G,helpers:e})})})})})}),document.getElementById("main"))})})()},gVku:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M0 2L30 2 30 0 0 0zM0 10L24 10 24 8 0 8z" transform="translate(3 13)"/>'}},gWfO:function(e,t,s){"use strict";s("q1tI"),s("TSYQ"),s("nKUr")},gXG4:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("wEy/"),a=s.n(i),o=s("E+oP"),l=s.n(o),c=s("q1tI"),d=s.n(c),p=(s("17x9"),s("ANjH")),u=s("/MKj"),h=s("Pj1C"),b=s("MqQV"),j=s("QetY"),m=s("5IEt"),g=s("Wl3A"),f=s("3tf8"),O=s("lHu7"),v=s("zSVi"),y=s("zfia"),x=s("aRem"),w=s("zdp0"),C=s.n(w),S=s("1Jxj"),M=s.n(S),k=s("aMsN"),N=s.n(k),P=s("EFnn"),L=s.n(P),D=s("ruTd"),E=s.n(D),T=s("Ty5D"),I=s("nKUr");function A(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function R(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?A(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):A(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const _=Object(O.defineMessages)({placeholder:{id:"No items selected",defaultMessage:"No items selected"},edit:{id:"Edit",defaultMessage:"Edit"},delete:{id:"Delete",defaultMessage:"Delete"},openObjectBrowser:{id:"Open object browser",defaultMessage:"Open object browser"}});class q extends c.Component{constructor(e){super(e),r()(this,"state",{manualLinkInput:"",validURL:!1}),r()(this,"removeItem",e=>{let t=[...this.props.value];a()(t,(function(t){return t["@id"]===e["@id"]})),this.props.onChange(this.props.id,t)}),r()(this,"onChange",e=>{var t,s;let n="multiple"===this.props.mode?[...this.props.value]:[];n=n.filter(e=>null!=e);1===((null===(t=this.props.widgetOptions)||void 0===t||null===(s=t.pattern_options)||void 0===s?void 0:s.maximumSelectionSize)||-1)&&1===n.length&&(n=[]);let r=!1,i=-1;if(n.forEach((t,s)=>{Object(m.d)(t["@id"])===Object(m.d)(e["@id"])&&(r=!0,i=s)}),r)n.splice(i,1),this.props.onChange(this.props.id,n);else{let t=e;if(this.props.selectedItemAttrs){const s=[...this.props.selectedItemAttrs,"@id","title"];t=Object.keys(e).filter(e=>s.includes(e)).reduce((t,s)=>(t[s]=e[s],t),{})}t=R(R({},t),{},{"@id":e["@id"]}),n.push(t),this.props.onChange(this.props.id,n)}}),r()(this,"onManualLinkInput",e=>{this.setState({manualLinkInput:e.target.value}),this.validateManualLink(e.target.value)?this.setState({validURL:!0}):this.setState({validURL:!1})}),r()(this,"validateManualLink",e=>this.props.allowExternals?Object(m.k)(e):Object(m.j)(e)),r()(this,"onSubmitManualLink",()=>{if(this.validateManualLink(this.state.manualLinkInput)){if(Object(m.j)(this.state.manualLinkInput)){const e=this.state.manualLinkInput;this.props.searchContent("/",{"path.query":Object(m.d)(this.state.manualLinkInput),"path.depth":"0",sort_on:"getObjPositionInParent",metadata_fields:"_all",b_size:1e3},`${this.props.block}-${this.props.mode}`).then(t=>{var s;(null===(s=t.items)||void 0===s?void 0:s.length)>0?this.onChange(t.items[0]):this.props.onChange(this.props.id,[{"@id":Object(m.l)(e),title:Object(m.m)(e)}])})}else this.props.onChange(this.props.id,[{"@id":Object(m.l)(this.state.manualLinkInput),title:Object(m.m)(this.state.manualLinkInput)}]);this.setState({validURL:!0,manualLinkInput:""})}}),r()(this,"onKeyDownManualLink",e=>{"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmitManualLink()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())}),r()(this,"showObjectBrowser",e=>{var t,s,n,r;e.preventDefault(),this.props.openObjectBrowser({mode:this.props.mode,currentPath:this.props.location.pathname,propDataName:"value",onSelectItem:(e,t)=>{this.onChange(t)},selectableTypes:null===(t=this.props.widgetOptions)||void 0===t||null===(s=t.pattern_options)||void 0===s?void 0:s.selectableTypes,maximumSelectionSize:null===(n=this.props.widgetOptions)||void 0===n||null===(r=n.pattern_options)||void 0===r?void 0:r.maximumSelectionSize})}),r()(this,"handleSelectedItemsRefClick",e=>{this.props.isDisabled||(e.target.contains(this.selectedItemsRef.current)||e.target.contains(this.placeholderRef.current))&&this.showObjectBrowser(e)}),this.selectedItemsRef=d.a.createRef(),this.placeholderRef=d.a.createRef()}renderLabel(e){const t=e["@id"];return Object(I.jsx)(h.a,{content:Object(I.jsxs)("div",{style:{display:"flex"},children:[Object(m.j)(t)?Object(I.jsx)(y.a,{name:N.a,size:"18px"}):Object(I.jsx)(y.a,{name:E.a,size:"18px"}),"\xa0",Object(m.d)(t)]}),trigger:Object(I.jsxs)(b.a,{children:[Object(I.jsx)("div",{className:"item-title",children:e.title}),Object(I.jsx)("div",{children:"multiple"===this.props.mode&&Object(I.jsx)(y.a,{name:M.a,size:"12px",className:"right",onClick:t=>{t.preventDefault(),this.removeItem(e)}})})]})},Object(m.d)(t))}render(){const{id:e,description:t,fieldSet:s,value:n,mode:r,onChange:i,isDisabled:a}=this.props;let o="multiple"===r||0===n.length?C.a:M.a,c="multiple"===r||0===n.length?this.showObjectBrowser:t=>{t.preventDefault(),i(e,[])},d=n?n.filter(e=>null!=e):[];return Object(I.jsx)(x.a,R(R({},this.props),{},{className:t?"help text":"text",children:Object(I.jsxs)("div",{className:"objectbrowser-field","aria-labelledby":`fieldset-${s||"default"}-field-label-${e}`,children:[Object(I.jsxs)("div",{className:"selected-values",onClick:this.handleSelectedItemsRefClick,onKeyDown:this.handleSelectedItemsRefClick,role:"searchbox",tabIndex:0,ref:this.selectedItemsRef,children:[d.map(e=>this.renderLabel(e)),0===d.length&&"multiple"===this.props.mode&&Object(I.jsx)("div",{className:"placeholder",ref:this.placeholderRef,children:this.props.intl.formatMessage(_.placeholder)}),this.props.allowExternals&&0===d.length&&"multiple"!==this.props.mode&&Object(I.jsx)("input",{onKeyDown:this.onKeyDownManualLink,onChange:this.onManualLinkInput,value:this.state.manualLinkInput,placeholder:this.props.intl.formatMessage(_.placeholder)})]}),this.state.manualLinkInput&&l()(d)&&Object(I.jsxs)(j.a.Group,{children:[Object(I.jsx)(j.a,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),this.setState({manualLinkInput:""})},children:Object(I.jsx)(y.a,{name:M.a,size:"18px",color:"#e40166"})}),Object(I.jsx)(j.a,{basic:!0,primary:!0,disabled:!this.state.validURL,onClick:e=>{e.stopPropagation(),this.onSubmitManualLink()},children:Object(I.jsx)(y.a,{name:L.a,size:"18px"})})]}),!this.state.manualLinkInput&&Object(I.jsx)(j.a,{"aria-label":this.props.intl.formatMessage(_.openObjectBrowser),onClick:c,className:"action",disabled:a,children:Object(I.jsx)(y.a,{name:o,size:"18px"})})]})}))}}r()(q,"defaultProps",{description:null,required:!1,error:[],value:[],mode:"multiple",allowExternals:!1});t.a=Object(p.compose)(v.c,f.a,T.j,Object(u.connect)(null,{searchContent:g.b}))(q)},ghgQ:function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=(s("17x9"),s("It+4")),a=s("nKUr");t.a=({children:e,selected:t,tab:s="sidebar-properties"})=>{const[n,o]=r.a.useState(null);return r.a.useEffect(()=>o(!0),[]),Object(a.jsx)(a.Fragment,{children:t&&Object(a.jsx)(i.a,{node:n&&document.getElementById(s),children:Object(a.jsx)("div",{role:"form",style:{height:"100%"},children:Object(a.jsx)("div",{style:{height:"100%"},role:"presentation",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:e})})})})}},gxrp:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M14 11L29 11 29 9 14 9zM14 19L29 19 29 17 14 17zM14 27L29 27 29 25 14 25zM8 20.414L5.293 17.707 6.707 16.293 8 17.586 11.293 14.293 12.707 15.707zM8 12.414L5.293 9.707 6.707 8.293 8 9.586 11.293 6.293 12.707 7.707zM8 28.414L5.293 25.707 6.707 24.293 8 25.586 11.293 22.293 12.707 23.707z"/></g>'}},h33a:function(e,t,s){"use strict";s("q1tI");var n=s("lHu7"),r=s("52Oh"),i=s("SAOm"),a=s("Kvkj"),o=s("QetY"),l=s("zpb6"),c=s("8ZS8"),d=s("ks9+"),p=s.n(d),u=s("5Ixu"),h=s.n(u),b=s("nKUr");const j=Object(n.defineMessages)({undo:{id:"Undo",defaultMessage:"Undo"},redo:{id:"Redo",defaultMessage:"Redo"}});t.a=({state:e,onUndoRedo:t,maxUndoLevels:s,enableHotKeys:n})=>{const d=Object(r.a)(),u=null!==s&&void 0!==s?s:c.a.settings.maxUndoLevels,{doUndo:m,doRedo:g,canUndo:f,canRedo:O}=Object(l.ab)(e,t,{maxUndoLevels:u});return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)(i.a,{pluggable:"main.toolbar.bottom",id:"undo-btn",dependencies:[f,O],children:Object(b.jsx)(o.a,{className:"undo",onClick:()=>m(),"aria-label":d.formatMessage(j.undo),disabled:!f,children:Object(b.jsx)(a.jb,{name:p.a,className:"circled",size:"30px",title:d.formatMessage(j.undo)})})}),Object(b.jsx)(i.a,{pluggable:"main.toolbar.bottom",id:"redo-btn",dependencies:[f,O],children:Object(b.jsx)(o.a,{className:"redo",onClick:()=>g(),"aria-label":d.formatMessage(j.redo),disabled:!O,children:Object(b.jsx)(a.jb,{name:h.a,className:"circled",size:"30px",title:d.formatMessage(j.redo)})})})]})}},hWch:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("umxb")),a=s("Kvkj"),o=s("zSVi"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const p=e=>{const{id:t,value:s,onChange:n,onBlur:r,onClick:o,defaultValue:c,isDisabled:p,maximum:u,minimum:h}=e;return Object(l.jsx)(a.db,d(d({},e),{},{children:Object(l.jsx)(i.a,{id:"field-"+t,name:t,type:"number",disabled:p,min:h||null,max:u||null,value:s||c,onChange:({target:e})=>n(t,""===e.value?void 0:e.value),onBlur:({target:e})=>r(t,""===e.value?void 0:e.value),onClick:()=>o()})}))};p.defaultProps={description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{}},t.a=Object(o.c)(p)},hYiQ:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("xd3P"),l=s("lV3b"),c=s.n(l),d=s("zpb6"),p=s("Kvkj"),u=s("QetY"),h=s("lHu7"),b=s("52Oh"),j=s("nKUr");function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function g(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const f=Object(h.defineMessages)({addBlock:{id:"Add block",defaultMessage:"Add block"}}),O=e=>{const t=Object(b.a)(),{className:s="block-add-button",size:n="19px",onShowBlockChooser:r}=e;return Object(j.jsx)(u.a,{icon:!0,basic:!0,title:t.formatMessage(f.addBlock),onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},className:s,children:Object(j.jsx)(p.jb,{name:c.a,className:s,size:n})})};t.a=e=>{const{block:t,allowedBlocks:s,showRestricted:n,data:r,onMutateBlock:i,onInsertBlock:l,blocksConfig:c,buttonComponent:u,properties:h}=e,{disableNewBlocks:b}=r,[m,f]=a.a.useState(!1),v=a.a.useRef(),y=a.a.useCallback(e=>{v.current&&Object(o.doesNodeContainClick)(v.current,e)||f(!1)},[]),x=u||O;return a.a.useEffect(()=>(document.addEventListener("mousedown",y,!1),()=>{document.removeEventListener("mousedown",y,!1)}),[y]),Object(j.jsxs)(j.Fragment,{children:[!b&&!Object(d.l)(r)&&Object(j.jsx)(x,g(g({},e),{},{onShowBlockChooser:()=>f(!0)})),m&&Object(j.jsx)(p.f,{onMutateBlock:i?(e,t)=>{f(!1),i(e,t)}:null,onInsertBlock:l?(e,t)=>{f(!1),l(e,t)}:null,currentBlock:t,allowedBlocks:s,blocksConfig:c,properties:h,showRestricted:n,ref:v})]})}},hxMo:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M26.707 21.293L25.293 22.707 18 15.414 10.707 22.707 9.293 21.293 18 12.586z"/>'}},iHLb:function(e,t,s){"use strict";var n=s("Kvkj"),r=s("zpb6");const i=Object(r.db)(n.lb);t.a=i},iHvF:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M8 16C6.897 16 6 16.897 6 18 6 19.103 6.897 20 8 20 9.103 20 10 19.103 10 18 10 16.897 9.103 16 8 16M8 22C5.794 22 4 20.206 4 18 4 15.794 5.794 14 8 14 10.206 14 12 15.794 12 18 12 20.206 10.206 22 8 22M18 16C16.897 16 16 16.897 16 18 16 19.103 16.897 20 18 20 19.103 20 20 19.103 20 18 20 16.897 19.103 16 18 16M18 22C15.794 22 14 20.206 14 18 14 15.794 15.794 14 18 14 20.206 14 22 15.794 22 18 22 20.206 20.206 22 18 22M28 16C26.897 16 26 16.897 26 18 26 19.103 26.897 20 28 20 29.103 20 30 19.103 30 18 30 16.897 29.103 16 28 16M28 22C25.794 22 24 20.206 24 18 24 15.794 25.794 14 28 14 30.206 14 32 15.794 32 18 32 20.206 30.206 22 28 22" fill-rule="evenodd"/>'}},igyC:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Kvkj"),a=(s("17x9"),s("q1tI"),s("umxb")),o=s("nKUr");function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?l(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const d=e=>{const{id:t,value:s,onChange:n,onBlur:r,onClick:l,minLength:d,maxLength:p}=e,u="field-"+t;return Object(o.jsx)(i.db,c(c({},e),{},{className:"email",children:Object(o.jsx)(a.a,{id:u,name:t,type:"email",value:s||"",onChange:({target:e})=>n(t,""===e.value?void 0:e.value),onBlur:({target:e})=>r(t,""===e.value?void 0:e.value),onClick:()=>l(),minLength:d||null,maxLength:p||null})}))};d.defaultProps={description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},minLength:null,maxLength:null},t.a=d},j4JH:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("17x9"),s("q1tI"),s("D1pA")),a=s("Lf35"),o=s("nKUr");function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?l(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=Object(a.a)(["reactBeautifulDnd"])(({title:e,order:t,active:s,onShowEditFieldset:n,onShowDeleteFieldset:r,onClick:a,getItemStyle:l,isDraggable:d,isDisabled:p,reactBeautifulDnd:u})=>Object(o.jsx)(u.Draggable,{draggableId:e,index:t,children:(u,h)=>Object(o.jsxs)("div",c(c({className:"item"+(s?" active":""),onClick:()=>a(t),ref:u.innerRef},u.draggableProps),{},{style:l(h.isDragging,u.draggableProps.style),children:[d&&Object(o.jsx)("i",c({"aria-hidden":"true",className:"grey bars icon drag handle"},u.dragHandleProps)),e,!p&&Object(o.jsx)("button",{className:"item ui noborder button",onClick:e=>{e.stopPropagation(),e.preventDefault(),n(t)},children:Object(o.jsx)(i.a,{name:"write square",size:"large",color:"blue"})}),!p&&Object(o.jsx)("button",{className:"item ui noborder button",onClick:e=>{e.stopPropagation(),e.preventDefault(),r(t)},children:Object(o.jsx)(i.a,{name:"close",size:"large",color:"red"})})]}))},e))},jTJh:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=(s("17x9"),s("lHu7")),d=s("52Oh"),p=s("zpb6"),u=s("Kvkj"),h=s("6EwQ"),b=s("nKUr");function j(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function m(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?j(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):j(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const g=Object(c.defineMessages)({results:{id:"Results preview",defaultMessage:"Results preview"},items:{id:"Contained items",defaultMessage:"Contained items"}}),f=l.a.memo(e=>{var t;const{data:s,onChangeBlock:n,block:r,selected:i,pathname:a}=e,o=Object(d.a)();l.a.useEffect(()=>{s.query||n(r,m(m({},s),{},{query:[],block:r}))},[]);const c=s.placeholder||(null!==s&&void 0!==s&&null!==(t=s.query)&&void 0!==t&&t.length?o.formatMessage(g.results):o.formatMessage(g.items));return Object(b.jsxs)(b.Fragment,{children:[Object(b.jsx)("p",{className:"items-preview",children:c}),Object(b.jsx)(u.pb,m(m({},e),{},{path:Object(p.r)(a),isEditMode:!0})),Object(b.jsx)(u.Pb,{selected:i,children:Object(b.jsx)(h.a,m(m({},e),{},{data:s,block:r,onChangeBlock:n}),r)})]})},(function(e,t){return!(t.selected!==e.selected||!a()(e.data,t.data))}));t.a=Object(p.cb)(f)},jYYP:function(e,t,s){e.exports=s.p+"static/media/block-video.832fa3ff.svg"},jc6J:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("vFsZ")),o=s("3mGJ"),l=s("+6Dn"),c=s("hHGt"),d=s("lHu7"),p=s("24R3"),u=s("zSVi"),h=s("Kvkj"),b=s("zpb6"),j=s("Vgzb"),m=s("n2F9"),g=s.n(m),f=s("1Jxj"),O=s.n(f),v=s("hxMo"),y=s.n(v),x=s("5ymK"),w=s.n(x),C=s("zdp0"),S=s.n(C),M=s("52Oh"),k=s("QetY"),N=s("nKUr");function P(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function L(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?P(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const D=Object(d.defineMessages)({small:{id:"Left",defaultMessage:"Left"},medium:{id:"Right",defaultMessage:"Right"},large:{id:"Center",defaultMessage:"Center"}});var E=({onChangeBlock:e,data:t,block:s,disabled:n})=>{function r(n){e(s,L(L({},t),{},{size:n}))}const i=Object(M.a)();return Object(N.jsxs)("div",{className:"field-image_size",children:[Object(N.jsx)(k.a.Group,{children:Object(N.jsx)(k.a,{icon:!0,basic:!0,"aria-label":i.formatMessage(D.small),onClick:()=>r("s"),active:"s"===t.size,disabled:n,children:Object(N.jsx)("div",{className:"image-sizes-text",children:"S"})})}),Object(N.jsx)(k.a.Group,{children:Object(N.jsx)(k.a,{icon:!0,basic:!0,"aria-label":i.formatMessage(D.medium),onClick:()=>r("m"),active:"m"===t.size,disabled:n,children:Object(N.jsx)("div",{className:"image-sizes-text",children:"M"})})}),Object(N.jsx)(k.a.Group,{children:Object(N.jsx)(k.a,{icon:!0,basic:!0,"aria-label":i.formatMessage(D.large),onClick:()=>r("l"),active:"l"===t.size||void 0===t.size,disabled:n,children:Object(N.jsx)("div",{className:"image-sizes-text",children:"L"})})})]})};function T(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function I(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?T(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):T(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const A=Object(d.defineMessages)({Image:{id:"Image",defaultMessage:"Image"},Origin:{id:"Origin",defaultMessage:"Origin"},AltText:{id:"Alt text",defaultMessage:"Alt text"},AltTextHint:{id:"Alt text hint",defaultMessage:"Leave empty if the image is purely decorative."},AltTextHintLinkText:{id:"Alt text hint link text",defaultMessage:"Describe the purpose of the image."},Align:{id:"Alignment",defaultMessage:"Alignment"},LinkTo:{id:"Link to",defaultMessage:"Link to"},openLinkInNewTab:{id:"Open in a new tab",defaultMessage:"Open in a new tab"},NoImageSelected:{id:"No image selected",defaultMessage:"No image selected"},externalURL:{id:"External URL",defaultMessage:"External URL"},size:{id:"Size",defaultMessage:"Size"}});t.a=Object(u.c)(({data:e,block:t,onChangeBlock:s,openObjectBrowser:n,required:r=!1,resetSubmitUrl:d,intl:u})=>{const[m,f]=Object(i.useState)(0);return Object(N.jsxs)(o.a.Group,{raised:!0,children:[Object(N.jsx)("header",{className:"header pulled",children:Object(N.jsx)("h2",{children:Object(N.jsx)(p.a,{id:"Image",defaultMessage:"Image"})})}),!e.url&&Object(N.jsx)(N.Fragment,{children:Object(N.jsxs)(o.a,{className:"sidebar-metadata-container",secondary:!0,children:[Object(N.jsx)(p.a,{id:"No image selected",defaultMessage:"No image selected"}),Object(N.jsx)(h.jb,{name:g.a,size:"100px",color:"#b8c6c8"})]})}),e.url&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsxs)(o.a,{className:"sidebar-metadata-container",secondary:!0,children:[e.url.split("/").slice(-1)[0],Object(b.L)(e.url)&&Object(N.jsx)("img",{src:Object(b.q)(e.url)+"/@@images/image/mini",alt:e.alt}),!Object(b.L)(e.url)&&Object(N.jsx)("img",{src:e.url,alt:e.alt,style:{width:"50%"}})]}),Object(N.jsxs)(o.a,{className:"form sidebar-image-data",children:[Object(b.L)(e.url)&&Object(N.jsx)(h.Tb,{id:"Origin",title:u.formatMessage(A.Origin),required:!1,value:e.url.split("/").slice(-1)[0],icon:e.url?O.a:S.a,iconAction:e.url?()=>{d(),s(t,I(I({},e),{},{url:""}))}:()=>n(),onChange:()=>{}}),!Object(b.L)(e.url)&&Object(N.jsx)(h.Tb,{id:"external",title:u.formatMessage(A.externalURL),required:!1,value:e.url,icon:O.a,iconAction:()=>{d(),s(t,I(I({},e),{},{url:""}))},onChange:()=>{}}),Object(N.jsx)(h.Tb,{id:"alt",title:u.formatMessage(A.AltText),description:Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)("a",{href:"https://www.w3.org/WAI/tutorials/images/decision-tree/",title:u.formatMessage(A.openLinkInNewTab),target:"_blank",rel:"noopener noreferrer",children:u.formatMessage(A.AltTextHintLinkText)})," ",u.formatMessage(A.AltTextHint)]}),required:!1,value:e.alt||"",icon:e.alt?O.a:null,iconAction:()=>s(t,I(I({},e),{},{alt:""})),onChange:(n,r)=>{s(t,I(I({},e),{},{alt:r}))}}),Object(N.jsx)(a.a.Field,{inline:!0,required:r,children:Object(N.jsx)(l.a,{children:Object(N.jsxs)(l.a.Row,{children:[Object(N.jsx)(l.a.Column,{width:"4",children:Object(N.jsx)("div",{className:"wrapper",children:Object(N.jsx)("label",{htmlFor:"field-align",children:Object(N.jsx)(p.a,{id:"Alignment",defaultMessage:"Alignment"})})})}),Object(N.jsx)(l.a.Column,{width:"8",className:"align-tools",children:Object(N.jsx)(j.a,{align:e.align,onChangeBlock:(e,t)=>{s(e,I(I({},t),{},{size:t.size}))},data:e,block:t})})]})})}),Object(N.jsx)(h.db,{id:"image_size",title:u.formatMessage(A.size),children:Object(N.jsx)(E,{onChangeBlock:s,data:e,block:t})})]}),Object(N.jsxs)(c.a,{fluid:!0,styled:!0,className:"form",children:[Object(N.jsxs)(c.a.Title,{active:0===m,index:0,onClick:function(e,t){const{index:s}=t;f(m===s?-1:s)},children:["Link Settings",0===m?Object(N.jsx)(h.jb,{name:y.a,size:"20px"}):Object(N.jsx)(h.jb,{name:w.a,size:"20px"})]}),Object(N.jsxs)(c.a.Content,{active:0===m,children:[Object(N.jsx)(h.Tb,{id:"link",title:u.formatMessage(A.LinkTo),required:!1,value:e.href,icon:e.href?O.a:S.a,iconAction:e.href?()=>{s(t,I(I({},e),{},{href:""}))}:()=>n({mode:"link"}),onChange:(n,r)=>{s(t,I(I({},e),{},{href:r}))}}),Object(N.jsx)(h.o,{id:"openLinkInNewTab",title:u.formatMessage(A.openLinkInNewTab),value:!!e.openLinkInNewTab&&e.openLinkInNewTab,onChange:(n,r)=>{s(t,I(I({},e),{},{openLinkInNewTab:r}))}})]})]})]})]})})},jgqj:function(e,t,s){"use strict";s("q1tI");var n=s("24R3"),r=s("55Ip"),i=s("yE/o"),a=s("Ef8B"),o=s("nKUr");t.a=Object(a.g)(404)(()=>Object(o.jsxs)(i.a,{className:"view-wrapper",children:[Object(o.jsx)("h1",{children:Object(o.jsx)(n.a,{id:"This page does not seem to exist\u2026",defaultMessage:"This page does not seem to exist\u2026"})}),Object(o.jsx)("p",{className:"description",children:Object(o.jsx)(n.a,{id:"We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for.",defaultMessage:"We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."})}),Object(o.jsx)("p",{children:Object(o.jsx)(n.a,{id:"If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}.",defaultMessage:"If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}.",values:{site_admin:Object(o.jsx)(r.a,{to:"/contact-form",children:Object(o.jsx)(n.a,{id:"Site Administration",defaultMessage:"Site Administration"})})}})}),Object(o.jsx)("p",{children:Object(o.jsx)(n.a,{id:"Thank you.",defaultMessage:"Thank you."})})]}))},kFbN:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("yE/o"),r=s("24R3"),i=s("lN98"),a=s.n(i),o=s("zpb6"),l=s("nKUr");t.a=({content:e})=>{var t;return Object(l.jsxs)(n.a,{className:"view-wrapper",children:[Object(l.jsxs)("h1",{className:"documentFirstHeading",children:[e.title,e.subtitle&&" - "+e.subtitle]}),e.description&&Object(l.jsx)("p",{className:"documentDescription",children:e.description}),(null===e||void 0===e||null===(t=e.image)||void 0===t?void 0:t.download)&&Object(l.jsxs)("a",{href:Object(o.q)(e.image.download),children:[Object(l.jsx)("img",{alt:e.title,src:Object(o.q)(e.image.scales.preview.download)}),Object(l.jsxs)("figcaption",{children:[Object(l.jsx)(r.a,{id:"Size: {size}",defaultMessage:"Size: {size}",values:{size:a()(e.image.size)}}),"\xa0 \u2014 \xa0",Object(l.jsx)(r.a,{id:"Click to download full sized image",defaultMessage:"Click to download full sized image"})]})]})]})}},kTm1:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("ANjH")),o=s("/MKj"),l=s("zpb6"),c=s("lHu7"),d=s("zSVi"),p=s("yE/o"),u=s("55Ip"),h=s("8ZS8"),b=s("9At1"),j=s("nKUr");const m=Object(c.defineMessages)({Sitemap:{id:"Sitemap",defaultMessage:"Sitemap"}});class g extends i.Component{constructor(...e){super(...e),r()(this,"renderItems",e=>Object(j.jsx)("ul",{children:e.map(e=>{var t;return Object(j.jsxs)("li",{className:(null===(t=e.items)||void 0===t?void 0:t.length)>0?"with-children":"",children:[Object(j.jsx)(u.a,{to:e.url,children:e.title}),e.items&&this.renderItems(e.items)]},e.url)})}))}componentDidMount(){const{settings:e}=h.a;e.isMultilingual?this.props.getNavigation(""+this.props.lang,4):this.props.getNavigation("",4)}render(){const{items:e}=this.props;return Object(j.jsxs)("div",{id:"page-sitemap",children:[Object(j.jsx)(l.d,{title:this.props.intl.formatMessage(m.Sitemap)}),Object(j.jsxs)(p.a,{className:"view-wrapper",children:[Object(j.jsxs)("h1",{children:[this.props.intl.formatMessage(m.Sitemap)," "]}),e&&this.renderItems(e)]})]})}}Object(a.compose)(d.c,Object(o.connect)(e=>({items:e.navigation.items,lang:e.intl.locale}),{getNavigation:b.y}))(g);t.a=Object(a.compose)(d.c,Object(o.connect)(e=>({items:e.navigation.items,lang:e.intl.locale}),{getNavigation:b.y}),Object(l.k)([{key:"navigation",promise:({location:e,store:{dispatch:t,getState:s}})=>{const{settings:n}=h.a;s().intl.locale;return n.isMultilingual,!1}}]))(g)},kbKZ:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M19.0596,7 C18.7926,7 18.5416,7.104 18.3536,7.292 L6.9346,18.691 C6.7446,18.881 6.6406,19.134 6.6416,19.403 C6.6426,19.672 6.7496,19.925 6.9416,20.113 L15.6346,28.626 C16.0126,28.996 16.6616,28.995 17.0356,28.624 L28.7016,17.143 C28.8916,16.956 28.9996,16.696 28.9996,16.43 L28.9996,8 C28.9996,7.448 28.5516,7 27.9996,7 L19.0596,7 Z M16.3336,30.911 C15.5446,30.911 14.7996,30.607 14.2356,30.056 L5.5426,21.542 C4.9656,20.977 4.6456,20.22 4.6416,19.412 C4.6386,18.604 4.9506,17.846 5.5216,17.275 L16.9396,5.877 C17.5056,5.312 18.2586,5 19.0596,5 L27.9996,5 C29.6546,5 30.9996,6.346 30.9996,8 L30.9996,16.43 C30.9996,17.229 30.6736,18.008 30.1046,18.568 L18.4386,30.05 C17.8736,30.605 17.1266,30.911 16.3336,30.911 L16.3336,30.911 Z"/><path d="M24,11 C23.449,11 23,11.448 23,12 C23,12.552 23.449,13 24,13 C24.551,13 25,12.552 25,12 C25,11.448 24.551,11 24,11 M24,15 C22.346,15 21,13.654 21,12 C21,10.346 22.346,9 24,9 C25.654,9 27,10.346 27,12 C27,13.654 25.654,15 24,15"/></g>'}},kfnI:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M18,5 C10.832,5 5,10.832 5,18 C5,25.168 10.832,31 18,31 C25.168,31 31,25.168 31,18 C31,10.832 25.168,5 18,5 M18,33 C9.729,33 3,26.271 3,18 C3,9.729 9.729,3 18,3 C26.271,3 33,9.729 33,18 C33,26.271 26.271,33 18,33"/><path d="M16 23.414L11.293 18.707 12.707 17.293 16 20.586 23.293 13.293 24.707 14.707z"/></g>'}},kiQV:function(e){e.exports=JSON.parse('{"a":"15.1.1"}')},"ks9+":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M19,9 L10.527,9 L13.719,5.695 L12.281,4.305 L6.781,10 L12.281,15.695 L13.719,14.305 L10.527,11 L19,11 C23.411,11 27,14.589 27,19 C27,23.411 23.411,27 19,27 L18,27 L18,29 L19,29 C24.514,29 29,24.514 29,19 C29,13.486 24.514,9 19,9"/>'}},kyj3:function(e,t,s){"use strict";var n=s("lHu7");const r=Object(n.defineMessages)({more:{id:"Link more",defaultMessage:"Link more"},LinkTitle:{id:"Link title",defaultMessage:"Link Title"},LinkTo:{id:"Link to",defaultMessage:"Link to"}});t.a=({intl:e})=>({title:"Block settings",required:[],fieldsets:[{id:"default",title:e.formatMessage(r.more),fields:["linkTitle","linkHref"]}],properties:{linkTitle:{title:e.formatMessage(r.LinkTitle)},linkHref:{title:e.formatMessage(r.LinkTo),widget:"object_browser",mode:"link",selectedItemAttrs:["Title","Description"],allowExternals:!0}}})},l0jT:function(e,t,s){"use strict";var n=s("k4Da"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=(s("17x9"),s("WYlG")),d=s("lHu7"),p=s("zSVi"),u=s("Bi3C"),h=s.n(u),b=s("zpb6"),j=s("nKUr");const m=Object(d.defineMessages)({text:{id:"Table of Contents",defaultMessage:"Table of Contents"}});t.a=l.a.memo(Object(p.c)(({properties:e,data:t,intl:s})=>{const n=Object(b.t)(e),i=Object(b.u)(e),o=(null===t||void 0===t?void 0:t.placeholder)||s.formatMessage(m.text);return Object(j.jsxs)("div",{className:"block table-of-contents",children:[Object(j.jsx)("h2",{children:o}),Object(j.jsx)(c.a,{bulleted:!0,children:a()(r()(a()(e[i].items,t=>e[n][t]),e=>{var t;return"text"===e["@type"]&&0===(null===(t=e.text)||void 0===t?void 0:t.blocks[0].type.indexOf("header-"))}),e=>Object(j.jsx)(c.a.Item,{className:e.text.blocks[0].type,children:Object(j.jsx)(h.a,{href:"#"+e.text.blocks[0].key,children:e.text.blocks[0].text})},e.text.blocks[0].key))})]})}))},l5nw:function(e,t,s){"use strict";var n=s("3WF5"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("/MKj")),c=s("ANjH"),d=s("lHu7"),p=s("zSVi"),u=s("9At1"),h=s("Kvkj"),b=s("nKUr");const j=Object(d.defineMessages)({properties:{id:"Properties",defaultMessage:"Properties"},default:{id:"Default",defaultMessage:"Default"},effectiveTitle:{id:"Publishing Date",defaultMessage:"Publishing Date"},effectiveDescription:{id:"If this date is in the future, the content will not show up in listings and searches until this date.",defaultMessage:"If this date is in the future, the content will not show up in listings and searches until this date."},expiresTitle:{id:"Expiration Date",defaultMessage:"Expiration Date"},expiresDescription:{id:"When this date is reached, the content will nolonger be visible in listings and searches.",defaultMessage:"When this date is reached, the content will nolonger be visible in listings and searches."},rightsTitle:{id:"Rights",defaultMessage:"Rights"},rightsDescription:{id:"Copyright statement or other rights information on this item.",defaultMessage:"Copyright statement or other rights information on this item."},creatorsTitle:{id:"Creators",defaultMessage:"Creators"},creatorsDescription:{id:"Persons responsible for creating the content of this item. Please enter a list of user names, one per line. The principal creator should come first.",defaultMessage:"Persons responsible for creating the content of this item. Please enter a list of user names, one per line. The principal creator should come first."},excludeFromNavTitle:{id:"Exclude from navigation",defaultMessage:"Exclude from navigation"},excludeFromNavDescription:{id:"If selected, this item will not appear in the navigation tree",defaultMessage:"If selected, this item will not appear in the navigation tree"}});class m extends o.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this)}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.props.onOk()}onSubmit(e){a()(e)?this.props.onOk():this.props.updateContent(this.props.items,r()(this.props.items,()=>e))}render(){return this.props.open&&Object(b.jsx)(h.vb,{open:this.props.open,onSubmit:this.onSubmit,onCancel:this.props.onCancel,title:this.props.intl.formatMessage(j.properties),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(j.default),fields:["effective","expires","rights","creators","exclude_from_nav"]}],properties:{effective:{description:this.props.intl.formatMessage(j.effectiveDescription),title:this.props.intl.formatMessage(j.effectiveTitle),type:"string",widget:"datetime"},expires:{description:this.props.intl.formatMessage(j.expiresDescription),title:this.props.intl.formatMessage(j.expiresTitle),type:"string",widget:"datetime"},rights:{description:this.props.intl.formatMessage(j.rightsDescription),title:this.props.intl.formatMessage(j.rightsTitle),type:"string",widget:"textarea"},creators:{description:this.props.intl.formatMessage(j.creatorsDescription),title:this.props.intl.formatMessage(j.creatorsTitle),type:"array"},exclude_from_nav:{description:this.props.intl.formatMessage(j.excludeFromNavDescription),title:this.props.intl.formatMessage(j.excludeFromNavTitle),type:"array",choices:[[!0,"Yes"],[!1,"No"]]}},required:[]}})}}t.a=Object(c.compose)(p.c,Object(l.connect)(e=>({request:e.content.update}),{updateContent:u.vb}))(m)},lV3b:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M19 9L17 9 17 17 9 17 9 19 17 19 17 27 19 27 19 19 27 19 27 17 19 17z"/><path d="M18,31 C10.832,31 5,25.168 5,18 C5,10.832 10.832,5 18,5 C25.168,5 31,10.832 31,18 C31,25.168 25.168,31 18,31 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/></g>'}},m1ZU:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("hzCD"),a=s.n(i),o=s("3WF5"),l=s.n(o),c=s("J2m7"),d=s.n(c),p=s("9At1"),u=s("Kvkj"),h=s("55Ip"),b=s("zpb6"),j=s("1Jxj"),m=s.n(j),g=s("nor2"),f=s.n(g),O=s("Z5Td"),v=s.n(O),y=s("DP9c"),x=s.n(y),w=(s("17x9"),s("q1tI")),C=s("24R3"),S=s("zSVi"),M=s("It+4"),k=s("/MKj"),N=s("GGqY"),P=s("ANjH"),L=s("yE/o"),D=s("X47e"),E=s("3mGJ"),T=s("vFsZ"),I=s("umxb"),A=s("ikXu"),R=s("QetY"),_=s("nKUr");function q(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function F(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?q(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):q(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class B extends w.Component{constructor(e){super(e),r()(this,"fetchData",async()=>{await this.props.listRoles(),await this.props.listGroups(),this.setState({groupEntries:this.props.groups})}),r()(this,"updateGroupRoleSubmit",e=>{e.stopPropagation(),this.state.groupEntries.forEach(e=>{this.props.updateGroup(e.id,e)}),this.props.authenticatedRole(this.state.authenticatedRole),N.toast.success(Object(_.jsx)(u.Ub,{success:!0,title:this.props.intl.formatMessage(b.N.success),content:this.props.intl.formatMessage(b.N.updateGroups)}))}),r()(this,"onChangePage",(e,{value:t})=>{this.setState({currentPage:t})}),this.onChangeSearch=this.onChangeSearch.bind(this),this.onSearchGroups=this.onSearchGroups.bind(this),this.deleteGroup=this.deleteGroup.bind(this),this.onDeleteOk=this.onDeleteOk.bind(this),this.onDeleteCancel=this.onDeleteCancel.bind(this),this.onAddGroupSubmit=this.onAddGroupSubmit.bind(this),this.onAddGroupError=this.onAddGroupError.bind(this),this.onAddGroupSuccess=this.onAddGroupSuccess.bind(this),this.updateGroupRole=this.updateGroupRole.bind(this),this.state={search:"",addGroupError:"",showDelete:!1,groupToDelete:void 0,showAddGroup:!1,groupEntries:[],isClient:!1,authenticatedRole:e.inheritedRole||[],currentPage:0,pageSize:10}}componentDidMount(){this.setState({isClient:!0}),this.fetchData()}UNSAFE_componentWillReceiveProps(e){(this.props.deleteGroupRequest.loading&&e.deleteGroupRequest.loaded||this.props.createGroupRequest.loading&&e.createGroupRequest.loaded)&&this.props.listGroups(this.state.search),this.props.createGroupRequest.loading&&e.createGroupRequest.loaded&&this.onAddGroupSuccess(),this.props.createGroupRequest.loading&&e.createGroupRequest.error&&this.onAddGroupError(e.createGroupRequest.error),this.props.loadRolesRequest.loading&&e.loadRolesRequest.error&&this.setState({error:e.loadRolesRequest.error})}getGroupFromProps(e){return d()(this.props.groups,["@id",e])}onSearchGroups(e){e.preventDefault(),this.props.listGroups(this.state.search)}onChangeSearch(e){this.setState({search:e.target.value})}deleteGroup(e,{value:t}){t&&this.setState({showDelete:!0,groupToDelete:this.getGroupFromProps(t)})}onDeleteOk(){this.state.groupToDelete&&(this.props.deleteGroup(this.state.groupToDelete.id),this.setState({showDelete:!1,groupToDelete:void 0}))}onDeleteCancel(){this.setState({showDelete:!1,itemsToDelete:[]})}updateGroupRole(e,t){this.setState(s=>({groupEntries:l()(this.state.groupEntries,s=>F(F({},s),{},{roles:s.id!==e||s.roles.includes(t)?s.id!==e?s.roles:a()(s.roles,t):[...s.roles,t]})),authenticatedRole:"AuthenticatedUsers"!==e||s.authenticatedRole.includes(t)?"AuthenticatedUsers"!==e?s.authenticatedRole:a()(s.authenticatedRole,t):[...s.authenticatedRole,t]}))}onAddGroupSubmit(e,t){this.props.createGroup(e),this.setState({addGroupSetFormDataCallback:t})}onAddGroupError(e){this.setState({addGroupError:e.response.body.message})}componentDidUpdate(e,t){this.props.groups!==e.groups&&this.setState({groupEntries:this.props.groups})}onAddGroupSuccess(){this.state.addGroupSetFormDataCallback({}),this.setState({showAddGroup:!1,addGroupError:void 0,addGroupSetFormDataCallback:void 0}),N.toast.success(Object(_.jsx)(u.Ub,{success:!0,title:this.props.intl.formatMessage(b.N.success),content:this.props.intl.formatMessage(b.N.groupCreated)}))}render(){var e;if(this.state.error)return Object(_.jsx)(u.X,{error:this.state.error});let t=this.state.groupToDelete?this.state.groupToDelete.id:"";return Object(_.jsxs)(L.a,{className:"users-control-panel",children:[Object(_.jsx)(b.d,{title:this.props.intl.formatMessage(b.N.groups)}),Object(_.jsxs)("div",{className:"container",children:[Object(_.jsx)(D.a,{open:this.state.showDelete,header:this.props.intl.formatMessage(b.N.deleteGroupConfirmTitle),content:Object(_.jsx)("div",{className:"content",children:Object(_.jsx)("ul",{className:"content",children:Object(_.jsx)(C.a,{id:"Do you really want to delete the group {groupname}?",defaultMessage:"Do you really want to delete the group {groupname}?",values:{groupname:Object(_.jsx)("b",{children:t})}})})}),onCancel:this.onDeleteCancel,onConfirm:this.onDeleteOk,size:null}),this.state.showAddGroup?Object(_.jsx)(u.vb,{open:this.state.showAddGroup,className:"modal",onSubmit:this.onAddGroupSubmit,submitError:this.state.addGroupError,onCancel:()=>this.setState({showAddGroup:!1}),title:this.props.intl.formatMessage(b.N.addGroupsFormTitle),loading:this.props.createGroupRequest.loading,schema:{fieldsets:[{id:"default",title:"FIXME: Group Data",fields:["title","description","groupname","email","roles"]}],properties:{title:{title:this.props.intl.formatMessage(b.N.addGroupsFormTitleTitle),type:"string",description:""},description:{title:this.props.intl.formatMessage(b.N.addGroupsFormDescriptionTitle),type:"string",description:""},groupname:{title:this.props.intl.formatMessage(b.N.addGroupsFormGroupNameTitle),type:"string",description:"A unique identifier for the group. Can not be changed after creation."},email:{title:this.props.intl.formatMessage(b.N.addGroupsFormEmailTitle),type:"string",description:"",widget:"email"},roles:{title:this.props.intl.formatMessage(b.N.addGroupsFormRolesTitle),type:"array",choices:this.props.roles.map(e=>[e.id,e.id]),noValueOption:!1,description:""}},required:["groupname"]}}):null]}),Object(_.jsxs)(E.a.Group,{raised:!0,children:[Object(_.jsx)(E.a,{className:"primary",children:Object(_.jsx)(C.a,{id:"Groups",defaultMessage:"Groups"})}),Object(_.jsx)(E.a,{secondary:!0,children:Object(_.jsx)(C.a,{id:"Groups are logical collections of users, such as departments and business units. Groups are not directly related to permissions on a global level, you normally use Roles for that - and let certain Groups have a particular role. The symbol{plone_svg}indicates a role inherited from membership in another group.",defaultMessage:"Groups are logical collections of users, such as departments and business units. Groups are not directly related to permissions on a global level, you normally use Roles for that - and let certain Groups have a particular role. The symbol{plone_svg}indicates a role inherited from membership in another group.",values:{plone_svg:Object(_.jsx)(u.jb,{name:x.a,size:"20px",color:"#007EB1",title:"plone-svg"})}})}),Object(_.jsx)(E.a,{children:Object(_.jsx)(T.a,{onSubmit:this.onSearchGroups,children:Object(_.jsx)(T.a.Field,{children:Object(_.jsx)(I.a,{name:"SearchableText",action:{icon:"search"},placeholder:this.props.intl.formatMessage(b.N.searchGroups),onChange:this.onChangeSearch,id:"group-search-input"})})})}),Object(_.jsxs)(T.a,{children:[Object(_.jsx)("div",{className:"table",children:Object(_.jsxs)(A.a,{padded:!0,striped:!0,attached:!0,unstackable:!0,children:[Object(_.jsx)(A.a.Header,{children:Object(_.jsxs)(A.a.Row,{children:[Object(_.jsx)(A.a.HeaderCell,{children:Object(_.jsx)(C.a,{id:"Groupname",defaultMessage:"Groupname"})}),this.props.roles.map(e=>Object(_.jsx)(A.a.HeaderCell,{children:e.id},e.id)),Object(_.jsx)(A.a.HeaderCell,{children:Object(_.jsx)(C.a,{id:"Actions",defaultMessage:"Actions"})})]})}),Object(_.jsx)(A.a.Body,{"data-group":"groups",children:this.state.groupEntries.slice(10*this.state.currentPage,this.state.pageSize*(this.state.currentPage+1)).map(e=>Object(_.jsx)(u.Fb,{onDelete:this.deleteGroup,roles:this.props.roles,group:e,updateGroups:this.updateGroupRole,inheritedRole:this.state.authenticatedRole},e.id))})]})}),Object(_.jsx)("div",{className:"contents-pagination",children:Object(_.jsx)(u.Bb,{current:this.state.currentPage,total:Math.ceil((null===(e=this.state.groupEntries)||void 0===e?void 0:e.length)/this.state.pageSize),onChangePage:this.onChangePage})})]})]}),this.state.isClient&&Object(_.jsx)(M.a,{node:document.getElementById("toolbar"),children:Object(_.jsx)(u.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(_.jsxs)(_.Fragment,{children:[Object(_.jsx)(R.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(b.N.save),onClick:this.updateGroupRoleSubmit,loading:this.props.createGroupRequest.loading,children:Object(_.jsx)(u.jb,{name:v.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(b.N.save)})}),Object(_.jsx)(h.a,{to:"/controlpanel",className:"cancel",children:Object(_.jsx)(u.jb,{name:m.a,className:"circled","aria-label":this.props.intl.formatMessage(b.N.cancel),size:"30px",title:this.props.intl.formatMessage(b.N.cancel)})}),Object(_.jsx)(R.a,{id:"toolbar-add","aria-label":this.props.intl.formatMessage(b.N.addGroupsButtonTitle),onClick:()=>{this.setState({showAddGroup:!0})},loading:this.props.createGroupRequest.loading,children:Object(_.jsx)(u.jb,{name:f.a,size:"45px",color:"#826A6A",title:this.props.intl.formatMessage(b.N.addGroupsButtonTitle)})})]})})})]})}}t.a=Object(P.compose)(S.c,Object(k.connect)((e,t)=>({roles:e.roles.roles,groups:e.groups.groups,description:e.description,pathname:t.location.pathname,deleteGroupRequest:e.groups.delete,createGroupRequest:e.groups.create,loadRolesRequest:e.roles,inheritedRole:e.authRole.authenticatedRole}),e=>Object(P.bindActionCreators)({listRoles:p.S,listGroups:p.Q,deleteGroup:p.o,createGroup:p.h,updateGroup:p.xb,authenticatedRole:p.c},e)))(B)},m72t:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M27,19 C27,24.505 21.647,28.58 19,30.259 L19,7 L27,7 L27,19 Z M17,30.262 C14.354,28.587 9,24.519 9,19 L9,7 L17,7 L17,30.262 Z M7,5 L7,19 C7,27.514 17.122,32.679 17.552,32.895 L18,33.118 L18.448,32.895 C18.878,32.679 29,27.514 29,19 L29,5 L7,5 Z"/>'}},mEAm:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("ijCd"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("17x9"),d=s.n(c),p=s("8ZS8"),u=s("Lf35"),h=s("MKeS"),b=s("nKUr"),j=s.n(b);function m(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function g(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?m(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const f=Object(h.a)({resolved:{},chunkName:()=>"draft-js-plugins-editor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"yeYm",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yeYm"}});class O extends o.Component{constructor(e){super(e);const{EditorState:t,convertFromRaw:s}=e.draftJs,n=e.draftJsInlineToolbarPlugin.default;{let r;this.draftConfig=p.a.settings.richtextEditorSettings(e),r=t.createWithContent(s(e.value));const i=n({structure:this.draftConfig.richTextEditorInlineToolbarButtons});this.state={editorState:r,inlineToolbarPlugin:i}}this.onChange=this.onChange.bind(this)}componentDidMount(){if(this.node){const e=this.node.editor._onFocus;this.node.editor._onFocus=t=>{e(t),this.props.onSelectCell(this.props.row,this.props.cell)}}}UNSAFE_componentWillReceiveProps(e){e.isTableBlockSelected!==this.props.isTableBlockSelected&&0===this.props.cell&&0===this.props.row&&this.node.focus()}onChange(e){this.setState({editorState:e},()=>{this.props.onChange(this.props.row,this.props.cell,e)})}render(){const{InlineToolbar:e}=this.state.inlineToolbarPlugin,t=this.props.draftJsLibIsSoftNewlineEvent.default,{RichUtils:s}=this.props.draftJs;return Object(b.jsxs)("div",{children:[Object(b.jsx)(f,{readOnly:!this.props.editable,onChange:this.onChange,editorState:this.state.editorState,plugins:[this.state.inlineToolbarPlugin,...this.draftConfig.richTextEditorPlugins],blockRenderMap:this.draftConfig.extendedBlockRenderMap,blockStyleFn:this.draftConfig.blockStyleFn,customStyleMap:this.draftConfig.customStyleMap,handleReturn:e=>{if(t(e))return this.onChange(s.insertSoftNewline(this.state.editorState)),"handled";if(!this.props.detached&&!this.props.disableNewBlocks){const e=this.state.editorState.getSelection().getAnchorKey(),t=this.state.editorState.getCurrentContent().getBlockForKey(e).getType();return a()(this.draftConfig.listBlockTypes,t)?"un-handled":(this.props.onSelectBlock(this.props.onAddBlock(this.draftConfig.defaultBlockType,this.props.index+1)),"handled")}return{}},ref:e=>{this.node=e}}),Object(b.jsx)(e,{})]})}}r()(O,"defaultProps",{detached:!1,editable:!0});const v=Object(u.a)(["draftJs","draftJsBlockBreakoutPlugin","draftJsCreateBlockStyleButton","draftJsCreateInlineStyleButton","draftJsFilters","draftJsImportHtml","draftJsInlineToolbarPlugin","draftJsLibIsSoftNewlineEvent","immutableLib"])(O),y=e=>{const[t,s]=l.a.useState(!1);return l.a.useEffect(()=>{f.load().then(()=>s(!0))},[]),t?Object(b.jsx)(v,g({},e)):null};t.a=y},mLwk:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("E+oP"),l=s.n(o),c=s("bt/X"),d=s.n(c),p=s("9UKM"),u=s.n(p),h=s("wEy/"),b=s.n(h),j=s("k4Da"),m=s.n(j),g=s("q1tI"),f=s.n(g),O=(s("17x9"),s("ANjH")),v=s("/MKj"),y=s("vFsZ"),x=s("umxb"),w=s("+6Dn"),C=s("QetY"),S=s("MqQV"),M=s("lHu7"),k=s("zSVi"),N=s("9At1"),P=s("Kvkj"),L=s("NAv5"),D=s("Lf35"),E=s("TSYQ"),T=s.n(E),I=s("cuOu"),A=s("1Jxj"),R=s.n(A),_=s("nKUr");function q(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function F(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?q(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):q(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const B=Object(M.defineMessages)({Criteria:{id:"Criteria",defaultMessage:"Criteria"},AddCriteria:{id:"Add criteria",defaultMessage:"Add criteria"},select:{id:"querystring-widget-select",defaultMessage:"Select\u2026"}});class z extends g.Component{constructor(e){super(e),this.state={visual:!1},this.onChangeValue=this.onChangeValue.bind(this),this.getWidget=this.getWidget.bind(this)}componentDidMount(){this.props.focus&&this.node.focus(),this.props.getQuerystring()}getWidget(e,t,s){const n={fluid:!0,value:e.v,onChange:e=>this.onChangeValue(t,e.target.value)},r=this.props.indexes[e.i].values;switch(this.props.indexes[e.i].operators[e.o].widget){case null:return Object(_.jsx)("span",{});case"DateWidget":return Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(x.a,F(F({type:"date"},n),{},{value:Object(L.format)(Object(L.parse)(e.v),"YYYY-MM-DD")}))});case"DateRangeWidget":return Object(_.jsxs)(f.a.Fragment,{children:[Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(x.a,F(F({type:"date"},n),{},{value:Object(L.format)(Object(L.parse)(e.v[0]),"YYYY-MM-DD"),onChange:s=>this.onChangeValue(t,[s.target.value,e.v[1]])}))}),Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(x.a,F(F({type:"date"},n),{},{value:Object(L.format)(Object(L.parse)(e.v[1]),"YYYY-MM-DD"),onChange:s=>this.onChangeValue(t,[e.v[0],s.target.value])}))})]});case"RelativeDateWidget":return Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(x.a,F({step:1,type:"number"},n))});case"MultipleSelectionWidget":return Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto",maxWidth:"92%"},children:Object(_.jsx)(s,F(F({},n),{},{className:"react-select-container",classNamePrefix:"react-select",options:r?a()(u()(r),e=>({label:e[1].title,value:e[0]})):[],styles:I.g,placeholder:this.props.intl.formatMessage(B.select),theme:I.h,components:{DropdownIndicator:I.b,Option:I.d},onChange:e=>{this.onChangeValue(t,a()(e,e=>e.value))},isMulti:!0,value:a()(e.v,e=>{var t;return{label:(null===r||void 0===r||null===(t=r[e])||void 0===t?void 0:t.title)||e,value:e}})}))});case"ReferenceWidget":default:return Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(x.a,F({},n))})}}onChangeValue(e,t){this.props.onChange(this.props.id,a()(this.props.value,(s,n)=>e===n?F(F({},s),{},{v:t}):s))}render(){const{id:e,required:t,description:s,error:n,value:r,onChange:i,onEdit:o,indexes:c,fieldSet:p,reactSelect:h,intl:j}=this.props,g=h.default;return Object(_.jsx)(y.a.Field,{inline:!0,required:t,error:n.length>0,className:T()("query-widget",s?"help":""),id:`${p||"field"}-${e}`,children:Object(_.jsxs)(w.a,{children:[Object(_.jsx)(w.a.Row,{stretched:!0,children:Object(_.jsx)(w.a.Column,{width:"12",children:Object(_.jsx)("div",{className:"simple-field-name",children:j.formatMessage(B.Criteria)})})}),Object(_.jsx)(w.a.Row,{stretched:!0,children:Object(_.jsxs)(w.a.Column,{width:"12",children:[c&&!l()(c)&&a()(r,(t,s)=>{var n;return Object(_.jsxs)(y.a.Group,{children:[Object(_.jsxs)("div",{className:"main-fields-wrapper",children:[Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto",marginRight:"10px"},children:Object(_.jsx)(g,{id:"field-"+e,name:e,disabled:null!==o,className:"react-select-container",classNamePrefix:"react-select",options:a()(u()(d()(u()(c),e=>e[1].group)),e=>({label:e[0],options:a()(e[1],e=>({label:e[1].title,value:e[0]}))})),styles:I.g,theme:I.h,placeholder:j.formatMessage(B.select),components:{DropdownIndicator:I.b,Option:I.d},value:{value:t.i,label:null===(n=c[t.i])||void 0===n?void 0:n.title},onChange:t=>i(e,a()(r,(e,n)=>n===s?{i:t.value,o:c[t.value].operations[0],v:""}:e))})}),Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(g,{id:"field-"+e,name:e,disabled:null!==o,className:"react-select-container",classNamePrefix:"react-select",options:a()(c[t.i].operations,e=>({value:e,label:c[t.i].operators[e].title})),styles:I.g,theme:I.h,placeholder:j.formatMessage(B.select),components:{DropdownIndicator:I.b,Option:I.d},value:{value:t.o,label:c[t.i].operators[t.o].title},onChange:n=>i(e,a()(r,(e,r)=>r===s?{i:t.i,o:n.value,v:""}:e))})}),!this.props.indexes[t.i].operators[t.o].widget&&Object(_.jsx)(C.a,{onClick:t=>{i(e,b()(r,(e,t)=>t!==s)),t.preventDefault()},style:{background:"none",paddingRight:0,paddingLeft:0,margin:0},children:Object(_.jsx)(P.jb,{name:R.a,size:"24px",className:"close"})})]}),this.getWidget(t,s,g),this.props.indexes[t.i].operators[t.o].widget&&Object(_.jsx)(C.a,{onClick:t=>{i(e,b()(r,(e,t)=>t!==s)),t.preventDefault()},style:{background:"none",paddingRight:0,paddingLeft:0,margin:0},children:Object(_.jsx)(P.jb,{name:R.a,size:"24px",className:"close"})})]},s)}),Object(_.jsx)(y.a.Group,{children:Object(_.jsx)(y.a.Field,{style:{flex:"1 0 auto"},children:Object(_.jsx)(g,{id:"field-"+e,name:e,disabled:null!==o,className:"react-select-container",classNamePrefix:"react-select",placeholder:j.formatMessage(B.AddCriteria),options:a()(u()(d()(u()(c),e=>e[1].group)),e=>({label:e[0],options:a()(m()(e[1],e=>e[1].enabled),e=>({label:e[1].title,value:e[0]}))})),styles:I.g,theme:I.h,components:{DropdownIndicator:I.b,Option:I.d},value:null,onChange:t=>{i(e,[...r||[],{i:t.value,o:c[t.value].operations[0],v:""}])}})})}),a()(n,e=>Object(_.jsx)(S.a,{basic:!0,color:"red",pointing:!0,children:e},e))]})}),s&&Object(_.jsx)(w.a.Row,{stretched:!0,children:Object(_.jsx)(w.a.Column,{stretched:!0,width:"12",children:Object(_.jsx)("p",{className:"help",children:s})})})]})})}}r()(z,"defaultProps",{description:null,required:!1,error:[],value:null,onChange:null,onEdit:null,onDelete:null,focus:!1}),t.a=Object(O.compose)(k.c,Object(D.a)(["reactSelect"]),Object(v.connect)(e=>({indexes:e.querystring.indexes}),{getQuerystring:N.A}))(z)},maDu:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("Lf35"),d=s("EcEN"),p=s("nKUr");function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function h(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const b=(e,t,s)=>{const n=[...e.parentNode.children];n.splice(t,1),n.splice(-1,1);const r=e.parentNode.getBoundingClientRect(),i=n[s-1],a=n[s];let o,l;if(i){const e=i.getBoundingClientRect();o=e.top+e.height-r.top}else o=0;if(a){l=a.getBoundingClientRect().top-r.top}else l=r.bottom+e.getBoundingClientRect().height-r.top;return{clientY:o,clientHeight:l-o,clientX:parseFloat(window.getComputedStyle(e.parentNode).paddingLeft),clientWidth:e.clientWidth}};t.a=Object(c.a)(["reactBeautifulDnd"])(e=>{const{childList:t,children:s,onMoveItem:n,as:r="div",style:i,forwardedAriaLabelledBy:c,reactBeautifulDnd:u}=e,{DragDropContext:j,Draggable:m,Droppable:g}=u,[f,O]=l.a.useState({}),[v]=l.a.useState(Object(d.v4)()),y=Object(o.useRef)(null),x=l.a.useCallback(e=>{clearTimeout(y.current);const t=`[data-rbd-draggable-id='${e.draggableId}']`,s=document.querySelector(t);if(!s)return;const n=e.source.index;O(b(s,n,n))},[]),w=l.a.useCallback(e=>{clearTimeout(y.current),n(e),O({})},[n]),C=l.a.useCallback(e=>{if(clearTimeout(y.current),O({}),!e.destination)return;const t=`[data-rbd-draggable-id='${e.draggableId}']`,s=document.querySelector(t);if(!s)return;const n=e.source.index,r=e.destination.index;y.current=setTimeout(()=>O(b(s,n,r)),250)},[]),S=r;return Object(p.jsx)(j,{onDragStart:x,onDragUpdate:C,onDragEnd:w,children:Object(p.jsx)(g,{droppableId:v,children:(e,n)=>Object(p.jsxs)(S,h(h({ref:e.innerRef},e.droppableProps),{},{style:h(h({},i),{},{position:"relative"}),"aria-labelledby":c,children:[t.filter(([e,t])=>e&&t).map(([e,t],n)=>Object(p.jsx)(m,{draggableId:e.toString(),index:n,style:{userSelect:"none"},children:r=>s({child:t,childId:e,index:n,draginfo:r})},e)),e.placeholder,!a()(f)&&n.isDraggingOver&&Object(p.jsx)("div",{style:{position:"absolute",top:f.clientY,left:f.clientX,height:f.clientHeight,background:"#eee",width:f.clientWidth,borderRadius:"3px"}})]}))})})})},mqPa:function(e,t,s){e.exports=s.p+"static/media/Logo.16e25cdf.svg"},mqnf:function(e,t,s){"use strict";var n=s("USjQ"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("NIJN"),l=s.n(o),c=s("q1tI"),d=(s("17x9"),s("zpb6")),p=s("55Ip"),u=s("/MKj"),h=s("ANjH"),b=s("yE/o"),j=s("3mGJ"),m=s("ikXu"),g=s("pLir"),f=s("D1pA"),O=s("It+4"),v=s("lHu7"),y=s("24R3"),x=s("zSVi"),w=s("Kvkj"),C=s("9At1"),S=s("qaC+"),M=s.n(S),k=s("nKUr");const N=Object(v.defineMessages)({back:{id:"Back",defaultMessage:"Back"},history:{id:"History",defaultMessage:"History"}});class P extends c.Component{constructor(e){super(e),this.onRevert=this.onRevert.bind(this),this.state={isClient:!1}}componentDidMount(){this.props.getHistory(Object(d.r)(this.props.pathname)),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){this.props.revertRequest.loading&&e.revertRequest.loaded&&this.props.getHistory(Object(d.r)(this.props.pathname))}onRevert(e,{value:t}){this.props.revertHistory(Object(d.r)(this.props.pathname),t)}render(){const e=r()(l()(this.props.entries));let t=e.length>0?e[0].state_title:"";for(let s=1;s<e.length;s+=1)e[s].prev_state_title=t,t=e[s].state_title||t;return r()(e),Object(k.jsxs)(b.a,{id:"page-history",children:[Object(k.jsx)(d.d,{title:this.props.intl.formatMessage(N.history)}),Object(k.jsxs)(j.a.Group,{raised:!0,children:[Object(k.jsx)(j.a,{className:"primary",children:Object(k.jsx)(y.a,{id:"History of {title}",defaultMessage:"History of {title}",values:{title:Object(k.jsx)("q",{children:this.props.title})}})}),Object(k.jsx)(j.a,{secondary:!0,children:Object(k.jsx)(y.a,{id:"You can view the history of your item below.",defaultMessage:"You can view the history of your item below."})}),Object(k.jsxs)(m.a,{selectable:!0,compact:!0,singleLine:!0,attached:!0,children:[Object(k.jsx)(m.a.Header,{children:Object(k.jsxs)(m.a.Row,{children:[Object(k.jsx)(m.a.HeaderCell,{width:1,children:Object(k.jsx)(y.a,{id:"History Version Number",defaultMessage:"#"})}),Object(k.jsx)(m.a.HeaderCell,{width:4,children:Object(k.jsx)(y.a,{id:"What",defaultMessage:"What"})}),Object(k.jsx)(m.a.HeaderCell,{width:4,children:Object(k.jsx)(y.a,{id:"Who",defaultMessage:"Who"})}),Object(k.jsx)(m.a.HeaderCell,{width:4,children:Object(k.jsx)(y.a,{id:"When",defaultMessage:"When"})}),Object(k.jsx)(m.a.HeaderCell,{width:4,children:Object(k.jsx)(y.a,{id:"Change Note",defaultMessage:"Change Note"})}),Object(k.jsx)(m.a.HeaderCell,{})]})}),Object(k.jsx)(m.a.Body,{children:a()(e,e=>Object(k.jsxs)(m.a.Row,{children:[Object(k.jsx)(m.a.Cell,{children:"version"in e&&e.version>0&&Object(k.jsx)(p.a,{className:"item",to:`${Object(d.r)(this.props.pathname)}/diff?one=${e.version-1}&two=${e.version}`,children:e.version})||Object(k.jsx)("span",{children:e.version})}),Object(k.jsx)(m.a.Cell,{children:"version"in e&&e.version>0&&Object(k.jsx)(p.a,{className:"item",to:`${Object(d.r)(this.props.pathname)}/diff?one=${e.version-1}&two=${e.version}`,children:e.transition_title})||Object(k.jsxs)("span",{children:[e.transition_title,"workflow"===e.type&&` (${e.action?e.prev_state_title+" \u2192 ":""}${e.state_title})`]})}),Object(k.jsx)(m.a.Cell,{children:e.actor.fullname}),Object(k.jsx)(m.a.Cell,{children:Object(k.jsx)(w.fb,{date:e.time})}),Object(k.jsx)(m.a.Cell,{children:e.comments}),Object(k.jsx)(m.a.Cell,{children:"versioning"===e.type&&Object(k.jsx)(g.a,{icon:"ellipsis horizontal",children:Object(k.jsxs)(g.a.Menu,{className:"left",children:["version"in e&&e.version>0&&Object(k.jsxs)(p.a,{className:"item",to:`${Object(d.r)(this.props.pathname)}/diff?one=${e.version-1}&two=${e.version}`,children:[Object(k.jsx)(f.a,{name:"copy"})," ",Object(k.jsx)(y.a,{id:"View changes",defaultMessage:"View changes"})]}),"version"in e&&Object(k.jsxs)(p.a,{className:"item",to:`${Object(d.r)(this.props.pathname)}?version=${e.version}`,children:[Object(k.jsx)(f.a,{name:"eye"})," ",Object(k.jsx)(y.a,{id:"View this revision",defaultMessage:"View this revision"})]}),"version"in e&&Object(k.jsxs)(g.a.Item,{value:e.version,onClick:this.onRevert,children:[Object(k.jsx)(f.a,{name:"undo"})," ",Object(k.jsx)(y.a,{id:"Revert to this revision",defaultMessage:"Revert to this revision"})]})]})})})]},e.time))})]})]}),this.state.isClient&&Object(k.jsx)(O.a,{node:document.getElementById("toolbar"),children:Object(k.jsx)(w.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(k.jsx)(p.a,{to:""+Object(d.r)(this.props.pathname),className:"item",children:Object(k.jsx)(w.jb,{name:M.a,className:"contents circled",size:"30px",title:this.props.intl.formatMessage(N.back)})})})})]})}}t.a=Object(h.compose)(x.c,Object(u.connect)((e,t)=>({entries:e.history.entries,pathname:t.location.pathname,title:e.content.data.title,revertRequest:e.history.revert}),{getHistory:C.x,revertHistory:C.jb}))(P)},mz8Z:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M26,29 C24.346,29 23,27.654 23,26 C23,24.346 24.346,23 26,23 C27.654,23 29,24.346 29,26 C29,27.654 27.654,29 26,29 M10,29 C8.346,29 7,27.654 7,26 C7,24.346 8.346,23 10,23 C11.654,23 13,24.346 13,26 C13,27.654 11.654,29 10,29 M26,21 C24.983,21 24.038,21.309 23.247,21.833 L19.414,18 L29.707,7.707 L28.293,6.293 L18,16.586 L7.707,6.293 L6.293,7.707 L16.586,18 L12.753,21.833 C11.962,21.309 11.017,21 10,21 C7.243,21 5,23.243 5,26 C5,28.757 7.243,31 10,31 C12.757,31 15,28.757 15,26 C15,24.983 14.691,24.038 14.167,23.247 L18,19.414 L21.833,23.247 C21.309,24.038 21,24.983 21,26 C21,28.757 23.243,31 26,31 C28.757,31 31,28.757 31,26 C31,23.243 28.757,21 26,21"/>'}},n2F9:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M7,29 L29,29 L29,25 L7,25 L7,29 Z M7,23 L29,23 L29,7 L7,7 L7,23 Z M5,31 L31,31 L31,5 L5,5 L5,31 Z"/><path d="M15.012 13.037L18.781 19.633 21.917 16.497 25.219 20.625 26.781 19.375 22.083 13.503 19.219 16.367 14.988 8.963 9.126 19.515 10.874 20.485z"/></g>'}},nNJO:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("23at");function a(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?a(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):a(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const l=o(o({},i.a),{},{fieldsets:[o({},i.a.fieldsets[0])],properties:o({},i.a.properties)});t.a=l},nor2:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill="#000" fill-rule="evenodd"><path d="M4.8774 28L23.1324 28C22.3064 26.614 20.0084 25.548 19.0924 25.232 15.4554 24.373 15.0454 22.379 15.0114 22.154L15.0004 22.003 15.0004 18.895 15.6304 18.645C16.8514 18.158 16.7644 17.393 16.7634 17.386L16.6384 16.607 17.3654 16.304C17.4044 16.268 17.5774 16.064 17.9134 15.315 17.8684 15.255 17.7984 15.185 17.7704 15.163L17.1894 14.725 17.8304 12.881C18.1344 11.639 18.0094 10.353 17.4614 9.651 17.1974 9.314 16.8544 9 16.5174 9L15.9664 9 15.6724 8.655C15.6704 8.653 15.0354 7.766 14.0284 7.766 13.5514 7.769 12.1334 7.916 11.3624 8.421 10.4574 9.013 9.5174 10.292 10.1784 12.953L10.7744 14.773 10.1364 15.196C10.0934 15.228 10.0314 15.292 9.9984 15.339 10.1754 15.816 10.5154 16.233 10.6504 16.308L11.4284 16.632 11.2414 17.388C11.2324 17.494 11.2244 18.188 12.3694 18.644L13.0004 18.894 12.9884 22.151C12.9554 22.376 12.5524 24.373 8.8194 25.259 7.9814 25.553 5.7004 26.615 4.8774 28L4.8774 28zM25.0004 30L3.0004 30 3.0004 29C3.0004 25.39 7.8954 23.539 8.4774 23.34 10.5884 22.834 10.8954 22.057 11.0004 21.847L11.0004 20.199C9.8114 19.515 9.3684 18.523 9.2664 17.76 8.7184 17.278 8.2894 16.536 8.0804 15.916 7.8304 15.176 8.0854 14.536 8.4414 14.083L8.2574 13.521C7.2064 9.3 9.3144 7.401 10.2674 6.777 11.6724 5.858 13.7894 5.827 14.0254 5.826 15.5324 5.826 16.5564 6.734 17.0414 7.29 17.8034 7.429 18.5104 7.867 19.0364 8.54 19.5834 9.239 20.4024 10.807 19.7454 13.45L19.5164 14.114C19.9054 14.644 20.0924 15.325 19.7984 15.997 19.5254 16.62 19.2044 17.289 18.7404 17.739 18.6424 18.505 18.2004 19.509 17.0004 20.199L17.0004 21.87C17.0754 22.01 17.3384 22.816 19.4304 23.313 20.1054 23.539 25.0004 25.389 25.0004 29L25.0004 30zM29 5L27 5 27 9 23 9 23 11 27 11 27 15 29 15 29 11 33 11 33 9 29 9z"/></g>'}},oUnT:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=(s("17x9"),s("lHu7")),c=s("24R3"),d=s("zSVi"),p=s("eetn"),u=s("TbSc"),h=s("umxb"),b=s("QetY"),j=s("TSYQ"),m=s.n(j),g=s("Kvkj"),f=s("1Jxj"),O=s.n(f),v=s("EFnn"),y=s.n(v),x=s("jYYP"),w=s.n(x),C=s("zpb6"),S=s("8ZS8"),M=s("nKUr");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P=Object(l.defineMessages)({VideoFormDescription:{id:"Specify a youtube video or playlist url",defaultMessage:"Specify a youtube video or playlist url"},VideoBlockInputPlaceholder:{id:"Type a Video (YouTube, Vimeo or mp4) URL",defaultMessage:"Type a Video (YouTube, Vimeo or mp4) URL"}});class L extends o.Component{constructor(e){super(e),r()(this,"resetSubmitUrl",()=>{this.setState({url:""})}),this.onChangeUrl=this.onChangeUrl.bind(this),this.onSubmitUrl=this.onSubmitUrl.bind(this),this.onKeyDownVariantMenuForm=this.onKeyDownVariantMenuForm.bind(this),this.state={url:""}}onChangeUrl({target:e}){this.setState({url:e.value})}shouldComponentUpdate(e){return this.props.selected||e.selected||!a()(this.props.data,e.data)}onSubmitUrl(){this.props.onChangeBlock(this.props.block,N(N({},this.props.data),{},{url:this.state.url}))}onKeyDownVariantMenuForm(e){"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmitUrl()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())}render(){const{data:e}=this.props,t=this.props.data.placeholder||this.props.intl.formatMessage(P.VideoBlockInputPlaceholder);return Object(M.jsxs)("div",{className:m()("block video align",{selected:this.props.selected,center:!Boolean(this.props.data.align)},this.props.data.align),children:[e.url?Object(M.jsx)("div",{className:m()("video-inner",{"full-width":"full"===this.props.data.align}),children:e.url.match("youtu")?Object(M.jsx)(M.Fragment,{children:e.url.match("list")?e.preview_image?Object(M.jsx)(p.a,{url:"https://www.youtube.com/embed/videoseries?list="+e.url.match(/^.*\?list=(.*)$/)[1],placeholder:Object(C.L)(e.preview_image)?Object(C.q)(e.preview_image)+"/@@images/image":e.preview_image,defaultActive:!0,autoplay:!1}):Object(M.jsx)(p.a,{url:"https://www.youtube.com/embed/videoseries?list="+e.url.match(/^.*\?list=(.*)$/)[1],icon:"play",defaultActive:!0,autoplay:!1}):e.preview_image?Object(M.jsx)(p.a,{id:e.url.match(/.be\//)?e.url.match(/^.*\.be\/(.*)/)[1]:e.url.match(/^.*\?v=(.*)$/)[1],source:"youtube",placeholder:Object(C.L)(e.preview_image)?Object(C.q)(e.preview_image)+"/@@images/image":e.preview_image,icon:"play",autoplay:!1}):Object(M.jsx)(p.a,{id:e.url.match(/.be\//)?e.url.match(/^.*\.be\/(.*)/)[1]:e.url.match(/^.*\?v=(.*)$/)[1],source:"youtube",icon:"play",defaultActive:!0,autoplay:!1})}):Object(M.jsxs)(M.Fragment,{children:[Object(M.jsx)("div",{className:"ui blocker"}),e.url.match("vimeo")?e.preview_image?Object(M.jsx)(p.a,{id:e.url.match(/^.*\.com\/(.*)/)[1],source:"vimeo",placeholder:Object(C.L)(e.preview_image)?Object(C.q)(e.preview_image)+"/@@images/image":e.preview_image,icon:"play",autoplay:!1}):Object(M.jsx)(p.a,{id:e.url.match(/^.*\.com\/(.*)/)[1],source:"vimeo",icon:"play",defaultActive:!0,autoplay:!1}):Object(M.jsxs)(M.Fragment,{children:[Object(M.jsx)("div",{className:"ui blocker"}),e.url.match(".mp4")?Object(M.jsx)("video",{src:Object(C.L)(e.url.replace(Object(C.C)(S.a.settings.apiPath),""))?e.url+"/@@download/file":e.url,controls:!0,poster:e.preview_image?Object(C.L)(e.preview_image)?Object(C.q)(e.preview_image)+"/@@images/image":e.preview_image:"",type:"video/mp4"}):Object(M.jsx)("div",{children:Object(M.jsx)(u.a,{children:Object(M.jsx)("center",{children:Object(M.jsx)(c.a,{id:"Please enter a valid URL by deleting the block and adding a new video block.",defaultMessage:"Please enter a valid URL by deleting the block and adding a new video block."})})})})]})]})}):Object(M.jsx)(u.a,{children:Object(M.jsxs)("center",{children:[Object(M.jsx)("img",{src:w.a,alt:""}),Object(M.jsxs)("div",{className:"toolbar-inner",children:[Object(M.jsx)(h.a,{onKeyDown:this.onKeyDownVariantMenuForm,onChange:this.onChangeUrl,placeholder:t,value:this.state.url,onClick:e=>e.stopPropagation()}),this.state.url&&Object(M.jsx)(b.a.Group,{children:Object(M.jsx)(b.a,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),this.setState({url:""})},children:Object(M.jsx)(g.jb,{name:O.a,size:"30px"})})}),Object(M.jsx)(b.a.Group,{children:Object(M.jsx)(b.a,{basic:!0,primary:!0,onClick:e=>{e.stopPropagation(),this.onSubmitUrl()},children:Object(M.jsx)(g.jb,{name:y.a,size:"30px"})})})]})]})}),Object(M.jsx)(g.Pb,{selected:this.props.selected,children:Object(M.jsx)(g.cc,N(N({},this.props),{},{resetSubmitUrl:this.resetSubmitUrl}))})]})}}t.a=Object(d.c)(L)},oY8O:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("xaJk"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("yE/o"),d=s("3mGJ"),p=s("ikXu"),u=s("QetY"),h=s("zpb6"),b=s("Ty5D"),j=s("55Ip"),m=s("Kvkj"),g=s("8ZS8"),f=s("3tf8"),O=s("9At1"),v=s("lHu7"),y=s("52Oh"),x=s("24R3"),w=s("/MKj"),C=s("It+4"),S=s("GGqY"),M=s("THAZ"),k=s.n(M),N=s("qaC+"),P=s.n(N),L=s("XXUR"),D=s.n(L),E=s("0pDM"),T=s.n(E),I=s("nKUr");function A(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function R(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?A(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):A(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const _=Object(v.defineMessages)({success:{id:"Success",defaultMessage:"Success"},linked:{id:"Translation linked",defaultMessage:"Translation linked"},unlinked:{id:"Translation linking removed",defaultMessage:"Translation linking removed"},link:{id:"Link translation for",defaultMessage:"Link translation for"},unlink:{id:"Unlink translation for",defaultMessage:"Unlink translation for"},ManageTranslations:{id:"Manage Translations",defaultMessage:"Manage Translations"},ManageTranslationsTitle:{id:"Manage translations for {title}",defaultMessage:"Manage translations for {title}"},back:{id:"Back",defaultMessage:"Back"}});t.a=Object(f.a)(e=>{const t=Object(y.a)(),s=Object(b.i)().pathname,n=Object(w.useSelector)(e=>e.content.data),r=Object(w.useDispatch)(),{isObjectBrowserOpen:i,openObjectBrowser:o}=e,f=l.a.useRef(null);l.a.useEffect(()=>{n||r(Object(O.t)(Object(h.r)(s)))},[r,n,s]),l.a.useEffect(()=>{!i&&f.current&&r(Object(O.L)(n["@id"],f.current)).then(e=>{S.toast.success(Object(I.jsx)(m.Ub,{success:!0,title:t.formatMessage(_.success),content:t.formatMessage(_.linked)})),r(Object(O.t)(Object(h.r)(s)))}).catch(e=>{const t=JSON.parse(e.response.text);S.toast.error(Object(I.jsx)(m.Ub,{error:!0,title:t.error.type,content:t.error.message}),{toastId:"linkFailed"})})},[i]);const v=n&&n["@components"].translations.items&&R({[n.language.token]:{url:n["@id"]}},a()(n["@components"].translations.items,(e,t)=>R(R({},e),{},{[t.language]:{url:t["@id"]}}),{}));return Object(I.jsxs)(c.a,{id:"page-manage-translations",children:[Object(I.jsx)(h.d,{title:t.formatMessage(_.ManageTranslations)}),Object(I.jsxs)(d.a.Group,{raised:!0,children:[Object(I.jsx)(d.a,{className:"primary",children:Object(I.jsx)(x.a,{id:"Manage translations for {title}",defaultMessage:"Manage translations for {title}",values:{title:Object(I.jsx)("q",{children:n.title})}})}),n&&Object(I.jsxs)(p.a,{selectable:!0,compact:!0,singleLine:!0,attached:!0,children:[Object(I.jsx)(p.a.Header,{children:Object(I.jsxs)(p.a.Row,{children:[Object(I.jsx)(p.a.HeaderCell,{children:"Language"}),Object(I.jsx)(p.a.HeaderCell,{children:"Path"}),Object(I.jsx)(p.a.HeaderCell,{textAlign:"right",children:"Tools"})]})}),Object(I.jsx)(p.a.Body,{children:g.a.settings.supportedLanguages.map(e=>{var i,a;return Object(I.jsxs)(p.a.Row,{children:[Object(I.jsx)(p.a.Cell,{collapsing:!0,children:e===n.language.token?Object(I.jsx)("strong",{children:h.M[e].nativeName}):h.M[e].nativeName}),Object(I.jsx)(p.a.Cell,{children:Object(I.jsx)(j.a,{to:Object(h.q)((null===(i=v[e])||void 0===i?void 0:i.url)||""),children:Object(h.q)((null===(a=v[e])||void 0===a?void 0:a.url)||"")})}),Object(I.jsxs)(p.a.Cell,{textAlign:"right",className:"manage-multilingual-tools",children:[Object(I.jsx)(u.a.Group,{children:Object(I.jsx)(u.a,{basic:!0,icon:!0,disabled:e===n.language.token||(null===v||void 0===v?void 0:v[e]),as:j.a,to:{pathname:s+"/create-translation",state:{type:n["@type"],translationOf:Object(h.q)(n["@id"]),language:e}},children:Object(I.jsx)(m.jb,{name:k.a,size:"24px"})})}),null!==v&&void 0!==v&&v[e]?Object(I.jsx)(u.a.Group,{children:Object(I.jsx)(u.a,{"aria-label":`${t.formatMessage(_.unlink)} ${h.M[e].nativeName.toLowerCase()}`,basic:!0,icon:!0,disabled:e===n.language.token,onClick:()=>function(e){r(Object(O.p)(n["@id"],e)).then(e=>{S.toast.success(Object(I.jsx)(m.Ub,{success:!0,title:t.formatMessage(_.success),content:t.formatMessage(_.unlinked)})),r(Object(O.t)(Object(h.r)(s)))}).catch(e=>{const t=JSON.parse(e.response.text);S.toast.error(Object(I.jsx)(m.Ub,{error:!0,title:t.error.type,content:t.error.message}),{toastId:"linkFailed"})})}(e),children:Object(I.jsx)(m.jb,{name:e===n.language.token?D.a:T.a,size:"24px"})})}):Object(I.jsx)(u.a.Group,{children:Object(I.jsx)(u.a,{"aria-label":`${t.formatMessage(_.link)} ${h.M[e].nativeName.toLowerCase()}`,basic:!0,icon:!0,disabled:e===n.language.token,onClick:()=>o({mode:"link",overlay:!0,onSelectItem:e=>{var t;t=e,f.current=t}}),children:Object(I.jsx)(m.jb,{name:D.a,size:"24px"})})})]})]},e)})})]}),Object(I.jsx)(C.a,{node:document.getElementById("toolbar"),children:Object(I.jsx)(m.Vb,{pathname:s,hideDefaultViewButtons:!0,inner:Object(I.jsx)(j.a,{to:""+Object(h.r)(s),className:"item",children:Object(I.jsx)(m.jb,{name:P.a,className:"contents circled",size:"30px",title:t.formatMessage(_.back)})})})})]})]})})},ohhH:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("23at");function a(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?a(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):a(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const l=o(o({},i.a),{},{fieldsets:[o({},i.a.fieldsets[0])],properties:o({},i.a.properties)});t.a=l},om3J:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M25 7L25 9 27.001 9 27.001 31 9.001 31 9.001 9 11.001 9 11.001 7 7 7 7 33 29.001 33 29.001 7z"/><path d="M21,9 L15,9 L15,7 L17,7 L17,6 C17,5.448 17.448,5 18,5 C18.552,5 19,5.448 19,6 L19,7 L21,7 L21,9 Z M23,5 L20.829,5 C20.416,3.836 19.304,3 18,3 C16.696,3 15.584,3.836 15.171,5 L13,5 L13,11 L23,11 L23,5 Z"/></g>'}},onP0:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("umxb")),o=s("zSVi"),l=s("Kvkj"),c=s("nKUr");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class u extends i.Component{componentDidMount(){this.props.focus&&this.node.focus()}render(){const{id:e,value:t,onChange:s,onBlur:n,onClick:r,icon:i,iconAction:o,minLength:d,maxLength:u,placeholder:h}=this.props;return Object(c.jsxs)(l.db,p(p({},this.props),{},{className:"text",children:[Object(c.jsx)(a.a,{id:"field-"+e,name:e,value:t||"",disabled:this.props.isDisabled,icon:i||null,placeholder:h,onChange:({target:t})=>s(e,""===t.value?void 0:t.value),ref:e=>{this.node=e},onBlur:({target:t})=>n(e,""===t.value?void 0:t.value),onClick:()=>r(),minLength:d||null,maxLength:u||null}),i&&o&&Object(c.jsx)("button",{className:`field-${e}-action-button`,onClick:o,children:Object(c.jsx)(l.jb,{name:i,size:"18px"})})]}))}}r()(u,"defaultProps",{description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},onEdit:null,onDelete:null,focus:!1,icon:null,iconAction:null,minLength:null,maxLength:null}),t.a=Object(o.c)(u)},pCQg:function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("lHu7"),o=s("zSVi"),l=s("BOF4"),c=s.n(l),d=s("GGqY"),p=s("Kvkj"),u=s("9At1"),h=s("nKUr");const b=Object(a.defineMessages)({personalInformation:{id:"Personal Information",defaultMessage:"Personal Information"},default:{id:"Default",defaultMessage:"Default"},fullnameTitle:{id:"Full Name",defaultMessage:"Full Name"},fullnameDescription:{id:"Enter full name, e.g. John Smith.",defaultMessage:"Enter full name, e.g. John Smith."},emailTitle:{id:"E-mail",defaultMessage:"E-mail"},emailDescription:{id:"We will use this address if you need to recover your password",defaultMessage:"We will use this address if you need to recover your password"},portraitTitle:{id:"Portrait",defaultMessage:"Portrait"},portraitDescription:{id:"The user portrait/avatar",defaultMessage:"The user portrait/avatar"},homePageTitle:{id:"Home page",defaultMessage:"Home page"},homePageDescription:{id:"The URL for your external home page, if you have one.",defaultMessage:"The URL for your external home page, if you have one."},locationTitle:{id:"Location",defaultMessage:"Location"},locationDescription:{id:"Your location - either city and country - or in a company setting, where your office is located.",defaultMessage:"Your location - either city and country - or in a company setting, where your office is located."},saved:{id:"Changes saved",defaultMessage:"Changes saved"},back:{id:"Back",defaultMessage:"Back"},success:{id:"Success",defaultMessage:"Success"}});class j extends n.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){this.props.getUser(this.props.userId)}onSubmit(e){delete e.id,delete e.username,delete e.roles,this.props.updateUser(this.props.userId,e),d.toast.success(Object(h.jsx)(p.Ub,{success:!0,title:this.props.intl.formatMessage(b.success),content:this.props.intl.formatMessage(b.saved)})),this.props.closeMenu()}onCancel(){this.props.closeMenu()}render(){return Object(h.jsx)(p.cb,{formData:this.props.user,schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(b.default),fields:["fullname","email","portrait","home_page","location"]}],properties:{fullname:{description:this.props.intl.formatMessage(b.fullnameDescription),title:this.props.intl.formatMessage(b.fullnameTitle),type:"string"},email:{description:this.props.intl.formatMessage(b.emailDescription),title:this.props.intl.formatMessage(b.emailTitle),type:"string"},portrait:{description:this.props.intl.formatMessage(b.portraitDescription),title:this.props.intl.formatMessage(b.portraitTitle),type:"object"},home_page:{description:this.props.intl.formatMessage(b.homePageDescription),title:this.props.intl.formatMessage(b.homePageTitle),type:"string"},location:{description:this.props.intl.formatMessage(b.locationDescription),title:this.props.intl.formatMessage(b.locationTitle),type:"string"}},required:["email"]},onSubmit:this.onSubmit,onCancel:this.onCancel,loading:this.props.loading})}}t.a=Object(i.compose)(o.c,Object(r.connect)((e,t)=>({user:e.users.user,userId:e.userSession.token?c()(e.userSession.token).sub:"",loaded:e.users.get.loaded,loading:e.users.update.loading}),{getUser:u.G,updateUser:u.Bb}))(j)},pmvk:function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"g",(function(){return r})),s.d(t,"h",(function(){return i})),s.d(t,"e",(function(){return a})),s.d(t,"c",(function(){return o})),s.d(t,"d",(function(){return l})),s.d(t,"f",(function(){return c})),s.d(t,"b",(function(){return d}));const n={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},r={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},i=(Object.keys(r).map(e=>r[e]),{CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"}),a={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},o={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},l=Object.keys(a).reduce((e,t)=>(e[a[t]]=t,e),{}),c=[r.NOSCRIPT,r.SCRIPT,r.STYLE],d="data-react-helmet"},prz0:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s("3mGJ"),o=s("yE/o"),l=(s("17x9"),s("/MKj")),c=s("Kvkj"),d=s("nKUr");class p extends i.Component{render(){return Object(d.jsx)(a.a,{basic:!0,className:"header-wrapper",role:"banner",children:Object(d.jsx)(o.a,{children:Object(d.jsxs)("div",{className:"header",children:[Object(d.jsxs)("div",{className:"logo-nav-wrapper",children:[Object(d.jsx)("div",{className:"logo",children:Object(d.jsx)(c.rb,{})}),Object(d.jsx)(c.xb,{pathname:this.props.pathname})]}),Object(d.jsxs)("div",{className:"tools-search-wrapper",children:[Object(d.jsx)(c.mb,{}),!this.props.token&&Object(d.jsx)("div",{className:"tools",children:Object(d.jsx)(c.c,{})}),Object(d.jsx)("div",{className:"search",children:Object(d.jsx)(c.Lb,{})})]})]})})})}}r()(p,"defaultProps",{token:null}),t.a=Object(l.connect)(e=>({token:e.userSession.token}))(p)},q2yr:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("zqxM"),a=s.n(i),o=s("hzCD"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("J2m7"),u=s.n(p),h=s("9At1"),b=s("Kvkj"),j=s("55Ip"),m=s("zpb6"),g=s("1Jxj"),f=s.n(g),O=s("nor2"),v=s.n(O),y=s("Z5Td"),x=s.n(y),w=s("DP9c"),C=s.n(w),S=(s("17x9"),s("q1tI")),M=s("24R3"),k=s("zSVi"),N=s("It+4"),P=s("/MKj"),L=s("GGqY"),D=s("ANjH"),E=s("yE/o"),T=s("X47e"),I=s("3mGJ"),A=s("vFsZ"),R=s("umxb"),_=s("ikXu"),q=s("QetY"),F=s("nKUr");function B(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function z(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?B(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):B(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class U extends S.Component{constructor(e){super(e),r()(this,"fetchData",async()=>{await this.props.listRoles(),this.props.listGroups(),await this.props.listUsers(),this.setState({entries:this.props.users})}),r()(this,"addUserToGroup",e=>{const{groups:t,username:s}=e;t.forEach(e=>{this.props.updateGroup(e,{users:{[s]:!0}})})}),r()(this,"updateUserRoleSubmit",e=>{e.stopPropagation();const t=this.props.roles.map(e=>e.id);this.state.entries.forEach(e=>{const s={roles:{}};a()(t,e.roles).forEach(e=>{s.roles[e]=!1}),e.roles.forEach(e=>{s.roles[e]=!0}),this.props.updateUser(e.id,s)}),L.toast.success(Object(F.jsx)(b.Ub,{success:!0,title:this.props.intl.formatMessage(m.N.success),content:this.props.intl.formatMessage(m.N.updateRoles)}))}),r()(this,"onChangePage",(e,{value:t})=>{this.setState({currentPage:t})}),this.onChangeSearch=this.onChangeSearch.bind(this),this.onSearch=this.onSearch.bind(this),this.delete=this.delete.bind(this),this.onDeleteOk=this.onDeleteOk.bind(this),this.onDeleteCancel=this.onDeleteCancel.bind(this),this.onAddUserSubmit=this.onAddUserSubmit.bind(this),this.onAddUserError=this.onAddUserError.bind(this),this.onAddUserSuccess=this.onAddUserSuccess.bind(this),this.updateUserRole=this.updateUserRole.bind(this),this.state={search:"",showAddUser:!1,showAddUserErrorConfirm:!1,addUserError:"",showDelete:!1,userToDelete:void 0,entries:[],isClient:!1,currentPage:0,pageSize:10}}componentDidMount(){this.setState({isClient:!0}),this.fetchData()}UNSAFE_componentWillReceiveProps(e){(this.props.deleteRequest.loading&&e.deleteRequest.loaded||this.props.createRequest.loading&&e.createRequest.loaded)&&this.props.listUsers(this.state.search),this.props.createRequest.loading&&e.createRequest.loaded&&this.onAddUserSuccess(),this.props.createRequest.loading&&e.createRequest.error&&this.onAddUserError(e.createRequest.error),this.props.loadRolesRequest.loading&&e.loadRolesRequest.error&&this.setState({error:e.loadRolesRequest.error})}getUserFromProps(e){return u()(this.props.users,["@id",e])}onSearch(e){e.preventDefault(),this.props.listUsers(this.state.search)}onChangeSearch(e){this.setState({search:e.target.value})}delete(e,{value:t}){t&&this.setState({showDelete:!0,userToDelete:this.getUserFromProps(t)})}onDeleteOk(){this.state.userToDelete&&(this.props.deleteUser(this.state.userToDelete.id),this.setState({showDelete:!1,userToDelete:void 0}))}onDeleteCancel(){this.setState({showDelete:!1,itemsToDelete:[]})}onAddUserSubmit(e,t){const{groups:s}=e;s&&s.length>0&&this.addUserToGroup(e),this.props.createUser(e),this.setState({addUserSetFormDataCallback:t})}onAddUserSuccess(){this.state.addUserSetFormDataCallback({}),this.setState({showAddUser:!1,addUserError:void 0,addUserSetFormDataCallback:void 0}),L.toast.success(Object(F.jsx)(b.Ub,{success:!0,title:this.props.intl.formatMessage(m.N.success),content:this.props.intl.formatMessage(m.N.userCreated)}))}updateUserRole(e,t){this.setState({entries:d()(this.state.entries,s=>z(z({},s),{},{roles:s.id!==e||s.roles.includes(t)?s.id!==e?s.roles:l()(s.roles,t):[...s.roles,t]}))})}onAddUserError(e){this.setState({addUserError:e.response.body.error.message})}componentDidUpdate(e,t){this.props.users!==e.users&&this.setState({entries:this.props.users})}render(){var e;if(this.state.error)return Object(F.jsx)(b.X,{error:this.state.error});let t=this.state.userToDelete?this.state.userToDelete.username:"";return Object(F.jsxs)(E.a,{className:"users-control-panel",children:[Object(F.jsx)(m.d,{title:this.props.intl.formatMessage(m.N.users)}),Object(F.jsxs)("div",{className:"container",children:[Object(F.jsx)(T.a,{open:this.state.showDelete,header:this.props.intl.formatMessage(m.N.deleteUserConfirmTitle),content:Object(F.jsx)("div",{className:"content",children:Object(F.jsx)("ul",{className:"content",children:Object(F.jsx)(M.a,{id:"Do you really want to delete the user {username}?",defaultMessage:"Do you really want to delete the user {username}?",values:{username:Object(F.jsx)("b",{children:t})}})})}),onCancel:this.onDeleteCancel,onConfirm:this.onDeleteOk,size:null}),this.state.showAddUser?Object(F.jsx)(b.vb,{open:this.state.showAddUser,className:"modal",onSubmit:this.onAddUserSubmit,submitError:this.state.addUserError,onCancel:()=>this.setState({showAddUser:!1}),title:this.props.intl.formatMessage(m.N.addUserFormTitle),loading:this.props.createRequest.loading,schema:{fieldsets:[{id:"default",title:"FIXME: User Data",fields:["username","fullname","email","password","roles","groups"]}],properties:{username:{title:this.props.intl.formatMessage(m.N.addUserFormUsernameTitle),type:"string",description:'Enter a user name, usually something like "jsmith". No spaces or special characters. Usernames and passwords are case sensitive, make sure the caps lock key is not enabled. This is the name used to log in.'},fullname:{title:this.props.intl.formatMessage(m.N.addUserFormFullnameTitle),type:"string",description:"Enter full name, e.g. John Smith."},email:{title:this.props.intl.formatMessage(m.N.addUserFormEmailTitle),type:"string",description:"Enter an email address. This is necessary in case the password is lost. We respect your privacy, and will not give the address away to any third parties or expose it anywhere.",widget:"email"},password:{title:this.props.intl.formatMessage(m.N.addUserFormPasswordTitle),type:"password",description:"Enter your new password. Minimum 5 characters.",widget:"password"},roles:{title:this.props.intl.formatMessage(m.N.addUserFormRolesTitle),type:"array",choices:this.props.roles.map(e=>[e.id,e.id]),noValueOption:!1,description:""},groups:{title:this.props.intl.formatMessage(m.N.addUserGroupNameTitle),type:"array",choices:this.props.groups.map(e=>[e.id,e.id]),noValueOption:!1,description:""}},required:["username","fullname","email","password"]}}):null]}),Object(F.jsxs)(I.a.Group,{raised:!0,children:[Object(F.jsx)(I.a,{className:"primary",children:Object(F.jsx)(M.a,{id:"Users",defaultMessage:"Users"})}),Object(F.jsx)(I.a,{secondary:!0,children:Object(F.jsx)(M.a,{id:"Note that roles set here apply directly to a user. The symbol{plone_svg}indicates a role inherited from membership in a group.",defaultMessage:"Note that roles set here apply directly to a user. The symbol{plone_svg}indicates a role inherited from membership in a group.",values:{plone_svg:Object(F.jsx)(b.jb,{name:C.a,size:"20px",color:"#007EB1",title:"plone-svg"})}})}),Object(F.jsx)(I.a,{children:Object(F.jsx)(A.a,{onSubmit:this.onSearch,children:Object(F.jsx)(A.a.Field,{children:Object(F.jsx)(R.a,{name:"SearchableText",action:{icon:"search"},placeholder:this.props.intl.formatMessage(m.N.searchUsers),onChange:this.onChangeSearch,id:"user-search-input"})})})}),Object(F.jsxs)(A.a,{children:[Object(F.jsx)("div",{className:"table",children:Object(F.jsxs)(_.a,{padded:!0,striped:!0,attached:!0,unstackable:!0,children:[Object(F.jsx)(_.a.Header,{children:Object(F.jsxs)(_.a.Row,{children:[Object(F.jsx)(_.a.HeaderCell,{children:Object(F.jsx)(M.a,{id:"User name",defaultMessage:"User name"})}),this.props.roles.map(e=>Object(F.jsx)(_.a.HeaderCell,{children:e.id},e.id)),Object(F.jsx)(_.a.HeaderCell,{children:Object(F.jsx)(M.a,{id:"Actions",defaultMessage:"Actions"})})]})}),Object(F.jsx)(_.a.Body,{"data-user":"users",children:this.state.entries.slice(10*this.state.currentPage,this.state.pageSize*(this.state.currentPage+1)).map(e=>Object(F.jsx)(b.Gb,{onDelete:this.delete,roles:this.props.roles,user:e,updateUser:this.updateUserRole,inheritedRole:this.props.inheritedRole},e.id))})]})}),Object(F.jsx)("div",{className:"contents-pagination",children:Object(F.jsx)(b.Bb,{current:this.state.currentPage,total:Math.ceil((null===(e=this.state.entries)||void 0===e?void 0:e.length)/this.state.pageSize),onChangePage:this.onChangePage})})]})]}),this.state.isClient&&Object(F.jsx)(N.a,{node:document.getElementById("toolbar"),children:Object(F.jsx)(b.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(q.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(m.N.save),onClick:this.updateUserRoleSubmit,loading:this.props.createRequest.loading,children:Object(F.jsx)(b.jb,{name:x.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(m.N.save)})}),Object(F.jsx)(j.a,{to:"/controlpanel",className:"cancel",children:Object(F.jsx)(b.jb,{name:f.a,className:"circled","aria-label":this.props.intl.formatMessage(m.N.cancel),size:"30px",title:this.props.intl.formatMessage(m.N.cancel)})}),Object(F.jsx)(q.a,{id:"toolbar-add","aria-label":this.props.intl.formatMessage(m.N.addUserButtonTitle),onClick:()=>{this.setState({showAddUser:!0})},loading:this.props.createRequest.loading,children:Object(F.jsx)(b.jb,{name:v.a,size:"45px",color:"#826A6A",title:this.props.intl.formatMessage(m.N.addUserButtonTitle)})})]})})})]})}}t.a=Object(D.compose)(k.c,Object(P.connect)((e,t)=>({roles:e.roles.roles,users:e.users.users,groups:e.groups.groups,description:e.description,pathname:t.location.pathname,deleteRequest:e.users.delete,createRequest:e.users.create,loadRolesRequest:e.roles,inheritedRole:e.authRole.authenticatedRole}),e=>Object(D.bindActionCreators)({listRoles:h.S,listUsers:h.T,listGroups:h.Q,deleteUser:h.q,createUser:h.i,updateUser:h.Bb,updateGroup:h.xb},e)))(U)},qSC7:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path d="M11.1667 19L14.0837 9 14.2497 9 17.1667 19 11.1667 19zM15.7497 7L12.5837 7 6.7497 27 4.9997 27 4.9997 29 9.9997 29 9.9997 27 8.8337 27 10.5837 21 17.7497 21 19.4997 27 17.9997 27 17.9997 29 22.9997 29 22.9997 27 21.5837 27 15.7497 7zM31 7L31 5C29.8 5 28.734 5.542 28 6.382 27.266 5.542 26.2 5 25 5L25 7C26.103 7 27 7.897 27 9L27 27C27 28.103 26.103 29 25 29L25 31C26.2 31 27.266 30.458 28 29.618 28.734 30.458 29.8 31 31 31L31 29C29.897 29 29 28.103 29 27L29 9C29 7.897 29.897 7 31 7" fill-rule="evenodd"/>'}},"qaC+":function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M31 17L8.414 17 18.707 6.707 17.293 5.293 4.586 18 17.293 30.707 18.707 29.293 8.414 19 31 19z"/>'}},qcTF:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M11,10.71 L11,25.29 L23.96,18 L11,10.71 Z M9,28.71 L9,7.29 L28.04,18 L9,28.71 Z"/>'}},qjD5:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("E+oP"),a=s.n(i),o=s("7GkX"),l=s.n(o),c=s("q1tI"),d=s.n(c),p=(s("17x9"),s("zpb6")),u=s("/MKj"),h=s("ANjH"),b=s("lHu7"),j=s("zSVi"),m=s("QetY"),g=s("+6Dn"),f=s("R6OX"),O=s("It+4"),v=s("EcEN"),y=s("cr+I"),x=s.n(y),w=s("GGqY"),C=s("9At1"),S=s("Kvkj"),M=s("WZVz"),k=s("8ZS8"),N=s("Z5Td"),P=s.n(N),L=s("1Jxj"),D=s.n(L),E=s("nKUr");function T(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function I(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?T(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):T(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const A=Object(b.defineMessages)({add:{id:"Add {type}",defaultMessage:"Add {type}"},save:{id:"Save",defaultMessage:"Save"},cancel:{id:"Cancel",defaultMessage:"Cancel"},error:{id:"Error",defaultMessage:"Error"},translateTo:{id:"Translate to {lang}",defaultMessage:"Translate to {lang}"}});class R extends c.Component{constructor(e){var t;super(e),r()(this,"form",d.a.createRef()),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),null!==(t=k.a.blocks)&&void 0!==t&&t.initialBlocks[e.type]&&(this.initialBlocksLayout=k.a.blocks.initialBlocks[e.type].map(e=>Object(v.v4)()),this.initialBlocks=this.initialBlocksLayout.reduce((t,s,n)=>I(I({},t),{},{[s]:{"@type":k.a.blocks.initialBlocks[e.type][n]}}),{})),this.state={isClient:!1,error:null,formSelected:"addForm"}}componentDidMount(){this.props.getSchema(this.props.type,Object(p.r)(this.props.pathname)),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(e){if(this.props.createRequest.loading&&e.createRequest.loaded&&e.content["@type"]===this.props.type&&this.props.history.push(this.props.returnUrl||Object(p.q)(e.content["@id"])),this.props.createRequest.loading&&e.createRequest.error){var t,s,n,r,i;const a=(null===(t=e.createRequest.error.response)||void 0===t||null===(s=t.body)||void 0===s?void 0:s.message)||(null===(n=e.createRequest.error.response)||void 0===n?void 0:n.text),o=(null===(r=(new DOMParser).parseFromString(a,"text/html"))||void 0===r||null===(i=r.all[0])||void 0===i?void 0:i.textContent)||a;this.setState({error:o}),w.toast.error(Object(E.jsx)(S.Ub,{error:!0,title:this.props.intl.formatMessage(A.error),content:`${e.createRequest.error.status}: ${o}`}))}}onSubmit(e){var t,s;this.props.createContent(Object(p.r)(this.props.pathname),I(I({},e),{},{"@static_behaviors":this.props.schema.definitions?l()(this.props.schema.definitions):null,"@type":this.props.type},k.a.settings.isMultilingual&&(null===(t=this.props.location)||void 0===t||null===(s=t.state)||void 0===s?void 0:s.translationOf)&&{translation_of:this.props.location.state.translationOf,language:this.props.location.state.language}))}onCancel(){var e,t;if(null!==(e=this.props.location)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&t.translationOf){var n,r;const e=this.props.location.state.languageFrom,t=Object(p.S)(e);s("Zbgq")("./"+t+".json").then(t=>{this.props.changeLanguage(e,t.default)}),this.props.history.push(null===(n=this.props.location)||void 0===n||null===(r=n.state)||void 0===r?void 0:r.translationOf)}else this.props.history.push(Object(p.r)(this.props.pathname))}render(){if(this.props.schemaRequest.loaded){var e,t,s,n,r,i,o,l,c,d,u,h,b;const j=Object(p.I)(this.props.schema.properties),y=Object(p.t)(this.props.schema.properties),x=Object(p.u)(this.props.schema.properties),w=null===(e=this.props.location)||void 0===e||null===(t=e.state)||void 0===t?void 0:t.translationObject,C=w?null===p.M||void 0===p.M||null===(s=p.M[null===(n=this.props.location)||void 0===n||null===(r=n.state)||void 0===r?void 0:r.language])||void 0===s?void 0:s.nativeName:null,M=null===(i=this.props.schema.properties[y])||void 0===i?void 0:i.default,k=null===(o=this.props.schema.properties[x])||void 0===o||null===(l=o.default)||void 0===l?void 0:l.items;let N=this.initialBlocks,L=this.initialBlocksLayout;if(a()(k)||a()(M)||(N={},L=[],k.forEach(e=>{if(!a()(M[e])){let t=Object(v.v4)();L.push(t),N[t]=M[e],N[t].block=t,N[t]["@layout"]=e}})),w&&y&&x){N={},L=[];const e=JSON.parse(JSON.stringify(w[y]));w[x].items.forEach(t=>{if(!a()(e[t])){let s=Object(v.v4)();L.push(s),N[s]=e[t],N[s].block=s,N[s]["@canonical"]=t}})}const T=()=>{const e={};return w&&Object(p.A)(this.props.schema).forEach(t=>e[t]=w[t]),e},R=Object(E.jsxs)("div",{id:"page-add",children:[Object(E.jsx)(p.d,{title:this.props.intl.formatMessage(A.add,{type:this.props.type})}),Object(E.jsx)(S.cb,{ref:this.form,schema:this.props.schema,type:this.props.type,formData:I(I(I({},y&&{[y]:N||(null===(c=this.props.schema.properties[y])||void 0===c?void 0:c.default)}),x&&{[x]:{items:L||(null===(d=this.props.schema.properties[x])||void 0===d||null===(u=d.default)||void 0===u?void 0:u.items)}}),T()),requestError:this.state.error,onSubmit:this.onSubmit,hideActions:!0,pathname:this.props.pathname,visual:j,title:null!==(h=this.props)&&void 0!==h&&null!==(b=h.schema)&&void 0!==b&&b.title?this.props.intl.formatMessage(A.add,{type:this.props.schema.title}):null,loading:this.props.createRequest.loading,isFormSelected:"addForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"addForm"})}},"translated-or-new-content-form"),this.state.isClient&&Object(E.jsx)(O.a,{node:document.getElementById("toolbar"),children:Object(E.jsx)(S.Vb,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(m.a,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(A.save),onClick:()=>this.form.current.onSubmit(),loading:this.props.createRequest.loading,children:Object(E.jsx)(S.jb,{name:P.a,className:"circled",size:"30px",title:this.props.intl.formatMessage(A.save)})}),Object(E.jsx)(m.a,{className:"cancel",onClick:()=>this.onCancel(),children:Object(E.jsx)(S.jb,{name:D.a,className:"circled","aria-label":this.props.intl.formatMessage(A.cancel),size:"30px",title:this.props.intl.formatMessage(A.cancel)})})]})})}),j&&this.state.isClient&&Object(E.jsx)(O.a,{node:document.getElementById("sidebar"),children:Object(E.jsx)(S.Ob,{})})]});return w?Object(E.jsxs)(E.Fragment,{children:[Object(E.jsx)(p.b,{className:"babel-view"}),Object(E.jsxs)(g.a,{celled:"internally",stackable:!0,columns:2,id:"page-add-translation",children:[Object(E.jsx)(g.a.Column,{className:"source-object",children:Object(E.jsx)(S.Wb,{translationObject:w,schema:this.props.schema,pathname:this.props.pathname,visual:j,isFormSelected:"translationObjectForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"translationObjectForm"})}})}),Object(E.jsx)(g.a.Column,{children:Object(E.jsxs)("div",{className:"new-translation",children:[Object(E.jsx)(f.a,{pointing:!0,secondary:!0,attached:!0,tabular:!0,children:Object(E.jsx)(f.a.Item,{name:C.toUpperCase(),active:!0,children:""+this.props.intl.formatMessage(A.translateTo,{lang:C})})}),R]})})]})]}):R}return Object(E.jsx)("div",{})}}r()(R,"defaultProps",{schema:null,content:null,returnUrl:null,type:"Default"}),t.a=Object(h.compose)(j.c,Object(u.connect)((e,t)=>({createRequest:e.content.create,schemaRequest:e.schema,content:e.content.data,schema:e.schema.schema,pathname:t.location.pathname,returnUrl:x.a.parse(t.location.search).return_url,type:x.a.parse(t.location.search).type}),{createContent:C.g,getSchema:C.B,changeLanguage:C.d}),Object(M.a)("cms"))(R)},qvOX:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("lHu7"),c=s("zSVi"),d=s("9At1"),p=s("Kvkj"),u=s("nKUr");const h=Object(l.defineMessages)({editComment:{id:"Edit comment",defaultMessage:"Edit comment"},default:{id:"Default",defaultMessage:"Default"},comment:{id:"Comment",defaultMessage:"Comment"}});class b extends i.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this)}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.props.onOk()}onSubmit(e){this.props.updateComment(this.props.id,e.text)}render(){return this.props.open&&Object(u.jsx)(p.vb,{open:this.props.open,onSubmit:this.onSubmit,onCancel:this.props.onCancel,formData:{text:this.props.text},title:this.props.intl.formatMessage(h.editComment),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(h.default),fields:["text"]}],properties:{text:{title:this.props.intl.formatMessage(h.comment),type:"string",description:""}},required:["text"]}})}}r()(b,"defaultProps",{id:"",text:""}),t.a=Object(o.compose)(c.c,Object(a.connect)(e=>({request:e.comments.update}),{updateComment:d.ub}))(b)},r04O:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Wt1U"),a=s.n(i),o=s("Kssv"),l=s.n(o),c=s("Puqe"),d=s.n(c),p=s("3WF5"),u=s.n(p),h=s("4qC0"),b=s.n(h),j=s("UfWW"),m=s.n(j),g=s("NIJN"),f=s.n(g),O=s("q1tI"),v=s("/MKj"),y=s("ANjH"),x=(s("17x9"),s("aFK9")),w=s.n(x),C=s("3mGJ"),S=s("TbSc"),M=s("D1pA"),k=s("vFsZ"),N=s("+6Dn"),P=s("X47e"),L=s("lHu7"),D=s("zSVi"),E=s("Lf35"),T=s("Kvkj"),I=s("nKUr");function A(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function R(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?A(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):A(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const _=Object(L.defineMessages)({add:{id:"Add",defaultMessage:"Add"},addField:{id:"Add field",defaultMessage:"Add field"},addFieldset:{id:"Add fieldset",defaultMessage:"Add fieldset"},parentFieldSet:{id:"Parent fieldset",defaultMessage:"Parent fieldset"},editField:{id:"Edit field",defaultMessage:"Edit field"},editFieldset:{id:"Edit fieldset",defaultMessage:"Edit fieldset"},default:{id:"Default",defaultMessage:"Default"},idTitle:{id:"Short Name",defaultMessage:"Short Name"},idDescription:{id:"Used for programmatic access to the fieldset.",defaultMessage:"Used for programmatic access to the fieldset."},choices:{id:"Possible values",defaultMessage:"Possible values (Enter allowed choices one per line)."},string:{id:"String",defaultMessage:"String"},text:{id:"Text",defaultMessage:"Text"},richtext:{id:"Richtext",defaultMessage:"Richtext"},checkbox:{id:"Checkbox",defaultMessage:"Checkbox"},selection:{id:"Selection",defaultMessage:"Selection"},type:{id:"Type",defaultMessage:"Type"},title:{id:"Title",defaultMessage:"Title"},description:{id:"Description",defaultMessage:"Description"},required:{id:"Required",defaultMessage:"Required"},minLength:{id:"minLength",defaultMessage:"Minimum Length"},maxLength:{id:"maxLength",defaultMessage:"Maximum Length"},minimum:{id:"minimum",defaultMessage:"Start of the range"},maximum:{id:"maximum",defaultMessage:"End of the range (including the value itself)"},deleteFieldset:{id:"Are you sure you want to delete this fieldset including all fields?",defaultMessage:"Are you sure you want to delete this fieldset including all fields?"},deleteField:{id:"Are you sure you want to delete this field?",defaultMessage:"Are you sure you want to delete this field?"},error:{id:"Error",defaultMessage:"Error"}}),q=(e,t,s)=>{return{fieldsets:[{id:"default",title:"default",fields:["title","description","parentFieldSet",...(e=>{switch(e){case"Rich Text":return["maxLength"];case"URL":case"Password":case"label_password_field":case"Email":case"label_email":return["minLength","maxLength"];case"Integer":case"label_integer_field":return["minimum","maximum"];case"Floating-point number":case"label_float_field":case"Date/Time":case"label_datetime_field":case"Date":case"label_date_field":case"File":case"File Upload":case"Image":case"Yes/No":case"label_boolean_field":case"JSONField":case"Relation Choice":case"Relation List":return[];case"Multiple Choice":case"label_multi_choice_field":case"Choice":case"label_choice_field":return["values"];default:return["minLength","maxLength"]}})(e),"required"]}],properties:R({title:{type:"string",title:t.formatMessage(_.title)},description:{type:"string",widget:"textarea",title:t.formatMessage(_.description)},parentFieldSet:{type:"string",title:t.formatMessage(_.parentFieldSet),choices:(n=s,n.map(e=>[e.id,e.title]))},required:{type:"boolean",title:t.formatMessage(_.required)}},(e=>{switch(e){case"Rich Text":return{maxLength:{type:"integer",title:t.formatMessage(_.maxLength)}};case"URL":case"Password":case"label_password_field":case"Email":case"label_email":return{minLength:{type:"integer",title:t.formatMessage(_.minLength)},maxLength:{type:"integer",title:t.formatMessage(_.maxLength)}};case"Integer":case"label_integer_field":return{minimum:{type:"integer",title:t.formatMessage(_.minimum)},maximum:{type:"integer",title:t.formatMessage(_.maximum)}};case"Floating-point number":case"label_float_field":case"Date/Time":case"label_datetime_field":case"Date":case"label_date_field":case"File":case"File Upload":case"Image":case"Yes/No":case"label_boolean_field":case"JSONField":case"Relation Choice":case"Relation List":return{};case"Multiple Choice":case"label_multi_choice_field":case"Choice":case"label_choice_field":return{values:{type:"string",title:t.formatMessage(_.choices),widget:"textarea"}};default:return{minLength:{type:"integer",title:t.formatMessage(_.minLength)},maxLength:{type:"integer",title:t.formatMessage(_.maxLength)}}}})(e)),required:["type","title"]};var n},F=e=>({fieldsets:[{id:"default",title:e.formatMessage(_.default),fields:["title","id"]}],properties:{id:{type:"string",title:e.formatMessage(_.idTitle),description:e.formatMessage(_.idDescription)},title:{type:"string",title:e.formatMessage(_.title)}},required:["id","title"]}),B=(e,t)=>R({userSelect:"none",background:e?"white":"transparent"},t),z=e=>{const t=e&&e?e.split(/(\r\n|\n|\r)/gm).map(e=>e.trim()).filter(e=>""!==e):null;return t?{values:t}:{}},U=e=>{var t;return null!==e&&void 0!==e&&e.values?e.values.join("\n"):null!==e&&void 0!==e&&e.choices?e.choices.map(e=>e[0]).join("\n"):null!==e&&void 0!==e&&null!==(t=e.items)&&void 0!==t&&t.choices?e.items.choices.map(e=>e[0]).join("\n"):""},H=(e,t)=>{const s=e&&e?e.split(/(\r\n|\n|\r)/gm).map(e=>e.trim()).filter(e=>""!==e).map(e=>[e,e]):null;if(!t)return s?{choices:s}:{};const n=s?{choices:s}:{};return n?{items:n}:{}};class K extends O.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onChangeDefaultValue=this.onChangeDefaultValue.bind(this),this.onAddField=this.onAddField.bind(this),this.onAddFieldset=this.onAddFieldset.bind(this),this.onEditField=this.onEditField.bind(this),this.onEditFieldset=this.onEditFieldset.bind(this),this.onDeleteFieldset=this.onDeleteFieldset.bind(this),this.onDeleteField=this.onDeleteField.bind(this),this.onShowAddField=this.onShowAddField.bind(this),this.onShowAddFieldset=this.onShowAddFieldset.bind(this),this.onShowEditFieldset=this.onShowEditFieldset.bind(this),this.onShowEditField=this.onShowEditField.bind(this),this.onShowDeleteFieldset=this.onShowDeleteFieldset.bind(this),this.onShowDeleteField=this.onShowDeleteField.bind(this),this.onSetCurrentFieldset=this.onSetCurrentFieldset.bind(this),this.onOrderField=this.onOrderField.bind(this),this.onOrderFieldset=this.onOrderFieldset.bind(this),this.onCancel=this.onCancel.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.state={addField:null,addFieldset:null,editFieldset:null,editField:null,deleteFieldset:null,deleteField:null,currentFieldset:0}}onAddField(e){const t=e.title.trim().replace(" ","_"),s=this.props.value.fieldsets[this.state.currentFieldset].fields,n=s.indexOf("changeNote")>-1?[...s.slice(0,s.length-1),t,s[s.length-1]]:[...s,t];this.onChange(R(R({},this.props.value),{},{fieldsets:[...l()(this.props.value.fieldsets,0,this.state.currentFieldset),R(R({},this.props.value.fieldsets[this.state.currentFieldset]),{},{fields:n}),...l()(this.props.value.fieldsets,this.state.currentFieldset+1)],properties:R(R({},this.props.value.properties),{},{[t]:R({title:e.title,description:e.description,id:t},(e=>{switch(e){case"Date/Time":case"label_datetime_field":return{type:"string",widget:"datetime",factory:e};case"Date":case"label_date_field":return{type:"string",widget:"date",factory:e};case"Email":case"label_email":return{type:"string",widget:"email",factory:e};case"File":case"File Upload":return{type:"object",factory:e};case"Floating-point number":case"label_float_field":return{type:"number",factory:e};case"Integer":case"label_integer_field":return{type:"integer",factory:e};case"Image":return{type:"object",factory:e};case"JSONField":return{type:"dict",widget:"json",factory:e};case"Multiple Choice":case"label_multi_choice_field":case"Relation List":return{type:"array",factory:e};case"Choice":case"label_choice_field":return{type:"string",choices:[],factory:e};case"Relation Choice":return{type:"string",factory:e};case"Password":case"label_password_field":return{type:"string",widget:"password",factory:e};case"Rich Text":return{type:"string",widget:"richtext",factory:e};case"URL":return{type:"string",widget:"url",factory:e};case"Yes/No":case"label_boolean_field":return{type:"boolean",factory:e};default:return{type:"string",factory:e}}})(e.factory))}),required:e.required?[...this.props.value.required,t]:this.props.value.required})),this.onCancel()}onAddFieldset(e){this.onChange(R(R({},this.props.value),{},{fieldsets:[...this.props.value.fieldsets,R(R({},e),{},{fields:[]})]})),this.onCancel()}onEditFieldset(e){var t;e.fields=e.fields||(null===(t=this.props.value.fieldsets[this.state.editFieldset])||void 0===t?void 0:t.fields)||[],this.onChange(R(R({},this.props.value),{},{fieldsets:[...l()(this.props.value.fieldsets,0,this.state.editFieldset),e,...l()(this.props.value.fieldsets,this.state.editFieldset+1)]})),this.onCancel()}editFieldset(e,t,s,n,r){return t!==e[s].id?(()=>{const r=e.findIndex(e=>e.id===t),i=e[r].fields.indexOf("changeNote"),a=[...l()(e,0,s),R(R({},e[s]),{},{fields:e[s].fields.filter(e=>e!==n)}),...l()(e,s+1)],o=i>-1?[...a[r].fields.slice(0,i+1),n,a[r].fields[i]]:[...a[r].fields,n];return[...l()(a,0,r),R(R({},a[r]),{},{fields:o}),...l()(a,r+1)]})():[...l()(e,0,s),R(R({},e[s]),{},{fields:u()(e[s].fields,e=>e===n?r:e)}),...l()(e,s+1)]}onEditField(e){var t,s;let n=R({},e);["minLength","maxLength","minimum","maximum"].forEach(t=>{n=R(R({},n),{[t]:e[t]?parseFloat(e[t]):null})});const r="Multiple Choice"===(null===(t=this.props.value.properties[this.state.editField.id])||void 0===t?void 0:t.factory)||"label_multi_choice_field"===(null===(s=this.props.value.properties[this.state.editField.id])||void 0===s?void 0:s.factory),i=R(R({},this.props.value),{},{fieldsets:n.parentFieldSet?this.editFieldset(this.props.value.fieldsets,n.parentFieldSet,this.state.currentFieldset,this.state.editField.id,n.id):this.props.value.fieldsets,properties:R(R({},d()(this.props.value.properties,[this.state.editField.id])),{},{[n.id]:R(R(R(R({},this.props.value.properties[this.state.editField.id]),d()(n,["id","parentFieldSet"])),z(n.values)),H(n.values,r))}),required:n.required?f()(a()(this.props.value.required,this.state.editField.id),[n.id]):a()(this.props.value.required,this.state.editField.id)});this.onChange(i),this.onCancel()}onDeleteFieldset(){this.state.currentFieldset>this.props.value.fieldsets.length-2&&this.setState({currentFieldset:this.state.currentFieldset-1}),this.onChange(R(R({},this.props.value),{},{fieldsets:[...l()(this.props.value.fieldsets,0,this.state.deleteFieldset),...l()(this.props.value.fieldsets,this.state.deleteFieldset+1)],properties:d()(this.props.value.properties,this.props.value.fieldsets[this.state.deleteFieldset].fields)})),this.onCancel()}onDeleteField(){this.onChange(R(R({},this.props.value),{},{fieldsets:[...l()(this.props.value.fieldsets,0,this.state.currentFieldset),R(R({},this.props.value.fieldsets[this.state.currentFieldset]),{},{fields:a()(this.props.value.fieldsets[this.state.currentFieldset].fields,this.state.deleteField)}),...l()(this.props.value.fieldsets,this.state.currentFieldset+1)],properties:d()(this.props.value.properties,[this.state.deleteField])})),this.onCancel()}onChange(e){this.props.onChange(this.props.id,e)}onChangeDefaultValue(e,t){const s=R(R({},this.props.value.properties[e]),{}),n=R(R({},this.props.value.properties),{[e]:s});this.onChange(R(R({},this.props.value),{},{properties:n}))}onCancel(){this.setState({addField:null,addFieldset:null,editFieldset:null,editField:null,deleteFieldset:null,deleteField:null})}onShowAddField(e){this.setState({addField:!0}),e.preventDefault()}onShowAddFieldset(e){this.setState({addFieldset:!0}),e.preventDefault()}onShowEditFieldset(e){this.setState({editFieldset:e})}onShowEditField(e,t){return this.setState({editField:{id:e}})}onShowDeleteFieldset(e){this.setState({deleteFieldset:e})}onShowDeleteField(e){this.setState({deleteField:e})}onSetCurrentFieldset(e){this.setState({currentFieldset:e})}onOrderField(e,t){this.onChange(R(R({},this.props.value),{},{fieldsets:[...l()(this.props.value.fieldsets,0,this.state.currentFieldset),R(R({},this.props.value.fieldsets[this.state.currentFieldset]),{},{fields:w()(this.props.value.fieldsets[this.state.currentFieldset].fields,e,t)}),...l()(this.props.value.fieldsets,this.state.currentFieldset+1)]}))}onOrderFieldset(e,t){const s=R(R({},this.props.value),{},{fieldsets:w()(this.props.value.fieldsets,e,t)});this.setState({currentFieldset:m()(s.fieldsets,{id:s.fieldsets[this.state.currentFieldset].id})}),this.onChange(s)}onDragEnd(e){e.destination&&"fields-schema-edit"===e.destination.droppableId&&this.onOrderField(e.source.index,e.destination.index),e.destination&&"tabs-schema-edit"===e.destination.droppableId&&this.onOrderFieldset(e.source.index,e.destination.index)}render(){const{error:e,reactBeautifulDnd:t}=this.props,{Draggable:s,DragDropContext:n,Droppable:r}=t;if(!this.props.value)return"";const i=this.props.value.fieldsets[this.state.currentFieldset].fields.filter(e=>{return!(!(t=this.props.value.properties[e]).behavior||t.behavior.includes("generated"))&&"changeNote"!==e;var t}),a=this.props.value.fieldsets[this.state.currentFieldset].fields.indexOf("changeNote")>-1,o=i.length,l=a?this.props.value.fieldsets[this.state.currentFieldset].fields.length-1:this.props.value.fieldsets[this.state.currentFieldset].fields.length,c=()=>u()(this.props.value.fieldsets[this.state.currentFieldset].fields.slice(o,l),(e,t)=>Object(I.jsx)(s,{draggableId:e,index:o+t,children:(s,n)=>Object(I.jsx)("div",R(R(R({ref:s.innerRef},s.draggableProps),s.dragHandleProps),{},{style:B(n.isDragging,s.draggableProps.style),children:Object(O.createElement)(T.Z,R(R({},this.props.value.properties[e]),{},{id:e,required:-1!==this.props.value.required.indexOf(e),onEdit:this.onShowEditField,draggable:!0,isDisabled:!1,order:t,onDelete:this.onShowDeleteField,onChange:this.onChangeDefaultValue,key:`${e}-${this.state.currentFieldset}-${t}`,value:this.props.value.properties[e].default}))}))},`${e}-${this.state.currentFieldset}-${t}`)),d=0===this.state.currentFieldset||!this.props.value.fieldsets[this.state.currentFieldset].behavior||this.props.value.fieldsets[this.state.currentFieldset].behavior.includes("generated");return Object(I.jsxs)("div",{children:[Object(I.jsxs)(C.a.Group,{style:{margin:"-1rem"},children:[e.length>0&&u()(e,(e,t)=>Object(I.jsx)(S.a,{icon:"warning",negative:!0,attached:!0,header:this.props.intl.formatMessage(_.error),content:e},`${e}-${t}`)),Object(I.jsxs)(n,{onDragEnd:this.onDragEnd,children:[Object(I.jsx)(r,{droppableId:"tabs-schema-edit",direction:"horizontal",children:(e,t)=>{return Object(I.jsxs)("div",R(R({role:"tablist",className:"ui pointing secondary attached tabular menu",ref:e.innerRef},e.draggableProps),{},{style:(s=t.isDraggingOver,{background:s?"#f4f4f4":"transparent",display:"flex",flexDirection:"row",flexWrap:"wrap"}),children:[u()(this.props.value.fieldsets,(e,t)=>Object(I.jsx)(T.Ib,{title:e.title,order:t,active:t===this.state.currentFieldset,onClick:this.onSetCurrentFieldset,onShowEditFieldset:this.onShowEditFieldset,onShowDeleteFieldset:this.onShowDeleteFieldset,onOrderFieldset:this.onOrderFieldset,getItemStyle:B,isDraggable:!0,isDisabled:!!e.behavior&&!e.behavior.includes("generated")},`${e.id}-${this.state.currentFieldset}-${t}`)),Object(I.jsx)("div",{className:"item item-add",children:Object(I.jsx)("button",{"aria-label":this.props.intl.formatMessage(_.add),className:"item ui noborder button",onClick:this.onShowAddFieldset,children:Object(I.jsx)(M.a,{name:"plus",size:"large"})})}),e.placeholder]}));var s}}),(()=>u()(this.props.value.fieldsets[this.state.currentFieldset].fields.slice(0,o),(e,t)=>Object(I.jsx)("div",{style:{background:"#c7d5d859"},children:Object(I.jsx)(T.Z,R(R({},this.props.value.properties[e]),{},{id:e,required:-1!==this.props.value.required.indexOf(e),onEdit:this.onShowEditField,draggable:!1,isDisabled:!0,order:t,onDelete:this.onShowDeleteField,onChange:this.onChangeDefaultValue,value:this.props.value.properties[e].default}))},`${e}-${this.state.currentFieldset}-${t}`)))(),Object(I.jsx)(r,{droppableId:"fields-schema-edit",direction:"vertical",type:"fixed",children:(e,t)=>{return Object(I.jsxs)("div",R(R({ref:e.innerRef},e.draggableProps),{},{style:(s=t.isDraggingOver,{background:s?"#f4f4f4":"transparent"}),children:[c(),e.placeholder]}));var s}})]}),a?Object(I.jsx)("div",{style:{background:"#c7d5d859"},children:Object(O.createElement)(T.Z,R(R({},this.props.value.properties.changeNote),{},{id:"changeNote",required:-1!==this.props.value.required.indexOf("changeNote"),onEdit:this.onShowEditField,draggable:!1,isDisabled:!0,order:this.props.value.fieldsets[this.state.currentFieldset].length-1,onDelete:this.onShowDeleteField,onChange:this.onChangeDefaultValue,key:"changeNote",value:this.props.value.properties.changeNote.default}))}):null,d&&Object(I.jsx)(k.a.Field,{inline:!0,children:Object(I.jsx)(N.a,{children:Object(I.jsx)(N.a.Row,{stretched:!0,children:Object(I.jsxs)(N.a.Column,{width:"12",children:[Object(I.jsx)("div",{className:"wrapper",children:Object(I.jsx)("label",{htmlFor:"addfield",children:this.props.intl.formatMessage(_.addField)})}),Object(I.jsx)("div",{className:"toolbar",children:Object(I.jsx)("button",{"aria-label":this.props.intl.formatMessage(_.add),id:"addfield",className:"item ui noborder button",onClick:this.onShowAddField,children:Object(I.jsx)(M.a,{name:"plus",color:"blue",size:"large"})})})]})})})})]}),null!==this.state.addField&&Object(I.jsx)(T.vb,{onSubmit:this.onAddField,onCancel:this.onCancel,title:this.props.intl.formatMessage(_.addField),formData:{type:"",id:"",title:""},schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(_.default),fields:["factory","title","description","required"]}],properties:{factory:{type:"string",factory:"Choice",title:this.props.intl.formatMessage(_.type),vocabulary:{"@id":"Fields"}},title:{type:"string",title:this.props.intl.formatMessage(_.title)},description:{type:"string",widget:"textarea",title:this.props.intl.formatMessage(_.description)},required:{type:"boolean",title:this.props.intl.formatMessage(_.required)}},required:["type","title"]}}),null!==this.state.editField&&Object(I.jsx)(T.vb,{onSubmit:this.onEditField,onCancel:this.onCancel,title:this.props.intl.formatMessage(_.editField),formData:R(R({},this.props.value.properties[this.state.editField.id]),{},{id:this.state.editField.id,required:-1!==this.props.value.required.indexOf(this.state.editField.id),parentFieldSet:this.props.value.fieldsets[this.state.currentFieldset].id,values:U(this.props.value.properties[this.state.editField.id])}),schema:q(this.props.value.properties[this.state.editField.id].factory,this.props.intl,this.props.value.fieldsets.filter(e=>!e.behavior||"default"===e.id||e.behavior.includes("generated")))}),null!==this.state.addFieldset&&Object(I.jsx)(T.vb,{onSubmit:this.onAddFieldset,onCancel:this.onCancel,title:this.props.intl.formatMessage(_.addFieldset),formData:{id:"",title:""},schema:F(this.props.intl)}),null!==this.state.editFieldset&&Object(I.jsx)(T.vb,{onSubmit:this.onEditFieldset,onCancel:this.onCancel,title:this.props.intl.formatMessage(_.editFieldset),formData:{id:this.props.value.fieldsets[this.state.editFieldset].id,title:this.props.value.fieldsets[this.state.editFieldset].title},schema:F(this.props.intl)}),null!==this.state.deleteFieldset&&Object(I.jsx)(P.a,{open:!0,content:this.props.intl.formatMessage(_.deleteFieldset),onCancel:this.onCancel,onConfirm:this.onDeleteFieldset}),null!==this.state.deleteField&&Object(I.jsx)(P.a,{open:!0,content:this.props.intl.formatMessage(_.deleteField),onCancel:this.onCancel,onConfirm:this.onDeleteField})]})}}r()(K,"defaultProps",{required:!1,value:{},error:[]}),t.a=Object(y.compose)(D.c,Object(E.a)(["reactBeautifulDnd"]),Object(v.connect)((e,t)=>({value:b()(t.value)?JSON.parse(t.value):t.value}),{}))(K)},rOmE:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M5,31 L31,31 L31,5 L5,5 L5,31 Z M7,29.001 L29.001,29.001 L29.001,7 L7,7 L7,29.001 Z"/><path d="M11 19L25 19 25 17 11 17z"/></g>'}},rXsB:function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return r})),s.d(t,"tb",(function(){return i})),s.d(t,"mb",(function(){return a})),s.d(t,"e",(function(){return o})),s.d(t,"f",(function(){return l})),s.d(t,"g",(function(){return c})),s.d(t,"h",(function(){return d})),s.d(t,"i",(function(){return p})),s.d(t,"k",(function(){return u})),s.d(t,"m",(function(){return h})),s.d(t,"n",(function(){return b})),s.d(t,"p",(function(){return j})),s.d(t,"r",(function(){return m})),s.d(t,"s",(function(){return g})),s.d(t,"t",(function(){return f})),s.d(t,"u",(function(){return O})),s.d(t,"O",(function(){return v})),s.d(t,"v",(function(){return y})),s.d(t,"w",(function(){return x})),s.d(t,"gb",(function(){return w})),s.d(t,"y",(function(){return C})),s.d(t,"o",(function(){return S})),s.d(t,"Db",(function(){return M})),s.d(t,"z",(function(){return k})),s.d(t,"A",(function(){return N})),s.d(t,"B",(function(){return P})),s.d(t,"C",(function(){return L})),s.d(t,"D",(function(){return D})),s.d(t,"E",(function(){return E})),s.d(t,"F",(function(){return T})),s.d(t,"hb",(function(){return I})),s.d(t,"jb",(function(){return A})),s.d(t,"Gb",(function(){return R})),s.d(t,"G",(function(){return _})),s.d(t,"H",(function(){return q})),s.d(t,"Q",(function(){return F})),s.d(t,"q",(function(){return B})),s.d(t,"I",(function(){return z})),s.d(t,"J",(function(){return U})),s.d(t,"K",(function(){return H})),s.d(t,"L",(function(){return K})),s.d(t,"M",(function(){return G})),s.d(t,"N",(function(){return V})),s.d(t,"Ab",(function(){return Z})),s.d(t,"P",(function(){return W})),s.d(t,"R",(function(){return $})),s.d(t,"S",(function(){return Y})),s.d(t,"T",(function(){return J})),s.d(t,"W",(function(){return Q})),s.d(t,"U",(function(){return X})),s.d(t,"V",(function(){return ee})),s.d(t,"X",(function(){return te})),s.d(t,"d",(function(){return se})),s.d(t,"Y",(function(){return ne})),s.d(t,"bb",(function(){return re})),s.d(t,"cb",(function(){return ie})),s.d(t,"db",(function(){return ae})),s.d(t,"fb",(function(){return oe})),s.d(t,"eb",(function(){return le})),s.d(t,"kb",(function(){return ce})),s.d(t,"ib",(function(){return de})),s.d(t,"qb",(function(){return pe})),s.d(t,"ob",(function(){return ue})),s.d(t,"pb",(function(){return he})),s.d(t,"rb",(function(){return be})),s.d(t,"sb",(function(){return je})),s.d(t,"vb",(function(){return me})),s.d(t,"xb",(function(){return ge})),s.d(t,"yb",(function(){return fe})),s.d(t,"Cb",(function(){return Oe})),s.d(t,"Bb",(function(){return ve})),s.d(t,"Eb",(function(){return ye})),s.d(t,"Fb",(function(){return xe})),s.d(t,"Hb",(function(){return we})),s.d(t,"Ib",(function(){return Ce})),s.d(t,"Jb",(function(){return Se})),s.d(t,"wb",(function(){return Me})),s.d(t,"l",(function(){return ke})),s.d(t,"ub",(function(){return Ne})),s.d(t,"nb",(function(){return Pe})),s.d(t,"Z",(function(){return Le})),s.d(t,"x",(function(){return De})),s.d(t,"j",(function(){return Ee})),s.d(t,"c",(function(){return Te})),s.d(t,"lb",(function(){return Ie})),s.d(t,"ab",(function(){return Ae})),s.d(t,"zb",(function(){return Re}));const n="ADD_COMMENT",r="ADD_MESSAGE",i="SET_APIERROR",a="RESET_APIERROR",o="COPY",l="COPY_CONTENT",c="CREATE_CONTENT",d="CREATE_GROUP",p="CREATE_USER",u="CUT",h="DELETE_COMMENT",b="DELETE_CONTENT",j="DELETE_GROUP",m="DELETE_USER",g="EMAIL_NOTIFICATION",f="EMAIL_SEND",O="EXPAND_TOOLBAR",v="INITIAL_PASSWORD",y="GET_BREADCRUMBS",x="GET_CONTENT",w="POST_CONTROLPANEL",C="GET_CONTROLPANEL",S="DELETE_CONTROLPANEL",M="UPDATE_CONTROLPANEL",k="GET_DIFF",N="GET_GROUP",P="GET_HISTORY",L="GET_NAVIGATION",D="GET_QUERYSTRING",E="GET_QUERYSTRING_RESULTS",T="GET_SCHEMA",I="POST_SCHEMA",A="PUT_SCHEMA",R="UPDATE_SCHEMA",_="GET_SHARING",q="GET_TRANSLATION_LOCATOR",F="LINK_TRANSLATION",B="DELETE_TRANSLATION",z="GET_TYPES",U="GET_USER",H="GET_VOCABULARY",K="GET_VOCABULARY_TOKEN_TITLE",G="GET_WORKFLOW",V="GET_WORKFLOW_MULTIPLE",Z="UPDATECOLUMNS_CONTENT",W="INSTALL_ADDON",$="LIST_ACTIONS",Y="LIST_ADDONS",J="LIST_COMMENTS",Q="LIST_MORE_COMMENTS",X="LIST_CONTROLPANELS",ee="LIST_GROUPS",te="LIST_ROLES",se="AUTH_ROLE",ne="LIST_USERS",re="LOGIN",ie="LOGIN_RENEW",ae="LOGOUT",oe="ORDER_CONTENT",le="MOVE_CONTENT",ce="REMOVE_MESSAGE",de="PURGE_MESSAGES",pe="RESET_SEARCH_CONTENT",ue="RESET_CONTENT",he="RESET_PASSWORD",be="REVERT_HISTORY",je="SEARCH_CONTENT",me="SET_SIDEBAR_TAB",ge="TRANSITION_WORKFLOW",fe="UNINSTALL_ADDON",Oe="UPDATE_CONTENT",ve="UPDATE_COMMENT",ye="UPDATE_GROUP",xe="UPDATE_PASSWORD",we="UPDATE_SHARING",Ce="UPDATE_USER",Se="UPGRADE_ADDON",Me="SYSTEM_INFORMATION",ke="DATABASE_INFORMATION",Ne="SET_BLOCKS_CLIPBOARD",Pe="RESET_BLOCKS_CLIPBOARD",Le="LOAD_LAZY_LIBRARY",De="GET_CONTEXT_NAVIGATION",Ee="CREATE_WORKING_COPY",Te="APPLY_WORKING_COPY",Ie="REMOVE_WORKING_COPY",Ae="LOCK_CONTENT",Re="UNLOCK_CONTENT"},"rc+U":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("7tbW"),a=s.n(i),o=s("v8eK"),l=s.n(o),c=s("3WF5"),d=s.n(c),p=s("7GkX"),u=s.n(p),h=s("NIJN"),b=s.n(h),j=s("wig9"),m=s.n(j),g=s("q1tI"),f=(s("17x9"),s("/MKj")),O=s("ANjH"),v=s("umxb"),y=s("lHu7"),x=s("zSVi"),w=s("Kvkj"),C=s("8ZS8"),S=s("9At1"),M=s("nKUr");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P=Object(y.defineMessages)({reservedId:{id:"This is a reserved name and can't be used",defaultMessage:"This is a reserved name and can't be used"},invalidCharacters:{id:'Only lowercase letters (a-z) without accents, numbers (0-9), and the two characters "-" and "_" are allowed.',defaultMessage:'Only lowercase letters (a-z) without accents, numbers (0-9), and the two characters "-" and "_" are allowed.'}});class L extends g.Component{constructor(e){super(e),this.state={error:[],reservedIds:m()(a()(l()(C.a.settings.reservedIds,d()(C.a.settings.nonContentRoutes,e=>String(e).replace(/[^a-z-]/g,"")))))},this.handleChange=this.handleChange.bind(this),this.handleBlur=this.handleBlur.bind(this),this.fieldValidation=this.fieldValidation.bind(this)}componentDidMount(){this.props.focus&&this.node.focus(),this.props.getQuerystring(),this.fieldValidation(this.props.value)}fieldValidation(e){const t=[];-1!==this.state.reservedIds.indexOf(e)&&t.push(this.props.intl.formatMessage(P.reservedId)),/^[a-z0-9_-]*$/.test(e)||t.push(this.props.intl.formatMessage(P.invalidCharacters)),-1!==this.props.indexes.indexOf(e)&&t.push(this.props.intl.formatMessage(P.reservedId)),this.setState({error:t})}handleChange({target:e}){this.fieldValidation(e.value),this.props.onChange(this.props.id,""===e.value?void 0:e.value)}handleBlur({target:e}){this.fieldValidation(e.value),this.props.onBlur(this.props.id,""===e.value?void 0:e.value)}render(){const{id:e,value:t,onClick:s,icon:n,iconAction:r,minLength:i,maxLength:a,placeholder:o}=this.props,l=N(N({},this.props),{},{error:b()(this.props.error,this.state.error)});return Object(M.jsxs)(w.db,N(N({},l),{},{className:"text",children:[Object(M.jsx)(v.a,{id:"field-"+e,name:e,value:t||"",disabled:this.props.isDisabled,icon:n||null,placeholder:o,onChange:this.handleChange,onBlur:this.handleBlur,onClick:()=>s(),ref:e=>{this.node=e},minLength:i||null,maxLength:a||null}),n&&r&&Object(M.jsx)("button",{className:`field-${e}-action-button`,onClick:r,children:Object(M.jsx)(w.jb,{name:n,size:"18px"})})]}))}}r()(L,"defaultProps",{description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},onEdit:null,onDelete:null,focus:!1,icon:null,iconAction:null,minLength:null,maxLength:null}),t.a=Object(O.compose)(x.c,Object(f.connect)((e,t)=>({indexes:u()(e.querystring.indexes)}),{getQuerystring:S.A}))(L)},rccD:function(e,t,s){"use strict";s("q1tI");var n=s("24R3"),r=s("yE/o"),i=(s("8ZS8"),s("nKUr"));t.a=()=>Object(i.jsxs)(r.a,{className:"view-wrapper",style:{fontFamily:"Helvetica, sans-serif",fontSize:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[!1,Object(i.jsxs)(i.Fragment,{children:[Object(i.jsx)("p",{className:"description",style:{textAlign:"center",margin:"20px auto",width:"475px"},children:Object(i.jsx)(n.a,{id:"The backend server of your website is not answering, we apologize for the inconvenience. Please try to re-load the page and try again. If the problem persists please contact the site administrators.",defaultMessage:"The backend server of your website is not answering, we apologize for the inconvenience. Please try to re-load the page and try again. If the problem persists please contact the site administrators."})}),Object(i.jsx)("p",{style:{textAlign:"center"},children:Object(i.jsx)(n.a,{id:"Thank you.",defaultMessage:"Thank you."})})]})]})},rfuH:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M11 11L33 11 33 8.999 11 8.999zM11 19L33 19 33 17 11 17zM11 27L33 27 33 25 11 25zM6.835 13L6.835 8.245 6.773 8.245 5.416 9.199 5.416 8.008 6.835 7.002 8.096 7.002 8.096 13zM8.69463281 21L4.46538477 21 4.46538477 20.0869141 6.40776758 18.0449219C6.65402532 17.7626939 6.83525723 17.5109061 6.95146875 17.2895508 7.06768027 17.0681955 7.12578516 16.875896 7.12578516 16.7126465 7.12578516 16.4802234 7.06698854 16.2948412 6.94939355 16.1564941 6.83179857 16.0181471 6.65540873 15.9489746 6.42021875 15.9489746 6.20993124 15.9489746 6.044609 16.0382071 5.92424707 16.2166748 5.80388514 16.3951425 5.74370508 16.62272 5.74370508 16.8994141L4.37407617 16.8994141 4.36577539 16.8745117C4.35194069 16.3155897 4.53455605 15.8417581 4.91362695 15.4530029 5.29269786 15.0642477 5.7948901 14.869873 6.42021875 14.869873 7.08428457 14.869873 7.60238649 15.0331201 7.97454004 15.3596191 8.34669359 15.6861182 8.53276758 16.1329724 8.53276758 16.7001953 8.53276758 17.0820332 8.43385092 17.4195949 8.23601465 17.7128906 8.03817837 18.0061864 7.67363937 18.441973 7.14238672 19.0202637L6.32475977 19.8959961 6.33721094 19.9208984 8.69463281 19.9208984 8.69463281 21zM5.74370508 25.3933105L6.40361719 25.3933105C6.65540881 25.3933105 6.84909177 25.3255215 6.98467188 25.1899414 7.12025198 25.0543613 7.18804102 24.8662121 7.18804102 24.6254883 7.18804102 24.4345694 7.12716923 24.2740892 7.00542383 24.144043 6.88367843 24.0139967 6.70659687 23.9489746 6.47417383 23.9489746 6.29155573 23.9489746 6.13107556 24.0015457 5.99272852 24.1066895 5.85438147 24.2118332 5.78520898 24.3474113 5.78520898 24.5134277L4.42388086 24.5134277 4.41558008 24.4885254C4.39897843 24.0070777 4.58851104 23.6169449 4.98418359 23.3181152 5.37985615 23.0192856 5.85991319 22.869873 6.42436914 22.869873 7.08013414 22.869873 7.60446158 23.0199773 7.99736719 23.3201904 8.3902728 23.6204035 8.58672266 24.0458143 8.58672266 24.5964355 8.58672266 24.8703627 8.5016405 25.1228423 8.33147363 25.3538818 8.16130677 25.5849214 7.93372929 25.7654616 7.64873438 25.8955078 7.97246646 26.0144863 8.22563776 26.1950265 8.40825586 26.4371338 8.59087396 26.6792411 8.68218164 26.9690738 8.68218164 27.3066406 8.68218164 27.8600288 8.47051384 28.2951237 8.04717188 28.6119385 7.62382991 28.9287532 7.08290108 29.0871582 6.42436914 29.0871582 5.85714625 29.0871582 5.36117953 28.9384374 4.9364541 28.6409912 4.51172867 28.3435451 4.30628639 27.9126005 4.32012109 27.3481445L4.32842188 27.3232422 5.69805078 27.3232422C5.69805078 27.5169281 5.77344879 27.6794834 5.92424707 27.8109131 6.07504535 27.9423428 6.25835244 28.0080566 6.47417383 28.0080566 6.72043157 28.0080566 6.91688143 27.9388842 7.0635293 27.8005371 7.21017717 27.6621901 7.2835 27.4878754 7.2835 27.2775879 7.2835 26.9842922 7.20671854 26.7705492 7.05315332 26.6363525 6.8995881 26.5021559 6.68307822 26.4350586 6.40361719 26.4350586L5.74370508 26.4350586 5.74370508 25.3933105z"/></g>'}},ruTd:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M16 5L16 7 27.586 7 13.293 21.293 14.707 22.707 29 8.414 29 20 31 20 31 5z"/><path d="M23 29L7 29 7 13 18 13 18 11 5 11 5 31 25 31 25 18 23 18z"/></g>'}},ryoy:function(e,t,s){"use strict";s("q1tI");var n=s("55Ip"),r=(s("17x9"),s("yE/o")),i=s("nKUr");const a=({tags:e})=>e&&e.length>0?Object(i.jsx)(r.a,{className:"tags",children:e.map(e=>Object(i.jsx)(n.a,{className:"ui label",to:"/search?Subject="+e,children:e},e))}):Object(i.jsx)("span",{});a.defaultProps={tags:null},t.a=a},siUG:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("nKUr");t.a=({data:e})=>Object(n.jsx)("div",{className:"block html",dangerouslySetInnerHTML:{__html:e.html}})},sx21:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M6.9996,3.0003 L6.9996,33.0003 L29.0006,33.0003 L29.0006,11.5863 L20.4136,3.0003 L6.9996,3.0003 Z M9.0006,5.0003 L19.0006,5.0003 L19.0006,13.0003 L27.0006,13.0003 L27.0006,31.0003 L9.0006,31.0003 L9.0006,5.0003 Z M20.9996,6.4143 L25.5856,11.0003 L20.9996,11.0003 L20.9996,6.4143 Z"/>'}},t0Tt:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M23.707 13.707L22.293 12.293 19 15.586 19 5 17 5 17 15.586 13.707 12.293 12.293 13.707 18 19.414zM9 29L27 29 27 25 9 25 9 29zM7 31L29 31 29 23 7 23 7 31z"/></g>'}},t0qM:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("yZlV")),o=s("MqQV"),l=s("zSVi"),c=s("Kvkj"),d=s("nKUr");function p(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function u(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?p(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const h=e=>{const{id:t,maxLength:s,value:n,onChange:r,placeholder:l}=e,[p,h]=Object(i.useState)("");return Object(d.jsxs)(c.db,u(u({},e),{},{className:"textarea",children:[Object(d.jsx)(a.a,{id:"field-"+t,name:t,value:n||"",disabled:e.isDisabled,placeholder:l,onChange:({target:e})=>((e,t)=>{if(s&(null===t||void 0===t?void 0:t.length)){let e=s-t.length;h(e<0?"You have exceed word limit by "+Math.abs(e):"")}r(e,t)})(t,""===e.value?void 0:e.value)}),p.length>0&&Object(d.jsx)(o.a,{basic:!0,color:"red",pointing:!0,children:p},p)]}))};h.defaultProps={description:null,maxLength:null,required:!1,error:[],value:null,onChange:null,onEdit:null,onDelete:null},t.a=Object(l.c)(h)},tN8b:function(e,t,s){"use strict";var n=s("q1tI"),r=s.n(n),i=(s("17x9"),s("55Ip")),a=s("yE/o"),o=s("3mGJ"),l=s("5XkN"),c=s("TQb9"),d=s("+6Dn"),p=s("fuXp"),u=s("QetY"),h=s("Kvkj"),b=s("MwIl"),j=s.n(b),m=s("EFnn"),g=s.n(m),f=s("qaC+"),O=s.n(f),v=s("zpb6"),y=s("nKUr");class x extends n.Component{constructor(e){super(e),this.state={openIndex:void 0},this.closeModal=this.closeModal.bind(this),this.nextImage=this.nextImage.bind(this),this.prevImage=this.prevImage.bind(this)}closeModal(){this.setState({openIndex:-1})}nextImage(){const e=(this.state.openIndex+1)%this.props.content.items.length;this.setState({openIndex:e})}prevImage(){const e=(this.state.openIndex-1)%this.props.content.items.length;this.setState({openIndex:e})}render(){const{content:e}=this.props;return Object(y.jsx)(a.a,{className:"view-wrapper",children:Object(y.jsxs)("article",{id:"content",children:[Object(y.jsxs)("header",{children:[Object(y.jsx)("h1",{className:"documentFirstHeading",children:e.title}),e.description&&Object(y.jsx)("p",{className:"documentDescription",children:e.description})]}),Object(y.jsx)("section",{id:"content-core",children:Object(y.jsx)(d.a,{doubling:!0,stackable:!0,columns:4,children:e.items&&e.items.map((e,t)=>Object(y.jsx)(r.a.Fragment,{children:e.image&&Object(y.jsxs)(p.a,{className:"gallery",onClose:this.closeModal,open:this.state.openIndex===t,trigger:Object(y.jsx)(d.a.Column,{children:Object(y.jsx)(o.a,{className:"imageborder",children:Object(y.jsx)(l.a,{verticalAlign:"middle",alt:e.image_caption?e.image_caption:e.title,src:Object(v.q)(e.image.scales.preview.download),onClick:()=>{this.setState({openIndex:t})}})})}),closeIcon:!0,children:[Object(y.jsx)(p.a.Header,{children:Object(y.jsx)(d.a,{children:Object(y.jsxs)(d.a.Row,{children:[Object(y.jsx)(c.a,{width:10,children:e.title}),Object(y.jsx)(c.a,{width:2,textAlign:"right",children:Object(y.jsx)(i.a,{to:e.url,title:e["@type"],onClick:this.closeModal,children:Object(y.jsx)(h.jb,{size:"30px",fitted:!0,name:j.a})})})]})})}),Object(y.jsx)(d.a,{centered:!0,verticalAlign:"middle",children:Object(y.jsxs)(d.a.Row,{children:[Object(y.jsx)(d.a.Column,{width:2,textAlign:"center",children:Object(y.jsx)(u.a,{className:"gallery noborder",onClick:this.nextImage,style:{margin:0},children:Object(y.jsx)(h.jb,{name:O.a,className:"circled",size:"30px",style:{margin:0}})})}),Object(y.jsx)(d.a.Column,{width:8,children:Object(y.jsxs)(p.a.Content,{image:!0,children:[Object(y.jsx)(l.a,{wrapped:!0,alt:e.image_caption?e.image_caption:e.title,src:e.image.scales.large.download}),Object(y.jsx)(p.a.Description,{children:Object(y.jsx)("p",{children:e.description})})]})}),Object(y.jsx)(d.a.Column,{width:2,textAlign:"center",children:Object(y.jsx)(u.a,{onClick:this.nextImage,className:"gallery noborder",style:{margin:0},children:Object(y.jsx)(h.jb,{name:g.a,className:"circled",size:"30px",style:{margin:0}})})})]})})]})},e.url))})})]})})}}t.a=x},tZnM:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("k4Da"),l=s.n(o),c=s("NIJN"),d=s.n(c),p=s("q1tI"),u=s.n(p),h=s("17x9"),b=s.n(h),j=s("/MKj"),m=s("ANjH"),g=s("fuXp"),f=s("aQu0"),O=s("ezNy"),v=s("NrgV"),y=s("3mGJ"),x=s("ikXu"),w=s("QetY"),C=s("5XkN"),S=s("D1pA"),M=s("MKeS"),k=s("zuWl"),N=s.n(k),P=s("lHts"),L=s.n(P),D=s("lHu7"),E=s.n(D),T=s("24R3"),I=s("zSVi"),A=s("Kvkj"),R=s("9At1"),_=s("nKUr"),q=s.n(_);function F(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function B(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?F(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):F(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const z=Object(M.a)({resolved:{},chunkName:()=>"react-dropzone",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(20).then(s.bind(null,"yzbm")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yzbm"}}),U=Object(D.defineMessages)({cancel:{id:"Cancel",defaultMessage:"Cancel"},upload:{id:"{count, plural, one {Upload {count} file} other {Upload {count} files}}",defaultMessage:"{count, plural, one {Upload {count} file} other {Upload {count} files}}"}}),H="batch-upload";class K extends p.Component{constructor(e){super(e),r()(this,"onDrop",async e=>{for(let t=0;t<e.length;t++)await Object(P.readAsDataURL)(e[t]).then(s=>{const n=s.match(/^data:(.*);(.*),(.*)$/);e[t].preview=n[0]});this.setState({files:d()(this.state.files,e)})}),this.onRemoveFile=this.onRemoveFile.bind(this),this.onDrop=this.onDrop.bind(this),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={files:[]}}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&(this.props.onOk(),this.setState({files:[]}))}onRemoveFile(e){this.setState({files:l()(this.state.files,(t,s)=>s!==parseInt(e.target.getAttribute("value"),10))})}onCancel(){this.props.onCancel(),this.setState({files:[]})}onSubmit(){Promise.all(a()(this.state.files,e=>Object(P.readAsDataURL)(e))).then(e=>{this.props.createContent(this.props.pathname,a()(this.state.files,(t,s)=>{const n=e[s].match(/^data:(.*);(.*),(.*)$/),r="image"===n[1].split("/")[0];return{"@type":r?"Image":"File",title:t.name,[r?"image":"file"]:{data:n[3],encoding:n[2],"content-type":n[1],filename:t.name}}}),H)})}render(){return this.props.open&&Object(_.jsxs)(g.a,{open:this.props.open,children:[Object(_.jsx)(f.a,{children:Object(_.jsx)(T.a,{id:"Upload files",defaultMessage:"Upload files"})}),Object(_.jsx)(O.a,{active:this.props.request.loading,children:Object(_.jsx)(v.a,{children:Object(_.jsx)(T.a,{id:"Uploading files",defaultMessage:"Uploading files"})})}),Object(_.jsxs)(g.a.Content,{children:[Object(_.jsx)(z,{onDrop:this.onDrop,className:"dropzone",noDragEventsBubbling:!0,multiple:!0,children:({getRootProps:e,getInputProps:t})=>Object(_.jsx)("div",B(B({},e({className:"dashed"})),{},{children:Object(_.jsx)(y.a,{children:Object(_.jsx)(x.a,{basic:"very",children:Object(_.jsx)(x.a.Body,{children:Object(_.jsxs)(x.a.Row,{children:[Object(_.jsx)(x.a.Cell,{children:Object(_.jsx)(T.a,{id:"Drag and drop files from your computer onto this area or click the \u201cBrowse\u201d button.",defaultMessage:"Drag and drop files from your computer onto this area or click the \u201cBrowse\u201d button."})}),Object(_.jsxs)(x.a.Cell,{children:[Object(_.jsx)(w.a,{className:"ui button primary",children:Object(_.jsx)(T.a,{id:"Browse",defaultMessage:"Browse"})}),Object(_.jsx)("input",B({},t({type:"file",style:{display:"none"}})))]})]})})})})}))}),this.state.files.length>0&&Object(_.jsxs)(x.a,{compact:!0,singleLine:!0,children:[Object(_.jsx)(x.a.Header,{children:Object(_.jsxs)(x.a.Row,{children:[Object(_.jsx)(x.a.HeaderCell,{width:8,children:Object(_.jsx)(T.a,{id:"Filename",defaultMessage:"Filename"})}),Object(_.jsx)(x.a.HeaderCell,{width:4,children:Object(_.jsx)(T.a,{id:"Last modified",defaultMessage:"Last modified"})}),Object(_.jsx)(x.a.HeaderCell,{width:4,children:Object(_.jsx)(T.a,{id:"File size",defaultMessage:"File size"})}),Object(_.jsx)(x.a.HeaderCell,{width:4,children:Object(_.jsx)(T.a,{id:"Preview",defaultMessage:"Preview"})}),Object(_.jsx)(x.a.HeaderCell,{})]})}),Object(_.jsx)(x.a.Body,{children:a()(this.state.files,(e,t)=>Object(_.jsxs)(x.a.Row,{className:"upload-row",children:[Object(_.jsx)(x.a.Cell,{children:e.name}),Object(_.jsx)(x.a.Cell,{children:e.lastModifiedDate&&Object(_.jsx)(A.fb,{date:e.lastModifiedDate})}),Object(_.jsx)(x.a.Cell,{children:N()(e.size,{round:0})}),Object(_.jsx)(x.a.Cell,{children:"image"===e.type.split("/")[0]&&Object(_.jsx)(C.a,{src:e.preview,height:60})}),Object(_.jsx)(x.a.Cell,{children:Object(_.jsx)(S.a,{name:"close",value:t,link:!0,onClick:this.onRemoveFile})})]},e.name))})]})]}),Object(_.jsxs)(g.a.Actions,{children:[this.state.files.length>0&&Object(_.jsx)(w.a,{basic:!0,circular:!0,primary:!0,floated:"right",icon:"arrow right","aria-label":this.props.intl.formatMessage(U.upload,{count:this.state.files.length}),onClick:this.onSubmit,title:this.props.intl.formatMessage(U.upload,{count:this.state.files.length}),size:"big"}),Object(_.jsx)(w.a,{basic:!0,circular:!0,secondary:!0,icon:"remove","aria-label":this.props.intl.formatMessage(U.cancel),title:this.props.intl.formatMessage(U.cancel),floated:"right",size:"big",onClick:this.onCancel})]})]})}}t.a=Object(m.compose)(I.c,Object(j.connect)(e=>{var t;return{request:(null===(t=e.content.subrequests)||void 0===t?void 0:t[H])||{}}},{createContent:R.g}))(K)},tbCh:function(e,t,s){"use strict";s.d(t,"b",(function(){return D})),s.d(t,"a",(function(){return E}));var n=s("MKeS"),r=s("9wzT"),i=s("/Ngv"),a=s("MdtH"),o=s("+H0P"),l=s("rc+U"),c=s("uHfn"),d=s("mLwk"),p=s("NtjJ"),u=s("Tdq+"),h=s("r04O"),b=s("CnFW"),j=s("t0qM"),m=s("onP0"),g=s("RmW6"),f=s("wRHO"),O=s("V5N0"),v=s("igyC"),y=s("hWch"),x=s("A9ig"),w=s("gXG4"),C=s("UFgG"),S=s("ZzPe"),M=s("x7ES"),k=s("cgIO"),N=s("z9PY");const P=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-manage-Widgets-DatetimeWidget",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>s.e(9).then(s.bind(null,"f/pJ")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"f/pJ"}}),L=Object(n.a)({resolved:{},chunkName:()=>"plone-volto-components-manage-Widgets-RecurrenceWidget-RecurrenceWidget",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(3),s.e(2)]).then(s.bind(null,"vaF2")),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"vaF2"}}),D={id:{schema:h.a,subjects:g.a,query:u.a,recurrence:L,remoteUrl:O.a,id:l.a},widget:{richtext:f.a,textarea:j.a,datetime:P,date:P,password:c.a,file:o.a,align:r.a,url:O.a,email:v.a,array:i.a,token:g.a,query:d.a,query_sort_on:p.a,querystring:u.a,object_browser:w.a,object:C.a,object_list:S.a,vocabularyterms:M.a,select_querystring_field:k.a,autocomplete:N.a},vocabulary:{"plone.app.vocabularies.Catalog":w.a},factory:{"Relation List":w.a,"Relation Choice":x.a},choices:b.a,type:{boolean:a.a,array:i.a,object:o.a,datetime:P,date:P,password:c.a,number:y.a,integer:y.a,id:l.a}},E=m.a},tfRe:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M18,31 C14.775,31 11.827,29.813 9.553,27.861 L27.861,9.553 C29.813,11.827 31,14.775 31,18 C31,25.168 25.168,31 18,31 M18,5 C21.225,5 24.173,6.187 26.447,8.139 L8.139,26.447 C6.187,24.173 5,21.225 5,18 C5,10.832 10.832,5 18,5 M18,3 C9.729,3 3,9.729 3,18 C3,26.271 9.729,33 18,33 C26.271,33 33,26.271 33,18 C33,9.729 26.271,3 18,3"/>'}},u93t:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("zSVi")),a=s("zVcF"),o=s("nKUr");function l(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function c(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?l(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):l(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=Object(i.c)(({data:e,block:t,onChangeBlock:s,schema:n})=>Object(o.jsx)(a.a,{schema:n,title:n.title,onChangeField:(n,r)=>{s(t,c(c({},e),{},{[n]:r}))},formData:e}))},uHfn:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=(s("q1tI"),s("17x9"),s("umxb")),a=s("Kvkj"),o=s("zSVi"),l=s("nKUr");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function d(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const p=e=>{const{id:t,value:s,onChange:n,onBlur:r,onClick:o,minLength:c,maxLength:p}=e;return Object(l.jsx)(a.db,d(d({},e),{},{children:Object(l.jsx)(i.a,{id:"field-"+t,name:t,type:"password",disabled:e.isDisabled,value:s||"",onChange:({target:e})=>n(t,""===e.value?void 0:e.value),onBlur:({target:e})=>r(t,""===e.value?void 0:e.value),onClick:()=>o(),minLength:c||null,maxLength:p||null,autoComplete:"off"})}))};p.defaultProps={description:null,required:!1,error:[],value:null,onChange:()=>{},onBlur:()=>{},onClick:()=>{},minLength:null,maxLength:null},t.a=Object(o.c)(p)},uXAj:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M5,31 L31,31 L31,5 L5,5 L5,31 Z M7,29.001 L29.001,29.001 L29.001,7 L7,7 L7,29.001 Z"/>'}},ukve:function(e,t,s){"use strict";var n=s("qPyV"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("RBan"),l=s.n(o),c=s("k4Da"),d=s.n(c),p=s("NIJN"),u=s.n(p),h=s("q1tI"),b=(s("17x9"),s("/MKj")),j=s("ANjH"),m=s("lHu7"),g=s("zSVi"),f=s("9At1"),O=s("Kvkj"),v=s("nKUr");const y=Object(m.defineMessages)({default:{id:"Default",defaultMessage:"Default"},stateTitle:{id:"Change State",defaultMessage:"Change State"},includeChildrenTitle:{id:"Change workflow state recursively",defaultMessage:"Change workflow state recursively"},stateDescription:{id:"Select the transition to be used for modifying the items state.",defaultMessage:"Select the transition to be used for modifying the items state."},loadingMessage:{id:"Workflow Change Loading Message",defaultMessage:"Updating workflow states..."}});class x extends h.Component{constructor(e){super(e),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){this.props.getWorkflow(this.props.items)}UNSAFE_componentWillReceiveProps(e){this.props.request.loading&&e.request.loaded&&this.props.onOk()}onSubmit({state:e,include_children:t}){e&&this.props.transitionWorkflow(d()(a()(u()(...a()(this.props.workflows,e=>e.transitions)),e=>e["@id"]),t=>l()(t.split("/"))===e),t)}render(){return this.props.open&&this.props.workflows.length>0&&Object(v.jsx)(O.vb,{open:this.props.open,loading:this.props.request.loading,loadingMessage:this.props.intl.formatMessage(y.loadingMessage),onSubmit:this.onSubmit,onCancel:this.props.onCancel,title:this.props.intl.formatMessage(y.stateTitle),schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(y.default),fields:["state","include_children"]}],properties:{state:{description:this.props.intl.formatMessage(y.stateDescription),title:this.props.intl.formatMessage(y.stateTitle),type:"string",choices:a()(r()(u()(...a()(this.props.workflows,e=>e.transitions)),e=>e.title),e=>[l()(e["@id"].split("/")),e.title])},include_children:{title:this.props.intl.formatMessage(y.includeChildrenTitle),type:"boolean"}},required:[]}})}}t.a=Object(j.compose)(g.c,Object(b.connect)(e=>({request:e.workflow.transition,workflows:e.workflow.multiple}),{getWorkflow:f.J,transitionWorkflow:f.qb}))(x)},vIza:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("QILm"),a=s.n(i),o=(s("q1tI"),s("17x9"),s("55Ip")),l=s("/MKj"),c=s("5IEt"),d=s("Ty5D"),p=s("8ZS8"),u=s("nKUr");const h=["href","item","openLinkInNewTab","download","children","className","title"];function b(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function j(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?b(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):b(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{var t,s;let{href:n,item:r=null,openLinkInNewTab:i,download:b=!1,children:m,className:g=null,title:f=null}=e,O=a()(e,h);const v=Object(l.useSelector)(e=>{var t;return null===(t=e.userSession)||void 0===t?void 0:t.token});let y=n;if(!n&&r)if(r["@id"]){y=Object(c.d)(r["@id"]);let e=r.remoteUrl||r.getRemoteUrl;!v&&e&&(y=e),!v&&p.a.settings.downloadableObjects.includes(r["@type"])&&(y+="/@@download/file")}else console.error("Invalid item passed to UniversalLink",r,O,m),y="#";const x=(null===(t=(null!==(s=p.a.settings.externalRoutes)&&void 0!==s?s:[]).find(e=>Object(d.g)(Object(c.d)(y),e.match)))||void 0===t?void 0:t.length)>0,w=!Object(c.j)(y)||x,C=!w&&y.includes("@@download")||b;return w?Object(u.jsx)("a",j(j({href:y,title:f,target:c.a.isMail(y)||!1===i?null:"_blank",rel:"noopener noreferrer",className:g},O),{},{children:m})):C?Object(u.jsx)("a",j(j({href:Object(c.d)(y),download:!0,title:f,className:g},O),{},{children:m})):Object(u.jsx)(o.a,j(j({to:Object(c.d)(y),target:null!==i&&void 0!==i&&i?"_blank":null,title:f,className:g},O),{},{children:m}))}},vLsE:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M6.9996,3.0003 L6.9996,33.0003 L29.0006,33.0003 L29.0006,11.5863 L20.4136,3.0003 L6.9996,3.0003 Z M9.0006,5.0003 L19.0006,5.0003 L19.0006,13.0003 L27.0006,13.0003 L27.0006,31.0003 L9.0006,31.0003 L9.0006,5.0003 Z M20.9996,6.4143 L25.5856,11.0003 L20.9996,11.0003 L20.9996,6.4143 Z"/><path d="M19 16L17 16 17 20 13 20 13 22 17 22 17 26 19 26 19 22 23 22 23 20 19 20z"/></g>'}},vLxO:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M18.0003,2.9998 L4.9993,10.5828 L4.9993,25.7318 L18.0003,33.3158 L31.0003,25.7318 L31.0003,10.5828 L18.0003,2.9998 Z M19.0003,5.8988 L28.0693,11.1888 L19.0003,16.4248 L19.0003,5.8988 Z M7.9303,11.1888 L17.0003,5.8988 L17.0003,16.4248 L7.9303,11.1888 Z M20.0003,18.1578 L29.0003,12.9618 L29.0003,23.3538 L20.0003,18.1578 Z M6.9993,12.9618 L15.9993,18.1578 L6.9993,23.3538 L6.9993,12.9618 Z M19.0003,19.8898 L28.0693,25.1258 L19.0003,30.4168 L19.0003,19.8898 Z M7.9303,25.1258 L17.0003,19.8898 L17.0003,30.4168 L7.9303,25.1258 Z"/>'}},w3Ui:function(e,t,s){"use strict";function n(e){switch(e){case!0:case"true":case"True":case 1:case"1":case"on":case"yes":return!0;default:return!1}}function r(e){return!(!e.widgetOptions||!e.widgetOptions.vocabulary)&&e.widgetOptions.vocabulary["@id"]}function i(e){return!!e.vocabulary&&e.vocabulary["@id"]}function a(e){return!(!e.items||!e.items.vocabulary)&&e.items.vocabulary["@id"]}function o(e){return e.indexOf("@vocabularies")>-1?e.split("@vocabularies/")[1]:e}s.d(t,"a",(function(){return n})),s.d(t,"c",(function(){return r})),s.d(t,"b",(function(){return i})),s.d(t,"d",(function(){return a})),s.d(t,"e",(function(){return o}))},wDHP:function(e,t){e.exports={attributes:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},content:'<path d="M9 5H15V15H17V3H7V21H11V19H9V5Z" fill="currentcolor"/><path d="M16.0001 21.4142L14.2072 23.2071L12.793 21.7929L14.5859 20L12.793 18.2071L14.2072 16.7929L16.0001 18.5858L17.793 16.7929L19.2072 18.2071L17.4143 20L19.2072 21.7929L17.793 23.2071L16.0001 21.4142Z"/>'}},wNa6:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("ANjH"),a=s("sINF"),o=s("/TnQ"),l=s("tRgb"),c=s("u4tm"),d=s("lZPy"),p=s("8ZS8"),u=s("5m5G"),h=s("rXsB");function b(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function j(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?b(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):b(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const m={error:null,actions:{object:[],object_buttons:[],site_actions:[],user:[],document_actions:[],portal_tabs:[]},loaded:!1,loading:!1};function g(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function f(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?g(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const O={error:null,installedAddons:[],availableAddons:[],upgradableAddons:[],loaded:!1,loading:!1};function v(e,t){const s=e.title.toUpperCase(),n=t.title.toUpperCase();return s<n?-1:s>n?1:0}function y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function x(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?y(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const w={error:null,statusCode:null,connectionRefused:!1,message:null};var C=s("3WF5"),S=s.n(C),M=s("zpb6");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P={error:null,items:[],root:null,loaded:!1,loading:!1};const L={name:null,version:null,os:null};function D(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function E(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?D(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):D(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const T={add:{loaded:!1,loading:!1,error:null},delete:{loaded:!1,loading:!1,error:null},update:{loaded:!1,loading:!1,error:null},list:{loaded:!1,loading:!1,error:null},items:[],items_total:null,next:null};function I(e){return e.split("_")[0].toLowerCase()}var A=s("Puqe"),R=s.n(A),_=s("RHI1"),q=s.n(_);function F(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function B(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?F(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):F(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const z={create:{loaded:!1,loading:!1,error:null},delete:{loaded:!1,loading:!1,error:null},get:{loaded:!1,loading:!1,error:null},order:{loaded:!1,loading:!1,error:null},update:{loaded:!1,loading:!1,error:null},updatecolumns:{loaded:!1,loading:!1,error:null},lock:{loaded:!1,loading:!1,error:null},unlock:{loaded:!1,loading:!1,error:null},data:null,subrequests:{}};function U(e){return e.split("_")[0].toLowerCase()}function H(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function K(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?H(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):H(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const G={get:{loaded:!1,loading:!1,error:null},list:{loaded:!1,loading:!1,error:null},update:{loaded:!1,loading:!1,error:null},post:{loaded:!1,loading:!1,error:null},delete:{loaded:!1,loading:!1,error:null},controlpanel:null,controlpanels:[],systeminformation:null,databaseinformation:null};function V(e){return e.split("_")[0].toLowerCase()}function Z(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function W(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Z(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const $={action:null,source:null,request:{loaded:!1,loading:!1,error:null}};function Y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function J(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Q={error:null,data:[],loaded:!1,loading:!1};function X(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function ee(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?X(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):X(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const te={error:null,loaded:!1,loading:!1};function se(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function ne(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?se(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):se(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const re={error:null,loaded:!1,loading:!1};const ie={};function ae(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function oe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ae(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const le={entries:[],get:{error:null,loaded:!1,loading:!1},revert:{error:null,loaded:!1,loading:!1}};function ce(e){return e.split("_")[0].toLowerCase()}function de(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function pe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?de(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):de(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const ue={create:{loaded:!1,loading:!1,error:null},delete:{loaded:!1,loading:!1,error:null},get:{loaded:!1,loading:!1,error:null},list:{loaded:!1,loading:!1,error:null},update:{loaded:!1,loading:!1,error:null},groups:[],group:{}};function he(e){return e.split("_")[0].toLowerCase()}var be=s("k4Da"),je=s.n(be),me=s("NIJN"),ge=s.n(me);function fe(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Oe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):fe(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const ve={messages:[]};function ye(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function xe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ye(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const we={error:null,items:[],loaded:!1,loading:!1};function Ce(e){return S()(e,e=>xe({title:e.title,url:Object(M.q)(e["@id"])},e.items&&{items:Ce(e.items)}))}function Se(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Me(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Se(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const ke={error:null,indexes:{},sortable_indexes:{},loaded:!1,loading:!1};function Ne(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Pe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ne(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Le={error:null,items:[],total:0,loaded:!1,loading:!1,batching:{},subrequests:{}};function De(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ee(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?De(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):De(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Te={error:null,roles:[],loaded:!1,loading:!1};var Ie=s("QkVN"),Ae=s.n(Ie),Re=s("Z0cm"),_e=s.n(Re),qe=s("d8FT"),Fe=s.n(qe),Be=s("7GkX"),ze=s.n(Be),Ue=s("TYy9"),He=s.n(Ue);function Ke(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Ge(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ke(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Ve={error:null,loaded:!1,loading:!1,schema:null,post:{loaded:!1,loading:!1,error:null},update:{loaded:!1,loading:!1,error:null},put:{loaded:!1,loading:!1,error:null}};function Ze(e){return e.split("_")[0].toLowerCase()}function We(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function $e(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?We(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):We(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Ye={error:null,items:[],total:0,loaded:!1,loading:!1,batching:{},subrequests:{}};function Je(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Qe(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Je(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Xe={update:{loaded:!1,loading:!1,error:null},get:{loaded:!1,loading:!1,error:null},data:{available_roles:[],entries:[],inherit:null}};function et(e){return e.split("_")[0].toLowerCase()}function tt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function st(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):tt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const nt={tab:0};function rt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function it(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):rt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const at={error:null,loaded:!1,loading:!1,types:[]};var ot=s("Xdxp"),lt=s.n(ot);function ct(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function dt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ct(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const pt={user:{},users:[],create:{error:null,loaded:!1,loading:!1},get:{error:null,loaded:!1,loading:!1},list:{error:null,loaded:!1,loading:!1},delete:{error:null,loaded:!1,loading:!1},update:{error:null,loaded:!1,loading:!1},update_password:{error:null,loaded:!1,loading:!1},password:{error:null,loaded:!1,loading:!1},initial:{error:null,loaded:!1,loading:!1},reset:{error:null,loaded:!1,loading:!1}};function ut(e){return lt()(e,"UPDATE_PASSWORD")?"update_password":e.split("_")[0].toLowerCase()}function ht(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function bt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ht(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const jt={authenticatedRole:null};function mt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function gt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):mt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const ft={token:null,login:{loaded:!1,loading:!1,error:null}};function Ot(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function vt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ot(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const yt={};function xt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function wt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Ct={get:{loaded:!1,loading:!1,error:null},transition:{loaded:!1,loading:!1,error:null},history:[],transitions:[],multiple:[]};function St(e){return e.split("_")[0].toLowerCase()}const Mt={expanded:!1};function kt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}const Nt={};function Pt(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Lt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Pt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Dt={};function Et(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function Tt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Et(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function It(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function At(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?It(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):It(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Rt={loaded:!1,loadState:{}};function _t(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function qt(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):_t(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const Ft={info:{},apply:{loaded:!1,loading:!1,error:null},create:{loaded:!1,loading:!1,error:null},remove:{loaded:!1,loading:!1,error:null}};function Bt(e){return e.split("_")[0].toLowerCase()}var zt={intl:u.intlReducer,reduxAsyncConnect:function(e=Rt,t={}){const{key:s,data:n,error:r}=t;switch(t.type){case"@redux-conn/BEGIN_GLOBAL_LOAD":return At(At({},e),{},{loaded:!1});case"@redux-conn/END_GLOBAL_LOAD":return At(At({},e),{},{loaded:!0});case"@redux-conn/LOAD":return At(At({},e),{},{loadState:At(At({},e.loadState),{},{[s]:{loading:!0,loaded:!1}})});case"@redux-conn/LOAD_SUCCESS":return At(At({},e),{},{loadState:At(At({},e.loadState),{},{[s]:{loading:!1,loaded:!0,error:null}}),[s]:n});case"@redux-conn/LOAD_FAIL":return At(At({},e),{},{loadState:At(At({},e.loadState),{},{[s]:{loading:!1,loaded:!1,error:r}})});case"@redux-conn/CLEAR":return At(At({},e),{},{loadState:At(At({},e.loadState),{},{[s]:{loading:!1,loaded:!1,error:null}}),[s]:null})}return e},actions:function(e=m,t={}){switch(t.type){case h.R+"_PENDING":return j(j({},e),{},{error:null,loaded:!1,loading:!0});case h.R+"_SUCCESS":return j(j({},e),{},{error:null,actions:t.result,loaded:!0,loading:!1});case h.R+"_FAIL":return j(j({},e),{},{error:t.error,actions:{},loaded:!1,loading:!1});default:return e}},addons:function(e=O,t={}){switch(t.type){case h.P+"_PENDING":case h.S+"_PENDING":case h.yb+"_PENDING":return f(f({},e),{},{error:null,loaded:!1,loading:!0});case h.S+"_SUCCESS":return f(f({},e),{},{error:null,installedAddons:t.result.items.filter(e=>!0===e.is_installed).sort(v),availableAddons:t.result.items.filter(e=>!1===e.is_installed).sort(v),upgradableAddons:t.result.items.filter(e=>!0===e.upgrade_info.available).sort(v),loaded:!0,loading:!1});case h.P+"_SUCCESS":case h.yb+"_SUCCESS":return f(f({},e),{},{error:null,loaded:!0,loading:!1});case h.P+"_FAIL":case h.S+"_FAIL":case h.yb+"_FAIL":return f(f({},e),{},{error:t.error,installedAddons:[],availableAddons:[],upgradableAddons:[],loaded:!1,loading:!1});default:return e}},apierror:function(e=w,t={}){switch(t.type){case h.tb:return x(x({},e),{},{error:t.error,statusCode:t.statusCode,message:t.message,connectionRefused:t.connectionRefused});case h.mb:return x(x({},e),{},{error:null,statusCode:null,message:null,connectionRefused:!1});default:return e}},breadcrumbs:function(e=P,t={}){switch(t.type){case h.v+"_PENDING":return N(N({},e),{},{error:null,loaded:!1,loading:!0});case h.v+"_SUCCESS":return N(N({},e),{},{error:null,items:S()(t.result.items,e=>({title:e.title,url:Object(M.q)(e["@id"])})),root:Object(M.q)(t.result.root),loaded:!0,loading:!1});case h.v+"_FAIL":return N(N({},e),{},{error:t.error,items:[],loaded:!1,loading:!1});default:return e}},browserdetect:function(e=L,t={}){return e},comments:function(e=T,t={}){var s,n;switch(t.type){case h.a+"_PENDING":case h.m+"_PENDING":case h.Bb+"_PENDING":case h.T+"_PENDING":case h.W+"_PENDING":return E(E({},e),{},{[I(t.type)]:{loading:!0,loaded:!1,error:null}});case h.T+"_SUCCESS":return E(E({},e),{},{items:t.result.items,next:null===(s=t.result.batching)||void 0===s?void 0:s.next,items_total:t.result.items_total,[I(t.type)]:{loading:!1,loaded:!0,error:null}});case h.W+"_SUCCESS":return E(E({},e),{},{items:[...e.items,...t.result.items],next:null===(n=t.result.batching)||void 0===n?void 0:n.next,[I(t.type)]:{loading:!1,loaded:!0,error:null}});case h.a+"_SUCCESS":case h.m+"_SUCCESS":case h.Bb+"_SUCCESS":return E(E({},e),{},{[I(t.type)]:{loading:!1,loaded:!0,error:null}});case h.T+"_FAIL":return E(E({},e),{},{items:[],items_total:null,next:null,[I(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.W+"_FAIL":case h.a+"_FAIL":return E(E({},e),{},{[I(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},content:function(e=z,t={}){var s,n,r,i;let{result:a}=t;switch(t.type){case""+h.Ab:return B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!0,error:null,idx:t.indexcolumns}});case h.g+"_PENDING":case h.ab+"_PENDING":case h.n+"_PENDING":case h.zb+"_PENDING":case h.Cb+"_PENDING":case h.w+"_PENDING":case h.fb+"_PENDING":return t.subrequest?B(B({},e),{},{subrequests:B(B({},e.subrequests),{},{[t.subrequest]:B(B({},e.subrequests[t.subrequest]||{data:null}),{},{loaded:!1,loading:!0,error:null})})}):B(B({},e),{},{[U(t.type)]:{loading:!0,loaded:!1,error:null}});case h.g+"_SUCCESS":a["@static_behaviors"]&&S()(a["@static_behaviors"],e=>{a=B(B({},R()(a,e)),q()(a[e],(t,s)=>`${e}.${s}`))});const o=t.subrequest&&Array.isArray(a)?a.map(e=>B(B({},e),{},{url:Object(M.q)(e["@id"])})):B(B({},a),{},{items:t.result&&t.result.items&&t.result.items.map(e=>B(B({},e),{},{url:Object(M.q)(e["@id"])}))});return t.subrequest?B(B({},e),{},{subrequests:B(B({},e.subrequests),{},{[t.subrequest]:{loading:!1,loaded:!0,error:null,data:o}})}):B(B({},e),{},{data:o,[U(t.type)]:{loading:!1,loaded:!0,error:null}});case h.w+"_SUCCESS":return a["@static_behaviors"]&&S()(a["@static_behaviors"],e=>{a=B(B({},R()(a,e)),q()(a[e],(t,s)=>`${e}.${s}`))}),t.subrequest?B(B({},e),{},{subrequests:B(B({},e.subrequests),{},{[t.subrequest]:{loading:!1,loaded:!0,error:null,data:B(B({},a),{},{items:t.result&&t.result.items&&t.result.items.map(e=>B(B({},e),{},{url:Object(M.q)(e["@id"])}))})}})}):B(B({},e),{},{data:B(B({},a),{},{items:t.result&&t.result.items&&t.result.items.map(e=>B(B({},e),{},{url:Object(M.q)(e["@id"])}))}),[U(t.type)]:{loading:!1,loaded:!0,error:null}});case h.n+"_SUCCESS":case h.fb+"_SUCCESS":return B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!0,error:null,sort:{on:null===(s=t.sort)||void 0===s?void 0:s.on,order:null===(n=t.sort)||void 0===n?void 0:n.order},index:t.index}});case h.zb+"_SUCCESS":return B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!0,error:null},data:B(B({},e.data),{},{lock:B({},a)})});case h.Cb+"_SUCCESS":return B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!0,error:null,sort:{on:null===(r=t.sort)||void 0===r?void 0:r.on,order:null===(i=t.sort)||void 0===i?void 0:i.order}}});case h.ab+"_SUCCESS":return B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!0,error:null},data:B(B({},e.data),{},{lock:B({},a)})});case h.g+"_FAIL":case h.ab+"_FAIL":case h.n+"_FAIL":case h.zb+"_FAIL":case h.w+"_FAIL":case h.fb+"_FAIL":return t.subrequest?B(B({},e),{},{subrequests:B(B({},e.subrequests),{},{[t.subrequest]:{data:null,loading:!1,loaded:!1,error:t.error}})}):B(B({},e),{},{data:null,[U(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.Cb+"_FAIL":return t.subrequest?B(B({},e),{},{subrequests:B(B({},e.subrequests),{},{[t.subrequest]:{loading:!1,loaded:!1,error:t.error}})}):B(B({},e),{},{[U(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.ob:return t.subrequest?B(B({},e),{},{subrequests:R()(e.subrequests,t.subrequest)}):B(B({},e),{},{data:null});default:return e}},controlpanels:function(e=G,t={}){switch(t.type){case h.y+"_PENDING":case h.U+"_PENDING":case h.wb+"_PENDING":case h.l+"_PENDING":return K(K({},e),{},{controlpanel:null,[V(t.type)]:{loading:!0,loaded:!1,error:null}});case h.gb+"_PENDING":case h.Db+"_PENDING":case h.o+"_PENDING":return K(K({},e),{},{[V(t.type)]:{loading:!0,loaded:!1,error:null}});case h.y+"_SUCCESS":return K(K({},e),{},{controlpanel:K(K({},t.result),{},{"@id":Object(M.q)(t.result["@id"])}),[V(t.type)]:{loading:!1,loaded:!0,error:null}});case h.gb+"_SUCCESS":case h.Db+"_SUCCESS":case h.o+"_SUCCESS":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:null}});case h.U+"_SUCCESS":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:null},controlpanels:t.result});case h.wb+"_SUCCESS":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:null},systeminformation:t.result});case h.wb+"_FAIL":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:t.error}});case h.l+"_SUCCESS":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:null},databaseinformation:t.result});case h.l+"_FAIL":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!0,error:t.error}});case h.y+"_FAIL":return K(K({},e),{},{controlpanel:null,[V(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.U+"_FAIL":return K(K({},e),{},{controlpanels:[],[V(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.gb+"_FAIL":case h.Db+"_FAIL":case h.o+"_FAIL":return K(K({},e),{},{[V(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},clipboard:function(e=$,t={}){switch(t.type){case h.e:return W(W({},e),{},{action:"copy",source:t.source});case h.k:return W(W({},e),{},{action:"cut",source:t.source});case h.f+"_PENDING":case h.eb+"_PENDING":return W(W({},e),{},{request:{loading:!0,loaded:!1,error:null}});case h.f+"_SUCCESS":case h.eb+"_SUCCESS":return W(W({},e),{},{request:{loading:!1,loaded:!0,error:null}});case h.f+"_FAIL":case h.eb+"_FAIL":return W(W({},e),{},{request:{loading:!1,loaded:!1,error:t.error}});default:return e}},diff:function(e=Q,t={}){switch(t.type){case h.z+"_PENDING":return J(J({},e),{},{error:null,loaded:!1,loading:!0});case h.z+"_SUCCESS":return J(J({},e),{},{error:null,data:t.result,loaded:!0,loading:!1});case h.z+"_FAIL":return J(J({},e),{},{error:t.error,data:[],loaded:!1,loading:!1});default:return e}},emailNotification:function(e=te,t={}){switch(t.type){case h.s+"_PENDING":return ee(ee({},e),{},{error:null,loaded:!1,loading:!0});case h.s+"_SUCCESS":return ee(ee({},e),{},{error:null,loaded:!0,loading:!1});case h.s+"_FAIL":return ee(ee({},e),{},{error:t.error,loaded:!1,loading:!1});default:return e}},emailSend:function(e=re,t={}){switch(t.type){case h.t+"_PENDING":return ne(ne({},e),{},{error:null,loaded:!1,loading:!0});case h.t+"_SUCCESS":return ne(ne({},e),{},{error:null,loaded:!0,loading:!1});case h.t+"_FAIL":return ne(ne({},e),{},{error:t.error,loaded:!1,loading:!1});default:return e}},form:function(e=ie){return e},groups:function(e=ue,t={}){switch(t.type){case h.h+"_PENDING":case h.p+"_PENDING":case h.A+"_PENDING":case h.V+"_PENDING":case h.Eb+"_PENDING":return pe(pe({},e),{},{[he(t.type)]:{loading:!0,loaded:!1,error:null}});case h.A+"_SUCCESS":return pe(pe({},e),{},{group:t.result,[he(t.type)]:{loading:!1,loaded:!0,error:null}});case h.V+"_SUCCESS":return pe(pe({},e),{},{groups:t.result,[he(t.type)]:{loading:!1,loaded:!0,error:null}});case h.h+"_SUCCESS":case h.p+"_SUCCESS":case h.Eb+"_SUCCESS":return pe(pe({},e),{},{[he(t.type)]:{loading:!1,loaded:!0,error:null}});case h.h+"_FAIL":case h.p+"_FAIL":case h.Eb+"_FAIL":return pe(pe({},e),{},{[he(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.A+"_FAIL":return pe(pe({},e),{},{group:{},[he(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.V+"_FAIL":return pe(pe({},e),{},{groups:[],[he(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},history:function(e=le,t={}){switch(t.type){case h.B+"_PENDING":case h.rb+"_PENDING":return oe(oe({},e),{},{[ce(t.type)]:{loading:!0,loaded:!1,error:null}});case h.B+"_SUCCESS":return oe(oe({},e),{},{entries:t.result,[ce(t.type)]:{loading:!1,loaded:!0,error:null}});case h.rb+"_SUCCESS":return oe(oe({},e),{},{[ce(t.type)]:{loading:!1,loaded:!0,error:null}});case h.B+"_FAIL":case h.rb+"_FAIL":return oe(oe({},e),{},{entries:[],[ce(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},messages:function(e=ve,t={}){switch(t.type){case h.b:return{messages:ge()([{id:t.id,title:t.title,body:t.body,level:t.level,show:t.show}],e.messages)};case h.kb:return{messages:je()(e.messages,(s,n)=>-1===t.index?n!==e.messages.length-1:n!==t.index)};case h.ib:return{messages:S()(je()(e.messages,e=>e.show),e=>Oe(Oe({},e),{},{show:!1}))};default:return e}},navigation:function(e=we,t={}){switch(t.type){case h.C+"_PENDING":return xe(xe({},e),{},{error:null,loaded:!1,loading:!0});case h.C+"_SUCCESS":return xe(xe({},e),{},{error:null,items:Ce(t.result.items),loaded:!0,loading:!1});case h.C+"_FAIL":return xe(xe({},e),{},{error:t.error,items:[],loaded:!1,loading:!1});default:return e}},querystring:function(e=ke,t={}){switch(t.type){case h.D+"_PENDING":return Me(Me({},e),{},{error:null,loaded:!1,loading:!0});case h.D+"_SUCCESS":return Me(Me({},e),{},{error:null,indexes:t.result.indexes,sortable_indexes:t.result.sortable_indexes,loaded:!0,loading:!1});case h.D+"_FAIL":return Me(Me({},e),{},{error:t.error,indexes:{},sortable_indexes:{},loaded:!1,loading:!1});default:return e}},querystringsearch:function(e=Le,t={}){switch(t.type){case"GET_QUERYSTRING_RESULTS_PENDING":return t.subrequest?Pe(Pe({},e),{},{subrequests:Pe(Pe({},e.subrequests),{},{[t.subrequest]:Pe(Pe({},e.subrequests[t.subrequest]||{items:[],total:0,batching:{}}),{},{items:[],total:0,error:null,loaded:!1,loading:!0})})}):Pe(Pe({},e),{},{error:null,loading:!0,loaded:!1});case"GET_QUERYSTRING_RESULTS_SUCCESS":return t.subrequest?Pe(Pe({},e),{},{subrequests:Pe(Pe({},e.subrequests),{},{[t.subrequest]:{error:null,items:S()(t.result.items,e=>Pe(Pe({},e),{},{"@id":Object(M.q)(e["@id"])})),total:t.result.items_total,loaded:!0,loading:!1,batching:Pe({},t.result.batching)}})}):Pe(Pe({},e),{},{error:null,items:S()(t.result.items,e=>Pe(Pe({},e),{},{"@id":Object(M.q)(e["@id"])})),total:t.result.items_total,loaded:!0,loading:!1,batching:Pe({},t.result.batching)});case"GET_QUERYSTRING_RESULTS_FAIL":return t.subrequest?Pe(Pe({},e),{},{subrequests:Pe(Pe({},e.subrequests),{},{[t.subrequest]:{error:t.error,items:[],total:0,loading:!1,loaded:!1,batching:{}}})}):Pe(Pe({},e),{},{error:t.error,items:[],total:0,loading:!1,loaded:!1,batching:{}});case"RESET_QUERYSTRING_RESULTS":return t.subrequest?Pe(Pe({},e),{},{subrequests:R()(e.subrequests,[t.subrequest])}):Pe(Pe({},e),{},{error:null,items:[],total:0,loading:!1,loaded:!1,batching:{}});default:return e}},roles:function(e=Te,t={}){switch(t.type){case h.X+"_PENDING":return Ee(Ee({},e),{},{error:null,loaded:!1,loading:!0});case h.X+"_SUCCESS":return Ee(Ee({},e),{},{error:null,roles:t.result,loaded:!0,loading:!1});case h.X+"_FAIL":return Ee(Ee({},e),{},{error:t.error,roles:[],loaded:!1,loading:!1});default:return e}},schema:function(e=Ve,t={}){switch(t.type){case h.F+"_PENDING":return Ge(Ge({},e),{},{error:null,loading:!0,loaded:!1});case h.hb+"_PENDING":case h.jb+"_PENDING":case h.Gb+"_PENDING":return Ge(Ge({},e),{},{[Ze(t.type)]:{loading:!0,loaded:!1,error:null}});case h.F+"_SUCCESS":return Ge(Ge({},e),{},{error:null,loading:!1,loaded:!0,schema:Ge(Ge({},t.result),{},{required:[...t.result.required,...He()(S()(ze()(Fe()(t.result.properties,_e.a)),e=>S()(t.result.definitions[e].required,t=>`${e}.${t}`)))],properties:Ge(Ge({},t.result.properties),Ae()(...S()(ze()(Fe()(t.result.properties,_e.a)),e=>q()(t.result.definitions[e].properties,(t,s)=>`${e}.${s}`))))})});case h.hb+"_SUCCESS":case h.jb+"_SUCCESS":case h.Gb+"_SUCCESS":return Ge(Ge({},e),{},{[Ze(t.type)]:{loading:!1,loaded:!0,error:null}});case h.F+"_FAIL":return Ge(Ge({},e),{},{error:t.error,loading:!1,loaded:!1,schema:null});case h.hb+"_FAIL":case h.jb+"_FAIL":case h.Gb+"_FAIL":return Ge(Ge({},e),{},{[Ze(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},search:function(e=Ye,t={}){switch(t.type){case h.sb+"_PENDING":return t.subrequest?$e($e({},e),{},{subrequests:$e($e({},e.subrequests),{},{[t.subrequest]:$e($e({},e.subrequests[t.subrequest]||{items:[],total:0,batching:{}}),{},{error:null,loaded:!1,loading:!0})})}):$e($e({},e),{},{error:null,loading:!0,loaded:!1});case h.sb+"_SUCCESS":return t.subrequest?$e($e({},e),{},{subrequests:$e($e({},e.subrequests),{},{[t.subrequest]:{error:null,items:S()(t.result.items,e=>$e($e({},e),{},{"@id":Object(M.q)(e["@id"])})),total:t.result.items_total,loaded:!0,loading:!1,batching:$e({},t.result.batching)}})}):$e($e({},e),{},{error:null,items:S()(t.result.items,e=>$e($e({},e),{},{"@id":Object(M.q)(e["@id"])})),total:t.result.items_total,loaded:!0,loading:!1,batching:$e({},t.result.batching)});case h.sb+"_FAIL":return t.subrequest?$e($e({},e),{},{subrequests:$e($e({},e.subrequests),{},{[t.subrequest]:{error:t.error,items:[],total:0,loading:!1,loaded:!1,batching:{}}})}):$e($e({},e),{},{error:t.error,items:[],total:0,loading:!1,loaded:!1,batching:{}});case h.qb:return t.subrequest?$e($e({},e),{},{subrequests:R()(e.subrequests,[t.subrequest])}):$e($e({},e),{},{error:null,items:[],total:0,loading:!1,loaded:!1,batching:{}});default:return e}},sharing:function(e=Xe,t={}){switch(t.type){case h.Hb+"_PENDING":case h.G+"_PENDING":return Qe(Qe({},e),{},{[et(t.type)]:{loading:!0,loaded:!1,error:null}});case h.Hb+"_SUCCESS":return Qe(Qe({},e),{},{[et(t.type)]:{loading:!1,loaded:!0,error:null}});case h.G+"_SUCCESS":return Qe(Qe({},e),{},{data:t.result,[et(t.type)]:{loading:!1,loaded:!0,error:null}});case h.Hb+"_FAIL":return Qe(Qe({},e),{},{[et(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.G+"_FAIL":return Qe(Qe({},e),{},{data:Xe.data,[et(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},sidebar:function(e=nt,t={}){switch(t.type){case h.vb:return st(st({},e),{},{tab:t.index});default:return e}},types:function(e=at,t={}){switch(t.type){case h.I+"_PENDING":return it(it({},e),{},{error:null,loading:!0,loaded:!1});case h.I+"_SUCCESS":return it(it({},e),{},{error:null,loading:!1,loaded:!0,types:t.result});case h.I+"_FAIL":return it(it({},e),{},{error:t.error,loading:!1,loaded:!1,types:[]});default:return e}},users:function(e=pt,t={}){switch(t.type){case h.i+"_PENDING":case h.r+"_PENDING":case h.J+"_PENDING":case h.Y+"_PENDING":case h.Ib+"_PENDING":case h.Fb+"_PENDING":case h.O+"_PENDING":case h.pb+"_PENDING":return dt(dt({},e),{},{[ut(t.type)]:{loading:!0,loaded:!1,error:null}});case h.J+"_SUCCESS":return dt(dt({},e),{},{user:t.result,[ut(t.type)]:{loading:!1,loaded:!0,error:null}});case h.Y+"_SUCCESS":return dt(dt({},e),{},{users:t.result,[ut(t.type)]:{loading:!1,loaded:!0,error:null}});case h.i+"_SUCCESS":case h.r+"_SUCCESS":case h.Ib+"_SUCCESS":case h.Fb+"_SUCCESS":case h.O+"_SUCCESS":case h.pb+"_SUCCESS":return dt(dt({},e),{},{[ut(t.type)]:{loading:!1,loaded:!0,error:null}});case h.J+"_FAIL":return dt(dt({},e),{},{user:{},[ut(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.Y+"_FAIL":return dt(dt({},e),{},{users:[],[ut(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.i+"_FAIL":case h.r+"_FAIL":case h.Ib+"_FAIL":case h.Fb+"_FAIL":case h.O+"_FAIL":case h.pb+"_FAIL":return dt(dt({},e),{},{[ut(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},authRole:function(e=jt,t={}){switch(t.type){case h.d:return bt(bt({},e),{},{authenticatedRole:t.result});default:return e}},userSession:function(e=ft,t={}){switch(t.type){case h.bb+"_PENDING":return gt(gt({},e),{},{token:null,login:{loading:!0,loaded:!1,error:null}});case h.bb+"_SUCCESS":case h.cb+"_SUCCESS":return gt(gt({},e),{},{token:t.result.token,login:{loading:!1,loaded:!0,error:null}});case h.bb+"_FAIL":case h.cb+"_FAIL":return gt(gt({},e),{},{token:null,login:{loading:!1,loaded:!1,error:t.error.response.error}});case h.db+"_FAIL":case h.db+"_SUCCESS":return gt(gt({},e),{},{token:null});default:return e}},vocabularies:function(e=yt,t={}){var s,n,r;const i=e[t.vocabulary]||{},a=t.subrequest&&(null===(s=i.subrequests)||void 0===s?void 0:s[t.subrequest])||{};switch(t.type){case h.K+"_PENDING":case h.L+"_PENDING":return t.subrequest?vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{subrequests:vt(vt({},i.subrequests),{},{[t.subrequest]:vt(vt({},a||{data:null}),{},{loaded:(null===i||void 0===i||null===(n=i[t.subrequest])||void 0===n?void 0:n.loaded)||!1,loading:!!(((null===i||void 0===i||null===(r=i[t.subrequest])||void 0===r?void 0:r.loading)||0)+1),error:null})})})}):vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{error:null,loaded:i.loaded||!1,loading:!!((i.loading||0)+1)})});case h.K+"_SUCCESS":return t.subrequest?vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{subrequests:vt(vt({},i.subrequests),{},{[t.subrequest]:vt(vt({},a),{},{error:null,loaded:!0,loading:!!(a.loading-1),items:[...t.result.items.map(e=>({label:e.title,value:e.token}))],batching:t.result.batching,itemsTotal:t.result.items_total})})})}):vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{error:null,loaded:!0,loading:!!(i.loading-1),items:[...t.result.items.map(e=>({label:e.title,value:e.token}))],batching:t.result.batching,itemsTotal:t.result.items_total})});case h.K+"_FAIL":case h.L+"_FAIL":return t.subrequest?vt(vt({},e),{},{[t.vocabulary]:{subrequests:vt(vt({},i.subrequests),{},{[t.subrequest]:{error:t.error,loaded:!1,loading:!!(a.loading-1)}})}}):vt(vt({},e),{},{[t.vocabulary]:{error:t.error,loaded:!1,loading:!!(i.loading-1)}});case h.L+"_SUCCESS":return t.subrequest?vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{subrequests:vt(vt({},i.subrequests),{},{[t.subrequest]:vt(vt(vt({},a),{},{error:null,loaded:!0,loading:!!(a.loading-1)},t.token&&{[t.token]:t.result.items[0].title}),t.tokens&&{items:[...t.result.items.map(e=>({label:e.title,value:e.token}))]})})})}):vt(vt({},e),{},{[t.vocabulary]:vt(vt({},i),{},{error:null,loaded:!0,loading:!!(i.loading-1),[t.token]:t.result.items[0].title})});default:return e}},workflow:function(e=Ct,t={}){switch(t.type){case h.M+"_PENDING":case h.N+"_PENDING":case h.xb+"_PENDING":return wt(wt({},e),{},{[St(t.type)]:{loading:!0,loaded:!1,error:null}});case h.M+"_SUCCESS":case h.xb+"_SUCCESS":return wt(wt({},e),{},{history:t.result.history?t.result.history:e.history,transitions:t.result.transitions?t.result.transitions:e.transitions,[St(t.type)]:{loading:!1,loaded:!0,error:null}});case h.N+"_SUCCESS":return wt(wt({},e),{},{multiple:t.result,[St(t.type)]:{loading:!1,loaded:!0,error:null}});case h.M+"_FAIL":case h.xb+"_FAIL":return wt(wt({},e),{},{history:[],transitions:[],[St(t.type)]:{loading:!1,loaded:!1,error:t.error}});case h.N+"_FAIL":return wt(wt({},e),{},{multiple:[],[St(t.type)]:{loading:!1,loaded:!1,error:t.error}});default:return e}},toolbar:function(e=Mt,t={}){switch(t.type){case h.u:return{expanded:t.isExpanded};default:return e}},blocksClipboard:function(e=Nt,t={}){switch(t.type){case h.nb:return Nt;case h.ub:return function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):kt(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},Object.assign({},t.cut?{cut:t.cut}:{},t.copy?{copy:t.copy}:{}))}return e},lazyLibraries:function(e=Dt,t={}){switch(t.type){case h.Z:const{libName:s,libModule:n}=t;return Lt(Lt({},e),{},{[s]:n});default:return e}},contextNavigation:function(e={},t={}){let{result:s,url:n}=t;switch(t.type){case h.x+"_PENDING":return Tt(Tt({},e),{},{[n]:Tt(Tt({},e[n]),{},{loading:!0,loaded:!1,error:void 0})});case h.x+"_SUCCESS":return Tt(Tt({},e),{},{[n]:Tt(Tt({},e[n]),{},{loading:!1,loaded:!0,error:void 0,data:s})});case h.x+"_FAIL":return Tt(Tt({},e),{},{[n]:Tt(Tt({},e[n]),{},{loading:!1,loaded:!1,error:t.error})})}return e},workingCopy:function(e=Ft,t={}){var s,n;switch(t.type){case h.j+"_PENDING":case h.c+"_PENDING":case h.lb+"_PENDING":return qt(qt({},e),{},{info:{},[Bt(t.type)]:{loading:!0,loaded:!1,error:null}});case h.j+"_SUCCESS":return qt(qt({},e),{},{info:qt(qt({},t.result),{},{"@id":Object(M.q)(t.result["@id"]),title:t.result.title}),create:{loading:!1,loaded:!0,error:null}});case h.c+"_SUCCESS":case h.lb+"_SUCCESS":return qt(qt({},e),{},{[Bt(t.type)]:{loading:!1,loaded:!0,error:null}});case h.j+"_FAIL":case h.c+"_FAIL":case h.lb+"_FAIL":return qt(qt({},e),{},{info:{},[Bt(t.type)]:{loading:!1,loaded:!1,error:null===(s=t.error)||void 0===s||null===(n=s.response)||void 0===n?void 0:n.error}});default:return e}}},Ut=s("QILm"),Ht=s.n(Ut),Kt=s("v8eK"),Gt=s.n(Kt),Vt=s("wig9"),Zt=s.n(Vt),Wt=s("9ONQ"),$t=s("BOF4"),Yt=s.n($t),Jt=s("Ty5D"),Qt=s("cr+I"),Xt=s.n(Qt),es=s("9At1");const ts=["expand"],ss=["request","type","mode"];function ns(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function rs(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ns(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}let is=null;function as(e,t){const{settings:s}=p.a,{apiExpanders:n=[]}=s,r=Xt.a.parseUrl(e),{url:i,query:{expand:a}}=r,o=Ht()(r.query,ts),l=n.filter(e=>Object(Jt.g)(i,e.match)&&e[t]).map(e=>e[t]),c=Zt()(Gt()([a,...He()(l)])),d=Xt.a.stringify({expand:c},{arrayFormat:"comma",encode:!1}),u=Xt.a.stringify(o,{encode:!1});return u&&d?`${i}?${d}&${u}`:!u&&d?`${i}?${d}`:u&&!d?`${i}?${u}`:i}function os(e){return new Promise((e,t)=>{switch(is.readyState){case is.CONNECTING:is.addEventListener("open",()=>e(is)),is.addEventListener("error",t);break;case is.OPEN:e(is);break;default:t()}}).then(()=>{is.send(JSON.stringify(e))})}var ls=s("Pl9N");var cs=({dispatch:e,getState:t})=>e=>t=>{if("function"===typeof t)return e(t);switch(t.type){case"@@router/LOCATION_CHANGE":const{pathname:s}=t.payload.location,{externalRoutes:n=[]}=p.a.settings,r=n.find(e=>Object(Jt.g)(s,e.match));if(!r)return e(t);window.location.replace(r.url?r.url(t.payload):s);break;default:return e(t)}};function ds(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function ps(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ds(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=(e,t,n)=>{let r=[cs,Object(l.a)(t),ls.a,a.a,...n?[(u=n,({dispatch:e,getState:t})=>n=>r=>{const{settings:i}=p.a;if("function"===typeof r)return r(e,t);const{request:a,type:o,mode:l="parallel"}=r,c=Ht()(r,ss),{subrequest:d}=r;let b;return a?(n(rs(rs({},c),{},{type:o+"_PENDING"})),is?b=Array.isArray(a)?Promise.all(a.map(e=>os(rs(rs({},e),{},{path:as(e.path,o),id:o})))):os(rs(rs({},a),{},{path:as(a.path,o),id:o})):(b=Array.isArray(a)?"serial"===l?a.reduce((e,t)=>e.then(e=>u[t.op](as(t.path,o),{data:t.data,type:t.type,headers:t.headers,params:a.params,checkUrl:i.actions_raising_api_errors.includes(r.type)}).then(t=>[...e,t])),Promise.resolve([])):Promise.all(a.map(e=>u[e.op](as(e.path,o),{data:e.data,type:e.type,headers:e.headers,params:a.params,checkUrl:i.actions_raising_api_errors.includes(r.type)}))):u[a.op](as(a.path,o),{data:a.data,type:a.type,headers:a.headers,params:a.params,checkUrl:i.actions_raising_api_errors.includes(r.type)}),b.then(r=>{const{settings:i}=p.a;if(t().apierror.connectionRefused&&n(rs(rs({},c),{},{type:h.mb})),o===h.w){var a;const n=null===r||void 0===r||null===(a=r.language)||void 0===a?void 0:a.token;if(n&&t().intl.language!==n&&!d){const t=Object(M.S)(n);s("Zbgq")("./"+t+".json").then(t=>{e(Object(es.d)(n,t.default))})}}return o===h.bb&&i.websockets&&((new Wt.a).set("auth_token",r.token,{path:"/",expires:new Date(1e3*Yt()(r.token).exp)}),u.get("/@wstoken").then(t=>{is=new WebSocket(`${i.apiPath.replace("http","ws")}/@ws?ws_token=${t.token}`),is.onmessage=t=>{const s=JSON.parse(t.data);s.error?e({type:s.id+"_FAIL",error:s.error}):e({type:s.id+"_SUCCESS",result:JSON.parse(s.data)})}})),n(rs(rs({},c),{},{result:r,type:o+"_SUCCESS"}))},e=>{var t;if("ECONNREFUSED"===e.code)n(rs(rs({},c),{},{error:e,statusCode:e.code,connectionRefused:!0,type:h.tb}));else if(e.crossDomain)n(rs(rs({},c),{},{error:e,statusCode:"CORSERROR",connectionRefused:!1,type:h.tb}));else if(504===(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.statusCode))n(rs(rs({},c),{},{error:e,statusCode:e.code,connectionRefused:!0,type:h.tb}));else if(301===(null===e||void 0===e?void 0:e.code))n(rs(rs({},c),{},{error:e,statusCode:e.code,connectionRefused:!1,type:h.tb}));else if(i.actions_raising_api_errors.includes(r.type)){var s;401===(null===e||void 0===e||null===(s=e.response)||void 0===s?void 0:s.statusCode)&&n(rs(rs({},c),{},{error:e,statusCode:e.response,message:e.response.body.message,connectionRefused:!1,type:h.tb}))}return n(rs(rs({},c),{},{error:e,type:o+"_FAIL"}))})),b):n(r)})]:[],Object(d.save)({states:p.a.settings.persistentReducers,debounce:500})];var u;r=p.a.settings.storeExtenders.reduce((e,t)=>t(e),r);const b=Object(o.composeWithDevTools)(Object(i.applyMiddleware)(...r));return Object(i.createStore)(Object(i.combineReducers)(ps(ps({router:Object(c.b)(t)},zt),p.a.addonReducers)),ps(ps({},e),Object(d.load)({states:p.a.settings.persistentReducers})),b)}},wRHO:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("KAy6"),d=s.n(c),p=s("17x9"),u=s.n(p),h=s("/MKj"),b=s("ANjH"),j=s("5+2E"),m=s.n(j),g=s("lHu7"),f=s.n(g),O=s("zSVi"),v=s("V9XE"),y=s.n(v),x=s("Ty5D"),w=s("8ZS8"),C=s("Kvkj"),S=s("MKeS"),M=s("Lf35"),k=s("nKUr"),N=s.n(k);function P(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function L(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?P(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const D=Object(S.a)({resolved:{},chunkName:()=>"draft-js-plugins-editor",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(0),s.e(1)]).then(s.t.bind(null,"yeYm",7)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return s(t)},resolve(){return"yeYm"}}),E=Object(g.defineMessages)({default:{id:"Default",defaultMessage:"Default"},idTitle:{id:"Short Name",defaultMessage:"Short Name"},idDescription:{id:"Used for programmatic access to the fieldset.",defaultMessage:"Used for programmatic access to the fieldset."},title:{id:"Title",defaultMessage:"Title"},description:{id:"Description",defaultMessage:"Description"},required:{id:"Required",defaultMessage:"Required"},delete:{id:"Delete",defaultMessage:"Delete"}});class T extends o.Component{constructor(e){super(e);const{stateFromHTML:t}=e.draftJsImportHtml,{EditorState:s}=e.draftJs,n=e.draftJsInlineToolbarPlugin.default;this.draftConfig=w.a.settings.richtextEditorSettings(e);{let r;if(e.value&&e.value.data){const n=t(e.value.data,{customBlockFn:this.draftConfig.FromHTMLCustomBlockFn});r=s.createWithContent(n)}else r=s.createEmpty();const i=n({structure:this.draftConfig.richTextEditorInlineToolbarButtons});this.state={editorState:r,inlineToolbarPlugin:i}}this.schema={fieldsets:[{id:"default",title:e.intl.formatMessage(E.default),fields:["title","id","description","required"]}],properties:{id:{type:"string",title:e.intl.formatMessage(E.idTitle),description:e.intl.formatMessage(E.idDescription)},title:{type:"string",title:e.intl.formatMessage(E.title)},description:{type:"string",widget:"textarea",title:e.intl.formatMessage(E.description)},required:{type:"boolean",title:e.intl.formatMessage(E.required)}},required:["id","title"]},this.onChange=this.onChange.bind(this)}onChange(e){const{convertToRaw:t}=this.props.draftJs;this.setState({editorState:e});const s=y()();this.props.onChange(this.props.id,{"content-type":this.props.value?this.props.value["content-type"]:"text/html",encoding:this.props.value?this.props.value.encoding:"utf8",data:d.a.renderToStaticMarkup(Object(k.jsx)(h.Provider,{store:s({userSession:{token:this.props.token}}),children:Object(k.jsx)(x.a,{children:m()(t(e.getCurrentContent()),w.a.settings.richtextViewSettings.ToHTMLRenderers,w.a.settings.richtextViewSettings.ToHTMLOptions)})}))})}render(){const{id:e,title:t,description:s,required:n,value:r,error:i,fieldSet:a}=this.props;const{InlineToolbar:o}=this.state.inlineToolbarPlugin;return Object(k.jsx)(C.db,L(L({},this.props),{},{className:"wysiwyg",children:Object(k.jsx)("div",{style:{boxSizing:"initial"},children:this.props.onChange?Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)(D,{id:"field-"+e,readOnly:this.props.isDisabled,onChange:this.onChange,editorState:this.state.editorState,plugins:[this.state.inlineToolbarPlugin,...this.draftConfig.richTextEditorPlugins],placeholder:this.props.placeholder,blockRenderMap:this.draftConfig.extendedBlockRenderMap,blockStyleFn:this.draftConfig.blockStyleFn,customStyleMap:this.draftConfig.customStyleMap}),this.props.onChange&&Object(k.jsx)(o,{})]}):Object(k.jsx)("div",{className:"DraftEditor-root"})})}))}}r()(T,"defaultProps",{description:null,required:!1,value:{"content-type":"text/html",data:"",encoding:"utf8"},error:[],onEdit:null,onDelete:null,onChange:null});const I=Object(b.compose)(O.c,Object(M.a)(["draftJs","draftJsBlockBreakoutPlugin","draftJsCreateBlockStyleButton","draftJsCreateInlineStyleButton","draftJsFilters","draftJsImportHtml","draftJsInlineToolbarPlugin","draftJsLibIsSoftNewlineEvent","immutableLib"]),Object(h.connect)((e,t)=>({token:e.userSession.token}),{}))(T),A=e=>{const[t,s]=l.a.useState(!1);return l.a.useEffect(()=>{D.load().then(()=>s(!0))},[]),t?Object(k.jsx)(I,L({},e)):null};t.a=A},weNR:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M31 13L31 5 23 5 23 7 27.586 7 18 16.586 8.414 7 13 7 13 5 5 5 5 13 7 13 7 8.414 16.586 18 7 27.586 7 23 5 23 5 31 13 31 13 29 8.414 29 18 19.414 27.586 29 23 29 23 31 31 31 31 23 29 23 29 27.586 19.414 18 29 8.414 29 13z"/>'}},whtX:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=(s("17x9"),s("/MKj")),o=s("ANjH"),l=s("Ty5D"),c=s("zpb6"),d=s("yE/o"),p=s("lHu7"),u=s("24R3"),h=s("zSVi"),b=s("Kvkj"),j=s("9At1"),m=s("nKUr");const g=Object(p.defineMessages)({title:{id:"box_forgot_password_option",defaultMessage:"Forgot your password?"},description:{id:"description_lost_password",defaultMessage:"For security reasons, we store your password encrypted, and cannot mail it to you. If you would like to reset your password, fill out the form below and we will send you an email at the address you gave when you registered to start the process of resetting your password."},default:{id:"Default",defaultMessage:"Default"},emailTitle:{id:"label_my_email_address_is",defaultMessage:"My email address is"},sendEmail:{id:"Start password reset",defaultMessage:"Start password reset"},emailrequired:{id:"Your email is required for reset your password.",defaultMessage:"Your email is required for reset your password."},passwordReset:{id:"Password reset",defaultMessage:"Password reset"}});class f extends i.Component{constructor(e){super(e),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={error:null,isSuccessful:!1}}UNSAFE_componentWillReceiveProps(e){this.props.loading&&e.loaded&&this.setState({isSuccessful:!0})}onSubmit(e){e.email?(this.props.resetPassword(e.email),this.setState({error:null})):this.setState({error:{message:this.props.intl.formatMessage(g.emailrequired)}})}onCancel(){this.props.history.goBack()}render(){return this.state.isSuccessful?Object(m.jsxs)(d.a,{children:[Object(m.jsx)("h1",{className:"documentFirstHeading",children:Object(m.jsx)(u.a,{id:"heading_sent_password",defaultMessage:"Password reset confirmation sent"})}),Object(m.jsx)("p",{className:"description",children:Object(m.jsx)(u.a,{id:"description_sent_password",defaultMessage:"Your password reset request has been mailed. It should arrive in your mailbox shortly. When you receive the message, visit the address it contains to reset your password."})})]}):Object(m.jsxs)("div",{id:"page-password-reset",children:[Object(m.jsx)(c.d,{title:this.props.intl.formatMessage(g.passwordReset)}),Object(m.jsx)(d.a,{children:Object(m.jsx)(b.cb,{title:this.props.intl.formatMessage(g.title),description:this.props.intl.formatMessage(g.description),onSubmit:this.onSubmit,onCancel:this.onCancel,error:this.state.error||this.props.error,schema:{fieldsets:[{id:"default",title:this.props.intl.formatMessage(g.default),fields:["email"]}],properties:{email:{type:"string",title:this.props.intl.formatMessage(g.emailTitle)}},submitLabel:this.props.intl.formatMessage(g.sendEmail),required:["email"]}})})]})}}r()(f,"defaultProps",{error:null}),t.a=Object(o.compose)(l.j,h.c,Object(a.connect)(e=>({loading:e.users.reset.loading,loaded:e.users.reset.loaded,error:e.users.reset.error}),{resetPassword:j.hb}))(f)},"x+9r":function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("BOF4"),l=s.n(o),c=(s("17x9"),s("/MKj")),d=s("ANjH"),p=s("zpb6"),u=s("3mGJ"),h=s("V/vL"),b=s("GGqY"),j=s("ZiUS"),m=s.n(j),g=s("3tWz"),f=s.n(g),O=s("Zsd2"),v=s.n(O),y=s("TSYQ"),x=s.n(y),w=s("8ZS8"),C=s("SAOm"),S=(s("X2qy"),s("zSVi")),M=s("24R3"),k=s("Ty5D"),N=s("nKUr");const P=({message:e,stackTrace:t})=>{let s=Object(k.h)();return Object(N.jsxs)("div",{style:{fontFamily:"Helvetica, sans-serif",fontSize:"20px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[Object(N.jsx)("h2",{children:Object(N.jsx)(M.a,{id:"Sorry, something went wrong with your request",defaultMessage:"Sorry, something went wrong with your request\xa0"})}),Object(N.jsx)("strong",{style:{color:"red"},children:e}),Object(N.jsx)("pre",{children:t}),Object(N.jsxs)("span",{style:{textAlign:"center"},children:[Object(N.jsx)("p",{children:Object(N.jsx)("button",{onClick:()=>s.goBack(),children:Object(N.jsx)(M.a,{id:"Navigate back",defaultMessage:"Navigate back"})})}),Object(N.jsx)("p",{children:Object(N.jsx)("a",{href:"/",children:Object(N.jsx)(M.a,{id:"return to the site root",defaultMessage:"return to the site root"})})}),Object(N.jsx)("p",{children:Object(N.jsx)(M.a,{id:"or try a different page.",defaultMessage:"or try a different page."})})]})]})};P.defaultProps={stackTrace:null};var L=Object(S.c)(P),D=s("Kvkj"),E=s("9At1"),T=s("1Jxj"),I=s.n(T),A=s("r5vi");var R=e=>{const{settings:t}=w.a,{pathname:n,children:r}=e,[i]=Object(A.a)(),o=i.I18N_LANGUAGE||t.defaultLanguage,l=t.supportedLanguages.includes(o)?o:t.defaultLanguage,d=Object(c.useDispatch)();return a.a.useEffect(()=>{let e=!0;if(t.isMultilingual&&"/"===n){const t=Object(p.S)(l);s("Zbgq")("./"+t+".json").then(t=>{e&&d(Object(E.d)(l,t.default))})}return()=>{e=!1}},[n,d,l,t.isMultilingual]),"/"===n&&t.isMultilingual?Object(N.jsx)(k.b,{to:"/"+l}):Object(N.jsx)(N.Fragment,{children:r})},_=s("55Ip"),q=s("lHu7"),F=s("52Oh"),B=s("NAv5"),z=s("6crI");const U=Object(q.defineMessages)({thisIsAWorkingCopyOf:{id:"This is a working copy of {title}",defaultMessage:"This is a working copy of {title}"},workingCopyIs:{id:"This has an ongoing working copy in {title}",defaultMessage:"This has an ongoing working copy in {title}"},workingCopyCreatedBy:{id:"Created by {creator} on {date}",defaultMessage:"Created by {creator} on {date}"}});var H=e=>{const t=Object(F.a)(),s=Object(k.i)().pathname,n=Object(c.useSelector)(e=>e.intl.locale),{content:r}=e,i=null===r||void 0===r?void 0:r.title,a=null===r||void 0===r?void 0:r.working_copy,o={year:"numeric",month:"long",day:"numeric"};return Object(z.a)(()=>{if(r&&w.a.settings.hasWorkingCopySupport){if(a){let s,i;var e;if(r.working_copy_of)s=U.thisIsAWorkingCopyOf,i=Object(N.jsx)(_.a,{to:Object(p.q)(r.working_copy_of["@id"]),children:null===(e=r.working_copy_of)||void 0===e?void 0:e.title});else s=U.workingCopyIs,i=Object(N.jsx)(_.a,{to:Object(p.q)(a["@id"]),children:null===a||void 0===a?void 0:a.title});b.toast.isActive("workingcopyinfo")?b.toast.update("workingcopyinfo",{render:Object(N.jsx)(D.Ub,{info:!0,title:t.formatMessage(s,{title:i}),content:t.formatMessage(U.workingCopyCreatedBy,{creator:null===a||void 0===a?void 0:a.creator_name,date:new Intl.DateTimeFormat(n,o).format(Object(B.parse)(null===a||void 0===a?void 0:a.created))})})}):b.toast.info(Object(N.jsx)(D.Ub,{info:!0,title:t.formatMessage(s,{title:i}),content:t.formatMessage(U.workingCopyCreatedBy,{creator:null===a||void 0===a?void 0:a.creator_name,date:new Intl.DateTimeFormat(n,o).format(Object(B.parse)(null===a||void 0===a?void 0:a.created))})}),{toastId:"workingcopyinfo",autoClose:!1,closeButton:!1,transition:null})}a||b.toast.isActive("workingcopyinfo")&&b.toast.dismiss("workingcopyinfo")}},[s,r,i,a,t,n,o]),null};const K=Object(q.defineMessages)({thisItemIsLocked:{id:"This item was locked by {creator} on {date}",defaultMessage:"This item was locked by {creator} on {date}"},unlockItem:{id:"If you are certain this user has abandoned the object, you may unlock the object. You will then be able to edit it.",defaultMessage:"If you are certain this user has abandoned the object, you may unlock the object. You will then be able to edit it."}});var G=e=>{const t=Object(F.a)(),s=Object(k.i)().pathname,n=Object(c.useSelector)(e=>e.intl.locale),{content:r,user:i}=e,a=null===r||void 0===r?void 0:r.lock,o=(null===a||void 0===a?void 0:a.creator_name)||(null===a||void 0===a?void 0:a.creator)||"",l=(null===a||void 0===a?void 0:a.created)||"",d={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"};return Object(z.a)(()=>{i&&r&&(null!==a&&void 0!==a&&a.locked&&null!==a&&void 0!==a&&a.stealable&&(null===a||void 0===a?void 0:a.creator)!==i?b.toast.isActive("lockinginfo")?b.toast.update("lockinginfo",{render:Object(N.jsx)(D.Ub,{info:!0,title:t.formatMessage(K.thisItemIsLocked,{creator:o,date:new Intl.DateTimeFormat(n,d).format(Object(B.parse)(l))}),content:t.formatMessage(K.unlockItem,{})})}):b.toast.info(Object(N.jsx)(D.Ub,{info:!0,title:t.formatMessage(K.thisItemIsLocked,{creator:o,date:new Intl.DateTimeFormat(n,d).format(Object(B.parse)(l))}),content:t.formatMessage(K.unlockItem,{})}),{toastId:"lockinginfo",autoClose:!1,closeButton:!1,transition:null}):b.toast.isActive("lockinginfo")&&b.toast.dismiss("lockinginfo"))},[r,o,l,d,t,n,a,s,i]),null},V=s("gtzJ");function Z(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function W(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Z(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}class $ extends i.Component{constructor(...e){super(...e),r()(this,"state",{hasError:!1,error:null,errorInfo:null})}UNSAFE_componentWillReceiveProps(e){e.pathname!==this.props.pathname&&this.state.hasError&&this.setState({hasError:!1})}componentDidCatch(e,t){var s,n;this.setState({hasError:!0,error:e,errorInfo:t}),(null!==(s=window)&&void 0!==s&&null!==(n=s.env)&&void 0!==n&&n.RAZZLE_SENTRY_DSN||(void 0,0))&&V.c(e)}render(){var e,t,s,n,r,i;const{views:a}=w.a,o=Object(p.r)(this.props.pathname),l=Object(p.D)(this.props.pathname),c=Object(p.K)(this.props.pathname),d=a.errorViews.ECONNREFUSED,j=null!==(e=null===(t=this.props.content)||void 0===t||null===(s=t.language)||void 0===s?void 0:s.token)&&void 0!==e?e:null===(n=this.props.intl)||void 0===n?void 0:n.locale;return Object(N.jsxs)(C.c,{children:[j&&Object(N.jsx)(p.d,{children:Object(N.jsx)("html",{lang:j})}),Object(N.jsx)(p.b,{className:`view-${l}view`}),this.props.content&&this.props.content["@type"]&&Object(N.jsx)(p.b,{className:"contenttype-"+this.props.content["@type"].replace(" ","-").toLowerCase()}),Object(N.jsx)(p.b,{className:x()({[v()(f()(m()(this.props.pathname,"/")," section-"))]:"/"!==this.props.pathname,siteroot:"/"===this.props.pathname,"is-authenticated":!!this.props.token,"is-anonymous":!this.props.token,"cms-ui":c,"public-ui":!c})}),Object(N.jsx)(D.Rb,{}),Object(N.jsx)(D.hb,{pathname:o}),Object(N.jsx)(D.m,{pathname:o}),Object(N.jsx)(R,{pathname:this.props.pathname,contentLanguage:null===(r=this.props.content)||void 0===r||null===(i=r.language)||void 0===i?void 0:i.token,children:Object(N.jsx)(u.a,{basic:!0,className:"content-area",children:Object(N.jsxs)("main",{children:[Object(N.jsx)(D.Ab,{}),this.props.connectionRefused?Object(N.jsx)(d,{}):this.state.hasError?Object(N.jsx)(L,{message:this.state.error.message,stackTrace:this.state.errorInfo.componentStack}):Object(h.b)(this.props.route.routes,{staticContext:this.props.staticContext})]})})}),Object(N.jsx)(D.ab,{}),Object(N.jsx)(G,{content:this.props.content,user:this.props.userId}),Object(N.jsx)(H,{content:this.props.content}),Object(N.jsx)(b.ToastContainer,{position:b.toast.POSITION.BOTTOM_CENTER,hideProgressBar:!0,transition:b.Slide,autoClose:5e3,closeButton:Object(N.jsx)(D.jb,{className:"toast-dismiss-action",name:I.a,size:"18px"})}),Object(N.jsx)(D.d,W({},this.props))]})}}Object(c.connect)((e,t)=>({pathname:t.location.pathname,token:e.userSession.token,content:e.content.data,apiError:e.apierror.error,connectionRefused:e.apierror.connectionRefused}),{})($);t.a=Object(d.compose)(Object(p.k)([{key:"breadcrumbs",promise:({location:e,store:{dispatch:t}})=>!1},{key:"content",promise:({location:e,store:t})=>!1},{key:"navigation",promise:({location:e,store:{dispatch:t}})=>!1},{key:"types",promise:({location:e,store:{dispatch:t}})=>!1},{key:"workflow",promise:({location:e,store:{dispatch:t}})=>!1}]),S.c,Object(c.connect)((e,t)=>({pathname:t.location.pathname,token:e.userSession.token,userId:e.userSession.token?l()(e.userSession.token).sub:"",content:e.content.data,apiError:e.apierror.error,connectionRefused:e.apierror.connectionRefused}),null))($)},x7ES:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("wEy/"),a=s.n(i),o=s("UfWW"),l=s.n(o),c=s("J2m7"),d=s.n(c),p=s("q1tI"),u=s.n(p),h=s("/MKj"),b=s("lHu7"),j=s("52Oh"),m=s("EcEN"),g=s("QetY"),f=s("Kvkj"),O=s("zpb6"),v=s("DQaE"),y=s.n(v),x=s("THAZ"),w=s.n(x),C=s("IW6S"),S=s.n(C),M=s("nKUr");function k(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function N(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?k(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):k(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const P=Object(b.defineMessages)({title:{id:"Vocabulary terms",defaultMessage:"Vocabulary terms"},termtitle:{id:"Vocabulary term",defaultMessage:"Vocabulary term"},addTerm:{id:"Add vocabulary term",defaultMessage:"Add term"},removeTerm:{id:"Remove term",defaultMessage:"Remove term"},clearTermTitle:{id:"Reset term title",defaultMessage:"Reset title"},termtitlelabel:{id:"Vocabulary term title",defaultMessage:"Title"}}),L=({draginfo:e},t,s)=>Object(M.jsx)(D,{draginfo:e,termProps:s,children:t}),D=e=>{const t=Object(j.a)(),{termProps:s,draginfo:n,children:r}=e,{id:i,vocabularyterms:o,vterm:c,onChange:p}=s;return Object(M.jsx)("div",N(N({ref:n.innerRef},n.draggableProps),{},{className:"vocabularyterm",children:Object(M.jsxs)("div",{style:{alignItems:"center",display:"flex"},children:[Object(M.jsx)("div",N(N({},n.dragHandleProps),{},{className:"draghandlewrapper",children:Object(M.jsx)(f.jb,{name:S.a,size:"18px"})})),Object(M.jsx)("div",{className:"ui drag block inner",children:r}),Object(M.jsxs)("div",{children:[c.token===s.editableToken?Object(M.jsx)("input",{id:"token-"+c.token,title:"Token",placeholder:"token",onBlur:function(e){let t=e.target.value;t.length>2&&(d()(s.vocabularyterms,e=>e.token===t)||(((e,t)=>{let n=s.vocabularyterms,r=l()(n,{token:e.token});n.splice(r,1,{token:t,titles:n[r].titles}),p(i,{items:n})})(c,t),s.setEditableToken("")))}}):null,Object(M.jsx)(g.a,{icon:!0,basic:!0,className:"delete-button",title:t.formatMessage(P.removeTerm),"aria-label":`${t.formatMessage(P.removeTerm)} #${c.token}`,onClick:e=>{e.preventDefault(),a()(o,e=>e.token===c.token),p(i,{items:o})},children:Object(M.jsx)(f.jb,{name:y.a,size:"20px",color:"#e40166"})})]})]})}))};t.a=e=>{var t;const{id:s,value:n={},onChange:r}=e;var i=n;const a=Object(h.useDispatch)(),[o,c]=u.a.useState(""),[d,p]=u.a.useState(""),b=Object(j.a)();u.a.useEffect(()=>{const e=document.getElementById(o);e&&e.focus(),c("")},[a,o]),void 0===i.items&&(i={items:Object.keys(i).map(e=>({token:e,titles:{en:i[e]}}))});let v=i.items,y=Object.keys((null===v||void 0===v||null===(t=v.map(e=>e.titles))||void 0===t?void 0:t.pop())||{});const x={title:"Translation of term",fieldsets:[{id:"default",title:"Email",fields:y}],properties:Object.fromEntries(y.map(e=>{var t,s;return[e,{title:null!==(t=null===(s=O.M[e])||void 0===s?void 0:s.nativeName)&&void 0!==t?t:e}]})),required:[]};let C=v.map(e=>N(N({},e),{},{"@id":e.token}));return Object(M.jsxs)(f.db,N(N({},e),{},{className:"vocabularytermswidget dictwidget",children:[Object(M.jsx)("div",{className:"add-item-button-wrapper",children:Object(M.jsxs)(g.a,{"aria-label":b.formatMessage(P.termtitle),onClick:e=>{!function(e){e.preventDefault();const t=Object(m.v4)();let n=i.items;n.push({token:t,titles:Object.fromEntries(y.map(e=>[e,""]))}),r(s,{items:n}),c(`field-${y[0]}-0-${s}-${t}`),p(t)}(e)},children:[Object(M.jsx)(f.jb,{name:w.a,size:"18px"}),b.formatMessage(P.addTerm)]})}),Object(M.jsx)(f.V,{childList:C.map(e=>[e["@id"],e]),onMoveItem:e=>{const{source:t,destination:n}=e;if(!n)return;let a=i.items;var o,l,c;return o=a,l=t.index,c=n.index,o.splice(l,1,o.splice(c,1,o[l])[0]),r(s,{items:a}),!0},children:e=>{const{child:t,childId:n,index:a}=e;let o={index:a,id:s,vocabularyterms:v,vterm:t,onChange:r};return L(e,Object(M.jsx)(f.zb,{id:`${s}-${t.token}`,onChange:(e,n)=>{!function(e,t,n){let a=l()(i.items,{token:e}),o=i.items;o.splice(a,1,{token:e,titles:n}),r(s,{items:o})}(t.token,0,n)},value:t.titles,schema:x,title:"Translation of term"},n),N({editableToken:d,setEditableToken:p},o))}})]}))}},xzfv:function(e,t,s){"use strict";var n=s("q1tI"),r=(s("17x9"),s("/MKj")),i=s("ANjH"),a=s("lHu7"),o=s("zSVi"),l=s("R6OX"),c=s("TSYQ"),d=s.n(c),p=s("zpb6"),u=s("8ZS8"),h=s("9At1"),b=s("pQ8y"),j=s("55Ip"),m=s("nKUr");var g=({item:e,lang:t})=>{const{settings:s}=u.a;return Object(p.L)(e.url)||""===e.url?Object(m.jsx)(j.b,{to:""===e.url?"/":e.url,className:"item",activeClassName:"active",exact:s.isMultilingual?e.url==="/"+t:""===e.url,children:e.title},e.url):Object(m.jsx)("a",{href:e.url,className:"item",rel:"noopener noreferrer",children:e.title},e.url)};var f=({items:e,lang:t})=>Object(m.jsx)(m.Fragment,{children:e.map(e=>Object(m.jsx)(g,{item:e,lang:t},e.url))});const O=Object(a.defineMessages)({closeMobileMenu:{id:"Close menu",defaultMessage:"Close menu"},openMobileMenu:{id:"Open menu",defaultMessage:"Open menu"}});class v extends n.Component{constructor(e){super(e),this.toggleMobileMenu=this.toggleMobileMenu.bind(this),this.closeMobileMenu=this.closeMobileMenu.bind(this),this.state={isMobileMenuOpen:!1}}componentDidMount(){const{settings:e}=u.a;Object(p.H)("navigation",Object(p.r)(this.props.pathname))||this.props.getNavigation(Object(p.r)(this.props.pathname),e.navDepth)}UNSAFE_componentWillReceiveProps(e){const{settings:t}=u.a;e.pathname===this.props.pathname&&e.token===this.props.token||Object(p.H)("navigation",Object(p.r)(this.props.pathname))||this.props.getNavigation(Object(p.r)(e.pathname),t.navDepth)}toggleMobileMenu(){this.setState({isMobileMenuOpen:!this.state.isMobileMenuOpen})}closeMobileMenu(){this.state.isMobileMenuOpen&&this.setState({isMobileMenuOpen:!1})}render(){return Object(m.jsxs)("nav",{className:"navigation",id:"navigation","aria-label":"navigation",children:[Object(m.jsx)("div",{className:"hamburger-wrapper mobile tablet only",children:Object(m.jsx)("button",{className:d()("hamburger hamburger--spin",{"is-active":this.state.isMobileMenuOpen}),"aria-label":this.state.isMobileMenuOpen?this.props.intl.formatMessage(O.closeMobileMenu,{type:this.props.type}):this.props.intl.formatMessage(O.openMobileMenu,{type:this.props.type}),title:this.state.isMobileMenuOpen?this.props.intl.formatMessage(O.closeMobileMenu,{type:this.props.type}):this.props.intl.formatMessage(O.openMobileMenu,{type:this.props.type}),type:"button",onClick:this.toggleMobileMenu,children:Object(m.jsx)("span",{className:"hamburger-box",children:Object(m.jsx)("span",{className:"hamburger-inner"})})})}),Object(m.jsx)(l.a,{stackable:!0,pointing:!0,secondary:!0,className:"computer large screen widescreen only",onClick:this.closeMobileMenu,children:Object(m.jsx)(f,{items:this.props.items,lang:this.props.lang})}),Object(m.jsx)(b.a,{in:this.state.isMobileMenuOpen,timeout:500,classNames:"mobile-menu",unmountOnExit:!0,children:Object(m.jsxs)("div",{className:"mobile-menu",children:[Object(m.jsx)(p.b,{className:"has-mobile-menu-open"}),Object(m.jsx)("div",{className:"mobile-menu-nav",children:Object(m.jsx)(l.a,{stackable:!0,pointing:!0,secondary:!0,onClick:this.closeMobileMenu,children:Object(m.jsx)(f,{items:this.props.items,lang:this.props.lang})})})]},"mobile-menu-key")})]})}}t.a=Object(i.compose)(o.c,Object(r.connect)(e=>({token:e.userSession.token,items:e.navigation.items,lang:e.intl.locale}),{getNavigation:h.y}))(v)},yISy:function(e,t,s){"use strict";var n=s("55Ip"),r=s("lHu7"),i=s("52Oh"),a=s("5XkN"),o=s("/MKj"),l=s("8ZS8"),c=s("mqPa"),d=s.n(c),p=s("nKUr");const u=Object(r.defineMessages)({site:{id:"Site",defaultMessage:"Site"},plonesite:{id:"Plone Site",defaultMessage:"Plone Site"}});t.a=()=>{const{settings:e}=l.a,t=Object(o.useSelector)(e=>e.intl.locale),s=Object(i.a)();return Object(p.jsx)(n.a,{to:e.isMultilingual?"/"+t:"/",title:s.formatMessage(u.site),children:Object(p.jsx)(a.a,{src:d.a,alt:s.formatMessage(u.plonesite),title:s.formatMessage(u.plonesite)})})}},yr4J:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("/MKj"),l=s("9At1"),c=s("nKUr");function d(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?d(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):d(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}t.a=e=>{function t(t){const s=Object(o.useDispatch)(),n=Object(o.useSelector)(e=>e.querystring),r=(null===n||void 0===n?void 0:n.indexes)||{};return a.a.useEffect(()=>{0===Object.keys(r).length&&s(Object(l.A)())},[s,r]),Object(c.jsx)(e,p(p({},t),{},{querystring:n}))}return t.displayName=`WithQueryString(${function(e){return e.displayName||e.name||"Component"}(e)})`,t}},z7Iz:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("q1tI"),l=s("ANjH"),c=(s("17x9"),s("lHu7")),d=s("zSVi"),p=s("Lf35"),u=s("8ZS8"),h=s("nKUr");const b=Object(c.defineMessages)({title:{id:"Type the title\u2026",defaultMessage:"Type the title\u2026"}});class j extends o.Component{constructor(e){super(e);{const{Map:t}=e.immutableLib,{DefaultDraftBlockRenderMap:s,EditorState:n}=e.draftJs,{stateFromHTML:r}=e.draftJsImportHtml,i=t({unstyled:{element:"h1"}});let a;if(this.extendedBlockRenderMap=s.merge(i),e.properties&&e.properties.title){const t=r(e.properties.title);a=n.createWithContent(t)}else a=n.createEmpty();this.state={editorState:a,focus:!0}}this.onChange=this.onChange.bind(this)}componentDidMount(){this.node&&(this.node.focus(),this.node._onBlur=()=>this.setState({focus:!1}),this.node._onFocus=()=>this.setState({focus:!0}))}shouldComponentUpdate(e){return this.props.selected||!a()(this.props.data,e.data)}UNSAFE_componentWillReceiveProps(e){if(e.properties.title&&this.props.properties.title!==e.properties.title&&!this.state.focus){const{stateFromHTML:t}=this.props.draftJsImportHtml,{EditorState:s}=this.props.draftJs,n=t(e.properties.title);this.setState({editorState:e.properties.title?s.createWithContent(n):s.createEmpty()})}!this.props.selected&&e.selected&&(this.node.focus(),this.setState({focus:!0}))}onChange(e){this.setState({editorState:e},()=>{this.props.onChangeField("title",e.getCurrentContent().getPlainText())})}render(){const{Editor:e}=this.props.draftJs,t=this.props.data.placeholder||this.props.intl.formatMessage(b.title);return Object(h.jsx)(e,{readOnly:!this.props.editable,onChange:this.onChange,editorState:this.state.editorState,blockRenderMap:this.extendedBlockRenderMap,handleReturn:()=>(this.props.data.disableNewBlocks||this.props.onSelectBlock(this.props.onAddBlock(u.a.settings.defaultBlockType,this.props.index+1)),"handled"),placeholder:t,blockStyleFn:()=>"documentFirstHeading",onUpArrow:()=>{const e=this.state.editorState.getSelection(),{editorState:t}=this.state;t.getCurrentContent().getBlockMap().first().getKey()===e.getFocusKey()&&this.props.onFocusPreviousBlock(this.props.block,this.node)},onDownArrow:()=>{const e=this.state.editorState.getSelection(),{editorState:t}=this.state;t.getCurrentContent().getBlockMap().last().getKey()===e.getFocusKey()&&this.props.onFocusNextBlock(this.props.block,this.node)},ref:e=>{this.node=e}})}}r()(j,"defaultProps",{editable:!0}),t.a=Object(l.compose)(Object(p.a)(["draftJs","immutableLib","draftJsImportHtml"]),d.c)(j)},z9PY:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("q1tI"),a=s.n(i),o=s("lHu7"),l=s("zSVi"),c=(s("17x9"),s("ANjH")),d=s("/MKj"),p=s("Lf35"),u=s("PFGh"),h=s("zpb6"),b=s("9At1"),j=s("cuOu"),m=s("Kvkj"),g=s("nKUr");function f(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function O(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?f(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const v=Object(o.defineMessages)({select:{id:"Select\u2026",defaultMessage:"Select\u2026"},no_options:{id:"No options",defaultMessage:"No options"},type_text:{id:"Type text...",defaultMessage:"Type text..."}});class y extends i.Component{constructor(e){super(e),r()(this,"timeoutRef",a.a.createRef()),r()(this,"SEARCH_HOLDOFF",2),r()(this,"loadOptions",e=>e.length>this.SEARCH_HOLDOFF?(this.timeoutRef.current&&clearTimeout(this.timeoutRef.current),new Promise(t=>{this.timeoutRef.current=setTimeout(async()=>{const s=await this.fetchAvailableChoices(e);t(s)},400)})):Promise.resolve([])),r()(this,"fetchAvailableChoices",async e=>{const t=await this.props.getVocabulary({vocabNameOrURL:this.props.vocabBaseUrl,query:e,size:-1,subrequest:this.props.intl.locale});return Object(u.b)(t.items||[],this.props.intl)}),this.handleChange=this.handleChange.bind(this),this.state={searchLength:0,termsPairsCache:[]}}componentDidMount(){const{id:e,intl:t,value:s,choices:n}=this.props;if(s&&(null===s||void 0===s?void 0:s.length)>0){const r=Object(u.a)(Object(u.c)(n,s,this.props.intl));this.props.getVocabularyTokenTitle(O({vocabNameOrURL:this.props.vocabBaseUrl,subrequest:`widget-${e}-${t.locale}`},r))}}componentDidUpdate(e,t){const{value:s,choices:n}=this.props;0===this.state.termsPairsCache.length&&(null===s||void 0===s?void 0:s.length)>0&&(null===n||void 0===n?void 0:n.length)>0&&this.setState(e=>({termsPairsCache:[...e.termsPairsCache,...n]}))}handleChange(e){this.props.onChange(this.props.id,e?e.map(e=>e.value):null),this.setState(t=>({termsPairsCache:[...t.termsPairsCache,...e]}))}render(){var e;const t=Object(u.c)(this.state.termsPairsCache,this.props.value,this.props.intl),s=this.props.reactSelectAsync.default;return Object(g.jsx)(m.db,O(O({},this.props),{},{children:Object(g.jsx)(s,{id:"field-"+this.props.id,isDisabled:this.props.disabled||this.props.isDisabled,className:"react-select-container",classNamePrefix:"react-select",cacheOptions:!0,defaultOptions:[],loadOptions:this.loadOptions,onInputChange:e=>this.setState({searchLength:e.length}),noOptionsMessage:()=>this.props.intl.formatMessage(this.state.searchLength>this.SEARCH_HOLDOFF?v.no_options:v.type_text),styles:j.g,theme:j.h,components:O(O({},(null===(e=this.props.choices)||void 0===e?void 0:e.length)>25&&{MenuList:j.c}),{},{ClearIndicator:j.a,DropdownIndicator:j.b,Option:j.d}),value:t||[],placeholder:this.props.intl.formatMessage(v.select),onChange:this.handleChange,isMulti:!0},this.props.id)}))}}r()(y,"defaultProps",{description:null,required:!1,items:{vocabulary:null},widgetOptions:{vocabulary:null},error:[],choices:[],value:null});Object(l.c)(y);t.a=Object(c.compose)(l.c,Object(p.a)(["reactSelectAsync"]),Object(d.connect)((e,t)=>{var s,n,r,i,a;const o=Object(h.F)(t)||Object(h.E)(t)||Object(h.G)(t),l=null===(s=e.vocabularies)||void 0===s||null===(n=s[o])||void 0===n||null===(r=n.subrequests)||void 0===r||null===(i=r[`widget-${t.id}-${t.intl.locale}`])||void 0===i?void 0:i.items;return null!==(a=t.items)&&void 0!==a&&a.choices?{choices:t.items.choices}:l?{choices:l,vocabBaseUrl:o}:{vocabBaseUrl:o}},{getVocabulary:b.H,getVocabularyTokenTitle:b.I}))(y)},zTLc:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<g fill-rule="evenodd"><path d="M5,31 L31,31 L31,5 L5,5 L5,31 Z M7,29.001 L29.001,29.001 L29.001,7 L7,7 L7,29.001 Z"/><path d="M15 24.414L9.293 18.707 10.707 17.293 15 21.586 25.293 11.293 26.707 12.707z"/></g>'}},zVcF:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("Y+p1"),a=s.n(i),o=s("3WF5"),l=s.n(o),c=s("7GkX"),d=s.n(c),p=s("q1tI"),u=s.n(p),h=(s("17x9"),s("3mGJ")),b=s("TbSc"),j=s("hHGt"),m=s("lHu7"),g=s("zSVi"),f=s("cuY2"),O=s.n(f),v=s("Kvkj"),y=s("hxMo"),x=s.n(y),w=s("5ymK"),C=s.n(w),S=s("nKUr");function M(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function k(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?M(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):M(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const N=Object(m.defineMessages)({editValues:{id:"Edit values",defaultMessage:"Edit values"},error:{id:"Error",defaultMessage:"Error"},thereWereSomeErrors:{id:"There were some errors",defaultMessage:"There were some errors"}}),P=e=>{const{block:t,description:s,error:n,errors:r={},formData:i,onChangeField:o,schema:c,title:m,icon:g,headerActions:f,footer:y,focusIndex:w,intl:M}=e,P=M.formatMessage,L=c.fieldsets.find(e=>"default"===e.id),D=c.fieldsets.filter(e=>"default"!==e.id);u.a.useEffect(()=>{const t="function"===typeof c?c(e):c,s=k(k({},Object.keys(t.properties).reduce((e,s)=>t.properties[s].default?k(k({},e),{},{[s]:t.properties[s].default}):e,{})),i);Object.keys(s).forEach(e=>{a()(s[e],null===i||void 0===i?void 0:i[e])||o(e,s[e])})},[]);const[E,T]=u.a.useState(0);function I(e,t){const{index:s}=t;T(E===s?-1:s)}return Object(S.jsxs)("div",{className:"ui form",children:[m&&Object(S.jsxs)("header",{className:"header pulled",children:[g,Object(S.jsx)("h2",{children:m||P(N.editValues)}),f]}),s&&Object(S.jsx)(h.a,{secondary:!0,className:"attached",children:s}),d()(r).length>0&&Object(S.jsx)(b.a,{icon:"warning",negative:!0,attached:!0,header:P(N.error),content:P(N.thereWereSomeErrors)}),n&&Object(S.jsx)(b.a,{icon:"warning",negative:!0,attached:!0,header:P(N.error),content:n.message}),Object(S.jsx)("div",{id:"blockform-fieldset-"+L.id,children:Object(S.jsx)(h.a,{className:"form attached",children:l()(L.fields,(e,s)=>Object(p.createElement)(v.Z,k(k({},c.properties[e]),{},{id:e,fieldSet:L.title.toLowerCase(),focus:s===w,value:i[e],required:-1!==c.required.indexOf(e),onChange:(e,t)=>{o(e,t)},key:e,error:r[e],block:t})))})}),D.map((e,s)=>Object(S.jsx)(j.a,{fluid:!0,styled:!0,className:"form",children:Object(S.jsxs)("div",{id:"blockform-fieldset-"+e.id,children:[Object(S.jsxs)(j.a.Title,{active:E===s,index:s,onClick:I,children:[e.title&&Object(S.jsx)(S.Fragment,{children:e.title}),E===s?Object(S.jsx)(v.jb,{name:x.a,size:"20px"}):Object(S.jsx)(v.jb,{name:C.a,size:"20px"})]}),Object(S.jsx)(j.a.Content,{active:E===s,children:Object(S.jsx)(O.a,{animateOpacity:!0,duration:500,height:E===s?"auto":0,children:Object(S.jsx)(h.a,{className:"attached",children:l()(e.fields,e=>Object(p.createElement)(v.Z,k(k({},c.properties[e]),{},{id:e,value:i[e],required:-1!==c.required.indexOf(e),onChange:(e,t)=>{o(e,t)},key:e,error:r[e],block:t})))})})})]},e.id)},e.id)),y]})};P.defaultProps={block:null,description:null,formData:null,onChangeField:null,error:null,errors:{},schema:{},focusIndex:null},t.a=Object(g.c)(P,{forwardRef:!0})},zdp0:function(e,t){e.exports={attributes:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},content:'<path fill-rule="evenodd" d="M27,26 C28.103,26 29,26.897 29,28 C29,29.103 28.103,30 27,30 C25.897,30 25,29.103 25,28 C25,26.897 25.897,26 27,26 M27,6 C28.103,6 29,6.897 29,8 C29,9.103 28.103,10 27,10 C25.897,10 25,9.103 25,8 C25,6.897 25.897,6 27,6 M27,16 C28.103,16 29,16.897 29,18 C29,19.103 28.103,20 27,20 C25.897,20 25,19.103 25,18 C25,16.897 25.897,16 27,16 M8,19 L23.142,19 C23.589,20.721 25.142,22 27,22 C29.206,22 31,20.206 31,18 C31,15.794 29.206,14 27,14 C25.142,14 23.589,15.279 23.142,17 L8,17 C7.449,17 7,16.552 7,16 L7,11 L7,8.816 C7.314,8.928 7.648,9 8,9 L23.142,9 C23.589,10.721 25.142,12 27,12 C29.206,12 31,10.206 31,8 C31,5.794 29.206,4 27,4 C25.142,4 23.589,5.279 23.142,7 L8,7 C7.449,7 7,6.552 7,6 L7,5 L5,5 L5,6 L5,11 L5,16 L5,26 C5,27.654 6.346,29 8,29 L23.142,29 C23.589,30.721 25.142,32 27,32 C29.206,32 31,30.206 31,28 C31,25.794 29.206,24 27,24 C25.142,24 23.589,25.279 23.142,27 L8,27 C7.449,27 7,26.552 7,26 L7,18.816 C7.314,18.928 7.648,19 8,19"/>'}},zfia:function(e,t,s){"use strict";s("q1tI"),s("17x9");var n=s("nKUr");const r=({name:e,size:t,color:s,className:r,title:i,onClick:a})=>Object(n.jsx)("svg",{xmlns:e.attributes&&e.attributes.xmlns,viewBox:e.attributes&&e.attributes.viewBox,style:{height:t,width:"auto",fill:s||"currentColor"},className:r?"icon "+r:"icon",onClick:a,dangerouslySetInnerHTML:{__html:i?`<title>${i}</title>${e.content}`:e.content}});r.defaultProps={size:"36px",color:null,className:null,title:null,onClick:null},t.a=r},zpb6:function(e,t,s){"use strict";s.d(t,"a",(function(){return l})),s.d(t,"U",(function(){return I})),s.d(t,"g",(function(){return A.b})),s.d(t,"p",(function(){return A.c})),s.d(t,"q",(function(){return A.d})),s.d(t,"W",(function(){return A.n})),s.d(t,"X",(function(){return A.o})),s.d(t,"L",(function(){return A.j})),s.d(t,"C",(function(){return A.g})),s.d(t,"r",(function(){return A.e})),s.d(t,"D",(function(){return A.h})),s.d(t,"K",(function(){return A.i})),s.d(t,"y",(function(){return A.f})),s.d(t,"f",(function(){return A.a})),s.d(t,"Q",(function(){return Q})),s.d(t,"B",(function(){return X})),s.d(t,"x",(function(){return ee})),s.d(t,"A",(function(){return te})),s.d(t,"h",(function(){return se.a})),s.d(t,"J",(function(){return se.j})),s.d(t,"l",(function(){return se.c})),s.d(t,"m",(function(){return se.d})),s.d(t,"n",(function(){return se.e})),s.d(t,"s",(function(){return se.f})),s.d(t,"t",(function(){return se.g})),s.d(t,"u",(function(){return se.h})),s.d(t,"I",(function(){return se.i})),s.d(t,"O",(function(){return se.k})),s.d(t,"P",(function(){return se.l})),s.d(t,"R",(function(){return se.m})),s.d(t,"V",(function(){return se.n})),s.d(t,"i",(function(){return se.b})),s.d(t,"b",(function(){return P})),s.d(t,"e",(function(){return ie})),s.d(t,"v",(function(){return ae.a})),s.d(t,"F",(function(){return ae.c})),s.d(t,"E",(function(){return ae.b})),s.d(t,"G",(function(){return ae.d})),s.d(t,"M",(function(){return oe})),s.d(t,"d",(function(){return k})),s.d(t,"c",(function(){return xe})),s.d(t,"o",(function(){return we.a})),s.d(t,"w",(function(){return we.b})),s.d(t,"z",(function(){return we.c})),s.d(t,"T",(function(){return we.f})),s.d(t,"S",(function(){return we.e})),s.d(t,"H",(function(){return we.d})),s.d(t,"N",(function(){return je})),s.d(t,"db",(function(){return Ce.c})),s.d(t,"cb",(function(){return Se.a})),s.d(t,"j",(function(){return Ce.b})),s.d(t,"k",(function(){return Me.b})),s.d(t,"bb",(function(){return ke})),s.d(t,"Y",(function(){return Pe})),s.d(t,"Z",(function(){return Te})),s.d(t,"ab",(function(){return Re}));var n=s("24Ii"),r=s.n(n),i=s("9ONQ"),a=s("8ZS8");const o=["get","post","put","patch","del"];var l=class{constructor(e){const t=new i.a;o.forEach(s=>{this[s]=(n,{params:i,data:o,type:l,headers:c={},checkUrl:d=!1}={})=>{let p,u=new Promise((u,h)=>{let b;p=r.a[s](function(e){const{settings:t}=a.a,s=t.legacyTraverse?"":"/++api++";if(e.startsWith("http://")||e.startsWith("https://"))return e;const n="/"!==e[0]?"/"+e:e;let r="";return t.internalApiPath,t.apiPath&&(r=t.apiPath),`${r}${s}${n}`}(n)),i&&p.query(i),b=e?e.universalCookies.get("auth_token"):t.get("auth_token"),b&&p.set("Authorization","Bearer "+b),p.set("Accept","application/json"),l&&p.type(l),Object.keys(c).forEach(e=>p.set(e,c[e])),o&&p.send(o),p.end((e,t)=>d&&p.url&&p.xhr&&Object(A.n)(p.url)!==Object(A.n)(p.xhr.responseURL)?h({code:301,url:p.xhr.responseURL}):e?h(e):u(t.body||t.text))});return u.request=p,u}})}};var c=s("lSNA"),d=s.n(c),p=(s("3tWz"),s("q1tI")),u=s.n(p),h=(s("17x9"),s("QILm")),b=s.n(h),j=s("8+s/"),m=s.n(j),g=s("bmMU"),f=s.n(g),O=s("1n2t"),v=s("pmvk"),y=s("nKUr");const x=["children"],w=["children"];function C(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function S(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?C(Object(s),!0).forEach((function(t){d()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):C(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}const M=(e=>{var t,s;return s=t=class extends u.a.Component{static set canUseDOM(t){e.canUseDOM=t}shouldComponentUpdate(e){return!f()(this.props,e)}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case v.g.SCRIPT:case v.g.NOSCRIPT:return{innerHTML:t};case v.g.STYLE:return{cssText:t}}throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}flattenArrayTypeChildren({child:e,arrayTypeChildren:t,newChildProps:s,nestedChildren:n}){return S(S({},t),{},{[e.type]:[...t[e.type]||[],S(S({},s),this.mapNestedChildrenToProps(e,n))]})}mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:n}){switch(e.type){case v.g.TITLE:return S(S({},t),{},{[e.type]:n,titleAttributes:S({},s)});case v.g.BODY:return S(S({},t),{},{bodyAttributes:S({},s)});case v.g.HTML:return S(S({},t),{},{htmlAttributes:S({},s)})}return S(S({},t),{},{[e.type]:S({},s)})}mapArrayTypeChildrenToProps(e,t){let s=S({},t);return Object.keys(e).forEach(t=>{s=S(S({},s),{},{[t]:e[t]})}),s}warnOnInvalidChildren(e,t){return!0}mapChildrenToProps(e,t){let s={};return u.a.Children.forEach(e,e=>{if(!e||!e.props)return;const n=e.props,{children:r}=n,i=b()(n,x),a=Object(O.a)(i);switch(this.warnOnInvalidChildren(e,r),e.type){case v.g.LINK:case v.g.META:case v.g.NOSCRIPT:case v.g.SCRIPT:case v.g.STYLE:s=this.flattenArrayTypeChildren({child:e,arrayTypeChildren:s,newChildProps:a,nestedChildren:r});break;default:t=this.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:r})}}),t=this.mapArrayTypeChildrenToProps(s,t)}render(){const t=this.props,{children:s}=t;let n=S({},b()(t,w));return s&&(n=this.mapChildrenToProps(s,n)),Object(y.jsx)(e,S({},n))}},d()(t,"defaultProps",{defer:!0,encodeSpecialCharacters:!0}),d()(t,"peek",e.peek),d()(t,"rewind",()=>{let t=e.rewind();return t||(t=Object(O.c)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t}),s})(m()(O.d,O.b,O.c)(()=>null));M.renderStatic=M.rewind;var k=M;s("9lNb");class N extends p.Component{render(){return this.props.children?p.Children.only(this.props.children):null}}N.defaultProps={children:null,className:null};var P=m()((function(e){let t=[];return e.forEach(e=>{e.className&&(t=t.concat(e.className))}),t}),(function(e){document.body.className="",e.forEach(e=>{e.includes(" ")?e.split(" ").forEach(e=>{document.body.classList.contains(e)||document.body.classList.add(e)}):document.body.classList.contains(e)||document.body.classList.add(e)})}))(N);s("cj9C");p.Component;var L=s("BOF4"),D=s.n(L),E=s("9At1"),T=s("AU/w");function I(e,t){const s=new i.a;let n;function r(t){const r=n,i=e.getState();if(n=i.userSession.token,r!==n||t)if(n){r!==n&&s.set("auth_token",n,{path:"/",expires:new Date(1e3*D()(n).exp)});const t=.9*(1e3*D()(e.getState().userSession.token).exp-(new Date).getTime())||36e5;setTimeout(()=>{e.getState().userSession.token&&(1e3*D()(e.getState().userSession.token).exp>(new Date).getTime()?e.dispatch(Object(E.X)()):e.dispatch(Object(T.d)("/logout?return_url="+e.getState().router.location.pathname)))},t)}else r&&s.remove("auth_token",{path:"/"})}n=t?t.universalCookies.get("auth_token"):s.get("auth_token"),e.subscribe(r),r(!0)}var A=s("5IEt");s("Wiaw");var R=s("J2m7"),_=s.n(R),q=s("gb7j"),F=s.n(q),B=s("7GkX"),z=s.n(B),U=s("3WF5"),H=s.n(U),K=s("d8FT"),G=s.n(K),V=s("RHI1"),Z=s.n(V),W=s("3WX/"),$=s.n(W);function Y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function J(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(s),!0).forEach((function(t){d()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Y(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Q(e){if(!e["@static_behaviors"])return e;let t=e;return H()(e["@static_behaviors"],e=>{const s=Z()(G()(t,(t,s)=>-1!==s.indexOf(e)),(t,s)=>s.replace(e+".",""));t=$()(t,(t,s)=>-1!==s.indexOf(e)),t=J(J({},t),{},{[e]:s})}),t}function X(e){return _()(z()(e),e=>F()(e,"content_layout"))||"layout"}function ee(e,t){const{settings:s}=a.a,{contentIcons:n}=s;return e in n?n[e]:t?n.Folder:n.File}function te(e){const{properties:t}=e;return Object.keys(t).filter(e=>{var s;return Object.keys(t[e]).includes("multilingual_options")&&(null===(s=t[e].multilingual_options)||void 0===s?void 0:s.language_independent)})}var se=s("X2qy"),ne=s("Ty5D");class re extends u.a.Component{componentDidUpdate(e){this.props.location.pathname!==e.location.pathname&&window.scrollTo(0,0)}render(){return this.props.children}}var ie=Object(ne.j)(re),ae=s("w3Ui");var oe=new Proxy({ach:{nativeName:"Lwo",englishName:"Acholi"},ady:{nativeName:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",englishName:"Adyghe"},af:{nativeName:"Afrikaans",englishName:"Afrikaans"},"af-NA":{nativeName:"Afrikaans (Namibia)",englishName:"Afrikaans (Namibia)"},"af-ZA":{nativeName:"Afrikaans (South Africa)",englishName:"Afrikaans (South Africa)"},ak:{nativeName:"T\u0255\u0265i",englishName:"Akan"},ar:{nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",englishName:"Arabic"},"ar-AR":{nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",englishName:"Arabic"},"ar-MA":{nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",englishName:"Arabic (Morocco)"},"ar-SA":{nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",englishName:"Arabic (Saudi Arabia)"},"ay-BO":{nativeName:"Aymar aru",englishName:"Aymara"},az:{nativeName:"Az\u0259rbaycan dili",englishName:"Azerbaijani"},"az-AZ":{nativeName:"Az\u0259rbaycan dili",englishName:"Azerbaijani"},"be-BY":{nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",englishName:"Belarusian"},bg:{nativeName:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",englishName:"Bulgarian"},"bg-BG":{nativeName:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",englishName:"Bulgarian"},bn:{nativeName:"\u09ac\u09be\u0982\u09b2\u09be",englishName:"Bengali"},"bn-IN":{nativeName:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",englishName:"Bengali (India)"},"bn-BD":{nativeName:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",englishName:"Bengali (Bangladesh)"},br:{nativeName:"Brezhoneg",englishName:"Breton"},"bs-BA":{nativeName:"Bosanski",englishName:"Bosnian"},ca:{nativeName:"Catal\xe0",englishName:"Catalan"},"ca-ES":{nativeName:"Catal\xe0",englishName:"Catalan"},cak:{nativeName:"Maya Kaqchikel",englishName:"Kaqchikel"},"ck-US":{nativeName:"\u13e3\u13b3\u13a9 (tsalagi)",englishName:"Cherokee"},cs:{nativeName:"\u010ce\u0161tina",englishName:"Czech"},"cs-CZ":{nativeName:"\u010ce\u0161tina",englishName:"Czech"},cy:{nativeName:"Cymraeg",englishName:"Welsh"},"cy-GB":{nativeName:"Cymraeg",englishName:"Welsh"},da:{nativeName:"Dansk",englishName:"Danish"},"da-DK":{nativeName:"Dansk",englishName:"Danish"},de:{nativeName:"Deutsch",englishName:"German"},"de-AT":{nativeName:"Deutsch (\xd6sterreich)",englishName:"German (Austria)"},"de-DE":{nativeName:"Deutsch (Deutschland)",englishName:"German (Germany)"},"de-CH":{nativeName:"Deutsch (Schweiz)",englishName:"German (Switzerland)"},dsb:{nativeName:"Dolnoserb\u0161\u0107ina",englishName:"Lower Sorbian"},el:{nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",englishName:"Greek"},"el-GR":{nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",englishName:"Greek (Greece)"},en:{nativeName:"English",englishName:"English"},"en-GB":{nativeName:"English (UK)",englishName:"English (UK)"},"en-AU":{nativeName:"English (Australia)",englishName:"English (Australia)"},"en-CA":{nativeName:"English (Canada)",englishName:"English (Canada)"},"en-IE":{nativeName:"English (Ireland)",englishName:"English (Ireland)"},"en-IN":{nativeName:"English (India)",englishName:"English (India)"},"en-PI":{nativeName:"English (Pirate)",englishName:"English (Pirate)"},"en-UD":{nativeName:"English (Upside Down)",englishName:"English (Upside Down)"},"en-US":{nativeName:"English (US)",englishName:"English (US)"},"en-ZA":{nativeName:"English (South Africa)",englishName:"English (South Africa)"},"en@pirate":{nativeName:"English (Pirate)",englishName:"English (Pirate)"},eo:{nativeName:"Esperanto",englishName:"Esperanto"},"eo-EO":{nativeName:"Esperanto",englishName:"Esperanto"},es:{nativeName:"Espa\xf1ol",englishName:"Spanish"},"es-AR":{nativeName:"Espa\xf1ol (Argentine)",englishName:"Spanish (Argentina)"},"es-419":{nativeName:"Espa\xf1ol (Latinoam\xe9rica)",englishName:"Spanish (Latin America)"},"es-CL":{nativeName:"Espa\xf1ol (Chile)",englishName:"Spanish (Chile)"},"es-CO":{nativeName:"Espa\xf1ol (Colombia)",englishName:"Spanish (Colombia)"},"es-EC":{nativeName:"Espa\xf1ol (Ecuador)",englishName:"Spanish (Ecuador)"},"es-ES":{nativeName:"Espa\xf1ol (Espa\xf1a)",englishName:"Spanish (Spain)"},"es-LA":{nativeName:"Espa\xf1ol (Latinoam\xe9rica)",englishName:"Spanish (Latin America)"},"es-NI":{nativeName:"Espa\xf1ol (Nicaragua)",englishName:"Spanish (Nicaragua)"},"es-MX":{nativeName:"Espa\xf1ol (M\xe9xico)",englishName:"Spanish (Mexico)"},"es-US":{nativeName:"Espa\xf1ol (Estados Unidos)",englishName:"Spanish (United States)"},"es-VE":{nativeName:"Espa\xf1ol (Venezuela)",englishName:"Spanish (Venezuela)"},et:{nativeName:"eesti keel",englishName:"Estonian"},"et-EE":{nativeName:"Eesti (Estonia)",englishName:"Estonian (Estonia)"},eu:{nativeName:"Euskara",englishName:"Basque"},"eu-ES":{nativeName:"Euskara",englishName:"Basque"},fa:{nativeName:"\u0641\u0627\u0631\u0633\u06cc",englishName:"Persian"},"fa-IR":{nativeName:"\u0641\u0627\u0631\u0633\u06cc",englishName:"Persian"},"fb-LT":{nativeName:"Leet Speak",englishName:"Leet"},ff:{nativeName:"Fulah",englishName:"Fulah"},fi:{nativeName:"Suomi",englishName:"Finnish"},"fi-FI":{nativeName:"Suomi",englishName:"Finnish"},"fo-FO":{nativeName:"F\xf8royskt",englishName:"Faroese"},fr:{nativeName:"Fran\xe7ais",englishName:"French"},"fr-CA":{nativeName:"Fran\xe7ais (Canada)",englishName:"French (Canada)"},"fr-FR":{nativeName:"Fran\xe7ais (France)",englishName:"French (France)"},"fr-BE":{nativeName:"Fran\xe7ais (Belgique)",englishName:"French (Belgium)"},"fr-CH":{nativeName:"Fran\xe7ais (Suisse)",englishName:"French (Switzerland)"},"fy-NL":{nativeName:"Frysk",englishName:"Frisian (West)"},ga:{nativeName:"Gaeilge",englishName:"Irish"},"ga-IE":{nativeName:"Gaeilge",englishName:"Irish"},gd:{nativeName:"G\xe0idhlig",englishName:"Gaelic"},gl:{nativeName:"Galego",englishName:"Galician"},"gl-ES":{nativeName:"Galego",englishName:"Galician"},"gn-PY":{nativeName:"Ava\xf1e'\u1ebd",englishName:"Guarani"},"gu-IN":{nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",englishName:"Gujarati"},gv:{nativeName:"Gaelg",englishName:"Manx"},"gx-GR":{nativeName:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",englishName:"Classical Greek"},he:{nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",englishName:"Hebrew"},"he-IL":{nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",englishName:"Hebrew"},hi:{nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940",englishName:"Hindi"},"hi-IN":{nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940",englishName:"Hindi"},hr:{nativeName:"Hrvatski",englishName:"Croatian"},"hr-HR":{nativeName:"Hrvatski",englishName:"Croatian"},hsb:{nativeName:"Hornjoserb\u0161\u0107ina",englishName:"Upper Sorbian"},ht:{nativeName:"Krey\xf2l",englishName:"Haitian Creole"},hu:{nativeName:"Magyar",englishName:"Hungarian"},"hu-HU":{nativeName:"Magyar",englishName:"Hungarian"},"hy-AM":{nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",englishName:"Armenian"},id:{nativeName:"Bahasa Indonesia",englishName:"Indonesian"},"id-ID":{nativeName:"Bahasa Indonesia",englishName:"Indonesian"},is:{nativeName:"\xcdslenska",englishName:"Icelandic"},"is-IS":{nativeName:"\xcdslenska (Iceland)",englishName:"Icelandic (Iceland)"},it:{nativeName:"Italiano",englishName:"Italian"},"it-IT":{nativeName:"Italiano",englishName:"Italian"},ja:{nativeName:"\u65e5\u672c\u8a9e",englishName:"Japanese"},"ja-JP":{nativeName:"\u65e5\u672c\u8a9e (\u65e5\u672c)",englishName:"Japanese (Japan)"},"jv-ID":{nativeName:"Basa Jawa",englishName:"Javanese"},"ka-GE":{nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",englishName:"Georgian"},"kk-KZ":{nativeName:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",englishName:"Kazakh"},km:{nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",englishName:"Khmer"},"km-KH":{nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",englishName:"Khmer"},kab:{nativeName:"Taqbaylit",englishName:"Kabyle"},kn:{nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",englishName:"Kannada"},"kn-IN":{nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",englishName:"Kannada (India)"},ko:{nativeName:"\ud55c\uad6d\uc5b4",englishName:"Korean"},"ko-KR":{nativeName:"\ud55c\uad6d\uc5b4 (\ud55c\uad6d)",englishName:"Korean (Korea)"},"ku-TR":{nativeName:"Kurd\xee",englishName:"Kurdish"},kw:{nativeName:"Kernewek",englishName:"Cornish"},la:{nativeName:"Latin",englishName:"Latin"},"la-VA":{nativeName:"Latin",englishName:"Latin"},lb:{nativeName:"L\xebtzebuergesch",englishName:"Luxembourgish"},"li-NL":{nativeName:"L\xe8mb\xf6rgs",englishName:"Limburgish"},lt:{nativeName:"Lietuvi\u0173",englishName:"Lithuanian"},"lt-LT":{nativeName:"Lietuvi\u0173",englishName:"Lithuanian"},lv:{nativeName:"Latvie\u0161u",englishName:"Latvian"},"lv-LV":{nativeName:"Latvie\u0161u",englishName:"Latvian"},mai:{nativeName:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",englishName:"Maithili"},"mg-MG":{nativeName:"Malagasy",englishName:"Malagasy"},mk:{nativeName:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",englishName:"Macedonian"},"mk-MK":{nativeName:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",englishName:"Macedonian (Macedonian)"},ml:{nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",englishName:"Malayalam"},"ml-IN":{nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",englishName:"Malayalam"},"mn-MN":{nativeName:"\u041c\u043e\u043d\u0433\u043e\u043b",englishName:"Mongolian"},mr:{nativeName:"\u092e\u0930\u093e\u0920\u0940",englishName:"Marathi"},"mr-IN":{nativeName:"\u092e\u0930\u093e\u0920\u0940",englishName:"Marathi"},ms:{nativeName:"Bahasa Melayu",englishName:"Malay"},"ms-MY":{nativeName:"Bahasa Melayu",englishName:"Malay"},mt:{nativeName:"Malti",englishName:"Maltese"},"mt-MT":{nativeName:"Malti",englishName:"Maltese"},my:{nativeName:"\u1017\u1019\u102c\u1005\u1000\u102c",englishName:"Burmese"},no:{nativeName:"Norsk",englishName:"Norwegian"},nb:{nativeName:"Norsk (bokm\xe5l)",englishName:"Norwegian (bokmal)"},"nb-NO":{nativeName:"Norsk (bokm\xe5l)",englishName:"Norwegian (bokmal)"},ne:{nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940",englishName:"Nepali"},"ne-NP":{nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940",englishName:"Nepali"},nl:{nativeName:"Nederlands",englishName:"Dutch"},"nl-BE":{nativeName:"Nederlands (Belgi\xeb)",englishName:"Dutch (Belgium)"},"nl-NL":{nativeName:"Nederlands (Nederland)",englishName:"Dutch (Netherlands)"},"nn-NO":{nativeName:"Norsk (nynorsk)",englishName:"Norwegian (nynorsk)"},oc:{nativeName:"Occitan",englishName:"Occitan"},"or-IN":{nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",englishName:"Oriya"},pa:{nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",englishName:"Punjabi"},"pa-IN":{nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",englishName:"Punjabi (India)"},pl:{nativeName:"Polski",englishName:"Polish"},"pl-PL":{nativeName:"Polski",englishName:"Polish"},"ps-AF":{nativeName:"\u067e\u069a\u062a\u0648",englishName:"Pashto"},pt:{nativeName:"Portugu\xeas",englishName:"Portuguese"},"pt-BR":{nativeName:"Portugu\xeas (Brasil)",englishName:"Portuguese (Brazil)"},"pt-PT":{nativeName:"Portugu\xeas (Portugal)",englishName:"Portuguese (Portugal)"},"qu-PE":{nativeName:"Qhichwa",englishName:"Quechua"},"rm-CH":{nativeName:"Rumantsch",englishName:"Romansh"},ro:{nativeName:"Rom\xe2n\u0103",englishName:"Romanian"},"ro-RO":{nativeName:"Rom\xe2n\u0103",englishName:"Romanian"},ru:{nativeName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",englishName:"Russian"},"ru-RU":{nativeName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",englishName:"Russian"},"sa-IN":{nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",englishName:"Sanskrit"},"se-NO":{nativeName:"Davvis\xe1megiella",englishName:"Northern S\xe1mi"},sh:{nativeName:"\u0441\u0440\u043f\u0441\u043a\u043e\u0445\u0440\u0432\u0430\u0442\u0441\u043a\u0438",englishName:"Serbo-Croatian"},"si-LK":{nativeName:"\u0db4\u0dc5\u0dcf\u0dad",englishName:"Sinhala (Sri Lanka)"},sk:{nativeName:"Sloven\u010dina",englishName:"Slovak"},"sk-SK":{nativeName:"Sloven\u010dina (Slovakia)",englishName:"Slovak (Slovakia)"},sl:{nativeName:"Sloven\u0161\u010dina",englishName:"Slovenian"},"sl-SI":{nativeName:"Sloven\u0161\u010dina",englishName:"Slovenian"},"so-SO":{nativeName:"Soomaaliga",englishName:"Somali"},sq:{nativeName:"Shqip",englishName:"Albanian"},"sq-AL":{nativeName:"Shqip",englishName:"Albanian"},sr:{nativeName:"\u0421\u0440\u043f\u0441\u043a\u0438",englishName:"Serbian"},"sr-RS":{nativeName:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",englishName:"Serbian (Serbia)"},su:{nativeName:"Basa Sunda",englishName:"Sundanese"},sv:{nativeName:"Svenska",englishName:"Swedish"},"sv-SE":{nativeName:"Svenska",englishName:"Swedish"},sw:{nativeName:"Kiswahili",englishName:"Swahili"},"sw-KE":{nativeName:"Kiswahili",englishName:"Swahili (Kenya)"},ta:{nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",englishName:"Tamil"},"ta-IN":{nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",englishName:"Tamil"},te:{nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",englishName:"Telugu"},"te-IN":{nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",englishName:"Telugu"},tg:{nativeName:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",englishName:"Tajik"},"tg-TJ":{nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3",englishName:"Tajik"},th:{nativeName:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",englishName:"Thai"},"th-TH":{nativeName:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",englishName:"Thai (Thailand)"},tl:{nativeName:"Filipino",englishName:"Filipino"},"tl-PH":{nativeName:"Filipino",englishName:"Filipino"},tlh:{nativeName:"tlhIngan-Hol",englishName:"Klingon"},tr:{nativeName:"T\xfcrk\xe7e",englishName:"Turkish"},"tr-TR":{nativeName:"T\xfcrk\xe7e",englishName:"Turkish"},"tt-RU":{nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",englishName:"Tatar"},uk:{nativeName:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",englishName:"Ukrainian"},"uk-UA":{nativeName:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",englishName:"Ukrainian"},ur:{nativeName:"\u0627\u0631\u062f\u0648",englishName:"Urdu"},"ur-PK":{nativeName:"\u0627\u0631\u062f\u0648",englishName:"Urdu"},uz:{nativeName:"O'zbek",englishName:"Uzbek"},"uz-UZ":{nativeName:"O'zbek",englishName:"Uzbek"},vi:{nativeName:"Ti\u1ebfng Vi\u1ec7t",englishName:"Vietnamese"},"vi-VN":{nativeName:"Ti\u1ebfng Vi\u1ec7t",englishName:"Vietnamese"},"xh-ZA":{nativeName:"isiXhosa",englishName:"Xhosa"},yi:{nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",englishName:"Yiddish"},"yi-DE":{nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",englishName:"Yiddish (German)"},zh:{nativeName:"\u4e2d\u6587",englishName:"Chinese"},"zh-Hans":{nativeName:"\u4e2d\u6587\u7b80\u4f53",englishName:"Chinese Simplified"},"zh-Hant":{nativeName:"\u4e2d\u6587\u7e41\u9ad4",englishName:"Chinese Traditional"},"zh-CN":{nativeName:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",englishName:"Chinese Simplified (China)"},"zh-HK":{nativeName:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",englishName:"Chinese Traditional (Hong Kong)"},"zh-SG":{nativeName:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",englishName:"Chinese Simplified (Singapore)"},"zh-TW":{nativeName:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",englishName:"Chinese Traditional (Taiwan)"},"zu-ZA":{nativeName:"isiZulu",englishName:"Zulu"}},{get:function(e,t){return t.includes("-")?t=`${(t=t.split("-"))[0]}-${t[1].toUpperCase()}`:t.includes("_")&&(t=`${(t=t.split("_"))[0]}-${t[1].toUpperCase()}`),e[t]}}),le=s("E+oP"),ce=s.n(le),de=s("0XPj"),pe=s.n(de),ue=s("7tbW"),he=s.n(ue),be=s("lHu7");const je=Object(be.defineMessages)({addBlock:{id:"Add block\u2026",defaultMessage:"Add block\u2026"},required:{id:"Required input is missing.",defaultMessage:"Required input is missing."},minLength:{id:"Minimum length is {len}.",defaultMessage:"Minimum length is {len}."},maxLength:{id:"Maximum length is {len}.",defaultMessage:"Maximum length is {len}."},minimum:{id:"Minimum value is {len}.",defaultMessage:"Minimum value is {len}."},maximum:{id:"Maximum value is {len}.",defaultMessage:"Maximum value is {len}."},uniqueItems:{id:"Items must be unique.",defaultMessage:"Items must be unique."},save:{id:"Save",defaultMessage:"Save"},isNumber:{id:"number",defaultMessage:"Input must be number"},isInteger:{id:"integer",defaultMessage:"Input must be integer"},isValidEmail:{id:"email",defaultMessage:"Input must be valid email (something@domain.com)"},isValidURL:{id:"url",defaultMessage:"Input must be valid url (www.something.com or http(s)://www.something.com)"},cancel:{id:"Cancel",defaultMessage:"Cancel"},error:{id:"Error",defaultMessage:"Error"},thereWereSomeErrors:{id:"There were some errors.",defaultMessage:"There were some errors."},searchUsers:{id:"Search users\u2026",defaultMessage:"Search users\u2026"},searchGroups:{id:"Search group\u2026",defaultMessage:"Search group\u2026"},back:{id:"Back",defaultMessage:"Back"},deleteUserConfirmTitle:{id:"Delete User",defaultMessage:"Delete User"},deleteGroupConfirmTitle:{id:"Delete Group",defaultMessage:"Delete Group"},add:{id:"Add",defaultMessage:"Add"},addUserButtonTitle:{id:"Add new user",defaultMessage:"Add new user"},addGroupsButtonTitle:{id:"Add new group",defaultMessage:"Add new group"},addUserFormTitle:{id:"Add User",defaultMessage:"Add User"},addGroupsFormTitle:{id:"Add group",defaultMessage:"Add group"},addUserFormUsernameTitle:{id:"Username",defaultMessage:"Username"},addGroupsFormTitleTitle:{id:"Title",defaultMessage:"Title"},addUserFormFullnameTitle:{id:"Fullname",defaultMessage:"Fullname"},addUserGroupNameTitle:{id:"Add to Groups",defaultMessage:"Add to Groups"},addGroupsFormGroupNameTitle:{id:"Groupname",defaultMessage:"Groupname"},addGroupsFormDescriptionTitle:{id:"Description",defaultMessage:"Description"},addUserFormEmailTitle:{id:"Email",defaultMessage:"Email"},addGroupsFormEmailTitle:{id:"Email",defaultMessage:"Email"},addUserFormPasswordTitle:{id:"Password",defaultMessage:"Password"},addUserFormRolesTitle:{id:"Roles",defaultMessage:"Roles"},updateRoles:{id:"User roles updated",defaultMessage:"User roles updated"},updateGroups:{id:"Group roles updated",defaultMessage:"Group roles updated"},addGroupsFormRolesTitle:{id:"Roles",defaultMessage:"Roles"},success:{id:"Success",defaultMessage:"Success"},userCreated:{id:"User created",defaultMessage:"User created"},groupCreated:{id:"Group created",defaultMessage:"Group created"},users:{id:"Users",defaultMessage:"Users"},groups:{id:"Groups",defaultMessage:"Groups"},copyBlocks:{id:"Copy blocks"},cutBlocks:{id:"Cut blocks"},pasteBlocks:{id:"Paste blocks"},deleteBlocks:{id:"Delete blocks"},showAllUserButton:{id:"Show All",defaultMessage:"Show All"},showAllUserText:{id:"Enter a username above to search or click 'Show All'",defaultMessage:"Enter a username above to search or click 'Show All'"}}),me=(e,t,s,n)=>e?null:n(je[t],{len:s}),ge=(e,t,s,n)=>me(void 0===t||e<=t,s,t,n),fe=(e,t,s,n)=>me(void 0===t||e>=t,s,t,n),Oe={email:{isValidEmail:(e,t,s)=>/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(e)?null:s(je.isValidEmail),minLength:(e,t,s)=>fe(e.length,t.minLength,"minLength",s),maxLength:(e,t,s)=>ge(e.length,t.maxLength,"maxLength",s)},url:{isValidURL:(e,t,s)=>/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([_.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gm.test(e)?null:s(je.isValidURL),minLength:(e,t,s)=>fe(e.length,t.minLength,"minLength",s),maxLength:(e,t,s)=>ge(e.length,t.maxLength,"maxLength",s)},password:{minLength:(e,t,s)=>fe(e.length,t.minLength,"minLength",s),maxLength:(e,t,s)=>ge(e.length,t.maxLength,"maxLength",s)},string:{minLength:(e,t,s)=>fe(e.length,t.minLength,"minLength",s),maxLength:(e,t,s)=>ge(e.length,t.maxLengthj,"maxLength",s)},number:{isNumber:(e,t,s)=>!isNaN(e)&&/^[+-]?\d+(\.\d+)?$/.test(e)?null:s(je.isNumber),minimum:(e,t,s)=>fe(e,t.minimum,"minimum",s),maximum:(e,t,s)=>ge(e,t.maximum,"maximum",s)},integer:{isInteger:(e,t,s)=>!isNaN(e)&&/^-?[0-9]+$/.test(e)?null:s(je.isInteger),minimum:(e,t,s)=>fe(e,t.minimum,"minimum",s),maximum:(e,t,s)=>ge(e,t.maximum,"maximum",s)}},ve=(e,t,s,n)=>{const r=((e,t,s,n)=>{const r={},i=ce()(n)?e.required:pe()(e.required,z()(n));return H()(i,n=>{var i,a;const o=null===(i=e.properties[n])||void 0===i?void 0:i.type,l=null===(a=e.properties[n])||void 0===a?void 0:a.widget;let c=!t[n];if(!c)if("array"===o)c=!t[n]||0===t[n].length;else if("string"===o&&"richtext"===l){var d,p;c=!((null===(d=t[n])||void 0===d||null===(p=d.data)||void 0===p?void 0:p.replace(/(<([^>]+)>)/g,"").length)>0)}if(e.properties[n]&&"boolean"!==e.properties[n].type&&!e.properties[n].readonly&&c){const t=e.properties[n].title||n;r[t]=[],r[t].push(s(je.required))}}),r})(e,t,s,n);return H()(e.properties,(e,n)=>{const i=e.widget||e.type,a=Oe[i]?Object.keys(Oe[i]):[];let o=t[n];const l=a.map(t=>void 0===o||null===o?null:Oe[i][t](o,e,s)).filter(e=>!!e),c=((e,t,s)=>{const n=[];return e.uniqueItems&&t&&he()(t).length!==t.length&&n.push(s(je.uniqueItems)),n})(e,o,s);[...l,...c].length>0&&(r[n]=[...r[n]||[],...l,...c])}),r},ye=e=>{let t=(e=>{let t=null;try{t=JSON.parse(e)}catch(s){try{t=JSON.parse(e.replace(/'/g,'"'))}catch(s){t=null}}return t})(e);const s={};return Array.isArray(t)&&t.length>0&&t.forEach(e=>{s[e.field]=s[e.field]?s[e.field].push(e.message):[e.message]}),s};var xe=class{static showFirstTabWithErrors({errors:e={},schema:t={properties:{},fieldsets:[],required:[]}}={}){return((e,t)=>{let s=0;return t.fieldsets.some((t,n)=>{let r=t.fields.some(t=>e[t]);return s=r?n:s,r}),s})(e,t)}static giveServerErrorsToCorrespondingFields(e=""){return ye(e)}static validateFieldsPerFieldset({schema:e={properties:{},fieldsets:[],required:[]},formData:t={},formatMessage:s=(()=>{}),touchedField:n={}}={}){return ve(e,t,s,n)}},we=s("Ef8B"),Ce=s("2Cnc"),Se=s("8ZJL"),Me=s("fSJZ");function ke(e,t=[]){var s;return pe()(null!==(s=null===e||void 0===e?void 0:e.roles)&&void 0!==s?s:[],t).length>0}var Ne=s("xd3P");function Pe({onTriggered:e,disableClick:t,disableKeys:s,allowAnyKey:n,triggerKeys:r}){const i=Object(p.useRef)(null),a=Object(p.useCallback)(t=>{n?e(t):r?r.includes(t.key)&&e(t):"Escape"===t.key&&e(t)},[]),o=Object(p.useCallback)(t=>{i&&i.current&&(Object(Ne.doesNodeContainClick)(i.current,t)||e(t))},[i.current]);return Object(p.useEffect)(()=>(!t&&window.addEventListener("click",o),!s&&window.addEventListener("keyup",a),()=>{!t&&window.removeEventListener("click",o),!s&&window.removeEventListener("keyup",a)}),[]),i}var Le=s("Y+p1"),De=s.n(Le),Ee=s("6crI");const Te=(e,t=1)=>{const s=function(e){const t=u.a.useRef();return u.a.useEffect(()=>{t.current=e}),t.current}(e),[n,r]=u.a.useState(t);return Object(Ee.a)(()=>{r(t)},[e,s,t]),{currentPage:s&&!De()(s,e)?t:n,setCurrentPage:r}};var Ie=s("xSf6"),Ae=s.n(Ie);var Re=(e,t,{maxUndoLevels:s,enableHotKeys:n=!0})=>{const[r,i]=u.a.useState(!1),[a,o]=u.a.useState(!1),l=u.a.useRef(new Ae.a({maxLength:s})),c=u.a.useRef(t);u.a.useEffect(()=>{c.current=t},[t]);const d=u.a.useCallback(()=>{l.current.undo(({state:e})=>{const t=l.current.canUndo(),s=l.current.canRedo();i(t),o(s),c.current({state:e,type:"undo",canUndo:t,canRedo:s})})},[]);u.a.useEffect(()=>{l.current.save({state:e}),i(l.current.canUndo()),o(l.current.canRedo())},[e]);const p=u.a.useCallback(()=>{l.current.redo(({state:e})=>{const t=l.current.canUndo(),s=l.current.canRedo();i(t),o(s),c.current({state:e,type:"redo",canUndo:t,canRedo:s})})},[]),h=u.a.useCallback(e=>{const t=e.key;"Control"!==t&&"Meta"!==t&&(e.ctrlKey||e.metaKey)&&("z"===t?(e.preventDefault(),e.stopPropagation(),d()):"y"===t&&(e.preventDefault(),e.stopPropagation(),p()))},[d,p]);return u.a.useEffect(()=>{if(n)return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[n,h]),{doUndo:d,doRedo:p,canUndo:r,canRedo:a}}},zt6r:function(e,t,s){"use strict";var n=s("lSNA"),r=s.n(n),i=s("3WF5"),a=s.n(i),o=s("q1tI"),l=s.n(o),c=s("ikXu"),d=s("QetY"),p=s("pLir"),u=s("55Ip"),h=(s("17x9"),s("lHu7")),b=s("52Oh"),j=s("24R3"),m=s("Kvkj"),g=s("zpb6"),f=s("iHvF"),O=s.n(f),v=s("uXAj"),y=s.n(v),x=s("zTLc"),w=s.n(x),C=s("mz8Z"),S=s.n(C),M=s("DQaE"),k=s.n(M),N=s("8Z/7"),P=s.n(N),L=s("S+Ux"),D=s.n(L),E=s("4nAz"),T=s.n(E),I=s("t0Tt"),A=s.n(I),R=s("YIVY"),_=s.n(R),q=s("IW6S"),F=s.n(q),B=s("TSYQ"),z=s.n(B),U=s("Lf35"),H=s("nKUr");function K(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}const G=Object(h.defineMessages)({private:{id:"private",defaultMessage:"Private"},published:{id:"published",defaultMessage:"Published"},intranet:{id:"intranet",defaultMessage:"Intranet"},draft:{id:"draft",defaultMessage:"Draft"},no_workflow_state:{id:"no workflow state",defaultMessage:"No workflow state"},none:{id:"None",defaultMessage:"None"}});function V(e){switch(e){case"private":return"#ed4033";case"published":return"#007bc1";case"intranet":return"#51aa55";case"draft":return"#f6a808";default:return"grey"}}const Z=({item:e,selected:t,onClick:s,indexes:n,onCut:r,onCopy:i,onDelete:o,onMoveToTop:l,onMoveToBottom:h,connectDragPreview:f,connectDragSource:v,connectDropTarget:x,isDragging:C,order:M})=>{const N=Object(b.a)();return x(f(Object(H.jsxs)("tr",{className:z()("",{"dragging-row":C}),children:[Object(H.jsx)(c.a.Cell,{className:z()("",{"dragging-cell":C}),children:v(Object(H.jsx)("div",{style:{display:"inline-block"},children:Object(H.jsx)(d.a,{icon:!0,basic:!0,children:Object(H.jsx)(m.jb,{name:F.a,size:"20px",color:"#878f93",className:"content drag handle"})})}))}),Object(H.jsx)(c.a.Cell,{className:z()("",{"dragging-cell":C}),children:t?Object(H.jsx)(d.a,{icon:!0,basic:!0,"aria-label":"Unchecked",onClick:t=>s(t,e["@id"]),children:Object(H.jsx)(m.jb,{name:w.a,color:"#007eb1",size:"24px",className:"checked"})}):Object(H.jsx)(d.a,{icon:!0,basic:!0,"aria-label":"Checked",onClick:t=>s(t,e["@id"]),children:Object(H.jsx)(m.jb,{name:y.a,color:"#826a6a",size:"24px",className:"unchecked"})})}),Object(H.jsx)(c.a.Cell,{className:z()("",{"dragging-cell":C}),children:Object(H.jsxs)(u.a,{className:"icon-align-name",to:`${e["@id"]}${e.is_folderish?"/contents":""}`,children:[Object(H.jsxs)("div",{className:"expire-align",children:[Object(H.jsx)(m.jb,{name:Object(g.x)(e["@type"],e.is_folderish),size:"20px",className:"icon-margin",color:"#878f93",title:e["@type"]})," ",Object(H.jsxs)("span",{title:e.title,children:[" ",e.title]})]}),"None"!==e.ExpirationDate&&new Date(e.ExpirationDate).getTime()<(new Date).getTime()&&Object(H.jsx)(d.a,{className:"button-margin",size:"mini",children:Object(H.jsx)(j.a,{id:"Expired",defaultMessage:"Expired"})})]})}),a()(n,t=>{var s;return Object(H.jsxs)(c.a.Cell,{className:z()("",{"dragging-cell":C}),children:["boolean"===t.type&&(e[t.id]?Object(H.jsx)(j.a,{id:"Yes",defaultMessage:"Yes"}):Object(H.jsx)(j.a,{id:"No",defaultMessage:"No"})),"string"===t.type&&"review_state"!==t.id&&e[t.id],"review_state"===t.id&&Object(H.jsxs)("div",{children:[Object(H.jsx)("span",{children:Object(H.jsx)(m.p,{color:V(e[t.id]),size:"15px"})}),G[e[t.id]]?N.formatMessage(G[e[t.id]]):e.review_title||e.review_state||N.formatMessage(G.no_workflow_state)]}),"date"===t.type&&Object(H.jsx)(H.Fragment,{children:"None"!==e[t.id]?Object(H.jsx)(m.eb,{date:e[t.id]}):N.formatMessage(G.none)}),"array"===t.type&&Object(H.jsx)("span",{children:null===(s=e[t.id])||void 0===s?void 0:s.join(", ")})]},t.id)}),Object(H.jsx)(c.a.Cell,{className:z()("",{"dragging-cell":C}),textAlign:"right",children:Object(H.jsx)(p.a,{className:"row-actions",icon:Object(H.jsx)(m.jb,{name:O.a,size:"24px",color:"#007eb1"}),children:Object(H.jsxs)(p.a.Menu,{className:"left",children:[Object(H.jsxs)(u.a,{className:"item icon-align",to:e["@id"]+"/edit",children:[Object(H.jsx)(m.jb,{name:_.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Edit",defaultMessage:"Edit"})]}),Object(H.jsxs)(u.a,{className:"item right-dropdown icon-align",to:e["@id"],children:[Object(H.jsx)(m.jb,{name:D.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"View",defaultMessage:"View"})]}),Object(H.jsx)(p.a.Divider,{}),Object(H.jsxs)(p.a.Item,{onClick:r,value:e["@id"],className:"right-dropdown icon-align",children:[Object(H.jsx)(m.jb,{name:S.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Cut",defaultMessage:"Cut"})]}),Object(H.jsxs)(p.a.Item,{onClick:i,value:e["@id"],className:"right-dropdown icon-align",children:[Object(H.jsx)(m.jb,{name:P.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Copy",defaultMessage:"Copy"})]}),Object(H.jsxs)(p.a.Item,{onClick:o,value:e["@id"],className:"right-dropdown icon-align",children:[Object(H.jsx)(m.jb,{name:k.a,color:"#e40166",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Delete",defaultMessage:"Delete"})]}),Object(H.jsx)(p.a.Divider,{}),Object(H.jsxs)(p.a.Item,{onClick:l,value:M,className:"right-dropdown icon-align",children:[Object(H.jsx)(m.jb,{name:T.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Move to top of folder",defaultMessage:"Move to top of folder"})]}),Object(H.jsxs)(p.a.Item,{onClick:h,value:M,className:"right-dropdown icon-align",children:[Object(H.jsx)(m.jb,{name:A.a,color:"#007eb1",size:"24px"})," ",Object(H.jsx)(j.a,{id:"Move to bottom of folder",defaultMessage:"Move to bottom of folder"})]})]})})})]},e["@id"])))};t.a=Object(U.a)("reactDnd")(e=>{const{DropTarget:t,DragSource:s}=e.reactDnd,n=l.a.useMemo(()=>t("item",{hover(e,t){const s=t.getItem().id,n=t.getItem().order,r=e.order;n!==r&&(e.onOrderItem(s,n,r-n,!1),t.getItem().order=r)},drop(e,t){const s=t.getItem().id,n=t.getItem().startOrder,r=e.order;n!==r&&(e.onOrderItem(s,n,r-n,!0),t.getItem().order=r)}},e=>({connectDropTarget:e.dropTarget()}))(s("item",{beginDrag:e=>({id:e.item["@id"],order:e.order,startOrder:e.order})},(e,t)=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}))(Z)),[s,t]);return Object(H.jsx)(n,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?K(Object(s),!0).forEach((function(t){r()(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):K(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({},e))})}},[["ftlp",13,14]]]);
2
+ //# sourceMappingURL=client.8417f0bd.chunk.js.map