PageSourceSearch

https://www.letstalkmonmouthshire.co.uk/_next/static/chunks/12840-665f80c6c076b0bf.js

js letstalkmonmouthshire.co.uk collected 2026-09-29 03:18:02 UTC 11,327 bytes, 2 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="d6109ac2-9306-40c9-a7e4-b3601799a3dd",t._sentryDebugIdIdentifier="sentry-dbid-d6109ac2-9306-40c9-a7e4-b3601799a3dd")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12840],{15525:(t,e,r)=>{t.exports=r.p+"static/media/admin-login-image.2e12a82ae1d49b1f.png"},22982:(t,e,r)=>{t.exports=r.p+"static/media/granicus-logo.25317547faf5695f.png"},47191:(t,e,r)=>{function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{Q:()=>o});var a=function(){if("u">typeof document){var t,e=function(t){var e="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t){if(t){if("string"==typeof t)return n(t,void 0);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,void 0):void 0}}(t))){e&&(t=e);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return s=t.done,t},e:function(t){i=!0,o=t},f:function(){try{s||null==e.return||e.return()}finally{if(i)throw o}}}}(document.cookie.split(";"));try{for(e.s();!(t=e.n()).done;){var r=t.value.trim();if(r){var a=r.indexOf("=");if(-1!==a&&"X-CSRF-Token"===r.slice(0,a).trim())return decodeURIComponent(r.slice(a+1))}}}catch(t){e.e(t)}finally{e.f()}}},o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;return function(){var n=t.emailOrLogin,o=t.password,s=t.rememberMe,i=document.createElement("form");i.setAttribute("method","post"),i.setAttribute("action",r?"https://".concat(r,"/users/session"):"/users/session"),i.style.display="none";var c=document.createElement("input");c.setAttribute("name","user[email_or_login]"),c.setAttribute("value",n);var u=document.createElement("input");u.setAttribute("name","user[password]"),u.setAttribute("value",o);var p=document.createElement("input");if(p.setAttribute("name","user[remember_me]"),p.setAttribute("value",s),i.appendChild(c),i.appendChild(u),i.appendChild(p),e){var l=document.createElement("input");l.setAttribute("name","user[site_onboarding]"),l.setAttribute("value","true"),i.appendChild(l)}var d=a();if(d){var f=document.createElement("input");f.type="hidden",f.name="authenticity_token",f.value=d,i.appendChild(f)}document.body.appendChild(i),i.submit()}}},50643:(t,e,r)=>{r.d(e,{FH:()=>h,I3:()=>b,P0:()=>y,cw:()=>m,ux:()=>v});var n=r(42969),a=r(63857),o=r(60180),s=r.n(o),i=r(99006),c=r.n(i),u=r(8145),p=r.n(u),l=r(85445);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var h=function(t){var e;return e=(0,a.A)(s().mark(function e(r,n){var a,o,i;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:l.A.VERIFY_USER_REQUEST}),o=n().currentUser.adapter.token||(null==(a=n().currentUser)||null==(a=a.anonymousUser)?void 0:a.token),e.prev=2,e.next=5,p().post("/api/v2/users/verify",{data:{attributes:{email_or_login:t.emailOrLogin,password:t.password,remember_me:t.rememberMe}}},{headers:{"x-api-token":"Bearer ".concat(o)}});case 5:return i=e.sent,r({type:l.A.VERIFY_USER_SUCCESS,user:i.data}),e.abrupt("return",i.data);case 10:e.prev=10,e.t0=e.catch(2),r({type:l.A.VERIFY_USER_FAILURE,errorMessage:!0,errors:e.t0});case 13:case"end":return e.stop()}},e,null,[[2,10]])})),function(t,r){return e.apply(this,arguments)}},m=function(t){var e;return e=(0,a.A)(s().mark(function e(r,n){var a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:l.A.FETCH_USER_REQUEST}),e.prev=1,a=new(c())(f(f({},n().currentUser.adapter),t)),e.next=5,a.resetPassword();case 5:r({type:l.A.RESET_USER_PASSWORD_SUCCESS,user:a}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),r({type:l.A.FETCH_USER_FAILURE,errorMessage:!0,errors:e.t0.data.errors});case 11:case"end":return e.stop()}},e,null,[[1,8]])})),function(t,r){return e.apply(this,arguments)}},y=function(t){var e;return e=(0,a.A)(s().mark(function e(r,n){var a,o;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:l.A.VERIFY_OTP_REQUEST}),e.prev=1,a=new(c())(f(f({},n().currentUser.adapter),t)),e.next=5,a.verifyAccount();case 5:o=e.sent,r({type:l.A.VERIFY_OTP_SUCCESS,user:o}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),r({type:l.A.VERIFY_OTP_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(t,r){return e.apply(this,arguments)}},v=function(t){var e;return e=(0,a.A)(s().mark(function e(r,n){var a,o;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:l.A.RESEND_CONFRIM_EMAIL_REQUEST}),e.prev=1,a=new(c())(f(f({},n().currentUser.adapter),t)),e.next=5,a.resendEmail();case 5:o=e.sent,r({type:l.A.RESEND_CONFRIM_EMAIL_SUCCESS,user:o}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),r({type:l.A.RESEND_CONFRIM_EMAIL_FAILURE,errorMessage:e.t0.statusText||e.t0.status});case 12:case"end":return e.stop()}},e,null,[[1,9]])})),function(t,r){return e.apply(this,arguments)}},b=function(t){var e;return e=(0,a.A)(s().mark(function e(r,n){var a;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new(c())(f(f({},n().currentUser.adapter),{},{adminLocale:t})),e.abrupt("return",a.updateAdminLocale());case 2:case"end":return e.stop()}},e)})),function(t,r){return e.apply(this,arguments)}}},62674:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(42969),a=r(14232),o=r(77328),s=r.n(o),i=r(37876);function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){return function(e){var r=e.siteName,o=e.faviconUrl;return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:r}),(0,i.jsx)("link",{href:o,rel:"icon",type:"image/ico"})]}),(0,i.jsx)(t,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?c(Object(r),!0).forEach(function(e){(0,n.default)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e))]})}}},74200:(t,e,r)=>{r.d(e,{e:()=>d});var n=r(63857),a=r(60180),o=r.n(a),s=r(45791),i=r(86662),c=r(58911),u=r(33191),p=r.n(u),l=r(89742),d=function(t){var e;return e=(0,n.A)(o().mark(function e(r,n){var a,u,d,f;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n().adapter.adapter.baseUrl,u=(0,c.A)(n()).token,r({type:s.A.FETCH_TOKEN_REQUEST}),d={data:{attributes:{login:t.login,password:t.password},type:"tokens",id:(0,l.Ak)(11)}},e.prev=5,e.next=8,(0,i.RQ)(u,a,d);case 8:f=e.sent,p().set("unexpected_thunder",f.token),r({type:s.A.FETCH_TOKEN_SUCCESS,token:f}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),r({type:s.A.FETCH_TOKEN_FAILURE,errorMessage:e.t0.status});case 16:case"end":return e.stop()}},e,null,[[5,13]])})),function(t,r){return e.apply(this,arguments)}}},95981:t=>{t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}},99006:(t,e,r)=>{var n=r(73610),a=n(r(7379)),o=n(r(95981)),s=n(r(61851));function i(){var t=void 0!==arguments[0]?arguments[0]:{};a.default.call(this,t),this.id=t.id,this.login=t.login,this.email=t.email,this.roleName=t.roleName,this.roleId=t.roleId,this.type=t.type,this.imageUrl=t.imageUrl,this.lastSeenAt=t.lastSeenAt,this.createdAt=t.createdAt,this.oldPassword=t.oldPassword,this.newPassword=t.newPassword,this.newPasswordConfirmation=t.newPasswordConfirmation,this.emailOrLogin=t.emailOrLogin,this.password=t.password,this.rememberMe=t.rememberMe,this.otp=t.otp,this.provider=t.provider,this.adminLocale=t.adminLocale}(0,o.default)(i,a.default),i.baseURL="/users",i._type="users",i.prototype.verifyUser=function(){var t=this;return this.constructor.adapter.post(this.constructBaseURL()+"/verify",this.serialize()).then(function(t){return t}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.verifyAdmin=function(){var t=this;return this.constructor.adapter.get("".concat(this.constructBaseURL(),"/admin_verification?email_or_login=").concat(this.emailOrLogin)).then(function(t){return t}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.resetPassword=function(){var t=this;return this.constructor.adapter.put(this.constructBaseURL()+"/change_password",this.serialize()).then(function(e){return t.constructor.deserialize(e.data)}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.forgotPassword=function(){var t=this;return this.constructor.adapter.put(this.constructBaseURL()+"/forgot_password_email?email=".concat(this.email),this.serialize()).then(function(e){return t.constructor.deserialize(e.data)}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.resendConfirmEmail=function(){var t=this;return this.constructor.adapter.put(this.constructBaseURL()+"/resend_confirmation_email?email=".concat(this.id),this.serialize()).then(function(e){return t.constructor.deserialize(e.data)}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.verifyAccount=function(){var t=this;return this.constructor.adapter.put(this.constructBaseURL()+"/".concat(this.id,"/confirm"),this.serialize()).then(function(e){return t.constructor.deserialize(e.data)}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.resendEmail=function(){var t=this;return this.constructor.adapter.put(this.constructBaseURL()+"/".concat(this.id,"/resend_email"),this.serialize()).then(function(e){return t.constructor.deserialize(e.data)}).catch(function(e){throw t.errors=new s.default(e.data),e})},i.prototype.updateAdminLocale=function(){var t=this;return this.constructor.adapter.patch("".concat(this.constructBaseURL(),"/update_locale"),this.serialize()).catch(function(e){throw t.errors=new s.default(e.data),e})},t.exports=i}}]);
2//# sourceMappingURL=12840-665f80c6c076b0bf.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.