1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1353d868-a2af-4c6a-836d-3be0f2eca326",e._sentryDebugIdIdentifier="sentry-dbid-1353d868-a2af-4c6a-836d-3be0f2eca326")}catch(e1){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9714],{63050:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/[projectId]/news/[articleId]",function(){return __webpack_require__(17438)}])},64175:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return Container}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(51857),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__),_Layout_Reducer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(72140);let Container=param=>{let{children,paddingTop="30",paddingBottom="0",xOverlow=!1}=param;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default(),{id:"3df65d35a7fe9c45",dynamic:[paddingTop,paddingBottom,xOverlow?"auto":"visible"],children:".Container.__jsx-style-dynamic-selector{padding-top:".concat(paddingTop,"px;padding-bottom:").concat(paddingBottom,"px;overflow-x:").concat(xOverlow?"auto":"visible",";-ms-overflow-style:none}.Container.__jsx-style-dynamic-selector::-webkit-scrollbar{display:none}")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default().dynamic([["3df65d35a7fe9c45",[paddingTop,paddingBottom,xOverlow?"auto":"visible"]]])+" Container",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_Layout_Reducer__WEBPACK_IMPORTED_MODULE_2__.j,{children:children})})]})}},30409:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return DangerousActionPopup}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(51857),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),react_intl__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(44012),_components_Action__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(56334),_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(66167),_components_WhitePopup__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(77126),_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(53148),_hooks_useLoading__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4451);let DangerousActionPopup=param=>{let{onAction,onClose}=param,{wrap,loading,error}=(0,_hooks_useLoading__WEBPACK_IMPORTED_MODULE_6__.r)(),handleAction=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(()=>{loading||wrap(Promise.resolve().then(()=>onAction()).then(()=>onClose()))},[onAction,loading,wrap,onClose]);return(0,_helpers_canUseDOM__WEBPACK_IMPORTED_MODULE_7__.N)()?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_WhitePopup__WEBPACK_IMPORTED_MODULE_5__.k,{onClose:onClose,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_WhitePopup__WEBPACK_IMPORTED_MODULE_5__.h,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_8__.Z,{defaultMessage:"Are you sure?",id:"4ZpIjs",description:"[header] Remove popup"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"jsx-4ccfa787a8e991bb content",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"jsx-4ccfa787a8e991bb",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_8__.Z,{defaultMessage:"This action cannot be undone.",id:"+xG6bf",description:"Dangerous action popup"})})}),error?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"jsx-4ccfa787a8e991bb error",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ErrorMessage__WEBPACK_IMPORTED_MODULE_4__.Bc,{error:error})}):null,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"jsx-4ccfa787a8e991bb controls",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"jsx-4ccfa787a8e991bb control",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Action__WEBPACK_IMPORTED_MODULE_3__.a,{tag:"button",size:"small",theme:"light",onClick:onClose,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_8__.Z,{defaultMessage:"Cancel",id:"MAM27y",description:"[button] Dangerous action popup"})})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"jsx-4ccfa787a8e991bb control",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Action__WEBPACK_IMPORTED_MODULE_3__.a,{tag:"button",size:"small",onClick:handleAction,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_8__.Z,{defaultMessage:"Confirm",id:"DC8zNY",description:"[button] Dangerous action popup"})})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default(),{id:"4ccfa787a8e991bb",children:".content.jsx-4ccfa787a8e991bb{font-size:1.6rem}p.jsx-4ccfa787a8e991bb{font-size:1.6rem;line-height:1.4;margin:3rem 0}
1.error.jsx-4ccfa787a8e991bb{color:var(--color-red)}.controls.jsx-4ccfa787a8e991bb{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:-.5rem}.control.jsx-4ccfa787a8e991bb{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;margin:.5rem}@media(max-width:470px){.controls.jsx-4ccfa787a8e991bb{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}"})]})}):null}},31226:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return NewsForm}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),react_intl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(54490),react_intl__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(86896),_components_Form_BackendForm__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15661);let messages=(0,react_intl__WEBPACK_IMPORTED_MODULE_3__.vU)({name:{defaultMessage:"Name",id:"u36wNx",description:"[label] News article form"},publicationDate:{defaultMessage:"Publication Date",id:"guO0sJ",description:"[label] News article form"},content:{defaultMessage:"Content",id:"nY+SOU",description:"[label] News article form"}}),NewsForm=param=>{let{article,onSubmit}=param,intl=(0,react_intl__WEBPACK_IMPORTED_MODULE_4__.Z)(),fields=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{var ref,ref1;return[{name:"name",type:"text",title:intl.formatMessage(messages.name),is_required:!0,value:null==article?void 0:article.name},{name:"publication_date",type:"datetime",title:intl.formatMessage(messages.publicationDate),is_required:!0,value:null==article?void 0:article.publication_date},{name:"content",type:"html",title:intl.formatMessage(messages.content),value:null==article?void 0:null===(ref=article.content)||void 0===ref?void 0:null===(ref1=ref[0])||void 0===ref1?void 0:ref1.content}]},[article,intl]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Form_BackendForm__WEBPACK_IMPORTED_MODULE_2__.b,{fields:fields,onSubmit:onSubmit})}},67197:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{a:function(){return RemovePopup}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),_hooks_useApi__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(38235),_DangerousActionPopup__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(30409);let RemovePopup=param=>{let{endpoint,onClose,onConfirm}=param,api=(0,_hooks_useApi__WEBPACK_IMPORTED_MODULE_2__.h)(),handleRemove=(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>api.post(endpoint).then(()=>{onConfirm()}),[endpoint,api,onConfirm]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DangerousActionPopup__WEBPACK_IMPORTED_MODULE_3__.v,{onAction:handleRemove,onClose:onClose})}},17438:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{__N_SSP:function(){return __N_SSP},default:function(){return ArticlePage}});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85893),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(51857),styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1__),next_router__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11163),next_seo__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2962),react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(67294),react_intl__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(44012),react_intl__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(54490),_components_Action__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(56334),_components_Container__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(64175),_components_Layout_ContentWithSidebar__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(37494),_components_Layout_Header__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80170),_components_Layout_Reducer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(72140),_components_Markup__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(39046),_components_News_Form__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(31226),_components_Projects_Project_ProjectHeader__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(10862),_components_Projects_ProjectsMenu__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(76495),_components_RemovePopup__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(67197),_components_Sidebar__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(71324),_c
1omponents_Sidebar_MainMenu__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61887),_hooks_useAdminMode__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(26366),_hooks_useApi__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(38235),_hooks_useToggle__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(3342),__N_SSP=!0;function ArticlePage(props){let{newsArticle,news}=props,api=(0,_hooks_useApi__WEBPACK_IMPORTED_MODULE_18__.h)(),router=(0,next_router__WEBPACK_IMPORTED_MODULE_2__.useRouter)(),adminMode=(0,_hooks_useAdminMode__WEBPACK_IMPORTED_MODULE_17__.p_)(),[project,setProject]=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(props.project),[showRemovePopup,toggleRemovePopup]=(0,_hooks_useToggle__WEBPACK_IMPORTED_MODULE_19__.O)(!1);(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(()=>{setProject(project)},[project]);let handleSubmit=(0,react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(async request=>{let response=await api.post("projects/news/".concat(newsArticle.id,"/edit/"),request);await router.push("/projects/".concat(project.slug||project.id,"/news/").concat(response.data.news.id))},[api,newsArticle.id,router,project.slug,project.id]),handleRemove=(0,react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(()=>router.push("/projects/".concat(project.slug||project.id,"/news")),[project,router]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_Layout_ContentWithSidebar__WEBPACK_IMPORTED_MODULE_7__.uX,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(next_seo__WEBPACK_IMPORTED_MODULE_3__.PB,{title:project.title}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Layout_ContentWithSidebar__WEBPACK_IMPORTED_MODULE_7__._G,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_Sidebar__WEBPACK_IMPORTED_MODULE_15__.Y,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Sidebar_MainMenu__WEBPACK_IMPORTED_MODULE_16__.l,{expand:"projects"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Projects_ProjectsMenu__WEBPACK_IMPORTED_MODULE_13__.k,{project:project,slug:"news",news:news})]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_Layout_ContentWithSidebar__WEBPACK_IMPORTED_MODULE_7__.OO,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Projects_Project_ProjectHeader__WEBPACK_IMPORTED_MODULE_12__.T,{project:project,slug:"news",updateProject:setProject,news:news}),project.is_editable&&adminMode.enabled?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_Layout_Reducer__WEBPACK_IMPORTED_MODULE_9__.j,{children:[showRemovePopup?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_RemovePopup__WEBPACK_IMPORTED_MODULE_14__.a,{endpoint:"projects/news/".concat(newsArticle.id,"/remove/"),onClose:toggleRemovePopup,onConfirm:handleRemove}):null,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_News_Form__WEBPACK_IMPORTED_MODULE_11__.G,{onSubmit:handleSubmit,article:newsArticle})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Container__WEBPACK_IMPORTED_MODULE_6__.W,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Action__WEBPACK_IMPORTED_MODULE_5__.a,{theme:"light",tag:"button",onClick:toggleRemovePopup,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_20__.Z,{defaultMessage:"Remove article",id:"Y073KI",description:"[caption] Button on project page"})})})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components_Layout_Header__WEBPACK_IMPORTED_MODULE_8__.h4,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("time",{dateTime:newsArticle.publication_date,className:"jsx-17fec228284e40a2",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_intl__WEBPACK_IMPORTED_MODULE_21__.Ji,{value:newsArticle.publication_date,month:"2-digit",day:"2-digit",year:"2-digit"})}),newsArticle.name]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Layout_Reducer__WEBPACK_IMPORTED_MODULE_9__.j,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_Markup__WEBPACK_IMPORTED_MODULE_10__.L,{items:newsArticle.content,fontSize:"1.8rem"})})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(styled_jsx_style__WEBPACK_IMPORTED_MODULE_1___default(),{id:"17fec228284e40a2",children:"time.jsx-17fec228284e40a2{display:block;color:var(--color-notice);font-size:1.4rem;font-weight:normal;margin-bottom:.3em}"})]})}}},function(__webpack_require__){__webpack_require__.O(0,[1153,5551,1601,6337,3245,7109,4978,4232,4469,1456,9046,8222,5661,293,9774,2888,179],function(){return __webpack_require__(__webpack_require__.s=63050)}),_N_E=__webpack_require__.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.