try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`8bee8037-dfdd-4f62-bcab-5df6719c4d24`,e._sentryDebugIdIdentifier=`sentry-dbid-8bee8037-dfdd-4f62-bcab-5df6719c4d24`)}catch{}import"./rolldown-runtime-eb2nym32.js";import"./entry.client-dr7r6s9a.js";var e=class{logger;constructor(e){this.logger=e}notifySignIn(e){try{let{ApplicationControl:t,ApplicationControlData:n,application:r}=tizen,i=`${r.getCurrentApplication().appInfo.packageId}.Service`,a=new t(`updateUserInfo`,null,null,null,[new n(`locale`,[e])]);tizen.application.launchAppControl(a,i,()=>this.logger.info(`BG service notified: ${i}`),e=>this.logger.error(`BG service notify failed: ${i} - ${e.message}`))}catch(e){this.logger.error(`notifySignIn failed`,e)}}clearUserData(){try{let{ApplicationControl:e,application:t}=tizen,n=`${t.getCurrentApplication().appInfo.packageId}.Service`,r=new e(`clearUserData`);tizen.application.launchAppControl(r,n,()=>this.logger.info(`BG service data cleared: ${n}`),e=>this.logger.error(`BG service clear failed: ${n} - ${e.message}`))}catch(e){this.logger.error(`clearUserData failed`,e)}}};export{e as TizenBackgroundServiceAdaptor};