mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 15:31:06 +03:30
1 line
13 KiB
JavaScript
Vendored
1 line
13 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{"S++u":function(t,e,r){"use strict";r.r(e);var n=r("Y8XJ"),a=r("85lN"),o=r("L2JU");function i(t){return(i="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})(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),s=new P(n||[]);return a(i,"_invoke",{value:L(t,r,s)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v="suspendedStart",d="executing",m="completed",y={};function g(){}function b(){}function x(){}var w={};f(w,c,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(W([])));k&&k!==r&&n.call(k,c)&&(w=k);var C=x.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(a,o,s,c){var l=p(t[a],t,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return o=o?o.then(a,a):a()}})}function L(e,r,n){var a=v;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:t,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===v)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var l=p(e,r,n);if("normal"===l.type){if(a=n.done?m:"suspendedYield",l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=m,n.method="throw",n.arg=l.arg)}}}function E(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=p(a,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function M(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function W(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=x,a(C,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},O(j.prototype),f(j.prototype,l,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,a,o){void 0===o&&(o=Promise);var i=new j(h(t,r,n,a),o);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(C),f(C,u,"Generator"),f(C,c,(function(){return this})),f(C,"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=W,P.prototype={constructor:P,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(S),!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 a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},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),y},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),S(r),y}},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 a=n.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:W(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function c(t,e,r,n,a,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,a)}function l(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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h,p,v={data:function(){return{user:{cell_number:"",gender:"",name:"",email:"",address:""},items:["Male","FeMale"],rules:{required:function(t){return!!t||"Required."},counter:function(t){return!t||0==t.length||t.length>=5||"Min 5 characters"},email:function(t){if(t&&t.length>0){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)||"Invalid e-mail."}return!0}}}},created:function(){this.user=this.$store.state.user},methods:u(u({saveInfo:(h=s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.$refs.form.validate()){t.next=5;break}return t.next=3,n.a.post(a.a.updateInfo,this.user);case 3:(e=t.sent)&&200==e.status&&(this.$store.dispatch("info",{},{root:!0}),this.$router.push({name:"Dashboard"}));case 5:case"end":return t.stop()}}),t,this)})),p=function(){var t=this,e=arguments;return new Promise((function(r,n){var a=h.apply(t,e);function o(t){c(a,r,n,o,i,"next",t)}function i(t){c(a,r,n,o,i,"throw",t)}o(void 0)}))},function(){return p.apply(this,arguments)})},Object(o.d)("modal",["changeCurrentModal"])),{},{changePassword:function(){this.changeCurrentModal({modal:"modal-auth-change-password"})}})},d=r("KHd+"),m=Object(d.a)(v,(function(){var t=this,e=t._self._c;return e("v-form",{ref:"form"},[e("v-container",{attrs:{"grid-list-xs":"",fluid:""}},[e("material-card",{attrs:{color:"black",title:"My Info"}},[e("v-layout",{staticClass:"px-5 my-3",attrs:{"align-center":"","justify-center":"",wrap:""}},[e("v-flex",{staticClass:"WM-FlexCenter",attrs:{xs12:"",md4:"",sm4:""}},[e("v-icon",{staticClass:"fa fa-align-left mr-2 WM-Margin-B-8"}),t._v(" "),e("v-text-field",{staticClass:"py-3 pr-3",attrs:{name:"name",label:"Name",color:"black",rules:[t.rules.required,t.rules.counter]},model:{value:t.user.name,callback:function(e){t.$set(t.user,"name",e)},expression:"user.name"}})],1),t._v(" "),e("v-flex",{staticClass:"WM-FlexCenter pl-3",attrs:{xs12:"",sm4:"",md4:""}},[e("v-icon",{staticClass:"fa fa-male mr-2 WM-Margin-B-8"}),t._v(" "),e("v-select",{staticClass:"py-3 pr-3",attrs:{items:t.items,label:"Gender",name:"gender","single-line":"",rules:[t.rules.required],color:"black"},model:{value:t.user.gender,callback:function(e){t.$set(t.user,"gender",e)},expression:"user.gender"}})],1),t._v(" "),e("v-flex",{staticClass:"WM-FlexCenter pl-3",attrs:{xs12:"",sm4:"",md4:""}},[e("v-icon",{staticClass:"fa fa-phone mr-2 WM-Margin-B-8"}),t._v(" "),e("v-text-field",{staticClass:"py-3 pr-3",attrs:{name:"cellnumber",label:"Cell Number",color:"black",disabled:""},model:{value:t.user.cell_number,callback:function(e){t.$set(t.user,"cell_number",e)},expression:"user.cell_number"}})],1)],1),t._v(" "),e("v-layout",{staticClass:"px-5 mb-3",attrs:{"align-center":"","justify-center":"",wrap:""}},[e("v-flex",{staticClass:"WM-FlexCenter pl-3",attrs:{xs12:"",sm4:"",md4:""}},[e("v-icon",{staticClass:"fa fa-envelope mr-2 WM-Margin-B-8",staticStyle:{"margin-top":"70px"}}),t._v(" "),e("v-text-field",{staticClass:"px-2",staticStyle:{"margin-top":"72px"},attrs:{name:"emailaddress",label:"Email Address",rules:[t.rules.email],color:"black"},model:{value:t.user.email,callback:function(e){t.$set(t.user,"email",e)},expression:"user.email"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",sm8:"",md8:""}},[e("v-textarea",{staticClass:"pa-2",attrs:{"prepend-icon":"fa fa-sort-amount-desc",color:"black",rules:[t.rules.counter],name:"address"},scopedSlots:t._u([{key:"label",fn:function(){return[e("div",[t._v("Address")])]},proxy:!0}]),model:{value:t.user.address,callback:function(e){t.$set(t.user,"address",e)},expression:"user.address"}})],1)],1),t._v(" "),e("v-layout",{attrs:{row:"",wrap:"","justify-center":"","align-center":""}},[e("v-flex",{staticClass:"text-md-center text-xs-center",attrs:{xs12:"",md2:"",sm2:""}},[e("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:function(e){return t.saveInfo()}}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-check")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("SAVE")])],1)],1),t._v(" "),e("v-flex",{staticClass:"text-md-center text-sm-center text-xs-center",attrs:{xs12:"",md3:"",sm3:""}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black",on:{click:t.changePassword}},[e("v-icon",{staticClass:"black--text mr-1"},[t._v("fas fa-refresh")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v(" Change Password ")])],1)],1),t._v(" "),e("v-flex",{staticClass:"text-md-center text-sm-center text-xs-center",attrs:{xs12:"",md1:"",sm1:""}},[e("router-link",{attrs:{to:{name:"Dashboard"}}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"},[e("v-icon",{staticClass:"black--text"},[t._v("keyboard_arrow_left")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Back")])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=m.exports}}]); |