PageSourceSearch

https://www.rossgazette.com/_next/static/chunks/4639.da1c681bc00b2900.js

js rossgazette.com collected 2026-09-24 21:19:09 UTC 17,255 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3303,4639],{3891:(e,t,o)=>{o.d(t,{A:()=>g});var n=o(66352),r=o(71924);let a=r.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}`),i=r.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),s=r.Ay.div.withConfig({componentId:"sc-ba6e941c-2"})(["padding:0 1rem 1rem 1rem;"]),l=r.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),d=r.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=r.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=r.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 u=o(62373),f=o(72048),m=o(48186),h=o.n(m);let g=({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,n.jsx)(h(),{href:`/whats-on/${e.publication}_${e.createdAt}_${encodeURIComponent(e.name)}`,children:(0,n.jsxs)(a,{children:[(0,n.jsx)(p,{$image:t,children:(0,n.jsx)(i,{children:e.category})}),(0,n.jsxs)(s,{children:[(0,n.jsx)(d,{children:e.name}),(0,n.jsxs)(l,{children:[(0,n.jsx)(f.A,{time:new Date(e.startDate),type:"short"}),e.endDate&&(0,n.jsxs)(n.Fragment,{children:[" ","- ",(0,n.jsx)(f.A,{time:new Date(e.endDate),type:"short"})]})]}),(0,n.jsxs)(c,{children:[(0,n.jsx)(u.q2,{}),(0,n.jsx)("span",{children:e.location})]})]})]})})}},4639:(e,t,o)=>{o.r(t),o.d(t,{default:()=>N});var n=o(66352),r=o(95132),a=o(78901),i=o(4113),s=o(24307),l=o(64028),d=o(89615),c=o(71924);let p=c.Ay.div.withConfig({componentId:"sc-56062029-0"})(["display:grid;grid-template-columns:1fr 1fr 1fr;"]),u=(0,c.AH)(["border-bottom:",";color:",";padding:12px 0;"],({theme:e})=>`1px solid ${e.default.color.primary}`,({theme:e})=>e.default.color.primary),f=(0,c.AH)(["border-bottom:",";padding:12px 0;"],({theme:e})=>`1px solid ${e.default.color.text.light}`),m=c.Ay.div.withConfig({componentId:"sc-56062029-1"})([""," font-family:",";font-size:13px;font-style:normal;font-weight:900;line-height:17px;letter-spacing:0.05em;text-align:left;text-transform:uppercase;cursor:pointer;"],({$active:e})=>e?u:f,({theme:e})=>e.default.fontFamily.primaryFont);var h=o(3891);let g=({events:e})=>e?(0,n.jsx)(n.Fragment,{children:e?.map((e,t)=>(0,n.jsx)("div",{children:(0,n.jsx)(h.A,{event:e},t)},t))}):null;var x=o(28865),w=o(44258);let y=c.Ay.div.withConfig({componentId:"sc-b2986cf3-0"})(["padding:2rem 0;"]),b=c.Ay.div.withConfig({componentId:"sc-b2986cf3-1"})(["max-width:40%;padding:20px 0;@media (max-width:","){max-width:100%;}"],w.KL.medium),v=c.Ay.p.withConfig({componentId:"sc-b2986cf3-2"})(["margin:0;font-family:",";font-size:13px;font-style:normal;font-weight:800;line-height:17px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont);var j=o(23303);let A=({attributes:e,updateUserAttributes:t})=>{let[o,a]=(0,r.useState)(e?e[2].Value:"");return(0,n.jsx)(b,{children:(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault();try{t(o)}catch(e){console.log(e)}},children:[(0,n.jsx)(j.default,{inputStyles:"frosted",handleChange:e=>a(e.target.value),placeholder:"name",label:"Full Name",required:!1,value:o,name:"name"}),(0,n.jsx)(y,{children:(0,n.jsx)(x.A,{fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:(0,n.jsx)(v,{children:"Save Changes"})})})]})})};
1var C=o(14),_=o(41957),k=o(37763),F=o(74079);let I=c.Ay.div.withConfig({componentId:"sc-7dc46110-0"})(["padding:2rem 0;"]),O=c.Ay.p.withConfig({componentId:"sc-7dc46110-1"})(["margin:0;font-family:",";font-size:13px;font-style:normal;font-weight:800;line-height:17px;letter-spacing:0.05em;text-align:left;"],({theme:e})=>e.default.fontFamily.secondaryFont),S=c.Ay.div.withConfig({componentId:"sc-7dc46110-2"})(["max-width:40%;padding:20px 0;@media (max-width:","){max-width:100%;}.account-pw  span{top:35px;right:5px;}.account-pw{padding:0 0 10px 0;}"],w.KL.medium),$=_.Ik().shape({password:_.Yj().required("Please enter your password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[!@#\$%\^&\*])(?=.{8,})/,"Must be at least 8 characters, one uppercase, one number."),new_password:_.Yj().required("Please enter your password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[!@#\$%\^&\*])(?=.{8,})/,"Must be at least 8 characters, one uppercase, one number."),password_confirm:_.Yj().oneOf([_.KR("new_password")],"Passwords must match")}),z=()=>{let{UpdatePassword:e}=(0,r.useContext)(a.cy),[t,o]=(0,r.useState)("");return(0,n.jsx)(S,{children:(0,n.jsx)(C.l1,{initialValues:{password:"",new_password:"",password_confirm:""},onSubmit:async t=>{try{e(t.password,t.password_confirm)}catch(e){console.log(e),o(e.message)}},validationSchema:$,children:({values:e,handleChange:t,handleBlur:o,handleSubmit:r,errors:a,touched:i})=>(0,n.jsxs)(C.lV,{children:[(0,n.jsx)(k.A,{className:"account-pw",placeholder:"Current password",label:"Current Password",required:!1,inputType:"password",value:e.password,handleChange:t,onBlur:o,name:"password",bottom_error:i.password&&a.password}),(0,n.jsx)(k.A,{className:"account-pw",placeholder:"New password",label:"New Password",required:!1,inputType:"password",bottom_error:i.new_password&&a.new_password,value:e.new_password,handleChange:t,onBlur:o,name:"new_password"}),(0,n.jsx)(k.A,{className:"account-pw",placeholder:"Confirm new password",label:"Confirm New Password",required:!1,value:e.password_confirm,inputType:"password",bottom_error:i.password_confirm&&a.password_confirm,handleChange:t,onBlur:o,name:"password_confirm"}),(0,n.jsx)(I,{children:(0,n.jsx)(x.A,{disabled:""===e.new_password||""===e.password||""===e.password_confirm||(0,F.I)(a),fullwidth:!0,buttonType:"submit",buttonStyles:"primary",children:(0,n.jsx)(O,{children:"Save Changes"})})})]})})})},P=({events:e,attributes:t,updateUserAttributes:o})=>{let[a,i]=(0,r.useState)("Your details");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{children:["Your details","Change password","view your events"].map((e,t)=>(0,n.jsx)(m,{onClick:()=>i(e),$active:a===e,children:e},t))}),"view your events"===a&&(0,n.jsx)(g,{events:e}),"Change password"===a&&(0,n.jsx)(z,{}),"Your details"===a&&(0,n.jsx)(A,{attributes:t,updateUserAttributes:o})]})},N=({publication:e})=>{let{push:t}=(0,d.useRouter)(),{userPool:o,updateUserAttributes:c,attributes:p}=(0,r.useContext)(a.cy),[u,f]=(0,r.useState)([]),[m,h]=(0,r.useState)(),g=(0,r.useCallback)(async()=>{try{let e=await o.current.getCurrentUser();h(e)}catch(e){h(!1)}},[o]);(0,r.useEffect)(()=>{g()},[g]);let x=(0,r.useCallback)(async()=>{try{if(!m)return null;let{data:t}=await l.A.put(`/api/events?publication=${e}`,{type:"my_event",userId:m.username});f(t)}catch(e){}},[m,e]);return((0,r.useEffect)(()=>{x()},[x]),(0,r.useEffect)(()=>{null===m&&t("/")},[m,t]),m)?(0,n.jsxs)(s.A,{children:[(0,n.jsx)(i.A,{type:"account",children:"Account Overview"}),(0,n.jsx)(P,{updateUserAttributes:c,attributes:p,events:u})]}):null}},9027:function(e,t,o){var n,r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);
1(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[t.length]=o);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o=n(e),r=0;r<o.length;r++)"default"!==o[r]&&a(t,e,o[r]);return i(t,e),t}),l=this&&this.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};Object.defineProperty(t,"__esModule",{value:!0});var d=s(o(95132)),c=o(22978),p=(0,o(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,o=e.color,n=void 0===o?"#000000":o,a=e.speedMultiplier,i=e.cssOverride,s=e.size,u=void 0===s?35:s,f=l(e,["loading","color","speedMultiplier","cssOverride","size"]),m=r({background:"transparent !important",width:(0,c.cssValue)(u),height:(0,c.cssValue)(u),borderRadius:"100%",border:"2px solid",borderTopColor:n,borderBottomColor:"transparent",borderLeftColor:n,borderRightColor:n,display:"inline-block",animation:"".concat(p," ").concat(.75/(void 0===a?1:a),"s 0s infinite linear"),animationFillMode:"both"},void 0===i?{}:i);return void 0===t||t?d.createElement("span",r({style:m},f)):null}},22978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLengthAndUnit=n,t.cssValue=function(e){var t=n(e);return"".concat(t.value).concat(t.unit)};var o={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 n(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return o[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}},23303:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var n=o(66352);o(95132);var r=o(71924);let a=(0,r.AH)(["border-radius:20px;background-color:",";border:",";box-shadow:"," inset;-webkit-appearance:none;height:40px;"],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`0 0 0 0 ${e.default.color.text.light}`),i=(0,r.AH)(["height:40px;border-radius:20px;"]),s=(0,r.AH)(["height:40px;border-radius:20px;"]),l=r.Ay.input.withConfig({componentId:"sc-742cd590-0"})(["background-color:",";font-family:",";outline:0;width:100%;font-size:16px;font-style:normal;font-weight:600;line-height:24px;border:",";padding:20px;border-radius:20px;box-sizing:border-box;&:focus{border:",";}&:hover{border:",";}&::placeholder{color:grey;}"," "," ",""],({theme:e})=>e.default.color.backgrounds.white,({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>`1px solid ${e.default.color.text.light}`,({theme:e})=>`2px solid ${e.default.color.primary}`,({theme:e})=>`1px solid ${e.default.color.primary}`,({$inputStyles:e})=>"default"===e&&s,({$inputStyles:e})=>"frosted"===e&&a,({$inputStyles:e})=>"form"===e&&i),d=r.Ay.span.withConfig({componentId:"sc-742cd590-1"})(["color:red;font-size:10px;padding-left:1rem;position:absolute;bottom:5px;"]),c=r.Ay.span.withConfig({componentId:"sc-742cd590-2"})(["color:red;font-size:10px;position:absolute;"]),p=r.Ay.div.withConfig({componentId:"sc-742cd590-3"})(["position:relative;white-space:nowrap;"]),u=r.Ay.p.withConfig({componentId:"sc-742cd590-4"})(["font-weight:bold;font-family:",";span{color:",";}"],({theme:e})=>e.default.fontFamily.primaryFont,({theme:e})=>e.default.color.primary),f=r.Ay.div.withConfig({componentId:"sc-742cd590-5"})(["display:flex;align-items:flex-start;flex-direction:column;width:100%;span{margin-right:1rem;}"]),m=r.Ay.div.withConfig({componentId:"sc-742cd590-6"})(["width:100%;"]),h=({inputType:e="text",placeholder:t,handleChange:o,value:r,name:a,error:i,inputStyles:s="default",onBlur:h,label:g,required:x,pattern:w,prefix:y,checkbox:b,bottom_error:v,className:j})=>(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsx)(p,{children:(0,n.jsx)(d,{children:i})}),(0,n.jsxs)(f,{className:j,children:[(0,n.jsxs)(u,{children:[g,x&&(0,n.jsx)("span",{children:" *"})]}),y&&(0,n.jsx)("span",{children:y}),(0,n.jsx)(l,{$inputStyles:s,type:e,onBlur:h,placeholder:t,onChange:o,autoComplete:"off",value:r,name:a,"data-testid":"input",pattern:w}),b&&(0,n.jsx)(m,{children:b})]}),v&&(0,n.jsx)(p,{children:(0,n.jsx)(c,{children:v})})]})},24307:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(66352),r=o(71924);let a=r.Ay.div.withConfig({componentId:"sc-9e5c2221-0"})([""]),i=r.Ay.div.withConfig({componentId:"sc-9e5c2221-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;}}&.section-wrapper--wide{@media (min-width:1151px){max-width:1200px;}}"]),s=({children:e,innerClassName:t})=>(0,n.jsx)(a,{children:(0,n.jsx)(i,{className:t,children:e})})},28865:(e,t,o)=>{o.d(t,{A:()=>f});var n=o(66352),r=o(71924);let a=(0,r.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"),i=(0,r.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),s=(0,r.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;}"]),l=(0,r.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),d=(0,r.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=r.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&&a,({$buttonStyle:e})=>"secondary"===e&&i,({$buttonStyle:e})=>"clear"===e&&s,({$buttonStyle:e})=>"frost"===e&&l,({$buttonStyle:e})=>"pagination"===e&&d);var p=o(9027),u=o.n(p);let f=({children:e,handleClick:t,disabled:o,buttonStyles:r,buttonType:a="button",icon:i,fullwidth:s,loading:l,lefticon:d,className:p})=>(0,n.jsxs)(c,{type:a,onClick:t,disabled:o,$buttonStyle:r,role:"button",$fullwidth:s,className:p,children:[d,l?(0,n.jsxs)("span",{children:[(0,n.jsx)(u(),{color:"white",loading:l,size:12})," loading"]}):e,i]})},69010:(e,t)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,o){var n="react-spinners-".concat(e,"-").concat(o);if("u"<typeof window||!window.document)return n;var r=document.createElement("style");document.head.appendChild(r);var a=r.sheet,i="\n    @keyframes ".concat(n," {\n      ").concat(t,"\n    }\n  ");return a&&a.insertRule(i,0),n}}}]);

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.