@communi/chat-react-native 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/handlers/DatePicker.js +1 -1
- package/src/handlers/Keyboard.js +1 -1
- package/src/handlers/MQTT.js +1 -1
- package/src/handlers/Video.js +1 -1
- package/src/handlers/deleteFile.js +1 -1
- package/src/handlers/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.js +1 -1
- package/src/handlers/index.js +1 -1
- package/src/handlers/isExistFile.js +1 -1
- package/src/handlers/oniOS14GalleryLibrarySelectionChange.js +1 -1
- package/src/handlers/pickDocument.js +1 -1
- package/src/handlers/pickPhoto.js +1 -1
- package/src/handlers/saveFile.js +1 -1
- package/src/handlers/setClipboardString.js +1 -1
- package/src/handlers/takePhoto.js +1 -1
- package/src/handlers/triggerHaptic.js +1 -1
- package/src/index.js +1 -1
- package/src/optionalDependencies/DatePicker.js +1 -1
- package/src/optionalDependencies/Video.js +1 -1
- package/src/optionalDependencies/index.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(U,N){var R=F,C=U();while(!![]){try{var g=-parseInt(R(0x128))/0x1*(-parseInt(R(0x127))/0x2)+-parseInt(R(0x130))/0x3*(-parseInt(R(0x12b))/0x4)+-parseInt(R(0x12e))/0x5*(-parseInt(R(0x129))/0x6)+-parseInt(R(0x12c))/0x7+parseInt(R(0x12d))/0x8+-parseInt(R(0x12a))/0x9+-parseInt(R(0x12f))/0xa;if(g===N)break;else C['push'](C['shift']());}catch(k){C['push'](C['shift']());}}}(G,0x1a4e4));function G(){var t=['117927AvVqRH','60iMQDgT','1137458GQQjXC','60584NmJJuG','731585yCWTqS','1430690yPkmHg','14397UwZaCs','12938YJVztl','31LgWWDb','6NsaTyf'];G=function(){return t;};return G();}function F(U,N){var C=G();return F=function(g,k){g=g-0x127;var R=C[g];return R;},F(U,N);}export*from'./src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@communi/chat-api-client-typescript": "^2.0.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.0.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.0.3",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.0.4",
|
|
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 D=
|
|
1
|
+
'use strict';const D=F;function G(){const h=['2664305SxsIQW','4530816ejCBxS','9RilQLh','eElem','8MFhwCM','creat','2249676QnmCsM','309199DuKsnZ','1002PoBgll','39530230vzkwlA','58422ZLMCLf','ent','6069380dgMuUY'];G=function(){return h;};return G();}(function(C,g){const l=F,k=C();while(!![]){try{const R=-parseInt(l(0x1c9))/0x1*(-parseInt(l(0x1c6))/0x2)+parseInt(l(0x1c8))/0x3+parseInt(l(0x1c1))/0x4+parseInt(l(0x1c2))/0x5+-parseInt(l(0x1ca))/0x6*(-parseInt(l(0x1bf))/0x7)+-parseInt(l(0x1c3))/0x8+-parseInt(l(0x1c4))/0x9*(parseInt(l(0x1cb))/0xa);if(R===g)break;else k['push'](k['shift']());}catch(t){k['push'](k['shift']());}}}(G,0xde7c5));function F(U,N){const C=G();return F=function(g,k){g=g-0x1bf;let R=C[g];return R;},F(U,N);}import U from'react';import{DatePickerComponent as N}from'../optionalDependencies/DatePicker';export const DatePicker=N?({modal:C,open:g,date:k,minimumDate:R,onConfirm:V,onCancel:M})=>U[D(0x1c7)+D(0x1c5)+D(0x1c0)](N,{'modal':C,'open':g,'date':k,'minimumDate':R,'onConfirm':V,'onCancel':M}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const M=F;function F(U,N){const C=G();return F=function(g,k){g=g-0x15b;let R=C[g];return R;},F(U,N);}(function(C,g){const V=F,k=C();while(!![]){try{const R=parseInt(V(0x174))/0x1*(-parseInt(V(0x16c))/0x2)+-parseInt(V(0x167))/0x3*(parseInt(V(0x177))/0x4)+parseInt(V(0x16b))/0x5+parseInt(V(0x169))/0x6*(parseInt(V(0x15f))/0x7)+parseInt(V(0x175))/0x8+-parseInt(V(0x163))/0x9+-parseInt(V(0x176))/0xa;if(R===g)break;else k['push'](k['shift']());}catch(a){k['push'](k['shift']());}}}(G,0xa1c30));function G(){const l=['SIZE','putMo','setWi','eKeyb','SOFT_','THING','ST_RE','5124fDOBMU','6394544rMfbDR','5615860IkOWyB','1140lmQoUW','INPUT','yboar','addKe','ndowS','28yuQpoA','ST_NO','isten','ener','5364369EtJNmm','dList','oftIn','_ADJU','2454adBPsr','remov','749502Appqhk','oardL','4104795uWBxxR','26rebWbw'];G=function(){return l;};return G();}import{PSKeyboard as U,SoftInputMode as N}from'@communi/keyboard-area-react-native';export const addKeyboardListener=C=>U[M(0x15d)+M(0x15c)+M(0x164)+M(0x162)](C),removeKeyboardListener=C=>U[M(0x168)+M(0x170)+M(0x16a)+M(0x161)+'er'](C),setWindowSoftInputAdjustNothing=()=>U[M(0x16f)+M(0x15e)+M(0x165)+M(0x16e)+'de'](N[M(0x171)+M(0x15b)+M(0x166)+M(0x160)+M(0x172)]),setWindowSoftInputAdjustResize=()=>U[M(0x16f)+M(0x15e)+M(0x165)+M(0x16e)+'de'](N[M(0x171)+M(0x15b)+M(0x166)+M(0x173)+M(0x16d)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function F(U,N){const C=G();return F=function(g,k){g=g-0x17c;let R=C[g];return R;},F(U,N);}const a=F;(function(N,C){const t=F,g=N();while(!![]){try{const k=parseInt(t(0x17d))/0x1+-parseInt(t(0x183))/0x2*(-parseInt(t(0x17e))/0x3)+parseInt(t(0x184))/0x4+parseInt(t(0x180))/0x5+parseInt(t(0x182))/0x6*(parseInt(t(0x186))/0x7)+parseInt(t(0x181))/0x8+-parseInt(t(0x17c))/0x9;if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0x4161f));function G(){const V=['39CJeHth','stanc','469890ehXmNg','1272232LxFcDW','6NPHCCB','44054NBVQdK','1499192lqefCP','getIn','1898603UdoOHT','9731682RHKVEe','163720utRGXr'];G=function(){return V;};return G();}import{MQTTClient as U}from'@communi/mqtt-client-react-native';export const createMQTTClient=async N=>U[a(0x185)+a(0x17f)+'e'](N);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const Q=F;(function(C,g){const B=F,k=C();while(!![]){try{const R=parseInt(B(0x12b))/0x1*(-parseInt(B(0x126))/0x2)+parseInt(B(0x121))/0x3+parseInt(B(0x12e))/0x4+parseInt(B(0x129))/0x5*(parseInt(B(0x123))/0x6)+parseInt(B(0x12d))/0x7+-parseInt(B(0x12c))/0x8*(parseInt(B(0x120))/0x9)+-parseInt(B(0x122))/0xa;if(R===g)break;else k['push'](k['shift']());}catch(t){k['push'](k['shift']());}}}(G,0x70553));import U from'react';import{AudioVideoComponent as N}from'../optionalDependencies/Video';export const Video=N?({onBuffer:C,onEnd:g,onLoad:k,onProgress:R,paused:a,repeat:V,resizeMode:M,style:D,uri:h,videoRef:L})=>U[Q(0x124)+Q(0x128)+Q(0x127)](N,{'ignoreSilentSwitch':Q(0x12a)+'e','onBuffer':C,'onEnd':g,'onError':z=>{const i=Q;console[i(0x125)](z);},'onLoad':k,'onProgress':R,'paused':a,'ref':L,'repeat':V,'resizeMode':M,'source':{'uri':h},'style':D}):null;function F(U,N){const C=G();return F=function(g,k){g=g-0x120;let R=C[g];return R;},F(U,N);}function G(){const e=['eElem','14015VSrCNB','ignor','409qOrWpq','5336VDidRa','3661049afipXz','710156eOXvYE','9756JUObDs','2446245TEvorL','4447140AhAsfR','426pqFzYJ','creat','error','426fmKbDL','ent'];G=function(){return e;};return G();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function F(U,N){const C=G();return F=function(g,k){g=g-0x79;let R=C[g];return R;},F(U,N);}(function(N,C){const a=F,g=N();while(!![]){try{const k=parseInt(a(0x7d))/0x1*(-parseInt(a(0x80))/0x2)+parseInt(a(0x7e))/0x3*(parseInt(a(0x88))/0x4)+-parseInt(a(0x81))/0x5+parseInt(a(0x7a))/0x6+parseInt(a(0x7b))/0x7*(-parseInt(a(0x85))/0x8)+parseInt(a(0x7f))/0x9+-parseInt(a(0x89))/0xa*(-parseInt(a(0x84))/0xb);if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0xa9f6c));function G(){const M=['6498925fdGqsr','delet','ion\x20f','33nEpsLj','8jKhqfM','File\x20','ailed','1848jESuUi','5592690pPTQcq','unlin','...','5665968LIUzzI','7195895HbDlxZ','log','1jqdiFZ','8067OgwEpB','4898844RXEVei','2769654DZhFlJ'];G=function(){return M;};return G();}import U from'react-native-fs';export const deleteFile=async({uri:N})=>{const V=F;try{return await U[V(0x8a)+'k'](N),!0x0;}catch(C){return console[V(0x7c)](V(0x86)+V(0x82)+V(0x83)+V(0x87)+V(0x79),C),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function G(){const V=['9795064UTwKsb','789538KdmKiv','3843910ivfcyH','calAs','getLo','1831896vVapOd','i\x20Err','2456118tYYyIt','setUr','save','642255yvxuRJ','7IxRfbD','1127324pfjZky'];G=function(){return V;};return G();}(function(N,C){const t=F,g=N();while(!![]){try{const k=-parseInt(t(0x176))/0x1+parseInt(t(0x174))/0x2+parseInt(t(0x172))/0x3+parseInt(t(0x17a))/0x4+parseInt(t(0x177))/0x5+parseInt(t(0x17c))/0x6+-parseInt(t(0x173))/0x7*(parseInt(t(0x175))/0x8);if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0x61a3f));function F(U,N){const C=G();return F=function(g,k){g=g-0x172;let R=C[g];return R;},F(U,N);}import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async N=>{const a=F;try{return await U[a(0x17e)](N);}catch{throw new Error(a(0x179)+a(0x178)+a(0x17d)+a(0x17b)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(g,k){const D=F,R=g();while(!![]){try{const t=parseInt(D(0x72))/0x1+-parseInt(D(0x6c))/0x2+-parseInt(D(0x6f))/0x3+-parseInt(D(0x71))/0x4*(-parseInt(D(0x6e))/0x5)+-parseInt(D(0x9b))/0x6+-parseInt(D(0xa1))/0x7*(-parseInt(D(0x76))/0x8)+parseInt(D(0xab))/0x9;if(t===k)break;else R['push'](R['shift']());}catch(V){R['push'](R['shift']());}}}(G,0x513a7));import{CameraRoll as U}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as N,Platform as C}from'react-native';function F(U,N){const C=G();return F=function(g,k){g=g-0x69;let R=C[g];return R;},F(U,N);}const A=async()=>{const h=F,g=C[h(0x77)+h(0xb4)][h(0x89)+h(0x7c)+h(0x92)+h(0x8f)]?.[h(0x86)]>=0x47,k=C[h(0xb1)+'on']>=0x21,R=g&&k;return await((()=>R?Promise[h(0x84)]([N[h(0x6b)](N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x8e)+'ES']),N[h(0x6b)](N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x96)+'O'])])[h(0x7d)](([t,V])=>t&&V):N[h(0x6b)](N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x73)+h(0x79)+h(0xa7)+'E']))())?!0x0:await((()=>R?N[h(0x83)+h(0x7a)+h(0x7f)]([N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x8e)+'ES'],N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x96)+'O']])[h(0x7d)](V=>V[N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x8e)+'ES']]===N[h(0x6a)+'TS'][h(0xa3)+'ED']&&V[N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x91)+h(0x96)+'O']]===N[h(0x6a)+'TS'][h(0xa3)+'ED']):N[h(0x83)+'st'](N[h(0xa5)+h(0x7b)+'S'][h(0x95)+h(0x73)+h(0x79)+h(0xa7)+'E'],{'buttonNegative':h(0xa2),'buttonNeutral':h(0xa8)+h(0x98)+'er','buttonPositive':h(0x94),'message':h(0x93)+h(0x9f)+h(0x75)+h(0xb5)+h(0x9d)+h(0x8a)+h(0x8b)+h(0xac)+h(0x69)+h(0xaa)+'s.','title':h(0x87)+h(0x7e)+h(0x80)})[h(0x7d)](V=>V===N[h(0x6a)+'TS'][h(0xa3)+'ED']))());};function G(){const n=['picke','s\x20are','8hYafMa','const','ize','NAL_S','stMul','SSION','Nativ','then','s\x20Acc','tiple','ess','All','map','reque','all','edges','minor','Photo','info','react','to\x20ac','cess\x20','page_','image','_IMAG','ion','andro','MEDIA','eVers','Permi','Allow','READ_','_VIDE','bleDu','e\x20Lat','Error','end_c','3695202pceKET','getPh','ired\x20','has_n','ssion','ratio','1394708SEkoSV','Deny','GRANT','ame','PERMI','otos\x20','TORAG','Ask\x20M','Size','photo','10213443JcSyFU','and\x20s','playa','ext_p','age','filen','Versi','node','otos','ants','\x20requ','hare\x20','RESUL','check','996412LQPFcH','fileS','154695dWOIAK','1208823OcTsTW','ursor','12nPksTP','422837lXipiB','EXTER'];G=function(){return n;};return G();}export const getPhotos=async({after:g,first:k})=>{const L=F;try{if(C['OS']===L(0x90)+'id'&&!await A())throw new Error(L(0x9c)+L(0xa6)+L(0x99));const R=await U[L(0x9c)+L(0xb3)]({'after':g,'assetType':L(0x81),'first':k,'include':[L(0x6d)+L(0x78),L(0xb0)+L(0xa4),L(0x8d)+L(0xa9),L(0xad)+L(0x97)+L(0xa0)+'n']}),t=R[L(0x85)][L(0x82)](l=>({'source':L(0x74)+'r',...l[L(0xb2)][L(0x8d)],'fileSize':l[L(0xb2)][L(0x8d)][L(0x6d)+L(0x78)]??0x0})),V=R[L(0x8c)+L(0x88)][L(0x9e)+L(0xae)+L(0xaf)],M=R[L(0x8c)+L(0x88)][L(0x9a)+L(0x70)];return{'assets':t,'endCursor':M,'hasNextPage':V};}catch{throw new Error(L(0x9c)+L(0xa6)+L(0x99));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(U,N){var R=F,C=U();while(!![]){try{var g=-parseInt(R(0x121))/0x1*(-parseInt(R(0x128))/0x2)+parseInt(R(0x122))/0x3+-parseInt(R(0x125))/0x4+-parseInt(R(0x126))/0x5*(-parseInt(R(0x11f))/0x6)+-parseInt(R(0x123))/0x7*(-parseInt(R(0x127))/0x8)+parseInt(R(0x120))/0x9+-parseInt(R(0x124))/0xa;if(g===N)break;else C['push'](C['shift']());}catch(k){C['push'](C['shift']());}}}(G,0xf11b3));function F(U,N){var C=G();return F=function(g,k){g=g-0x11f;var R=C[g];return R;},F(U,N);}export*from'./deleteFile';function G(){var t=['262576YOYzfA','6UFukBL','1074jhtHst','452781kWmsTS','654913atKdjc','3828gHeCvE','14yiePVk','13603350DloQYN','4374268lrBFlN','37975JsKksm'];G=function(){return t;};return G();}export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function G(){const V=['1431580QuvGyz','648wSNCTi','7759143igzXuv','435881mQgmoZ','isExi','34181UDngiG','stFil','2309105RiZlfW','132JTLxoI','1158LHpnMs','e\x20Err','3753240kdoGnY','exist'];G=function(){return V;};return G();}(function(N,C){const t=F,g=N();while(!![]){try{const k=-parseInt(t(0x12d))/0x1+parseInt(t(0x12a))/0x2+-parseInt(t(0x126))/0x3*(-parseInt(t(0x125))/0x4)+-parseInt(t(0x124))/0x5+-parseInt(t(0x128))/0x6+parseInt(t(0x122))/0x7*(parseInt(t(0x12b))/0x8)+parseInt(t(0x12c))/0x9;if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0x71058));import U from'react-native-fs';function F(U,N){const C=G();return F=function(g,k){g=g-0x122;let R=C[g];return R;},F(U,N);}export const isExistFile=async N=>{const a=F;try{return await U[a(0x129)+'s'](N);}catch{throw new Error(a(0x12e)+a(0x123)+a(0x127)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function F(U,N){const C=G();return F=function(g,k){g=g-0x97;let R=C[g];return R;},F(U,N);}const V=F;(function(C,g){const a=F,k=C();while(!![]){try{const R=-parseInt(a(0x9d))/0x1+-parseInt(a(0xa1))/0x2*(-parseInt(a(0xa5))/0x3)+parseInt(a(0xa0))/0x4*(-parseInt(a(0x9b))/0x5)+-parseInt(a(0x9a))/0x6+parseInt(a(0xa3))/0x7*(-parseInt(a(0xab))/0x8)+-parseInt(a(0x9e))/0x9+parseInt(a(0x97))/0xa*(parseInt(a(0xaa))/0xb);if(R===g)break;else k['push'](k['shift']());}catch(t){k['push'](k['shift']());}}}(G,0x5f087));function G(){const D=['278739tKdSGd','raryS','4qgRvCL','27476rieAHz','ionCh','5754AkITxJ','elect','141chBeSd','ange','stene','remov','onLib','14132635UQzVWj','1096MHmMMW','10Yujajy','Versi','addLi','3885246WGsUyA','2692310wytJvu','ios','211628zFvULL'];G=function(){return D;};return G();}import{cameraRollEventEmitter as U}from'@react-native-camera-roll/camera-roll';import{Platform as N}from'react-native';const i=N['OS']===V(0x9c)&&parseInt(N[V(0x98)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(C){const M=V;if(i){const g=U[M(0x99)+M(0xa7)+'r'](M(0xa9)+M(0x9f)+M(0xa4)+M(0xa2)+M(0xa6),C);return{'unsubscribe':()=>{const l=M;g[l(0xa8)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(N,C){const t=F,g=N();while(!![]){try{const k=-parseInt(t(0xe2))/0x1+-parseInt(t(0xe1))/0x2+parseInt(t(0xda))/0x3*(-parseInt(t(0xe6))/0x4)+parseInt(t(0xde))/0x5*(-parseInt(t(0xdf))/0x6)+parseInt(t(0xe0))/0x7+parseInt(t(0xd9))/0x8+-parseInt(t(0xe3))/0x9*(-parseInt(t(0xe5))/0xa);if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0xbe2aa));function F(U,N){const C=G();return F=function(g,k){g=g-0xd7;let R=C[g];return R;},F(U,N);}function G(){const V=['les','lengt','allFi','7082780AZWCWm','6PANtXC','6452908Fozxbc','1877708hSYFuV','1226554CvLebD','18SeKvBz','types','12556610JWZiBr','1035404SIFiGK','pick','slice','map','9492568twUMQf','3wdKigL'];G=function(){return V;};return G();}import U from'react-native-document-picker';export const pickDocument=async N=>{const a=F;try{let C=await U[a(0xe7)]({'allowMultiSelection':!0x0,'type':[U[a(0xe4)][a(0xdd)+a(0xdb)]]});return N&&C[a(0xdc)+'h']>N&&(C=C[a(0xd7)](0x0,N)),{'assets':C[a(0xd8)](({name:g,size:k,uri:R})=>({'uri':R,'size':k,'name':g})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const z=F;(function(g,k){const n=F,R=g();while(!![]){try{const t=-parseInt(n(0x1af))/0x1*(parseInt(n(0x1c4))/0x2)+-parseInt(n(0x1c8))/0x3+parseInt(n(0x1c6))/0x4*(parseInt(n(0x1aa))/0x5)+parseInt(n(0x1bb))/0x6*(parseInt(n(0x1b9))/0x7)+-parseInt(n(0x1b5))/0x8+parseInt(n(0x1ad))/0x9*(-parseInt(n(0x1bc))/0xa)+parseInt(n(0x1c0))/0xb;if(t===k)break;else R['push'](R['shift']());}catch(a){R['push'](R['shift']());}}}(G,0x5b2b3));import{Image as U,Platform as N}from'react-native';import C from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:g=N['OS']===z(0x1bd)?0.8:0x1,cropping:k=!0x1})=>{const B=z,R=await C[B(0x1ca)+B(0x1c3)]({'compressImageQuality':Math[B(0x1b1)](Math[B(0x1b8)](0x0,g),0x1),'cropping':k===!0x0});if(R[B(0x1b3)+'t']&&R[B(0x1be)]&&R[B(0x1cb)]){let V;if(N['OS']===B(0x1ae)+'id'){const M=()=>new Promise(l=>{const Q=B;U[Q(0x1a8)+'ze'](R[Q(0x1cb)],(D,L)=>{l({'height':L,'width':D});});});try{const l=await M();V={'width':l[B(0x1be)],'height':l[B(0x1b3)+'t']};}catch(D){console[B(0x1c5)](B(0x1b4)+B(0x1a6)+B(0x1b7)+B(0x1ac)+B(0x1b2)+B(0x1a7)+B(0x1c2)+B(0x1c7)+B(0x1a9)+B(0x1b0)+'y\x20',D);}}else V={'height':R[B(0x1b3)+'t'],'width':R[B(0x1be)]};if(V){const L=R[B(0x1cb)][B(0x1b6)+B(0x1ab)+'f']('/');return{'source':B(0x1bf)+'r','name':R[B(0x1cb)][B(0x1c1)+B(0x1c9)](L+0x1),'size':R[B(0x1ba)],'uri':R[B(0x1cb)],...V};}else return;}};function F(U,N){const C=G();return F=function(g,k){g=g-0x1a6;let R=C[g];return R;},F(U,N);}function G(){const i=['242370xGhjGa','10KgDnfF','ios','width','picke','11802769KKcjjQ','subst','e\x20pic','icker','706XOLTgl','error','6476mITZiF','ker\x20f','477459dNOOJH','ring','openP','path','\x20get\x20','ictur','getSi','rom\x20g','1810ZDSQYp','ndexO','\x20size','2691603InMGxs','andro','751eKPWDp','aller','min','\x20of\x20p','heigh','Error','5467936nxDekr','lastI','image','max','21CLKHCZ','size'];G=function(){return i;};return G();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(N,C){const t=F,g=N();while(!![]){try{const k=parseInt(t(0x136))/0x1*(parseInt(t(0x12f))/0x2)+-parseInt(t(0x135))/0x3*(parseInt(t(0x13c))/0x4)+parseInt(t(0x137))/0x5+-parseInt(t(0x144))/0x6*(parseInt(t(0x13e))/0x7)+-parseInt(t(0x139))/0x8+-parseInt(t(0x130))/0x9+-parseInt(t(0x132))/0xa*(-parseInt(t(0x142))/0xb);if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0x954a8));function F(U,N){const C=G();return F=function(g,k){g=g-0x12d;let R=C[g];return R;},F(U,N);}function G(){const V=['Downl','oadin','45LfOJDL','5NxUzdr','4403085YAVona','ge\x20fa','4686600bTSNNR','Path','Cache','302116vcrkvA','promi','320334ervKIJ','sDire','g\x20ima','downl','16579321RlHvCo','iled.','6xkxLCc','oadFi','ctory','365894uVQLEU','8338905uUXfrc','file:','10wqEckF'];G=function(){return V;};return G();}import U from'react-native-fs';export const saveFile=async({fileName:N,fromUrl:C,onProgress:g})=>{const a=F;try{const k=U[a(0x13b)+a(0x13f)+a(0x12e)+a(0x13a)]+'/'+encodeURIComponent(N);return await U[a(0x141)+a(0x12d)+'le']({'fromUrl':C,'toFile':k,'background':!0x0,'discretionary':!0x0,'progress':g,'begin':R=>{},'progressDivider':0x5})[a(0x13d)+'se'],a(0x131)+'//'+k;}catch{throw new Error(a(0x133)+a(0x134)+a(0x140)+a(0x138)+a(0x143)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const V=F;(function(N,C){const a=F,g=N();while(!![]){try{const k=parseInt(a(0x1e5))/0x1*(-parseInt(a(0x1ed))/0x2)+parseInt(a(0x1ee))/0x3*(-parseInt(a(0x1eb))/0x4)+parseInt(a(0x1e6))/0x5+parseInt(a(0x1e9))/0x6+-parseInt(a(0x1e3))/0x7*(parseInt(a(0x1e8))/0x8)+-parseInt(a(0x1e7))/0x9*(-parseInt(a(0x1ea))/0xa)+parseInt(a(0x1e4))/0xb*(-parseInt(a(0x1ef))/0xc);if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0x43f52));import U from'@react-native-clipboard/clipboard';function F(U,N){const C=G();return F=function(g,k){g=g-0x1e2;let R=C[g];return R;},F(U,N);}function G(){const M=['setSt','7ZtexSg','11IFRdNG','12849DccmFw','1899735ILwOFw','495QkFflI','2626072SWYNBv','1792854NInSBc','92690wHXOIm','36368SPUmYr','ring','34werCrr','51TojljL','2507292PbgJzj'];G=function(){return M;};return G();}export const setClipboardString=N=>U[V(0x1e2)+V(0x1ec)](N);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const v=F;(function(R,t){const s=F,V=R();while(!![]){try{const M=parseInt(s(0x7f))/0x1+-parseInt(s(0x92))/0x2+-parseInt(s(0x82))/0x3+-parseInt(s(0x8c))/0x4+parseInt(s(0x9e))/0x5+-parseInt(s(0xa8))/0x6*(-parseInt(s(0x9d))/0x7)+-parseInt(s(0x8d))/0x8;if(M===t)break;else V['push'](V['shift']());}catch(l){V['push'](V['shift']());}}}(G,0xa4837));import{AppState as U,Image as N,PermissionsAndroid as C,Platform as g}from'react-native';import k from'react-native-image-crop-picker';function F(U,N){const C=G();return F=function(g,k){g=g-0x7e;let R=C[g];return R;},F(U,N);}function G(){const X=['ot\x20gr','getSi','check','lastI','width','\x20of\x20p','heigh','1755845oJdyXp','1147490TBuCkV','path','ring','ndexO','\x20came','activ','amera','max','issio','_ASK_','30vpRgRU','utred','min','PERMI','RESUL','size','\x20perm','\x20size','image','ra\x20','e\x20cap','\x20from','User\x20','curre','reque','1289105bBKHff','NEVER','messa','2547597ABdIqh','Error','camer','\x20get\x20','error','subst','ictur','ant\x20c','ntSta','andro','417500AYakpC','3155216ylGFUQ','AGAIN','openC','SSION','did\x20n','1501910oaditY','CAMER','DENIE','ios'];G=function(){return X;};return G();}export const takePhoto=async({compressImageQuality:R=g['OS']===v(0x95)?0.8:0x1,cropping:V=!0x1})=>{const H=v;if(g['OS']===H(0x8b)+'id'&&C[H(0xab)+H(0x90)+'S'][H(0x93)+'A']&&!await C[H(0x98)](C[H(0xab)+H(0x90)+'S'][H(0x93)+'A'])){const M=await C[H(0x7e)+'st'](C[H(0xab)+H(0x90)+'S'][H(0x93)+'A']);if(M===C[H(0xac)+'TS'][H(0x94)+'D'])return{'cancelled':!0x0};if(M===C[H(0xac)+'TS'][H(0x80)+H(0xa7)+H(0x8e)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const l=await k[H(0x8f)+H(0xa4)]({'compressImageQuality':Math[H(0xaa)](Math[H(0xa5)](0x0,R),0x1),'cropping':V===!0x0});if(l[H(0x9c)+'t']&&l[H(0x9a)]&&l[H(0x9f)]){let D;if(g['OS']===H(0x8b)+'id'){const L=()=>new Promise(z=>{const A=H;N[A(0x97)+'ze'](l[A(0x9f)],(B,Q)=>{z({'height':Q,'width':B});});});try{const z=await L();D={'width':z[H(0x9a)],'height':z[H(0x9c)+'t']};}catch(B){console[H(0x86)](H(0x83)+H(0x85)+H(0xb0)+H(0xaf)+H(0x9b)+H(0x88)+H(0xb2)+H(0xa9)+H(0xb3)+H(0xa2)+H(0xb1),B);}}else D={'height':l[H(0x9c)+'t'],'width':l[H(0x9a)]};if(D){const Q=l[H(0x9f)][H(0x99)+H(0xa1)+'f']('/');return{'cancelled':!0x1,'source':H(0x84)+'a','name':l[H(0x9f)][H(0x87)+H(0xa0)](Q+0x1),'size':l[H(0xad)],'uri':l[H(0x9f)],...D};}else return;}}catch(Y){if(Y instanceof Error&&g['OS']===H(0x95)&&U[H(0xb5)+H(0x8a)+'te']===H(0xa3)+'e'){const O=H(0xb4)+H(0x91)+H(0x96)+H(0x89)+H(0xa4)+H(0xae)+H(0xa6)+'n.';if(Y[H(0x81)+'ge']===O)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function F(U,N){const C=G();return F=function(g,k){g=g-0x16b;let R=C[g];return R;},F(U,N);}function G(){const M=['2418XCtBrl','2666608rEpuzr','2347863OwWnGw','trigg','19775ALxCex','883282SuMZtf','38303901qPieZy','2138708XDRTDp','8291962OclFab','3WhXZNq'];G=function(){return M;};return G();}(function(N,C){const a=F,g=N();while(!![]){try{const k=-parseInt(a(0x172))/0x1*(-parseInt(a(0x16e))/0x2)+parseInt(a(0x16b))/0x3+parseInt(a(0x170))/0x4+-parseInt(a(0x16d))/0x5*(-parseInt(a(0x173))/0x6)+parseInt(a(0x171))/0x7+-parseInt(a(0x174))/0x8+-parseInt(a(0x16f))/0x9;if(k===C)break;else g['push'](g['shift']());}catch(R){g['push'](g['shift']());}}}(G,0xcaf69));import U from'react-native-haptic-feedback';export const triggerHaptic=N=>{const V=F;U[V(0x16c)+'er'](N,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(W,b){var T=F,P=W();while(!![]){try{var w=-parseInt(T(0xea))/0x1+parseInt(T(0xeb))/0x2*(-parseInt(T(0xe3))/0x3)+-parseInt(T(0xe7))/0x4+parseInt(T(0xec))/0x5*(-parseInt(T(0xe9))/0x6)+-parseInt(T(0xe5))/0x7*(-parseInt(T(0xe6))/0x8)+-parseInt(T(0xe8))/0x9+parseInt(T(0xe4))/0xa;if(w===b)break;else P['push'](P['shift']());}catch(y){P['push'](P['shift']());}}}(G,0x75f3c));import{registerNativeHandlers as U}from'@communi/chat-ui-react-native';import{addKeyboardListener as N,removeKeyboardListener as C,setWindowSoftInputAdjustNothing as k,setWindowSoftInputAdjustResize as R,createMQTTClient as V,deleteFile as M,getLocalAssetUri as D,getPhotos as L,isExistFile as z,oniOS14GalleryLibrarySelectionChange as B,saveFile as Q,takePhoto as Y,pickPhoto as O,Video as v,DatePicker as H,setClipboardString as A,triggerHaptic as X,pickDocument as E}from'./handlers';U({'addKeyboardListener':N,'removeKeyboardListener':C,'setWindowSoftInputAdjustNothing':k,'setWindowSoftInputAdjustResize':R,'createMQTTClient':V,'deleteFile':M,'getLocalAssetUri':D,'getPhotos':L,'isExistFile':z,'oniOS14GalleryLibrarySelectionChange':B,'pickDocument':E,'saveFile':Q,'setClipboardString':A,'takePhoto':Y,'pickPhoto':O,'triggerHaptic':X,'Video':v,'DatePicker':H});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';function F(U,N){var C=G();return F=function(g,k){g=g-0xe3;var R=C[g];return R;},F(U,N);}function G(){var q=['542008jXqPqM','8075889aRTBvG','870402SHhYSR','564695FoFmTC','4DTobTe','5XbPeAJ','1411497lWiAOh','24768450sBpalD','32410tiwdHu','1192CLlWGk'];G=function(){return q;};return G();}export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const t=F;(function(U,N){const R=F,C=U();while(!![]){try{const g=-parseInt(R(0x169))/0x1*(-parseInt(R(0x161))/0x2)+-parseInt(R(0x15a))/0x3*(-parseInt(R(0x159))/0x4)+-parseInt(R(0x16b))/0x5*(parseInt(R(0x15e))/0x6)+parseInt(R(0x16a))/0x7*(-parseInt(R(0x162))/0x8)+parseInt(R(0x165))/0x9+-parseInt(R(0x164))/0xa+-parseInt(R(0x166))/0xb;if(g===N)break;else C['push'](C['shift']());}catch(k){C['push'](C['shift']());}}}(G,0x3e1f0));function F(U,N){const C=G();return F=function(g,k){g=g-0x157;let R=C[g];return R;},F(U,N);}let e;try{e=require('react-native-date-picker')[t(0x167)+'lt'];}catch{console[t(0x158)](t(0x15b)+t(0x160)+t(0x168)+t(0x15c)+t(0x15f)+t(0x15d)+t(0x163)+t(0x157)+'r\x22');}export{e as DatePickerComponent};function G(){const a=['25FvBQOA','picke','warn','484508txBuZU','12UJxLiY','Cần\x20c','\x20\x22rea','tive-','152052IYIIFP','ct-na','ài\x20đặ','1414QBTuGN','2832HxAlzL','date-','3939800ShIAoF','4204494aLkees','5524332HgQxEI','defau','t\x20gói','712PYlQNr','3514rOvBBf'];G=function(){return a;};return G();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function F(U,N){const C=G();return F=function(g,k){g=g-0x8a;let R=C[g];return R;},F(U,N);}const t=F;(function(U,N){const R=F,C=U();while(!![]){try{const g=parseInt(R(0x90))/0x1+parseInt(R(0x9a))/0x2+parseInt(R(0x8b))/0x3+-parseInt(R(0x8c))/0x4+-parseInt(R(0x92))/0x5+parseInt(R(0x91))/0x6*(parseInt(R(0x99))/0x7)+parseInt(R(0x93))/0x8;if(g===N)break;else C['push'](C['shift']());}catch(k){C['push'](C['shift']());}}}(G,0x24b89));let e;try{e=require('react-native-video')[t(0x8f)+'lt'];}catch{console[t(0x95)](t(0x8a)+t(0x8d)+t(0x97)+t(0x96)+t(0x94)+t(0x8e)+t(0x98)+'\x22');}function G(){const a=['tive-','defau','122617iRjOAw','18naRAiM','581975hXgdEt','930808yDJhOC','ct-na','warn','\x20\x22rea','t\x20gói','video','159775tpcPKf','250390CNwTPz','Cần\x20c','145122OVrVbl','856832ZXqSZb','ài\x20đặ'];G=function(){return a;};return G();}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function F(U,N){var C=G();return F=function(g,k){g=g-0x6a;var R=C[g];return R;},F(U,N);}(function(U,N){var R=F,C=U();while(!![]){try{var g=parseInt(R(0x73))/0x1+-parseInt(R(0x71))/0x2*(parseInt(R(0x6d))/0x3)+parseInt(R(0x72))/0x4+-parseInt(R(0x6a))/0x5*(-parseInt(R(0x6c))/0x6)+parseInt(R(0x6e))/0x7*(parseInt(R(0x6b))/0x8)+-parseInt(R(0x74))/0x9*(-parseInt(R(0x6f))/0xa)+-parseInt(R(0x70))/0xb;if(g===N)break;else C['push'](C['shift']());}catch(k){C['push'](C['shift']());}}}(G,0xb5320));export*from'./DatePicker';export*from'./Video';function G(){var t=['166530zDyDRA','28827766PbDlUb','16372MQLbpL','5230848nIBOXz','1160311mEOaGb','351nGvHoQ','90pgwtFo','11202928WhlclZ','78882XcfFtm','510UcisIX','7DTNolE'];G=function(){return t;};return G();}
|