1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[139],{30283:function(e,t,n){var a=n(96540),r=function(){return r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},o=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},l=function(e){var t,n=e.email,a=e.headers,r=e.tel,o=e.sms,l=e.facetime,i=e.href,c=e.children;if(n){var s="mailto:".concat(n);return a&&(s+="?".concat((t=a,Object.keys(t).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(t[e]))}).join("&")))),s}return r?"tel:".concat(r):o?"sms:".concat(o):l?"facetime:".concat(l):i||("object"!=typeof c?c:"")};t.A=function(e){var t,n=e.element,i=void 0===n?"a":n,c=e.children,s=e.tel,m=e.sms,u=e.facetime,f=e.email,d=e.href,y=e.headers,v=e.obfuscate,h=e.obfuscateChildren,p=e.linkText,E=e.style,b=e.onClick,g=o(e,["element","children","tel","sms","facetime","email","href","headers","obfuscate","obfuscateChildren","linkText","style","onClick"]),A=(0,a.useState)(!1),k=A[0],C=A[1],j=c||s||m||u||f||d,O=i,w=!0===k||!1===v||"object"==typeof c||!1===h?j:"string"==typeof(t=j)&&t.split("").reverse().join("").replace("(",")").replace(")","("),x="a"===O?{href:!0===k||!1===v?l({email:f,headers:y,tel:s,sms:m,facetime:u,href:d,children:c}):p||"obfuscated",onClick:function(){b&&"function"==typeof b&&b(),!1===k&&(window.location.href=l({email:f,headers:y,tel:s,sms:m,facetime:u,href:d,children:c}))}}:{};return a.createElement(O,r({onFocus:function(){return C(!0)},onMouseOver:function(){return C(!0)},onContextMenu:function(){return C(!0)}},g,x,{style:r(r({},E),{unicodeBidi:"bidi-override",direction:!0===k||!1===v||!1===h?"ltr":"rtl"})}),w)}},68287:function(e,t,n){n.r(t);var a=n(96540),r=n(14146),o=n(84759),l=n(54392),i=n(30283),c=n(14696),s=n(52201),m=n(41394),u=n(48078),f=n(55268),d=n(96746);const y=()=>a.createElement(i.A,{email:"[email protected]"}),v=e=>{let{location:t}=e;return a.createElement(r.A,null,a.createElement(o.A,null,a.createElement(l.A,{variant:"h3"},"Uh oh! It looks like you haven't actually submitted a form."),a.createElement(l.A,null,"If you got here via link or something, you may be looking for event information, please see ",a.createElement(f.Link,{to:"/events"},"events page.")),a.createElement("div",{style:{display:"flex",justifyContent:"center",marginTop:"2rem"}},a.createElement(f.Link,{to:"/"},a.createElement(d.A,{color:"primary",variant:"contained"},"Go Home")))))},h=e=>{let{location:t}=e;return a.createElement(r.A,null,a.createElement(o.A,null,a.createElement(l.A,{variant:"h3",gutterBottom:!0},"Thank you for joining Cowichan Dressage Club!"),a.createElement(l.A,{variant:"body1",gutterBottom:!0},"Your form has been successfully submitted."),"square"===t.state.paymentMethod?a.createElement(l.A,{variant:"body1"},"Please email ",a.createElement(y,null),"for square invoice."):a.createElement(l.A,{variant:"body1"},"Please e-transfer to ",a.createElement(y,null),". Auto-deposit is enabled so security question does not matter."),a.createElement("div",{style:{display:"flex",justifyContent:"center",marginTop:"2rem"}},a.createElement(f.Link,{to:"/"},a.createElement(d.A,{color:"primary",variant:"contained"},"Go Home")))))};t.default=e=>{let{location:t}=e;return null===t.state||void 0===t.state?a.createElement(v,null):null!==t.state.formName?"membership"===t.state.formName?a.createElement(h,{location:t}):a.createElement(r.A,null,a.createElement(o.A,null,a.createElement(l.A,{variant:"h3",gutterBottom:!0},"Registration Complete."),t.state.event.confirmationMessage&&a.createElement(l.A,null,(0,u.C)(t.state.event.confirmationMessage)),a.createElement(l.A,{variant:"body1",gutterBottom:!0},"You have registered for ",t.state.event.eventName," on"," ",(0,s.Ay)(new Date((0,m.A)(t.state.values.date)),"EEE, LLLL d, yyyy")),a.createElement(c.A,{event:t.state.event,date:t.state.values.date,isCalAr:!1,isButton:!0}),a.createElement("div",{style:{display:"flex",justifyContent:"center",marginTop:"2rem"}},a.createElement(f.Link,{to:"/"},a.createElement(d.A,{color:"primary",variant:"contained"}
1,"Go Home"))))):void 0}}}]); 2//# sourceMappingURL=component---src-pages-form-success-js-33245b7e63550edb4268.js.map
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.