@communi/chat-react-native 3.1.13 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/android/build.gradle +14 -0
  2. package/android/src/main/AndroidManifest.xml +9 -0
  3. package/android/src/main/java/com/piscale/reactnative/chat/files/CachedFileDownloadsModule.java +212 -0
  4. package/android/src/main/java/com/piscale/reactnative/chat/files/CachedFileDownloadsPackage.java +20 -0
  5. package/index.js +1 -1
  6. package/package.json +13 -13
  7. package/react-native.config.js +12 -0
  8. package/src/PSChat.d.ts +14 -0
  9. package/src/PSChat.js +1 -0
  10. package/src/files/PSFileOpenProvider.d.ts +9 -0
  11. package/src/files/PSFileOpenProvider.js +1 -0
  12. package/src/files/saveCachedFileToDownloads.d.ts +2 -0
  13. package/src/files/saveCachedFileToDownloads.js +1 -0
  14. package/src/handlers/DatePicker.js +1 -1
  15. package/src/handlers/Keyboard.js +1 -1
  16. package/src/handlers/MQTT.js +1 -1
  17. package/src/handlers/Video.js +1 -1
  18. package/src/handlers/deleteFile.js +1 -1
  19. package/src/handlers/getAlbums.d.ts +1 -1
  20. package/src/handlers/getAlbums.js +1 -1
  21. package/src/handlers/getLocalAssetUri.js +1 -1
  22. package/src/handlers/getPhotos.d.ts +1 -1
  23. package/src/handlers/getPhotos.js +1 -1
  24. package/src/handlers/iOS14RefreshGallerySelection.js +1 -1
  25. package/src/handlers/index.js +1 -1
  26. package/src/handlers/isExistFile.js +1 -1
  27. package/src/handlers/oniOS14GalleryLibrarySelectionChange.js +1 -1
  28. package/src/handlers/pickDocument.js +1 -1
  29. package/src/handlers/pickPhoto.js +1 -1
  30. package/src/handlers/saveFile.d.ts +1 -1
  31. package/src/handlers/saveFile.js +1 -1
  32. package/src/handlers/setClipboardString.js +1 -1
  33. package/src/handlers/shareImage.d.ts +2 -2
  34. package/src/handlers/shareImage.js +1 -1
  35. package/src/handlers/takePhoto.js +1 -1
  36. package/src/handlers/triggerHaptic.js +1 -1
  37. package/src/index.d.ts +3 -0
  38. package/src/index.js +1 -1
  39. package/src/optionalDependencies/DatePicker.js +1 -1
  40. package/src/optionalDependencies/Video.js +1 -1
  41. package/src/optionalDependencies/index.js +1 -1
@@ -0,0 +1,14 @@
1
+ apply plugin: "com.android.library"
2
+
3
+ android {
4
+ namespace "com.piscale.reactnative.chat.files"
5
+ compileSdkVersion rootProject.ext.has("compileSdkVersion") ? rootProject.ext.compileSdkVersion : 36
6
+ defaultConfig {
7
+ minSdkVersion 24
8
+ targetSdkVersion rootProject.ext.has("targetSdkVersion") ? rootProject.ext.targetSdkVersion : 36
9
+ }
10
+ }
11
+
12
+ dependencies {
13
+ implementation("com.facebook.react:react-android")
14
+ }
@@ -0,0 +1,9 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
3
+ <queries>
4
+ <intent>
5
+ <action android:name="android.intent.action.VIEW" />
6
+ <data android:mimeType="*/*" />
7
+ </intent>
8
+ </queries>
9
+ </manifest>
@@ -0,0 +1,212 @@
1
+ package com.piscale.reactnative.chat.files;
2
+
3
+ import android.content.ContentResolver;
4
+ import android.content.ContentValues;
5
+ import android.content.Intent;
6
+ import android.app.Activity;
7
+ import android.media.MediaScannerConnection;
8
+ import android.net.Uri;
9
+ import android.os.Build;
10
+ import android.os.Environment;
11
+ import android.os.ParcelFileDescriptor;
12
+ import android.provider.MediaStore;
13
+ import android.provider.Settings;
14
+ import android.webkit.MimeTypeMap;
15
+ import com.facebook.react.bridge.Promise;
16
+ import com.facebook.react.bridge.ReactApplicationContext;
17
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
18
+ import com.facebook.react.bridge.ReactMethod;
19
+ import com.facebook.react.bridge.BaseActivityEventListener;
20
+ import java.io.File;
21
+ import java.io.FileInputStream;
22
+ import java.io.FileOutputStream;
23
+ import java.io.IOException;
24
+ import java.io.OutputStream;
25
+ import java.util.Locale;
26
+ import java.util.concurrent.ExecutorService;
27
+ import java.util.concurrent.Executors;
28
+
29
+ public class CachedFileDownloadsModule extends ReactContextBaseJavaModule {
30
+ private static final int INSTALL_PERMISSION_REQUEST = 48173;
31
+ private Promise installPermissionPromise;
32
+ private final ExecutorService executor = Executors.newSingleThreadExecutor();
33
+ private final BaseActivityEventListener activityListener = new BaseActivityEventListener() {
34
+ @Override
35
+ public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
36
+ if (requestCode == INSTALL_PERMISSION_REQUEST && installPermissionPromise != null) {
37
+ Promise pending = installPermissionPromise;
38
+ installPermissionPromise = null;
39
+ pending.resolve(canInstallPackages());
40
+ }
41
+ }
42
+ };
43
+
44
+ CachedFileDownloadsModule(ReactApplicationContext context) {
45
+ super(context);
46
+ context.addActivityEventListener(activityListener);
47
+ }
48
+
49
+ @Override
50
+ public String getName() { return "CachedFileDownloads"; }
51
+
52
+ @Override
53
+ public void invalidate() {
54
+ getReactApplicationContext().removeActivityEventListener(activityListener);
55
+ if (installPermissionPromise != null) {
56
+ installPermissionPromise.reject("E_INSTALL_PERMISSION", "React instance was destroyed");
57
+ installPermissionPromise = null;
58
+ }
59
+ executor.shutdown();
60
+ super.invalidate();
61
+ }
62
+
63
+ private boolean canInstallPackages() {
64
+ return Build.VERSION.SDK_INT < Build.VERSION_CODES.O
65
+ || getReactApplicationContext().getPackageManager().canRequestPackageInstalls();
66
+ }
67
+
68
+ @ReactMethod
69
+ public void ensureInstallPermission(Promise promise) {
70
+ getReactApplicationContext().runOnUiQueueThread(() -> {
71
+ try {
72
+ if (canInstallPackages()) {
73
+ promise.resolve(true);
74
+ return;
75
+ }
76
+ Activity activity = getCurrentActivity();
77
+ if (activity == null) throw new IllegalStateException("No foreground activity");
78
+ if (installPermissionPromise != null) {
79
+ promise.reject("E_INSTALL_PERMISSION", "Permission request is already in progress");
80
+ return;
81
+ }
82
+ installPermissionPromise = promise;
83
+ Intent intent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES,
84
+ Uri.parse("package:" + getReactApplicationContext().getPackageName()));
85
+ activity.startActivityForResult(intent, INSTALL_PERMISSION_REQUEST);
86
+ } catch (Exception error) {
87
+ installPermissionPromise = null;
88
+ promise.reject("E_INSTALL_PERMISSION", error);
89
+ }
90
+ });
91
+ }
92
+
93
+ @ReactMethod
94
+ public void save(String path, Promise promise) {
95
+ saveTracked(path, path, promise);
96
+ }
97
+
98
+ @ReactMethod
99
+ public void isSaved(String fileId, Promise promise) {
100
+ executor.execute(() -> {
101
+ String location = getReactApplicationContext()
102
+ .getSharedPreferences("message_downloads", 0).getString(fileId, null);
103
+ if (location == null) {
104
+ promise.resolve(false);
105
+ return;
106
+ }
107
+ // Check the exported copy, not the cache or just our saved flag.
108
+ try (ParcelFileDescriptor descriptor = getReactApplicationContext()
109
+ .getContentResolver().openFileDescriptor(Uri.parse(location), "r")) {
110
+ promise.resolve(descriptor != null);
111
+ } catch (Exception error) {
112
+ // Keep the URI: access can be temporarily denied on older Android.
113
+ promise.resolve(false);
114
+ }
115
+ });
116
+ }
117
+
118
+ @ReactMethod
119
+ public void saveTracked(String path, String fileId, Promise promise) {
120
+ executor.execute(() -> {
121
+ try {
122
+ // downloadFile uses literal encoded names, whereas a file URI from
123
+ // other RNFS operations can point to a decoded name. Prefer the exact
124
+ // file, then try URI decoding only if that file does not exist.
125
+ String rawPath = path.startsWith("file://") ? path.substring(7) : path;
126
+ File source = new File(rawPath).getCanonicalFile();
127
+ if (!source.isFile()) source = new File(Uri.decode(rawPath)).getCanonicalFile();
128
+ String cacheRoot = getReactApplicationContext().getCacheDir().getCanonicalPath();
129
+ if (!source.getPath().startsWith(cacheRoot + File.separator)
130
+ || !source.isFile() || !source.canRead()) {
131
+ throw new IOException("Cached file is missing or unreadable");
132
+ }
133
+ String name = Uri.decode(source.getName()).replaceAll("[/\\\\\\p{Cntrl}]", "_");
134
+ if (name.isEmpty() || name.equals(".") || name.equals("..")) name = "file";
135
+ int dot = name.lastIndexOf('.');
136
+ String extension = dot >= 0 ? name.substring(dot + 1).toLowerCase(Locale.ROOT) : "";
137
+ String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
138
+ if (mime == null) mime = "application/octet-stream";
139
+ Uri destination = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q
140
+ ? saveMediaStore(source, name, mime) : saveLegacy(source, name, mime);
141
+ getReactApplicationContext().getSharedPreferences("message_downloads", 0)
142
+ .edit().putString(fileId, destination.toString()).apply();
143
+ promise.resolve(destination.toString());
144
+ } catch (Exception error) {
145
+ promise.reject("E_SAVE_DOWNLOADS", "Could not save cached file to Downloads", error);
146
+ }
147
+ });
148
+ }
149
+
150
+ private Uri saveMediaStore(File source, String name, String mime) throws IOException {
151
+ ContentResolver resolver = getReactApplicationContext().getContentResolver();
152
+ ContentValues values = new ContentValues();
153
+ values.put(MediaStore.MediaColumns.DISPLAY_NAME, name);
154
+ values.put(MediaStore.MediaColumns.MIME_TYPE, mime);
155
+ values.put(MediaStore.MediaColumns.RELATIVE_PATH, Environment.DIRECTORY_DOWNLOADS);
156
+ values.put(MediaStore.MediaColumns.IS_PENDING, 1);
157
+ Uri uri = resolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, values);
158
+ if (uri == null) throw new IOException("Could not create Downloads entry");
159
+ try {
160
+ try (OutputStream output = resolver.openOutputStream(uri)) {
161
+ if (output == null) throw new IOException("Could not open Downloads entry");
162
+ copy(source, output);
163
+ }
164
+ values.clear();
165
+ values.put(MediaStore.MediaColumns.IS_PENDING, 0);
166
+ if (resolver.update(uri, values, null, null) != 1) {
167
+ throw new IOException("Could not publish Downloads entry");
168
+ }
169
+ return uri;
170
+ } catch (Exception error) {
171
+ // Never leave a partial download visible after a failed copy.
172
+ try { resolver.delete(uri, null, null); } catch (Exception cleanupError) {
173
+ error.addSuppressed(cleanupError);
174
+ }
175
+ throw error;
176
+ }
177
+ }
178
+
179
+ @SuppressWarnings("deprecation")
180
+ private Uri saveLegacy(File source, String name, String mime) throws IOException {
181
+ File directory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
182
+ if (!directory.isDirectory() && !directory.mkdirs()) {
183
+ throw new IOException("Could not create Downloads directory");
184
+ }
185
+ int dot = name.lastIndexOf('.');
186
+ String stem = dot > 0 ? name.substring(0, dot) : name;
187
+ String suffix = dot > 0 ? name.substring(dot) : "";
188
+ File destination = new File(directory, name);
189
+ int number = 1;
190
+ while (!destination.createNewFile()) {
191
+ destination = new File(directory, stem + " (" + number++ + ")" + suffix);
192
+ }
193
+ try (OutputStream output = new FileOutputStream(destination)) {
194
+ copy(source, output);
195
+ } catch (IOException error) {
196
+ if (!destination.delete()) error.addSuppressed(new IOException("Partial file cleanup failed"));
197
+ throw error;
198
+ }
199
+ MediaScannerConnection.scanFile(getReactApplicationContext(),
200
+ new String[]{destination.getAbsolutePath()}, new String[]{mime}, null);
201
+ return Uri.fromFile(destination);
202
+ }
203
+
204
+ private void copy(File source, OutputStream output) throws IOException {
205
+ try (FileInputStream input = new FileInputStream(source)) {
206
+ byte[] buffer = new byte[8192];
207
+ int count;
208
+ while ((count = input.read(buffer)) != -1) output.write(buffer, 0, count);
209
+ output.flush();
210
+ }
211
+ }
212
+ }
@@ -0,0 +1,20 @@
1
+ package com.piscale.reactnative.chat.files;
2
+
3
+ import com.facebook.react.ReactPackage;
4
+ import com.facebook.react.bridge.NativeModule;
5
+ import com.facebook.react.bridge.ReactApplicationContext;
6
+ import com.facebook.react.uimanager.ViewManager;
7
+ import java.util.Collections;
8
+ import java.util.List;
9
+
10
+ public class CachedFileDownloadsPackage implements ReactPackage {
11
+ @Override
12
+ public List<NativeModule> createNativeModules(ReactApplicationContext context) {
13
+ return Collections.singletonList(new CachedFileDownloadsModule(context));
14
+ }
15
+
16
+ @Override
17
+ public List<ViewManager> createViewManagers(ReactApplicationContext context) {
18
+ return Collections.emptyList();
19
+ }
20
+ }
package/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';(function(e,y){var k=B,h=e();while(!![]){try{var E=parseInt(k(0x133))/0x1+parseInt(k(0x132))/0x2+parseInt(k(0x13b))/0x3+parseInt(k(0x134))/0x4+parseInt(k(0x135))/0x5*(-parseInt(k(0x13a))/0x6)+parseInt(k(0x139))/0x7*(parseInt(k(0x138))/0x8)+-parseInt(k(0x137))/0x9*(-parseInt(k(0x136))/0xa);if(E===y)break;else h['push'](h['shift']());}catch(d){h['push'](h['shift']());}}}(c,0xd8e94));export*from'./src';function B(e,y){var h=c();return B=function(E,d){E=E-0x132;var k=h[E];return k;},B(e,y);}function c(){var n=['1063032eGRCDL','235513DtisrI','850184CrNVFd','7887240LTbwud','120430xzDlOM','729cTAALA','200eXtuCJ','67501rTbZTm','6SPQKtt','809349pLXAxY'];c=function(){return n;};return c();}
1
+ 'use strict';(function(U,n){var b=g,I=U();while(!![]){try{var D=-parseInt(b(0x1d1))/0x1+-parseInt(b(0x1c8))/0x2*(-parseInt(b(0x1c9))/0x3)+-parseInt(b(0x1ce))/0x4*(-parseInt(b(0x1cd))/0x5)+-parseInt(b(0x1cc))/0x6*(-parseInt(b(0x1cb))/0x7)+parseInt(b(0x1cf))/0x8*(-parseInt(b(0x1c7))/0x9)+parseInt(b(0x1c6))/0xa*(-parseInt(b(0x1ca))/0xb)+parseInt(b(0x1d0))/0xc;if(D===n)break;else I['push'](I['shift']());}catch(P){I['push'](I['shift']());}}}(Y,0x53681));function Y(){var N=['512637nkpeLi','11rIUoes','3489997JdOPpr','6QWesvU','60IsTCCJ','77852mhIVjE','4990240ldHnvg','3965076xvOMXK','13151AvNWMT','5966230ErxgFU','9cWVHxP','6MMZPsc'];Y=function(){return N;};return Y();}function g(U,n){var I=Y();return g=function(D,P){D=D-0x1c6;var b=I[D];return b;},g(U,n);}export*from'./src';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@communi/chat-react-native",
3
- "version": "3.1.13",
3
+ "version": "4.0.1",
4
4
  "description": "PiScale Chat React Native",
5
5
  "homepage": "https://github.com/piscale",
6
6
  "license": "MIT",
@@ -8,19 +8,18 @@
8
8
  "main": "index.js",
9
9
  "types": "index.d.ts",
10
10
  "dependencies": {
11
- "@communi/chat-api-client-typescript": "^2.9.12",
12
- "@communi/chat-ui-react-native": "^3.2.12",
13
- "@communi/keyboard-area-react-native": "^2.0.1",
14
- "@communi/mqtt-client-interface-typescript": "^2.0.1",
15
- "@communi/mqtt-client-react-native": "^2.0.1"
11
+ "@communi/chat-api-client-typescript": "^3.0.0",
12
+ "@communi/chat-ui-react-native": "^4.0.1",
13
+ "@communi/keyboard-area-react-native": "^3.0.0",
14
+ "@communi/mqtt-client-interface-typescript": "^3.0.0",
15
+ "@communi/mqtt-client-react-native": "^3.0.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@react-native-camera-roll/camera-roll": "^7.2.0",
19
19
  "@react-native-clipboard/clipboard": "^1.13.0",
20
- "@types/react": "~18.2.14",
21
- "@types/react-native": "0.72.5",
22
- "react": "^18.2.0",
23
- "react-native": "0.72.6",
20
+ "@types/react": "19.2.18",
21
+ "react": "19.2.0",
22
+ "react-native": "0.83.10",
24
23
  "react-native-date-picker": ">=4.2.13",
25
24
  "@react-native-documents/picker": ">=10.1.2",
26
25
  "react-native-fs": ">=2.16.6",
@@ -32,18 +31,19 @@
32
31
  "@react-native-camera-roll/camera-roll": ">=5.10.0",
33
32
  "@react-native-clipboard/clipboard": "*",
34
33
  "react": "*",
35
- "react-native": "0.72.6",
34
+ "react-native": ">=0.83.0",
36
35
  "react-native-date-picker": ">=4.2.13",
37
36
  "@react-native-documents/picker": ">=10.1.2",
38
37
  "react-native-fs": ">=2.16.6",
39
38
  "react-native-haptic-feedback": "*",
40
39
  "react-native-image-crop-picker": ">=0.33.2",
41
40
  "react-native-share": ">=4.1.0",
42
- "react-native-video": ">=5.2.1"
41
+ "react-native-video": ">=5.2.1",
42
+ "react-native-file-viewer": "2.1.5"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "react-native-date-picker": {
46
46
  "optional": true
47
47
  }
48
48
  }
49
- }
49
+ }
@@ -0,0 +1,12 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ sourceDir: './android',
6
+ packageImportPath: 'import com.piscale.reactnative.chat.files.CachedFileDownloadsPackage;',
7
+ packageInstance: 'new CachedFileDownloadsPackage()',
8
+ },
9
+ ios: null,
10
+ },
11
+ },
12
+ };
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { PSChatProps as ChatUIProps, PSFileActionColors } from '@communi/chat-ui-react-native';
3
+ export type PSChatProps = ChatUIProps & {
4
+ fileActions?: {
5
+ /** Disable SDK file defaults; explicit screen callbacks still work. */
6
+ enabled?: boolean;
7
+ colors?: PSFileActionColors;
8
+ /** Android only. The host must declare REQUEST_INSTALL_PACKAGES to opt in. */
9
+ allowApkInstallation?: boolean;
10
+ };
11
+ };
12
+ export declare function PSChat({ props, children, }: React.PropsWithChildren<{
13
+ props: PSChatProps;
14
+ }>): React.JSX.Element;
package/src/PSChat.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';function Y(){const V=['ent','8728712uFpvPw','8852580OAEQNV','stall','eElem','enabl','894411HGeRLb','812jsKnSZ','allow','231uEwrzw','ApkIn','44570660XxLjGo','91NNkNzD','creat','334566YDpgrt','16165UuKhCm','color','ation','19730QiolQb'];Y=function(){return V;};return Y();}function g(U,n){const I=Y();return g=function(D,P){D=D-0x1ac;let b=I[D];return b;},g(U,n);}(function(D,P){const O=g,b=D();while(!![]){try{const N=-parseInt(O(0x1bd))/0x1+-parseInt(O(0x1b6))/0x2*(parseInt(O(0x1ad))/0x3)+parseInt(O(0x1be))/0x4*(parseInt(O(0x1b3))/0x5)+-parseInt(O(0x1b2))/0x6*(parseInt(O(0x1b0))/0x7)+-parseInt(O(0x1b8))/0x8+-parseInt(O(0x1b9))/0x9+parseInt(O(0x1af))/0xa;if(N===P)break;else b['push'](b['shift']());}catch(k){b['push'](b['shift']());}}}(Y,0xa1123));import U from'react';import{PSChat as n}from'@communi/chat-ui-react-native';import{PSFileOpenProvider as I}from'./files/PSFileOpenProvider';export function PSChat({props:D,children:P}){const T=g,{fileActions:b,...N}=D;return U[T(0x1b1)+T(0x1bb)+T(0x1b7)](n,{'props':N},b?.[T(0x1bc)+'ed']===!0x1?P:U[T(0x1b1)+T(0x1bb)+T(0x1b7)](I,{'allowApkInstallation':b?.[T(0x1ac)+T(0x1ae)+T(0x1ba)+T(0x1b5)]??!0x1,'colors':b?.[T(0x1b4)+'s']},P));}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { PSFileActionColors } from '@communi/chat-ui-react-native';
3
+ export declare const useOpenMessageFile: () => (path: string, fileId?: string) => Promise<void>;
4
+ export declare const useSaveMessageFile: () => (path: string, fileId?: string) => Promise<void>;
5
+ export declare const useIsMessageFileSaved: () => (fileId: string) => Promise<boolean>;
6
+ export declare function PSFileOpenProvider({ children, allowApkInstallation, colors: fileColors, }: React.PropsWithChildren<{
7
+ allowApkInstallation?: boolean;
8
+ colors?: PSFileActionColors;
9
+ }>): React.JSX.Element;
@@ -0,0 +1 @@
1
+ 'use strict';const Yk=U;(function(Q,m){const YN=U,J=Q();while(!![]){try{const y=-parseInt(YN(0xb0))/0x1*(-parseInt(YN(0xc0))/0x2)+parseInt(YN(0x97))/0x3*(parseInt(YN(0xcf))/0x4)+parseInt(YN(0xab))/0x5+-parseInt(YN(0xdf))/0x6*(parseInt(YN(0xcc))/0x7)+parseInt(YN(0xbd))/0x8*(parseInt(YN(0xe9))/0x9)+-parseInt(YN(0xc1))/0xa*(-parseInt(YN(0xb2))/0xb)+-parseInt(YN(0xa4))/0xc;if(y===m)break;else J['push'](J['shift']());}catch(K){J['push'](J['shift']());}}}(Y,0xce4ca));function Y(){const Yd=['eInst','ve_fa','ensur','rmiss','4336nTjUwl','alert','heade','418pGikCu','30lFRTpk','ccess','title','bodyX','llbac','ovide','curre','catch','cente','ing','useRe','7fKAPzv','bodyM','test','60752MlsdLR','headi','eElem','ve_su','subTe','ngLar','ve_ca','Provi','show','700','ryPat','error','le_sa','colum','ion','FileO','9643266FQNHiA','open','saveF','round','bind','brand','openF','XLarg','actio','isFil','1332uqQqpo','eSave','requi','der','ate','recto','succe','Cache','useCa','ext','ntext','219xoMEFH','save','red','ent','ve_pr','oads','ilure','andro','useCo','dFile','useMe','creat','ve_ac','28691100ExjsCk','eCont','ompt','ncel','Downl','r\x20is\x20','Prima','8442255DWPtqg','backg','ile','ps_fi','useSt','1932lADSAe','cance','5727183rCLaeh','edium','tion','penPr','geM','allPe','oadDi'];Y=function(){return Yd;};return Y();}import n from'react';import{Alert as I,NativeModules as D,Platform as P,StyleSheet as b,Text as k}from'react-native';import T from'react-native-file-viewer';import p from'react-native-fs';import{PSFileActionsProvider as f,usePSDesignSystemContext as d,usePSTranslationContext as G,scale as u,PSFlashMessage as i,PSBottomActionSheet as l,PSBottomActionSheetSection as t,PSBottomActionSheetItem as c}from'@communi/chat-ui-react-native';function U(g,n){const I=Y();return U=function(D,P){D=D-0x94;let b=I[D];return b;},U(g,n);}import{saveCachedFileToDownloads as j,isMessageFileSavedToDownloads as w}from'./saveCachedFileToDownloads';const O=n[Yk(0xa2)+Yk(0xa5)+Yk(0x95)](void 0x0),g=()=>{const YO=Yk,Q=n[YO(0x9f)+YO(0x96)](O);if(!Q)throw new Error(YO(0xde)+YO(0xb5)+YO(0xc6)+YO(0xa9)+YO(0xeb)+YO(0x99));return Q;};export const useOpenMessageFile=()=>g()[Yk(0xe5)+Yk(0xad)],useSaveMessageFile=()=>g()[Yk(0xe1)+Yk(0xad)],useIsMessageFileSaved=()=>g()[Yk(0xe8)+Yk(0xea)+'d'];export function PSFileOpenProvider({children:Q,allowApkInstallation:J=!0x1,colors:K}){const YT=Yk,{translator:o}=G(),{colors:Z,typography:Y0}=d(),[Y1,Y2]=n[YT(0xaf)+YT(0xed)](),Y3=n[YT(0xcb)+'f'](void 0x0),[Y4,Y5]=n[YT(0xaf)+YT(0xed)](0x0),Y6=n[YT(0xcb)+'f'](!0x1),Y7=n[YT(0xcb)+'f'](!0x1),Y8=n[YT(0x94)+YT(0xc5)+'k'](async(YD,YP)=>{const YV=YT;if(await w(YP??YD)[YV(0xc8)](()=>!0x1)){Y5(Yb=>Yb+0x1),Y6[YV(0xc7)+'nt']=!0x1;return;}Y3[YV(0xc7)+'nt']=YP,Y2(YD);},[]),Y9=n[YT(0x94)+YT(0xc5)+'k'](async(YD,YP)=>{const Yp=YT;if(!Y6[Yp(0xc7)+'nt']){Y6[Yp(0xc7)+'nt']=!0x0,Y3[Yp(0xc7)+'nt']=YP;try{if(P['OS']===Yp(0x9e)+'id'&&/\.apk$/i[Yp(0xce)](YD)){if(!J){await Y8(YD,YP);return;}if(!await D[Yp(0xf0)+Yp(0xa0)+Yp(0xa8)+Yp(0x9c)][Yp(0xbb)+Yp(0xb9)+Yp(0xb7)+Yp(0xbc)+Yp(0xdd)]()){await Y8(YD,YP);return;}}await T[Yp(0xe0)](YD),Y6[Yp(0xc7)+'nt']=!0x1;}catch(Yb){P['OS']===Yp(0x9e)+'id'?await Y8(YD,YP):(Y6[Yp(0xc7)+'nt']=!0x1,I[Yp(0xbe)](String(Yb)));}}},[Y8,J]),YY=()=>{const YE=YT;Y2(void 0x0),Y6[YE(0xc7)+'nt']=!0x1;},Yg=n[YT(0x94)+YT(0xc5)+'k'](async(YD,YP)=>{const Yf=YT;if(!Y7[Yf(0xc7)+'nt']){Y7[Yf(0xc7)+'nt']=!0x0;try{await j(YD,YP),Y5(Yb=>Yb+0x1),i[Yf(0xd7)]({'type':Yf(0xef)+'ss','text1':o(Yf(0xae)+Yf(0xdb)+Yf(0xd2)+Yf(0xc2)),'text2':p[Yf(0xa8)+Yf(0xb8)+Yf(0xee)+Yf(0xd9)+'h'],'visibilityTime':0xfa0});}catch{i[Yf(0xd7)]({'type':Yf(0xda),'text1':o(Yf(0xae)+Yf(0xdb)+Yf(0xba)+Yf(0x9d)),'visibilityTime':0xbb8});}finally{Y7[Yf(0xc7)+'nt']=!0x1;}}},[o]),YU=async()=>{const YR=YT;if(!Y1||Y7[YR(0xc7)+'nt'])return;const YD=Y1;Y2(void 0x0);try{await Yg(YD,Y3[YR(0xc7)+'nt']);}finally{Y6[YR(0xc7)+'nt']=!0x1;}},Yn=n[YT(0xa1)+'mo'](()=>w[YT(0xe3)](null),[Y4]),YI=n[YT(0xa1)+'mo'](()=>({'openFile':Y9,'saveFile':Yg,'isFileSaved':Yn}),[Y9,Yg,Yn]);return n[YT(0xa2)+YT(0xd1)+YT(0x9a)](O[YT(0xd6)+YT(0xec)],{'value':YI},n[YT(0xa2)+YT(0xd1)+YT(0x9a)](f,{'value':{'colors':K,'onViewFilePress':Y9,'onSaveFilePress':P['OS']===YT(0x9e)+'id'?Yg:void 0x0,'isFileSaved':P['OS']===YT(0x9e)+'id'?Yn:void 0x0}},Q),P['OS']===YT(0x9e)+'id'&&n[YT(0xa2)+YT(0xd1)+YT(0x9a)](l,{'isVisible':!!Y1,'onClose':YY},n[YT(0xa2)+YT(0xd1)+YT(0x9a)](t,{'backgroundColor':Z[YT(0xaa)+'ry'][YT(0xac)+YT(0xe2)]},n[YT(0xa2)+YT(0xd1)+YT(0x9a)](k,{'accessibilityRole':YT(0xbf)+'r','style':[x[YT(0xc3)],Y0[YT(0xcd)+YT(0xb3)+'S'],{'color':Z[YT(0xaa)+'ry'][YT(0xd3)+'xt']}]},o(YT(0xae)+YT(0xdb)+YT(0x9b)+YT(0xa6))),n[YT(0xa2)+YT(0xd1)+YT(0x9a)](c,{'title':o(YT(0xae)+YT(0xdb)+YT(0xa3)+YT(0xb4)),'onPress':YU,'style':x[YT(0xe7)+'n'],'textStyle':{...Y0[YT(0xd0)+YT(0xd4)+YT(0xb6)],'color':K?.[YT(0x98)]??Z[YT(0xaa)+'ry'][YT(0xe4)+YT(0xca)],'fontWeight':YT(0xd8),'marginVertical':u(0x10)}})),n[YT(0xa2)+YT(0xd1)+YT(0x9a)](t,{'backgroundColor':Z[YT(0xaa)+'ry'][YT(0xac)+YT(0xe2)]},n[YT(0xa2)+YT(0xd1)+YT(0x9a)](c,{'title':o(YT(0xae)+YT(0xdb)+YT(0xd5)+YT(0xa7)),'onPress':YY,'style':x[YT(0xe7)+'n'],'textStyle':{...Y0[YT(0xc4)+YT(0xe6)+'eR'],'color':K?.[YT(0xb1)+'l']??Z[YT(0xaa)+'ry'][YT(0xd3)+'xt']}}))));}const x=b[Yk(0xa2)+'e']({'title':{'textAlign':Yk(0xc9)+'r','marginHorizontal':u(0x10),'marginTop':u(0x10),'marginBottom':u(0x8)},'action':{'flexDirection':Yk(0xdc)+'n'}});
@@ -0,0 +1,2 @@
1
+ export declare function saveCachedFileToDownloads(filePath: string, fileId?: string): Promise<string>;
2
+ export declare function isMessageFileSavedToDownloads(fileId: string): Promise<boolean>;
@@ -0,0 +1 @@
1
+ 'use strict';(function(D,P){var O=g,b=D();while(!![]){try{var N=-parseInt(O(0x146))/0x1*(-parseInt(O(0x154))/0x2)+-parseInt(O(0x139))/0x3*(parseInt(O(0x153))/0x4)+-parseInt(O(0x133))/0x5+parseInt(O(0x12a))/0x6*(-parseInt(O(0x14b))/0x7)+-parseInt(O(0x13e))/0x8+parseInt(O(0x12f))/0x9*(parseInt(O(0x141))/0xa)+-parseInt(O(0x142))/0xb*(-parseInt(O(0x149))/0xc);if(N===P)break;else b['push'](b['shift']());}catch(k){b['push'](b['shift']());}}}(Y,0x1e5fd));function Y(){var p=['GRANT','76JyIVUz','RNAL_','saveT','696aZvfjM','racke','52717NoLnJk','WRITE','droid','ion\x20d','enied','Downl','dFile','PERMI','36YKDpfb','5378XefZYI','reque','30CADLlC','rted\x20','t\x20is\x20','ge\x20pe','andro','539262xXkwqM','SSION','on\x20An','rmiss','168090YrKzWy','Cache','suppo','oads','oads\x20','save','53022uNrFUz','RESUL','expor','only\x20','STORA','879360rlciuz','isSav','Stora','10keabSr','38005VRFvUK','Versi','_EXTE'];Y=function(){return p;};return Y();}function g(U,n){var I=Y();return g=function(D,P){D=D-0x129;var b=I[D];return b;},g(U,n);}import{NativeModules as U,PermissionsAndroid as n,Platform as I}from'react-native';export async function saveCachedFileToDownloads(D,P){var T=g;if(I['OS']!==T(0x12e)+'id')throw new Error(T(0x150)+T(0x137)+T(0x13b)+T(0x12c)+T(0x13c)+T(0x135)+T(0x12b)+T(0x131)+T(0x14d));if(Number(I[T(0x143)+'on'])<0x1d&&await n[T(0x129)+'st'](n[T(0x152)+T(0x130)+'S'][T(0x14c)+T(0x144)+T(0x147)+T(0x13d)+'GE'])!==n[T(0x13a)+'TS'][T(0x145)+'ED'])throw new Error(T(0x140)+T(0x12d)+T(0x132)+T(0x14e)+T(0x14f));return P?U[T(0x134)+T(0x151)+T(0x150)+T(0x136)][T(0x148)+T(0x14a)+'d'](D,P):U[T(0x134)+T(0x151)+T(0x150)+T(0x136)][T(0x138)](D);}export async function isMessageFileSavedToDownloads(D){var V=g;return I['OS']!==V(0x12e)+'id'?!0x1:U[V(0x134)+V(0x151)+V(0x150)+V(0x136)][V(0x13f)+'ed'](D);}
@@ -1 +1 @@
1
- 'use strict';const A=e;function B(){const U=['8HmwaAJ','ent','975524bIVsCt','90wMIFTU','1070FHKCOv','4090UdllLF','1670awvumw','3423234fitcde','eElem','934QgwSVA','30985295jiadAk','5142tfMhuu','3020969tTszNf','creat'];B=function(){return U;};return B();}function e(c,y){const h=B();return e=function(E,d){E=E-0x16a;let k=h[E];return k;},e(c,y);}(function(E,d){const s=e,k=E();while(!![]){try{const n=-parseInt(s(0x177))/0x1*(parseInt(s(0x172))/0x2)+-parseInt(s(0x175))/0x3+parseInt(s(0x170))/0x4+-parseInt(s(0x174))/0x5*(parseInt(s(0x16b))/0x6)+parseInt(s(0x16c))/0x7*(-parseInt(s(0x16e))/0x8)+parseInt(s(0x171))/0x9*(parseInt(s(0x173))/0xa)+parseInt(s(0x16a))/0xb;if(n===d)break;else k['push'](k['shift']());}catch(i){k['push'](k['shift']());}}}(B,0xac6c3));import y from'react';import{DatePickerComponent as h}from'../optionalDependencies/DatePicker';export const DatePicker=h?({modal:E,open:d,date:k,minimumDate:g,maximumDate:x,mode:l,onConfirm:v,onCancel:z})=>y[A(0x16d)+A(0x176)+A(0x16f)](h,{'modal':E,'open':d,'date':k,'minimumDate':g,'maximumDate':x,'mode':l,'onConfirm':v,'onCancel':z}):null;
1
+ 'use strict';const p=g;(function(I,D){const V=g,P=I();while(!![]){try{const b=parseInt(V(0x17f))/0x1*(parseInt(V(0x177))/0x2)+parseInt(V(0x17e))/0x3+parseInt(V(0x175))/0x4+-parseInt(V(0x181))/0x5*(parseInt(V(0x179))/0x6)+-parseInt(V(0x178))/0x7+-parseInt(V(0x17b))/0x8*(parseInt(V(0x17d))/0x9)+parseInt(V(0x180))/0xa;if(b===D)break;else P['push'](P['shift']());}catch(N){P['push'](P['shift']());}}}(Y,0xe1f4c));function g(U,n){const I=Y();return g=function(D,P){D=D-0x175;let b=I[D];return b;},g(U,n);}import U from'react';import{DatePickerComponent as n}from'../optionalDependencies/DatePicker';function Y(){const E=['creat','44818FNLQMX','12129838axQQqf','3262794ENrPuv','ent','6107768tpITbY','eElem','9MdRXrM','4895352HWEYUc','23QdZBeW','61340FKvewl','5vScYNU','7249180znBmTZ'];Y=function(){return E;};return Y();}export const DatePicker=n?({modal:I,open:D,date:P,minimumDate:b,maximumDate:N,mode:k,onConfirm:O,onCancel:T})=>U[p(0x176)+p(0x17c)+p(0x17a)](n,{'modal':I,'open':D,'date':P,'minimumDate':b,'maximumDate':N,'mode':k,'onConfirm':O,'onCancel':T}):null;
@@ -1 +1 @@
1
- 'use strict';function B(e,y){const h=c();return B=function(E,d){E=E-0x180;let k=h[E];return k;},B(e,y);}const x=B;function c(){const l=['90qGzGKi','INPUT','setWi','ST_NO','37899xWLnuB','ST_RE','SIZE','THING','21842XPTJXh','_ADJU','dList','192884eKnZjq','16019530sfRFBG','remov','1686783yCRLla','ST_PA','SOFT_','1288EujSyg','4682777NXjUUY','oftIn','59406KQHZUs','oardL','eKeyb','yboar','putMo','ener','238jCiOhV','300SWxGZG','ndowS','addKe','isten'];c=function(){return l;};return c();}(function(E,d){const g=B,k=E();while(!![]){try{const n=parseInt(g(0x18d))/0x1+-parseInt(g(0x187))/0x2*(-parseInt(g(0x19a))/0x3)+-parseInt(g(0x18a))/0x4*(parseInt(g(0x19e))/0x5)+parseInt(g(0x193))/0x6*(parseInt(g(0x199))/0x7)+-parseInt(g(0x190))/0x8*(-parseInt(g(0x183))/0x9)+-parseInt(g(0x18b))/0xa+-parseInt(g(0x191))/0xb;if(n===d)break;else k['push'](k['shift']());}catch(i){k['push'](k['shift']());}}}(c,0xdb33a));import{PSKeyboard as y,SoftInputMode as h}from'@communi/keyboard-area-react-native';export const addKeyboardListener=E=>y[x(0x19c)+x(0x196)+x(0x189)+x(0x198)](E),removeKeyboardListener=E=>y[x(0x18c)+x(0x195)+x(0x194)+x(0x19d)+'er'](E),setWindowSoftInputAdjustNothing=()=>y[x(0x181)+x(0x19b)+x(0x192)+x(0x197)+'de'](h[x(0x18f)+x(0x180)+x(0x188)+x(0x182)+x(0x186)]),setWindowSoftInputAdjustResize=()=>y[x(0x181)+x(0x19b)+x(0x192)+x(0x197)+'de'](h[x(0x18f)+x(0x180)+x(0x188)+x(0x184)+x(0x185)]),setWindowSoftInputAdjustPan=()=>y[x(0x181)+x(0x19b)+x(0x192)+x(0x197)+'de'](h[x(0x18f)+x(0x180)+x(0x188)+x(0x18e)+'N']);
1
+ 'use strict';const O=g;(function(I,D){const k=g,P=I();while(!![]){try{const b=-parseInt(k(0x15d))/0x1+-parseInt(k(0x152))/0x2*(-parseInt(k(0x158))/0x3)+parseInt(k(0x156))/0x4*(parseInt(k(0x15e))/0x5)+parseInt(k(0x163))/0x6+-parseInt(k(0x146))/0x7+parseInt(k(0x157))/0x8*(parseInt(k(0x148))/0x9)+parseInt(k(0x161))/0xa*(-parseInt(k(0x149))/0xb);if(b===D)break;else P['push'](P['shift']());}catch(N){P['push'](P['shift']());}}}(Y,0xe5b72));function g(U,n){const I=Y();return g=function(D,P){D=D-0x145;let b=I[D];return b;},g(U,n);}import{PSKeyboard as U,SoftInputMode as n}from'@communi/keyboard-area-react-native';export const addKeyboardListener=I=>U[O(0x153)+O(0x154)+O(0x14b)+O(0x145)](I),removeKeyboardListener=I=>U[O(0x15a)+O(0x159)+O(0x15f)+O(0x14e)+'er'](I),setWindowSoftInputAdjustNothing=()=>U[O(0x160)+O(0x14d)+O(0x15b)+O(0x14c)+'de'](n[O(0x14f)+O(0x147)+O(0x150)+O(0x14a)+O(0x151)]),setWindowSoftInputAdjustResize=()=>U[O(0x160)+O(0x14d)+O(0x15b)+O(0x14c)+'de'](n[O(0x14f)+O(0x147)+O(0x150)+O(0x162)+O(0x155)]),setWindowSoftInputAdjustPan=()=>U[O(0x160)+O(0x14d)+O(0x15b)+O(0x14c)+'de'](n[O(0x14f)+O(0x147)+O(0x150)+O(0x15c)+'N']);function Y(){const T=['INPUT','9MyPAMq','121eaMIwj','ST_NO','dList','putMo','ndowS','isten','SOFT_','_ADJU','THING','3294806unFWeW','addKe','yboar','SIZE','10048xZEAAF','4014512IublYo','3ltBhzJ','eKeyb','remov','oftIn','ST_PA','145547kylGiz','65IYcbHV','oardL','setWi','390790dxwnuM','ST_RE','2973918JRVgOs','ener','8128372GdEvFL'];Y=function(){return T;};return Y();}
@@ -1 +1 @@
1
- 'use strict';const g=B;(function(h,E){const i=B,d=h();while(!![]){try{const k=-parseInt(i(0x19c))/0x1*(-parseInt(i(0x1a5))/0x2)+parseInt(i(0x1a1))/0x3+-parseInt(i(0x1a0))/0x4*(parseInt(i(0x19e))/0x5)+parseInt(i(0x19f))/0x6*(parseInt(i(0x1a6))/0x7)+parseInt(i(0x1a4))/0x8*(parseInt(i(0x1a3))/0x9)+parseInt(i(0x19d))/0xa*(parseInt(i(0x1a2))/0xb)+-parseInt(i(0x19b))/0xc;if(k===E)break;else d['push'](d['shift']());}catch(n){d['push'](d['shift']());}}}(c,0x6b703));import{MQTTClient as y}from'@communi/mqtt-client-react-native';function c(){const x=['33iIhxPg','27RhuVdA','2292376iZWnpI','1504oHpLFT','862834nKqxFF','getIn','stanc','24797616HOulyf','301FvAVRY','2528120QliyJo','31755ZoLHwk','18NDQHgV','104YhmCYz','1372338zadnlV'];c=function(){return x;};return c();}function B(e,y){const h=c();return B=function(E,d){E=E-0x19b;let k=h[E];return k;},B(e,y);}export const createMQTTClient=async h=>y[g(0x1a7)+g(0x1a8)+'e'](h);
1
+ 'use strict';const k=g;(function(n,I){const N=g,D=n();while(!![]){try{const P=parseInt(N(0x7b))/0x1+-parseInt(N(0x7a))/0x2*(-parseInt(N(0x73))/0x3)+-parseInt(N(0x7c))/0x4+parseInt(N(0x79))/0x5*(parseInt(N(0x7d))/0x6)+parseInt(N(0x77))/0x7+parseInt(N(0x78))/0x8*(parseInt(N(0x72))/0x9)+-parseInt(N(0x75))/0xa;if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x5040e));import{MQTTClient as U}from'@communi/mqtt-client-react-native';export const createMQTTClient=async n=>U[k(0x76)+k(0x74)+'e'](n);function g(U,n){const I=Y();return g=function(D,P){D=D-0x72;let b=I[D];return b;},g(U,n);}function Y(){const O=['1246833yabUBb','1400btjWuw','1565QOGpIf','2MlzerE','395341IbbqfB','2588056jIdWaT','114GADrMA','9225VAYBLY','1409061XiKXQD','stanc','2527370NOBBPV','getIn'];Y=function(){return O;};return Y();}
@@ -1 +1 @@
1
- 'use strict';const F=B;(function(h,E){const V=B,d=h();while(!![]){try{const k=-parseInt(V(0x16c))/0x1+parseInt(V(0x16d))/0x2*(-parseInt(V(0x16e))/0x3)+parseInt(V(0x169))/0x4*(parseInt(V(0x16a))/0x5)+-parseInt(V(0x173))/0x6*(-parseInt(V(0x168))/0x7)+-parseInt(V(0x172))/0x8+parseInt(V(0x16b))/0x9*(-parseInt(V(0x16f))/0xa)+parseInt(V(0x176))/0xb;if(k===E)break;else d['push'](d['shift']());}catch(n){d['push'](d['shift']());}}}(c,0x26260));function B(e,y){const h=c();return B=function(E,d){E=E-0x167;let k=h[E];return k;},B(e,y);}import e from'react';import{AudioVideoComponent as y}from'../optionalDependencies/Video';function c(){const R=['creat','14yUmLRD','1144NdqOMB','200TDuLHl','18TTDwwE','15897XHnEav','3206QIMGLj','213vEBSno','165090oxbjPH','ignor','eElem','354096JMyXlp','369948CNNQyN','error','ent','2513390lxcHWD'];c=function(){return R;};return c();}export const Video=y?({onBuffer:h,onEnd:E,onLoad:k,onProgress:g,paused:x,repeat:v,resizeMode:z,style:A,uri:U,videoRef:S})=>e[F(0x167)+F(0x171)+F(0x175)](y,{'ignoreSilentSwitch':F(0x170)+'e','onBuffer':h,'onEnd':E,'onError':w=>{const C=F;console[C(0x174)](w);},'onLoad':k,'onProgress':g,'paused':x,'ref':S,'repeat':v,'resizeMode':z,'source':{'uri':U},'style':A}):null;
1
+ 'use strict';const x=g;function g(U,n){const I=Y();return g=function(D,P){D=D-0x144;let b=I[D];return b;},g(U,n);}(function(I,D){const d=g,P=I();while(!![]){try{const b=parseInt(d(0x144))/0x1+-parseInt(d(0x14b))/0x2+parseInt(d(0x147))/0x3+-parseInt(d(0x14c))/0x4*(-parseInt(d(0x145))/0x5)+-parseInt(d(0x14d))/0x6+parseInt(d(0x150))/0x7*(-parseInt(d(0x152))/0x8)+-parseInt(d(0x14a))/0x9*(-parseInt(d(0x151))/0xa);if(b===D)break;else P['push'](P['shift']());}catch(N){P['push'](P['shift']());}}}(Y,0xb8c39));import U from'react';import{AudioVideoComponent as n}from'../optionalDependencies/Video';export const Video=n?({onBuffer:I,onEnd:D,onLoad:P,onProgress:b,paused:N,repeat:k,resizeMode:O,style:T,uri:V,videoRef:E})=>U[x(0x14e)+x(0x149)+x(0x146)](n,{'ignoreSilentSwitch':x(0x148)+'e','onBuffer':I,'onEnd':D,'onError':R=>{const q=x;console[q(0x14f)](R);},'onLoad':P,'onProgress':b,'paused':N,'ref':E,'repeat':k,'resizeMode':O,'source':{'uri':V},'style':T}):null;function Y(){const G=['9uHPBhw','2997818wSzUBN','47664fYaJkP','5892840SLRpKG','creat','error','567UveZpL','13842190EwvhRN','5752PzRdnr','339499YJqFxc','350ePgKwl','ent','2214729jMUUXo','ignor','eElem'];Y=function(){return G;};return Y();}
@@ -1 +1 @@
1
- 'use strict';(function(y,h){const n=B,E=y();while(!![]){try{const d=-parseInt(n(0x159))/0x1*(parseInt(n(0x156))/0x2)+-parseInt(n(0x152))/0x3*(parseInt(n(0x15a))/0x4)+-parseInt(n(0x15f))/0x5*(-parseInt(n(0x15c))/0x6)+parseInt(n(0x154))/0x7*(-parseInt(n(0x161))/0x8)+parseInt(n(0x15d))/0x9+parseInt(n(0x155))/0xa*(parseInt(n(0x151))/0xb)+parseInt(n(0x162))/0xc*(-parseInt(n(0x163))/0xd);if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0xbab6e));import e from'react-native-fs';function B(e,y){const h=c();return B=function(E,d){E=E-0x150;let k=h[E];return k;},B(e,y);}function c(){const g=['247EQOzxf','ailed','110vWwJwo','1317FxnDai','ion\x20f','14YiRvbH','308240wRtQYV','3112bkGWgU','log','unlin','335fDMAKu','716IZeIgz','...','204JrbZGf','11491254FPgQYU','File\x20','153905vIUyly','delet','1465432IvXtWM','568812PkKjSa'];c=function(){return g;};return c();}export const deleteFile=async({uri:y})=>{const i=B;try{return await e[i(0x158)+'k'](y),!0x0;}catch(h){return console[i(0x157)](i(0x15e)+i(0x160)+i(0x153)+i(0x150)+i(0x15b),h),!0x1;}};
1
+ 'use strict';function g(U,n){const I=Y();return g=function(D,P){D=D-0x165;let b=I[D];return b;},g(U,n);}(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0x165))/0x1*(parseInt(N(0x167))/0x2)+-parseInt(N(0x16a))/0x3+-parseInt(N(0x175))/0x4*(-parseInt(N(0x171))/0x5)+parseInt(N(0x16b))/0x6*(parseInt(N(0x170))/0x7)+-parseInt(N(0x169))/0x8+parseInt(N(0x168))/0x9+parseInt(N(0x16e))/0xa;if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x8df18));import U from'react-native-fs';export const deleteFile=async({uri:n})=>{const k=g;try{return await U[k(0x174)+'k'](n),!0x0;}catch(I){return console[k(0x16c)](k(0x172)+k(0x166)+k(0x173)+k(0x16f)+k(0x16d),I),!0x1;}};function Y(){const O=['30pyvsOE','File\x20','ion\x20f','unlin','200388rHhJab','35566MMHtGI','delet','30yDeWWR','4314564DCHuRQ','7126008pLUihf','454095BKsMpl','90JFBhKC','log','...','10593580PPDqFW','ailed','148246QSyLuj'];Y=function(){return O;};return Y();}
@@ -3,5 +3,5 @@ import { GetAlbumsParams } from '@react-native-camera-roll/camera-roll';
3
3
  type ReturnType = {
4
4
  Albums: Album[];
5
5
  };
6
- export declare const getAlbums: ({ albumType, assetType, }: Pick<GetAlbumsParams, "albumType" | "assetType">) => Promise<ReturnType>;
6
+ export declare const getAlbums: ({ albumType, assetType, }: Pick<GetAlbumsParams, 'albumType' | 'assetType'>) => Promise<ReturnType>;
7
7
  export {};
@@ -1 +1 @@
1
- 'use strict';function e(c,y){const h=B();return e=function(E,d){E=E-0x85;let k=h[E];return k;},e(c,y);}const V=e;(function(n,i){const w=e,g=n();while(!![]){try{const x=-parseInt(w(0x8e))/0x1*(parseInt(w(0x88))/0x2)+parseInt(w(0x94))/0x3*(-parseInt(w(0xa4))/0x4)+-parseInt(w(0x9d))/0x5+-parseInt(w(0xa7))/0x6*(parseInt(w(0x98))/0x7)+parseInt(w(0x8d))/0x8*(parseInt(w(0x87))/0x9)+parseInt(w(0x9b))/0xa*(-parseInt(w(0x9a))/0xb)+parseInt(w(0x9e))/0xc;if(x===i)break;else g['push'](g['shift']());}catch(l){g['push'](g['shift']());}}}(B,0x322e7));function B(){const L=['Recen','23994nknGlw','Album','getAl','Error','21aptNkF','all','22QERzJe','1277810nFUelP','All','1483605XIjtzP','10167492wzAtqQ','lengt','otos\x20','edges','clone','Smart','8GCirmw','getPh','andro','225846KqDYsh','bums\x20','node','36cYoZHO','14988ujnNnu','otos','bums','forEa','selec','573512SHmaEo','33mhUBDc','push','Deep','image','title'];B=function(){return L;};return B();}import{CameraRoll as y}from'@react-native-camera-roll/camera-roll';import{Platform as h}from'react-native';import{verifyAndroidPermissions as E}from'./getPhotos';import k from'lodash';export const getAlbums=async({albumType:i=V(0xa3)+V(0x95),assetType:g=V(0x9c)})=>{const F=V;try{if(h['OS']===F(0xa6)+'id'&&!await E())throw new Error(F(0xa5)+F(0xa0)+F(0x97));const x=await y[F(0x96)+F(0x8a)]({'albumType':i,'assetType':g});if(x&&x[F(0x9f)+'h']){const l=[];return k[F(0xa2)+F(0x90)](x)[F(0x8b)+'ch'](v=>{const R=F,z=new Promise(async(A,U)=>{const C=e;try{const S=await y[C(0xa5)+C(0x89)]({'assetType':g,'first':0x1,'groupName':v[C(0x92)],'groupTypes':h[C(0x8c)+'t']({'ios':v[C(0x92)]===C(0x93)+'ts'?C(0x9c):C(0xa3)+C(0x95),'android':void 0x0})});S?.[C(0xa1)]?.[0x0]?.[C(0x86)]?.[C(0x91)]&&(v[C(0x91)]=S[C(0xa1)][0x0][C(0x86)][C(0x91)]),A(v);}catch{A(v);}});l[R(0x8f)](z);}),{'Albums':await Promise[F(0x99)](l)};}return{'Albums':[]};}catch{throw new Error(F(0x96)+F(0x85)+F(0x97));}};
1
+ 'use strict';const R=g;(function(P,b){const f=g,N=P();while(!![]){try{const k=-parseInt(f(0x1c8))/0x1*(parseInt(f(0x1e8))/0x2)+-parseInt(f(0x1e5))/0x3+parseInt(f(0x1d5))/0x4*(-parseInt(f(0x1c9))/0x5)+-parseInt(f(0x1e2))/0x6+-parseInt(f(0x1da))/0x7*(-parseInt(f(0x1db))/0x8)+-parseInt(f(0x1d6))/0x9+parseInt(f(0x1d4))/0xa;if(k===b)break;else N['push'](N['shift']());}catch(O){N['push'](N['shift']());}}}(Y,0x8e007));function g(U,n){const I=Y();return g=function(D,P){D=D-0x1c8;let b=I[D];return b;},g(U,n);}import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';import{Platform as n}from'react-native';function Y(){const u=['bums','push','14WDUawo','738024bzJUZn','Recen','otos','Error','image','Album','All','3196068QHtzDJ','node','Deep','2059050NjavEM','getPh','andro','410762zFISks','5PIosGG','93295PCliKG','bums\x20','Smart','title','selec','clone','getAl','lengt','all','edges','otos\x20','43812840YwSNtI','176rzqtnq','8254998uazBRP','forEa'];Y=function(){return u;};return Y();}import{verifyAndroidPermissions as I}from'./getPhotos';import D from'lodash';export const getAlbums=async({albumType:P=R(0x1cb)+R(0x1e0),assetType:b=R(0x1e1)})=>{const x=R;try{if(n['OS']===x(0x1e7)+'id'&&!await I())throw new Error(x(0x1e6)+x(0x1d3)+x(0x1de));const N=await U[x(0x1cf)+x(0x1d8)]({'albumType':P,'assetType':b});if(N&&N[x(0x1d0)+'h']){const k=[];return D[x(0x1ce)+x(0x1e4)](N)[x(0x1d7)+'ch'](O=>{const G=x,T=new Promise(async(V,p)=>{const q=g;try{const E=await U[q(0x1e6)+q(0x1dd)]({'assetType':b,'first':0x1,'groupName':O[q(0x1cc)],'groupTypes':n[q(0x1cd)+'t']({'ios':O[q(0x1cc)]===q(0x1dc)+'ts'?q(0x1e1):q(0x1cb)+q(0x1e0),'android':void 0x0})});E?.[q(0x1d2)]?.[0x0]?.[q(0x1e3)]?.[q(0x1df)]&&(O[q(0x1df)]=E[q(0x1d2)][0x0][q(0x1e3)][q(0x1df)]),V(O);}catch{V(O);}});k[G(0x1d9)](T);}),{'Albums':await Promise[x(0x1d1)](k)};}return{'Albums':[]};}catch{throw new Error(x(0x1cf)+x(0x1ca)+x(0x1de));}};
@@ -1 +1 @@
1
- 'use strict';(function(y,h){const n=B,E=y();while(!![]){try{const d=parseInt(n(0x14d))/0x1*(-parseInt(n(0x145))/0x2)+-parseInt(n(0x14b))/0x3+parseInt(n(0x143))/0x4*(parseInt(n(0x141))/0x5)+-parseInt(n(0x144))/0x6+parseInt(n(0x146))/0x7*(parseInt(n(0x14e))/0x8)+-parseInt(n(0x14c))/0x9+parseInt(n(0x147))/0xa*(parseInt(n(0x140))/0xb);if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0x7fe48));function c(){const g=['4497522oFqOfw','11250SWlwDS','7hSjNrd','54060YbtQbY','getLo','save','setUr','2496918igwqFk','6842367cPysfU','80ejRzgY','8314352EackUQ','calAs','2827EHxSrV','4436840ZYZhqD','i\x20Err','4FvEoQF'];c=function(){return g;};return c();}function B(e,y){const h=c();return B=function(E,d){E=E-0x13f;let k=h[E];return k;},B(e,y);}import{CameraRoll as e}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async y=>{const i=B;try{return await e[i(0x149)](y);}catch{throw new Error(i(0x148)+i(0x13f)+i(0x14a)+i(0x142)+'or');}};
1
+ 'use strict';function g(U,n){const I=Y();return g=function(D,P){D=D-0x1ed;let b=I[D];return b;},g(U,n);}function Y(){const O=['40815FcZeKZ','182wXXkLv','2105dPOazw','i\x20Err','35832KKaWkH','calAs','380zzmDCa','getLo','6KdlOfL','setUr','1856294EFnyBD','19777fGIkcZ','24ARRcst','5310VapcFo','save','260247zmmTjI','2706908bNxlxS'];Y=function(){return O;};return Y();}(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0x1fa))/0x1*(parseInt(N(0x1f7))/0x2)+parseInt(N(0x1ed))/0x3+parseInt(N(0x1ee))/0x4+-parseInt(N(0x1f1))/0x5*(parseInt(N(0x1fc))/0x6)+parseInt(N(0x1f0))/0x7*(-parseInt(N(0x1f3))/0x8)+parseInt(N(0x1ef))/0x9*(-parseInt(N(0x1f5))/0xa)+parseInt(N(0x1f9))/0xb*(parseInt(N(0x1fb))/0xc);if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x5cd7c));import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async n=>{const k=g;try{return await U[k(0x1fd)](n);}catch{throw new Error(k(0x1f6)+k(0x1f4)+k(0x1f8)+k(0x1f2)+'or');}};
@@ -7,5 +7,5 @@ type ReturnType = {
7
7
  iOSLimited: boolean;
8
8
  };
9
9
  export declare const verifyAndroidPermissions: () => Promise<boolean>;
10
- export declare const getPhotos: ({ after, first, groupName, groupTypes, }: Pick<GetPhotosParams, "after" | "first" | "groupName" | "groupTypes">) => Promise<ReturnType>;
10
+ export declare const getPhotos: ({ after, first, groupName, groupTypes, }: Pick<GetPhotosParams, 'after' | 'first' | 'groupName' | 'groupTypes'>) => Promise<ReturnType>;
11
11
  export {};
@@ -1 +1 @@
1
- 'use strict';function B(e,y){const h=c();return B=function(E,d){E=E-0x141;let k=h[E];return k;},B(e,y);}(function(d,k){const V=B,i=d();while(!![]){try{const g=-parseInt(V(0x17e))/0x1+parseInt(V(0x18b))/0x2*(parseInt(V(0x15c))/0x3)+parseInt(V(0x185))/0x4+parseInt(V(0x191))/0x5*(-parseInt(V(0x184))/0x6)+parseInt(V(0x171))/0x7*(parseInt(V(0x14f))/0x8)+-parseInt(V(0x193))/0x9+-parseInt(V(0x182))/0xa*(-parseInt(V(0x18a))/0xb);if(g===k)break;else i['push'](i['shift']());}catch(x){i['push'](i['shift']());}}}(c,0x6a585));function c(){const R=['limit','node','ants','album','has_n','reque','GRANT','edges','1002696DOEkYh','check','playa','NAL_S','image','picke','fileS','age','Size','page_','getPh','ion','Versi','3yRxeTO','PERMI','all','ess','Deny','otos\x20','ext_p','const','s\x20are','ratio','_VIDE','cess\x20','and\x20s','RESUL','bleDu','s\x20Acc','SSION','eVers','ame','READ_','ssion','28XQYXsy','Photo','stMul','photo','Recen','MEDIA','Allow','Nativ','ired\x20','\x20requ','info','end_c','hare\x20','576581yRrdUF','tiple','ursor','TORAG','4110mVQAqd','Ask\x20M','24774SyVzNT','1634052XMqSwd','andro','EXTER','Error','map','12507gVmtdI','335326dVPBFD','_IMAG','All','react','filen','then','260TQmYDz','ize','2861577uQHYVz','minor','Permi','e\x20Lat','to\x20ac','selec','otos'];c=function(){return R;};return c();}import{CameraRoll as y}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as h,Platform as E}from'react-native';export const verifyAndroidPermissions=async()=>{const F=B,d=E[F(0x163)+F(0x149)][F(0x18e)+F(0x178)+F(0x16d)+F(0x15a)]?.[F(0x141)]>=0x47,k=E[F(0x15b)+'on']>=0x21,i=d&&k;return await((()=>i?Promise[F(0x15e)]([h[F(0x150)](h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x18c)+'ES']),h[F(0x150)](h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x166)+'O'])])[F(0x190)](([g,x])=>g&&x):h[F(0x150)](h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x187)+F(0x152)+F(0x181)+'E']))())?!0x0:await((()=>i?h[F(0x14c)+F(0x173)+F(0x17f)]([h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x18c)+'ES'],h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x166)+'O']])[F(0x190)](g=>g[h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x18c)+'ES']]===h[F(0x169)+'TS'][F(0x14d)+'ED']&&g[h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x176)+F(0x166)+'O']]===h[F(0x169)+'TS'][F(0x14d)+'ED']):h[F(0x14c)+'st'](h[F(0x15d)+F(0x16c)+'S'][F(0x16f)+F(0x187)+F(0x152)+F(0x181)+'E'],{'buttonNegative':F(0x160),'buttonNeutral':F(0x183)+F(0x143)+'er','buttonPositive':F(0x177),'message':F(0x142)+F(0x170)+F(0x164)+F(0x17a)+F(0x179)+F(0x144)+F(0x167)+F(0x168)+F(0x17d)+F(0x174)+'s.','title':F(0x172)+F(0x16b)+F(0x15f)})[F(0x190)](g=>g===h[F(0x169)+'TS'][F(0x14d)+'ED']))());},getPhotos=async({after:d,first:k,groupName:g,groupTypes:x})=>{const C=B;try{if(E['OS']===C(0x186)+'id'&&!await verifyAndroidPermissions())throw new Error(C(0x159)+C(0x161)+C(0x188));const l=await y[C(0x159)+C(0x146)]({'after':d,'assetType':C(0x18d),'groupName':g===C(0x175)+'ts'?void 0x0:g,'groupTypes':E[C(0x145)+'t']({'ios':g===C(0x175)+'ts'?C(0x18d):x,'android':void 0x0}),'first':k,'includeSharedAlbums':!0x0,'include':[C(0x155)+C(0x192),C(0x18f)+C(0x16e),C(0x153)+C(0x157),C(0x151)+C(0x16a)+C(0x165)+'n',C(0x14a)+'s']}),v=l[C(0x14e)][C(0x189)](w=>({'source':C(0x154)+'r',...w[C(0x148)][C(0x153)],'fileSize':w[C(0x148)][C(0x153)][C(0x155)+C(0x192)]??0x0})),z=l[C(0x158)+C(0x17b)][C(0x14b)+C(0x162)+C(0x156)],U=l[C(0x158)+C(0x17b)][C(0x17c)+C(0x180)];return{'assets':v,'endCursor':U,'hasNextPage':z,'iOSLimited':!!l[C(0x147)+'ed']};}catch{throw new Error(C(0x159)+C(0x161)+C(0x188));}};
1
+ 'use strict';function g(U,n){const I=Y();return g=function(D,P){D=D-0x190;let b=I[D];return b;},g(U,n);}function Y(){const q=['1158122HxHPXT','Size','ssion','Error','Ask\x20M','ursor','MEDIA','Allow','_IMAG','1313448YBdjCU','RESUL','otos','node','then','ants','GRANT','3345123uIPrnv','ratio','Permi','all','selec','Recen','and\x20s','limit','1642680cRFIDo','page_','Deny','playa','hare\x20','Nativ','2214996ClvJov','TORAG','has_n','NAL_S','filen','bleDu','25569018RzJokK','to\x20ac','react','_VIDE','album','SSION','image','\x20requ','All','end_c','getPh','tiple','stMul','map','eVers','age','7WHqOzv','fileS','info','e\x20Lat','4144172VDfjFc','cess\x20','andro','s\x20are','ize','reque','ess','Versi','ext_p','minor','check','const','2KXuuyT','Photo','ion','edges','picke','otos\x20','s\x20Acc','PERMI','READ_','photo','ired\x20','EXTER','ame'];Y=function(){return q;};return Y();}(function(P,b){const R=g,N=P();while(!![]){try{const k=parseInt(R(0x1aa))/0x1*(parseInt(R(0x19d))/0x2)+parseInt(R(0x1ba))/0x3+parseInt(R(0x191))/0x4+-parseInt(R(0x1c2))/0x5+parseInt(R(0x1c8))/0x6+parseInt(R(0x1de))/0x7*(parseInt(R(0x1b3))/0x8)+-parseInt(R(0x1ce))/0x9;if(k===b)break;else N['push'](N['shift']());}catch(O){N['push'](N['shift']());}}}(Y,0xa44f7));import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as I,Platform as D}from'react-native';export const verifyAndroidPermissions=async()=>{const d=g,P=D[d(0x19c)+d(0x1b8)][d(0x1d0)+d(0x1c7)+d(0x1dc)+d(0x19f)]?.[d(0x19a)]>=0x47,b=D[d(0x198)+'on']>=0x21,N=P&&b;return await((()=>N?Promise[d(0x1bd)]([I[d(0x19b)](I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1b2)+'ES']),I[d(0x19b)](I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1d1)+'O'])])[d(0x1b7)](([k,O])=>k&&O):I[d(0x19b)](I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1a8)+d(0x1cb)+d(0x1c9)+'E']))())?!0x0:await((()=>N?I[d(0x196)+d(0x1da)+d(0x1d9)]([I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1b2)+'ES'],I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1d1)+'O']])[d(0x1b7)](k=>k[I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1b2)+'ES']]===I[d(0x1b4)+'TS'][d(0x1b9)+'ED']&&k[I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1b0)+d(0x1d1)+'O']]===I[d(0x1b4)+'TS'][d(0x1b9)+'ED']):I[d(0x196)+'st'](I[d(0x1a4)+d(0x1d3)+'S'][d(0x1a5)+d(0x1a8)+d(0x1cb)+d(0x1c9)+'E'],{'buttonNegative':d(0x1c4),'buttonNeutral':d(0x1ae)+d(0x190)+'er','buttonPositive':d(0x1b1),'message':d(0x1bc)+d(0x1ac)+d(0x194)+d(0x1d5)+d(0x1a7)+d(0x1cf)+d(0x192)+d(0x1c0)+d(0x1c6)+d(0x1a6)+'s.','title':d(0x19e)+d(0x1a3)+d(0x197)})[d(0x1b7)](k=>k===I[d(0x1b4)+'TS'][d(0x1b9)+'ED']))());},getPhotos=async({after:P,first:b,groupName:N,groupTypes:k})=>{const x=g;try{if(D['OS']===x(0x193)+'id'&&!await verifyAndroidPermissions())throw new Error(x(0x1d8)+x(0x1a2)+x(0x1ad));const O=await U[x(0x1d8)+x(0x1b5)]({'after':P,'assetType':x(0x1d6),'groupName':N===x(0x1bf)+'ts'?void 0x0:N,'groupTypes':D[x(0x1be)+'t']({'ios':N===x(0x1bf)+'ts'?x(0x1d6):k,'android':void 0x0}),'first':b,'includeSharedAlbums':!0x0,'include':[x(0x1df)+x(0x195),x(0x1cc)+x(0x1a9),x(0x1d4)+x(0x1ab),x(0x1c5)+x(0x1cd)+x(0x1bb)+'n',x(0x1d2)+'s']}),T=O[x(0x1a0)][x(0x1db)](f=>({'source':x(0x1a1)+'r',...f[x(0x1b6)][x(0x1d4)],'fileSize':f[x(0x1b6)][x(0x1d4)][x(0x1df)+x(0x195)]??0x0})),V=O[x(0x1c3)+x(0x1e0)][x(0x1ca)+x(0x199)+x(0x1dd)],p=O[x(0x1c3)+x(0x1e0)][x(0x1d7)+x(0x1af)];return{'assets':T,'endCursor':p,'hasNextPage':V,'iOSLimited':!!O[x(0x1c1)+'ed']};}catch{throw new Error(x(0x1d8)+x(0x1a2)+x(0x1ad));}};
@@ -1 +1 @@
1
- 'use strict';const x=B;function B(e,y){const h=c();return B=function(E,d){E=E-0x1de;let k=h[E];return k;},B(e,y);}function c(){const l=['8zEzfnc','Versi','resol','3710052hhHjuf','47040BPRhFV','1309764ssBFFu','ios','787540ZnIBbF','1155srNBpt','435368KrZzaX','then','25AvFxyz','18354ZgDakw','3300iAVBlW','1317576ePWYhk'];c=function(){return l;};return c();}(function(E,d){const g=B,k=E();while(!![]){try{const n=-parseInt(g(0x1e3))/0x1+parseInt(g(0x1e1))/0x2+-parseInt(g(0x1ea))/0x3+-parseInt(g(0x1e5))/0x4*(-parseInt(g(0x1e7))/0x5)+-parseInt(g(0x1e8))/0x6*(parseInt(g(0x1e4))/0x7)+parseInt(g(0x1eb))/0x8*(-parseInt(g(0x1df))/0x9)+-parseInt(g(0x1e0))/0xa*(-parseInt(g(0x1e9))/0xb);if(n===d)break;else k['push'](k['shift']());}catch(i){k['push'](k['shift']());}}}(c,0x71ea5));import{Platform as y}from'react-native';import{iosRefreshGallerySelection as h}from'@react-native-camera-roll/camera-roll';const o=y['OS']===x(0x1e2)&&parseInt(y[x(0x1ec)+'on'],0xa)>=0xe;export const iOS14RefreshGallerySelection=()=>o?h()[x(0x1e6)](()=>{}):Promise[x(0x1de)+'ve']();
1
+ 'use strict';const O=g;(function(I,D){const k=g,P=I();while(!![]){try{const b=parseInt(k(0x13f))/0x1+-parseInt(k(0x138))/0x2+-parseInt(k(0x13b))/0x3*(-parseInt(k(0x141))/0x4)+-parseInt(k(0x143))/0x5*(-parseInt(k(0x139))/0x6)+parseInt(k(0x142))/0x7+parseInt(k(0x13a))/0x8*(-parseInt(k(0x145))/0x9)+-parseInt(k(0x144))/0xa;if(b===D)break;else P['push'](P['shift']());}catch(N){P['push'](P['shift']());}}}(Y,0xa5daa));import{Platform as U}from'react-native';import{iosRefreshGallerySelection as n}from'@react-native-camera-roll/camera-roll';function Y(){const T=['11389410WHZITA','9NjyITk','1651424eFdOOv','100176BjZzak','2751304iiKUJe','13824HzrAMu','Versi','ios','then','722703lPglJC','resol','876ngSIzI','8324855Pqhoxm','20nicyVq'];Y=function(){return T;};return Y();}const o=U['OS']===O(0x13d)&&parseInt(U[O(0x13c)+'on'],0xa)>=0xe;function g(U,n){const I=Y();return g=function(D,P){D=D-0x138;let b=I[D];return b;},g(U,n);}export const iOS14RefreshGallerySelection=()=>o?n()[O(0x13e)](()=>{}):Promise[O(0x140)+'ve']();
@@ -1 +1 @@
1
- 'use strict';(function(e,y){var k=B,h=e();while(!![]){try{var E=-parseInt(k(0x1a6))/0x1+parseInt(k(0x1a8))/0x2*(-parseInt(k(0x1a4))/0x3)+-parseInt(k(0x1a9))/0x4*(parseInt(k(0x1a5))/0x5)+-parseInt(k(0x1a3))/0x6+-parseInt(k(0x1a7))/0x7*(-parseInt(k(0x1a2))/0x8)+parseInt(k(0x1a1))/0x9+parseInt(k(0x1aa))/0xa;if(E===y)break;else h['push'](h['shift']());}catch(d){h['push'](h['shift']());}}}(c,0xda103));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./iOS14RefreshGallerySelection';export*from'./getAlbums';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./shareImage';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';function B(e,y){var h=c();return B=function(E,d){E=E-0x1a1;var k=h[E];return k;},B(e,y);}export*from'./takePhoto';export*from'./triggerHaptic';export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';function c(){var n=['2792LRxFka','4319880gGNMGC','234321YZbYiH','105UfVrcD','1267501ANMHAd','22526bPzUsK','38MEHceY','131628kIEsxJ','22902080CcFQNl','14782122jQcFBJ'];c=function(){return n;};return c();}
1
+ 'use strict';(function(U,n){var b=g,I=U();while(!![]){try{var D=-parseInt(b(0xe6))/0x1*(parseInt(b(0xe0))/0x2)+parseInt(b(0xe4))/0x3+-parseInt(b(0xe2))/0x4+-parseInt(b(0xde))/0x5+-parseInt(b(0xe1))/0x6+-parseInt(b(0xe7))/0x7*(parseInt(b(0xe5))/0x8)+-parseInt(b(0xdf))/0x9*(-parseInt(b(0xe3))/0xa);if(D===n)break;else I['push'](I['shift']());}catch(P){I['push'](I['shift']());}}}(Y,0x7903a));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./iOS14RefreshGallerySelection';export*from'./getAlbums';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./shareImage';function g(U,n){var I=Y();return g=function(D,P){D=D-0xde;var b=I[D];return b;},g(U,n);}export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';export*from'./Video';function Y(){var N=['1017BXdbyc','732884nzkymw','5082690wCJKzJ','1188556XkUOGW','311570LymqOI','68439oWsYgF','16XYIWtN','1HnBTOG','2246832CNiEYv','4476160EDvwlR'];Y=function(){return N;};return Y();}export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
@@ -1 +1 @@
1
- 'use strict';(function(y,h){const n=B,E=y();while(!![]){try{const d=parseInt(n(0x1f6))/0x1+parseInt(n(0x1f3))/0x2*(-parseInt(n(0x1f4))/0x3)+-parseInt(n(0x1fb))/0x4*(-parseInt(n(0x1f1))/0x5)+-parseInt(n(0x1f5))/0x6+-parseInt(n(0x1fc))/0x7*(parseInt(n(0x1fd))/0x8)+-parseInt(n(0x1fa))/0x9*(parseInt(n(0x1f7))/0xa)+-parseInt(n(0x1f0))/0xb*(-parseInt(n(0x1f2))/0xc);if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0xa9018));function B(e,y){const h=c();return B=function(E,d){E=E-0x1ee;let k=h[E];return k;},B(e,y);}import e from'react-native-fs';function c(){const g=['10977894QGqeei','8zkcPGK','1267RcrKZJ','33240wmCfBT','stFil','isExi','29732659nbjMdD','1635070bRXXrR','12jzpkMb','2950UuLkrn','1977zMMYio','3160560nJKEly','805857qjfmDk','10sVVBiF','exist','e\x20Err'];c=function(){return g;};return c();}export const isExistFile=async y=>{const i=B;try{return await e[i(0x1f8)+'s'](y);}catch{throw new Error(i(0x1ef)+i(0x1ee)+i(0x1f9)+'or');}};
1
+ 'use strict';(function(n,I){const N=g,D=n();while(!![]){try{const P=parseInt(N(0x189))/0x1*(-parseInt(N(0x188))/0x2)+-parseInt(N(0x183))/0x3*(parseInt(N(0x18c))/0x4)+-parseInt(N(0x182))/0x5*(-parseInt(N(0x186))/0x6)+-parseInt(N(0x190))/0x7+-parseInt(N(0x18f))/0x8*(parseInt(N(0x18a))/0x9)+parseInt(N(0x184))/0xa+parseInt(N(0x185))/0xb;if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x663f0));function g(U,n){const I=Y();return g=function(D,P){D=D-0x182;let b=I[D];return b;},g(U,n);}function Y(){const O=['exist','e\x20Err','488uUcdpW','1825957FkLWpL','186330ghOqLK','32031NTHCmz','2184560RizIOu','16910608ZcmRcn','36jPXcRH','isExi','46CHtkOm','31193BStpKl','2421VTWRIf','stFil','212efySgy'];Y=function(){return O;};return Y();}import U from'react-native-fs';export const isExistFile=async n=>{const k=g;try{return await U[k(0x18d)+'s'](n);}catch{throw new Error(k(0x187)+k(0x18b)+k(0x18e)+'or');}};
@@ -1 +1 @@
1
- 'use strict';const x=B;function c(){const v=['551802omZuTg','28040PmVpAs','ios','163260TibDin','addLi','stene','Versi','7vQeKZg','elect','remov','ange','1935YVWcba','ionCh','1811346QtcRGP','18790vharqD','17809EtRMPG','48VdLVQr','onLib','raryS','1070862FGklSE','808830KhwYDS'];c=function(){return v;};return c();}function B(e,y){const h=c();return B=function(E,d){E=E-0xd3;let k=h[E];return k;},B(e,y);}(function(h,E){const g=B,d=h();while(!![]){try{const k=-parseInt(g(0xe4))/0x1+-parseInt(g(0xe2))/0x2+-parseInt(g(0xdf))/0x3*(parseInt(g(0xe7))/0x4)+parseInt(g(0xe3))/0x5+-parseInt(g(0xdc))/0x6*(parseInt(g(0xd6))/0x7)+parseInt(g(0xe5))/0x8*(-parseInt(g(0xda))/0x9)+-parseInt(g(0xdd))/0xa*(-parseInt(g(0xde))/0xb);if(k===E)break;else d['push'](d['shift']());}catch(n){d['push'](d['shift']());}}}(c,0x63a40));import{cameraRollEventEmitter as e}from'@react-native-camera-roll/camera-roll';import{Platform as y}from'react-native';const i=y['OS']===x(0xe6)&&parseInt(y[x(0xd5)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(h){const l=x;if(i){const E=e[l(0xd3)+l(0xd4)+'r'](l(0xe0)+l(0xe1)+l(0xd7)+l(0xdb)+l(0xd9),h);return{'unsubscribe':()=>{const t=l;E[t(0xd8)+'e']();}};}return{'unsubscribe':()=>{}};}
1
+ 'use strict';const O=g;(function(I,D){const k=g,P=I();while(!![]){try{const b=parseInt(k(0xdd))/0x1+-parseInt(k(0xda))/0x2+-parseInt(k(0xdb))/0x3*(-parseInt(k(0xce))/0x4)+parseInt(k(0xd4))/0x5*(parseInt(k(0xdc))/0x6)+parseInt(k(0xd8))/0x7*(-parseInt(k(0xd7))/0x8)+-parseInt(k(0xd1))/0x9+parseInt(k(0xd0))/0xa;if(b===D)break;else P['push'](P['shift']());}catch(N){P['push'](P['shift']());}}}(Y,0x8ad1f));import{cameraRollEventEmitter as U}from'@react-native-camera-roll/camera-roll';function Y(){const p=['379561McJJzp','onLib','1520074eyJoHU','3246EHCowM','18ynCOZX','904107TbKPUy','ionCh','ios','addLi','Versi','76uCYseb','ange','4741880ddiUlf','4938507PZGQVS','elect','stene','1430125FmcttL','remov','raryS','56eypAUs'];Y=function(){return p;};return Y();}import{Platform as n}from'react-native';function g(U,n){const I=Y();return g=function(D,P){D=D-0xce;let b=I[D];return b;},g(U,n);}const i=n['OS']===O(0xdf)&&parseInt(n[O(0xe1)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(I){const T=O;if(i){const D=U[T(0xe0)+T(0xd3)+'r'](T(0xd9)+T(0xd6)+T(0xd2)+T(0xde)+T(0xcf),I);return{'unsubscribe':()=>{const V=T;D[V(0xd5)+'e']();}};}return{'unsubscribe':()=>{}};}
@@ -1 +1 @@
1
- 'use strict';(function(y,h){const n=B,E=y();while(!![]){try{const d=parseInt(n(0xd4))/0x1+parseInt(n(0xdd))/0x2+parseInt(n(0xd2))/0x3*(parseInt(n(0xd3))/0x4)+-parseInt(n(0xd8))/0x5*(-parseInt(n(0xdb))/0x6)+-parseInt(n(0xd9))/0x7+parseInt(n(0xdc))/0x8+-parseInt(n(0xd6))/0x9;if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0xb94ac));import{pick as e}from'@react-native-documents/picker';function c(){const g=['2317966teAMsb','map','3055434RKoIFn','898424NDibRN','2033120BLENSs','692613JfXcOJ','20nTrZBl','147436oEpVwx','slice','16648191dbBxrk','lengt','5nJtpfO'];c=function(){return g;};return c();}function B(e,y){const h=c();return B=function(E,d){E=E-0xd2;let k=h[E];return k;},B(e,y);}export const pickDocument=async y=>{const i=B;try{let h=await e({'allowMultiSelection':!0x0});return y&&h[i(0xd7)+'h']>y&&(h=[h[0x0],...h[i(0xd5)](0x1,y)]),{'assets':h[i(0xda)](({name:E,size:d,uri:k})=>({'uri':k,'size':d,'name':E})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
1
+ 'use strict';(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0xbe))/0x1*(-parseInt(N(0xb7))/0x2)+parseInt(N(0xc2))/0x3*(parseInt(N(0xc3))/0x4)+parseInt(N(0xb6))/0x5+-parseInt(N(0xbf))/0x6*(parseInt(N(0xbc))/0x7)+-parseInt(N(0xbd))/0x8+parseInt(N(0xb9))/0x9*(-parseInt(N(0xc1))/0xa)+parseInt(N(0xba))/0xb;if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x42114));function g(U,n){const I=Y();return g=function(D,P){D=D-0xb6;let b=I[D];return b;},g(U,n);}function Y(){const O=['72039GMJNCd','lengt','14QsFPzW','137096nkKuiK','75965TyJFyM','416718EsOKge','slice','20LfsmgF','10929SyRLaX','220pXOzJf','2273565UYUHpM','4TmaLYh','map','1741059RFcPmp'];Y=function(){return O;};return Y();}import{pick as U}from'@react-native-documents/picker';export const pickDocument=async n=>{const k=g;try{let I=await U({'allowMultiSelection':!0x0});return n&&I[k(0xbb)+'h']>n&&(I=[I[0x0],...I[k(0xc0)](0x1,n)]),{'assets':I[k(0xb8)](({name:D,size:P,uri:b})=>({'uri':b,'size':P,'name':D})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
@@ -1 +1 @@
1
- 'use strict';const A=e;(function(d,k){const s=e,n=d();while(!![]){try{const i=-parseInt(s(0xe5))/0x1+parseInt(s(0xe0))/0x2+-parseInt(s(0xff))/0x3+-parseInt(s(0xec))/0x4+-parseInt(s(0xfe))/0x5+-parseInt(s(0xe2))/0x6*(-parseInt(s(0xeb))/0x7)+parseInt(s(0xfa))/0x8;if(i===k)break;else n['push'](n['shift']());}catch(g){n['push'](n['shift']());}}}(B,0x31bd9));function e(c,y){const h=B();return e=function(E,d){E=E-0xdd;let k=h[E];return k;},e(c,y);}import{Image as y,Platform as h}from'react-native';import E from'react-native-image-crop-picker';function B(){const w=['icker','max','image','6436656BJLtXX','aller','path','\x20get\x20','886750nRaIHc','449433ZoMUsG','error','getSi','ictur','145402AGwShF','\x20of\x20p','309900bgJsDN','rom\x20g','ring','79977XxsUwN','Error','openP','andro','size','subst','7csmSGT','1272232SfKWSV','width','picke','heigh','lastI','ker\x20f','\x20size','min','ndexO','ios','e\x20pic'];B=function(){return w;};return B();}export const pickPhoto=async({compressImageQuality:d=h['OS']===A(0xf5)?0.8:0x1,cropping:k=!0x1})=>{const U=A,n=await E[U(0xe7)+U(0xf7)]({'compressImageQuality':Math[U(0xf3)](Math[U(0xf8)](0x0,d),0x1),'cropping':k===!0x0});if(n[U(0xef)+'t']&&n[U(0xed)]&&n[U(0xfc)]){let g;if(h['OS']===U(0xe8)+'id'){const x=()=>new Promise(l=>{const S=U;y[S(0xde)+'ze'](n[S(0xfc)],(v,z)=>{l({'height':z,'width':v});});});try{const l=await x();g={'width':l[U(0xed)],'height':l[U(0xef)+'t']};}catch(v){console[U(0xdd)](U(0xe6)+U(0xfd)+U(0xf9)+U(0xf2)+U(0xe1)+U(0xdf)+U(0xf6)+U(0xf1)+U(0xe3)+U(0xfb)+'y\x20',v);}}else g={'height':n[U(0xef)+'t'],'width':n[U(0xed)]};if(g){const z=n[U(0xfc)][U(0xf0)+U(0xf4)+'f']('/');return{'source':U(0xee)+'r','name':n[U(0xfc)][U(0xea)+U(0xe4)](z+0x1),'size':n[U(0xe9)],'uri':n[U(0xfc)],...g};}else return;}};
1
+ 'use strict';function Y(){const x=['image','ndexO','subst','ring','8tPWiwG','2434305azjnPv','Error','max','\x20of\x20p','2UQtwLt','332276LGfdSs','e\x20pic','picke','8058984WONrKb','ictur','size','\x20get\x20','error','1280133YLGCrc','1229166rhLKxY','rom\x20g','4901708ADXvob','22oNPgED','\x20size','heigh','min','path','6upggVP','lastI','icker','width','ker\x20f','aller','1789400BdKqzo','andro','4tLwEOt','getSi','ios','openP'];Y=function(){return x;};return Y();}const f=g;(function(D,P){const E=g,b=D();while(!![]){try{const N=parseInt(E(0x9e))/0x1*(-parseInt(E(0x9d))/0x2)+-parseInt(E(0xa7))/0x3*(parseInt(E(0x90))/0x4)+parseInt(E(0x99))/0x5*(parseInt(E(0x88))/0x6)+-parseInt(E(0xa9))/0x7+parseInt(E(0x98))/0x8*(parseInt(E(0xa6))/0x9)+-parseInt(E(0x8e))/0xa+-parseInt(E(0xaa))/0xb*(-parseInt(E(0xa1))/0xc);if(N===P)break;else b['push'](b['shift']());}catch(k){b['push'](b['shift']());}}}(Y,0x55b68));function g(U,n){const I=Y();return g=function(D,P){D=D-0x84;let b=I[D];return b;},g(U,n);}import{Image as U,Platform as n}from'react-native';import I from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:D=n['OS']===f(0x92)?0.8:0x1,cropping:P=!0x1})=>{const R=f,b=await I[R(0x93)+R(0x8a)]({'compressImageQuality':Math[R(0x86)](Math[R(0x9b)](0x0,D),0x1),'cropping':P===!0x0});if(b[R(0x85)+'t']&&b[R(0x8b)]&&b[R(0x87)]){let N;if(n['OS']===R(0x8f)+'id'){const k=()=>new Promise(O=>{const d=R;U[d(0x91)+'ze'](b[d(0x87)],(T,V)=>{O({'height':V,'width':T});});});try{const O=await k();N={'width':O[R(0x8b)],'height':O[R(0x85)+'t']};}catch(T){console[R(0xa5)](R(0x9a)+R(0xa4)+R(0x94)+R(0x84)+R(0x9c)+R(0xa2)+R(0x9f)+R(0x8c)+R(0xa8)+R(0x8d)+'y\x20',T);}}else N={'height':b[R(0x85)+'t'],'width':b[R(0x8b)]};if(N){const V=b[R(0x87)][R(0x89)+R(0x95)+'f']('/');return{'source':R(0xa0)+'r','name':b[R(0x87)][R(0x96)+R(0x97)](V+0x1),'size':b[R(0xa3)],'uri':b[R(0x87)],...N};}else return;}};
@@ -2,5 +2,5 @@ import { DownloadProgressCallbackResult } from 'react-native-fs';
2
2
  export declare const saveFile: ({ fileName, fromUrl, onProgress, }: {
3
3
  fileName: string;
4
4
  fromUrl: string;
5
- onProgress?: (data: DownloadProgressCallbackResult) => void;
5
+ onProgress?: ((data: DownloadProgressCallbackResult) => void) | undefined;
6
6
  }) => Promise<string>;
@@ -1 +1 @@
1
- 'use strict';(function(y,h){const n=B,E=y();while(!![]){try{const d=parseInt(n(0x145))/0x1+parseInt(n(0x13f))/0x2*(-parseInt(n(0x142))/0x3)+parseInt(n(0x141))/0x4+-parseInt(n(0x14e))/0x5+-parseInt(n(0x14c))/0x6+parseInt(n(0x138))/0x7*(-parseInt(n(0x13b))/0x8)+-parseInt(n(0x13c))/0x9*(-parseInt(n(0x13e))/0xa);if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0x44320));function B(e,y){const h=c();return B=function(E,d){E=E-0x138;let k=h[E];return k;},B(e,y);}import e from'react-native-fs';export const saveFile=async({fileName:y,fromUrl:h,onProgress:E})=>{const i=B;try{const d=e[i(0x14a)+i(0x13a)+i(0x148)+i(0x143)]+'/'+encodeURIComponent(y);return await e[i(0x149)+i(0x144)+'le']({'fromUrl':h,'toFile':d,'background':!0x0,'discretionary':!0x0,'progress':E,'begin':k=>{},'progressDivider':0x5})[i(0x140)+'se'],i(0x14b)+'//'+d;}catch{throw new Error(i(0x146)+i(0x147)+i(0x14d)+i(0x13d)+i(0x139)+'..');}};function c(){const g=['Cache','file:','173712eEQLwB','g\x20ima','905955fKCTvo','54523mPpWNS','iled.','sDire','408AaXgQn','27hIOCdj','ge\x20fa','2231510ISJyjn','225744xBVMby','promi','1380424YHAnHZ','9cWfCBQ','Path','oadFi','210767DVDrVX','Downl','oadin','ctory','downl'];c=function(){return g;};return c();}
1
+ 'use strict';(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0x156))/0x1*(parseInt(N(0x166))/0x2)+parseInt(N(0x165))/0x3*(-parseInt(N(0x15c))/0x4)+-parseInt(N(0x16a))/0x5+-parseInt(N(0x160))/0x6+parseInt(N(0x167))/0x7*(-parseInt(N(0x16c))/0x8)+parseInt(N(0x159))/0x9*(-parseInt(N(0x16b))/0xa)+parseInt(N(0x15f))/0xb*(parseInt(N(0x168))/0xc);if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x6ff98));import U from'react-native-fs';function g(U,n){const I=Y();return g=function(D,P){D=D-0x155;let b=I[D];return b;},g(U,n);}function Y(){const O=['24zDYFjS','ge\x20fa','946385CyrqhR','923530puTzbC','1584sqDYHT','ctory','promi','10KqhJta','oadin','Path','9CFzPLN','Cache','downl','392EyaiEx','iled.','oadFi','14266186NKFmNY','4091376KwcIJo','file:','Downl','g\x20ima','sDire','4893CQLsnZ','33672DAsqmv','29820HFoibn'];Y=function(){return O;};return Y();}export const saveFile=async({fileName:n,fromUrl:I,onProgress:D})=>{const k=g;try{const P=U[k(0x15a)+k(0x164)+k(0x16d)+k(0x158)]+'/'+encodeURIComponent(n);return await U[k(0x15b)+k(0x15e)+'le']({'fromUrl':I,'toFile':P,'background':!0x0,'discretionary':!0x0,'progress':D,'begin':b=>{},'progressDivider':0x5})[k(0x155)+'se'],k(0x161)+'//'+P;}catch{throw new Error(k(0x162)+k(0x157)+k(0x163)+k(0x169)+k(0x15d)+'..');}};
@@ -1 +1 @@
1
- 'use strict';function B(e,y){const h=c();return B=function(E,d){E=E-0x1b8;let k=h[E];return k;},B(e,y);}const i=B;(function(y,h){const n=B,E=y();while(!![]){try{const d=-parseInt(n(0x1b8))/0x1*(parseInt(n(0x1ba))/0x2)+parseInt(n(0x1be))/0x3*(parseInt(n(0x1bc))/0x4)+parseInt(n(0x1c3))/0x5+-parseInt(n(0x1bf))/0x6*(parseInt(n(0x1c1))/0x7)+-parseInt(n(0x1b9))/0x8*(-parseInt(n(0x1bd))/0x9)+parseInt(n(0x1bb))/0xa*(-parseInt(n(0x1c2))/0xb)+-parseInt(n(0x1c4))/0xc;if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0x45e4e));import e from'@react-native-clipboard/clipboard';export const setClipboardString=y=>e[i(0x1c0)+i(0x1c5)](y);function c(){const g=['28qGlPIg','4400478nfUolK','114135jFTnhB','161730cNDNKu','setSt','7UxvtME','21274lZQIsx','6930KwoPIh','2811264JtOKKt','ring','86192bIFsoS','8bxOKfi','4UWuEdw','190kcwazf'];c=function(){return g;};return c();}
1
+ 'use strict';const k=g;function g(U,n){const I=Y();return g=function(D,P){D=D-0xa7;let b=I[D];return b;},g(U,n);}(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0xab))/0x1+-parseInt(N(0xad))/0x2+parseInt(N(0xa9))/0x3*(-parseInt(N(0xaf))/0x4)+-parseInt(N(0xb3))/0x5*(parseInt(N(0xb2))/0x6)+parseInt(N(0xac))/0x7*(parseInt(N(0xa7))/0x8)+parseInt(N(0xae))/0x9+-parseInt(N(0xaa))/0xa*(-parseInt(N(0xa8))/0xb);if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x2ffbb));function Y(){const O=['125432pssIOr','10105689aLkmbo','1599efIkOh','10ZhvvQa','183860ENmGQK','7ltorib','298322BNaMHE','2984922xYoOrf','2844wCerie','setSt','ring','78FXJkEa','137505HMaVkn'];Y=function(){return O;};return Y();}import U from'@react-native-clipboard/clipboard';export const setClipboardString=n=>U[k(0xb0)+k(0xb1)](n);
@@ -1,7 +1,7 @@
1
1
  export declare const shareImage: (({ type, url }: {
2
2
  type: any;
3
3
  url: any;
4
- }) => Promise<true | undefined>) | null;
4
+ }) => Promise<boolean>) | null;
5
5
  export declare const shareText: (({ text }: {
6
6
  text: any;
7
- }) => Promise<true | undefined>) | null;
7
+ }) => Promise<boolean>) | null;
@@ -1 +1 @@
1
- 'use strict';const l=B;(function(h,E){const x=B,d=h();while(!![]){try{const k=-parseInt(x(0xc4))/0x1+-parseInt(x(0xd1))/0x2+-parseInt(x(0xc9))/0x3*(-parseInt(x(0xcc))/0x4)+parseInt(x(0xb6))/0x5*(parseInt(x(0xbb))/0x6)+-parseInt(x(0xc1))/0x7+parseInt(x(0xc6))/0x8+parseInt(x(0xd5))/0x9;if(k===E)break;else d['push'](d['shift']());}catch(g){d['push'](d['shift']());}}}(c,0x675ca));import{Platform as e}from'react-native';function c(){const U=['16895pcZego','gify','react',':\x20err','readF','546zWuBMz','defau','Share','ng\x20fa','are\x20i','then','3636367zECLQZ','\x20=\x20','log','416385BwAODo','open','4672664opmWqj','ile','alled','1325415YKnMCD','andro','catch','4hUojPc','strin','base6','iled.','64,','627390dnWXcf','ios','ve-sh','\x20inst','3055986dDPzJC','warn','s\x20not','data:',';base','-nati','url',':\x20res','Shari'];c=function(){return U;};return c();}import y from'react-native-fs';let t;try{t=require('react-native-share')[l(0xbc)+'lt'];}catch{console[l(0xc3)](l(0xb8)+l(0xb2)+l(0xd3)+l(0xbf)+l(0xd7)+l(0xd4)+l(0xc8));}function B(e,y){const h=c();return B=function(E,d){E=E-0xb1;let k=h[E];return k;},B(e,y);}export const shareImage=t?async({type:h,url:E})=>{const v=l;try{const d=await y[v(0xba)+v(0xc7)](E,v(0xce)+'4'),k=v(0xd8)+h+(v(0xb1)+v(0xd0))+d;return await t[v(0xc5)]({'activityItemSources':e['OS']===v(0xd2)?[{'item':{'default':{'content':E,'type':v(0xb3)}},'linkMetadata':{'icon':E},'placeholderItem':{'content':E,'type':v(0xb3)}}]:void 0x0,'excludedActivityTypes':[],'failOnCancel':!0x1,'type':h,'url':e['OS']===v(0xca)+'id'?k:void 0x0}),!0x0;}catch{console[v(0xd6)](v(0xb5)+v(0xbe)+v(0xcf)+'..');}}:null,shareText=t?async({text:h})=>{const z=l;try{return await t[z(0xc5)]({'title':h,'message':h})[z(0xc0)](E=>{const s=z;console[s(0xc3)](s(0xbd)+s(0xb4)+s(0xc2)+JSON[s(0xcd)+s(0xb7)](E));})[z(0xcb)](E=>{const A=z;console[A(0xc3)](A(0xbd)+A(0xb9)+A(0xc2)+JSON[A(0xcd)+A(0xb7)](E));}),!0x0;}catch{console[z(0xd6)](z(0xb5)+z(0xbe)+z(0xcf)+'..');}}:null;
1
+ 'use strict';function Y(){const R=['3811084ugVSFz','Shari','2yuqSMb','alled','readF',':\x20err','64,','defau','gify','data:','url','3883098eCcGuT','then','233449hhgcMO','Share','ng\x20fa','iled.','andro','strin','warn','-nati','catch','2031285OJKHcY','\x20=\x20',':\x20res','30363930gIPWdd','s\x20not','ile','react','are\x20i','7MHozoC','ios',';base','\x20inst','base6','ve-sh','log','6584032BtScQk','3082323tcPcOk','open'];Y=function(){return R;};return Y();}const T=g;(function(D,P){const O=g,b=D();while(!![]){try{const N=-parseInt(O(0x155))/0x1+parseInt(O(0x14a))/0x2*(-parseInt(O(0x146))/0x3)+-parseInt(O(0x148))/0x4+-parseInt(O(0x15e))/0x5+-parseInt(O(0x153))/0x6*(-parseInt(O(0x166))/0x7)+-parseInt(O(0x145))/0x8+parseInt(O(0x161))/0x9;if(N===P)break;else b['push'](b['shift']());}catch(k){b['push'](b['shift']());}}}(Y,0x8d1ef));import{Platform as U}from'react-native';import I from'react-native-fs';let t;try{t=require('react-native-share')[T(0x14f)+'lt'];}catch{console[T(0x144)](T(0x164)+T(0x15c)+T(0x143)+T(0x165)+T(0x162)+T(0x141)+T(0x14b));}function g(U,n){const I=Y();return g=function(D,P){D=D-0x141;let b=I[D];return b;},g(U,n);}export const shareImage=t?async({type:D,url:P})=>{const V=T;try{const b=await I[V(0x14c)+V(0x163)](P,V(0x142)+'4'),N=V(0x151)+D+(V(0x168)+V(0x14e))+b;return await t[V(0x147)]({'activityItemSources':U['OS']===V(0x167)?[{'item':{'default':{'content':P,'type':V(0x152)}},'linkMetadata':{'icon':P},'placeholderItem':{'content':P,'type':V(0x152)}}]:void 0x0,'excludedActivityTypes':[],'failOnCancel':!0x1,'type':D,'url':U['OS']===V(0x159)+'id'?N:void 0x0}),!0x0;}catch{return console[V(0x15b)](V(0x149)+V(0x157)+V(0x158)+'..'),!0x1;}}:null,shareText=t?async({text:D})=>{const p=T;try{return await t[p(0x147)]({'title':D,'message':D})[p(0x154)](P=>{const E=p;console[E(0x144)](E(0x156)+E(0x160)+E(0x15f)+JSON[E(0x15a)+E(0x150)](P));})[p(0x15d)](P=>{const f=p;console[f(0x144)](f(0x156)+f(0x14d)+f(0x15f)+JSON[f(0x15a)+f(0x150)](P));}),!0x0;}catch{return console[p(0x15b)](p(0x149)+p(0x157)+p(0x158)+'..'),!0x1;}}:null;
@@ -1 +1 @@
1
- 'use strict';const L=B;function B(e,y){const h=c();return B=function(E,d){E=E-0xc9;let k=h[E];return k;},B(e,y);}function c(){const K=['curre','CAMER','770871yuZPAQ','heigh','ot\x20gr','\x20came','AGAIN','min','utred','_ASK_','2908036KWbewm','830oEXtuc','error','5646578rAYHOH','issio','3064sInmFm','5589474HxGFnU','PERMI','subst','NEVER','size','max','getSi','Error','RESUL','DENIE','path','\x20from','image','ntSta','ra\x20','ndexO','did\x20n','\x20get\x20','reque','ant\x20c','openC','e\x20cap','\x20size','messa','camer','5eWYRDa','1684htnWVy','ring','andro','27585cGzPDp','SSION','ictur','width','843CPnrlE','check','User\x20','amera','\x20of\x20p','\x20perm','lastI','301719jJafTy','activ','ios'];c=function(){return K;};return c();}(function(i,g){const R=B,x=i();while(!![]){try{const l=-parseInt(R(0xce))/0x1+-parseInt(R(0xf6))/0x2*(parseInt(R(0xfd))/0x3)+-parseInt(R(0xd6))/0x4*(-parseInt(R(0xf5))/0x5)+-parseInt(R(0xdc))/0x6+parseInt(R(0xd9))/0x7+-parseInt(R(0xdb))/0x8*(parseInt(R(0xf9))/0x9)+parseInt(R(0xd7))/0xa*(parseInt(R(0xc9))/0xb);if(l===g)break;else x['push'](x['shift']());}catch(t){x['push'](x['shift']());}}}(c,0xaa3eb));import{AppState as e,Image as y,PermissionsAndroid as E,Platform as k}from'react-native';import n from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:g=k['OS']===L(0xcb)?0.8:0x1,cropping:x=!0x1})=>{const o=L;if(k['OS']===o(0xf8)+'id'&&E[o(0xdd)+o(0xfa)+'S'][o(0xcd)+'A']&&!await E[o(0xfe)](E[o(0xdd)+o(0xfa)+'S'][o(0xcd)+'A'])){const l=await E[o(0xee)+'st'](E[o(0xdd)+o(0xfa)+'S'][o(0xcd)+'A']);if(l===E[o(0xe4)+'TS'][o(0xe5)+'D'])return{'cancelled':!0x0};if(l===E[o(0xe4)+'TS'][o(0xdf)+o(0xd5)+o(0xd2)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const v=await n[o(0xf0)+o(0x100)]({'compressImageQuality':Math[o(0xd3)](Math[o(0xe1)](0x0,g),0x1),'cropping':x===!0x0});if(v[o(0xcf)+'t']&&v[o(0xfc)]&&v[o(0xe6)]){let z;if(k['OS']===o(0xf8)+'id'){const A=()=>new Promise(U=>{const G=o;y[G(0xe2)+'ze'](v[G(0xe6)],(w,V)=>{U({'height':V,'width':w});});});try{const U=await A();z={'width':U[o(0xfc)],'height':U[o(0xcf)+'t']};}catch(w){console[o(0xd8)](o(0xe3)+o(0xed)+o(0xe8)+o(0xf2)+o(0x101)+o(0xfb)+o(0xf1)+o(0xd4)+o(0xe7)+o(0xd1)+o(0xea),w);}}else z={'height':v[o(0xcf)+'t'],'width':v[o(0xfc)]};if(z){const V=v[o(0xe6)][o(0x103)+o(0xeb)+'f']('/');return{'cancelled':!0x1,'source':o(0xf4)+'a','name':v[o(0xe6)][o(0xde)+o(0xf7)](V+0x1),'size':v[o(0xe0)],'uri':v[o(0xe6)],...z};}else return;}}catch(F){if(F instanceof Error&&k['OS']===o(0xcb)&&e[o(0xcc)+o(0xe9)+'te']===o(0xca)+'e'){const C=o(0xff)+o(0xec)+o(0xd0)+o(0xef)+o(0x100)+o(0x102)+o(0xda)+'n.';if(F[o(0xf3)+'ge']===C)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
1
+ 'use strict';const G=g;(function(b,N){const q=g,k=b();while(!![]){try{const O=-parseInt(q(0x1f2))/0x1*(-parseInt(q(0x1f5))/0x2)+parseInt(q(0x1fe))/0x3*(-parseInt(q(0x1f6))/0x4)+parseInt(q(0x1df))/0x5*(-parseInt(q(0x1ed))/0x6)+-parseInt(q(0x1dd))/0x7*(-parseInt(q(0x1f0))/0x8)+-parseInt(q(0x1e7))/0x9+parseInt(q(0x1cf))/0xa+parseInt(q(0x1db))/0xb*(parseInt(q(0x1f4))/0xc);if(O===N)break;else k['push'](k['shift']());}catch(T){k['push'](k['shift']());}}}(Y,0xe5649));function g(U,n){const I=Y();return g=function(D,P){D=D-0x1c7;let b=I[D];return b;},g(U,n);}function Y(){const l=['ntSta','Error','path','570fowDOf','ring','\x20perm','8MXIYUo','reque','1vGrGgx','lastI','6602748BCJuem','1995586FAkUjG','212HiGWlu','ot\x20gr','User\x20','ios','andro','\x20from','messa','\x20size','41502REnyQi','DENIE','SSION','AGAIN','image','issio','\x20get\x20','PERMI','check','CAMER','camer','subst','amera','10858670MCcnbA','error','max','curre','RESUL','width','NEVER','activ','ant\x20c','getSi','\x20came','ra\x20','33yEevAB','\x20of\x20p','8334459vtVBiU','ictur','93480IgEjpn','_ASK_','did\x20n','heigh','ndexO','e\x20cap','min','size','13284621nnmUkh','openC','utred'];Y=function(){return l;};return Y();}import{AppState as U,Image as n,PermissionsAndroid as I,Platform as D}from'react-native';import P from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:b=D['OS']===G(0x1f9)?0.8:0x1,cropping:N=!0x1})=>{const u=G;if(D['OS']===u(0x1fa)+'id'&&I[u(0x1c9)+u(0x200)+'S'][u(0x1cb)+'A']&&!await I[u(0x1ca)](I[u(0x1c9)+u(0x200)+'S'][u(0x1cb)+'A'])){const k=await I[u(0x1f1)+'st'](I[u(0x1c9)+u(0x200)+'S'][u(0x1cb)+'A']);if(k===I[u(0x1d3)+'TS'][u(0x1ff)+'D'])return{'cancelled':!0x0};if(k===I[u(0x1d3)+'TS'][u(0x1d5)+u(0x1e0)+u(0x201)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const O=await P[u(0x1e8)+u(0x1ce)]({'compressImageQuality':Math[u(0x1e5)](Math[u(0x1d1)](0x0,b),0x1),'cropping':N===!0x0});if(O[u(0x1e2)+'t']&&O[u(0x1d4)]&&O[u(0x1ec)]){let T;if(D['OS']===u(0x1fa)+'id'){const V=()=>new Promise(p=>{const i=u;n[i(0x1d8)+'ze'](O[i(0x1ec)],(E,f)=>{p({'height':f,'width':E});});});try{const p=await V();T={'width':p[u(0x1d4)],'height':p[u(0x1e2)+'t']};}catch(E){console[u(0x1d0)](u(0x1eb)+u(0x1c8)+u(0x202)+u(0x1fd)+u(0x1dc)+u(0x1de)+u(0x1e4)+u(0x1e9)+u(0x1fb)+u(0x1d9)+u(0x1da),E);}}else T={'height':O[u(0x1e2)+'t'],'width':O[u(0x1d4)]};if(T){const f=O[u(0x1ec)][u(0x1f3)+u(0x1e3)+'f']('/');return{'cancelled':!0x1,'source':u(0x1cc)+'a','name':O[u(0x1ec)][u(0x1cd)+u(0x1ee)](f+0x1),'size':O[u(0x1e6)],'uri':O[u(0x1ec)],...T};}else return;}}catch(R){if(R instanceof Error&&D['OS']===u(0x1f9)&&U[u(0x1d2)+u(0x1ea)+'te']===u(0x1d6)+'e'){const x=u(0x1f8)+u(0x1e1)+u(0x1f7)+u(0x1d7)+u(0x1ce)+u(0x1ef)+u(0x1c7)+'n.';if(R[u(0x1fc)+'ge']===x)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
@@ -1 +1 @@
1
- 'use strict';function B(e,y){const h=c();return B=function(E,d){E=E-0x154;let k=h[E];return k;},B(e,y);}(function(y,h){const n=B,E=y();while(!![]){try{const d=-parseInt(n(0x15a))/0x1*(-parseInt(n(0x157))/0x2)+-parseInt(n(0x159))/0x3+-parseInt(n(0x156))/0x4*(parseInt(n(0x158))/0x5)+-parseInt(n(0x15e))/0x6*(parseInt(n(0x15d))/0x7)+parseInt(n(0x15b))/0x8+-parseInt(n(0x155))/0x9+parseInt(n(0x154))/0xa;if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0xb6ea3));import e from'react-native-haptic-feedback';export const triggerHaptic=y=>{const i=B;e[i(0x15c)+'er'](y,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};function c(){const g=['22364200HcRlXJ','10369125ApNDkA','1144eoZQEg','2BymjnL','25335hPvAdd','1255521ekWTqu','926038eeiHVE','10159216mGWWTF','trigg','7cvAbdr','3980082JBuMHa'];c=function(){return g;};return c();}
1
+ 'use strict';(function(n,I){const N=g,D=n();while(!![]){try{const P=-parseInt(N(0x191))/0x1*(-parseInt(N(0x18f))/0x2)+-parseInt(N(0x188))/0x3+parseInt(N(0x18a))/0x4*(-parseInt(N(0x190))/0x5)+-parseInt(N(0x18b))/0x6*(-parseInt(N(0x189))/0x7)+parseInt(N(0x18d))/0x8*(parseInt(N(0x18c))/0x9)+parseInt(N(0x18e))/0xa+-parseInt(N(0x192))/0xb*(parseInt(N(0x194))/0xc);if(P===I)break;else D['push'](D['shift']());}catch(b){D['push'](D['shift']());}}}(Y,0x310c0));function g(U,n){const I=Y();return g=function(D,P){D=D-0x188;let b=I[D];return b;},g(U,n);}import U from'react-native-haptic-feedback';export const triggerHaptic=n=>{const k=g;U[k(0x193)+'er'](n,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};function Y(){const O=['135SJaeir','169320xAsPDR','2979850nLZaCP','143974xBbwpf','85XnnhNo','2PFugWW','2529318XhnHvq','trigg','12DMqcVa','378861vthlDc','21xrkbTw','54712WjjpXW','60426waSnli'];Y=function(){return O;};return Y();}
package/src/index.d.ts CHANGED
@@ -3,3 +3,6 @@ export * from '@communi/keyboard-area-react-native';
3
3
  export * from '@communi/mqtt-client-react-native';
4
4
  export * from '@communi/mqtt-client-interface-typescript';
5
5
  export * from '@communi/chat-api-client-typescript';
6
+ export { PSChat } from './PSChat';
7
+ export type { PSChatProps } from './PSChat';
8
+ export * from './files/PSFileOpenProvider';
package/src/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';(function(M,H){var c3=E,c0=M();while(!![]){try{var c1=parseInt(c3(0xf4))/0x1*(-parseInt(c3(0xf6))/0x2)+-parseInt(c3(0xf2))/0x3*(-parseInt(c3(0xfb))/0x4)+parseInt(c3(0xfa))/0x5+-parseInt(c3(0xf7))/0x6*(-parseInt(c3(0xf5))/0x7)+-parseInt(c3(0xf9))/0x8*(-parseInt(c3(0xf3))/0x9)+-parseInt(c3(0xfc))/0xa*(parseInt(c3(0xfe))/0xb)+-parseInt(c3(0xf8))/0xc*(parseInt(c3(0xfd))/0xd);if(c1===H)break;else c0['push'](c0['shift']());}catch(c2){c0['push'](c0['shift']());}}}(B,0x54be8));function E(c,e){var y=B();return E=function(h,d){h=h-0xf2;var k=y[h];return k;},E(c,e);}import{registerNativeHandlers as v}from'@communi/chat-ui-react-native';function B(){var c4=['12JBhDlS','12YPeQqY','1266152PszeGD','1988700iFHpHq','232TNydIK','10WaFQyj','16159897ynpkZE','315238DdRGLf','34179UmYBhA','36xiMyTl','653833bOVazS','2033717fHqHAl','2ebWzWH'];B=function(){return c4;};return B();}import{addKeyboardListener as z,removeKeyboardListener as U,setWindowSoftInputAdjustNothing as w,setWindowSoftInputAdjustResize as V,createMQTTClient as F,deleteFile as C,getLocalAssetUri as R,getPhotos as L,getAlbums as G,isExistFile as K,oniOS14GalleryLibrarySelectionChange as D,saveFile as O,takePhoto as Z,pickPhoto as Y,Video as Q,DatePicker as J,setClipboardString as W,triggerHaptic as q,pickDocument as I,iOS14RefreshGallerySelection as j,shareImage as T,shareText as X,setWindowSoftInputAdjustPan as N}from'./handlers';v({'addKeyboardListener':z,'removeKeyboardListener':U,'setWindowSoftInputAdjustNothing':w,'setWindowSoftInputAdjustResize':V,'setWindowSoftInputAdjustPan':N,'createMQTTClient':F,'deleteFile':C,'getLocalAssetUri':R,'getPhotos':L,'iOS14RefreshGallerySelection':j,'getAlbums':G,'isExistFile':K,'oniOS14GalleryLibrarySelectionChange':D,'pickDocument':I,'saveFile':O,'setClipboardString':W,'shareImage':T,'shareText':X,'takePhoto':Z,'pickPhoto':Y,'triggerHaptic':q,'Video':Q,'DatePicker':J});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
1
+ 'use strict';function U(g,n){var I=Y();return U=function(D,P){D=D-0x1b7;var b=I[D];return b;},U(g,n);}(function(C,H){var Y3=U,Y0=C();while(!![]){try{var Y1=-parseInt(Y3(0x1bf))/0x1+-parseInt(Y3(0x1b7))/0x2+parseInt(Y3(0x1b9))/0x3*(-parseInt(Y3(0x1b8))/0x4)+parseInt(Y3(0x1be))/0x5+parseInt(Y3(0x1ba))/0x6+parseInt(Y3(0x1bb))/0x7*(parseInt(Y3(0x1bd))/0x8)+parseInt(Y3(0x1bc))/0x9;if(Y1===H)break;else Y0['push'](Y0['shift']());}catch(Y2){Y0['push'](Y0['shift']());}}}(Y,0x81fbf));import{registerNativeHandlers as I}from'@communi/chat-ui-react-native';import{addKeyboardListener as D,removeKeyboardListener as N,setWindowSoftInputAdjustNothing as O,setWindowSoftInputAdjustResize as T,createMQTTClient as V,deleteFile as E,getLocalAssetUri as R,getPhotos as q,getAlbums as G,isExistFile as j,oniOS14GalleryLibrarySelectionChange as w,saveFile as Q,takePhoto as M,pickPhoto as L,Video as J,DatePicker as K,setClipboardString as W,triggerHaptic as X,pickDocument as v,iOS14RefreshGallerySelection as B,shareImage as F,shareText as z,setWindowSoftInputAdjustPan as Z}from'./handlers';I({'addKeyboardListener':D,'removeKeyboardListener':N,'setWindowSoftInputAdjustNothing':O,'setWindowSoftInputAdjustResize':T,'setWindowSoftInputAdjustPan':Z,'createMQTTClient':V,'deleteFile':E,'getLocalAssetUri':R,'getPhotos':q,'iOS14RefreshGallerySelection':B,'getAlbums':G,'isExistFile':j,'oniOS14GalleryLibrarySelectionChange':w,'pickDocument':v,'saveFile':Q,'setClipboardString':W,'shareImage':F,'shareText':z,'takePhoto':M,'pickPhoto':L,'triggerHaptic':X,'Video':J,'DatePicker':K});export*from'@communi/chat-ui-react-native';function Y(){var Y4=['168rAGWHS','2790387xLPOrr','31016xjRTNd','4784245TDsGlI','531383zEYOsZ','1136222xsAaFO','3568dMJzPP','1731raxhTB','4719918dCthBD'];Y=function(){return Y4;};return Y();}export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';export{PSChat}from'./PSChat';export*from'./files/PSFileOpenProvider';
@@ -1 +1 @@
1
- 'use strict';function c(){const g=['12pMRlsf','\x20\x22rea','25315947dVUBLe','ct-na','589930zjyENq','115371wxAnpg','picke','131642lIrvsm','2104512MzXLjb','defau','Cần\x20c','date-','18IAnhJw','1838073WcgJrD','warn','ài\x20đặ','tive-','t\x20gói','575352ElYskX'];c=function(){return g;};return c();}const i=B;function B(e,y){const h=c();return B=function(E,d){E=E-0x1ae;let k=h[E];return k;},B(e,y);}(function(y,h){const n=B,E=y();while(!![]){try{const d=parseInt(n(0x1bb))/0x1*(-parseInt(n(0x1af))/0x2)+-parseInt(n(0x1b0))/0x3+-parseInt(n(0x1b5))/0x4+-parseInt(n(0x1ba))/0x5+-parseInt(n(0x1b6))/0x6*(parseInt(n(0x1bd))/0x7)+-parseInt(n(0x1be))/0x8+parseInt(n(0x1b8))/0x9;if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0x92539));let e;try{e=require('react-native-date-picker')[i(0x1bf)+'lt'];}catch{console[i(0x1b1)](i(0x1c0)+i(0x1b2)+i(0x1b4)+i(0x1b7)+i(0x1b9)+i(0x1b3)+i(0x1ae)+i(0x1bc)+'r\x22');}export{e as DatePickerComponent};
1
+ 'use strict';const N=g;(function(U,n){const b=g,I=U();while(!![]){try{const D=-parseInt(b(0xf0))/0x1+parseInt(b(0xf7))/0x2+parseInt(b(0xe5))/0x3*(-parseInt(b(0xee))/0x4)+parseInt(b(0xea))/0x5+-parseInt(b(0xe7))/0x6+parseInt(b(0xf5))/0x7+parseInt(b(0xf2))/0x8*(parseInt(b(0xeb))/0x9);if(D===n)break;else I['push'](I['shift']());}catch(P){I['push'](I['shift']());}}}(Y,0x62cea));let e;try{e=require('react-native-date-picker')[N(0xec)+'lt'];}catch{console[N(0xf1)](N(0xef)+N(0xe8)+N(0xf6)+N(0xe6)+N(0xed)+N(0xf4)+N(0xf3)+N(0xe9)+'r\x22');}function Y(){const k=['2550807BtgOJs','t\x20gói','988428LYzlSS','11823EDmuXC','\x20\x22rea','2066088nbgYpt','ài\x20đặ','picke','1101260tWOobk','9ptHhzl','defau','ct-na','148OQelQq','Cần\x20c','462589FdMVrL','warn','2228808ACpMRL','date-','tive-'];Y=function(){return k;};return Y();}function g(U,n){const I=Y();return g=function(D,P){D=D-0xe5;let b=I[D];return b;},g(U,n);}export{e as DatePickerComponent};
@@ -1 +1 @@
1
- 'use strict';const i=B;function B(e,y){const h=c();return B=function(E,d){E=E-0x7a;let k=h[E];return k;},B(e,y);}(function(y,h){const n=B,E=y();while(!![]){try{const d=-parseInt(n(0x86))/0x1+parseInt(n(0x80))/0x2*(parseInt(n(0x7d))/0x3)+parseInt(n(0x89))/0x4*(-parseInt(n(0x84))/0x5)+-parseInt(n(0x82))/0x6*(parseInt(n(0x7c))/0x7)+-parseInt(n(0x8d))/0x8*(parseInt(n(0x88))/0x9)+parseInt(n(0x83))/0xa+parseInt(n(0x87))/0xb;if(d===h)break;else E['push'](E['shift']());}catch(k){E['push'](E['shift']());}}}(c,0xa0886));function c(){const g=['140596ycqswZ','6702938caqIfF','9pDqznN','4fvItRz','tive-','Cần\x20c','ct-na','7842792cesmxN','\x20\x22rea','video','678601mZoHSb','139071aOFrLc','defau','warn','54cDzCGE','ài\x20đặ','48PtZXAu','9133850gRqggF','1101755eJvyuG','t\x20gói'];c=function(){return g;};return c();}let e;try{e=require('react-native-video')[i(0x7e)+'lt'];}catch{console[i(0x7f)](i(0x8b)+i(0x81)+i(0x85)+i(0x7a)+i(0x8c)+i(0x8a)+i(0x7b)+'\x22');}export{e as AudioVideoComponent};
1
+ 'use strict';function g(U,n){const I=Y();return g=function(D,P){D=D-0x178;let b=I[D];return b;},g(U,n);}const N=g;function Y(){const k=['213265DGNTQX','ài\x20đặ','video','Cần\x20c','30PtHDhM','7223031rWYPHM','590576ufABMs','4402036oUMcgj','400wgLrSF','ct-na','t\x20gói','8122112huXtjI','3vKQHaf','tive-','148200FTuyRV','\x20\x22rea','warn','2013QEJPgU','defau','1294fVbuDC'];Y=function(){return k;};return Y();}(function(U,n){const b=g,I=U();while(!![]){try{const D=-parseInt(b(0x186))/0x1*(parseInt(b(0x17b))/0x2)+parseInt(b(0x17f))/0x3*(-parseInt(b(0x17a))/0x4)+parseInt(b(0x187))/0x5+parseInt(b(0x18b))/0x6*(-parseInt(b(0x179))/0x7)+-parseInt(b(0x17e))/0x8+parseInt(b(0x178))/0x9+parseInt(b(0x181))/0xa*(parseInt(b(0x184))/0xb);if(D===n)break;else I['push'](I['shift']());}catch(P){I['push'](I['shift']());}}}(Y,0xb9c1b));let e;try{e=require('react-native-video')[N(0x185)+'lt'];}catch{console[N(0x183)](N(0x18a)+N(0x188)+N(0x17d)+N(0x182)+N(0x17c)+N(0x180)+N(0x189)+'\x22');}export{e as AudioVideoComponent};
@@ -1 +1 @@
1
- 'use strict';(function(e,y){var k=B,h=e();while(!![]){try{var E=-parseInt(k(0x1a0))/0x1*(parseInt(k(0x19a))/0x2)+-parseInt(k(0x19e))/0x3*(parseInt(k(0x19c))/0x4)+parseInt(k(0x19b))/0x5*(-parseInt(k(0x195))/0x6)+parseInt(k(0x197))/0x7+parseInt(k(0x19d))/0x8*(parseInt(k(0x198))/0x9)+-parseInt(k(0x194))/0xa*(-parseInt(k(0x19f))/0xb)+-parseInt(k(0x196))/0xc*(-parseInt(k(0x199))/0xd);if(E===y)break;else h['push'](h['shift']());}catch(d){h['push'](h['shift']());}}}(c,0x700fd));function c(){var n=['1228506hQWTCN','12108nmpBaw','5125253JVMLTV','5589zzBCVz','19201gGYUMH','177260IyARYB','10WBnLSE','134312xEihKp','896jxVuZX','78xZvvBF','1231307fTAvIa','10vuAnnQ','30ygCzeV'];c=function(){return n;};return c();}function B(e,y){var h=c();return B=function(E,d){E=E-0x194;var k=h[E];return k;},B(e,y);}export*from'./DatePicker';export*from'./Video';
1
+ 'use strict';(function(U,n){var b=g,I=U();while(!![]){try{var D=-parseInt(b(0x127))/0x1+parseInt(b(0x126))/0x2+-parseInt(b(0x120))/0x3+parseInt(b(0x121))/0x4+parseInt(b(0x11e))/0x5*(parseInt(b(0x125))/0x6)+-parseInt(b(0x122))/0x7*(parseInt(b(0x11f))/0x8)+-parseInt(b(0x123))/0x9*(parseInt(b(0x124))/0xa);if(D===n)break;else I['push'](I['shift']());}catch(P){I['push'](I['shift']());}}}(Y,0xcb476));function Y(){var N=['6dGaYzZ','2825978gPetyU','158056VlxqFj','3419375QrfErC','8XfLDAC','1880565xLbifE','4480980dBKiWq','8554847iGKmKD','9hZzmzs','3774470DhLFsQ'];Y=function(){return N;};return Y();}function g(U,n){var I=Y();return g=function(D,P){D=D-0x11e;var b=I[D];return b;},g(U,n);}export*from'./DatePicker';export*from'./Video';