@communi/chat-react-native 2.5.5 → 2.6.1
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(E,q){var A=S,z=E();while(!![]){try{var h=-parseInt(A(0xde))/0x1+-parseInt(A(0xe3))/0x2*(parseInt(A(0xdd))/0x3)+parseInt(A(0xdc))/0x4*(parseInt(A(0xdb))/0x5)+parseInt(A(0xe2))/0x6*(-parseInt(A(0xda))/0x7)+parseInt(A(0xd9))/0x8+parseInt(A(0xe0))/0x9*(parseInt(A(0xdf))/0xa)+parseInt(A(0xe1))/0xb;if(h===q)break;else z['push'](z['shift']());}catch(p){z['push'](z['shift']());}}}(v,0xba5c6));function S(E,q){var z=v();return S=function(h,p){h=h-0xd9;var A=z[h];return A;},S(E,q);}function v(){var N=['8JvgRgJ','6nnDUaD','1279297rZMoWL','140xEdqtW','60318VgBwZg','16348860RMIimq','36jCyqeI','394354nCGMTC','11005576BxKEIk','1146957Yarxaz','1160765kEEosh'];v=function(){return N;};return v();}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.1",
|
|
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.1",
|
|
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 O=S;(function(z,h){const I=S,p=z();while(!![]){try{const A=-parseInt(I(0x1ca))/0x1+parseInt(I(0x1c5))/0x2*(-parseInt(I(0x1cc))/0x3)+-parseInt(I(0x1cd))/0x4+parseInt(I(0x1c6))/0x5*(parseInt(I(0x1c9))/0x6)+parseInt(I(0x1c8))/0x7*(parseInt(I(0x1d0))/0x8)+parseInt(I(0x1c7))/0x9*(-parseInt(I(0x1cf))/0xa)+parseInt(I(0x1cb))/0xb;if(A===h)break;else p['push'](p['shift']());}catch(N){p['push'](p['shift']());}}}(v,0xc838f));function v(){const n=['9YsWmQW','14ndCbFL','5883978yKqzxK','566066cXIOQH','32181655zDeOmo','3GFPNTx','664780nPHqVw','ent','14412890EDbYsD','2052056QJJUaG','creat','eElem','2851242tPgWjk','5iwLNld'];v=function(){return n;};return v();}function S(E,q){const z=v();return S=function(h,p){h=h-0x1c3;let A=z[h];return A;},S(E,q);}import E from'react';import{DatePickerComponent as q}from'../optionalDependencies/DatePicker';export const DatePicker=q?({modal:z,open:h,date:p,minimumDate:A,onConfirm:N,onCancel:x})=>E[O(0x1c3)+O(0x1c4)+O(0x1ce)](q,{'modal':z,'open':h,'date':p,'minimumDate':A,'onConfirm':N,'onCancel':x}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const I=S;function v(){const O=['5960qkDDyI','187341wCMfHs','oftIn','putMo','2555357WOTIYT','yboar','oardL','1819996jrCdxS','33544320RVnPfY','24oWwcRX','ST_RE','5yWFiKP','6823806bKnEPU','isten','SOFT_','_ADJU','addKe','SIZE','INPUT','THING','635826KirNMj','setWi','ST_NO','13131SyUzyW','eKeyb','ndowS','ener','dList','remov'];v=function(){return O;};return v();}(function(z,h){const x=S,p=z();while(!![]){try{const A=-parseInt(x(0xd7))/0x1+-parseInt(x(0xdd))/0x2+parseInt(x(0xea))/0x3*(-parseInt(x(0xdf))/0x4)+parseInt(x(0xe1))/0x5*(parseInt(x(0xe2))/0x6)+-parseInt(x(0xda))/0x7+parseInt(x(0xd6))/0x8*(-parseInt(x(0xed))/0x9)+parseInt(x(0xde))/0xa;if(A===h)break;else p['push'](p['shift']());}catch(N){p['push'](p['shift']());}}}(v,0xa3c10));function S(E,q){const z=v();return S=function(h,p){h=h-0xd5;let A=z[h];return A;},S(E,q);}import{PSKeyboard as E,SoftInputMode as q}from'@communi/keyboard-area-react-native';export const addKeyboardListener=z=>E[I(0xe6)+I(0xdb)+I(0xf1)+I(0xf0)](z),removeKeyboardListener=z=>E[I(0xd5)+I(0xee)+I(0xdc)+I(0xe3)+'er'](z),setWindowSoftInputAdjustNothing=()=>E[I(0xeb)+I(0xef)+I(0xd8)+I(0xd9)+'de'](q[I(0xe4)+I(0xe8)+I(0xe5)+I(0xec)+I(0xe9)]),setWindowSoftInputAdjustResize=()=>E[I(0xeb)+I(0xef)+I(0xd8)+I(0xd9)+'de'](q[I(0xe4)+I(0xe8)+I(0xe5)+I(0xe0)+I(0xe7)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function S(E,q){const z=v();return S=function(h,p){h=h-0x1ec;let A=z[h];return A;},S(E,q);}const x=S;function v(){const I=['getIn','4731425pAVOOC','746814gYusPB','152rrhmOo','1980488wsYUVU','6RdXdfd','31959081JPgEbh','stanc','3060168AkSGZP','130319coNqFa','3436782BuQsxt'];v=function(){return I;};return v();}(function(q,z){const N=S,h=q();while(!![]){try{const p=parseInt(N(0x1ef))/0x1+-parseInt(N(0x1f5))/0x2+-parseInt(N(0x1ec))/0x3+parseInt(N(0x1f1))/0x4+-parseInt(N(0x1ee))/0x5*(parseInt(N(0x1f2))/0x6)+parseInt(N(0x1f6))/0x7*(-parseInt(N(0x1f0))/0x8)+parseInt(N(0x1f3))/0x9;if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0xc786b));import{MQTTClient as E}from'@communi/mqtt-client-react-native';export const createMQTTClient=async q=>E[x(0x1ed)+x(0x1f4)+'e'](q);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function v(){const G=['1154664wlzJTi','1803xmBjtf','22311KxUhvQ','10750pVTytd','6697225dBKsyB','2491424EpOSVR','1204568gmDrPA','error','creat','5207058WrMlqB','9932ngAYtR','ignor','eElem','7iVSFYp','ent'];v=function(){return G;};return v();}const w=S;(function(z,h){const l=S,p=z();while(!![]){try{const A=-parseInt(l(0x1f2))/0x1+parseInt(l(0x1f7))/0x2+-parseInt(l(0x1f3))/0x3*(-parseInt(l(0x1fc))/0x4)+parseInt(l(0x1f6))/0x5+parseInt(l(0x1fb))/0x6+-parseInt(l(0x1ff))/0x7*(parseInt(l(0x1f8))/0x8)+parseInt(l(0x1f4))/0x9*(-parseInt(l(0x1f5))/0xa);if(A===h)break;else p['push'](p['shift']());}catch(N){p['push'](p['shift']());}}}(v,0xee113));import E from'react';function S(E,q){const z=v();return S=function(h,p){h=h-0x1f2;let A=z[h];return A;},S(E,q);}import{AudioVideoComponent as q}from'../optionalDependencies/Video';export const Video=q?({onBuffer:z,onEnd:h,onLoad:A,onProgress:N,paused:x,repeat:I,resizeMode:O,style:W,uri:D,videoRef:H})=>E[w(0x1fa)+w(0x1fe)+w(0x200)](q,{'ignoreSilentSwitch':w(0x1fd)+'e','onBuffer':z,'onEnd':h,'onError':Y=>{const U=w;console[U(0x1f9)](Y);},'onLoad':A,'onProgress':N,'paused':x,'ref':H,'repeat':I,'resizeMode':O,'source':{'uri':D},'style':W}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function v(){const I=['File\x20','ion\x20f','11356KvFCpk','36476ssIVWa','log','1270nLTIhO','1099495aTvFll','997011OuXCdf','delet','8xcnnMw','1656764Uxcftb','131892iGKPLX','ailed','unlin','43323pNuIDU','6IMWsLd','...','318rcNikd'];v=function(){return I;};return v();}(function(q,z){const N=S,h=q();while(!![]){try{const p=-parseInt(N(0x1f8))/0x1+parseInt(N(0x1ef))/0x2*(-parseInt(N(0x1ea))/0x3)+parseInt(N(0x1f7))/0x4+-parseInt(N(0x1f3))/0x5+parseInt(N(0x1ec))/0x6*(-parseInt(N(0x1e9))/0x7)+parseInt(N(0x1f6))/0x8*(parseInt(N(0x1f4))/0x9)+parseInt(N(0x1f2))/0xa*(parseInt(N(0x1f0))/0xb);if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0x3e3da));import E from'react-native-fs';function S(E,q){const z=v();return S=function(h,p){h=h-0x1e9;let A=z[h];return A;},S(E,q);}export const deleteFile=async({uri:q})=>{const x=S;try{return await E[x(0x1fa)+'k'](q),!0x0;}catch(z){return console[x(0x1f1)](x(0x1ed)+x(0x1f5)+x(0x1ee)+x(0x1f9)+x(0x1eb),z),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const l=S;(function(p,A){const Y=S,N=p();while(!![]){try{const x=parseInt(Y(0x13f))/0x1*(parseInt(Y(0x13d))/0x2)+-parseInt(Y(0x125))/0x3*(-parseInt(Y(0x120))/0x4)+parseInt(Y(0x137))/0x5*(parseInt(Y(0x13b))/0x6)+-parseInt(Y(0x136))/0x7+-parseInt(Y(0x12c))/0x8*(parseInt(Y(0x138))/0x9)+parseInt(Y(0x11f))/0xa+-parseInt(Y(0x13e))/0xb*(parseInt(Y(0x132))/0xc);if(x===A)break;else N['push'](N['shift']());}catch(I){N['push'](N['shift']());}}}(v,0xa486d));function v(){const k=['edges','All','andro','node','otos\x20','16IRDDLI','Smart','Error','image','getPh','forEa','11172oucDBN','Album','Deep','all','3095001NkcZit','1290wKwhsD','3561273hpTzFT','getAl','push','6462gcEbbK','clone','1857910geDCwN','8503BRmJmM','1gkBcgU','lengt','Recen','8542490sxDiHC','754708eOEPeG','otos','bums\x20','selec','bums','9yKKrpx','title'];v=function(){return k;};return v();}import{CameraRoll as E}from'@react-native-camera-roll/camera-roll';import{Platform as q}from'react-native';function S(E,q){const z=v();return S=function(h,p){h=h-0x11d;let A=z[h];return A;},S(E,q);}import{verifyAndroidPermissions as z}from'./getPhotos';import h from'lodash';export const getAlbums=async({albumType:p=l(0x12d)+l(0x133),assetType:A=l(0x128)})=>{const w=l;try{if(q['OS']===w(0x129)+'id'&&!await z())throw new Error(w(0x130)+w(0x12b)+w(0x12e));const N=await E[w(0x139)+w(0x124)]({'albumType':p,'assetType':A});if(N&&N[w(0x11d)+'h']){const x=[];return h[w(0x13c)+w(0x134)](N)[w(0x131)+'ch'](I=>{const G=w,O=new Promise(async(W,D)=>{const U=S;try{const H=await E[U(0x130)+U(0x121)]({'assetType':A,'first':0x1,'groupName':I[U(0x126)],'groupTypes':q[U(0x123)+'t']({'ios':I[U(0x126)]===U(0x11e)+'ts'?U(0x128):U(0x12d)+U(0x133),'android':void 0x0})});H?.[U(0x127)]?.[0x0]?.[U(0x12a)]?.[U(0x12f)]&&(I[U(0x12f)]=H[U(0x127)][0x0][U(0x12a)][U(0x12f)]),W(I);}catch{W(I);}});x[G(0x13a)](O);}),{'Albums':await Promise[w(0x135)](x)};}return{'Albums':[]};}catch{throw new Error(w(0x139)+w(0x122)+w(0x12e));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(q,z){const N=S,h=q();while(!![]){try{const p=-parseInt(N(0x10d))/0x1+parseInt(N(0x10c))/0x2*(-parseInt(N(0x114))/0x3)+-parseInt(N(0x117))/0x4*(-parseInt(N(0x10f))/0x5)+-parseInt(N(0x118))/0x6+-parseInt(N(0x119))/0x7+parseInt(N(0x115))/0x8+-parseInt(N(0x116))/0x9*(-parseInt(N(0x10e))/0xa);if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0x9b16c));import{CameraRoll as E}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async q=>{const x=S;try{return await E[x(0x112)](q);}catch{throw new Error(x(0x110)+x(0x10b)+x(0x113)+x(0x111)+'or');}};function S(E,q){const z=v();return S=function(h,p){h=h-0x10b;let A=z[h];return A;},S(E,q);}function v(){const I=['626409TGGhMG','4670cQgARh','34785DZfOIa','getLo','i\x20Err','save','setUr','657885rzRXhy','4165688bmiNQK','42363VFLdXl','148nkVALo','4635438bCrwrm','5059376sogbVA','calAs','2vthoWF'];v=function(){return I;};return v();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function v(){const U=['22507954svgBmN','cess\x20','EXTER','ratio','Size','tiple','READ_','bleDu','2713710vSTDmf','playa','eVers','774771pUcMFN','end_c','GRANT','selec','Error','reque','has_n','album','andro','const','age','edges','then','Ask\x20M','Deny','fileS','picke','Allow','Nativ','ssion','10483164yxUUsu','ion','Permi','1561720qVrASs','all','minor','All','to\x20ac','MEDIA','otos\x20','ursor','hare\x20','node','and\x20s','react','e\x20Lat','\x20requ','ame','_IMAG','4573800IiRLzv','ired\x20','RESUL','_VIDE','stMul','SSION','photo','1857264VAsjyZ','TORAG','image','ess','check','Photo','map','page_','ize','getPh','Recen','s\x20Acc','ext_p','Versi','info','filen','ants','NAL_S','otos','s\x20are','PERMI'];v=function(){return U;};return v();}(function(h,p){const Y=S,N=h();while(!![]){try{const x=parseInt(Y(0xc1))/0x1+parseInt(Y(0xde))/0x2+-parseInt(Y(0xe1))/0x3+parseInt(Y(0xf8))/0x4+-parseInt(Y(0xba))/0x5+parseInt(Y(0xf5))/0x6+-parseInt(Y(0xd6))/0x7;if(x===p)break;else N['push'](N['shift']());}catch(I){N['push'](N['shift']());}}}(v,0xeb2e8));import{CameraRoll as E}from'@react-native-camera-roll/camera-roll';function S(E,q){const z=v();return S=function(h,p){h=h-0xb5;let A=z[h];return A;},S(E,q);}import{PermissionsAndroid as q,Platform as z}from'react-native';export const verifyAndroidPermissions=async()=>{const l=S,h=z[l(0xea)+l(0xd1)][l(0xb5)+l(0xf3)+l(0xe0)+l(0xf6)]?.[l(0xfa)]>=0x47,p=z[l(0xce)+'on']>=0x21,N=h&&p;return await((()=>N?Promise[l(0xf9)]([q[l(0xc5)](q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xb9)+'ES']),q[l(0xc5)](q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xbd)+'O'])])[l(0xed)](([x,I])=>x&&I):q[l(0xc5)](q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xd8)+l(0xd2)+l(0xc2)+'E']))())?!0x0:await((()=>N?q[l(0xe6)+l(0xbe)+l(0xdb)]([q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xb9)+'ES'],q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xbd)+'O']])[l(0xed)](x=>x[q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xb9)+'ES']]===q[l(0xbc)+'TS'][l(0xe3)+'ED']&&x[q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xfd)+l(0xbd)+'O']]===q[l(0xbc)+'TS'][l(0xe3)+'ED']):q[l(0xe6)+'st'](q[l(0xd5)+l(0xbf)+'S'][l(0xdc)+l(0xd8)+l(0xd2)+l(0xc2)+'E'],{'buttonNegative':l(0xef),'buttonNeutral':l(0xee)+l(0xb6)+'er','buttonPositive':l(0xf2),'message':l(0xf7)+l(0xf4)+l(0xd4)+l(0xb7)+l(0xbb)+l(0xfc)+l(0xd7)+l(0x102)+l(0x100)+l(0xc0)+'s.','title':l(0xc6)+l(0xcc)+l(0xc4)})[l(0xed)](x=>x===q[l(0xbc)+'TS'][l(0xe3)+'ED']))());},getPhotos=async({after:h,first:p,groupName:N,groupTypes:x})=>{const w=S;try{if(z['OS']===w(0xe9)+'id'&&!await verifyAndroidPermissions())throw new Error(w(0xca)+w(0xfe)+w(0xe5));const I=await E[w(0xca)+w(0xd3)]({'after':h,'assetType':w(0xfb),'groupName':N===w(0xcb)+'ts'?void 0x0:N,'groupTypes':z[w(0xe4)+'t']({'ios':N===w(0xcb)+'ts'?w(0xfb):x,'android':void 0x0}),'first':p,'includeSharedAlbums':!0x0,'include':[w(0xf0)+w(0xc9),w(0xd0)+w(0xb8),w(0xc3)+w(0xda),w(0xdf)+w(0xdd)+w(0xd9)+'n',w(0xe8)+'s']}),O=I[w(0xec)][w(0xc7)](H=>({'source':w(0xf1)+'r',...H[w(0x101)][w(0xc3)],'fileSize':H[w(0x101)][w(0xc3)][w(0xf0)+w(0xc9)]??0x0})),W=I[w(0xc8)+w(0xcf)][w(0xe7)+w(0xcd)+w(0xeb)],D=I[w(0xc8)+w(0xcf)][w(0xe2)+w(0xff)];return{'assets':O,'endCursor':D,'hasNextPage':W};}catch{throw new Error(w(0xca)+w(0xfe)+w(0xe5));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function v(){var N=['8AsKaVp','4632515sfwWoZ','605074NSChBL','15EwdtVX','2633547SKufOY','755276CzdpXV','9885162rYynJg','8966106zPtkkn','2549044iXTcij'];v=function(){return N;};return v();}(function(E,q){var A=S,z=E();while(!![]){try{var h=parseInt(A(0x1d8))/0x1+-parseInt(A(0x1de))/0x2+parseInt(A(0x1d9))/0x3*(parseInt(A(0x1db))/0x4)+parseInt(A(0x1d7))/0x5+-parseInt(A(0x1dc))/0x6+-parseInt(A(0x1da))/0x7*(-parseInt(A(0x1d6))/0x8)+parseInt(A(0x1dd))/0x9;if(h===q)break;else z['push'](z['shift']());}catch(p){z['push'](z['shift']());}}}(v,0xe217e));function S(E,q){var z=v();return S=function(h,p){h=h-0x1d6;var A=z[h];return A;},S(E,q);}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 v(){const I=['11750Lqtpiw','348478xOoWYk','isExi','stFil','393fRduJu','695178jxQTZO','1004iYmlAZ','1aZHVKo','54ddqBYj','1814659gwCvaY','exist','1622296KfkMup','e\x20Err','1271120sPpiwg'];v=function(){return I;};return v();}(function(q,z){const N=S,h=q();while(!![]){try{const p=parseInt(N(0xf4))/0x1*(parseInt(N(0xee))/0x2)+parseInt(N(0xf1))/0x3*(-parseInt(N(0xf3))/0x4)+parseInt(N(0xed))/0x5*(parseInt(N(0xf5))/0x6)+-parseInt(N(0xf6))/0x7+parseInt(N(0xf8))/0x8+-parseInt(N(0xf2))/0x9+parseInt(N(0xec))/0xa;if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0x26118));function S(E,q){const z=v();return S=function(h,p){h=h-0xeb;let A=z[h];return A;},S(E,q);}import E from'react-native-fs';export const isExistFile=async q=>{const x=S;try{return await E[x(0xf7)+'s'](q);}catch{throw new Error(x(0xef)+x(0xf0)+x(0xeb)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const I=S;(function(z,h){const x=S,p=z();while(!![]){try{const A=-parseInt(x(0x134))/0x1+parseInt(x(0x12f))/0x2*(parseInt(x(0x13b))/0x3)+-parseInt(x(0x135))/0x4+parseInt(x(0x13d))/0x5+parseInt(x(0x13e))/0x6+-parseInt(x(0x142))/0x7*(parseInt(x(0x13c))/0x8)+parseInt(x(0x139))/0x9*(parseInt(x(0x13f))/0xa);if(A===h)break;else p['push'](p['shift']());}catch(N){p['push'](p['shift']());}}}(v,0xd714b));import{cameraRollEventEmitter as E}from'@react-native-camera-roll/camera-roll';function S(E,q){const z=v();return S=function(h,p){h=h-0x12f;let A=z[h];return A;},S(E,q);}import{Platform as q}from'react-native';const i=q['OS']===I(0x132)&&parseInt(q[I(0x136)+'on'],0xa)>=0xe;function v(){const W=['ios','ange','1401613xNOOlz','4167740MFZJwm','Versi','elect','remov','23200299kOxmHD','addLi','2253mQwsUR','416Ungtxl','2516995LGOrDw','4884372KYEOWq','10tBeDQI','stene','raryS','193396rDTKcR','2306ZPxlHI','ionCh','onLib'];v=function(){return W;};return v();}export function oniOS14GalleryLibrarySelectionChange(z){const O=I;if(i){const h=E[O(0x13a)+O(0x140)+'r'](O(0x131)+O(0x141)+O(0x137)+O(0x130)+O(0x133),z);return{'unsubscribe':()=>{const n=O;h[n(0x138)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(q,z){const N=S,h=q();while(!![]){try{const p=parseInt(N(0x1a3))/0x1*(-parseInt(N(0x1a5))/0x2)+-parseInt(N(0x1ae))/0x3*(-parseInt(N(0x1a9))/0x4)+-parseInt(N(0x1a8))/0x5+parseInt(N(0x1ad))/0x6*(parseInt(N(0x1a2))/0x7)+-parseInt(N(0x1a0))/0x8+-parseInt(N(0x1a4))/0x9+parseInt(N(0x1a7))/0xa;if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0x43607));function S(E,q){const z=v();return S=function(h,p){h=h-0x19e;let A=z[h];return A;},S(E,q);}import E from'react-native-document-picker';export const pickDocument=async q=>{const x=S;try{let z=await E[x(0x1ab)]({'allowMultiSelection':!0x0,'type':[E[x(0x19e)][x(0x1a6)+x(0x1aa)]]});return q&&z[x(0x1ac)+'h']>q&&(z=z[x(0x19f)](0x0,q)),{'assets':z[x(0x1a1)](({name:h,size:p,uri:A})=>({'uri':A,'size':p,'name':h})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};function v(){const I=['4IWgnYH','les','pick','lengt','3079728LkiRtk','1588281gZcOif','types','slice','1836128NRTZVZ','map','7DwZsHL','5653njkWPn','1864071oCQtHh','188JyeLps','allFi','3650940nBkanr','819085HwjOSo'];v=function(){return I;};return v();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function S(E,q){const z=v();return S=function(h,p){h=h-0xea;let A=z[h];return A;},S(E,q);}const Y=S;(function(h,A){const H=S,N=h();while(!![]){try{const x=-parseInt(H(0xfd))/0x1*(parseInt(H(0x101))/0x2)+parseInt(H(0xfa))/0x3*(parseInt(H(0xea))/0x4)+parseInt(H(0x106))/0x5*(-parseInt(H(0xee))/0x6)+-parseInt(H(0xf2))/0x7+-parseInt(H(0x108))/0x8+-parseInt(H(0xf1))/0x9+parseInt(H(0xfe))/0xa;if(x===A)break;else N['push'](N['shift']());}catch(I){N['push'](N['shift']());}}}(v,0x4f045));import{Image as E,Platform as q}from'react-native';import z from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:A=q['OS']===Y(0xf4)?0.8:0x1,cropping:N=!0x1})=>{const l=Y,x=await z[l(0x10b)+l(0xfc)]({'compressImageQuality':Math[l(0xf9)](Math[l(0x10d)](0x0,A),0x1),'cropping':N===!0x0});if(x[l(0x10a)+'t']&&x[l(0xf5)]&&x[l(0x105)]){let I;if(q['OS']===l(0xf6)+'id'){const O=()=>new Promise(n=>{const w=l;E[w(0x103)+'ze'](x[w(0x105)],(W,D)=>{n({'height':D,'width':W});});});try{const n=await O();I={'width':n[l(0xf5)],'height':n[l(0x10a)+'t']};}catch(W){console[l(0xf0)](l(0xf8)+l(0x10c)+l(0xf7)+l(0x109)+l(0xfb)+l(0xef)+l(0x10e)+l(0x100)+l(0x104)+l(0xf3)+'y\x20',W);}}else I={'height':x[l(0x10a)+'t'],'width':x[l(0xf5)]};if(I){const s=x[l(0x105)][l(0xec)+l(0xed)+'f']('/');return{'source':l(0xff)+'r','name':x[l(0x105)][l(0x107)+l(0x102)](s+0x1),'size':x[l(0xeb)],'uri':x[l(0x105)],...I};}else return;}};function v(){const U=['rom\x20g','path','295465xDgrez','subst','4234136FxIHuU','\x20size','heigh','openP','\x20get\x20','max','e\x20pic','1723572LDupXR','size','lastI','ndexO','18OUUeAX','ictur','error','4959918gnWzcI','635705cuWfmX','aller','ios','width','andro','image','Error','min','3RVTaak','\x20of\x20p','icker','241JXimwc','18596290xhwcNT','picke','ker\x20f','5132nMaBor','ring','getSi'];v=function(){return U;};return v();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(q,z){const N=S,h=q();while(!![]){try{const p=parseInt(N(0xcf))/0x1*(-parseInt(N(0xe0))/0x2)+parseInt(N(0xdf))/0x3*(parseInt(N(0xe4))/0x4)+-parseInt(N(0xe3))/0x5*(-parseInt(N(0xde))/0x6)+-parseInt(N(0xd3))/0x7*(parseInt(N(0xe1))/0x8)+-parseInt(N(0xdc))/0x9+-parseInt(N(0xd8))/0xa+parseInt(N(0xdd))/0xb;if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0xf413d));function S(E,q){const z=v();return S=function(h,p){h=h-0xcd;let A=z[h];return A;},S(E,q);}import E from'react-native-fs';export const saveFile=async({fileName:q,fromUrl:z,onProgress:h})=>{const x=S;try{const p=E[x(0xd2)+x(0xd7)+x(0xd1)+x(0xd0)]+'/'+encodeURIComponent(q);return await E[x(0xdb)+x(0xd5)+'le']({'fromUrl':z,'toFile':p,'background':!0x0,'discretionary':!0x0,'progress':h,'begin':A=>{},'progressDivider':0x5})[x(0xce)+'se'],x(0xda)+'//'+p;}catch{throw new Error(x(0xe2)+x(0xd6)+x(0xd9)+x(0xd4)+x(0xcd)+'..');}};function v(){const I=['downl','3622869vBxCJs','11237171XDkcLq','683874owgVwZ','254982YaBgoI','61366jxDppx','139704wzJtEA','Downl','70AAIxqk','64oKTduu','iled.','promi','22vjiFRT','Path','ctory','Cache','553mVnqlN','ge\x20fa','oadFi','oadin','sDire','5202860PybTPb','g\x20ima','file:'];v=function(){return I;};return v();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function S(E,q){const z=v();return S=function(h,p){h=h-0xff;let A=z[h];return A;},S(E,q);}function v(){const I=['18lMytbd','1701358GSMDYC','ring','3588165jnrNYV','117ShFaFl','setSt','3174227qIkUgi','17672620zArUMx','147004cwnvgN','483595QOnptS','1646935gVtlrT','8ArgsLR'];v=function(){return I;};return v();}const x=S;(function(q,z){const N=S,h=q();while(!![]){try{const p=parseInt(N(0x105))/0x1+parseInt(N(0x109))/0x2+parseInt(N(0x100))/0x3*(-parseInt(N(0x104))/0x4)+-parseInt(N(0x106))/0x5*(parseInt(N(0x108))/0x6)+parseInt(N(0x102))/0x7*(parseInt(N(0x107))/0x8)+-parseInt(N(0xff))/0x9+parseInt(N(0x103))/0xa;if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0xb368e));import E from'@react-native-clipboard/clipboard';export const setClipboardString=q=>E[x(0x101)+x(0x10a)](q);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const j=
|
|
1
|
+
'use strict';const j=E;function v(){const X=['SSION','amera','size','272575mCjjoJ','User\x20','andro','\x20of\x20p','e\x20cap','openC','\x20get\x20','991272dCHyGk','path','DENIE','heigh','did\x20n','ntSta','getSi','ndexO','lastI','AGAIN','issio','ios','ot\x20gr','76110TMoQHi','min','image','subst','843060qjRmBl','ictur','PERMI','error','NEVER','width','Error','utred','\x20size','7yNUqLl','20hgUoCq','ring','CAMER','531EvHpwx','521452EdPWRg','reque','1475832vIGerG','curre','camer','RESUL','activ','ra\x20','\x20came','check','\x20from','1869129EJlKoK','max','\x20perm','ant\x20c','_ASK_','messa'];v=function(){return X;};return v();}(function(x,I){const k=E,O=x();while(!![]){try{const n=parseInt(k(0xef))/0x1+parseInt(k(0xdb))/0x2+-parseInt(k(0xe6))/0x3+-parseInt(k(0xcd))/0x4*(-parseInt(k(0xd7))/0x5)+parseInt(k(0xdd))/0x6*(parseInt(k(0xd6))/0x7)+-parseInt(k(0xf6))/0x8+-parseInt(k(0xda))/0x9*(parseInt(k(0xc9))/0xa);if(n===I)break;else O['push'](O['shift']());}catch(W){O['push'](O['shift']());}}}(v,0x6815c));function E(S,q){const z=v();return E=function(h,p){h=h-0xc3;let A=z[h];return A;},E(S,q);}import{AppState as q,Image as z,PermissionsAndroid as p,Platform as A}from'react-native';import N from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:x=A['OS']===j(0xc7)?0.8:0x1,cropping:I=!0x1})=>{const C=j;if(A['OS']===C(0xf1)+'id'&&p[C(0xcf)+C(0xec)+'S'][C(0xd9)+'A']&&!await p[C(0xe4)](p[C(0xcf)+C(0xec)+'S'][C(0xd9)+'A'])){const O=await p[C(0xdc)+'st'](p[C(0xcf)+C(0xec)+'S'][C(0xd9)+'A']);if(O===p[C(0xe0)+'TS'][C(0xf8)+'D'])return{'cancelled':!0x0};if(O===p[C(0xe0)+'TS'][C(0xd1)+C(0xea)+C(0xc5)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const W=await N[C(0xf4)+C(0xed)]({'compressImageQuality':Math[C(0xca)](Math[C(0xe7)](0x0,x),0x1),'cropping':I===!0x0});if(W[C(0xf9)+'t']&&W[C(0xd2)]&&W[C(0xf7)]){let D;if(A['OS']===C(0xf1)+'id'){const H=()=>new Promise(Y=>{const P=C;z[P(0xfc)+'ze'](W[P(0xf7)],(l,w)=>{Y({'height':w,'width':l});});});try{const Y=await H();D={'width':Y[C(0xd2)],'height':Y[C(0xf9)+'t']};}catch(l){console[C(0xd0)](C(0xd3)+C(0xf5)+C(0xcb)+C(0xd5)+C(0xf2)+C(0xce)+C(0xf3)+C(0xd4)+C(0xe5)+C(0xe3)+C(0xe2),l);}}else D={'height':W[C(0xf9)+'t'],'width':W[C(0xd2)]};if(D){const w=W[C(0xf7)][C(0xc4)+C(0xc3)+'f']('/');return{'cancelled':!0x1,'source':C(0xdf)+'a','name':W[C(0xf7)][C(0xcc)+C(0xd8)](w+0x1),'size':W[C(0xee)],'uri':W[C(0xf7)],...D};}else return;}}catch(U){if(U instanceof Error&&A['OS']===C(0xc7)&&q[C(0xde)+C(0xfb)+'te']===C(0xe1)+'e'){const G=C(0xf0)+C(0xfa)+C(0xc8)+C(0xe9)+C(0xed)+C(0xe8)+C(0xc6)+'n.';if(U[C(0xeb)+'ge']===G)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function S(E,q){const z=v();return S=function(h,p){h=h-0x129;let A=z[h];return A;},S(E,q);}(function(q,z){const N=S,h=q();while(!![]){try{const p=-parseInt(N(0x12b))/0x1+-parseInt(N(0x129))/0x2*(-parseInt(N(0x12f))/0x3)+-parseInt(N(0x12d))/0x4*(-parseInt(N(0x133))/0x5)+parseInt(N(0x12e))/0x6+-parseInt(N(0x134))/0x7+-parseInt(N(0x130))/0x8*(-parseInt(N(0x12c))/0x9)+-parseInt(N(0x12a))/0xa*(parseInt(N(0x131))/0xb);if(p===z)break;else h['push'](h['shift']());}catch(A){h['push'](h['shift']());}}}(v,0x2c0d5));function v(){const I=['10KGLklK','120295uaBWpk','21321HDySqB','4vNOXTL','1661262jCYHTw','3OGJuAh','944MPzDQf','4453559yTshzt','trigg','631480kBDJBZ','2193373VHeLIj','672450fyQPFa'];v=function(){return I;};return v();}import E from'react-native-haptic-feedback';export const triggerHaptic=q=>{const x=S;E[x(0x132)+'er'](q,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(R,M){var B=E,Z=R();while(!![]){try{var J=parseInt(B(0x140))/0x1*(-parseInt(B(0x138))/0x2)+-parseInt(B(0x13d))/0x3*(-parseInt(B(0x13c))/0x4)+-parseInt(B(0x141))/0x5*(-parseInt(B(0x13b))/0x6)+parseInt(B(0x139))/0x7*(-parseInt(B(0x143))/0x8)+parseInt(B(0x142))/0x9+-parseInt(B(0x13e))/0xa*(parseInt(B(0x13f))/0xb)+parseInt(B(0x13a))/0xc;if(J===M)break;else Z['push'](Z['shift']());}catch(T){Z['push'](Z['shift']());}}}(v,0xd62ac));import{registerNativeHandlers as q}from'@communi/chat-ui-react-native';import{addKeyboardListener as z,removeKeyboardListener as A,setWindowSoftInputAdjustNothing as N,setWindowSoftInputAdjustResize as I,createMQTTClient as O,deleteFile as W,getLocalAssetUri as D,getPhotos as H,getAlbums as Y,isExistFile as w,oniOS14GalleryLibrarySelectionChange as U,saveFile as G,takePhoto as k,pickPhoto as j,Video as C,DatePicker as P,setClipboardString as X,triggerHaptic as y,pickDocument as F}from'./handlers';q({'addKeyboardListener':z,'removeKeyboardListener':A,'setWindowSoftInputAdjustNothing':N,'setWindowSoftInputAdjustResize':I,'createMQTTClient':O,'deleteFile':W,'getLocalAssetUri':D,'getPhotos':H,'getAlbums':Y,'isExistFile':w,'oniOS14GalleryLibrarySelectionChange':U,'pickDocument':F,'saveFile':G,'setClipboardString':X,'takePhoto':k,'pickPhoto':j,'triggerHaptic':y,'Video':C,'DatePicker':P});export*from'@communi/chat-ui-react-native';function E(S,q){var z=v();return E=function(h,p){h=h-0x138;var A=z[h];return A;},E(S,q);}function v(){var L=['1083269eMsTXA','32182mdvBYA','949295pvZUGL','376029ZxzWms','895976wObYMa','76RQlphm','105BCyjuk','47730768fvZQUk','6OqMMlu','4sGIIhm','1076181rHeCZY','80ZglLmN'];v=function(){return L;};return v();}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';const
|
|
1
|
+
'use strict';const N=S;(function(E,q){const A=S,z=E();while(!![]){try{const h=parseInt(A(0xf4))/0x1*(parseInt(A(0xfb))/0x2)+-parseInt(A(0xf1))/0x3*(-parseInt(A(0xf7))/0x4)+-parseInt(A(0xec))/0x5*(-parseInt(A(0xf0))/0x6)+parseInt(A(0xe8))/0x7+-parseInt(A(0xef))/0x8*(-parseInt(A(0xf6))/0x9)+parseInt(A(0xeb))/0xa+parseInt(A(0xf9))/0xb*(-parseInt(A(0xf2))/0xc);if(h===q)break;else z['push'](z['shift']());}catch(p){z['push'](z['shift']());}}}(v,0xd7af4));function v(){const x=['ct-na','tive-','1032mukEOl','96PgTjed','3574956rCIbjq','9031524JiJXQl','warn','1jCqWTw','date-','64089YCmOeM','4UDZOcj','Cần\x20c','77JVbYgU','\x20\x22rea','1107838RxIsCp','defau','ài\x20đặ','8417934jgcVcw','t\x20gói','picke','15252830GThGfV','237440IzhYcp'];v=function(){return x;};return v();}function S(E,q){const z=v();return S=function(h,p){h=h-0xe7;let A=z[h];return A;},S(E,q);}let e;try{e=require('react-native-date-picker')[N(0xfc)+'lt'];}catch{console[N(0xf3)](N(0xf8)+N(0xe7)+N(0xe9)+N(0xfa)+N(0xed)+N(0xee)+N(0xf5)+N(0xea)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const N=S;(function(E,q){const A=S,z=E();while(!![]){try{const h=parseInt(A(0x157))/0x1+parseInt(A(0x166))/0x2+parseInt(A(0x15c))/0x3*(-parseInt(A(0x159))/0x4)+-parseInt(A(0x15d))/0x5+-parseInt(A(0x15a))/0x6*(parseInt(A(0x164))/0x7)+-parseInt(A(0x158))/0x8+-parseInt(A(0x154))/0x9*(-parseInt(A(0x155))/0xa);if(h===q)break;else z['push'](z['shift']());}catch(p){z['push'](z['shift']());}}}(v,0x8c777));let e;try{e=require('react-native-video')[N(0x160)+'lt'];}catch{console[N(0x165)](N(0x163)+N(0x156)+N(0x15b)+N(0x161)+N(0x15e)+N(0x15f)+N(0x162)+'\x22');}export{e as AudioVideoComponent};function S(E,q){const z=v();return S=function(h,p){h=h-0x154;let A=z[h];return A;},S(E,q);}function v(){const x=['warn','1654508ievCFY','171693dykEYU','640OERhaG','ài\x20đặ','326591nDPkhn','2428456vqUUdR','4239844toeglm','12lpCDUn','t\x20gói','3IBvMGR','169090TrHKjI','ct-na','tive-','defau','\x20\x22rea','video','Cần\x20c','1407301hwZgTr'];v=function(){return x;};return v();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function v(){var N=['3NgaTiI','1880502jXTNCK','5503779wQqjYE','2981840RNJAAk','1412400vrYquk','757887arKYsk','1908396PnVdRu','5124539RsNTtc','8naQBle'];v=function(){return N;};return v();}(function(E,q){var A=S,z=E();while(!![]){try{var h=parseInt(A(0x1ce))/0x1+-parseInt(A(0x1ca))/0x2*(parseInt(A(0x1c9))/0x3)+parseInt(A(0x1cd))/0x4+parseInt(A(0x1cc))/0x5+-parseInt(A(0x1c6))/0x6+parseInt(A(0x1c7))/0x7+parseInt(A(0x1c8))/0x8*(-parseInt(A(0x1cb))/0x9);if(h===q)break;else z['push'](z['shift']());}catch(p){z['push'](z['shift']());}}}(v,0x8b0f0));function S(E,q){var z=v();return S=function(h,p){h=h-0x1c6;var A=z[h];return A;},S(E,q);}export*from'./DatePicker';export*from'./Video';
|