PageSourceSearch

https://cowichandressage.netlify.app/component---src-pages-events-js-45afcb77ba46b574702c.js

js cowichandressage.netlify.app collected 2026-10-03 10:36:48 UTC 11,199 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[6],{6272:function(e,t,n){var a=n(58168),r=n(80045),o=n(96540),l=n(20053),i=n(32150),c=o.forwardRef(function(e,t){var n=e.classes,i=e.className,c=e.component,s=void 0===c?"div":c,m=(0,r.A)(e,["classes","className","component"]);return o.createElement(s,(0,a.A)({className:(0,l.default)(n.root,i),ref:t},m))});t.A=(0,i.A)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(c)},13897:function(e,t,n){n.d(t,{t:function(){return h}});var a=n(96540),r=n(55268),o=n(73486),l=n(50384),i=n(77430),c=n(61466),s=n(86322),m=n(27606),d=n(52201),u=n(41394),p=n(47402),g=n(3148),f=n(26009),A=n(42561),v=n(69440),E=n(14696),y=n(28129);const h=e=>{let{eventPage:t,event:n,date:h,indexId:b,isFull:C,withImage:k}=e;const{0:x,1:N}=(0,a.useState)(""),{0:w,1:L}=(0,a.useState)(0);return a.createElement(m.A,{item:!0,xs:12,md:6,lg:k?6:4},a.createElement(g.A,{variant:"outlined"},a.createElement(l.A,{button:!0,key:b,onClick:()=>{(e=>{N(x===e?"":e)})(b)}},a.createElement(c.A,null,a.createElement(s.A,{fontSize:"large"})),a.createElement(y.A,{isFull:C},a.createElement(i.A,{primary:(0,d.GP)(new Date((0,u.H)(h.date)),"EEE, LLLL d, yyyy"),style:{paddingRight:"0.5rem"}})),x===b?a.createElement(f.A,null):a.createElement(A.A,null))),a.createElement(v.A,{in:b===x,timeout:"auto",unmountOnExit:!0},a.createElement(o.A,{component:"div",disablePadding:!0,style:{background:"#e3e3e3"}},a.createElement(l.A,{style:{display:"flex",justifyContent:"flex-end"}},a.createElement(E.A,{date:h.date,event:n})),h.rideTimes&&a.createElement(l.A,{button:!0,onClick:()=>(0,r.navigate)(`/${h.date}/ride-times`)},a.createElement(i.A,{disableTypography:!0,primary:"Ride Times",className:"date-menu"})),h.results&&a.createElement(l.A,{button:!0,onClick:()=>(0,r.navigate)(`/${h.date}/results`)},a.createElement(i.A,{disableTypography:!0,primary:"Results",className:"date-menu"})),(0,p.d)((0,u.H)(h.date),new Date)?a.createElement(l.A,{button:!0,onClick:()=>(e=>{L(w+1),(0,r.navigate)(`${e||""}?date=${encodeURIComponent(h.date)}&id=reg&refresh=${w}`,{state:{date:h.date}})})(t)},a.createElement(i.A,{disableTypography:!0,primary:"Entry Form",className:"date-menu"})):" ")))}},20426:function(e,t,n){var a=n(58168),r=n(80045),o=n(96540),l=n(20053),i=n(3148),c=n(32150),s=o.forwardRef(function(e,t){var n=e.classes,c=e.className,s=e.raised,m=void 0!==s&&s,d=(0,r.A)(e,["classes","className","raised"]);return o.createElement(i.A,(0,a.A)({className:(0,l.default)(n.root,c),elevation:m?8:1,ref:t},d))});t.A=(0,c.A)({root:{overflow:"hidden"}},{name:"MuiCard"})(s)},58654:function(e,t,n){n.d(t,{A:function(){return b}});var a=n(80045),r=n(58168),o=n(96540),l=n(20053),i=n(19773),c=n(32150),s=n(3148),m=n(95126),d=(0,m.A)(o.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),u=(0,m.A)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),p=(0,m.A)(o.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),g=(0,m.A)(o.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),f=(0,m.A)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),A=n(42460),v=n(67515),E={success:o.createElement(d,{fontSize:"inherit"}),warning:o.createElement(u,{fontSize:"inherit"}),error:o.createElement(p,{fontSize:"inherit"}),info:o.createElement(g,{fontSize:"inherit"})},y=o.createElement(f,{fontSize:"small"}),h=o.forwardRef(function(e,t){var n=e.action,i=e.children,c=e.classes,m=e.className,d=e.closeText,u=void 0===d?"Close":d,p=e.color,g=e.icon,f=e.iconMapping,h=void 0===f?E:f,b=e.onClose,C=e.role,k=void 0===C?"alert":C,x=e.severity,N=void 0===x?"success":x,w=e.variant,L=void 0===w?"standard":w,M=(0,a.A)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return o.createElement(s.A,(0,r.A)({role:k,square:!0,elevation:0,
1className:(0,l.default)(c.root,c["".concat(L).concat((0,v.A)(p||N))],m),ref:t},M),!1!==g?o.createElement("div",{className:c.icon},g||h[N]||E[N]):null,o.createElement("div",{className:c.message},i),null!=n?o.createElement("div",{className:c.action},n):null,null==n&&b?o.createElement("div",{className:c.action},o.createElement(A.A,{size:"small","aria-label":u,title:u,color:"inherit",onClick:b},y)):null)}),b=(0,c.A)(function(e){var t="light"===e.palette.type?i.e$:i.a,n="light"===e.palette.type?i.a:i.e$;return{root:(0,r.A)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}},{name:"MuiAlert"})(h)},66137:function(e,t,n){n.d(t,{A:function(){return f}});var a=n(96540),r=n(79486),o=n(58168),l=n(80045),i=n(20053),c=n(67515),s=n(32150),m=n(20364),d=n(74801),u=n(54392),p=a.forwardRef(function(e,t){var n=e.classes,r=e.className,s=e.color,p=void 0===s?"primary":s,g=e.component,f=void 0===g?"a":g,A=e.onBlur,v=e.onFocus,E=e.TypographyClasses,y=e.underline,h=void 0===y?"hover":y,b=e.variant,C=void 0===b?"inherit":b,k=(0,l.A)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),x=(0,m.A)(),N=x.isFocusVisible,w=x.onBlurVisible,L=x.ref,M=a.useState(!1),z=M[0],$=M[1],S=(0,d.A)(t,L);return a.createElement(u.A,(0,o.A)({className:(0,i.default)(n.root,n["underline".concat((0,c.A)(h))],r,z&&n.focusVisible,"button"===f&&n.button),classes:E,color:p,component:f,onBlur:function(e){z&&(w(),$(!1)),A&&A(e)},onFocus:function(e){N(e)&&$(!0),v&&v(e)},ref:S,variant:C},k))}),g=(0,s.A)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(p);var f=e=>{const{locationName:t,lat:n,lon:o}=e,l=`https://www.google.com/maps/search/?api=1&query=${n}%2C${o}`;return a.createElement(u.A,{style:{display:"flex",alignItems:"center",marginBottom:"0.5rem"}},a.createElement(r.A,null),a.createElement(g,{href:l,target:"_blank",rel:"noreferrer"},t))}},71422:function(e,t,n){n.r(t);var a=n(96540),r=n(14146),o=n(84759),l=n(55268),i=n(20426),c=n(6272),s=n(96746),m=n(54392),d=n(58654),u=n(32532),p=n(27606),g=n(13897),f=n(66137);t.default=()=>{const e=(0,l.useStaticQuery)("3412347979");return a.createElement(r.A,null,a.createElement(o.A,null,a.createElement(m.A,{gutterBottom:!0,variant:"h2"},"Events"),a.createElement(d.A,{severity:"info",style:{fontSize:"1em",marginBottom:"1rem"}},"Please note that the Cowichan Dressage Club disbanded on November 30, 2023. This site is provided for portfolio purposes only."),e.allContentfulEvent.edges.map(e=>{let{node:t}=e;return a.createElement(i.A,{elevation:3,style:{marginBottom:"2rem"},key:t.id},a.createElement(c.A,null,a.createElement(p.A,{container:!0,spacing:3},a.createElement(p.A,{item:!0,xs:12,md:t.image?8:12},a.createElement(l.Link,{to:t.slug,className:"event-link"},a.createElement(m.A,{variant:"h4"},t.eventName)),t.location?a.createElement(f.A,{locationName:t.locationName,lat:t.location.lat,lon:t.location.lon}):"",a.createElement(m.A,{gutterBottom:!0,variant:"body1"},t.summary?t.summary.summary:""),a.createElement("hr",null),a.createElement(l.Link,{to:`${t.slug}`,style:{textDecoration:"none"}},a.createElement(s.A,{variant:"contained",color:"primary",style:{margin:"0.5rem 0"}},"More Info")),a.createElement(l.Link,{to:`${t.slug}?id=reg`,style:{textDecoration:"none"}},a.createElement(s.A,{variant:"contained",color:"primary",style:{margin:"0.5rem 0.2rem"}},"Entry Form"))),t.image?a.createElement(p.A,{item:!0,xs:12,md:4,style:{marginBottom:"1rem"}},a.createElement(u.G,{image:t.image.gatsbyImageData,alt:t.image.description?t.image.description:""})):""),a.createElement(p.A,{item:!0,xs:12},a.createElement(p.A,{container:!0},t.eventDates.map((e,n)=>a.createElement(g.t,{key:n,date:e,indexId:n,eventPage:t.slug,event:t,isFull:e.isFull}))))))})))}},79486:function(e,t,n){var a=n(24994),r=n(6305);t.A=void 0;var o=r(n(96540)),l=(0,a(n(76447)).default)(o.createElement("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"LocationOn");t.A=l}
1,84759:function(e,t,n){var a=n(96540),r=(n(55268),n(29984));t.A=e=>{let{children:t}=e;return a.createElement(r.A,{style:{marginTop:"75px",marginBottom:"2rem",minHeight:"76.5vh"}},t)}}}]);
2//# sourceMappingURL=component---src-pages-events-js-45afcb77ba46b574702c.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.