@communi/chat-react-native 2.0.3 → 2.0.5
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 +2 -2
- 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';(function(
|
|
1
|
+
'use strict';(function(T,i){var Q=j,A=T();while(!![]){try{var O=-parseInt(Q(0x173))/0x1*(-parseInt(Q(0x16c))/0x2)+parseInt(Q(0x16f))/0x3+parseInt(Q(0x172))/0x4*(parseInt(Q(0x171))/0x5)+parseInt(Q(0x16d))/0x6+-parseInt(Q(0x174))/0x7+parseInt(Q(0x170))/0x8+-parseInt(Q(0x16e))/0x9;if(O===i)break;else A['push'](A['shift']());}catch(u){A['push'](A['shift']());}}}(x,0x9706d));function j(T,i){var A=x();return j=function(O,u){O=O-0x16c;var Q=A[O];return Q;},j(T,i);}function x(){var H=['1227088aryazW','1YdCPPI','7802046OeKeLD','2291538KAfyXJ','3452898VbJTgZ','18359820VpxuGT','3123582cPXSwV','5631560tkLCMZ','5NbidsR'];x=function(){return H;};return x();}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.5",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@communi/chat-api-client-typescript": "^2.0.3",
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.0.
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.0.5",
|
|
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';
|
|
1
|
+
'use strict';const q=j;(function(A,O){const n=j,u=A();while(!![]){try{const Q=-parseInt(n(0xee))/0x1+-parseInt(n(0xe9))/0x2*(parseInt(n(0xeb))/0x3)+-parseInt(n(0xf1))/0x4+parseInt(n(0xe6))/0x5+-parseInt(n(0xec))/0x6+-parseInt(n(0xe7))/0x7*(-parseInt(n(0xf0))/0x8)+parseInt(n(0xed))/0x9;if(Q===O)break;else u['push'](u['shift']());}catch(H){u['push'](u['shift']());}}}(x,0xa2259));function j(T,i){const A=x();return j=function(O,u){O=O-0xe6;let Q=A[O];return Q;},j(T,i);}function x(){const V=['26186769NmBOuK','191962uqORtH','ent','248XgUxFC','4634808KFcWuO','2042915mQLMKM','125839ZjMVGY','eElem','18118sRIzOt','creat','177qcjYXd','7957278hZiARr'];x=function(){return V;};return x();}import T from'react';import{DatePickerComponent as i}from'../optionalDependencies/DatePicker';export const DatePicker=i?({modal:A,open:O,date:u,minimumDate:Q,onConfirm:H,onCancel:E})=>T[q(0xea)+q(0xe8)+q(0xef)](i,{'modal':A,'open':O,'date':u,'minimumDate':Q,'onConfirm':H,'onCancel':E}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function j(T,i){const A=x();return j=function(O,u){O=O-0x1c4;let Q=A[O];return Q;},j(T,i);}const n=j;(function(A,O){const E=j,u=A();while(!![]){try{const Q=parseInt(E(0x1d3))/0x1+parseInt(E(0x1ce))/0x2+-parseInt(E(0x1c5))/0x3+-parseInt(E(0x1dc))/0x4+parseInt(E(0x1c9))/0x5*(-parseInt(E(0x1df))/0x6)+parseInt(E(0x1cb))/0x7*(parseInt(E(0x1d4))/0x8)+-parseInt(E(0x1d5))/0x9;if(Q===O)break;else u['push'](u['shift']());}catch(H){u['push'](u['shift']());}}}(x,0x85459));function x(){const q=['eKeyb','ST_NO','remov','1059690BDiwdp','THING','183435NCGNMg','SIZE','ndowS','1873832KNIdEz','_ADJU','ener','SOFT_','yboar','1086737lWNrOb','312xyLTJh','7122726zoFlOm','oardL','dList','isten','INPUT','addKe','setWi','681132DQyxus','ST_RE','oftIn','24YnFlGF','putMo','2070954hYvUgi'];x=function(){return q;};return x();}import{PSKeyboard as T,SoftInputMode as i}from'@communi/keyboard-area-react-native';export const addKeyboardListener=A=>T[n(0x1da)+n(0x1d2)+n(0x1d7)+n(0x1d0)](A),removeKeyboardListener=A=>T[n(0x1c8)+n(0x1c6)+n(0x1d6)+n(0x1d8)+'er'](A),setWindowSoftInputAdjustNothing=()=>T[n(0x1db)+n(0x1cd)+n(0x1de)+n(0x1c4)+'de'](i[n(0x1d1)+n(0x1d9)+n(0x1cf)+n(0x1c7)+n(0x1ca)]),setWindowSoftInputAdjustResize=()=>T[n(0x1db)+n(0x1cd)+n(0x1de)+n(0x1c4)+'de'](i[n(0x1d1)+n(0x1d9)+n(0x1cf)+n(0x1dd)+n(0x1cc)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function x(){const n=['2TbfQVa','375465bSdFNx','getIn','5459856PWmtmQ','stanc','1001245xLzbXd','1006978heMPDg','4338110TcCQRf','936BxPkWq','4gJFyrh','5355altATf','26616660fcRnJo','11qyQlhV'];x=function(){return n;};return x();}const E=j;function j(T,i){const A=x();return j=function(O,u){O=O-0xcb;let Q=A[O];return Q;},j(T,i);}(function(i,A){const H=j,O=i();while(!![]){try{const u=parseInt(H(0xcb))/0x1*(-parseInt(H(0xd2))/0x2)+parseInt(H(0xd3))/0x3+-parseInt(H(0xce))/0x4*(-parseInt(H(0xd7))/0x5)+-parseInt(H(0xd5))/0x6+-parseInt(H(0xcc))/0x7+parseInt(H(0xcd))/0x8*(parseInt(H(0xcf))/0x9)+parseInt(H(0xd0))/0xa*(parseInt(H(0xd1))/0xb);if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0x7ef41));import{MQTTClient as T}from'@communi/mqtt-client-react-native';export const createMQTTClient=async i=>T[E(0xd4)+E(0xd6)+'e'](i);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const B=j;(function(A,O){const b=j,Q=A();while(!![]){try{const H=-parseInt(b(0x19c))/0x1+-parseInt(b(0x19e))/0x2*(-parseInt(b(0x1a4))/0x3)+parseInt(b(0x199))/0x4*(parseInt(b(0x19f))/0x5)+-parseInt(b(0x198))/0x6+-parseInt(b(0x1a5))/0x7*(parseInt(b(0x1a3))/0x8)+-parseInt(b(0x19b))/0x9+-parseInt(b(0x1a1))/0xa*(-parseInt(b(0x1a6))/0xb);if(H===O)break;else Q['push'](Q['shift']());}catch(E){Q['push'](Q['shift']());}}}(x,0x1a337));function j(T,i){const A=x();return j=function(O,u){O=O-0x198;let Q=A[O];return Q;},j(T,i);}import T from'react';import{AudioVideoComponent as i}from'../optionalDependencies/Video';function x(){const f=['23555htcvqr','ignor','1043590yjFasY','creat','62120GtGKFx','159hMYkbn','7KXRiYb','11HMVQGl','eElem','733968MbNcHL','40UGtWoh','ent','525672qGiZHe','60441RLelSN','error','7728XfBOFf'];x=function(){return f;};return x();}export const Video=i?({onBuffer:A,onEnd:O,onLoad:Q,onProgress:H,paused:E,repeat:q,resizeMode:V,style:J,uri:k,videoRef:F})=>T[B(0x1a2)+B(0x1a7)+B(0x19a)](i,{'ignoreSilentSwitch':B(0x1a0)+'e','onBuffer':A,'onEnd':O,'onError':y=>{const L=B;console[L(0x19d)](y);},'onLoad':Q,'onProgress':H,'paused':E,'ref':F,'repeat':q,'resizeMode':V,'source':{'uri':k},'style':J}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(Q,
|
|
1
|
+
'use strict';function j(T,i){const A=x();return j=function(O,u){O=O-0x125;let Q=A[O];return Q;},j(T,i);}(function(i,A){const H=j,O=i();while(!![]){try{const u=parseInt(H(0x12d))/0x1*(parseInt(H(0x133))/0x2)+parseInt(H(0x127))/0x3+-parseInt(H(0x128))/0x4+parseInt(H(0x12e))/0x5*(-parseInt(H(0x12f))/0x6)+parseInt(H(0x12b))/0x7+-parseInt(H(0x12a))/0x8+-parseInt(H(0x130))/0x9*(-parseInt(H(0x126))/0xa);if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0xcdb1e));function x(){const n=['20510510ktYmRZ','1841742jpbKzZ','2409368RdiSXC','ailed','4912504yybWee','2006193kfWCTV','File\x20','43buLoYy','5BqAWUS','7209012SVrPQZ','9fQZPTB','...','ion\x20f','14366HUIKpI','delet','unlin','log'];x=function(){return n;};return x();}import T from'react-native-fs';export const deleteFile=async({uri:i})=>{const E=j;try{return await T[E(0x135)+'k'](i),!0x0;}catch(A){return console[E(0x125)](E(0x12c)+E(0x134)+E(0x132)+E(0x129)+E(0x131),A),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,A){const H=j,O=i();while(!![]){try{const u=parseInt(H(0x13a))/0x1*(parseInt(H(0x131))/0x2)+parseInt(H(0x136))/0x3+parseInt(H(0x134))/0x4*(-parseInt(H(0x13f))/0x5)+-parseInt(H(0x141))/0x6*(parseInt(H(0x133))/0x7)+-parseInt(H(0x139))/0x8*(parseInt(H(0x13b))/0x9)+parseInt(H(0x137))/0xa+-parseInt(H(0x138))/0xb*(-parseInt(H(0x132))/0xc);if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0x85893));function j(T,i){const A=x();return j=function(O,u){O=O-0x131;let Q=A[O];return Q;},j(T,i);}function x(){const n=['setUr','i\x20Err','990nVszOZ','calAs','78NbonwP','332070PFaAsk','1196508vNAoTq','307517fnHnkx','15724ptfSMF','getLo','2253849bCCMJw','7650270mvbVBQ','88rNzjlG','2998592paYKnh','2jVwYkc','18gRGZiQ','save'];x=function(){return n;};return x();}import{CameraRoll as T}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async i=>{const E=j;try{return await T[E(0x13c)](i);}catch{throw new Error(E(0x135)+E(0x140)+E(0x13d)+E(0x13e)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(u,Q){const F=j,H=u();while(!![]){try{const E=-parseInt(F(0xff))/0x1*(parseInt(F(0x124))/0x2)+parseInt(F(0x11e))/0x3+parseInt(F(0x139))/0x4*(-parseInt(F(0x144))/0x5)+parseInt(F(0x129))/0x6*(parseInt(F(0x12b))/0x7)+-parseInt(F(0x110))/0x8+-parseInt(F(0x134))/0x9+parseInt(F(0x14a))/0xa;if(E===Q)break;else H['push'](H['shift']());}catch(n){H['push'](H['shift']());}}}(x,0xb657b));import{CameraRoll as T}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as i,Platform as O}from'react-native';function x(){const B=['Deny','SSION','Versi','s\x20are','eVers','GRANT','getPh','All','stMul','Allow','cess\x20','2470672uEUTvm','filen','to\x20ac','READ_','playa','edges','hare\x20','page_','end_c','info','e\x20Lat','s\x20Acc','ext_p','bleDu','2979453BFRUVv','NAL_S','Nativ','image','ired\x20','ssion','250282YIvlGz','const','Error','ame','reque','64392NVROrx','ize','763rLxOYs','_VIDE','ratio','\x20requ','RESUL','andro','ion','photo','otos\x20','3366540bvGHtB','minor','EXTER','map','ess','1536gKJjyN','otos','MEDIA','node','Size','Ask\x20M','and\x20s','picke','_IMAG','TORAG','then','18190YowIuc','check','age','has_n','Photo','ursor','12895270YgEerf','react','tiple','5FEjvvA','all','ants','PERMI','fileS','Permi'];x=function(){return B;};return x();}const A=async()=>{const y=j,u=O[y(0x125)+y(0x101)][y(0xfd)+y(0x120)+y(0x109)+y(0x131)]?.[y(0x135)]>=0x47,Q=O[y(0x107)+'on']>=0x21,H=u&&Q;return await((()=>H?Promise[y(0x100)]([i[y(0x145)](i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x141)+'ES']),i[y(0x145)](i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x12c)+'O'])])[y(0x143)](([E,q])=>E&&q):i[y(0x145)](i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x136)+y(0x11f)+y(0x142)+'E']))())?!0x0:await((()=>H?i[y(0x128)+y(0x10d)+y(0xfe)]([i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x141)+'ES'],i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x12c)+'O']])[y(0x143)](E=>E[i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x141)+'ES']]===i[y(0x12f)+'TS'][y(0x10a)+'ED']&&E[i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x13b)+y(0x12c)+'O']]===i[y(0x12f)+'TS'][y(0x10a)+'ED']):i[y(0x128)+'st'](i[y(0x102)+y(0x106)+'S'][y(0x113)+y(0x136)+y(0x11f)+y(0x142)+'E'],{'buttonNegative':y(0x105),'buttonNeutral':y(0x13e)+y(0x11a)+'er','buttonPositive':y(0x10e),'message':y(0x104)+y(0x123)+y(0x108)+y(0x12e)+y(0x122)+y(0x112)+y(0x10f)+y(0x13f)+y(0x116)+y(0x132)+'s.','title':y(0x148)+y(0x11b)+y(0x138)})[y(0x143)](E=>E===i[y(0x12f)+'TS'][y(0x10a)+'ED']))());};function j(T,i){const A=x();return j=function(O,u){O=O-0xfd;let Q=A[O];return Q;},j(T,i);}export const getPhotos=async({after:u,first:Q})=>{const b=j;try{if(O['OS']===b(0x130)+'id'&&!await A())throw new Error(b(0x10b)+b(0x133)+b(0x126));const H=await T[b(0x10b)+b(0x13a)]({'after':u,'assetType':b(0x10c),'first':Q,'include':[b(0x103)+b(0x12a),b(0x111)+b(0x127),b(0x121)+b(0x13d),b(0x114)+b(0x11d)+b(0x12d)+'n']}),q=H[b(0x115)][b(0x137)](k=>({'source':b(0x140)+'r',...k[b(0x13c)][b(0x121)],'fileSize':k[b(0x13c)][b(0x121)][b(0x103)+b(0x12a)]??0x0})),V=H[b(0x117)+b(0x119)][b(0x147)+b(0x11c)+b(0x146)],J=H[b(0x117)+b(0x119)][b(0x118)+b(0x149)];return{'assets':q,'endCursor':J,'hasNextPage':V};}catch{throw new Error(b(0x10b)+b(0x133)+b(0x126));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(T,i){var Q=j,A=T();while(!![]){try{var O=-parseInt(Q(0x142))/0x1+-parseInt(Q(0x13f))/0x2+parseInt(Q(0x144))/0x3*(-parseInt(Q(0x141))/0x4)+-parseInt(Q(0x13e))/0x5+-parseInt(Q(0x13d))/0x6*(-parseInt(Q(0x140))/0x7)+-parseInt(Q(0x143))/0x8+parseInt(Q(0x145))/0x9;if(O===i)break;else A['push'](A['shift']());}catch(u){A['push'](A['shift']());}}}(x,0xb57ea));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 x(){var H=['724JyxXLz','697769hepvYN','143744WrBkYc','20040kXWEuD','25070823VJtJRk','616326PpGULL','1244240RFOMPH','1586138WCuOwh','63rztWRo'];x=function(){return H;};return x();}export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';function j(T,i){var A=x();return j=function(O,u){O=O-0x13d;var Q=A[O];return Q;},j(T,i);}export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,A){const H=j,O=i();while(!![]){try{const u=-parseInt(H(0x9c))/0x1*(parseInt(H(0x92))/0x2)+parseInt(H(0x9e))/0x3+-parseInt(H(0x98))/0x4*(-parseInt(H(0x9b))/0x5)+-parseInt(H(0x93))/0x6*(parseInt(H(0x97))/0x7)+-parseInt(H(0x94))/0x8+-parseInt(H(0x90))/0x9*(parseInt(H(0x95))/0xa)+parseInt(H(0x91))/0xb*(parseInt(H(0x9d))/0xc);if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0x580f0));function j(T,i){const A=x();return j=function(O,u){O=O-0x90;let Q=A[O];return Q;},j(T,i);}import T from'react-native-fs';function x(){const n=['1551480CWIWam','exist','314289MaNkUv','11iOkAZj','2036RGIJIf','3673224NtVYrN','5263200HUJJVu','40CBXmJd','isExi','7NuEzLs','4SaEnSP','e\x20Err','stFil','1875165MfVJaq','580AcroSi','17624676ACUHSz'];x=function(){return n;};return x();}export const isExistFile=async i=>{const E=j;try{return await T[E(0x9f)+'s'](i);}catch{throw new Error(E(0x96)+E(0x9a)+E(0x99)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const q=j;(function(O,u){const n=j,Q=O();while(!![]){try{const H=parseInt(n(0x180))/0x1+parseInt(n(0x16f))/0x2+parseInt(n(0x172))/0x3*(parseInt(n(0x17e))/0x4)+-parseInt(n(0x17d))/0x5+-parseInt(n(0x170))/0x6+-parseInt(n(0x176))/0x7+parseInt(n(0x174))/0x8;if(H===u)break;else Q['push'](Q['shift']());}catch(E){Q['push'](Q['shift']());}}}(x,0x46cfe));function x(){const k=['ange','1609132UasFxW','stene','ios','raryS','Versi','elect','onLib','2721745WpozVg','4RGJrgO','remov','340466lXriWp','324184snZDtG','2372034sfhJHY','addLi','939369GINskb','ionCh','5151432Ovwuih'];x=function(){return k;};return x();}import{cameraRollEventEmitter as T}from'@react-native-camera-roll/camera-roll';function j(T,i){const A=x();return j=function(O,u){O=O-0x16f;let Q=A[O];return Q;},j(T,i);}import{Platform as A}from'react-native';const i=A['OS']===q(0x178)&&parseInt(A[q(0x17a)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(O){const V=q;if(i){const u=T[V(0x171)+V(0x177)+'r'](V(0x17c)+V(0x179)+V(0x17b)+V(0x173)+V(0x175),O);return{'unsubscribe':()=>{const J=V;u[J(0x17f)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function j(T,i){const A=x();return j=function(O,u){O=O-0xf6;let Q=A[O];return Q;},j(T,i);}function x(){const n=['les','9XzigZt','6411167IImUwB','2572364CRcBXp','map','3948445JoPprX','lengt','9151176LCyEIF','13220892oaDSFP','slice','1400476MnjWvD','pick','6IkclfG','allFi','17054nTfCIB','types'];x=function(){return n;};return x();}(function(i,A){const H=j,O=i();while(!![]){try{const u=-parseInt(H(0x102))/0x1+-parseInt(H(0xf6))/0x2+parseInt(H(0xf9))/0x3*(-parseInt(H(0xfb))/0x4)+parseInt(H(0xfd))/0x5*(parseInt(H(0x104))/0x6)+parseInt(H(0xfa))/0x7+parseInt(H(0xff))/0x8+parseInt(H(0x100))/0x9;if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0xef4d3));import T from'react-native-document-picker';export const pickDocument=async i=>{const E=j;try{let A=await T[E(0x103)]({'allowMultiSelection':!0x0,'type':[T[E(0xf7)][E(0x105)+E(0xf8)]]});return i&&A[E(0xfe)+'h']>i&&(A=A[E(0x101)](0x0,i)),{'assets':A[E(0xfc)](({name:O,size:u,uri:Q})=>({'uri':Q,'size':u,'name':O})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const k=j;(function(O,u){const J=j,Q=O();while(!![]){try{const H=parseInt(J(0x11b))/0x1+parseInt(J(0x115))/0x2+-parseInt(J(0x11c))/0x3*(-parseInt(J(0x11d))/0x4)+parseInt(J(0x116))/0x5+-parseInt(J(0x110))/0x6*(parseInt(J(0x10d))/0x7)+-parseInt(J(0xff))/0x8*(-parseInt(J(0x11f))/0x9)+-parseInt(J(0x117))/0xa*(parseInt(J(0xfe))/0xb);if(H===u)break;else Q['push'](Q['shift']());}catch(E){Q['push'](Q['shift']());}}}(x,0xb557c));import{Image as T,Platform as i}from'react-native';function j(T,i){const A=x();return j=function(O,u){O=O-0xfa;let Q=A[O];return Q;},j(T,i);}import A from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:O=i['OS']===k(0x119)?0.8:0x1,cropping:u=!0x1})=>{const F=k,Q=await A[F(0x114)+F(0x10a)]({'compressImageQuality':Math[F(0x109)](Math[F(0xfb)](0x0,O),0x1),'cropping':u===!0x0});if(Q[F(0xfa)+'t']&&Q[F(0x108)]&&Q[F(0x10f)]){let H;if(i['OS']===F(0x10e)+'id'){const E=()=>new Promise(n=>{const y=F;T[y(0x102)+'ze'](Q[y(0x10f)],(q,V)=>{n({'height':V,'width':q});});});try{const n=await E();H={'width':n[F(0x108)],'height':n[F(0xfa)+'t']};}catch(q){console[F(0x103)](F(0x10b)+F(0x111)+F(0x101)+F(0x113)+F(0x100)+F(0x10c)+F(0x107)+F(0x106)+F(0xfc)+F(0x112)+'y\x20',q);}}else H={'height':Q[F(0xfa)+'t'],'width':Q[F(0x108)]};if(H){const V=Q[F(0x10f)][F(0x105)+F(0x11a)+'f']('/');return{'source':F(0x11e)+'r','name':Q[F(0x10f)][F(0x118)+F(0xfd)](V+0x1),'size':Q[F(0x104)],'uri':Q[F(0x10f)],...H};}else return;}};function x(){const b=['picke','135fKJwmC','heigh','max','rom\x20g','ring','11vNFslr','480008bDYEYt','\x20of\x20p','image','getSi','error','size','lastI','ker\x20f','e\x20pic','width','min','icker','Error','ictur','7AqRmQH','andro','path','3981174nJnAdR','\x20get\x20','aller','\x20size','openP','79038wUHGnu','1128855LLyVNs','24293960eVPVvr','subst','ios','ndexO','1245295vKtbCs','4275315mtqHHi','4VlFoef'];x=function(){return b;};return x();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(i,A){const E=j,O=i();while(!![]){try{const u=parseInt(E(0x19a))/0x1+-parseInt(E(0x186))/0x2*(parseInt(E(0x19b))/0x3)+parseInt(E(0x199))/0x4*(parseInt(E(0x188))/0x5)+-parseInt(E(0x195))/0x6*(parseInt(E(0x18f))/0x7)+parseInt(E(0x198))/0x8+-parseInt(E(0x19d))/0x9*(-parseInt(E(0x18a))/0xa)+-parseInt(E(0x190))/0xb;if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0x3c55e));import T from'react-native-fs';function x(){const q=['file:','271500JZbwWv','Path','30eirWdh','Downl','promi','downl','sDire','700546oORboS','8517905inXIId','iled.','oadFi','ge\x20fa','ctory','24rsPQsA','g\x20ima','oadin','3063576BhUSMG','20yBYoyX','426013nyfMeR','75UKrQhC','Cache','1134873agpmse','2956CekIGt'];x=function(){return q;};return x();}function j(T,i){const A=x();return j=function(O,u){O=O-0x186;let Q=A[O];return Q;},j(T,i);}export const saveFile=async({fileName:A,fromUrl:O,onProgress:u})=>{const n=j;try{const Q=T[n(0x19c)+n(0x18e)+n(0x194)+n(0x189)]+'/'+encodeURIComponent(A);return await T[n(0x18d)+n(0x192)+'le']({'fromUrl':O,'toFile':Q,'background':!0x0,'discretionary':!0x0,'progress':u,'begin':H=>{},'progressDivider':0x5})[n(0x18c)+'se'],n(0x187)+'//'+Q;}catch{throw new Error(n(0x18b)+n(0x197)+n(0x196)+n(0x193)+n(0x191)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const E=j;function j(T,i){const A=x();return j=function(O,u){O=O-0x123;let Q=A[O];return Q;},j(T,i);}(function(i,A){const H=j,O=i();while(!![]){try{const u=-parseInt(H(0x123))/0x1*(parseInt(H(0x12a))/0x2)+-parseInt(H(0x12d))/0x3+parseInt(H(0x125))/0x4*(parseInt(H(0x126))/0x5)+parseInt(H(0x127))/0x6+parseInt(H(0x12f))/0x7+parseInt(H(0x12b))/0x8*(-parseInt(H(0x128))/0x9)+-parseInt(H(0x124))/0xa*(parseInt(H(0x12e))/0xb);if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0xe8951));import T from'@react-native-clipboard/clipboard';export const setClipboardString=i=>T[E(0x129)+E(0x12c)](i);function x(){const n=['708103LMewZL','11772733SiDldb','70psmeAA','370yeExys','860LayUbY','40150tfAFPC','10451106QQorhe','9ErGoeU','setSt','5966WwRLdv','5170232WqeuHF','ring','2881719KzSGcr'];x=function(){return n;};return x();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function j(T,i){const A=x();return j=function(O,u){O=O-0xd0;let Q=A[O];return Q;},j(T,i);}function x(){const o=['12xToeiV','RESUL','\x20size','amera','size','subst','SSION','getSi','2689799LVBclf','ntSta','openC','utred','messa','95WyVDZP','225128kyfTrf','issio','path','check','\x20from','Error','CAMER','image','2122335oKKRlf','100VahBRD','DENIE','27lsXUyg','AGAIN','ant\x20c','curre','ictur','max','62036IXfLyH','reque','activ','\x20get\x20','533178EljnqA','NEVER','ra\x20','1251636ZJEXfv','_ASK_','PERMI','ios','error','lastI','min','2344331PqrMGH','andro','User\x20','\x20of\x20p','heigh','ndexO','camer','\x20came','ot\x20gr','width','\x20perm','did\x20n','ring','e\x20cap'];x=function(){return o;};return x();}const f=j;(function(Q,H){const L=j,E=Q();while(!![]){try{const n=-parseInt(L(0xf8))/0x1+-parseInt(L(0xfb))/0x2+parseInt(L(0xeb))/0x3+parseInt(L(0xf4))/0x4*(-parseInt(L(0xe2))/0x5)+-parseInt(L(0xd5))/0x6*(parseInt(L(0xdd))/0x7)+parseInt(L(0xe3))/0x8*(parseInt(L(0xee))/0x9)+-parseInt(L(0xec))/0xa*(-parseInt(L(0x102))/0xb);if(n===H)break;else E['push'](E['shift']());}catch(q){E['push'](E['shift']());}}}(x,0xab1e1));import{AppState as T,Image as i,PermissionsAndroid as A,Platform as O}from'react-native';import u from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:Q=O['OS']===f(0xfe)?0.8:0x1,cropping:H=!0x1})=>{const e=f;if(O['OS']===e(0x103)+'id'&&A[e(0xfd)+e(0xdb)+'S'][e(0xe9)+'A']&&!await A[e(0xe6)](A[e(0xfd)+e(0xdb)+'S'][e(0xe9)+'A'])){const E=await A[e(0xf5)+'st'](A[e(0xfd)+e(0xdb)+'S'][e(0xe9)+'A']);if(E===A[e(0xd6)+'TS'][e(0xed)+'D'])return{'cancelled':!0x0};if(E===A[e(0xd6)+'TS'][e(0xf9)+e(0xfc)+e(0xef)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const q=await u[e(0xdf)+e(0xd8)]({'compressImageQuality':Math[e(0x101)](Math[e(0xf3)](0x0,Q),0x1),'cropping':H===!0x0});if(q[e(0x106)+'t']&&q[e(0xd0)]&&q[e(0xe5)]){let V;if(O['OS']===e(0x103)+'id'){const J=()=>new Promise(k=>{const R=e;i[R(0xdc)+'ze'](q[R(0xe5)],(F,y)=>{k({'height':y,'width':F});});});try{const k=await J();V={'width':k[e(0xd0)],'height':k[e(0x106)+'t']};}catch(F){console[e(0xff)](e(0xe8)+e(0xf7)+e(0xea)+e(0xd7)+e(0x105)+e(0xf2)+e(0xd4)+e(0xe0)+e(0xe7)+e(0x109)+e(0xfa),F);}}else V={'height':q[e(0x106)+'t'],'width':q[e(0xd0)]};if(V){const y=q[e(0xe5)][e(0x100)+e(0x107)+'f']('/');return{'cancelled':!0x1,'source':e(0x108)+'a','name':q[e(0xe5)][e(0xda)+e(0xd3)](y+0x1),'size':q[e(0xd9)],'uri':q[e(0xe5)],...V};}else return;}}catch(b){if(b instanceof Error&&O['OS']===e(0xfe)&&T[e(0xf1)+e(0xde)+'te']===e(0xf6)+'e'){const B=e(0x104)+e(0xd2)+e(0x10a)+e(0xf0)+e(0xd8)+e(0xd1)+e(0xe4)+'n.';if(b[e(0xe1)+'ge']===B)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(Q,
|
|
1
|
+
'use strict';function j(T,i){const A=x();return j=function(O,u){O=O-0x1e6;let Q=A[O];return Q;},j(T,i);}(function(i,A){const H=j,O=i();while(!![]){try{const u=parseInt(H(0x1ee))/0x1*(parseInt(H(0x1ed))/0x2)+-parseInt(H(0x1e6))/0x3*(parseInt(H(0x1f0))/0x4)+parseInt(H(0x1e9))/0x5*(-parseInt(H(0x1ec))/0x6)+-parseInt(H(0x1e7))/0x7*(-parseInt(H(0x1ef))/0x8)+parseInt(H(0x1eb))/0x9+-parseInt(H(0x1ea))/0xa+-parseInt(H(0x1f1))/0xb;if(u===A)break;else O['push'](O['shift']());}catch(Q){O['push'](O['shift']());}}}(x,0xc43d2));import T from'react-native-haptic-feedback';function x(){const n=['2987105DBlePm','9GLWSLE','349216YwXsEl','trigg','2092935DrZgNg','1219940cLftfT','5376330TUQAQm','6TNCieO','2030OGBrdl','242YjpNJw','152tvabrp','233256gwCaTd'];x=function(){return n;};return x();}export const triggerHaptic=i=>{const E=j;T[E(0x1e8)+'er'](i,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(w,z){var N=T,W=w();while(!![]){try{var I=-parseInt(N(0xfb))/0x1*(parseInt(N(0xfa))/0x2)+parseInt(N(0x102))/0x3*(-parseInt(N(0x101))/0x4)+-parseInt(N(0x100))/0x5*(-parseInt(N(0xfd))/0x6)+parseInt(N(0xfc))/0x7+-parseInt(N(0x103))/0x8+parseInt(N(0xff))/0x9+-parseInt(N(0xfe))/0xa*(-parseInt(N(0x104))/0xb);if(I===z)break;else W['push'](W['shift']());}catch(U){W['push'](W['shift']());}}}(j,0x904c4));import{registerNativeHandlers as A}from'@communi/chat-ui-react-native';import{addKeyboardListener as O,removeKeyboardListener as Q,setWindowSoftInputAdjustNothing as H,setWindowSoftInputAdjustResize as E,createMQTTClient as q,deleteFile as V,getLocalAssetUri as J,getPhotos as k,isExistFile as F,oniOS14GalleryLibrarySelectionChange as y,saveFile as b,takePhoto as B,pickPhoto as L,Video as R,DatePicker as v,setClipboardString as Z,triggerHaptic as K,pickDocument as C}from'./handlers';A({'addKeyboardListener':O,'removeKeyboardListener':Q,'setWindowSoftInputAdjustNothing':H,'setWindowSoftInputAdjustResize':E,'createMQTTClient':q,'deleteFile':V,'getLocalAssetUri':J,'getPhotos':k,'isExistFile':F,'oniOS14GalleryLibrarySelectionChange':y,'pickDocument':C,'saveFile':b,'setClipboardString':Z,'takePhoto':B,'pickPhoto':L,'triggerHaptic':K,'Video':R,'DatePicker':v});export*from'@communi/chat-ui-react-native';function T(x,i){var A=j();return T=function(O,u){O=O-0xfa;var Q=A[O];return Q;},T(x,i);}export*from'@communi/keyboard-area-react-native';function j(){var M=['4OpKGJm','264340BWKUvj','5417587UceIzU','6jlxjPP','3852400jgoFkQ','7241436JCFwgc','265015SZyJfR','72dYNjAp','60981lRhIgq','4249424RLSosM','11EnykXQ'];j=function(){return M;};return j();}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 H=j;function x(){const E=['\x20\x22rea','7346DWKRfH','7118280Ipnspi','7FKdmLP','date-','16sEmNbN','defau','1739838jGFxHU','780777dJLaHI','ài\x20đặ','warn','100566hJeQdf','Cần\x20c','tive-','ct-na','t\x20gói','5ljUIsz','5738820osBQrb','11MDrMgR','116uVTKSj','picke','2767955ShJAYp'];x=function(){return E;};return x();}(function(T,i){const Q=j,A=T();while(!![]){try{const O=-parseInt(Q(0x72))/0x1*(parseInt(Q(0x79))/0x2)+-parseInt(Q(0x6d))/0x3*(-parseInt(Q(0x75))/0x4)+parseInt(Q(0x77))/0x5+parseInt(Q(0x69))/0x6*(parseInt(Q(0x7b))/0x7)+parseInt(Q(0x7d))/0x8*(parseInt(Q(0x6a))/0x9)+-parseInt(Q(0x7a))/0xa+parseInt(Q(0x74))/0xb*(-parseInt(Q(0x73))/0xc);if(O===i)break;else A['push'](A['shift']());}catch(u){A['push'](A['shift']());}}}(x,0xbe9ec));let e;try{e=require('react-native-date-picker')[H(0x7e)+'lt'];}catch{console[H(0x6c)](H(0x6e)+H(0x6b)+H(0x71)+H(0x78)+H(0x70)+H(0x6f)+H(0x7c)+H(0x76)+'r\x22');}function j(T,i){const A=x();return j=function(O,u){O=O-0x69;let Q=A[O];return Q;},j(T,i);}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const H=j;(function(T,i){const Q=j,A=T();while(!![]){try{const O=-parseInt(Q(0x1d3))/0x1*(parseInt(Q(0x1d6))/0x2)+-parseInt(Q(0x1da))/0x3*(-parseInt(Q(0x1cc))/0x4)+-parseInt(Q(0x1cf))/0x5+parseInt(Q(0x1d9))/0x6*(-parseInt(Q(0x1d1))/0x7)+-parseInt(Q(0x1d8))/0x8*(parseInt(Q(0x1dd))/0x9)+-parseInt(Q(0x1d0))/0xa+parseInt(Q(0x1de))/0xb*(parseInt(Q(0x1df))/0xc);if(O===i)break;else A['push'](A['shift']());}catch(u){A['push'](A['shift']());}}}(x,0xc2f40));let e;function x(){const E=['defau','ct-na','3412vdzikI','t\x20gói','8xDnOCd','110748QNVOEL','176877gMyuFv','tive-','warn','5199867DjbISQ','671OBcmgP','755592PdgzWL','ài\x20đặ','44oIPfbq','video','Cần\x20c','979015CaTxkS','599710NsIvoQ','546xlYYKu','\x20\x22rea','831huzQAa'];x=function(){return E;};return x();}function j(T,i){const A=x();return j=function(O,u){O=O-0x1cb;let Q=A[O];return Q;},j(T,i);}try{e=require('react-native-video')[H(0x1d4)+'lt'];}catch{console[H(0x1dc)](H(0x1ce)+H(0x1cb)+H(0x1d7)+H(0x1d2)+H(0x1d5)+H(0x1db)+H(0x1cd)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function j(T,i){var A=x();return j=function(O,u){O=O-0x114;var Q=A[O];return Q;},j(T,i);}(function(T,i){var Q=j,A=T();while(!![]){try{var O=-parseInt(Q(0x116))/0x1+parseInt(Q(0x11b))/0x2+parseInt(Q(0x117))/0x3+-parseInt(Q(0x114))/0x4*(-parseInt(Q(0x118))/0x5)+-parseInt(Q(0x11a))/0x6+parseInt(Q(0x115))/0x7+-parseInt(Q(0x119))/0x8;if(O===i)break;else A['push'](A['shift']());}catch(u){A['push'](A['shift']());}}}(x,0x6e5e0));export*from'./DatePicker';function x(){var H=['4213312XwpDbi','2007072dkfefV','1599034PGMYgX','10452EcnBSQ','4236358zVzRjr','655281ghGGiO','1040793GpEAhn','415ESOtbe'];x=function(){return H;};return x();}export*from'./Video';
|