diff --git a/products/cloud/src/main/resources/static/index.html b/products/cloud/src/main/resources/static/index.html index 985929753..5a50d3836 100644 --- a/products/cloud/src/main/resources/static/index.html +++ b/products/cloud/src/main/resources/static/index.html @@ -1,2 +1,2 @@ k.Engine
\ No newline at end of file + document.write("
\ No newline at end of file diff --git a/products/cloud/src/main/resources/static/js/app.e0d7c37c.js b/products/cloud/src/main/resources/static/js/app.e0d7c37c.js deleted file mode 100644 index bdfdae1c9..000000000 --- a/products/cloud/src/main/resources/static/js/app.e0d7c37c.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var s,r,i=t[0],l=t[1],c=t[2],d=0,p=[];de.token,selectedApp:e=>e.selectedApp},S={STORE_TOKEN:(e,t)=>{e.token=t},SET_SELECTED_APP:(e,t)=>{e.selectedApp=t}},I=(o("14d9"),o("bc78")),T=o("758b"),P=o("a925"),$={commons:{appName:"k.Engine"},menu:{home:"Home"},labels:{warning:"Warning",username:"Username",password:"Password",newPassword:"New password",newPasswordConfirmation:"New password confirmation",btnLogin:"Login",textLogin:"Already signed up?",btnRegister:"Register",linkLogin:"Login",textRegister:"New to k.LAB?",linkRegister:"Sign up",btnAccept:"Accept",btnCancel:"Cancel",btnGoogle:"Sign in with Google",btnSetPassword:"Set password",forgotPassword:"Forgot password?",btnResetPassword:"Reset password",rememberMe:"Remember me",selectAppTitle:"Available apps",kexplorerOption:"k.Explorer",logout:"Logout",noLayoutLabel:"No title",noLayoutDescription:"No description"},messages:{genericError:"There was an error, please try later",networkError:"Network error",fieldRequired:"Field required",passwordValidationError:"Password must be between 8 and 32 characters",passwordUnableToDo:"Unable to change user password",passwordChanged:"Password changed",passwordChangedError:"There was an error, password is not changed",passwordMailError:"There wan an error sending confirmation email, password is changed",passwordDoesNotMatch:"Password does not match the password verification field",changingPassword:"Changing password",userPswInvalid:"Bad Username or password",userAlreadyInUse:"Username or Email already in use!",invalidRedirect:"Redirect error, please contact support",failed:"Action failed",success:"Action was successful",loading:"Loading",acceptEULA:"I have read and accept the END USER LICENSE AGREEMENT (EULA) for individual non-profit use",mustAcceptEULA:"You must read and accept the EULA to download certificate",changePasswordTitle:"Change password",loggingOut:"Logging out",errorLoggingOut:"Error logging out, contact support"},contents:{registerContent:'\n

ARIES is an open system where all participants contribute and share knowledge for the common good. For this reason we ask that all accounts are traceable to real people and institutions. Please ensure that:

\n \n

We actively monitor the registration database and we regularly delete or disable accounts that do not match the above conditions. In addition, attempts to make for-profit use of ARIES products with a non-profit licensing terms will result in permanent exclusion from the registration system and potential legal prosecution according to the\n EULA.

\n

By clicking the registration button you agree that the personal data you provide will be processed by ASOCIACIÓN BC3 BASQUE CENTRE FOR CLIMATE CHANGE-KLIMA ALDAKETA IKERGAI with the purpose of\n managing your registration request and your access to the tool. You may exercise your rights on data protection at ARCrights@BC3research.org.\n
Additional information in this respect is available in the EULA

\n ',forgetPasswordContent:'\n

Insert your email account information.

Please Contact Us if you require any assistance.

\n ',homeTitle:"Welcome",homeContent:"",kxplorerDescription:"The general k.LAB interface to freely explore the observation space by querying the knowledge base. To see example queries targeted to the user's profile, move to a location of interest and press the space bar."}},M={"en-us":$};s["a"].use(P["a"]);const x=new P["a"]({locale:"en-us",fallbackLocale:"en-us",messages:M});var D=({app:e})=>{e.i18n=x},z=o("8c4f"),U=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"au-layout",view:"hHh lpR fFf"}},[t("div",{staticClass:"au-container"},[t("transition",{attrs:{appear:"","appear-class":"custom-appear-class"}},[t("div",{staticClass:"au-fixed-center text-center au-container"},[t("div",{staticClass:"au-logo-container"},[t("klab-spinner",{staticClass:"au-logo",attrs:{"store-controlled":!0,ball:12,wrapperId:"au-layout",ballColor:e.COLORS.PRIMARY}}),t("klab-brand",{attrs:{customClasses:["au-app-name"]}})],1),t("div",{staticClass:"au-content"},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)])])],1)])},G=[],B=o("2573"),q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-name",class:e.customClasses,domProps:{innerHTML:e._s(e.htmlAppName)}})},F=[],K={appName:"k.LAB Engine",appDescription:"k.LAB Engine",appColor:"#da1f26"},V={props:{customClasses:Array,default:()=>[]},data(){return{appName:K.appName,appColor:K.appColor}},computed:{htmlAppName(){return this.appName.replace(".",`.`)}}},W=V,H=(o("60e3"),Object(j["a"])(W,q,F,!1,null,null,null)),Q=H.exports,Y=o("7cca"),X={name:"Authorization",components:{KlabSpinner:B["a"],KlabBrand:Q},data(){return{COLORS:Y["b"]}},computed:{spinnerColor(){return this.$store.getters["view/spinnerColor"]}}},J=X,Z=(o("e50c"),o("eebe")),ee=o.n(Z),te=Object(j["a"])(J,U,G,!1,null,null,null),oe=te.exports;ee()(te,"components",{QInput:p["a"],QBtn:d["a"]});var se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"full-width column content-center au-form-container"},[t("klab-loading",{attrs:{loading:e.loading,color:"k-controls"}}),t("q-dialog",{attrs:{persistent:""},model:{value:e.modalOpen,callback:function(t){e.modalOpen=t},expression:"modalOpen"}},[t("div",{staticClass:"lp-app-selector-container q-pa-md"},[t("div",{staticClass:"lp-app-selector-title"},[e._v(e._s(e.$t("labels.selectAppTitle")))]),t("q-list",{staticClass:"rounded-borders",attrs:{bordered:"",separator:""}},[t("q-item",{attrs:{clickable:""},on:{click:function(t){return e.goto()}}},[t("q-item-section",{attrs:{top:"",avatar:""}},[t("q-avatar",[t("img",{attrs:{src:"images/k.explorer-logo-with-circle_64.svg"}})])],1),t("q-item-section",[t("q-item-label",{staticClass:"lp-app-label"},[e._v("\n "+e._s(e.$t("labels.kexplorerOption"))+"\n ")]),t("q-item-label",{attrs:{caption:""}},[e._v("\n "+e._s(e.$t("contents.kxplorerDescription"))+"\n ")])],1)],1),e._l(e.publicApps,(function(o,s){return t("q-item",{key:s,attrs:{clickable:""},on:{click:function(t){return e.goto(o)}}},[t("q-item-section",{attrs:{avatar:"",top:""}},[t("q-avatar",[t("img",{attrs:{src:o.logoSrc}})])],1),t("q-item-section",[t("div",{staticClass:"lp-lang-description"},[t("q-item-label",{staticClass:"lp-app-label",domProps:{innerHTML:e._s(e.getLocalizedString(o,"label"))}}),o.description&&""!==o.description?t("q-item-label",{attrs:{caption:""},domProps:{innerHTML:e._s(e.getLocalizedString(o,"description"))}}):e._e()],1),o.localizations&&o.localizations.length>1?t("div",{staticClass:"kal-locales row reverse"},[t("q-select",{staticClass:"lp-lang-selector",attrs:{options:o.localeOptions,color:"k-controls","map-options":"","emit-value":"",borderless:""},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:o.selectedLocale,callback:function(t){e.$set(o,"selectedLocale",t)},expression:"app.selectedLocale"}})],1):e._e()])],1)}))],2),t("div",{staticClass:"lp-need-logout",on:{click:e.doLogout}},[e._v(e._s(e.$t("labels.logout")))])],1)])],1)},ne=[],ae={methods:{fieldRequired(e){return!!e||this.$t("messages.fieldRequired")},emailValidation(e){return Te.email.test(e)||this.$t("messages.emailValidationError")},usernameValidation(e,t=Y["a"].USERNAME_MIN_LENGTH){return Te.username.test(e)?e.length>=t||this.$t("messages.usernameFormatLengthError"):this.$t("messages.usernameFormatValidationError")},passwordValidation(e,t=Y["a"].PSW_MIN_LENGTH,o=Y["a"].PSW_MAX_LENGTH){return e.length>=t&&e.length<=o||this.$t("messages.passwordValidationError")},phoneValidation(e,t=!1){return!(t||"undefined"!==typeof e&&null!==e&&""!==e)||(Te.phone.test(e)||this.$t("messages.phoneValidationError"))}}},re=function(){var e=this,t=e._self._c;return t("q-dialog",{attrs:{"no-esc-dismiss":"","no-backdrop-dismiss":""},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[t("div",{staticClass:"absolute-center k-loading"},[t("q-spinner",{attrs:{size:"4em",color:e.color}}),""!==e.computedMessage?t("div",[e._v(e._s(e.computedMessage))]):e._e()],1)])},ie=[],le={name:"KlabLoading",props:{message:{type:String,default:null},loading:{type:Boolean,required:!0},color:{type:String,default:"primary"}},data(){return{}},computed:{computedMessage(){return this.message||this.$t("messages.loading")}}},ce=le,de=(o("61e0"),o("0d59")),ue=Object(j["a"])(ce,re,ie,!1,null,null,null),pe=ue.exports;ee()(ue,"components",{QDialog:m["a"],QSpinner:de["a"]});var fe={name:"LoginForm",mixins:[ae],components:{KlabLoading:pe},data(){return{user:{username:""},username:"",loading:!1,checking:!1,rememberMe:!1,modalOpen:!1,redirectUrl:null,publicApps:[]}},computed:{...Object(k["c"])("auth",["token","selectedApp"])},methods:{...Object(k["b"])("auth",["setToken"]),getLocalizedString(e,t){if(e.selectedLocale){const o=e.localizations.find((t=>t.isoCode===e.selectedLocale));if(o)return"label"===t?o.localizedLabel:o.localizedDescription;if("description"===t)return this.$t("labels.noLayoutDescription");if(e.name)return e.name;this.$t("labels.noLayoutLabel")}return""},doLogin(){return new Promise(((e,t)=>{this.$store.dispatch("auth/login",{user:this.user,token:this.token}).then((async({redirect:t,publicApps:o})=>{let s;s=-1!==t.indexOf("?")?"&":"?";const n=`${s}${Y["a"].PARAM_TOKEN}=${this.token}`;if(null!==this.selectedApp)this.redirectUrl=`${t}${n}&app=${this.selectedApp}`,this.goto();else if(o&&o.length>0){const e=o.filter((e=>"WEB"===e.platform||"ANY"===e.platform));e.forEach((e=>{console.log("_______________________________________APP___________________________________________"),console.log(e),e.logo?e.logoSrc=`/modeler/${Y["f"].GET_IMAGE.url}/${e.projectId}/${e.logo}`:e.logoSrc=Y["a"].DEFAULT_LOGO,this.$set(e,"selectedLocale",e.localizations[0].isoCode),e.localeOptions=e.localizations.map((e=>({label:e.languageDescription,value:e.isoCode,icon:"mdi-earth",className:"kal-locale-options"}))),this.publicApps.push(e)})),await Promise.all(this.publicApps),this.modalOpen=!0,this.redirectUrl=`${t}${n}`}else this.redirectUrl=`${t}${n}`,this.goto();e()})).catch((e=>{403===e.status&&(this.removeCookie(),this.setToken(null)),t(e),this.loading=!1}))}))},goto(e=null){null!==e&&(this.redirectUrl=`${this.redirectUrl}&app=${e.name}.${e.selectedLocale?e.selectedLocale:""}`),window.location=this.redirectUrl},doLogout(){this.loading=!0,this.$store.dispatch("auth/logout").then((()=>{this.removeCookie(),this.$router.go()})).catch((e=>{this.$q.notify({message:this.$t("messages.errorLoggingOut"),type:"negative",icon:"mdi-alert-circle",timeout:2e3}),console.error(e),this.loading=!1}))}},mounted(){s["a"].$keycloak.loadUserProfile().then((e=>{this.user=e,this.doLogin().catch((()=>{console.info("Need login"),this.loading=!1}))}))}},ge=fe,me=(o("ab48"),o("1c1c")),he=o("66e5"),_e=o("4074"),be=o("cb32"),Ee=o("0170"),we=o("ddd8"),Ne=Object(j["a"])(ge,se,ne,!1,null,null,null),Oe=Ne.exports;ee()(Ne,"components",{QDialog:m["a"],QList:me["a"],QItem:he["a"],QItemSection:_e["a"],QAvatar:be["a"],QItemLabel:Ee["a"],QSelect:we["a"],QInput:p["a"]});const ke=[{path:"/",redirect:"login",component:oe,children:[{path:"/login",name:"login",component:Oe}]},{path:"/tests",component:()=>o.e(3).then(o.bind(null,"18aa"))}];ke.push({path:"*",component:()=>o.e(2).then(o.bind(null,"e51e"))});var Ae=ke;s["a"].use(z["a"]);const Re=new z["a"]({scrollBehavior:()=>({y:0}),routes:Ae,mode:"hash",base:"/modeler/"});var je=Re;o("c1df");const{hexToRgb:ve,getBrand:ye,rgbToHex:Ce}=I["a"],Le=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/;function Se(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=Le.exec(e);if(t){const e={r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)};return t[4]&&(e.a=parseFloat(t[4])),e}return ve(e)}function Ie(e){let t,o;return 0===e.indexOf("#")?(o=e,t=ve(e)):-1!==e.indexOf(",")?(t=Se(e),o=Ce(t)):(o=ye(e),t=ve(o)),{rgb:t,hex:o,color:e}}const Te={email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,username:/^[a-zA-Z0-9_.-]*$/,phone:/^[+]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/};async function Pe(e){if(e.response){const t={status:e.response.data.status||e.response.status,message:e.response.data.message||e.response.data||(""!==e.response.statusText?e.response.statusText:e.statusCode?e.statusCode:"Unknown"),axiosError:e};if(t.message instanceof Blob&&"application/json"===t.message.type){const e=await new Promise((e=>{const o=new FileReader;o.onload=function(){e(JSON.parse(this.result))},o.readAsText(t.message)}));return e}return t}return e.request?{status:e.request.status,message:e.message,axiosError:e}:{status:"UNKNOWN",message:e.message,axiosError:e}}async function $e(e,t,o=null){const{type:s,url:n,params:a={},needAuth:r=!1,owner:i="layout",session:l=null,authentication:c=null}=e;if("GET"!==s&&"POST"!==s&&"PUT"!==s&&"DELETE"!==s||null===n||""===n)throw new Error(`Bad axios call, check type and url: ${s} / ${n}`);Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_LOADING,owner:"layout"},{root:!0}).then((async()=>{const e="GET"===s?T["a"].get:"POST"===s?T["a"].post:"DELETE"===s?T["a"].delete:T["a"].put,d=null!==l?{headers:{Authorization:l}}:{},u=null!==c?{headers:{Authentication:c},withCredentials:!0}:{};let p;try{p=await e(`/modeler/${n}`,{...a,...d},u),p&&(t?t(p,(()=>{Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})})):(console.warn("Doing nothing after axios call"),Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_STOPPED,owner:i},{root:!0})))}catch(f){console.log(f);const e=await Pe(f);if(Fe.dispatch("view/setSpinner",{...Y["e"].SPINNER_ERROR,owner:i,errorMessage:e.message,showNotifications:!1},{root:!0}),r&&401===e.status)return console.warn("We are logged out from backoffice"),Fe.dispatch("auth/logout",!0,{root:!0}),void je.push("/login");if(e.message&&-1!==e.message.toLowerCase().indexOf("network error")&&Fe.dispatch("view/setConnectionDown",!0),null===o)throw e;o(e)}}))}var Me={login:({commit:e},{user:t={username:null},token:o=null})=>new Promise(((s,n)=>{null!==t||null!==o?$e({type:Y["f"].LOG_IN.method,url:Y["f"].LOG_IN.url,params:{...t,token:o}},(({data:t},o)=>{t&&(t.authorization?e("STORE_TOKEN",t.authorization):console.warn("Unknown answer",t)),s(t),o()}),(e=>{n(e)})):n("Must exists user data or token")})),logout:({commit:e,getters:t})=>new Promise(((o,n)=>{const a={redirectUri:__ENV__.APP_BASE_URL};s["a"].$keycloak.logout(a).then((s=>{console.debug(s),$e({type:Y["f"].LOG_OUT.method,url:Y["f"].LOG_OUT.url,params:{token:t.token},authentication:t.token},(({status:t})=>{205===t?(e("STORE_TOKEN",null),o()):n(`Strange status: ${t}`)}),(e=>{e.response&&403===e.response.status&&n("Probably bad token"),n(`Error logging out: ${e}`)}))})).catch((e=>{console.error(e)}))})),setToken:({commit:e},t)=>{e("STORE_TOKEN",t)},setSelectedApp:({commit:e},t)=>{e("SET_SELECTED_APP",t)}},xe={namespaced:!0,state:C,getters:L,mutations:S,actions:Me},De={spinner:Y["e"].SPINNER_STOPPED,spinnerOwners:[],connectionDown:!1},ze={spinnerIsAnimated:e=>e.spinner.animated,spinner:e=>e.spinner,spinnerOwners:e=>e.spinnerOwners,spinnerColor:e=>"undefined"!==e.spinner&&null!==e.spinner?Ie(e.spinner.color):null,spinnerErrorMessage:e=>"undefined"!==e.spinner&&null!==e.spinner?e.spinner.errorMessage:null,isConnectionDown:e=>e.connectionDown},Ue={SET_SPINNER_ANIMATED:(e,t)=>{e.spinner.animated=t},SET_SPINNER_COLOR:(e,t)=>{e.spinner.color=t},SET_SPINNER:(e,{animated:t,color:o,errorMessage:s=null,showNotifications:n=!1})=>{e.spinner={animated:t,color:o,errorMessage:s,showNotifications:n}},ADD_TO_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1===o&&e.spinnerOwners.push(t)},REMOVE_FROM_SPINNER_OWNERS:(e,t)=>{const o=e.spinnerOwners.indexOf(t);-1!==o&&e.spinnerOwners.splice(o,1)},SET_CONNECTION_DOWN:(e,t)=>{e.connectionDown=t}},Ge={setSpinner:({commit:e,getters:t,dispatch:o},{animated:s,color:n,time:a=null,then:r=null,errorMessage:i=null,showNotifications:l=!1,owner:c})=>new Promise(((d,u)=>{c&&null!==c?(s?e("ADD_TO_SPINNER_OWNERS",c):(e("REMOVE_FROM_SPINNER_OWNERS",c),0!==t.spinnerOwners.length&&(s=!0,n!==Y["e"].SPINNER_ERROR.color&&({color:n}=Y["e"].SPINNER_LOADING))),e("SET_SPINNER",{animated:s,color:n,errorMessage:i,showNotifications:l}),null!==a&&null!==r&&setTimeout((()=>{o("setSpinner",{...r,owner:c})}),1e3*a),d()):u(new Error("No spinner owner!"))})),setConnectionDown:({commit:e},t)=>{e("SET_CONNECTION_DOWN",t)}},Be={namespaced:!0,state:De,getters:ze,mutations:Ue,actions:Ge};s["a"].use(k["a"]);const qe=new k["a"].Store({modules:{auth:xe,view:Be}});var Fe=qe,Ke=async function(){const e="function"===typeof Fe?await Fe({Vue:s["a"]}):Fe,t="function"===typeof je?await je({Vue:s["a"],store:e}):je;e.$router=t;const o={router:t,store:e,render:e=>e(y),el:"#q-app"};return{app:o,store:e,router:t}},Ve=({store:e})=>{w["a"].has(Y["a"].COOKIE_TOKEN)&&(e.state.auth.token=w["a"].get(Y["a"].COOKIE_TOKEN));let t=null;const o=window.location.href.split("?");if(2===o.length){const s=o[1].split("&");s.forEach((o=>{const s=o.split("=");if(2===s.length&&"app"===s[0]){const e=s[1].indexOf("#");-1!==e&&(s[1]=s[1].substring(0,e)),[,t]=s}2===s.length&&"token"===s[0]&&(e.state.auth.token=s[1])}))}e.state.auth.selectedApp=t},We=o("15a2");const He={url:Y["c"].URL,realm:Y["c"].REALM,clientId:Y["c"].CLIENT_ID,enableCors:!0},Qe=new We["a"](He),Ye={install(e){e.$keycloak=Qe}};Ye.install=e=>{e.$keycloak=Qe,Object.defineProperties(e.prototype,{$keycloak:{get(){return Qe}}})},s["a"].use(Ye);var Xe=Ye;s["a"].config.productionTip=!1,s["a"].use(Xe),s["a"].$keycloak.init({onLoad:"login-required",checkLoginIframe:!1}).then((e=>{e?(localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token,console.debug("Authenticated"),window.location=`${__ENV__.APP_BASE_URL}/#/login`):window.location.reload(),setInterval((()=>{s["a"].$keycloak.updateToken().then((e=>{e?(console.debug(`Token refreshed ${e}`),localStorage.setItem(Y["c"].TOKEN,s["a"].$keycloak.token),localStorage.setItem(Y["c"].REFRESH_TOKEN,s["a"].$keycloak.refreshToken),s["a"].prototype.$http.defaults.headers.common.Authorization=Y["c"].BEARER+s["a"].$keycloak.token):console.debug(`Token not refreshed, valid for ${Math.round(s["a"].$keycloak.tokenParsed.exp+s["a"].$keycloak.timeSkew-(new Date).getTime()/1e3)} seconds`)})).catch((()=>{console.error("Failed to refresh token")}))}),6e4)})).catch((e=>{console.error(e),console.debug("Authenticated Failed")}));const Je="/modeler/",Ze=/\/\//,et=e=>(Je+e).replace(Ze,"/");async function tt(){const{app:e,store:t,router:o}=await Ke();let n=!1;const a=e=>{n=!0;const t=Object(e)===e?et(o.resolve(e).route.fullPath):e;window.location.href=t},r=window.location.href.replace(window.location.origin,""),i=[D,Ve,T["b"],void 0];for(let c=0;!1===n&&c{t.prototype.$http=i,t.$keycloak.token&&(t.prototype.$http.defaults.headers.common.Authorization=a["c"].BEARER+t.$keycloak.token),null!==e.env.X_SERVER_HEADER&&(t.prototype.$http.defaults.headers.common={...t.prototype.$http.defaults.headers.common,"X-Server-Header":e.env.X_SERVER_HEADER})}}).call(this,o("4362"))},"7cca":function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return r})),o.d(t,"f",(function(){return l})),o.d(t,"c",(function(){return c}));const s={MAIN_COLOR:"rgb(17, 170, 187)",MAIN_GREEN:"rgb(70,161,74)",MAIN_LIGHT_GREEN:"rgb(231,255,219)",MAIN_CYAN:"rgb(0,131,143)",MAIN_LIGHT_CYAN:"rgb(228,253,255)",MAIN_YELLOW:"rgb(255, 195, 0)",MAIN_RED:"rgb(255, 100, 100)",PRIMARY:"#da1f26",SECONDARY:"#26A69A",TERTIARY:"#555",NEUTRAL:"#E0E1E2",POSITIVE:"#19A019",NEGATIVE:"#DB2828",INFO:"#1E88CE",WARNING:"#F2C037",PRIMARY_NAME:"primary",SECONDARY_NAME:"secondary",TERTIARY_NAME:"tertiary",POSITIVE_NAME:"positive",NEGATIVE_NAME:"negative",INFO_NAME:"info",WARNING_NAME:"warning",COLOR_PRIMARY:"primary",COLOR_SECONDARY:"secondary",COLOR_TERTIARY:"tertiary",COLOR_POSITIVE:"positive",COLOR_NEGATIVE:"negative",COLOR_INFO:"info",COLOR_WARNING:"warning",COLOR_LIGHT:"light",COLOR_DARK:"dark",COLOR_FADED:"faded"},n={SPINNER_STOPPED_COLOR:s.MAIN_COLOR,SPINNER_LOADING_COLOR:s.MAIN_YELLOW,SPINNER_MC_RED:s.MAIN_RED,SPINNER_ERROR_COLOR:s.NEGATIVE_NAME,SPINNER_ELEPHANT_DEFAULT_COLOR:"#010102"},a={SPINNER_LOADING:{ballColor:n.SPINNER_LOADING_COLOR,color:n.SPINNER_LOADING_COLOR,animated:!0},SPINNER_STOPPED:{color:n.SPINNER_STOPPED_COLOR,animated:!1},SPINNER_ERROR:{color:n.SPINNER_ERROR_COLOR,animated:!1,time:2,then:{color:n.SPINNER_STOPPED_COLOR,animated:!1}},WHITE_SPACE_PERCENTAGE:.12},r={USERNAME_MIN_LENGTH:6,PSW_MIN_LENGTH:8,PSW_MAX_LENGTH:32,READY:0,WAITING:1,REFRESHING:2,IMAGE_NOT_FOUND_SRC:"image-off-outline.png",COOKIE_TOKEN:"klab_auth",PARAM_TOKEN:"token",PARAM_APP:"app",DEFAULT_LOGO:"images/k.explorer-logo-with-circle_64.svg"},i={WS_USERS:"api/v2/users",WS_GET_IMAGES:"engine/project/resource/get"},l={LOG_IN:{method:"POST",url:`${i.WS_USERS}/log-in?remote=true`},LOG_OUT:{method:"POST",url:`${i.WS_USERS}/log-out`},GET_IMAGE:{method:"GET",url:i.WS_GET_IMAGES}};const c={URL:__ENV__.KEYCLOAK_URL,REALM:"im",CLIENT_ID:"k.Engine",TOKEN:"vue-token",REFRESH_TOKEN:"vue-refresh-token",BEARER:"Bearer "}},"7e6d":function(e,t,o){},9803:function(e,t,o){},ab48:function(e,t,o){"use strict";o("3c7a")},e50c:function(e,t,o){"use strict";o("ea7e")},ea7e:function(e,t,o){},f439:function(e,t,o){}}); \ No newline at end of file