vendor: 4,448 bytes, lines 1-2
1/*! For license information please see MyAccount-chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6272],{3724:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});r(3238),r(1418),r(5374),r(5849),r(9785),r(5901),r(2189),r(1047),r(5769),r(7460),r(4078),r(8521),r(6798),r(2923),r(1897),r(4374),r(2274),r(3352),r(987),r(190),r(2410);var n=r(9357);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h={};function f(){}function m(){}function p(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==t&&r.call(g,a)&&(y=g);var w=p.prototype=f.prototype=Object.create(y);function L(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,a,s,c){var l=d(e[i],e,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==o(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(h).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}}function E(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function x(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=p,l(w,"constructor",p),l(p,"constructor",m),m.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},L(b.prototype),l(b.prototype,s,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new b(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function a(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function s(e){a(i,n,o,s,c,"next",e)}function c(e){a(i,n,o,s,c,"throw",e)}s(void 0)}))}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const d=l((function e(t){var r,o,a,c=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"handleFindUserCta",s(i().mark((function e(){var t,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={email:c.email.value},!c.validateApi){e.next=9;break}return e.next=4,fetch(c.validateApi,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 4:return r=e.sent,e.next=7,r.json();case 7:(o=e.sent)&&(o.error?(c.formErrorLabel.textContent=o.error.Message,c.formErrorLabel.classList.add("display-element"),n.gT.enableButton(c.findUserCta)):(c.fName.parentNode.classList.remove("hide-element"),c.lName.parentNode.classList.remove("hide-element"),c.fName.value=o.firstName,c.lName.value=o.lastName,c.findUserCta.classList.add("hide-element"),c.deleteCta.classList.add("display-element"),c.userId=o.UserId),n.gT.enableButton(c.deleteCta));case 9:case"end":return e.stop()}}),e)})))),u(this,"handleDeleteCTA",s(i().mark((function e(){var t,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={userId:c.userId},e.next=3,fetch(c.deleteApi,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 3:return r=e.sent,e.next=6,r.json();case 6:(o=e.sent)?o.error?(c.formErrorLabel.textContent=o.error.Message,c.formErrorLabel.classList.add("display-element"),c.formSucessLabel.classList.remove("display-element"),n.gT.enableButton(c.deleteCta)):(c.findUserCta.classList.remove("hide-element"),c.deleteCta.classList.remove("display-element"),c.formSucessLabel.textContent=o.Message,c.formErrorLabel.classList.remove("display-element"),c.formSucessLabel.classList.add("display-element"),c.fName.parentNode.classList.add("hide-element"),c.lName.parentNode.classList.add("hide-element"),c.email.value="",n.gT.enableButton(c.findUserCta)):(c.formErrorLabel.classList.remove("display-element"),c.formSucessLabel.classList.remove("display-element"));case 8:case"end":return e.stop()}}),e)})))),u(this,"handleEditInfo",s(i().mark((function e(){var t,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={firstName:c.fName.value,lastName:c.lName.value,email:c.email.value,office
2Loc:c.officeLoc.value,profilePic:c.profilePicData},!c.editInfoApi){e.next=10;break}return e.next=4,fetch(c.editInfoApi,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 4:return r=e.sent,e.next=7,r.json();case 7:(n=e.sent)&&"true"===n?(c.formErrorLabel.classList.add("display-element"),c.formSucessLabel.classList.remove("display-element")):(c.formErrorLabel.classList.remove("display-element"),c.formSucessLabel.classList.add("display-element")),c.enableButton(c.saveCTA);case 10:case"end":return e.stop()}}),e)})))),u(this,"handleChangePwd",s(i().mark((function e(){var t,r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={oldPwd:c.oldPwd.value,newPwd:c.newPwd.value},console.log("payload..",t),!c.changePwdApi){e.next=11;break}return e.next=5,fetch(c.changePwdApi,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});case 5:return r=e.sent,e.next=8,r.json();case 8:(n=e.sent)&&0==n.IsUpdated?n.error?(c.formErrorLabel.textContent=n.error.message,c.formErrorLabel.classList.add("display-element"),c.formSucessLabel.classList.remove("display-element")):(c.formErrorLabel.textContent="Something wrong!! Please try again",c.formErrorLabel.classList.add("display-element"),c.formSucessLabel.classList.remove("display-element")):(c.formErrorLabel.classList.remove("display-element"),c.formSucessLabel.classList.add("display-element")),c.enableButton(c.saveCTA);case 11:case"end":return e.stop()}}),e)})))),this.$el=t,this.editInfoMitem=this.$el.querySelector("#editInfoMitem"),this.changePwdMitem=this.$el.querySelector("#changePwdMitem"),this.personalInfoForm=this.$el.querySelector("#personalInfoForm"),this.changePwdForm=this.$el.querySelector("#changePwdForm"),this.formErrorLabel=this.$el.querySelector(".myaccount__form--error"),this.formSucessLabel=this.$el.querySelector(".myaccount__form--success"),this.quickLinksCarousel=this.$el.querySelector(".subsector-carousel-glide"),this.quickSlides=this.$el.querySelectorAll("ul.glide__slides li"),this.inpFile=this.$el.querySelector("#profilePic"),this.uploadImgCta=this.$el.querySelector(".myaccount--editxt"),this.profileImg=this.$el.querySelector(".myaccount__imgwrapper>img"),null===(r=this.inpFile)||void 0===r||r.addEventListener("change",(function(){var e=c.inpFile.files;if(FileReader&&e&&e.length){var t=new FileReader;t.onload=function(){console.log("fr.result..",t.result),c.profileImg.src=t.result,c.profilePicData=t.result},t.readAsDataURL(e[0])}else console.log("not supported...")})),this.myAccForm=this.$el.querySelector(".myaccount__form"),this.accContainer=this.$el.querySelector(".myaccount__container"),this.deleteCta=this.$el.querySelector(".myaccount__ctadelete"),this.findUserCta=this.$el.querySelector(".myaccount__ctafuser"),n.gT.checkForElement(this.accContainer))&&(this.validateApi=null===(o=this.accContainer)||void 0===o?void 0:o.dataset.validateApi,this.deleteApi=null===(a=this.accContainer)||void 0===a?void 0:a.dataset.deleteApi);if(n.gT.checkForElement(this.myAccForm)&&(this.editInfoApi=this.myAccForm.dataset.editinfoApi,this.changePwdApi=this.myAccForm.dataset.changepwdApi),n.gT.checkForElement(this.personalInfoForm)){this.fName=this.personalInfoForm.querySelector("#fName"),this.lName=this.personalInfoForm.querySelector("#lName"),this.email=this.personalInfoForm.querySelector("#email"),this.officeLoc=this.personalInfoForm.querySelector("#officeLoc"),this.saveChangesCta=this.personalInfoForm.querySelector(".myaccount__submit");var l=[this.fName,this.lName,this.email,this.officeLoc];n.gT.checkForElement(this.deleteCta)?(l=[this.fName,this.lName,this.email],this.findUserCta.addEventListener("click",s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.gT.disableButton(c.findUserCta),c.handleFindUserCta();case 2:case"end":return e.stop()}}),e)})))),this.deleteCta.addEventListener("click",s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.gT.disableButton(c.deleteCta),c.handleDeleteCTA();case 2:case"end":return e.stop()}}),e)}))))):n.gT.checkForElement(this.saveChangesCta)&&(n.gT.disableButton(this.saveChangesCta),this.saveChangesCta.addEventListener("click",
2s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.handleEditInfo();case 1:case"end":return e.stop()}}),e)}))))),l.forEach((function(e){null==e||e.addEventListener("change",(function(t){n.gT.checkFieldError(e)?n.gT.disableButton(c.saveChangesCta):n.gT.enableButton(c.saveChangesCta)}))}))}n.gT.checkForElement(this.changePwdForm)&&(this.oldPwd=this.changePwdForm.querySelector("#oldPwd"),this.newPwd=this.changePwdForm.querySelector("#newPwd"),this.confirmPwd=this.changePwdForm.querySelector("#confirmPwd"),this.changeCta=this.changePwdForm.querySelector(".myaccount__submit--ctalink"),this.changeCta.addEventListener("click",s(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.handleChangePwd();case 1:case"end":return e.stop()}}),e)})))),n.gT.disableButton(this.changeCta),[this.oldPwd,this.newPwd,this.confirmPwd].forEach((function(e){e.addEventListener("keyup",(function(e){c.newPwd.value!==c.confirmPwd.value?(c.formErrorLabel.textContent="Passwords doesn't match",c.formErrorLabel.classList.add("display-element")):(c.formErrorLabel.textContent="",c.formErrorLabel.classList.remove("display-element")),1==n.gT.checkFieldError(c.oldPwd)||1==n.gT.checkFieldError(c.newPwd)||1==n.gT.checkFieldError(c.confirmPwd)||c.newPwd.value!==c.confirmPwd.value?n.gT.disableButton(c.changeCta):n.gT.enableButton(c.changeCta)}))})));this.editInfoMitem&&this.editInfoMitem.addEventListener("click",(function(){c.editInfoMitem.classList.add("active"),c.changePwdMitem.classList.remove("active"),c.personalInfoForm.classList.remove("hide-element"),c.changePwdForm.classList.add("hide-element")})),this.changePwdMitem&&this.changePwdMitem.addEventListener("click",(function(){c.editInfoMitem.classList.remove("active"),c.changePwdMitem.classList.add("active"),c.changePwdForm.classList.remove("hide-element"),c.personalInfoForm.classList.add("hide-element")}))}))}}]);
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.