PageSourceSearch

https://www.chkmountford.co.uk/asset_bundles/5926.bundle.4ed666e7182b01216dba.js

js chkmountford.co.uk collected 2026-09-29 14:05:18 UTC 14,827 bytes, 2 lines download raw bytes

vendor: 4,688 bytes, lines 1-2
1/*! For license information please see 5926.bundle.4ed666e7182b01216dba.js.LICENSE.txt */
2"use strict";(self.webpackChunktheme_boilerplate=self.webpackChunktheme_boilerplate||[]).push([[5926],{7644:function(t,e,r){var n=r(7294),o=r(8216),i=r(6550),a=r(5697),s=r.n(a),u=r(3665),c=r(1022),l=r(9662);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}function d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new A(n||[]);return o(a,"_invoke",{value:x(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",y="suspendedYield",m="executing",v="completed",b={};function g(){}function w(){}function E(){}var _={};c(_,a,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(R([])));O&&O!==r&&n.call(O,a)&&(_=O);var L=E.prototype=g.prototype=Object.create(_);function P(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,s){var u=p(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==f(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function x(e,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=N(s,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=p(e,r,n);if("normal"===c.type){if(o=n.done?v:y,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(f(e)+" is not iterable")}return w.prototype=E,o(L,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=c(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},P(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
vendor: 4,110 bytes, line 2
2ise);var a=new j(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(L),c(L,u,"Generator"),c(L,a,(function(){return this})),c(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function h(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var v="Something went wrong updating your password. Please try again later.",b=function(t){var e=t.user,r=t.setCurrentUser,o=t.inputClass,a=t.buttonClass,s=t.buttonSpanClass,u=t.pattern,c=t.patternTitle,f=t.redirect,m=t.newPasswordInputProps,b=t.confirmPasswordInputProps,g=t.Loader,w=t.setLoading,E=t.isRequestInProgress,_=y((0,n.useState)(""),2),S=_[0],O=_[1],L=y((0,n.use
2State)(""),2),P=L[0],j=L[1],x=y((0,n.useState)(null),2),N=x[0],T=x[1],k=(0,i.useHistory)(),A=E?"reset-password-form__submit--loading":"";return n.createElement("form",{className:"reset-password-form",onSubmit:function(t){w({userPasswordReset:!0}),t.preventDefault(),fetch("/user.ljson",{method:"POST",headers:{"Content-Type":"application/json","X-Http-Method-Override":"put"},body:JSON.stringify({user_id:e.user_id,password:S,password_confirmation:P})}).then(function(){var t,n=(t=d().mark((function t(n){var o,i,a;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.json();case 2:if(o=t.sent,i=n.status,!n.ok){t.next=10;break}r(e),(0,l.Z)("You have successfully changed your password.","success"),k.push(f),t.next=28;break;case 10:if(302!==n.status){t.next=19;break}if(!(a=n.headers.get("Location"))){t.next=16;break}window.location.href=a,t.next=17;break;case 16:throw new Error("Received a redirect without a destination URL");case 17:t.next=28;break;case 19:if(!o.errors||!Array.isArray(o.errors)||422!==i){t.next=23;break}T(o.errors),t.next=28;break;case 23:if(!o.message){t.next=27;break}throw new Error(o.message);case 27:throw new Error(v);case 28:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,s,"next",t)}function s(t){h(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(t){var e=t instanceof SyntaxError?v:t.message||v;console.error("Something went wrong.",t.message),(0,l.Z)(e,"error")})).finally((function(){return w({userPasswordReset:!1})}))}},N&&(null==N?void 0:N.length)>0&&n.createElement("ul",{className:"reset-password-form__errors-list"},N.map((function(t){return n.createElement("li",{key:t},"Password ",t)}))),n.createElement("input",p({name:"password",type:"password",placeholder:"New password",value:S,onChange:function(t){return O(t.target.value)},className:o,pattern:u,title:c},m)),n.createElement("input",p({name:"password_confirmation",type:"password",placeholder:"Confirm new password",value:P,onChange:function(t){return j(t.target.value)},className:o,pattern:u,title:c},b)),n.createElement("button",{type:"submit",className:"reset-password-form__submit ".concat(a," ").concat(A),disabled:E},E&&g&&n.createElement(g,null),n.createElement("span",{className:s},"Reset Password")))};b.propTypes={user:s().object.isRequired,setCurrentUser:s().func.isRequired,inputClass:s().string,buttonClass:s().string,buttonSpanClass:s().string,pattern:s().string,patternTitle:s().string,redirect:s().string,Loader:s().element,newPasswordInputProps:s().object,confirmPasswordInputProps:s().object,setLoading:s().func.isRequired,isRequestInProgress:s().bool.isRequired},b.defaultProps={inputClass:"",buttonClass:"",buttonSpanClass:"",pattern:null,patternTitle:null,redirect:"/user",newPasswordInputProps:{},confirmPasswordInputProps:{},Loader:null};var g={setCurrentUser:c.lx,setLoading:u.K4};e.Z=(0,o.$j)((function(t){var e;return{user:t.user.currentUser,isRequestInProgress:null===(e=t.app.loading)||void 0===e?void 0:e.userPasswordReset}}),g)(b)},5926:function(t,e,r){r.r(e);var n=r(7294),o=r(7644),i=r(2826);e.default=function(){return n.createElement(n.Fragment,null,n.createElement("h3",null,"Reset your password"),n.createElement(o.Z,{inputClass:"form__control",buttonClass:"button",buttonSpanClass:"button__text",patternTitle:i.Fp.PASSWORD,pattern:i.NN.PASSWORD}))}},2826:function(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){var o,i,a,s;o=t,i=e,a=r[e],s=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i),(i="symbol"==n(s)?s:String(s))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEac
2h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,{Fp:function(){return s},NN:function(){return a}});var a={PASSWORD:"(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*\\W)[a-zA-Z\\d\\W]*.{8}",EMAIL:"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$"},s={PASSWORD:"Requires a combination of uppercase and lowercase letters, numbers, and special characters. It needs a minimum of 8 characters."},u={do_not_contact:"1","marketing_preferences[opt_in_terms]":"on"},c=i(i({},u),{},{hfhp:""}),l=i(i({},u),{},{body:""}),f=[{fieldName:"authenticity_token",fieldType:"hidden",fieldElement:"input",fieldLabel:""},{fieldName:"marketing_preferences[opt_in_terms]",fieldType:"hidden",fieldElement:"input",fieldLabel:""},{fieldName:"do_not_contact",fieldType:"hidden",fieldElement:"input",fieldLabel:""}],p=[].concat(f,[{fieldName:"f_id",fieldType:"hidden",fieldElement:"input",fieldLabel:""},{fieldName:"redirect_url",fieldType:"hidden",fieldElement:"input",fieldLabel:""},{fieldName:"hfhp",fieldType:"text",fieldElement:"input",fieldLabel:""}]),d=[].concat(f,[{fieldName:"lead_type",fieldType:"hidden",fieldElement:"input",fieldLabel:""},{fieldName:"body",fieldType:"text",fieldElement:"input",fieldLabel:""}]);e.ZP={GENERIC_CUSTOM_FORM_ELEMENTS:p,LEAD_FORM_ELEMENTS:d,DEFAULT_GENERIC_CUSTOM_FORM_VALUES:c,DEFAULT_LEAD_FORM_VALUES:l,FAILED_FORM_SUBMISSION_REQUEST_MESSAGE:{default:"Sorry, something went wrong. Try again later."}}}}]);

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.