@communi/chat-react-native 2.0.7 → 2.5.3
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.
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/handlers/DatePicker.js +1 -1
- package/src/handlers/Keyboard.js +1 -1
- package/src/handlers/MQTT.js +1 -1
- package/src/handlers/Video.js +1 -1
- package/src/handlers/deleteFile.js +1 -1
- package/src/handlers/getAlbums.d.ts +7 -0
- package/src/handlers/getAlbums.js +1 -0
- package/src/handlers/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.d.ts +2 -1
- package/src/handlers/getPhotos.js +1 -1
- package/src/handlers/index.d.ts +1 -0
- package/src/handlers/index.js +1 -1
- package/src/handlers/isExistFile.js +1 -1
- package/src/handlers/oniOS14GalleryLibrarySelectionChange.js +1 -1
- package/src/handlers/pickDocument.js +1 -1
- package/src/handlers/pickPhoto.js +1 -1
- package/src/handlers/saveFile.js +1 -1
- package/src/handlers/setClipboardString.js +1 -1
- package/src/handlers/takePhoto.js +1 -1
- package/src/handlers/triggerHaptic.js +1 -1
- package/src/index.js +1 -1
- package/src/optionalDependencies/DatePicker.js +1 -1
- package/src/optionalDependencies/Video.js +1 -1
- package/src/optionalDependencies/index.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(O,u){var M=z,i=O();while(!![]){try{var g=parseInt(M(0x1c0))/0x1*(-parseInt(M(0x1b6))/0x2)+-parseInt(M(0x1bf))/0x3*(-parseInt(M(0x1bd))/0x4)+parseInt(M(0x1b7))/0x5*(-parseInt(M(0x1bc))/0x6)+parseInt(M(0x1b8))/0x7*(-parseInt(M(0x1bb))/0x8)+parseInt(M(0x1c1))/0x9+-parseInt(M(0x1be))/0xa+-parseInt(M(0x1b9))/0xb*(-parseInt(M(0x1ba))/0xc);if(g===u)break;else i['push'](i['shift']());}catch(s){i['push'](i['shift']());}}}(S,0x26d59));function z(O,u){var i=S();return z=function(g,s){g=g-0x1b6;var M=i[g];return M;},z(O,u);}export*from'./src';function S(){var T=['89742WwldML','16495TJDpSH','392kMoKBc','107492DhinpH','888DgKryd','11848tEOTMI','6usqEGs','52kxgqaz','2938350ZFfAiK','7383zfXpxd','7cBZfVs','882999YajIoH'];S=function(){return T;};return S();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@communi/chat-api-client-typescript": "^2.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.5.3",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.5.3",
|
|
13
13
|
"@communi/keyboard-area-react-native": "^2.0.1",
|
|
14
14
|
"@communi/mqtt-client-interface-typescript": "^2.0.1",
|
|
15
15
|
"@communi/mqtt-client-react-native": "^2.0.1"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const m=z;function S(){const V=['526076TcVNJj','760664OAcLXK','6WndZld','45xsOSbS','5823360WleeFV','creat','90HzIlix','27882602vQLcyo','45cgxvMt','2228ezvqNr','12ZGfMZV','eElem','2986459btJLpn','ent','19262DdWFSf'];S=function(){return V;};return S();}(function(i,g){const b=z,s=i();while(!![]){try{const M=-parseInt(b(0x1ce))/0x1+parseInt(b(0x1cd))/0x2*(-parseInt(b(0x1d1))/0x3)+parseInt(b(0x1c8))/0x4*(-parseInt(b(0x1d4))/0x5)+-parseInt(b(0x1d0))/0x6*(parseInt(b(0x1cb))/0x7)+-parseInt(b(0x1cf))/0x8*(parseInt(b(0x1c7))/0x9)+-parseInt(b(0x1d2))/0xa+parseInt(b(0x1c6))/0xb*(parseInt(b(0x1c9))/0xc);if(M===g)break;else s['push'](s['shift']());}catch(T){s['push'](s['shift']());}}}(S,0x5a4a3));function z(O,u){const i=S();return z=function(g,s){g=g-0x1c6;let M=i[g];return M;},z(O,u);}import O from'react';import{DatePickerComponent as u}from'../optionalDependencies/DatePicker';export const DatePicker=u?({modal:g,open:s,date:M,minimumDate:T,onConfirm:Z,onCancel:C})=>O[m(0x1d3)+m(0x1ca)+m(0x1cc)](u,{'modal':g,'open':s,'date':M,'minimumDate':T,'onConfirm':Z,'onCancel':C}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const C=z;(function(i,g){const Z=z,s=i();while(!![]){try{const M=parseInt(Z(0xac))/0x1+parseInt(Z(0xb8))/0x2+-parseInt(Z(0xbd))/0x3+parseInt(Z(0xb9))/0x4*(-parseInt(Z(0xad))/0x5)+-parseInt(Z(0xba))/0x6+parseInt(Z(0xb5))/0x7*(parseInt(Z(0xbc))/0x8)+-parseInt(Z(0xa3))/0x9*(-parseInt(Z(0xae))/0xa);if(M===g)break;else s['push'](s['shift']());}catch(T){s['push'](s['shift']());}}}(S,0x79480));function S(){const b=['ener','isten','setWi','522515JgfJcW','ndowS','ST_NO','1015288LRtFrk','8vlerpa','4240890AfItDd','oftIn','8dFozlE','98730rAsCDf','INPUT','ST_RE','62280MwOOlH','yboar','eKeyb','dList','putMo','_ADJU','SIZE','SOFT_','THING','844874WDmoyA','615075ZZsRUJ','80HMpGgq','remov','oardL','addKe'];S=function(){return b;};return S();}function z(O,u){const i=S();return z=function(g,s){g=g-0xa3;let M=i[g];return M;},z(O,u);}import{PSKeyboard as O,SoftInputMode as u}from'@communi/keyboard-area-react-native';export const addKeyboardListener=i=>O[C(0xb1)+C(0xa4)+C(0xa6)+C(0xb2)](i),removeKeyboardListener=i=>O[C(0xaf)+C(0xa5)+C(0xb0)+C(0xb3)+'er'](i),setWindowSoftInputAdjustNothing=()=>O[C(0xb4)+C(0xb6)+C(0xbb)+C(0xa7)+'de'](u[C(0xaa)+C(0xbe)+C(0xa8)+C(0xb7)+C(0xab)]),setWindowSoftInputAdjustResize=()=>O[C(0xb4)+C(0xb6)+C(0xbb)+C(0xa7)+'de'](u[C(0xaa)+C(0xbe)+C(0xa8)+C(0xbf)+C(0xa9)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const Z=z;function S(){const C=['8lhSMTu','15340491yzCVwm','574799iSDnSr','16902mZdkbO','572eVOOlC','4ubzdzN','789850medwcX','1937529FFGNiJ','23471388yxHSuM','getIn','stanc','12fCxZRM','3661ygrtLt','6610WJtOAy'];S=function(){return C;};return S();}(function(u,i){const T=z,g=u();while(!![]){try{const s=parseInt(T(0x171))/0x1*(-parseInt(T(0x174))/0x2)+-parseInt(T(0x176))/0x3+parseInt(T(0x17a))/0x4*(parseInt(T(0x175))/0x5)+parseInt(T(0x172))/0x6*(-parseInt(T(0x16d))/0x7)+-parseInt(T(0x16f))/0x8*(-parseInt(T(0x170))/0x9)+-parseInt(T(0x16e))/0xa*(-parseInt(T(0x173))/0xb)+parseInt(T(0x177))/0xc;if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0xdbb9e));function z(O,u){const i=S();return z=function(g,s){g=g-0x16d;let M=i[g];return M;},z(O,u);}import{MQTTClient as O}from'@communi/mqtt-client-react-native';export const createMQTTClient=async u=>O[Z(0x178)+Z(0x179)+'e'](u);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const n=z;(function(g,s){const G=z,M=g();while(!![]){try{const T=-parseInt(G(0x1ac))/0x1+parseInt(G(0x1a9))/0x2+-parseInt(G(0x1ae))/0x3*(parseInt(G(0x1a7))/0x4)+parseInt(G(0x1b3))/0x5+-parseInt(G(0x1a8))/0x6*(parseInt(G(0x1a6))/0x7)+parseInt(G(0x1b0))/0x8*(parseInt(G(0x1ab))/0x9)+parseInt(G(0x1aa))/0xa;if(T===s)break;else M['push'](M['shift']());}catch(Z){M['push'](M['shift']());}}}(S,0xda727));import O from'react';import{AudioVideoComponent as i}from'../optionalDependencies/Video';function z(O,u){const i=S();return z=function(g,s){g=g-0x1a5;let M=i[g];return M;},z(O,u);}function S(){const H=['1280907WKaEKO','397893rSZANC','creat','96783BROULc','eElem','56rTnUrm','ent','ignor','5330790MVmvqk','error','8597155znJgqR','128tnqATT','6YsHOhs','2174956LZfikR','4032720JSibTP'];S=function(){return H;};return S();}export const Video=i?({onBuffer:g,onEnd:M,onLoad:T,onProgress:Z,paused:C,repeat:b,resizeMode:m,style:V,uri:v,videoRef:Q})=>O[n(0x1ad)+n(0x1af)+n(0x1b1)](i,{'ignoreSilentSwitch':n(0x1b2)+'e','onBuffer':g,'onEnd':M,'onError':P=>{const J=n;console[J(0x1a5)](P);},'onLoad':T,'onProgress':Z,'paused':C,'ref':Q,'repeat':b,'resizeMode':m,'source':{'uri':v},'style':V}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(u,i){const T=z,g=u();while(!![]){try{const s=-parseInt(T(0xbf))/0x1+parseInt(T(0xc4))/0x2+-parseInt(T(0xb5))/0x3*(-parseInt(T(0xb8))/0x4)+parseInt(T(0xba))/0x5+parseInt(T(0xbe))/0x6*(-parseInt(T(0xb9))/0x7)+-parseInt(T(0xbb))/0x8*(-parseInt(T(0xc5))/0x9)+parseInt(T(0xb6))/0xa;if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0xd25e5));function S(){const C=['5752OBEMzI','delet','ion\x20f','6TkLcth','901621lZUZLu','File\x20','log','unlin','...','120796aLkojM','5985DEoUPI','267SgfDNM','6006910khnsFn','ailed','52464PeYkrn','7239218AGitmO','2454580bpzpVo'];S=function(){return C;};return S();}function z(O,u){const i=S();return z=function(g,s){g=g-0xb5;let M=i[g];return M;},z(O,u);}import O from'react-native-fs';export const deleteFile=async({uri:u})=>{const Z=z;try{return await O[Z(0xc2)+'k'](u),!0x0;}catch(i){return console[Z(0xc1)](Z(0xc0)+Z(0xbc)+Z(0xbd)+Z(0xb7)+Z(0xc3),i),!0x1;}};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Album } from '@communi/chat-ui-react-native';
|
|
2
|
+
import { GetAlbumsParams } from '@react-native-camera-roll/camera-roll';
|
|
3
|
+
type ReturnType = {
|
|
4
|
+
Albums: Album[];
|
|
5
|
+
};
|
|
6
|
+
export declare const getAlbums: ({ albumType, assetType, }: Pick<GetAlbumsParams, 'albumType' | 'assetType'>) => Promise<ReturnType>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function z(O,u){const i=S();return z=function(g,s){g=g-0x7c;let M=i[g];return M;},z(O,u);}const n=z;(function(s,M){const G=z,T=s();while(!![]){try{const Z=parseInt(G(0x8d))/0x1+parseInt(G(0x81))/0x2+parseInt(G(0x7c))/0x3+parseInt(G(0x98))/0x4*(-parseInt(G(0x9b))/0x5)+parseInt(G(0x96))/0x6*(parseInt(G(0x90))/0x7)+-parseInt(G(0x95))/0x8+-parseInt(G(0x80))/0x9;if(Z===M)break;else T['push'](T['shift']());}catch(C){T['push'](T['shift']());}}}(S,0x816dc));import{CameraRoll as O}from'@react-native-camera-roll/camera-roll';function S(){const L=['1017065IvQIAq','push','all','getPh','selec','3402616qBDVyX','12plumbO','lengt','36ASgWIl','All','Recen','328795FHzquP','2917044vzvjLZ','node','clone','bums\x20','5776668rDcExq','1737688WueIcm','Deep','otos\x20','andro','image','Error','title','otos','forEa','bums','Smart','Album','57368yFpTtn','getAl','edges'];S=function(){return L;};return S();}import{Platform as u}from'react-native';import{verifyAndroidPermissions as i}from'./getPhotos';import g from'lodash';export const getAlbums=async({albumType:M=n(0x8b)+n(0x8c),assetType:T=n(0x99)})=>{const J=n;try{if(u['OS']===J(0x84)+'id'&&!await i())throw new Error(J(0x93)+J(0x83)+J(0x86));const Z=await O[J(0x8e)+J(0x8a)]({'albumType':M,'assetType':T});if(Z&&Z[J(0x97)+'h']){const C=[];return g[J(0x7e)+J(0x82)](Z)[J(0x89)+'ch'](b=>{const Y=J,V=new Promise(async(v,Q)=>{const H=z;try{const P=await O[H(0x93)+H(0x88)]({'assetType':T,'first':0x1,'groupName':b[H(0x87)],'groupTypes':u[H(0x94)+'t']({'ios':b[H(0x87)]===H(0x9a)+'ts'?H(0x99):H(0x8b)+H(0x8c),'android':void 0x0})});P?.[H(0x8f)]?.[0x0]?.[H(0x7d)]?.[H(0x85)]&&(b[H(0x85)]=P[H(0x8f)][0x0][H(0x7d)][H(0x85)]),v(b);}catch{v(b);}});C[Y(0x91)](V);}),{'Albums':await Promise[J(0x92)](C)};}return{'Albums':[]};}catch{throw new Error(J(0x8e)+J(0x7f)+J(0x86));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function z(O,u){const i=S();return z=function(g,s){g=g-0x10d;let M=i[g];return M;},z(O,u);}(function(u,i){const T=z,g=u();while(!![]){try{const s=-parseInt(T(0x112))/0x1+-parseInt(T(0x10d))/0x2*(-parseInt(T(0x116))/0x3)+parseInt(T(0x10f))/0x4+parseInt(T(0x113))/0x5+-parseInt(T(0x11a))/0x6+parseInt(T(0x115))/0x7+parseInt(T(0x10e))/0x8*(-parseInt(T(0x114))/0x9);if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0x2ac1f));import{CameraRoll as O}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async u=>{const Z=z;try{return await O[Z(0x118)](u);}catch{throw new Error(Z(0x117)+Z(0x111)+Z(0x119)+Z(0x110)+'or');}};function S(){const C=['809220rlFsZO','i\x20Err','calAs','742ooWeBN','1337500bRQsIU','9AhqyJb','1851052FJgOaD','366ezGTsV','getLo','save','setUr','1885032FCZfsd','4542zzItIo','4170032BHmQtp'];S=function(){return C;};return S();}
|
|
@@ -5,5 +5,6 @@ type ReturnType = {
|
|
|
5
5
|
endCursor: string | undefined;
|
|
6
6
|
hasNextPage: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const verifyAndroidPermissions: () => Promise<boolean>;
|
|
9
|
+
export declare const getPhotos: ({ after, first, groupName, groupTypes, }: Pick<GetPhotosParams, 'after' | 'first' | 'groupName' | 'groupTypes'>) => Promise<ReturnType>;
|
|
9
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(g,s){const v=z,M=g();while(!![]){try{const T=-parseInt(v(0x195))/0x1+-parseInt(v(0x16b))/0x2*(-parseInt(v(0x1a6))/0x3)+parseInt(v(0x163))/0x4+parseInt(v(0x160))/0x5+parseInt(v(0x168))/0x6+parseInt(v(0x1ac))/0x7*(-parseInt(v(0x183))/0x8)+parseInt(v(0x17a))/0x9*(-parseInt(v(0x1ae))/0xa);if(T===s)break;else M['push'](M['shift']());}catch(Z){M['push'](M['shift']());}}}(S,0x59bba));import{CameraRoll as O}from'@react-native-camera-roll/camera-roll';function S(){const G=['NAL_S','s\x20are','andro','otos','358412dZNdxT','Versi','age','stMul','ratio','has_n','album','s\x20Acc','const','\x20requ','info','ssion','end_c','page_','ired\x20','GRANT','edges','42699oACLHp','node','fileS','READ_','getPh','e\x20Lat','11053hBvoSJ','ame','254650QhVdnP','ess','tiple','3518695wKCezt','All','Error','1958996BRKbEL','otos\x20','ext_p','PERMI','map','55926QuMLoe','cess\x20','filen','66EiWaZm','Deny','_IMAG','and\x20s','_VIDE','Allow','to\x20ac','ize','SSION','Nativ','then','Size','Permi','RESUL','playa','315lamvqT','Photo','picke','ants','react','Recen','EXTER','reque','selec','280iFdiru','ion','MEDIA','ursor','check','all','hare\x20','bleDu','image','TORAG','photo','minor','eVers','Ask\x20M'];S=function(){return G;};return S();}function z(O,u){const i=S();return z=function(g,s){g=g-0x160;let M=i[g];return M;},z(O,u);}import{PermissionsAndroid as u,Platform as i}from'react-native';export const verifyAndroidPermissions=async()=>{const Q=z,g=i[Q(0x19d)+Q(0x17d)][Q(0x17e)+Q(0x174)+Q(0x18f)+Q(0x184)]?.[Q(0x18e)]>=0x47,M=i[Q(0x196)+'on']>=0x21,T=g&&M;return await((()=>T?Promise[Q(0x188)]([u[Q(0x187)](u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16d)+'ES']),u[Q(0x187)](u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16f)+'O'])])[Q(0x175)](([Z,C])=>Z&&C):u[Q(0x187)](u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x180)+Q(0x191)+Q(0x18c)+'E']))())?!0x0:await((()=>T?u[Q(0x181)+Q(0x198)+Q(0x1b0)]([u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16d)+'ES'],u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16f)+'O']])[Q(0x175)](Z=>Z[u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16d)+'ES']]===u[Q(0x178)+'TS'][Q(0x1a4)+'ED']&&Z[u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x185)+Q(0x16f)+'O']]===u[Q(0x178)+'TS'][Q(0x1a4)+'ED']):u[Q(0x181)+'st'](u[Q(0x166)+Q(0x173)+'S'][Q(0x1a9)+Q(0x180)+Q(0x191)+Q(0x18c)+'E'],{'buttonNegative':Q(0x16c),'buttonNeutral':Q(0x190)+Q(0x1ab)+'er','buttonPositive':Q(0x170),'message':Q(0x177)+Q(0x1a0)+Q(0x192)+Q(0x19e)+Q(0x1a3)+Q(0x171)+Q(0x169)+Q(0x16e)+Q(0x189)+Q(0x18d)+'s.','title':Q(0x17b)+Q(0x19c)+Q(0x1af)})[Q(0x175)](Z=>Z===u[Q(0x178)+'TS'][Q(0x1a4)+'ED']))());},getPhotos=async({after:g,first:M,groupName:T,groupTypes:Z})=>{const P=z;try{if(i['OS']===P(0x193)+'id'&&!await verifyAndroidPermissions())throw new Error(P(0x1aa)+P(0x164)+P(0x162));const C=await O[P(0x1aa)+P(0x194)]({'after':g,'assetType':P(0x161),'groupName':T===P(0x17f)+'ts'?void 0x0:T,'groupTypes':i[P(0x182)+'t']({'ios':T===P(0x17f)+'ts'?P(0x161):Z,'android':void 0x0}),'first':M,'includeSharedAlbums':!0x0,'include':[P(0x1a8)+P(0x172),P(0x16a)+P(0x1ad),P(0x18b)+P(0x176),P(0x179)+P(0x18a)+P(0x199)+'n',P(0x19b)+'s']}),b=C[P(0x1a5)][P(0x167)](d=>({'source':P(0x17c)+'r',...d[P(0x1a7)][P(0x18b)],'fileSize':d[P(0x1a7)][P(0x18b)][P(0x1a8)+P(0x172)]??0x0})),m=C[P(0x1a2)+P(0x19f)][P(0x19a)+P(0x165)+P(0x197)],V=C[P(0x1a2)+P(0x19f)][P(0x1a1)+P(0x186)];return{'assets':b,'endCursor':V,'hasNextPage':m};}catch{throw new Error(P(0x1aa)+P(0x164)+P(0x162));}};
|
package/src/handlers/index.d.ts
CHANGED
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(O,u){var M=z,i=O();while(!![]){try{var g=parseInt(M(0x1a3))/0x1+-parseInt(M(0x19d))/0x2+-parseInt(M(0x19e))/0x3*(parseInt(M(0x19f))/0x4)+parseInt(M(0x1a2))/0x5*(parseInt(M(0x1a5))/0x6)+parseInt(M(0x1a0))/0x7+-parseInt(M(0x1a4))/0x8+parseInt(M(0x1a1))/0x9*(parseInt(M(0x1a6))/0xa);if(g===u)break;else i['push'](i['shift']());}catch(s){i['push'](i['shift']());}}}(S,0x578c4));export*from'./deleteFile';function z(O,u){var i=S();return z=function(g,s){g=g-0x19d;var M=i[g];return M;},z(O,u);}export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./getAlbums';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';function S(){var T=['3949616IhNsnb','2796SfdOZj','370oXvTHI','900858mnUsfv','21DBxXLi','112452CQuvqD','2634002sBEBnT','201879zKaaNU','2245dxFvVT','84051VQzuvW'];S=function(){return T;};return S();}export*from'./triggerHaptic';export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function z(O,u){const i=S();return z=function(g,s){g=g-0x164;let M=i[g];return M;},z(O,u);}(function(u,i){const T=z,g=u();while(!![]){try{const s=parseInt(T(0x16d))/0x1+parseInt(T(0x166))/0x2+-parseInt(T(0x167))/0x3*(-parseInt(T(0x16a))/0x4)+-parseInt(T(0x169))/0x5+parseInt(T(0x170))/0x6+-parseInt(T(0x168))/0x7*(-parseInt(T(0x171))/0x8)+-parseInt(T(0x16f))/0x9*(parseInt(T(0x16c))/0xa);if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0x53dd3));import O from'react-native-fs';function S(){const C=['isExi','2025aAwFON','146466jknttK','137096ofLGHJ','e\x20Err','exist','490030LSOnUj','1223907EFPELF','280fLFGUR','253760WRgIOg','4PYjmHq','stFil','54820jniTOg','264834NcBtff'];S=function(){return C;};return S();}export const isExistFile=async u=>{const Z=z;try{return await O[Z(0x165)+'s'](u);}catch{throw new Error(Z(0x16e)+Z(0x16b)+Z(0x164)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const b=z;(function(g,s){const C=z,M=g();while(!![]){try{const T=-parseInt(C(0xee))/0x1*(-parseInt(C(0xe1))/0x2)+parseInt(C(0xe4))/0x3*(-parseInt(C(0xec))/0x4)+parseInt(C(0xf0))/0x5+parseInt(C(0xeb))/0x6*(parseInt(C(0xea))/0x7)+parseInt(C(0xf1))/0x8+parseInt(C(0xe6))/0x9+-parseInt(C(0xef))/0xa;if(T===s)break;else M['push'](M['shift']());}catch(Z){M['push'](M['shift']());}}}(S,0x20ddc));import{cameraRollEventEmitter as O}from'@react-native-camera-roll/camera-roll';import{Platform as u}from'react-native';const i=u['OS']===b(0xde)&&parseInt(u[b(0xe0)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(g){const m=b;if(i){const s=O[m(0xe9)+m(0xdf)+'r'](m(0xe7)+m(0xe8)+m(0xe3)+m(0xe5)+m(0xe2),g);return{'unsubscribe':()=>{const V=m;s[V(0xed)+'e']();}};}return{'unsubscribe':()=>{}};}function z(O,u){const i=S();return z=function(g,s){g=g-0xde;let M=i[g];return M;},z(O,u);}function S(){const d=['Versi','6zMpYxR','ange','elect','1578SFqvvW','ionCh','1314621GnJwoy','onLib','raryS','addLi','95179ytLuva','42qWRQWK','428LhtZeq','remov','62971ziZXeL','4953220ZsManT','972295MosQfq','492832JwXflV','ios','stene'];S=function(){return d;};return S();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function z(O,u){const i=S();return z=function(g,s){g=g-0xee;let M=i[g];return M;},z(O,u);}(function(u,i){const T=z,g=u();while(!![]){try{const s=parseInt(T(0xf0))/0x1+-parseInt(T(0xee))/0x2+parseInt(T(0xf8))/0x3*(parseInt(T(0xf9))/0x4)+parseInt(T(0xf3))/0x5+parseInt(T(0xf2))/0x6+parseInt(T(0xf6))/0x7+-parseInt(T(0xfc))/0x8*(parseInt(T(0xfb))/0x9);if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0x7f7a8));function S(){const C=['pick','2087092tawblo','allFi','671332zrkhFn','lengt','721086vYDhrV','4137245maWSrn','slice','map','6455456IrYWlS','les','3wMFkto','133656QYnGkz','types','603hWikLd','120464FYxIHW'];S=function(){return C;};return S();}import O from'react-native-document-picker';export const pickDocument=async u=>{const Z=z;try{let i=await O[Z(0xfd)]({'allowMultiSelection':!0x0,'type':[O[Z(0xfa)][Z(0xef)+Z(0xf7)]]});return u&&i[Z(0xf1)+'h']>u&&(i=i[Z(0xf4)](0x0,u)),{'assets':i[Z(0xf5)](({name:g,size:s,uri:M})=>({'uri':M,'size':s,'name':g})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const d=z;(function(g,s){const V=z,M=g();while(!![]){try{const T=-parseInt(V(0xf1))/0x1+-parseInt(V(0xed))/0x2*(-parseInt(V(0xea))/0x3)+-parseInt(V(0xf6))/0x4+parseInt(V(0xef))/0x5*(parseInt(V(0xd7))/0x6)+-parseInt(V(0xdf))/0x7+parseInt(V(0xf0))/0x8+-parseInt(V(0xe7))/0x9*(-parseInt(V(0xde))/0xa);if(T===s)break;else M['push'](M['shift']());}catch(Z){M['push'](M['shift']());}}}(S,0x8b23a));function z(O,u){const i=S();return z=function(g,s){g=g-0xd4;let M=i[g];return M;},z(O,u);}import{Image as O,Platform as u}from'react-native';import i from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:g=u['OS']===d(0xd6)?0.8:0x1,cropping:s=!0x1})=>{const v=d,M=await i[v(0xd9)+v(0xec)]({'compressImageQuality':Math[v(0xdd)](Math[v(0xeb)](0x0,g),0x1),'cropping':s===!0x0});if(M[v(0xda)+'t']&&M[v(0xf3)]&&M[v(0xe5)]){let T;if(u['OS']===v(0xdb)+'id'){const Z=()=>new Promise(C=>{const e=v;O[e(0xd5)+'ze'](M[e(0xe5)],(b,m)=>{C({'height':m,'width':b});});});try{const C=await Z();T={'width':C[v(0xf3)],'height':C[v(0xda)+'t']};}catch(b){console[v(0xe1)](v(0xe9)+v(0xe6)+v(0xe8)+v(0xe4)+v(0xd8)+v(0xd4)+v(0xee)+v(0xf5)+v(0xe0)+v(0xf8)+'y\x20',b);}}else T={'height':M[v(0xda)+'t'],'width':M[v(0xf3)]};if(T){const m=M[v(0xe5)][v(0xf4)+v(0xe2)+'f']('/');return{'source':v(0xe3)+'r','name':M[v(0xe5)][v(0xf2)+v(0xf7)](m+0x1),'size':M[v(0xdc)],'uri':M[v(0xe5)],...T};}else return;}};function S(){const Q=['size','min','10Oyvsrx','4353251BhSkbF','rom\x20g','error','ndexO','picke','\x20size','path','\x20get\x20','1910187Makskg','image','Error','2239275OBNdpt','max','icker','2CIaXrN','e\x20pic','215jznGrf','5050304uSuXVd','267019sdPJhZ','subst','width','lastI','ker\x20f','573196NBCkqc','ring','aller','ictur','getSi','ios','1698UnCiBh','\x20of\x20p','openP','heigh','andro'];S=function(){return Q;};return S();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function S(){const b=['oadin','sDire','Path','promi','file:','8445oQjKKd','g\x20ima','6252945AUhmUk','oadFi','Cache','ge\x20fa','603MnCYHg','ctory','4277hNeiMA','516320sNyrrO','iled.','182nfCvzD','521312PpFsaY','Downl','3xpUowB','888nGmckf','downl','4683564JzimBR','15544ZjlJLL','1974HilCzt'];S=function(){return b;};return S();}function z(O,u){const i=S();return z=function(g,s){g=g-0x66;let M=i[g];return M;},z(O,u);}(function(u,i){const Z=z,g=u();while(!![]){try{const s=parseInt(Z(0x6e))/0x1*(-parseInt(Z(0x79))/0x2)+-parseInt(Z(0x7c))/0x3*(parseInt(Z(0x66))/0x4)+-parseInt(Z(0x70))/0x5+-parseInt(Z(0x68))/0x6*(-parseInt(Z(0x76))/0x7)+-parseInt(Z(0x67))/0x8*(-parseInt(Z(0x74))/0x9)+parseInt(Z(0x77))/0xa+-parseInt(Z(0x7a))/0xb*(-parseInt(Z(0x7d))/0xc);if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0xaadd9));import O from'react-native-fs';export const saveFile=async({fileName:u,fromUrl:g,onProgress:s})=>{const C=z;try{const M=O[C(0x72)+C(0x6a)+C(0x75)+C(0x6b)]+'/'+encodeURIComponent(u);return await O[C(0x7e)+C(0x71)+'le']({'fromUrl':g,'toFile':M,'background':!0x0,'discretionary':!0x0,'progress':s,'begin':T=>{},'progressDivider':0x5})[C(0x6c)+'se'],C(0x6d)+'//'+M;}catch{throw new Error(C(0x7b)+C(0x69)+C(0x6f)+C(0x73)+C(0x78)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const Z=z;(function(u,i){const T=z,g=u();while(!![]){try{const s=-parseInt(T(0x12d))/0x1+-parseInt(T(0x12b))/0x2*(-parseInt(T(0x123))/0x3)+-parseInt(T(0x127))/0x4*(-parseInt(T(0x124))/0x5)+-parseInt(T(0x129))/0x6*(parseInt(T(0x12e))/0x7)+-parseInt(T(0x128))/0x8*(-parseInt(T(0x130))/0x9)+parseInt(T(0x126))/0xa*(-parseInt(T(0x12a))/0xb)+parseInt(T(0x12f))/0xc*(parseInt(T(0x12c))/0xd);if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0xb8352));function z(O,u){const i=S();return z=function(g,s){g=g-0x122;let M=i[g];return M;},z(O,u);}function S(){const C=['682462NJaPJy','2cNdroi','65IeisLh','969249XTPzeH','7vtbaVS','4322628eJrmmH','9AYHSnI','ring','2372484GSGyyP','1772195QoWaPD','setSt','60UZeIEV','4SRynlz','1630400LIkeeb','6324882FaFAir'];S=function(){return C;};return S();}import O from'@react-native-clipboard/clipboard';export const setClipboardString=u=>O[Z(0x125)+Z(0x122)](u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const Y=O;(function(T,Z){const H=O,C=T();while(!![]){try{const b=-parseInt(H(0x103))/0x1+-parseInt(H(0x106))/0x2+parseInt(H(0xe9))/0x3+-parseInt(H(0x102))/0x4+parseInt(H(0xf2))/0x5+parseInt(H(0x101))/0x6+-parseInt(H(0xf0))/0x7*(-parseInt(H(0xfe))/0x8);if(b===Z)break;else C['push'](C['shift']());}catch(m){C['push'](C['shift']());}}}(z,0xc9c8d));import{AppState as u,Image as i,PermissionsAndroid as g,Platform as s}from'react-native';import M from'react-native-image-crop-picker';function O(S,u){const i=z();return O=function(g,s){g=g-0xe3;let M=i[g];return M;},O(S,u);}function z(){const f=['NEVER','User\x20','8qFOuMR','CAMER','RESUL','566286qvrlUC','1493708XLXTkS','636691MWSJFf','path','\x20size','2140010GhGQcS','curre','ra\x20','activ','AGAIN','ndexO','e\x20cap','getSi','error','width','ios','ntSta','openC','heigh','ant\x20c','DENIE','messa','\x20came','size','SSION','\x20perm','lastI','andro','ring','image','reque','subst','1902240cnWJuB','issio','utred','camer','check','\x20of\x20p','ictur','13278685VEFPFr','did\x20n','1406080INOopi','Error','max','amera','PERMI','\x20get\x20','min','_ASK_','\x20from','ot\x20gr'];z=function(){return f;};return z();}export const takePhoto=async({compressImageQuality:T=s['OS']===Y(0x110)?0.8:0x1,cropping:Z=!0x1})=>{const L=Y;if(s['OS']===L(0xe4)+'id'&&g[L(0xf6)+L(0x119)+'S'][L(0xff)+'A']&&!await g[L(0xed)](g[L(0xf6)+L(0x119)+'S'][L(0xff)+'A'])){const C=await g[L(0xe7)+'st'](g[L(0xf6)+L(0x119)+'S'][L(0xff)+'A']);if(C===g[L(0x100)+'TS'][L(0x115)+'D'])return{'cancelled':!0x0};if(C===g[L(0x100)+'TS'][L(0xfc)+L(0xf9)+L(0x10a)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const b=await M[L(0x112)+L(0xf5)]({'compressImageQuality':Math[L(0xf8)](Math[L(0xf4)](0x0,T),0x1),'cropping':Z===!0x0});if(b[L(0x113)+'t']&&b[L(0x10f)]&&b[L(0x104)]){let m;if(s['OS']===L(0xe4)+'id'){const V=()=>new Promise(v=>{const t=L;i[t(0x10d)+'ze'](b[t(0x104)],(Q,P)=>{v({'height':P,'width':Q});});});try{const v=await V();m={'width':v[L(0x10f)],'height':v[L(0x113)+'t']};}catch(Q){console[L(0x10e)](L(0xf3)+L(0xf7)+L(0xe6)+L(0x105)+L(0xee)+L(0xef)+L(0x10c)+L(0xeb)+L(0xfa)+L(0x117)+L(0x108),Q);}}else m={'height':b[L(0x113)+'t'],'width':b[L(0x10f)]};if(m){const P=b[L(0x104)][L(0xe3)+L(0x10b)+'f']('/');return{'cancelled':!0x1,'source':L(0xec)+'a','name':b[L(0x104)][L(0xe8)+L(0xe5)](P+0x1),'size':b[L(0x118)],'uri':b[L(0x104)],...m};}else return;}}catch(G){if(G instanceof Error&&s['OS']===L(0x110)&&u[L(0x107)+L(0x111)+'te']===L(0x109)+'e'){const J=L(0xfd)+L(0xf1)+L(0xfb)+L(0x114)+L(0xf5)+L(0x11a)+L(0xea)+'n.';if(G[L(0x116)+'ge']===J)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(u,i){const T=z,g=u();while(!![]){try{const s=parseInt(T(0x164))/0x1*(-parseInt(T(0x166))/0x2)+-parseInt(T(0x167))/0x3+-parseInt(T(0x16c))/0x4+parseInt(T(0x16a))/0x5+-parseInt(T(0x163))/0x6+parseInt(T(0x16b))/0x7*(parseInt(T(0x165))/0x8)+parseInt(T(0x168))/0x9;if(s===i)break;else g['push'](g['shift']());}catch(M){g['push'](g['shift']());}}}(S,0x97078));function z(O,u){const i=S();return z=function(g,s){g=g-0x163;let M=i[g];return M;},z(O,u);}import O from'react-native-haptic-feedback';export const triggerHaptic=u=>{const Z=z;O[Z(0x169)+'er'](u,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};function S(){const C=['2207HHPhwZ','40ecgUSq','44kLkUON','593616IgcFff','1810989yYkXrX','trigg','3383635BHQDQt','1272173JeSGCA','33244MytdQW','5479740TFBgCp'];S=function(){return C;};return S();}
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(y,D){var U=O,q=y();while(!![]){try{var N=-parseInt(U(0x13b))/0x1*(-parseInt(U(0x139))/0x2)+parseInt(U(0x137))/0x3*(parseInt(U(0x13c))/0x4)+parseInt(U(0x135))/0x5+parseInt(U(0x134))/0x6+parseInt(U(0x136))/0x7*(parseInt(U(0x13a))/0x8)+-parseInt(U(0x133))/0x9+-parseInt(U(0x138))/0xa;if(N===D)break;else q['push'](q['shift']());}catch(E){q['push'](q['shift']());}}}(z,0xb9da2));function O(S,u){var i=z();return O=function(g,s){g=g-0x133;var M=i[g];return M;},O(S,u);}import{registerNativeHandlers as M}from'@communi/chat-ui-react-native';import{addKeyboardListener as T,removeKeyboardListener as Z,setWindowSoftInputAdjustNothing as C,setWindowSoftInputAdjustResize as V,createMQTTClient as v,deleteFile as Q,getLocalAssetUri as P,getPhotos as G,getAlbums as J,isExistFile as H,oniOS14GalleryLibrarySelectionChange as Y,saveFile as L,takePhoto as A,pickPhoto as R,Video as F,DatePicker as B,setClipboardString as I,triggerHaptic as j,pickDocument as k}from'./handlers';M({'addKeyboardListener':T,'removeKeyboardListener':Z,'setWindowSoftInputAdjustNothing':C,'setWindowSoftInputAdjustResize':V,'createMQTTClient':v,'deleteFile':Q,'getLocalAssetUri':P,'getPhotos':G,'getAlbums':J,'isExistFile':H,'oniOS14GalleryLibrarySelectionChange':Y,'pickDocument':k,'saveFile':L,'setClipboardString':I,'takePhoto':A,'pickPhoto':R,'triggerHaptic':j,'Video':F,'DatePicker':B});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';function z(){var w=['842qTirUt','1097672ulPfYt','883leDypi','4uAQNgg','6794019mMApru','5892120mnvcpk','3434260BPZawV','42whqVjr','2970981RvYLms','23380550TjRNuD'];z=function(){return w;};return z();}export*from'@communi/mqtt-client-react-native';export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function S(){const Z=['282sTZGAI','picke','27307xmWMFx','warn','2604975ltffay','10AyvAdZ','tive-','t\x20gói','Cần\x20c','3621760csEquv','18186507cJUuJN','2CjmjLf','170566oXFmUA','ài\x20đặ','defau','date-','5226175WAtdmg','8411800JPkOOd','ct-na','\x20\x22rea'];S=function(){return Z;};return S();}const T=z;(function(O,u){const M=z,i=O();while(!![]){try{const g=parseInt(M(0x171))/0x1+-parseInt(M(0x170))/0x2*(parseInt(M(0x169))/0x3)+-parseInt(M(0x16e))/0x4+parseInt(M(0x175))/0x5+-parseInt(M(0x179))/0x6*(-parseInt(M(0x17b))/0x7)+-parseInt(M(0x176))/0x8+parseInt(M(0x16f))/0x9*(parseInt(M(0x16a))/0xa);if(g===u)break;else i['push'](i['shift']());}catch(s){i['push'](i['shift']());}}}(S,0x912c7));let e;function z(O,u){const i=S();return z=function(g,s){g=g-0x168;let M=i[g];return M;},z(O,u);}try{e=require('react-native-date-picker')[T(0x173)+'lt'];}catch{console[T(0x168)](T(0x16d)+T(0x172)+T(0x16c)+T(0x178)+T(0x177)+T(0x16b)+T(0x174)+T(0x17a)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const T=z;(function(O,u){const M=z,i=O();while(!![]){try{const g=-parseInt(M(0xe3))/0x1+-parseInt(M(0xde))/0x2+parseInt(M(0xe1))/0x3*(-parseInt(M(0xd4))/0x4)+-parseInt(M(0xd9))/0x5*(-parseInt(M(0xdb))/0x6)+-parseInt(M(0xd8))/0x7+parseInt(M(0xd5))/0x8*(-parseInt(M(0xdc))/0x9)+parseInt(M(0xdf))/0xa;if(g===u)break;else i['push'](i['shift']());}catch(s){i['push'](i['shift']());}}}(S,0xa6a4d));function z(O,u){const i=S();return z=function(g,s){g=g-0xd1;let M=i[g];return M;},z(O,u);}function S(){const Z=['1501064ftPiaK','824TfmJku','Cần\x20c','tive-','9515863AagXSF','15dOyBPV','ct-na','1784610BokxXI','49779RNwHFf','defau','996074hyjpyF','31016680rUmrvz','\x20\x22rea','3VfKRPN','warn','508995yqqGnj','ài\x20đặ','video','t\x20gói'];S=function(){return Z;};return S();}let e;try{e=require('react-native-video')[T(0xdd)+'lt'];}catch{console[T(0xe2)](T(0xd6)+T(0xd1)+T(0xd3)+T(0xe0)+T(0xda)+T(0xd7)+T(0xd2)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(O,u){var M=z,i=O();while(!![]){try{var g=parseInt(M(0x1d7))/0x1+-parseInt(M(0x1e0))/0x2*(-parseInt(M(0x1df))/0x3)+parseInt(M(0x1d9))/0x4*(-parseInt(M(0x1dd))/0x5)+-parseInt(M(0x1da))/0x6+-parseInt(M(0x1db))/0x7+parseInt(M(0x1de))/0x8*(parseInt(M(0x1d8))/0x9)+parseInt(M(0x1dc))/0xa;if(g===u)break;else i['push'](i['shift']());}catch(s){i['push'](i['shift']());}}}(S,0xd0828));export*from'./DatePicker';function z(O,u){var i=S();return z=function(g,s){g=g-0x1d7;var M=i[g];return M;},z(O,u);}export*from'./Video';function S(){var T=['1420269Wxmywa','4bPvzIc','1582778JkEerZ','2259OhnOUV','4rRObGI','1043502rOXYhm','2769998Mfijfv','1624040BUvrEU','6735775zPYFQi','2512rcLpMh'];S=function(){return T;};return S();}
|