{"version":3,"sources":["node_modules/browser-pack/_prelude.js","cloudflow/CloudflowUtil/js/Location.js","cloudflow/CloudflowUtil/js/TemporyBrowserObjectCache.js","cloudflow/Version/js/Version.js","common/js/functions/hasPageReloaded.js","nebulaportal/js/login/login.js","nebulaportal/js/login/loginUtil.js","nebulaportal/js/login/main.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","Location","getLocation","window","location","hasPageReloaded","TemporyBrowserObjectCache","save","pIdentifier","pObject","sessionStorage","setItem","JSON","stringify","object","creation","Date","get","stringified","getItem","memoryObject","parse","undefined","now","setHours","getHours","removeItem","console","error","remove","isPageReload","versionObject","versionDef","Version","this","_setVersionObject","cacheObject","$","when","loadVersionFromBackend","then","pVersionObject","reset","prototype","constructor","isPlainObject","getVersionObject","getBuild","build","toString","version","major","minor","i18n","_","rev","getHashString","isEmptyObject","toJSON","Object","assign","Deferred","pDefer","api_async","resolve","portal","pVersion","pError","pageReloaded","performance","getEntriesByType","results","Array","isArray","type","navigation","loginFunctions","loginFailedHandler","pReason","available_scopes","parent","css","text","closest","addClass","insertAfter","forEach","scope","index","append","val","name","prop","loginHandler","result1","result2","result3","sOrigURL","test1","test2","test3","test","username","password","removeClass","scope_option","doMultiScopeLogin","pUserId","setFrameSession","document","doLogin","renderLogin","pLanguage","sTitle","title","attr","href","sOrigUser","api_defer","auth","generate_oauth2_url","pData","result","show","on","focus","keypress","pEvent","keyCode","loginText","getVersionText","indexOf","url","substring","decodeURIComponent","get_identity_providers","oauth_type","icon","icon_azure","icon_google","leftSidebutton","rightSidebutton","oauth_html","oauthHandler","reject","pInput","generate_login_url","pResult","tabReOpenHandler","hidden","user_id","api","get_cookie","expiration_date","nowMinOneHour","loginStart","clear","prefsPromise","preferences","get_for_current_user","prefs","language","translations","setDictionary","find","each","element","_t","fail","getTime","p_translations","removeOtherCookies","pCookieToLive","pairs","cookie","split","pair","cookieKey","trim","pUsername","pPassword","pScope","pSuccess","pFailure","doLoginWithOptions","login_options","scope_name","login_with_options","failedLogin","secureOptions","expires","path","protocol","secure","user_hash","csrf_token","scope_id","error_code","pPreference","doLoginwithRedirect","log","pVersionData","versionText","userId","frame","os","get_current_user","currentUser","create_session","sessionKey","session","set_cloudflow_session","force","expiry_time","url_redirect","origin","method","data","orig","getUrlParameters","options","$form","submit","params","loginMain"],"mappings":"CAAA,WAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,GAAA,CAAAJ,EAAAG,GAAA,CAAA,GAAA,CAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,YAAA,OAAAC,SAAAA,QAAA,GAAA,CAAAF,GAAAC,EAAA,OAAAA,EAAAF,EAAA,CAAA,CAAA,EAAA,GAAAI,EAAA,OAAAA,EAAAJ,EAAA,CAAA,CAAA,EAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,GAAA,EAAA,MAAAK,EAAAE,KAAA,mBAAAF,CAAA,CAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,EAAA,EAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd,GAAA,IAAAE,EAAAD,EAAAI,GAAA,GAAAL,GAAA,OAAAI,EAAAF,GAAAF,CAAA,CAAA,EAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,CAAA,CAAA,CAAA,OAAAD,EAAAG,GAAAS,OAAA,CAAA,IAAA,IAAAL,EAAA,YAAA,OAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,CAAA,GAAAD,EAAAD,EAAAE,EAAA,EAAA,OAAAD,CAAA,CAAA,OAAAJ,CAAA,GAAA,EAAA,CAAAiB,EAAA,CAAA,SAAAT,QAAAU,OAAAJ,SCAA,IAAAK,SAAA,CACAC,YAAA,WACA,OAAAC,OAAAC,QACA,CACA,EAEAJ,OAAAJ,QAAAK,Q,0CCNA,IAAAI,gBAAAf,QAAA,iDAA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AAA1G,KAAA,SAAAyG,QAAAJ,MAAA,EAEA,IAAA,IAAAC,QAAAG,QAAAH,KAAA,CACAI,MAAApI,OAAA,8BAAAgI,KAAA,YAAAG,QAAAH,KAAAA,MAAA,MAAA,CACA,CAGApL,EAAA,MAAA,EAAAoD,OAAAoI,KAAA,EACAA,MAAAC,OAAA,EACAD,MAAAhM,OAAA,CACA,CAEA,CAEA,SAAA8L,mBACA,IAAAD,KAAA,GACA,IAAAK,OAAA,GACA,IAAA3F,IAAAjI,OAAAC,SAAA6C,SAAA,EACA,GAAAmF,IAAAD,QAAA,OAAA,GAAA,EAAA,CACA,GAAAC,IAAAC,UAAAD,IAAAD,QAAA,OAAA,EAAA,CAAA,EAAAA,QAAA,GAAA,IAAA,CAAA,EAAA,CACAuF,KAAApF,mBAAAF,IAAAC,UAAAD,IAAAD,QAAA,OAAA,EAAA,EAAAC,IAAAD,QAAA,OAAA,EAAA,EAAAC,IAAAC,UAAAD,IAAAD,QAAA,OAAA,EAAA,CAAA,EAAAA,QAAA,GAAA,CAAA,CAAA,CACA,KAAA,CACAuF,KAAApF,mBAAAF,IAAAC,UAAAD,IAAAD,QAAA,OAAA,EAAA,CAAA,CAAA,CACA,CAOA,OAAAuF,IAaA,KAAA,CACA,MAAA,EACA,CACA,CAGA1N,OAAAJ,QAAA,CACAkH,QAAAA,QACAJ,kBAAAA,kBACAwB,eAAAA,eACAtB,gBAAAA,eACA,C,0CCvLA,IAAAoH,UAAA1O,QAAA,YAAA,EAEA+C,EAAA,WACA2L,UAAArE,WAAA,CACA,CAAA","file":"portal-login.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i 0) {\n var memoryObject = JSON.parse(stringified);\n if (memoryObject.object !== undefined && memoryObject.creation !== undefined) {\n var now = new Date();\n if (now.setHours(now.getHours() - 12) < memoryObject.creation) { // if created more recent then history\n return memoryObject.object;\n }\n }\n // continue in case of wrong\n sessionStorage.removeItem(pIdentifier);\n }\n } catch(e) {console.error(e);}\n return null;\n },\n\n remove: function(pIdentifier) {\n if (window.sessionStorage !== undefined) {\n window.sessionStorage.removeItem(pIdentifier);\n }\n },\n\n isPageReload: function(){\n return hasPageReloaded() == true;\n }\n};\n\nmodule.exports = TemporyBrowserObjectCache;","var TemporyBrowserObjectCache = require(\"../../CloudflowUtil/js/TemporyBrowserObjectCache.js\");\nvar versionObject;\nvar versionDef;\n/**\n * @constructor Version\n * @description an utility class reprecenting the version of cloudflow. For Example 22.04 update\n * @param {Object} pObject \n */\nfunction Version(pObject) {\n this._setVersionObject(pObject);\n};\n\n/**\n * @name Version.get\n * @function\n * @description Get the version from the backend and fill it in with usefull information\n * @returns {Version}\n */\nVersion.get = function(){\n if (versionObject === undefined) {\n if (versionDef === undefined) {\n if (TemporyBrowserObjectCache.isPageReload() !== true) {\n var cacheObject = TemporyBrowserObjectCache.get(\"nixps_cloudflow_version\");\n if (cacheObject !== null) {\n versionObject = cacheObject;\n return $.when(new Version(versionObject));\n }\n }\n versionDef = loadVersionFromBackend();\n }\n return $.when(versionDef).then(function(pVersionObject){\n versionObject = pVersionObject;\n TemporyBrowserObjectCache.save('nixps_cloudflow_version', versionObject);\n return new Version(versionObject);\n });\n } else {\n return $.when(new Version(versionObject));\n }\n}\n\n/**\n * @name Version.clear\n * @description reset all the internal caches\n * @private\n * @fucntion\n */\nVersion.reset = function(){\n versionObject = undefined;\n versionDef = undefined;\n TemporyBrowserObjectCache.remove(\"nixps_cloudflow_version\");\n};\n\nVersion.prototype = {\n \n constructor: Version,\n \n _setVersionObject: function(pVersionObject){\n if ($.isPlainObject(pVersionObject)) {\n this.versionObject = pVersionObject;\n } else {\n throw new Error(\"expect an object as parameter\");\n }\n },\n \n /**\n * @description Get the complete object represention the version\n * @name Version#getVersionObject\n * @function\n * @returns {Object}\n */\n getVersionObject: function(){\n return this.versionObject;\n },\n \n getBuild: function(){\n if (this.versionObject.build !== undefined) {\n return this.versionObject.build;\n } \n return 0;\n },\n \n /**\n * @name Version#toString\n * @function\n * @description Get a textual representaion of the cloudflow version\n * @returns {String} a textual representation\n */\n toString: function(){\n var version = \"\";\n // control if major and minor number are present, otherwise do nothing.\n if (typeof this.versionObject.major === \"number\" && this.versionObject.major >= 0 && typeof this.versionObject.minor === \"number\" && this.versionObject.minor >= 0) {\n var version = $.i18n._('nixps-cloudflow-login.version', [this.versionObject.major + '.' + this.versionObject.minor, this.versionObject.build]);\n if (typeof this.versionObject.rev === \"number\" && this.versionObject.rev > 0) {\n version += (\" \" + $.i18n._('nixps-cloudflow-login.versionupdate', [this.versionObject.rev]));\n }\n }\n return version;\n },\n \n getHashString: function(){\n if ($.isEmptyObject(this.versionObject)) {\n return \"00version0\";\n }\n return this.versionObject.major + \"\" + this.versionObject.minor + 'version' + this.versionObject.build;\n },\n \n toJSON: function(){\n return Object.assign({}, this.versionObject);\n }\n};\n\nfunction loadVersionFromBackend() {\n return $.Deferred(function(pDefer){\n if (window.api_async === undefined) {\n pDefer.resolve({});\n return;\n }\n api_async.portal.version(function(pVersion){\n pDefer.resolve(pVersion);\n }, function(pError){\n console.error(pError);\n pDefer.resolve({});\n });\n });\n}\n\nmodule.exports = Version;","var pageReloaded;\r\n\r\nfunction hasPageReloaded() {\r\n if(pageReloaded === undefined) {\r\n pageReloaded = false;\r\n if (window.performance !== undefined) {\r\n // first check new function\r\n if (typeof performance.getEntriesByType === \"function\") {\r\n var results = performance.getEntriesByType(\"navigation\");\r\n if (Array.isArray(results) && results.length > 0 && typeof results[0].type === \"string\") {\r\n pageReloaded = results[0].type === \"reload\";\r\n }\r\n }\r\n // if not found check deprecated function\r\n else if (performance.navigation !== undefined && typeof performance.navigation.type === \"number\") {\r\n pageReloaded = performance.navigation.type === 1;\r\n }\r\n }\r\n }\r\n return pageReloaded;\r\n}\r\n\r\nmodule.exports = hasPageReloaded","\"use strict\";\nvar loginFunctions = require(\"./loginUtil.js\");\nvar Version = require(\"../../../cloudflow/Version/js/Version.js\");\nvar Location = require(\"../../../cloudflow/CloudflowUtil/js/Location.js\");\n/**\n * Handler that is executed when the login has failed\n */\n\nfunction loginFailedHandler (pReason) {\n if(pReason.available_scopes && pReason.available_scopes.length > 0) {\n $(\"#scope_options\").parent(\".cf-form-group\").remove();\n // $(\"#username\").hide();\n // $(\"#password\").hide();\n $(\"#username\").css(\"display\", \"none\");\n $(\"#password\").parent().css(\"display\", \"none\");\n \n $(\"#loginStatus\").text($.i18n._(\"nixps-cloudflow-login.select_scope\"));\n $(\"#loginStatus\").closest(\".cf-form-group\").addClass(\"cf-form-group-has-message\");\n if ($(\"#scope_options\").length === 0) {\n $('
').insertAfter($(\"#password\").parent(\".cf-form-group\"));\n }\n pReason.available_scopes.forEach(function (scope, index) {\n $(\"#scope_options\").append($(\"