import{CommandRegistry as e}from"../CommandRegistry.js";import{EventRegistry as t}from"../EventRegistry.js";import{OperationRegistry as a}from"../OperationRegistry.js";export var OfflineAreaStates;!function(e){e[e.AVAILABLE_TO_DOWNLOAD=0]="AVAILABLE_TO_DOWNLOAD",e[e.DOWNLOADING=1]="DOWNLOADING",e[e.DOWNLOADED=2]="DOWNLOADED",e[e.ACTIVE=4]="ACTIVE",e[e.UPDATING=8]="UPDATING",e[e.SUBMITTING_EDITS=16]="SUBMITTING_EDITS",e[e.DELETION_PENDING=32]="DELETION_PENDING",e[e.DELETION_IN_PROGRESS=64]="DELETION_IN_PROGRESS",e[e.DOWNLOAD_STARTING=128]="DOWNLOAD_STARTING",e[e.ACTIVATING=256]="ACTIVATING",e[e.DEACTIVATING=512]="DEACTIVATING",e[e.PROCESSING=1024]="PROCESSING"}(OfflineAreaStates||(OfflineAreaStates={}));export class OfflineCommands extends e{_prefix="offline";get cancelCreateArea(){return this._get("cancel-create-area")}get cancelDownload(){return this._get("cancel-download")}get deleteArea(){return this._get("delete-area")}get displayCreateArea(){return this._get("display-create-area")}}export class OfflineEvents extends t{_prefix="offline";get areaActivated(){return this._get("area-activated")}get areaActivating(){return this._get("area-activating")}get areaDeleted(){return this._get("area-deleted")}get areaDownloadStarted(){return this._get("area-download-started")}get areaDownloadCanceled(){return this._get("area-download-canceled")}get areaDownloadFailed(){return this._get("area-download-failed")}get areaDownloaded(){return this._get("area-downloaded")}get areaUpdateStarted(){return this._get("area-update-started")}get areaUpdated(){return this._get("area-updated")}get areaUpdateFailed(){return this._get("area-update-failed")}get areaEditsSubmitStarted(){return this._get("area-edits-submit-started")}get areaEditsSubmitted(){return this._get("area-edits-submitted")}get areaEditsSubmitFailed(){return this._get("area-edits-submit-failed")}get customAreaCreated(){return this._get("custom-area-created")}get customAreaDeleted(){return this._get("custom-area-deleted")}get userWentOnline(){return this._get("user-went-online")}}export class OfflineOperations extends a{_prefix="offline";get createArea(){return this._get("create-area")}get getAreas(){return this._get("get-areas")}get getCustomAreas(){return this._get("get-custom-areas")}get getEdits(){return this._get("get-edits")}get activateArea(){return this._get("activate-area")}get downloadArea(){return this._get("download-area")}get goOnline(){return this._get("go-online")}get checkForActiveArea(){return this._get("check-for-active-area")}get submitEdits(){return this._get("submit-edits")}get updateArea(){return this._get("update-area")}}