@communi/chat-react-native 2.6.6 → 2.6.8
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.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(w,O){var M=Y,V=w();while(!![]){try{var t=parseInt(M(0x16e))/0x1*(-parseInt(M(0x16c))/0x2)+parseInt(M(0x16d))/0x3*(-parseInt(M(0x170))/0x4)+parseInt(M(0x171))/0x5+parseInt(M(0x16b))/0x6*(parseInt(M(0x167))/0x7)+-parseInt(M(0x16a))/0x8+parseInt(M(0x168))/0x9+-parseInt(M(0x16f))/0xa*(-parseInt(M(0x169))/0xb);if(t===O)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(u,0xdf498));function Y(w,O){var V=u();return Y=function(t,E){t=t-0x167;var M=V[t];return M;},Y(w,O);}function u(){var B=['9693063zDnUEV','737aeNtCF','7935072MFbgpB','438IqCrQn','76SVASES','3RqOesW','40226inKLZG','52790vcinjZ','4101244luZAiL','6068230KEJtem','174139lAXrJC'];u=function(){return B;};return u();}export*from'./src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.8",
|
|
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.6.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.6.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.6.6",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.6.8",
|
|
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 q=Y;function Y(w,O){const V=u();return Y=function(t,E){t=t-0x1c2;let M=V[t];return M;},Y(w,O);}(function(V,t){const S=Y,E=V();while(!![]){try{const M=parseInt(S(0x1c2))/0x1*(parseInt(S(0x1c9))/0x2)+parseInt(S(0x1cd))/0x3*(-parseInt(S(0x1cf))/0x4)+parseInt(S(0x1c7))/0x5+parseInt(S(0x1ce))/0x6+-parseInt(S(0x1d0))/0x7*(parseInt(S(0x1c8))/0x8)+parseInt(S(0x1cc))/0x9*(-parseInt(S(0x1c4))/0xa)+-parseInt(S(0x1cb))/0xb*(parseInt(S(0x1ca))/0xc);if(M===t)break;else E['push'](E['shift']());}catch(B){E['push'](E['shift']());}}}(u,0xa8581));function u(){const g=['326412IxCYgM','6052818ESmiyI','36YUuVml','17717xwGzIG','2795QSSFoG','creat','3679270ifDjzU','eElem','ent','5669820xPMrMA','1784NbxiVD','902XIouzv','228XOJJRb','464431TKmVEo','9hOIylS'];u=function(){return g;};return u();}import w from'react';import{DatePickerComponent as O}from'../optionalDependencies/DatePicker';export const DatePicker=O?({modal:V,open:E,date:M,minimumDate:B,onConfirm:y,onCancel:F})=>w[q(0x1c3)+q(0x1c5)+q(0x1c6)](O,{'modal':V,'open':E,'date':M,'minimumDate':B,'onConfirm':y,'onCancel':F}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const Y
|
|
1
|
+
'use strict';const S=Y;(function(V,E){const F=Y,M=V();while(!![]){try{const B=-parseInt(F(0x127))/0x1*(parseInt(F(0x11f))/0x2)+parseInt(F(0x125))/0x3+-parseInt(F(0x133))/0x4+parseInt(F(0x12a))/0x5+parseInt(F(0x128))/0x6*(-parseInt(F(0x11e))/0x7)+parseInt(F(0x123))/0x8+parseInt(F(0x130))/0x9*(-parseInt(F(0x129))/0xa);if(B===E)break;else M['push'](M['shift']());}catch(y){M['push'](M['shift']());}}}(u,0xbcb89));function u(){const q=['oftIn','addKe','putMo','SOFT_','7yfCfvI','2xjCzQm','ST_NO','ST_RE','_ADJU','9465104vyAmfz','yboar','3592665XWbJzj','remov','366181JpuYkV','2846706nNzwlw','176750tRmnZy','2461995dikRrA','THING','dList','eKeyb','INPUT','setWi','621VjDBZC','SIZE','ndowS','159536qBjDBN','oardL','isten','ener'];u=function(){return q;};return u();}import{PSKeyboard as w,SoftInputMode as O}from'@communi/keyboard-area-react-native';function Y(w,O){const V=u();return Y=function(t,E){t=t-0x11c;let M=V[t];return M;},Y(w,O);}export const addKeyboardListener=V=>w[S(0x138)+S(0x124)+S(0x12c)+S(0x136)](V),removeKeyboardListener=V=>w[S(0x126)+S(0x12d)+S(0x134)+S(0x135)+'er'](V),setWindowSoftInputAdjustNothing=()=>w[S(0x12f)+S(0x132)+S(0x137)+S(0x11c)+'de'](O[S(0x11d)+S(0x12e)+S(0x122)+S(0x120)+S(0x12b)]),setWindowSoftInputAdjustResize=()=>w[S(0x12f)+S(0x132)+S(0x137)+S(0x11c)+'de'](O[S(0x11d)+S(0x12e)+S(0x122)+S(0x121)+S(0x131)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const y=Y;(function(O,V){const B=Y,t=O();while(!![]){try{const E=-parseInt(B(0x10d))/0x1*(parseInt(B(0x10c))/0x2)+parseInt(B(0x116))/0x3*(-parseInt(B(0x115))/0x4)+parseInt(B(0x110))/0x5*(-parseInt(B(0x111))/0x6)+parseInt(B(0x10f))/0x7+parseInt(B(0x10b))/0x8+parseInt(B(0x114))/0x9+parseInt(B(0x113))/0xa*(parseInt(B(0x112))/0xb);if(E===V)break;else t['push'](t['shift']());}catch(M){t['push'](t['shift']());}}}(u,0x6d2ff));function u(){const F=['2yvoDyd','15259nvewKS','getIn','3103667CcCUNR','515pZPitK','24594NkEYvf','11nNihbY','4200370nRoxhL','2924973zRYEkx','895476gxeRmS','6aSJtse','stanc','1152080FRZzGq'];u=function(){return F;};return u();}function Y(w,O){const V=u();return Y=function(t,E){t=t-0x10a;let M=V[t];return M;},Y(w,O);}import{MQTTClient as w}from'@communi/mqtt-client-react-native';export const createMQTTClient=async O=>w[y(0x10e)+y(0x10a)+'e'](O);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function w(u,O){const V=Y();return w=function(t,E){t=t-0xb7;let M=V[t];return M;},w(u,O);}const Q=w;(function(t,E){const N=w,M=t();while(!![]){try{const B=-parseInt(N(0xc0))/0x1+parseInt(N(0xbb))/0x2+parseInt(N(0xc1))/0x3*(-parseInt(N(0xc2))/0x4)+parseInt(N(0xba))/0x5+parseInt(N(0xc4))/0x6+parseInt(N(0xc3))/0x7*(parseInt(N(0xbe))/0x8)+-parseInt(N(0xb9))/0x9;if(B===E)break;else M['push'](M['shift']());}catch(y){M['push'](M['shift']());}}}(Y,0xdb233));import O from'react';function Y(){const k=['5132645EsUbVR','398766OOxiuB','ent','creat','1352pKpTNM','error','922082vYgzjO','15puFTpG','563260QwpKxp','25837STdufX','4793784LTewlY','eElem','ignor','1124199FWyPVe'];Y=function(){return k;};return Y();}import{AudioVideoComponent as V}from'../optionalDependencies/Video';export const Video=V?({onBuffer:E,onEnd:M,onLoad:B,onProgress:y,paused:F,repeat:S,resizeMode:q,style:g,uri:G,videoRef:P})=>O[Q(0xbd)+Q(0xb7)+Q(0xbc)](V,{'ignoreSilentSwitch':Q(0xb8)+'e','onBuffer':E,'onEnd':M,'onError':I=>{const j=Q;console[j(0xbf)](I);},'onLoad':B,'onProgress':y,'paused':F,'ref':P,'repeat':S,'resizeMode':q,'source':{'uri':G},'style':g}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(O,V){const y=Y,E=O();while(!![]){try{const M=-parseInt(y(0x110))/0x1+-parseInt(y(0x10e))/0x2*(parseInt(y(0x10c))/0x3)+parseInt(y(0x108))/0x4*(parseInt(y(0x106))/0x5)+parseInt(y(0x105))/0x6*(parseInt(y(0x107))/0x7)+parseInt(y(0x112))/0x8*(parseInt(y(0x10d))/0x9)+parseInt(y(0x102))/0xa+parseInt(y(0x10a))/0xb;if(M===V)break;else E['push'](E['shift']());}catch(B){E['push'](E['shift']());}}}(u,0x595dc));function u(){const S=['...','3623444tvQNGu','ailed','700758ZqXcog','4509liwOQW','6jNGaSi','delet','430031KKEtSC','File\x20','2000NqbDOY','unlin','3515140NQFIXn','ion\x20f','log','60HFqusl','475TQlJEM','379526qNQkuj','6252idNltU'];u=function(){return S;};return u();}function Y(w,O){const V=u();return Y=function(t,E){t=t-0x101;let M=V[t];return M;},Y(w,O);}import w from'react-native-fs';export const deleteFile=async({uri:O})=>{const F=Y;try{return await w[F(0x101)+'k'](O),!0x0;}catch(V){return console[F(0x104)](F(0x111)+F(0x10f)+F(0x103)+F(0x10b)+F(0x109),V),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const I=Y;function u(){const k=['andro','883161FybHuj','image','175AFzeGM','all','2702204uwjfVD','Deep','Error','clone','title','edges','otos\x20','7115QGuYHZ','forEa','bums','12RMOeUp','Smart','Recen','11688IeeKoo','bums\x20','All','getPh','selec','256120FWbKql','node','Album','getAl','push','177470RPaHSp','1719578OMdYGw','lengt','22792PfhkVL','otos','690ZywVov','18hzygQx'];u=function(){return k;};return u();}(function(E,M){const P=Y,B=E();while(!![]){try{const y=parseInt(P(0x203))/0x1+-parseInt(P(0x1eb))/0x2+-parseInt(P(0x1e7))/0x3*(parseInt(P(0x1f5))/0x4)+parseInt(P(0x1f2))/0x5*(parseInt(P(0x1e4))/0x6)+-parseInt(P(0x1e9))/0x7*(parseInt(P(0x1fd))/0x8)+parseInt(P(0x1e5))/0x9*(parseInt(P(0x202))/0xa)+-parseInt(P(0x1e2))/0xb*(-parseInt(P(0x1f8))/0xc);if(y===M)break;else B['push'](B['shift']());}catch(F){B['push'](B['shift']());}}}(u,0xdc43f));import{CameraRoll as w}from'@react-native-camera-roll/camera-roll';function Y(w,O){const V=u();return Y=function(t,E){t=t-0x1e2;let M=V[t];return M;},Y(w,O);}import{Platform as O}from'react-native';import{verifyAndroidPermissions as V}from'./getPhotos';import t from'lodash';export const getAlbums=async({albumType:E=I(0x1f6)+I(0x1ff),assetType:M=I(0x1fa)})=>{const N=I;try{if(O['OS']===N(0x1e6)+'id'&&!await V())throw new Error(N(0x1fb)+N(0x1f1)+N(0x1ed));const B=await w[N(0x200)+N(0x1f4)]({'albumType':E,'assetType':M});if(B&&B[N(0x204)+'h']){const y=[];return t[N(0x1ee)+N(0x1ec)](B)[N(0x1f3)+'ch'](F=>{const j=N,S=new Promise(async(q,g)=>{const Q=Y;try{const G=await w[Q(0x1fb)+Q(0x1e3)]({'assetType':M,'first':0x1,'groupName':F[Q(0x1ef)],'groupTypes':O[Q(0x1fc)+'t']({'ios':F[Q(0x1ef)]===Q(0x1f7)+'ts'?Q(0x1fa):Q(0x1f6)+Q(0x1ff),'android':void 0x0})});G?.[Q(0x1f0)]?.[0x0]?.[Q(0x1fe)]?.[Q(0x1e8)]&&(F[Q(0x1e8)]=G[Q(0x1f0)][0x0][Q(0x1fe)][Q(0x1e8)]),q(F);}catch{q(F);}});y[j(0x201)](S);}),{'Albums':await Promise[N(0x1ea)](y)};}return{'Albums':[]};}catch{throw new Error(N(0x200)+N(0x1f9)+N(0x1ed));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(E,
|
|
1
|
+
'use strict';function Y(w,O){const V=u();return Y=function(t,E){t=t-0x15f;let M=V[t];return M;},Y(w,O);}(function(O,V){const B=Y,t=O();while(!![]){try{const E=parseInt(B(0x168))/0x1*(parseInt(B(0x165))/0x2)+parseInt(B(0x163))/0x3*(-parseInt(B(0x164))/0x4)+parseInt(B(0x16a))/0x5*(parseInt(B(0x169))/0x6)+-parseInt(B(0x16e))/0x7+-parseInt(B(0x16c))/0x8+parseInt(B(0x161))/0x9*(-parseInt(B(0x167))/0xa)+-parseInt(B(0x160))/0xb*(-parseInt(B(0x162))/0xc);if(E===V)break;else t['push'](t['shift']());}catch(M){t['push'](t['shift']());}}}(u,0xce310));function u(){const F=['6801432YFYaZo','setUr','9505223JHcSJs','i\x20Err','save','447689axouBf','175842nuwhkN','1068VYifca','723nxexjb','14096DwoWEN','2AMjvcI','getLo','710OxORyp','385621BMrrdP','348eMvPDR','110455sMEoRw','calAs'];u=function(){return F;};return u();}import{CameraRoll as w}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async O=>{const y=Y;try{return await w[y(0x15f)](O);}catch{throw new Error(y(0x166)+y(0x16b)+y(0x16d)+y(0x16f)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(t,E){const N=Y,M=t();while(!![]){try{const B=-parseInt(N(0x171))/0x1+parseInt(N(0x156))/0x2+-parseInt(N(0x160))/0x3*(parseInt(N(0x151))/0x4)+-parseInt(N(0x14a))/0x5*(-parseInt(N(0x16d))/0x6)+parseInt(N(0x15b))/0x7*(-parseInt(N(0x150))/0x8)+parseInt(N(0x176))/0x9*(parseInt(N(0x155))/0xa)+parseInt(N(0x158))/0xb*(parseInt(N(0x175))/0xc);if(B===E)break;else M['push'](M['shift']());}catch(y){M['push'](M['shift']());}}}(u,0x9bed9));import{CameraRoll as w}from'@react-native-camera-roll/camera-roll';function Y(w,O){const V=u();return Y=function(t,E){t=t-0x131;let M=V[t];return M;},Y(w,O);}import{PermissionsAndroid as O,Platform as V}from'react-native';export const verifyAndroidPermissions=async()=>{const Q=Y,t=V[Q(0x15f)+Q(0x145)][Q(0x141)+Q(0x173)+Q(0x15c)+Q(0x15a)]?.[Q(0x13e)]>=0x47,M=V[Q(0x181)+'on']>=0x21,B=t&&M;return await((()=>B?Promise[Q(0x136)]([O[Q(0x146)](O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x16f)+'ES']),O[Q(0x146)](O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x17f)+'O'])])[Q(0x14d)](([y,F])=>y&&F):O[Q(0x146)](O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x165)+Q(0x135)+Q(0x16c)+'E']))())?!0x0:await((()=>B?O[Q(0x163)+Q(0x148)+Q(0x134)]([O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x16f)+'ES'],O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x17f)+'O']])[Q(0x14d)](y=>y[O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x16f)+'ES']]===O[Q(0x13c)+'TS'][Q(0x137)+'ED']&&y[O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x16b)+Q(0x17f)+'O']]===O[Q(0x13c)+'TS'][Q(0x137)+'ED']):O[Q(0x163)+'st'](O[Q(0x154)+Q(0x14e)+'S'][Q(0x139)+Q(0x165)+Q(0x135)+Q(0x16c)+'E'],{'buttonNegative':Q(0x152),'buttonNeutral':Q(0x157)+Q(0x164)+'er','buttonPositive':Q(0x177),'message':Q(0x183)+Q(0x144)+Q(0x17e)+Q(0x16e)+Q(0x17c)+Q(0x133)+Q(0x167)+Q(0x131)+Q(0x179)+Q(0x178)+'s.','title':Q(0x168)+Q(0x172)+Q(0x13a)})[Q(0x14d)](y=>y===O[Q(0x13c)+'TS'][Q(0x137)+'ED']))());},getPhotos=async({after:M,first:B,groupName:y,groupTypes:F})=>{const j=Y;try{if(V['OS']===j(0x174)+'id'&&!await verifyAndroidPermissions())throw new Error(j(0x17d)+j(0x15e)+j(0x132));const q=await w[j(0x17d)+j(0x143)]({'after':M,'assetType':j(0x149),'groupName':y===j(0x14c)+'ts'?void 0x0:y,'groupTypes':V[j(0x180)+'t']({'ios':y===j(0x14c)+'ts'?j(0x149):F,'android':void 0x0}),'first':B,'includeSharedAlbums':!0x0,'include':[j(0x147)+j(0x170),j(0x142)+j(0x153),j(0x166)+j(0x13f),j(0x17a)+j(0x159)+j(0x16a)+'n',j(0x140)+'s']}),g=q[j(0x17b)][j(0x14f)](I=>({'source':j(0x161)+'r',...I[j(0x169)][j(0x166)],'fileSize':I[j(0x169)][j(0x166)][j(0x147)+j(0x170)]??0x0})),G=q[j(0x13d)+j(0x14b)][j(0x138)+j(0x15d)+j(0x13b)],P=q[j(0x13d)+j(0x14b)][j(0x162)+j(0x182)];return{'assets':g,'endCursor':P,'hasNextPage':G};}catch{throw new Error(j(0x17d)+j(0x15e)+j(0x132));}};function u(){const k=['1760764HLaARc','Ask\x20M','917620knfNpU','bleDu','ion','98959jSHXwt','eVers','ext_p','otos\x20','const','14637eIGeov','picke','end_c','reque','e\x20Lat','EXTER','image','cess\x20','Photo','node','ratio','MEDIA','TORAG','8634UHsBPa','\x20requ','_IMAG','ize','107451vcdvIg','s\x20Acc','Nativ','andro','168bLKEOu','7551kSwkyo','Allow','photo','hare\x20','playa','edges','ired\x20','getPh','s\x20are','_VIDE','selec','Versi','ursor','Permi','and\x20s','Error','to\x20ac','tiple','NAL_S','all','GRANT','has_n','READ_','ess','age','RESUL','page_','minor','Size','album','react','filen','otos','ssion','ants','check','fileS','stMul','All','2435PJBmNe','info','Recen','then','SSION','map','680cwibTb','692NtXJlO','Deny','ame','PERMI','510PFQtBh'];u=function(){return k;};return u();}
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(w,O){var M=Y,V=w();while(!![]){try{var t=parseInt(M(0x14d))/0x1+parseInt(M(0x150))/0x2+-parseInt(M(0x153))/0x3*(-parseInt(M(0x14e))/0x4)+-parseInt(M(0x151))/0x5+parseInt(M(0x154))/0x6+parseInt(M(0x152))/0x7+parseInt(M(0x14c))/0x8*(-parseInt(M(0x14f))/0x9);if(t===O)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(u,0x9bcd6));function u(){var B=['934824OIIUaW','7176717KrOnNq','1333668gnrDVk','2440915whypJz','3406081pRlQeO','3wWyeVQ','7394772YyXwAJ','16QHaqGn','101590cfyPAV'];u=function(){return B;};return u();}function Y(w,O){var V=u();return Y=function(t,E){t=t-0x14c;var M=V[t];return M;},Y(w,O);}export*from'./deleteFile';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';export*from'./triggerHaptic';export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(O,V){const B=Y,t=O();while(!![]){try{const E=-parseInt(B(0x137))/0x1*(-parseInt(B(0x142))/0x2)+parseInt(B(0x13e))/0x3+parseInt(B(0x13c))/0x4+-parseInt(B(0x140))/0x5*(-parseInt(B(0x13d))/0x6)+-parseInt(B(0x138))/0x7+parseInt(B(0x136))/0x8+-parseInt(B(0x139))/0x9;if(E===V)break;else t['push'](t['shift']());}catch(M){t['push'](t['shift']());}}}(u,0x2611e));function Y(w,O){const V=u();return Y=function(t,E){t=t-0x136;let M=V[t];return M;},Y(w,O);}function u(){const F=['isExi','194860ELdARC','372RgFQfI','635301vDDyLo','exist','4055PsQYJh','stFil','442478cAnyNY','372704MSzEsQ','1RxzFpY','975387HgGWvC','2549844qUHgzI','e\x20Err'];u=function(){return F;};return u();}import w from'react-native-fs';export const isExistFile=async O=>{const y=Y;try{return await w[y(0x13f)+'s'](O);}catch{throw new Error(y(0x13b)+y(0x141)+y(0x13a)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const F=Y;function u(){const g=['3486996uVjIzr','2825410dthynC','86852cJBpij','ange','raryS','elect','3186639ZxXwLa','8gslPKB','onLib','ionCh','stene','remov','742592HLLZDp','75IKZQJT','589214JvAXAL','addLi','Versi','1947717AHGMLk','ios'];u=function(){return g;};return u();}(function(V,t){const y=Y,E=V();while(!![]){try{const M=parseInt(y(0x151))/0x1+-parseInt(y(0x14f))/0x2+-parseInt(y(0x141))/0x3+-parseInt(y(0x145))/0x4*(-parseInt(y(0x150))/0x5)+parseInt(y(0x143))/0x6+parseInt(y(0x144))/0x7*(-parseInt(y(0x14a))/0x8)+parseInt(y(0x149))/0x9;if(M===t)break;else E['push'](E['shift']());}catch(B){E['push'](E['shift']());}}}(u,0x67ffd));function Y(w,O){const V=u();return Y=function(t,E){t=t-0x141;let M=V[t];return M;},Y(w,O);}import{cameraRollEventEmitter as w}from'@react-native-camera-roll/camera-roll';import{Platform as O}from'react-native';const i=O['OS']===F(0x142)&&parseInt(O[F(0x153)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(V){const S=F;if(i){const t=w[S(0x152)+S(0x14d)+'r'](S(0x14b)+S(0x147)+S(0x148)+S(0x14c)+S(0x146),V);return{'unsubscribe':()=>{const q=S;t[q(0x14e)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(O,V){const y=Y,t=O();while(!![]){try{const E=parseInt(y(0x6d))/0x1+parseInt(y(0x6b))/0x2+parseInt(y(0x75))/0x3+-parseInt(y(0x68))/0x4*(-parseInt(y(0x67))/0x5)+-parseInt(y(0x77))/0x6+-parseInt(y(0x69))/0x7*(-parseInt(y(0x6c))/0x8)+parseInt(y(0x73))/0x9*(-parseInt(y(0x71))/0xa);if(E===V)break;else t['push'](t['shift']());}catch(M){t['push'](t['shift']());}}}(u,0x554ad));import w from'react-native-document-picker';export const pickDocument=async O=>{const F=Y;try{let V=await w[F(0x6e)]({'allowMultiSelection':!0x0,'type':[w[F(0x6f)][F(0x76)+F(0x74)]]});return O&&V[F(0x6a)+'h']>O&&(V=V[F(0x72)](0x0,O)),{'assets':V[F(0x70)](({name:E,size:M,uri:B})=>({'uri':B,'size':M,'name':E})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};function Y(w,O){const V=u();return Y=function(t,E){t=t-0x67;let M=V[t];return M;},Y(w,O);}function u(){const S=['lengt','1034668ljlYRH','28168DZEBEP','277398tWzfBT','pick','types','map','10Hzijey','slice','6293853LUzYsy','les','510153PbcfqQ','allFi','1262928aweYga','5lPtOcG','740912edWPzj','217GqnxpE'];u=function(){return S;};return u();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const P=Y;(function(t,E){const G=Y,M=t();while(!![]){try{const B=parseInt(G(0xf0))/0x1+parseInt(G(0xed))/0x2+parseInt(G(0xe4))/0x3+-parseInt(G(0xf6))/0x4+-parseInt(G(0xe9))/0x5*(-parseInt(G(0x106))/0x6)+-parseInt(G(0xef))/0x7*(parseInt(G(0x103))/0x8)+-parseInt(G(0xf4))/0x9*(parseInt(G(0x101))/0xa);if(B===E)break;else M['push'](M['shift']());}catch(y){M['push'](M['shift']());}}}(u,0xee9c2));import{Image as w,Platform as O}from'react-native';import V from'react-native-image-crop-picker';function Y(w,O){const V=u();return Y=function(t,E){t=t-0xe2;let M=V[t];return M;},Y(w,O);}export const pickPhoto=async({compressImageQuality:E=O['OS']===P(0xec)?0.8:0x1,cropping:M=!0x1})=>{const I=P,B=await V[I(0xee)+I(0xe2)]({'compressImageQuality':Math[I(0xf1)](Math[I(0x102)](0x0,E),0x1),'cropping':M===!0x0});if(B[I(0xe7)+'t']&&B[I(0xe3)]&&B[I(0xeb)]){let y;if(O['OS']===I(0xff)+'id'){const F=()=>new Promise(S=>{const N=I;w[N(0xfe)+'ze'](B[N(0xeb)],(q,g)=>{S({'height':g,'width':q});});});try{const S=await F();y={'width':S[I(0xe3)],'height':S[I(0xe7)+'t']};}catch(q){console[I(0xf7)](I(0xf5)+I(0x100)+I(0xfc)+I(0xfa)+I(0x104)+I(0xe6)+I(0x105)+I(0xf9)+I(0xe5)+I(0xea)+'y\x20',q);}}else y={'height':B[I(0xe7)+'t'],'width':B[I(0xe3)]};if(y){const g=B[I(0xeb)][I(0xfb)+I(0xf8)+'f']('/');return{'source':I(0xe8)+'r','name':B[I(0xeb)][I(0xf2)+I(0xfd)](g+0x1),'size':B[I(0xf3)],'uri':B[I(0xeb)],...y};}else return;}};function u(){const Q=['1048074puJaGm','icker','width','4656900taIXsw','rom\x20g','ictur','heigh','picke','50bcDqPO','aller','path','ios','782866BuyiSl','openP','24283CruleE','1781985FPbTUu','min','subst','size','45WtUASr','Error','1569368HiaOoC','error','ndexO','ker\x20f','\x20size','lastI','image','ring','getSi','andro','\x20get\x20','6991490BnaSzH','max','1400eOwKOk','\x20of\x20p','e\x20pic'];u=function(){return Q;};return u();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(O,V){const y=Y,t=O();while(!![]){try{const E=parseInt(y(0x203))/0x1*(parseInt(y(0x201))/0x2)+-parseInt(y(0x204))/0x3+parseInt(y(0x1ef))/0x4+-parseInt(y(0x1ee))/0x5*(parseInt(y(0x1f4))/0x6)+-parseInt(y(0x1fb))/0x7*(-parseInt(y(0x1fa))/0x8)+-parseInt(y(0x1fc))/0x9+parseInt(y(0x1fd))/0xa;if(E===V)break;else t['push'](t['shift']());}catch(M){t['push'](t['shift']());}}}(u,0x5c853));function u(){const S=['14MWrkxs','Cache','107599rOoCNc','1944522DqySFA','3060745jOmfSD','1818200gyQvTj','sDire','ctory','Path','iled.','6jNzKUW','oadFi','g\x20ima','downl','oadin','promi','8LESMiJ','3293374fXcXRR','4698630fZNZFB','4831310IexAHp','Downl','ge\x20fa','file:'];u=function(){return S;};return u();}function Y(w,O){const V=u();return Y=function(t,E){t=t-0x1ee;let M=V[t];return M;},Y(w,O);}import w from'react-native-fs';export const saveFile=async({fileName:O,fromUrl:V,onProgress:E})=>{const F=Y;try{const M=w[F(0x202)+F(0x1f0)+F(0x1f1)+F(0x1f2)]+'/'+encodeURIComponent(O);return await w[F(0x1f7)+F(0x1f5)+'le']({'fromUrl':V,'toFile':M,'background':!0x0,'discretionary':!0x0,'progress':E,'begin':B=>{},'progressDivider':0x5})[F(0x1f9)+'se'],F(0x200)+'//'+M;}catch{throw new Error(F(0x1fe)+F(0x1f8)+F(0x1f6)+F(0x1ff)+F(0x1f3)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const F=Y;function u(){const S=['250121QTmxdC','ring','66344nmrdbx','5WkKKzi','7MVlZpL','4624040bfIQZc','3053876PJxYzI','setSt','7204104LmJpXG','2516982AEYTzV','28792181mvyACb','10ystNCR','24TtuFPc'];u=function(){return S;};return u();}(function(O,V){const y=Y,E=O();while(!![]){try{const M=parseInt(y(0x1d0))/0x1+parseInt(y(0x1d2))/0x2*(parseInt(y(0x1cf))/0x3)+parseInt(y(0x1c9))/0x4*(parseInt(y(0x1c6))/0x5)+parseInt(y(0x1cc))/0x6+parseInt(y(0x1c7))/0x7*(parseInt(y(0x1c8))/0x8)+parseInt(y(0x1cb))/0x9+-parseInt(y(0x1ce))/0xa*(parseInt(y(0x1cd))/0xb);if(M===V)break;else E['push'](E['shift']());}catch(B){E['push'](E['shift']());}}}(u,0x702bd));function Y(w,O){const V=u();return Y=function(t,E){t=t-0x1c6;let M=V[t];return M;},Y(w,O);}import w from'@react-native-clipboard/clipboard';export const setClipboardString=O=>w[F(0x1ca)+F(0x1d1)](O);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const k=Y;(function(M,B){const j=Y,y=M();while(!![]){try{const F=-parseInt(j(0xbb))/0x1+parseInt(j(0xbe))/0x2+-parseInt(j(0xcb))/0x3+-parseInt(j(0xe7))/0x4+parseInt(j(0xdc))/0x5+parseInt(j(0xb4))/0x6*(-parseInt(j(0xb8))/0x7)+-parseInt(j(0xd3))/0x8*(-parseInt(j(0xd9))/0x9);if(F===B)break;else y['push'](y['shift']());}catch(q){y['push'](y['shift']());}}}(u,0xaa852));function u(){const L=['ios','1328356uFApUP','andro','size','1931330QwwTNb','PERMI','lastI','path','heigh','ntSta','RESUL','NEVER','e\x20cap','subst','SSION','ot\x20gr','error','1992222HhlxYL','camer','activ','CAMER','ndexO','amera','_ASK_','issio','172256eRZtwU','\x20size','\x20came','\x20perm','Error','utred','1125BfmbVn','ant\x20c','openC','1313825MXbYih','curre','\x20get\x20','\x20of\x20p','User\x20','AGAIN','ring','max','reque','min','DENIE','3208544gZkAap','did\x20n','check','ra\x20','image','\x20from','11334AUYuzI','messa','width','getSi','1582HovjJY','ictur'];u=function(){return L;};return u();}function Y(w,O){const V=u();return Y=function(t,E){t=t-0xb4;let M=V[t];return M;},Y(w,O);}import{AppState as w,Image as O,PermissionsAndroid as V,Platform as t}from'react-native';import E from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:M=t['OS']===k(0xba)?0.8:0x1,cropping:B=!0x1})=>{const o=k;if(t['OS']===o(0xbc)+'id'&&V[o(0xbf)+o(0xc8)+'S'][o(0xce)+'A']&&!await V[o(0xe9)](V[o(0xbf)+o(0xc8)+'S'][o(0xce)+'A'])){const y=await V[o(0xe4)+'st'](V[o(0xbf)+o(0xc8)+'S'][o(0xce)+'A']);if(y===V[o(0xc4)+'TS'][o(0xe6)+'D'])return{'cancelled':!0x0};if(y===V[o(0xc4)+'TS'][o(0xc5)+o(0xd1)+o(0xe1)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const F=await E[o(0xdb)+o(0xd0)]({'compressImageQuality':Math[o(0xe5)](Math[o(0xe3)](0x0,M),0x1),'cropping':B===!0x0});if(F[o(0xc2)+'t']&&F[o(0xb6)]&&F[o(0xc1)]){let q;if(t['OS']===o(0xbc)+'id'){const g=()=>new Promise(G=>{const D=o;O[D(0xb7)+'ze'](F[D(0xc1)],(P,I)=>{G({'height':I,'width':P});});});try{const G=await g();q={'width':G[o(0xb6)],'height':G[o(0xc2)+'t']};}catch(P){console[o(0xca)](o(0xd7)+o(0xde)+o(0xeb)+o(0xd4)+o(0xdf)+o(0xb9)+o(0xc6)+o(0xd8)+o(0xec)+o(0xd5)+o(0xea),P);}}else q={'height':F[o(0xc2)+'t'],'width':F[o(0xb6)]};if(q){const I=F[o(0xc1)][o(0xc0)+o(0xcf)+'f']('/');return{'cancelled':!0x1,'source':o(0xcc)+'a','name':F[o(0xc1)][o(0xc7)+o(0xe2)](I+0x1),'size':F[o(0xbd)],'uri':F[o(0xc1)],...q};}else return;}}catch(N){if(N instanceof Error&&t['OS']===o(0xba)&&w[o(0xdd)+o(0xc3)+'te']===o(0xcd)+'e'){const Q=o(0xe0)+o(0xe8)+o(0xc9)+o(0xda)+o(0xd0)+o(0xd6)+o(0xd2)+'n.';if(N[o(0xb5)+'ge']===Q)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function u(){const S=['128688CFhHlI','49MPbIAU','8636060VUeiSO','725916YlEAmz','240MwoJfz','4bWRhzL','7051338WlLwNB','trigg','997450AYGsoT','278526VtAUns','766016qEkEFQ'];u=function(){return S;};return u();}(function(O,V){const y=Y,E=O();while(!![]){try{const M=parseInt(y(0x1d9))/0x1+-parseInt(y(0x1d4))/0x2+-parseInt(y(0x1da))/0x3*(parseInt(y(0x1d6))/0x4)+parseInt(y(0x1d5))/0x5*(parseInt(y(0x1dc))/0x6)+parseInt(y(0x1d2))/0x7*(parseInt(y(0x1db))/0x8)+-parseInt(y(0x1d7))/0x9+-parseInt(y(0x1d3))/0xa;if(M===V)break;else E['push'](E['shift']());}catch(B){E['push'](E['shift']());}}}(u,0x9119a));import w from'react-native-haptic-feedback';function Y(w,O){const V=u();return Y=function(t,E){t=t-0x1d2;let M=V[t];return M;},Y(w,O);}export const triggerHaptic=O=>{const F=Y;w[F(0x1d8)+'er'](O,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(Z,
|
|
1
|
+
'use strict';(function(Z,R){var A=w,T=Z();while(!![]){try{var K=parseInt(A(0xc9))/0x1*(parseInt(A(0xcd))/0x2)+parseInt(A(0xca))/0x3*(parseInt(A(0xcf))/0x4)+parseInt(A(0xcc))/0x5*(-parseInt(A(0xd3))/0x6)+-parseInt(A(0xd0))/0x7+parseInt(A(0xd2))/0x8+parseInt(A(0xce))/0x9*(parseInt(A(0xd1))/0xa)+-parseInt(A(0xcb))/0xb*(-parseInt(A(0xc8))/0xc);if(K===R)break;else T['push'](T['shift']());}catch(z){T['push'](T['shift']());}}}(Y,0x47024));function w(u,O){var V=Y();return w=function(t,E){t=t-0xc8;var M=V[t];return M;},w(u,O);}function Y(){var H=['3144512DOpKsS','2248698mLDEfP','97404oiPkkR','278WAoOcG','1023mZVNtw','33UfVEaV','5WjcWbl','116kujFZi','360QsRfEr','6792KYlTmi','2585254JLROkC','5600oBTbsn'];Y=function(){return H;};return Y();}import{registerNativeHandlers as O}from'@communi/chat-ui-react-native';import{addKeyboardListener as V,removeKeyboardListener as E,setWindowSoftInputAdjustNothing as M,setWindowSoftInputAdjustResize as B,createMQTTClient as y,deleteFile as F,getLocalAssetUri as q,getPhotos as G,getAlbums as P,isExistFile as I,oniOS14GalleryLibrarySelectionChange as N,saveFile as Q,takePhoto as j,pickPhoto as k,Video as D,DatePicker as L,setClipboardString as X,triggerHaptic as U,pickDocument as v}from'./handlers';O({'addKeyboardListener':V,'removeKeyboardListener':E,'setWindowSoftInputAdjustNothing':M,'setWindowSoftInputAdjustResize':B,'createMQTTClient':y,'deleteFile':F,'getLocalAssetUri':q,'getPhotos':G,'getAlbums':P,'isExistFile':I,'oniOS14GalleryLibrarySelectionChange':N,'pickDocument':v,'saveFile':Q,'setClipboardString':X,'takePhoto':j,'pickPhoto':k,'triggerHaptic':U,'Video':D,'DatePicker':L});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const B=Y;function Y(w,O){const V=u();return Y=function(t,E){t=t-0x86;let M=V[t];return M;},Y(w,O);}function u(){const y=['3735792YSnrGZ','ài\x20đặ','Cần\x20c','picke','tive-','10817vRMYAg','warn','13280150ZJxslf','defau','ct-na','1101835hEZVcF','\x20\x22rea','date-','30NEOdQq','t\x20gói','8EhRYQm','86EGfBcH','1946105AtgOdv','3367848tRUNlR','11330442apCfEO'];u=function(){return y;};return u();}(function(w,O){const M=Y,V=w();while(!![]){try{const t=parseInt(M(0x86))/0x1*(-parseInt(M(0x91))/0x2)+-parseInt(M(0x93))/0x3+parseInt(M(0x95))/0x4+parseInt(M(0x8b))/0x5+parseInt(M(0x8e))/0x6*(-parseInt(M(0x92))/0x7)+parseInt(M(0x90))/0x8*(parseInt(M(0x94))/0x9)+parseInt(M(0x88))/0xa;if(t===O)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(u,0xba636));let e;try{e=require('react-native-date-picker')[B(0x89)+'lt'];}catch{console[B(0x87)](B(0x97)+B(0x96)+B(0x8f)+B(0x8c)+B(0x8a)+B(0x99)+B(0x8d)+B(0x98)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const B=Y;function u(){const y=['34464NlDxGt','t\x20gói','Cần\x20c','8dtJcUh','1495550qsRvbc','ài\x20đặ','video','\x20\x22rea','7624233WrAfdr','ct-na','defau','2092685FPDgQU','tive-','warn','116NPAEvv','109656uiXLbh','63995ActEtB','30150LGnVMl'];u=function(){return y;};return u();}(function(w,O){const M=Y,V=w();while(!![]){try{const t=parseInt(M(0xd4))/0x1+parseInt(M(0xd3))/0x2+parseInt(M(0xd6))/0x3*(parseInt(M(0xd2))/0x4)+parseInt(M(0xda))/0x5+-parseInt(M(0xd5))/0x6+-parseInt(M(0xcf))/0x7*(-parseInt(M(0xd9))/0x8)+-parseInt(M(0xde))/0x9;if(t===O)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(u,0x304f6));let e;try{e=require('react-native-video')[B(0xe0)+'lt'];}catch{console[B(0xd1)](B(0xd8)+B(0xdb)+B(0xd7)+B(0xdd)+B(0xdf)+B(0xd0)+B(0xdc)+'\x22');}function Y(w,O){const V=u();return Y=function(t,E){t=t-0xcf;let M=V[t];return M;},Y(w,O);}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(w,O){var M=Y,V=w();while(!![]){try{var t=-parseInt(M(0x12d))/0x1*(-parseInt(M(0x12f))/0x2)+-parseInt(M(0x129))/0x3*(parseInt(M(0x131))/0x4)+-parseInt(M(0x12b))/0x5*(parseInt(M(0x127))/0x6)+parseInt(M(0x130))/0x7*(parseInt(M(0x12a))/0x8)+parseInt(M(0x128))/0x9+parseInt(M(0x12e))/0xa+-parseInt(M(0x12c))/0xb;if(t===O)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(u,0xf037e));function Y(w,O){var V=u();return Y=function(t,E){t=t-0x127;var M=V[t];return M;},Y(w,O);}function u(){var B=['61784VKpvMg','5VjnJJw','7385576rfcTGe','4yQitVs','12587500UtGaHt','403616eTackj','1358vZGIJA','204xUlVKq','11730054JBedWF','2188152hIsFkm','11589MjFhww'];u=function(){return B;};return u();}export*from'./DatePicker';export*from'./Video';
|