Files
owncast/static/web/_next/static/chunks/5111.b5f8104d67927734.js
2023-05-18 22:28:31 +00:00

1 line
1.5 KiB
JavaScript
Vendored

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5111],{85111:function(e,t,o){"use strict";o.r(t),o.d(t,{NotifyReminderPopup:function(){return l}});var n=o(85893),r=o(55241),i=o(67294),s=o(5152),p=o.n(s),u=o(40862),a=o.n(u);let c=p()(()=>Promise.resolve().then(o.t.bind(o,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),l=e=>{let{children:t,open:o,notificationClicked:s,notificationClosed:p}=e,[u,l]=(0,i.useState)(o),[d,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(o)},[o]),(0,i.useEffect)(()=>{b(!0)},[]);let m=(0,n.jsx)("div",{className:a().title,children:"Stay updated!"}),f=e=>{e.stopPropagation(),s()},_=e=>{e.stopPropagation(),l(!1),p()},x=(0,n.jsxs)("div",{onClick:f,onKeyDown:f,role:"menuitem",tabIndex:0,children:[(0,n.jsx)("button",{type:"button",className:a().closebutton,onClick:_,children:(0,n.jsx)(c,{})}),(0,n.jsxs)("div",{className:a().contentbutton,children:["Click and never miss",(0,n.jsx)("br",{}),"future streams!"]})]});return d&&(0,n.jsx)(r.Z,{placement:"topRight",defaultOpen:u,open:u,destroyTooltipOnHide:!0,title:m,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"14px"},color:a().popupBackgroundColor,children:t})}},40862:function(e){e.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]);