(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{118:function(e,t,n){"use strict";n(11),n(72),n(12),n(54),n(66),n(27),n(34),n(35),n(10),n(99),n(119);var r=n(19);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,f=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){f=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(f)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(e){return e.components.default})).filter((function(e){return"function"==typeof e&&!e.options&&!e.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){d.unobserve(this.$el);var e,t=o(this.getPrefetchComponents());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(e){t.e(e)}finally{t.f()}}}}}},142:function(e,t,n){"use strict";n.r(t);n(51);var r,o,c=n(18),l=n(147),f=n(73),d=n(148),h={name:"Navigation",mixins:[l.a],data:function(){return{userService:new f.a(this.$axios,this.$config,this.$store),fileService:new d.a(this.$axios,this.$config),active:"Home",isResetting:!1,showUserProfileModal:!1}},computed:{isLoggedIn:function(){return this.$auth.loggedIn},userEmail:function(){var e=this.$store.state.user.myProfile;return null==e?"":e.userEmail}},methods:{exportGiact:(o=Object(c.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fileService.exportGiact("submitted");case 3:null==(t=e.sent)||null==t.result?this.$notifyError("Error","There was a problem exporting data for Giact"):!1===t.result.isSuccess?this.$notifyError("Error",t.result.errorMessage):this.$notifySuccess("Success","Giact files for "+t.result+" vendors was emailed to you");case 5:return e.prev=5,e.finish(5);case 7:case"end":return e.stop()}}),e,this,[[0,,5,7]])}))),function(){return o.apply(this,arguments)}),shouldShowAdminMenu:function(){return this.isVenifyAdmin()||this.isOrgAdmin()||this.isOrgPowerUser()},shouldShowVendorManagementMenu:function(){return this.isVenifyAdmin()||this.isOrgUser()},shouldShowPasswordResetMenu:function(){if(this.$store.state.user&&this.$store.state.user.myProfile&&this.$store.state.user.myProfile.isOrganizationUser){var e=this.$store.state.organizations.activeOrganization;if(null==e)return!0;if(1==e.disablePasswordReset)return!1}return!0},changePassword:(r=Object(c.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isResetting=!0,e.next=3,this.userService.sendPasswordReset();case 3:(t=e.sent)&&t.isSuccess&&this.logout();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)}),logout:function(){var e,t=this;e=this.$config.isDevelopment?"http://localhost:8080":"https://www.venify.app",this.$store.commit("organizations/clear"),this.$auth.logout().then((function(){window.location.href="https://"+t.$auth.strategies.auth0.options.domain+"/v2/logout?client_id="+t.$auth.strategies.auth0.options.client_id+"&returnTo="+e}))},navigateTo:function(e){this.$router.push({name:e})}}},m=n(39),component=Object(m.a)(h,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.isLoggedIn?r("b-navbar",{attrs:{toggleable:"lg",type:"dark",variant:"dark"}},[r("b-navbar-brand",{attrs:{href:"#"}},[r("img",{attrs:{src:n(236),width:"32",height:"32"}})]),e._v(" "),r("b-navbar-toggle",{attrs:{target:"nav-collapse"}}),e._v(" "),r("b-collapse",{attrs:{id:"nav-collapse","is-nav":""}},[r("b-navbar-nav",[r("b-nav-item",{on:{click:function(t){return e.navigateTo("index")}}},[e._v("Home")]),e._v(" "),r("b-nav-item",{on:{click:function(t){return e.navigateTo("Policy")}}},[e._v("Privacy/Terms")]),e._v(" "),r("b-nav-item",{on:{click:function(t){return e.navigateTo("Messages")}}},[e._v("Messages")]),e._v(" "),e.shouldShowVendorManagementMenu()?r("b-nav-item",{on:{click:function(t){return e.navigateTo("admin-ManageVendors")}}},[e._v("Manage Vendors")]):e._e(),e._v(" "),e.shouldShowAdminMenu()?r("b-nav-item-dropdown",{attrs:{text:"Admin"}},[r("b-dropdown-item",{on:{click:function(t){return e.navigateTo("Notes")}}},[e._v("Notes")]),e._v(" "),r("b-dropdown-item",{on:{click:e.exportGiact}},[e._v("Export Giact files")])],1):e._e()],1),e._v(" "),r("b-navbar-nav",{staticClass:"ml-auto"},[r("b-nav-item-dropdown",{attrs:{right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[r("b-icon",{attrs:{icon:"person-circle"}})]},proxy:!0}],null,!1,79476115)},[e._v(" "),r("b-dropdown-item",{attrs:{href:"#"},on:{click:function(t){e.showUserProfileModal=!0}}},[r("ven-icon",{attrs:{icon:"pencil"}}),e._v("\n Logged in as\n "),r("span",{staticStyle:{color:"#498B98"}},[e._v(e._s(e.userEmail))])],1),e._v(" "),e.shouldShowPasswordResetMenu()?r("b-dropdown-item",{attrs:{href:"#"},on:{click:function(t){return e.navigateTo("Password")}}},[e._v("Change Password")]):e._e(),e._v(" "),r("b-dropdown-divider"),e._v(" "),r("b-dropdown-item",{attrs:{href:"#",disabled:!e.isLoggedIn},on:{click:function(t){return e.logout()}}},[e._v("Logout")])],1)],1)],1)],1):e._e(),e._v(" "),r("b-modal",{attrs:{"hide-footer":"",title:"User Profile"},model:{value:e.showUserProfileModal,callback:function(t){e.showUserProfileModal=t},expression:"showUserProfileModal"}},[r("div",{staticClass:"text-center"},[r("user-profile")],1)])],1)}),[],!1,null,"0e6a7e9b",null);t.default=component.exports;installComponents(component,{VenIcon:n(197).default,UserProfile:n(198).default})},147:function(e,t,n){"use strict";n(51);var r,o=n(18),c=(n(11),n(10),n(54),n(237),n(73));t.a={name:"RoleMixin",data:function(){return{roleMapping:new Map,roleDescription:new Map,userService:new c.a(this.$axios,this.$config,this.$store)}},created:function(){this.setupRoleMap(),this.setupRoleDescription()},computed:{roleId:function(){return this.$store.state.vendor.myVendorUser?this.$store.state.vendor.myVendorUser.roleId:this.$store.state.organizations.myOrganizationUser?this.$store.state.organizations.myOrganizationUser.roleId:-1}},methods:{setupRoleMap:function(){this.roleMapping[1]="VenifyAdmin",this.roleMapping[2]="OrgAdmin",this.roleMapping[3]="OrgUser",this.roleMapping[4]="OrgReadonly",this.roleMapping[5]="OrgPowerUser",this.roleMapping[6]="VendorAdmin",this.roleMapping[7]="VendorUser",this.roleMapping[8]="VendorReadonly",this.roleMapping[9]="VendorPowerUser"},setupRoleDescription:function(){this.roleDescription[1]="Venify Admin",this.roleDescription[2]="GC Admin",this.roleDescription[3]="GC Standard User",this.roleDescription[4]="GC Readonly User",this.roleDescription[5]="GC Power User",this.roleDescription[6]="Vendor Admin",this.roleDescription[7]="Vendor Standard User",this.roleDescription[8]="Vendor Readonly User",this.roleDescription[9]="Vendor Power User"},getVendorRoles:function(){return[7,8,6,9]},getRoleMapping:function(){return this.roleMapping},getRoleDescription:function(){return this.roleDescription},getRoleNameForUser:function(){return this.roleMapping[this.roleId]},getRoleDescriptionForUser:function(){return this.roleDescription[this.roleId]},shouldSeeTos:function(){return this.isVendorUser()},isVenifyAdmin:function(){return 1===this.roleId},isOrgAdmin:function(){return 2===this.roleId},isOrgPowerUser:function(){return 5===this.roleId},isOrgUser:function(){return 2===this.roleId||3===this.roleId||4===this.roleId||5===this.roleId},isVendorAdmin:function(){return 6===this.roleId},isVendorPowerUser:function(){return 9===this.roleId},isVendorUser:function(){return 1===this.roleId||6===this.roleId||7===this.roleId||8===this.roleId||9===this.roleId},isAdmin:function(){return 1===this.roleId||2===this.roleId||6===this.roleId},shouldRedirect:(r=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.userService.populateMyInfoIfEmpty();case 2:if(!1!==this.isAdmin()){e.next=5;break}return e.next=5,this.$router.push({name:"index"});case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}}},148:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(120),n(51);var r=n(18),o=n(25),c=n(33),l=function(){function e(t,n){if(Object(o.a)(this,e),this.axios=null,this.config=null,null==t)throw"$axios was not provided to FileService";if(null==n)throw"$config was not provided to FileService";this.axios=t,this.config=n}var t,n,l,f,d,h,m;return Object(c.a)(e,[{key:"getAllByQuestionId",value:(m=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r){var o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<=0)){e.next=2;break}return e.abrupt("return","orgId should be greater than 0");case 2:if(!(n<=0)){e.next=4;break}return e.abrupt("return","vendorId should be greater than 0");case 4:if(!(r<=0)){e.next=6;break}return e.abrupt("return","questionId should be greater than 0");case 6:return o="".concat(this.config.endpoints.files,"GetAllByQuestionId?orgId=").concat(t,"&vendorId=").concat(n,"&questionId=").concat(r),e.next=9,this.axios.$get(o);case 9:return c=e.sent,e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return m.apply(this,arguments)})},{key:"uploadFile",value:(h=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return","file should not be null");case 2:return n=this.config.endpoints.files+"UploadFile",e.next=5,this.axios.$post(n,t,{headers:{"Content-Type":"multipart/form-data"}});case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"exportGiact",value:(d=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,null!=t&&0!==t.length||(n="submitted"),r="".concat(this.config.endpoints.files,"exportGiact?vendorstatus=").concat(n),e.next=5,this.axios.$post(r);case 5:return o=e.sent,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"downloadFile",value:(f=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&0!==t.length){e.next=2;break}return e.abrupt("return","fileUrl cannot be null or empty.");case 2:return n="".concat(this.config.endpoints.files,"Download?fileUrl=").concat(t),e.next=5,this.axios.$get(n,{responseType:"blob"});case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"downloadFilesByVendor",value:(l=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==t||t<0)){e.next=2;break}return e.abrupt("return","invalid vendor ID.");case 2:return n="".concat(this.config.endpoints.files,"Download/Vendor/").concat(t),e.next=5,this.axios.$get(n,{responseType:"blob"});case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"downloadReviewFilesByVendor",value:(n=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==t||t<0)){e.next=2;break}return e.abrupt("return","invalid vendor ID.");case 2:return n="".concat(this.config.endpoints.files,"Download/VendorReviews/").concat(t),e.next=5,this.axios.get(n,{responseType:"blob"}).then((function(e){var t=e.headers["content-disposition"],n=void 0;if(t){var r=t.match(/filename="?([^";]+)"?/);2===r.length&&(n=r[1])}return{data:e.data,filename:n}})).catch((function(e){console.error("File download error: ",e)}));case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"deleteFileById",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==t||t<=0)){e.next=2;break}return e.abrupt("return","fileId should be greater than 0");case 2:if(null!=n&&0!==n.length){e.next=4;break}return e.abrupt("return","vendorId should be greater than 0");case 4:return r="".concat(this.config.endpoints.files,"Delete?fileId=").concat(t,"&fileUrl=").concat(n),e.next=7,this.axios.$delete(r);case 7:return o=e.sent,e.abrupt("return",o);case 9:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}()},172:function(e,t,n){var content=n(227);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(65).default)("15c483e1",content,!0,{sourceMap:!1})},173:function(e,t,n){var content=n(229);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(65).default)("7e56e4e3",content,!0,{sourceMap:!1})},175:function(e,t,n){var content=n(243);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(65).default)("b95d6c5a",content,!0,{sourceMap:!1})},176:function(e,t,n){var content=n(245);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(65).default)("6a4e687a",content,!0,{sourceMap:!1})},177:function(e,t,n){"use strict";n.r(t),t.default=function(){return{myMessages:[],isLoaded:!1,isFailed:!1,failMessage:null}}},178:function(e,t,n){"use strict";n.r(t),t.default=function(){return{myNotes:[],isLoaded:!1,isFailed:!1,failMessage:null}}},179:function(e,t,n){"use strict";n.r(t),t.default=function(){var e=null;return(e=sessionStorage.getItem("rememberedOrganizationId"))&&(e=parseInt(e)),{myOrganizationUser:null,myOrganizations:[],activeOrganization:null,isLoaded:!1,isFailed:!1,failMessage:null,rememberedOrganizationId:e}}},193:function(e,t,n){"use strict";n(10),n(51);var r=n(18),o=n(19),c=n(20),l=window.__NUXT__;function f(){if(!this._hydrated)return this.$fetch()}function d(){if((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey){var e;this._hydrated=!0,this._fetchKey=+this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var t in data)o.default.set(this.$data,t,data[t])}}function h(){var e=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete e._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,t=null,n=Date.now(),e.prev=6,e.next=9,this.$options.fetch.call(this);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),t=Object(c.p)(e.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,r)}));case 19:this.$fetchState.error=t,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return e.stop()}}),e,this,[[6,11]])})))).apply(this,arguments)}t.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=h.bind(this),Object(c.a)(this,"created",d),Object(c.a)(this,"beforeMount",f))}}},195:function(e,t,n){"use strict";n.r(t);var r={name:"VenButton",props:{disabled:{type:Boolean},circular:{type:Boolean},icon:{type:String},color:{type:String},title:{type:String},size:{type:String}},computed:{classBindings:function(){var e="";return!0===this.circular&&(e+="circular "),!0===this.isIconUsed&&(e+="icon "),!0===this.isColorUsed&&(e+=this.color+" "),this.size&&this.size.length>0&&(e+=this.size+" "),e},isIconUsed:function(){return!!(this.icon&&this.icon.trim().length>0)},isColorUsed:function(){return!!(this.color&&this.color.trim().length>0)},iconClass:function(){return this.isIconUsed?this.icon:""}},methods:{buttonClick:function(e){this.$emit("click",e)}}},o=n(39),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"ui button",class:e.classBindings,attrs:{title:e.title,disabled:!0===e.disabled},on:{click:e.buttonClick}},[!0===e.isIconUsed?n("i",{staticClass:"icon",class:e.iconClass}):e._e(),e._v(" "),e._t("default")],2)}),[],!1,null,null,null);t.default=component.exports},196:function(e,t,n){"use strict";n.r(t);n(22);var r={name:"VenInput",props:{disabled:{type:Boolean},readonly:{type:Boolean},isValid:{type:Boolean,default:!0},fluid:{type:Boolean},error:{type:Boolean},value:{type:String},placeholder:{type:String},icon:{type:String,default:function(){return""}},width:{type:Number,default:function(){return 20}},maxlength:{type:Number,default:function(){return 1e4}}},data:function(){return{localValue:""}},computed:{classBindings:function(){var e="";return!0===this.fluid&&(e+="fluid "),!0===this.error&&(e+="error "),!1===this.isValid&&(e+="input-error-highlight "),e},shouldUseIcon:function(){return this.icon&&null!=this.icon&&""!==this.icon}},watch:{value:{handler:function(e){this.localValue=e}}},created:function(){this.localValue=this.value},methods:{inputChanged:function(){this.$emit("input",this.localValue)}}},o=(n(244),n(39)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui input",class:!0===e.shouldUseIcon?"left icon":""},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],class:e.classBindings,attrs:{type:"text",placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,maxlength:e.maxlength,size:e.width},domProps:{value:e.localValue},on:{input:[function(t){t.target.composing||(e.localValue=t.target.value)},e.inputChanged]}}),e._v(" "),n("i",{class:!0===e.shouldUseIcon?e.icon+" icon":""}),e._v(" "),e._t("action")],2)}),[],!1,null,null,null);t.default=component.exports},197:function(e,t,n){"use strict";n.r(t);var r={name:"VenIcon",props:{icon:{type:String}}},o=n(39),component=Object(o.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("i",{staticClass:"icon",class:this.icon})}),[],!1,null,null,null);t.default=component.exports},198:function(e,t,n){"use strict";n.r(t);n(51);var r=n(18),o=(n(22),n(73)),c={name:"UserProfile",props:{userProfileId:{type:Number,required:!1}},data:function(){return{userService:new o.a(this.$axios,this.$config,this.$store),isLoading:!0,error:null,userProfile:{},updatedUserProfile:{userFirstName:"",userLastName:"",userJobTitle:""},defaultWidth:35,isUpdateButtonEnabled:!1}},computed:{isFormValid:function(){var e=this.updatedUserProfile.userFirstName.length>0&&this.updatedUserProfile.userLastName.length>0;return console.log("isvalid:",e),e}},created:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getUserProfile();case 3:e.userProfile=t.sent,e.updatedUserProfile.userFirstName=e.userProfile.userFirstName,e.updatedUserProfile.userLastName=e.userProfile.userLastName,e.updatedUserProfile.userJobTitle=e.userProfile.userJobTitle,t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),console.error(t.t0),e.error="Oops. We had an issue fetching your user profile.";case 13:return t.prev=13,e.isLoading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,9,13,16]])})))()},methods:{getUserProfile:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.userProfileId&&e.userProfileId>0)){t.next=6;break}return t.next=3,e.userService.getUserProfileById(e.userProfileId);case 3:if(!(n=t.sent)||!n.result){t.next=6;break}return t.abrupt("return",n.result);case 6:return t.next=8,e.userService.getMyInfo();case 8:if(!((r=t.sent)&&r.result&&r.result.userProfile)){t.next=11;break}return t.abrupt("return",r.result.userProfile);case 11:return console.error("Could not fetch the user's profile"),e.error="Oops. We had an issue fetching your user profile.",t.abrupt("return",{});case 14:case"end":return t.stop()}}),t)})))()},updateUserProfileClick:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=e.updatedUserProfile).id=e.userProfile.id,t.prev=2,e.isLoading=!0,t.next=6,e.userService.updateUserProfile(n);case 6:r=t.sent,console.log(r),e.$emit("user-profile-updated"),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),console.error(t.t0);case 14:return t.prev=14,e.isLoading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[2,11,14,17]])})))()},getIsFormValid:function(){}}},l=(n(242),n(39)),component=Object(l.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[!0===e.isLoading?n("div",[e._m(0)]):n("div",[null!==e.error?n("div",[n("h4",[e._v(e._s(e.error))])]):n("div",[e._m(1),e._v(" "),n("div",{staticClass:"mb-4"},[n("ven-input",{attrs:{placeholder:e.userProfile.userFirstName,width:e.defaultWidth},model:{value:e.updatedUserProfile.userFirstName,callback:function(t){e.$set(e.updatedUserProfile,"userFirstName",t)},expression:"updatedUserProfile.userFirstName"}})],1),e._v(" "),e._m(2),e._v(" "),n("div",{staticClass:"mb-4"},[n("ven-input",{attrs:{placeholder:e.userProfile.userLastName,width:e.defaultWidth},model:{value:e.updatedUserProfile.userLastName,callback:function(t){e.$set(e.updatedUserProfile,"userLastName",t)},expression:"updatedUserProfile.userLastName"}})],1),e._v(" "),e._m(3),e._v(" "),n("div",{staticClass:"mb-4"},[n("ven-input",{attrs:{placeholder:e.userProfile.userJobTitle,width:e.defaultWidth},model:{value:e.updatedUserProfile.userJobTitle,callback:function(t){e.$set(e.updatedUserProfile,"userJobTitle",t)},expression:"updatedUserProfile.userJobTitle"}})],1),e._v(" "),e._m(4),e._v(" "),n("div",[n("label",[n("i",[e._v(e._s(e.userProfile.userEmail))])])]),e._v(" "),n("hr"),e._v(" "),n("div",[n("ven-button",{attrs:{disabled:!1===e.isFormValid,color:"green"},on:{click:e.updateUserProfileClick}},[e._v("Update")])],1)])])])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui fluid placeholder"},[n("div",{staticClass:"line"}),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"line"}),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"line"}),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"line"}),e._v(" "),n("br"),e._v(" "),n("div",{staticClass:"line"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("label",{staticClass:"required-field-label"},[this._v("* First Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("label",{staticClass:"required-field-label"},[this._v("* Last Name")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("label",[this._v("Title")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("label",[this._v("Email Address")])])}],!1,null,"626cecbe",null);t.default=component.exports;installComponents(component,{VenInput:n(196).default,VenButton:n(195).default})},20:function(e,t,n){"use strict";n.d(t,"k",(function(){return y})),n.d(t,"m",(function(){return x})),n.d(t,"l",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return _})),n.d(t,"s",(function(){return $})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return k})),n.d(t,"d",(function(){return R})),n.d(t,"r",(function(){return C})),n.d(t,"j",(function(){return P})),n.d(t,"t",(function(){return I})),n.d(t,"o",(function(){return U})),n.d(t,"q",(function(){return A})),n.d(t,"f",(function(){return E})),n.d(t,"c",(function(){return T})),n.d(t,"i",(function(){return F})),n.d(t,"p",(function(){return L})),n.d(t,"a",(function(){return G})),n.d(t,"n",(function(){return J}));n(14),n(72),n(12),n(66),n(99),n(119);var r=n(47),o=(n(29),n(222),n(48)),c=(n(34),n(35),n(82),n(149),n(224),n(201),n(24),n(51),n(18)),l=(n(54),n(11),n(10),n(13),n(27),n(3)),f=n(19);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i1&&void 0!==arguments[1]?arguments[1]:[],r=e.$children||[],o=m(r);try{for(o.s();!(t=o.n()).done;){var c=t.value;c.$fetch?n.push(c):c.$children&&O(c,n)}}catch(e){o.e(e)}finally{o.f()}return n}function _(e,t){if(t||!e.options.__hasNuxtData){var n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),h(h({},data),t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function $(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=f.default.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e[n]).map((function(o){return t&&t.push(r),e[n][o]}))})))}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(e,t,"instances")}function R(e,t){return Array.prototype.concat.apply([],e.matched.map((function(e,n){return Object.keys(e.components).reduce((function(r,o){return e.components[o]?r.push(t(e.components[o],e.instances[o],e,o,n)):delete e.components[o],r}),[])})))}function C(e,t){return Promise.all(R(e,function(){var e=Object(c.a)(regeneratorRuntime.mark((function e(n,r,o,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n||n.options){e.next=4;break}return e.next=3,n();case 3:n=e.sent;case 4:return o.components[c]=n=$(n),e.abrupt("return","function"==typeof t?t(n,r,o,c):n);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}()))}function P(e){return S.apply(this,arguments)}function S(){return(S=Object(c.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,C(t);case 4:return e.abrupt("return",h(h({},t),{},{meta:j(t).map((function(e,n){return h(h({},e.options.meta),(t.matched[n]||{}).meta)}))}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){return M.apply(this,arguments)}function M(){return(M=Object(c.a)(regeneratorRuntime.mark((function e(t,n){var c,l,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.context||(t.context={isStatic:!0,isDev:!1,isHMR:!1,app:t,store:t.store,payload:n.payload,error:n.error,base:"/",env:{}},n.ssrContext&&(t.context.ssrContext=n.ssrContext),t.context.redirect=function(e,path,n){if(e){t.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof e||"undefined"!==r&&"object"!==r||(n=path||{},path=e,r=Object(o.a)(path),e=302),"object"===r&&(path=t.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=H(path,n),window.location.replace(path),new Error("ERR_REDIRECT");t.context.next({path:path,query:n,status:e})}},t.context.nuxtState=window.__NUXT__),e.next=3,Promise.all([P(n.route),P(n.from)]);case 3:c=e.sent,l=Object(r.a)(c,2),f=l[0],d=l[1],n.route&&(t.context.route=f),n.from&&(t.context.from=d),t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!1,t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{};case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e,t){return!e.length||t._redirected||t._errored?Promise.resolve():A(e[0],t).then((function(){return U(e.slice(1),t)}))}function A(e,t){var n;return(n=2===e.length?new Promise((function(n){e(t,(function(e,data){e&&t.error(e),n(data=data||{})}))})):e(t))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function E(base,e){var path=decodeURI(window.location.pathname);return"hash"===e?window.location.hash.replace(/^#\//,""):(base&&(path.endsWith("/")?path:path+"/").startsWith(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function T(e,t){return function(e,t){for(var n=new Array(e.length),i=0;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i2?t-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:w,n=arguments.length>2?arguments[2]:void 0;return O.call(this,e,t,n)},c.default.use(y.a);var _={mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(e,t,n){var r=!1,o=Object(x.g)(e);(o.some((function(e){return e.options.scrollToTop}))||o.length<2&&o.every((function(e){return!1!==e.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return(e.path===t.path&&e.hash!==t.hash||e===t)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(t){c.$once("triggerScroll",(function(){if(e.hash){var n=e.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(e){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}t(r)}))}))},routes:[{path:"/admin",component:function(){return Object(x.m)(n.e(11).then(n.bind(null,435)))},name:"admin"},{path:"/login",component:function(){return Object(x.m)(n.e(14).then(n.bind(null,427)))},name:"login"},{path:"/Messages",component:function(){return Object(x.m)(Promise.all([n.e(1),n.e(6)]).then(n.bind(null,428)))},name:"Messages"},{path:"/Notes",component:function(){return Object(x.m)(Promise.all([n.e(3),n.e(2),n.e(7)]).then(n.bind(null,429)))},name:"Notes"},{path:"/Password",component:function(){return Object(x.m)(n.e(8).then(n.bind(null,430)))},name:"Password"},{path:"/Policy",component:function(){return Object(x.m)(n.e(9).then(n.bind(null,431)))},name:"Policy"},{path:"/admin/ManageVendors",component:function(){return Object(x.m)(Promise.all([n.e(0),n.e(10)]).then(n.bind(null,432)))},name:"admin-ManageVendors"},{path:"/admin/vendor/:vendorId?",component:function(){return Object(x.m)(Promise.all([n.e(3),n.e(0),n.e(1),n.e(2),n.e(12)]).then(n.bind(null,433)))},name:"admin-vendor-vendorId"},{path:"/",component:function(){return Object(x.m)(Promise.all([n.e(0),n.e(13)]).then(n.bind(null,434)))},name:"index"}],fallback:!1};function $(){return new y.a(_)}var j={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,t){var n=t.parent,data=t.data,r=t.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,f=n.$nuxt.nuxt.defaultTransition,d=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&d++,n=n.$parent;data.nuxtChildDepth=d;var h=l[d]||f,m={};k.forEach((function(e){void 0!==h[e]&&(m[e]=h[e])}));var v={};R.forEach((function(e){"function"==typeof h[e]&&(v[e]=h[e].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(e){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,e)},!1===h.css){var x=v.leave;(!x||x.length<2)&&(v.leave=function(e,t){x&&x.call(c,e),c.$nextTick(t)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:m,on:v},[w])}},k=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],R=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],C={props:{error:Object},layout:"error"},P=(n(226),n(39)),S=Object(P.a)(C,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"error-div"},[500===e.error.statusCode||404===e.error.statusCode?n("div",[n("h1",[e._v("Oops :(")]),e._v(" "),n("div",{staticClass:"error-msg"},[e._v("Something went wrong. Please contact support@venify.app")])]):n("div",[n("h1",[e._v("Uh-oh :(")]),e._v(" "),n("div",{staticClass:"error-msg"},[e._v("Something went wrong. Please try refreshing the page or contacting support@venify.app")])])])}),[],!1,null,"1d70408a",null).exports,I=(n(34),n(35),n(24),n(47)),M={name:"Nuxt",components:{NuxtChild:j,NuxtError:S},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(x.c)(this.$route.matched[0].path)(this.$route.params);var e=Object(I.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var t=e.components.default;if(t&&t.options){var n=t.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){var t=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return t.errorFromNuxtError=!1})),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p","Error details: ".concat(this.errorFromNuxtError.toString())),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return t.displayingNuxtError=!1})),e(S,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}},U=(n(72),n(66),n(54),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var e=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return e.startTimer()}),this.throttle):this.startTimer(),this},set:function(e){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(e))),this},get:function(){return this.percent},increase:function(e){return this.percent=Math.min(100,Math.floor(this.percent+e)),this},decrease:function(e){return this.percent=Math.max(0,Math.floor(this.percent-e)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var e=this;return this.clear(),setTimeout((function(){e.show=!1,e.$nextTick((function(){e.percent=0,e.reversed=!1}))}),500),this},fail:function(e){return this.canSucceed=!1,this},startTimer:function(){var e=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){e.skipTimerCount>0?e.skipTimerCount--:(e.reversed?e.decrease(e._cut):e.increase(e._cut),e.continuous&&(e.percent>=100||e.percent<=0)&&(e.skipTimerCount=1,e.reversed=!e.reversed))}),100)}},render:function(e){var t=e(!1);return this.show&&(t=e("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),t}}),A=(n(228),Object(P.a)(U,void 0,void 0,!1,null,null,null).exports),E=(n(230),n(232),n(234),{components:{Navigation:n(142).default}}),T=Object(P.a)(E,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("navigation"),this._v(" "),t("nuxt")],1)}),[],!1,null,null,null),F=T.exports;function L(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Object(x.h)(e.$route)).length){t.next=3;break}return t.abrupt("return");case 3:return e.$loading.start(),r=n.map((function(t){var p=[];if(t.$options.fetch&&t.$options.fetch.length&&p.push(Object(x.q)(t.$options.fetch,e.context)),t.$fetch)p.push(t.$fetch());else{var n,r=L(Object(x.e)(t.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(e){r.e(e)}finally{r.f()}}return t.$options.asyncData&&p.push(Object(x.q)(t.$options.asyncData,e.context).then((function(e){for(var n in e)c.default.set(t.$data,n,e[n])}))),Promise.all(p)})),t.prev=5,t.next=8,Promise.all(r);case 8:t.next=15;break;case 10:t.prev=10,t.t0=t.catch(5),e.$loading.fail(t.t0),Object(x.k)(t.t0),e.error(t.t0);case 15:e.$loading.finish();case 16:case"end":return t.stop()}}),t,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var e=(S.options||S).layout;"function"==typeof e&&(e=e(this.context)),this.setLayout(e)}},setLayout:function(e){return e&&N["_"+e]||(e="default"),this.layoutName=e,this.layout=N["_"+e],this.layout},loadLayout:function(e){return e&&N["_"+e]||(e="default"),Promise.resolve(N["_"+e])}},components:{NuxtLoading:A}};n(99),n(29);function z(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!t.length||o&&1===t.length)return e;var c=t.shift();return e.modules[c]=e.modules[c]||{},e.modules[c].namespaced=!0,e.modules[c].modules=e.modules[c].modules||{},Q(e.modules[c],t,{isProperty:o})}function X(e,t,n){t&&("state"===n?e.state=t||e.state:e[n]=Object.assign({},e[n],t))}var Y={};for(var Z in Y)c.default.component(Z,Y[Z]);var ee=n(194),te=n(70);c.default.use(ee.a,{}),c.default.use(te.a);var ne=n(144),re=n.n(ne),oe=function(e,t){e.$moment=re.a,t("moment",re.a)},ie=n(98),ae=n.n(ie),se=n(115),ue=n.n(se);function ce(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function le(e){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i2&&void 0!==arguments[2]?arguments[2]:"common",o=fe(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!t)return void delete this.defaults.headers[c][e];this.defaults.headers[c][e]=t}}catch(e){o.e(e)}finally{o.f()}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest:function(e){this.interceptors.request.use((function(t){return e(t)||t}))},onResponse:function(e){this.interceptors.response.use((function(t){return e(t)||t}))},onRequestError:function(e){this.interceptors.request.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onResponseError:function(e){this.interceptors.response.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onError:function(e){this.onRequestError(e),this.onResponseError(e)},create:function(e){return ge(ue()(e,this.defaults))}},he=function(){var e=ve[me];pe["$"+e]=function(){return this[e].apply(this,arguments).then((function(e){return e&&e.data}))}},me=0,ve=["request","delete","get","head","options","post","put","patch"];me2&&void 0!==arguments[2]?arguments[2]:3e3;0==t?$nuxt.$bvToast.toast(e,{title:title,noAutoHide:!0,variant:"success",appendToast:!0,solid:!0}):$nuxt.$bvToast.toast(e,{title:title,autoHideDelay:3e3,variant:"success",appendToast:!0,solid:!0})})),t("notifyWarn",(function(title,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;0==t?$nuxt.$bvToast.toast(e,{title:title,noAutoHide:!0,variant:"warning",appendToast:!0,solid:!0}):$nuxt.$bvToast.toast(e,{title:title,autoHideDelay:t,variant:"warning",appendToast:!0,solid:!0})})),t("notifyError",(function(title,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;0==t?$nuxt.$bvToast.toast(e,{title:title,noAutoHide:!0,variant:"danger",appendToast:!0,solid:!0}):$nuxt.$bvToast.toast(e,{title:title,autoHideDelay:3e3,variant:"danger",appendToast:!0,solid:!0})}))},we=new c.default,Oe=function(e){e.$axios.onResponse((function(e){if("get"!==e.config.method){var t="",n="",r=3e3,o=!1,c="";e&&e.data&&""!==e.data.message&&(t=e.data.message,n=!0===(o=e.data.isSuccess)?"Success":"Fail",c=!0===o?"success":"danger",e.data.toastHideDelay&&(r=e.data.toastHideDelay),200===e.status&&(0==r?we.$bvToast.toast(t,{title:n,noAutoHide:!0,variant:c,appendToast:!0,solid:!0}):r>0&&we.$bvToast.toast(t,{title:n,autoHideDelay:r,variant:c,appendToast:!0,solid:!0})))}}))},_e=n(92),$e=n(79);_e.a.auth=$e.d;var je=function(e,t){var n=new $e.a(e,{resetOnError:!1,ignoreExceptions:!1,scopeKey:"scope",rewriteRedirects:!0,fullPathRedirect:!1,watchLoggedIn:!0,redirect:{login:"/login",logout:"/login",home:"/",callback:"/login"},vuex:{namespace:"auth"},cookie:{prefix:"auth.",options:{path:"/",sameSite:"strict",secure:!0}},localStorage:!1,defaultStrategy:"auth0"});return n.registerStrategy("auth0",new $e.b(n,{domain:"login.venify.app",client_id:"bbMkmd8UFr1W5vryS6rtbF7tYELpxTtV",audience:"https://venify.app/api",clientId:"bbMkmd8UFr1W5vryS6rtbF7tYELpxTtV",scope:["openid","profile","email","openid","profile","email","offline_access"],responseType:"code",grantType:"authorization_code",codeChallengeMethod:"S256",name:"auth0",endpoints:{authorization:"https://login.venify.app/authorize",userInfo:"https://login.venify.app/userinfo",token:"https://login.venify.app/oauth/token",logout:"https://login.venify.app/v2/logout"}})),t("auth",n),e.$auth=n,n.init().catch((function(e){e instanceof $e.c||console.error("[ERROR] [AUTH]",e)}))};function ke(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Re(e){for(var i=1;i has been deprecated and will be removed in Nuxt 3, please use instead")),v.a.render(e,t)}})),c.default.component(j.name,j),c.default.component("NChild",j),c.default.component(M.name,M),c.default.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var Ce={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};l.a.Store.prototype.registerModule;function Pe(e){return Se.apply(this,arguments)}function Se(){return(Se=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,l,f,d,path,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error("inject('".concat(e,"', value) has no value provided"));l[e="$"+e]=t,l.context[e]||(l.context[e]=t),o[e]=l[e];var n="__nuxt_"+e+"_installed__";c.default[n]||(c.default[n]=!0,c.default.use((function(){Object.prototype.hasOwnProperty.call(c.default.prototype,e)||Object.defineProperty(c.default.prototype,e,{get:function(){return this.$root.$options[e]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},e.next=4,$();case 4:return r=e.sent,(o=K(t)).$router=r,l=Re({head:{link:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"},{rel:"stylesheet",href:"https://fonts.googleapis.com/icon?family=Material+Icons"},{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"},{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"}],script:[{type:"text/javascript",src:"/js/jquery.min.js"},{type:"text/javascript",src:"/js/semantic-ui-2.4.2.min.js"},{type:"text/javascript",src:"/js/jquery-qrcode-0.18.0.min.js"}],meta:[],style:[]},store:o,router:r,nuxt:{defaultTransition:Ce,transitions:[Ce],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map((function(e){return e=e?"string"==typeof e?Object.assign({},Ce,{name:e}):Object.assign({},Ce,e):Ce})),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,l.context._errored=Boolean(e),e=e?Object(x.p)(e):null;var n=l.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},V),o.app=l,f=t?t.next:function(e){return l.router.push(e)},t?d=r.resolve(t.url).route:(path=Object(x.f)(r.options.base,r.options.mode),d=r.resolve(path).route),e.next=13,Object(x.t)(l,{store:o,route:d,next:f,error:l.nuxt.error.bind(l),payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0,ssrContext:t});case 13:h("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),l.context.enablePreview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.previewData=Object.assign({},e),h("preview",e)},e.next=19;break;case 19:e.next=22;break;case 22:return e.next=25,oe(l.context,h);case 25:return e.next=28,ye(l.context,h);case 28:return e.next=31,xe(l.context,h);case 31:return e.next=34,Oe(l.context);case 34:return e.next=37,je(l.context,h);case 37:l.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},e.next=41;break;case 41:return e.abrupt("return",{store:o,app:l,router:r});case 42:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(51);var r=n(18),o=n(25),c=n(33),l=function(){function e(t,n,r){if(Object(o.a)(this,e),this.axios=null,this.config=null,this.store=null,null==t)throw"$axios was not provided to UserService";if(null==n)throw"$config was not provided to UserService";if(null==r)throw"$store was not provided to UserService";this.axios=t,this.config=n,this.store=r}var t,n,l,f,d,h,m,v,y,x,w,O,_,$,j,k,R,C,P,S,I,M,U;return Object(c.a)(e,[{key:"invite",value:(U=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r,o,c,l,f){var d,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d={email:t,firstName:n,lastName:r,jobTitle:f,vendorId:o,role:c,inviteMessage:l},e.next=3,this.axios.$post(this.config.endpoints.users+"invite",d);case 3:return h=e.sent,e.abrupt("return",h);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o,c,l){return U.apply(this,arguments)})},{key:"getInvite",value:(M=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$get(this.config.endpoints.users+"invite?inviteId="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"resendInvite",value:(I=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={email:t},e.next=3,this.axios.$post(this.config.endpoints.users+"resendInvite",n);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"getMyInfo",value:(S=Object(r.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$get(this.config.endpoints.users+"MyInfo");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"getMyPasswordResetUrl",value:(P=Object(r.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$get(this.config.endpoints.users+"GetMyPasswordResetUrl");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return P.apply(this,arguments)})},{key:"sendPasswordReset",value:(C=Object(r.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$get(this.config.endpoints.users+"SendPasswordReset");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)})},{key:"populateMyInfoIfEmpty",value:(R=Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==this.store.state.user.isLoaded){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.populateMyInfo();case 4:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"populateMyInfo",value:(k=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getMyInfo();case 2:!0===(t=e.sent).isSuccess?(n=t.result,this.store.commit("user/setMyProfile",n.userProfile),this.store.commit("user/setMyInvites",n.invites),this.store.commit("user/setIsChangePassword",n.isChangePassword),this.store.commit("user/setLoaded",!0),this.store.commit("user/setFailed",!1),this.store.commit("vendor/setMyVendor",n.vendor),this.store.commit("vendor/setMyVendorUser",n.vendorUser),this.store.commit("vendor/setLoaded",!0),this.store.commit("vendor/setFailed",!1),this.store.commit("organizations/setMyOrganizations",n.organizations),this.store.commit("organizations/setMyOrganizationUser",n.organizationUser),n.organizationUser&&n.organizations&&1===n.organizations.length&&this.store.commit("organizations/setActive",n.organizations[0]),this.store.commit("organizations/setLoaded",!0),this.store.commit("organizations/setFailed",!1)):(console.log("failed to populate user info"),this.store.commit("user/setFailed",!0,t.message));case 4:case"end":return e.stop()}}),e,this)}))),function(){return k.apply(this,arguments)})},{key:"acceptInvite",value:(j=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={inviteCode:t},e.next=3,this.axios.$post(this.config.endpoints.users+"accept",n);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"getByVendorId",value:($=Object(r.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==t||t<=0)){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,this.axios.$get(this.config.endpoints.users+"vendor/"+t);case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return $.apply(this,arguments)})},{key:"deleteVendorUser",value:(_=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",!1);case 2:return r="".concat(this.config.endpoints.users,"DeleteUser/").concat(t,"/").concat(n),e.next=5,this.axios.$delete(r);case 5:return o=e.sent,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return _.apply(this,arguments)})},{key:"sendSMS",value:(O=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={headers:{userKey:n}},o=this.axios.$post(this.config.endpoints.mfa+"SendSMS?toNumber="+t,null,r),e.abrupt("return",o);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return O.apply(this,arguments)})},{key:"makeCall",value:(w=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={headers:{userKey:n}},o=this.axios.$post(this.config.endpoints.mfa+"makeCall?toNumber="+t,null,r),e.abrupt("return",o);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"verifyCode",value:(x=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={headers:{userKey:n}},e.next=3,this.axios.$post(this.config.endpoints.mfa+"verifyCode?userCode="+t,null,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return x.apply(this,arguments)})},{key:"getKey",value:(y=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$get(this.config.endpoints.mfa+"getKey?userGuid="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"enableMFA",value:(v=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$post(this.config.endpoints.users+"enableMFA?userGuid="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"disableMFA",value:(m=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$post(this.config.endpoints.users+"disableMFA?userGuid="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"clearMFAData",value:(h=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$post(this.config.endpoints.users+"resetMFAProfile?userGuid="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"mfaMaxed",value:(d=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.$post(this.config.endpoints.users+"MFAMaxed?userGuid="+t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"updateMFAInfo",value:(f=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r,o){var c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c={MFAMethod:t,MFAKey:n,MFAPhone:r,UserGuid:o},e.next=3,this.axios.$post(this.config.endpoints.users+"updateMFAProfile",c);case 3:return l=e.sent,e.abrupt("return",l);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return f.apply(this,arguments)})},{key:"updateUserProfile",value:(l=Object(r.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=3;break}return console.error("User profile object provided to updateUserProfile cannot be null."),e.abrupt("return");case 3:return e.next=5,this.axios.$post(this.config.endpoints.users+"UpdateUserProfile",t);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"getUserProfileById",value:(n=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<=0)){e.next=3;break}return console.error("userProfileId in getUserProfileById() call must be greater than zero."),e.abrupt("return");case 3:return n="".concat(this.config.endpoints.users,"GetUserProfile/").concat(t),e.next=6,this.axios.$get(n);case 6:return r=e.sent,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"updateLoginHistory",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,r="",e.prev=2,e.next=6,fetch("https://api.ipgeolocation.io/ipgeo?apiKey=4d2576d7950d4b358b45adf462fa0443").then((function(e){return e.json()})).then((function(data){r=data.ip}));case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:return-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?(console.log("Opera"),o="Opera"):-1!=navigator.userAgent.indexOf("Edg/")?(console.log("Edge"),o="Edge"):-1!=navigator.userAgent.indexOf("Chrome")?(console.log("Chrome"),o="Chrome"):-1!=navigator.userAgent.indexOf("Safari")?(console.log("Safari"),o="Safari"):-1!=navigator.userAgent.indexOf("Firefox")?(console.log("Firefox"),o="Firefox"):-1!=navigator.userAgent.indexOf("MSIE")||1==!!document.documentMode?(console.log("IE"),o="IE"):(console.log("Unknown"),o="Unknown"),c={UserID:n,ClientIP:r,ClientBrowser:o},e.next=14,this.axios.$post(this.config.endpoints.users+"updateHistory",c);case 14:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return t.apply(this,arguments)})}]),e}()},92:function(e,t,n){"use strict";var r={};r.mfaMiddleware=n(220),r.mfaMiddleware=r.mfaMiddleware.default||r.mfaMiddleware,t.a=r}},[[203,15,5,16]]]);