@communi/chat-react-native 2.5.5 → 2.6.2
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(U,c){var o=M,x=U();while(!![]){try{var f=-parseInt(o(0x1c8))/0x1*(-parseInt(o(0x1c1))/0x2)+-parseInt(o(0x1c5))/0x3+-parseInt(o(0x1c9))/0x4*(parseInt(o(0x1c4))/0x5)+parseInt(o(0x1c6))/0x6+parseInt(o(0x1c3))/0x7+-parseInt(o(0x1c2))/0x8+parseInt(o(0x1c7))/0x9;if(f===c)break;else x['push'](x['shift']());}catch(B){x['push'](x['shift']());}}}(X,0x54032));function X(){var k=['2025642WfzeiX','1878342LcEFLk','2330271MiSWjD','62xMqFif','48236qHlnFu','17012XZWcOu','2995056ZOjlPt','2144947oZBnVt','5YXKYSf'];X=function(){return k;};return X();}function M(U,c){var x=X();return M=function(f,B){f=f-0x1c1;var o=x[f];return o;},M(U,c);}export*from'./src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@communi/chat-api-client-typescript": "^2.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.6.1",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.6.2",
|
|
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 l=M;(function(x,f){const R=M,B=x();while(!![]){try{const k=parseInt(R(0xf1))/0x1+parseInt(R(0xec))/0x2*(parseInt(R(0xeb))/0x3)+parseInt(R(0xee))/0x4+parseInt(R(0xf0))/0x5*(parseInt(R(0xe5))/0x6)+parseInt(R(0xe6))/0x7*(parseInt(R(0xe8))/0x8)+parseInt(R(0xe7))/0x9*(parseInt(R(0xed))/0xa)+-parseInt(R(0xea))/0xb*(parseInt(R(0xe4))/0xc);if(k===f)break;else B['push'](B['shift']());}catch(E){B['push'](B['shift']());}}}(X,0xb6c7a));function M(U,c){const x=X();return M=function(f,B){f=f-0xe3;let o=x[f];return o;},M(U,c);}function X(){const T=['316010PzgRNd','484918TQOJyc','eElem','12ZDsfKA','42lbETTo','6541157KfTpul','3707037drcnwK','8QZiplq','creat','46782934VTDHlb','138aOGjyI','55166kfKoZY','10QTdHLl','5836664KEbAJc','ent'];X=function(){return T;};return X();}import U from'react';import{DatePickerComponent as c}from'../optionalDependencies/DatePicker';export const DatePicker=c?({modal:x,open:f,date:B,minimumDate:k,onConfirm:E,onCancel:K})=>U[l(0xe9)+l(0xe3)+l(0xef)](c,{'modal':x,'open':f,'date':B,'minimumDate':k,'onConfirm':E,'onCancel':K}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function M(U,c){const x=X();return M=function(f,B){f=f-0x184;let o=x[f];return o;},M(U,c);}const K=M;function X(){const R=['2544081jebDPr','1453275SeeiPg','6oSmpFo','oftIn','addKe','1900092iAooun','40NZEbbd','ST_RE','dList','setWi','eKeyb','putMo','4693733YOOLQw','320dsaIlW','THING','isten','_ADJU','remov','SIZE','yboar','SOFT_','1250501rfdVyt','oardL','ndowS','30zQZuwe','INPUT','ener','ST_NO','60860wDXAbA','42012zepRRQ'];X=function(){return R;};return X();}(function(x,f){const E=M,B=x();while(!![]){try{const o=-parseInt(E(0x199))/0x1*(-parseInt(E(0x1a1))/0x2)+parseInt(E(0x19b))/0x3+-parseInt(E(0x1a0))/0x4+parseInt(E(0x19c))/0x5+-parseInt(E(0x19d))/0x6*(parseInt(E(0x192))/0x7)+parseInt(E(0x18a))/0x8*(parseInt(E(0x19a))/0x9)+parseInt(E(0x195))/0xa*(-parseInt(E(0x189))/0xb);if(o===f)break;else B['push'](B['shift']());}catch(k){B['push'](B['shift']());}}}(X,0x94a3b));import{PSKeyboard as U,SoftInputMode as c}from'@communi/keyboard-area-react-native';export const addKeyboardListener=x=>U[K(0x19f)+K(0x190)+K(0x185)+K(0x197)](x),removeKeyboardListener=x=>U[K(0x18e)+K(0x187)+K(0x193)+K(0x18c)+'er'](x),setWindowSoftInputAdjustNothing=()=>U[K(0x186)+K(0x194)+K(0x19e)+K(0x188)+'de'](c[K(0x191)+K(0x196)+K(0x18d)+K(0x198)+K(0x18b)]),setWindowSoftInputAdjustResize=()=>U[K(0x186)+K(0x194)+K(0x19e)+K(0x188)+'de'](c[K(0x191)+K(0x196)+K(0x18d)+K(0x184)+K(0x18f)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const E=M;(function(c,x){const k=M,f=c();while(!![]){try{const B=parseInt(k(0x18d))/0x1*(parseInt(k(0x195))/0x2)+-parseInt(k(0x18f))/0x3*(-parseInt(k(0x194))/0x4)+parseInt(k(0x18c))/0x5+parseInt(k(0x18e))/0x6+parseInt(k(0x197))/0x7*(parseInt(k(0x192))/0x8)+-parseInt(k(0x191))/0x9+-parseInt(k(0x193))/0xa;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x94820));function X(){const K=['168312lsYjRQ','33wevVSw','getIn','2040840BxlRAQ','4912CMLXDr','31966130zXFenQ','215644hBmieJ','62ZISYlM','stanc','13713pdVvDb','5288465OzzXNv','37099FSsjSq'];X=function(){return K;};return X();}function M(U,c){const x=X();return M=function(f,B){f=f-0x18c;let o=x[f];return o;},M(U,c);}import{MQTTClient as U}from'@communi/mqtt-client-react-native';export const createMQTTClient=async c=>U[E(0x190)+E(0x196)+'e'](c);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const N=M;function X(){const D=['2132550MoQiBO','1248784liQaXO','ent','443725poCqHy','eElem','error','41248iBJKss','48SVeyYd','751093yJnoZi','ignor','551700VieaJg','188465hkAsiq','creat'];X=function(){return D;};return X();}function M(U,c){const x=X();return M=function(f,B){f=f-0xd2;let o=x[f];return o;},M(U,c);}(function(x,f){const Z=M,B=x();while(!![]){try{const k=parseInt(Z(0xda))/0x1+-parseInt(Z(0xd5))/0x2*(-parseInt(Z(0xd6))/0x3)+-parseInt(Z(0xd9))/0x4+-parseInt(Z(0xd2))/0x5+-parseInt(Z(0xdc))/0x6+parseInt(Z(0xd7))/0x7+parseInt(Z(0xdd))/0x8;if(k===f)break;else B['push'](B['shift']());}catch(E){B['push'](B['shift']());}}}(X,0x30c47));import U from'react';import{AudioVideoComponent as c}from'../optionalDependencies/Video';export const Video=c?({onBuffer:x,onEnd:B,onLoad:k,onProgress:E,paused:K,repeat:R,resizeMode:T,style:C,uri:O,videoRef:L})=>U[N(0xdb)+N(0xd3)+N(0xde)](c,{'ignoreSilentSwitch':N(0xd8)+'e','onBuffer':x,'onEnd':B,'onError':a=>{const q=N;console[q(0xd4)](a);},'onLoad':k,'onProgress':E,'paused':K,'ref':L,'repeat':R,'resizeMode':T,'source':{'uri':O},'style':C}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function M(U,c){const x=X();return M=function(f,B){f=f-0x1d7;let o=x[f];return o;},M(U,c);}function X(){const K=['2475095mZBVXN','5022bPzznF','24JIsNoT','delet','1462240DtdLAv','1547980HQcZbf','33041DTRBWz','...','log','ailed','1206TAzqFq','ion\x20f','unlin','81522EcMcSh','13712AeLDLU','2495vPiWtd','File\x20'];X=function(){return K;};return X();}(function(c,x){const k=M,f=c();while(!![]){try{const B=parseInt(k(0x1e4))/0x1*(-parseInt(k(0x1e0))/0x2)+parseInt(k(0x1da))/0x3+parseInt(k(0x1e3))/0x4+-parseInt(k(0x1dc))/0x5*(parseInt(k(0x1df))/0x6)+parseInt(k(0x1de))/0x7+parseInt(k(0x1db))/0x8*(parseInt(k(0x1d7))/0x9)+parseInt(k(0x1e2))/0xa;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x5071b));import U from'react-native-fs';export const deleteFile=async({uri:c})=>{const E=M;try{return await U[E(0x1d9)+'k'](c),!0x0;}catch(x){return console[E(0x1e6)](E(0x1dd)+E(0x1e1)+E(0x1d8)+E(0x1e7)+E(0x1e5),x),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const N=M;(function(o,k){const Z=M,E=o();while(!![]){try{const K=parseInt(Z(0x174))/0x1+-parseInt(Z(0x17a))/0x2*(parseInt(Z(0x185))/0x3)+-parseInt(Z(0x18d))/0x4*(parseInt(Z(0x17f))/0x5)+-parseInt(Z(0x178))/0x6*(-parseInt(Z(0x189))/0x7)+parseInt(Z(0x18a))/0x8*(-parseInt(Z(0x176))/0x9)+parseInt(Z(0x187))/0xa+parseInt(Z(0x177))/0xb;if(K===k)break;else E['push'](E['shift']());}catch(R){E['push'](E['shift']());}}}(X,0xd44c0));function X(){const j=['23097910HUiLgY','12FixdeB','Recen','12SanzPy','bums','andro','Smart','node','608465MTyPNl','getAl','All','title','otos','selec','837201qRJhDv','Deep','4073250hoTzjP','Album','3881038fSLgOz','2520656NMlcXp','lengt','bums\x20','44szOgul','image','Error','edges','all','otos\x20','forEa','clone','getPh','581672hiGsCK','push','9cBMTwK'];X=function(){return j;};return X();}import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';import{Platform as x}from'react-native';import{verifyAndroidPermissions as f}from'./getPhotos';import B from'lodash';function M(U,c){const x=X();return M=function(f,B){f=f-0x16e;let o=x[f];return o;},M(U,c);}export const getAlbums=async({albumType:o=N(0x17d)+N(0x188),assetType:k=N(0x181)})=>{const q=N;try{if(x['OS']===q(0x17c)+'id'&&!await f())throw new Error(q(0x173)+q(0x170)+q(0x18f));const E=await U[q(0x180)+q(0x17b)]({'albumType':o,'assetType':k});if(E&&E[q(0x18b)+'h']){const K=[];return B[q(0x172)+q(0x186)](E)[q(0x171)+'ch'](R=>{const h=q,T=new Promise(async(C,O)=>{const D=M;try{const L=await U[D(0x173)+D(0x183)]({'assetType':k,'first':0x1,'groupName':R[D(0x182)],'groupTypes':x[D(0x184)+'t']({'ios':R[D(0x182)]===D(0x179)+'ts'?D(0x181):D(0x17d)+D(0x188),'android':void 0x0})});L?.[D(0x16e)]?.[0x0]?.[D(0x17e)]?.[D(0x18e)]&&(R[D(0x18e)]=L[D(0x16e)][0x0][D(0x17e)][D(0x18e)]),C(R);}catch{C(R);}});K[h(0x175)](T);}),{'Albums':await Promise[q(0x16f)](K)};}return{'Albums':[]};}catch{throw new Error(q(0x180)+q(0x18c)+q(0x18f));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function X(){const R=['8681152HXipYZ','4tOIENz','2028PAUjNC','i\x20Err','11620584mXxhOn','setUr','1615098Kkazwk','22222453gEjUtG','save','2815020CsMSCC','7mVeiMG','getLo','3404IHAxdi','calAs','158567AyTusE','10PqOngp'];X=function(){return R;};return X();}(function(c,x){const E=M,f=c();while(!![]){try{const B=parseInt(E(0x133))/0x1*(parseInt(E(0x136))/0x2)+-parseInt(E(0x137))/0x3*(parseInt(E(0x131))/0x4)+-parseInt(E(0x13e))/0x5+parseInt(E(0x13b))/0x6*(-parseInt(E(0x13f))/0x7)+parseInt(E(0x135))/0x8+-parseInt(E(0x139))/0x9+parseInt(E(0x134))/0xa*(parseInt(E(0x13c))/0xb);if(B===x)break;else f['push'](f['shift']());}catch(k){f['push'](f['shift']());}}}(X,0xb0b96));function M(U,c){const x=X();return M=function(f,B){f=f-0x131;let o=x[f];return o;},M(U,c);}import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async c=>{const K=M;try{return await U[K(0x13d)](c);}catch{throw new Error(K(0x140)+K(0x132)+K(0x13a)+K(0x138)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(f,B){const L=M,o=f();while(!![]){try{const k=parseInt(L(0x154))/0x1*(-parseInt(L(0x14f))/0x2)+parseInt(L(0x152))/0x3*(-parseInt(L(0x157))/0x4)+parseInt(L(0x131))/0x5+-parseInt(L(0x11d))/0x6*(-parseInt(L(0x155))/0x7)+-parseInt(L(0x12c))/0x8*(parseInt(L(0x129))/0x9)+-parseInt(L(0x126))/0xa*(-parseInt(L(0x136))/0xb)+-parseInt(L(0x133))/0xc;if(k===B)break;else o['push'](o['shift']());}catch(E){o['push'](o['shift']());}}}(X,0x859b1));function M(U,c){const x=X();return M=function(f,B){f=f-0x117;let o=x[f];return o;},M(U,c);}import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as c,Platform as x}from'react-native';function X(){const N=['Nativ','otos','READ_','ion','Versi','s\x20Acc','end_c','TORAG','has_n','react','ants','MEDIA','ext_p','node','hare\x20','ursor','picke','18RfFMVi','check','Size','const','all','info','ired\x20','Photo','e\x20Lat','1790Zqblna','andro','map','110169LgQXly','photo','playa','256VgtAXs','reque','tiple','ssion','PERMI','2338725KqnohF','fileS','9027816gxvZZI','NAL_S','image','46849jsTNrY','cess\x20','ess','\x20requ','album','selec','Recen','SSION','ize','age','All','then','Ask\x20M','ame','Deny','stMul','_IMAG','bleDu','Allow','getPh','EXTER','filen','RESUL','eVers','ratio','2rBWQma','to\x20ac','s\x20are','3297DHQBTD','Error','274617RgmZUr','2329719cddxVl','Permi','956jXNKES','edges','otos\x20','GRANT','minor','page_','_VIDE','and\x20s'];X=function(){return N;};return X();}export const verifyAndroidPermissions=async()=>{const a=M,f=x[a(0x120)+a(0x169)][a(0x168)+a(0x15f)+a(0x14d)+a(0x162)]?.[a(0x15b)]>=0x47,B=x[a(0x163)+'on']>=0x21,o=f&&B;return await((()=>o?Promise[a(0x121)]([c[a(0x11e)](c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x146)+'ES']),c[a(0x11e)](c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x15d)+'O'])])[a(0x141)](([k,K])=>k&&K):c[a(0x11e)](c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x14a)+a(0x134)+a(0x166)+'E']))())?!0x0:await((()=>o?c[a(0x12d)+a(0x145)+a(0x12e)]([c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x146)+'ES'],c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x15d)+'O']])[a(0x141)](k=>k[c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x146)+'ES']]===c[a(0x14c)+'TS'][a(0x15a)+'ED']&&k[c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x117)+a(0x15d)+'O']]===c[a(0x14c)+'TS'][a(0x15a)+'ED']):c[a(0x12d)+'st'](c[a(0x130)+a(0x13d)+'S'][a(0x161)+a(0x14a)+a(0x134)+a(0x166)+'E'],{'buttonNegative':a(0x144),'buttonNeutral':a(0x142)+a(0x125)+'er','buttonPositive':a(0x148),'message':a(0x156)+a(0x12f)+a(0x151)+a(0x139)+a(0x123)+a(0x150)+a(0x137)+a(0x15e)+a(0x11a)+a(0x12a)+'s.','title':a(0x124)+a(0x164)+a(0x138)})[a(0x141)](k=>k===c[a(0x14c)+'TS'][a(0x15a)+'ED']))());},getPhotos=async({after:f,first:B,groupName:k,groupTypes:K})=>{const Z=M;try{if(x['OS']===Z(0x127)+'id'&&!await verifyAndroidPermissions())throw new Error(Z(0x149)+Z(0x159)+Z(0x153));const R=await U[Z(0x149)+Z(0x160)]({'after':f,'assetType':Z(0x140),'groupName':k===Z(0x13c)+'ts'?void 0x0:k,'groupTypes':x[Z(0x13b)+'t']({'ios':k===Z(0x13c)+'ts'?Z(0x140):K,'android':void 0x0}),'first':B,'includeSharedAlbums':!0x0,'include':[Z(0x132)+Z(0x13e),Z(0x14b)+Z(0x143),Z(0x135)+Z(0x11f),Z(0x12b)+Z(0x147)+Z(0x14e)+'n',Z(0x13a)+'s']}),l=R[Z(0x158)][Z(0x128)](O=>({'source':Z(0x11c)+'r',...O[Z(0x119)][Z(0x135)],'fileSize':O[Z(0x119)][Z(0x135)][Z(0x132)+Z(0x13e)]??0x0})),T=R[Z(0x15c)+Z(0x122)][Z(0x167)+Z(0x118)+Z(0x13f)],C=R[Z(0x15c)+Z(0x122)][Z(0x165)+Z(0x11b)];return{'assets':l,'endCursor':C,'hasNextPage':T};}catch{throw new Error(Z(0x149)+Z(0x159)+Z(0x153));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(U,c){var o=M,x=U();while(!![]){try{var f=-parseInt(o(0x1a3))/0x1*(-parseInt(o(0x1a1))/0x2)+-parseInt(o(0x1a2))/0x3*(parseInt(o(0x1a0))/0x4)+parseInt(o(0x19e))/0x5*(parseInt(o(0x1a5))/0x6)+parseInt(o(0x1a7))/0x7+parseInt(o(0x1a6))/0x8*(parseInt(o(0x19f))/0x9)+-parseInt(o(0x1a8))/0xa+parseInt(o(0x19d))/0xb*(-parseInt(o(0x1a4))/0xc);if(f===c)break;else x['push'](x['shift']());}catch(B){x['push'](x['shift']());}}}(X,0x81a8b));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';function X(){var k=['5703292BbRZRL','10415020RIFsxa','11nmtgxP','585hgwvUG','1188MSYrRt','4976ZKLNnT','244386iwHVAD','243KmGdLk','4rezwqS','18426324MdkRPv','50136ravSzf','56224WFCzWi'];X=function(){return k;};return X();}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';function M(U,c){var x=X();return M=function(f,B){f=f-0x19d;var o=x[f];return o;},M(U,c);}export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function M(U,c){const x=X();return M=function(f,B){f=f-0x169;let o=x[f];return o;},M(U,c);}function X(){const K=['999315QdyUTc','e\x20Err','4ZNmHcY','2hUDoJg','245943biynWK','2224955dmKZzO','stFil','14358590tPOfCH','19951Kqvtig','499014ZMAJDV','7mOWhtE','4207656SSezru','isExi','exist'];X=function(){return K;};return X();}(function(c,x){const k=M,f=c();while(!![]){try{const B=-parseInt(k(0x16d))/0x1+parseInt(k(0x176))/0x2*(-parseInt(k(0x169))/0x3)+parseInt(k(0x175))/0x4*(-parseInt(k(0x16a))/0x5)+parseInt(k(0x16e))/0x6*(-parseInt(k(0x16f))/0x7)+-parseInt(k(0x170))/0x8+parseInt(k(0x173))/0x9+parseInt(k(0x16c))/0xa;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x5f6bd));import U from'react-native-fs';export const isExistFile=async c=>{const E=M;try{return await U[E(0x172)+'s'](c);}catch{throw new Error(E(0x171)+E(0x16b)+E(0x174)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function X(){const C=['9nsXesC','46cujYfL','elect','20311loSBeR','Versi','addLi','stene','4327168MTVXGl','onLib','ios','110ETjtcs','96nKlDBL','ange','ionCh','1123832KmAvMU','remov','983375SPTNnt','4134141mRGlfc','226191alHpex','3616430OyZlDt','raryS'];X=function(){return C;};return X();}const R=M;(function(x,f){const K=M,B=x();while(!![]){try{const k=-parseInt(K(0xa6))/0x1*(parseInt(K(0xa4))/0x2)+-parseInt(K(0x9f))/0x3+parseInt(K(0x9c))/0x4+-parseInt(K(0x9e))/0x5+-parseInt(K(0x99))/0x6*(parseInt(K(0xa0))/0x7)+parseInt(K(0x95))/0x8*(-parseInt(K(0xa3))/0x9)+parseInt(K(0xa1))/0xa*(parseInt(K(0x98))/0xb);if(k===f)break;else B['push'](B['shift']());}catch(E){B['push'](B['shift']());}}}(X,0xc2ba9));import{cameraRollEventEmitter as U}from'@react-native-camera-roll/camera-roll';import{Platform as c}from'react-native';const i=c['OS']===R(0x97)&&parseInt(c[R(0x92)+'on'],0xa)>=0xe;function M(U,c){const x=X();return M=function(f,B){f=f-0x92;let o=x[f];return o;},M(U,c);}export function oniOS14GalleryLibrarySelectionChange(x){const l=R;if(i){const f=U[l(0x93)+l(0x94)+'r'](l(0x96)+l(0xa2)+l(0xa5)+l(0x9b)+l(0x9a),x);return{'unsubscribe':()=>{const T=l;f[T(0x9d)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(x,f){const E=M,B=x();while(!![]){try{const o=parseInt(E(0xb1))/0x1+parseInt(E(0xab))/0x2+-parseInt(E(0xb3))/0x3+parseInt(E(0xb2))/0x4+parseInt(E(0xb7))/0x5+parseInt(E(0xad))/0x6*(-parseInt(E(0xaa))/0x7)+-parseInt(E(0xb8))/0x8;if(o===f)break;else B['push'](B['shift']());}catch(k){B['push'](B['shift']());}}}(X,0x18a10));function M(U,c){const x=X();return M=function(f,B){f=f-0xaa;let o=x[f];return o;},M(U,c);}function X(){const R=['lengt','map','allFi','842905BClZBK','2292152IuAndd','91iGsrhF','60312ajmKaO','types','8406ugPKCA','pick','slice','les','175939WQcSnp','732840agnipx','456822duJeAI'];X=function(){return R;};return X();}import U from'react-native-document-picker';export const pickDocument=async x=>{const K=M;try{let f=await U[K(0xae)]({'allowMultiSelection':!0x0,'type':[U[K(0xac)][K(0xb6)+K(0xb0)]]});return x&&f[K(0xb4)+'h']>x&&(f=f[K(0xaf)](0x0,x)),{'assets':f[K(0xb5)](({name:B,size:o,uri:k})=>({'uri':k,'size':o,'name':B})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const L=M;(function(B,k){const O=M,E=B();while(!![]){try{const K=-parseInt(O(0x70))/0x1+-parseInt(O(0x8c))/0x2*(parseInt(O(0x73))/0x3)+parseInt(O(0x81))/0x4*(-parseInt(O(0x6c))/0x5)+-parseInt(O(0x88))/0x6*(-parseInt(O(0x84))/0x7)+-parseInt(O(0x86))/0x8+-parseInt(O(0x79))/0x9+parseInt(O(0x6f))/0xa*(parseInt(O(0x7a))/0xb);if(K===k)break;else E['push'](E['shift']());}catch(R){E['push'](E['shift']());}}}(X,0x2996e));function X(){const N=['image','546810BbOYVE','93796ZTNhNX','aller','path','807XQqRML','size','lastI','openP','error','icker','1730034PefBhf','99aTPeMM','ios','ndexO','heigh','ictur','subst','\x20of\x20p','8636kGZjZu','min','ker\x20f','640955XHEDUE','e\x20pic','1122656ALKgVe','width','12qbuULp','getSi','Error','picke','568KwUkwp','andro','rom\x20g','max','\x20size','ring','5oHJorW','\x20get\x20'];X=function(){return N;};return X();}import{Image as U,Platform as x}from'react-native';import f from'react-native-image-crop-picker';function M(U,c){const x=X();return M=function(f,B){f=f-0x6c;let o=x[f];return o;},M(U,c);}export const pickPhoto=async({compressImageQuality:B=x['OS']===L(0x7b)?0.8:0x1,cropping:k=!0x1})=>{const a=L,E=await f[a(0x76)+a(0x78)]({'compressImageQuality':Math[a(0x82)](Math[a(0x8f)](0x0,B),0x1),'cropping':k===!0x0});if(E[a(0x7d)+'t']&&E[a(0x87)]&&E[a(0x72)]){let K;if(x['OS']===a(0x8d)+'id'){const R=()=>new Promise(l=>{const Z=a;U[Z(0x89)+'ze'](E[Z(0x72)],(T,C)=>{l({'height':C,'width':T});});});try{const l=await R();K={'width':l[a(0x87)],'height':l[a(0x7d)+'t']};}catch(T){console[a(0x77)](a(0x8a)+a(0x6d)+a(0x6e)+a(0x90)+a(0x80)+a(0x7e)+a(0x85)+a(0x83)+a(0x8e)+a(0x71)+'y\x20',T);}}else K={'height':E[a(0x7d)+'t'],'width':E[a(0x87)]};if(K){const C=E[a(0x72)][a(0x75)+a(0x7c)+'f']('/');return{'source':a(0x8b)+'r','name':E[a(0x72)][a(0x7f)+a(0x91)](C+0x1),'size':E[a(0x74)],'uri':E[a(0x72)],...K};}else return;}};
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(c,x){const E=M,f=c();while(!![]){try{const B=-parseInt(E(0x9d))/0x1*(-parseInt(E(0x99))/0x2)+-parseInt(E(0xa1))/0x3+parseInt(E(0x93))/0x4+-parseInt(E(0x92))/0x5+-parseInt(E(0x9e))/0x6+-parseInt(E(0x96))/0x7+parseInt(E(0x98))/0x8;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x38935));function X(){const R=['promi','1846544CPFLwf','Downl','6860016aoxZDm','9622qsCLCE','oadin','file:','Cache','20NfXAfe','118962nYpcBH','iled.','ge\x20fa','797589lZDOJI','sDire','ctory','downl','Path','oadFi','2268925mtyeGz','1125112ZoSToD','g\x20ima'];X=function(){return R;};return X();}function M(U,c){const x=X();return M=function(f,B){f=f-0x8e;let o=x[f];return o;},M(U,c);}import U from'react-native-fs';export const saveFile=async({fileName:c,fromUrl:x,onProgress:f})=>{const K=M;try{const B=U[K(0x9c)+K(0xa2)+K(0x8e)+K(0x90)]+'/'+encodeURIComponent(c);return await U[K(0x8f)+K(0x91)+'le']({'fromUrl':x,'toFile':B,'background':!0x0,'discretionary':!0x0,'progress':f,'begin':k=>{},'progressDivider':0x5})[K(0x95)+'se'],K(0x9b)+'//'+B;}catch{throw new Error(K(0x97)+K(0x9a)+K(0x94)+K(0xa0)+K(0x9f)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const E=M;(function(c,x){const k=M,f=c();while(!![]){try{const B=parseInt(k(0x146))/0x1*(-parseInt(k(0x143))/0x2)+-parseInt(k(0x145))/0x3*(-parseInt(k(0x144))/0x4)+-parseInt(k(0x148))/0x5*(parseInt(k(0x14d))/0x6)+parseInt(k(0x14e))/0x7*(-parseInt(k(0x14a))/0x8)+-parseInt(k(0x14c))/0x9+-parseInt(k(0x149))/0xa+parseInt(k(0x14b))/0xb;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x7ed79));function M(U,c){const x=X();return M=function(f,B){f=f-0x142;let o=x[f];return o;},M(U,c);}import U from'@react-native-clipboard/clipboard';function X(){const K=['5PpbTNq','setSt','2008765YrsCok','8405650Skujqs','4712WCylkE','34437051mxqpwS','8913249sphtQd','6zrRSBv','763WjBJql','ring','404290RNRCPN','253276TciKFS','33TtcqFW'];X=function(){return K;};return X();}export const setClipboardString=c=>U[E(0x147)+E(0x142)](c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const D=M;(function(o,k){const q=M,E=o();while(!![]){try{const K=-parseInt(q(0x140))/0x1*(-parseInt(q(0x145))/0x2)+-parseInt(q(0x136))/0x3+parseInt(q(0x122))/0x4*(parseInt(q(0x13b))/0x5)+parseInt(q(0x120))/0x6*(parseInt(q(0x138))/0x7)+-parseInt(q(0x139))/0x8*(parseInt(q(0x135))/0x9)+parseInt(q(0x125))/0xa*(parseInt(q(0x130))/0xb)+parseInt(q(0x141))/0xc;if(K===k)break;else E['push'](E['shift']());}catch(R){E['push'](E['shift']());}}}(X,0x95a9e));import{AppState as U,Image as c,PermissionsAndroid as x,Platform as f}from'react-native';import B from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:k=f['OS']===D(0x14e)?0.8:0x1,cropping:E=!0x1})=>{const j=D;if(f['OS']===j(0x131)+'id'&&x[j(0x129)+j(0x146)+'S'][j(0x143)+'A']&&!await x[j(0x132)](x[j(0x129)+j(0x146)+'S'][j(0x143)+'A'])){const K=await x[j(0x11c)+'st'](x[j(0x129)+j(0x146)+'S'][j(0x143)+'A']);if(K===x[j(0x144)+'TS'][j(0x13a)+'D'])return{'cancelled':!0x0};if(K===x[j(0x144)+'TS'][j(0x113)+j(0x123)+j(0x11d)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const R=await B[j(0x119)+j(0x117)]({'compressImageQuality':Math[j(0x118)](Math[j(0x13d)](0x0,k),0x1),'cropping':E===!0x0});if(R[j(0x115)+'t']&&R[j(0x13f)]&&R[j(0x13c)]){let l;if(f['OS']===j(0x131)+'id'){const T=()=>new Promise(C=>{const A=j;c[A(0x14c)+'ze'](R[A(0x13c)],(O,L)=>{C({'height':L,'width':O});});});try{const C=await T();l={'width':C[j(0x13f)],'height':C[j(0x115)+'t']};}catch(O){console[j(0x11a)](j(0x147)+j(0x126)+j(0x12e)+j(0x128)+j(0x114)+j(0x14b)+j(0x12b)+j(0x149)+j(0x124)+j(0x14a)+j(0x116),O);}}else l={'height':R[j(0x115)+'t'],'width':R[j(0x13f)]};if(l){const L=R[j(0x13c)][j(0x11f)+j(0x134)+'f']('/');return{'cancelled':!0x1,'source':j(0x12d)+'a','name':R[j(0x13c)][j(0x14d)+j(0x121)](L+0x1),'size':R[j(0x127)],'uri':R[j(0x13c)],...l};}else return;}}catch(Z){if(Z instanceof Error&&f['OS']===j(0x14e)&&U[j(0x13e)+j(0x137)+'te']===j(0x12c)+'e'){const N=j(0x11b)+j(0x12f)+j(0x11e)+j(0x142)+j(0x117)+j(0x148)+j(0x133)+'n.';if(Z[j(0x12a)+'ge']===N)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};function M(U,c){const x=X();return M=function(f,B){f=f-0x113;let o=x[f];return o;},M(U,c);}function X(){const V=['issio','ndexO','963tGVvYR','2142825kEossM','ntSta','63iEoiAp','80872CspVAz','DENIE','697435zjybME','path','max','curre','width','3559oRDVeJ','124812sDBLdw','ant\x20c','CAMER','RESUL','458OMfSTQ','SSION','Error','\x20perm','utred','\x20came','ictur','getSi','subst','ios','NEVER','\x20of\x20p','heigh','ra\x20','amera','min','openC','error','User\x20','reque','AGAIN','ot\x20gr','lastI','648198vKQroU','ring','8IvilMX','_ASK_','\x20from','302070zYENQr','\x20get\x20','size','\x20size','PERMI','messa','e\x20cap','activ','camer','image','did\x20n','121bvPrwE','andro','check'];X=function(){return V;};return X();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(c,x){const k=M,f=c();while(!![]){try{const B=parseInt(k(0x164))/0x1*(-parseInt(k(0x166))/0x2)+parseInt(k(0x162))/0x3+parseInt(k(0x160))/0x4+-parseInt(k(0x167))/0x5*(parseInt(k(0x163))/0x6)+-parseInt(k(0x161))/0x7+-parseInt(k(0x165))/0x8+parseInt(k(0x15e))/0x9;if(B===x)break;else f['push'](f['shift']());}catch(o){f['push'](f['shift']());}}}(X,0x7e259));import U from'react-native-haptic-feedback';function M(U,c){const x=X();return M=function(f,B){f=f-0x15e;let o=x[f];return o;},M(U,c);}function X(){const K=['2866371KavVEk','660GKPcXi','557fSaEXA','6957608HWjvNR','2290gFahxg','16070MbBfWG','14434650dkTsUD','trigg','543848tVXkCV','2222962RqISgX'];X=function(){return K;};return X();}export const triggerHaptic=c=>{const E=M;U[E(0x15f)+'er'](c,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(F,z){var P=M,Q=F();while(!![]){try{var J=-parseInt(P(0x1ab))/0x1+-parseInt(P(0x1b0))/0x2+-parseInt(P(0x1af))/0x3*(parseInt(P(0x1ac))/0x4)+parseInt(P(0x1ad))/0x5+-parseInt(P(0x1b1))/0x6+parseInt(P(0x1aa))/0x7+parseInt(P(0x1ae))/0x8*(parseInt(P(0x1b2))/0x9);if(J===z)break;else Q['push'](Q['shift']());}catch(I){Q['push'](Q['shift']());}}}(X,0x28d53));function X(){var G=['168636zhFcSV','508Runcqm','1138815kqBjSM','4560744zacPab','7014AqqMOV','591724hKoAbn','618480doKSMG','9IedTyR','1637293GuQClg'];X=function(){return G;};return X();}import{registerNativeHandlers as U}from'@communi/chat-ui-react-native';import{addKeyboardListener as B,removeKeyboardListener as k,setWindowSoftInputAdjustNothing as E,setWindowSoftInputAdjustResize as K,createMQTTClient as R,deleteFile as T,getLocalAssetUri as C,getPhotos as O,getAlbums as L,isExistFile as Z,oniOS14GalleryLibrarySelectionChange as N,saveFile as q,takePhoto as D,pickPhoto as j,Video as A,DatePicker as V,setClipboardString as W,triggerHaptic as v,pickDocument as y}from'./handlers';U({'addKeyboardListener':B,'removeKeyboardListener':k,'setWindowSoftInputAdjustNothing':E,'setWindowSoftInputAdjustResize':K,'createMQTTClient':R,'deleteFile':T,'getLocalAssetUri':C,'getPhotos':O,'getAlbums':L,'isExistFile':Z,'oniOS14GalleryLibrarySelectionChange':N,'pickDocument':y,'saveFile':q,'setClipboardString':W,'takePhoto':D,'pickPhoto':j,'triggerHaptic':v,'Video':A,'DatePicker':V});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';function M(U,c){var x=X();return M=function(f,B){f=f-0x1aa;var o=x[f];return o;},M(U,c);}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 U=
|
|
1
|
+
'use strict';const k=M;function M(U,c){const x=X();return M=function(f,B){f=f-0x10d;let o=x[f];return o;},M(U,c);}function X(){const E=['6512465AjwkVf','defau','Cần\x20c','6069807kbUJnt','50SapvQR','t\x20gói','5139318xAmErz','picke','1078722yHzjbf','warn','\x20\x22rea','6856YOsDwD','tive-','10003qQzUMg','ài\x20đặ','date-','1298368BtzSQq','1496894VdrLYC','12YYoHqr','ct-na'];X=function(){return E;};return X();}(function(U,c){const o=M,x=U();while(!![]){try{const f=parseInt(o(0x111))/0x1+parseInt(o(0x11c))/0x2+parseInt(o(0x112))/0x3*(-parseInt(o(0x110))/0x4)+parseInt(o(0x114))/0x5+parseInt(o(0x11a))/0x6+-parseInt(o(0x10d))/0x7*(-parseInt(o(0x11f))/0x8)+-parseInt(o(0x117))/0x9*(parseInt(o(0x118))/0xa);if(f===c)break;else x['push'](x['shift']());}catch(B){x['push'](x['shift']());}}}(X,0xb6f9f));let e;try{e=require('react-native-date-picker')[k(0x115)+'lt'];}catch{console[k(0x11d)](k(0x116)+k(0x10e)+k(0x119)+k(0x11e)+k(0x113)+k(0x120)+k(0x10f)+k(0x11b)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function M(U,c){const x=X();return M=function(f,B){f=f-0x129;let o=x[f];return o;},M(U,c);}const k=M;function X(){const E=['461246KGhzLO','899844ErnhtR','4496jUudmx','826929yOugPq','t\x20gói','ài\x20đặ','tive-','486596dIdofw','warn','373120LDqrZN','508325YbvgUK','video','ct-na','Cần\x20c','defau','8519EUliXg','\x20\x22rea'];X=function(){return E;};return X();}(function(U,c){const o=M,x=U();while(!![]){try{const f=-parseInt(o(0x130))/0x1+-parseInt(o(0x139))/0x2+parseInt(o(0x133))/0x3+-parseInt(o(0x137))/0x4+-parseInt(o(0x129))/0x5+parseInt(o(0x131))/0x6+parseInt(o(0x12e))/0x7*(parseInt(o(0x132))/0x8);if(f===c)break;else x['push'](x['shift']());}catch(B){x['push'](x['shift']());}}}(X,0x3a373));let e;try{e=require('react-native-video')[k(0x12d)+'lt'];}catch{console[k(0x138)](k(0x12c)+k(0x135)+k(0x134)+k(0x12f)+k(0x12b)+k(0x136)+k(0x12a)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(U,c){var o=M,x=U();while(!![]){try{var f=-parseInt(o(0x7e))/0x1*(parseInt(o(0x80))/0x2)+parseInt(o(0x82))/0x3*(-parseInt(o(0x7d))/0x4)+-parseInt(o(0x83))/0x5*(parseInt(o(0x86))/0x6)+-parseInt(o(0x7f))/0x7*(-parseInt(o(0x84))/0x8)+parseInt(o(0x87))/0x9+parseInt(o(0x88))/0xa*(parseInt(o(0x85))/0xb)+-parseInt(o(0x81))/0xc*(-parseInt(o(0x7c))/0xd);if(f===c)break;else x['push'](x['shift']());}catch(B){x['push'](x['shift']());}}}(X,0xdd5f3));function M(U,c){var x=X();return M=function(f,B){f=f-0x7c;var o=x[f];return o;},M(U,c);}function X(){var k=['62dXiVkk','1310532vrMfGx','3viQcLR','427195RCPaTF','351864fgjaur','11QsenDt','42TAQsYs','6532938yXauXJ','14681210IQRmGn','26DxznVX','5879164txgWnU','20173CFsVPf','189GlmbfH'];X=function(){return k;};return X();}export*from'./DatePicker';export*from'./Video';
|