{"size": 51530, "ext": "js", "max_stars_repo_path": "client/scripts/app-bundle.js", "max_stars_repo_name": "fzuleta/shiro", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/scripts/app-bundle.js", "max_issues_repo_name": "fzuleta/shiro", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/scripts/app-bundle.js", "max_forks_repo_name": "fzuleta/shiro", "max_forks_repo_forks_event_min_datetime": "2019-08-30T05:21:32.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-30T05:21:32.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25765.0, "max_line_length": 31985, "alphanum_fraction": 0.725169804}
var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("app",["require","exports","aurelia-framework","aurelia-event-aggregator","./_/common/functions","./_/common/alerts","./_/data/user","./_/connect/api","./_/connect/ltsocket","aurelia-router","aurelia-i18n","jquery"],function(e,t,r,o,n,i,a,s,c,l,d,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t,r,o,n,i){this._showLoader=!1,this.i18n=e,this.alerts=r,this.user=o,this.socket=n,this.api=i,this.eventAggregator=t}return e.prototype.activate=function(){var e=this;return this.evt_navigateTo=this.eventAggregator.subscribe("navigateTo",function(t){e.router.navigate(t.route,t.params||void 0)}),this.api.refresh()},e.prototype.attached=function(){var e=this;this.loader=u("#loadingScreen"),this.subscriber=this.eventAggregator.subscribe("setIsLoading",function(t){t?e.loader.show():(e.loader.show(),e.loader.fadeOut(500,function(){e._showLoader=t}))}),this.evt_errorshow=this.eventAggregator.subscribe("showGenericError",function(t){e.alerts.showGenericError(t)}),setTimeout(function(){e.eventAggregator.publish("setIsLoading",!1)},250)},e.prototype.configureRouter=function(e,t){this.router=t,e.title="Apache shiro example",e.options.root="/",e.addPipelineStep("authorize",g),e.addPipelineStep("preRender",p),e.addPipelineStep("postRender",h),e.map([{route:"",name:"home",viewPorts:{mainView:{moduleId:"./user/home"}},settings:{roles:[]}},{route:["/user/forgotpassword"],viewPorts:{mainView:{moduleId:"./user/loginreg/forgot-password"}},name:"forgotPassword",settings:{roles:["notloggedin"]}},{route:["/user/forgotpasswordrecover/:code"],viewPorts:{mainView:{moduleId:"./user/loginreg/forgot-password-recover"}},name:"forgotPasswordRecover",settings:{roles:[]}},{route:["/user/confirmpin/:code","/user/confirmpin"],viewPorts:{mainView:{moduleId:"./user/loginreg/confirm-pin"}},name:"confirmpin",settings:{roles:[]}},{route:["/u"],viewPorts:{mainView:{moduleId:"./profile/profile"}},name:"profile",settings:{roles:["loggedIn"]}}]);var r=function(e){return{viewPorts:{mainView:{moduleId:"./notfound/notfound"}},settings:{roles:[]}}};e.mapUnknownRoutes(r)},e=__decorate([r.inject(d.I18N,o.EventAggregator,i.default,a.default,c.default,s.default),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object])],e)}();t.App=f;var g=function(){function e(e){this.User=e}return e.prototype.run=function(e,t){for(var r=0;r<e.getAllInstructions().length;r++){var o=e.getAllInstructions()[r];if(-1!==o.config.settings.roles.indexOf("loggedIn")){if(this.User.isAuthenticatedOrRemembered)break;return t.cancel(new l.RedirectToRoute("home"))}if(-1!==o.config.settings.roles.indexOf("isAuthenticated")){if(this.User.isAuthenticated)break;return t.cancel(new l.RedirectToRoute("home"))}if(-1!==o.config.settings.roles.indexOf("notloggedin")){if(this.User.isAuthenticated)return t.cancel(new l.RedirectToRoute("home"));break}}return t()},e=__decorate([r.inject(a.default),__metadata("design:paramtypes",[Object])],e)}(),p=function(){function e(e){this.eventAggregator=e}return e.prototype.run=function(e,t){return this.eventAggregator.publish("setIsLoading",!0),n.trace("---- Page preRenderStep"),t()},e=__decorate([r.inject(o.EventAggregator),__metadata("design:paramtypes",[Object])],e)}(),h=function(){function e(e){this.eventAggregator=e}return e.prototype.run=function(e,t){return this.eventAggregator.publish("setIsLoading",!1),this.eventAggregator.publish("viewHasFinishedRendering"),t()},e=__decorate([r.inject(o.EventAggregator),__metadata("design:paramtypes",[Object])],e)}()}),define("environment",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={debug:!1,testing:!1}}),define("main",["require","exports","./environment","i18next-xhr-backend"],function(e,t,r,o){"use strict";function n(e){var t=location.hostname;console.log("THE DOMAIN: "+t),e.use.instance("apiRoot","https://"+t+":8090"),e.use.instance("socketUrl","wss://"+t+":8090/socket"),e.use.standardConfiguration().feature("resources").plugin("aurelia-dialog",function(e){e.useDefaults(),e.settings.lock=!1,e.settings.centerHorizontalOnly=!1,e.settings.startingZIndex=1005}).plugin("aurelia-i18n",function(e){e.i18next.use(o);var t=localStorage.getItem("lang")||"en";return e.setup({backend:{loadPath:"./locales/{{lng}}/{{ns}}.json"},lng:t,ns:["translation","regpages"],defaultNS:"translation",attributes:["t","i18n"],fallbackLng:"en",debug:!1})}),r.default.debug&&e.use.developmentLogging(),r.default.testing&&e.use.plugin("aurelia-testing"),e.start().then(function(){return e.setRoot()})}Object.defineProperty(t,"__esModule",{value:!0}),t.configure=n});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("header/the-header",["require","exports","aurelia-framework","aurelia-event-aggregator","jquery","aurelia-i18n","./../_/common/localstorage","./../_/data/user","./../_/connect/api"],function(e,t,r,o,n,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,r,o,n){var i=this;this.eventAggregator=e,this.i18n=t,this.localStorage=r,this.user=o,this.api=n,this.languages=[{label:"English",value:"en"},{label:"Español",value:"es"}];var a=localStorage.getItem("lang")||"en";this.languages.forEach(function(e){e.value==a&&(i.sel_lang=e)})}return e.prototype.attached=function(){var e=this;n("#header-language-select").change(function(t){e.localStorage.setItem("lang",e.sel_lang.value),e.eventAggregator.publish("change_lang",e.sel_lang.value),e.i18n.setLocale(e.sel_lang.value).then(function(){})})},e.prototype.logout=function(){this.api.call("/member/logout/").then(function(e){e.success&&location.reload()})},e=__decorate([r.customElement("the-header"),r.inject(o.EventAggregator,i.I18N,a.default,s.default,c.default),__metadata("design:paramtypes",[Object,Object,Object,Object,Object])],e)}();t.TheHeader=l}),define("notfound/notfound",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){console.log("Route not found")}return e}();t.NotFound=r});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("profile/profile",["require","exports","aurelia-framework","aurelia-event-aggregator","aurelia-router","./../_/data/user","./../_/common/navigation"],function(e,t,r,o,n,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,r,o){this.eventAggregator=e,this.user=t,this.nav=r,this.router=o}return e.prototype.activate=function(){},e.prototype.configureRouter=function(e,t){this.router=t,e.title="Profile",e.options.root="/u/",e.map([{route:["",":reference"],name:"profileview",nav:!1,viewPorts:{rProfile:{moduleId:"profile/view"}},title:"",settings:{roles:[]}}]);var r=function(e){return{viewPorts:{rProfile:{moduleId:"./../notfound/notfound"}},settings:{roles:[]}}};e.mapUnknownRoutes(r)},e=__decorate([r.inject(o.EventAggregator,i.default,a.default,n.Router),__metadata("design:paramtypes",[Object,Object,Object,Object])],e)}();t.Profile=s});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("profile/view",["require","exports","aurelia-framework","aurelia-event-aggregator","aurelia-i18n","./../_/connect/api","./../_/common/alerts","./../_/common/navigation","./../_/data/user","jquery"],function(e,t,r,o,n,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t,r,o,n,i){this.showFirstTime=!1,this.eventAggregator=e,this.alerts=t,this.i18n=r,this.nav=o,this.user=n,this.api=i}return e.prototype.activate=function(e,t){if(!this.user.isAuthenticatedOrRemembered)return void this.nav.to("")},e.prototype.attached=function(){var e=this;setTimeout(function(){l('[data-toggle="tooltip"]').tooltip(),e.showFirstTime=e.user.firstTime},400)},e=__decorate([r.inject(o.EventAggregator,a.default,n.I18N,s.default,c.default,i.default),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object])],e)}();t.View=d}),define("resources/index",["require","exports"],function(e,t){"use strict";function r(e){e.globalResources(["./elements/recaptcha","./elements/buttons/button_0","./value-converters/money_format","./value-converters/date_format","./value-converters/sanitize"])}Object.defineProperty(t,"__esModule",{value:!0}),t.configure=r});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/home",["require","exports","aurelia-framework","aurelia-event-aggregator","./../_/data/user","./../_/common/navigation"],function(e,t,r,o,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,r){this.showUI=!1,this.eventAggregator=e,this.user=t,this.nav=r,this.showUI=!1}return e.prototype.activate=function(){if(this.user.isAuthenticatedOrRemembered)return this.eventAggregator.publish("setIsLoading",!0),void this.nav.to("profile");this.showUI=!0},e=__decorate([r.inject(o.EventAggregator,n.default,i.default),__metadata("design:paramtypes",[Object,Object,Object])],e)}();t.Home=a});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("_/connect/api",["require","exports","aurelia-fetch-client","aurelia-framework","./../data/user","./../data/constants","./../common/functions"],function(e,t,r,o,n,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,r){this.apiversion="/api",this.apiRoot=e,this.user=r,t.configure(function(e){e.withDefaults({credentials:"include",headers:{Accept:"application/json","X-Requested-With":"Fetch"}}).withInterceptor({request:function(e){return a.trace("Requesting "+e.method+" "+e.url),e}})}),this.httpFetch=t}return e.prototype.call=function(e,t,r){var o=this;void 0===e&&(e=""),void 0===t&&(t={}),void 0===r&&(r=!1);var n=null;return t=Object.assign(t,{expected_token:this.user.expectedToken}),n=r?t:JSON.stringify(t),new Promise(function(t,r){o.httpFetch.fetch(o.apiRoot+o.apiversion+e,{method:"POST",body:n}).then(function(e){return e.json()}).then(function(e){var r=e&&e.data?e.data:null;r&&(void 0!=r.isRemembered&&(o.user.isRemembered=1==r.isRemembered),void 0!=r.isAuthenticated&&(o.user.isAuthenticated=1==r.isAuthenticated),o.user.isAuthenticatedOrRemembered=o.user.isRemembered||o.user.isAuthenticated),t(e)}).catch(function(e){r(e)})})},e.prototype.refresh=function(){var e=this;return new Promise(function(t,r){e.call("/refresh/").then(function(r){var o=r.data;i.default.clientURL=o.login.clientURL,e.user.expectedToken=o.login.expected_token,i.default.captchaEnabled=o.login.captchaEnabled,o.me&&e.user.setMe(o),t()}).catch(function(e){r()})})},e=__decorate([o.inject("apiRoot",r.HttpClient,n.default),__metadata("design:paramtypes",[Object,Object,Object])],e)}();t.default=s});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("_/connect/ltsocket",["require","exports","aurelia-framework","aurelia-event-aggregator","./../data/user","./../common/functions"],function(e,t,r,o,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,r){var o=this;this.ws=null,this.closed=!0,this.prevSocketId=0,this.socketId=0,this.socketUrl=e,this.eventAggregator=t,this.user=r,this.ws=null,this.closed=!0,this.prevSocketId=0,this.socketId=0,this.start(),this.evt_justLoggedIn=this.eventAggregator.subscribe("justloggedIn",function(e){o.justLoggedIn(e)})}return e.prototype.restart=function(){this.close(),this.start()},e.prototype.justLoggedIn=function(e){void 0===e&&(e=null),this.ws},e.prototype.close=function(){this.ws&&(i.trace("Closing ws"),this.ws.onopen=function(){},this.ws.onmessage=function(){},this.ws.onerror=function(){},this.ws.onclose=function(){},this.ws.close(),this.ws=null,this.closed=!0)},e.prototype.sendMessage=function(e){void 0===e&&(e={}),e=JSON.stringify(e),this.ws&&!this.closed&&this.ws.send(e)},e.prototype.start=function(){var e=this;i.trace("Starting ws"),this.closed&&(this.ws=new WebSocket(this.socketUrl),this.ws.onopen=function(){e.closed=!1,i.trace("Socket Opened!"),e.user.isAuthenticatedOrRemembered&&e.justLoggedIn(),e.socketId++},this.ws.onmessage=function(t){e.closed=!1,i.trace("Message: "+t.data);var r="string"==typeof t.data?JSON.parse(t.data):t.data;r&&e.eventAggregator.publish("socketUpdate",r)},this.ws.onclose=function(){e.closed=!0,i.trace("Closed!")},this.ws.onerror=function(e){i.trace("Error: "+e)})},e=__decorate([r.inject("socketUrl",o.EventAggregator,n.default),__metadata("design:paramtypes",[Object,Object,Object])],e)}();t.default=a});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("_/common/alerts",["require","exports","aurelia-framework","aurelia-dialog","./../../resources/elements/dialogs/generic_error","aurelia-event-aggregator"],function(e,t,r,o,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){this.eventAggregator=e,this.dialogService=t}return e.prototype.showGenericError=function(e){return this.dialogService.open({viewModel:n.GenericError,model:e})},e=__decorate([r.inject(i.EventAggregator,o.DialogService),__metadata("design:paramtypes",[Object,Object])],e)}();t.default=a}),define("_/common/functions",["require","exports","xss-filters"],function(e,t){"use strict";function r(e){return null!=e&&/^[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$/.test(e)}function o(e,t){return e.length>t&&(e=e.substr(0,t)+"..."),e}function n(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function i(e){void 0===e&&(e=5);for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*r.length));return t}function a(){var e=this.isAndroid(),t=this.isIOS(),r=this.isBlackberry();return e||t||r}function s(){return/android/i.test(navigator.userAgent.toLowerCase())}function c(){return/iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())}function l(){return/blackberry/i.test(navigator.userAgent.toLowerCase())}function d(e,t){return void 0===t&&(t=1),"-"===e[0]&&(t=-1,e=e.substr(1)),function(r,o){var n=Number(r[e]),i=Number(o[e]);return(n<i?-1:n>i?1:0)*t}}function u(e){return window.xssFilters.inHTMLData(e)}function f(e,t,r){void 0===t&&(t="#f8eafc"),void 0===r&&(r="#302207"),"undefined"!=typeof console&&("string"==typeof e?console.log("%c"+e,"background: "+t+"; color: "+r):console.log(e))}function g(e){return Array.from(Array(e).keys())}Object.defineProperty(t,"__esModule",{value:!0}),t.isNumeric=r,t.trimString=o,t.validateEmail=n,t.generateString=i,t.isMobile=a,t.isAndroid=s,t.isIOS=c,t.isBlackberry=l,t.dynamicSort=d,t.sanitize=u,t.trace=f,t.range=g}),define("_/common/localstorage",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.exists=function(){var e=!0;try{var t=new Date;window.localStorage.setItem(t.toString(),t.toString());window.localStorage.getItem(t.toString()),t.toString();window.localStorage.removeItem(t.toString())}catch(t){e=!1}return e},e.prototype.setItem=function(e,t){this.exists()&&window.localStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.exists()&&window.localStorage.removeItem(e)},e.prototype.getItem=function(e){return this.exists()?window.localStorage.getItem(e):null},e}();t.default=r});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("_/common/navigation",["require","exports","aurelia-framework","aurelia-event-aggregator"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.eventAggregator=e}return e.prototype.to=function(e,t){void 0===t&&(t="");var r=encodeURIComponent(t),o={};switch(e){case"forgot-password":o.route="/user/forgotpassword";break;case"profile":o.route="/u/"+r;break;default:o.route=""}this.eventAggregator.publish("navigateTo",o)},e=__decorate([r.inject(o.EventAggregator),__metadata("design:paramtypes",[Object])],e)}();t.default=n}),define("_/data/constants",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={reCaptchaKey:"",captchaEnabled:!0,Account:{PENDING:"PENDING",APPROVED:"APPROVED"},clientURL:"",expected_token:""};t.default=r}),define("_/data/user",["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.expectedToken="",this.isRemembered=!1,this.isAuthenticated=!1,this.isAuthenticatedOrRemembered=!1,this.firstTime=!1,this.reference=""}return e.prototype.setMe=function(e){var t=e.me;this.reference=t.reference},e}();t.default=r});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("resources/elements/recaptcha",["require","exports","aurelia-framework","../../_/data/constants","../../_/common/localstorage"],function(e,t,r,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=new Promise(function(e){return window.setRecaptchaReady=e}),a=(new n.default).getItem("lang")||"en",s=document.createElement("script");s.src="https://www.google.com/recaptcha/api.js?onload=setRecaptchaReady&render=explicit&hl="+a,s.async=!0,s.defer=!0,document.head.appendChild(s);var c=function(){function e(e){this.theme="light",this.element=e,this.widgetId=null}return e.prototype.attached=function(){var e=this;i.then(function(){e.widgetId=window.grecaptcha.render(e.element,{sitekey:o.default.reCaptchaKey,theme:e.theme,callback:e.verified})})},__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"verified",void 0),__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"theme",void 0),e=__decorate([r.noView(),r.inject(Element),__metadata("design:paramtypes",[Object])],e)}();t.Recaptcha=c}),define("resources/value-converters/date_format",["require","exports","moment"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.toView=function(e,t){return"epoch"==t?r.unix(e).format("M/D/YYYY"):r(e).format("M/D/YYYY")},e}();t.DateFormatValueConverter=o}),define("resources/value-converters/money_format",["require","exports","numeral"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.toView=function(e,t){return void 0!==e&&e||(e=0),"USD "+r(e).format("$0,0.00")},e}();t.MoneyFormatValueConverter=o}),define("resources/value-converters/sanitize",["require","exports","./../../_/common/functions"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.toView=function(e){return void 0!==e&&e||(e=""),r.sanitize(e)},e}();t.SanitizeValueConverter=o});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/loginreg/confirm-pin",["require","exports","aurelia-framework","aurelia-event-aggregator","./../../_/data/user","./../../_/common/navigation","./../../_/connect/api","aurelia-router","aurelia-i18n"],function(e,t,r,o,n,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,r,o,n,i){this.code="",this.errorMessage="",this.router=e,this.eventAggregator=t,this.user=r,this.nav=o,this.api=n,this.i18n=i,this.code="",this.errorMessage=""}return e.prototype.activate=function(e,t){return e&&e.code&&(this.code=e.code,this.doConfirmPin()),!0},e.prototype.doConfirmPin=function(){var e=this;if(""==this.code)return this.errorMessage=this.i18n.tr("regpages:confirmpin.errorMessage0"),!1;this.errorMessage="",this.eventAggregator.publish("setIsLoading",!0);var t={code:this.code};return this.api.call("/member/confirm-pin/",t).then(function(t){e.eventAggregator.publish("setIsLoading",!1),t.success?e.router.navigateToRoute("home"):e.errorMessage=e.i18n.tr("regpages:confirmpin.errorMessage1")}),!1},e=__decorate([r.inject(s.Router,o.EventAggregator,n.default,i.default,a.default,c.I18N),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object])],e)}();t.ConfirmPin=l});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/loginreg/forgot-password-recover",["require","exports","aurelia-framework","aurelia-event-aggregator","./../../_/data/user","./../../_/common/navigation","./../../_/connect/api","aurelia-router","aurelia-i18n"],function(e,t,r,o,n,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,r,o,n,i){this.code="",this.password="",this.password2="",this.errorMessage="",this.successMessage="",this.router=e,this.eventAggregator=t,this.user=r,this.nav=o,this.api=n,this.i18n=i,this.code="",this.password="",this.password2="",this.errorMessage="",this.successMessage=""}return e.prototype.activate=function(e,t){this.code=e.code},e.prototype.doForgotPassword=function(){var e=this;if(""==this.code)return this.errorMessage=this.i18n.tr("regpages:forgotpasswordrecover.errors.e0"),!1;if(this.password.length<6)return this.errorMessage=this.i18n.tr("regpages:forgotpasswordrecover.errors.e1"),!1;if(this.password!=this.password2)return this.errorMessage=this.i18n.tr("regpages:forgotpasswordrecover.errors.e2"),!1;this.errorMessage="",this.eventAggregator.publish("setIsLoading",!0);var t={code:this.code,password:this.password,password2:this.password2};return this.api.call("/member/forgot-password-recover/",t).then(function(t){e.eventAggregator.publish("setIsLoading",!1),t.success?(e.successMessage=e.i18n.tr("regpages:forgotpasswordrecover.success"),e.router.navigateToRoute("home")):e.errorMessage="Error"}),!1},e=__decorate([r.inject(s.Router,o.EventAggregator,n.default,i.default,a.default,c.I18N),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object])],e)}();t.ForgotPasswordRecover=l});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/loginreg/forgot-password",["require","exports","aurelia-framework","aurelia-event-aggregator","./../../_/data/user","./../../_/common/navigation","./../../_/connect/api","aurelia-router","aurelia-i18n"],function(e,t,r,o,n,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,r,o,n,i){this.username="",this.errorMessage="",this.successMessage="",this.router=e,this.eventAggregator=t,this.user=r,this.nav=o,this.api=n,this.i18N=i,this.username="",this.errorMessage="",this.successMessage=""}return e.prototype.forgotPassword=function(){var e=this;if(-1==this.username.indexOf("@")||-1==this.username.indexOf(".")||this.username.length<6)return this.errorMessage=this.i18N.tr("regpages:forgotpassword.errorMessage"),!1;this.errorMessage="",this.eventAggregator.publish("setIsLoading",!0);var t={username:this.username};return this.api.call("/member/forgot-password/",t).then(function(t){e.eventAggregator.publish("setIsLoading",!1),t.success?e.successMessage=e.i18N.tr("regpages:forgotpassword.successMessage"):e.errorMessage=e.i18N.tr("regpages:forgotpassword.errorMessage1")}),!1},e=__decorate([r.inject(s.Router,o.EventAggregator,n.default,i.default,a.default,c.I18N),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object])],e)}();t.ForgotPassword=l}),define("_/common/analytics/ga",["require","exports","../functions"],function(e,t,r){"use strict";function o(){try{window.ga("create",i,"auto"),window.ga("send","pageview"),r.trace("starting the GA journey")}catch(e){r.trace(e)}}function n(e){try{a||window.ga("set","userId",e),a=!0}catch(e){r.trace(e)}}Object.defineProperty(t,"__esModule",{value:!0});var i="UA-70822515-2",a=!1;t.init=o,t.setUser=n});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("resources/elements/dialogs/generic_error",["require","exports","aurelia-framework","aurelia-dialog"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.css_warn="font-size:24px;",this.css_success="font-size:24px; color: green;",this.css_message="font-size:16px; text-align: center; white-space: pre;",this.error={title:"",message:"",warn:!1,error:!1,success:!0,cancel:!0,ok:!0},this.dialogController=e,this.css_warn="font-size:24px;",this.css_success="font-size:24px; color: green;",this.css_message="font-size:16px; text-align: center; white-space: pre;"}return e.prototype.activate=function(e){this.error=e,e.warning&&(this.css_warn+="color: orange;"),e.error&&(this.css_warn+="color: red;")},e=__decorate([r.inject(o.DialogController),__metadata("design:paramtypes",[Object])],e)}();t.GenericError=n});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("resources/elements/buttons/button_0",["require","exports","aurelia-framework"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.btnclass="btn-empty-custom-element",this.iconsrc="",this.iconwidth="30",this.iconheight="30",this.text="",this.btntype="",this.element=e}return e.prototype.btntypeChanged=function(){switch(this.btntype){case"blue":this.btnclass="btn-blue-custom-element";break;default:this.btnclass="btn-empty-custom-element"}},e.prototype.attached=function(){},__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"iconsrc",void 0),__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"iconwidth",void 0),
__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"iconheight",void 0),__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"text",void 0),__decorate([r.bindable,__metadata("design:type",Object)],e.prototype,"btntype",void 0),e=__decorate([r.customElement("button-0"),r.inject(Element),__metadata("design:paramtypes",[Object])],e)}();t.Button_0=o});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/loginreg/custom-element/home-login",["require","exports","aurelia-framework","aurelia-event-aggregator","aurelia-router","aurelia-i18n","aurelia-dialog","./../../../_/data/user","./../../../_/common/navigation","./../../../_/connect/api","./../../../_/connect/ltsocket","./../../../_/common/localstorage","jquery"],function(e,t,r,o,n,i,a,s,c,l,d,u,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(e,t,r,o,n,i,a,s,c){this.rememberMe=!0,this.username="",this.password="",this.router=e,this.eventAggregator=t,this.i18n=r,this.dialogService=o,this.user=n,this.nav=i,this.api=a,this.ltSocket=s,this.ls=c,this.rememberMe=!0,this.username="",this.password=""}return e.prototype.attached=function(){this.errorMessage=this.i18n.tr("regpages:login.title"),this.username=this.ls.getItem("email")||"",""!=this.username&&f(this.txtPass).focus()},e.prototype.forgotPassword=function(){this.nav.to("forgot-password")},e.prototype.login=function(){var e=this;if(-1==this.username.indexOf("@")||-1==this.username.indexOf(".")||this.username.length<6)return this.errorMessage=this.i18n.tr("regpages:login.error0"),!1;if(this.password.length<6)return this.errorMessage=this.i18n.tr("regpages:login.error1"),!1;this.errorMessage="",this.eventAggregator.publish("setIsLoading",!0);var t={username:this.username,password:this.password,rememberMe:this.rememberMe};return this.api.call("/member/login/",t).then(function(t){t.success?(e.ltSocket.restart(),e.user.isAuthenticated=!0,e.api.refresh().then(function(){e.eventAggregator.publish("justloggedIn"),e.nav.to("profile",e.user.reference)}),e.rememberMe?e.ls.setItem("email",e.username):e.ls.removeItem("email")):(e.errorMessage="Wrong username or password",e.eventAggregator.publish("setIsLoading",!1))}),!1},e=__decorate([r.customElement("home-login"),r.inject(n.Router,o.EventAggregator,i.I18N,a.DialogService,s.default,c.default,l.default,d.default,u.default),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object,Object,Object])],e)}();t.HomeRegistration=g});var __decorate=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},__metadata=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};define("user/loginreg/custom-element/home-registration",["require","exports","aurelia-framework","aurelia-event-aggregator","aurelia-router","aurelia-i18n","./../../../_/data/user","./../../../_/common/navigation","./../../../_/connect/api","./../../../_/connect/ltsocket","./../../../_/data/constants","./../../../_/common/localstorage","./../../../_/common/alerts"],function(e,t,r,o,n,i,a,s,c,l,d,u,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(e,t,r,o,n,i,a,s,c){this.errorMessage="",this.captchaVerified=!1,this.tosCheck=!1,this.username="",this.password="",this.router=e,this.eventAggregator=t,this.i18n=r,this.user=o,this.nav=n,this.api=i,this.ltSocket=a,this.ls=s,this.alerts=c,this.errorMessage="",this.captchaVerified=!1,this.tosCheck=!1,this.username="",this.password=""}return e.prototype.attached=function(){this.errorMessage=this.i18n.tr("regpages:register.title"),this.savedUsername=this.ls.getItem("email")||""},e.prototype.onCaptchaVerified=function(){this.captchaVerified=!0},e.prototype.signup=function(){var e=this;if(-1==this.username.indexOf("@")||-1==this.username.indexOf(".")||this.username.length<6)return this.errorMessage="Invalid Email",!1;if(this.password.length<6)return this.errorMessage="Password must be at least 6 digits",!1;if(!this.tosCheck)return this.errorMessage="Please accept the terms of use and privacy policy",!1;var t=!1,r="";if(d.default.captchaEnabled){if(!this.captchaVerified)return this.errorMessage="Verify captcha",!1;try{r=window.grecaptcha.getResponse()}catch(e){t=!0,window.grecaptcha.reset(),this.alerts.showGenericError({error:!0,message:this.i18n.tr("translation:error.captcha_0")})}if(t)return}this.errorMessage="",this.eventAggregator.publish("setIsLoading",!0);var o={username:this.username,password:this.password,password2:this.password,approve:this.tosCheck,captcha:r};return this.api.call("/member/register/",o).then(function(t){var r=t.data;e.eventAggregator.publish("setIsLoading",!1),t.success?(e.user.isAuthenticated=!0,e.user.firstTime=r.firstTime,e.api.refresh().then(function(){e.eventAggregator.publish("justloggedIn"),e.nav.to("profile",e.user.reference)})):(window.grecaptcha.reset(),e.errorMessage="We're sorry, username is taken")}),!1},e.prototype.fbLogin=function(){},e.prototype.googleLogin=function(){},e=__decorate([r.customElement("home-registration"),r.inject(n.Router,o.EventAggregator,i.I18N,a.default,s.default,c.default,l.default,u.default,f.default),__metadata("design:paramtypes",[Object,Object,Object,Object,Object,Object,Object,Object,Object])],e)}();t.HomeRegistration=g}),define("text!app.html",["module"],function(e){e.exports='<template><require from="./style/style.css"></require><require from="./header/the-header"></require><div id="loadingScreen" class="loader-animate-panel"><div class="splash-title"><img src="images/loading_b.gif"></div></div><div style="background-color:#607d8b;height:68px;border-bottom:#708a97 solid 2px"><the-header></the-header></div><div style="min-height:500px"><router-view name="mainView"></router-view></div></template>'}),define("text!style/style.css",["module"],function(e){e.exports="html {\n    -webkit-text-size-adjust: 100%;\n    width: 100vw;\n    height:100vh;\n}\nbody {\n    width: 100vw;\n    height:100vh;\n    margin: 0; padding: 0; \n    font-family: 'Roboto', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n    font-size: 12px;\n    color:#4b4b4b;\n    \n    background-color: #deeae6;\n    background-position: top;\n    background-repeat: repeat-x; \n    height:100vh;\n} \n\nh1, h2, h3, h4 {\n    font-weight: 200;\n}\n\nbutton,\na,\na:link,\na:hover,\na:active,\na:visited\n {\n    color:#000;\n    cursor: pointer;\n}\n.form-control{\n    margin-top: 2px;\n    background-color: #eff2f7;\n    border-radius: 8px;\n    border:none;\n    font-weight: 200;\n    font-size: 16px;\n    font-family:  'Roboto', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n}\n\n/* HELPER */\n.hand-cursor {\n     cursor: pointer;\n }\n\n/* Loading screen */\n#loadingScreen {\n    position:fixed;\n    z-index: 1100;\n    width: 100%;\n    height: 100%;\n    min-height: 500px;\n    background-color: rgba(255, 255, 255, 0.7);\n    top:0;\n}\n#loadingScreen .splash-title {\n    text-align: center;\n    max-width: 500px;\n    margin: 15% auto;\n    padding: 20px;\n}\n#loadingScreen .splash-title h1 {\n    font-size: 26px;\n}\n\n/*INPUT FILE*/\n.inputfile {\n    width: 0.1px;\n    height: 0.1px;\n    opacity: 0;\n    overflow: hidden;\n    position: absolute;\n    z-index: -1;\n}\n.inputfile + label, \n.input-extra-btn,\n.input-light\n {\n    cursor: pointer;\n    font-family: 'Play','Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n    font-size: 1.25em;\n    font-weight: 700;\n    color: white;\n    background-color: #2978ff;\n    display: inline-block;\n    padding: 5px;\n    border-radius: 3px;\n    border:none;\n}\n.input-light{\n    background-color: white;\n    border: 1px solid #e2e4e8;\n    color:#758d9e;\n}\n.inputfile:focus + label,\n.input-extra-btn:focus,\n.input-extra-btn:hover,\n.inputfile + label:hover {\n    background-color: red;\n}\n.inputfile + label * {\n    pointer-events: none;\n}\n    \n.user-image {\n    background-color: #fff; \n    background-size:cover;\n    width: 40px;\n    height: 40px;\n    /*border-radius: 3px;*/\n    border: 1px solid #1565c0; \n    /*box-shadow: 0 5px 10px rgba(0,0,0,0.2);*/\n}\n\n\n/* Aurelia ========== ========== ========== ========== ========== ========== ========== ========== ========== */\nai-dialog-overlay.active {\n  background-color: white;\n  opacity: .7;\n}\n\n\n"}),define("text!header/the-header.html",["module"],function(e){e.exports='<template><div style="display:flex"><div style="padding:0 10px 0 10px"><label for="header-language-select">Language:</label></div><div style="padding:0 10px 0 10px"><select id="header-language-select" value.bind="sel_lang" class="form-control input-sm" style="width:80px"><option model.bind="lang" repeat.for="lang of languages">${lang.label}</option></select></div><div show.bind="user.isAuthenticatedOrRemembered" style="padding:0 10px 0 10px"><div click.trigger="logout()" style="cursor:pointer">Logout</div></div></div></template>'}),define("text!user/loginreg/style.css",["module"],function(e){e.exports="#homescreen .forms {\n    float:right;\n}\n#homescreen .bg {\n    min-height: 500px;\n    max-width: 1024px;\n}\n#homescreen .whiteness {\n    background-color: rgba(255, 255, 255, 1);\n    margin: 0;\n    padding: 15px;\n    border-radius: 3px;\n}\n#homescreen .reg {\n    height:100%; \n    /*min-height: 300px;*/\n}\n#homescreen .login {\n    margin: 0 0 5px 0;\n}\n\n\n/*Web Screen*/\n@media (min-width: 767px) {\n\n}\n/*Mobile screen*/\n@media (max-width: 767px) {\n}\n@media (max-width: 500px) {\n    #homescreen .forms {\n        float: none;\n    }\n}"}),define("text!profile/profile.html",["module"],function(e){e.exports='<template><router-view name="rProfile"></router-view></template>'}),define("text!profile/view.html",["module"],function(e){e.exports='<template><h1>Hello ${member.firstName}</h1><div show.bind="showFirstTime"><h4>This is your first time here!</h4>what\'s your name? <input type="text" value.bind="firstName"> <button click.trigger="saveFirstName()">Save</button></div></template>'}),define("text!notfound/notfound.html",["module"],function(e){e.exports='<template><div align="center"><br><br><div class="white-bg-border-content" style="min-height:200px;width:400px"><br><br><br><br><h4 t="error.route_not_found">Error - Route not found.</h4></div></div></template>'}),define("text!user/home.html",["module"],function(e){e.exports='<template><require from="./loginreg/style.css"></require><require from="./loginreg/custom-element/home-login"></require><require from="./loginreg/custom-element/home-registration"></require><section show.bind="showUI"><div id="homescreen" align="center"><div class="bg"><div class="forms"><home-login></home-login><home-registration></home-registration></div><br clear="all"></div></div></section></template>'}),define("text!user/loginreg/confirm-pin.html",["module"],function(e){e.exports='<template><section><div class="login-container" id="pageContent" style="padding-top:30px"><div class="container"><div class="row"><div class="col-sm-6 col-sm-offset-3 content-page"><div class="hpanel"><div class="panel-body theForm"><div class="text-danger text-center" show.bind="errorMessage != \'\'"><h3>Oops! ${errorMessage}</h3></div><form submit.delegate="doConfirmPin()" method="post" id="loginForm" accept-charset="UTF-8" role="form"><div class="form-group"><label class="control-label" for="code" t="regpages:confirmpin.code">Code</label><input type="text" placeholder="${ i18n.tr(\'regpages:confirmpin.code_placeholder\') }" value.bind="code" class="form-control"></div><button class="btn btn-success btn-block btn-send-data" t="regpages:confirmpin.btnconfirm">Confirm</button></form></div></div></div></div></div></div></section></template>'}),define("text!user/loginreg/forgot-password-recover.html",["module"],function(e){e.exports='<template><section><div class="login-container" id="pageContent" style="padding-top:30px"><div class="container"><div class="row"><div class="col-sm-6 col-sm-offset-3 content-page"><div class="hpanel"><div class="panel-body theForm"><div class="text-danger text-center" show.bind="errorMessage != \'\'"><h3>Oops! ${errorMessage}</h3></div><div class="text-success text-center" show.bind="successMessage != \'\'"><h3>${successMessage}</h3></div><form show.bind="successMessage == \'\'" submit.delegate="doForgotPassword()"><div class="form-group"><label class="control-label" for="code" t="regpages:forgotpasswordrecover.code">Code</label><input type="text" placeholder="${i18n.tr(\'regpages:forgotpasswordrecover.code_placeholder\')}" value.bind="code" title="Code" name="code" id="code" class="form-control"></div><div class="form-group col-md-12"><label t="regpages:forgotpasswordrecover.password">Password</label><input type="password" id="txtPassword" value.bind="password" class="form-control" placeholder="******" name="txtPassword"></div><div class="form-group col-md-12"><label t="regpages:forgotpasswordrecover.password_confirm">Password confirm</label><input type="password" id="txtPassword2" value.bind="password2" class="form-control" placeholder="******" name="txtPassword2"></div><button class="btn btn-success btn-block btn-send-data" t="regpages:forgotpasswordrecover.btnchange">Change</button></form></div></div></div></div></div></div></section></template>'}),define("text!user/loginreg/forgot-password.html",["module"],function(e){e.exports='<template><section><div class="container"><div class="login-container" id="pageContent" style="padding-top:5px"><div class="row" align="center"><div class="col-md-6 col-md-offset-3 content-page"><div class="hpanel"><div class="panel-body theForm"><div class="text-danger text-center" show.bind="errorMessage != \'\'"><h3>Oops! ${errorMessage}</h3></div><div class="text-success text-center" show.bind="successMessage != \'\'"><h3>${successMessage}</h3></div><form submit.delegate="forgotPassword()"><div class="form-group"><label class="control-label" for="username" t="regpages:forgotpassword.user">User (Email)</label><input type="text" placeholder="${ i18n.tr(\'regpages:forgotpassword.user_placeholder\') }" required value.bind="username" name="username" id="username" class="form-control"></div><button class="btn btn-success btn-block btn-send-data" t="regpages:forgotpassword.btnremember">Remember</button></form></div></div></div></div></div></div></section></template>'}),define("text!resources/elements/buttons/button_0.html",["module"],function(e){e.exports='<template><style>.btn-blue-custom-element{background-color:#2979ff;border-radius:5px;height:50px;cursor:pointer;color:#fff;font-family:Play,Roboto,\'Helvetica Neue\',Helvetica,Arial,sans-serif;font-size:24px;padding:6px 5px 0 5px;text-align:center}.btn-empty-custom-element{border:1px solid #535353;border-radius:5px;min-width:70px;height:50px;cursor:pointer;color:#4b4b4b;font-family:Roboto,\'Helvetica Neue\',Helvetica,Arial,sans-serif;font-size:16px;padding:12px 5px 0 5px;text-align:center;margin:0 0 0 5px}@media (min-width:769px){.btn-blue-custom-element,.btn-empty-custom-element{min-width:100px}}@media (max-width:768px){.btn-element-icon-custom-element{display:none}}</style><div class.bind="btnclass"><img show.bind="iconsrc!=\'\'" src.bind="iconsrc" width="${iconwidth}" height="${iconheight}" class="btn-element-icon-custom-element"> ${text}</div></template>'}),define("text!resources/elements/dialogs/generic_error.html",["module"],function(e){e.exports='<template><ux-dialog><ux-dialog-header><div align="center" show.bind="error.warning || error.error" style.bind="css_warn"><i class="fa fa-2x fa-exclamation-triangle"></i></div><div align="center" show.bind="error.success" style.bind="css_success"><i class="fa fa-2x fa-check"></i></div></ux-dialog-header><ux-dialog-body><div style.bind="css_message">${error.message}</div></ux-dialog-body><ux-dialog-footer><button click.trigger="dialogController.cancel()" show.bind="error.cancel">Cancel</button> <button click.trigger="dialogController.ok(error)" show.bind="error.ok">Ok</button></ux-dialog-footer></ux-dialog></template>'}),define("text!user/loginreg/custom-element/home-login.html",["module"],function(e){e.exports='<template><div class="whiteness login"><div class="text-info text-center" show.bind="errorMessage != \'\'"><span style="font-size:16px;font-weight:200">${errorMessage}</span></div><form submit.delegate="login()"><div class="form-group"><input type="text" placeholder="${i18n.tr(\'regpages:login.user_placeholder\')}" value.bind="username" class="form-control input-sm"></div><div class="form-group"><input type="password" placeholder="${i18n.tr(\'regpages:login.password_placeholder\')}" value.bind="password" ref="txtPass" class="form-control input-sm"></div><div class="checkbox" align="left" style="padding-left:20px"><div class="pull-right"><a click.trigger="forgotPassword()" t="regpages:login.forgotpassword">Forgot password</a></div><input type="checkbox" class="i-checks" id="chkRememberMe" name="chkRememberMe" checked.bind="rememberMe"> <span t="regpages:login.rememberme">Remembe me</span><p class="help-block small" t="regpages:login.rememberme1">(only if private device)</p></div><button type="submit" class="btn btn-success btn-block btn-send-data" t="regpages:login.btnlogin">Login</button></form></div></template>'}),define("text!user/loginreg/custom-element/home-registration.html",["module"],function(e){e.exports='<template><div class="whiteness reg"><form submit.delegate="signup()"><div class="text-info text-center" show.bind="errorMessage != \'\'"><span style="font-size:16px;font-weight:200">${errorMessage}</span></div><div class="form-group"><input type="text" value.bind="username" class="form-control input-sm" placeholder="${ i18n.tr(\'regpages:register.email_placeholder\') }"></div><div class="form-group"><input type="password" value.bind="password" class="form-control input-sm" placeholder="${ i18n.tr(\'regpages:register.password_placeholder\') }"></div><div align="center" class="form-group nopadding nomargin"><div class="checkbox" align="left" style="padding-left:20px;font-size:10px"><input type="checkbox" class="i-checks approveCheck" checked.bind="tosCheck"> <span t="regpages:register.tos_01">I agree with</span> <a target="_blank" t="regpages:register.tos_02">terms and conditions </a><span t="regpages:register.tos_03">and</span> <a target="_blank" t="regpages:register.tos_04">privacy policy</a></div><recaptcha theme="light" verified.call="onCaptchaVerified()" if.bind="constants.captchaEnabled"></recaptcha><br clear="all"></div><div class="form-group nopadding nomargin" align="center"><button type="submit" class="btn btn-success btn-block btn-send-data" t="regpages:register.btnregister">Sign up</button></div><br clear="all"></form></div></template>'});