@communi/chat-react-native 2.0.1 → 2.0.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 +2 -2
- package/src/handlers/DatePicker.js +1 -1
- package/src/handlers/Keyboard.js +1 -1
- package/src/handlers/MQTT.js +1 -1
- package/src/handlers/Video.js +1 -1
- package/src/handlers/deleteFile.js +1 -1
- package/src/handlers/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.js +1 -1
- package/src/handlers/index.js +1 -1
- package/src/handlers/isExistFile.js +1 -1
- package/src/handlers/oniOS14GalleryLibrarySelectionChange.js +1 -1
- package/src/handlers/pickDocument.js +1 -1
- package/src/handlers/pickPhoto.js +1 -1
- package/src/handlers/saveFile.js +1 -1
- package/src/handlers/setClipboardString.js +1 -1
- package/src/handlers/takePhoto.js +1 -1
- package/src/handlers/triggerHaptic.js +1 -1
- package/src/index.js +1 -1
- package/src/optionalDependencies/DatePicker.js +1 -1
- package/src/optionalDependencies/Video.js +1 -1
- package/src/optionalDependencies/index.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(f,
|
|
1
|
+
'use strict';function k(w,a){var f=d();return k=function(M,H){M=M-0x10c;var j=f[M];return j;},k(w,a);}function d(){var p=['1001844jHtEMv','98beAykm','150iAZXsP','22080762VbaFgO','191432ZyEEPu','1060144jXgEMK','216081vOqLYw','5626020oLlXCN','16840syYVap'];d=function(){return p;};return d();}(function(w,a){var j=k,f=w();while(!![]){try{var M=-parseInt(j(0x10f))/0x1+parseInt(j(0x114))/0x2+-parseInt(j(0x10c))/0x3+-parseInt(j(0x10d))/0x4+parseInt(j(0x10e))/0x5*(-parseInt(j(0x111))/0x6)+parseInt(j(0x110))/0x7*(parseInt(j(0x113))/0x8)+parseInt(j(0x112))/0x9;if(M===a)break;else f['push'](f['shift']());}catch(H){f['push'](f['shift']());}}}(d,0xb8100));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.2",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@communi/chat-api-client-typescript": "^2.0.1",
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.0.
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.0.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 D=k;(function(M,H){const R=k,j=M();while(!![]){try{const p=parseInt(R(0x74))/0x1+-parseInt(R(0x6a))/0x2*(parseInt(R(0x73))/0x3)+-parseInt(R(0x69))/0x4+-parseInt(R(0x6f))/0x5*(-parseInt(R(0x6c))/0x6)+parseInt(R(0x71))/0x7+parseInt(R(0x67))/0x8*(-parseInt(R(0x70))/0x9)+parseInt(R(0x6e))/0xa*(-parseInt(R(0x6d))/0xb);if(p===H)break;else j['push'](j['shift']());}catch(v){j['push'](j['shift']());}}}(d,0xc8ac8));import w from'react';function d(){const r=['2076052NitrNj','2dytvOu','eElem','834IMsCIK','9168038uwDESm','10XUVrJM','30680EmjASZ','2520bHHJJn','7633542nNDbAu','creat','785079BcLxaC','679474WfjsEE','5336raGHOE','ent'];d=function(){return r;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x67;let j=f[M];return j;},k(w,a);}import{DatePickerComponent as f}from'../optionalDependencies/DatePicker';export const DatePicker=f?({modal:M,open:H,date:j,minimumDate:p,onConfirm:v,onCancel:u})=>w[D(0x72)+D(0x6b)+D(0x68)](f,{'modal':M,'open':H,'date':j,'minimumDate':p,'onConfirm':v,'onCancel':u}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const u=k;(function(f,M){const v=k,H=f();while(!![]){try{const j=-parseInt(v(0x11d))/0x1*(parseInt(v(0x119))/0x2)+parseInt(v(0x113))/0x3+parseInt(v(0x116))/0x4+parseInt(v(0x114))/0x5*(parseInt(v(0x10e))/0x6)+parseInt(v(0x10d))/0x7+-parseInt(v(0x109))/0x8*(-parseInt(v(0x11e))/0x9)+-parseInt(v(0x10c))/0xa*(parseInt(v(0x123))/0xb);if(j===M)break;else H['push'](H['shift']());}catch(p){H['push'](H['shift']());}}}(d,0x817ee));function d(){const R=['ST_RE','ST_NO','INPUT','154YnGtUx','oftIn','yboar','SOFT_','1265672gWmINi','eKeyb','oardL','1751190yTXEPq','6689620tINlQE','12bIvLkC','addKe','putMo','isten','ener','1689420gulnun','877820BiDeyU','THING','2788040Zpytqx','ndowS','remov','250602BBvrjo','setWi','_ADJU','SIZE','3pMuhfH','45cVkUJo','dList'];d=function(){return R;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x108;let j=f[M];return j;},k(w,a);}import{PSKeyboard as w,SoftInputMode as a}from'@communi/keyboard-area-react-native';export const addKeyboardListener=f=>w[u(0x10f)+u(0x125)+u(0x11f)+u(0x112)](f),removeKeyboardListener=f=>w[u(0x118)+u(0x10a)+u(0x10b)+u(0x111)+'er'](f),setWindowSoftInputAdjustNothing=()=>w[u(0x11a)+u(0x117)+u(0x124)+u(0x110)+'de'](a[u(0x108)+u(0x122)+u(0x11b)+u(0x121)+u(0x115)]),setWindowSoftInputAdjustResize=()=>w[u(0x11a)+u(0x117)+u(0x124)+u(0x110)+'de'](a[u(0x108)+u(0x122)+u(0x11b)+u(0x120)+u(0x11c)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const v=k;(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x12b))/0x1+parseInt(p(0x12a))/0x2+-parseInt(p(0x133))/0x3+-parseInt(p(0x134))/0x4*(-parseInt(p(0x135))/0x5)+parseInt(p(0x12d))/0x6*(parseInt(p(0x12c))/0x7)+-parseInt(p(0x132))/0x8+-parseInt(p(0x12e))/0x9*(-parseInt(p(0x131))/0xa);if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0xc5a37));import{MQTTClient as w}from'@communi/mqtt-client-react-native';function d(){const u=['4120851UFZWPB','1484ERZSmz','16635ZuFZZy','2430504elZotq','752087WzFANX','643727XscyUN','42ixCgmY','18mlDJYq','stanc','getIn','2275720swmjYt','4905672skDVvt'];d=function(){return u;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x12a;let j=f[M];return j;},k(w,a);}export const createMQTTClient=async a=>w[v(0x130)+v(0x12f)+'e'](a);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const k
|
|
1
|
+
'use strict';const P=k;(function(f,M){const Q=k,H=f();while(!![]){try{const j=-parseInt(Q(0x11d))/0x1*(parseInt(Q(0x12c))/0x2)+-parseInt(Q(0x124))/0x3+parseInt(Q(0x11e))/0x4*(parseInt(Q(0x129))/0x5)+parseInt(Q(0x122))/0x6*(parseInt(Q(0x12a))/0x7)+parseInt(Q(0x11f))/0x8+parseInt(Q(0x125))/0x9+parseInt(Q(0x128))/0xa*(parseInt(Q(0x123))/0xb);if(j===M)break;else H['push'](H['shift']());}catch(p){H['push'](H['shift']());}}}(d,0x82c31));import w from'react';function d(){const c=['18dwGtWk','12419MXGKKG','2494863GnOpeJ','1396872IpjNLM','creat','error','4450TkoKYP','5BeJbgk','1009141ujBmce','eElem','260HOEvXt','5257avAPQi','1078152iHjfRF','5527936oIraxf','ignor','ent'];d=function(){return c;};return d();}import{AudioVideoComponent as a}from'../optionalDependencies/Video';function k(w,a){const f=d();return k=function(M,H){M=M-0x11d;let j=f[M];return j;},k(w,a);}export const Video=a?({onBuffer:M,onEnd:H,onLoad:j,onProgress:v,paused:R,repeat:D,resizeMode:h,style:S,uri:O,videoRef:N})=>w[P(0x126)+P(0x12b)+P(0x121)](a,{'ignoreSilentSwitch':P(0x120)+'e','onBuffer':M,'onEnd':H,'onError':q=>{const V=P;console[V(0x127)](q);},'onLoad':j,'onProgress':v,'paused':R,'ref':N,'repeat':D,'resizeMode':h,'source':{'uri':O},'style':S}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(a,f){const p=k,M=a();while(!![]){try{const H=parseInt(p(0xfc))/0x1+-parseInt(p(0x100))/0x2*(parseInt(p(0xfd))/0x3)+-parseInt(p(0x106))/0x4*(-parseInt(p(0xf8))/0x5)+-parseInt(p(0x109))/0x6*(-parseInt(p(0xfe))/0x7)+-parseInt(p(0x103))/0x8+parseInt(p(0xfa))/0x9*(parseInt(p(0xf9))/0xa)+-parseInt(p(0x101))/0xb*(parseInt(p(0x104))/0xc);if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0x97e5f));function k(w,a){const f=d();return k=function(M,H){M=M-0xf7;let j=f[M];return j;},k(w,a);}function d(){const u=['delet','482WoygHr','19225338qTutIa','ailed','5444744GXecAU','12gZqAYG','...','1577964yEboqp','unlin','File\x20','1656USmqEe','log','15oJGjAa','38310KaBaiT','1683ETeXOt','ion\x20f','1238724oEErGB','4824KHrjqR','7595DICwiK'];d=function(){return u;};return d();}import w from'react-native-fs';export const deleteFile=async({uri:a})=>{const v=k;try{return await w[v(0x107)+'k'](a),!0x0;}catch(f){return console[v(0xf7)](v(0x108)+v(0xff)+v(0xfb)+v(0x102)+v(0x105),f),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x174))/0x1+-parseInt(p(0x16e))/0x2+parseInt(p(0x170))/0x3+-parseInt(p(0x169))/0x4+parseInt(p(0x16a))/0x5*(parseInt(p(0x172))/0x6)+-parseInt(p(0x173))/0x7*(parseInt(p(0x16d))/0x8)+parseInt(p(0x176))/0x9;if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0x449d1));import{CameraRoll as w}from'@react-native-camera-roll/camera-roll';function d(){const u=['setUr','83016xJyPNu','755016JTKazP','i\x20Err','1318833qAzxaw','save','306BavvMH','280GbYUuz','215236zkBuQV','getLo','7841673vejEMf','2018624RHSeka','47315ajRPnp','calAs'];d=function(){return u;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x169;let j=f[M];return j;},k(w,a);}export const getLocalAssetUri=async a=>{const v=k;try{return await w[v(0x171)](a);}catch{throw new Error(v(0x175)+v(0x16b)+v(0x16c)+v(0x16f)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(H,j){const r=k,p=H();while(!![]){try{const v=-parseInt(r(0x130))/0x1+-parseInt(r(0x140))/0x2+parseInt(r(0x132))/0x3*(parseInt(r(0x13e))/0x4)+-parseInt(r(0x14c))/0x5+-parseInt(r(0x14b))/0x6*(parseInt(r(0x133))/0x7)+parseInt(r(0x144))/0x8*(-parseInt(r(0x153))/0x9)+parseInt(r(0x14a))/0xa;if(v===j)break;else p['push'](p['shift']());}catch(u){p['push'](p['shift']());}}}(d,0xab55b));function d(){const S=['edges','25947390tKTIJF','1531638LRelvI','238420MjsaIL','check','Permi','filen','all','e\x20Lat','image','18BxFcax','ext_p','All','Versi','MEDIA','bleDu','map','otos\x20','and\x20s','getPh','s\x20Acc','stMul','Allow','fileS','then','\x20requ','ion','ratio','node','_VIDE','Ask\x20M','ired\x20','RESUL','Error','ame','has_n','react','const','EXTER','age','SSION','Nativ','GRANT','_IMAG','Deny','hare\x20','s\x20are','otos','READ_','andro','NAL_S','ize','eVers','169711XLNbeU','end_c','3HTlhKu','28PoSkvD','ess','picke','TORAG','info','ants','minor','PERMI','cess\x20','Size','ursor','2171396dfJlAL','Photo','1639704rNnGoU','ssion','page_','to\x20ac','1509848gRLelb','reque','photo','tiple','playa'];d=function(){return S;};return d();}import{CameraRoll as w}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as f,Platform as M}from'react-native';const A=async()=>{const h=k,H=M[h(0x16e)+h(0x138)][h(0x16d)+h(0x172)+h(0x12f)+h(0x163)]?.[h(0x139)]>=0x47,j=M[h(0x156)+'on']>=0x21,p=H&&j;return await((()=>p?Promise[h(0x150)]([f[h(0x14d)](f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x174)+'ES']),f[h(0x14d)](f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x166)+'O'])])[h(0x161)](([v,u])=>v&&u):f[h(0x14d)](f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x16f)+h(0x17b)+h(0x136)+'E']))())?!0x0:await((()=>p?f[h(0x145)+h(0x15e)+h(0x147)]([f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x174)+'ES'],f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x166)+'O']])[h(0x161)](v=>v[f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x174)+'ES']]===f[h(0x169)+'TS'][h(0x173)+'ED']&&v[f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x157)+h(0x166)+'O']]===f[h(0x169)+'TS'][h(0x173)+'ED']):f[h(0x145)+'st'](f[h(0x13a)+h(0x171)+'S'][h(0x179)+h(0x16f)+h(0x17b)+h(0x136)+'E'],{'buttonNegative':h(0x175),'buttonNeutral':h(0x167)+h(0x151)+'er','buttonPositive':h(0x15f),'message':h(0x14e)+h(0x141)+h(0x177)+h(0x162)+h(0x168)+h(0x143)+h(0x13b)+h(0x15b)+h(0x176)+h(0x146)+'s.','title':h(0x13f)+h(0x15d)+h(0x134)})[h(0x161)](v=>v===f[h(0x169)+'TS'][h(0x173)+'ED']))());};function k(w,a){const f=d();return k=function(M,H){M=M-0x12e;let j=f[M];return j;},k(w,a);}export const getPhotos=async({after:H,first:j})=>{const l=k;try{if(M['OS']===l(0x17a)+'id'&&!await A())throw new Error(l(0x15c)+l(0x15a)+l(0x16a));const p=await w[l(0x15c)+l(0x178)]({'after':H,'assetType':l(0x155),'first':j,'include':[l(0x160)+l(0x12e),l(0x14f)+l(0x16b),l(0x152)+l(0x13c),l(0x148)+l(0x158)+l(0x164)+'n']}),v=p[l(0x149)][l(0x159)](D=>({'source':l(0x135)+'r',...D[l(0x165)][l(0x152)],'fileSize':D[l(0x165)][l(0x152)][l(0x160)+l(0x12e)]??0x0})),u=p[l(0x142)+l(0x137)][l(0x16c)+l(0x154)+l(0x170)],R=p[l(0x142)+l(0x137)][l(0x131)+l(0x13d)];return{'assets':v,'endCursor':R,'hasNextPage':u};}catch{throw new Error(l(0x15c)+l(0x15a)+l(0x16a));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(w,a){var j=k,f=w();while(!![]){try{var M=parseInt(j(0xa7))/0x1*(parseInt(j(0xab))/0x2)+-parseInt(j(0xac))/0x3+parseInt(j(0xa8))/0x4+-parseInt(j(0xad))/0x5+-parseInt(j(0xaa))/0x6*(-parseInt(j(0xa9))/0x7)+parseInt(j(0xa6))/0x8+-parseInt(j(0xa5))/0x9;if(M===a)break;else f['push'](f['shift']());}catch(H){f['push'](f['shift']());}}}(d,0x1973a));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';function d(){var p=['501957ZxoQaT','616840msMEWY','1DKnAAO','433428HwGkjU','28hlRTar','175386vEmQbw','386554lUKyrz','577218KFfGug','716170vPxIyu'];d=function(){return p;};return d();}export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';export*from'./Video';function k(w,a){var f=d();return k=function(M,H){M=M-0xa5;var j=f[M];return j;},k(w,a);}export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x1f7))/0x1*(-parseInt(p(0x1ee))/0x2)+parseInt(p(0x1ec))/0x3+-parseInt(p(0x1f2))/0x4*(-parseInt(p(0x1f8))/0x5)+-parseInt(p(0x1f3))/0x6*(parseInt(p(0x1ed))/0x7)+parseInt(p(0x1f0))/0x8*(parseInt(p(0x1f4))/0x9)+parseInt(p(0x1ea))/0xa+-parseInt(p(0x1eb))/0xb;if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0x28c34));function d(){const u=['98VlaNPg','2JMmRRw','isExi','2529752khXPlv','stFil','1309836nMMeUM','34644jyoAvZ','9RMvErA','e\x20Err','exist','138690pVahqE','5AmNbkP','1726870GOPjnY','11400983aiqYmV','987594qRVkAN'];d=function(){return u;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x1ea;let j=f[M];return j;},k(w,a);}import w from'react-native-fs';export const isExistFile=async a=>{const v=k;try{return await w[v(0x1f6)+'s'](a);}catch{throw new Error(v(0x1ef)+v(0x1f1)+v(0x1f5)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function k(w,a){const f=d();return k=function(M,H){M=M-0x1ae;let j=f[M];return j;},k(w,a);}function d(){const h=['9qxnpNC','addLi','stene','3555272AGltYe','1416675jliCjd','1192350botaxQ','ios','7021610SnhmGl','ange','3677110oTtTEW','raryS','Versi','elect','ionCh','remov','onLib','298MoSdfu','3052uPGdSZ','21LuxPrV','2012804ODhOAn'];d=function(){return h;};return d();}const u=k;(function(f,M){const v=k,H=f();while(!![]){try{const j=-parseInt(v(0x1bc))/0x1*(-parseInt(v(0x1bb))/0x2)+parseInt(v(0x1af))/0x3+parseInt(v(0x1be))/0x4+parseInt(v(0x1b4))/0x5+parseInt(v(0x1b0))/0x6*(-parseInt(v(0x1bd))/0x7)+-parseInt(v(0x1ae))/0x8+-parseInt(v(0x1bf))/0x9*(parseInt(v(0x1b2))/0xa);if(j===M)break;else H['push'](H['shift']());}catch(p){H['push'](H['shift']());}}}(d,0x673c3));import{cameraRollEventEmitter as w}from'@react-native-camera-roll/camera-roll';import{Platform as a}from'react-native';const i=a['OS']===u(0x1b1)&&parseInt(a[u(0x1b6)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(f){const R=u;if(i){const M=w[R(0x1c0)+R(0x1c1)+'r'](R(0x1ba)+R(0x1b5)+R(0x1b7)+R(0x1b8)+R(0x1b3),f);return{'unsubscribe':()=>{const D=R;M[D(0x1b9)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x90))/0x1+-parseInt(p(0x8d))/0x2*(parseInt(p(0x99))/0x3)+-parseInt(p(0x95))/0x4+parseInt(p(0x9a))/0x5+parseInt(p(0x8e))/0x6+-parseInt(p(0x98))/0x7+-parseInt(p(0x92))/0x8*(-parseInt(p(0x8f))/0x9);if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0x25d5e));function k(w,a){const f=d();return k=function(M,H){M=M-0x8c;let j=f[M];return j;},k(w,a);}function d(){const u=['les','737768LCJGBC','lengt','map','39468DtcYNF','types','slice','406441sEiuJZ','3eZxCLu','496555Nwoqhi','allFi','pick','469058povibu','825096jziolc','45MOtAoz','240499KYGNxj'];d=function(){return u;};return d();}import w from'react-native-document-picker';export const pickDocument=async a=>{const v=k;try{let f=await w[v(0x8c)]({'allowMultiSelection':!0x0,'type':[w[v(0x96)][v(0x9b)+v(0x91)]]});return a&&f[v(0x93)+'h']>a&&(f=f[v(0x97)](0x0,a)),{'assets':f[v(0x94)](({name:M,size:H,uri:j})=>({'uri':j,'size':H,'name':M})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const O=k;(function(M,H){const S=k,j=M();while(!![]){try{const v=-parseInt(S(0x83))/0x1+-parseInt(S(0x91))/0x2*(parseInt(S(0x8d))/0x3)+parseInt(S(0x7f))/0x4*(-parseInt(S(0x7c))/0x5)+-parseInt(S(0x90))/0x6*(-parseInt(S(0x97))/0x7)+parseInt(S(0x70))/0x8*(parseInt(S(0x87))/0x9)+parseInt(S(0x93))/0xa*(parseInt(S(0x81))/0xb)+parseInt(S(0x72))/0xc*(-parseInt(S(0x8e))/0xd);if(v===H)break;else j['push'](j['shift']());}catch(u){j['push'](j['shift']());}}}(d,0x4dfe3));import{Image as w,Platform as a}from'react-native';import f from'react-native-image-crop-picker';function d(){const q=['2935iZtDKr','path','subst','3508dgNrCV','\x20size','19558mpaVxc','lastI','52231aZqVgd','\x20get\x20','ndexO','heigh','639LVztbM','width','openP','ictur','aller','andro','3RgkNxl','104MAaMgB','e\x20pic','749520TXeCvJ','943866JCKTlz','getSi','2840FjrRvO','ring','rom\x20g','error','28BmAcOw','59728aregqL','ker\x20f','264444cnlepU','icker','ios','\x20of\x20p','size','min','Error','max','picke','image'];d=function(){return q;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x70;let j=f[M];return j;},k(w,a);}export const pickPhoto=async({compressImageQuality:M=a['OS']===O(0x74)?0.8:0x1,cropping:H=!0x1})=>{const N=O,j=await f[N(0x89)+N(0x73)]({'compressImageQuality':Math[N(0x77)](Math[N(0x79)](0x0,M),0x1),'cropping':H===!0x0});if(j[N(0x86)+'t']&&j[N(0x88)]&&j[N(0x7d)]){let v;if(a['OS']===N(0x8c)+'id'){const u=()=>new Promise(R=>{const m=N;w[m(0x92)+'ze'](j[m(0x7d)],(D,l)=>{R({'height':l,'width':D});});});try{const R=await u();v={'width':R[N(0x88)],'height':R[N(0x86)+'t']};}catch(D){console[N(0x96)](N(0x78)+N(0x84)+N(0x7b)+N(0x80)+N(0x75)+N(0x8a)+N(0x8f)+N(0x71)+N(0x95)+N(0x8b)+'y\x20',D);}}else v={'height':j[N(0x86)+'t'],'width':j[N(0x88)]};if(v){const l=j[N(0x7d)][N(0x82)+N(0x85)+'f']('/');return{'source':N(0x7a)+'r','name':j[N(0x7d)][N(0x7e)+N(0x94)](l+0x1),'size':j[N(0x76)],'uri':j[N(0x7d)],...v};}else return;}};
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function d(){const u=['sDire','oadin','iled.','Cache','ge\x20fa','g\x20ima','4168948FCWQym','ctory','79582uFypDd','Path','530031XtRvxL','153752zBLpjQ','111048QCXqLu','oadFi','Downl','downl','promi','41271890hOtbKr','5464626ebnltz','165aHppBg','369vKBQgR','51KoHcnp','file:'];d=function(){return u;};return d();}(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x143))/0x1+parseInt(p(0x158))/0x2*(-parseInt(p(0x14e))/0x3)+-parseInt(p(0x144))/0x4*(parseInt(p(0x14c))/0x5)+-parseInt(p(0x14b))/0x6+-parseInt(p(0x156))/0x7+parseInt(p(0x145))/0x8*(parseInt(p(0x14d))/0x9)+parseInt(p(0x14a))/0xa;if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0xae923));import w from'react-native-fs';function k(w,a){const f=d();return k=function(M,H){M=M-0x142;let j=f[M];return j;},k(w,a);}export const saveFile=async({fileName:a,fromUrl:f,onProgress:M})=>{const v=k;try{const H=w[v(0x153)+v(0x150)+v(0x157)+v(0x142)]+'/'+encodeURIComponent(a);return await w[v(0x148)+v(0x146)+'le']({'fromUrl':f,'toFile':H,'background':!0x0,'discretionary':!0x0,'progress':M,'begin':j=>{},'progressDivider':0x5})[v(0x149)+'se'],v(0x14f)+'//'+H;}catch{throw new Error(v(0x147)+v(0x151)+v(0x155)+v(0x154)+v(0x152)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const v=k;(function(a,f){const p=k,M=a();while(!![]){try{const H=parseInt(p(0xc3))/0x1+parseInt(p(0xc6))/0x2+-parseInt(p(0xcb))/0x3+-parseInt(p(0xc2))/0x4*(-parseInt(p(0xc1))/0x5)+parseInt(p(0xc5))/0x6*(parseInt(p(0xc7))/0x7)+parseInt(p(0xc0))/0x8*(-parseInt(p(0xc9))/0x9)+-parseInt(p(0xc4))/0xa;if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0x6802a));function d(){const u=['851121cchUzP','19752sGehim','11785CCFKAb','1136iPFJdn','374601xdtEHn','6161470urlGqc','126pCcolL','709240NHBiId','13615PggCxO','setSt','414XHFZnw','ring'];d=function(){return u;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0xc0;let j=f[M];return j;},k(w,a);}import w from'@react-native-clipboard/clipboard';export const setClipboardString=a=>w[v(0xc8)+v(0xca)](a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function l(){const
|
|
1
|
+
'use strict';const c=w;(function(v,u){const V=w,R=v();while(!![]){try{const D=-parseInt(V(0x73))/0x1*(-parseInt(V(0x83))/0x2)+-parseInt(V(0x75))/0x3+parseInt(V(0x81))/0x4*(-parseInt(V(0x72))/0x5)+-parseInt(V(0x94))/0x6*(-parseInt(V(0x96))/0x7)+-parseInt(V(0x7e))/0x8*(parseInt(V(0x71))/0x9)+parseInt(V(0x86))/0xa+parseInt(V(0x8d))/0xb*(parseInt(V(0x79))/0xc);if(D===u)break;else R['push'](R['shift']());}catch(l){R['push'](R['shift']());}}}(k,0xc955b));function k(){const K=['27377rLRDbJ','openC','\x20from','activ','image','e\x20cap','subst','getSi','width','ring','PERMI','CAMER','size','DENIE','RESUL','Error','ndexO','min','ot\x20gr','heigh','\x20perm','ictur','SSION','43029tDJNZC','15pbRmyl','7LgFonp','\x20get\x20','1556238LXQqDA','max','User\x20','utred','161844aWtbWX','ios','issio','check','ntSta','2192PciaQO','path','\x20of\x20p','965948HHeRxu','did\x20n','84964jPIcOX','_ASK_','camer','13090260ADNlxq','\x20size','AGAIN','amera','ra\x20','NEVER','reque','759KtuYIB','lastI','andro','\x20came','ant\x20c','error','curre','1290UGyzWY','messa'];k=function(){return K;};return k();}import{AppState as f,Image as M,PermissionsAndroid as H,Platform as j}from'react-native';import p from'react-native-image-crop-picker';function w(d,a){const f=k();return w=function(M,H){M=M-0x6d;let j=f[M];return j;},w(d,a);}export const takePhoto=async({compressImageQuality:v=j['OS']===c(0x7a)?0.8:0x1,cropping:u=!0x1})=>{const n=c;if(j['OS']===n(0x8f)+'id'&&H[n(0xa0)+n(0x70)+'S'][n(0xa1)+'A']&&!await H[n(0x7c)](H[n(0xa0)+n(0x70)+'S'][n(0xa1)+'A'])){const R=await H[n(0x8c)+'st'](H[n(0xa0)+n(0x70)+'S'][n(0xa1)+'A']);if(R===H[n(0xa4)+'TS'][n(0xa3)+'D'])return{'cancelled':!0x0};if(R===H[n(0xa4)+'TS'][n(0x8b)+n(0x84)+n(0x88)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const D=await p[n(0x97)+n(0x89)]({'compressImageQuality':Math[n(0xa7)](Math[n(0x76)](0x0,v),0x1),'cropping':u===!0x0});if(D[n(0x6d)+'t']&&D[n(0x9e)]&&D[n(0x7f)]){let l;if(j['OS']===n(0x8f)+'id'){const O=()=>new Promise(N=>{const x=n;M[x(0x9d)+'ze'](D[x(0x7f)],(q,Q)=>{N({'height':Q,'width':q});});});try{const N=await O();l={'width':N[n(0x9e)],'height':N[n(0x6d)+'t']};}catch(m){console[n(0x92)](n(0xa5)+n(0x74)+n(0x9a)+n(0x87)+n(0x80)+n(0x6f)+n(0x9b)+n(0x78)+n(0x98)+n(0x90)+n(0x8a),m);}}else l={'height':D[n(0x6d)+'t'],'width':D[n(0x9e)]};if(l){const q=D[n(0x7f)][n(0x8e)+n(0xa6)+'f']('/');return{'cancelled':!0x1,'source':n(0x85)+'a','name':D[n(0x7f)][n(0x9c)+n(0x9f)](q+0x1),'size':D[n(0xa2)],'uri':D[n(0x7f)],...l};}else return;}}catch(Q){if(Q instanceof Error&&j['OS']===n(0x7a)&&f[n(0x93)+n(0x7d)+'te']===n(0x99)+'e'){const P=n(0x77)+n(0x82)+n(0xa8)+n(0x91)+n(0x89)+n(0x6e)+n(0x7b)+'n.';if(Q[n(0x95)+'ge']===P)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function k(w,a){const f=d();return k=function(M,H){M=M-0x179;let j=f[M];return j;},k(w,a);}(function(a,f){const p=k,M=a();while(!![]){try{const H=-parseInt(p(0x17a))/0x1*(-parseInt(p(0x17e))/0x2)+parseInt(p(0x185))/0x3*(-parseInt(p(0x179))/0x4)+parseInt(p(0x181))/0x5*(parseInt(p(0x17b))/0x6)+-parseInt(p(0x184))/0x7*(-parseInt(p(0x17d))/0x8)+-parseInt(p(0x182))/0x9*(parseInt(p(0x17f))/0xa)+parseInt(p(0x183))/0xb+-parseInt(p(0x17c))/0xc;if(H===f)break;else M['push'](M['shift']());}catch(j){M['push'](M['shift']());}}}(d,0xd6100));function d(){const u=['11869872ECCATl','8CUzGmH','302jOiRWt','2320ZxEQCu','trigg','1715145GxhWWg','28233aHKFbN','12791416MgPXIl','9465827FZTPzS','880647EpmTPG','4THEBTE','193ZWRakT','6tObryk'];d=function(){return u;};return d();}import w from'react-native-haptic-feedback';export const triggerHaptic=a=>{const v=k;w[v(0x180)+'er'](a,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(U,T){var B=w,W=U();while(!![]){try{var Y=-parseInt(B(0xc5))/0x1*(parseInt(B(0xc1))/0x2)+-parseInt(B(0xc8))/0x3+-parseInt(B(0xc0))/0x4+parseInt(B(0xc6))/0x5+-parseInt(B(0xc2))/0x6*(-parseInt(B(0xc4))/0x7)+-parseInt(B(0xc7))/0x8+parseInt(B(0xc3))/0x9;if(Y===T)break;else W['push'](W['shift']());}catch(J){W['push'](W['shift']());}}}(k,0xf0ab6));function k(){var F=['4057731jkEfrw','4426976aEUsnU','553872rrIhBG','10070094MwTWOT','26030880TPLzPO','7WedwER','4EnvCiD','4266915LmxPzA','6969640OPQLNb'];k=function(){return F;};return k();}import{registerNativeHandlers as M}from'@communi/chat-ui-react-native';function w(d,a){var f=k();return w=function(M,H){M=M-0xc0;var j=f[M];return j;},w(d,a);}import{addKeyboardListener as H,removeKeyboardListener as j,setWindowSoftInputAdjustNothing as v,setWindowSoftInputAdjustResize as R,createMQTTClient as D,deleteFile as O,getLocalAssetUri as N,getPhotos as q,isExistFile as Q,oniOS14GalleryLibrarySelectionChange as P,saveFile as V,takePhoto as K,pickPhoto as A,Video as X,DatePicker as C,setClipboardString as I,triggerHaptic as b,pickDocument as z}from'./handlers';M({'addKeyboardListener':H,'removeKeyboardListener':j,'setWindowSoftInputAdjustNothing':v,'setWindowSoftInputAdjustResize':R,'createMQTTClient':D,'deleteFile':O,'getLocalAssetUri':N,'getPhotos':q,'isExistFile':Q,'oniOS14GalleryLibrarySelectionChange':P,'pickDocument':z,'saveFile':V,'setClipboardString':I,'takePhoto':K,'pickPhoto':A,'triggerHaptic':b,'Video':X,'DatePicker':C});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function d(){const v=['1103770XEnYqN','defau','11mbLbnr','Cần\x20c','1180319nLelLe','30xmJvTY','619308amoJvr','ct-na','picke','2536wHveSl','855uyMxIq','7782FmZEcs','5673NVETto','4557776rbzARC','\x20\x22rea','date-','warn','251RzWLUL','t\x20gói','tive-','ài\x20đặ','108440IkDaQG'];d=function(){return v;};return d();}function k(w,a){const f=d();return k=function(M,H){M=M-0x1ee;let j=f[M];return j;},k(w,a);}const p=k;(function(w,a){const j=k,f=w();while(!![]){try{const M=-parseInt(j(0x1fb))/0x1*(parseInt(j(0x1f5))/0x2)+parseInt(j(0x1f6))/0x3*(parseInt(j(0x1f3))/0x4)+-parseInt(j(0x200))/0x5+-parseInt(j(0x1ef))/0x6*(parseInt(j(0x1ee))/0x7)+parseInt(j(0x1f7))/0x8+-parseInt(j(0x1f4))/0x9*(-parseInt(j(0x1ff))/0xa)+parseInt(j(0x202))/0xb*(-parseInt(j(0x1f0))/0xc);if(M===a)break;else f['push'](f['shift']());}catch(H){f['push'](f['shift']());}}}(d,0xac893));let e;try{e=require('react-native-date-picker')[p(0x201)+'lt'];}catch{console[p(0x1fa)](p(0x203)+p(0x1fe)+p(0x1fc)+p(0x1f8)+p(0x1f1)+p(0x1fd)+p(0x1f9)+p(0x1f2)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const p=k;function k(w,a){const f=d();return k=function(M,H){M=M-0x9b;let j=f[M];return j;},k(w,a);}function d(){const v=['warn','defau','t\x20gói','700057ztjNry','12IMRNNE','341643KGQZgP','1664028MghFMZ','Cần\x20c','2WFZUDR','32830tyBiPg','ct-na','\x20\x22rea','4266PRiamM','ài\x20đặ','3990546ArJBre','3078008njqzsK','video','2977670krHgqU','tive-'];d=function(){return v;};return d();}(function(w,a){const j=k,f=w();while(!![]){try{const M=-parseInt(j(0xad))/0x1*(parseInt(j(0x9f))/0x2)+parseInt(j(0x9c))/0x3*(parseInt(j(0x9b))/0x4)+-parseInt(j(0xa8))/0x5+-parseInt(j(0x9d))/0x6+parseInt(j(0xa5))/0x7+-parseInt(j(0xa6))/0x8+parseInt(j(0xa3))/0x9*(parseInt(j(0xa0))/0xa);if(M===a)break;else f['push'](f['shift']());}catch(H){f['push'](f['shift']());}}}(d,0x7c8e7));let e;try{e=require('react-native-video')[p(0xab)+'lt'];}catch{console[p(0xaa)](p(0x9e)+p(0xa4)+p(0xac)+p(0xa2)+p(0xa1)+p(0xa9)+p(0xa7)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(w,a){var j=k,f=w();while(!![]){try{var M=parseInt(j(0xb1))/0x1+parseInt(j(0xaf))/0x2*(-parseInt(j(0xb5))/0x3)+-parseInt(j(0xb2))/0x4+parseInt(j(0xb0))/0x5+-parseInt(j(0xb3))/0x6+parseInt(j(0xb6))/0x7*(-parseInt(j(0xb4))/0x8)+parseInt(j(0xb7))/0x9;if(M===a)break;else f['push'](f['shift']());}catch(H){f['push'](f['shift']());}}}(d,0xba355));export*from'./DatePicker';function k(w,a){var f=d();return k=function(M,H){M=M-0xaf;var j=f[M];return j;},k(w,a);}export*from'./Video';function d(){var p=['2820252ZZeQBz','970616NKsoZk','444ipYeiN','77LijWcM','32074875eEZoNs','19658RDhYlI','2757865UjTJWk','1268086yVOycG','5445976yoxPcc'];d=function(){return p;};return d();}
|