mirror of https://github.com/waku-org/waku.org.git
1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
"use strict";(self.webpackChunkwaku_docusaurus_template=self.webpackChunkwaku_docusaurus_template||[]).push([[184],{53287:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionPage=void 0;const l=a(31635),r=a(97481),u=l.__importDefault(a(75489)),n=l.__importDefault(a(1893)),i=l.__importDefault(a(96540)),s=a(12230),o=a(92994),m=l.__importDefault(a(32035));t.SubscriptionPage=e=>{let{}=e;const t=(0,o.useThemeOptions)(),a=(0,s.useNewsletterApi)(),l=!a.message||a.error;return i.default.createElement("div",{className:m.default.container},i.default.createElement("div",{className:m.default.root},i.default.createElement("div",{className:m.default.header},i.default.createElement(n.default,{sources:{dark:"/theme/image/horizontal_lockup_small_white.svg",light:"/theme/image/horizontal_lockup_small_black.svg"},height:88}),i.default.createElement(r.Typography,{component:"p"},"Subscribe to our newsletter")),a.message&&i.default.createElement(r.Toast,{size:"medium",title:a.message,icon:a.error?r.ErrorIcon:r.CheckIcon,className:m.default.toast}),a.error&&a.message&&i.default.createElement("div",null),l&&i.default.createElement("form",{className:m.default.form,onSubmit:e=>{e.preventDefault();const l=e.target,r=l.elements.namedItem("name").value,u=l.elements.namedItem("email").value;a.subscribe(t.newsletterSubscription.mailingListId,u,r)}},i.default.createElement("div",{className:m.default.inputs},i.default.createElement(r.TextField,{inputProps:{name:"name",type:"text",required:!1},size:"medium",variant:"underlined",placeholder:"First name or pseudonym"}),i.default.createElement(r.TextField,{inputProps:{name:"email",type:"email",required:!0},size:"medium",variant:"underlined",placeholder:"Email address (required)"})),i.default.createElement("div",{className:m.default.submit},i.default.createElement(r.Button,{variant:"filled",disabled:a.busy},"Subscribe"))),!l&&i.default.createElement("div",{className:m.default.toHome},i.default.createElement(u.default,{href:"/"},i.default.createElement(r.Button,{variant:"filled"},"To home page")))))},t.default=t.SubscriptionPage},15525:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(31635).__exportStar(a(53287),t);var l=a(53287);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l.SubscriptionPage}})},93842:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var l=a(15525),r=a(5260),u=a(64366),n=a(96540);const i=()=>n.createElement(u.default,{title:"Subscribe to our newsletter"},n.createElement(r.A,null,n.createElement("meta",{name:"og:image_title",content:"Subscribe to our newsletter"})),n.createElement(l.SubscriptionPage,null))},32035:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});const l={toHome:"toHome_tEiU",form:"form_lk4c",submit:"submit_J_94",inputs:"inputs_dj3Q",header:"header_Gr5N",root:"root_lcb5",container:"container_YAWF",toast:"toast_C8x1"}}}]); |