You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1732],{42414:function(n,e,t){var r=t(85893),o=t(67294),i=t(45697),c=t.n(i),a=t(11163);function s(n){var e=n.node,t=n.id,i=n.children,c=(n.offset,(0,a.useRouter)(),(0,o.useRef)(null)),s=e?e.name:"div";return(0,r.jsx)(s,{id:t,ref:c,style:{scrollMarginTop:"150px"},children:i})}s.propTypes={node:c().object,id:c().string.isRequired,children:c().node},e.Z=s},39915:function(n,e,t){t.d(e,{Z:function(){return m}});var r=t(7297),o=t(85893),i=(t(67294),t(87379)),c=t(45697),a=t.n(c),s=t(26349),d=t(11163),l={edit:"".concat("app.components.EditButton",".edit")},u=t(32143);function f(){var n=(0,r.Z)(["\n position: absolute;\n right: 5px;\n top: 5px;\n @media print {\n display: none;\n }\n"]);return f=function(){return n},n}var p=(0,i.default)(u.I4).withConfig({componentId:"sc-c841ec7-0"})(f()),h=function(n){var e=n.url;return"en"!==(0,d.useRouter)().locale?null:(0,o.jsx)(p,{href:e,children:(0,o.jsx)(s.Z,{index:l.edit})})};h.propTypes={url:a().string.isRequired};var m=h},23351:function(n,e,t){t.d(e,{Z:function(){return In}});var r=t(47568),o=t(14924),i=t(26042),c=t(828),a=t(7297),s=t(20414),d=t(85893),l=t(67294),u=t(87379),f=t(67814),p=t(1028),h=t(82175),m=t(1785),g=t.n(m),v=t(11163),x=t(50259),b=t(64487),w=t(59220),C=t(61590),j=t(26349),k="app.components.Feedback",y={question:"".concat(k,".question"),great:"".concat(k,".great"),why:"".concat(k,".why"),cannedResponse:{positiveOne:"".concat(k,".cannedResponse.positive.one"),positiveTwo:"".concat(k,".cannedResponse.positive.two"),positiveThree:"".concat(k,".cannedResponse.positive.three"),negativeOne:"".concat(k,".cannedResponse.negative.one"),negativeTwo:"".concat(k,".cannedResponse.negative.two"),negativeThree:"".concat(k,".cannedResponse.negative.three"),negativeFour:"".concat(k,".cannedResponse.negative.four")},textbox:"".concat(k,".textbox"),submit:"".concat(k,".submit"),cancel:"".concat(k,".cancel"),validation:"".concat(k,".validation"),thanks:"".concat(k,".thanks"),thanksWithFollowup:"".concat(k,".thanksWithFollowup"),error:"".concat(k,".error"),notice:"".concat(k,".notice"),article:"".concat(k,".article"),guide:"".concat(k,".guide"),page:"".concat(k,".page")},Z=function(){return(0,d.jsxs)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M3.75 12.6875H9.375V24.875H3.75C3.50136 24.875 3.2629 24.7762 3.08709 24.6004C2.91127 24.4246 2.8125 24.1861 2.8125 23.9375V13.625C2.8125 13.3764 2.91127 13.1379 3.08709 12.9621C3.2629 12.7863 3.50136 12.6875 3.75 12.6875V12.6875Z","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,d.jsx)("path",{d:"M9.375 12.6875L14.0625 3.3125C15.0571 3.3125 16.0109 3.70759 16.7141 4.41085C17.4174 5.11411 17.8125 6.06794 17.8125 7.0625V9.875H25.0664C25.3323 9.87434 25.5952 9.93059 25.8375 10.04C26.0798 10.1493 26.296 10.3093 26.4713 10.5091C26.6467 10.7089 26.7773 10.9439 26.8544 11.1984C26.9314 11.4528 26.9531 11.7208 26.918 11.9844L25.5117 23.2344C25.4548 23.686 25.2356 24.1015 24.8949 24.4034C24.5542 24.7052 24.1153 24.8729 23.6602 24.875H9.375","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})},I=function(){return(0,d.jsxs)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M3.75 6.125H9.375V18.3125H3.75C3.50136 18.3125 3.2629 18.2137 3.08709 18.0379C2.91127 17.8621 2.8125 17.6236 2.8125 17.375V7.0625C2.8125 6.81386 2.91127 6.5754 3.08709 6.39959C3.2629 6.22377 3.50136 6.125 3.75 6.125V6.125Z","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,d.jsx)("path",{d:"M9.375 18.3125L14.0625 27.6875C15.0571 27.6875 16.0109 27.2924 16.7141 26.5891C17.4174 25.8859 17.8125 24.9321 17.8125 23.9375V21.125H25.0664C25.3323 21.1257 25.5952 21.0694 25.8375 20.96C26.0798 20.8507 26.296 20.6907 26.4713 20.4909C26.6467 20.2911 26.7773 20.0561 26.8544 19.8016C26.9314 19.5472 26.9531 19.2792 26.918 19.0156L25.5117 7.76562C25.4548 7.31401 25.2356 6.8985 24.8949 6.59663C24.5542 6.29475 24.1153 6.12712 23.6602 6.125H9.375","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})},R=function(){return(0,d.jsx)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M26.1758 8.38672C25.9097 8.0903 25.5846 7.85275 25.2214 7.68929C24.8581 7.52583 24.4647 7.44007 24.0664 7.4375H17.75V5.5625C17.7469 4.32025 17.2521 3.12976 16.3736 2.25135C15.4952 1.37295 14.3048 0.878094 13.0625 0.875C12.8883 0.876413 12.7178 0.925134 12.5692 1.01596C12.4206 1.10678 12.2995 1.23628 12.2188 1.39062L7.78906 10.25H2.75C2.25272 10.25 1.77581 10.4475 1.42417 10.7992C1.07254 11.1508 0.875 11.6277 0.875 12.125V22.4375C0.875 22.9348 1.07254 23.4117 1.42417 23.7633C1.77581 24.115 2.25272 24.3125 2.75 24.3125H22.6602C23.3442 24.3097 24.0041 24.0586 24.517 23.606C25.03 23.1534 25.3612 22.53 25.4492 21.8516L26.8555 10.6016C26.9023 10.2054 26.866 9.80388 26.7489 9.42254C26.6319 9.0412 26.4367 8.68843 26.1758 8.38672ZM2.75 12.125H7.4375V22.4375H2.75V12.125Z"})})},_=function(){return(0,d.jsx)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M27.8555 18.3984L26.4492 7.14844C26.3612 6.47002 26.03 5.8466 25.517 5.39399C25.0041 4.94137 24.3442 4.69033 23.6602 4.6875H3.75C3.25272 4.6875 2.77581 4.88504 2.42417 5.23667C2.07254 5.58831 1.875 6.06522 1.875 6.5625V16.875C1.875 17.3723 2.07254 17.8492 2.42417 18.2008C2.77581 18.5525 3.25272 18.75 3.75 18.75H8.78906L13.2188 27.6094C13.2995 27.7637 13.4206 27.8932 13.5692 27.984C13.7178 28.0749 13.8883 28.1236 14.0625 28.125C15.3048 28.1219 16.4952 27.6271 17.3736 26.7486C18.2521 25.8702 18.7469 24.6798 18.75 23.4375V21.5625H25.0664C25.4659 21.5642 25.8611 21.4804 26.2256 21.3168C26.59 21.1532 26.9152 20.9135 27.1794 20.6138C27.4436 20.3141 27.6406 19.9614 27.7572 19.5793C27.8738 19.1972 27.9073 18.7946 27.8555 18.3984ZM8.4375 16.875H3.75V6.5625H8.4375V16.875Z"})})},S=t(99534);function T(){var n=(0,a.Z)(["\n width: 100%;\n\n @media screen and (min-width: 768px) {\n max-width: 48.5%;\n }\n\n input:checked + label {\n border: 1px solid ",";\n background: #fff7f4;\n }\n"]);return T=function(){return n},n}function E(){var n=(0,a.Z)(["\n display: flex;\n align-items: center;\n width: 100%;\n height: 3rem;\n padding: 0rem 1rem 0.2rem 1rem;\n line-height: 1;\n background: white;\n color: ",";\n border: 1px solid #b3b3b3;\n cursor: pointer;\n border-radius: 0.15rem;\n font-weight: normal;\n\n &:hover {\n border: 1px solid ",";\n }\n"]);return E=function(){return n},n}function L(){var n=(0,a.Z)(["\n opacity: 0;\n position: absolute;\n"]);return L=function(){return n},n}var O=u.default.div.withConfig({componentId:"sc-b0ffec45-0"})(T(),(function(n){return n.theme.colors.main})),H=u.default.label.withConfig({componentId:"sc-b0ffec45-1"})(E(),(function(n){return n.theme.colors.text}),(function(n){return n.theme.colors.text})),V=u.default.input.withConfig({componentId:"sc-b0ffec45-2"})(L()),A=function(n){var e=n.field,t=e.name,r=e.value,o=e.onChange,c=e.onBlur,a=n.id,s=n.label,l=(n.className,n.onClickAction),u=(0,S.Z)(n,["field","id","label","className","onClickAction"]);return(0,d.jsxs)(O,{children:[(0,d.jsx)(V,(0,i.Z)({name:t,id:a,type:"radio",checked:a===r,value:a,onChange:o,onBlur:c,className:"radio-button"},u)),(0,d.jsx)(H,{htmlFor:a,onClick:function(){return l(t,!0,!1)},children:s})]})},q=t(32143),F=t(33548),N=t(42414);function M(){var n=(0,a.Z)(["\n flex-direction: column;\n align-items: center;\n width: 100%;\n\n @media screen and (min-width: 768px) {\n max-width: 40rem;\n }\n"]);return M=function(){return n},n}function D(){var n=(0,a.Z)(["\n position: absolute;\n top: 1rem;\n right: 1rem;\n color: #acacac;\n cursor: pointer;\n\n &:hover {\n color: ",";\n }\n"]);return D=function(){return n},n}function P(){var n=(0,a.Z)(["\n cursor: pointer;\n\n &:last-child {\n position: relative;\n top: 0.4rem;\n }\n\n svg {\n width: 2rem;\n height: auto;\n max-width: none;\n\n &:hover {\n stroke: ",";\n }\n\n ","\n }\n"]);return P=function(){return n},n}function B(){var n=(0,a.Z)(["\n position: relative;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n padding: 3rem 1rem 0rem 1rem;\n margin: 2rem 1rem 0 1rem;\n border-top: 1px solid #e0e0e0;\n\n ","\n\n "," {\n display: ",";\n }\n\n "," {\n display: ",";\n }\n\n "," {\n stroke: ",";\n }\n\n @media screen and (max-width: 1024px) {\n margin-left: 0;\n width: 100%;\n }\n"]);return B=function(){return n},n}function z(){var n=(0,a.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1rem;\n width: 2rem;\n padding: 2rem 0 1rem 0;\n\n svg {\n width: 2rem;\n height: auto;\n }\n\n ","\n"]);return z=function(){return n},n}function U(){var n=(0,a.Z)(["\n color: ",";\n padding: 1rem 0;\n"]);return U=function(){return n},n}function G(){var n=(0,a.Z)(["\n margin-bottom: 2rem;\n"]);return G=function(){return n},n}function K(){var n=(0,a.Z)(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n gap: 1rem;\n padding: 1rem 0;\n flex-wrap: wrap;\n border-radius: 0.15rem;\n"]);return K=function(){return n},n}function J(){var n=(0,a.Z)(["\n width: 100%;\n height: 6rem;\n margin: 1rem 0;\n border-radius: 0.15rem;\n border: 1px solid #b3b3b3;\n padding: 0.5rem;\n"]);return J=function(){return n},n}function W(){var n=(0,a.Z)(["\n display: flex;\n justify-content: center;\n gap: 5rem;\n padding: 0.5rem 0 2rem 0;\n"]);return W=function(){return n},n}function Y(){var n=(0,a.Z)(["\n border-radius: 0.15rem;\n text-transform: none;\n font-size: 1rem;\n padding: 0rem 1.5rem 0rem 1.5rem !important;\n height: 3rem;\n"]);return Y=function(){return n},n}function X(){var n=(0,a.Z)(["\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n background: "," !important;\n\n &:hover {\n background: "," !important;\n }\n }\n"]);return X=function(){return n},n}function $(){var n=(0,a.Z)(["\n color: ",";\n background: transparent;\n border: 1px solid ",";\n\n &:hover {\n background: #b3b3b3 !important;\n }\n"]);return $=function(){return n},n}function Q(){var n=(0,a.Z)(["\n color: red;\n"]);return Q=function(){return n},n}function nn(){var n=(0,a.Z)(["\n position: absolute;\n top: 9rem;\n display: ",";\n background: #f5f5f5;\n padding: 1rem;\n text-align: center;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);\n\n &:before {\n content: '';\n position: absolute;\n top: -0.5rem;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n border-left: 1rem solid transparent;\n border-right: 1rem solid transparent;\n border-bottom: 1rem solid #f5f5f5;\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,a.Z)(["\n display: flex;\n justify-content: end;\n"]);return en=function(){return n},n}function tn(){var n=(0,a.Z)(["\n display: inline-block;\n width: 275px;\n height: auto;\n\n @media screen and (max-width: 1020px) {\n display: none;\n }\n"]);return tn=function(){return n},n}var rn,on="up",cn="down",an=u.default.div.withConfig({componentId:"sc-c72a1318-0"})(M()),sn=(0,u.default)(f.G).withConfig({componentId:"sc-c72a1318-1"})(D(),(function(n){return n.theme.colors.text})),dn=u.default.div.withConfig({componentId:"sc-c72a1318-2"})(P(),(function(n){return n.theme.colors.main}),(function(n){var e=n.active,t=n.theme;return e&&"\n &:first-child {\n position: relative;\n top: 1px;\n }\n\n fill: ".concat(t.colors.main,";\n stroke: transparent !important;\n ")})),ln=u.default.div.withConfig({componentId:"sc-c72a1318-3"})(B(),(function(n){return n.unfolded&&"\n background: #f5f5f5;\n "}),an,(function(n){return n.unfolded?"flex":"none"}),sn,(function(n){return n.unfolded?"block":"none"}),dn,(function(n){var e=n.unfolded,t=n.theme;return e?"#7a7a7a":t.colors.text})),un=u.default.div.withConfig({componentId:"sc-c72a1318-4"})(z(),(function(n){return n.disabled&&"\n ".concat(dn," {\n cursor: not-allowed;\n stroke: #7a7a7a;\n\n svg {\n &:hover {\n stroke: #7a7a7a;\n }\n ")})),fn=u.default.span.withConfig({componentId:"sc-c72a1318-5"})(U(),(function(n){return n.theme.colors.main})),pn=(0,u.default)(fn).withConfig({componentId:"sc-c72a1318-6"})(G()),hn=u.default.div.withConfig({componentId:"sc-c72a1318-7"})(K()),mn=u.default.textarea.withConfig({componentId:"sc-c72a1318-8"})(J()),gn=u.default.div.withConfig({componentId:"sc-c72a1318-9"})(W()),vn=(0,u.default)(q.ei).withConfig({componentId:"sc-c72a1318-10"})(Y()),xn=(0,u.default)(vn).withConfig({componentId:"sc-c72a1318-11"})(X(),(function(n){return n.theme.colors.main}),(function(n){return n.theme.colors.main})),bn=(0,u.default)(vn).withConfig({componentId:"sc-c72a1318-12"})($(),(function(n){return n.theme.colors.text}),(function(n){return n.theme.colors.text})),wn=u.default.div.withConfig({componentId:"sc-c72a1318-13"})(Q()),Cn=(u.default.div.withConfig({componentId:"sc-c72a1318-14"})(nn(),(function(n){return n.open?"block":"none"})),u.default.div.withConfig({componentId:"sc-c72a1318-15"})(en())),jn=u.default.div.withConfig({componentId:"sc-c72a1318-16"})(tn()),kn=(rn={},(0,o.Z)(rn,on,[y.cannedResponse.positiveOne,y.cannedResponse.positiveTwo,y.cannedResponse.positiveThree]),(0,o.Z)(rn,cn,[y.cannedResponse.negativeOne,y.cannedResponse.negativeTwo,y.cannedResponse.negativeThree,y.cannedResponse.negativeFour]),rn),yn=function(n){var e=n.onSubmitAction,t=n.disabled,o=n.children,i=n.setErrors,c=(0,x.xX)().executeRecaptcha,a=(0,C.aF)().t;(0,l.useCallback)((0,r.Z)((function(){var n;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return c?[4,c("FEEDBACK")]:[2];case 1:return n=t.sent(),(0,F.Z)("/next/recaptcha",{params:{token:n},method:"GET"}).then((function(n){(null===n||void 0===n?void 0:n.score)>.3?e():i({feedback_error:a(y.error)})})).catch((function(n){return i({feedback_error:a(y.error)})})),[2]}}))})),[c]);return(0,d.jsx)(xn,{type:"submit",onClick:e,disabled:t,children:o})},Zn=function(n){var e=n.entityType,t=void 0===e?"page":e,r=n.entityId,o=((0,l.useContext)(w.kn).isLoggedIn,(0,l.useState)(null)),i=o[0],a=o[1],s=(0,l.useState)(!1),u=s[0],f=s[1],m=(0,l.useState)(!1),x=m[0],k=m[1],S=(0,l.useState)(!1),T=S[0],E=S[1],L=(0,C.aF)().t,O=(0,v.useRouter)(),H=O.locale,V=O.asPath,q=(0,c.Z)((0,C._)("pkb_redirect_url",null),2)[1],N=(0,l.useCallback)((function(){a(i===on?null:on),f(!0)})),M=(0,l.useCallback)((function(){a(i===cn?null:cn),f(!0)})),D=(0,l.useCallback)((function(){f(!1)})),P=((0,l.useCallback)((function(){if(!0===T)return null;E(!0)})),(0,l.useCallback)((function(){if(!1===T)return null;E(!1)})),(0,l.useCallback)((function(){q("".concat(V,"#feedback_form"))})),(0,l.useCallback)((function(n){"Escape"===n.key&&f(!1)})));return(0,l.useEffect)((function(){return document.addEventListener("keydown",P),function(){document.removeEventListener("keydown",P)}}),[]),(0,l.useEffect)((function(){i&&g().dataLayer({dataLayer:{event:"feedback",vote:i}})}),[i]),(0,d.jsxs)(ln,{unfolded:!!i&&u,children:[!x&&(0,d.jsx)(sn,{icon:p.faXmark,size:"lg",onClick:D}),(0,d.jsx)(j.Z,{index:y[t]}),(0,d.jsxs)(un,{children:[(0,d.jsx)(dn,{onClick:N,active:i===on,children:i===on?(0,d.jsx)(R,{}):(0,d.jsx)(Z,{})}),(0,d.jsx)(dn,{onClick:M,active:i===cn,children:i===cn?(0,d.jsx)(_,{}):(0,d.jsx)(I,{})})]}),(0,d.jsx)(an,{children:x?(0,d.jsx)(pn,{children:i&&(0,d.jsx)(j.Z,{index:i===on?y.thanks:y.thanksWithFollowup})}):(0,d.jsx)(h.J9,{initialValues:{feedback_canned_response:"",feedback_message:""},validate:function(n){var e={};return(null===n||void 0===n?void 0:n.feedback_canned_response)||(null===n||void 0===n?void 0:n.feedback_message)||(e.feedback_error=L(y.validation)),e},onSubmit:function(n,e){var t=e.setErrors;!function(n){var e=n.body,t=n.callback,r=n.failCallback;(0,F.Z)("v1/feedback",{method:"POST",body:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(n){"function"===typeof t&&"ok"===n.status?t():r()})).catch((function(n){b.Tb(n),r()}))}({body:{lng:H,object_id:r,object_url:window.location.href,reason:n.feedback_canned_response,feedback:i===on?"1":"0",message:n.feedback_message},callback:function(){return k(!0)},failCallback:function(){return t({feedback_error:L(y.error)})}})},render:function(n){var e=n.errors,t=n.touched,r=n.submitForm,o=n.isSubmitting,c=n.setFieldTouched,a=n.setErrors;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(fn,{children:i&&(0,d.jsx)(j.Z,{index:i===on?y.great:y.why})}),(0,d.jsx)(hn,{children:kn[i||on].map((function(n,e){return(0,d.jsx)(h.gN,{component:A,name:"feedback_canned_response",id:L(n),onClickAction:c,label:L(n)})}))}),(0,d.jsx)(h.gN,{name:"feedback_message",children:function(n){var e=n.field;n.form,n.meta;return(0,d.jsx)(mn,{name:e.name,value:e.value,onChange:e.onChange,placeholder:L(y.textbox)})}}),(null===e||void 0===e?void 0:e.feedback_error)&&(0,d.jsx)(wn,{children:e.feedback_error}),(0,d.jsxs)(gn,{children:[(0,d.jsx)(yn,{onSubmitAction:r,disabled:o||!Object.keys(t).length||Object.keys(e).length,setErrors:a,children:(0,d.jsx)(j.Z,{index:y.submit})}),(0,d.jsx)(bn,{onClick:D,children:(0,d.jsx)(j.Z,{index:y.cancel})})]})]})}})})]})},In=function(n){return(0,d.jsx)(N.Z,{id:"feedback_form",children:(0,d.jsxs)(Cn,{children:[(0,d.jsx)(jn,{}),(0,d.jsx)(Zn,(0,i.Z)({},n))]})})}},38983:function(n,e,t){t.d(e,{p:function(){return g}});var r=t(7297),o=t(85893),i=t(45697),c=t.n(i),a=(t(67294),t(41664)),s=t.n(a),d=t(87379),l=t(36434),u=t(25008);function f(){var n=(0,r.Z)(["\n display: block;\n"]);return f=function(){return n},n}function p(){var n=(0,r.Z)(["\n position: relative;\n cursor: pointer;\n margin: 2px;\n border: 1px solid #eee;\n &:hover {\n border-color: #333;\n }\n /*&:hover:after {\n content: '';\n width: 100%;\n display: block;\n opacity: 0.56;\n height: 100%;\n position: absolute;\n background-color: #ddd;\n left: 0;\n top: 0;\n }*/\n"]);return p=function(){return n},n}var h=d.default.img.withConfig({componentId:"sc-3e0f63e7-0"})(f()),m=d.default.a.withConfig({componentId:"sc-3e0f63e7-1"})(p());function g(n){var e=n.translations,t=n.postType,r=n.language;return Object.keys(e).map((function(n){return n===r?null:e[n].translated?(0,o.jsx)(s(),{href:(0,l.Y4)({item:{type:t,slug:e[n].slug}}),locale:n,passHref:!0,children:(0,o.jsx)(m,{children:(0,o.jsx)(h,{src:u.Z[n],width:28,title:n.toUpperCase(),alt:n.toUpperCase()})})},n):"en"===n&&"en"!==r?(0,o.jsx)(s(),{href:(0,l.Y4)({language:n,item:{type:t,slug:e[n].slug}}),children:(0,o.jsx)(m,{children:(0,o.jsx)(h,{src:u.Z[n],width:28,title:n.toUpperCase(),alt:n.toUpperCase()})})},n):null}))}g.propTypes={language:c().string.isRequired,translations:c().object,postType:c().string},e.Z=g},75622:function(n,e,t){var r=t(7297),o=t(85893),i=t(67294);function c(){var n=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 50%;\n min-width: 20em;\n margin: auto;\n padding: 2em;\n text-align: center;\n\n svg {\n width: 8em;\n fill: #999;\n }\n\n input {\n max-width: 10em;\n }\n"]);return c=function(){return n},n}var a=t(87379).default.div.withConfig({componentId:"sc-fa3f1232-0"})(c());e.Z=function(n){var e=n.password,t=n.slug,r=n.onReload,c=n.children,s=n.enteredPassword,d=n.badPassword,l=(n.isAdmin,(0,i.useState)("")),u=l[0],f=l[1];return(0,i.useEffect)((function(){e&&window.sessionStorage.setItem("pkb_password_protected_slug",t)}),[t,e]),e&&e!==s?(0,o.jsx)("form",{autoComplete:"off",children:(0,o.jsxs)(a,{children:[(0,o.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z"})}),(0,o.jsx)("p",{children:"This content is password protected:"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("input",{autoComplete:"off",onChange:function(n){f(n.target.value)},onKeyDown:function(n){"Enter"===n.key&&(n.preventDefault(),r(u))},type:"password",value:u}),(0,o.jsx)("button",{type:"button",onClick:function(){return r(u)},children:"OK"})]}),d&&(0,o.jsx)(o.Fragment,{children:"Wrong password"})]})}):c}},19478:function(n,e,t){t.d(e,{Z:function(){return v}});var r=t(7297),o=t(85893),i=(t(67294),t(45697)),c=t.n(i),a=t(87379),s=t(30381),d=t.n(s),l="app.containers.ArticlePage",u={relevantFor:"".concat(l,".relevantFor"),lastUpdated:"".concat(l,".lastUpdated")},f=t(26349),p=t(52077);function h(){var n=(0,r.Z)(["\n font-size: 0.9em;\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n align-items: center;\n & > div {\n flex: 1;\n }\n @media screen and (max-width: 48em) {\n & > div,\n & > span {\n width: 100%;\n }\n }\n"]);return h=function(){return n},n}var m=a.default.div.withConfig({componentId:"sc-a8e322f2-0"})(h());function g(n){var e=n.tags,t=n.allTags,r=n.updated;return e&&t?(0,o.jsxs)(m,{children:[e&&e.length>0?(0,o.jsxs)("div",{children:[(0,o.jsx)(f.Z,{index:u.relevantFor}),":",(0,o.jsx)(p.nf,{style:{display:"inline-block",width:"auto",marginLeft:"6px"},children:e.map((function(n){return(0,o.jsx)(p.ZP,{tag:t[n]},n)}))})]}):null,(0,o.jsxs)("span",{style:{lineHeight:"34px",fontSize:"0.9em",color:"#999"},children:[(0,o.jsx)(f.Z,{index:u.lastUpdated})," ",d()(r).fromNow()]})]}):null}g.propTypes={tags:c().arrayOf(c().string),allTags:c().object,updated:c().string};var v=g},97742:function(n,e,t){t.d(e,{Z:function(){return j}});var r=t(51438),o=t(52951),i=t(88029),c=t(7297),a=t(82337),s=t(85893),d=t(67294),l=t(45697),u=t.n(l),f=t(87379),p=t(11163),h=t.n(p),m=t(26349),g="app.components.ErrorBoundary",v={main:"".concat(g,".main"),secondary:"".concat(g,".secondary")},x=t(33548);function b(){var n=(0,c.Z)(["\n border: 1px solid rgba(0, 0, 0, 0.1);\n background-color: #f7f7f7;\n padding: 1em;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n text-align: center;\n"]);return b=function(){return n},n}var w=f.default.div.withConfig({componentId:"sc-5341a511-0"})(b()),C=function(n){(0,i.Z)(t,n);var e=(0,a.Z)(t);function t(n){var o;return(0,r.Z)(this,t),(o=e.call(this,n)).state={hasError:!1},o}return(0,o.Z)(t,[{key:"componentDidCatch",value:function(n,e){var t={url:h().pathname,title:n.message,stacktrace:e.componentStack};(0,x.Z)("v1/errors",{method:"POST",body:JSON.stringify(t)}).then((function(){return console.log("ERROR LOGGED")}))}},{key:"render",value:function(){return this.state.hasError?(0,s.jsxs)(w,{children:[(0,s.jsx)("h3",{children:(0,s.jsx)(m.Z,{index:v.main})}),(0,s.jsx)(m.Z,{index:v.secondary})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(n){return{hasError:!0}}}]),t}(d.Component);C.propTypes={children:u().node,history:u().object,location:u().object};var j=C},64802:function(n,e,t){t.d(e,{Z:function(){return Zn}});var r=t(26042),o=t(69396),i=t(828),c=t(7297),a=t(85893),s=t(67294),d=t(45697),l=t.n(d),u=t(87379),f=t(11163),p=t(64487),h=t(6235),m=t(30381),g=t.n(m),v=t(26839),x=t(67814),b=t(26349),w=t(8293),C=t(91022),j=t(25935),k="app.components.AddComment",y={addComment:"".concat(k,".addComment"),addReply:"".concat(k,".addReply"),submit:"".concat(k,".submit"),notLoggedIn:"".concat(k,".notLoggedIn")},Z=t(33548),I=t(59220),R=t(94586),_=t(41347);function S(){var n=(0,c.Z)([""]);return S=function(){return n},n}function T(){var n=(0,c.Z)(["\n color: ",";\n cursor: pointer;\n margin-left: 8px;\n\n svg {\n height: 1em;\n }\n"]);return T=function(){return n},n}var E=(0,u.default)(w.ei).withConfig({componentId:"sc-a26ad366-0"})(S()),L=u.default.span.withConfig({componentId:"sc-a26ad366-1"})(T(),(0,R.E)("main"));function O(n){var e=n.itemId,t=n.parentId,r=void 0===t?0:t,o=n.callback,i=n.reply,c=n.removeReply,d=void 0===c?function(){}:c,l=(0,s.useContext)(I.kn),u=l.isLoggedIn,f=l.currentUser,m=(0,s.useState)(""),g=m[0],v=m[1],w=(0,s.useState)(!1),k=w[0],R=w[1],S=(0,s.useState)(!1),T=S[0],O=S[1],H=(0,s.useState)(!1),V=H[0],A=H[1];return u?T?(0,a.jsx)(_.Z,{}):(0,a.jsxs)("div",{style:{marginBottom:"2em",overflow:"hidden"},children:[r?(0,a.jsxs)("span",{style:{verticalAlign:"middle"},children:[(0,a.jsx)(b.Z,{index:y.addReply})," ",i,(0,a.jsx)(L,{children:(0,a.jsx)(x.G,{icon:C.NB,onClick:d})})]}):(0,a.jsx)(b.Z,{index:y.addComment}),V&&(0,a.jsx)("div",{style:{color:"red"},children:V}),(0,a.jsx)(h.M,{apiKey:"lto7s425j3c0cauyuxpoxhlnuq1gl17t3o9p1ogncikopx6o",value:g,init:{menubar:!1,force_br_newlines:!1,force_p_newlines:!0,forced_root_block:"",entity_encoding:"raw",plugins:"autolink link autoresize",toolbar:"bold italic link | removeformat"},onEditorChange:function(n,e){return v(n)}}),(0,a.jsx)(E,{disabled:g.length<3,onClick:function(){O(!0);var n={post:e,parent:r,content:g,author:f.userid};(0,Z.Z)("wp/v2/comments",{params:{},body:JSON.stringify(n),method:"POST"}).then((function(n){o&&(o(!0,n.id),d()),R(!0),v(""),O(!1),A(!1)})).catch((function(n){p.Tb(n),O(!1),A((0,j.ZP)((null===n||void 0===n?void 0:n.message)||"Error occured while submitting comment. Please try again."))}))},style:{float:"right",marginTop:"5px"},success:k,children:(0,a.jsx)(b.Z,{index:y.submit})})]}):(0,a.jsx)("p",{style:{textAlign:"center",fontStyle:"italic"},children:(0,a.jsx)(b.Z,{index:y.notLoggedIn,components:{a:(0,a.jsx)("a",{href:"/wp-login.php"})}})})}O.propTypes={itemId:l().number.isRequired,parentId:l().number,callback:l().func};var H=O,V=t(17443),A=t(61590);function q(){var n=(0,c.Z)(["\n position: relative;\n cursor: pointer;\n display: inline-block;\n margin-left: 1em;\n padding: 0.5em;\n z-index: 9;\n\n &:hover {\n color: ",";\n }\n\n svg {\n height: 1em;\n }\n"]);return q=function(){return n},n}function F(){var n=(0,c.Z)(["\n border: 1px solid ",";\n background-color: white;\n position: absolute;\n width: auto;\n top: 100%;\n white-space: nowrap;\n list-style: none;\n padding: 0;\n margin: 0;\n text-align: left;\n right: -10px;\n z-index: 999;\n"]);return F=function(){return n},n}function N(){var n=(0,c.Z)(["\n border-top: 1px solid ",";\n padding: 0.5em 1em;\n &:hover {\n background-color: #fefefe;\n }\n &:first-of-type {\n border-top: none;\n }\n"]);return N=function(){return n},n}var M=u.default.div.withConfig({componentId:"sc-a9de7899-0"})(q(),(0,R.E)("main")),D=u.default.ul.withConfig({componentId:"sc-a9de7899-1"})(F(),(0,R.E)("grey")),P=u.default.li.withConfig({componentId:"sc-a9de7899-2"})(N(),(0,R.E)("grey"));function B(n){var e=n.items,t=n.open,r=void 0!==t&&t,o=(0,i.Z)((0,A.dd)(r),3),c=o[0],d=o[1],l=o[2],u=(0,s.useRef)(null);return(0,A.O3)(u,l),(0,a.jsxs)(M,{onClick:c?l:d,ref:u,children:[(0,a.jsx)(x.G,{icon:V.iV}),c&&(0,a.jsx)(D,{children:e.map((function(n){return(0,a.jsx)(P,{onClick:n.onClick,children:n.label})}))})]})}B.propTypes={items:l().arrayOf(l().object),open:l().bool};var z=B,U=t(40872),G=t(93633),K=t(29525);function J(n){var e=n.open,t=n.children,r=n.onSuccess,o=n.onClose,i=n.yesDisabled,c=void 0!==i&&i,s=n.style;return(0,a.jsx)(G.Z,{open:e,onClose:o,style:s,children:(0,a.jsxs)(K.Z,{style:{padding:"0.5em 1em",textAlign:"center"},children:[t,(0,a.jsxs)("div",{children:[(0,a.jsx)(w.ei,{onClick:r,disabled:c,children:"Yes"}),"\xa0",(0,a.jsx)(w.VM,{onClick:o,children:"No"})]})]})})}J.propTypes={open:l().bool.isRequired,onSuccess:l().func.isRequired,onClose:l().func.isRequired,children:l().node,yesDisabled:l().bool};var W=J;function Y(n){var e=(0,U.Z)({},n);return(0,a.jsxs)(W,(0,o.Z)((0,r.Z)({},e),{children:[(0,a.jsx)("p",{children:"Are you sure you want to delete this item?"}),(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:"This action can't be undone!"})})]}))}Y.propTypes={open:l().bool.isRequired,onSuccess:l().func.isRequired,onClose:l().func.isRequired};var X=Y,$=t(36434);function Q(){var n=(0,c.Z)(["\n border: 1px solid\n ",";\n background-color: white;\n margin-bottom: 1em;\n ","\n\n ","\n\n @keyframes highlight {\n from {\n background: #fff;\n }\n\n 30% {\n background: #ffc88c;\n }\n\n to {\n background: #fff;\n }\n }\n"]);return Q=function(){return n},n}function nn(){var n=(0,c.Z)(["\n text-align: right;\n a {\n margin-right: 5px;\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,c.Z)(["\n padding: 1em;\n font-size: 0.9em;\n display: flex;\n width: 100%;\n justify-content: space-between;\n border-top: 1px solid ",";\n\n svg {\n height: 1em;\n }\n"]);return en=function(){return n},n}function tn(){var n=(0,c.Z)(["\n padding: 1em;\n"]);return tn=function(){return n},n}function rn(){var n=(0,c.Z)(["\n display: flex;\n align-items: center;\n font-weight: bold;\n color: #fa6831;\n font-size: 0.9rem;\n gap: 0.5rem;\n\n svg {\n font-size: 1rem;\n }\n"]);return rn=function(){return n},n}function on(){var n=(0,c.Z)(["\n vertical-align: middle;\n"]);return on=function(){return n},n}var cn=u.default.article.withConfig({componentId:"sc-e9aa161d-0"})(Q(),(function(n){return n.highlight?"#e05d2d":(0,R.E)("lightGrey")}),(function(n){return n.deleted&&"\n background-color: #eee;\n border-color: #FF9999;\n "}),(function(n){return n.highlight&&"\n animation-duration: 2s;\n animation-fill-mode: forwards;\n animation-name: highlight; \n "})),an=u.default.aside.withConfig({componentId:"sc-e9aa161d-1"})(nn()),sn=u.default.header.withConfig({componentId:"sc-e9aa161d-2"})(en(),(0,R.E)("lightGrey")),dn=u.default.main.withConfig({componentId:"sc-e9aa161d-3"})(tn()),ln=u.default.div.withConfig({componentId:"sc-e9aa161d-4"})(rn()),un=u.default.div.withConfig({componentId:"sc-e9aa161d-5"})(on()),fn=function(n){var e=n.isAdmin,t=n.authorId,r=n.user;return"employee"===n.role?(0,a.jsxs)(ln,{title:"Prusa Research team member",children:[(0,a.jsx)("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7 0L13.9282 4V12L7 16L0.0717969 12V4L7 0Z",fill:"#FA6831"})}),(0,a.jsx)(un,{children:r})]}):e?(0,a.jsx)("a",{href:"/wp-admin/user-edit.php?user_id=".concat(t),children:r}):(0,a.jsx)("strong",{children:r})},pn="50px";function hn(n){var e=n.id,t=n.post_id,c=n.deleted,d=n.content,l=n.user,u=n.user_id,f=n.role,p=n.currentUserId,m=n.date,C=n.replies,j=n.callback,k=n.deleteCallback,Z=n.updateCallback,R=n.setReply,_=n.reply,S=n.forwardRef,T=n.addedRef,E=n.newCommentId,L=(0,s.useContext)(I.kn),O=L.isLoggedIn,V=L.isAdmin,q=(0,s.useState)(!1),F=q[0],N=q[1],M=(0,i.Z)((0,A.dd)(!1),3),D=M[0],P=M[1],B=M[2],U=(0,s.useState)(""),G=U[0],K=U[1],J=(0,i.Z)((0,A.dd)(!1),3),W=J[0],Y=J[1],Q=J[2],nn=[];return V&&k&&nn.push({label:"Delete",onClick:function(n){n.preventDefault(),Y()}}),(u===p||V)&&nn.push({label:"Edit",onClick:function(n){n.preventDefault(),P(),K(d)}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(cn,{highlight:e===E,deleted:c,id:"comment-".concat(e),ref:S,children:[(0,a.jsx)(dn,{children:D?(0,a.jsx)(h.M,{apiKey:"lto7s425j3c0cauyuxpoxhlnuq1gl17t3o9p1ogncikopx6o",initialValue:d,init:{menubar:!1,forced_root_block:"",entity_encoding:"raw",plugins:"autolink link autoresize",toolbar:"bold italic link | removeformat"},onChange:function(n){var e=n.target.getContent();K(e)}}):(0,$.Hl)(d.replace(/<\/p>(\n|\r)<p>/g,"</p><p>").replace(/\n|\r/g,"<br />"))}),(0,a.jsxs)(sn,{children:[(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,a.jsx)(fn,{isAdmin:V,authorId:u,user:l,role:f}),(0,a.jsx)(w.h_,{children:g()(m).fromNow()})]}),D&&(0,a.jsxs)(w.cO,{children:[(0,a.jsx)(x.G,{icon:v.NB,style:{fontSize:"1.5em",cursor:"pointer"},onClick:B}),(0,a.jsx)(w.ei,{onClick:function(){return Z(e,G,B)},style:{float:"right",marginTop:"5px"},children:(0,a.jsx)(b.Z,{index:y.submit})})]}),O&&!D&&(0,a.jsxs)(an,{children:[(0,a.jsx)("a",{href:"#",onClick:function(n){n.preventDefault(),N(!0),R(l)},children:"Reply"}),nn.length>0&&(0,a.jsx)(z,{items:nn})]})]})]}),F&&(0,a.jsx)("div",{style:{paddingLeft:pn},children:(0,a.jsx)(H,{itemId:t,parentId:e,callback:j,reply:_,removeReply:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n&&n.preventDefault(),N(!1),R(null)}})}),(0,a.jsx)("div",{style:{paddingLeft:pn},children:C&&C.map((function(n){return(0,s.createElement)(hn,(0,o.Z)((0,r.Z)({},n),{forwardRef:n.id===E?T:null,newCommentId:E,addedRef:T,key:n.id,callback:j,isLoggedIn:O,isAdmin:V,deleteCallback:k,updateCallback:Z,setReply:R,currentUserId:p,reply:_}))}))}),(0,a.jsx)(X,{onClose:Q,open:W,onSuccess:function(){k(e),Q()}})]})}hn.propTypes={content:l().string.isRequired,user:l().string.isRequired,date:l().string.isRequired,id:l().number.isRequired,post_id:l().number.isRequired,user_id:l().number.isRequired,currentUserId:l().number,deleted:l().bool,replies:l().array,callback:l().func,deleteCallback:l().func.isRequired,updateCallback:l().func.isRequired,setReply:l().func,reply:l().number};var mn=hn,gn=t(78147),vn="app.containers.CommentSection",xn={header:"".concat(vn,".header"),count:"".concat(vn,".count")};function bn(){var n=(0,c.Z)(["\n padding-block: 0.5rem;\n text-align: center;\n"]);return bn=function(){return n},n}function wn(){var n=(0,c.Z)(["\n background-color: #f5f5f5;\n padding: 1em;\n margin-bottom: 2em;\n @media print {\n display: none;\n }\n"]);return wn=function(){return n},n}var Cn=u.default.div.withConfig({componentId:"sc-6ca3e67e-0"})(bn()),jn=u.default.div.withConfig({componentId:"sc-6ca3e67e-1"})(wn()),kn=function(n){var e=n.onVisible,t=void 0===e?function(){}:e,r=n.children,o=(0,s.useRef)(null);return(0,s.useEffect)((function(){var n=new IntersectionObserver((function(n){(0,i.Z)(n,1)[0].isIntersecting&&t()}),{rootMargin:"0px 0px 100px 0px"});return o.current&&n.observe(o.current),function(){o.current&&n.unobserve(o.current)}}),[o.current]),(0,a.jsx)("div",{ref:o,children:r})};function yn(n){var e=n.open,t=void 0!==e&&e,i=n.parentId,c=n.commentsOpen,d=n.setCommentCount,l=void 0===d?function(){}:d,u=(n.visibleItems,(0,s.useContext)(I.kn)),h=u.isLoggedIn,m=u.currentUser,g=u.roles,v=(0,s.useState)(!1),x=v[0],C=v[1],j=(0,s.useState)(!0),k=j[0],y=j[1],R=(0,s.useState)([]),S=R[0],T=R[1],E=(0,s.useState)(!0),L=E[0],O=E[1],V=(0,s.useState)(!1),q=V[0],F=V[1],N=(0,s.useState)(0),M=N[0],D=N[1],P=(0,s.useState)(null),B=P[0],z=P[1],U=(0,s.useState)(0),G=U[0],K=U[1],J=(0,s.useState)(null),W=J[0],Y=J[1],X=(0,s.useRef)(null),$=(0,s.useRef)(null),Q=(0,A.kx)(g).isInAnyRole,nn=(0,f.useRouter)().locale,en=Q([gn.K$.ADMIN,gn.K$.AUTHOR,gn.K$.COMMENT_ADMIN]),tn=(0,s.useCallback)((function(){var n=arguments.length>1?arguments[1]:void 0;y(!0),(0,Z.Z)("v1/comments",{params:{lng:nn,parent:i,status:q&&en?"trash":"approve",per_page:L?3:3+10*G,page:1}}).then((function(e){var t=e.data,r=e.info;D(r.total_items),O(!1),y(!1),T(t),n&&(Y(n),setTimeout((function(){var e=document.querySelector("#comment-".concat(n));if(e){var t=e.getBoundingClientRect().top+window.scrollY-300;window.scrollTo({top:t,left:0,behavior:"smooth"})}}),100))})).catch((function(n){y(!1),p.Tb(n)}))}),[i,q,G,L,en]),rn=(0,s.useCallback)((function(){C(!0)}),[tn]),on=(0,s.useCallback)((function(n,e,t){var r={content:e};(0,Z.Z)("wp/v2/comments/".concat(n),{params:{},body:JSON.stringify(r),method:"POST"}).then((function(){tn(!0,n),t()})).catch((function(n){p.Tb(n)}))}),[]),cn=(0,s.useCallback)((function(n){(0,Z.Z)("wp/v2/comments/".concat(n),{body:JSON.stringify({status:"trash"}),method:"POST"}).then((function(){T(S.filter((function(e){return e.id!==n}))),tn()}))}),[S]),an=(0,s.useCallback)((function(){K(G+1)}),[G]);return(0,s.useEffect)((function(){x&&(y(!0),tn())}),[x,t,q,i,nn]),(0,s.useEffect)((function(){Number.isInteger(M)&&l(M)}),[M]),(0,s.useEffect)((function(){t&&tn()}),[G]),(0,s.useEffect)((function(){q&&tn()}),[q]),c&&t?(0,a.jsx)("div",{ref:X,children:(0,a.jsx)(kn,{onVisible:rn,children:k&&0===(null===S||void 0===S?void 0:S.length)?(0,a.jsx)(_.Z,{}):(0,a.jsxs)(jn,{id:"comment-section",children:[en&&(0,a.jsx)("div",{style:{textAlign:"right",marginBottom:"10px"},children:(0,a.jsxs)(w.zx,{href:"#",onClick:function(){return F(!q)},children:["View ",q?"active":"deleted"]})}),S&&S.map((function(n){return(0,s.createElement)(mn,(0,o.Z)((0,r.Z)({},n),{key:n.id,forwardRef:n.id===W?$:null,newCommentId:W,addedRef:$,callback:tn,isLoggedIn:h,isAdmin:en,deleteCallback:cn,updateCallback:on,deleted:q,setReply:z,reply:B,currentUserId:m&&m.userid}))})),!!S.length&&M>S.length&&(0,a.jsxs)(Cn,{children:[(0,a.jsx)("p",{children:(0,a.jsx)(b.Z,{index:xn.count,values:{count:S.length,total:M}})}),(0,a.jsx)(w.ei,{onClick:an,children:"Load more comments"})]}),!q&&!B&&(0,a.jsx)(H,{itemId:i,callback:tn})]})})}):null}yn.propTypes={open:l().bool,parentId:l().number.isRequired,commentsOpen:l().bool,currentUser:l().object,roles:l().arrayOf(l().string)};var Zn=yn},46907:function(n,e,t){t.d(e,{rs:function(){return x},ZP:function(){return b}});var r=t(7297),o=t(85893),i=t(67294),c=t(87379),a=t(64487),s="app.containers.NotFoundPage",d={header:"".concat(s,".header"),main:"".concat(s,".main"),backToHomepage:"".concat(s,".backToHomepage")},l=t(26349),u=t(32143),f=t(41347);function p(){var n=(0,r.Z)(["\n min-height: 70vh;\n display: flex;\n padding-bottom: 3rem;\n flex-direction: column;\n align-items: center;\n text-align: center;\n justify-content: center;\n @media screen and (max-width: 48em) {\n min-height: calc(100vh - 286px);\n }\n"]);return p=function(){return n},n}function h(){var n=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 80vh;\n"]);return h=function(){return n},n}var m=c.default.div.withConfig({componentId:"sc-e85abdc8-0"})(p()),g=c.default.div.withConfig({componentId:"sc-e85abdc8-1"})(h());function v(n){var e=n.userData;n.redirectAllowed;return(0,i.useEffect)((function(){a.eN({message:"Error 404 page",level:"error",tags:{statusCode:"404",user_email:(null===e||void 0===e?void 0:e.email)||"not logged in"}})}),[]),(0,o.jsx)("div",{children:(0,o.jsxs)(m,{children:[(0,o.jsx)("h1",{style:{fontSize:"5em",marginBottom:"0"},children:(0,o.jsx)(l.Z,{index:d.header})}),(0,o.jsx)(l.Z,{index:d.main}),(0,o.jsx)("br",{}),(0,o.jsx)(u.ZP,{variant:"big",href:"/",children:(0,o.jsx)(l.Z,{index:d.backToHomepage})})]})},"notFound")}var x=function(n){var e=n.globalState,t=e.isPreview,r=e.isLoggedIn,i=e.userData;return t||window.location.href.indexOf("preview=true")>-1?r?(0,o.jsx)(f.Z,{occupySpace:!0}):(0,o.jsx)(g,{children:(0,o.jsx)("h1",{children:"Not authorised."})}):(0,o.jsx)(v,{userData:i})},b=v}}]);
|
|
//# sourceMappingURL=1732-e85b6af770d752e8.js.map
|