{"size": 147363, "ext": "js", "max_stars_repo_path": "docker/alpine/kolibri/plugins/setup_wizard/static/kolibri.plugins.setup_wizard.app/kolibri.plugins.setup_wizard.app-0.14.3.js", "max_stars_repo_name": "sanmoy/kolibri-azure", "max_stars_repo_stars_event_min_datetime": "2020-10-22T05:54:52.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-22T05:54:52.000Z", "max_issues_repo_path": "docker/alpine/kolibri/plugins/setup_wizard/static/kolibri.plugins.setup_wizard.app/kolibri.plugins.setup_wizard.app-0.14.3.js", "max_issues_repo_name": "sanmoy/kolibri-azure", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docker/alpine/kolibri/plugins/setup_wizard/static/kolibri.plugins.setup_wizard.app/kolibri.plugins.setup_wizard.app-0.14.3.js", "max_forks_repo_name": "sanmoy/kolibri-azure", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 73681.5, "max_line_length": 147295, "alphanum_fraction": 0.8421313355}
!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=204)}([function(module,__webpack_exports__,__webpack_require__){"use strict";function normalizeComponent(scriptExports,render,staticRenderFns,functionalTemplate,injectStyles,scopeId,moduleIdentifier,shadowMode){var hook,options="function"==typeof scriptExports?scriptExports.options:scriptExports;if(render&&(options.render=render,options.staticRenderFns=staticRenderFns,options._compiled=!0),functionalTemplate&&(options.functional=!0),scopeId&&(options._scopeId="data-v-"+scopeId),moduleIdentifier?(hook=function(context){(context=context||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(context=__VUE_SSR_CONTEXT__),injectStyles&&injectStyles.call(this,context),context&&context._registeredComponents&&context._registeredComponents.add(moduleIdentifier)},options._ssrRegister=hook):injectStyles&&(hook=shadowMode?function(){injectStyles.call(this,(options.functional?this.parent:this).$root.$options.shadowRoot)}:injectStyles),hook)if(options.functional){options._injectStyles=hook;var originalRender=options.render;options.render=function(h,context){return hook.call(context),originalRender(h,context)}}else{var existing=options.beforeCreate;options.beforeCreate=existing?[].concat(existing,hook):[hook]}return{exports:scriptExports,options:options}}__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeComponent}))},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.mixins.commonCoreStrings},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.mixins.commonSyncElements},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(64),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(15),getRawTag=__webpack_require__(114),objectToString=__webpack_require__(115),symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}},function(module,exports){module.exports=function(value){return null!=value&&"object"==typeof value}},function(module,exports,__webpack_require__){var baseIsNative=__webpack_require__(113),getValue=__webpack_require__(118);module.exports=function(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0}},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.vuex.store},function(module,exports){module.exports=kolibriCoreAppGlobal},function(module,exports){module.exports=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.componentSets.sync},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.router},function(module,exports,__webpack_require__){var listCacheClear=__webpack_require__(103),listCacheDelete=__webpack_require__(104),listCacheGet=__webpack_require__(105),listCacheHas=__webpack_require__(106),listCacheSet=__webpack_require__(107);function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet,module.exports=ListCache},function(module,exports,__webpack_require__){var eq=__webpack_require__(49);module.exports=function(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(4).Symbol;module.exports=Symbol},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(7)(Object,"create");module.exports=nativeCreate},function(module,exports,__webpack_require__){var isKeyable=__webpack_require__(127);module.exports=function(map,key){var data=map.__data__;return isKeyable(key)?data["string"==typeof key?"string":"hash"]:data.map}},function(module,exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(148),baseKeys=__webpack_require__(155),isArrayLike=__webpack_require__(19);module.exports=function(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},function(module,exports,__webpack_require__){var isFunction=__webpack_require__(63),isLength=__webpack_require__(53);module.exports=function(value){return null!=value&&isLength(value.length)&&!isFunction(value)}},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),isObjectLike=__webpack_require__(6);module.exports=function(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}},function(module,exports,__webpack_require__){var isSymbol=__webpack_require__(20);module.exports=function(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-1/0?"-0":result}},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){var _SubmissionStatePage__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(46);__webpack_exports__.a={name:"ErrorPage",components:{SubmissionStatePage:_SubmissionStatePage__WEBPACK_IMPORTED_MODULE_0__.a},methods:{refreshPage:function(){global.location.reload(!0)}},$trs:{errorPageHeader:"Something went wrong",errorPageSubheader:"Please check your server connection and retry.",errorPageAdditionalGuidance:"If retrying doesn't work, restart the server and refresh the page.",errorPageRetryButtonLabel:"Retry"}}}).call(this,__webpack_require__(60))},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){},function(module,exports){module.exports=kolibriCoreAppGlobal.heartbeat},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.mixins.responsiveWindowMixin},function(module,exports){module.exports=kolibriCoreAppGlobal.urls},function(module,exports,__webpack_require__){var arrayEvery=__webpack_require__(185),baseEvery=__webpack_require__(186),baseIteratee=__webpack_require__(48),isArray=__webpack_require__(2),isIterateeCall=__webpack_require__(191);module.exports=function(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=void 0),func(collection,baseIteratee(predicate,3))}},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.PasswordTextbox},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.mixins.commonTaskStrings},function(module,__webpack_exports__,__webpack_require__){"use strict";var submission_states_SubmissionStatePagevue_type_script_lang_js_={name:"SubmissionStatePage",props:{header:{type:String,required:!0}}},componentNormalizer=(__webpack_require__(94),__webpack_require__(0)),component=Object(componentNormalizer.a)(submission_states_SubmissionStatePagevue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",{staticClass:"submission-state-page"},[_c("KCircularLoader",{staticClass:"submission-state-page-spinner",attrs:{delay:!1}}),_c("h1",{staticClass:"submission-state-page-header",style:{color:this.$themeTokens.primary}},[this._v("\n    "+this._s(this.header)+"\n  ")]),_c("div",{staticClass:"submission-state-page-body"},[this._t("default")],2)],1)}),[],!1,null,"527c621a",null);__webpack_exports__.a=component.exports},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),isArray=__webpack_require__(2),isObjectLike=__webpack_require__(6);module.exports=function(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&"[object String]"==baseGetTag(value)}},function(module,exports,__webpack_require__){var baseMatches=__webpack_require__(101),baseMatchesProperty=__webpack_require__(164),identity=__webpack_require__(77),isArray=__webpack_require__(2),property=__webpack_require__(175);module.exports=function(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}},function(module,exports){module.exports=function(value,other){return value===other||value!=value&&other!=other}},function(module,exports,__webpack_require__){var Map=__webpack_require__(7)(__webpack_require__(4),"Map");module.exports=Map},function(module,exports,__webpack_require__){var mapCacheClear=__webpack_require__(119),mapCacheDelete=__webpack_require__(126),mapCacheGet=__webpack_require__(128),mapCacheHas=__webpack_require__(129),mapCacheSet=__webpack_require__(130);function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet,module.exports=MapCache},function(module,exports){var reIsUint=/^(?:0|[1-9]\d*)$/;module.exports=function(value,length){var type=typeof value;return!!(length=null==length?9007199254740991:length)&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length}},function(module,exports){module.exports=function(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=9007199254740991}},function(module,exports,__webpack_require__){var isArray=__webpack_require__(2),isSymbol=__webpack_require__(20),reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;module.exports=function(value,object){if(isArray(value))return!1;var type=typeof value;return!("number"!=type&&"symbol"!=type&&"boolean"!=type&&null!=value&&!isSymbol(value))||(reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object))}},function(module,exports){module.exports=kolibriCoreAppGlobal.utils.i18n},function(module,exports){module.exports=kolibriCoreAppGlobal.lib.apiResource},function(module,exports){module.exports=kolibriCoreAppGlobal.utils.bytesForHumans},function(module,exports,__webpack_require__){var arrayEach=__webpack_require__(201),baseEach=__webpack_require__(78),castFunction=__webpack_require__(202),isArray=__webpack_require__(2);module.exports=function(collection,iteratee){return(isArray(collection)?arrayEach:baseEach)(collection,castFunction(iteratee))}},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),getPrototype=__webpack_require__(203),isObjectLike=__webpack_require__(6),funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);module.exports=function(value){if(!isObjectLike(value)||"[object Object]"!=baseGetTag(value))return!1;var proto=getPrototype(value);if(null===proto)return!0;var Ctor=hasOwnProperty.call(proto,"constructor")&&proto.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module){module.exports=JSON.parse('{"formal":{"mappings":{"learner_can_edit_username":false,"learner_can_edit_name":false,"learner_can_edit_password":false,"learner_can_sign_up":false,"learner_can_delete_account":false,"learner_can_login_with_no_password":true,"show_download_button_in_learn":false}},"nonformal":{"default":true,"mappings":{"learner_can_edit_username":true,"learner_can_edit_name":true,"learner_can_edit_password":true,"learner_can_sign_up":true,"learner_can_delete_account":true,"learner_can_login_with_no_password":false,"show_download_button_in_learn":true}},"informal":{"mappings":{"learner_can_edit_username":true,"learner_can_edit_name":true,"learner_can_edit_password":true,"learner_can_sign_up":false,"learner_can_delete_account":true,"learner_can_login_with_no_password":false,"show_download_button_in_learn":true}}}')},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(13),stackClear=__webpack_require__(108),stackDelete=__webpack_require__(109),stackGet=__webpack_require__(110),stackHas=__webpack_require__(111),stackSet=__webpack_require__(112);function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet,module.exports=Stack},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),isObject=__webpack_require__(10);module.exports=function(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag}},function(module,exports,__webpack_require__){(function(global){var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;module.exports=freeGlobal}).call(this,__webpack_require__(60))},function(module,exports){var funcToString=Function.prototype.toString;module.exports=function(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}},function(module,exports,__webpack_require__){var baseIsEqualDeep=__webpack_require__(131),isObjectLike=__webpack_require__(6);module.exports=function baseIsEqual(value,other,bitmask,customizer,stack){return value===other||(null==value||null==other||!isObjectLike(value)&&!isObjectLike(other)?value!=value&&other!=other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack))}},function(module,exports,__webpack_require__){var SetCache=__webpack_require__(132),arraySome=__webpack_require__(135),cacheHas=__webpack_require__(136);module.exports=function(array,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var stacked=stack.get(array);if(stacked&&stack.get(other))return stacked==other;var index=-1,result=!0,seen=2&bitmask?new SetCache:void 0;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(void 0!==compared){if(compared)continue;result=!1;break}if(seen){if(!arraySome(other,(function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)}))){result=!1;break}}else if(arrValue!==othValue&&!equalFunc(arrValue,othValue,bitmask,customizer,stack)){result=!1;break}}return stack.delete(array),stack.delete(other),result}},function(module,exports,__webpack_require__){var baseIsArguments=__webpack_require__(150),isObjectLike=__webpack_require__(6),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,propertyIsEnumerable=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},function(module,exports,__webpack_require__){(function(module){var root=__webpack_require__(4),stubFalse=__webpack_require__(151),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,Buffer=freeModule&&freeModule.exports===freeExports?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse;module.exports=isBuffer}).call(this,__webpack_require__(70)(module))},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,exports,__webpack_require__){var baseIsTypedArray=__webpack_require__(152),baseUnary=__webpack_require__(153),nodeUtil=__webpack_require__(154),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},function(module,exports){module.exports=function(func,transform){return function(arg){return func(transform(arg))}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(10);module.exports=function(value){return value==value&&!isObject(value)}},function(module,exports){module.exports=function(key,srcValue){return function(object){return null!=object&&(object[key]===srcValue&&(void 0!==srcValue||key in Object(object)))}}},function(module,exports,__webpack_require__){var castPath=__webpack_require__(76),toKey=__webpack_require__(21);module.exports=function(object,path){for(var index=0,length=(path=castPath(path,object)).length;null!=object&&index<length;)object=object[toKey(path[index++])];return index&&index==length?object:void 0}},function(module,exports,__webpack_require__){var isArray=__webpack_require__(2),isKey=__webpack_require__(54),stringToPath=__webpack_require__(166),toString=__webpack_require__(169);module.exports=function(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}},function(module,exports){module.exports=function(value){return value}},function(module,exports,__webpack_require__){var baseForOwn=__webpack_require__(187),baseEach=__webpack_require__(190)(baseForOwn);module.exports=baseEach},function(module,exports){module.exports=kolibriCoreAppGlobal.lib.vuex},function(module,exports){module.exports=kolibriCoreAppGlobal.client},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.LanguageSwitcherList},function(module,exports,__webpack_require__){var find=__webpack_require__(100)(__webpack_require__(178));module.exports=find},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.UiToolbar},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.FullNameTextbox},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.UsernameTextbox},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.PrivacyLinkAndModal},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.CoreInfoIcon},function(module,exports){module.exports=kolibriCoreAppGlobal.coreVue.components.PrivacyInfoModal},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(__filename){var vuex_router_sync__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(90),lodash_forEach__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_1__),kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3__=(__webpack_require__(59),__webpack_require__(12)),kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3__),kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(91),kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_4__),kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(92),kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5__),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8),kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6__),kolibri_heartbeat__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(40),kolibri_heartbeat__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(kolibri_heartbeat__WEBPACK_IMPORTED_MODULE_7__),kolibri_module__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(93);kolibri_lib_logging__WEBPACK_IMPORTED_MODULE_4___default.a.getLogger(__filename);var KolibriApp=function(KolibriModule){function KolibriApp(){KolibriModule.apply(this,arguments)}KolibriModule&&(KolibriApp.__proto__=KolibriModule),KolibriApp.prototype=Object.create(KolibriModule&&KolibriModule.prototype),KolibriApp.prototype.constructor=KolibriApp;var prototypeAccessors={routes:{configurable:!0},RootVue:{configurable:!0},store:{configurable:!0},stateSetters:{configurable:!0},pluginModule:{configurable:!0}};return prototypeAccessors.routes.get=function(){return[]},prototypeAccessors.RootVue.get=function(){return{}},prototypeAccessors.store.get=function(){return kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6___default.a},prototypeAccessors.stateSetters.get=function(){return[]},prototypeAccessors.pluginModule.get=function(){return{}},KolibriApp.prototype.ready=function(){var this$1=this;return kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3___default.a._vueRouter||kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3___default.a.initRouter(),Object(vuex_router_sync__WEBPACK_IMPORTED_MODULE_0__.sync)(kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6___default.a,kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3___default.a),this.store.hotUpdate({actions:this.pluginModule.actions||{},getters:this.pluginModule.getters||{},mutations:this.pluginModule.mutations||{}}),this.store.replaceState(Object.assign({},this.store.state,this.pluginModule.state)),lodash_forEach__WEBPACK_IMPORTED_MODULE_1___default()(this.pluginModule.modules,(function(module,name){kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6___default.a.registerModule(name,module)})),kolibri_heartbeat__WEBPACK_IMPORTED_MODULE_7___default.a.startPolling().then((function(){return this$1.store.dispatch("getNotifications"),Promise.all([].concat(this$1.stateSetters.map((function(setter){return setter(this$1.store)})))).then((function(){this$1.rootvue=new kolibri_lib_vue__WEBPACK_IMPORTED_MODULE_5___default.a(Object.assign({el:"rootvue",store:kolibri_coreVue_vuex_store__WEBPACK_IMPORTED_MODULE_6___default.a,router:kolibri_coreVue_router__WEBPACK_IMPORTED_MODULE_3___default.a.initRoutes(this$1.routes)},this$1.RootVue))}))}))},Object.defineProperties(KolibriApp.prototype,prototypeAccessors),KolibriApp}(kolibri_module__WEBPACK_IMPORTED_MODULE_8__.a);__webpack_exports__.a=KolibriApp}).call(this,"kolibri/core/assets/src/kolibri_app.js")},function(module,exports){function cloneRoute(to,from){var clone={name:to.name,path:to.path,hash:to.hash,query:to.query,params:to.params,fullPath:to.fullPath,meta:to.meta};return from&&(clone.from=cloneRoute(from)),Object.freeze(clone)}exports.sync=function(store,router,options){var moduleName=(options||{}).moduleName||"route";store.registerModule(moduleName,{namespaced:!0,state:cloneRoute(router.currentRoute),mutations:{ROUTE_CHANGED:function(state,transition){store.state[moduleName]=cloneRoute(transition.to,transition.from)}}});var currentPath,isTimeTraveling=!1,storeUnwatch=store.watch((function(state){return state[moduleName]}),(function(route){var fullPath=route.fullPath;fullPath!==currentPath&&(null!=currentPath&&(isTimeTraveling=!0,router.push(route)),currentPath=fullPath)}),{sync:!0}),afterEachUnHook=router.afterEach((function(to,from){isTimeTraveling?isTimeTraveling=!1:(currentPath=to.fullPath,store.commit(moduleName+"/ROUTE_CHANGED",{to:to,from:from}))}));return function(){null!=afterEachUnHook&&afterEachUnHook(),null!=storeUnwatch&&storeUnwatch(),store.unregisterModule(moduleName)}}},function(module,exports){module.exports=kolibriCoreAppGlobal.lib.logging},function(module,exports){module.exports=kolibriCoreAppGlobal.lib.vue},function(module,__webpack_exports__,__webpack_require__){"use strict";var urls,external_kolibriCoreAppGlobal_=__webpack_require__(9),external_kolibriCoreAppGlobal_default=__webpack_require__.n(external_kolibriCoreAppGlobal_),external_kolibriCoreAppGlobal_urls_=__webpack_require__(42);urls=__webpack_require__.n(external_kolibriCoreAppGlobal_urls_).a,__webpack_require__.p=urls.static("kolibri.plugins.setup_wizard.app/");var KolibriModule=function(options){for(var ref,args=[],len=arguments.length-1;len-- >0;)args[len]=arguments[len+1];this.name="kolibri.plugins.setup_wizard.app";var safeOptions={};this.kolibriModuleOptions.forEach((function(option){options[option]&&(safeOptions[option]=options[option])})),Object.assign(this,safeOptions),(ref=this).initialize.apply(ref,[options].concat(args)),this._registerKolibriModule()},prototypeAccessors={kolibriModuleOptions:{configurable:!0},Kolibri:{configurable:!0}};prototypeAccessors.kolibriModuleOptions.get=function(){return[]},KolibriModule.prototype._registerKolibriModule=function(){external_kolibriCoreAppGlobal_default.a.registerKolibriModuleSync(this)},KolibriModule.prototype.initialize=function(){},KolibriModule.prototype.ready=function(){},KolibriModule.prototype.stopListening=function(event,method){external_kolibriCoreAppGlobal_default.a.stopListening(event,this,method)},KolibriModule.prototype.emit=function(){for(var args=[],len=arguments.length;len--;)args[len]=arguments[len];external_kolibriCoreAppGlobal_default.a.emit.apply(external_kolibriCoreAppGlobal_default.a,args)},prototypeAccessors.Kolibri.get=function(){return external_kolibriCoreAppGlobal_default.a},Object.defineProperties(KolibriModule.prototype,prototypeAccessors);__webpack_exports__.a=KolibriModule},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SubmissionStatePage_vue_vue_type_style_index_0_id_527c621a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(22);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SubmissionStatePage_vue_vue_type_style_index_0_id_527c621a_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ErrorPage_vue_vue_type_style_index_0_id_06f6eb06_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(24);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ErrorPage_vue_vue_type_style_index_0_id_06f6eb06_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SetupWizardIndex_vue_vue_type_style_index_0_id_19c7321e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(25);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SetupWizardIndex_vue_vue_type_style_index_0_id_19c7321e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_OnboardingForm_vue_vue_type_style_index_0_id_f879a01c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_OnboardingForm_vue_vue_type_style_index_0_id_f879a01c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_GettingStartedFormAlt_vue_vue_type_style_index_0_id_941d75ae_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_GettingStartedFormAlt_vue_vue_type_style_index_0_id_941d75ae_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SetupMethod_vue_vue_type_style_index_0_id_acb320c4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(28);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SetupMethod_vue_vue_type_style_index_0_id_acb320c4_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,exports,__webpack_require__){var baseIteratee=__webpack_require__(48),isArrayLike=__webpack_require__(19),keys=__webpack_require__(18);module.exports=function(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=baseIteratee(predicate,3);collection=keys(collection),predicate=function(key){return iteratee(iterable[key],key,iterable)}}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:void 0}}},function(module,exports,__webpack_require__){var baseIsMatch=__webpack_require__(102),getMatchData=__webpack_require__(163),matchesStrictComparable=__webpack_require__(74);module.exports=function(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}}},function(module,exports,__webpack_require__){var Stack=__webpack_require__(62),baseIsEqual=__webpack_require__(66);module.exports=function(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){var key=(data=matchData[index])[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(void 0===objValue&&!(key in object))return!1}else{var stack=new Stack;if(customizer)var result=customizer(objValue,srcValue,key,object,source,stack);if(!(void 0===result?baseIsEqual(srcValue,objValue,3,customizer,stack):result))return!1}}return!0}},function(module,exports){module.exports=function(){this.__data__=[],this.size=0}},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(14),splice=Array.prototype.splice;module.exports=function(key){var data=this.__data__,index=assocIndexOf(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)}},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(14);module.exports=function(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?void 0:data[index][1]}},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(14);module.exports=function(key){return assocIndexOf(this.__data__,key)>-1}},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(14);module.exports=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(13);module.exports=function(){this.__data__=new ListCache,this.size=0}},function(module,exports){module.exports=function(key){var data=this.__data__,result=data.delete(key);return this.size=data.size,result}},function(module,exports){module.exports=function(key){return this.__data__.get(key)}},function(module,exports){module.exports=function(key){return this.__data__.has(key)}},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(13),Map=__webpack_require__(50),MapCache=__webpack_require__(51);module.exports=function(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<199)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}},function(module,exports,__webpack_require__){var isFunction=__webpack_require__(63),isMasked=__webpack_require__(116),isObject=__webpack_require__(10),toSource=__webpack_require__(65),reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");module.exports=function(value){return!(!isObject(value)||isMasked(value))&&(isFunction(value)?reIsNative:reIsHostCtor).test(toSource(value))}},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(15),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}},function(module,exports){var nativeObjectToString=Object.prototype.toString;module.exports=function(value){return nativeObjectToString.call(value)}},function(module,exports,__webpack_require__){var uid,coreJsData=__webpack_require__(117),maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";module.exports=function(func){return!!maskSrcKey&&maskSrcKey in func}},function(module,exports,__webpack_require__){var coreJsData=__webpack_require__(4)["__core-js_shared__"];module.exports=coreJsData},function(module,exports){module.exports=function(object,key){return null==object?void 0:object[key]}},function(module,exports,__webpack_require__){var Hash=__webpack_require__(120),ListCache=__webpack_require__(13),Map=__webpack_require__(50);module.exports=function(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}},function(module,exports,__webpack_require__){var hashClear=__webpack_require__(121),hashDelete=__webpack_require__(122),hashGet=__webpack_require__(123),hashHas=__webpack_require__(124),hashSet=__webpack_require__(125);function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet,module.exports=Hash},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(16);module.exports=function(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}},function(module,exports){module.exports=function(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result}},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(16),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(key){var data=this.__data__;if(nativeCreate){var result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty.call(data,key)?data[key]:void 0}},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(16),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(key){var data=this.__data__;return nativeCreate?void 0!==data[key]:hasOwnProperty.call(data,key)}},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(16);module.exports=function(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&void 0===value?"__lodash_hash_undefined__":value,this}},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(17);module.exports=function(key){var result=getMapData(this,key).delete(key);return this.size-=result?1:0,result}},function(module,exports){module.exports=function(value){var type=typeof value;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value:null===value}},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(17);module.exports=function(key){return getMapData(this,key).get(key)}},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(17);module.exports=function(key){return getMapData(this,key).has(key)}},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(17);module.exports=function(key,value){var data=getMapData(this,key),size=data.size;return data.set(key,value),this.size+=data.size==size?0:1,this}},function(module,exports,__webpack_require__){var Stack=__webpack_require__(62),equalArrays=__webpack_require__(67),equalByTag=__webpack_require__(137),equalObjects=__webpack_require__(141),getTag=__webpack_require__(158),isArray=__webpack_require__(2),isBuffer=__webpack_require__(69),isTypedArray=__webpack_require__(71),objectTag="[object Object]",hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?"[object Array]":getTag(object),othTag=othIsArr?"[object Array]":getTag(other),objIsObj=(objTag="[object Arguments]"==objTag?objectTag:objTag)==objectTag,othIsObj=(othTag="[object Arguments]"==othTag?objectTag:othTag)==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(1&bitmask)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return!!isSameTag&&(stack||(stack=new Stack),equalObjects(object,other,bitmask,customizer,equalFunc,stack))}},function(module,exports,__webpack_require__){var MapCache=__webpack_require__(51),setCacheAdd=__webpack_require__(133),setCacheHas=__webpack_require__(134);function SetCache(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas,module.exports=SetCache},function(module,exports){module.exports=function(value){return this.__data__.set(value,"__lodash_hash_undefined__"),this}},function(module,exports){module.exports=function(value){return this.__data__.has(value)}},function(module,exports){module.exports=function(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}},function(module,exports){module.exports=function(cache,key){return cache.has(key)}},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(15),Uint8Array=__webpack_require__(138),eq=__webpack_require__(49),equalArrays=__webpack_require__(67),mapToArray=__webpack_require__(139),setToArray=__webpack_require__(140),symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;module.exports=function(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case"[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case"[object ArrayBuffer]":return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eq(+object,+other);case"[object Error]":return object.name==other.name&&object.message==other.message;case"[object RegExp]":case"[object String]":return object==other+"";case"[object Map]":var convert=mapToArray;case"[object Set]":var isPartial=1&bitmask;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=2,stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result;case"[object Symbol]":if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}},function(module,exports,__webpack_require__){var Uint8Array=__webpack_require__(4).Uint8Array;module.exports=Uint8Array},function(module,exports){module.exports=function(map){var index=-1,result=Array(map.size);return map.forEach((function(value,key){result[++index]=[key,value]})),result}},function(module,exports){module.exports=function(set){var index=-1,result=Array(set.size);return set.forEach((function(value){result[++index]=value})),result}},function(module,exports,__webpack_require__){var getAllKeys=__webpack_require__(142),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(object,other,bitmask,customizer,equalFunc,stack){var isPartial=1&bitmask,objProps=getAllKeys(object),objLength=objProps.length;if(objLength!=getAllKeys(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key)))return!1}var stacked=stack.get(object);if(stacked&&stack.get(other))return stacked==other;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){var objValue=object[key=objProps[index]],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(void 0===compared?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=!1;break}skipCtor||(skipCtor="constructor"==key)}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor==othCtor||!("constructor"in object)||!("constructor"in other)||"function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor||(result=!1)}return stack.delete(object),stack.delete(other),result}},function(module,exports,__webpack_require__){var baseGetAllKeys=__webpack_require__(143),getSymbols=__webpack_require__(145),keys=__webpack_require__(18);module.exports=function(object){return baseGetAllKeys(object,keys,getSymbols)}},function(module,exports,__webpack_require__){var arrayPush=__webpack_require__(144),isArray=__webpack_require__(2);module.exports=function(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}},function(module,exports){module.exports=function(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}},function(module,exports,__webpack_require__){var arrayFilter=__webpack_require__(146),stubArray=__webpack_require__(147),propertyIsEnumerable=Object.prototype.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(object){return null==object?[]:(object=Object(object),arrayFilter(nativeGetSymbols(object),(function(symbol){return propertyIsEnumerable.call(object,symbol)})))}:stubArray;module.exports=getSymbols},function(module,exports){module.exports=function(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}},function(module,exports){module.exports=function(){return[]}},function(module,exports,__webpack_require__){var baseTimes=__webpack_require__(149),isArguments=__webpack_require__(68),isArray=__webpack_require__(2),isBuffer=__webpack_require__(69),isIndex=__webpack_require__(52),isTypedArray=__webpack_require__(71),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||result.push(key);return result}},function(module,exports){module.exports=function(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),isObjectLike=__webpack_require__(6);module.exports=function(value){return isObjectLike(value)&&"[object Arguments]"==baseGetTag(value)}},function(module,exports){module.exports=function(){return!1}},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(5),isLength=__webpack_require__(53),isObjectLike=__webpack_require__(6),typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1,module.exports=function(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}},function(module,exports){module.exports=function(func){return function(value){return func(value)}}},function(module,exports,__webpack_require__){(function(module){var freeGlobal=__webpack_require__(64),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}).call(this,__webpack_require__(70)(module))},function(module,exports,__webpack_require__){var isPrototype=__webpack_require__(156),nativeKeys=__webpack_require__(157),hasOwnProperty=Object.prototype.hasOwnProperty;module.exports=function(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=key&&result.push(key);return result}},function(module,exports){var objectProto=Object.prototype;module.exports=function(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}},function(module,exports,__webpack_require__){var nativeKeys=__webpack_require__(72)(Object.keys,Object);module.exports=nativeKeys},function(module,exports,__webpack_require__){var DataView=__webpack_require__(159),Map=__webpack_require__(50),Promise=__webpack_require__(160),Set=__webpack_require__(161),WeakMap=__webpack_require__(162),baseGetTag=__webpack_require__(5),toSource=__webpack_require__(65),dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag=baseGetTag;(DataView&&"[object DataView]"!=getTag(new DataView(new ArrayBuffer(1)))||Map&&"[object Map]"!=getTag(new Map)||Promise&&"[object Promise]"!=getTag(Promise.resolve())||Set&&"[object Set]"!=getTag(new Set)||WeakMap&&"[object WeakMap]"!=getTag(new WeakMap))&&(getTag=function(value){var result=baseGetTag(value),Ctor="[object Object]"==result?value.constructor:void 0,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result}),module.exports=getTag},function(module,exports,__webpack_require__){var DataView=__webpack_require__(7)(__webpack_require__(4),"DataView");module.exports=DataView},function(module,exports,__webpack_require__){var Promise=__webpack_require__(7)(__webpack_require__(4),"Promise");module.exports=Promise},function(module,exports,__webpack_require__){var Set=__webpack_require__(7)(__webpack_require__(4),"Set");module.exports=Set},function(module,exports,__webpack_require__){var WeakMap=__webpack_require__(7)(__webpack_require__(4),"WeakMap");module.exports=WeakMap},function(module,exports,__webpack_require__){var isStrictComparable=__webpack_require__(73),keys=__webpack_require__(18);module.exports=function(object){for(var result=keys(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)]}return result}},function(module,exports,__webpack_require__){var baseIsEqual=__webpack_require__(66),get=__webpack_require__(165),hasIn=__webpack_require__(172),isKey=__webpack_require__(54),isStrictComparable=__webpack_require__(73),matchesStrictComparable=__webpack_require__(74),toKey=__webpack_require__(21);module.exports=function(path,srcValue){return isKey(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return void 0===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,3)}}},function(module,exports,__webpack_require__){var baseGet=__webpack_require__(75);module.exports=function(object,path,defaultValue){var result=null==object?void 0:baseGet(object,path);return void 0===result?defaultValue:result}},function(module,exports,__webpack_require__){var memoizeCapped=__webpack_require__(167),rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped((function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)})),result}));module.exports=stringToPath},function(module,exports,__webpack_require__){var memoize=__webpack_require__(168);module.exports=function(func){var result=memoize(func,(function(key){return 500===cache.size&&cache.clear(),key})),cache=result.cache;return result}},function(module,exports,__webpack_require__){var MapCache=__webpack_require__(51);function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize.Cache||MapCache),memoized}memoize.Cache=MapCache,module.exports=memoize},function(module,exports,__webpack_require__){var baseToString=__webpack_require__(170);module.exports=function(value){return null==value?"":baseToString(value)}},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(15),arrayMap=__webpack_require__(171),isArray=__webpack_require__(2),isSymbol=__webpack_require__(20),symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;module.exports=function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-1/0?"-0":result}},function(module,exports){module.exports=function(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}},function(module,exports,__webpack_require__){var baseHasIn=__webpack_require__(173),hasPath=__webpack_require__(174);module.exports=function(object,path){return null!=object&&hasPath(object,path,baseHasIn)}},function(module,exports){module.exports=function(object,key){return null!=object&&key in Object(object)}},function(module,exports,__webpack_require__){var castPath=__webpack_require__(76),isArguments=__webpack_require__(68),isArray=__webpack_require__(2),isIndex=__webpack_require__(52),isLength=__webpack_require__(53),toKey=__webpack_require__(21);module.exports=function(object,path,hasFunc){for(var index=-1,length=(path=castPath(path,object)).length,result=!1;++index<length;){var key=toKey(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}return result||++index!=length?result:!!(length=null==object?0:object.length)&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object))}},function(module,exports,__webpack_require__){var baseProperty=__webpack_require__(176),basePropertyDeep=__webpack_require__(177),isKey=__webpack_require__(54),toKey=__webpack_require__(21);module.exports=function(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}},function(module,exports){module.exports=function(key){return function(object){return null==object?void 0:object[key]}}},function(module,exports,__webpack_require__){var baseGet=__webpack_require__(75);module.exports=function(path){return function(object){return baseGet(object,path)}}},function(module,exports,__webpack_require__){var baseFindIndex=__webpack_require__(179),baseIteratee=__webpack_require__(48),toInteger=__webpack_require__(180),nativeMax=Math.max;module.exports=function(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=null==fromIndex?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseFindIndex(array,baseIteratee(predicate,3),index)}},function(module,exports){module.exports=function(array,predicate,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?1:-1);fromRight?index--:++index<length;)if(predicate(array[index],index,array))return index;return-1}},function(module,exports,__webpack_require__){var toFinite=__webpack_require__(181);module.exports=function(value){var result=toFinite(value),remainder=result%1;return result==result?remainder?result-remainder:result:0}},function(module,exports,__webpack_require__){var toNumber=__webpack_require__(182);module.exports=function(value){return value?(value=toNumber(value))===1/0||value===-1/0?17976931348623157e292*(value<0?-1:1):value==value?value:0:0===value?value:0}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(10),isSymbol=__webpack_require__(20),reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;module.exports=function(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=value.replace(reTrim,"");var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ProgressToolbar_vue_vue_type_style_index_0_id_2a491840_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(29);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ProgressToolbar_vue_vue_type_style_index_0_id_2a491840_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_UngroupedSetupSteps_vue_vue_type_style_index_0_id_2f7af169_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(30);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_UngroupedSetupSteps_vue_vue_type_style_index_0_id_2f7af169_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,exports){module.exports=function(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}},function(module,exports,__webpack_require__){var baseEach=__webpack_require__(78);module.exports=function(collection,predicate){var result=!0;return baseEach(collection,(function(value,index,collection){return result=!!predicate(value,index,collection)})),result}},function(module,exports,__webpack_require__){var baseFor=__webpack_require__(188),keys=__webpack_require__(18);module.exports=function(object,iteratee){return object&&baseFor(object,iteratee,keys)}},function(module,exports,__webpack_require__){var baseFor=__webpack_require__(189)();module.exports=baseFor},function(module,exports){module.exports=function(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(!1===iteratee(iterable[key],key,iterable))break}return object}}},function(module,exports,__webpack_require__){var isArrayLike=__webpack_require__(19);module.exports=function(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&!1!==iteratee(iterable[index],index,iterable););return collection}}},function(module,exports,__webpack_require__){var eq=__webpack_require__(49),isArrayLike=__webpack_require__(19),isIndex=__webpack_require__(52),isObject=__webpack_require__(10);module.exports=function(value,index,object){if(!isObject(object))return!1;var type=typeof index;return!!("number"==type?isArrayLike(object)&&isIndex(index,object.length):"string"==type&&index in object)&&eq(object[index],value)}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SuperuserCredentialsForm_vue_vue_type_style_index_0_id_749af6a9_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(31);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SuperuserCredentialsForm_vue_vue_type_style_index_0_id_749af6a9_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_PersonalSetup_vue_vue_type_style_index_0_id_59bf5db6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_PersonalSetup_vue_vue_type_style_index_0_id_59bf5db6_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_FacilityPermissionsForm_vue_vue_type_style_index_0_id_5c834644_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(33);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_FacilityPermissionsForm_vue_vue_type_style_index_0_id_5c834644_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_YesNoForm_vue_vue_type_style_index_0_id_4ab775fc_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(34);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_YesNoForm_vue_vue_type_style_index_0_id_4ab775fc_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_CreateFacilitySetup_vue_vue_type_style_index_0_id_7ed9802d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(35);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_CreateFacilitySetup_vue_vue_type_style_index_0_id_7ed9802d_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SelectFacilityForm_vue_vue_type_style_index_0_id_e4142b04_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(36);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SelectFacilityForm_vue_vue_type_style_index_0_id_e4142b04_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SelectSuperAdminAccountForm_vue_vue_type_style_index_0_id_51dcb364_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(37);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_SelectSuperAdminAccountForm_vue_vue_type_style_index_0_id_51dcb364_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_FacilityTaskPanelDetails_vue_vue_type_style_index_0_id_6e0ca715_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(38);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_FacilityTaskPanelDetails_vue_vue_type_style_index_0_id_6e0ca715_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,__webpack_exports__,__webpack_require__){"use strict";var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ImportFacilitySetup_vue_vue_type_style_index_0_id_fe869806_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(39);__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_4_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_4_2_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_node_modules_svg_icon_inline_loader_index_js_ImportFacilitySetup_vue_vue_type_style_index_0_id_fe869806_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__).a},function(module,exports){module.exports=function(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}},function(module,exports,__webpack_require__){var identity=__webpack_require__(77);module.exports=function(value){return"function"==typeof value?value:identity}},function(module,exports,__webpack_require__){var getPrototype=__webpack_require__(72)(Object.getPrototypeOf,Object);module.exports=getPrototype},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var external_kolibriCoreAppGlobal_heartbeat_=__webpack_require__(40),external_kolibriCoreAppGlobal_heartbeat_default=__webpack_require__.n(external_kolibriCoreAppGlobal_heartbeat_),external_kolibriCoreAppGlobal_lib_vuex_=__webpack_require__(79),external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_=__webpack_require__(1),external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_),external_kolibriCoreAppGlobal_coreVue_mixins_responsiveWindowMixin_=__webpack_require__(41),external_kolibriCoreAppGlobal_coreVue_mixins_responsiveWindowMixin_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_mixins_responsiveWindowMixin_),SubmissionStatePage=__webpack_require__(46),LoadingPagevue_type_script_lang_js_={name:"LoadingPage",components:{SubmissionStatePage:SubmissionStatePage.a},$trs:{loadingPageHeader:"Setting up your facility...",loadingPageSubheader:"Please be patient. Setup may take several minutes"}},submission_states_LoadingPagevue_type_script_lang_js_=LoadingPagevue_type_script_lang_js_,componentNormalizer=__webpack_require__(0),component=Object(componentNormalizer.a)(submission_states_LoadingPagevue_type_script_lang_js_,(function(){var _h=this.$createElement;return(this._self._c||_h)("SubmissionStatePage",{attrs:{header:this.$tr("loadingPageHeader")}},[this._v("\n\n  "+this._s(this.$tr("loadingPageSubheader"))+"\n\n")])}),[],!1,null,"1500955e",null),LoadingPage=component.exports,ErrorPagevue_type_script_lang_js_=__webpack_require__(23),submission_states_ErrorPagevue_type_script_lang_js_=ErrorPagevue_type_script_lang_js_.a,ErrorPage_component=(__webpack_require__(95),Object(componentNormalizer.a)(submission_states_ErrorPagevue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("SubmissionStatePage",{attrs:{header:_vm.$tr("errorPageHeader")}},[_c("p",{staticClass:"error-page-subheader"},[_vm._v("\n    "+_vm._s(_vm.$tr("errorPageSubheader"))+"\n  ")]),_c("KButton",{staticClass:"error-page-retry-button",attrs:{text:_vm.$tr("errorPageRetryButtonLabel"),primary:!0},on:{click:_vm.refreshPage}}),_c("p",{staticClass:"error-page-subtext",style:{color:_vm.$themeTokens.annotation}},[_vm._v("\n    "+_vm._s(_vm.$tr("errorPageAdditionalGuidance"))+"\n  ")])],1)}),[],!1,null,"06f6eb06",null)),ErrorPage=ErrorPage_component.exports,SetupWizardIndexvue_type_script_lang_js_={name:"SetupWizardIndex",metaInfo:function(){return{title:this.$tr("documentTitle")}},components:{LoadingPage:LoadingPage,ErrorPage:ErrorPage},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a,external_kolibriCoreAppGlobal_coreVue_mixins_responsiveWindowMixin_default.a],computed:Object.assign({},Object(external_kolibriCoreAppGlobal_lib_vuex_.mapState)(["loading","error"])),beforeMount:function(){this.$store.state.started||"/"===this.$route.path||this.$router.replace("/")},$trs:{documentTitle:"Setup Wizard"}},views_SetupWizardIndexvue_type_script_lang_js_=SetupWizardIndexvue_type_script_lang_js_,SetupWizardIndex_component=(__webpack_require__(96),Object(componentNormalizer.a)(views_SetupWizardIndexvue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",{staticClass:"onboarding"},[this.error?_c("ErrorPage",{staticClass:"body",class:this.windowIsLarge?"":"mobile"}):this.loading?_c("LoadingPage",{staticClass:"body",class:this.windowIsLarge?"":"mobile"}):[_c("router-view")]],2)}),[],!1,null,"19c7321e",null)),SetupWizardIndex=SetupWizardIndex_component.exports,external_kolibriCoreAppGlobal_client_=__webpack_require__(80),external_kolibriCoreAppGlobal_client_default=__webpack_require__.n(external_kolibriCoreAppGlobal_client_),external_kolibriCoreAppGlobal_urls_=__webpack_require__(42),external_kolibriCoreAppGlobal_urls_default=__webpack_require__.n(external_kolibriCoreAppGlobal_urls_),external_kolibriCoreAppGlobal_utils_i18n_=__webpack_require__(55),facility_configuration_presets=__webpack_require__(61),Presets=Object.freeze({PERSONAL:"informal",FORMAL:"formal",NONFORMAL:"nonformal"}),external_kolibriCoreAppGlobal_lib_apiResource_=__webpack_require__(56),FacilityImportResource=new external_kolibriCoreAppGlobal_lib_apiResource_.Resource({name:"facilityimport",namespace:"kolibri.plugins.setup_wizard",grantsuperuserpermissions:function(ref){var user_id=ref.user_id,password=ref.password;return this.postListEndpoint("grantsuperuserpermissions",{user_id:user_id,password:password})},createsuperuser:function(ref){var username=ref.username,full_name=ref.full_name,password=ref.password;return this.postListEndpoint("createsuperuser",{username:username,full_name:full_name,password:password})},provisiondevice:function(ref){var device_name=ref.device_name,language_id=ref.language_id;return this.postListEndpoint("provisiondevice",{device_name:device_name,language_id:language_id})},facilityadmins:function(){return this.getListEndpoint("facilityadmins").then((function(response){return response.data}))}}),SetupTasksResource=new external_kolibriCoreAppGlobal_lib_apiResource_.Resource({name:"tasks",namespace:"kolibri.plugins.setup_wizard",canceltask:function(task_id){return this.postListEndpoint("canceltask",{task_id:task_id})},cleartasks:function(){return this.postListEndpoint("cleartasks")}}),SetupStrings=Object(external_kolibriCoreAppGlobal_utils_i18n_.createTranslator)("SetupStrings",{personalFacilityName:{message:"Home Facility {name}",context:"Template for a facility name for personal setups"}}),pluginModule={state:{started:!1,onboardingData:{device_name:null,language_id:external_kolibriCoreAppGlobal_utils_i18n_.currentLanguage,facility:{name:""},preset:null,allow_guest_access:null,settings:{learner_can_sign_up:null,learner_can_edit_name:null,learner_can_edit_username:null,learner_can_login_with_no_password:null},superuser:{full_name:"",username:"",password:""}},loading:!1,error:!1},actions:{logIntoImportedFacility:function(store,credentials){store.dispatch("kolibriLogin",{username:credentials.username,password:credentials.password,facility:credentials.facility})},provisionDeviceAfterImport:function(store,credentials){var onboardingData=store.state.onboardingData;return FacilityImportResource.provisiondevice({device_name:onboardingData.device_name,language_id:onboardingData.language_id}).then((function(){store.dispatch("kolibriLogin",credentials)}))},provisionDevice:function(store){var onboardingData=store.state.onboardingData,superuser=Object.assign({},onboardingData.superuser);return onboardingData.preset===Presets.PERSONAL&&(onboardingData.settings={},onboardingData.device_name=null,onboardingData.facility.name=SetupStrings.$tr("personalFacilityName",{name:store.state.onboardingData.superuser.full_name}).slice(0,49)),store.commit("SET_LOADING",!0),external_kolibriCoreAppGlobal_client_default()({url:external_kolibriCoreAppGlobal_urls_default.a["kolibri:core:deviceprovision"](),data:onboardingData,method:"post"}).then((function(response){superuser.facility=response.data.facility.id,store.dispatch("kolibriLogin",superuser)}),(function(error){store.commit("SET_ERROR",!0),store.dispatch("handleApiError",error)}))},setPersonalUsageDefaults:function(store){store.commit("SET_FACILITY_PRESET",Presets.PERSONAL)},setFormalUsageDefaults:function(store){var defaults=facility_configuration_presets.formal.mappings;store.commit("SET_FACILITY_PRESET",Presets.FORMAL),store.commit("SET_ALLOW_GUEST_ACCESS",!1),store.commit("SET_LEARNER_CAN_SIGN_UP",defaults.learner_can_sign_up),store.commit("SET_LEARNER_CAN_LOGIN_WITH_NO_PASSWORD",defaults.learner_can_login_with_no_password)},setNonformalUsageDefaults:function(store){var defaults=facility_configuration_presets.nonformal.mappings;store.commit("SET_FACILITY_PRESET",Presets.NONFORMAL),store.commit("SET_ALLOW_GUEST_ACCESS",!0),store.commit("SET_LEARNER_CAN_SIGN_UP",defaults.learner_can_sign_up),store.commit("SET_LEARNER_CAN_LOGIN_WITH_NO_PASSWORD",defaults.learner_can_login_with_no_password)},showError:function(store,errorMsg){store.commit("SET_ERROR",!0),store.dispatch("handleApiError",errorMsg)}},mutations:{START_SETUP:function(state){state.started=!0},SET_DEVICE_NAME:function(state,value){state.onboardingData.device_name=value},CLEAR_PASSWORD:function(state){state.onboardingData.superuser.password=""},SET_LANGUAGE:function(state,language_id){state.onboardingData.language_id=language_id},SET_FACILITY_NAME:function(state,name){state.onboardingData.facility.name=name},SET_SUPERUSER_CREDENTIALS:function(state,payload){state.onboardingData.superuser=Object.assign({},state.onboardingData.superuser,payload)},SET_FACILITY_PRESET:function(state,preset){state.onboardingData.preset=preset},SET_ALLOW_GUEST_ACCESS:function(state,setting){state.onboardingData.allow_guest_access=setting},SET_LEARNER_CAN_SIGN_UP:function(state,setting){state.onboardingData.settings.learner_can_sign_up=setting,state.onboardingData.settings.learner_can_edit_name=setting,state.onboardingData.settings.learner_can_edit_username=setting},SET_LEARNER_CAN_LOGIN_WITH_NO_PASSWORD:function(state,setting){state.onboardingData.settings.learner_can_login_with_no_password=setting},SET_LOADING:function(state,loadingFlag){state.loading=loadingFlag},SET_ERROR:function(state,errorFlag){state.error=errorFlag}}},OnboardingFormvue_type_script_lang_js_={name:"OnboardingForm",mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],props:{header:{type:String,required:!0},description:{type:String,required:!1},submitText:{type:String,required:!1}},computed:{hasDescription:function(){return this.description||this.$slots.description}}},onboarding_forms_OnboardingFormvue_type_script_lang_js_=OnboardingFormvue_type_script_lang_js_,OnboardingForm_component=(__webpack_require__(97),Object(componentNormalizer.a)(onboarding_forms_OnboardingFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("h1",{staticClass:"onboarding-form-header"},[_vm._v("\n    "+_vm._s(_vm.header)+"\n  ")]),_c("form",{on:{submit:function($event){return $event.preventDefault(),_vm.$emit("submit")}}},[_c("fieldset",{staticClass:"onboarding-form-fields"},[_c("legend",{staticClass:"onboarding-form-legend"},[_vm.hasDescription?_c("span",{staticClass:"onboardng-form-description"},[_vm._t("description",[_vm._v(_vm._s(_vm.description))])],2):_c("span",{staticClass:"visuallyhidden"},[_vm._v(_vm._s(_vm.header))])]),_vm._t("default")],2),_c("div",{staticClass:"form-footer"},[_vm._t("footer")],2),_vm._t("buttons",[_c("KButton",{staticClass:"onboarding-form-submit",attrs:{primary:!0,type:"submit",text:_vm.submitText||_vm.coreString("continueAction"),disabled:_vm.$attrs.disabled}})])],2)])}),[],!1,null,"f879a01c",null)),OnboardingForm=OnboardingForm_component.exports,DeviceNameFormvue_type_script_lang_js_={name:"DeviceNameForm",components:{OnboardingForm:OnboardingForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],data:function(){return{value:this.$store.state.onboardingData.device_name||"",shouldValidate:!1}},computed:{invalidText:function(){return this.shouldValidate&&""===this.value?this.coreString("requiredFieldError"):""}},methods:{handleSubmit:function(){this.shouldValidate=!0,this.invalidText?this.$refs.textbox.focus():(this.$store.commit("SET_DEVICE_NAME",this.value),this.$emit("click_next"))}},$trs:{deviceNameExplanation:{message:"Giving this device a meaningful name can help you and others you connect with to recognize it",context:"Device naming description "}}},onboarding_forms_DeviceNameFormvue_type_script_lang_js_=DeviceNameFormvue_type_script_lang_js_,DeviceNameForm=Object(componentNormalizer.a)(onboarding_forms_DeviceNameFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.coreString("deviceNameLabel"),description:_vm.$tr("deviceNameExplanation")},on:{submit:_vm.handleSubmit}},[_c("KTextbox",{ref:"textbox",attrs:{label:_vm.coreString("deviceNameLabel"),autofocus:!0,maxlength:50,invalid:Boolean(_vm.invalidText),invalidText:_vm.invalidText},on:{blur:function($event){_vm.shouldValidate=!0}},model:{value:_vm.value,callback:function($$v){_vm.value=$$v},expression:"value"}})],1)}),[],!1,null,"7c022dda",null).exports,external_kolibriCoreAppGlobal_coreVue_components_LanguageSwitcherList_=__webpack_require__(81),onboarding_forms_DefaultLanguageFormvue_type_script_lang_js_={name:"DefaultLanguageForm",components:{OnboardingForm:OnboardingForm,LanguageSwitcherList:__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_LanguageSwitcherList_).a},methods:{handleSubmit:function(){var currentLanguageId=this.$store.state.onboardingData.language_id;this.$store.commit("SET_LANGUAGE",currentLanguageId),this.$emit("click_next")}},$trs:{languageFormHeader:"Please select the default language for Kolibri"}},DefaultLanguageForm=Object(componentNormalizer.a)(onboarding_forms_DefaultLanguageFormvue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("OnboardingForm",{attrs:{header:this.$tr("languageFormHeader")},on:{submit:this.handleSubmit}},[_c("LanguageSwitcherList")],1)}),[],!1,null,"49b3fb1d",null).exports,Options=Object.freeze({PUBLIC:"PUBLIC",PERSONAL:"PERSONAL"}),onboarding_forms_GettingStartedFormvue_type_script_lang_js_={name:"GettingStartedForm",components:{OnboardingForm:OnboardingForm},data:function(){var preset=this.$store.state.onboardingData.preset;return{selected:null===preset||preset===Presets.PERSONAL?Options.PERSONAL:Options.PUBLIC,Options:Options}},computed:{isPersonal:function(){return this.selected===Options.PERSONAL}},methods:{handleSubmit:function(){this.$store.commit("SET_FACILITY_PRESET",this.isPersonal?Presets.PERSONAL:""),this.goToNextStep()},goToNextStep:function(){this.$router.push({name:this.isPersonal?"PERSONAL_SETUP":"DEVICE_NAME"})}},$trs:{gettingStarted:{message:"How are you using Kolibri?",context:"Page title for the device setup step"},quickStartLabel:{message:"Quick start",context:"Label for the radio button option in the device setup"},quickStartDescription:{message:"For homeschooling, supplementary individual learning, and other self-directed use",context:"Option description text"},advancedSetupLabel:{message:"Advanced setup",context:"Label for the radio button option in the device setup"},advancedSetupDescription:{message:"For schools, educational programs, organizations, or other group learning settings that will share the use of Kolibri",context:"Option description text"}}},GettingStartedForm=Object(componentNormalizer.a)(onboarding_forms_GettingStartedFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.$tr("gettingStarted")},on:{submit:_vm.handleSubmit}},[_c("KRadioButton",{attrs:{value:_vm.Options.PERSONAL,label:_vm.$tr("quickStartLabel"),description:_vm.$tr("quickStartDescription")},model:{value:_vm.selected,callback:function($$v){_vm.selected=$$v},expression:"selected"}}),_c("KRadioButton",{attrs:{value:_vm.Options.PUBLIC,label:_vm.$tr("advancedSetupLabel"),description:_vm.$tr("advancedSetupDescription")},model:{value:_vm.selected,callback:function($$v){_vm.selected=$$v},expression:"selected"}})],1)}),[],!1,null,"2a33915a",null).exports,external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_=__webpack_require__(3),external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_),onboarding_forms_GettingStartedFormAltvue_type_script_lang_js_={name:"GettingStartedFormAlt",components:{OnboardingForm:OnboardingForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default.a],methods:{goToPersonalSetup:function(){this.$store.commit("SET_FACILITY_PRESET",Presets.PERSONAL),this.$router.push({name:"PERSONAL_SETUP"})},goToPublicSetup:function(){this.$store.commit("SET_FACILITY_PRESET",""),this.$router.push({name:"DEVICE_NAME"})}},$trs:{gettingStartedHeader:{message:"How do you plan to use Kolibri?",context:"Page title"},descriptionParagraph1:{message:"In Kolibri, you can use a facility to manage a large group of users, like a school, an educational program or any other group learning setting. You can also have multiple facilities on the same device.",context:"First paragraph of description"},descriptionParagraph2:{message:"Would you like to configure a facility?",context:"Second paragraph of description"},configureFacilityAction:{message:"Configure facility",context:"Button that takes user to more advanced device and facility configuration steps"},skipAction:{message:"Skip",context:"Button that lets users skip more advanced setup steps"}}},GettingStartedFormAlt=(__webpack_require__(98),Object(componentNormalizer.a)(onboarding_forms_GettingStartedFormAltvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.$tr("gettingStartedHeader")},scopedSlots:_vm._u([{key:"buttons",fn:function(){return[_c("KButton",{staticClass:"left-button",attrs:{text:_vm.$tr("configureFacilityAction"),appearance:"raised-button",primary:""},on:{click:_vm.goToPublicSetup}}),_c("KButton",{attrs:{text:_vm.$tr("skipAction"),appearance:"flat-button"},on:{click:_vm.goToPersonalSetup}})]},proxy:!0}])},[_c("p",{staticClass:"p1"},[_vm._v("\n    "+_vm._s(_vm.$tr("descriptionParagraph1"))+"\n  ")]),_c("p",{staticClass:"p2"},[_vm._v("\n    "+_vm._s(_vm.$tr("descriptionParagraph2"))+"\n  ")])])}),[],!1,null,"941d75ae",null).exports),external_kolibriCoreAppGlobal_coreVue_componentSets_sync_=__webpack_require__(11),onboarding_forms_SetupMethodvue_type_script_lang_js_={name:"SetupMethod",components:{OnboardingForm:OnboardingForm,SelectAddressModalGroup:external_kolibriCoreAppGlobal_coreVue_componentSets_sync_.SelectAddressModalGroup},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default.a],data:function(){return{showAddressModal:!1}},methods:{startNewFacilityFlow:function(){this.$router.push({path:"/create_facility/1"})},startFacilityImportFlow:function(address){this.$router.push({path:"/import_facility/1",query:{device_id:address.id}})}},$trs:{setupMethodHeader:{message:"Create or import facility",context:"Page title"},descriptionParagraph1:{message:"A facility represents the location where you are installing Kolibri, such as a school, training center, or a home.",context:"First paragraph of description"},descriptionParagraph2:{message:"You can create a new facility or import an existing facility from another device on your network",context:"Second paragraph of description"},createNewFacilityAction:{message:"New facility",context:"Button that takes user to a workflow to create a new facility from scratch"},importFacilityAction:{message:"Import facility",context:"Button that takes user to a workflow to import a facility and its data from the network or internet"}}},SetupMethod=(__webpack_require__(99),Object(componentNormalizer.a)(onboarding_forms_SetupMethodvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.$tr("setupMethodHeader")},scopedSlots:_vm._u([{key:"buttons",fn:function(){return[_c("KButtonGroup",[_c("KButton",{staticClass:"left-button",attrs:{text:_vm.$tr("createNewFacilityAction"),appearance:"raised-button",primary:""},on:{click:_vm.startNewFacilityFlow}}),_c("KButton",{attrs:{text:_vm.$tr("importFacilityAction"),appearance:"flat-button"},on:{click:function($event){_vm.showAddressModal=!0}}})],1)]},proxy:!0}])},[_c("p",{staticClass:"p1"},[_vm._v("\n    "+_vm._s(_vm.$tr("descriptionParagraph1"))+"\n  ")]),_c("p",{staticClass:"p2"},[_vm._v("\n    "+_vm._s(_vm.$tr("descriptionParagraph2"))+"\n  ")]),_vm.showAddressModal?_c("SelectAddressModalGroup",{on:{submit:_vm.startFacilityImportFlow,cancel:function($event){_vm.showAddressModal=!1}}}):_vm._e()],1)}),[],!1,null,"acb320c4",null).exports),find=__webpack_require__(82),find_default=__webpack_require__.n(find),commonSetupElements={computed:{},methods:{goToSetupMethodPage:function(){this.$router.push({name:"PUBLIC_SETUP_METHOD"})}}},external_kolibriCoreAppGlobal_coreVue_components_UiToolbar_=__webpack_require__(83),views_ProgressToolbarvue_type_script_lang_js_={name:"ProgressToolbar",components:{UiToolbar:__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_UiToolbar_).a},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],props:{title:{type:String,required:!1}}},ProgressToolbar=(__webpack_require__(183),Object(componentNormalizer.a)(views_ProgressToolbarvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("UiToolbar",{staticClass:"progress-toolbar",style:{backgroundColor:_vm.$themeTokens.appBar},attrs:{type:"clear",textColor:"white",removeNavIcon:_vm.$attrs.removeNavIcon}},[_c("KIconButton",{class:{"rtl-icon":_vm.isRtl},attrs:{slot:"icon",icon:"back",color:"white"},on:{click:function($event){return _vm.$emit("click_back")}},slot:"icon"}),_c("span",[_vm._v("\n    "+_vm._s(_vm.title||_vm.coreString("kolibriLabel"))+"\n  ")])],1)}),[],!1,null,"2a491840",null).exports),PagePairs=[["DEFAULT_LANGUAGE","GETTING_STARTED"],["GETTING_STARTED","DEVICE_NAME"],["DEVICE_NAME","PUBLIC_SETUP_METHOD"]],getFromPair=function(name,pos){var obj,match=find_default()(PagePairs,((obj={})[pos]=name,obj));return match?match[0===pos?1:0]:"DEFAULT_LANGUAGE"},views_UngroupedSetupStepsvue_type_script_lang_js_={name:"UngroupedSetupSteps",components:{ProgressToolbar:ProgressToolbar},mixins:[commonSetupElements],computed:{removeNavIcon:function(){return"DEFAULT_LANGUAGE"===this.$route.name}},methods:{goToNextStep:function(){"DEFAULT_LANGUAGE"===this.$route.name&&this.$store.commit("START_SETUP");var name=getFromPair(this.$route.name,0);this.$router.push({name:name})},goToLastStep:function(){var name=getFromPair(this.$route.name,1);this.$router.push({name:name})}}},UngroupedSetupSteps=(__webpack_require__(184),Object(componentNormalizer.a)(views_UngroupedSetupStepsvue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",[_c("ProgressToolbar",{attrs:{removeNavIcon:this.removeNavIcon},on:{click_back:this.goToLastStep}}),_c("div",{staticClass:"main"},[_c("KPageContainer",[_c("router-view",{on:{click_next:this.goToNextStep}})],1)],1)],1)}),[],!1,null,"2f7af169",null).exports),every=__webpack_require__(43),every_default=__webpack_require__.n(every),external_kolibriCoreAppGlobal_coreVue_components_FullNameTextbox_=__webpack_require__(84),external_kolibriCoreAppGlobal_coreVue_components_FullNameTextbox_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_FullNameTextbox_),external_kolibriCoreAppGlobal_coreVue_components_UsernameTextbox_=__webpack_require__(85),external_kolibriCoreAppGlobal_coreVue_components_UsernameTextbox_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_UsernameTextbox_),external_kolibriCoreAppGlobal_coreVue_components_PasswordTextbox_=__webpack_require__(44),external_kolibriCoreAppGlobal_coreVue_components_PasswordTextbox_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_PasswordTextbox_),external_kolibriCoreAppGlobal_coreVue_components_PrivacyLinkAndModal_=__webpack_require__(86),external_kolibriCoreAppGlobal_coreVue_components_PrivacyLinkAndModal_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_PrivacyLinkAndModal_),onboarding_forms_SuperuserCredentialsFormvue_type_script_lang_js_={name:"SuperuserCredentialsForm",components:{OnboardingForm:OnboardingForm,FullNameTextbox:external_kolibriCoreAppGlobal_coreVue_components_FullNameTextbox_default.a,UsernameTextbox:external_kolibriCoreAppGlobal_coreVue_components_UsernameTextbox_default.a,PasswordTextbox:external_kolibriCoreAppGlobal_coreVue_components_PasswordTextbox_default.a,PrivacyLinkAndModal:external_kolibriCoreAppGlobal_coreVue_components_PrivacyLinkAndModal_default.a},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],props:{isFinalStep:{type:Boolean,default:!1},uniqueUsernameValidator:{type:Function,required:!1},hidePrivacyLink:{type:Boolean,default:!1}},data:function(){var superuser=this.$store.state.onboardingData.superuser;return{fullName:superuser.full_name,fullNameValid:!1,username:superuser.username,usernameValid:!1,password:superuser.password,passwordValid:!1,formSubmitted:!1}},computed:{formIsValid:function(){return every_default()([this.usernameValid,this.fullNameValid,this.passwordValid])},submitText:function(){return this.isFinalStep?this.coreString("finishAction"):this.coreString("continueAction")}},methods:{handleSubmit:function(){var this$1=this;if(!this.$refs.fullNameTextbox)return this.$emit("click_next");this.formSubmitted=!0,this.$nextTick().then((function(){this$1.formIsValid?(this$1.$store.commit("SET_SUPERUSER_CREDENTIALS",{full_name:this$1.fullName,username:this$1.username,password:this$1.password}),this$1.$emit("click_next",{full_name:this$1.fullName,username:this$1.username,password:this$1.password})):this$1.focusOnInvalidField()}))},focusOnInvalidField:function(){var this$1=this;this.$nextTick().then((function(){this$1.fullNameValid?this$1.usernameValid?this$1.passwordValid||this$1.$refs.passwordTextbox.focus():this$1.$refs.usernameTextbox.focus():this$1.$refs.fullNameTextbox.focus()}))}},$trs:{adminAccountCreationHeader:"Create super admin account",adminAccountCreationDescription:"This account allows you to manage the facility, resources, and user accounts on this device",rememberThisAccountInformation:"Important: please remember this account information. Write it down if needed"}},SuperuserCredentialsForm=(__webpack_require__(192),Object(componentNormalizer.a)(onboarding_forms_SuperuserCredentialsFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.$attrs.header||_vm.$tr("adminAccountCreationHeader"),description:_vm.$attrs.description||_vm.$tr("adminAccountCreationDescription"),submitText:_vm.submitText},on:{submit:_vm.handleSubmit}},[_vm._t("aboveform"),_vm._t("form",[_c("FullNameTextbox",{ref:"fullNameTextbox",attrs:{value:_vm.fullName,isValid:_vm.fullNameValid,shouldValidate:_vm.formSubmitted,autofocus:!0,autocomplete:"name"},on:{"update:value":function($event){_vm.fullName=$event},"update:isValid":function($event){_vm.fullNameValid=$event},"update:is-valid":function($event){_vm.fullNameValid=$event}}}),_c("UsernameTextbox",{ref:"usernameTextbox",attrs:{value:_vm.username,isValid:_vm.usernameValid,shouldValidate:_vm.formSubmitted,isUniqueValidator:_vm.uniqueUsernameValidator},on:{"update:value":function($event){_vm.username=$event},"update:isValid":function($event){_vm.usernameValid=$event},"update:is-valid":function($event){_vm.usernameValid=$event}}}),_c("PasswordTextbox",{ref:"passwordTextbox",attrs:{value:_vm.password,isValid:_vm.passwordValid,shouldValidate:_vm.formSubmitted,autocomplete:"new-password"},on:{"update:value":function($event){_vm.password=$event},"update:isValid":function($event){_vm.passwordValid=$event},"update:is-valid":function($event){_vm.passwordValid=$event}}}),_vm.hidePrivacyLink?_vm._e():_c("PrivacyLinkAndModal"),_c("div",{staticClass:"reminder",attrs:{slot:"footer"},slot:"footer"},[_c("div",{staticClass:"icon"},[_c("svg",{attrs:{role:"presentation",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[_c("path",{attrs:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])]),_c("p",{staticClass:"text"},[_vm._v("\n        "+_vm._s(_vm.$tr("rememberThisAccountInformation"))+"\n      ")])])])],2)}),[],!1,null,"749af6a9",null).exports),views_PersonalSetupvue_type_script_lang_js_={name:"PersonalSetup",components:{ProgressToolbar:ProgressToolbar,SuperuserCredentialsForm:SuperuserCredentialsForm},mixins:[commonSetupElements],methods:{goToLastStep:function(){this.$router.push({name:"GETTING_STARTED"})},finalizeOnboardingData:function(){this.$store.dispatch("setPersonalUsageDefaults");var ref=this.$store.state.onboardingData.superuser,full_name=ref.full_name,username=ref.username,password=ref.password;if(!every_default()([full_name,username,password]))return this.$refs.credentials.focusOnInvalidField();this.$store.dispatch("provisionDevice")}},$trs:{adminAccountCreationDescriptionPersonal:{message:"This account allows you to manage all content and user accounts on this device",context:"Alternative description for SuperuserCredentialsForm when doing a personal setup"}}},PersonalSetup=(__webpack_require__(193),Object(componentNormalizer.a)(views_PersonalSetupvue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",[_c("ProgressToolbar",{attrs:{removeNavIcon:!1},on:{click_back:this.goToLastStep}}),_c("div",{staticClass:"main"},[_c("KPageContainer",[_c("SuperuserCredentialsForm",{ref:"credentials",attrs:{isFinalStep:!0,hidePrivacyLink:!0,description:this.$tr("adminAccountCreationDescriptionPersonal")},on:{click_next:this.finalizeOnboardingData}})],1)],1)],1)}),[],!1,null,"59bf5db6",null).exports),onboarding_forms_FacilityNameTextboxvue_type_script_lang_js_={name:"FacilityNameTextbox",data:function(){return{facilityName:this.$store.state.onboardingData.facility.name,fieldVisited:!1}},computed:{facilityNameErrorMessage:function(){return""===this.facilityName?this.$tr("facilityNameFieldEmptyErrorMessage"):this.facilityName.length>100?this.$tr("facilityNameFieldMaxLengthReached"):""},facilityNameIsInvalid:function(){return this.fieldVisited&&Boolean(this.facilityNameErrorMessage)}},methods:{validateFacilityName:function(){this.fieldVisited=!0},focus:function(){this.$refs.facilityName&&this.$refs.facilityName.focus()}},$trs:{facilityNameFieldLabel:"Facility name",facilityNameFieldEmptyErrorMessage:"Facility cannot be empty",facilityNameFieldMaxLengthReached:"Facility name cannot be more than 50 characters"}},onboarding_forms_FacilityPermissionsFormvue_type_script_lang_js_={name:"FacilityPermissionsForm",components:{FacilityNameTextbox:Object(componentNormalizer.a)(onboarding_forms_FacilityNameTextboxvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("KTextbox",{ref:"facilityName",attrs:{invalid:_vm.facilityNameIsInvalid,invalidText:_vm.facilityNameErrorMessage,label:_vm.$tr("facilityNameFieldLabel"),maxlength:50},on:{blur:_vm.validateFacilityName},model:{value:_vm.facilityName,callback:function($$v){_vm.facilityName=$$v},expression:"facilityName"}})],1)}),[],!1,null,"88d5597c",null).exports,OnboardingForm:OnboardingForm},data:function(){return{selected:this.$store.state.onboardingData.preset||Presets.NONFORMAL,Presets:Presets}},computed:{formalIsSelected:function(){return this.selected===Presets.FORMAL},nonformalIsSelected:function(){return this.selected===Presets.NONFORMAL},submittedFacilityName:function(){return this.nonformalIsSelected?this.$refs["facility-name-nonformal"].facilityName:this.formalIsSelected?this.$refs["facility-name-formal"].facilityName:""},formIsValid:function(){return""!==this.submittedFacilityName}},watch:{selected:function(){var this$1=this;return this.$nextTick().then((function(){this$1.focusOnTextbox()}))}},mounted:function(){this.focusOnTextbox()},methods:{focusOnTextbox:function(){return this.nonformalIsSelected?this.$refs["facility-name-nonformal"].focus():this.formalIsSelected?this.$refs["facility-name-formal"].focus():void 0},handleSubmit:function(){this.formIsValid?(this.$store.commit("SET_FACILITY_NAME",this.submittedFacilityName),this.formalIsSelected?this.$store.dispatch("setFormalUsageDefaults"):this.$store.dispatch("setNonformalUsageDefaults"),this.$emit("click_next")):this.focusOnTextbox()}},$trs:{learningEnvironmentHeader:{message:"What kind of learning environment is your facility?",context:"Page title"},facilityPermissionsSetupFormDescription:"A facility is the location where you are installing Kolibri, such as a school, training center, or a home.",formalLabel:{message:"Formal",context:"Label for the radio button option in the facility setup"},formalDescription:{message:"Schools and other formal learning contexts",context:"Option description text"},nonFormalLabel:{message:"Non-formal",context:"Label for the radio button option in the facility setup"},nonFormalDescription:{message:"Libraries, orphanages, correctional facilities, youth centers, computer labs, and other non-formal learning contexts",context:"Option description text"}}},FacilityPermissionsForm=(__webpack_require__(194),Object(componentNormalizer.a)(onboarding_forms_FacilityPermissionsFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("OnboardingForm",{attrs:{header:_vm.$tr("learningEnvironmentHeader"),description:_vm.$tr("facilityPermissionsSetupFormDescription")},on:{submit:_vm.handleSubmit}},[_c("KRadioButton",{ref:"first-button",staticClass:"permission-preset-radio-button",attrs:{value:_vm.Presets.NONFORMAL,label:_vm.$tr("nonFormalLabel"),description:_vm.$tr("nonFormalDescription")},model:{value:_vm.selected,callback:function($$v){_vm.selected=$$v},expression:"selected"}}),_c("FacilityNameTextbox",{directives:[{name:"show",rawName:"v-show",value:_vm.nonformalIsSelected,expression:"nonformalIsSelected"}],ref:"facility-name-nonformal",staticClass:"facility-name-form"}),_c("KRadioButton",{staticClass:"permission-preset-radio-button",attrs:{value:_vm.Presets.FORMAL,label:_vm.$tr("formalLabel"),description:_vm.$tr("formalDescription")},model:{value:_vm.selected,callback:function($$v){_vm.selected=$$v},expression:"selected"}}),_c("FacilityNameTextbox",{directives:[{name:"show",rawName:"v-show",value:_vm.formalIsSelected,expression:"formalIsSelected"}],ref:"facility-name-formal",staticClass:"facility-name-form"})],1)],1)}),[],!1,null,"5c834644",null).exports),external_kolibriCoreAppGlobal_coreVue_components_CoreInfoIcon_=__webpack_require__(87),onboarding_forms_YesNoFormvue_type_script_lang_js_={name:"YesNoForm",components:{CoreInfoIcon:__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_CoreInfoIcon_).a,OnboardingForm:OnboardingForm},props:{yesOptionLabel:{type:String,default:function(){return this.$tr("yesOptionLabel")}},noOptionLabel:{type:String,required:!0},noOptionTooltip:{type:String},headerText:{type:String,required:!0},description:{type:String},submitText:{type:String,required:!1},settingIsEnabled:{type:Boolean}},data:function(){return void 0===this.settingIsEnabled?{setting:!0}:{setting:this.settingIsEnabled}},mounted:function(){this.setting?this.$refs.yesRadio.focus():this.$refs.noRadio.focus()},methods:{emitSetting:function(){return this.$emit("submit",this.setting)}},$trs:{details:"You can change this in your facility settings later",yesOptionLabel:"Yes"}},YesNoForm=(__webpack_require__(195),Object(componentNormalizer.a)(onboarding_forms_YesNoFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.headerText,submitText:_vm.submitText,description:_vm.description},on:{submit:_vm.emitSetting}},[_c("KRadioButton",{ref:"yesRadio",attrs:{label:_vm.yesOptionLabel,value:!0},model:{value:_vm.setting,callback:function($$v){_vm.setting=$$v},expression:"setting"}}),_c("KRadioButton",{ref:"noRadio",attrs:{label:_vm.noOptionLabel,value:!1},model:{value:_vm.setting,callback:function($$v){_vm.setting=$$v},expression:"setting"}},[_vm.noOptionTooltip?_c("CoreInfoIcon",{staticClass:"info-icon",attrs:{iconAriaLabel:_vm.noOptionLabel,tooltipText:_vm.noOptionTooltip}}):_vm._e()],1),_c("p",{attrs:{slot:"footer"},slot:"footer"},[_vm._v("\n    "+_vm._s(_vm.$tr("details"))+"\n  ")])],1)}),[],!1,null,"4ab775fc",null).exports),onboarding_forms_GuestAccessFormvue_type_script_lang_js_={name:"GuestAccessForm",components:{YesNoForm:YesNoForm},data:function(){return{settingIsEnabled:this.$store.state.onboardingData.allow_guest_access}},methods:{handleSubmit:function(setting){this.$store.commit("SET_ALLOW_GUEST_ACCESS",setting),this.$emit("click_next")}},$trs:{description:"This allows anyone to view resources on Kolibri without needing to make an account",header:"Enable guest access?",noOptionLabel:"No. Users must have an account to view resources on Kolibri"}},GuestAccessForm=Object(componentNormalizer.a)(onboarding_forms_GuestAccessFormvue_type_script_lang_js_,(function(){var _h=this.$createElement;return(this._self._c||_h)("YesNoForm",{attrs:{noOptionLabel:this.$tr("noOptionLabel"),settingIsEnabled:this.settingIsEnabled,description:this.$tr("description"),headerText:this.$tr("header")},on:{submit:this.handleSubmit}})}),[],!1,null,"19d6d2f6",null).exports,onboarding_forms_CreateLearnerAccountFormvue_type_script_lang_js_={name:"CreateLearnerAccountForm",components:{YesNoForm:YesNoForm},data:function(){return{settingIsEnabled:this.$store.state.onboardingData.settings.learner_can_sign_up}},methods:{handleSubmit:function(setting){this.$store.commit("SET_LEARNER_CAN_SIGN_UP",setting),this.$emit("click_next")}},$trs:{header:"Allow anyone to create their own learner account?",noOptionLabel:"No. Admins must create all accounts"}},CreateLearnerAccountForm=Object(componentNormalizer.a)(onboarding_forms_CreateLearnerAccountFormvue_type_script_lang_js_,(function(){var _h=this.$createElement;return(this._self._c||_h)("YesNoForm",{attrs:{noOptionLabel:this.$tr("noOptionLabel"),settingIsEnabled:this.settingIsEnabled,headerText:this.$tr("header")},on:{submit:this.handleSubmit}})}),[],!1,null,"1872eb20",null).exports,onboarding_forms_RequirePasswordForLearnersFormvue_type_script_lang_js_={name:"RequirePasswordForLearnersForm",components:{YesNoForm:YesNoForm},data:function(){return{settingIsEnabled:!this.$store.state.onboardingData.settings.learner_can_login_with_no_password}},methods:{handleSubmit:function(setting){this.$store.commit("SET_LEARNER_CAN_LOGIN_WITH_NO_PASSWORD",!setting),this.$emit("click_next")}},$trs:{header:"Enable passwords on learner accounts?",noOptionLabel:"No. Learner accounts can sign in with just a username",noOptionTooltip:"Helpful for younger learners or when you are not concerned about account security"}},RequirePasswordForLearnersForm=Object(componentNormalizer.a)(onboarding_forms_RequirePasswordForLearnersFormvue_type_script_lang_js_,(function(){var _h=this.$createElement;return(this._self._c||_h)("YesNoForm",{attrs:{noOptionLabel:this.$tr("noOptionLabel"),noOptionTooltip:this.$tr("noOptionTooltip"),settingIsEnabled:this.settingIsEnabled,headerText:this.$tr("header")},on:{submit:this.handleSubmit}})}),[],!1,null,"f58d9bba",null).exports,external_kolibriCoreAppGlobal_coreVue_components_PrivacyInfoModal_=__webpack_require__(88),onboarding_forms_PersonalDataConsentFormvue_type_script_lang_js_={name:"PersonalDataConsentForm",components:{PrivacyInfoModal:__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_components_PrivacyInfoModal_).a,OnboardingForm:OnboardingForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],data:function(){return{showModal:!1}},mounted:function(){this.focusOnModalButton()},methods:{closeModal:function(){this.focusOnModalButton(),this.showModal=!1},focusOnModalButton:function(){var this$1=this;this.$nextTick().then((function(){var modalButton=this$1.$refs.modalButton;modalButton.$refs.button&&setTimeout((function(){modalButton.$refs.button.focus()}),200)}))},handleSubmit:function(){this.$emit("click_next")}},$trs:{description:"If you are setting up Kolibri to be used by other users, you or someone you delegate will be responsible for protecting and managing the user accounts and personal information stored on this device.",header:"Responsibilities as an administrator"}},PersonalDataConsentForm=Object(componentNormalizer.a)(onboarding_forms_PersonalDataConsentFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("OnboardingForm",{attrs:{header:_vm.$tr("header"),description:_vm.$tr("description"),submitText:_vm.coreString("finishAction")},on:{submit:_vm.handleSubmit}},[_c("KButton",{ref:"modalButton",attrs:{text:_vm.coreString("usageAndPrivacyLabel"),appearance:"basic-link"},on:{click:function($event){_vm.showModal=!0}}})],1),_vm.showModal?_c("PrivacyInfoModal",{attrs:{hideUsersSection:""},on:{cancel:_vm.closeModal,submit:_vm.closeModal}}):_vm._e()],1)}),[],!1,null,"31df0b4c",null).exports,stepToComponentMap={1:FacilityPermissionsForm,2:GuestAccessForm,3:CreateLearnerAccountForm,4:RequirePasswordForLearnersForm,5:SuperuserCredentialsForm,6:PersonalDataConsentForm},views_CreateFacilitySetupvue_type_script_lang_js_={name:"CreateFacilitySetup",components:{ProgressToolbar:ProgressToolbar},mixins:[commonSetupElements],computed:{currentComponent:function(){var step=this.$route.params.step;return stepToComponentMap[step]},currentStep:function(){return Number(this.$route.params.step)},currentTitle:function(){return this.$tr("newFacilityStepTitle",{step:this.currentStep,total:6})}},methods:{goToNextStep:function(){this.currentStep<6?this.$router.push({params:{step:this.currentStep+1}}):6===this.currentStep&&this.finalizeOnboardingData()},goToLastStep:function(){this.currentStep>1?this.$router.push({params:{step:this.currentStep-1}}):1===this.currentStep&&this.goToSetupMethodPage()},finalizeOnboardingData:function(){this.$store.dispatch("provisionDevice")}},$trs:{newFacilityStepTitle:{message:"New facility - step {step, number} of {total, number}",context:"Title that goes on top of the screen to indicate the current step"}}},CreateFacilitySetup=(__webpack_require__(196),Object(componentNormalizer.a)(views_CreateFacilitySetupvue_type_script_lang_js_,(function(){var _h=this.$createElement,_c=this._self._c||_h;return _c("div",[_c("ProgressToolbar",{attrs:{removeNavIcon:!1,title:this.currentTitle},on:{click_back:this.goToLastStep}}),_c("div",{staticClass:"main"},[_c("KPageContainer",[_c(this.currentComponent,{tag:"component",on:{click_next:this.goToNextStep}})],1)],1)],1)}),[],!1,null,"7ed9802d",null).exports),isString=__webpack_require__(47),isString_default=__webpack_require__.n(isString),importFacility_SelectFacilityFormvue_type_script_lang_js_={name:"SelectFacilityForm",components:{FacilityAdminCredentialsForm:external_kolibriCoreAppGlobal_coreVue_componentSets_sync_.FacilityAdminCredentialsForm,RadioButtonGroup:external_kolibriCoreAppGlobal_coreVue_componentSets_sync_.RadioButtonGroup,OnboardingForm:OnboardingForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a,external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default.a],props:{device:{type:Object,required:!0,validator:function(val){return isString_default()(val.name)&&isString_default()(val.id)&&isString_default()(val.baseurl)}}},data:function(){return{selectedFacilityId:"",facilities:[],shouldValidate:!1,formDisabled:!1}},computed:{singleFacility:function(){return 1===this.facilities.length},header:function(){return this.singleFacility?this.getCommonSyncString("importFacilityAction"):this.getCommonSyncString("selectFacilityTitle")},formDescription:function(){return this.device.name?this.$tr("commaSeparatedPair",{first:this.formatNameAndId(this.device.name,this.device.id),second:this.device.baseurl}):""},selectedFacility:function(){var this$1=this;return this.facilities.find((function(f){return f.id===this$1.selectedFacilityId}))}},beforeMount:function(){var this$1=this;this.fetchNetworkLocationFacilities(this.$route.query.device_id).then((function(data){this$1.facilities=[].concat(data.facilities),this$1.$emit("update:device",{name:data.device_name,id:data.device_id,baseurl:data.device_address}),this$1.singleFacility&&(this$1.selectedFacilityId=this$1.facilities[0].id)})).catch((function(error){this$1.$store.dispatch("showError",error)}))},methods:{handleCredentialsSubmit:function(){var this$1=this;this.formDisabled=!0,this.callSubmitCredentials().then((function(data){data?(this$1.$emit("update:facility",{name:this$1.selectedFacility.name,id:this$1.selectedFacility.id,username:data.username,password:data.password}),this$1.$emit("click_next")):this$1.formDisabled=!1}))},callSubmitCredentials:function(){var $credentialsForm=this.$refs.credentialsForm;return $credentialsForm?$credentialsForm.startImport().then((function(importStarted){return!!importStarted&&{username:$credentialsForm.username,password:$credentialsForm.password}})):Promise.resolve(!1)}},$trs:{commaSeparatedPair:"{first}, {second}"}},SelectFacilityForm=(__webpack_require__(197),Object(componentNormalizer.a)(importFacility_SelectFacilityFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.header,description:_vm.formDescription,disabled:""===_vm.selectedFacilityId||_vm.formDisabled},on:{submit:_vm.handleCredentialsSubmit}},[_vm.singleFacility?[_c("FacilityAdminCredentialsForm",{ref:"credentialsForm",attrs:{facility:_vm.facilities[0],device:_vm.device,singleFacility:!0,shouldValidate:_vm.shouldValidate}})]:[_c("RadioButtonGroup",{attrs:{items:_vm.facilities,currentValue:_vm.selectedFacilityId,itemLabel:function(x){return _vm.formatNameAndId(x.name,x.id)},itemValue:function(x){return x.id},disabled:_vm.formDisabled},on:{"update:currentValue":function($event){_vm.selectedFacilityId=$event},"update:current-value":function($event){_vm.selectedFacilityId=$event}},scopedSlots:_vm._u([{key:"underbutton",fn:function(ref){var selected=ref.selected;return[_vm.selectedFacilityId===selected.id?_c("FacilityAdminCredentialsForm",{ref:"credentialsForm",attrs:{facility:selected,device:_vm.device,shouldValidate:_vm.shouldValidate,disabled:_vm.formDisabled}}):_vm._e()]}}])})]],2)}),[],!1,null,"e4142b04",null).exports),importFacility_SelectSuperAdminAccountFormvue_type_script_lang_js_={name:"SelectSuperAdminAccountForm",components:{PasswordTextbox:external_kolibriCoreAppGlobal_coreVue_components_PasswordTextbox_default.a,SuperuserCredentialsForm:SuperuserCredentialsForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],props:{facility:{type:Object,required:!0}},data:function(){return{selected:{},password:"",passwordValid:!1,shouldValidate:!1,loading:!0,error:!1,facilityAdmins:[]}},computed:{importedUserIsSelected:function(){return"CREATE_NEW_SUPER_ADMIN"!==this.selected.value},dropdownOptions:function(){return this.facilityAdmins.map((function(admin){return{label:admin.username,value:admin.id}})).concat([{label:this.$tr("createSuperAdminOption"),value:"CREATE_NEW_SUPER_ADMIN"}])}},watch:{selected:function(newVal){newVal.label===this.facility.username&&this.setSavedAdminPassword(),this.resetFormAndRefocus()}},beforeMount:function(){this.fetchFacilityAdmins()},methods:{uniqueUsernameValidator:function(username){return!this.facilityAdmins.find((function(admin){return admin.username===username}))},setSavedAdminPassword:function(){this.password=this.facility.password},fetchFacilityAdmins:function(){var this$1=this;return FacilityImportResource.facilityadmins().then((function(admins){this$1.facilityAdmins=[].concat(admins);var superuserMatch=this$1.dropdownOptions.find((function(ref){return ref.label===this$1.facility.username}));superuserMatch?(this$1.selected=superuserMatch,this$1.setSavedAdminPassword()):(this$1.selected=this$1.dropdownOptions[0],this$1.password=""),this$1.$nextTick().then((function(){this$1.resetFormAndRefocus()})),this$1.loading=!1})).catch((function(error){this$1.$store.dispatch("handleApiError",error)}))},resetFormAndRefocus:function(){this.shouldValidate=!1,this.$refs.password&&this.selected.label!==this.facility.username&&this.$refs.password.resetAndFocus()},handleClickNextImportedUser:function(){var this$1=this;if(this.error=!1,this.passwordValid)return FacilityImportResource.grantsuperuserpermissions({user_id:this.selected.value,password:this.password}).then((function(){this$1.updateSuperuserAndClickNext(this$1.selected.label,this$1.password)})).catch((function(){this$1.error=!0}));this.$refs.password.focus()},handleClickNextNewUser:function(data){var this$1=this;return FacilityImportResource.createsuperuser(data).then((function(){this$1.updateSuperuserAndClickNext(data.username,data.password)})).catch((function(){this$1.error=!0}))},updateSuperuserAndClickNext:function(username,password){this.$emit("update:superuser",{username:username,password:password}),this.$emit("click_next")},handleClickNext:function(data){this.shouldValidate=!0,this.importedUserIsSelected?this.handleClickNextImportedUser():this.handleClickNextNewUser(data)}},$trs:{header:{message:"Select super admin account",context:"Page title,"},description:{message:"This account allows you to manage all facilities, content, and user accounts on this device.",context:"Explanation of what the super admin account is used for on device"},chooseAdminPrompt:{message:"Choose an admin from '{facility}' or create a new super admin.",context:"Prompt that goes above a select input of options for admins"},enterPasswordPrompt:{message:"Enter the password for '{username}'",context:"Prompt that goes above the password input"},createSuperAdminOption:{message:"Create new super admin",context:"Option in a select input"},accountFacilityExplanation:{message:"This account will be associated with the facility '{facility}'",context:"Explanation that goes above the new user form"}}},SelectSuperAdminAccountForm=(__webpack_require__(198),Object(componentNormalizer.a)(importFacility_SelectSuperAdminAccountFormvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _vm.loading?_vm._e():_c("SuperuserCredentialsForm",{attrs:{header:_vm.$tr("header"),description:_vm.$tr("description"),uniqueUsernameValidator:_vm.uniqueUsernameValidator},on:{click_next:_vm.handleClickNext},scopedSlots:_vm._u([{key:"aboveform",fn:function(){return[_vm.error?_c("p",{staticClass:"error"},[_vm._v("\n      "+_vm._s(_vm.coreString("invalidCredentialsError"))+"\n    ")]):_vm._e(),_c("p",[_vm._v("\n      "+_vm._s(_vm.$tr("chooseAdminPrompt",{facility:_vm.facility.name}))+"\n    ")]),_c("KSelect",{staticClass:"select",attrs:{label:_vm.coreString("superAdminLabel"),options:_vm.dropdownOptions},model:{value:_vm.selected,callback:function($$v){_vm.selected=$$v},expression:"selected"}}),_vm.importedUserIsSelected?_vm._e():_c("p",[_vm._v("\n      "+_vm._s(_vm.$tr("accountFacilityExplanation",{facility:_vm.facility.name}))+"\n    ")])]},proxy:!0},_vm.importedUserIsSelected?{key:"form",fn:function(){return[_c("p",[_vm._v("\n      "+_vm._s(_vm.$tr("enterPasswordPrompt",{username:_vm.selected.label}))+"\n    ")]),_c("PasswordTextbox",{key:"altpw",ref:"password",attrs:{value:_vm.password,isValid:_vm.passwordValid,shouldValidate:_vm.shouldValidate,showConfirmationInput:!1,autofocus:!0,autocomplete:"password"},on:{"update:value":function($event){_vm.password=$event},"update:isValid":function($event){_vm.passwordValid=$event},"update:is-valid":function($event){_vm.passwordValid=$event},"update:shouldValidate":function($event){_vm.shouldValidate=$event},"update:should-validate":function($event){_vm.shouldValidate=$event}}})]},proxy:!0}:null],null,!0)})}),[],!1,null,"51dcb364",null).exports),external_kolibriCoreAppGlobal_coreVue_mixins_commonTaskStrings_=__webpack_require__(45),external_kolibriCoreAppGlobal_coreVue_mixins_commonTaskStrings_default=__webpack_require__.n(external_kolibriCoreAppGlobal_coreVue_mixins_commonTaskStrings_),external_kolibriCoreAppGlobal_utils_bytesForHumans_=__webpack_require__(57),external_kolibriCoreAppGlobal_utils_bytesForHumans_default=__webpack_require__.n(external_kolibriCoreAppGlobal_utils_bytesForHumans_),PageNames_MANAGE_CONTENT_PAGE="MANAGE_CONTENT_PAGE",PageNames_MANAGE_PERMISSIONS_PAGE="MANAGE_PERMISSIONS_PAGE",PageNames_USER_PERMISSIONS_PAGE="USER_PERMISSIONS_PAGE",PageNames_DEVICE_INFO_PAGE="DEVICE_INFO_PAGE",TaskTypes_SYNCDATAPORTAL="SYNCDATAPORTAL",TaskTypes_SYNCPEERFULL="SYNCPEER/FULL",TaskTypes_SYNCPEERPULL="SYNCPEER/PULL",TaskTypes_DELETEFACILITY="DELETEFACILITY",TaskStatuses=Object.freeze({IN_PROGRESS:"INPROGRESS",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",RUNNING:"RUNNING",QUEUED:"QUEUED",SCHEDULED:"SCHEDULED",CANCELED:"CANCELED",CANCELING:"CANCELING"});function taskIsClearable(task){return[TaskStatuses.COMPLETED,TaskStatuses.CANCELED,TaskStatuses.FAILED].includes(task.status)}var pageNameToModuleMap={};pageNameToModuleMap[PageNames_MANAGE_CONTENT_PAGE]="manageContent",pageNameToModuleMap[PageNames_MANAGE_PERMISSIONS_PAGE]="managePermissions",pageNameToModuleMap[PageNames_USER_PERMISSIONS_PAGE]="userPermissions",pageNameToModuleMap[PageNames_DEVICE_INFO_PAGE]="deviceInfo";var syncTaskUtils_obj,obj$1,SyncTaskStatuses_SESSION_CREATION="SESSION_CREATION",SyncTaskStatuses_REMOTE_QUEUING="REMOTE_QUEUING",SyncTaskStatuses_PULLING="PULLING",SyncTaskStatuses_LOCAL_DEQUEUING="LOCAL_DEQUEUING",SyncTaskStatuses_LOCAL_QUEUING="LOCAL_QUEUING",SyncTaskStatuses_PUSHING="PUSHING",SyncTaskStatuses_REMOTE_DEQUEUING="REMOTE_DEQUEUING",getTaskString=external_kolibriCoreAppGlobal_coreVue_mixins_commonTaskStrings_default.a.methods.getTaskString,coreString=external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a.methods.coreString,syncTaskStatusToStepMap={};syncTaskStatusToStepMap[SyncTaskStatuses_SESSION_CREATION]=1,syncTaskStatusToStepMap[SyncTaskStatuses_REMOTE_QUEUING]=2,syncTaskStatusToStepMap[SyncTaskStatuses_PULLING]=3,syncTaskStatusToStepMap[SyncTaskStatuses_LOCAL_DEQUEUING]=4,syncTaskStatusToStepMap[SyncTaskStatuses_LOCAL_QUEUING]=5,syncTaskStatusToStepMap[SyncTaskStatuses_PUSHING]=6,syncTaskStatusToStepMap[SyncTaskStatuses_REMOTE_DEQUEUING]=7;var genericStatusToDescriptionMap={};genericStatusToDescriptionMap[TaskStatuses.PENDING]=getTaskString("taskWaitingStatus"),genericStatusToDescriptionMap[TaskStatuses.QUEUED]=getTaskString("taskWaitingStatus"),genericStatusToDescriptionMap[TaskStatuses.COMPLETED]=getTaskString("taskFinishedStatus"),genericStatusToDescriptionMap[TaskStatuses.CANCELED]=getTaskString("taskCanceledStatus"),genericStatusToDescriptionMap[TaskStatuses.CANCELING]=getTaskString("taskCancelingStatus"),genericStatusToDescriptionMap[TaskStatuses.FAILED]=getTaskString("taskFailedStatus");var syncStatusToDescriptionMap=Object.assign({},genericStatusToDescriptionMap,((syncTaskUtils_obj={})[SyncTaskStatuses_SESSION_CREATION]=getTaskString("establishingConnectionStatus"),syncTaskUtils_obj[SyncTaskStatuses_REMOTE_QUEUING]=getTaskString("remotelyPreparingDataStatus"),syncTaskUtils_obj[SyncTaskStatuses_PULLING]=getTaskString("receivingDataStatus"),syncTaskUtils_obj[SyncTaskStatuses_LOCAL_DEQUEUING]=getTaskString("locallyIntegratingDataStatus"),syncTaskUtils_obj[SyncTaskStatuses_LOCAL_QUEUING]=getTaskString("locallyPreparingDataStatus"),syncTaskUtils_obj[SyncTaskStatuses_PUSHING]=getTaskString("sendingDataStatus"),syncTaskUtils_obj[SyncTaskStatuses_REMOTE_DEQUEUING]=getTaskString("remotelyIntegratingDataStatus"),syncTaskUtils_obj));function formatNameWithId(name,id){return coreString("nameWithIdInParens",{name:name,id:id.slice(0,4)})}function syncFacilityTaskDisplayInfo(task){var statusMsg,bytesTransferredMsg="",deviceNameMsg="",facilityName=formatNameWithId(task.facility_name,task.facility);task.type===TaskTypes_SYNCDATAPORTAL?deviceNameMsg="Kolibri Data Portal":task.device_name&&(deviceNameMsg=coreString("quotedPhrase",{phrase:formatNameWithId(task.device_name,task.device_id)}));var syncStep=syncTaskStatusToStepMap[task.sync_state],statusDescription=syncStatusToDescriptionMap[task.status]||syncStatusToDescriptionMap[task.sync_state]||getTaskString("taskUnknownStatus");statusMsg=task.status===TaskStatuses.COMPLETED?getTaskString("taskFinishedStatus"):syncStep?getTaskString("syncStepAndDescription",{step:syncStep,total:task.type===TaskTypes_SYNCPEERPULL?4:7,description:statusDescription}):statusDescription,task.status===TaskStatuses.COMPLETED&&(bytesTransferredMsg=getTaskString("syncBytesSentAndReceived",{bytesReceived:external_kolibriCoreAppGlobal_utils_bytesForHumans_default()(task.bytes_received),bytesSent:external_kolibriCoreAppGlobal_utils_bytesForHumans_default()(task.bytes_sent)}));var canClear=taskIsClearable(task);return{headingMsg:getTaskString("syncFacilityTaskLabel",{facilityName:facilityName}),statusMsg:statusMsg,startedByMsg:getTaskString("taskStartedByLabel",{username:task.started_by_username}),bytesTransferredMsg:bytesTransferredMsg,deviceNameMsg:deviceNameMsg,isRunning:Boolean(syncStep)&&!canClear,canClear:canClear,canCancel:!canClear&&task.cancellable,canRetry:task.status===TaskStatuses.FAILED}}var removeStatusToDescriptionMap=Object.assign({},genericStatusToDescriptionMap,((obj$1={})[TaskStatuses.RUNNING]=getTaskString("removingFacilityStatus"),obj$1));var FacilitiesPage_FacilityTaskPanelDetailsvue_type_script_lang_js_={name:"FacilityTaskPanelDetails",mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a,external_kolibriCoreAppGlobal_coreVue_mixins_responsiveWindowMixin_default.a,external_kolibriCoreAppGlobal_coreVue_mixins_commonTaskStrings_default.a],props:{task:{type:Object,required:!0},statusMsg:{type:String,required:!0},headingMsg:{type:String,required:!0},underHeadingMsg:{type:String,required:!1},underProgressMsg:{type:String,required:!1},showCircularLoader:{type:Boolean,default:!1},loaderType:{type:String,required:!1,validator:function(value){return"determinate"===value||"indeterminate"===value}},buttonSet:{type:String,required:!1,validator:function(value){return""===value||"clear"===value||"cancel"===value||"retry"===value}}},computed:{taskIsCompleted:function(){return this.task.status===TaskStatuses.COMPLETED},taskIsCanceling:function(){return this.task.status===TaskStatuses.CANCELING},taskIsCanceled:function(){return this.task.status===TaskStatuses.CANCELED},taskIsFailed:function(){return this.task.status===TaskStatuses.FAILED||this.taskIsCanceled},taskPercentage:function(){return this.task.percentage},startedByMsg:function(){return this.task.started_by_username?this.getTaskString("taskStartedByLabel",{username:this.task.started_by_username||this.getTaskString("unknownUsername")}):""},statusHidesLoader:function(){return this.task.status===TaskStatuses.PENDING||this.taskIsCompleted||this.taskIsCanceling||this.taskIsFailed}}},FacilityTaskPanelDetails=(__webpack_require__(199),Object(componentNormalizer.a)(FacilitiesPage_FacilityTaskPanelDetailsvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"task-panel",class:{"task-panel-sm":_vm.windowIsSmall}},[_c("div",{staticClass:"icon"},[_c("transition",{attrs:{mode:"out-in"}},[_vm.showCircularLoader||_vm.taskIsCanceling?_c("KCircularLoader",{attrs:{size:24,stroke:5}}):_vm.taskIsFailed?_c("KIcon",{style:{fill:_vm.$themeTokens.error},attrs:{icon:"helpNeeded"}}):_vm.taskIsCompleted?_c("KIcon",{style:{fill:_vm.$themeTokens.success},attrs:{icon:"done"}}):_c("KIcon",{style:{fill:_vm.$themeTokens.annotation},attrs:{icon:"inProgress"}})],1)],1),_c("div",{staticClass:"details"},[_c("p",{staticClass:"details-status",style:{color:_vm.$themeTokens.annotation}},[_vm._v("\n      "+_vm._s(_vm.statusMsg)+"\n    ")]),_vm.headingMsg?_c("h2",{staticClass:"details-description"},[_vm._v("\n      "+_vm._s(_vm.headingMsg)+"\n    ")]):_vm._e(),_vm.underHeadingMsg?_c("p",{staticClass:"fs0"},[_vm._v("\n      "+_vm._s(_vm.underHeadingMsg)+"\n    ")]):_vm._e(),_vm.loaderType&&!_vm.statusHidesLoader?_c("div",{staticClass:"details-progress-bar"},["determinate"===_vm.loaderType?[_c("KLinearLoader",{staticClass:"k-linear-loader",style:{backgroundColor:_vm.$themeTokens.fineLine},attrs:{type:"determinate",delay:!1,progress:100*_vm.task.percentage}}),_vm.taskPercentage?_c("span",{staticClass:"details-percentage"},[_vm._v("\n          "+_vm._s(_vm.$formatNumber(_vm.taskPercentage,{style:"percent"}))+"\n        ")]):_vm._e()]:"indeterminate"===_vm.loaderType?[_c("KLinearLoader",{staticClass:"k-linear-loader",style:{backgroundColor:_vm.$themeTokens.fineLine},attrs:{type:"indeterminate",delay:!1}})]:_vm._e()],2):_vm._e(),_vm.underProgressMsg?_c("p",{staticClass:"fs0"},[_vm._v("\n      "+_vm._s(_vm.underProgressMsg)+"\n    ")]):_vm._e(),_vm.startedByMsg?_c("p",{staticClass:"fs0",style:{color:_vm.$themeTokens.annotation}},[_vm._v("\n      "+_vm._s(_vm.startedByMsg)+"\n    ")]):_vm._e()]),_c("KButtonGroup",{staticClass:"nowrap",class:{"button-lift":Boolean(_vm.loaderType)}},["cancel"===_vm.buttonSet?_c("KButton",{attrs:{disabled:_vm.taskIsCanceling,text:_vm.coreString("cancelAction"),appearance:"flat-button"},on:{click:function($event){return _vm.$emit("cancel")}}}):_vm._e(),"clear"===_vm.buttonSet||"retry"===_vm.buttonSet?_c("KButton",{attrs:{text:_vm.coreString("clearAction"),appearance:"flat-button"},on:{click:function($event){return _vm.$emit("clear")}}}):_vm._e(),"retry"===_vm.buttonSet?_c("KButton",{attrs:{text:_vm.coreString("retryAction"),appearance:"raised-button",primary:""},on:{click:function($event){return _vm.$emit("retry")}}}):_vm._e()],1)],1)}),[],!1,null,"6e0ca715",null).exports),indeterminateSyncStatuses=[SyncTaskStatuses_SESSION_CREATION,SyncTaskStatuses_LOCAL_QUEUING,SyncTaskStatuses_LOCAL_DEQUEUING,SyncTaskStatuses_REMOTE_QUEUING,SyncTaskStatuses_REMOTE_DEQUEUING],FacilitiesPage_FacilityTaskPanelvue_type_script_lang_js_={name:"FacilityTaskPanel",components:{FacilityTaskPanelDetails:FacilityTaskPanelDetails},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a],props:{task:{type:Object,required:!0}},data:function(){return{}},computed:{isSyncTask:function(){return this.task.type===TaskTypes_SYNCDATAPORTAL||this.task.type===TaskTypes_SYNCPEERFULL},isDeleteTask:function(){return this.task.type===TaskTypes_DELETEFACILITY},isSetupImportTask:function(){return!this.task.started_by&&this.task.type===TaskTypes_SYNCPEERPULL},isImportTask:function(){return this.task.type===TaskTypes_SYNCPEERPULL},taskInfo:function(){return this.isSetupImportTask?(task=this.task,(info=syncFacilityTaskDisplayInfo(task)).bytesTransferredMsg="",info.headingMsg="",task.status===TaskStatuses.FAILED?(info.deviceNameMsg=getTaskString("importFailedStatus",{facilityName:task.facility_name}),info.statusMsg=getTaskString("taskFailedStatus"),info.isRunning=!1):task.status===TaskStatuses.COMPLETED?(info.deviceNameMsg=getTaskString("importSuccessStatus",{facilityName:task.facility_name}),info.statusMsg=getTaskString("taskFinishedStatus"),info.isRunning=!1):info.deviceNameMsg="",info.canRetry=!1,info.canClear=!1,info):this.isSyncTask||this.isImportTask?syncFacilityTaskDisplayInfo(this.task):this.isDeleteTask?function(task){var facilityName=formatNameWithId(task.facility_name,task.facility),statusDescription=removeStatusToDescriptionMap[task.status]||getTaskString("taskUnknownStatus");return{headingMsg:getTaskString("removeFacilityTaskLabel",{facilityName:facilityName}),statusMsg:statusDescription,startedByMsg:getTaskString("taskStartedByLabel",{username:task.started_by_username}),isRunning:"RUNNING"===task.status,canClear:taskIsClearable(task),canCancel:!taskIsClearable(task)&&"RUNNING"!==task.status,canRetry:task.status===TaskStatuses.FAILED}}(this.task):{};var task,info},loaderType:function(){var sync_state=this.task.sync_state;return void 0===sync_state&&(sync_state=""),indeterminateSyncStatuses.find((function(s){return s===sync_state}))?"indeterminate":"determinate"},statusMsg:function(){return this.taskInfo.statusMsg},headingMsg:function(){return this.taskInfo.headingMsg},underHeadingMsg:function(){return this.taskInfo.deviceNameMsg},underProgressMsg:function(){return this.taskInfo.bytesTransferredMsg},buttonSet:function(){return this.taskInfo.canCancel?"cancel":this.taskInfo.canClear?this.isImportTask?"clear":this.taskInfo.canRetry?"retry":"clear":""}},$trs:{}},importFacility_LoadingTaskPagevue_type_script_lang_js_={name:"LoadingTaskPage",components:{FacilityTaskPanel:Object(componentNormalizer.a)(FacilitiesPage_FacilityTaskPanelvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement;return(_vm._self._c||_h)("FacilityTaskPanelDetails",{attrs:{statusMsg:_vm.statusMsg,headingMsg:_vm.headingMsg,underHeadingMsg:_vm.underHeadingMsg,underProgressMsg:_vm.underProgressMsg,task:_vm.task,loaderType:_vm.loaderType,showCircularLoader:_vm.taskInfo.isRunning,buttonSet:_vm.buttonSet},on:{cancel:function($event){return _vm.$emit("click","cancel")},clear:function($event){return _vm.$emit("click","clear")},retry:function($event){return _vm.$emit("click","retry")}}})}),[],!1,null,"4dcecdbd",null).exports,OnboardingForm:OnboardingForm},mixins:[external_kolibriCoreAppGlobal_coreVue_mixins_commonCoreStrings_default.a,external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default.a],props:{facility:{type:Object,required:!0},device:{type:Object,required:!0}},data:function(){return{loadingTask:{}}},computed:{header:function(){return this.$tr("loadingFacilityTitle",{facility:this.facilityName})},facilityName:function(){return this.facility.name}},beforeMount:function(){this.pollTask()},methods:{pollTask:function(){var this$1=this;SetupTasksResource.fetchCollection({force:!0}).then((function(tasks){this$1.loadingTask=Object.assign({},tasks[0],{facility_name:this$1.facilityName})})),setTimeout((function(){this$1.pollTask()}),2e3)},retryImport:function(){var this$1=this;this.clearTasks().then((function(){return this$1.startPeerImportTask({facility_name:this$1.facilityName,facility:this$1.facility.id,baseurl:this$1.device.baseurl,username:this$1.facility.username,password:this$1.facility.password})})).catch((function(error){this$1.$store.dispatch("handleApiError",error)}))},cancelTask:function(){return SetupTasksResource.canceltask(this.loadingTask.id)},startOver:function(){this.$router.replace("/")},clearTasks:function(){return SetupTasksResource.cleartasks()},handleClickContinue:function(){this.clearTasks(),this.$emit("click_next")}},$trs:{loadingFacilityTitle:{message:"Loading '{facility}'",context:"Page title"}}},ImportFacilitySetupvue_type_script_lang_js_stepToComponentMap={1:SelectFacilityForm,2:Object(componentNormalizer.a)(importFacility_LoadingTaskPagevue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("OnboardingForm",{attrs:{header:_vm.header},scopedSlots:_vm._u([{key:"buttons",fn:function(){return["COMPLETED"===_vm.loadingTask.status?_c("KButton",{attrs:{primary:"",text:_vm.coreString("continueAction")},on:{click:_vm.handleClickContinue}}):"FAILED"===_vm.loadingTask.status?[_c("KButton",{attrs:{primary:"",text:_vm.coreString("retryAction")},on:{click:_vm.retryImport}}),_c("KButton",{attrs:{text:_vm.coreString("startOverAction"),appearance:"flat-button"},on:{click:_vm.startOver}})]:_c("span")]},proxy:!0}])},[_vm.loadingTask.status?_c("FacilityTaskPanel",{attrs:{task:_vm.loadingTask},on:{cancel:_vm.cancelTask}}):_vm._e()],1)}),[],!1,null,"db8d99d6",null).exports,3:SelectSuperAdminAccountForm,4:PersonalDataConsentForm},views_ImportFacilitySetupvue_type_script_lang_js_={name:"ImportFacilitySetup",components:{OnboardingForm:OnboardingForm,PersonalDataConsentForm:PersonalDataConsentForm,ProgressToolbar:ProgressToolbar},mixins:[commonSetupElements,external_kolibriCoreAppGlobal_coreVue_mixins_commonSyncElements_default.a],data:function(){return{device:{name:"",id:"",baseurl:""},facility:{name:"",id:"",username:"",password:""},superuser:{username:"",password:""}}},computed:{currentComponent:function(){var step=this.$route.params.step;return ImportFacilitySetupvue_type_script_lang_js_stepToComponentMap[step]},currentStep:function(){return Number(this.$route.params.step)},currentTitle:function(){return this.$tr("stepTitle",{step:this.currentStep,total:4})},removeNavIcon:function(){return this.currentStep>1}},beforeRouteUpdate:function(to,from,next){Number(from.params.step)>=2&&Number(to.params.step<=2)?window.history.forward():next()},methods:{goToNextStep:function(){this.currentStep<4?this.$router.push({params:{step:this.currentStep+1}}):4===this.currentStep&&this.finalizeOnboardingData()},goToLastStep:function(){this.currentStep>1?this.$router.push({params:{step:this.currentStep-1}}):1===this.currentStep&&this.goToSetupMethodPage()},finalizeOnboardingData:function(){this.$store.dispatch("provisionDeviceAfterImport",{username:this.superuser.username,password:this.superuser.password,facility:this.facility.id})}},$trs:{stepTitle:{message:"Import facility - {step, number} of {total, number}",context:"Title that goes on top of the screen to indicate the current step"}}},routes=(__webpack_require__(200),[{path:"/",component:UngroupedSetupSteps,children:[{path:"",name:"DEFAULT_LANGUAGE",component:DefaultLanguageForm},{path:"getting_started",name:"GETTING_STARTED",component:GettingStartedForm},{path:"getting_started_alt",name:"GETTING_STARTED_ALT",component:GettingStartedFormAlt},{path:"public_setup_method",name:"PUBLIC_SETUP_METHOD",component:SetupMethod},{path:"device_name",name:"DEVICE_NAME",component:DeviceNameForm}]},{name:"PERSONAL_SETUP",path:"/personal_setup",component:PersonalSetup},{name:"CREATE_FACILITY",path:"/create_facility/:step",component:CreateFacilitySetup},{name:"IMPORT_FACILITY",path:"/import_facility/:step",component:Object(componentNormalizer.a)(views_ImportFacilitySetupvue_type_script_lang_js_,(function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",[_c("ProgressToolbar",{attrs:{removeNavIcon:_vm.removeNavIcon,title:_vm.currentTitle},on:{click_back:_vm.goToLastStep}}),_c("div",{staticClass:"main"},[_c("KPageContainer",[_c(_vm.currentComponent,{tag:"component",attrs:{device:_vm.device,facility:_vm.facility,superuser:_vm.superuser},on:{"update:device":function($event){_vm.device=$event},"update:facility":function($event){_vm.facility=$event},"update:superuser":function($event){_vm.superuser=$event},click_next:_vm.goToNextStep}})],1)],1)],1)}),[],!1,null,"fe869806",null).exports}]),app_OnboardingApp=function(KolibriApp){function OnboardingApp(){KolibriApp.apply(this,arguments)}KolibriApp&&(OnboardingApp.__proto__=KolibriApp),OnboardingApp.prototype=Object.create(KolibriApp&&KolibriApp.prototype),OnboardingApp.prototype.constructor=OnboardingApp;var prototypeAccessors={RootVue:{configurable:!0},routes:{configurable:!0},pluginModule:{configurable:!0}};return prototypeAccessors.RootVue.get=function(){return SetupWizardIndex},prototypeAccessors.routes.get=function(){return routes},prototypeAccessors.pluginModule.get=function(){return pluginModule},OnboardingApp.prototype.ready=function(){return KolibriApp.prototype.ready.call(this).then((function(){external_kolibriCoreAppGlobal_heartbeat_default.a.stopPolling()}))},Object.defineProperties(OnboardingApp.prototype,prototypeAccessors),OnboardingApp}(__webpack_require__(89).a);__webpack_exports__.default=new app_OnboardingApp}]);
//# sourceMappingURL=kolibri.plugins.setup_wizard.app-0.14.3.js.map