mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
2 lines
1.6 KiB
JavaScript
Executable File
2 lines
1.6 KiB
JavaScript
Executable File
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[8552],{75328:(e,n,l)=>{l.r(n),l.d(n,{FeedbackBar:()=>w});var a=l(52542),r=l(30758),s=l(97500),o=l.n(s),t=l(95079),i=l(94079),c=l(2648),u=l(64399),d=l(92107);const f="WuHfzknUICVJtLZJU_30",v="FL2TkYu6_lxeXmfUTwx4",k="Q63kq6vgG3LPQAi93zXP",m="BLcZj2U0cGry7c3uk5qQ",C="wCeOtCjqvDK0rflTnpuK",b="dz7vC5O_M9gcvqxCqOnc",g="zqGag8YfKcWwtZEqvghN";var p=l(86070),w=function(e){var n=e.allowHTML,l=e.isError,s=e.message,w=e.onClose,x=e.isNotice,h=e.isNotSupported,j=e.isCookie,y=e.render,L=void 0===y?null:y,q=L?L():s;(0,r.useEffect)((function(){var e=function(e){"Escape"===e.key&&w()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[w]);var A=(0,r.useCallback)((function(e){e.preventDefault(),window.location.reload()}),[]),N=(0,r.useMemo)((function(){return{__html:null!=s?s:""}}),[s]);return(0,p.jsx)(t.A,{children:(null!==s||null!==L)&&(0,p.jsx)(i.A,{classNames:"feedbackBar-animation",timeout:{enter:250,exit:200},children:(0,p.jsxs)("div",{className:o()(f,(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},v,l),m,x),k,h),C,j)),"aria-live":"polite",children:[(0,p.jsxs)("div",{className:b,children:[n?(0,p.jsx)("span",{dangerouslySetInnerHTML:N}):q," ",l&&(0,p.jsx)("a",{draggable:!1,className:g,"aria-label":d.Ru.get("error.reload"),onClick:A,children:d.Ru.get("error.reload")})]}),(0,p.jsx)(c.H,{size:"small",iconOnly:u.M,onClick:w,"aria-label":"Close",semanticColor:"textBase"})]})})})}}}]);
|
|
//# sourceMappingURL=dwp-feedback-bar.js.map
|