@communi/chat-react-native 2.0.6 → 2.0.7
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/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.js +1 -1
- 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';
|
|
1
|
+
'use strict';(function(j,y){var D=G,A=j();while(!![]){try{var M=parseInt(D(0x11f))/0x1*(parseInt(D(0x121))/0x2)+parseInt(D(0x120))/0x3+parseInt(D(0x11c))/0x4*(-parseInt(D(0x11e))/0x5)+-parseInt(D(0x118))/0x6*(-parseInt(D(0x122))/0x7)+parseInt(D(0x123))/0x8*(-parseInt(D(0x11b))/0x9)+parseInt(D(0x11d))/0xa*(parseInt(D(0x11a))/0xb)+-parseInt(D(0x119))/0xc;if(M===y)break;else A['push'](A['shift']());}catch(K){A['push'](A['shift']());}}}(h,0x1e92c));function h(){var E=['316kYYblY','380BQjozN','5255IdOthM','2gbxedx','606987JGeBrL','79582cgkGNg','15806KPHVEh','80opgPyC','174UeqXXm','1697856bLqNGW','29194eWUviP','88650GQZram'];h=function(){return E;};return h();}function G(j,y){var A=h();return G=function(M,K){M=M-0x118;var D=A[M];return D;},G(j,y);}export*from'./src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
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.0.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.0.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.0.4",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.0.7",
|
|
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 Y=
|
|
1
|
+
'use strict';const Y=G;(function(A,M){const q=G,K=A();while(!![]){try{const D=-parseInt(q(0x145))/0x1+-parseInt(q(0x13f))/0x2*(-parseInt(q(0x147))/0x3)+parseInt(q(0x14b))/0x4*(parseInt(q(0x146))/0x5)+-parseInt(q(0x148))/0x6*(-parseInt(q(0x141))/0x7)+-parseInt(q(0x14c))/0x8+-parseInt(q(0x143))/0x9+parseInt(q(0x142))/0xa*(-parseInt(q(0x144))/0xb);if(D===M)break;else K['push'](K['shift']());}catch(E){K['push'](K['shift']());}}}(h,0x30ec9));function G(j,y){const A=h();return G=function(M,K){M=M-0x13f;let D=A[M];return D;},G(j,y);}function h(){const F=['eElem','92pzGVdi','1836112dOahaR','27902oclxoe','creat','1255709nwcgGQ','290seAbSP','2099394oDxHTs','10780uhEcpA','73952UktsVY','51605RjfuaV','75OliuqV','6XdUGyJ','ent'];h=function(){return F;};return h();}import j from'react';import{DatePickerComponent as y}from'../optionalDependencies/DatePicker';export const DatePicker=y?({modal:A,open:M,date:K,minimumDate:D,onConfirm:E,onCancel:f})=>j[Y(0x140)+Y(0x14a)+Y(0x149)](y,{'modal':A,'open':M,'date':K,'minimumDate':D,'onConfirm':E,'onCancel':f}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const q=G;function G(j,y){const A=h();return G=function(M,K){M=M-0x1ba;let D=A[M];return D;},G(j,y);}(function(A,M){const f=G,K=A();while(!![]){try{const D=-parseInt(f(0x1d4))/0x1*(parseInt(f(0x1c1))/0x2)+parseInt(f(0x1d7))/0x3*(-parseInt(f(0x1be))/0x4)+parseInt(f(0x1ca))/0x5+-parseInt(f(0x1c3))/0x6*(parseInt(f(0x1c0))/0x7)+parseInt(f(0x1c9))/0x8+-parseInt(f(0x1c4))/0x9*(-parseInt(f(0x1cd))/0xa)+parseInt(f(0x1d3))/0xb*(parseInt(f(0x1bd))/0xc);if(D===M)break;else K['push'](K['shift']());}catch(E){K['push'](K['shift']());}}}(h,0xa874d));import{PSKeyboard as j,SoftInputMode as y}from'@communi/keyboard-area-react-native';function h(){const Y=['oardL','11SjReuD','52wHZltH','SOFT_','eKeyb','69JatNwS','oftIn','ndowS','ST_RE','setWi','5815956ZsGZPQ','60080gtdcCW','putMo','1209859GKIzuN','37486EeOfFr','isten','12XdujBo','9menSRC','ST_NO','INPUT','SIZE','yboar','3918176dlIGWK','4922055HRnjMA','ener','addKe','3969210ajuWOt','THING','_ADJU','dList','remov'];h=function(){return Y;};return h();}export const addKeyboardListener=A=>j[q(0x1cc)+q(0x1c8)+q(0x1d0)+q(0x1cb)](A),removeKeyboardListener=A=>j[q(0x1d1)+q(0x1d6)+q(0x1d2)+q(0x1c2)+'er'](A),setWindowSoftInputAdjustNothing=()=>j[q(0x1bc)+q(0x1ba)+q(0x1d8)+q(0x1bf)+'de'](y[q(0x1d5)+q(0x1c6)+q(0x1cf)+q(0x1c5)+q(0x1ce)]),setWindowSoftInputAdjustResize=()=>j[q(0x1bc)+q(0x1ba)+q(0x1d8)+q(0x1bf)+'de'](y[q(0x1d5)+q(0x1c6)+q(0x1cf)+q(0x1bb)+q(0x1c7)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const f=G;(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x159))/0x1+-parseInt(E(0x15d))/0x2+parseInt(E(0x15a))/0x3*(-parseInt(E(0x160))/0x4)+parseInt(E(0x15b))/0x5*(parseInt(E(0x15f))/0x6)+parseInt(E(0x163))/0x7*(-parseInt(E(0x15c))/0x8)+parseInt(E(0x164))/0x9*(parseInt(E(0x158))/0xa)+parseInt(E(0x15e))/0xb*(parseInt(E(0x162))/0xc);if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0x9be13));import{MQTTClient as j}from'@communi/mqtt-client-react-native';function G(j,y){const A=h();return G=function(M,K){M=M-0x157;let D=A[M];return D;},G(j,y);}function h(){const q=['26159hZMQIG','1013247mbEZpq','getIn','10rgDOrO','430867UukWLY','1689YVOWyi','555OVHZeZ','424ZatAsI','1759312JvpNRB','281105YnSltR','63804UZTFAw','6772ekJjXr','stanc','444MBgNYx'];h=function(){return q;};return h();}export const createMQTTClient=async y=>j[f(0x157)+f(0x161)+'e'](y);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const e=G;(function(A,M){const T=G,K=A();while(!![]){try{const D=parseInt(T(0x1a8))/0x1+-parseInt(T(0x1ac))/0x2*(parseInt(T(0x1a0))/0x3)+parseInt(T(0x1a9))/0x4*(parseInt(T(0x1aa))/0x5)+-parseInt(T(0x1a6))/0x6+parseInt(T(0x1a3))/0x7*(parseInt(T(0x1a4))/0x8)+-parseInt(T(0x19e))/0x9+-parseInt(T(0x1a7))/0xa*(-parseInt(T(0x19d))/0xb);if(D===M)break;else K['push'](K['shift']());}catch(E){K['push'](K['shift']());}}}(h,0x57611));function G(j,y){const A=h();return G=function(M,K){M=M-0x19d;let D=A[M];return D;},G(j,y);}function h(){const t=['ignor','371QwFOOD','77608GRsFTR','error','1863528RqJGHY','70750afXPSw','145128oOgclb','52kfFQAC','120605kNZCTG','eElem','374NobFrh','341GNWVJL','4593681NtOyMU','ent','213RJJmdP','creat'];h=function(){return t;};return h();}import j from'react';import{AudioVideoComponent as y}from'../optionalDependencies/Video';export const Video=y?({onBuffer:A,onEnd:M,onLoad:K,onProgress:D,paused:E,repeat:q,resizeMode:Y,style:F,uri:z,videoRef:c})=>j[e(0x1a1)+e(0x1ab)+e(0x19f)](y,{'ignoreSilentSwitch':e(0x1a2)+'e','onBuffer':A,'onEnd':M,'onError':C=>{const k=e;console[k(0x1a5)](C);},'onLoad':K,'onProgress':D,'paused':E,'ref':c,'repeat':q,'resizeMode':Y,'source':{'uri':z},'style':F}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function G(j,y){const A=h();return G=function(M,K){M=M-0x1ec;let D=A[M];return D;},G(j,y);}function h(){const q=['log','unlin','6794185qGoxYE','2487neIjVM','...','4552yRYxUc','6836683PCoYNW','4GRPMpz','3201060SeuCfm','1074681iIhHff','delet','68641298IUzmjj','1470WOvlOM','ion\x20f','ailed','98721ewzlrZ','File\x20','8atjEYU'];h=function(){return q;};return h();}(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x1f1))/0x1+-parseInt(E(0x1ed))/0x2*(parseInt(E(0x1fd))/0x3)+-parseInt(E(0x1ef))/0x4*(parseInt(E(0x1fc))/0x5)+-parseInt(E(0x1f0))/0x6+-parseInt(E(0x1ee))/0x7*(parseInt(E(0x1f9))/0x8)+-parseInt(E(0x1f7))/0x9*(parseInt(E(0x1f4))/0xa)+parseInt(E(0x1f3))/0xb;if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0xe7168));import j from'react-native-fs';export const deleteFile=async({uri:y})=>{const f=G;try{return await j[f(0x1fb)+'k'](y),!0x0;}catch(A){return console[f(0x1fa)](f(0x1f8)+f(0x1f2)+f(0x1f5)+f(0x1f6)+f(0x1ec),A),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x160))/0x1+parseInt(E(0x162))/0x2*(parseInt(E(0x167))/0x3)+parseInt(E(0x166))/0x4+-parseInt(E(0x161))/0x5+-parseInt(E(0x15d))/0x6+parseInt(E(0x15e))/0x7+parseInt(E(0x15b))/0x8;if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0x49b34));function h(){const q=['85646TaeqgR','1425025ESSyab','846676LkJEIF','i\x20Err','setUr','getLo','312168OMloiK','3LrVJHH','1747168GNGcON','save','3000750GAYnNb','1971088EsOnWP','calAs'];h=function(){return q;};return h();}function G(j,y){const A=h();return G=function(M,K){M=M-0x15b;let D=A[M];return D;},G(j,y);}import{CameraRoll as j}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async y=>{const f=G;try{return await j[f(0x15c)](y);}catch{throw new Error(f(0x165)+f(0x15f)+f(0x164)+f(0x163)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(K,D){const C=G,E=K();while(!![]){try{const f=-parseInt(C(0x1c6))/0x1*(-parseInt(C(0x1af))/0x2)+-parseInt(C(0x1dd))/0x3*(-parseInt(C(0x1cf))/0x4)+-parseInt(C(0x1eb))/0x5+parseInt(C(0x1bf))/0x6*(-parseInt(C(0x1e2))/0x7)+parseInt(C(0x19f))/0x8*(-parseInt(C(0x1a1))/0x9)+parseInt(C(0x1e9))/0xa*(parseInt(C(0x1d3))/0xb)+-parseInt(C(0x1d4))/0xc*(parseInt(C(0x1c8))/0xd);if(f===D)break;else E['push'](E['shift']());}catch(q){E['push'](E['shift']());}}}(h,0xd927b));import{CameraRoll as j}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as y,Platform as M}from'react-native';function G(j,y){const A=h();return G=function(M,K){M=M-0x19c;let D=A[M];return D;},G(j,y);}function h(){const t=['Photo','GRANT','ssion','5467QUQIQi','ratio','All','picke','Nativ','eVers','stMul','4160TjqyIR','otos\x20','936800hgdCyu','end_c','MEDIA','reque','filen','1051432XESkbA','NAL_S','117HBhFFC','Ask\x20M','ess','otos','react','photo','_IMAG','ants','ize','andro','ursor','ion','Deny','_VIDE','2974090xsBxEE','tiple','bleDu','Size','ext_p','hare\x20','s\x20are','edges','playa','page_','all','age','Error','EXTER','node','e\x20Lat','5694gdTnEJ','info','cess\x20','minor','has_n','READ_','ame','1jLqNSd','then','10982491EngzWN','Permi','RESUL','Versi','map','s\x20Acc','fileS','908fsgHsL','PERMI','ired\x20','SSION','35134ufYcsd','12FAGWLz','TORAG','to\x20ac','getPh','check','\x20requ','image','Allow','and\x20s','20559XeCTLZ','const'];h=function(){return t;};return h();}const A=async()=>{const T=G,K=M[T(0x1de)+T(0x1a8)][T(0x1a5)+T(0x1e6)+T(0x1e7)+T(0x1ac)]?.[T(0x1c2)]>=0x47,D=M[T(0x1cb)+'on']>=0x21,E=K&&D;return await((()=>E?Promise[T(0x1b9)]([y[T(0x1d8)](y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1a7)+'ES']),y[T(0x1d8)](y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1ae)+'O'])])[T(0x1c7)](([f,q])=>f&&q):y[T(0x1d8)](y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x1bc)+T(0x1a0)+T(0x1d5)+'E']))())?!0x0:await((()=>E?y[T(0x19d)+T(0x1e8)+T(0x1b0)]([y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1a7)+'ES'],y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1ae)+'O']])[T(0x1c7)](f=>f[y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1a7)+'ES']]===y[T(0x1ca)+'TS'][T(0x1e0)+'ED']&&f[y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x19c)+T(0x1ae)+'O']]===y[T(0x1ca)+'TS'][T(0x1e0)+'ED']):y[T(0x19d)+'st'](y[T(0x1d0)+T(0x1d2)+'S'][T(0x1c4)+T(0x1bc)+T(0x1a0)+T(0x1d5)+'E'],{'buttonNegative':T(0x1ad),'buttonNeutral':T(0x1a2)+T(0x1be)+'er','buttonPositive':T(0x1db),'message':T(0x1c9)+T(0x1e1)+T(0x1b5)+T(0x1d9)+T(0x1d1)+T(0x1d6)+T(0x1c1)+T(0x1dc)+T(0x1b4)+T(0x1a6)+'s.','title':T(0x1df)+T(0x1cd)+T(0x1a3)})[T(0x1c7)](f=>f===y[T(0x1ca)+'TS'][T(0x1e0)+'ED']))());};export const getPhotos=async({after:K,first:D})=>{const k=G;try{if(M['OS']===k(0x1aa)+'id'&&!await A())throw new Error(k(0x1d7)+k(0x1ea)+k(0x1bb));const f=await j[k(0x1d7)+k(0x1a4)]({'after':K,'assetType':k(0x1e4),'first':D,'include':[k(0x1ce)+k(0x1a9),k(0x19e)+k(0x1c5),k(0x1da)+k(0x1b2),k(0x1b7)+k(0x1b1)+k(0x1e3)+'n']}),q=f[k(0x1b6)][k(0x1cc)](z=>({'source':k(0x1e5)+'r',...z[k(0x1bd)][k(0x1da)],'fileSize':z[k(0x1bd)][k(0x1da)][k(0x1ce)+k(0x1a9)]??0x0})),Y=f[k(0x1b8)+k(0x1c0)][k(0x1c3)+k(0x1b3)+k(0x1ba)],F=f[k(0x1b8)+k(0x1c0)][k(0x1ec)+k(0x1ab)];return{'assets':q,'endCursor':F,'hasNextPage':Y};}catch{throw new Error(k(0x1d7)+k(0x1ea)+k(0x1bb));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(j,
|
|
1
|
+
'use strict';(function(j,y){var D=G,A=j();while(!![]){try{var M=-parseInt(D(0x74))/0x1*(parseInt(D(0x6d))/0x2)+parseInt(D(0x73))/0x3+parseInt(D(0x6a))/0x4*(-parseInt(D(0x6c))/0x5)+-parseInt(D(0x75))/0x6*(parseInt(D(0x72))/0x7)+-parseInt(D(0x71))/0x8+-parseInt(D(0x6f))/0x9*(parseInt(D(0x6e))/0xa)+parseInt(D(0x6b))/0xb*(parseInt(D(0x70))/0xc);if(M===y)break;else A['push'](A['shift']());}catch(K){A['push'](A['shift']());}}}(h,0x6c8e4));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';function G(j,y){var A=h();return G=function(M,K){M=M-0x6a;var D=A[M];return D;},G(j,y);}export*from'./Video';function h(){var E=['1559126xUEORF','10CTySoa','1411713yBKWED','228bebWNq','422904cIkwvV','7yiiLkD','122085WRKuyg','1WLwxLa','1049466tqtaZf','1232aXzIMW','1198527SvPjky','8150LfNNAW'];h=function(){return E;};return h();}export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(A
|
|
1
|
+
'use strict';(function(y,A){const E=G,M=y();while(!![]){try{const K=-parseInt(E(0x1d3))/0x1+-parseInt(E(0x1d0))/0x2+parseInt(E(0x1ce))/0x3*(parseInt(E(0x1d4))/0x4)+-parseInt(E(0x1d7))/0x5*(-parseInt(E(0x1dc))/0x6)+parseInt(E(0x1da))/0x7*(-parseInt(E(0x1d2))/0x8)+-parseInt(E(0x1d1))/0x9*(-parseInt(E(0x1d9))/0xa)+-parseInt(E(0x1d8))/0xb*(-parseInt(E(0x1db))/0xc);if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0xc115b));function G(j,y){const A=h();return G=function(M,K){M=M-0x1ce;let D=A[M];return D;},G(j,y);}import j from'react-native-fs';function h(){const q=['9639889aIUEqY','204NjtiUs','11832wTadeT','stFil','3IWKHjg','exist','3029000nJLnbo','4298598NNejMH','8zoJDJI','889351YyFIVx','4581916eenzsh','e\x20Err','isExi','565RsIuik','1763828mOoQGq','10nMNsJJ'];h=function(){return q;};return h();}export const isExistFile=async y=>{const f=G;try{return await j[f(0x1cf)+'s'](y);}catch{throw new Error(f(0x1d6)+f(0x1dd)+f(0x1d5)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const q=G;(function(A,M){const f=G,K=A();while(!![]){try{const D=parseInt(f(0xda))/0x1*(-parseInt(f(0xe8))/0x2)+-parseInt(f(0xd9))/0x3+parseInt(f(0xe1))/0x4*(-parseInt(f(0xe3))/0x5)+-parseInt(f(0xe9))/0x6*(parseInt(f(0xdd))/0x7)+-parseInt(f(0xde))/0x8+parseInt(f(0xea))/0x9+-parseInt(f(0xe4))/0xa*(-parseInt(f(0xdb))/0xb);if(D===M)break;else K['push'](K['shift']());}catch(E){K['push'](K['shift']());}}}(h,0x6da37));function h(){const z=['Versi','6klmWqH','107694VGRgic','545598FyiyFI','stene','ionCh','remov','1944762TjBoWr','159706VjqRUx','316481psymvc','ios','287lBmrlh','3834248kBeYbI','elect','ange','48aVZWbc','addLi','72855gCwxOT','1010DgoHXs','onLib','raryS'];h=function(){return z;};return h();}import{cameraRollEventEmitter as j}from'@react-native-camera-roll/camera-roll';import{Platform as y}from'react-native';const i=y['OS']===q(0xdc)&&parseInt(y[q(0xe7)+'on'],0xa)>=0xe;function G(j,y){const A=h();return G=function(M,K){M=M-0xd8;let D=A[M];return D;},G(j,y);}export function oniOS14GalleryLibrarySelectionChange(A){const Y=q;if(i){const M=j[Y(0xe2)+Y(0xeb)+'r'](Y(0xe5)+Y(0xe6)+Y(0xdf)+Y(0xec)+Y(0xe0),A);return{'unsubscribe':()=>{const F=Y;M[F(0xd8)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x1d5))/0x1*(-parseInt(E(0x1cf))/0x2)+parseInt(E(0x1d9))/0x3+-parseInt(E(0x1cc))/0x4+parseInt(E(0x1d0))/0x5*(-parseInt(E(0x1d3))/0x6)+parseInt(E(0x1d8))/0x7+parseInt(E(0x1d2))/0x8+parseInt(E(0x1cd))/0x9*(-parseInt(E(0x1d1))/0xa);if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0xf33ca));function h(){const q=['types','932qMXLLF','map','slice','13757450FTCuAL','5448171EJtJUJ','lengt','les','pick','2274896gJhboU','9189YsheVY','allFi','3802gdDYix','473835QlYGMi','9410LMKcyO','6403272uKFwMc','18YmomUv'];h=function(){return q;};return h();}function G(j,y){const A=h();return G=function(M,K){M=M-0x1cc;let D=A[M];return D;},G(j,y);}import j from'react-native-document-picker';export const pickDocument=async y=>{const f=G;try{let A=await j[f(0x1dc)]({'allowMultiSelection':!0x0,'type':[j[f(0x1d4)][f(0x1ce)+f(0x1db)]]});return y&&A[f(0x1da)+'h']>y&&(A=A[f(0x1d7)](0x0,y)),{'assets':A[f(0x1d6)](({name:M,size:K,uri:D})=>({'uri':D,'size':K,'name':M})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function h(){const k=['e\x20pic','openP','1338806AkSmEE','andro','max','ring','subst','ndexO','5350bSTrab','path','1605730FUvitL','106744jzfwoh','\x20of\x20p','image','6DXBivb','98584POZIyM','171786mXydzR','\x20get\x20','icker','\x20size','getSi','24607wmVZHl','ios','Error','lastI','aller','ker\x20f','error','min','441avArPN','6weJceD','size','935172jFsbwe','rom\x20g','ictur','width','heigh','picke'];h=function(){return k;};return h();}const C=G;(function(M,K){const z=G,D=M();while(!![]){try{const E=parseInt(z(0x138))/0x1+-parseInt(z(0x150))/0x2+-parseInt(z(0x136))/0x3*(-parseInt(z(0x133))/0x4)+parseInt(z(0x132))/0x5+-parseInt(z(0x146))/0x6*(parseInt(z(0x148))/0x7)+-parseInt(z(0x137))/0x8*(parseInt(z(0x145))/0x9)+-parseInt(z(0x156))/0xa*(-parseInt(z(0x13d))/0xb);if(E===K)break;else D['push'](D['shift']());}catch(f){D['push'](D['shift']());}}}(h,0x52191));function G(j,y){const A=h();return G=function(M,K){M=M-0x132;let D=A[M];return D;},G(j,y);}import{Image as j,Platform as y}from'react-native';import A from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:M=y['OS']===C(0x13e)?0.8:0x1,cropping:K=!0x1})=>{const T=C,D=await A[T(0x14f)+T(0x13a)]({'compressImageQuality':Math[T(0x144)](Math[T(0x152)](0x0,M),0x1),'cropping':K===!0x0});if(D[T(0x14c)+'t']&&D[T(0x14b)]&&D[T(0x157)]){let E;if(y['OS']===T(0x151)+'id'){const f=()=>new Promise(q=>{const e=T;j[e(0x13c)+'ze'](D[e(0x157)],(Y,F)=>{q({'height':F,'width':Y});});});try{const q=await f();E={'width':q[T(0x14b)],'height':q[T(0x14c)+'t']};}catch(Y){console[T(0x143)](T(0x13f)+T(0x139)+T(0x135)+T(0x13b)+T(0x134)+T(0x14a)+T(0x14e)+T(0x142)+T(0x149)+T(0x141)+'y\x20',Y);}}else E={'height':D[T(0x14c)+'t'],'width':D[T(0x14b)]};if(E){const F=D[T(0x157)][T(0x140)+T(0x155)+'f']('/');return{'source':T(0x14d)+'r','name':D[T(0x157)][T(0x154)+T(0x153)](F+0x1),'size':D[T(0x147)],'uri':D[T(0x157)],...E};}else return;}};
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(A
|
|
1
|
+
'use strict';(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x1c7))/0x1+parseInt(E(0x1d8))/0x2+parseInt(E(0x1da))/0x3+-parseInt(E(0x1cf))/0x4*(-parseInt(E(0x1cd))/0x5)+-parseInt(E(0x1d1))/0x6*(-parseInt(E(0x1d7))/0x7)+parseInt(E(0x1d5))/0x8*(-parseInt(E(0x1db))/0x9)+-parseInt(E(0x1d0))/0xa;if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0x4b40a));import j from'react-native-fs';function G(j,y){const A=h();return G=function(M,K){M=M-0x1c5;let D=A[M];return D;},G(j,y);}function h(){const q=['310996YUVlix','sDire','791160dNLOxJ','261jTRktS','oadin','oadFi','313985OwshNv','downl','file:','ctory','ge\x20fa','promi','230JIFGoX','Path','29528vDvmie','12895850pBnrwA','12ETZrdq','Cache','Downl','g\x20ima','21856WFJTYE','iled.','2114952vemKax'];h=function(){return q;};return h();}export const saveFile=async({fileName:y,fromUrl:A,onProgress:M})=>{const f=G;try{const K=j[f(0x1d2)+f(0x1d9)+f(0x1ca)+f(0x1ce)]+'/'+encodeURIComponent(y);return await j[f(0x1c8)+f(0x1c6)+'le']({'fromUrl':A,'toFile':K,'background':!0x0,'discretionary':!0x0,'progress':M,'begin':D=>{},'progressDivider':0x5})[f(0x1cc)+'se'],f(0x1c9)+'//'+K;}catch{throw new Error(f(0x1d3)+f(0x1c5)+f(0x1d4)+f(0x1cb)+f(0x1d6)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const f=G;function G(j,y){const A=h();return G=function(M,K){M=M-0x174;let D=A[M];return D;},G(j,y);}(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x174))/0x1+parseInt(E(0x175))/0x2+-parseInt(E(0x17b))/0x3+parseInt(E(0x178))/0x4+-parseInt(E(0x179))/0x5+-parseInt(E(0x17a))/0x6*(-parseInt(E(0x17e))/0x7)+parseInt(E(0x17c))/0x8*(parseInt(E(0x177))/0x9);if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0x4dcd9));import j from'@react-native-clipboard/clipboard';function h(){const q=['592BUnAAG','setSt','594lLOgqZ','1796316PCFqGD','696035wNdncE','16326LRJOFY','1855698ymsVwc','22120kDImQk','ring','91WiQzSM','409216vvvazE'];h=function(){return q;};return h();}export const setClipboardString=y=>j[f(0x176)+f(0x17d)](y);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const J=j;function j(h,y){const A=G();return j=function(M,K){M=M-0x144;let D=A[M];return D;},j(h,y);}(function(E,f){const B=j,q=E();while(!![]){try{const Y=parseInt(B(0x166))/0x1+-parseInt(B(0x155))/0x2*(-parseInt(B(0x17d))/0x3)+-parseInt(B(0x15b))/0x4*(parseInt(B(0x156))/0x5)+-parseInt(B(0x14d))/0x6*(-parseInt(B(0x15d))/0x7)+parseInt(B(0x164))/0x8+parseInt(B(0x169))/0x9+-parseInt(B(0x152))/0xa*(parseInt(B(0x154))/0xb);if(Y===f)break;else q['push'](q['shift']());}catch(o){q['push'](q['shift']());}}}(G,0x2025b));function G(){const b=['RESUL','ios','ot\x20gr','_ASK_','\x20came','ring','64312rHCGyt','check','59590jDviPG','ant\x20c','camer','112347wEnNnd','lastI','amera','messa','NEVER','\x20size','image','\x20of\x20p','SSION','max','PERMI','did\x20n','issio','ra\x20','\x20get\x20','ntSta','AGAIN','size','openC','curre','75423wdseAY','ictur','CAMER','activ','ndexO','subst','utred','heigh','path','Error','\x20from','154896Rqwcdw','\x20perm','getSi','width','e\x20cap','17910BMnQib','DENIE','165XHMOXt','16fWXuLM','217915QCCjjL','reque','User\x20','andro','error','16iHdzDz','min','14fUDfnu'];G=function(){return b;};return G();}import{AppState as y,Image as A,PermissionsAndroid as M,Platform as K}from'react-native';import D from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:E=K['OS']===J(0x15f)?0.8:0x1,cropping:f=!0x1})=>{const Z=J;if(K['OS']===Z(0x159)+'id'&&M[Z(0x173)+Z(0x171)+'S'][Z(0x144)+'A']&&!await M[Z(0x165)](M[Z(0x173)+Z(0x171)+'S'][Z(0x144)+'A'])){const q=await M[Z(0x157)+'st'](M[Z(0x173)+Z(0x171)+'S'][Z(0x144)+'A']);if(q===M[Z(0x15e)+'TS'][Z(0x153)+'D'])return{'cancelled':!0x0};if(q===M[Z(0x15e)+'TS'][Z(0x16d)+Z(0x161)+Z(0x179)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const Y=await D[Z(0x17b)+Z(0x16b)]({'compressImageQuality':Math[Z(0x15c)](Math[Z(0x172)](0x0,E),0x1),'cropping':f===!0x0});if(Y[Z(0x149)+'t']&&Y[Z(0x150)]&&Y[Z(0x14a)]){let F;if(K['OS']===Z(0x159)+'id'){const z=()=>new Promise(c=>{const P=Z;A[P(0x14f)+'ze'](Y[P(0x14a)],(C,T)=>{c({'height':T,'width':C});});});try{const c=await z();F={'width':c[Z(0x150)],'height':c[Z(0x149)+'t']};}catch(C){console[Z(0x15a)](Z(0x14b)+Z(0x177)+Z(0x16f)+Z(0x16e)+Z(0x170)+Z(0x17e)+Z(0x151)+Z(0x148)+Z(0x14c)+Z(0x162)+Z(0x176),C);}}else F={'height':Y[Z(0x149)+'t'],'width':Y[Z(0x150)]};if(F){const T=Y[Z(0x14a)][Z(0x16a)+Z(0x146)+'f']('/');return{'cancelled':!0x1,'source':Z(0x168)+'a','name':Y[Z(0x14a)][Z(0x147)+Z(0x163)](T+0x1),'size':Y[Z(0x17a)],'uri':Y[Z(0x14a)],...F};}else return;}}catch(k){if(k instanceof Error&&K['OS']===Z(0x15f)&&y[Z(0x17c)+Z(0x178)+'te']===Z(0x145)+'e'){const g=Z(0x158)+Z(0x174)+Z(0x160)+Z(0x167)+Z(0x16b)+Z(0x14e)+Z(0x175)+'n.';if(k[Z(0x16c)+'ge']===g)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(A
|
|
1
|
+
'use strict';(function(y,A){const E=G,M=y();while(!![]){try{const K=parseInt(E(0x1da))/0x1*(parseInt(E(0x1d8))/0x2)+-parseInt(E(0x1d5))/0x3+-parseInt(E(0x1d7))/0x4*(-parseInt(E(0x1d1))/0x5)+parseInt(E(0x1d4))/0x6+parseInt(E(0x1d2))/0x7+-parseInt(E(0x1d9))/0x8*(-parseInt(E(0x1d6))/0x9)+parseInt(E(0x1db))/0xa*(-parseInt(E(0x1dc))/0xb);if(K===A)break;else M['push'](M['shift']());}catch(D){M['push'](M['shift']());}}}(h,0xd2fde));function G(j,y){const A=h();return G=function(M,K){M=M-0x1d1;let D=A[M];return D;},G(j,y);}import j from'react-native-haptic-feedback';export const triggerHaptic=y=>{const f=G;j[f(0x1d3)+'er'](y,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};function h(){const q=['354950GqrjPb','737laEzkC','127195EEplOg','1099896jsJgHE','trigg','5793630iXyNpI','4433625tBGINb','14963067PfkOMT','44UQBcjF','106XAVfDp','8eRzmRm','31229acmxqP'];h=function(){return q;};return h();}
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(w
|
|
1
|
+
'use strict';(function(L,w){var V=j,X=L();while(!![]){try{var v=parseInt(V(0xc7))/0x1*(-parseInt(V(0xcb))/0x2)+parseInt(V(0xc9))/0x3*(parseInt(V(0xcf))/0x4)+parseInt(V(0xcd))/0x5*(parseInt(V(0xcc))/0x6)+-parseInt(V(0xce))/0x7+parseInt(V(0xc6))/0x8+-parseInt(V(0xd1))/0x9*(-parseInt(V(0xca))/0xa)+-parseInt(V(0xc8))/0xb*(parseInt(V(0xd0))/0xc);if(v===w)break;else X['push'](X['shift']());}catch(H){X['push'](X['shift']());}}}(G,0xb33a8));import{registerNativeHandlers as y}from'@communi/chat-ui-react-native';function G(){var I=['877664zQDcMz','6vgrAVN','2957180qZfAaT','1189692ZhGQJt','571260XlmVLn','420QZkfse','1624833GchRUF','2414256FtDUfR','2YURRkC','1914ynIfyP','15AXCErc','10WnREdk'];G=function(){return I;};return G();}import{addKeyboardListener as A,removeKeyboardListener as M,setWindowSoftInputAdjustNothing as K,setWindowSoftInputAdjustResize as D,createMQTTClient as E,deleteFile as q,getLocalAssetUri as Y,getPhotos as F,isExistFile as z,oniOS14GalleryLibrarySelectionChange as C,saveFile as T,takePhoto as k,pickPhoto as B,Video as J,DatePicker as Z,setClipboardString as P,triggerHaptic as b,pickDocument as O}from'./handlers';y({'addKeyboardListener':A,'removeKeyboardListener':M,'setWindowSoftInputAdjustNothing':K,'setWindowSoftInputAdjustResize':D,'createMQTTClient':E,'deleteFile':q,'getLocalAssetUri':Y,'getPhotos':F,'isExistFile':z,'oniOS14GalleryLibrarySelectionChange':C,'pickDocument':O,'saveFile':T,'setClipboardString':P,'takePhoto':k,'pickPhoto':B,'triggerHaptic':b,'Video':J,'DatePicker':Z});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';function j(h,y){var A=G();return j=function(M,K){M=M-0xc6;var D=A[M];return D;},j(h,y);}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';const E=G;(function(j,y){const D=G,A=j();while(!![]){try{const M=parseInt(D(0xc5))/0x1+parseInt(D(0xc4))/0x2*(-parseInt(D(0xb8))/0x3)+parseInt(D(0xb2))/0x4*(parseInt(D(0xba))/0x5)+parseInt(D(0xc6))/0x6+parseInt(D(0xc0))/0x7*(parseInt(D(0xb9))/0x8)+-parseInt(D(0xc3))/0x9*(parseInt(D(0xc1))/0xa)+-parseInt(D(0xbd))/0xb*(parseInt(D(0xc7))/0xc);if(M===y)break;else A['push'](A['shift']());}catch(K){A['push'](A['shift']());}}}(h,0xcfa47));function h(){const f=['1918lxYxbC','1504927XozerM','3971652DvRwIU','12TOVWKK','3644204LmtQNu','ct-na','t\x20gói','\x20\x22rea','warn','Cần\x20c','5115GfNnMr','784SImEzr','5FTXbaE','tive-','ài\x20đặ','8630116iQgwWY','picke','defau','101633UQqkrj','20yHfnbC','date-','5537826kNYOfD'];h=function(){return f;};return h();}let e;try{e=require('react-native-date-picker')[E(0xbf)+'lt'];}catch{console[E(0xb6)](E(0xb7)+E(0xbc)+E(0xb4)+E(0xb5)+E(0xb3)+E(0xbb)+E(0xc2)+E(0xbe)+'r\x22');}function G(j,y){const A=h();return G=function(M,K){M=M-0xb2;let D=A[M];return D;},G(j,y);}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const E=G;(function(j,y){const D=G,A=j();while(!![]){try{const M=parseInt(D(0x7d))/0x1*(parseInt(D(0x77))/0x2)+-parseInt(D(0x6d))/0x3*(-parseInt(D(0x7a))/0x4)+parseInt(D(0x70))/0x5+parseInt(D(0x7f))/0x6*(parseInt(D(0x72))/0x7)+parseInt(D(0x7e))/0x8+-parseInt(D(0x71))/0x9+parseInt(D(0x79))/0xa*(-parseInt(D(0x6f))/0xb);if(M===y)break;else A['push'](A['shift']());}catch(K){A['push'](A['shift']());}}}(h,0xe65ed));function h(){const f=['ct-na','tive-','11nnXoyH','2122192rfvxLU','12JrlPcc','warn','6FPBQlV','t\x20gói','250778AqHpta','6198940czXHff','14482548rgrTgs','975079chmcRg','Cần\x20c','defau','video','ài\x20đặ','100402ZNngxK','\x20\x22rea','170ezmXBG','1208936BFxRwf'];h=function(){return f;};return h();}function G(j,y){const A=h();return G=function(M,K){M=M-0x6d;let D=A[M];return D;},G(j,y);}let e;try{e=require('react-native-video')[E(0x74)+'lt'];}catch{console[E(0x80)](E(0x73)+E(0x76)+E(0x6e)+E(0x78)+E(0x7b)+E(0x7c)+E(0x75)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function h(){var E=['392xoRNVS','117103gvaNCu','100ClJaQD','7019135cBXFMo','234330ZCICuj','12530817JDWcfx','141YvnwCK','42871410cycXvP','9688qaYmkR','31692nNPnVg'];h=function(){return E;};return h();}(function(j,y){var D=G,A=j();while(!![]){try{var M=parseInt(D(0xef))/0x1*(parseInt(D(0xeb))/0x2)+parseInt(D(0xe9))/0x3*(-parseInt(D(0xec))/0x4)+-parseInt(D(0xf0))/0x5+parseInt(D(0xf1))/0x6+parseInt(D(0xee))/0x7*(-parseInt(D(0xed))/0x8)+-parseInt(D(0xf2))/0x9+parseInt(D(0xea))/0xa;if(M===y)break;else A['push'](A['shift']());}catch(K){A['push'](A['shift']());}}}(h,0xc8c52));function G(j,y){var A=h();return G=function(M,K){M=M-0xe9;var D=A[M];return D;},G(j,y);}export*from'./DatePicker';export*from'./Video';
|