1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6939],{3891:(e,t,n)=>{n.d(t,{A:()=>h});var o=n(66352),a=n(71924);let i=a.Ay.div.withConfig({componentId:"sc-ba6e941c-0"})(["box-shadow:",";border-radius:8px;margin:1rem 0;cursor:pointer;"],({theme:e})=>`0 0 10px ${e.default.color.text.light}`),r=a.Ay.div.withConfig({componentId:"sc-ba6e941c-1"})(["background-color:white;margin-top:auto;text-transform:uppercase;padding:0 1rem;font-family:",";font-size:11px;font-style:normal;font-weight:900;line-height:13px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont),l=a.Ay.div.withConfig({componentId:"sc-ba6e941c-2"})(["padding:0 1rem 1rem 1rem;"]),d=a.Ay.div.withConfig({componentId:"sc-ba6e941c-3"})(["color:",";font-size:12px;display:flex;justify-content:flex-start;font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:16px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.color.primary,({theme:e})=>e.default.fontFamily.secondaryFont),s=a.Ay.h4.withConfig({componentId:"sc-ba6e941c-4"})(["font-family:",";font-size:18px;font-style:normal;font-weight:700;line-height:20px;letter-spacing:0em;text-align:left;"],({theme:e})=>e.default.fontFamily.primaryFont),c=a.Ay.div.withConfig({componentId:"sc-ba6e941c-5"})(["display:flex;align-items:center;color:",";font-size:12px;padding-top:1rem;font-family:",";font-size:14px;font-style:normal;font-weight:400;line-height:17px;letter-spacing:0em;text-align:left;span{padding-left:0.2rem;}"],({theme:e})=>e.default.color.text.medium,({theme:e})=>e.default.fontFamily.secondaryFont),p=a.Ay.div.withConfig({componentId:"sc-ba6e941c-6"})(["width:100%;height:140px;border-radius:8px 8px 0 0;background-image:",";background-position:center;background-repeat:no-repeat,repeat;background-size:cover;display:flex;"],({$image:e})=>e&&`url(${e})`);var f=n(62373),m=n(72048),u=n(48186),g=n.n(u);let h=({event:e})=>{let t=e.img&&""!==e.img?e.img:`/images/event_types/${({"Car boot and jumble sales":"arts","Clubs / groups / societies":"arts","Charity events":"giving","Family fun days / events":"talking",Film:"theatre",Markets:"food","On stage (music, theatre, performance)":"theatre","Sports / fitness / outdoors activities":"food",Students:"food",Other:"food"})[e.category]}.png`;return(0,o.jsx)(g(),{href:`/whats-on/${e.publication}_${e.createdAt}_${encodeURIComponent(e.name)}`,children:(0,o.jsxs)(i,{children:[(0,o.jsx)(p,{$image:t,children:(0,o.jsx)(r,{children:e.category})}),(0,o.jsxs)(l,{children:[(0,o.jsx)(s,{children:e.name}),(0,o.jsxs)(d,{children:[(0,o.jsx)(m.A,{time:new Date(e.startDate),type:"short"}),e.endDate&&(0,o.jsxs)(o.Fragment,{children:[" ","- ",(0,o.jsx)(m.A,{time:new Date(e.endDate),type:"short"})]})]}),(0,o.jsxs)(c,{children:[(0,o.jsx)(f.q2,{}),(0,o.jsx)("span",{children:e.location})]})]})]})})}},9027:function(e,t,n){var o,a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,a)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=o(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return r(t,e),t}),d=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)0>t.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};
1Object.defineProperty(t,"__esModule",{value:!0});var s=l(n(95132)),c=n(22978),p=(0,n(69010).createAnimation)("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");t.default=function(e){var t=e.loading,n=e.color,o=void 0===n?"#000000":n,i=e.speedMultiplier,r=e.cssOverride,l=e.size,f=void 0===l?35:l,m=d(e,["loading","color","speedMultiplier","cssOverride","size"]),u=a({background:"transparent !important",width:(0,c.cssValue)(f),height:(0,c.cssValue)(f),borderRadius:"100%",border:"2px solid",borderTopColor:o,borderBottomColor:"transparent",borderLeftColor:o,borderRightColor:o,display:"inline-block",animation:"".concat(p," ").concat(.75/(void 0===i?1:i),"s 0s infinite linear"),animationFillMode:"both"},void 0===r?{}:r);return void 0===t||t?s.createElement("span",a({style:u},m)):null}},22978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLengthAndUnit=o,t.cssValue=function(e){var t=o(e);return"".concat(t.value).concat(t.unit)};var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(e){if("number"==typeof e)return{value:e,unit:"px"};var t,o=(e.match(/^[0-9.]*/)||"").toString();t=o.includes(".")?parseFloat(o):parseInt(o,10);var a=(e.match(/[^0-9]*$/)||"").toString();return n[a]?{value:t,unit:a}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}},24307:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(66352),a=n(71924);let i=a.Ay.div.withConfig({componentId:"sc-38966c08-0"})([""]),r=a.Ay.div.withConfig({componentId:"sc-38966c08-1"})(["max-width:975px;margin:1rem auto;@media (max-width:1150px){max-width:95vw;margin:1rem auto;}&.section-wrapper{margin:250px auto 1rem;@media (max-width:1150px){margin:1rem auto;}}"]),l=({children:e,innerClassName:t})=>(0,o.jsx)(i,{children:(0,o.jsx)(r,{className:t,children:e})})},28865:(e,t,n)=>{n.d(t,{A:()=>m});var o=n(66352),a=n(71924);let i=(0,a.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:",";text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;opacity:0.6;font-weight:bold;}width:",";"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.text.white,({theme:e})=>e.default.color.primary,({$fullwidth:e})=>e?"100%":"150px"),r=(0,a.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;color:white;font-family:",";background-color:red;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"],({theme:e})=>e.default.fontFamily.primaryFont),l=(0,a.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;border-radius:20px;font-size:1.2rem;font-family:Standard Sans,sans-serif;background-color:white;text-decoration:none;&:disabled{cursor:not-allowed;background-color:gray;}"]),d=(0,a.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;color:",";background-color:",";&:disabled{cursor:not-allowed;background-color:#e7e7e7;font-weight:bold;}"],({disabled:e})=>e?"#858585":"white",({theme:e})=>e.default.color.text.light),s=(0,a.AH)(["display:flex;align-items:center;justify-content:center;padding:12px 15px;border:0;font-family:Standard Sans,sans-serif;text-decoration:none;text-transform:uppercase;background-color:white;border:1px solid gray;&:disabled{cursor:not-allowed;border:1px solid #d4d4d4;&:hover{background-color:white;}}&:hover{background-color:#f3f3f3;}"]),c=a.Ay.button.withConfig({componentId:"sc-af7f5b26-0"})(["outline:0;border-radius:24px;white-space:nowrap;svg{vertical-align:text-top;font-size:20px;}&:hover{cursor:pointer;&:disabled{cursor:not-allowed;}}width:",";"," "," "," "," ",""],({$fullwidth:e})=>e?"100%":"150px",({$buttonStyle:e})=>"primary"===e&&i,({$buttonStyle:e})=>"secondary"===e&&r,({$buttonStyle:e})=>"clear"===e&&l,({$buttonStyle:e})=>"frost"===e&&d,({$buttonStyle:e})=>"pagination"===e&&s);var p=n(9027),f=n.n(p);let m=({children:e,handleClick:t,disabled:n,buttonStyles:a,buttonType:i="button",icon:r,fullwidth:l,loading:d,lefticon:s,className:p})=>(0,o.jsxs)(c,{type:i,onClick:t,disabled:n,$buttonStyle:a,role:"button",$fullwidth:l,className:p,children:[s,d?(0,o.jsxs)("span",{children:[(0,o.jsx)(f(),{color:"white",loading:d,size:12})," loading"]}):e,r]})}
1,47452:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(66352),a=n(71924);let i=a.Ay.select.withConfig({componentId:"sc-359fda70-0"})(["max-width:250px;width:100%;flex-grow:1;height:40px;background:",";color:",";padding:4px 24px;font-size:16px;border-radius:32px;border:1px solid ",';&:focus{outline:none;}background:url(\'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke="%23272727" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>\') #fff no-repeat 99% 50%;-moz-appearance:none;-webkit-appearance:none;appearance:none;option{color:',";background:",";display:flex;white-space:pre;min-height:20px;padding:0px 2px 1px;}"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.text.light,({theme:e})=>e.default.color.text.dark,({theme:e})=>e.default.color.backgrounds.white),r=a.Ay.p.withConfig({componentId:"sc-359fda70-1"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),l=a.Ay.div.withConfig({componentId:"sc-359fda70-2"})(["width:100%;"]),d=a.Ay.div.withConfig({componentId:"sc-359fda70-3"})(["display:flex;width:100%;"]),s=({options:e,onChange:t,name:n,value:a,label:s,id:c,required:p,checkbox:f,placeholderOverWrite:m})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r,{children:[s,p&&(0,o.jsx)("span",{children:" *"})]}),(0,o.jsxs)(d,{children:[(0,o.jsxs)(i,{defaultValue:"",name:n,value:a,onChange:t,id:c,children:[(0,o.jsx)("option",{value:"",disabled:!0,children:m||"Please select"}),e.map((e,t)=>(0,o.jsx)("option",{value:e,children:e},t))]}),f&&(0,o.jsxs)(l,{children:[" ",f]})]})]})},69010:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var o="react-spinners-".concat(e,"-").concat(n);if("u"<typeof window||!window.document)return o;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,r="\n @keyframes ".concat(o," {\n ").concat(t,"\n }\n ");return i&&i.insertRule(r,0),o}},86939:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var o=n(66352),a=n(95132),i=n(24307),r=n(28865),l=n(71924),d=n(44258);let s=l.Ay.div.withConfig({componentId:"sc-55228b78-0"})(["display:flex;margin:20px 0;span{font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:30px;letter-spacing:0.05em;text-align:left;}.signed_out_wrapper{color:",";}.event-login{text-transform:none;}@media (max-width:","){flex-direction:column;margin:0;}"],({theme:e})=>e.default.fontFamily.secondaryFont,({theme:e})=>e.default.color.text.medium,d.KL.medium),c=l.Ay.div.withConfig({componentId:"sc-55228b78-1"})(["display:flex;flex-direction:column;background:",";border-radius:16px;padding:24px;width:100%;margin-top:32px;@media (max-width:","){margin-top:24px;}button{margin:auto;}.event-login{background-color:",";color:",";padding:12px 15px;border-radius:20px;}"],({theme:e})=>e.default.color.background,d.KL.medium,({theme:e})=>e.default.color.primary,({theme:e})=>e.default.color.backgrounds.white),p=l.Ay.p.withConfig({componentId:"sc-55228b78-2"})(["color:",";text-align:center;font-family:",";font-size:12px;font-style:normal;font-weight:800;line-height:12px;text-transform:uppercase;margin:0 0 12px 0;"],e=>e.theme.default.color.primary,({theme:e})=>e.default.fontFamily.primaryFont),f=l.Ay.p.withConfig({componentId:"sc-55228b78-3"})(["font-family:",";font-size:18px;font-style:normal;font-weight:400;line-height:24px;text-align:center;margin:0 0 12px 0;"],({theme:e})=>e.default.fontFamily.secondaryFont);var m=n(89615),u=n(78901),g=n(89897);let h=({text:e})=>{let t=(0,m.useRouter)(),{session:n}=(0,a.useContext)(u.cy);return(0,o.jsx)(s,{children:(0,o.jsxs)(c,{children:[e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{children:"Post Event"}),(0,o.jsx)(f,{children:"Create and post your event online. Itâs fast, easy and free."})]}),n?(0,o.jsx)(r.A,{handleClick:()=>t.push("whats-on/create"),buttonStyles:"primary",children:(0,o.jsx)("span",{children:"Post event"})}):(0,o.jsx)(g.A,{type:"login",className:"event-login",children:"Post event"})]})})};var x=n(3891);let y=l.Ay.div.withConfig({componentId:"sc-5a1c42db-0"})(["grid-template-columns:1fr 1fr 1fr;display:grid;margin-top:1rem;column-gap:1rem;@media (max-width:","){grid-template-columns:1fr;}"],d.KL.medium),b=({eventList:e})=>e?(0,o.jsx)(a.Fragment,{children:(0,o.jsx)(y,{children:e.length>0&&e?.map((e,t)=>(0,o.jsx)("div",{children:(0,o.jsx)(x.A,{event:e},t)},t))})}):null,w=l.Ay.h1.withConfig({componentId:"sc-e5be32a1-0"})(["margin:32px 0 36px 0;@media (max-width:","){margin:24px 0px;}"],d.KL.medium),v=l.Ay.div.withConfig({componentId:"sc-e5be32a1-1"})(["display:flex;margin-top:20px;justify-content:center;"]),j=l.Ay.p.withConfig({componentId:"sc-e5be32a1-2"})(["font-family:",";font-size:18px;font-style:normal;font-weight:400;line-height:24px;margin-top:36px;@media (max-width:","){font-size:20px;margin-top:24px;}"],({theme:e})=>e.default.fontFamily.secondaryFont,d.KL.medium);var A=n(47452);let C=l.Ay.div.withConfig({componentId:"sc-77eb83c3-0"})(["display:flex;text-align:center;align-items:center;justify-content:space-between;@media (max-width:","){flex-direction:column;align-items:flex-start;}"],d.KL.medium),k=l.Ay.div.withConfig({componentId:"sc-77eb83c3-1"})(["width:250px;display:flex;align-items:center;@media (max-width:","){width:100%;select{width:100%;}}"],d.KL.medium),F=l.Ay.p.withConfig({componentId:"sc-77eb83c3-2"})(["font-family:",";font-size:20px;font-style:normal;font-weight:600;line-height:32px;text-align:left;margin:0 50px 0 0;@media (max-width:","){margin:0;}"],({theme:e})=>e.default.fontFamily.primaryFont,d.KL.medium),O=({onChange:e,catagory:t})=>(0,o.jsxs)(C,{children:[(0,o.jsx)(F,{children:" Events and Entertainment In Your Area \xa0"}),(0,o.jsx)(k,{children:(0,o.jsx)(A.A,{options:["Car boot and jumble sales","Clubs / groups / societies","Charity events","Family fun days / events","Film","Markets","On stage (music, theatre, performance)","Sports / fitness / outdoors activities","Students","Other"],onChange:e,name:"catagory",value:t,placeholderOverWrite:"All events"})})]});var I=n(64028),_=n(59085);let S=()=>{let{publication:e}=(0,a.useContext)(_.I),[t,n]=(0,a.useState)([]),[l,d]=(0,a.useState)(""),[s,c]=(0,a.useState)(),[p,f]=(0,a.useState)(!1),m=async t=>{d(t.target.value);try{if("All Events"===t.target.value){let t=await I.A.get(`/api/events?publication=${e}`);n(t.data),c(t.data.LastEvaluatedKey)}else{let o=await I.A.put(`/api/events?publication=${e}`,{category:t.target.value,type:"catagory"});n(o.data),c(o.data.LastEvaluatedKey)}f(!1)}catch{f(!0)}},u=(0,a.useCallback)(async()=>{try{let t=await I.A.get(`/api/events?publication=${e}`);n(t.data),f(!1)}catch{f(!0)}},[e]);(0,a.useEffect)(()=>{u()},[u]);let g=async()=>{try{let o=await I.A.get(`/api/event_pagination?created_at=${s.createdAt}&publication=${e}`);c(o.data.LastEvaluatedKey),n([...t,...o.data.Items])}catch{f(!0)}};return(0,o.jsxs)(i.A,{children:[(0,o.jsx)(w,{children:"What's on"}),(0,o.jsx)(O,{onChange:m,catagory:l}),(0,o.jsx)(j,{children:"Our What's On pages are designed to provide a service to local audiences. All submissions appear at the discretion of the site web administrator."}),(0,o.jsx)(h,{text:!0}),p&&(0,o.jsx)(j,{children:"Sorry, we couldn't load events right now. Please try again later."}),(0,o.jsx)(b,{eventList:t}),s&&(0,o.jsx)(v,{children:(0,o.jsx)(r.A,{buttonStyles:"pagination",handleClick:()=>g(),children:"show more"})})]})}}}]);
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.