// Module ID: 4382 // Function ID: 4383 // Name: displayMessage // Dependencies: [4383, 1233, 4375, 2] // Module 4382 (displayMessage) import set from "set" /* 2 */; import RPC_SCOPE_CONFIG from "RPC_SCOPE_CONFIG" /* 4383 */; const DispatchErrorCodes = RPC_SCOPE_CONFIG.DispatchErrorCodes; const result = set.fileFinishedImporting("errors/NativeDispatchError.tsx"); class NativeDispatchError { constructor(arg0) { obj = Object.create(new.target.prototype); obj.raw = global; if (null != global.code) { obj.code = global.code; } if (null != global.uuid) { obj.uuid = global.uuid; } if (null != global.application_id) { obj.applicationId = global.application_id; } if (null != global.branch_id) { obj.branchId = global.branch_id; } if (null != global.context) { obj.context = global.context; } else { obj.context = {}; } return obj; } } Object.defineProperty(NativeDispatchError.prototype, "displayMessage", { get: function displayMessage() { const self = this; if (null == this.code) { const intl14 = require(1233) /* getSystemLocale */.intl; return intl14.string(require(1233) /* getSystemLocale */.t["5NMPSS"]); } else { const path = self.context.path; const code = self.code; if (DispatchErrorCodes.DISK_LOW === code) { ({ available, required } = self.context); const obj5 = require(4375) /* formatSize */; const formatSizeResult = require(4375) /* formatSize */.formatSize(available, { useKibibytes: true }); const obj6 = require(4375) /* formatSize */; const intl13 = require(1233) /* getSystemLocale */.intl; let obj = { required: null, available: null }; obj[0] = require(4375) /* formatSize */.formatSize(required, { useKibibytes: true }); obj[1] = formatSizeResult; return intl13.formatToPlainString(require(1233) /* getSystemLocale */.t["2DR5dl"], obj); } else if (tmp32.POST_INSTALL_FAILED === code) { const intl12 = require(1233) /* getSystemLocale */.intl; obj = { name: null }; obj[0] = self.context.name; return intl12.formatToPlainString(require(1233) /* getSystemLocale */.t.hP0B3A, obj); } else if (tmp32.FILE_NAME_TOO_LONG === code) { const intl11 = require(1233) /* getSystemLocale */.intl; return intl11.string(require(1233) /* getSystemLocale */.t["FWht5+"]); } else if (tmp32.POST_INSTALL_CANCELLED === code) { const intl10 = require(1233) /* getSystemLocale */.intl; return intl10.string(require(1233) /* getSystemLocale */.t["9CNxFJ"]); } else if (tmp32.IO_PERMISSION_DENIED === code) { const intl9 = require(1233) /* getSystemLocale */.intl; return intl9.string(require(1233) /* getSystemLocale */.t["PJx5+Z"]); } else if (tmp32.NO_MANIFESTS === code) { const intl8 = require(1233) /* getSystemLocale */.intl; return intl8.string(require(1233) /* getSystemLocale */.t.gLM395); } else if (tmp32.NOT_ENTITLED === code) { const intl7 = require(1233) /* getSystemLocale */.intl; return intl7.string(require(1233) /* getSystemLocale */.t.TLCR43); } else { if (tmp32.NOT_DIRECTORY !== code) { if (tmp32.DISK_PERMISSION_DENIED !== code) { if (tmp32.INVALID_DRIVE === code) { const intl5 = require(1233) /* getSystemLocale */.intl; obj1 = { path: null }; obj1[0] = path; return intl5.formatToPlainString(require(1233) /* getSystemLocale */.t["08L2TG"], obj1); } else if (tmp32.APPLICATION_LOCK_FAILED === code) { const intl4 = require(1233) /* getSystemLocale */.intl; return intl4.string(require(1233) /* getSystemLocale */.t.RDYCUV); } else if (tmp32.DISK_FULL === code) { const intl3 = require(1233) /* getSystemLocale */.intl; return intl3.string(require(1233) /* getSystemLocale */.t.mojtDJ); } else { if (tmp32.API_ERROR !== code) { if (tmp32.MAX_REQUEST_RETRIES_EXCEEDED !== code) { const intl = require(1233) /* getSystemLocale */.intl; obj = { code: null }; const _HermesInternal = HermesInternal; obj[0] = "" + self.code; return intl.formatToPlainString(require(1233) /* getSystemLocale */.t.r477WB, obj); } } const intl2 = require(1233) /* getSystemLocale */.intl; return intl2.string(require(1233) /* getSystemLocale */.t.OXD41D); } } } const intl6 = require(1233) /* getSystemLocale */.intl; const obj2 = { path: null }; obj2[0] = path; return intl6.formatToPlainString(require(1233) /* getSystemLocale */.t.EjWbO6, obj2); } } }, set: undefined }); export default NativeDispatchError;