PageSourceSearch

https://spendwell.com/_next/static/chunks/8658-bf5faedf4ba77243.js

js spendwell.com collected 2026-10-08 10:14:24 UTC 14,619 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8658],{44054:function(e,n,r){r.d(n,{$W:function(){return N},C1:function(){return j},Do:function(){return _},Hc:function(){return w},JE:function(){return k},KY:function(){return O},Kw:function(){return P},Nb:function(){return S},Sl:function(){return R},Xc:function(){return C},aA:function(){return y},fo:function(){return q},qH:function(){return v},qz:function(){return x},xt:function(){return D}});var t=r(85893),i=(r(67294),r(9669)),s=r.n(i),o=(r(75589),r(45150)),a=r(40849),c=r(75264),u=r(20370),l=r(416);function d(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){d(e,n,r[n])}))}return e}function h(){document.getElementById("signupPassword")}var f="https://back-355547835648.us-central1.run.app";var m,b,y=function(e){var n=e.username,r=e.email,t="/api/validateusername/",i="/api/validateemail/";return!0===e.authenticated&&(n=e.username+"/"+e.uid,r=e.email+"/"+e.uid,t="/api/validateusernameSettings/",i="/api/validateemailSettings/"),e.username?new Promise((function(e,r){s().get(f+t+n).then((function(n){"not"===n.data.message?r({username:"That username is already taken."}):e({username:"Valid username."})})).catch((function(e){return r(e)}))})):e.email?new Promise((function(e,n){s().get(f+i+r).then((function(r){"not"===r.data.message?n({email:"That email is already taken."}):e({email:"Valid email."})})).catch((function(e){return n(e)}))})):void 0},v=function(e){var n=e.input,r=e.type,i=e.placeholder,s=(e.change,e.reveal),d=e.id,f=e.className,m=e.label,b=e.options,y=e.meta,v=y.asyncValidating,j=y.touched,x=y.error,w="eye";"text"===r&&(w="eye slash");!0===s&&(o.Z,h());var g=(0,t.jsx)("div",{});return v&&(g=(0,t.jsx)("div",{className:"async-val",children:(0,t.jsx)(a.Z,{})})),"select"===r?(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Z.Field,{children:(0,t.jsx)(u.Z,p({selection:!0,options:b},n,{value:n.value,placeholder:i,type:r,onChange:function(e,r){return n.onChange(r.value)}}))}),j&&x&&(0,t.jsx)("span",{className:"required",children:x})]}):"textarea"===r?(0,t.jsx)("div",{children:(0,t.jsxs)("div",{children:[(0,t.jsx)(l.Z,p({},n,{placeholder:i,type:r,rows:8})),j&&x&&(0,t.jsx)("span",{className:"required",children:x})]})}):"text"===r?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:v?"async-validating":f,children:[(0,t.jsx)("input",p({},n,{id:d,type:r,placeholder:i,autoComplete:"fugoogle"})),m,g]}),j&&x&&(0,t.jsx)("span",{className:"required",children:x})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:v?"async-validating":f,children:[(0,t.jsx)("input",p({},n,{id:d,placeholder:i,type:r})),m,g]}),j&&x&&(0,t.jsx)("span",{className:"required",children:x})]})},j=function(e){return e?void 0:"Required"},x=function(e,n){return e!==n.password?"Passwords must match":void 0},w=function(e,n){return e!==n.username?"Usernames must match":void 0},g=function(e){return function(n){return n&&n.length>e?"Must be ".concat(e," characters or less"):void 0}},N=(g(15),m=0,function(e){return e&&e.length>m?"That's just not right":void 0}),O=g(25),Z=function(e){return function(n){return n&&n.length<e?"Must be at least ".concat(e," characters in length"):void 0}},k=Z(2),S=Z(8),P=Z(3),_=(b=13,function(e){return e&&!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(e)?"Please enter a valid email address":void 0}),C=function(e){return e&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/.test(e)?"Your password must include at least one uppercase and one lowercase letter as well as at least one number":void 0},R=function(e){return e&&/(^[0-9_\-])/.test(e)?"Must begin with a letter of the alphabet":void 0},q=function(e){return e&&/[^a-zA-Z0-9 ]/i.test(e)?"Only alphanumeric characters are allowed":void 0},D=function(e){return e&&/[^a-zA-Z0-9_\-]/i.test(e)?"Only lowercase letters, numbers, dashes and underscores are allowed":void 0}},18658:function(e,n,r){r.d(n,{Z:function(){return z}});var t=r(85893),i=r(67294),s=(r(41664),r(14416)),o=r(11163),a=r(58298),c=r(75589),u=r(38367),l=r(55770),d=r(68156),p=r(80967),h=r(14890),f=r(71321),m=r(79161),b=r(44054),y=r(75264),v=r(45150);function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function g(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}
1function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){g(e,n,r[n])}))}return e}function Z(e,n){return!n||"object"!==S(n)&&"function"!==typeof n?j(e):n}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var S=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function P(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,t=N(e);if(n){var i=N(this).constructor;r=Reflect.construct(t,arguments,i)}else r=t.apply(this,arguments);return Z(this,r)}}var _=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(o,e);var n,r,i,s=P(o);function o(){var e;return x(this,o),g(j(e=s.apply(this,arguments)),"handleClick",(function(n){e.props.router.push(n)})),e}return n=o,(r=[{key:"handleVerifyUser",value:function(e){var n=e.email,r=e.password;this.props.verifyUserDiscontinue({email:n,password:r}).then((function(){}))}},{key:"handleDiscontinueSubmit",value:function(){var e=this;this.props.discontinueUser().then((function(){e.props.user.authenticated||(e.props.router.push("/"),window.location.reload())}))}},{key:"renderInput",value:function(e){return(0,t.jsxs)("div",{children:[(0,t.jsx)("input",O({className:"form-control"},e.input,{type:e.type,placeholder:e.placeholder})),e.meta.touched&&e.meta.error&&(0,t.jsx)("span",{className:"error",children:e.meta.error})]})}},{key:"render",value:function(){var e=this.props.handleSubmit;if(this.props.errors.verify&&this.props.errors.verify,this.props.errors.discontinue&&this.props.errors.discontinue,!0===this.props.canDiscontinue)return(0,t.jsx)("div",{className:"can-submit",children:(0,t.jsxs)(y.Z,{className:"auth-form signin-on",onSubmit:e(this.handleDiscontinueSubmit.bind(this)),children:[(0,t.jsxs)("div",{className:"now-verified",children:[(0,t.jsxs)("h4",{children:[(0,t.jsx)("span",{className:"square-number",children:"1"}),"Verified"]}),(0,t.jsx)("br",{}),(0,t.jsx)(f.Z,{name:"email",component:this.renderInput,props:{disabled:!0},placeholder:"account email verified",type:"text"}),(0,t.jsx)("br",{}),(0,t.jsx)(f.Z,{name:"password",type:"password",props:{disabled:!0},placeholder:"account password verified",component:this.renderInput}),(0,t.jsx)("br",{}),(0,t.jsx)(p.Z,{action:"submit",disabled:!0,className:"dark-button this",children:"Verified"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{children:[(0,t.jsx)("span",{className:"square-number",children:"2"}),"Your account has been verfied. You may now discontinue your membership. "]}),(0,t.jsx)(p.Z,{action:"submit",className:"discontinue-submit dark-button",children:"Discontinue My Membership"}),(0,t.jsx)(m.bZ,{error:this.props.errors.error,message:this.props.errors.discontinue}),(0,t.jsx)("h4",{children:"You will be logged out of Spendwell.com upon completing this process."})]})]})});var n=this;return(0,t.jsxs)("div",{className:"cannot-submit",children:[(0,t.jsxs)(y.Z,{className:"auth-form signin-on",onSubmit:e(this.handleVerifyUser.bind(this)),children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{children:[(0,t.jsx)("span",{className:"square-number",children:"1"}),"To proceed, verify your membership credentials"]}),(0,t.jsx)("br",{}),(0,t.jsx)(f.Z,{name:"email",component:b.qH,validate:[b.C1,b.Do],placeholder:"Account email",type:"email"}),(0,t.jsx)("br",{}),(0,t.jsx)(f.Z,{name:"password",type:"password",placeholder:"Account password",component:b.qH,validate:[b.C1]}),(0,t.jsx)("br",{}),(0,t.jsx)(p.Z,{action:"submit",className:"dark-button this",children:"Verify Me"}),(0,t.jsx)(m.bZ,{error:this.props.errors.error,message:this.props.errors.verify})]}),(0,t.jsxs)("div",{className:"not-yet-verified",children:[(0,t.jsxs)("h4",{children:[(0,t.jsx)("span",{className:"square-number",children:"2"}),"Your account is not currently verified."]}),(0,t.jsx)(p.Z,{action:"submit",disabled:!0,className:"discontinue-submit dark-button",children:"Discontinue My Membership"})]})]}),(0,t.jsx)("div",{className:"left-float-link",children:(0,t.jsxs)("div",{className:"mainLink",onClick:function(){return n.handleClick("/account/reset-password")},children:["Forgot your password? ",(0,t.jsx)(v.Z,{className:"right-arrow-link-latest",name:"chevron right",size:"small"})]})})]})}}])&&w(n.prototype,r),i&&w(n,i),o}(i.Component);_=(0,a.Z)({form:"signin"})(_);var C=(0,o.withRouter)((0,s.connect)((function(e){return{canDiscontinue:e.user.canDiscontinue,user:e.user,errors:e.errors}}),(function(e){return(0,h.DE)({verifyUserDiscontinue:c.zIw,discontinueUser:c.CBw},e)}))((0,u.Z)(_)));function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function D(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function E(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,n){return!n||"object"!==M(n)&&"function"!==typeof n?R(e):n}function Y(e,n){return(Y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var M=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function U(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,t=A(e);if(n){var i=A(this).constructor;r=Reflect.construct(t,arguments,i)}else r=t.apply(this,arguments);return T(this,r)}}var V=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Y(e,n)}(o,e);var n,r,i,s=U(o);function o(){var e;return q(this,o),E(R(e=s.apply(this,arguments)),"handleClick",(function(n){e.props.router.push(n)})),e}return n=o,(r=[{key:"render",value:function(){if(this.props.handleSubmit,this.props.user.discontinue_final,this.props.user.authenticated||this.props.user.discontinue_success)return this.props.user.discontinue&&this.props.user.discontinue_success?(0,t.jsx)("div",{className:"main-body single discontinue",children:(0,t.jsx)(l.Z,{stackable:!0,columns:2,children:(0,t.jsxs)(l.Z.Column,{className:"auth-form-column",children:[(0,t.jsx)("div",{className:"regular-header",children:"discontinuation request successful"}),(0,t.jsx)(d.Z,{children:(0,t.jsx)("p",{children:"Your membership account and all of its associated data will be deleted from our systems seven business days from today. Spendwell has sent you an email confirming your account discontinuation. If you choose to keep your account, you will need to act on or prior to the date below in order to preserve your membership account."})})]})})}):(0,t.jsx)("div",{className:"main-body single discontinue",children:(0,t.jsx)(l.Z,{stackable:!0,columns:2,children:(0,t.jsxs)(l.Z.Column,{className:"auth-form-column",children:[(0,t.jsx)("div",{className:"regular-header",children:"SORRY TO SEE YOU GO"}),(0,t.jsxs)("div",{className:"pad-top-5",children:[(0,t.jsx)("p",{children:"Please note, a discontinued membership cannot be reinstated. A new membership will be required in order to rejoin Spendwell."}),(0,t.jsx)("p",{children:"Discontinuing your membership will  delete all of the data and activity you have accumulated with Spendwell. This includes your priorities and the impact they have on Spendwell's reports and rankings."}),(0,t.jsx)(C,{})]})]})})});var e=this;return(0,t.jsx)("div",{className:"main-body single discontinue",children:(0,t.jsx)(l.Z,{stackable:!0,columns:2,children:(0,t.jsx)(l.Z.Column,{className:"auth-form-column",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:(0,t.jsx)(d.Z,{children:(0,t.jsx)("div",{className:"invalid-delayed",children:"You'll need to sign in to Spendwell to discontinue your membership."})})}),(0,t.jsx)("br",{}),(0,t.jsx)("p",{children:(0,t.jsx)("div",{className:"mainLink",onClick:function(){return e.handleClick("/account/signin")},children:(0,t.jsx)(p.Z,{className:"light-button",children:"Sign in"})})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)("div",{className:"mainLink",onClick:function(){return e.handleClick("/account/reset-password")},children:(0,t.jsx)(p.Z,{className:"light-button",children:"Forgot your password?"})})})]})})})})}}])&&D(n.prototype,r),i&&D(n,i),o}(i.Component);V=(0,a.Z)({form:"signin"})(V);var z=(0,o.withRouter)((0,s.connect)((function(e){return{user:e.user,auth:e.auth,errorMessage:e.user.errormessage}}),null)((0,u.Z)(V)))}}]);

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.