import{r as registerInstance,h,H as Host}from"./index-ecdfb761.js";import{L as Logger,S as SozlukApi}from"./index-3bf9b308.js";import{I as InstanceStorage,a as AtamaApiDemo,D as DataApiDemo,K as KimlikApiDemo,T as TakvimApiDemo,U as UyeApiDemo}from"./UyeApiDemo-8998ba61.js";import"./data-model-88af49fc.js";import"./User-72c4643a.js";import"./kimlik-api-fddeac81.js";import"./apiBase-6015f41f.js";import"./data-transfer-field-2f305919.js";import"./BaseField-0b01dc2c.js";import"./filter-cbaa3d7d.js";import"./UserSettings-7e4170a7.js";import"./date-utils-49551969.js";import"./membership-b6639471.js";import"./table-config-d73a72ab.js";import"./FieldModelGenerator-378c8613.js";import"./reference-field-a5b414d1.js";import"./index-61dcd269.js";import"./FieldGenerator-3ae403b2.js";import"./date-1bc489bd.js";import"./index-4e451db4.js";import"./index-23baeeef.js";import"./index-09efdc01.js";import"./index-150b6a59.js";import"./string-3065a411.js";var khanguruUiTestWrapperCss="khanguru-ui-test-wrapper{display:block}";var KhanguruUiTestWrapper=function(){function i(i){var t=this;registerInstance(this,i);this.path="/";this.navigate=function(i){t.logger.infoGroup("navigate",{from:t.path,to:i.path});t.path=i.path}}i.prototype.componentWillLoad=function(){var i=this;var t=this,a=t.database,e=t.testKey;this.logger=new Logger(e).setLevel("debug");this.logger.infoGroup("componentWillLoad",{storageKey:this.storageKey});this.storage=new InstanceStorage(this.storageKey,this.logger);Object.entries(this.storageData||{}).map((function(t){var a=t[0],e=t[1];i.storage.save(a,e)}));this.apiAtama=new AtamaApiDemo(a,this.logger);this.apiData=new DataApiDemo(a,this.logger);this.apiKimlik=new KimlikApiDemo(a,this.storage,this.logger);this.apiTakvim=new TakvimApiDemo(a,this.storage,this.logger);this.apiUye=new UyeApiDemo(a,this.storage,this.logger);this.apiSozluk=new SozlukApi;this.path=this.initialPath};i.prototype.render=function(){return h(Host,null,h("dvn-app-root",{apiAtama:this.apiAtama,apiData:this.apiData,apiKimlik:this.apiKimlik,apiSozluk:this.apiSozluk,apiTakvim:this.apiTakvim,apiUye:this.apiUye,navigate:this.navigate,path:this.path,logger:this.logger,storage:this.storage}))};return i}();KhanguruUiTestWrapper.style=khanguruUiTestWrapperCss;export{KhanguruUiTestWrapper as khanguru_ui_test_wrapper};