1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8199],{41132:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-update-church",function(){return n(94250)}])},75666:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),a=n(83760);function i(e){var t=e.children;return(0,r.jsx)(a.Z,{children:(0,r.jsx)("div",{style:{background:"#fff",borderRadius:8,boxShadow:"0 1px 2px rgba(0, 0, 0, .2)",padding:"12px 16px",width:"100%"},children:t})})}},47492:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),a=n(52513),i=n.n(a);function c(e){var t=e.children;return(0,r.jsx)("div",{className:"d-flex justify-content-center w-100",children:(0,r.jsx)("div",{className:i().containerReading,children:t})})}},52870:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(85893),a=n(8769),i=n.n(a);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function s(e){var t=e.placeholder,n=void 0===t?"":t,a=e.value,c=void 0===a?"":a,s=e.name,o=void 0===s?"":s,d=e.type,l=void 0===d?"text":d,h=e.onChange,f=void 0===h?function(){}:h,p=e.width,x=void 0===p?"100%":p,m=e.isTextarea,v=void 0!==m&&m,_=e.style,b=void 0===_?{}:_,g=v?"textarea":"input";return(0,r.jsx)(g,{className:"".concat(i().TextInput," ").concat(v?i().TextInput__textarea:""),placeholder:n,value:c,name:o,onChange:f,style:u({width:x},b),type:l})}},94250:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(85893),a=n(67294),i=n(9008),c=n(9669),u=n.n(c),s=n(75666),o=n(47492),d=n(52870);function l(){var e=(0,a.useState)(""),t=e[0],n=e[1],c=(0,a.useState)(""),l=c[0],h=c[1],f=(0,a.useState)(!1),p=f[0],x=f[1],m=(0,a.useState)(!1),v=m[0],_=m[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{children:(0,r.jsx)("title",{children:"Add or Update a Church"})}),(0,r.jsx)("div",{className:"my-3",children:(0,r.jsx)(s.Z,{children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)("h1",{children:"Add or Update a Church"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:"To add or update a church, simply fill out the form below."}),(0,r.jsxs)("form",{className:"mt-4",onSubmit:function(e){e.preventDefault(),u().post("/api/contact",{email:e.target.email.value,subject:"Church",message:e.target.message.value}).then((function(){n(""),h(""),x(!0)})).catch((function(){_(!0)}))},children:[(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(d.Z,{placeholder:"Email (used only to reply)",value:t,name:"email",type:"email",width:300,onChange:function(e){n(e.target.value)}})}),(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsx)(d.Z,{placeholder:"Church details (adding or updating, name, address, etc.)",value:l,name:"message",width:300,onChange:function(e){h(e.target.value)},isTextarea:!0,style:{lineHeight:1.5}})}),(0,r.jsx)("button",{className:"btn btn-large btn-primary",disabled:!t||!l,children:"Submit"})]}),p&&(0,r.jsx)("div",{className:"mt-2 success",children:"Your message was sent successfully!"}),v&&(0,r.jsx)("div",{className:"mt-2 error",children:"Sorry, there was an error!"})]})]})})})]})}},52513:function(e){e.exports={containerReading:"ContainerReading_containerReading__J60hA"}},8769:function(e){e.exports={TextInput:"TextInput_TextInput__DVsGB",TextInput__textarea:"TextInput_TextInput__textarea__2Axbm",TextInput__error:"TextInput_TextInput__error__I48Fp"}}},function(e){e.O(0,[9669,9774,2888,179],(function(){return t=41132,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.