define("local_treestudyplan/studyplan-editor-components",["exports","./simpleline","core/ajax","core/notification","core/str","./string-helper","./studyplan-processor","./debugger","./downloader"],(function(_exports,_simpleline,_ajax,_notification,_str,_stringHelper,_studyplanProcessor,_debugger,_downloader){function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}function_createForOfIteratorHelper(o,allowArrayLike){varit="undefined"!=typeofSymbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=function(o,minLen){if(!o)return;if("string"==typeofo)return_arrayLikeToArray(o,minLen);varn=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)returnArray.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return_arrayLikeToArray(o,minLen)}(o))||allowArrayLike&&o&&"number"==typeofo.length){it&&(o=it);vari=0,F=function(){};return{s:F,n:function(){returni>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(_e){throw_e},f:F}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}varerr,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){varstep=it.next();returnnormalCompletion=step.done,step},e:function(_e2){didErr=!0,err=_e2},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throwerr}}}}function_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(vari=0,arr2=newArray(len);i<len;i++)arr2[i]=arr[i];returnarr2}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void0,_notification=_interopRequireDefault(_notification),_debugger=_interopRequireDefault(_debugger);varSTUDYPLAN_EDITOR_FIELDS=["name","shortname","description","idnumber","context_id","aggregation","aggregation_config"],STUDYPLAN_EDITOR_PAGE_FIELDS=["context_id","periods","startdate","enddate"],PERIOD_EDITOR_FIELDS=["fullname","shortname","startdate","enddate"],datechanger_globals={default:!1,defaultchoice:!1,hidewarn:!1},_default2={STUDYPLAN_EDITOR_FIELDS:STUDYPLAN_EDITOR_FIELDS,install:function(Vue){vardebug=new_debugger.default("treestudyplan-editor");functionisVisible(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)}debug.enable();varItemEventBus=newVue,string_keys=(0,_stringHelper.load_stringkeys)({conditions:[{value:null,textkey:"condition_default"},{value:"ALL",textkey:"condition_all"},{value:"67",textkey:"condition_67"},{value:"50",textkey:"condition_50"},{value:"ANY",textkey:"condition_any"}]}),strings=(0,_stringHelper.load_strings)({studyplan_text:{studyline_editmode:"studyline_editmode",editmode_modules_hidden:"editmode_modules_hidden",studyline_add:"studyline_add",add$core:"add$core",edit$core:"edit$core",studyline_name:"studyline_name",studyline_name_ph:"studyline_name_ph",studyline_shortname:"studyline_shortname",studyline_shortname_ph:"studyline_shortname_ph",studyline_color:"studyline_color",associations:"associations",associated_cohorts:"associated_cohorts",associated_users:"associated_users",studyline_edit:"studyline_edit",studyplan_name:"studyplan_name",studyplan_name_ph:"studyplan_name_ph",studyplan_shortname:"studyplan_shortname",studyplan_shortname_ph:"studyplan_shortname_ph",studyplan_description:"studyplan_description",studyplan_description_ph:"studyplan_description_ph",studyplan_idnumber:"studyplan_idnumber",studyplan_idnumber_ph:"studyplan_idnumber_ph",studyplan_slots:"studyplan_slots",studyplan_startdate:"studyplan_startdate",studyplan_enddate:"studyplan_enddate"},studyplan_advanced:{advanced_tools:"advanced_tools",confirm_cancel:"confirm_cancel",confirm_ok:"confirm_ok",success$core:"success$core",error$core:"failed$core",advanced_converted:"advanced_converted",advanced_skipped:"advanced_skipped",advanced_failed:"advanced_failed",advanced_locked:"advanced_locked",advanced_multiple:"advanced_multiple",advanced_error:"advanced_error",advanced_t