From 45f3984c094926b88906520dc2f69b85bc5bc02c Mon Sep 17 00:00:00 2001 From: ericof Date: Wed, 3 Apr 2024 21:35:30 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20plonegov?= =?UTF-8?q?br/volto-vlibras@c63b480b3bb6e30d37fe715b0826b99975ebe7d9=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iframe.html | 2 +- ....a017ecc7.iframe.bundle.js => main.031b7454.iframe.bundle.js | 2 +- project.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename main.a017ecc7.iframe.bundle.js => main.031b7454.iframe.bundle.js (72%) diff --git a/iframe.html b/iframe.html index a8cfcd4..f5f85e9 100644 --- a/iframe.html +++ b/iframe.html @@ -367,4 +367,4 @@ import './326.c35846ac.iframe.bundle.js'; - import './main.a017ecc7.iframe.bundle.js'; \ No newline at end of file + import './main.031b7454.iframe.bundle.js'; \ No newline at end of file diff --git a/main.a017ecc7.iframe.bundle.js b/main.031b7454.iframe.bundle.js similarity index 72% rename from main.a017ecc7.iframe.bundle.js rename to main.031b7454.iframe.bundle.js index eaa8c3e..6e042c8 100644 --- a/main.a017ecc7.iframe.bundle.js +++ b/main.031b7454.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_plone_volto=self.webpackChunk_plone_volto||[]).push([[590],{"./locales lazy recursive ^\\.\\/.*\\.json$":function(module,__unused_webpack_exports,__webpack_require__){var map={"./ca.json":["./locales/ca.json",614],"./de.json":["./locales/de.json",168],"./en.json":["./locales/en.json"],"./es.json":["./locales/es.json",128],"./eu.json":["./locales/eu.json",748],"./fi.json":["./locales/fi.json",496],"./fr.json":["./locales/fr.json",416],"./it.json":["./locales/it.json",816],"./ja.json":["./locales/ja.json",544],"./nl.json":["./locales/nl.json",376],"./pt.json":["./locales/pt.json",976],"./pt_BR.json":["./locales/pt_BR.json",347],"./ro.json":["./locales/ro.json",684],"./zh_CN.json":["./locales/zh_CN.json",792]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((function(){return __webpack_require__.t(id,19)}))}webpackAsyncContext.keys=function(){return Object.keys(map)},webpackAsyncContext.id="./locales lazy recursive ^\\.\\/.*\\.json$",module.exports=webpackAsyncContext},"./src/components/manage/Widgets/ColorPickerWidget.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Form/Form.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Grid/Grid.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),react_intl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_1__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_2__.O)({Color:{id:"Color",defaultMessage:"Color"}}),ColorPickerWidget=props=>{const{id:id,title:title,required:required,value:value,onChange:onChange,colors:colors,className:className}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_3__.c)();return react__WEBPACK_IMPORTED_MODULE_1__.useEffect((()=>{!props.value&&props.default&&props.onChange(props.id,props.default)})),colors.length>0?__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_4__.c.Field,{inline:!0,required:required,className:className,id:"field-"+id},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__.c,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__.c.Row,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_5__.c.Column,{width:"12",className:"color-picker-widget",verticalAlign:"middle"},__jsx("div",{className:"wrapper"},__jsx("label",{htmlFor:`field-${id}`},title||intl.formatMessage(messages.Color)),__jsx("div",{className:"buttons"},colors.map((color=>{let colorValue;const colorName=color.name;return colorValue=void 0!==color.style?color.style:color.name,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__.c,{key:id+colorName,className:colorName,onClick:e=>{e.preventDefault(),e.stopPropagation(),onChange(id,value===colorValue?props.missing_value:colorValue)},style:color.style,active:lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(value,colorValue),circular:!0,"aria-label":color.label,title:color.label})})))))))):null};__webpack_exports__.c=ColorPickerWidget;try{ColorPickerWidget.displayName="ColorPickerWidget",ColorPickerWidget.__docgenInfo={description:"",displayName:"ColorPickerWidget",props:{id:{defaultValue:null,description:"",name:"id",required:!0,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},default:{defaultValue:null,description:"",name:"default",required:!0,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!0,type:{name:"boolean"}},missing_value:{defaultValue:null,description:"",name:"missing_value",required:!0,type:{name:"unknown"}},className:{defaultValue:null,description:"",name:"className",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(id: string, value: any) => void"}},colors:{defaultValue:null,description:"",name:"colors",required:!0,type:{name:"Color[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/manage/Widgets/ColorPickerWidget.tsx#ColorPickerWidget"]={docgenInfo:ColorPickerWidget.__docgenInfo,name:"ColorPickerWidget",path:"src/components/manage/Widgets/ColorPickerWidget.tsx#ColorPickerWidget"})}catch(__react_docgen_typescript_loader_error){}},"../../../.storybook/preview.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:function(){return decorators},parameters:function(){return parameters}});__webpack_require__("./src/config/index.js");var react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_router=__webpack_require__("../../../node_modules/.pnpm/react-router@5.2.0_react@18.2.0/node_modules/react-router/esm/react-router.js"),provider=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/provider.js"),en=__webpack_require__("./locales/en.json"),injectStylesIntoStyleTag=(__webpack_require__("../../../node_modules/.pnpm/semantic-ui-less@2.4.1/node_modules/semantic-ui-less/semantic.less"),__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js")),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),extras=__webpack_require__("../../../node_modules/.pnpm/css-loader@5.2.7_webpack@5.90.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[15].use[1]!../../../node_modules/.pnpm/postcss-loader@7.0.2_postcss@8.4.31_webpack@5.90.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[15].use[2]!../../../node_modules/.pnpm/less-loader@11.1.0_less@3.11.1_webpack@5.90.1/node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[15].use[3]!./theme/themes/pastanaga/extras/extras.less"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(extras.c,options),extras.c&&extras.c.locals&&extras.c.locals;var __jsx=react.createElement;const parameters={controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}},decorators=[Story=>__jsx(provider.c,{messages:en,locale:"en",defaultLocale:"en"},__jsx(react_router.ws,{location:"/"},__jsx(Story,null)))]},"../volto-slate/src/constants.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AT:function(){return SLATE_PLUGINS},En:function(){return UPLOAD_CONTENT},G0:function(){return LINK},LI:function(){return LI},OL:function(){return OL},OQ:function(){return TABLE},P:function(){return P},TD:function(){return TD},TH:function(){return TH},TR:function(){return TR},UL:function(){return UL},Ul:function(){return THEAD},Yx:function(){return ELEMENT_NODE},_I:function(){return IMAGE},aq:function(){return SIMPLELINK},cl:function(){return COMMENT},eO:function(){return INLINE_ELEMENTS},is:function(){return TEXT_NODE},ox:function(){return TFOOT},oy:function(){return SAVE_SLATE_BLOCK_SELECTION},wH:function(){return TBODY}});const SAVE_SLATE_BLOCK_SELECTION="SAVE_SLATE_BLOCK_SELECTION",SLATE_PLUGINS="SLATE_PLUGINS",UPLOAD_CONTENT="UPLOAD_CONTENT",IMAGE="img",LINK="a",SIMPLELINK="link",TABLE="table",THEAD="thead",TBODY="tbody",TFOOT="tbody",TR="tr",TH="th",TD="td",P="p",LI="li",UL="ul",OL="ol",TEXT_NODE=3,ELEMENT_NODE=1,COMMENT=8,INLINE_ELEMENTS=["A","ABBR","ACRONYM","AUDIO","B","BDI","BDO","BIG","BR","BUTTON","CANVAS","CITE","CODE","DATA","DATALIST","DEL","DFN","EM","EMBED","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","MAP","MARK","METER","NOSCRIPT","OBJECT","OUTPUT","PICTURE","PROGRESS","Q","RUBY","S","SAMP","SCRIPT","SELECT","SLOT","SMALL","SPAN","STRONG","SUB","SUP","SVG","TEMPLATE","TEXTAREA","TIME","U","TT","VAR","VIDEO","WBR"]},"../volto-slate/src/editor/render.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{gr:function(){return Element},WC:function(){return Leaf},E3:function(){return renderLinkElement},M7:function(){return serializeNodes},Ge:function(){return serializeNodesToText}});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutProperties=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),omit=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omit.js"),omit_default=__webpack_require__.n(omit),isEmpty=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js"),isEmpty_default=__webpack_require__.n(isEmpty),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_router=(__webpack_require__("../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/server.browser.js"),__webpack_require__("../../../node_modules/.pnpm/react-router@5.2.0_react@18.2.0/node_modules/react-router/esm/react-router.js")),react_toastify=__webpack_require__("../../../node_modules/.pnpm/react-toastify@5.5.0_react-dom@18.2.0_react@18.2.0/node_modules/react-toastify/esm/react-toastify.js"),useIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),es=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),index_es=__webpack_require__("../../../node_modules/.pnpm/slate@0.100.0/node_modules/slate/dist/index.es.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),components=__webpack_require__("./src/components/index.js"),helpers=__webpack_require__("./src/helpers/index.js"),useClipboard=__webpack_require__("./src/hooks/clipboard/useClipboard.js"),registry=__webpack_require__("./src/registry.js"),icons_link=__webpack_require__("./src/icons/link.svg"),link_default=__webpack_require__.n(icons_link),injectStylesIntoStyleTag=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("../../../node_modules/.pnpm/style-loader@3.3.1_webpack@5.90.1/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),slate=__webpack_require__("../../../node_modules/.pnpm/css-loader@5.2.7_webpack@5.90.1/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[15].use[1]!../../../node_modules/.pnpm/postcss-loader@7.0.2_postcss@8.4.31_webpack@5.90.1/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[15].use[2]!../../../node_modules/.pnpm/less-loader@11.1.0_less@3.11.1_webpack@5.90.1/node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[15].use[3]!../volto-slate/src/editor/less/slate.less"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(slate.c,options),slate.c&&slate.c.locals&&slate.c.locals;const _excluded=["element","attributes","extras"],_excluded2=["children"];var __jsx=react.createElement;const OMITTED=["editor","path"],Element=_ref=>{let{element:element,attributes:attributes={},extras:extras}=_ref,rest=(0,objectWithoutProperties.c)(_ref,_excluded);const{slate:slate}=registry.default.settings,{elements:elements}=slate,El=elements[element.type]||elements.default,attrs=Object.assign(element.styleName?{className:element.styleName}:{},...Object.keys(attributes||{}).map((k=>isEmpty_default()(attributes[k])?{}:{[k]:attributes[k]})));return attrs.ref=null==attributes?void 0:attributes.ref,__jsx(El,(0,esm_extends.c)({element:element},omit_default()(rest,OMITTED),{attributes:attrs,extras:extras}))},Leaf=_ref2=>{let{children:children}=_ref2,rest=(0,objectWithoutProperties.c)(_ref2,_excluded2);const{attributes:attributes,leaf:leaf,mode:mode}=rest;let{leafs:leafs}=registry.default.settings.slate;children=Object.keys(leafs).reduce(((acc,name)=>Object.keys(leaf).includes(name)?leafs[name]({children:acc}):acc),children);const classNames={[`highlight-${leaf.highlightType}`]:"view"!==mode&&leaf.highlightType,"highlight-selection":"view"!==mode&&leaf.isSelection};for(const prop in leaf)prop.startsWith("style-")&&(classNames[prop.substring(6)]=!0);const klass=classnames_default()(classNames);return"view"===mode?"string"==typeof children?children.split("\n").map(((t,i)=>__jsx(react.Fragment,{key:`${i}`},children.indexOf("\n")>-1&&children.split("\n").length-1>i?__jsx(react.Fragment,null,klass?__jsx("span",{className:klass},t):t,__jsx("br",null)):klass?__jsx("span",{className:klass},t):t))):__jsx("span",{className:klass},children):__jsx("span",(0,esm_extends.c)({},attributes,{className:klass}),children)},serializeData=node=>JSON.stringify({type:node.type,data:node.data}),serializeNodes=(nodes,getAttributes,extras={})=>{const editor={children:nodes||[]},_serializeNodes=nodes=>(nodes||[]).map((([node,path],i)=>index_es.a.isText(node)?__jsx(Leaf,{path:path,leaf:node,text:node,mode:"view",key:path},node.text):__jsx(Element,{path:path,element:node,mode:"view",key:path,"data-slate-data":node.data?serializeData(node):null,attributes:getAttributes?getAttributes(node,path):null,extras:extras},_serializeNodes(Array.from(index_es.a8.children(editor,path))))));return _serializeNodes(Array.from(index_es.a8.children(editor,[])))},ConcatenatedString=node=>index_es.a.isText(node)?node.text.trim():node.children.map(ConcatenatedString).join(" "),serializeNodesToText=nodes=>nodes.map(ConcatenatedString).join("\n"),renderLinkElement=tagName=>{function LinkElement({attributes:attributes,children:children,mode:mode="edit",className:className=null}){const{slate:slate={}}=registry.default.settings,Tag=tagName,slug=attributes.id||"",location=(0,react_router.IT)(),token=(0,es.useSelector)((state=>state.userSession.token)),appPathname=(0,helpers.EP)(location.pathname),[copied,copy,setCopied]=(0,useClipboard.c)(appPathname.concat(`#${slug}`)),intl=(0,useIntl.c)();return token&&!1!==slate.useLinkedHeadings?__jsx(Tag,(0,esm_extends.c)({},attributes,{className:className,tabIndex:0}),children,"view"===mode&&slug&&__jsx(components.GQK,{className:"anchor","aria-hidden":"true",tabIndex:-1,href:`#${slug}`},__jsx("style",null,"\n a.anchor svg {\n height: var(--anchor-svg-height, 24px);\n }\n "),__jsx("svg",(0,esm_extends.c)({},link_default().attributes,{dangerouslySetInnerHTML:{__html:link_default().content},height:null,onClick:()=>{copy(),react_toastify.toast.info(__jsx(components.qAm,{info:!0,title:intl.formatMessage(helpers.cJ.success),content:intl.formatMessage(helpers.cJ.urlClipboardCopy)}))}})))):__jsx(Tag,(0,esm_extends.c)({},attributes,{className:className,tabIndex:0}),children)}return LinkElement.displayName=`${tagName}LinkElement`,LinkElement};Element.__docgenInfo={description:"",methods:[],displayName:"Element",props:{attributes:{defaultValue:{value:"{}",computed:!1},required:!1}}},Leaf.__docgenInfo={description:"",methods:[],displayName:"Leaf"}},"./src/actions/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{pw:function(){return addAction},W0:function(){return addAliases},gH:function(){return addComment},oh:function(){return addCondition},OO:function(){return addNewRule},VP:function(){return addRule},Om:function(){return applyRulesToSubfolders},Yd:function(){return applyWorkingCopy},g$:function(){return authenticatedRole},WC:function(){return changeLanguage},kT:function(){return copy},qU:function(){return copyContent},uc:function(){return createContent},Gs:function(){return createGroup},Mh:function(){return createRelations},C_:function(){return createUser},ao:function(){return createWorkingCopy},us:function(){return cut},iN:function(){return deleteComment},_O:function(){return deleteContent},S_:function(){return deleteControlPanelRule},oz:function(){return deleteControlpanel},Qx:function(){return deleteGroup},yW:function(){return deleteLinkTranslation},eu:function(){return deleteRelations},A0:function(){return deleteUser},gV:function(){return disableRules},gB:function(){return editAction},m_:function(){return editCondition},CQ:function(){return editRule},_s:function(){return emailNotification},QB:function(){return enableRules},K2:function(){return getAction},cj:function(){return getAliases},If:function(){return getBreadcrumbs},Up:function(){return getCondition},uq:function(){return getContent},_:function(){return getContentRulesEvents},Mv:function(){return getControlPanelRule},Os:function(){return getControlPanelRules},Gm:function(){return getControlpanel},a4:function(){return getDatabaseInformation},EF:function(){return getDiff},A3:function(){return getHistory},OW:function(){return getNavigation},oH:function(){return getNavroot},wj:function(){return getQueryStringResults},m2:function(){return getQuerystring},EL:function(){return getRelationStats},gz:function(){return getRules},wx:function(){return getSchema},QN:function(){return getSharing},_d:function(){return getSystemInformation},Av:function(){return getTransactions},c4:function(){return getTranslationLocator},y6:function(){return getTypes},Sc:function(){return getUpgradeInformation},eg:function(){return getUser},Mf:function(){return getUserSchema},um:function(){return getVocabulary},IH:function(){return getVocabularyTokenTitle},yO:function(){return getWorkflow},aT:function(){return installAddon},Y3:function(){return linkIntegrityCheck},eY:function(){return linkTranslation},KC:function(){return listActions},oL:function(){return listAddons},AR:function(){return listComments},Ep:function(){return listControlpanels},Ud:function(){return listGroups},wR:function(){return listMoreComments},YF:function(){return listRoles},Cq:function(){return listUsers},O:function(){return loadLazyLibrary},k9:function(){return lockContent},Mp:function(){return login},ay:function(){return logout},UL:function(){return moveContent},YL:function(){return moveRuleAction},QG:function(){return moveRuleCondition},wh:function(){return orderContent},uO:function(){return postControlpanel},_8:function(){return purgeMessages},sh:function(){return putSchema},yY:function(){return queryRelations},Iv:function(){return rebuildRelations},Q5:function(){return removeAction},Oq:function(){return removeAliases},Oi:function(){return removeCondition},or:function(){return removeMessage},aW:function(){return removeRules},Id:function(){return removeWorkingCopy},Gk:function(){return resetBlocksClipboard},WE:function(){return resetLoginRequest},IZ:function(){return resetMetadataFocus},YV:function(){return resetPassword},kL:function(){return search.k},iM:function(){return revertHistory},MV:function(){return revertTransactions},aw:function(){return runUpgrade},uU:function(){return search.M},w1:function(){return setBlocksClipboard},MF:function(){return setExpandedToolbar},I7:function(){return setFormData},kx:function(){return setInitialPassword},gh:function(){return setMetadataFieldsets},Of:function(){return setSidebarTab},A$:function(){return sortContent},am:function(){return transitionWorkflow},m4:function(){return unapplyRulesToSubfolders},KQ:function(){return uninstallAddon},S9:function(){return unlockContent},U1:function(){return updateColumnsContent},k$:function(){return updateComment},IM:function(){return updateContent},Pj:function(){return updateControlpanel},Gy:function(){return updateGroup},QJ:function(){return updatePassword},C6:function(){return updateSchema},q6:function(){return updateSharing},Fo:function(){return updateUser},ER:function(){return upgradeAddon}});var ActionTypes=__webpack_require__("./src/constants/ActionTypes.js");function listActions(url){return{type:ActionTypes.Q5,request:{op:"get",path:`${url}/@actions`}}}function getBreadcrumbs(url){return{type:ActionTypes.G8,request:{op:"get",path:`${url}/@breadcrumbs`}}}function setExpandedToolbar(isExpanded){return{type:ActionTypes.ms,isExpanded:isExpanded}}function copyContent(source,target){return{type:ActionTypes.K8,request:{op:"post",path:`${target}/@copy`,data:{source:source}}}}function moveContent(source,target){return{type:ActionTypes.qK,request:{op:"post",path:`${target}/@move`,data:{source:source}}}}function copy(urls){return{type:ActionTypes._g,source:urls}}function cut(urls){return{type:ActionTypes.It,source:urls}}function listAddons(){return{type:ActionTypes.wF,request:{op:"get",path:"/@addons"}}}function installAddon(id){return{type:ActionTypes.Qv,request:{op:"post",path:`/@addons/${id}/install`}}}function uninstallAddon(id){return{type:ActionTypes._d,request:{op:"post",path:`/@addons/${id}/uninstall`}}}function upgradeAddon(id){return{type:ActionTypes.md,request:{op:"post",path:`/@addons/${id}/upgrade`}}}function addComment(url,text,commentId){const path=commentId?`${url}/@comments/${commentId}`:`${url}/@comments`;return{type:ActionTypes.sP,request:{op:"post",path:path,data:{text:text}}}}function listComments(url){return{type:ActionTypes._A,request:{op:"get",path:`${url}/@comments`}}}function listMoreComments(url){return{type:ActionTypes.K2,request:{op:"get",path:`${url}`}}}function deleteComment(url){return{type:ActionTypes._c,request:{op:"del",path:url}}}function updateComment(url,text){return{type:ActionTypes.kJ,request:{op:"patch",path:url,data:{text:text}}}}var helpers=__webpack_require__("./src/helpers/index.js"),registry=__webpack_require__("./src/registry.js");function createContent(url,content,subrequest){return{type:ActionTypes.Sm,subrequest:subrequest,mode:"serial",request:Array.isArray(content)?content.map((item=>({op:"post",path:url,data:item}))):{op:"post",path:url,data:(0,helpers.i)(content)}}}function deleteContent(urls){return{type:ActionTypes.oF,mode:"serial",request:"string"==typeof urls?{op:"del",path:urls}:urls.map((url=>({op:"del",path:url})))}}function updateContent(urls,content,headers={}){return{type:ActionTypes.eI,request:"string"==typeof urls?{op:"patch",path:urls,data:(0,helpers.i)(content),headers:headers}:urls.map(((url,index)=>({op:"patch",path:url,data:(0,helpers.i)(content[index]),headers:headers})))}}function orderContent(parent,url,delta,subset){return{type:ActionTypes.o3,request:{op:"patch",path:parent,data:{ordering:{obj_id:url,delta:delta,subset_ids:subset}}}}}function sortContent(url,on,order){return{type:ActionTypes.eI,sort:{on:on,order:order},request:{op:"patch",path:url,data:{sort:{on:on,order:order}}}}}function getContent(url,version=null,subrequest=null,page=null,fullobjects=!1){const{settings:settings}=registry.default,query=Object.assign({},fullobjects||settings.bbb_getContentFetchesFullobjects?{fullobjects:!0}:{},page?{b_start:settings.defaultPageSize*(page-1),b_size:settings.defaultPageSize}:{},settings.isMultilingual?{expand:"translations"}:{});let qs=Object.keys(query).map((function(key){return key+"="+query[key]})).join("&");return{type:ActionTypes.ot,subrequest:subrequest,request:{op:"get",path:`${url}${version?`/@history/${version}`:""}${qs?`?${qs}`:""}`}}}function updateColumnsContent(url,index){return{type:ActionTypes.eW,indexcolumns:index}}function lockContent(urls){return{type:ActionTypes.st,mode:"serial",request:"string"==typeof urls?{op:"post",path:`${urls}/@lock`}:urls.map((url=>({op:"post",path:`${url}/@lock`})))}}function unlockContent(urls,force=!1){return{type:ActionTypes.GS,mode:"serial",request:"string"==typeof urls?{op:"del",path:`${urls}/@lock`,data:force?{force:!0}:{}}:urls.map((url=>({op:"del",path:`${url}/@lock`,data:force?{force:!0}:{}})))}}function linkIntegrityCheck(selection){return{type:ActionTypes.yM,mode:"serial",request:{op:"get",path:"@linkintegrity?"+selection.map((uid=>`uids=${uid}`)).join("&")}}}function getControlpanel(id){return{type:ActionTypes.OI,request:{op:"get",path:`/@controlpanels/${id}`}}}function postControlpanel(id,data){return{type:ActionTypes.kF,request:{op:"post",path:`/@controlpanels/${id}`,data:data}}}function deleteControlpanel(id,item){return{type:ActionTypes.y,request:{op:"del",path:`/@controlpanels/${id}/${item}`}}}function listControlpanels(){return{type:ActionTypes.Q3,request:{op:"get",path:"/@controlpanels"}}}function updateControlpanel(url,data){return{type:ActionTypes.Ir,request:{op:"patch",path:url,data:data}}}function getSystemInformation(){return{type:ActionTypes.i4,request:{op:"get",path:"/@system"}}}function getDatabaseInformation(){return{type:ActionTypes.wt,request:{op:"get",path:"/@database"}}}function getDiff(url,one,two){return{type:ActionTypes.IR,request:[{op:"get",path:`${url}/@history/${one}`},{op:"get",path:`${url}/@history/${two}`}]}}function emailNotification(from,message,name,subject){return{type:ActionTypes.MZ,request:{op:"post",path:"/@email-notification",data:{from:from,message:message,name:name,subject:subject}}}}function createGroup(data){return{type:ActionTypes.k1,request:{op:"post",path:"/@groups",data:data}}}function deleteGroup(id){return{type:ActionTypes.Ar,request:{op:"del",path:`/@groups/${id}`}}}function listGroups(query,query_group_filter){return void 0!==query_group_filter?{type:ActionTypes.Wk,request:query_group_filter?{op:"get",path:`/@groups?query=${query_group_filter}`}:{op:"get",path:"/@groups"}}:{type:ActionTypes.iC,request:query?{op:"get",path:`/@groups?query=${query}`}:{op:"get",path:"/@groups"}}}function updateGroup(id,data){return{type:ActionTypes.yO,request:{op:"patch",path:`/@groups/${id}`,data:data}}}function getHistory(url){return{type:ActionTypes.q_,request:{op:"get",path:`${url}/@history`}}}function revertHistory(url,version){return{type:ActionTypes.Q1,request:{op:"patch",path:`${url}/@history`,data:{version:version}}}}function getTransactions(){return{type:ActionTypes.XQ,request:{op:"get",path:"/@transactions"}}}function revertTransactions(transaction_ids){return{type:ActionTypes.aK,request:{op:"patch",path:"/@transactions",data:{transaction_ids:transaction_ids}}}}function removeMessage(index){return{type:ActionTypes.Oo,index:index}}function purgeMessages(){return{type:ActionTypes.OG}}function getNavigation(url,depth){return{type:ActionTypes.GK,request:{op:"get",path:`${url}/@navigation${depth?`?expand.navigation.depth=${depth}`:""}`}}}function createRelations(content){return{type:ActionTypes.aW,request:{op:"post",path:"/@relations",data:{items:content}}}}function deleteRelations(content){return{type:ActionTypes._s,request:{op:"del",path:"/@relations",data:{items:content}}}}function queryRelations(relation=null,onlyBroken=!1,subrequest=null,source=null,target=null,query_source=null,query_target=null){let path="/@relations";var searchParams=new URLSearchParams;relation&&searchParams.append("relation",relation),onlyBroken&&searchParams.append("onlyBroken",onlyBroken),source&&searchParams.append("source",source),target&&searchParams.append("target",target),query_source&&searchParams.append("query_source",query_source),query_target&&searchParams.append("query_target",query_target);const searchParamsToString=searchParams.toString();return searchParamsToString&&(path+=`?${searchParamsToString}`),{type:ActionTypes.YP,subrequest:subrequest,request:{op:"get",path:path}}}function getRelationStats(){return{type:ActionTypes.IT,request:{op:"get",path:"/@relations"}}}function rebuildRelations(flush=!1){const data=!0===flush?{flush:1}:{};return{type:ActionTypes.kf,request:{op:"post",path:"/@relations/rebuild",data:data}}}function listRoles(){return{type:ActionTypes.ED,request:{op:"get",path:"/@roles"}}}function getSchema(type,url){return url=void 0!==url?url:"",{type:ActionTypes.PH,request:{op:"get",path:`${url}/@types/${type}`}}}function putSchema(type,data){return{type:ActionTypes.Ws,request:{op:"put",path:`/@types/${type}`,data:data}}}function updateSchema(type,data){return{type:ActionTypes.Eq,request:{op:"patch",path:`/@types/${type}`,data:data}}}var objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js");function getRules(url){return{type:ActionTypes.Ib,request:{op:"get",path:`${url}/@content-rules`}}}function getControlPanelRules(url){return{type:ActionTypes.cl,request:{op:"get",path:`${url}/@controlpanels/content-rules`}}}function getControlPanelRule(url,rule){return{type:ActionTypes.M7,request:{op:"get",path:`${url}/@controlpanels/content-rules/${rule}`}}}function enableRules(url,rules){return{type:ActionTypes.SE,request:{op:"patch",path:`${url}/@content-rules`,data:{"form.button.Enable":!0,rule_ids:rules}}}}function disableRules(url,rules){return{type:ActionTypes.uE,request:{op:"patch",path:`${url}/@content-rules`,data:{"form.button.Disable":!0,rule_ids:rules}}}}function applyRulesToSubfolders(url,rules){return{type:ActionTypes.Q9,request:{op:"patch",path:`${url}/@content-rules`,data:{"form.button.Bubble":!0,rule_ids:rules}}}}function unapplyRulesToSubfolders(url,rules){return{type:ActionTypes.gZ,request:{op:"patch",path:`${url}/@content-rules`,data:{"form.button.NoBubble":!0,rule_ids:rules}}}}function removeRules(url,rules){return{type:ActionTypes.u_,request:{op:"del",path:`${url}/@content-rules`,data:{"form.button.Delete":!0,rule_ids:rules}}}}function addRule(url,rule){return{type:ActionTypes.$Y,request:{op:"post",path:`${url}/@content-rules/${rule}`}}}function deleteControlPanelRule(url,rule){return{type:ActionTypes.Ih,request:{op:"del",path:`${url}/@controlpanels/content-rules/${rule}`}}}function getContentRulesEvents(url){return{type:ActionTypes.oh,request:{op:"get",path:`${url}/@vocabularies/plone.contentrules.events`}}}function addNewRule(url,data){return{type:ActionTypes.iy,request:{op:"post",path:`${url}/@controlpanels/content-rules`,data:data}}}function moveRuleCondition(url,data,ruleId,condId){return{type:ActionTypes.gz,request:{op:"patch",path:`${url}/@controlpanels/content-rules/${ruleId}/condition/${condId}`,data:data}}}function moveRuleAction(url,data,ruleId,actionId){return{type:ActionTypes.gz,request:{op:"patch",path:`${url}/@controlpanels/content-rules/${ruleId}/action/${actionId}`,data:data}}}function editRule(url,data,rule){return{type:ActionTypes.sV,request:{op:"patch",path:`${url}/@controlpanels/content-rules/${rule}`,data:(0,objectSpread2.c)({"form.button.Save":!0},data)}}}function removeCondition(url,rule,condition){return{type:ActionTypes.k$,request:{op:"del",path:`${url}/@controlpanels/content-rules/${rule}/condition/${condition}`}}}function addCondition(url,rule,data){return{type:ActionTypes.wP,request:{op:"post",path:`${url}/@controlpanels/content-rules/${rule}/condition`,data:data}}}function editCondition(url,rule,data,condition_index){return{type:ActionTypes.i2,request:{op:"patch",path:`${url}/@controlpanels/content-rules/${rule}/condition/${condition_index}`,data:data}}}function getCondition(url,rule,condition_index){return{type:ActionTypes.dz,request:{op:"get",path:`${url}/@controlpanels/content-rules/${rule}/condition/${condition_index}`}}}function removeAction(url,rule,action){return{type:ActionTypes.cB,request:{op:"del",path:`${url}/@controlpanels/content-rules/${rule}/action/${action}`}}}function addAction(url,rule,data){return{type:ActionTypes.ee,request:{op:"post",path:`${url}/@controlpanels/content-rules/${rule}/action`,data:data}}}function editAction(url,rule,data,action_index){return{type:ActionTypes.U5,request:{op:"patch",path:`${url}/@controlpanels/content-rules/${rule}/action/${action_index}`,data:data}}}function getAction(url,rule,action_index){return{type:ActionTypes.CC,request:{op:"get",path:`${url}/@controlpanels/content-rules/${rule}/action/${action_index}`}}}var search=__webpack_require__("./src/actions/search/search.js");function updateSharing(url,sharing){return{type:ActionTypes.wJ,request:{op:"post",path:`${url}/@sharing`,data:sharing}}}function getSharing(url,search=""){return{type:ActionTypes.sz,request:{op:"get",path:`${url}/@sharing${""!==search?`?search=${search}`:""}`}}}function getAliases(url,options){const{query:query,manual:manual,datetime:datetime,batchSize:batchSize,batchStart:batchStart}=options||{};return{type:ActionTypes.wL,request:{op:"get",path:`${url}/@aliases?q=${query||""}&manual=${manual||""}&datetime=${null!==datetime?datetime:""}&b_size=${batchSize||99999999999}&b_start=${batchStart||0}`}}}function addAliases(url,data){return{type:ActionTypes.eQ,request:{op:"post",path:`${url}/@aliases`,data:data}}}function removeAliases(url,data){return{type:ActionTypes.Mr,request:{op:"del",path:`${url}/@aliases`,data:data}}}function getTypes(url){return(dispatch,getState)=>{getState().userSession.token&&dispatch({type:ActionTypes.oV,request:{op:"get",path:`${url}/@types`}})}}var query_string=__webpack_require__("../../../node_modules/.pnpm/query-string@7.1.0/node_modules/query-string/index.js");function createUser(content,sendPasswordReset=null){return{type:ActionTypes.sL,request:{op:"post",path:"/@users",data:sendPasswordReset?(0,objectSpread2.c)((0,objectSpread2.c)({},content),{},{sendPasswordReset:sendPasswordReset}):content}}}function deleteUser(id){return{type:ActionTypes.ym,request:{op:"del",path:`/@users/${id}`}}}function getUser(id){return{type:ActionTypes.gF,request:{op:"get",path:`/@users/${id}`}}}function listUsers(options={}){const{query:query="",search:search="",groups_filter:groups_filter=[],limit:limit=null}=options;let path="/@users";var searchParams=new URLSearchParams;query&&searchParams.append("query",query),search&&searchParams.append("search",search),limit&&searchParams.append("limit",limit);const searchParamsToString=searchParams.toString();let filterarg=groups_filter.length>0?(0,query_string.stringify)({"groups-filter":groups_filter},{arrayFormat:"colon-list-separator"}):"";return searchParamsToString&&(path+=`?${searchParamsToString}`),filterarg&&(path+=searchParamsToString?"&":"?",path+=filterarg),{type:ActionTypes.qI,request:{op:"get",path:path}}}function updateUser(id,user){return{type:ActionTypes.Qr,request:{op:"patch",path:`/@users/${id}`,data:user}}}function updatePassword(id,oldPassword,newPassword){return{type:ActionTypes.Af,request:{op:"post",path:`/@users/${id}/reset-password`,data:{old_password:oldPassword,new_password:newPassword}}}}function setInitialPassword(id,token,newPassword){return{type:ActionTypes.w5,request:{op:"post",path:`/@users/${id}/reset-password`,data:{reset_token:token,new_password:newPassword}}}}function resetPassword(id){return{type:ActionTypes.E1,request:{op:"post",path:`/@users/${id}/reset-password`}}}function login(username,password){return{type:ActionTypes.EV,request:{op:"post",path:"@login",data:{login:username,password:password}}}}function logout(){return{type:ActionTypes.E9,request:{op:"post",path:"@logout"}}}function resetLoginRequest(){return{type:ActionTypes.y3}}var Vocabularies=__webpack_require__("./src/helpers/Vocabularies/Vocabularies.js");function getVocabulary({vocabNameOrURL:vocabNameOrURL,query:query=null,start:start=0,size:size,subrequest:subrequest}){const vocabulary=(0,Vocabularies.Y3)(vocabNameOrURL);let queryString=`b_start=${start}${size?"&b_size="+size:""}`;return query&&(queryString=`${queryString}&title=${query}`),{type:ActionTypes.EX,vocabulary:vocabNameOrURL,start:start,request:{op:"get",path:`/@vocabularies/${vocabulary}?${queryString}`},subrequest:subrequest}}function getVocabularyTokenTitle({vocabNameOrURL:vocabNameOrURL,token:token=null,tokens:tokens=null,subrequest:subrequest}){const vocabulary=(0,Vocabularies.Y3)(vocabNameOrURL),queryString=(0,objectSpread2.c)((0,objectSpread2.c)({},token&&{token:token}),tokens&&{tokens:tokens});return{type:ActionTypes.yK,vocabulary:vocabNameOrURL,token:token,tokens:tokens,subrequest:subrequest,request:{op:"get",path:`/@vocabularies/${vocabulary}?b_size=-1&${query_string.stringify(queryString,{encode:!1})}`}}}function getWorkflow(urls){return{type:"string"==typeof urls?ActionTypes.mQ:ActionTypes.HK,request:"string"==typeof urls?{op:"get",path:`${urls}/@workflow`}:urls.map((url=>({op:"get",path:`${url}/@workflow`})))}}function transitionWorkflow(urls,include_children=!1){return{type:ActionTypes.Ok,request:"string"==typeof urls?{op:"post",path:(0,helpers._c)(urls),data:{include_children:include_children}}:urls.map((url=>({op:"post",path:(0,helpers._c)(url),data:{include_children:include_children}})))}}function getQuerystring(){return{type:ActionTypes.sl,request:{op:"get",path:"/@querystring"}}}function getQueryStringResults(path,data,subrequest,page){const{settings:settings}=registry.default;let requestData=JSON.parse(JSON.stringify(data));null!=(null==data?void 0:data.depth)&&(delete requestData.depth,requestData.query.forEach((q=>{"path"===q.i&&(q.v+="::"+data.depth)}))),null!==(null==requestData?void 0:requestData.sort_order)&&"boolean"==typeof requestData.sort_order&&(requestData.sort_order=requestData.sort_order?"descending":"ascending");const query=(0,objectSpread2.c)((0,objectSpread2.c)((0,objectSpread2.c)((0,objectSpread2.c)({},requestData),!requestData.b_size&&{b_size:settings.defaultPageSize}),page&&{b_start:requestData.b_size?data.b_size*(page-1):settings.defaultPageSize*(page-1)}),{},{query:null==requestData?void 0:requestData.query});return{type:ActionTypes.sv,subrequest:subrequest,request:{op:settings.querystringSearchGet?"get":"post",path:`${path}/@querystring-search${settings.querystringSearchGet?`?query=${encodeURIComponent(JSON.stringify(query))}`:""}`,data:settings.querystringSearchGet?null:query}}}function setMetadataFieldsets(fieldsets){return{type:ActionTypes.Uv,fieldsets:fieldsets}}function resetMetadataFocus(){return{type:ActionTypes.wZ}}function setSidebarTab(index){return{type:ActionTypes.KA,index:index}}function setFormData(data){return{type:ActionTypes.Av,data:data}}function getTranslationLocator(url,lang){return{type:ActionTypes._k,request:{op:"get",path:`${url}/@translation-locator?target_language=${lang}`}}}function linkTranslation(url,target){return{type:ActionTypes.Ux,request:{op:"post",path:`${url}/@translations`,data:{id:target}}}}function deleteLinkTranslation(url,lang){return{type:ActionTypes.Gg,request:{op:"del",path:`${url}/@translations`,data:{language:lang}}}}function setBlocksClipboard(payload){return(0,objectSpread2.c)({type:ActionTypes.WA},Object.assign({},payload.cut?{cut:payload.cut.filter((b=>!!b))}:{},payload.copy?{copy:payload.copy.filter((b=>!!b))}:{}))}function resetBlocksClipboard(){return{type:ActionTypes.k9}}function loadLazyLibrary(libName,libModule){return(dispatch,getState)=>{var _getState$lazyLibrari;null!==(_getState$lazyLibrari=getState().lazyLibraries)&&void 0!==_getState$lazyLibrari&&_getState$lazyLibrari[libName]||dispatch({type:ActionTypes.QT,libName:libName,libModule:libModule})}}function authenticatedRole(role){return{type:ActionTypes.iO,result:role}}var lib=__webpack_require__("../../../node_modules/.pnpm/react-intl-redux@2.3.0_@babel+runtime@7.20.6_prop-types@15.7.2_react-intl@3.8.0_react-redux@8.1.2_react@18.2.0/node_modules/react-intl-redux/lib/index.js"),es6=__webpack_require__("../../../node_modules/.pnpm/universal-cookie@4.0.4/node_modules/universal-cookie/es6/index.js");function changeLanguage(language,locale,req){return function changeLanguageCookies(language,req){var _req$protocol;const cookies=new es6.c,cookieOptions=(0,helpers.MV)({secure:!(null==req||null===(_req$protocol=req.protocol)||void 0===_req$protocol||!_req$protocol.startsWith("https")),sameSite:"strict"});req?req.universalCookies.set("I18N_LANGUAGE",(0,helpers._0)(language)||"",cookieOptions):cookies.set("I18N_LANGUAGE",(0,helpers._0)(language)||"",cookieOptions)}(language,req),(0,lib.Wy)({locale:(0,helpers._W)(language),messages:locale})}function createWorkingCopy(path){return{type:ActionTypes.yk,request:{op:"post",path:`${path}/@workingcopy`}}}function applyWorkingCopy(path){return{type:ActionTypes.C8,request:{op:"patch",path:`${path}/@workingcopy`}}}function removeWorkingCopy(path){return{type:ActionTypes.Md,request:{op:"del",path:`${path}/@workingcopy`}}}function getUserSchema(){return{type:ActionTypes.Z5,request:{op:"get",path:"/@userschema"}}}function getUpgradeInformation(){return{type:ActionTypes.wn,request:{op:"get",path:"/@upgrade"}}}function runUpgrade(dryRun){return{type:ActionTypes.AV,request:{op:"post",path:"/@upgrade",data:{dryRun:dryRun}}}}function getNavroot(url){return{type:ActionTypes.So,request:{op:"get",path:`${url}/@navroot`}}}},"./src/actions/search/search.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{M:function(){return searchContent},k:function(){return resetSearchContent}});var lodash_identity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"),lodash_identity__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__),lodash_toPairs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPairs.js"),lodash_toPairs__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_toPairs__WEBPACK_IMPORTED_MODULE_1__),lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js"),lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__),lodash_map__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js"),lodash_map__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(lodash_map__WEBPACK_IMPORTED_MODULE_3__),lodash_join__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/join.js"),lodash_join__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(lodash_join__WEBPACK_IMPORTED_MODULE_4__),lodash_isArray__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),lodash_isArray__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_5__),lodash_concat__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/concat.js"),lodash_concat__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_6__),lodash_compact__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/compact.js"),lodash_compact__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_compact__WEBPACK_IMPORTED_MODULE_7__),_plone_volto_constants_ActionTypes__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/constants/ActionTypes.js");function searchContent(url,options,subrequest=null){let queryArray=[];options=lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(options,lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());const arrayOptions=lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(options,(item=>lodash_isArray__WEBPACK_IMPORTED_MODULE_5___default()(item)));queryArray=lodash_concat__WEBPACK_IMPORTED_MODULE_6___default()(queryArray,options?lodash_join__WEBPACK_IMPORTED_MODULE_4___default()(lodash_map__WEBPACK_IMPORTED_MODULE_3___default()(lodash_toPairs__WEBPACK_IMPORTED_MODULE_1___default()(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(options,(item=>!lodash_isArray__WEBPACK_IMPORTED_MODULE_5___default()(item)))),(item=>("SearchableText"===item[0]&&(item[1]=`${item[1]}*`),lodash_join__WEBPACK_IMPORTED_MODULE_4___default()(item,"=")))),"&"):""),queryArray=lodash_concat__WEBPACK_IMPORTED_MODULE_6___default()(queryArray,arrayOptions?lodash_join__WEBPACK_IMPORTED_MODULE_4___default()(lodash_map__WEBPACK_IMPORTED_MODULE_3___default()(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(arrayOptions),((item,key)=>lodash_join__WEBPACK_IMPORTED_MODULE_4___default()(item.map((value=>`${key}:list=${value}`)),"&"))),"&"):"");const querystring=lodash_join__WEBPACK_IMPORTED_MODULE_4___default()(lodash_compact__WEBPACK_IMPORTED_MODULE_7___default()(queryArray),"&");return{type:_plone_volto_constants_ActionTypes__WEBPACK_IMPORTED_MODULE_8__.YE,subrequest:subrequest,request:{op:"get",path:`${url}/@search${querystring?`?${querystring}`:""}`}}}function resetSearchContent(subrequest=null){return{type:_plone_volto_constants_ActionTypes__WEBPACK_IMPORTED_MODULE_8__.QJ,subrequest:subrequest}}},"./src/components/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ad:function(){return _plone_volto_components_manage_Multilingual_CompareLanguages__WEBPACK_IMPORTED_MODULE_45__.c},Ahx:function(){return _plone_volto_components_manage_Form_ModalForm__WEBPACK_IMPORTED_MODULE_83__.c},CBy:function(){return _plone_volto_components_theme_Avatar_Avatar__WEBPACK_IMPORTED_MODULE_24__.c},CQG:function(){return _plone_volto_components_manage_Form_BlocksToolbar__WEBPACK_IMPORTED_MODULE_103__.c},CQQ:function(){return _plone_volto_components_manage_Form_BlockDataForm__WEBPACK_IMPORTED_MODULE_122__.c},GQA:function(){return _plone_volto_components_manage_Blocks_Listing_ListingBody__WEBPACK_IMPORTED_MODULE_157__.c},GQK:function(){return _plone_volto_components_manage_UniversalLink_UniversalLink__WEBPACK_IMPORTED_MODULE_28__.c},GWx:function(){return _plone_volto_components_theme_Icon_Icon__WEBPACK_IMPORTED_MODULE_25__.c},Goz:function(){return _plone_volto_components_theme_Footer_Footer__WEBPACK_IMPORTED_MODULE_8__.c},Gq4:function(){return _plone_volto_components_manage_Contents_ContentsUploadModal__WEBPACK_IMPORTED_MODULE_111__.c},GsG:function(){return _plone_volto_components_theme_Unauthorized_Unauthorized__WEBPACK_IMPORTED_MODULE_23__.c},H$L:function(){return _plone_volto_components_theme_Anontools_Anontools__WEBPACK_IMPORTED_MODULE_4__.c},I76:function(){return _plone_volto_components_manage_Display_Display__WEBPACK_IMPORTED_MODULE_81__.c},I7U:function(){return _plone_volto_components_theme_FormattedDate_FormattedDate__WEBPACK_IMPORTED_MODULE_170__.c},INC:function(){return _plone_volto_components_manage_Form_Field__WEBPACK_IMPORTED_MODULE_105__.c},IZx:function(){return _plone_volto_components_manage_Form_UndoToolbar__WEBPACK_IMPORTED_MODULE_104__.c},Ijf:function(){return _plone_volto_components_manage_Diff_DiffField__WEBPACK_IMPORTED_MODULE_118__.c},M3O:function(){return _plone_volto_components_manage_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_94__.c},MF9:function(){return _plone_volto_components_manage_Controlpanels_ContentTypesActions__WEBPACK_IMPORTED_MODULE_67__.c},MFs:function(){return _plone_volto_components_theme_Breadcrumbs_Breadcrumbs__WEBPACK_IMPORTED_MODULE_6__.c},MHJ:function(){return _plone_volto_components_manage_Widgets_SelectWidget__WEBPACK_IMPORTED_MODULE_132__.c},MLi:function(){return _plone_volto_components_theme_Popup_Popup__WEBPACK_IMPORTED_MODULE_172__.c},MlT:function(){return _plone_volto_components_theme_Logo_Logo__WEBPACK_IMPORTED_MODULE_3__.c},Mr9:function(){return _plone_volto_components_manage_BlockChooser_BlockChooser__WEBPACK_IMPORTED_MODULE_91__.c},Ouc:function(){return _plone_volto_components_theme_Error_ErrorBoundary__WEBPACK_IMPORTED_MODULE_20__.c},P7V:function(){return _plone_volto_components_manage_Blocks_Block_BlocksForm__WEBPACK_IMPORTED_MODULE_121__.c},QFz:function(){return _plone_volto_components_manage_Form_Form__WEBPACK_IMPORTED_MODULE_102__.c},QRZ:function(){return _plone_volto_components_manage_Contents_ContentsItem__WEBPACK_IMPORTED_MODULE_110__.c},Qds:function(){return _plone_volto_components_manage_Contents_ContentsTagsModal__WEBPACK_IMPORTED_MODULE_115__.c},Qfn:function(){return _plone_volto_components_manage_Controlpanels_Users_RenderUsers__WEBPACK_IMPORTED_MODULE_116__.c},QoC:function(){return _plone_volto_components_manage_Blocks_Video_VideoSidebar__WEBPACK_IMPORTED_MODULE_161__.c},QrY:function(){return _plone_volto_components_manage_Widgets_SchemaWidgetFieldset__WEBPACK_IMPORTED_MODULE_131__.c},Qrr:function(){return _plone_volto_components_theme_SkipLinks_SkipLinks__WEBPACK_IMPORTED_MODULE_16__.c},SEV:function(){return _plone_volto_components_manage_ConditionalLink_ConditionalLink__WEBPACK_IMPORTED_MODULE_27__.c},Sq3:function(){return _plone_volto_components_manage_Contents_ContentsRenameModal__WEBPACK_IMPORTED_MODULE_113__.c},Uj5:function(){return _plone_volto_components_manage_Contents_ContentsIndexHeader__WEBPACK_IMPORTED_MODULE_109__.c},UlW:function(){return _plone_volto_components_manage_DragDropList_DragDropList__WEBPACK_IMPORTED_MODULE_119__.c},WCR:function(){return _plone_volto_components_theme_Image_Image__WEBPACK_IMPORTED_MODULE_26__.c},WGZ:function(){return _plone_volto_components_theme_EventDetails_EventDetails__WEBPACK_IMPORTED_MODULE_17__.c},Wi2:function(){return _plone_volto_components_manage_Widgets_CheckboxWidget__WEBPACK_IMPORTED_MODULE_125__.c},WqB:function(){return _plone_volto_components_theme_Comments_CommentEditModal__WEBPACK_IMPORTED_MODULE_107__.c},YGc:function(){return _plone_volto_components_manage_BlockChooser_BlockChooserButton__WEBPACK_IMPORTED_MODULE_92__.c},YT3:function(){return _plone_volto_components_manage_Toolbar_Toolbar__WEBPACK_IMPORTED_MODULE_93__.c},YlN:function(){return _plone_volto_components_theme_Component_Component__WEBPACK_IMPORTED_MODULE_173__.c},_2N:function(){return _plone_volto_components_theme_Navigation_Navigation__WEBPACK_IMPORTED_MODULE_5__.c},_M:function(){return _plone_volto_components_theme_Forbidden_Forbidden__WEBPACK_IMPORTED_MODULE_22__.c},_OY:function(){return _plone_volto_components_manage_Sidebar_SidebarPortal__WEBPACK_IMPORTED_MODULE_96__.c},a6s:function(){return _plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_165__.c},acZ:function(){return _plone_volto_components_manage_Blocks_Block_Settings__WEBPACK_IMPORTED_MODULE_164__.c},c3f:function(){return _plone_volto_components_theme_FormattedDate_FormattedRelativeDate__WEBPACK_IMPORTED_MODULE_171__.c},c6B:function(){return _plone_volto_components_theme_LanguageSelector_LanguageSelector__WEBPACK_IMPORTED_MODULE_14__.c},cd8:function(){return _plone_volto_components_manage_Contents_ContentsPropertiesModal__WEBPACK_IMPORTED_MODULE_112__.c},cvm:function(){return _plone_volto_components_manage_Blocks_Block_DefaultView__WEBPACK_IMPORTED_MODULE_148__.c},eML:function(){return _plone_volto_components_theme_Pagination_Pagination__WEBPACK_IMPORTED_MODULE_11__.c},ei4:function(){return _plone_volto_components_theme_Search_SearchTags__WEBPACK_IMPORTED_MODULE_106__.c},ekv:function(){return _plone_volto_components_theme_Header_Header__WEBPACK_IMPORTED_MODULE_2__.c},ewg:function(){return _plone_volto_components_manage_Multilingual_TranslationObject__WEBPACK_IMPORTED_MODULE_44__.c},gH2:function(){return _plone_volto_components_manage_Workflow_Workflow__WEBPACK_IMPORTED_MODULE_89__.c},gRv:function(){return _plone_volto_components_manage_Contents_ContentsWorkflowModal__WEBPACK_IMPORTED_MODULE_114__.c},gz5:function(){return _plone_volto_components_theme_PreviewImage_PreviewImage__WEBPACK_IMPORTED_MODULE_18__.c},iar:function(){return _plone_volto_components_manage_Widgets_ObjectWidget__WEBPACK_IMPORTED_MODULE_136__.c},ic4:function(){return _plone_volto_components_manage_Widgets_FormFieldWrapper__WEBPACK_IMPORTED_MODULE_123__.c},ieH:function(){return _plone_volto_components_manage_Contents_ContentsBreadcrumbs__WEBPACK_IMPORTED_MODULE_108__.c},kJf:function(){return _plone_volto_components_theme_View_DefaultView__WEBPACK_IMPORTED_MODULE_10__.c},m6:function(){return _plone_volto_components_theme_View_RenderBlocks__WEBPACK_IMPORTED_MODULE_15__.c},m6f:function(){return _plone_volto_components_manage_MaybeWrap_MaybeWrap__WEBPACK_IMPORTED_MODULE_168__.c},mwe:function(){return _plone_volto_components_manage_Widgets_TextWidget__WEBPACK_IMPORTED_MODULE_134__.c},o51:function(){return _plone_volto_components_manage_Controlpanels_Groups_RenderGroups__WEBPACK_IMPORTED_MODULE_117__.c},o7V:function(){return _plone_volto_components_theme_SearchWidget_SearchWidget__WEBPACK_IMPORTED_MODULE_7__.c},oJA:function(){return _plone_volto_components_theme_AppExtras_AppExtras__WEBPACK_IMPORTED_MODULE_1__.c},oZj:function(){return _plone_volto_components_theme_OutdatedBrowser_OutdatedBrowser__WEBPACK_IMPORTED_MODULE_13__.c},qAm:function(){return _plone_volto_components_manage_Toast_Toast__WEBPACK_IMPORTED_MODULE_100__.c},qwe:function(){return _plone_volto_components_theme_App_App__WEBPACK_IMPORTED_MODULE_174__.cp},ske:function(){return _plone_volto_components_manage_Blocks_Image_ImageSidebar__WEBPACK_IMPORTED_MODULE_159__.c},u3u:function(){return _plone_volto_components_theme_Login_Login__WEBPACK_IMPORTED_MODULE_31__.c},uU2:function(){return _plone_volto_components_manage_Blocks_Block_DefaultEdit__WEBPACK_IMPORTED_MODULE_138__.c},u_E:function(){return _plone_volto_components_manage_Blocks_LeadImage_LeadImageSidebar__WEBPACK_IMPORTED_MODULE_162__.c},umA:function(){return _plone_volto_components_manage_Contents_circle__WEBPACK_IMPORTED_MODULE_58__.c},v1s:function(){return _plone_volto_components_manage_Form_InlineForm__WEBPACK_IMPORTED_MODULE_120__.c},wxC:function(){return _plone_volto_components_theme_Error_Error__WEBPACK_IMPORTED_MODULE_19__.c},yCw:function(){return _plone_volto_components_manage_Controlpanels_VersionOverview__WEBPACK_IMPORTED_MODULE_78__.c},yY9:function(){return DatetimeWidget},yul:function(){return _plone_volto_components_manage_Blocks_Maps_MapsSidebar__WEBPACK_IMPORTED_MODULE_160__.c}});var _loadable_component__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@loadable+component@5.14.1_react@18.2.0/node_modules/@loadable/component/dist/loadable.esm.js"),_plone_volto_components_theme_AppExtras_AppExtras__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/theme/AppExtras/AppExtras.jsx"),_plone_volto_components_theme_Header_Header__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/theme/Header/Header.jsx"),_plone_volto_components_theme_Logo_Logo__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/theme/Logo/Logo.jsx"),_plone_volto_components_theme_Anontools_Anontools__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/theme/Anontools/Anontools.jsx"),_plone_volto_components_theme_Navigation_Navigation__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/theme/Navigation/Navigation.jsx"),_plone_volto_components_theme_Breadcrumbs_Breadcrumbs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/components/theme/Breadcrumbs/Breadcrumbs.jsx"),_plone_volto_components_theme_SearchWidget_SearchWidget__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/components/theme/SearchWidget/SearchWidget.jsx"),_plone_volto_components_theme_Footer_Footer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/components/theme/Footer/Footer.jsx"),_plone_volto_components_theme_Title_Title__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/components/theme/Title/Title.jsx"),_plone_volto_components_theme_View_DefaultView__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/components/theme/View/DefaultView.jsx"),_plone_volto_components_theme_Pagination_Pagination__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/components/theme/Pagination/Pagination.jsx"),_plone_volto_components_theme_Tags_Tags__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/components/theme/Tags/Tags.jsx"),_plone_volto_components_theme_OutdatedBrowser_OutdatedBrowser__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/components/theme/OutdatedBrowser/OutdatedBrowser.jsx"),_plone_volto_components_theme_LanguageSelector_LanguageSelector__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/components/theme/LanguageSelector/LanguageSelector.js"),_plone_volto_components_theme_View_RenderBlocks__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/components/theme/View/RenderBlocks.jsx"),_plone_volto_components_theme_SkipLinks_SkipLinks__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/components/theme/SkipLinks/SkipLinks.jsx"),_plone_volto_components_theme_EventDetails_EventDetails__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/components/theme/EventDetails/EventDetails.jsx"),_plone_volto_components_theme_PreviewImage_PreviewImage__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/components/theme/PreviewImage/PreviewImage.jsx"),_plone_volto_components_theme_Error_Error__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/components/theme/Error/Error.jsx"),_plone_volto_components_theme_Error_ErrorBoundary__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/components/theme/Error/ErrorBoundary.jsx"),_plone_volto_components_theme_NotFound_NotFound__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/components/theme/NotFound/NotFound.jsx"),_plone_volto_components_theme_Forbidden_Forbidden__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/components/theme/Forbidden/Forbidden.jsx"),_plone_volto_components_theme_Unauthorized_Unauthorized__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/components/theme/Unauthorized/Unauthorized.jsx"),_plone_volto_components_theme_Avatar_Avatar__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/components/theme/Avatar/Avatar.jsx"),_plone_volto_components_theme_Icon_Icon__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/components/theme/Icon/Icon.jsx"),_plone_volto_components_theme_Image_Image__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/components/theme/Image/Image.jsx"),_plone_volto_components_manage_ConditionalLink_ConditionalLink__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/components/manage/ConditionalLink/ConditionalLink.jsx"),_plone_volto_components_manage_UniversalLink_UniversalLink__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/components/manage/UniversalLink/UniversalLink.jsx"),_plone_volto_components_manage_LinkMore_LinkMore__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/components/manage/LinkMore/LinkMore.jsx"),_plone_volto_components_theme_ContactForm_ContactForm__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/components/theme/ContactForm/ContactForm.jsx"),_plone_volto_components_theme_Login_Login__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/components/theme/Login/Login.jsx"),_plone_volto_components_theme_Logout_Logout__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/components/theme/Logout/Logout.jsx"),_plone_volto_components_theme_Sitemap_Sitemap__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/components/theme/Sitemap/Sitemap.jsx"),_plone_volto_components_theme_Search_Search__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/components/theme/Search/Search.jsx"),_plone_volto_components_theme_Comments_Comments__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/components/theme/Comments/Comments.jsx"),_plone_volto_components_theme_SocialSharing_SocialSharing__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/components/theme/SocialSharing/SocialSharing.jsx"),_plone_volto_components_theme_Register_Register__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/components/theme/Register/Register.jsx"),_plone_volto_components_theme_PasswordReset_PasswordReset__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/components/theme/PasswordReset/PasswordReset.jsx"),_plone_volto_components_theme_PasswordReset_RequestPasswordReset__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./src/components/theme/PasswordReset/RequestPasswordReset.jsx"),_plone_volto_components_manage_Preferences_ChangePassword__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./src/components/manage/Preferences/ChangePassword.jsx"),_plone_volto_components_manage_Preferences_PersonalPreferences__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./src/components/manage/Preferences/PersonalPreferences.jsx"),_plone_volto_components_manage_Preferences_PersonalInformation__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./src/components/manage/Preferences/PersonalInformation.jsx"),_plone_volto_components_manage_Multilingual_CreateTranslation__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./src/components/manage/Multilingual/CreateTranslation.jsx"),_plone_volto_components_manage_Multilingual_TranslationObject__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./src/components/manage/Multilingual/TranslationObject.jsx"),_plone_volto_components_manage_Multilingual_CompareLanguages__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./src/components/manage/Multilingual/CompareLanguages.jsx"),_plone_volto_components_theme_View_FileView__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./src/components/theme/View/FileView.jsx"),_plone_volto_components_theme_View_ImageView__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./src/components/theme/View/ImageView.jsx"),_plone_volto_components_theme_View_NewsItemView__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./src/components/theme/View/NewsItemView.jsx"),_plone_volto_components_theme_View_ListingView__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./src/components/theme/View/ListingView.jsx"),_plone_volto_components_theme_View_SummaryView__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./src/components/theme/View/SummaryView.jsx"),_plone_volto_components_theme_View_TabularView__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./src/components/theme/View/TabularView.jsx"),_plone_volto_components_theme_View_AlbumView__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./src/components/theme/View/AlbumView.jsx"),_plone_volto_components_manage_Actions_Actions__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./src/components/manage/Actions/Actions.jsx"),_plone_volto_components_manage_Add_Add__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./src/components/manage/Add/Add.jsx"),_plone_volto_components_manage_Controlpanels_AddonsControlpanel__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./src/components/manage/Controlpanels/AddonsControlpanel.jsx"),_plone_volto_components_manage_Controlpanels_UndoControlpanel__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./src/components/manage/Controlpanels/UndoControlpanel.jsx"),_plone_volto_components_manage_Contents_Contents__WEBPACK_IMPORTED_MODULE_57__=__webpack_require__("./src/components/manage/Contents/Contents.jsx"),_plone_volto_components_manage_Contents_circle__WEBPACK_IMPORTED_MODULE_58__=__webpack_require__("./src/components/manage/Contents/circle.jsx"),_plone_volto_components_manage_Controlpanels_DatabaseInformation__WEBPACK_IMPORTED_MODULE_59__=__webpack_require__("./src/components/manage/Controlpanels/DatabaseInformation.jsx"),_plone_volto_components_manage_Controlpanels_Controlpanel__WEBPACK_IMPORTED_MODULE_60__=__webpack_require__("./src/components/manage/Controlpanels/Controlpanel.jsx"),_plone_volto_components_manage_Controlpanels_Controlpanels__WEBPACK_IMPORTED_MODULE_61__=__webpack_require__("./src/components/manage/Controlpanels/Controlpanels.jsx"),_plone_volto_components_manage_Controlpanels_Aliases__WEBPACK_IMPORTED_MODULE_62__=__webpack_require__("./src/components/manage/Controlpanels/Aliases.jsx"),_plone_volto_components_manage_Controlpanels_ContentTypes__WEBPACK_IMPORTED_MODULE_63__=__webpack_require__("./src/components/manage/Controlpanels/ContentTypes.jsx"),_plone_volto_components_manage_Controlpanels_ContentType__WEBPACK_IMPORTED_MODULE_64__=__webpack_require__("./src/components/manage/Controlpanels/ContentType.jsx"),_plone_volto_components_manage_Controlpanels_ContentTypeLayout__WEBPACK_IMPORTED_MODULE_65__=__webpack_require__("./src/components/manage/Controlpanels/ContentTypeLayout.jsx"),_plone_volto_components_manage_Controlpanels_ContentTypeSchema__WEBPACK_IMPORTED_MODULE_66__=__webpack_require__("./src/components/manage/Controlpanels/ContentTypeSchema.jsx"),_plone_volto_components_manage_Controlpanels_ContentTypesActions__WEBPACK_IMPORTED_MODULE_67__=__webpack_require__("./src/components/manage/Controlpanels/ContentTypesActions.jsx"),_plone_volto_components_manage_Controlpanels_Users_UsersControlpanel__WEBPACK_IMPORTED_MODULE_68__=__webpack_require__("./src/components/manage/Controlpanels/Users/UsersControlpanel.jsx"),_plone_volto_components_manage_Controlpanels_Users_UserGroupMembershipControlPanel__WEBPACK_IMPORTED_MODULE_69__=__webpack_require__("./src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx"),_plone_volto_components_manage_Controlpanels_Relations_Relations__WEBPACK_IMPORTED_MODULE_70__=__webpack_require__("./src/components/manage/Controlpanels/Relations/Relations.jsx"),_plone_volto_components_manage_Controlpanels_Groups_GroupsControlpanel__WEBPACK_IMPORTED_MODULE_71__=__webpack_require__("./src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx"),_plone_volto_components_manage_Controlpanels_Rules_Rules__WEBPACK_IMPORTED_MODULE_72__=__webpack_require__("./src/components/manage/Controlpanels/Rules/Rules.jsx"),_plone_volto_components_manage_Controlpanels_Rules_AddRule__WEBPACK_IMPORTED_MODULE_73__=__webpack_require__("./src/components/manage/Controlpanels/Rules/AddRule.jsx"),_plone_volto_components_manage_Controlpanels_Rules_EditRule__WEBPACK_IMPORTED_MODULE_74__=__webpack_require__("./src/components/manage/Controlpanels/Rules/EditRule.jsx"),_plone_volto_components_manage_Controlpanels_Rules_ConfigureRule__WEBPACK_IMPORTED_MODULE_75__=__webpack_require__("./src/components/manage/Controlpanels/Rules/ConfigureRule.jsx"),_plone_volto_components_manage_Controlpanels_UpgradeControlPanel__WEBPACK_IMPORTED_MODULE_76__=__webpack_require__("./src/components/manage/Controlpanels/UpgradeControlPanel.jsx"),_plone_volto_components_manage_Controlpanels_ModerateComments__WEBPACK_IMPORTED_MODULE_77__=__webpack_require__("./src/components/manage/Controlpanels/ModerateComments.jsx"),_plone_volto_components_manage_Controlpanels_VersionOverview__WEBPACK_IMPORTED_MODULE_78__=__webpack_require__("./src/components/manage/Controlpanels/VersionOverview.jsx"),_plone_volto_components_manage_Delete_Delete__WEBPACK_IMPORTED_MODULE_79__=__webpack_require__("./src/components/manage/Delete/Delete.jsx"),_plone_volto_components_manage_Diff_Diff__WEBPACK_IMPORTED_MODULE_80__=__webpack_require__("./src/components/manage/Diff/Diff.jsx"),_plone_volto_components_manage_Display_Display__WEBPACK_IMPORTED_MODULE_81__=__webpack_require__("./src/components/manage/Display/Display.jsx"),_plone_volto_components_manage_Edit_Edit__WEBPACK_IMPORTED_MODULE_82__=__webpack_require__("./src/components/manage/Edit/Edit.jsx"),_plone_volto_components_manage_Form_ModalForm__WEBPACK_IMPORTED_MODULE_83__=__webpack_require__("./src/components/manage/Form/ModalForm.jsx"),_plone_volto_components_manage_History_History__WEBPACK_IMPORTED_MODULE_84__=__webpack_require__("./src/components/manage/History/History.jsx"),_plone_volto_components_manage_Sharing_Sharing__WEBPACK_IMPORTED_MODULE_85__=__webpack_require__("./src/components/manage/Sharing/Sharing.jsx"),_plone_volto_components_manage_Rules_Rules__WEBPACK_IMPORTED_MODULE_86__=__webpack_require__("./src/components/manage/Rules/Rules.jsx"),_plone_volto_components_manage_Aliases_Aliases__WEBPACK_IMPORTED_MODULE_87__=__webpack_require__("./src/components/manage/Aliases/Aliases.jsx"),_plone_volto_components_manage_LinksToItem_LinksToItem__WEBPACK_IMPORTED_MODULE_88__=__webpack_require__("./src/components/manage/LinksToItem/LinksToItem.jsx"),_plone_volto_components_manage_Workflow_Workflow__WEBPACK_IMPORTED_MODULE_89__=__webpack_require__("./src/components/manage/Workflow/Workflow.jsx"),_plone_volto_components_manage_Messages_Messages__WEBPACK_IMPORTED_MODULE_90__=__webpack_require__("./src/components/manage/Messages/Messages.jsx"),_plone_volto_components_manage_BlockChooser_BlockChooser__WEBPACK_IMPORTED_MODULE_91__=__webpack_require__("./src/components/manage/BlockChooser/BlockChooser.jsx"),_plone_volto_components_manage_BlockChooser_BlockChooserButton__WEBPACK_IMPORTED_MODULE_92__=__webpack_require__("./src/components/manage/BlockChooser/BlockChooserButton.jsx"),_plone_volto_components_manage_Toolbar_Toolbar__WEBPACK_IMPORTED_MODULE_93__=__webpack_require__("./src/components/manage/Toolbar/Toolbar.jsx"),_plone_volto_components_manage_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_94__=__webpack_require__("./src/components/manage/Sidebar/Sidebar.jsx"),_plone_volto_components_manage_Sidebar_SidebarPopup__WEBPACK_IMPORTED_MODULE_95__=__webpack_require__("./src/components/manage/Sidebar/SidebarPopup.jsx"),_plone_volto_components_manage_Sidebar_SidebarPortal__WEBPACK_IMPORTED_MODULE_96__=__webpack_require__("./src/components/manage/Sidebar/SidebarPortal.jsx"),_plone_volto_components_manage_Toolbar_PersonalTools__WEBPACK_IMPORTED_MODULE_97__=__webpack_require__("./src/components/manage/Toolbar/PersonalTools.jsx"),_plone_volto_components_manage_Toolbar_More__WEBPACK_IMPORTED_MODULE_98__=__webpack_require__("./src/components/manage/Toolbar/More.jsx"),_plone_volto_components_manage_Toolbar_Types__WEBPACK_IMPORTED_MODULE_99__=__webpack_require__("./src/components/manage/Toolbar/Types.jsx"),_plone_volto_components_manage_Toast_Toast__WEBPACK_IMPORTED_MODULE_100__=__webpack_require__("./src/components/manage/Toast/Toast.jsx"),_plone_volto_components_manage_Multilingual_ManageTranslations__WEBPACK_IMPORTED_MODULE_101__=__webpack_require__("./src/components/manage/Multilingual/ManageTranslations.jsx"),_plone_volto_components_manage_Form_Form__WEBPACK_IMPORTED_MODULE_102__=__webpack_require__("./src/components/manage/Form/Form.jsx"),_plone_volto_components_manage_Form_BlocksToolbar__WEBPACK_IMPORTED_MODULE_103__=__webpack_require__("./src/components/manage/Form/BlocksToolbar.jsx"),_plone_volto_components_manage_Form_UndoToolbar__WEBPACK_IMPORTED_MODULE_104__=__webpack_require__("./src/components/manage/Form/UndoToolbar.jsx"),_plone_volto_components_manage_Form_Field__WEBPACK_IMPORTED_MODULE_105__=__webpack_require__("./src/components/manage/Form/Field.jsx"),_plone_volto_components_theme_Search_SearchTags__WEBPACK_IMPORTED_MODULE_106__=__webpack_require__("./src/components/theme/Search/SearchTags.jsx"),_plone_volto_components_theme_Comments_CommentEditModal__WEBPACK_IMPORTED_MODULE_107__=__webpack_require__("./src/components/theme/Comments/CommentEditModal.jsx"),_plone_volto_components_manage_Contents_ContentsBreadcrumbs__WEBPACK_IMPORTED_MODULE_108__=__webpack_require__("./src/components/manage/Contents/ContentsBreadcrumbs.jsx"),_plone_volto_components_manage_Contents_ContentsIndexHeader__WEBPACK_IMPORTED_MODULE_109__=__webpack_require__("./src/components/manage/Contents/ContentsIndexHeader.jsx"),_plone_volto_components_manage_Contents_ContentsItem__WEBPACK_IMPORTED_MODULE_110__=__webpack_require__("./src/components/manage/Contents/ContentsItem.jsx"),_plone_volto_components_manage_Contents_ContentsUploadModal__WEBPACK_IMPORTED_MODULE_111__=__webpack_require__("./src/components/manage/Contents/ContentsUploadModal.jsx"),_plone_volto_components_manage_Contents_ContentsPropertiesModal__WEBPACK_IMPORTED_MODULE_112__=__webpack_require__("./src/components/manage/Contents/ContentsPropertiesModal.jsx"),_plone_volto_components_manage_Contents_ContentsRenameModal__WEBPACK_IMPORTED_MODULE_113__=__webpack_require__("./src/components/manage/Contents/ContentsRenameModal.jsx"),_plone_volto_components_manage_Contents_ContentsWorkflowModal__WEBPACK_IMPORTED_MODULE_114__=__webpack_require__("./src/components/manage/Contents/ContentsWorkflowModal.jsx"),_plone_volto_components_manage_Contents_ContentsTagsModal__WEBPACK_IMPORTED_MODULE_115__=__webpack_require__("./src/components/manage/Contents/ContentsTagsModal.jsx"),_plone_volto_components_manage_Controlpanels_Users_RenderUsers__WEBPACK_IMPORTED_MODULE_116__=__webpack_require__("./src/components/manage/Controlpanels/Users/RenderUsers.jsx"),_plone_volto_components_manage_Controlpanels_Groups_RenderGroups__WEBPACK_IMPORTED_MODULE_117__=__webpack_require__("./src/components/manage/Controlpanels/Groups/RenderGroups.jsx"),_plone_volto_components_manage_Diff_DiffField__WEBPACK_IMPORTED_MODULE_118__=__webpack_require__("./src/components/manage/Diff/DiffField.jsx"),_plone_volto_components_manage_DragDropList_DragDropList__WEBPACK_IMPORTED_MODULE_119__=__webpack_require__("./src/components/manage/DragDropList/DragDropList.jsx"),_plone_volto_components_manage_Form_InlineForm__WEBPACK_IMPORTED_MODULE_120__=__webpack_require__("./src/components/manage/Form/InlineForm.jsx"),_plone_volto_components_manage_Blocks_Block_BlocksForm__WEBPACK_IMPORTED_MODULE_121__=__webpack_require__("./src/components/manage/Blocks/Block/BlocksForm.jsx"),_plone_volto_components_manage_Form_BlockDataForm__WEBPACK_IMPORTED_MODULE_122__=__webpack_require__("./src/components/manage/Form/BlockDataForm.jsx"),_plone_volto_components_manage_Widgets_FormFieldWrapper__WEBPACK_IMPORTED_MODULE_123__=__webpack_require__("./src/components/manage/Widgets/FormFieldWrapper.jsx"),_plone_volto_components_manage_Widgets_ArrayWidget__WEBPACK_IMPORTED_MODULE_124__=__webpack_require__("./src/components/manage/Widgets/ArrayWidget.jsx"),_plone_volto_components_manage_Widgets_CheckboxWidget__WEBPACK_IMPORTED_MODULE_125__=__webpack_require__("./src/components/manage/Widgets/CheckboxWidget.jsx"),_plone_volto_components_manage_Widgets_FileWidget__WEBPACK_IMPORTED_MODULE_126__=__webpack_require__("./src/components/manage/Widgets/FileWidget.jsx"),_plone_volto_components_manage_Widgets_IdWidget__WEBPACK_IMPORTED_MODULE_127__=__webpack_require__("./src/components/manage/Widgets/IdWidget.jsx"),_plone_volto_components_manage_Widgets_PasswordWidget__WEBPACK_IMPORTED_MODULE_128__=__webpack_require__("./src/components/manage/Widgets/PasswordWidget.jsx"),_plone_volto_components_manage_Widgets_ReferenceWidget__WEBPACK_IMPORTED_MODULE_129__=__webpack_require__("./src/components/manage/Widgets/ReferenceWidget.jsx"),_plone_volto_components_manage_Widgets_SchemaWidget__WEBPACK_IMPORTED_MODULE_130__=__webpack_require__("./src/components/manage/Widgets/SchemaWidget.jsx"),_plone_volto_components_manage_Widgets_SchemaWidgetFieldset__WEBPACK_IMPORTED_MODULE_131__=__webpack_require__("./src/components/manage/Widgets/SchemaWidgetFieldset.jsx"),_plone_volto_components_manage_Widgets_SelectWidget__WEBPACK_IMPORTED_MODULE_132__=__webpack_require__("./src/components/manage/Widgets/SelectWidget.jsx"),_plone_volto_components_manage_Widgets_TextareaWidget__WEBPACK_IMPORTED_MODULE_133__=__webpack_require__("./src/components/manage/Widgets/TextareaWidget.jsx"),_plone_volto_components_manage_Widgets_TextWidget__WEBPACK_IMPORTED_MODULE_134__=__webpack_require__("./src/components/manage/Widgets/TextWidget.jsx"),_plone_volto_components_manage_Widgets_ObjectBrowserWidget__WEBPACK_IMPORTED_MODULE_135__=__webpack_require__("./src/components/manage/Widgets/ObjectBrowserWidget.jsx"),_plone_volto_components_manage_Widgets_ObjectWidget__WEBPACK_IMPORTED_MODULE_136__=__webpack_require__("./src/components/manage/Widgets/ObjectWidget.jsx"),_plone_volto_components_manage_Widgets_ObjectListWidget__WEBPACK_IMPORTED_MODULE_137__=__webpack_require__("./src/components/manage/Widgets/ObjectListWidget.jsx"),_plone_volto_components_manage_Blocks_Block_DefaultEdit__WEBPACK_IMPORTED_MODULE_138__=__webpack_require__("./src/components/manage/Blocks/Block/DefaultEdit.jsx"),_plone_volto_components_manage_Blocks_Description_Edit__WEBPACK_IMPORTED_MODULE_139__=__webpack_require__("./src/components/manage/Blocks/Description/Edit.jsx"),_plone_volto_components_manage_Blocks_Title_Edit__WEBPACK_IMPORTED_MODULE_140__=__webpack_require__("./src/components/manage/Blocks/Title/Edit.jsx"),_plone_volto_components_manage_Blocks_ToC_Edit__WEBPACK_IMPORTED_MODULE_141__=__webpack_require__("./src/components/manage/Blocks/ToC/Edit.jsx"),_plone_volto_components_manage_Blocks_Image_Edit__WEBPACK_IMPORTED_MODULE_142__=__webpack_require__("./src/components/manage/Blocks/Image/Edit.jsx"),_plone_volto_components_manage_Blocks_Listing_Edit__WEBPACK_IMPORTED_MODULE_143__=__webpack_require__("./src/components/manage/Blocks/Listing/Edit.jsx"),_plone_volto_components_manage_Blocks_Video_Edit__WEBPACK_IMPORTED_MODULE_144__=__webpack_require__("./src/components/manage/Blocks/Video/Edit.jsx"),_plone_volto_components_manage_Blocks_Block_Edit__WEBPACK_IMPORTED_MODULE_145__=__webpack_require__("./src/components/manage/Blocks/Block/Edit.jsx"),_plone_volto_components_manage_Blocks_Maps_Edit__WEBPACK_IMPORTED_MODULE_146__=__webpack_require__("./src/components/manage/Blocks/Maps/Edit.jsx"),_plone_volto_components_manage_Blocks_HTML_Edit__WEBPACK_IMPORTED_MODULE_147__=__webpack_require__("./src/components/manage/Blocks/HTML/Edit.jsx"),_plone_volto_components_manage_Blocks_Block_DefaultView__WEBPACK_IMPORTED_MODULE_148__=__webpack_require__("./src/components/manage/Blocks/Block/DefaultView.jsx"),_plone_volto_components_manage_Blocks_Description_View__WEBPACK_IMPORTED_MODULE_149__=__webpack_require__("./src/components/manage/Blocks/Description/View.jsx"),_plone_volto_components_manage_Blocks_Title_View__WEBPACK_IMPORTED_MODULE_150__=__webpack_require__("./src/components/manage/Blocks/Title/View.jsx"),_plone_volto_components_manage_Blocks_ToC_View__WEBPACK_IMPORTED_MODULE_151__=__webpack_require__("./src/components/manage/Blocks/ToC/View.jsx"),_plone_volto_components_manage_Blocks_Image_View__WEBPACK_IMPORTED_MODULE_152__=__webpack_require__("./src/components/manage/Blocks/Image/View.jsx"),_plone_volto_components_manage_Blocks_Listing_View__WEBPACK_IMPORTED_MODULE_153__=__webpack_require__("./src/components/manage/Blocks/Listing/View.jsx"),_plone_volto_components_manage_Blocks_Video_View__WEBPACK_IMPORTED_MODULE_154__=__webpack_require__("./src/components/manage/Blocks/Video/View.jsx"),_plone_volto_components_manage_Blocks_Maps_View__WEBPACK_IMPORTED_MODULE_155__=__webpack_require__("./src/components/manage/Blocks/Maps/View.jsx"),_plone_volto_components_manage_Blocks_HTML_View__WEBPACK_IMPORTED_MODULE_156__=__webpack_require__("./src/components/manage/Blocks/HTML/View.jsx"),_plone_volto_components_manage_Blocks_Listing_ListingBody__WEBPACK_IMPORTED_MODULE_157__=__webpack_require__("./src/components/manage/Blocks/Listing/ListingBody.jsx"),_plone_volto_components_manage_Blocks_Listing_ListingData__WEBPACK_IMPORTED_MODULE_158__=__webpack_require__("./src/components/manage/Blocks/Listing/ListingData.jsx"),_plone_volto_components_manage_Blocks_Image_ImageSidebar__WEBPACK_IMPORTED_MODULE_159__=__webpack_require__("./src/components/manage/Blocks/Image/ImageSidebar.jsx"),_plone_volto_components_manage_Blocks_Maps_MapsSidebar__WEBPACK_IMPORTED_MODULE_160__=__webpack_require__("./src/components/manage/Blocks/Maps/MapsSidebar.jsx"),_plone_volto_components_manage_Blocks_Video_VideoSidebar__WEBPACK_IMPORTED_MODULE_161__=__webpack_require__("./src/components/manage/Blocks/Video/VideoSidebar.jsx"),_plone_volto_components_manage_Blocks_LeadImage_LeadImageSidebar__WEBPACK_IMPORTED_MODULE_162__=__webpack_require__("./src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx"),_plone_volto_components_manage_Blocks_Block_Style__WEBPACK_IMPORTED_MODULE_163__=__webpack_require__("./src/components/manage/Blocks/Block/Style.jsx"),_plone_volto_components_manage_Blocks_Block_Settings__WEBPACK_IMPORTED_MODULE_164__=__webpack_require__("./src/components/manage/Blocks/Block/Settings.jsx"),_plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_165__=__webpack_require__("./src/components/manage/Blocks/Block/Schema.jsx"),_plone_volto_components_manage_Blocks_Image_LayoutSchema__WEBPACK_IMPORTED_MODULE_166__=__webpack_require__("./src/components/manage/Blocks/Image/LayoutSchema.jsx"),_plone_volto_components_manage_Blocks_ToC_Schema__WEBPACK_IMPORTED_MODULE_167__=__webpack_require__("./src/components/manage/Blocks/ToC/Schema.jsx"),_plone_volto_components_manage_MaybeWrap_MaybeWrap__WEBPACK_IMPORTED_MODULE_168__=__webpack_require__("./src/components/manage/MaybeWrap/MaybeWrap.jsx"),_plone_volto_components_theme_ContentMetadataTags_ContentMetadataTags__WEBPACK_IMPORTED_MODULE_169__=__webpack_require__("./src/components/theme/ContentMetadataTags/ContentMetadataTags.jsx"),_plone_volto_components_theme_FormattedDate_FormattedDate__WEBPACK_IMPORTED_MODULE_170__=__webpack_require__("./src/components/theme/FormattedDate/FormattedDate.jsx"),_plone_volto_components_theme_FormattedDate_FormattedRelativeDate__WEBPACK_IMPORTED_MODULE_171__=__webpack_require__("./src/components/theme/FormattedDate/FormattedRelativeDate.jsx"),_plone_volto_components_theme_Popup_Popup__WEBPACK_IMPORTED_MODULE_172__=__webpack_require__("./src/components/theme/Popup/Popup.jsx"),_plone_volto_components_theme_Component_Component__WEBPACK_IMPORTED_MODULE_173__=__webpack_require__("./src/components/theme/Component/Component.jsx"),_plone_volto_components_theme_App_App__WEBPACK_IMPORTED_MODULE_174__=__webpack_require__("./src/components/theme/App/App.jsx");const EventView=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_0__.cp)({resolved:{},chunkName(){return"plone-volto-components-theme-View-EventView"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>__webpack_require__.e(728).then(__webpack_require__.bind(__webpack_require__,"./src/components/theme/View/EventView.jsx")),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"./src/components/theme/View/EventView.jsx"}}),DatetimeWidget=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_0__.cp)({resolved:{},chunkName(){return"plone-volto-components-manage-Widgets-DatetimeWidget"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./src/components/manage/Widgets/DatetimeWidget.jsx")),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"./src/components/manage/Widgets/DatetimeWidget.jsx"}}),RecurrenceWidget=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_0__.cp)({resolved:{},chunkName(){return"plone-volto-components-manage-Widgets-RecurrenceWidget-RecurrenceWidget"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>Promise.all([__webpack_require__.e(284),__webpack_require__.e(136),__webpack_require__.e(20)]).then(__webpack_require__.bind(__webpack_require__,"./src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx")),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"./src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx"}})},"./src/components/manage/Actions/Actions.jsx":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/react-router-dom@5.2.0_react@18.2.0/node_modules/react-router-dom/esm/react-router-dom.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Icon/Icon.js"),react_toastify__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/react-toastify@5.5.0_react-dom@18.2.0_react@18.2.0/node_modules/react-toastify/esm/react-toastify.js"),react_intl__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),react_intl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),_plone_volto_actions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/actions/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_5__.O)({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"}}),Actions=props=>{const intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_6__.c)(),dispatch=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useDispatch)(),{0:showRename,1:setshowRename}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),actions=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)((state=>state.actions.actions),react_redux__WEBPACK_IMPORTED_MODULE_1__.shallowEqual),action=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)((state=>state.clipboard.action)),source=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)((state=>state.clipboard.source),react_redux__WEBPACK_IMPORTED_MODULE_1__.shallowEqual),id=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)((state=>state.content.data?state.content.data.id:"")),title=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.useSelector)((state=>state.content.data?state.content.data.title:"")),fncut=()=>{dispatch((0,_plone_volto_actions__WEBPACK_IMPORTED_MODULE_2__.us)([(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(props.pathname)])),react_toastify__WEBPACK_IMPORTED_MODULE_7__.toast.success(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_4__.qAm,{success:!0,title:intl.formatMessage(messages.success),content:intl.formatMessage(messages.messageCut,{title:title})}))},fncopy=()=>{dispatch((0,_plone_volto_actions__WEBPACK_IMPORTED_MODULE_2__.kT)([(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(props.pathname)])),react_toastify__WEBPACK_IMPORTED_MODULE_7__.toast.success(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_4__.qAm,{success:!0,title:intl.formatMessage(messages.success),content:intl.formatMessage(messages.messageCopied,{title:title})}))},paste=()=>{"copy"===action&&dispatch((0,_plone_volto_actions__WEBPACK_IMPORTED_MODULE_2__.qU)(source,(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(props.pathname))),"cut"===action&&dispatch((0,_plone_volto_actions__WEBPACK_IMPORTED_MODULE_2__.UL)(source,(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(props.pathname))),react_toastify__WEBPACK_IMPORTED_MODULE_7__.toast.success(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_4__.qAm,{success:!0,title:intl.formatMessage(messages.success),content:intl.formatMessage(messages.messagePasted)}))},rename=()=>{setshowRename(!0)};return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c,{item:!0,id:"toolbar-actions",trigger:__jsx("span",null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__.c,{name:"lightning",size:"big"})," ",__jsx(react_intl__WEBPACK_IMPORTED_MODULE_10__.c,{id:"Actions",defaultMessage:"Actions"}))},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Menu,null,actions.object_buttons&&actions.object_buttons.map((item=>{switch(item.id){case"cut":return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Item,{key:item.id,icon:"cut",text:item.title,onClick:fncut});case"copy":return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Item,{key:item.id,icon:"copy",text:item.title,onClick:fncopy});case"paste":return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Item,{key:item.id,icon:"paste",text:item.title,onClick:paste,disabled:null===action});case"delete":return __jsx(react_router_dom__WEBPACK_IMPORTED_MODULE_11__.cH,{key:item.id,to:`${props.pathname}/delete`,className:"item"},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__.c,{name:"trash"}),item.title);case"rename":return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Item,{key:item.id,icon:"text cursor",text:item.title,onClick:rename});default:return null}})),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_4__.Sq3,{open:showRename,onCancel:()=>{setshowRename(!1)},onOk:()=>{setshowRename(!1)},items:[{url:props.pathname,title:title,id:id}]})))};Actions.__docgenInfo={description:"",methods:[],displayName:"Actions",props:{pathname:{description:"",type:{name:"string"},required:!0}}}},"./src/components/manage/Add/Add.jsx":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js"),lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__),lodash_keys__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"),lodash_keys__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/helpers/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),redux__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),react_intl__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Grid/Grid.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Menu/Menu.js"),react_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js"),uuid__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("../../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/v4.js"),query_string__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/query-string@7.1.0/node_modules/query-string/index.js"),react_toastify__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../../node_modules/.pnpm/react-toastify@5.5.0_react-dom@18.2.0_react@18.2.0/node_modules/react-toastify/esm/react-toastify.js"),_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/actions/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/components/index.js"),_plone_volto_helpers_Loadable__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/helpers/Loadable/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/registry.js"),_plone_volto_icons_save_svg__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/icons/save.svg"),_plone_volto_icons_save_svg__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_plone_volto_icons_save_svg__WEBPACK_IMPORTED_MODULE_11__),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/icons/clear.svg"),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_12__),__jsx=react__WEBPACK_IMPORTED_MODULE_2__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_13__.O)({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}"},someErrors:{id:"There are some errors.",defaultMessage:"There are some errors."}});class Add extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(props){super(props),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__.c)(this,"form",react__WEBPACK_IMPORTED_MODULE_2__.createRef()),this.onCancel=this.onCancel.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={isClient:!1,error:null,formSelected:"addForm"}}componentDidMount(){this.props.getSchema(this.props.type,(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(this.props.pathname)),this.setState({isClient:!0})}UNSAFE_componentWillReceiveProps(nextProps){if(this.props.createRequest.loading&&nextProps.createRequest.loaded&&nextProps.content["@type"]===this.props.type&&(this.props.setFormData({}),this.props.history.push(this.props.returnUrl||(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._c)(nextProps.content["@id"]))),this.props.createRequest.loading&&nextProps.createRequest.error){var _nextProps$createRequ,_nextProps$createRequ2,_nextProps$createRequ3,_DOMParser$parseFromS,_DOMParser$parseFromS2;const message=(null===(_nextProps$createRequ=nextProps.createRequest.error.response)||void 0===_nextProps$createRequ||null===(_nextProps$createRequ2=_nextProps$createRequ.body)||void 0===_nextProps$createRequ2?void 0:_nextProps$createRequ2.message)||(null===(_nextProps$createRequ3=nextProps.createRequest.error.response)||void 0===_nextProps$createRequ3?void 0:_nextProps$createRequ3.text),error=(null===(_DOMParser$parseFromS=(new DOMParser).parseFromString(message,"text/html"))||void 0===_DOMParser$parseFromS||null===(_DOMParser$parseFromS2=_DOMParser$parseFromS.all[0])||void 0===_DOMParser$parseFromS2?void 0:_DOMParser$parseFromS2.textContent)||message,errorsList=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.ym)(error);let erroMessage;if(Array.isArray(errorsList)){const invariantErrors=errorsList.filter((errorItem=>!("field"in errorItem))).map((errorItem=>errorItem.message));erroMessage=invariantErrors.length>0?invariantErrors.join(" - "):this.props.intl.formatMessage(messages.someErrors)}else{var _errorsList$error;erroMessage=(null===(_errorsList$error=errorsList.error)||void 0===_errorsList$error?void 0:_errorsList$error.message)||error}this.setState({error:error}),react_toastify__WEBPACK_IMPORTED_MODULE_15__.toast.error(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.qAm,{error:!0,title:this.props.intl.formatMessage(messages.error),content:erroMessage}))}}onSubmit(data){var _this$props$location,_this$props$location$;this.props.createContent((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(this.props.pathname),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)({},data),{},{"@static_behaviors":this.props.schema.definitions?lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(this.props.schema.definitions):null,"@type":this.props.type},_plone_volto_registry__WEBPACK_IMPORTED_MODULE_10__.default.settings.isMultilingual&&(null===(_this$props$location=this.props.location)||void 0===_this$props$location||null===(_this$props$location$=_this$props$location.state)||void 0===_this$props$location$?void 0:_this$props$location$.translationOf)&&{translation_of:this.props.location.state.translationOf,language:this.props.location.state.language}))}onCancel(){var _this$props$location2,_this$props$location3;if(this.props.setFormData({}),null!==(_this$props$location2=this.props.location)&&void 0!==_this$props$location2&&null!==(_this$props$location3=_this$props$location2.state)&&void 0!==_this$props$location3&&_this$props$location3.translationOf){var _this$props$location4,_this$props$location5;const language=this.props.location.state.languageFrom,langFileName=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._0)(language);__webpack_require__("./locales lazy recursive ^\\.\\/.*\\.json$")("./"+langFileName+".json").then((locale=>{this.props.changeLanguage(language,locale.default)})),this.props.history.push(null===(_this$props$location4=this.props.location)||void 0===_this$props$location4||null===(_this$props$location5=_this$props$location4.state)||void 0===_this$props$location5?void 0:_this$props$location5.translationOf)}else this.props.history.push((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.U$)(this.props.pathname))}render(){if(this.props.schemaRequest.loaded){var _this$props$location6,_this$props$location7,_langmap$this$props$l,_this$props$location8,_this$props$location9,_config$blocks,_this$props$schema$pr,_this$props$schema$pr2,_this$props$schema$pr3,_this$props$content,_this$props$content$,_this$props$content$$,_this$props$schema$pr4,_this$props$schema$pr5,_this$props$schema$pr6,_this$props$content2,_this$props,_this$props$schema;const visual=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.I1)(this.props.schema.properties),blocksFieldname=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.c$)(this.props.schema.properties),blocksLayoutFieldname=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.Ar)(this.props.schema.properties),translationObject=null===(_this$props$location6=this.props.location)||void 0===_this$props$location6||null===(_this$props$location7=_this$props$location6.state)||void 0===_this$props$location7?void 0:_this$props$location7.translationObject,translateTo=translationObject?null===_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.YF||void 0===_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.YF||null===(_langmap$this$props$l=_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.YF[null===(_this$props$location8=this.props.location)||void 0===_this$props$location8||null===(_this$props$location9=_this$props$location8.state)||void 0===_this$props$location9?void 0:_this$props$location9.language])||void 0===_langmap$this$props$l?void 0:_langmap$this$props$l.nativeName:null;let initialBlocks,initialBlocksLayout;const initialContentTypeBlocks=null===(_config$blocks=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_10__.default.blocks)||void 0===_config$blocks?void 0:_config$blocks.initialBlocks[this.props.type];initialContentTypeBlocks&&("string"==typeof(null==initialContentTypeBlocks?void 0:initialContentTypeBlocks[0])?[initialBlocks,initialBlocksLayout]=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.WS)(initialContentTypeBlocks):[initialBlocks,initialBlocksLayout]=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.u8)(initialContentTypeBlocks));const schemaBlocks=null===(_this$props$schema$pr=this.props.schema.properties[blocksFieldname])||void 0===_this$props$schema$pr?void 0:_this$props$schema$pr.default,schemaBlocksLayout=null===(_this$props$schema$pr2=this.props.schema.properties[blocksLayoutFieldname])||void 0===_this$props$schema$pr2||null===(_this$props$schema$pr3=_this$props$schema$pr2.default)||void 0===_this$props$schema$pr3?void 0:_this$props$schema$pr3.items;if(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(schemaBlocksLayout)||lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(schemaBlocks)||(initialBlocks={},initialBlocksLayout=[],schemaBlocksLayout.forEach((value=>{if(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(schemaBlocks[value])){let newUid=(0,uuid__WEBPACK_IMPORTED_MODULE_17__.c)();initialBlocksLayout.push(newUid),initialBlocks[newUid]=schemaBlocks[value],initialBlocks[newUid].block=newUid,initialBlocks[newUid]["@layout"]=value}}))),translationObject&&blocksFieldname&&blocksLayoutFieldname){initialBlocks={},initialBlocksLayout=[];const originalBlocks=JSON.parse(JSON.stringify(translationObject[blocksFieldname]));translationObject[blocksLayoutFieldname].items.forEach((value=>{if(!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(originalBlocks[value])){let newUid=(0,uuid__WEBPACK_IMPORTED_MODULE_17__.c)();initialBlocksLayout.push(newUid),initialBlocks[newUid]=originalBlocks[value],initialBlocks[newUid].block=newUid,initialBlocks[newUid]["@canonical"]=value}}))}const lifData=()=>{const data={};return translationObject&&(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.gn)(this.props.schema).forEach((lif=>data[lif]=translationObject[lif])),data},pageAdd=__jsx("div",{id:"page-add"},__jsx(_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.So,{title:this.props.intl.formatMessage(messages.add,{type:this.props.type})}),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.QFz,{ref:this.form,key:"translated-or-new-content-form",navRoot:(null===(_this$props$content=this.props.content)||void 0===_this$props$content||null===(_this$props$content$=_this$props$content["@components"])||void 0===_this$props$content$||null===(_this$props$content$$=_this$props$content$.navroot)||void 0===_this$props$content$$?void 0:_this$props$content$$.navroot)||{},schema:this.props.schema,type:this.props.type,formData:(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_16__.c)({},blocksFieldname&&{[blocksFieldname]:initialBlocks||(null===(_this$props$schema$pr4=this.props.schema.properties[blocksFieldname])||void 0===_this$props$schema$pr4?void 0:_this$props$schema$pr4.default)}),blocksLayoutFieldname&&{[blocksLayoutFieldname]:{items:initialBlocksLayout||(null===(_this$props$schema$pr5=this.props.schema.properties[blocksLayoutFieldname])||void 0===_this$props$schema$pr5||null===(_this$props$schema$pr6=_this$props$schema$pr5.default)||void 0===_this$props$schema$pr6?void 0:_this$props$schema$pr6.items)}}),lifData()),{},{parent:{"@id":(null===(_this$props$content2=this.props.content)||void 0===_this$props$content2?void 0:_this$props$content2["@id"])||""}}),requestError:this.state.error,onSubmit:this.onSubmit,hideActions:!0,pathname:this.props.pathname,visual:visual,title:null!==(_this$props=this.props)&&void 0!==_this$props&&null!==(_this$props$schema=_this$props.schema)&&void 0!==_this$props$schema&&_this$props$schema.title?this.props.intl.formatMessage(messages.add,{type:this.props.schema.title}):null,loading:this.props.createRequest.loading,isFormSelected:"addForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"addForm"})},global:!0,history:this.props.history,location:this.props.location,token:this.props.token}),this.state.isClient&&(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.YT3,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:__jsx(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_18__.c,{id:"toolbar-save",className:"save","aria-label":this.props.intl.formatMessage(messages.save),onClick:()=>this.form.current.onSubmit(),loading:this.props.createRequest.loading},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.GWx,{name:_plone_volto_icons_save_svg__WEBPACK_IMPORTED_MODULE_11___default(),className:"circled",size:"30px",title:this.props.intl.formatMessage(messages.save)})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_18__.c,{className:"cancel",onClick:()=>this.onCancel()},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.GWx,{name:_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_12___default(),className:"circled","aria-label":this.props.intl.formatMessage(messages.cancel),size:"30px",title:this.props.intl.formatMessage(messages.cancel)})))}),document.getElementById("toolbar")),visual&&this.state.isClient&&(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.M3O,null),document.getElementById("sidebar")));return translationObject?__jsx(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,__jsx(_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.oh,{className:"babel-view"}),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__.c,{celled:"internally",stackable:!0,columns:2,id:"page-add-translation"},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__.c.Column,{className:"source-object"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_8__.ewg,{translationObject:translationObject,schema:this.props.schema,pathname:this.props.pathname,visual:visual,isFormSelected:"translationObjectForm"===this.state.formSelected,onSelectForm:()=>{this.setState({formSelected:"translationObjectForm"})}})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__.c.Column,null,__jsx("div",{className:"new-translation"},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_20__.c,{pointing:!0,secondary:!0,attached:!0,tabular:!0},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_20__.c.Item,{name:translateTo.toUpperCase(),active:!0},`${this.props.intl.formatMessage(messages.translateTo,{lang:translateTo})}`)),pageAdd)))):pageAdd}return __jsx("div",null)}}(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_14__.c)(Add,"defaultProps",{schema:null,content:null,returnUrl:null,type:"Default"});(0,redux__WEBPACK_IMPORTED_MODULE_21__.compose)(react_intl__WEBPACK_IMPORTED_MODULE_22__.cp,(0,react_redux__WEBPACK_IMPORTED_MODULE_4__.connect)(((state,props)=>({createRequest:state.content.create,schemaRequest:state.schema,content:state.content.data,schema:state.schema.schema,pathname:props.location.pathname,returnUrl:query_string__WEBPACK_IMPORTED_MODULE_6__.parse(props.location.search).return_url,type:query_string__WEBPACK_IMPORTED_MODULE_6__.parse(props.location.search).type})),{createContent:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__.uc,getSchema:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__.wx,changeLanguage:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__.WC,setFormData:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__.I7}),(0,_plone_volto_helpers_Loadable__WEBPACK_IMPORTED_MODULE_9__._2)("cms"))(Add);Add.__docgenInfo={description:"Add class.\n@class Add\n@extends Component",methods:[{name:"onSubmit",docblock:"Submit handler\n@method onSubmit\n@param {object} data Form data.\n@returns {undefined}",modifiers:[],params:[{name:"data",description:"Form data.",type:{name:"object"},optional:!1}],returns:{},description:"Submit handler"},{name:"onCancel",docblock:"Cancel handler\n@method onCancel\n@returns {undefined}",modifiers:[],params:[],returns:{},description:"Cancel handler"}],displayName:"Add",props:{schema:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"objectOf",value:{name:"any"}},required:!1},content:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"shape",value:{"@id":{name:"string",required:!1},"@type":{name:"string",required:!1}}},required:!1},returnUrl:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},type:{defaultValue:{value:"'Default'",computed:!1},description:"",type:{name:"string"},required:!1},createContent:{description:"",type:{name:"func"},required:!0},getSchema:{description:"",type:{name:"func"},required:!0},pathname:{description:"",type:{name:"string"},required:!0},createRequest:{description:"",type:{name:"shape",value:{loading:{name:"bool",required:!1},loaded:{name:"bool",required:!1}}},required:!0},schemaRequest:{description:"",type:{name:"shape",value:{loading:{name:"bool",required:!1},loaded:{name:"bool",required:!1}}},required:!0},location:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!1}}}},"./src/components/manage/Aliases/Aliases.jsx":function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/helpers/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),redux__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("../../../node_modules/.pnpm/react-router-dom@5.2.0_react@18.2.0/node_modules/react-router-dom/esm/react-router-dom.js"),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Container/Container.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Form/Form.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Header/Header.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Input/Input.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js"),react_intl__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),react_intl__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),_plone_volto_actions__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/actions/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/index.js"),_plone_volto_icons_back_svg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/icons/back.svg"),_plone_volto_icons_back_svg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_plone_volto_icons_back_svg__WEBPACK_IMPORTED_MODULE_6__),react_toastify__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/react-toastify@5.5.0_react-dom@18.2.0_react@18.2.0/node_modules/react-toastify/esm/react-toastify.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_7__.O)({back:{id:"Back",defaultMessage:"Back"},aliases:{id:"URL Management",defaultMessage:"URL Management"},success:{id:"Success",defaultMessage:"Success"},successAdd:{id:"Alias has been added",defaultMessage:"Alias has been added"}});class Aliases extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={isClient:!1,newAlias:"",isAliasCorrect:!1,isAliasAlready:!1,aliasesToRemove:[]}}componentDidMount(){this.props.getAliases((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname),{query:"",manual:"",datetime:"",batchSize:""}),this.props.getContent((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname)),this.setState({isClient:!0})}componentDidUpdate(prevProps,prevState){var _this$props$aliases;prevState.newAlias!==this.state.newAlias&&("/"===this.state.newAlias.charAt(0)?this.setState({isAliasCorrect:!0}):this.setState({isAliasCorrect:!1}),null!==(_this$props$aliases=this.props.aliases)&&void 0!==_this$props$aliases&&_this$props$aliases.items.find((item=>item.path===this.state.newAlias))?this.setState({isAliasAlready:!0}):this.setState({isAliasAlready:!1}))}UNSAFE_componentWillReceiveProps(nextProps){this.props.aliases.add.loading&&nextProps.aliases.add.loaded&&(nextProps.aliases.add.error?this.setState({isAliasAlready:!0}):(this.setState({isAliasAlready:!1}),react_toastify__WEBPACK_IMPORTED_MODULE_8__.toast.success(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_5__.qAm,{success:!0,title:this.props.intl.formatMessage(messages.success),content:this.props.intl.formatMessage(messages.successAdd)}))),this.props.getAliases((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname),{query:"",manual:"",datetime:"",batchSize:""})),this.props.aliases.remove.loading&&nextProps.aliases.remove.loaded&&this.props.getAliases((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname),{query:"",manual:"",datetime:"",batchSize:""})}handleAltChange(val){this.setState({newAlias:val})}handleSubmitAlias(){this.state.isAliasCorrect&&(this.props.addAliases((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname),{items:this.state.newAlias}),this.setState({newAlias:""}))}handleCheckAlias(alias){const aliases=this.state.aliasesToRemove;if(aliases.includes(alias)){const index=aliases.indexOf(alias);if(index>-1){let newAliasesArr=aliases;newAliasesArr.splice(index,1),this.setState({aliasesToRemove:newAliasesArr})}}else this.setState({aliasesToRemove:[...this.state.aliasesToRemove,alias]})}handleRemoveAliases(){this.props.removeAliases((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname),{items:this.state.aliasesToRemove}),this.setState({aliasesToRemove:[]})}render(){var _this$props$aliases2;return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__.c,{id:"aliases"},__jsx(_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.So,{title:this.props.intl.formatMessage(messages.aliases)}),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c.Group,{raised:!0},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,{className:"primary"},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"URL Management for {title}",defaultMessage:"URL Management for {title}",values:{title:__jsx("q",null,this.props.title)}})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,{secondary:!0},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs.",defaultMessage:"Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs."})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{size:"medium"},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Add a new alternative url",defaultMessage:"Add a new alternative url"})),__jsx("p",{className:"help"},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring.",defaultMessage:"Enter the absolute path where the alternative url should exist. The path must start with '/'. Only urls that result in a 404 not found page will result in a redirect occurring."})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c.Field,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_14__.c,{id:"alternative-url-input",name:"alternative-url",placeholder:"/example",value:this.state.newAlias,onChange:e=>this.handleAltChange(e.target.value)}),!this.state.isAliasCorrect&&""!==this.state.newAlias&&__jsx("p",{style:{color:"red"}},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Alternative url path must start with a slash.",defaultMessage:"Alternative url path must start with a slash."})),this.state.isAliasAlready&&__jsx("p",{style:{color:"red"}},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"The provided alternative url already exists!",defaultMessage:"The provided alternative url already exists!"}))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__.c,{id:"submit-alias",primary:!0,onClick:()=>this.handleSubmitAlias(),disabled:!this.state.isAliasCorrect||""===this.state.newAlias||this.state.isAliasAlready},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Add",defaultMessage:"Add"})))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{size:"medium"},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Existing alternative urls for this item",defaultMessage:"Existing alternative urls for this item"})),null===(_this$props$aliases2=this.props.aliases)||void 0===_this$props$aliases2?void 0:_this$props$aliases2.items.map(((alias,i)=>__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c.Field,{key:i},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_16__.c,{id:`alias-check-${i}`,onChange:(e,{value:value})=>this.handleCheckAlias(value),value:alias.path,label:alias.path,checked:this.state.aliasesToRemove.includes(alias.path)})))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_15__.c,{id:"remove-alias",onClick:()=>this.handleRemoveAliases(),primary:!0,disabled:0===this.state.aliasesToRemove.length},__jsx(react_intl__WEBPACK_IMPORTED_MODULE_11__.c,{id:"Remove",defaultMessage:"Remove"}))))),this.state.isClient&&(0,react_dom__WEBPACK_IMPORTED_MODULE_3__.createPortal)(__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_5__.YT3,{pathname:this.props.pathname,hideDefaultViewButtons:!0,inner:__jsx(react_router_dom__WEBPACK_IMPORTED_MODULE_17__.cH,{to:`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.U$)(this.props.pathname)}`,className:"item"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_5__.GWx,{name:_plone_volto_icons_back_svg__WEBPACK_IMPORTED_MODULE_6___default(),className:"contents circled",size:"30px",title:this.props.intl.formatMessage(messages.back)}))}),document.getElementById("toolbar")))}}(0,redux__WEBPACK_IMPORTED_MODULE_18__.compose)(react_intl__WEBPACK_IMPORTED_MODULE_19__.cp,(0,react_redux__WEBPACK_IMPORTED_MODULE_2__.connect)(((state,props)=>{var _state$content$data;return{aliases:state.aliases,pathname:props.location.pathname,title:(null===(_state$content$data=state.content.data)||void 0===_state$content$data?void 0:_state$content$data.title)||""}}),{addAliases:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_4__.W0,getAliases:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_4__.cj,removeAliases:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_4__.Oq,getContent:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_4__.uq}))(Aliases);Aliases.__docgenInfo={description:"Aliases class.\n@class Aliases\n@extends Component",methods:[{name:"handleAltChange",docblock:"Url change handler\n@method handleAltChange\n@returns {undefined}",modifiers:[],params:[{name:"val",optional:!1}],returns:{},description:"Url change handler"},{name:"handleSubmitAlias",docblock:"New alias submit handler\n@method handleSubmitAlias\n@returns {undefined}",modifiers:[],params:[],returns:{},description:"New alias submit handler"},{name:"handleCheckAlias",docblock:"Check to-remove aliases handler\n@method handleSubmitAlias\n@returns {undefined}",modifiers:[],params:[{name:"alias",optional:!1}],returns:{},description:"Check to-remove aliases handler"},{name:"handleRemoveAliases",docblock:"Remove aliases handler\n@method handleRemoveAliases\n@returns {undefined}",modifiers:[],params:[],returns:{},description:"Remove aliases handler"}],displayName:"Aliases",props:{removeAliases:{description:"",type:{name:"func"},required:!0},addAliases:{description:"",type:{name:"func"},required:!0},getAliases:{description:"",type:{name:"func"},required:!0},pathname:{description:"",type:{name:"string"},required:!0},title:{description:"",type:{name:"string"},required:!0}}}},"./src/components/manage/BlockChooser/BlockChooser.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return BlockChooser_BlockChooser}});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),isEmpty=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js"),isEmpty_default=__webpack_require__.n(isEmpty),groupBy=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js"),groupBy_default=__webpack_require__.n(groupBy),map=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/map.js"),map_default=__webpack_require__.n(map),filter=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/filter.js"),filter_default=__webpack_require__.n(filter),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),Button=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),Accordion=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Accordion/Accordion.js"),dist=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),useIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),components=__webpack_require__("./src/components/index.js"),AnimateHeight=__webpack_require__("../../../node_modules/.pnpm/react-animate-height@2.0.17_react-dom@18.2.0_react@18.2.0/node_modules/react-animate-height/lib/AnimateHeight.js"),registry=__webpack_require__("./src/registry.js"),up_key=__webpack_require__("./src/icons/up-key.svg"),up_key_default=__webpack_require__.n(up_key),down_key=__webpack_require__("./src/icons/down-key.svg"),down_key_default=__webpack_require__.n(down_key),Form=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Form/Form.js"),Input=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Input/Input.js"),clear=__webpack_require__("./src/icons/clear.svg"),clear_default=__webpack_require__.n(clear),__jsx=react.createElement;const messages=(0,dist.O)({search:{id:"Search",defaultMessage:"Search"},clear:{id:"Clear search",defaultMessage:"Clear search"}}),BlockChooserSearch=({onChange:onChange,searchValue:searchValue})=>{const intl=(0,useIntl.c)(),searchInput=(0,react.useRef)(null);return __jsx(Form.c,{style:{padding:"0.5em"}},__jsx(Form.c.Field,{className:"searchbox",style:{borderLeft:0,height:"2em",padding:0}},__jsx(Input.c,{"aria-label":intl.formatMessage(messages.search),onChange:event=>onChange(event.target.value),name:"SearchableText",value:searchValue,autoComplete:"off",placeholder:intl.formatMessage(messages.search),title:intl.formatMessage(messages.search),ref:searchInput}),searchValue&&__jsx(Button.c,{className:"clear-search-button","aria-label":intl.formatMessage(messages.clear),onClick:()=>{onChange(""),searchInput.current.focus()}},__jsx(components.GWx,{name:clear_default(),size:"18px"}))))};var BlockChooser_BlockChooserSearch=BlockChooserSearch;BlockChooserSearch.__docgenInfo={description:"",methods:[],displayName:"BlockChooserSearch"};var message=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),BlockChooser_jsx=react.createElement;const BlockChooser_messages=(0,dist.O)({fold:{id:"Fold",defaultMessage:"Fold"},unfold:{id:"Unfold",defaultMessage:"Unfold"}}),BlockChooser=({currentBlock:currentBlock,onInsertBlock:onInsertBlock,onMutateBlock:onMutateBlock,allowedBlocks:allowedBlocks,showRestricted:showRestricted,blocksConfig:blocksConfig=registry.default.blocks.blocksConfig,blockChooserRef:blockChooserRef,properties:properties={},navRoot:navRoot,contentType:contentType})=>{const intl=(0,useIntl.c)(),hasAllowedBlocks=!isEmpty_default()(allowedBlocks),filteredBlocksConfig=filter_default()(blocksConfig,(item=>!!Boolean(item.title&&item.id)&&(showRestricted?!hasAllowedBlocks||allowedBlocks.includes(item.id):hasAllowedBlocks?allowedBlocks.includes(item.id):"function"==typeof item.restricted?!item.restricted({properties:properties,block:item,navRoot:navRoot,contentType:contentType}):!item.restricted)));let blocksAvailable={};const mostUsedBlocks=filter_default()(filteredBlocksConfig,(item=>item.mostUsed));mostUsedBlocks&&(blocksAvailable.mostUsed=mostUsedBlocks);const groupedBlocks=groupBy_default()(filteredBlocksConfig,(item=>item.group));blocksAvailable=(0,objectSpread2.c)((0,objectSpread2.c)({},blocksAvailable),groupedBlocks);const groupBlocksOrder=filter_default()(registry.default.blocks.groupBlocksOrder,(item=>Object.keys(blocksAvailable).includes(item.id))),[activeIndex,setActiveIndex]=react.useState(0);function handleClick(e,titleProps){const{index:index}=titleProps;setActiveIndex(activeIndex===index?-1:index)}const[filterValue,setFilterValue]=react.useState(""),getFormatMessage=message=>intl.formatMessage({id:message,defaultMessage:message});function blocksAvailableFilter(blocks){return blocks.filter((block=>{var _filterVariations;return getFormatMessage(block.title).toLowerCase().includes(filterValue.toLowerCase())||(null===(_filterVariations=filterVariations(block))||void 0===_filterVariations?void 0:_filterVariations.length)}))}function filterVariations(block){var _block$variations;return null===(_block$variations=block.variations)||void 0===_block$variations?void 0:_block$variations.filter((variation=>getFormatMessage(variation.title).toLowerCase().includes(filterValue.toLowerCase())&&!variation.title.toLowerCase().includes("default")))}const ButtonGroup=({block:block})=>{var _variations$;const variations=filterVariations(block);return BlockChooser_jsx(Button.c.Group,{key:block.id},BlockChooser_jsx(Button.c,{icon:!0,basic:!0,className:block.id,onClick:e=>{onInsertBlock?onInsertBlock(currentBlock,{"@type":block.id}):onMutateBlock(currentBlock,{"@type":block.id}),e.stopPropagation()}},BlockChooser_jsx(components.GWx,{name:block.icon,size:"36px"}),getFormatMessage(block.title),filterValue&&(null==variations||null===(_variations$=variations[0])||void 0===_variations$?void 0:_variations$.title)&&BlockChooser_jsx("small",null,getFormatMessage(variations[0].title))))};return BlockChooser_jsx("div",{className:"blocks-chooser"+(registry.default.experimental.addBlockButton.enabled?" new-add-block":""),ref:blockChooserRef},BlockChooser_jsx(BlockChooser_BlockChooserSearch,{onChange:value=>setFilterValue(value),searchValue:filterValue}),filterValue?BlockChooser_jsx(react.Fragment,null,map_default()(blocksAvailableFilter(filteredBlocksConfig),(block=>BlockChooser_jsx(ButtonGroup,{block:block,key:block.id}))),0===blocksAvailableFilter(filteredBlocksConfig).length&&BlockChooser_jsx("h4",{style:{textAlign:"center",lineHeight:"40px"}},BlockChooser_jsx(message.c,{id:"No results found",defaultMessage:"No results found"}))):BlockChooser_jsx(Accordion.c,{fluid:!0,styled:!0,className:"form"},map_default()(groupBlocksOrder,((groupName,index)=>BlockChooser_jsx(react.Fragment,{key:groupName.id},BlockChooser_jsx(Accordion.c.Title,{"aria-label":activeIndex===index?`${intl.formatMessage(BlockChooser_messages.fold)} ${groupName.title} blocks`:`${intl.formatMessage(BlockChooser_messages.unfold)} ${groupName.title} blocks`,active:activeIndex===index,index:index,onClick:handleClick},intl.formatMessage({id:groupName.id,defaultMessage:groupName.title}),BlockChooser_jsx("div",{className:"accordion-tools"},BlockChooser_jsx(components.GWx,0===activeIndex?{name:up_key_default(),size:"20px"}:{name:down_key_default(),size:"20px"}))),BlockChooser_jsx(Accordion.c.Content,{className:groupName.id,active:activeIndex===index},BlockChooser_jsx(AnimateHeight.c,{animateOpacity:!0,duration:500,height:activeIndex===index?"auto":0},map_default()(blocksAvailable[groupName.id],(block=>BlockChooser_jsx(ButtonGroup,{block:block,key:block.id}))))))))))};var BlockChooser_BlockChooser=react.forwardRef(((props,ref)=>BlockChooser_jsx(BlockChooser,(0,esm_extends.c)({},props,{blockChooserRef:ref}))))},"./src/components/manage/BlockChooser/BlockChooserButton.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),semantic_ui_react_dist_commonjs_lib__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/commonjs/lib/index.js"),_plone_volto_icons_circle_plus_svg__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/icons/circle-plus.svg"),_plone_volto_icons_circle_plus_svg__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_plone_volto_icons_circle_plus_svg__WEBPACK_IMPORTED_MODULE_1__),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/registry.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/@fluentui+react-component-ref@0.63.1_react-dom@18.2.0_react@18.2.0/node_modules/@fluentui/react-component-ref/dist/es/Ref.js"),react_intl__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),react_popper__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/react-popper@2.3.0_@popperjs+core@2.11.8_react-dom@18.2.0_react@18.2.0/node_modules/react-popper/lib/esm/usePopper.js"),react_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_6__.O)({addBlock:{id:"Add block",defaultMessage:"Add block"}}),ButtonComponent=props=>{const intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_7__.c)(),{className:className="block-add-button"+(_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.experimental.addBlockButton.enabled?" new-add-block":""),size:size="19px",onShowBlockChooser:onShowBlockChooser}=props;return __jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c,{icon:!0,basic:!0,title:intl.formatMessage(messages.addBlock),onClick:e=>{e.preventDefault(),e.stopPropagation(),onShowBlockChooser()},className:className},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_circle_plus_svg__WEBPACK_IMPORTED_MODULE_1___default(),className:className,size:size}))},BlockChooserButton=props=>{const{block:block,allowedBlocks:allowedBlocks,showRestricted:showRestricted,data:data,onMutateBlock:onMutateBlock,onInsertBlock:onInsertBlock,blocksConfig:blocksConfig,buttonComponent:buttonComponent,properties:properties,navRoot:navRoot,contentType:contentType}=props,{disableNewBlocks:disableNewBlocks}=data,[addNewBlockOpened,setAddNewBlockOpened]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),blockChooserRef=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),handleClickOutside=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((e=>{blockChooserRef.current&&(0,semantic_ui_react_dist_commonjs_lib__WEBPACK_IMPORTED_MODULE_9__.doesNodeContainClick)(blockChooserRef.current,e)||setAddNewBlockOpened(!1)}),[]),Component=buttonComponent||ButtonComponent;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(document.addEventListener("mousedown",handleClickOutside,!1),()=>{document.removeEventListener("mousedown",handleClickOutside,!1)})),[handleClickOutside]);const[referenceElement,setReferenceElement]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[popperElement,setPopperElement]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),{styles:styles,attributes:attributes}=(0,react_popper__WEBPACK_IMPORTED_MODULE_10__.W)(referenceElement,popperElement,{placement:_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.experimental.addBlockButton.enabled?"bottom":"right-start",modifiers:[{name:"offset",options:{offset:[-10,5]}},{name:"flip",options:{fallbackPlacements:["right-end","top-start"]}}]});return __jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,!disableNewBlocks&&(_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.experimental.addBlockButton.enabled||!(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__.ov)(data))&&__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__._,{innerRef:setReferenceElement},__jsx(Component,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_12__.c)({},props,{onShowBlockChooser:()=>setAddNewBlockOpened(!0)}))),addNewBlockOpened&&(0,react_dom__WEBPACK_IMPORTED_MODULE_5__.createPortal)(__jsx("div",(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_12__.c)({ref:setPopperElement,style:styles.popper},attributes.popper),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.Mr9,{onMutateBlock:onMutateBlock?(id,value)=>{setAddNewBlockOpened(!1),onMutateBlock(id,value)}:null,onInsertBlock:onInsertBlock?(id,value)=>{setAddNewBlockOpened(!1),onInsertBlock(id,value)}:null,currentBlock:block,allowedBlocks:allowedBlocks,blocksConfig:blocksConfig,properties:properties,showRestricted:showRestricted,ref:blockChooserRef,navRoot:navRoot,contentType:contentType})),document.body))};__webpack_exports__.c=BlockChooserButton,ButtonComponent.__docgenInfo={description:"",methods:[],displayName:"ButtonComponent"},BlockChooserButton.__docgenInfo={description:"",methods:[],displayName:"BlockChooserButton"}},"./src/components/manage/Blocks/Block/BlocksForm.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return Block_BlocksForm}});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),useIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),Edit=__webpack_require__("./src/components/manage/Blocks/Block/Edit.jsx"),components=__webpack_require__("./src/components/index.js"),helpers=__webpack_require__("./src/helpers/index.js"),objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),drag=__webpack_require__("./src/icons/drag.svg"),drag_default=__webpack_require__.n(drag),Button=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),includes=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/includes.js"),includes_default=__webpack_require__.n(includes),isBoolean=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBoolean.js"),isBoolean_default=__webpack_require__.n(isBoolean),dist=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),injectIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),registry=__webpack_require__("./src/registry.js"),icons_delete=__webpack_require__("./src/icons/delete.svg"),delete_default=__webpack_require__.n(icons_delete),__jsx=react.createElement;const messages=(0,dist.O)({delete:{id:"delete",defaultMessage:"delete"}}),EditBlockWrapper=props=>{const{intl:intl,blockProps:blockProps,draginfo:draginfo,children:children}=props,{allowedBlocks:allowedBlocks,block:block,blocksConfig:blocksConfig,selected:selected,type:type,onChangeBlock:onChangeBlock,onDeleteBlock:onDeleteBlock,onInsertBlock:onInsertBlock,onSelectBlock:onSelectBlock,onMutateBlock:onMutateBlock,data:data,editable:editable,properties:properties,showBlockChooser:showBlockChooser,navRoot:navRoot,contentType:contentType}=blockProps,visible=selected&&!(data=>!!data.fixed||!registry.default.experimental.addBlockButton.enabled&&!((0,helpers.ov)(data)&&props.blockProps.editable))(data),required=isBoolean_default()(data.required)?data.required:includes_default()(registry.default.blocks.requiredBlocks,type),classNames=(0,helpers.qi)(data.styles),style=(0,helpers.KK)(data.styles),styleMergedWithDragProps=(0,objectSpread2.c)((0,objectSpread2.c)({},draginfo.draggableProps),{},{style:(0,objectSpread2.c)((0,objectSpread2.c)({},style),draginfo.draggableProps.style)});return __jsx("div",(0,esm_extends.c)({ref:draginfo.innerRef},styleMergedWithDragProps,{className:classnames_default()(`block-editor-${data["@type"]}`,classNames,{[data.align]:data.align})}),__jsx("div",{style:{position:"relative"}},__jsx("div",(0,esm_extends.c)({style:{visibility:visible?"visible":"hidden",display:"inline-block"}},draginfo.dragHandleProps,{className:"drag handle wrapper"}),__jsx(components.GWx,{name:drag_default(),size:"18px"})),__jsx("div",{className:`ui drag block inner ${type}`},children,selected&&!required&&editable&&__jsx(Button.c,{icon:!0,basic:!0,onClick:()=>onDeleteBlock(block,!0),className:"delete-button","aria-label":intl.formatMessage(messages.delete)},__jsx(components.GWx,{name:delete_default(),size:"18px"})),registry.default.experimental.addBlockButton.enabled&&showBlockChooser&&__jsx(components.YGc,{data:data,block:block,onInsertBlock:(id,value)=>{(0,helpers.ov)(data)?onSelectBlock(onInsertBlock(id,value)):onChangeBlock(id,value)},onMutateBlock:onMutateBlock,allowedBlocks:allowedBlocks,blocksConfig:blocksConfig,size:"24px",properties:properties,navRoot:navRoot,contentType:contentType}))))};var Block_EditBlockWrapper=(0,injectIntl.cp)(EditBlockWrapper);EditBlockWrapper.__docgenInfo={description:"",methods:[],displayName:"EditBlockWrapper"};var actions=__webpack_require__("./src/actions/index.js"),es=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),BlocksForm_jsx=react.createElement;const BlocksForm=props=>{const{pathname:pathname,onChangeField:onChangeField,properties:properties,type:type,navRoot:navRoot,onChangeFormData:onChangeFormData,selectedBlock:selectedBlock,multiSelected:multiSelected,onSelectBlock:onSelectBlock,allowedBlocks:allowedBlocks,showRestricted:showRestricted,title:title,description:description,metadata:metadata,manage:manage,children:children,isMainForm:isMainForm=!0,isContainer:isContainer,stopPropagation:stopPropagation,disableAddBlockOnEnterKey:disableAddBlockOnEnterKey,blocksConfig:blocksConfig=registry.default.blocks.blocksConfig,editable:editable=!0,direction:direction="vertical",history:history,location:location,token:token}=props,blockList=(0,helpers.oZ)(properties),dispatch=(0,es.useDispatch)(),intl=(0,useIntl.c)(),ref=(0,helpers.oD)({onTriggered:()=>{onSelectBlock(null),dispatch((0,actions.Of)(0))},triggerKeys:["Escape"],disableClick:!0,disableKeys:!isMainForm}),handleKeyDown=(e,index,block,node,{disableEnter:disableEnter=!1,disableArrowUp:disableArrowUp=!1,disableArrowDown:disableArrowDown=!1}={})=>{const isMultipleSelection=e.shiftKey;"ArrowUp"!==e.key||disableArrowUp||(onFocusPreviousBlock(block,node,isMultipleSelection),e.preventDefault()),"ArrowDown"!==e.key||disableArrowDown||(onFocusNextBlock(block,node,isMultipleSelection),e.preventDefault()),"Enter"!==e.key||disableEnter||(disableAddBlockOnEnterKey||onSelectBlock(onAddBlock(registry.default.settings.defaultBlockType,index+1)),e.preventDefault())},onFocusPreviousBlock=(currentBlock,blockNode,isMultipleSelection)=>{const prev=(0,helpers.ay)(properties,currentBlock);null!==prev&&(blockNode.blur(),onSelectBlock(prev,isMultipleSelection))},onFocusNextBlock=(currentBlock,blockNode,isMultipleSelection)=>{const next=(0,helpers.Ix)(properties,currentBlock);null!==next&&(blockNode.blur(),onSelectBlock(next,isMultipleSelection))},onMutateBlock=(id,value)=>{const newFormData=(0,helpers.I5)(properties,id,value);onChangeFormData(newFormData)},onInsertBlock=(id,value,current)=>{const[newId,newFormData]=(0,helpers.op)(properties,id,value,current,registry.default.experimental.addBlockButton.enabled?1:0),blocksFieldname=(0,helpers.c$)(newFormData),blockData=newFormData[blocksFieldname][newId];return newFormData[blocksFieldname][newId]=(0,helpers.Qd)({data:blockData,intl:intl,metadata:metadata,properties:properties}),onChangeFormData(newFormData),newId},onAddBlock=(type,index)=>{if(editable){const[id,newFormData]=(0,helpers.Ub)(properties,type,index),blocksFieldname=(0,helpers.c$)(newFormData),blockData=newFormData[blocksFieldname][id];return newFormData[blocksFieldname][id]=(0,helpers.Qd)({data:blockData,intl:intl,metadata:metadata,properties:properties}),onChangeFormData(newFormData),id}},onChangeBlock=(id,value)=>{const newFormData=(0,helpers.cL)(properties,id,value);onChangeFormData(newFormData)},onDeleteBlock=(id,selectPrev)=>{const previous=(0,helpers.ay)(properties,id),newFormData=(0,helpers.kV)(properties,id);onChangeFormData(newFormData),onSelectBlock(selectPrev?previous:null)},onMoveBlock=(dragIndex,hoverIndex)=>{const newFormData=(0,helpers.SS)(properties,dragIndex,hoverIndex);onChangeFormData(newFormData)},editBlockWrapper=children||(({draginfo:draginfo},editBlock,blockProps)=>BlocksForm_jsx(Block_EditBlockWrapper,{draginfo:draginfo,blockProps:blockProps},editBlock));for(const[n,v]of blockList)if(!v){const newFormData=(0,helpers.kV)(properties,n);onChangeFormData(newFormData)}return(0,helpers.yA)("voltoClickBelowContent",(()=>{registry.default.experimental.addBlockButton.enabled&&isMainForm&&onSelectBlock(onAddBlock(registry.default.settings.defaultBlockType,blockList.length))})),BlocksForm_jsx("div",{className:"blocks-form",role:"presentation",ref:ref,onKeyDown:e=>{stopPropagation&&e.stopPropagation()}},BlocksForm_jsx("fieldset",{className:"invisible",disabled:!editable},BlocksForm_jsx(components.UlW,{childList:blockList,onMoveItem:result=>{const{source:source,destination:destination}=result;if(!destination)return;const newFormData=(0,helpers.SS)(properties,source.index,destination.index);return onChangeFormData(newFormData),!0},direction:direction},(dragProps=>{const{child:child,childId:childId,index:index}=dragProps,blockProps={allowedBlocks:allowedBlocks,showRestricted:showRestricted,block:childId,data:child,handleKeyDown:handleKeyDown,id:childId,formTitle:title,formDescription:description,index:index,manage:manage,onAddBlock:onAddBlock,onInsertBlock:onInsertBlock,onChangeBlock:onChangeBlock,onChangeField:onChangeField,onChangeFormData:onChangeFormData,onDeleteBlock:onDeleteBlock,onFocusNextBlock:onFocusNextBlock,onFocusPreviousBlock:onFocusPreviousBlock,onMoveBlock:onMoveBlock,onMutateBlock:onMutateBlock,onSelectBlock:onSelectBlock,pathname:pathname,metadata:metadata,properties:properties,contentType:type,navRoot:navRoot,blocksConfig:blocksConfig,selected:selectedBlock===childId,multiSelected:null==multiSelected?void 0:multiSelected.includes(childId),type:child["@type"],editable:editable,showBlockChooser:selectedBlock===childId,detached:isContainer,content:properties,history:history,location:location,token:token};return editBlockWrapper(dragProps,BlocksForm_jsx(Edit.c,(0,esm_extends.c)({key:childId},blockProps)),blockProps)}))))};var Block_BlocksForm=BlocksForm;BlocksForm.__docgenInfo={description:"",methods:[],displayName:"BlocksForm"}},"./src/components/manage/Blocks/Block/DefaultEdit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/registry.js"),react_intl__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/index.js"),_DefaultView__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/manage/Blocks/Block/DefaultView.jsx"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const DefaultBlockEdit=props=>{var _blocksConfig$data$T,_blocksConfig$data$T2;const{blocksConfig:blocksConfig=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_1__.default.blocks.blocksConfig}=props,{data:data,onChangeBlock:onChangeBlock,block:block,selected:selected,navRoot:navRoot,contentType:contentType}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_4__.c)(),blockSchema=null==blocksConfig||null===(_blocksConfig$data$T=blocksConfig[data["@type"]])||void 0===_blocksConfig$data$T?void 0:_blocksConfig$data$T.blockSchema,schema="function"==typeof blockSchema?blockSchema((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)({},props),{},{intl:intl})):blockSchema,BlockView=(null==blocksConfig||null===(_blocksConfig$data$T2=blocksConfig[data["@type"]])||void 0===_blocksConfig$data$T2?void 0:_blocksConfig$data$T2.view)||_DefaultView__WEBPACK_IMPORTED_MODULE_3__.c;return __jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,__jsx(BlockView,props),schema?__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__._OY,{selected:selected},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__.CQQ,{block:block,schema:schema,title:schema.title,onChangeField:(id,value)=>{onChangeBlock(block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)({},data),{},{[id]:value}))},formData:data,navRoot:navRoot,contentType:contentType})):"")};__webpack_exports__.c=DefaultBlockEdit,DefaultBlockEdit.__docgenInfo={description:"",methods:[],displayName:"DefaultBlockEdit"}},"./src/components/manage/Blocks/Block/DefaultView.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Container/Container.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Grid/Grid.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Label/Label.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/index.js"),_plone_volto_helpers_Widget_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/helpers/Widget/utils.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/registry.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_3__.O)({unknownBlock:{id:"Unknown Block",defaultMessage:"Unknown Block {block}"},invalidBlock:{id:"Invalid Block",defaultMessage:"Invalid block - Will be removed on saving"}}),DefaultBlockView=props=>{var _blocksConfig$data$T;const{data:data,block:block}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_4__.c)(),{views:views}=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_2__.default.widgets,{blocksConfig:blocksConfig=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_2__.default.blocks.blocksConfig}=props;if(!data)return __jsx("div",{key:block},intl.formatMessage(messages.invalidBlock));const blockSchema=null==blocksConfig||null===(_blocksConfig$data$T=blocksConfig[data["@type"]])||void 0===_blocksConfig$data$T?void 0:_blocksConfig$data$T.blockSchema,schema="function"==typeof blockSchema?blockSchema((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)({},props),{},{intl:intl})):blockSchema,fieldsets=(null==schema?void 0:schema.fieldsets)||[];return schema?__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__.c,{className:"page-block"},null==fieldsets?void 0:fieldsets.map((fs=>{var _fs$fields;return __jsx("div",{className:"fieldset",key:fs.id},"default"!==fs.id&&__jsx("h2",null,fs.title),null===(_fs$fields=fs.fields)||void 0===_fs$fields?void 0:_fs$fields.map(((f,key)=>{let field=(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.c)({},null==schema?void 0:schema.properties[f]),{},{id:f,widget:(0,_plone_volto_helpers_Widget_utils__WEBPACK_IMPORTED_MODULE_7__.e)(f,null==schema?void 0:schema.properties[f])}),Widget=null==views?void 0:views.getWidget(field);return"title"!==f?__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c,{celled:"internally",key:key},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Row,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__.c,null,field.title,":")),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Row,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,{basic:!0},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__.Ouc,{name:f},__jsx(Widget,{value:data[f]}))))):__jsx(Widget,{key:key,value:data[f]})})))}))):__jsx("div",{key:block},intl.formatMessage(messages.unknownBlock,{block:data["@type"]}))};__webpack_exports__.c=DefaultBlockView,DefaultBlockView.__docgenInfo={description:"",methods:[],displayName:"DefaultBlockView"}},"./src/components/manage/Blocks/Block/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),redux__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),_plone_volto_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/actions/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/registry.js"),_plone_volto_components_manage_Sidebar_ObjectBrowser__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/components/manage/Sidebar/ObjectBrowser.jsx"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/components/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_8__.O)({unknownBlock:{id:"Unknown Block",defaultMessage:"Unknown Block {block}"}});class Edit extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(...args){super(...args),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__.c)(this,"blockNode",react__WEBPACK_IMPORTED_MODULE_0__.createRef())}componentDidMount(){var _blocksConfig$type,_blocksConfig$type2;const{type:type}=this.props,{blocksConfig:blocksConfig=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.blocks.blocksConfig}=this.props;!((null==blocksConfig||null===(_blocksConfig$type=blocksConfig[type])||void 0===_blocksConfig$type?void 0:_blocksConfig$type.blockHasOwnFocusManagement)||null)&&this.props.selected&&this.blockNode.current&&this.blockNode.current.focus();const tab=this.props.manage?1:(null==blocksConfig||null===(_blocksConfig$type2=blocksConfig[type])||void 0===_blocksConfig$type2?void 0:_blocksConfig$type2.sidebarTab)||0;this.props.selected&&this.props.editable&&this.props.setSidebarTab(tab)}UNSAFE_componentWillReceiveProps(nextProps){var _blocksConfig$type3;const{blocksConfig:blocksConfig=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.blocks.blocksConfig}=this.props,{selected:selected,type:type}=this.props;if(!((null==blocksConfig||null===(_blocksConfig$type3=blocksConfig[type])||void 0===_blocksConfig$type3?void 0:_blocksConfig$type3.blockHasOwnFocusManagement)||null)&&nextProps.selected&&selected!==nextProps.selected&&this.blockNode.current&&this.blockNode.current.focus(),(!this.props.selected&&nextProps.selected||type!==nextProps.type)&&this.props.editable){var _blocksConfig$nextPro;const tab=this.props.manage?1:(null==blocksConfig||null===(_blocksConfig$nextPro=blocksConfig[nextProps.type])||void 0===_blocksConfig$nextPro?void 0:_blocksConfig$nextPro.sidebarTab)||0;this.props.setSidebarTab(tab)}}render(){var _this$props$data,_blocksConfig$type4,_this$props$data2,_blocksConfig$type6,_blocksConfig$type7;const{blocksConfig:blocksConfig=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.blocks.blocksConfig}=this.props,{editable:editable,type:type}=this.props,disableNewBlocks=null===(_this$props$data=this.props.data)||void 0===_this$props$data?void 0:_this$props$data.disableNewBlocks;let Block=(null==blocksConfig||null===(_blocksConfig$type4=blocksConfig[type])||void 0===_blocksConfig$type4?void 0:_blocksConfig$type4.edit)||_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__.uU2;var _blocksConfig$type5;(null!==(_this$props$data2=this.props.data)&&void 0!==_this$props$data2&&_this$props$data2.readOnly||!editable&&!_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.blocks.showEditBlocksInBabelView)&&(Block=(null==blocksConfig||null===(_blocksConfig$type5=blocksConfig[type])||void 0===_blocksConfig$type5?void 0:_blocksConfig$type5.view)||_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__.cvm);const schema=(null==blocksConfig||null===(_blocksConfig$type6=blocksConfig[type])||void 0===_blocksConfig$type6?void 0:_blocksConfig$type6.schema)||_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__.a6s,blockHasOwnFocusManagement=(null==blocksConfig||null===(_blocksConfig$type7=blocksConfig[type])||void 0===_blocksConfig$type7?void 0:_blocksConfig$type7.blockHasOwnFocusManagement)||null;return __jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,null!==Block?__jsx("div",{role:"presentation",onClick:e=>{const isMultipleSelection=e.shiftKey||e.ctrlKey||e.metaKey;!this.props.selected&&this.props.onSelectBlock(this.props.id,!this.props.selected&&isMultipleSelection,e)},onKeyDown:blockHasOwnFocusManagement||disableNewBlocks?null:e=>this.props.handleKeyDown(e,this.props.index,this.props.id,this.blockNode.current),className:classnames__WEBPACK_IMPORTED_MODULE_2___default()("block",type,this.props.data.variation,{selected:this.props.selected||this.props.multiSelected,multiSelected:this.props.multiSelected}),style:{outline:"none"},ref:this.blockNode,tabIndex:blockHasOwnFocusManagement?null:-1},__jsx(Block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_10__.c)({},this.props,{blockNode:this.blockNode,data:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_6__.Qd)(this.props)})),this.props.manage&&__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__._OY,{selected:this.props.selected,tab:"sidebar-settings"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_7__.acZ,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_10__.c)({},this.props,{schema:schema})))):__jsx("div",{role:"presentation",onClick:()=>!this.props.selected&&this.props.onSelectBlock(this.props.id),onKeyDown:blockHasOwnFocusManagement||disableNewBlocks?null:e=>this.props.handleKeyDown(e,this.props.index,this.props.id,this.blockNode.current),className:classnames__WEBPACK_IMPORTED_MODULE_2___default()(`block ${type}`,{selected:this.props.selected}),style:{outline:"none"},ref:this.blockNode,tabIndex:-1},this.props.intl.formatMessage(messages.unknownBlock,{block:type})))}}(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__.c)(Edit,"defaultProps",{manage:!1,editable:!0}),__webpack_exports__.c=(0,redux__WEBPACK_IMPORTED_MODULE_11__.compose)(react_intl__WEBPACK_IMPORTED_MODULE_12__.cp,_plone_volto_components_manage_Sidebar_ObjectBrowser__WEBPACK_IMPORTED_MODULE_5__.c,(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.connect)(null,{setSidebarTab:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_3__.Of}))(Edit),Edit.__docgenInfo={description:"Edit block class.\n@class Edit\n@extends Component",methods:[],displayName:"Edit",props:{manage:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},editable:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},type:{description:"",type:{name:"string"},required:!0},data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},properties:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},selected:{description:"",type:{name:"bool"},required:!0},multiSelected:{description:"",type:{name:"bool"},required:!1},index:{description:"",type:{name:"number"},required:!0},id:{description:"",type:{name:"string"},required:!0},onMoveBlock:{description:"",type:{name:"func"},required:!0},onDeleteBlock:{description:"",type:{name:"func"},required:!0},pathname:{description:"",type:{name:"string"},required:!0}}}},"./src/components/manage/Blocks/Block/Schema.jsx":function(__unused_webpack_module,__webpack_exports__){"use strict";__webpack_exports__.c={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:[]}},"./src/components/manage/Blocks/Block/Settings.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),_plone_volto_components_manage_Form_BlockDataForm__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/manage/Form/BlockDataForm.jsx"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const Settings=({data:data,block:block,onChangeBlock:onChangeBlock,schema:schema,navRoot:navRoot,contentType:contentType})=>__jsx(_plone_volto_components_manage_Form_BlockDataForm__WEBPACK_IMPORTED_MODULE_1__.c,{schema:schema,title:schema.title,onChangeField:(id,value)=>{onChangeBlock(block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__.c)({},data),{},{[id]:value}))},onChangeBlock:onChangeBlock,formData:data,applySchemaEnhancers:!1,navRoot:navRoot,contentType:contentType});__webpack_exports__.c=(0,react_intl__WEBPACK_IMPORTED_MODULE_3__.cp)(Settings),Settings.__docgenInfo={description:"",methods:[],displayName:"Settings",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},block:{description:"",type:{name:"string"},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0},schema:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0}}}},"./src/components/manage/Blocks/Block/Style.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js");__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),react__WEBPACK_IMPORTED_MODULE_0__.createElement},"./src/components/manage/Blocks/Description/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),slate__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/slate@0.100.0/node_modules/slate/dist/index.es.js"),slate_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/slate-react@0.98.4_react-dom@18.2.0_react@18.2.0_slate@0.100.0/node_modules/slate-react/dist/index.es.js"),react_intl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/registry.js"),_plone_volto_slate_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../volto-slate/src/constants.js"),classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_3__.O)({description:{id:"Add a description…",defaultMessage:"Add a description…"}});const DescriptionBlockEdit=props=>{const{block:block,blockNode:blockNode,data:data,detached:detached,editable:editable,index:index,metadata:metadata,onAddBlock:onAddBlock,onChangeField:onChangeField,onDeleteBlock:onDeleteBlock,onFocusNextBlock:onFocusNextBlock,onFocusPreviousBlock:onFocusPreviousBlock,onSelectBlock:onSelectBlock,properties:properties,selected:selected}=props,{0:editor}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((0,slate_react__WEBPACK_IMPORTED_MODULE_4__.C4)((0,slate__WEBPACK_IMPORTED_MODULE_5__.i5)())),{0:initialValue}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([{type:_plone_volto_slate_constants__WEBPACK_IMPORTED_MODULE_6__.P,children:[{text:(null==metadata?void 0:metadata.description)||(null==properties?void 0:properties.description)||""}]}]),intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_7__.c)(),prevSelected=function usePrevious(value){const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{ref.current=value}),[value]),ref.current}(selected),text=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(null==metadata?void 0:metadata.description)||(null==properties?void 0:properties.description)||""),[metadata,properties]),placeholder=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>data.placeholder||intl.formatMessage(messages.description)),[data.placeholder,intl]),disableNewBlocks=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>detached),[detached]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{!prevSelected&&selected&&(editor.selection&&slate__WEBPACK_IMPORTED_MODULE_5__.EH.isCollapsed(editor.selection)?slate_react__WEBPACK_IMPORTED_MODULE_4__.cr.focus(editor):(slate_react__WEBPACK_IMPORTED_MODULE_4__.cr.focus(editor),slate__WEBPACK_IMPORTED_MODULE_5__.cx.select(editor,slate__WEBPACK_IMPORTED_MODULE_5__.GW.end(editor,[]))))}),[prevSelected,selected,editor]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{slate__WEBPACK_IMPORTED_MODULE_5__.a8.string(editor)!==text&&slate__WEBPACK_IMPORTED_MODULE_5__.cx.insertText(editor,text,{at:[0,0]})}),[editor,text]);const handleChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{const newText=slate__WEBPACK_IMPORTED_MODULE_5__.a8.string(editor);newText!==text&&onChangeField("description",newText)}),[editor,onChangeField,text]),handleKeyDown=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((ev=>{"Backspace"===ev.key&&0===slate__WEBPACK_IMPORTED_MODULE_5__.a8.string(editor).length?(ev.preventDefault(),onDeleteBlock(block,!0)):"Return"===ev.key||"Enter"===ev.key?(ev.preventDefault(),disableNewBlocks||onSelectBlock(onAddBlock(_plone_volto_registry__WEBPACK_IMPORTED_MODULE_1__.default.settings.defaultBlockType,index+1))):"ArrowUp"===ev.key?(ev.preventDefault(),onFocusPreviousBlock(block,blockNode.current)):"ArrowDown"===ev.key&&(ev.preventDefault(),onFocusNextBlock(block,blockNode.current))}),[index,blockNode,editor,onDeleteBlock,disableNewBlocks,onSelectBlock,onAddBlock,onFocusPreviousBlock,onFocusNextBlock,block]),handleFocus=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{onSelectBlock(block)}),[block,onSelectBlock]),renderElement=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((({attributes:attributes,children:children})=>__jsx("div",(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_8__.c)({},attributes,{className:"documentDescription"}),children)),[]);return void 0!==window.__SERVER__?__jsx("div",null):__jsx(slate_react__WEBPACK_IMPORTED_MODULE_4__.c1,{editor:editor,onChange:handleChange,initialValue:initialValue,className:classnames__WEBPACK_IMPORTED_MODULE_2___default()("block description",{selected:selected})},__jsx(slate_react__WEBPACK_IMPORTED_MODULE_4__.SY,{readOnly:!editable,onKeyDown:handleKeyDown,placeholder:placeholder,renderElement:renderElement,onFocus:handleFocus,"aria-multiline":"false"}))};DescriptionBlockEdit.defaultProps={detached:!1,editable:!0},__webpack_exports__.c=DescriptionBlockEdit,DescriptionBlockEdit.__docgenInfo={description:"",methods:[],displayName:"DescriptionBlockEdit",props:{detached:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},editable:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},properties:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},selected:{description:"",type:{name:"bool"},required:!0},block:{description:"",type:{name:"string"},required:!0},index:{description:"",type:{name:"number"},required:!0},onChangeField:{description:"",type:{name:"func"},required:!0},onSelectBlock:{description:"",type:{name:"func"},required:!0},onDeleteBlock:{description:"",type:{name:"func"},required:!0},onAddBlock:{description:"",type:{name:"func"},required:!0},onFocusPreviousBlock:{description:"",type:{name:"func"},required:!0},onFocusNextBlock:{description:"",type:{name:"func"},required:!0},data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},blockNode:{description:"",type:{name:"any"},required:!1}}}},"./src/components/manage/Blocks/Description/View.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var __jsx=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js").createElement;const DescriptionBlockView=({properties:properties,metadata:metadata})=>__jsx("p",{className:"documentDescription"},(metadata||properties).description||"");__webpack_exports__.c=DescriptionBlockView,DescriptionBlockView.__docgenInfo={description:"",methods:[],displayName:"DescriptionBlockView",props:{properties:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},metadata:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!1}}}},"./src/components/manage/Blocks/HTML/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__),redux__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Popup/Popup.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),react_intl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),_loadable_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@loadable+component@5.14.1_react@18.2.0/node_modules/@loadable/component/dist/loadable.esm.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/index.js"),_plone_volto_helpers_Loadable_Loadable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/helpers/Loadable/Loadable.js"),_plone_volto_icons_show_svg__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/icons/show.svg"),_plone_volto_icons_show_svg__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_plone_volto_icons_show_svg__WEBPACK_IMPORTED_MODULE_5__),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/icons/clear.svg"),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_6__),_plone_volto_icons_code_svg__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/icons/code.svg"),_plone_volto_icons_code_svg__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_plone_volto_icons_code_svg__WEBPACK_IMPORTED_MODULE_7__),_plone_volto_icons_indent_svg__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/icons/indent.svg"),_plone_volto_icons_indent_svg__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_plone_volto_icons_indent_svg__WEBPACK_IMPORTED_MODULE_8__),__jsx=react__WEBPACK_IMPORTED_MODULE_1__.createElement;const Editor=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_2__.cp)({resolved:{},chunkName(){return"react-simple-code-editor"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>__webpack_require__.e(112).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/react-simple-code-editor@0.7.1_react-dom@18.2.0_react@18.2.0/node_modules/react-simple-code-editor/lib/index.js")),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"../../../node_modules/.pnpm/react-simple-code-editor@0.7.1_react-dom@18.2.0_react@18.2.0/node_modules/react-simple-code-editor/lib/index.js"}}),messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_9__.O)({source:{id:"Source",defaultMessage:"Source"},preview:{id:"Preview",defaultMessage:"Preview"},placeholder:{id:"

Add some HTML here

",defaultMessage:"

Add some HTML here

"},prettier:{id:"Prettify your code",defaultMessage:"Prettify your code"},clear:{id:"Clear",defaultMessage:"Clear"},code:{id:"Code",defaultMessage:"Code"}});class Edit extends react__WEBPACK_IMPORTED_MODULE_1__.Component{constructor(props){super(props),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(this,"codeEditorRef",react__WEBPACK_IMPORTED_MODULE_1__.createRef()),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(this,"savedSelection",{}),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(this,"onPrettify",(async()=>{try{const code=(await this.props.prettierStandalone.format(this.getValue(),{parser:"html",plugins:[this.props.prettierParserHtml]})).trim();this.onChangeCode(code)}catch(ex){}})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(this,"getSelection",(editor=>{if(!editor||!editor._input)return{};const o={};return editor._input.selectionStart&&(o.selectionStart=editor._input.selectionStart),editor._input.selectionEnd&&(o.selectionEnd=editor._input.selectionEnd),o})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(this,"restoreSelectionAndFocus",(editor=>{var _this$savedSelection,_this$savedSelection2,_this$savedSelection3,_this$savedSelection4;this.props.selected&&editor._input&&"number"==typeof(null===(_this$savedSelection=this.savedSelection)||void 0===_this$savedSelection?void 0:_this$savedSelection.selectionStart)&&"number"==typeof(null===(_this$savedSelection2=this.savedSelection)||void 0===_this$savedSelection2?void 0:_this$savedSelection2.selectionEnd)&&(editor._input.selectionStart=null===(_this$savedSelection3=this.savedSelection)||void 0===_this$savedSelection3?void 0:_this$savedSelection3.selectionStart,editor._input.selectionEnd=null===(_this$savedSelection4=this.savedSelection)||void 0===_this$savedSelection4?void 0:_this$savedSelection4.selectionEnd,editor._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(prevProps,prevState,snapshot){this.savedSelection=snapshot,this.restoreSelectionAndFocus(this.codeEditorRef.current)}shouldComponentUpdate(nextProps){return!this._input||(this.props.selected||!lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(this.props.data,nextProps.data)||this._input.selectionStart!==this.savedSelection.selectionStart||this._input.selectionEnd!==this.savedSelection.selectionEnd)}onChangeCode(code){this.props.onChangeBlock(this.props.block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__.c)({},this.props.data),{},{html:code}))}getValue(){return this.props.data.html||""}async onPreview(){try{const code=(await this.props.prettierStandalone.format(this.getValue(),{parser:"html",plugins:[this.props.prettierParserHtml]})).trim();this.setState({isPreview:!this.state.isPreview},(()=>this.onChangeCode(code)))}catch(ex){}}onCodeEditor(){this.setState({isPreview:!this.state.isPreview})}getSnapshotBeforeUpdate(prevProps,prevState){return this.getSelection(this.codeEditorRef.current)}render(){var _this$props$prismCore,_this$props$prismCore2,_this$props$prismCore3;const placeholder=this.props.data.placeholder||this.props.intl.formatMessage(messages.placeholder),value=this.getValue();return __jsx(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,this.props.selected&&value&&__jsx("div",{className:"toolbar"},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{trigger:__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(messages.source),active:!this.state.isPreview,onClick:this.onCodeEditor},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_code_svg__WEBPACK_IMPORTED_MODULE_7___default(),size:"24px"})),position:"top center",content:this.props.intl.formatMessage(messages.code),size:"mini"}),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{trigger:__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(messages.preview),active:this.state.isPreview,onClick:this.onPreview},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_show_svg__WEBPACK_IMPORTED_MODULE_5___default(),size:"24px"})),position:"top center",content:this.props.intl.formatMessage(messages.preview),size:"mini"}),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{trigger:__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{icon:!0,basic:!0,"aria-label":this.props.intl.formatMessage(messages.prettier),onClick:this.onPrettify},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_indent_svg__WEBPACK_IMPORTED_MODULE_8___default(),size:"24px"})),position:"top center",content:this.props.intl.formatMessage(messages.prettier),size:"mini"}),__jsx("div",{className:"separator"}),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{trigger:__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c.Group,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__.c,{icon:!0,basic:!0,onClick:()=>this.onChangeCode("")},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_6___default(),size:"24px",color:"#e40166"}))),position:"top center",content:this.props.intl.formatMessage(messages.clear),size:"mini"})),this.state.isPreview?__jsx("div",{dangerouslySetInnerHTML:{__html:value}}):__jsx(Editor,{value:this.getValue(),readOnly:!this.props.editable,placeholder:placeholder,onValueChange:code=>this.onChangeCode(code),highlight:null!==(_this$props$prismCore=this.props.prismCore)&&void 0!==_this$props$prismCore&&_this$props$prismCore.highlight&&null!==(_this$props$prismCore2=this.props.prismCore)&&void 0!==_this$props$prismCore2&&null!==(_this$props$prismCore3=_this$props$prismCore2.languages)&&void 0!==_this$props$prismCore3&&_this$props$prismCore3.html?code=>this.props.prismCore.highlight(code,this.props.prismCore.languages.html,"html"):()=>{},padding:8,className:"html-editor",ref:node=>{node&&(this.codeEditorRef.current=node)},ignoreTabKey:!0}))}}(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_10__.c)(Edit,"defaultProps",{editable:!0});const withPrismMarkup=WrappedComponent=>props=>{const[loaded,setLoaded]=react__WEBPACK_IMPORTED_MODULE_1__.useState(),promise=react__WEBPACK_IMPORTED_MODULE_1__.useRef(null),cancelled=react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1);return react__WEBPACK_IMPORTED_MODULE_1__.useEffect((()=>(promise.current=__webpack_require__.e(952).then(__webpack_require__.t.bind(__webpack_require__,"../../../node_modules/.pnpm/prismjs@1.27.0/node_modules/prismjs/components/prism-markup.js",23)),promise.current.then((()=>{cancelled.current||setLoaded(!0)})),()=>{cancelled.current=!0})),[]),loaded?__jsx(WrappedComponent,props):null};__webpack_exports__.c=(0,redux__WEBPACK_IMPORTED_MODULE_14__.compose)((0,_plone_volto_helpers_Loadable_Loadable__WEBPACK_IMPORTED_MODULE_4__.yM)(["prettierStandalone","prettierParserHtml","prismCore"]),withPrismMarkup,react_intl__WEBPACK_IMPORTED_MODULE_15__.cp)(Edit),Edit.__docgenInfo={description:"Edit html block class.\n@class Edit\n@extends Component",methods:[{name:"onChangeCode",docblock:"Change html handler\n@method onChangeCode\n@param {string} code New value html\n@returns {undefined}",modifiers:[],params:[{name:"code",description:"New value html",type:{name:"string"},optional:!1}],returns:{},description:"Change html handler"},{name:"getValue",docblock:null,modifiers:[],params:[],returns:null},{name:"onPreview",docblock:"Preview mode handler\n@method onPreview\n@returns {undefined}",modifiers:["async"],params:[],returns:{},description:"Preview mode handler"},{name:"onPrettify",docblock:"Prettify handler\n@method onPrettify\n@returns {undefined}",modifiers:["async"],params:[],returns:{},description:"Prettify handler"},{name:"onCodeEditor",docblock:"Code Editor mode handler\n@method onPreview\n@returns {undefined}",modifiers:[],params:[],returns:{},description:"Code Editor mode handler"},{name:"getSelection",docblock:null,modifiers:[],params:[{name:"editor",optional:!1,type:null}],returns:null},{name:"restoreSelectionAndFocus",docblock:null,modifiers:[],params:[{name:"editor",optional:!1,type:null}],returns:null}],displayName:"Edit",props:{editable:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},selected:{description:"",type:{name:"bool"},required:!0},block:{description:"",type:{name:"string"},required:!0},index:{description:"",type:{name:"number"},required:!0},data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0},onSelectBlock:{description:"",type:{name:"func"},required:!0},onDeleteBlock:{description:"",type:{name:"func"},required:!0},handleKeyDown:{description:"",type:{name:"func"},required:!0}}}},"./src/components/manage/Blocks/HTML/View.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var __jsx=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js").createElement;const View=({data:data})=>__jsx("div",{className:"block html",dangerouslySetInnerHTML:{__html:data.html}});__webpack_exports__.c=View,View.__docgenInfo={description:"",methods:[],displayName:"View",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0}}}},"./src/components/manage/Blocks/Image/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),redux__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),promise_file_reader__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/promise-file-reader@1.0.2/node_modules/promise-file-reader/PromiseFileReader.js"),promise_file_reader__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(promise_file_reader__WEBPACK_IMPORTED_MODULE_3__),semantic_ui_react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Message/Message.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Dimmer/Dimmer.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Input/Input.js"),react_intl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),_loadable_component__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@loadable+component@5.14.1_react@18.2.0/node_modules/@loadable/component/dist/loadable.esm.js"),classnames__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__),_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/components/index.js"),_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/actions/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/helpers/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/registry.js"),_plone_volto_components_manage_Blocks_Image_block_image_svg__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/components/manage/Blocks/Image/block-image.svg"),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/icons/clear.svg"),_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_11__),_plone_volto_icons_nav_svg__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/icons/nav.svg"),_plone_volto_icons_nav_svg__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_plone_volto_icons_nav_svg__WEBPACK_IMPORTED_MODULE_12__),_plone_volto_icons_ahead_svg__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/icons/ahead.svg"),_plone_volto_icons_ahead_svg__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_plone_volto_icons_ahead_svg__WEBPACK_IMPORTED_MODULE_13__),_plone_volto_icons_upload_svg__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/icons/upload.svg"),_plone_volto_icons_upload_svg__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_plone_volto_icons_upload_svg__WEBPACK_IMPORTED_MODULE_14__),__jsx=react__WEBPACK_IMPORTED_MODULE_1__.createElement;const Dropzone=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_4__.cp)({resolved:{},chunkName(){return"react-dropzone"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/react-dropzone@11.1.0_react@18.2.0/node_modules/react-dropzone/dist/es/index.js")),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"../../../node_modules/.pnpm/react-dropzone@11.1.0_react@18.2.0/node_modules/react-dropzone/dist/es/index.js"}}),messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_15__.O)({ImageBlockInputPlaceholder:{id:"Browse the site, drop an image, or type an URL",defaultMessage:"Browse the site, drop an image, or type an URL"},uploadingImage:{id:"Uploading image",defaultMessage:"Uploading image"}});class Edit extends react__WEBPACK_IMPORTED_MODULE_1__.Component{constructor(...args){super(...args),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"state",{uploading:!1,url:"",dragging:!1}),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onUploadImage",(e=>{e.stopPropagation();const file=e.target.files[0];(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.my)(file,this.props.intl.formatMessage)&&(this.setState({uploading:!0}),(0,promise_file_reader__WEBPACK_IMPORTED_MODULE_3__.readAsDataURL)(file).then((data=>{const fields=data.match(/^data:(.*);(.*),(.*)$/);this.props.createContent((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.U$)(this.props.pathname),{"@type":"Image",title:file.name,image:{data:fields[3],encoding:fields[2],"content-type":fields[1],filename:file.name}},this.props.block)})))})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onChangeUrl",(({target:target})=>{this.setState({url:target.value})})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onSubmitUrl",(()=>{this.props.onChangeBlock(this.props.block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)({},this.props.data),{},{url:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__._c)(this.state.url),image_field:void 0,image_scales:void 0}))})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onDrop",(files=>{(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.my)(files[0],this.props.intl.formatMessage)?(this.setState({uploading:!0}),(0,promise_file_reader__WEBPACK_IMPORTED_MODULE_3__.readAsDataURL)(files[0]).then((data=>{const fields=data.match(/^data:(.*);(.*),(.*)$/);this.props.createContent((0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.U$)(this.props.pathname),{"@type":"Image",title:files[0].name,image:{data:fields[3],encoding:fields[2],"content-type":fields[1],filename:files[0].name}},this.props.block)}))):this.setState({dragging:!1})})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onKeyDownVariantMenuForm",(e=>{"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.onSubmitUrl()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onDragEnter",(()=>{this.setState({dragging:!0})})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"onDragLeave",(()=>{this.setState({dragging:!1})})),(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__.c)(this,"node",react__WEBPACK_IMPORTED_MODULE_1__.createRef())}UNSAFE_componentWillReceiveProps(nextProps){this.props.request.loading&&nextProps.request.loaded&&this.state.uploading&&(this.setState({uploading:!1}),this.props.onChangeBlock(this.props.block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)({},this.props.data),{},{url:nextProps.content["@id"],image_field:"image",image_scales:{image:[nextProps.content.image]},alt:""})))}shouldComponentUpdate(nextProps){return this.props.selected||nextProps.selected||!lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(this.props.data,nextProps.data)}render(){const Image=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_9__.default.getComponent({name:"Image"}).component,{data:data}=this.props,placeholder=this.props.data.placeholder||this.props.intl.formatMessage(messages.ImageBlockInputPlaceholder);return __jsx("div",{className:classnames__WEBPACK_IMPORTED_MODULE_5___default()("block image align",{center:!Boolean(data.align)},data.align)},data.url?__jsx(Image,{className:classnames__WEBPACK_IMPORTED_MODULE_5___default()({"full-width":"full"===data.align,large:"l"===data.size,medium:"m"===data.size,small:"s"===data.size}),item:data.image_scales?{"@id":data.url,image_field:data.image_field,image_scales:data.image_scales}:void 0,src:data.image_scales?void 0:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.Q5)(data.url)?"l"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__._c)(data.url)}/@@images/image`:"m"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__._c)(data.url)}/@@images/image/preview`:"s"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__._c)(data.url)}/@@images/image/mini`:`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__._c)(data.url)}/@@images/image`:data.url,sizes:_plone_volto_registry__WEBPACK_IMPORTED_MODULE_9__.default.blocks.blocksConfig.image.getSizes(data),alt:data.alt||"",loading:"lazy",responsive:!0}):__jsx("div",null,this.props.editable&&__jsx(Dropzone,{noClick:!0,onDrop:this.onDrop,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,className:"dropzone"},(({getRootProps:getRootProps,getInputProps:getInputProps})=>__jsx("div",getRootProps(),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_18__.c,null,this.state.dragging&&__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__.c,{active:!0}),this.state.uploading&&__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_19__.c,{active:!0},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_20__.c,{indeterminate:!0},this.props.intl.formatMessage(messages.uploadingImage))),__jsx("div",{className:"no-image-wrapper"},__jsx("img",{src:_plone_volto_components_manage_Blocks_Image_block_image_svg__WEBPACK_IMPORTED_MODULE_10__,alt:""}),__jsx("div",{className:"toolbar-inner"},__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c.Group,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c,{basic:!0,icon:!0,onClick:e=>{e.stopPropagation(),e.preventDefault(),this.props.openObjectBrowser({onSelectItem:(url,{title:title,image_field:image_field,image_scales:image_scales})=>{this.props.onChangeBlock(this.props.block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_17__.c)({},this.props.data),{},{url:url,image_field:image_field,image_scales:image_scales,alt:this.props.data.alt||title||""}))}})}},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__.GWx,{name:_plone_volto_icons_nav_svg__WEBPACK_IMPORTED_MODULE_12___default(),size:"24px"}))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c.Group,null,__jsx("label",{className:"ui button basic icon"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__.GWx,{name:_plone_volto_icons_upload_svg__WEBPACK_IMPORTED_MODULE_14___default(),size:"24px"}),__jsx("input",getInputProps({type:"file",onChange:this.onUploadImage,style:{display:"none"}})))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_22__.c,{onKeyDown:this.onKeyDownVariantMenuForm,onChange:this.onChangeUrl,placeholder:placeholder,value:this.state.url,onClick:e=>{e.target.focus()},onFocus:e=>{this.props.onSelectBlock(this.props.id)}}),this.state.url&&__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c.Group,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),this.setState({url:""})}},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__.GWx,{name:_plone_volto_icons_clear_svg__WEBPACK_IMPORTED_MODULE_11___default(),size:"30px"}))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c.Group,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_21__.c,{basic:!0,primary:!0,disabled:!this.state.url,onClick:e=>{e.stopPropagation(),this.onSubmitUrl()}},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__.GWx,{name:_plone_volto_icons_ahead_svg__WEBPACK_IMPORTED_MODULE_13___default(),size:"30px"})))))))))),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__._OY,{selected:this.props.selected},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_6__.ske,this.props)))}}__webpack_exports__.c=(0,redux__WEBPACK_IMPORTED_MODULE_23__.compose)(react_intl__WEBPACK_IMPORTED_MODULE_24__.cp,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_8__.IL,(0,react_redux__WEBPACK_IMPORTED_MODULE_2__.connect)(((state,ownProps)=>{var _state$content$subreq;return{request:state.content.subrequests[ownProps.block]||{},content:null===(_state$content$subreq=state.content.subrequests[ownProps.block])||void 0===_state$content$subreq?void 0:_state$content$subreq.data}}),{createContent:_plone_volto_actions__WEBPACK_IMPORTED_MODULE_7__.uc}))(Edit),Edit.__docgenInfo={description:"Edit image block class.\n@class Edit\n@extends Component",methods:[{name:"onUploadImage",docblock:"Upload image handler (not used), but useful in case that we want a button\nnot powered by react-dropzone\n@method onUploadImage\n@returns {undefined}",modifiers:[],params:[{name:"e",optional:!1}],returns:{},description:"Upload image handler (not used), but useful in case that we want a button\nnot powered by react-dropzone"},{name:"onChangeUrl",docblock:"Change url handler\n@method onChangeUrl\n@param {Object} target Target object\n@returns {undefined}",modifiers:[],params:[{name:"{ target }",optional:!1}],returns:{},description:"Change url handler"},{name:"onSubmitUrl",docblock:"Submit url handler\n@method onSubmitUrl\n@param {object} e Event\n@returns {undefined}",modifiers:[],params:[],returns:{},description:"Submit url handler"},{name:"onDrop",docblock:"Drop handler\n@method onDrop\n@param {array} files File objects\n@returns {undefined}",modifiers:[],params:[{name:"files",description:"File objects",type:{name:"array"},optional:!1}],returns:{},description:"Drop handler"},{name:"onKeyDownVariantMenuForm",docblock:"Keydown handler on Variant Menu Form\nThis is required since the ENTER key is already mapped to a onKeyDown\nevent and needs to be overriden with a child onKeyDown.\n@method onKeyDownVariantMenuForm\n@param {Object} e Event object\n@returns {undefined}",modifiers:[],params:[{name:"e",description:"Event object",type:{name:"Object"},optional:!1}],returns:{},description:"Keydown handler on Variant Menu Form\nThis is required since the ENTER key is already mapped to a onKeyDown\nevent and needs to be overriden with a child onKeyDown."},{name:"onDragEnter",docblock:null,modifiers:[],params:[],returns:null},{name:"onDragLeave",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Edit",props:{selected:{description:"",type:{name:"bool"},required:!0},block:{description:"",type:{name:"string"},required:!0},index:{description:"",type:{name:"number"},required:!0},data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},content:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!1},request:{description:"",type:{name:"shape",value:{loading:{name:"bool",required:!1},loaded:{name:"bool",required:!1}}},required:!0},pathname:{description:"",type:{name:"string"},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0},onSelectBlock:{description:"",type:{name:"func"},required:!0},onDeleteBlock:{description:"",type:{name:"func"},required:!0},onFocusPreviousBlock:{description:"",type:{name:"func"},required:!0},onFocusNextBlock:{description:"",type:{name:"func"},required:!0},handleKeyDown:{description:"",type:{name:"func"},required:!0},createContent:{description:"",type:{name:"func"},required:!0},openObjectBrowser:{description:"",type:{name:"func"},required:!0}}}},"./src/components/manage/Blocks/Image/ImageSidebar.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),react_intl__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),react_intl__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),react_intl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/index.js"),_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/manage/Blocks/Image/schema.js"),_plone_volto_icons_image_svg__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/icons/image.svg"),_plone_volto_icons_image_svg__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_plone_volto_icons_image_svg__WEBPACK_IMPORTED_MODULE_4__),_plone_volto_icons_delete_svg__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/icons/delete.svg"),_plone_volto_icons_delete_svg__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_plone_volto_icons_delete_svg__WEBPACK_IMPORTED_MODULE_5__),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const ImageSidebar=props=>{var _data$url$Id,_data$url;const{blocksConfig:blocksConfig,data:data,block:block,onChangeBlock:onChangeBlock,navRoot:navRoot,contentType:contentType}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_6__.c)(),schema=(0,_schema__WEBPACK_IMPORTED_MODULE_3__.C)({formData:data,intl:intl});return __jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,__jsx("header",{className:"header pulled"},__jsx("h2",null,__jsx(react_intl__WEBPACK_IMPORTED_MODULE_7__.c,{id:"Image",defaultMessage:"Image"})),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c.Group,null,__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__.c,{title:intl.formatMessage(messages.clear),basic:!0,disabled:!data.url,onClick:()=>{onChangeBlock(block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_9__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_9__.c)({},data),{},{url:void 0,image_scales:void 0,image_field:void 0,alt:data.url.title===data.alt?void 0:data.alt}))}},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__.GWx,{name:_plone_volto_icons_delete_svg__WEBPACK_IMPORTED_MODULE_5___default(),size:"24px",color:"red"})))),__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__.c,{className:"sidebar-metadata-container image-sidebar",secondary:!0,attached:!0},data.url?__jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,__jsx("div",null,(null!==(_data$url$Id=null===(_data$url=data.url)||void 0===_data$url?void 0:_data$url["@id"])&&void 0!==_data$url$Id?_data$url$Id:data.url).split("/").slice(-1)[0]),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__.WCR,{item:data.image_scales?{"@id":data.url,image_field:data.image_field,image_scales:data.image_scales}:void 0,src:data.image_scales?void 0:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__.Q5)(data.url)?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_1__._c)(data.url)}/@@images/image/preview`:data.url,sizes:"188px",alt:intl.formatMessage(messages.preview),loading:"lazy",responsive:!0,style:{width:"50%"}})):__jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,__jsx(react_intl__WEBPACK_IMPORTED_MODULE_7__.c,{id:"No image selected",defaultMessage:"No image selected"}),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__.GWx,{name:_plone_volto_icons_image_svg__WEBPACK_IMPORTED_MODULE_4___default(),size:"100px",color:"#b8c6c8"}))),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_2__.CQQ,{schema:schema,title:schema.title,onChangeField:(id,value)=>{onChangeBlock(block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_9__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_9__.c)({},data),{},{[id]:value}))},onChangeBlock:onChangeBlock,formData:data,block:block,blocksConfig:blocksConfig,navRoot:navRoot,contentType:contentType}))};__webpack_exports__.c=ImageSidebar;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_11__.O)({preview:{id:"image_block_preview",defaultMessage:"Image preview"},clear:{id:"image_block_clear",defaultMessage:"Clear image"}});ImageSidebar.__docgenInfo={description:"",methods:[],displayName:"ImageSidebar",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},block:{description:"",type:{name:"string"},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0}}}},"./src/components/manage/Blocks/Image/LayoutSchema.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),_plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/components/manage/Blocks/Block/Schema.jsx");const Schema=(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.c)({},_plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_0__.c),{},{fieldsets:[(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.c)({},_plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_0__.c.fieldsets[0])],properties:(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__.c)({},_plone_volto_components_manage_Blocks_Block_Schema__WEBPACK_IMPORTED_MODULE_0__.c.properties)});__webpack_exports__.c=Schema},"./src/components/manage/Blocks/Image/View.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/index.js"),classnames__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/helpers/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/registry.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const View=({className:className,data:data,detached:detached,properties:properties,style:style})=>{var _data$href,_data$href$;const href=(null==data||null===(_data$href=data.href)||void 0===_data$href||null===(_data$href$=_data$href[0])||void 0===_data$href$?void 0:_data$href$["@id"])||"",Image=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.getComponent({name:"Image"}).component;return __jsx("p",{className:classnames__WEBPACK_IMPORTED_MODULE_2___default()("block image align",{center:!Boolean(data.align),detached:detached},data.align,className),style:style},data.url&&__jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,(()=>{const image=__jsx(Image,{className:classnames__WEBPACK_IMPORTED_MODULE_2___default()({"full-width":"full"===data.align,large:"l"===data.size,medium:"m"===data.size,small:"s"===data.size}),item:data.image_scales?{"@id":data.url,image_field:data.image_field,image_scales:data.image_scales}:void 0,src:data.image_scales?void 0:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.Q5)(data.url)?"l"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._c)(data.url)}/@@images/image`:"m"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._c)(data.url)}/@@images/image/preview`:"s"===data.size?`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._c)(data.url)}/@@images/image/mini`:`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__._c)(data.url)}/@@images/image`:data.url,sizes:_plone_volto_registry__WEBPACK_IMPORTED_MODULE_4__.default.blocks.blocksConfig.image.getSizes(data),alt:data.alt||"",loading:"lazy",responsive:!0});return href?__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__.GQK,{href:href,openLinkInNewTab:data.openLinkInNewTab},image):image})()))};__webpack_exports__.c=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_3__.IL)(View),View.__docgenInfo={description:"",methods:[],displayName:"View",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0}}}},"./src/components/manage/Blocks/Image/schema.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{C:function(){return ImageSchema},G:function(){return gridImageDisableSizeAndPositionHandlersSchema}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_1__.O)({Image:{id:"Image",defaultMessage:"Image"},AltText:{id:"Alt text",defaultMessage:"Alt text"},Align:{id:"Alignment",defaultMessage:"Alignment"},size:{id:"Image size",defaultMessage:"Image size"},LinkTo:{id:"Link to",defaultMessage:"Link to"},openLinkInNewTab:{id:"Open in a new tab",defaultMessage:"Open in a new tab"},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."},linkSettings:{id:"Link settings",defaultMessage:"Link settings"}});function ImageSchema({formData:formData,intl:intl}){return{fieldsets:[{id:"default",title:"Default",fields:[...formData.url?["alt","align","size"]:[]]},...formData.url?[{id:"link_settings",title:intl.formatMessage(messages.linkSettings),fields:["href","openLinkInNewTab"]}]:[]],properties:{alt:{title:intl.formatMessage(messages.AltText),description:__jsx(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,__jsx("a",{href:"https://www.w3.org/WAI/tutorials/images/decision-tree/",title:intl.formatMessage(messages.openLinkInNewTab),target:"_blank",rel:"noopener noreferrer"},intl.formatMessage(messages.AltTextHintLinkText))," ",intl.formatMessage(messages.AltTextHint))},align:{title:intl.formatMessage(messages.Align),widget:"align"},size:{title:intl.formatMessage(messages.size),widget:"image_size"},href:{title:intl.formatMessage(messages.LinkTo),widget:"object_browser",mode:"link",selectedItemAttrs:["Title","Description","hasPreviewImage"],allowExternals:!0},openLinkInNewTab:{title:intl.formatMessage(messages.openLinkInNewTab),type:"boolean"}},required:[]}}const gridImageDisableSizeAndPositionHandlersSchema=({schema:schema,formData:formData,intl:intl})=>(schema.fieldsets[0].fields=schema.fieldsets[0].fields.filter((item=>!["align","size"].includes(item))),schema)},"./src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return LeadImage_LeadImageSidebar}});var objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),Form=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Form/Form.js"),Segment=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js"),Grid=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Grid/Grid.js"),Accordion=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Accordion/Accordion.js"),dist=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),message=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),injectIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),components=__webpack_require__("./src/components/index.js"),helpers=__webpack_require__("./src/helpers/index.js"),useIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),Button=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),image_left=__webpack_require__("./src/icons/image-left.svg"),image_left_default=__webpack_require__.n(image_left),image_right=__webpack_require__("./src/icons/image-right.svg"),image_right_default=__webpack_require__.n(image_right),image_fit=__webpack_require__("./src/icons/image-fit.svg"),image_fit_default=__webpack_require__.n(image_fit),image_wide=__webpack_require__("./src/icons/image-wide.svg"),image_wide_default=__webpack_require__.n(image_wide),image_full=__webpack_require__("./src/icons/image-full.svg"),image_full_default=__webpack_require__.n(image_full),__jsx=react.createElement;const messages=(0,dist.O)({left:{id:"Left",defaultMessage:"Left"},right:{id:"Right",defaultMessage:"Right"},center:{id:"Center",defaultMessage:"Center"},wide:{id:"Wide",defaultMessage:"Wide"},full:{id:"Full",defaultMessage:"Full"}}),AlignBlock=({align:align,onChangeBlock:onChangeBlock,data:data,block:block,actions:actions=["left","right","center","full"]})=>{const intl=(0,useIntl.c)(),ICON_MAP={left:image_left_default(),right:image_right_default(),center:image_fit_default(),wide:image_wide_default(),full:image_full_default()};return __jsx("div",{className:"align-buttons"},actions.map((action=>__jsx(Button.c.Group,{key:action},__jsx(Button.c,{icon:!0,basic:!0,"aria-label":intl.formatMessage(messages[action]),onClick:()=>function onAlignBlock(align){onChangeBlock(block,(0,objectSpread2.c)((0,objectSpread2.c)({},data),{},{align:align}))}(action),active:"center"===action&&!data.align||data.align===action},__jsx(components.GWx,{name:ICON_MAP[action],size:"24px"}))))))};var Sidebar_AlignBlock=AlignBlock;AlignBlock.__docgenInfo={description:"",methods:[],displayName:"AlignBlock",props:{actions:{defaultValue:{value:"['left', 'right', 'center', 'full']",computed:!1},required:!1}}};var icons_image=__webpack_require__("./src/icons/image.svg"),image_default=__webpack_require__.n(icons_image),clear=__webpack_require__("./src/icons/clear.svg"),clear_default=__webpack_require__.n(clear),up_key=__webpack_require__("./src/icons/up-key.svg"),up_key_default=__webpack_require__.n(up_key),down_key=__webpack_require__("./src/icons/down-key.svg"),down_key_default=__webpack_require__.n(down_key),nav=__webpack_require__("./src/icons/nav.svg"),nav_default=__webpack_require__.n(nav),LeadImageSidebar_jsx=react.createElement;const LeadImageSidebar_messages=(0,dist.O)({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"}}),LeadImageSidebar=({properties:properties,data:data,block:block,onChangeBlock:onChangeBlock,openObjectBrowser:openObjectBrowser,required:required=!1,onChangeField:onChangeField,intl:intl})=>{const{0:activeAccIndex,1:setActiveAccIndex}=(0,react.useState)(0);return LeadImageSidebar_jsx(Segment.c.Group,{raised:!0},LeadImageSidebar_jsx("header",{className:"header pulled"},LeadImageSidebar_jsx("h2",null,LeadImageSidebar_jsx(message.c,{id:"Lead Image",defaultMessage:"Lead Image"}))),!properties.image&&LeadImageSidebar_jsx(react.Fragment,null,LeadImageSidebar_jsx(Segment.c,{className:"sidebar-metadata-container",secondary:!0},LeadImageSidebar_jsx(message.c,{id:"No image set in Lead Image content field",defaultMessage:"No image set in Lead Image content field"}),LeadImageSidebar_jsx(components.GWx,{name:image_default(),size:"100px",color:"#b8c6c8"}))),properties.image&&LeadImageSidebar_jsx(react.Fragment,null,LeadImageSidebar_jsx(Segment.c,{className:"sidebar-metadata-container",secondary:!0},properties.image.filename,properties.image.data&&LeadImageSidebar_jsx("img",{src:`data:${properties.image["content-type"]};base64,${properties.image.data}`,width:properties.image.width,height:properties.image.height,alt:data.image_caption||properties.image_caption||"",className:"responsive",style:{aspectRatio:`${properties.image.width} / ${properties.image.height}`}}),!properties.image.data&&LeadImageSidebar_jsx(components.WCR,{item:properties,imageField:"image",alt:data.image_caption||properties.image_caption||"",responsive:!0,sizes:"188px"})),LeadImageSidebar_jsx(Segment.c,{className:"form sidebar-image-data"},LeadImageSidebar_jsx(components.mwe,{id:"alt",title:intl.formatMessage(LeadImageSidebar_messages.AltText),required:!1,value:properties.image_caption,icon:properties.image_caption?clear_default():null,iconAction:()=>onChangeField("image_caption",""),onChange:(name,value)=>{onChangeField("image_caption",value)}}),LeadImageSidebar_jsx(Form.c.Field,{inline:!0,required:required},LeadImageSidebar_jsx(Grid.c,null,LeadImageSidebar_jsx(Grid.c.Row,null,LeadImageSidebar_jsx(Grid.c.Column,{width:"4"},LeadImageSidebar_jsx("div",{className:"wrapper"},LeadImageSidebar_jsx("label",{htmlFor:"field-align"},LeadImageSidebar_jsx(message.c,{id:"Alignment",defaultMessage:"Alignment"})))),LeadImageSidebar_jsx(Grid.c.Column,{width:"8",className:"align-tools"},LeadImageSidebar_jsx(Sidebar_AlignBlock,{align:data.align,onChangeBlock:onChangeBlock,data:data,block:block})))))),LeadImageSidebar_jsx(Accordion.c,{fluid:!0,styled:!0,className:"form"},LeadImageSidebar_jsx(Accordion.c.Title,{active:0===activeAccIndex,index:0,onClick:function handleAccClick(e,titleProps){const{index:index}=titleProps;setActiveAccIndex(activeAccIndex===index?-1:index)}},"Link Settings",LeadImageSidebar_jsx(components.GWx,0===activeAccIndex?{name:up_key_default(),size:"20px"}:{name:down_key_default(),size:"20px"})),LeadImageSidebar_jsx(Accordion.c.Content,{active:0===activeAccIndex},LeadImageSidebar_jsx(components.mwe,{id:"link",title:intl.formatMessage(LeadImageSidebar_messages.LinkTo),required:!1,value:(0,helpers._c)(data.href),icon:data.href?clear_default():nav_default(),iconAction:data.href?()=>{onChangeBlock(block,(0,objectSpread2.c)((0,objectSpread2.c)({},data),{},{href:""}))}:()=>openObjectBrowser({mode:"link"}),onChange:(name,value)=>{onChangeBlock(block,(0,objectSpread2.c)((0,objectSpread2.c)({},data),{},{href:(0,helpers._c)(value)}))}}),LeadImageSidebar_jsx(components.Wi2,{id:"openLinkInNewTab",title:intl.formatMessage(LeadImageSidebar_messages.openLinkInNewTab),value:!!data.openLinkInNewTab&&data.openLinkInNewTab,onChange:(name,value)=>{onChangeBlock(block,(0,objectSpread2.c)((0,objectSpread2.c)({},data),{},{openLinkInNewTab:value}))}})))))};var LeadImage_LeadImageSidebar=(0,injectIntl.cp)(LeadImageSidebar);LeadImageSidebar.__docgenInfo={description:"",methods:[],displayName:"LeadImageSidebar",props:{required:{defaultValue:{value:"false",computed:!1},required:!1},data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},block:{description:"",type:{name:"string"},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0},openObjectBrowser:{description:"",type:{name:"func"},required:!0},onChangeField:{description:"",type:{name:"func"},required:!0}}}},"./src/components/manage/Blocks/Listing/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"),lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/index.js"),_ListingData__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/manage/Blocks/Listing/ListingData.jsx"),__jsx=react__WEBPACK_IMPORTED_MODULE_1__.createElement;const messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_5__.O)({results:{id:"Results preview",defaultMessage:"Results preview"},items:{id:"Contained items",defaultMessage:"Contained items"}}),Edit=react__WEBPACK_IMPORTED_MODULE_1__.memo((props=>{var _data$querystring,_data$querystring$que;const{data:data,onChangeBlock:onChangeBlock,block:block,selected:selected,pathname:pathname}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_6__.c)(),placeholder=data.placeholder||(null!=data&&null!==(_data$querystring=data.querystring)&&void 0!==_data$querystring&&null!==(_data$querystring$que=_data$querystring.query)&&void 0!==_data$querystring$que&&_data$querystring$que.length?intl.formatMessage(messages.results):intl.formatMessage(messages.items));return __jsx(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,__jsx("p",{className:"items-preview"},placeholder),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GQA,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_7__.c)({},props,{path:(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__.U$)(pathname),isEditMode:!0})),__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__._OY,{selected:selected},__jsx(_ListingData__WEBPACK_IMPORTED_MODULE_4__.c,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_7__.c)({key:block},props,{data:data,block:block,onChangeBlock:onChangeBlock}))))}),(function areEquals(prevProps,nextProps){return!(nextProps.selected!==prevProps.selected||!lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(prevProps.data,nextProps.data))}));__webpack_exports__.c=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__.IL)(Edit),Edit.__docgenInfo={description:"",methods:[],displayName:"Edit",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},index:{description:"",type:{name:"number"},required:!0},selected:{description:"",type:{name:"bool"},required:!0},block:{description:"",type:{name:"string"},required:!0},onSelectBlock:{description:"",type:{name:"func"},required:!0},items:{description:"",type:{name:"arrayOf",value:{name:"any"}},required:!1},properties:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},pathname:{description:"",type:{name:"string"},required:!0}}}},"./src/components/manage/Blocks/Listing/ImageGallery.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),_loadable_component__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@loadable+component@5.14.1_react@18.2.0/node_modules/@loadable/component/dist/loadable.esm.js"),react_image_gallery_styles_css_image_gallery_css__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react-image-gallery@1.2.7_react@18.2.0/node_modules/react-image-gallery/styles/css/image-gallery.css"),semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/index.js"),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/helpers/index.js"),_plone_volto_registry__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/registry.js"),_plone_volto_icons_left_key_svg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/icons/left-key.svg"),_plone_volto_icons_left_key_svg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_plone_volto_icons_left_key_svg__WEBPACK_IMPORTED_MODULE_6__),_plone_volto_icons_right_key_svg__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/icons/right-key.svg"),_plone_volto_icons_right_key_svg__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_plone_volto_icons_right_key_svg__WEBPACK_IMPORTED_MODULE_7__),_plone_volto_icons_play_svg__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/icons/play.svg"),_plone_volto_icons_play_svg__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_plone_volto_icons_play_svg__WEBPACK_IMPORTED_MODULE_8__),_plone_volto_icons_pause_svg__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/icons/pause.svg"),_plone_volto_icons_pause_svg__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_plone_volto_icons_pause_svg__WEBPACK_IMPORTED_MODULE_9__),_plone_volto_icons_fullscreen_svg__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/icons/fullscreen.svg"),_plone_volto_icons_fullscreen_svg__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_plone_volto_icons_fullscreen_svg__WEBPACK_IMPORTED_MODULE_10__),_plone_volto_icons_back_down_svg__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/icons/back-down.svg"),_plone_volto_icons_back_down_svg__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_plone_volto_icons_back_down_svg__WEBPACK_IMPORTED_MODULE_11__),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const ImageGallery=(0,_loadable_component__WEBPACK_IMPORTED_MODULE_1__.cp)({resolved:{},chunkName(){return"react-image-gallery"},isReady(props){const key=this.resolve(props);return!0===this.resolved[key]&&!!__webpack_require__.m[key]},importAsync:()=>__webpack_require__.e(460).then(__webpack_require__.t.bind(__webpack_require__,"../../../node_modules/.pnpm/react-image-gallery@1.2.7_react@18.2.0/node_modules/react-image-gallery/build/image-gallery.js",23)),requireAsync(props){const key=this.resolve(props);return this.resolved[key]=!1,this.importAsync(props).then((resolved=>(this.resolved[key]=!0,resolved)))},requireSync(props){const id=this.resolve(props);return __webpack_require__(id)},resolve(){return"../../../node_modules/.pnpm/react-image-gallery@1.2.7_react@18.2.0/node_modules/react-image-gallery/build/image-gallery.js"}}),renderLeftNav=(onClick,disabled)=>__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{className:"image-gallery-icon image-gallery-left-nav primary basic",disabled:disabled,onClick:onClick},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_left_key_svg__WEBPACK_IMPORTED_MODULE_6___default(),size:"48px",fill:"black"})),renderRightNav=(onClick,disabled)=>__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{className:"image-gallery-icon image-gallery-right-nav primary basic",disabled:disabled,onClick:onClick},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,{name:_plone_volto_icons_right_key_svg__WEBPACK_IMPORTED_MODULE_7___default(),size:"48px"})),renderPlayPauseButton=(onClick,isPlaying)=>__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{type:"button",className:"image-gallery-icon image-gallery-play-button basic primary",onClick:onClick,"aria-label":"Play or Pause Slideshow"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,isPlaying?{name:_plone_volto_icons_pause_svg__WEBPACK_IMPORTED_MODULE_9___default(),size:"48px"}:{name:_plone_volto_icons_play_svg__WEBPACK_IMPORTED_MODULE_8___default(),size:"48px"})),renderFullscreenButton=(onClick,isFullscreen)=>__jsx(semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__.c,{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button primary basic",onClick:onClick,"aria-label":"Open Fullscreen"},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GWx,isFullscreen?{name:_plone_volto_icons_back_down_svg__WEBPACK_IMPORTED_MODULE_11___default(),size:"48px"}:{name:_plone_volto_icons_fullscreen_svg__WEBPACK_IMPORTED_MODULE_10___default(),size:"48px"})),ImageGalleryTemplate=({items:items})=>{const{settings:settings}=_plone_volto_registry__WEBPACK_IMPORTED_MODULE_5__.default,renderItems=items.filter((content=>settings.imageObjects.includes(content["@type"])&&content.image_field)),imagesInfo=renderItems.map((item=>({original:`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_4__._c)(item["@id"])}/@@images/${item.image_field}/large`,thumbnail:`${(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_4__._c)(item["@id"])}/@@images/${item.image_field}/thumb`})));return renderItems.length>0&&__jsx(ImageGallery,{items:imagesInfo,renderLeftNav:renderLeftNav,renderRightNav:renderRightNav,renderPlayPauseButton:renderPlayPauseButton,renderFullscreenButton:renderFullscreenButton,lazyLoad:!0})};__webpack_exports__.c=ImageGalleryTemplate,ImageGalleryTemplate.__docgenInfo={description:"",methods:[],displayName:"ImageGalleryTemplate",props:{items:{description:"",type:{name:"arrayOf",value:{name:"any"}},required:!0}}}},"./src/components/manage/Blocks/Listing/ListingBody.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return Listing_ListingBody}});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),message=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),injectIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/injectIntl.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),Pagination=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/addons/Pagination/Pagination.js"),Dimmer=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/modules/Dimmer/Dimmer.js"),Loader=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js"),github_slugger=__webpack_require__("../../../node_modules/.pnpm/github-slugger@1.4.0/node_modules/github-slugger/index.js"),github_slugger_default=__webpack_require__.n(github_slugger),components=__webpack_require__("./src/components/index.js"),render=__webpack_require__("../volto-slate/src/editor/render.jsx"),registry=__webpack_require__("./src/registry.js"),objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),es=__webpack_require__("../../../node_modules/.pnpm/react-redux@8.1.2_@types+react-dom@18.2.12_@types+react@18.2.27_react-dom@18.2.0_react@18.2.0_redux@4.2.1/node_modules/react-redux/es/index.js"),hoist_non_react_statics_cjs=__webpack_require__("../../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),hoist_non_react_statics_cjs_default=__webpack_require__.n(hoist_non_react_statics_cjs),use_deep_compare_effect_esm=__webpack_require__("../../../node_modules/.pnpm/use-deep-compare-effect@1.8.1_react@18.2.0/node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.js"),actions=__webpack_require__("./src/actions/index.js"),helpers=__webpack_require__("./src/helpers/index.js"),__jsx=react.createElement;var left_key=__webpack_require__("./src/icons/left-key.svg"),left_key_default=__webpack_require__.n(left_key),right_key=__webpack_require__("./src/icons/right-key.svg"),right_key_default=__webpack_require__.n(right_key),ListingBody_jsx=react.createElement;const Headline=({headlineTag:headlineTag,id:id,data:data={},listingItems:listingItems,isEditMode:isEditMode})=>{let attr={id:id};const slug=github_slugger_default().slug((0,helpers.y_)(data.headline));attr.id=slug||id;const LinkedHeadline=(0,react.useMemo)((()=>(0,render.E3)(headlineTag)),[headlineTag]);return ListingBody_jsx(LinkedHeadline,{mode:!isEditMode&&"view",children:data.headline,attributes:attr,className:classnames_default()("headline",{emptyListing:!(null!=listingItems&&listingItems.length)>0})})},ListingBody=function withQuerystringResults(WrappedComponent){function WithQuerystringResults(props){var _querystring$query,_querystringResults$s,_querystringResults$s2,_querystringResults$s3,_content$batching,_querystringResults$s4,_content$batching2,_querystringResults$s5,_querystringResults$s6;const{data:data={},id:id=data.block,properties:content,path:path,variation:variation}=props,{settings:settings}=registry.default,querystring=data.querystring||data,subrequestID=null!=content&&content.UID?`${null==content?void 0:content.UID}-${id}`:id,{b_size:b_size=settings.defaultPageSize}=querystring,[initialPath]=react.useState((0,helpers.U$)(path)),{currentPage:currentPage,setCurrentPage:setCurrentPage}=(0,helpers.sE)(id,1),adaptedQuery=Object.assign(null!=variation&&variation.fullobjects?{fullobjects:1}:{metadata_fields:"_all"},{b_size:b_size},...["limit","query","sort_on","sort_order","depth"].map((name=>Object.keys(querystring).includes(name)?{[name]:querystring[name]}:{}))),adaptedQueryRef=(0,react.useRef)(adaptedQuery),currentPageRef=(0,react.useRef)(currentPage),querystringResults=(0,es.useSelector)((state=>state.querystringsearch.subrequests)),dispatch=(0,es.useDispatch)(),folderItems=null!=content&&content.is_folderish?content.items:[],hasQuery=(null==querystring||null===(_querystring$query=querystring.query)||void 0===_querystring$query?void 0:_querystring$query.length)>0,hasLoaded=!hasQuery||(null==querystringResults||null===(_querystringResults$s=querystringResults[subrequestID])||void 0===_querystringResults$s?void 0:_querystringResults$s.loaded),listingItems=hasQuery?(null==querystringResults||null===(_querystringResults$s2=querystringResults[subrequestID])||void 0===_querystringResults$s2?void 0:_querystringResults$s2.items)||[]:folderItems,showAsFolderListing=!hasQuery&&(null==content?void 0:content.items_total)>b_size,showAsQueryListing=hasQuery&&(null==querystringResults||null===(_querystringResults$s3=querystringResults[subrequestID])||void 0===_querystringResults$s3?void 0:_querystringResults$s3.total)>b_size,totalPages=showAsFolderListing?Math.ceil(content.items_total/b_size):showAsQueryListing?Math.ceil(querystringResults[subrequestID].total/b_size):0,prevBatch=showAsFolderListing?null===(_content$batching=content.batching)||void 0===_content$batching?void 0:_content$batching.prev:showAsQueryListing?null===(_querystringResults$s4=querystringResults[subrequestID].batching)||void 0===_querystringResults$s4?void 0:_querystringResults$s4.prev:null,nextBatch=showAsFolderListing?null===(_content$batching2=content.batching)||void 0===_content$batching2?void 0:_content$batching2.next:showAsQueryListing?null===(_querystringResults$s5=querystringResults[subrequestID].batching)||void 0===_querystringResults$s5?void 0:_querystringResults$s5.next:null,isImageGallery=!data.variation&&"imageGallery"===data.template||"imageGallery"===data.variation;return(0,use_deep_compare_effect_esm.cp)((()=>{dispatch(hasQuery?(0,actions.wj)(initialPath,adaptedQuery,subrequestID,currentPage):isImageGallery&&!hasQuery?(0,actions.wj)(initialPath,(0,objectSpread2.c)((0,objectSpread2.c)({},adaptedQuery),{},{b_size:1e10,query:[{i:"path",o:"plone.app.querystring.operation.string.relativePath",v:""}]}),subrequestID):(0,actions.uq)(initialPath,null,null,currentPage)),adaptedQueryRef.current=adaptedQuery,currentPageRef.current=currentPage}),[subrequestID,isImageGallery,adaptedQuery,hasQuery,initialPath,dispatch,currentPage]),__jsx(WrappedComponent,(0,esm_extends.c)({},props,{onPaginationChange:(e,{activePage:activePage})=>setCurrentPage(activePage),total:null==querystringResults||null===(_querystringResults$s6=querystringResults[subrequestID])||void 0===_querystringResults$s6?void 0:_querystringResults$s6.total,batch_size:b_size,currentPage:currentPage,totalPages:totalPages,prevBatch:prevBatch,nextBatch:nextBatch,listingItems:listingItems,hasLoaded:hasLoaded,isFolderContentsListing:showAsFolderListing}))}return WithQuerystringResults.displayName=`WithQuerystringResults(${function getDisplayName(WrappedComponent){return WrappedComponent.displayName||WrappedComponent.name||"Component"}(WrappedComponent)})`,hoist_non_react_statics_cjs_default()(WithQuerystringResults,WrappedComponent)}((props=>{var _config$blocks,_config$blocks$blocks,_variations$filter,_config$blocks2;const{data:data={},isEditMode:isEditMode,listingItems:listingItems,totalPages:totalPages,onPaginationChange:onPaginationChange,variation:variation,currentPage:currentPage,prevBatch:prevBatch,nextBatch:nextBatch,isFolderContentsListing:isFolderContentsListing,hasLoaded:hasLoaded,id:id}=props;let ListingBodyTemplate;const variations=(null===(_config$blocks=registry.default.blocks)||void 0===_config$blocks||null===(_config$blocks$blocks=_config$blocks.blocksConfig.listing)||void 0===_config$blocks$blocks?void 0:_config$blocks$blocks.variations)||[],defaultVariation=null===(_variations$filter=variations.filter((item=>item.isDefault)))||void 0===_variations$filter?void 0:_variations$filter[0];if(data.template&&!data.variation){ListingBodyTemplate=variations.find((item=>item.id===data.template)).template}else{var _ref,_variation$template;ListingBodyTemplate=null!==(_ref=null!==(_variation$template=null==variation?void 0:variation.template)&&void 0!==_variation$template?_variation$template:null==defaultVariation?void 0:defaultVariation.template)&&void 0!==_ref?_ref:null}const listingRef=(0,react.createRef)(),NoResults=null!=variation&&variation.noResultsComponent?variation.noResultsComponent:null===(_config$blocks2=registry.default.blocks)||void 0===_config$blocks2?void 0:_config$blocks2.blocksConfig.listing.noResultsComponent,HeadlineTag=data.headlineTag||"h2";return ListingBody_jsx(react.Fragment,null,data.headline&&ListingBody_jsx(Headline,{headlineTag:HeadlineTag,id:id,listingItems:listingItems,data:data,isEditMode:isEditMode}),(null==listingItems?void 0:listingItems.length)>0?ListingBody_jsx("div",{ref:listingRef},ListingBody_jsx(ListingBodyTemplate,(0,esm_extends.c)({items:listingItems,isEditMode:isEditMode},data,variation)),totalPages>1&&ListingBody_jsx("div",{className:"pagination-wrapper"},ListingBody_jsx(Pagination.c,{activePage:currentPage,totalPages:totalPages,onPageChange:(e,{activePage:activePage})=>{!isEditMode&&listingRef.current.scrollIntoView({behavior:"smooth"}),onPaginationChange(e,{activePage:activePage})},firstItem:null,lastItem:null,prevItem:{content:ListingBody_jsx(components.GWx,{name:left_key_default(),size:"18px"}),icon:!0,"aria-disabled":!prevBatch,className:prevBatch?null:"disabled"},nextItem:{content:ListingBody_jsx(components.GWx,{name:right_key_default(),size:"18px"}),icon:!0,"aria-disabled":!nextBatch,className:nextBatch?null:"disabled"}}))):isEditMode?ListingBody_jsx("div",{className:"listing message",ref:listingRef},isFolderContentsListing&&ListingBody_jsx(message.c,{id:"No items found in this container.",defaultMessage:"No items found in this container."}),hasLoaded&&NoResults&&ListingBody_jsx(NoResults,(0,esm_extends.c)({isEditMode:isEditMode},data)),ListingBody_jsx(Dimmer.c,{active:!hasLoaded,inverted:!0},ListingBody_jsx(Loader.c,{indeterminate:!0,size:"small"},ListingBody_jsx(message.c,{id:"loading",defaultMessage:"Loading"})))):ListingBody_jsx("div",{className:"emptyListing"},hasLoaded&&NoResults&&ListingBody_jsx(NoResults,(0,esm_extends.c)({isEditMode:isEditMode},data)),ListingBody_jsx(Dimmer.c,{active:!hasLoaded,inverted:!0},ListingBody_jsx(Loader.c,{indeterminate:!0,size:"small"},ListingBody_jsx(message.c,{id:"loading",defaultMessage:"Loading"})))))}));var Listing_ListingBody=(0,injectIntl.cp)(ListingBody);ListingBody.__docgenInfo={description:"",methods:[],displayName:"ListingBody"}},"./src/components/manage/Blocks/Listing/ListingData.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),react_intl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const ListingData=props=>{const{data:data,block:block,blocksConfig:blocksConfig,onChangeBlock:onChangeBlock,navRoot:navRoot,contentType:contentType}=props,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_2__.c)(),schema=blocksConfig.listing.blockSchema((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.c)({},props),{},{intl:intl}));return __jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_1__.CQQ,{schema:schema,title:schema.title,onChangeField:(id,value)=>{onChangeBlock(block,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.c)((0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.c)({},data),{},{[id]:value}))},onChangeBlock:onChangeBlock,formData:data,blocksConfig:blocksConfig,block:block,navRoot:navRoot,contentType:contentType})};__webpack_exports__.c=ListingData,ListingData.__docgenInfo={description:"",methods:[],displayName:"ListingData",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},block:{description:"",type:{name:"string"},required:!0},onChangeBlock:{description:"",type:{name:"func"},required:!0}}}},"./src/components/manage/Blocks/Listing/View.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/helpers/index.js"),_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/components/index.js"),__jsx=react__WEBPACK_IMPORTED_MODULE_0__.createElement;const View=props=>{const{data:data,path:path,pathname:pathname,className:className,style:style}=props;return __jsx("div",{className:classnames__WEBPACK_IMPORTED_MODULE_1___default()("block listing",data.variation||"default",className),style:style},__jsx(_plone_volto_components__WEBPACK_IMPORTED_MODULE_3__.GQA,(0,_home_runner_work_volto_vlibras_volto_vlibras_node_modules_pnpm_babel_runtime_7_20_6_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_4__.c)({},props,{path:null!=path?path:pathname})))};__webpack_exports__.c=(0,_plone_volto_helpers__WEBPACK_IMPORTED_MODULE_2__.IL)(View),View.__docgenInfo={description:"",methods:[],displayName:"View",props:{data:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},properties:{description:"",type:{name:"objectOf",value:{name:"any"}},required:!0},block:{description:"",type:{name:"string"},required:!1}}}},"./src/components/manage/Blocks/Maps/Edit.jsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return Maps_Edit}});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js"),objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),Message=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/collections/Message/Message.js"),Input=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Input/Input.js"),Button=__webpack_require__("../../../node_modules/.pnpm/semantic-ui-react@2.1.5_react-dom@18.2.0_react@18.2.0/node_modules/semantic-ui-react/dist/es/elements/Button/Button.js"),dist=__webpack_require__("../../../node_modules/.pnpm/@formatjs+macro@0.2.8/node_modules/@formatjs/macro/dist/index.js"),useIntl=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/useIntl.js"),message=__webpack_require__("../../../node_modules/.pnpm/react-intl@3.8.0_react@18.2.0/node_modules/react-intl/lib/components/message.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.2.6/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),helpers=__webpack_require__("./src/helpers/index.js"),redux=__webpack_require__("../../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),components=__webpack_require__("./src/components/index.js"),clear=__webpack_require__("./src/icons/clear.svg"),clear_default=__webpack_require__.n(clear),ahead=__webpack_require__("./src/icons/ahead.svg"),ahead_default=__webpack_require__.n(ahead),block_maps_namespaceObject=__webpack_require__.p+"static/media/block-maps.aff59760.svg",__jsx=react.createElement;const messages=(0,dist.O)({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"}}),Edit=react.memo((props=>{const intl=(0,useIntl.c)(),{0:url,1:setUrl}=(0,react.useState)(""),{0:error,1:setError}=(0,react.useState)(null),{onChangeBlock:onChangeBlock,data:data,block:block,selected:selected}=props,onSubmitUrl=(0,react.useCallback)((()=>{onChangeBlock(block,(0,objectSpread2.c)((0,objectSpread2.c)({},data),{},{url:getSrc(url)}))}),[onChangeBlock,block,data,url]),onKeyDownVariantMenuForm=(0,react.useCallback)((e=>{"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),onSubmitUrl()):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation())}),[onSubmitUrl]),getSrc=embed=>{const iframe=(new DOMParser).parseFromString(embed,"text/html").getElementsByTagName("iframe");return 0===iframe.length?(setError(!0),""):(setError(!1),iframe[0].src)},placeholder=(0,react.useMemo)((()=>data.placeholder||intl.formatMessage(messages.MapsBlockInputPlaceholder)),[data,intl]);return __jsx("div",{className:classnames_default()("block maps align",{center:!Boolean(data.align)},data.align)},data.url?__jsx("div",{className:classnames_default()("maps-inner",{"full-width":"full"===data.align})},__jsx("iframe",{title:intl.formatMessage(messages.GoogleMapsEmbeddedBlock),src:data.url,className:"google-map",frameBorder:"0",allowFullScreen:!0})):__jsx(Message.c,null,__jsx("center",null,__jsx("img",{src:block_maps_namespaceObject,alt:""}),__jsx("div",{className:"toolbar-inner"},__jsx(Input.c,{onKeyDown:onKeyDownVariantMenuForm,onChange:({target:target})=>{setUrl(target.value)},placeholder:placeholder,value:url,onClick:e=>e.stopPropagation()}),url&&__jsx(Button.c.Group,null,__jsx(Button.c,{basic:!0,className:"cancel",onClick:e=>{e.stopPropagation(),setUrl("")}},__jsx(components.GWx,{name:clear_default(),size:"30px"}))),__jsx(Button.c.Group,null,__jsx(Button.c,{basic:!0,primary:!0,onClick:e=>{e.stopPropagation(),onSubmitUrl()}},__jsx(components.GWx,{name:ahead_default(),size:"30px"})))),__jsx("div",{className:"message-text"},__jsx(message.c,{id:"Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the