PageSourceSearch

https://app.crmincloud.it/js/base.62683333.js

js crmincloud.it collected 2026-09-25 20:58:29 UTC 55,670 bytes, 2 lines download raw bytes

1(self["webpackChunkts_crm_in_cloud_frontend"]=self["webpackChunkts_crm_in_cloud_frontend"]||[]).push([[348],{73326:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return Oe},init:function(){return Ee}});var s=i(33304),a=i(54503);class o{constructor(){(0,a.Z)(this,"globalSearchPreference",{company:!0,contact:!0,lead:!0,activity:!0})}}var n=i(21676),r=i(93771),l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("el-row",{staticClass:"entering-row",attrs:{type:"flex",justify:"center",align:"middle"}},[e("el-col",{attrs:{xs:t.xs,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl}},[e("el-card",{staticClass:"box-card",scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"text-center"},[e("img",{attrs:{src:`/${t.brand.id}/img/logo.svg`,width:"250px"}})])]},proxy:!0}])},[e("transition",{attrs:{mode:"out-in",name:"el-zoom-in-center"}},[e("router-view",{on:{logged:function(e){return t.$emit("particles",!1)}}})],1),e("span",{staticClass:"build-version text text-info"},[t._v("v."+t._s(t.build))]),e("a",{staticClass:"go-website text text-info",attrs:{href:t.brand.site}},[t._v(t._s(t.$t("login.gowebsite")))])],1)],1)],1)},u=[],c=i(70655),d=i(70538),p=i(45904),h=i(60176);let m=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"build",void 0),(0,a.Z)(this,"serverBuild",void 0),(0,a.Z)(this,"brand",void 0)}created(){this.$chat.show()}get xs(){return this.$route.meta.big?22:20}get sm(){return this.$route.meta.big?16:12}get md(){return this.$route.meta.big?12:8}get lg(){return this.$route.meta.big?10:6}get xl(){return this.$route.meta.big?8:4}};(0,c.gn)([h.aD],m.prototype,"build",void 0),(0,c.gn)([h.aD],m.prototype,"serverBuild",void 0),(0,c.gn)([h.aD],m.prototype,"brand",void 0),m=(0,c.gn)([(0,p.ZP)({name:"Login"})],m);var v=m,g=v,y=i(1001),f=(0,y.Z)(g,l,u,!1,null,"75808849",null),b=f.exports,x=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.ambiguousIdentities&&!t.insertPassword?e("h3",[t._v(t._s(t.$t("login.ambiguous.title")))]):t._e(),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isAuthenticating,expression:"isAuthenticating"}]},[e("transition-group",{attrs:{mode:"out-in",name:"el-zoom-in-center"}},[t.ambiguousIdentities&&!t.insertPassword?e("div",{key:"ambiguous",staticClass:"m-t"},[e("t-ambiguous-identities",{attrs:{value:t.ambiguousIdentities},on:{click:e=>t.loginWithCustomer(e)}}),e("div",{staticClass:"m-b text-right"},[e("el-button",{staticClass:"auth-button",attrs:{type:"info"},on:{click:t.resetAuthentication}},[t._v(t._s(t.$t("back")))])],1)],1):e("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.isAuthenticating,expression:"isAuthenticating"}],key:"submitForm",ref:"submitForm",attrs:{model:{username:t.username,password:t.password},rules:{username:t.usernameRule},size:"mini"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{prop:"username"}},[e("el-input",{attrs:{value:t.username,prop:"username",placeholder:"Username or TeamSystemID",type:"email",disabled:t.insertPassword},on:{input:e=>{t.insertPassword||(t.username=e)}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("span",[t._v("@")])]},proxy:!0}])})],1),e("transition",{attrs:{mode:"out-in",name:"el-zoom-in-center"}},[e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.insertPassword,expression:"insertPassword"}],attrs:{prop:"password","show-message":!1}},[e("el-input",{attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("i",{staticClass:"el-icon-icon-key"})]},proxy:!0}]),model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1),e("el-collapse-transition",[e("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.authenticationMessage,expression:"authenticationMessage != null"}],staticClass:"text text-center text-danger shake"},[t._v(" "+t._s(t.authenticationMessage)+" ")])]),e("div",{staticClass:"text-right m-t m-b"},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"login-button",attrs:{type:""},on:{click:t.resetAuthentication}}
1,[t._v(t._s(t.$t("back")))])],1),e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"login-button",attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("commands.next")))])],1)],1),e("el-row",{attrs:{type:"flex"}},[e("el-col",{staticClass:"text-right"},[e("el-popover",{attrs:{"open-delay":400,placement:"bottom-end",title:t.$t("login.teamsystem.title"),width:"400",trigger:"hover"},scopedSlots:t._u([{key:"reference",fn:function(){return[e("span",{staticClass:"text text-info cursor-help"},[t._v(t._s(t.$t("login.teamsystem.info")))])]},proxy:!0}])},[e("div",{staticClass:"text"},[e("p",[t._v(t._s(t.$t("login.teamsystem.description1")))]),e("p",[t._v(t._s(t.$t("login.teamsystem.description2")))]),e("p",[t._v(t._s(t.$t("login.teamsystem.description3")))])])])],1)],1),t.insertPassword?e("div",{staticClass:"m-t-h text cursor-pointer text-primary",on:{click:()=>t.recover()}},[t._v(" "+t._s(t.$t("login.recover"))+" ")]):t._e()],1)],1)],1)],1)])},_=[],w=(i(57658),i(53028)),k=i(5291),$=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"amb-max-h"},t._l(t.value,(function(i){return e("el-card",{key:i.customerId,staticClass:"m-b",class:{"identity-disabled":!(i.active&&i.companyActive)},attrs:{"body-style":{padding:"8px"}},nativeOn:{click:function(e){return(()=>t.handleSelection(i)).apply(null,arguments)}}},[e("el-row",{staticClass:"text text-0_6x",attrs:{type:"flex",gutter:10}},[e("el-col",{attrs:{span:12}}),e("el-col",{staticClass:"text-right",attrs:{span:12}},[i.testing?e("span",{staticClass:"m-r-q"},[e("i",{staticClass:"fas el-icon-fa-flask"})]):t._e(),e("span",[t._v(" "+t._s(i.licence)+" ")])])],1),e("el-row",{attrs:{type:"flex",gutter:10,justify:"center",align:"middle"}},[e("el-col",{attrs:{span:-1}},[e("span",{staticClass:"user-image"},[i.expirationDate&&t.$moment(i.expirationDate).isBefore(t.$moment())?e("span",[e("i",{staticClass:"fas el-icon-fa-times-circle icon-2x text-danger",staticStyle:{"font-size":"40px !important"}})]):e("t-profile-image",{attrs:{userId:i.userId,customerId:i.customerId}}
1)],1)]),e("el-col",[e("h4",[t._v(t._s(i.customerName))]),e("h5",{staticClass:"m-t-q"},[t._v(t._s(i.userRealName)+" <"+t._s(i.userName)+">")]),i.lastLogin?e("span",{staticClass:"text text-0_6x"},[t._v(" "+t._s(t.$t("login.lastLogin"))+" "+t._s(t.$moment(i.lastLogin).fromNow())+" ")]):t._e()])],1)],1)})),1)},C=[];let Z=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"value",void 0)}handleSelection(t){t.active&&t.companyActive&&this.$emit("click",t)}};(0,c.gn)([(0,k.fI)({type:Array,required:!0})],Z.prototype,"value",void 0),Z=(0,c.gn)([(0,p.ZP)({name:"AmbiguousIdentities"})],Z);var I=Z,T=I,M=(0,y.Z)(T,$,C,!1,null,"60d7c970",null),A=M.exports,P=i(5050),D=i(65997);let S=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"initialized",void 0),(0,a.Z)(this,"isAuthenticated",void 0),(0,a.Z)(this,"baseUrl",void 0),(0,a.Z)(this,"login",void 0),(0,a.Z)(this,"logout",void 0),(0,a.Z)(this,"loadModules",void 0),(0,a.Z)(this,"username",null),(0,a.Z)(this,"password",null),(0,a.Z)(this,"isAuthenticating",!1),(0,a.Z)(this,"insertPassword",!1),(0,a.Z)(this,"authenticationMessage",null),(0,a.Z)(this,"ambiguousIdentities",null),(0,a.Z)(this,"identity",null),(0,a.Z)(this,"usernameRule",[]),(0,a.Z)(this,"passwordRule",[])}handleAuthenticationChange(t,e){t&&this.$router.replace({name:this.$routeNames.init,query:this.$route.query})}created(){this.usernameRule=[{required:!0,message:this.$t("login.validation.email"),trigger:"blur"},{type:"email",message:this.$t("login.validation.email"),trigger:"blur"}],this.passwordRule=[{required:!0,min:4,trigger:"blur"}]}mounted(){this.$chat&&this.$chat.show()}async loginWithCustomer(t){await this.authenticate(t)}resetAuthentication(){this.ambiguousIdentities=null,this.identity=null,this.username=null,this.password=null,this.insertPassword=!1,this.$store.commit("clearAuthentication")}async submitForm(){this.$refs.submitForm.validate((async t=>{t&&(this.insertPassword?await this.passwordAuthenticate(this.identity):await this.preAuthenticate())}))}async preAuthenticate(){try{this.isAuthenticating=!0,this.authenticationMessage=null;const t=new P.Q(this.$http),e=await t.PreLogin(this.username);1===e.length&&await this.authenticate(e[0]),e.length>1?this.ambiguousIdentities=e:this.$chat&&this.$chat.show()}catch(t){this.$chat&&this.$chat.show(),t.data?t.data.error_description?this.authenticationMessage=t.data.error_description:t.data.exceptionMessage&&(this.authenticationMessage=t.data.exceptionMessage):this.authenticationMessage=t.message}finally{this.isAuthenticating=!1}}async authenticate(t){this.identity=t,this.authenticationMessage=null,t.tsIdCode?(this.isAuthenticating=!0,await this.teamSystemIdAuthenticate(t)):t.hasPassword?(t.forceTsId&&await this.$confirm(this.$t("login.teamsystem.suggestion"),this.$t("login.teamsystem.info"),{confirmButtonText:this.$t("login.teamsystem.info"),type:"success"}).then((async()=>{await this.teamSystemIdAuthenticate(t)})).catch((()=>{})),this.insertPassword=!0):(this.isAuthenticating=!0,await this.teamSystemIdAuthenticate(t))}async teamSystemIdAuthenticate(t){const e=await new D.N(this.$http).Home(t.userId,t.customerId,this.username);return window.location.href=e,new Promise((t=>{}))}async passwordAuthenticate(t){w["default"].clearTokens(),this.$store.commit("clearAuthentication"),this.isAuthenticating=!0;try{await this.login({username:this.username,password:this.password,customer_id:t.customerId}),this.$emit("logged"),await this.loadModules(this.$router)}catch(e){if(this.$chat&&this.$chat.show(),e.data){switch(e.status){case 409:if(e.data.identities)return this.ambiguousIdentities=e.data.identities,void(this.isAuthenticating=!1);break;case 419:e.data.url&&this.$alert(e.data.error_description,{type:"warning"}).then((()=>{location.href=e.data.url}));break;case 402:if(e.data.user_name)return void(e.data.testing_days?this.$router.push({name:this.$routeNames.trialExpired,params:e.data}):this.$router.push({name:this.$routeNames.licenceExpired,params:e.data}));break}e.data.error_description?this.authenticationMessage=e.data.error_description:e.data.exceptionMessage&&(this.authenticationMessage=e.data.exceptionMessage)}else this.authenticationMessage=e.message}this.isAuthenticating=!1}async recover(){this.isAuthenticating=!0;try{await new P.Q(this.$http).Recover(this.username,this.identity.userId,this.identity.customerId);await this.$alert(this.$t("recover.recovered"),{type:"success"}).catch((()=>{}));this.resetAuthentication()}catch(t){if(t.data&&t.data.message){const e=[t.data.message],i="https://myprofile.teamsystem.com/Account/ForgotPassword";486===t.status&&e.push(`<br/><br/><a href="${i}" target="_blank">${i}</a>`),await this.$alert(e.join(""),{type:"error",dangerouslyUseHTMLString:!0}
1).catch((()=>{})).then((()=>{486===t.status&&(window.location=i)})),this.username=""}}this.isAuthenticating=!1}};(0,c.gn)([h.aD],S.prototype,"initialized",void 0),(0,c.gn)([h.aD],S.prototype,"isAuthenticated",void 0),(0,c.gn)([h.aD],S.prototype,"baseUrl",void 0),(0,c.gn)([(0,k.RL)("isAuthenticated")],S.prototype,"handleAuthenticationChange",null),(0,c.gn)([h.aU],S.prototype,"login",void 0),(0,c.gn)([h.aU],S.prototype,"logout",void 0),(0,c.gn)([h.aU],S.prototype,"loadModules",void 0),S=(0,c.gn)([(0,p.ZP)({name:"Login",components:{TAmbiguousIdentities:A}})],S);var L=S,R=L,q=(0,y.Z)(R,x,_,!1,null,"49bd2dc4",null),N=q.exports,E=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("t-vue-title",{attrs:{visible:!1}},[t._v(t._s(t.$t("recover.recover")))]),e("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"recoverForm",attrs:{model:t.recoverData,rules:t.rules,size:"mini"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{prop:"username"}},[e("el-input",{attrs:{prop:"username",placeholder:"Username"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("span",[t._v("@")])]},proxy:!0}]),model:{value:t.recoverData.username,callback:function(e){t.$set(t.recoverData,"username",e)},expression:"recoverData.username"}})],1),e("div",{staticClass:"text-center m-t m-b"},[e("el-button",{staticClass:"recover-button",attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("recover.recover")))])],1)],1)],1)},O=[];let F=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"authController",new P.Q(d["default"].axios)),(0,a.Z)(this,"recoverPassword",void 0),(0,a.Z)(this,"recoverData",{username:null}),(0,a.Z)(this,"loading",!1),(0,a.Z)(this,"rules",{})}created(){this.rules={username:[{required:!0,message:this.$t("login.validation.email"),trigger:"blur"},{type:"email",message:this.$t("login.validation.email"),trigger:"blur"}]}}async submitForm(){this.$refs.recoverForm.validate((async t=>{if(t){try{this.loading=!0,await this.authController.Recover(this.recoverData.username);await this.$alert(this.$t("recover.recovered"),{type:"success"}).catch((()=>{}));this.recoverData.username="",this.$router.push({name:this.$routeNames.login})}catch(e){if(e.data&&e.data.message){const t=[e.data.message],i="https://myprofile.teamsystem.com/Account/ForgotPassword";486===e.status&&t.push(`<br/><br/><a href="${i}" target="_blank">${i}</a>`),await this.$alert(t.join(""),{type:"error",dangerouslyUseHTMLString:!0}).catch((()=>{})).then((()=>{486===e.status&&(window.location=i)})),this.recoverData.username=""}}this.loading=!1}return!1}))}};(0,c.gn)([h.aU],F.prototype,"recoverPassword",void 0),F=(0,c.gn)([(0,p.ZP)({name:"RecoverPassword"})],F);var U=F,z=U,j=(0,y.Z)(z,E,O,!1,null,"161d0f0b",null),B=j.exports,G=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("t-vue-title",{attrs:{visible:!1}},[t._v(t._s(t.$t("reset.reset")))]),e("el-row",{staticClass:"m-b"},[e("el-col",[e("h4",[t._v(t._s(t.$t("reset.title")))])])],1),e("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.validating||t.changing,expression:"validating || changing"}],ref:"resetForm",attrs:{autocomplete:"off",model:t.model,rules:t.rules,size:"mini"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("input",{staticStyle:{display:"none"},attrs:{autocomplete:"false",name:"hidden",type:"text"}}),e("el-form-item",{attrs:{prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("i",{staticClass:"el-icon-icon-key"})]},proxy:!0}]),model:{value:t.model.password,callback:function(e){t.$set(t.model,"password",e)},expression:"model.password"}})],1),e("el-form-item",{attrs:{prop:"passwordConfirm"}},[e("el-input",{attrs:{type:"password",placeholder:"Password Confirm"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("i",{staticClass:"el-icon-icon-key"})]},proxy:!0}]),model:{value:t.model.passwordConfirm,callback:function(e){t.$set(t.model,"passwordConfirm",e)},expression:"model.passwordConfirm"}})],1),e("el-row",{staticClass:"m-b"},[e("el-col",{staticClass:"text-danger"},[e("transition",{attrs:{name:"el-zoom-in-top"}},[t.passwordRequirements?e("span",{staticClass:"text-danger",staticStyle:{"font-size":"0.8em"}},[e("sup",[t._v("*")]),t._v(" "+t._s(t.passwordRequirements)+" ")]):t._e()])],1)],1),e("div",{staticClass:"m-t m-b"},[e("el-button",{staticClass:"reset-button",attrs:{type:"primary"},on:{click:t.submitForm}}
1,[t._v(t._s(t.$t("reset.reset")))])],1)],1)],1)},H=[];let V=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"authController",new P.Q(d["default"].axios)),(0,a.Z)(this,"recoverPassword",void 0),(0,a.Z)(this,"loadModules",void 0),(0,a.Z)(this,"isAuthenticated",void 0),(0,a.Z)(this,"model",{password:null,passwordConfirm:null}),(0,a.Z)(this,"passwordRequirements",null),(0,a.Z)(this,"validating",!1),(0,a.Z)(this,"changing",!1),(0,a.Z)(this,"rules",{})}handleAuthenticationChange(t,e){t&&this.$router.replace({name:this.$routeNames.init})}get token(){return this.$route.query.token}mounted(){this.rules={password:[{required:!0,message:this.$t("reset.required"),trigger:"blur"},{validator:async(t,e,i,s,a)=>{try{this.validating=!0,await this.authController.ValidatePassword(this.token,{password:e}),this.passwordRequirements=null,i()}catch(o){this.passwordRequirements=o.data.message,i(this.$t("reset.requirements"))}this.validating=!1},trigger:"blur"}],passwordConfirm:[{required:!0,message:this.$t("reset.requiredConfirm"),trigger:"blur"},{validator:async(t,e,i,s,a)=>{e===this.model.password?i():i(this.$t("reset.requiredConfirmSame"))}}]}}async submitForm(){this.$refs.resetForm.validate((async t=>{if(t){this.changing=!0;try{const t=await this.authController.ChangePassword(this.token,{password:this.model.password});this.$store.commit("setToken",{token:t.access_token,refreshToken:t.refresh_token}),await this.loadModules(this.$router),this.$router.push({path:"/"})}catch(e){}this.changing=!1}return!1}))}};(0,c.gn)([h.aU],V.prototype,"recoverPassword",void 0),(0,c.gn)([h.aU],V.prototype,"loadModules",void 0),(0,c.gn)([h.aD],V.prototype,"isAuthenticated",void 0),(0,c.gn)([(0,k.RL)("isAuthenticated")],V.prototype,"handleAuthenticationChange",null),V=(0,c.gn)([(0,p.ZP)({name:"ResetPassword"})],V);var Q=V,W=Q,J=(0,y.Z)(W,G,H,!1,null,"4803ffea",null),K=J.exports,X=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("el-row",{staticClass:"m-b"},[e("el-col",[e("t-vue-title",[t._v(t._s(t.$t("invitation.title",{name:t.name})))]),e("div",{staticClass:"text m-t-h m-r m-l"},["password"===t.mode?e("div",[t._v(t._s(t.$t("invitation.help")))]):e("div",[t._v(t._s(t.$t("invitation.helptsid")))])])],1)],1),e("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.validating||t.changing,expression:"validating || changing"}],ref:"invitationForm",attrs:{model:t.model,rules:t.rules,size:"mini"}},[e("el-form-item",[e("el-input",{attrs:{value:t.email,type:"email",disabled:""},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("span",[t._v("@")])]},proxy:!0}])})],1),"tsid"===t.mode?e("div",[e("div",{staticClass:"m-t m-b"},[e("el-button",{staticClass:"account-invitation",attrs:{type:"primary"},on:{click:t.submitTsIdForm}},[t._v(" "+t._s(t.$t("invitation.login"))+" ")])],1),t._e()]):"password"===t.mode?e("div",[e("el-form-item",{attrs:{prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("i",{staticClass:"el-icon-icon-key"})]},proxy:!0}]),model:{value:t.model.password,callback:function(e){t.$set(t.model,"password",e)},expression:"model.password"}})],1),e("el-form-item",{attrs:{prop:"passwordConfirm"}},[e("el-input",{attrs:{type:"password",placeholder:"Password Confirm"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm.apply(null,arguments)}},scopedSlots:t._u([{key:"suffix",fn:function(){return[e("i",{staticClass:"el-icon-icon-key"})]},proxy:!0}]),model:{value:t.model.passwordConfirm,callback:function(e){t.$set(t.model,"passwordConfirm",e)},expression:"model.passwordConfirm"}})],1),e("el-row",{staticClass:"m-b"},[e("el-col",{staticClass:"text-danger"},[e("transition",{attrs:{name:"el-zoom-in-top"}},[t.passwordRequirements?e("span",{staticClass:"text-danger",staticStyle:{"font-size":"0.8em"}},[e("sup",[t._v("*")]),t._v(" "+t._s(t.passwordRequirements)+" ")]):t._e()])],1)],1),e("div",{staticClass:"m-t m-b"},[e("el-button",{staticClass:"account-invitation",attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(" "+t._s(t.$t("invitation.login"))+" ")])],1),e("div",{staticClass:"text text-center m-b cursor-pointer",on:{click:function(e){t.mode="tsid"}}}
1,[e("u",[t._v(t._s(t.$t("invitation.tsid")))])])],1):t._e()],1)],1)},Y=[];let tt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"authController",new P.Q(d["default"].axios)),(0,a.Z)(this,"loadModules",void 0),(0,a.Z)(this,"isAuthenticated",void 0),(0,a.Z)(this,"model",{password:null,passwordConfirm:null}),(0,a.Z)(this,"passwordRequirements",null),(0,a.Z)(this,"validating",!1),(0,a.Z)(this,"changing",!1),(0,a.Z)(this,"rules",{}),(0,a.Z)(this,"mode","tsid")}handleAuthenticationChange(t,e){t&&this.$router.replace({name:this.$routeNames.init})}get token(){return this.$route.query.token}async mounted(){!this.$route.query.mode||"tsid"!==this.$route.query.mode&&"password"!==this.$route.query.mode||(this.mode=this.$route.query.mode);try{const t=await this.authController.PreActivate(this.token);null!=t&&null!=t.access_token&&(this.$store.commit("setToken",{token:t.access_token,refreshToken:t.refresh_token}),await this.loadModules(this.$router),this.$router.push({path:"/"}))}catch(t){t.data&&t.data.exceptionMessage&&this.$alert(t.data.exceptionMessage,{type:"error",showConfirmButton:!1})}this.rules={password:[{required:!0,message:this.$t("reset.required"),trigger:"blur"},{validator:async(e,i,s,a,o)=>{try{this.validating=!0,await this.authController.ValidatePassword(this.token,{password:i}),this.passwordRequirements=null,s()}catch(t){this.passwordRequirements=t.data.message,s(this.$t("reset.requirements"))}this.validating=!1},trigger:"blur"}],passwordConfirm:[{required:!0,message:this.$t("reset.requiredConfirm"),trigger:"blur"},{validator:async(t,e,i,s,a)=>{e===this.model.password?i():i(this.$t("reset.requiredConfirmSame"))}}]}}get name(){return this.$route.query.name}get email(){return this.$route.query.email}async submitTsIdForm(){const t=await new D.N(this.$http).Link(null,!0,null,{headers:{Authorization:`Token ${this.token}`}});window.location.href=t}async submitForm(){this.$refs.invitationForm.validate((async t=>{if(t){this.changing=!0;try{const t=await this.authController.Activate(this.token,{password:this.model.password});this.$store.commit("setToken",{token:t.access_token,refreshToken:t.refresh_token}),await this.loadModules(this.$router),this.$router.push({path:"/"})}catch(e){e.data&&e.data.exceptionMessage&&this.$alert(e.data.exceptionMessage,{type:"error",showConfirmButton:!1})}this.changing=!1}return!1}))}};(0,c.gn)([h.aU],tt.prototype,"loadModules",void 0),(0,c.gn)([h.aD],tt.prototype,"isAuthenticated",void 0),(0,c.gn)([(0,k.RL)("isAuthenticated")],tt.prototype,"handleAuthenticationChange",null),tt=(0,c.gn)([(0,p.ZP)({name:"AccountInvitation"})],tt);var et=tt,it=et,st=(0,y.Z)(it,X,Y,!1,null,"b15bf0c8",null),at=st.exports,ot=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("p",{staticClass:"text text-1x",domProps:{innerHTML:t._f("xss")(t.$t("login.trialExpired.hello",{user_name:t.user_name}))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x",domProps:{innerHTML:t._s(t.$t("login.trialExpired.description1",{testing_days:t.testing_days,date:t.dataDeleteDate}))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x",domProps:{innerHTML:t._s(t.$t("login.trialExpired.description2"))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x"},[t._v(t._s(t.$t("login.trialExpired.description3")))]),e("div",{staticClass:"text-center m-t my-area-button"},[e("t-my-area-store-button",{attrs:{url:t.purchase_url}},[t._v(t._s(t.$t("licence.buy")))])],1)])},nt=[];let rt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"user_name",void 0),(0,a.Z)(this,"testing_days",void 0),(0,a.Z)(this,"expiration_date",void 0),(0,a.Z)(this,"purchase_url",void 0)}get dataDeleteDate(){return this.$moment(this.expiration_date).add(60,"d").format("L")}created(){this.$chat.show()}beforeRouteLeave(t,e,i){this.$chat.hide(),i()}};(0,c.gn)([(0,k.fI)()],rt.prototype,"user_name",void 0),(0,c.gn)([(0,k.fI)()],rt.prototype,"testing_days",void 0),(0,c.gn)([(0,k.fI)()],rt.prototype,"expiration_date",void 0),(0,c.gn)([(0,k.fI)()],rt.prototype,"purchase_url",void 0),rt=(0,c.gn)([(0,p.ZP)({name:"TrialExpired"})],rt);
1var lt=rt,ut=lt,ct=(0,y.Z)(ut,ot,nt,!1,null,"4d52dbf8",null),dt=ct.exports,pt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.backup,expression:"backup"}],attrs:{"element-loading-text":t.$t("login.licenceExpired.export.exporting")}},[e("p",{staticClass:"text text-1x",domProps:{innerHTML:t._f("xss")(t.$t("login.licenceExpired.hello",{user_name:t.user_name}))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x",domProps:{innerHTML:t._s(t.$t("login.licenceExpired.description1",{expiration_date:t.$moment(t.expiration_date).format("L"),date:t.dataDeleteDate}))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x",domProps:{innerHTML:t._s(t.$t("login.licenceExpired.description2"))}}),e("p",{staticClass:"text text-1x m-t-h lh-1_5x"},[t._v(t._s(t.$t("login.licenceExpired.description3")))]),e("div",{staticClass:"text-center m-t m-b"},[e("t-my-area-store-button",{attrs:{url:t.purchase_url}})],1),null!=t.export_link?e("div",{staticClass:"text-center m-t m-b"},[e("p",{staticClass:"text text-1x m-t-h lh-1_5x"},[t._v(t._s(t.$t("login.licenceExpired.export.title")))]),e("div",[e("el-button",{staticClass:"m-t-h",attrs:{type:"primary",size:"medium",icon:"el-icon-fa-download fas"},on:{click:t.handleBackupClick}},[t._v(t._s(t.$t("login.licenceExpired.export.backup")))])],1)]):t._e()])},ht=[];let mt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"user_name",void 0),(0,a.Z)(this,"testing_days",void 0),(0,a.Z)(this,"expiration_date",void 0),(0,a.Z)(this,"export_link",void 0),(0,a.Z)(this,"purchase_url",void 0),(0,a.Z)(this,"backup",!1)}get dataDeleteDate(){return this.$moment(this.expiration_date).add(60,"d").format("L")}created(){this.$chat.show()}beforeRouteLeave(t,e,i){this.$chat.hide(),i()}async handleBackupClick(){try{const t=await this.$prompt(this.$t("login.licenceExpired.export.confirm"),this.$t("login.licenceExpired.export.backup"),{inputPattern:new RegExp(`^${this.$t("login.licenceExpired.export.confirmString")}$`),inputErrorMessage:this.$t("login.licenceExpired.export.invalidConfirmString")});if(t.value===this.$t("login.licenceExpired.export.confirmString")){this.backup=!0;const t=(await this.$http.post(this.export_link)).data;t&&this.$alert(t,{type:"success"})}}catch(i){var t,e;this.$alert(null!==(t=null===i||void 0===i?void 0:i.message)&&void 0!==t?t:null===(e=i.data)||void 0===e?void 0:e.message,{type:"error"})}finally{this.backup=!1}}};(0,c.gn)([(0,k.fI)()],mt.prototype,"user_name",void 0),(0,c.gn)([(0,k.fI)()],mt.prototype,"testing_days",void 0),(0,c.gn)([(0,k.fI)()],mt.prototype,"expiration_date",void 0),(0,c.gn)([(0,k.fI)()],mt.prototype,"export_link",void 0),(0,c.gn)([(0,k.fI)()],mt.prototype,"purchase_url",void 0),mt=(0,c.gn)([(0,p.ZP)({name:"LicenceExpired"})],mt);var vt=mt,gt=vt,yt=(0,y.Z)(gt,pt,ht,!1,null,"c5fc2794",null),ft=yt.exports,bt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("el-row",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"text text-center",attrs:{type:"flex","element-loading-text":"Activating"}},[e("el-col",{staticClass:"loading-content"})],1)},xt=[];let _t=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"build",void 0),(0,a.Z)(this,"loadModules",void 0),(0,a.Z)(this,"isAuthenticated",void 0)}handleAuthenticationChange(t,e){t&&this.$router.replace({name:this.$routeNames.init})}get TsData(){return this.$route.query.TsData}get isTsId1Landing(){return null!=this.TsData}get isTsId3Landing(){return"Activation"===this.action}get action(){return this.$route.query.action}get user(){return this.$route.query.user}get customer(){return this.$route.query.customer}get subscription(){return this.$route.query.subscription}mounted(){this.isTsId1Landing&&this.initializeActivatingLoop(),this.isTsId3Landing&&this.initializeActivatingTsId3Loop()}initializeActivatingLoop(t=1){d["default"].axios.post("Licence/LinkToISPIdentity",JSON.stringify(this.TsData),{headers:{"Content-Type":"application/json"}}).then((e=>{switch(e.status){case 202:window.setTimeout((()=>this.initializeActivatingLoop(t+1)),2e3);break;case 201:this.$router.replace({name:this.$routeNames.tsid,query:this.$route.query});break}}
1)).catch((async e=>{switch(e.status){case 300:this.$router.replace({name:this.$routeNames.tsid,query:this.$route.query});break}t>10?this.$error.handleWebApiException(e).then((()=>this.toLogin())).catch((()=>this.toLogin())):window.setTimeout((()=>this.initializeActivatingLoop(t+1)),2e3)}))}async initializeActivatingTsId3Loop(t=1){let e={};try{const t=new P.Q(this.$http),e=await t.PreLogin(this.user),s=e.find((t=>t.licence===this.subscription));if(s){var i;const t=await new D.N(this.$http).Home(s.userId,s.customerId,s.userName,!1,0===(null!==(i=s.tsIdCode)&&void 0!==i?i:"").length);return void(location.href=t)}}catch(s){e=s}t>10?this.$error.handleWebApiException(e).then((()=>this.toLogin())).catch((()=>this.toLogin())):window.setTimeout((()=>this.initializeActivatingTsId3Loop(t+1)),2e3)}toLogin(){this.$router.replace({name:this.$routeNames.login})}};(0,c.gn)([h.aD],_t.prototype,"build",void 0),(0,c.gn)([h.aU],_t.prototype,"loadModules",void 0),(0,c.gn)([h.aD],_t.prototype,"isAuthenticated",void 0),(0,c.gn)([(0,k.RL)("isAuthenticated")],_t.prototype,"handleAuthenticationChange",null),_t=(0,c.gn)([(0,p.ZP)({name:"Activating"})],_t);var wt=_t,kt=wt,$t=(0,y.Z)(kt,bt,xt,!1,null,"2b660d2b",null),Ct=$t.exports,Zt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[t.ambiguousIdentities?e("h3",[t._v(t._s(t.$t("login.ambiguous.title")))]):t._e(),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isAuthenticating,expression:"isAuthenticating"}],attrs:{"element-loading-text":"TsId Auth"}},[e("transition-group",{attrs:{mode:"out-in",name:"el-zoom-in-center"}},[t.ambiguousIdentities?e("div",{key:"ambiguous"},[e("t-ambiguous-identities",{attrs:{value:t.ambiguousIdentities},on:{click:e=>t.loginWithCustomer(e.customerId)}})],1):e("div",{key:"pending"},[e("el-row",{staticClass:"text text-center",attrs:{type:"flex"}},[e("el-col",{staticClass:"loading-content"})],1),e("el-collapse-transition",[e("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.authenticationMessage,expression:"authenticationMessage != null"}],staticClass:"text text-center text-danger"},[e("div",{staticClass:"shake"},[t._v(t._s(t.authenticationMessage))]),e("div",{staticClass:"m-t-h"},[e("router-link",{attrs:{to:{name:t.$routeNames.login}}},[e("el-button",{attrs:{type:"primary"}},[t._v(t._s(t.$t("login.goto")))])],1)],1)])])],1)])],1)])},It=[];let Tt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"build",void 0),(0,a.Z)(this,"isAuthenticated",void 0),(0,a.Z)(this,"loginIsp",void 0),(0,a.Z)(this,"loginIspV3",void 0),(0,a.Z)(this,"loadModules",void 0),(0,a.Z)(this,"isAuthenticating",!1),(0,a.Z)(this,"authenticationMessage",null),(0,a.Z)(this,"ambiguousIdentities",null)}handleAuthenticationChange(t,e){t&&this.$router.replace({name:this.$routeNames.init})}get tsid3(){return this.$route.query.tsid3}get TsData(){return this.$route.query.TsData}created(){this.$chat.show()}async mounted(){await this.authenticate()}beforeRouteLeave(t,e,i){this.$chat.hide(),i()}async loginWithCustomer(t){this.ambiguousIdentities=null,await this.authenticate(t)}async authenticate(t){this.tsid3?await this.authenticateTsId((async()=>{await this.loginIspV3({code:this.tsid3,customerId:t})})):this.TsData?await this.authenticateTsId((async()=>{await this.loginIsp({code:this.TsData,customerId:t})})):this.$router.replace({name:this.$routeNames.login})}async authenticateTsId(t){w["default"].clearTokens(),this.$store.commit("clearAuthentication"),this.isAuthenticating=!0;try{await t(),await this.loadModules(this.$router)}catch(e){if(e.data){if(409===e.status&&e.data.identities)return this.ambiguousIdentities=e.data.identities,void(this.isAuthenticating=!1);if(402===e.status&&e.data.user_name)return void(e.data.testing_days?this.$router.push({name:this.$routeNames.trialExpired,params:e.data}):this.$router.push({name:this.$routeNames.licenceExpired,params:e.data}));e.data.error_description?this.authenticationMessage=e.data.error_description:e.data.exceptionMessage&&(this.authenticationMessage=e.data.exceptionMessage)}else this.authenticationMessage=e.message}this.isAuthenticating=!1}};(0,c.gn)([h.aD],Tt.prototype,"build",void 0),(0,c.gn)([h.aD],Tt.prototype,"isAuthenticated",void 0),(0,c.gn)([(0,k.RL)("isAuthenticated")],Tt.prototype,"handleAuthenticationChange",null),(0,c.gn)([h.aU],Tt.prototype,"loginIsp",void 0),(0,c.gn)([h.aU],Tt.prototype,"loginIspV3",void 0),(0,c.gn)([h.aU],Tt.prototype,"loadModules",void 0),Tt=(0,c.gn)([(0,p.ZP)({name:"TsId",components:{TAmbiguousIdentities:A}})],Tt);var Mt=Tt,At=Mt,Pt=(0,y.Z)(At,Zt,It,!1,null,"0fc53ff0",null),Dt=Pt.exports,St=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}]})},Lt=[];let Rt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"menu",void 0)}mounted(){this.goToFirstRoutePage()}goToFirstRoutePage(){this.$router.replace(this.findFirstRoute(this.menu))}findFirstRoute(t){if(t)for(const e of t)if(e.subItems)for(const t of e.subItems)if(t.route)return{name:t.route};return{name:"notFound"}}};(0,c.gn)([h.aD],Rt.prototype,"menu",void 0),Rt=(0,c.gn)([(0,p.ZP)({name:"Test"})],Rt);var qt,Nt,Et=Rt,Ot=Et,Ft=(0,y.Z)(Ot,St,Lt,!1,null,null,null),Ut=Ft.exports,zt=function(){var t=this,e=t._self._c;return e("div",[e("el-select",{on:{change:t.updateMarkerPosition},model:{value:t.selectedLocation,callback:function(e){t.selectedLocation=e},expression:"selectedLocation"}}
1,[e("el-option",{attrs:{label:"My Office",value:t.officeLocation}}),e("el-option",{attrs:{label:"Home",value:t.homeLocation}})],1),e("div",{ref:"googleMap",staticClass:"map"})],1)},jt=[],Bt=i(58147);let Gt=(qt=(0,p.ZP)({name:"t-map-dynamic-mark"}),qt(Nt=class extends Bt.Z{constructor(...t){super(...t),(0,a.Z)(this,"officeLocation",{lat:47.5,lng:14.5}),(0,a.Z)(this,"homeLocation",{lat:48.5,lng:16.5}),(0,a.Z)(this,"markerPosition",null),(0,a.Z)(this,"markerPosition1",null),(0,a.Z)(this,"selectedLocation",null),(0,a.Z)(this,"staticMarker1Marker",null),(0,a.Z)(this,"map",null),(0,a.Z)(this,"marker",null),(0,a.Z)(this,"directionsService",null),(0,a.Z)(this,"directionsRenderer",null),(0,a.Z)(this,"distance",null)}created(){navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>{this.markerPosition={lat:t.coords.latitude,lng:t.coords.longitude},this.initMap()}),(t=>{console.error("Error getting user location:",t),this.initMap()})):(console.error("Geolocation is not supported by this browser."),this.initMap())}initMap(){google.maps.Map&&(this.directionsService=new google.maps.DirectionsService,this.directionsRenderer=new google.maps.DirectionsRenderer,this.map=new google.maps.Map(this.$refs.googleMap,{center:this.markerPosition,zoom:5}),this.marker=new google.maps.Marker({position:this.markerPosition,map:this.map}),this.directionsRenderer.setMap(this.map),this.map.addListener("dragend",this.updateMarkerPosition),this.updateMarkerPosition())}updateMarkerPosition(){this.calculateAndDisplayRoute()}calculateAndDisplayRoute(){this.directionsService.route({origin:this.markerPosition,destination:this.selectedLocation,travelMode:google.maps.TravelMode.DRIVING},((t,e)=>{"OK"===e?this.directionsRenderer.setDirections(t):console.error("Error calculating route:",e)}))}})||Nt);var Ht=Gt,Vt=(0,y.Z)(Ht,zt,jt,!1,null,"14146c36",null),Qt=Vt.exports,Wt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("el-card",{staticStyle:{width:"1200px"}},[e("el-divider",[t._v("In Attività")]),e("el-table",{attrs:{data:t.records,"highlight-current-row":!1}},[e("el-table-column",{attrs:{label:"Utente",prop:"userId",width:"250"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("t-account-input",{attrs:{simple:""},model:{value:i.userId,callback:function(e){t.$set(i,"userId",e)},expression:"row.userId"}})]}}])}),e("el-table-column",{attrs:{label:"Data",prop:"date",width:"140"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[e("t-date-picker",{attrs:{value:new Date(t.date),type:"date"},on:{input:e=>t.date=e.toISOString()}})]}}])}),e("el-table-column",{attrs:{label:"UM",prop:"um",width:"100"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[e("el-select",{attrs:{value:t.um},on:{input:e=>{t.um=e,t.value=0}}},[e("el-option",{attrs:{value:0,label:"ore"}}),e("el-option",{attrs:{value:1,label:"cad"}})],1)]}}])}),e("el-table-column",{attrs:{label:"Valore",prop:"value",width:"160"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("div",[0===i.um?e("span",[e("t-duration",{attrs:{start:0,step:15,end:540},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1):e("span",[e("el-input-number",{attrs:{"controls-position":"right",type:"numeric",precision:2,icon:"el-icon-icon-coin-dollar"},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1)])]}}])}),e("el-table-column",{attrs:{label:"Tot",width:"120"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[0===t.um?e("span",[e("t-currency-value",{attrs:{value:Math.ceil(50*t.value/60*100,10)/100}})],1):e("span",[e("t-currency-value",{attrs:{value:Math.ceil(100*t.value,10)/100}})],1)]}}])}),e("el-table-column",{attrs:{label:"Risorsa esterna",prop:"companyId",width:"280"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("div",[e("t-company-input",{attrs:{simple:""},model:{value:i.companyId,callback:function(e){t.$set(i,"companyId",e)},expression:"row.companyId"}})],1)]}}])})],1),e("div",{staticClass:"text-right"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-icon-plus"},on:{click:t.add}})],1)],1)],1)},Jt=[];let Kt=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"user",void 0),(0,a.Z)(this,"records",[])}mounted(){this.add()}add(){this.records.push({userId:this.user.userId,date:this.$moment().toISOString(),um:0,value:0,companyId:null})}};(0,c.gn)([h.aD],Kt.prototype,"user",void 0),Kt=(0,c.gn)([(0,p.ZP)({name:"Activity"})],Kt);var Xt=Kt,Yt=Xt,te=(0,y.Z)(Yt,Wt,Jt,!1,null,"7fb7c656",null),ee=te.exports,ie=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("el-card",[e("el-divider",[t._v("In Opportunità")]),e("t-resolve-label",{attrs:{type:t.$enums.ListsType.ListOwner,value:1}}),e("el-table",{attrs:{data:t.records,"highlight-current-row":!1}},[e("el-table-column",{attrs:{label:"Attività",width:"200"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("el-select",{model:{value:i.activityId,callback:function(e){t.$set(i,"activityId",e)},expression:"row.activityId"}},t._l(t.activities,(function(i){return e("el-option",{key:i.id,attrs:{value:i.id,label:i.subject}},[e("t-icon-label",{attrs:{icon:"el-icon-"+t.activityTypeMapping.toIcon(i.subTypeId),"icon-style":{color:t.activityTypeMapping.toColor(i.subTypeId)}}},[t._v(t._s(i.subject))])],1)})),1)]}}])}),e("el-table-column",{attrs:{label:"UM",prop:"um",width:"100"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[e("el-select",{attrs:{value:t.um},on:{input:e=>{t.um=e,t.value=0}}},[e("el-option",{attrs:{value:0,label:"ore"}}),e("el-option",{attrs:{value:1,label:"cad"}})],1)]}}])}),e("el-table-column",{attrs:{label:"Valore",prop:"value",width:"160"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("div",[0===i.um?e("span",[e("t-duration",{attrs:{start:0,step:15,end:540},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1):e("span",[e("el-input-number",{attrs:{"controls-position":"right",type:"numeric",precision:2,icon:"el-icon-icon-coin-dollar"},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1)])]}}])}),e("el-table-column",{attrs:{label:"Tot",width:"120"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[0===t.um?e("span",[e("t-currency-value",{attrs:{value:Math.ceil(50*t.value/60*100,10)/100}})],1):e("span",[e("t-currency-value",{attrs:{value:Math.ceil(100*t.value,10)/100}})],1)]}}])}),e("el-table-column",{attrs:{label:"PROPS",width:"50"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("el-popover",{ref:"popover-userprofile",attrs:{placement:"left",width:300},scopedSlots:t._u([{key:"reference",fn:function(){return[e("i",{staticClass:"el-icon-icon-info"})]},proxy:!0}],null,!0)},[e("el-form",[e("div",[t._v("Utente:")]),e("t-account-input",{attrs:{simple:"",multiple:""},model:{value:i.userId,callback:function(e){t.$set(i,"userId",e)},expression:"row.userId"}}),e("div",[t._v("Data")]),e("t-date-picker",{attrs:{value:new Date(i.date),type:"date"},on:{input:t=>i.date=t.toISOString()}}),e("div",[t._v("Risorsa esterna")]),e("t-company-input",{attrs:{simple:""},model:{value:i.companyId,callback:function(e){t.$set(i,"companyId",e)},expression:"row.companyId"}})],1)],1)]}}])})],1),e("t-resolve-label",{attrs:{type:t.$enums.ListsType.ListOwner,value:1}}),e("el-table",{attrs:{data:t.records,"highlight-current-row":!1}},[e("el-table-column",{attrs:{label:"Attività",width:"200"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("el-select",{model:{value:i.activityId,callback:function(e){t.$set(i,"activityId",e)},expression:"row.activityId"}},t._l(t.activities,(function(i){return e("el-option",{key:i.id,attrs:{value:i.id,label:i.subject}},[e("t-icon-label",{attrs:{icon:"el-icon-"+t.activityTypeMapping.toIcon(i.subTypeId),"icon-style":{color:t.activityTypeMapping.toColor(i.subTypeId)}}},[t._v(t._s(i.subject))])],1)})),1)]}}])}),e("el-table-column",{attrs:{label:"UM",prop:"um",width:"100"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[e("el-select",{attrs:{value:t.um},on:{input:e=>{t.um=e,t.value=0}}},[e("el-option",{attrs:{value:0,label:"ore"}}),e("el-option",{attrs:{value:1,label:"cad"}})],1)]}}])}),e("el-table-column",{attrs:{label:"Valore",prop:"value",width:"160"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("div",[0===i.um?e("span",[e("t-duration",{attrs:{start:0,step:15,end:540},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1):e("span",[e("el-input-number",{attrs:{"controls-position":"right",type:"numeric",precision:2,icon:"el-icon-icon-coin-dollar"},model:{value:i.value,callback:function(e){t.$set(i,"value",e)},expression:"row.value"}})],1)])]}}])}),e("el-table-column",{attrs:{label:"Tot",width:"120"},scopedSlots:t._u([{key:"default",fn:function({row:t}){return[0===t.um?e("span",[e("t-currency-value",{attrs:{value:Math.ceil(50*t.value/60*100,10)/100}})],1):e("span",[e("t-currency-value",{attrs:{value:Math.ceil(100*t.value,10)/100}})],1)]}}])}),e("el-table-column",{attrs:{label:"PROPS",width:"50"},scopedSlots:t._u([{key:"default",fn:function({row:i}){return[e("el-popover",{ref:"popover-userprofile",attrs:{placement:"left",width:300},scopedSlots:t._u([{key:"reference",fn:function(){return[e("i",{staticClass:"el-icon-icon-info"})]},proxy:!0}],null,!0)},[e("el-form",[e("div",[t._v("Utente:")]),e("t-account-input",{attrs:{simple:"",multiple:""},model:{value:i.userId,callback:function(e){t.$set(i,"userId",e)},expression:"row.userId"}}),e("div",[t._v("Data")]),e("t-date-picker",{attrs:{value:new Date(i.date),type:"date"},on:{input:t=>i.date=t.toISOString()}}),e("div",[t._v("Risorsa esterna")]),e("t-company-input",{attrs:{simple:""},model:{value:i.companyId,callback:function(e){t.$set(i,"companyId",e)},expression:"row.companyId"}})],1)],1)]}}])})],1),e("div",{staticClass:"text-right"},[e("el-button",{attrs:{type:"primary",icon:"el-icon-icon-plus"},on:{click:t.add}})],1)],1)],1)},se=[],ae=i(96486),oe=i.n(ae),ne=i(17940),re=i(75124);let le=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"user",void 0),(0,a.Z)(this,"activityTypeMapping",re.Z),(0,a.Z)(this,"activityController",new ne.Lc(this.$http)),(0,a.Z)(this,"opportunityId",29733),(0,a.Z)(this,"records",[]),(0,a.Z)(this,"activities",null)}get recordGrouped(){return oe().groupBy(this.records,"userId")}async mounted(){this.activities=await this.activityController.SearchByODataCriteria(`opportunityId eq ${this.opportunityId}`,"activityDate desc",null,20),this.add()}add(){var t,e,i;const s=this.records.slice(-1)[0],a=this.activities[0];this.records.push({activityId:null!==(t=null===s||void 0===s?void 0:s.activityId)&&void 0!==t?t:a.id,userId:null!==(e=null===s||void 0===s?void 0:s.userId)&&void 0!==e?e:this.user.userId,date:null!==(i=null===s||void 0===s?void 0:s.date)&&void 0!==i?i:a.activityDate,um:0,value:0,companyId:null})}};(0,c.gn)([h.aD],le.prototype,"user",void 0),le=(0,c.gn)([(0,p.ZP)({name:"Opportunity"})],le);var ue=le,ce=ue,de=(0,y.Z)(ce,ie,se,!1,null,"9d96950a",null),pe=de.exports,he=function(){var t=this,e=t._self._c;return e("el-row",{attrs:{type:"flex",justify:"center",align:"middle"}},[e("el-col",{attrs:{justify:"center",align:"middle"}},[e("div",{staticClass:"text-info m-b m-t"},[e("i",{staticClass:"el-icon-icon-sad",staticStyle:{"font-size":"10em"}})]),e("h1",{staticClass:"m-b m-t"},[e("div",{staticClass:"text-info"},[t._v(t._s(t.$route.params.code))]),e("div",{staticClass:"text-info m-b"},[t._v(t._s(t.$route.params.error))])]),e("div",{staticClass:"m-t"},[e("h3",{staticClass:"text text-big text-info"}
1,[t._v(t._s(t.$route.params.message))])])])],1)},me=[],ve={},ge=(0,y.Z)(ve,he,me,!1,null,null,null),ye=ge.exports,fe=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("t-vue-title",{attrs:{visible:!1}},[t._v(t._s(t.$t("global.title")))]),t.isCompanyModule||t.isContactModule||t.isLeadModule||t.isActivityModule?t._e():e("t-unauthorized-message"),e("div",[t.isCompanyModule?e("el-row",{staticClass:"global-slot"},[e("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[e("el-row",{attrs:{type:"flex"}},[e("el-col",[e("h2",[t._v(t._s(t.$t("company.companies")))])]),e("el-col",[e("div",{staticClass:"pull-right"},[e("el-switch",{model:{value:t.company,callback:function(e){t.company=e},expression:"company"}})],1)])],1)]},proxy:!0}],null,!1,1506417641)},[t.company?e("t-grid",{attrs:{repeater:"GlobalSearchCompanyRepeater",customParameterData:{key:t.term}},on:{linkClick:e=>t.globalRedirect(e,t.$routeNames.company)}}):t._e()],1)],1):t._e(),t.isContactModule?e("el-row",{staticClass:"global-slot"},[e("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[e("el-row",{attrs:{type:"flex"}},[e("el-col",[e("h2",[t._v(t._s(t.$t("contact.contacts")))])]),e("el-col",[e("div",{staticClass:"pull-right"},[e("el-switch",{model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)])],1)]},proxy:!0}],null,!1,2772735899)},[t.contact?e("t-grid",{attrs:{repeater:"GlobalSearchContactRepeater",customParameterData:{key:t.term}}
1,on:{linkClick:e=>t.globalRedirect(e,t.$routeNames.contact)}}):t._e()],1)],1):t._e(),t.isLeadModule?e("el-row",{staticClass:"global-slot"},[e("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[e("el-row",{attrs:{type:"flex"}},[e("el-col",[e("h2",[t._v(t._s(t.$t("lead.leads")))])]),e("el-col",[e("div",{staticClass:"pull-right"},[e("el-switch",{model:{value:t.lead,callback:function(e){t.lead=e},expression:"lead"}})],1)])],1)]},proxy:!0}],null,!1,1389196023)},[t.lead?e("t-grid",{attrs:{repeater:"GlobalSearchLeadRepeater",customParameterData:{key:t.term}},on:{linkClick:e=>t.globalRedirect(e,t.$routeNames.lead)}}):t._e()],1)],1):t._e(),t.isActivityModule?e("el-row",{staticClass:"global-slot"},[e("el-card",{scopedSlots:t._u([{key:"header",fn:function(){return[e("el-row",{attrs:{type:"flex"}},[e("el-col",[e("h2",[t._v(t._s(t.$t("activity.activities")))])]),e("el-col",[e("div",{staticClass:"pull-right"},[e("el-switch",{model:{value:t.activity,callback:function(e){t.activity=e},expression:"activity"}})],1)])],1)]},proxy:!0}],null,!1,521926979)},[t.activity?e("t-grid",{attrs:{repeater:"GlobalSearchActivityRepeater",customParameterData:{key:t.term}}
1,on:{linkClick:e=>t.globalRedirect(e,t.$routeNames.activity)}}):t._e()],1)],1):t._e()],1)],1)},be=[];let xe=class extends d["default"]{constructor(...t){super(...t),(0,a.Z)(this,"user",void 0),(0,a.Z)(this,"global",void 0),(0,a.Z)(this,"globalMutation",void 0)}get term(){return this.$route.query.q}get isCompanyModule(){return this.user.isAuthorizedToRead(this.$enums.BusinessObjectType.Company)}get isContactModule(){return this.user.isAuthorizedToRead(this.$enums.BusinessObjectType.Contact)}get isLeadModule(){return this.user.isAuthorizedToRead(this.$enums.BusinessObjectType.Lead)}get isActivityModule(){return this.user.isAuthorizedToRead(this.$enums.BusinessObjectType.Activity)}get company(){return this.global.company}set company(t){this.globalMutation({...this.global,company:t})}get contact(){return this.global.contact}set contact(t){this.globalMutation({...this.global,contact:t})}get lead(){return this.global.lead}set lead(t){this.globalMutation({...this.global,lead:t})}get activity(){return this.global.activity}set activity(t){this.globalMutation({...this.global,activity:t})}globalRedirect(t,e){this.$router.push({name:e,params:{id:this.$hashids.encode(t)}})}};(0,c.gn)([h.aD],xe.prototype,"user",void 0),(0,c.gn)([(0,h.aD)("base/global")],xe.prototype,"global",void 0),(0,c.gn)([(0,h.mm)("base/global")],xe.prototype,"globalMutation",void 0),xe=(0,c.gn)([(0,p.ZP)({name:"GlobalSearch"})],xe);var _e=xe,we=_e,ke=(0,y.Z)(we,fe,be,!1,null,null,null),$e=ke.exports,Ce=i(56887);const Ze=[{path:"/redirect/:routeName/:id?",beforeEnter(t,e,i){i({name:t.params.routeName,params:{id:t.params.id},query:t.query})}},{name:Ce.Z.root,path:"/",component:n.Z,children:[{path:"land",alias:"",component:Ut},{path:"test",component:Qt},{path:"timesheet/activity",component:ee},{path:"timesheet/opportunity",component:pe},{name:Ce.Z.globalSearch,path:"global",component:$e},{name:Ce.Z.error4xx,path:"4xx",component:ye},{path:"404",component:ye}]},{path:"/",component:r.Z,meta:{anonymous:!0},children:[{path:"",component:b,children:[{name:Ce.Z.login,path:"login",component:N,meta:{anonymous:!0}},{name:Ce.Z.recoverPassword,path:"recover",component:B,meta:{anonymous:!0}},{path:"recover/reset",name:Ce.Z.resetPassword,component:K,meta:{anonymous:!0}},{path:"activating",name:Ce.Z.activating,component:Ct,meta:{anonymous:!0}},{path:"invitation",name:Ce.Z.accountInvitation,component:at,meta:{anonymous:!0}},{path:"tsid",name:Ce.Z.tsid,component:Dt,meta:{anonymous:!0}},{path:"trialexpired",name:Ce.Z.trialExpired,component:dt,props:!0,meta:{anonymous:!0,big:!0}},{path:"licenceexpired",name:Ce.Z.licenceExpired,component:ft,props:!0,meta:{anonymous:!0,big:!0}}],meta:{anonymous:!0}}]}];var Ie=Ze;const Te={async init(t){await t.dispatch("addRoute",{routes:Ie},{root:!0})}};var Me=Te;class Ae{constructor(){(0,a.Z)(this,"global",(t=>t.globalSearchPreference))}}const Pe=new Ae;var De=Pe;class Se{constructor(){(0,a.Z)(this,"global",((t,e)=>{t.globalSearchPreference=e}))}}const Le=new Se;var Re=Le;function qe(){const t={actions:Me,getters:De,mutations:Re,state:new o,namespaced:!0};s.Z.state.base&&s.Z.unregisterModule("base"),s.Z.registerModule("base",t)}var Ne=i(97746);const Ee=()=>{qe(),Ne.Z.addRepository((t=>i(59276)(`./${t}`)))};var Oe=Ee},65997:function(t,e,i){"use strict";i.d(e,{N:function(){return a}});var s=i(54503);class a{constructor(t){if((0,s.Z)(this,"axios",void 0),null===t||void 0===t)throw new Error("axios argument is required in Tsid3Controller constructor class, and cannot be empty or undefined");this.axios=t}Home(t,e,i,s=!0,a=!1,o,n){return this.axios.get("Tsid3/Home?"+(null===t||void 0===t?"":"&userId="+t)+(null===e||void 0===e?"":"&customerId="+e)+(null===i||void 0===i?"":"&email="+encodeURIComponent(i))+"&forceLogin="+s+"&accountLink="+a,{...n,cancelToken:o}).then((t=>t.data))}Link(t,e=!0,i,s){return this.axios.get("Tsid3/Link?"+(null===t||void 0===t?"":"&identifier="+encodeURIComponent(t))+"&forceLogin="+e,{...s,cancelToken:i}).then((t=>t.data))}AuthCallback(t,e,i){return this.axios.get("Tsid3/AuthCallback?"+(null===t||void 0===t?"":"&"+Object.keys(t).filter((e=>t[e])).map((e=>e+"="+encodeURIComponent(t[e]))).join("&")),{...i,cancelToken:e}).then((t=>t.data))}Logout(t,e){return this.axios.get("Tsid3/Logout",{...e,cancelToken:t}).then((t=>t.data))}LogoutCallback(t,e,i){return this.axios.get("Tsid3/LogoutCallback?"+(null===t||void 0===t?"":"&tsid3LogoutCallback="+encodeURIComponent(t)),{...i,cancelToken:e}).then((t=>t.data))}LogoutCallback2(t,e){return this.axios.get("Tsid3/LogoutCallback",{...e,cancelToken:t}).then((t=>t.data))}UnmapUser(t,e,i){return this.axios.get("Tsid3/UnmapUser?&userId="+t,{...i,cancelToken:e}).then((t=>t.data))}Echo(t,e,i){return this.axios.post("Tsid3/Echo",t,{...i,cancelToken:e}).then((t=>t.data))}GetSwagger(t=!1,e=!0,i,s){return this.axios.get("Tsid3/GetSwagger?&honorAcceptLanguageHeader="+t+"&bestPracticeOnly="+e,{...s,cancelToken:i}).then((t=>t.data))}}}
1,75124:function(t,e,i){"use strict";var s=i(54503),a=i(44490),o=i(33304),n=i(54544);class r{constructor(){(0,s.Z)(this,"iconMapping",{[a.T.CaseSolution]:"icon-question5",[a.T.PhoneCall]:"icon-phone",[a.T.Email]:"icon-paperplane",[a.T.Fax]:"icon-shredder",[a.T.Sms]:"icon-mobile",[a.T.Generic]:"icon-lamp5",[a.T.Letter]:"icon-typewriter",[a.T.Memo]:"icon-quill2",[a.T.Visit]:"icon-location4"}),(0,s.Z)(this,"colorMapping",{[a.T.CaseSolution]:"#ff7f0e",[a.T.PhoneCall]:"#2ca02c",[a.T.Email]:"#1f77b4",[a.T.Fax]:"#7f7f7f",[a.T.Sms]:"#3366cc",[a.T.Generic]:"#bcbd22",[a.T.Letter]:"#17becf",[a.T.Memo]:"#9467bd",[a.T.Visit]:"#e377c2"})}toIcon(t){const e=this.getActivityTypeDefinition(t);return e&&e.infoData?e.infoData&&e.infoData["Icon"]&&e.infoData["Icon"].value?e.infoData["Icon"].value:this.iconMapping[e.infoData["Type"].value]:this.iconMapping[a.T.Generic]}toDefaultIcon(t){return this.iconMapping[t]}toColor(t){const e=this.getActivityTypeDefinition(t);return e&&e.infoData?e.infoData&&e.infoData["Color"]&&e.infoData["Color"].value?e.infoData["Color"].value:this.colorMapping[e.infoData["Type"].value]:this.colorMapping[a.T.Generic]}toDefaultColor(t){return this.colorMapping[t]}getActivityTypeDefinition(t){const e=o.Z.getters["lists/list"];return e?e(n.w.ListActivityType).find((e=>e.value===t)):null}}e.Z=new r},59276:function(t,e,i){var s={"./de":[48994,324],"./de.ts":[48994,324],"./en":[9513,695],"./en.ts":[9513,695],"./es":[51448,146],"./es.ts":[51448,146],"./fr":[58913,242],"./fr.ts":[58913,242],"./it":[32789,781],"./it.ts":[32789,781],"./ro":[10750,356],"./ro.ts":[10750,356]};function a(t){if(!i.o(s,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=s[t],a=e[0];return i.e(e[1]).then((function(){return i(a)}))}a.keys=function(){return Object.keys(s)},a.id=59276,t.exports=a}}]);
2//# sourceMappingURL=base.62683333.js.map

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.