@communi/chat-react-native 2.0.7 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/handlers/DatePicker.js +1 -1
- package/src/handlers/Keyboard.js +1 -1
- package/src/handlers/MQTT.js +1 -1
- package/src/handlers/Video.js +1 -1
- package/src/handlers/deleteFile.js +1 -1
- package/src/handlers/getAlbums.d.ts +7 -0
- package/src/handlers/getAlbums.js +1 -0
- package/src/handlers/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.d.ts +2 -1
- package/src/handlers/getPhotos.js +1 -1
- package/src/handlers/index.d.ts +1 -0
- 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 J(d,i){var c=Y();return J=function(R,y){R=R-0x89;var B=c[R];return B;},J(d,i);}(function(d,i){var B=J,c=d();while(!![]){try{var R=-parseInt(B(0x8b))/0x1*(-parseInt(B(0x8a))/0x2)+parseInt(B(0x8f))/0x3+parseInt(B(0x91))/0x4*(-parseInt(B(0x8d))/0x5)+-parseInt(B(0x90))/0x6*(parseInt(B(0x93))/0x7)+-parseInt(B(0x8c))/0x8*(parseInt(B(0x92))/0x9)+-parseInt(B(0x89))/0xa+parseInt(B(0x8e))/0xb;if(R===i)break;else c['push'](c['shift']());}catch(y){c['push'](c['shift']());}}}(Y,0x4785b));export*from'./src';function Y(){var w=['305400wgEvNA','2OnrkZK','423063xDebmh','3515632NWqFWZ','968340DElhRF','10476433CGtyKh','345219zvvhSP','54HBteDM','8XpKfke','9gBoiLa','264642kyoEyt'];Y=function(){return w;};return Y();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@communi/chat-api-client-typescript": "^2.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.5.2",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.5.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';const Y=
|
|
1
|
+
'use strict';function Y(){const t=['399213CtZUtJ','180088yyrRrO','7tKZpHY','creat','10pQgAKw','82392BSjJok','5Crjbbj','49243JlxQLa','14owsqTi','ent','2795805ixNDUZ','1530904xsQuLx','eElem','4214859mSbAjX'];Y=function(){return t;};return Y();}const E=J;(function(c,R){const r=J,y=c();while(!![]){try{const B=parseInt(r(0xbb))/0x1*(parseInt(r(0xbc))/0x2)+parseInt(r(0xb4))/0x3+parseInt(r(0xb5))/0x4+-parseInt(r(0xba))/0x5*(parseInt(r(0xb9))/0x6)+-parseInt(r(0xb6))/0x7*(parseInt(r(0xb1))/0x8)+parseInt(r(0xb0))/0x9+parseInt(r(0xb8))/0xa*(-parseInt(r(0xb3))/0xb);if(B===R)break;else y['push'](y['shift']());}catch(w){y['push'](y['shift']());}}}(Y,0x3bdb7));import d from'react';import{DatePickerComponent as i}from'../optionalDependencies/DatePicker';function J(d,i){const c=Y();return J=function(R,y){R=R-0xb0;let B=c[R];return B;},J(d,i);}export const DatePicker=i?({modal:c,open:R,date:y,minimumDate:B,onConfirm:w,onCancel:k})=>d[E(0xb7)+E(0xb2)+E(0xbd)](i,{'modal':c,'open':R,'date':y,'minimumDate':B,'onConfirm':w,'onCancel':k}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const r=J;(function(c,R){const k=J,y=c();while(!![]){try{const B=parseInt(k(0xdf))/0x1*(-parseInt(k(0xcc))/0x2)+-parseInt(k(0xe6))/0x3+-parseInt(k(0xd3))/0x4+parseInt(k(0xcf))/0x5+parseInt(k(0xcb))/0x6+-parseInt(k(0xcd))/0x7*(-parseInt(k(0xe3))/0x8)+parseInt(k(0xd7))/0x9*(parseInt(k(0xdb))/0xa);if(B===R)break;else y['push'](y['shift']());}catch(w){y['push'](y['shift']());}}}(Y,0xc949e));function Y(){const E=['yboar','1431300OwHaRj','10UPuTsd','21baZTtF','eKeyb','2116055uaNlZU','oardL','oftIn','remov','1737648MjvdFg','ndowS','INPUT','ST_NO','8286885nCxwXP','SOFT_','addKe','dList','10VMkvra','isten','setWi','ST_RE','273666cHyuIB','THING','SIZE','putMo','2906912uIWcFf','ener','_ADJU','136194fnKYPM'];Y=function(){return E;};return Y();}import{PSKeyboard as d,SoftInputMode as i}from'@communi/keyboard-area-react-native';function J(d,i){const c=Y();return J=function(R,y){R=R-0xca;let B=c[R];return B;},J(d,i);}export const addKeyboardListener=c=>d[r(0xd9)+r(0xca)+r(0xda)+r(0xe4)](c),removeKeyboardListener=c=>d[r(0xd2)+r(0xce)+r(0xd0)+r(0xdc)+'er'](c),setWindowSoftInputAdjustNothing=()=>d[r(0xdd)+r(0xd4)+r(0xd1)+r(0xe2)+'de'](i[r(0xd8)+r(0xd5)+r(0xe5)+r(0xd6)+r(0xe0)]),setWindowSoftInputAdjustResize=()=>d[r(0xdd)+r(0xd4)+r(0xd1)+r(0xe2)+'de'](i[r(0xd8)+r(0xd5)+r(0xe5)+r(0xde)+r(0xe1)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const k=J;(function(i,c){const w=J,R=i();while(!![]){try{const y=parseInt(w(0xb5))/0x1*(parseInt(w(0xb1))/0x2)+parseInt(w(0xb2))/0x3+-parseInt(w(0xae))/0x4+parseInt(w(0xb4))/0x5+parseInt(w(0xac))/0x6*(parseInt(w(0xad))/0x7)+-parseInt(w(0xb6))/0x8+parseInt(w(0xaf))/0x9*(-parseInt(w(0xb3))/0xa);if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0xdec87));function J(d,i){const c=Y();return J=function(R,y){R=R-0xab;let B=c[R];return B;},J(d,i);}function Y(){const r=['1631634XHnotg','21qyXxVP','468932BfGmAU','5769108npfraB','stanc','33574LQBdJq','2902518BDjPdu','10voOjto','3031575pMTDrT','28PBKXrm','9511280WsnSyJ','getIn'];Y=function(){return r;};return Y();}import{MQTTClient as d}from'@communi/mqtt-client-react-native';export const createMQTTClient=async i=>d[k(0xab)+k(0xb0)+'e'](i);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function J(d,i){const c=Y();return J=function(R,y){R=R-0x15c;let B=c[R];return B;},J(d,i);}const W=J;(function(c,R){const G=J,y=c();while(!![]){try{const B=-parseInt(G(0x16b))/0x1+-parseInt(G(0x167))/0x2*(-parseInt(G(0x160))/0x3)+parseInt(G(0x164))/0x4+parseInt(G(0x163))/0x5*(-parseInt(G(0x166))/0x6)+parseInt(G(0x15e))/0x7*(parseInt(G(0x16a))/0x8)+-parseInt(G(0x15c))/0x9+parseInt(G(0x165))/0xa*(parseInt(G(0x15d))/0xb);if(B===R)break;else y['push'](y['shift']());}catch(w){y['push'](y['shift']());}}}(Y,0x4e1a3));import d from'react';function Y(){const X=['ignor','creat','582455OQVpAZ','177844lenKQE','104810efyUYP','18qYaipx','593086MLjACj','ent','eElem','40744sHOmoP','58346LicVCY','889947qaUcTo','66ZcWbAQ','581QyLDQm','error','3CowCBt'];Y=function(){return X;};return Y();}import{AudioVideoComponent as i}from'../optionalDependencies/Video';export const Video=i?({onBuffer:c,onEnd:R,onLoad:y,onProgress:B,paused:w,repeat:k,resizeMode:E,style:A,uri:H,videoRef:O})=>d[W(0x162)+W(0x169)+W(0x168)](i,{'ignoreSilentSwitch':W(0x161)+'e','onBuffer':c,'onEnd':R,'onError':N=>{const P=W;console[P(0x15f)](N);},'onLoad':y,'onProgress':B,'paused':w,'ref':O,'repeat':k,'resizeMode':E,'source':{'uri':H},'style':A}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(i,c){const w=J,R=i();while(!![]){try{const y=-parseInt(w(0x1f7))/0x1+-parseInt(w(0x1fb))/0x2+parseInt(w(0x1f1))/0x3*(-parseInt(w(0x1f6))/0x4)+parseInt(w(0x1f9))/0x5+parseInt(w(0x1ef))/0x6*(parseInt(w(0x1ee))/0x7)+-parseInt(w(0x1f8))/0x8*(-parseInt(w(0x1fc))/0x9)+-parseInt(w(0x1ec))/0xa;if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0x4f389));import d from'react-native-fs';function J(d,i){const c=Y();return J=function(R,y){R=R-0x1ec;let B=c[R];return B;},J(d,i);}function Y(){const r=['1043598buxBHX','ailed','12bvEutr','unlin','log','...','ion\x20f','321052fvVaxM','349847LsHFTq','19048mhBUTb','3072205rBExen','delet','63532PPYkFD','2259SwpcKX','3588510bppTHZ','File\x20','7WskJfr'];Y=function(){return r;};return Y();}export const deleteFile=async({uri:i})=>{const k=J;try{return await d[k(0x1f2)+'k'](i),!0x0;}catch(c){return console[k(0x1f3)](k(0x1ed)+k(0x1fa)+k(0x1f5)+k(0x1f0)+k(0x1f4),c),!0x1;}};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Album } from '@communi/chat-ui-react-native';
|
|
2
|
+
import { GetAlbumsParams } from '@react-native-camera-roll/camera-roll';
|
|
3
|
+
type ReturnType = {
|
|
4
|
+
Albums: Album[];
|
|
5
|
+
};
|
|
6
|
+
export declare const getAlbums: ({ albumType, assetType, }: Pick<GetAlbumsParams, 'albumType' | 'assetType'>) => Promise<ReturnType>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function Y(){const V=['selec','Deep','Recen','2658650rWZvcA','all','title','15284orwARV','32352HmHSVU','376zgynDg','740OSMhHF','lengt','otos\x20','clone','220221QJnzWu','push','getAl','node','66141bMJgZi','bums\x20','12584sOwINz','Album','getPh','bums','forEa','edges','All','otos','image','6JkzDfQ','andro','7434735PXTyoC','Error','Smart','376936txzUjk','30tGCxBG'];Y=function(){return V;};return Y();}const W=J;(function(w,k){const G=J,r=w();while(!![]){try{const E=parseInt(G(0x17b))/0x1+-parseInt(G(0x17c))/0x2*(-parseInt(G(0x16b))/0x3)+parseInt(G(0x183))/0x4*(-parseInt(G(0x186))/0x5)+-parseInt(G(0x176))/0x6*(parseInt(G(0x178))/0x7)+-parseInt(G(0x185))/0x8*(parseInt(G(0x167))/0x9)+-parseInt(G(0x180))/0xa+parseInt(G(0x16d))/0xb*(parseInt(G(0x184))/0xc);if(E===k)break;else r['push'](r['shift']());}catch(o){r['push'](r['shift']());}}}(Y,0xb6b38));import{CameraRoll as i}from'@react-native-camera-roll/camera-roll';function J(d,i){const c=Y();return J=function(R,y){R=R-0x165;let B=c[R];return B;},J(d,i);}import{Platform as R}from'react-native';import{verifyAndroidPermissions as y}from'./getPhotos';import B from'lodash';export const getAlbums=async({albumType:w=W(0x17a)+W(0x16e),assetType:k=W(0x173)})=>{const P=W;try{if(R['OS']===P(0x177)+'id'&&!await y())throw new Error(P(0x16f)+P(0x165)+P(0x179));const r=await i[P(0x169)+P(0x170)]({'albumType':w,'assetType':k});if(r&&r[P(0x187)+'h']){const E=[];return B[P(0x166)+P(0x17e)](r)[P(0x171)+'ch'](o=>{const f=P,A=new Promise(async(H,O)=>{const X=J;try{const N=await i[X(0x16f)+X(0x174)]({'assetType':k,'first':0x1,'groupName':o[X(0x182)],'groupTypes':R[X(0x17d)+'t']({'ios':o[X(0x182)]===X(0x17f)+'ts'?X(0x173):X(0x17a)+X(0x16e),'android':void 0x0})});N?.[X(0x172)]?.[0x0]?.[X(0x16a)]?.[X(0x175)]&&(o[X(0x175)]=N[X(0x172)][0x0][X(0x16a)][X(0x175)]),H(o);}catch{H(o);}});E[f(0x168)](A);}),{'Albums':await Promise[P(0x181)](E)};}return{'Albums':[]};}catch{throw new Error(P(0x169)+P(0x16c)+P(0x179));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,c){const w=J,R=i();while(!![]){try{const y=parseInt(w(0x1d3))/0x1+-parseInt(w(0x1df))/0x2*(parseInt(w(0x1dd))/0x3)+parseInt(w(0x1d7))/0x4+-parseInt(w(0x1d9))/0x5+parseInt(w(0x1e1))/0x6*(-parseInt(w(0x1e2))/0x7)+parseInt(w(0x1dc))/0x8*(parseInt(w(0x1da))/0x9)+parseInt(w(0x1d8))/0xa*(parseInt(w(0x1d5))/0xb);if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0x72f13));function Y(){const r=['calAs','12XhSmpx','1272922tweZpb','602515jxGkta','save','22OhuHUJ','setUr','3312196lBkHeO','1419130OnoHoP','3461690JbBZXK','6266583hBlBgL','i\x20Err','8wTVGyp','69cVFPda','getLo','76856kFBOFa'];Y=function(){return r;};return Y();}import{CameraRoll as d}from'@react-native-camera-roll/camera-roll';function J(d,i){const c=Y();return J=function(R,y){R=R-0x1d3;let B=c[R];return B;},J(d,i);}export const getLocalAssetUri=async i=>{const k=J;try{return await d[k(0x1d4)](i);}catch{throw new Error(k(0x1de)+k(0x1e0)+k(0x1d6)+k(0x1db)+'or');}};
|
|
@@ -5,5 +5,6 @@ type ReturnType = {
|
|
|
5
5
|
endCursor: string | undefined;
|
|
6
6
|
hasNextPage: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const verifyAndroidPermissions: () => Promise<boolean>;
|
|
9
|
+
export declare const getPhotos: ({ after, first, groupName, groupTypes, }: Pick<GetPhotosParams, 'after' | 'first' | 'groupName' | 'groupTypes'>) => Promise<ReturnType>;
|
|
9
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function J(d,i){const c=Y();return J=function(R,y){R=R-0x9a;let B=c[R];return B;},J(d,i);}(function(R,y){const W=J,B=R();while(!![]){try{const w=-parseInt(W(0x9e))/0x1*(-parseInt(W(0xe4))/0x2)+parseInt(W(0x9f))/0x3*(parseInt(W(0xba))/0x4)+-parseInt(W(0xc8))/0x5*(-parseInt(W(0xc9))/0x6)+-parseInt(W(0xaf))/0x7*(-parseInt(W(0xe1))/0x8)+parseInt(W(0xc2))/0x9+parseInt(W(0xcb))/0xa+-parseInt(W(0xa9))/0xb;if(w===y)break;else B['push'](B['shift']());}catch(k){B['push'](B['shift']());}}}(Y,0xee542));function Y(){const f=['Recen','hare\x20','All','const','reque','ants','56818058GsXVKm','getPh','picke','SSION','age','has_n','329mYUphy','react','MEDIA','tiple','to\x20ac','TORAG','Allow','ratio','ssion','album','then','236BfPdbE','node','Permi','GRANT','page_','stMul','e\x20Lat','map','1818972vWlPBv','filen','Nativ','info','Deny','RESUL','1465wdSRSh','31938MBCjWJ','PERMI','18814850SmZaFt','ess','playa','s\x20are','edges','Size','Ask\x20M','READ_','_VIDE','\x20requ','ame','Error','EXTER','_IMAG','andro','end_c','eVers','image','NAL_S','ursor','bleDu','otos\x20','255704CSdmlC','cess\x20','selec','16518fYZBQc','ize','ion','otos','ext_p','photo','ired\x20','check','Versi','minor','Photo','s\x20Acc','118kidZfN','1089suAwEs','all','fileS','and\x20s'];Y=function(){return f;};return Y();}import{CameraRoll as d}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as i,Platform as c}from'react-native';export const verifyAndroidPermissions=async()=>{const P=J,R=c[P(0xa6)+P(0xa8)][P(0xb0)+P(0xc4)+P(0xdb)+P(0xe6)]?.[P(0x9b)]>=0x47,y=c[P(0x9a)+'on']>=0x21,B=R&&y;return await((()=>B?Promise[P(0xa0)]([i[P(0xeb)](i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd8)+'ES']),i[P(0xeb)](i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd3)+'O'])])[P(0xb9)](([w,k])=>w&&k):i[P(0xeb)](i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xd7)+P(0xdd)+P(0xb4)+'E']))())?!0x0:await((()=>B?i[P(0xa7)+P(0xbf)+P(0xb2)]([i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd8)+'ES'],i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd3)+'O']])[P(0xb9)](w=>w[i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd8)+'ES']]===i[P(0xc7)+'TS'][P(0xbd)+'ED']&&w[i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xb1)+P(0xd3)+'O']]===i[P(0xc7)+'TS'][P(0xbd)+'ED']):i[P(0xa7)+'st'](i[P(0xca)+P(0xac)+'S'][P(0xd2)+P(0xd7)+P(0xdd)+P(0xb4)+'E'],{'buttonNegative':P(0xc6),'buttonNeutral':P(0xd1)+P(0xc0)+'er','buttonPositive':P(0xb5),'message':P(0xbc)+P(0xb7)+P(0xce)+P(0xd4)+P(0xea)+P(0xb3)+P(0xe2)+P(0xa2)+P(0xa4)+P(0xe9)+'s.','title':P(0x9c)+P(0x9d)+P(0xcc)})[P(0xb9)](w=>w===i[P(0xc7)+'TS'][P(0xbd)+'ED']))());},getPhotos=async({after:R,first:y,groupName:B,groupTypes:w})=>{const X=J;try{if(c['OS']===X(0xd9)+'id'&&!await verifyAndroidPermissions())throw new Error(X(0xaa)+X(0xe0)+X(0xd6));const k=await d[X(0xaa)+X(0xe7)]({'after':R,'assetType':X(0xa5),'groupName':B===X(0xa3)+'ts'?void 0x0:B,'groupTypes':c[X(0xe3)+'t']({'ios':B===X(0xa3)+'ts'?X(0xa5):w,'android':void 0x0}),'first':y,'includeSharedAlbums':!0x0,'include':[X(0xa1)+X(0xe5),X(0xc3)+X(0xd5),X(0xdc)+X(0xd0),X(0xcd)+X(0xdf)+X(0xb6)+'n',X(0xb8)+'s']}),H=k[X(0xcf)][X(0xc1)](G=>({'source':X(0xab)+'r',...G[X(0xbb)][X(0xdc)],'fileSize':G[X(0xbb)][X(0xdc)][X(0xa1)+X(0xe5)]??0x0})),O=k[X(0xbe)+X(0xc5)][X(0xae)+X(0xe8)+X(0xad)],N=k[X(0xbe)+X(0xc5)][X(0xda)+X(0xde)];return{'assets':H,'endCursor':N,'hasNextPage':O};}catch{throw new Error(X(0xaa)+X(0xe0)+X(0xd6));}};
|
package/src/handlers/index.d.ts
CHANGED
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(d,i){var B=J,c=d();while(!![]){try{var R=parseInt(B(0xed))/0x1+parseInt(B(0xf2))/0x2*(-parseInt(B(0xee))/0x3)+-parseInt(B(0xea))/0x4+-parseInt(B(0xf3))/0x5+-parseInt(B(0xeb))/0x6*(parseInt(B(0xef))/0x7)+parseInt(B(0xf0))/0x8*(-parseInt(B(0xec))/0x9)+parseInt(B(0xf1))/0xa;if(R===i)break;else c['push'](c['shift']());}catch(y){c['push'](c['shift']());}}}(Y,0x3d55b));export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';function J(d,i){var c=Y();return J=function(R,y){R=R-0xea;var B=c[R];return B;},J(d,i);}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';function Y(){var w=['18NSNnQx','253320zwSgpn','228tjBeHL','1073555MPNNTT','776264xMkvRg','13108430GmPiTA','10518NZiRXn','227780NghvhV','854140FTonXX','18ZcoIza'];Y=function(){return w;};return Y();}export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,c){const w=J,R=i();while(!![]){try{const y=-parseInt(w(0x164))/0x1*(-parseInt(w(0x160))/0x2)+-parseInt(w(0x15f))/0x3+parseInt(w(0x15e))/0x4*(-parseInt(w(0x166))/0x5)+parseInt(w(0x165))/0x6*(-parseInt(w(0x168))/0x7)+-parseInt(w(0x162))/0x8*(-parseInt(w(0x15d))/0x9)+-parseInt(w(0x16a))/0xa*(parseInt(w(0x161))/0xb)+parseInt(w(0x169))/0xc;if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0x6d85f));function J(d,i){const c=Y();return J=function(R,y){R=R-0x15d;let B=c[R];return B;},J(d,i);}import d from'react-native-fs';function Y(){const E=['exist','27874ihCcGJ','7479708iYoznC','108130ItbjpS','isExi','stFil','99eyDYwm','356MxgSDj','311922AbpyLG','168884DBImAy','88BmTdfU','532920PPYbbA','e\x20Err','3pASLxu','1128nLcgfE','12455UhOIxa'];Y=function(){return E;};return Y();}export const isExistFile=async i=>{const k=J;try{return await d[k(0x167)+'s'](i);}catch{throw new Error(k(0x16b)+k(0x16c)+k(0x163)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const t=J;(function(R,y){const E=J,B=R();while(!![]){try{const w=-parseInt(E(0x15a))/0x1*(parseInt(E(0x166))/0x2)+parseInt(E(0x158))/0x3*(parseInt(E(0x165))/0x4)+-parseInt(E(0x164))/0x5*(-parseInt(E(0x157))/0x6)+parseInt(E(0x154))/0x7*(-parseInt(E(0x160))/0x8)+parseInt(E(0x15b))/0x9+parseInt(E(0x155))/0xa*(-parseInt(E(0x168))/0xb)+parseInt(E(0x15e))/0xc;if(w===y)break;else B['push'](B['shift']());}catch(k){B['push'](B['shift']());}}}(Y,0x33052));import{cameraRollEventEmitter as d}from'@react-native-camera-roll/camera-roll';import{Platform as c}from'react-native';const i=c['OS']===t(0x15d)&&parseInt(c[t(0x162)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(R){const A=t;if(i){const y=d[A(0x15f)+A(0x159)+'r'](A(0x156)+A(0x15c)+A(0x153)+A(0x167)+A(0x163),R);return{'unsubscribe':()=>{const H=A;y[H(0x161)+'e']();}};}return{'unsubscribe':()=>{}};}function J(d,i){const c=Y();return J=function(R,y){R=R-0x153;let B=c[R];return B;},J(d,i);}function Y(){const O=['ange','335ZksEIC','4GxcSvU','198TXoMVR','ionCh','1087658VTopwp','elect','56VkuaXO','30efTAfd','onLib','3954RWrLpw','1815WzTpjm','stene','2927USURLv','2073447uUnndp','raryS','ios','6596784AKWeZa','addLi','29488LEByjm','remov','Versi'];Y=function(){return O;};return Y();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,R){const k=J,y=i();while(!![]){try{const B=-parseInt(k(0x197))/0x1*(-parseInt(k(0x19d))/0x2)+-parseInt(k(0x192))/0x3+-parseInt(k(0x194))/0x4+-parseInt(k(0x19b))/0x5+parseInt(k(0x198))/0x6+parseInt(k(0x199))/0x7+parseInt(k(0x19c))/0x8;if(B===R)break;else y['push'](y['shift']());}catch(w){y['push'](y['shift']());}}}(Y,0x992c9));function Y(){const E=['3585092WZaZia','map','1345215ZlFNEE','4736904LDSMXA','2cjbAwj','slice','pick','allFi','3352017EqAWSF','types','2288120VwhFTL','lengt','les','678217EQvYHA','4819962FUFgUg'];Y=function(){return E;};return Y();}import d from'react-native-document-picker';function J(d,i){const c=Y();return J=function(R,y){R=R-0x191;let B=c[R];return B;},J(d,i);}export const pickDocument=async i=>{const r=J;try{let R=await d[r(0x19f)]({'allowMultiSelection':!0x0,'type':[d[r(0x193)][r(0x191)+r(0x196)]]});return i&&R[r(0x195)+'h']>i&&(R=R[r(0x19e)](0x0,i)),{'assets':R[r(0x19a)](({name:y,size:B,uri:w})=>({'uri':w,'size':B,'name':y})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const G=J;(function(y,B){const N=J,w=y();while(!![]){try{const k=parseInt(N(0x136))/0x1*(-parseInt(N(0x131))/0x2)+-parseInt(N(0x141))/0x3*(-parseInt(N(0x126))/0x4)+-parseInt(N(0x123))/0x5*(parseInt(N(0x143))/0x6)+parseInt(N(0x148))/0x7*(-parseInt(N(0x128))/0x8)+-parseInt(N(0x134))/0x9*(parseInt(N(0x122))/0xa)+parseInt(N(0x13a))/0xb+parseInt(N(0x132))/0xc*(parseInt(N(0x139))/0xd);if(k===B)break;else w['push'](w['shift']());}catch(r){w['push'](w['shift']());}}}(Y,0xef231));function Y(){const X=['size','image','icker','12VinLLi','12268884BKrPLC','subst','22329cIwQKM','lastI','5284zaiGOn','ndexO','rom\x20g','13VGVfJQ','1605329kGGpRj','e\x20pic','width','error','openP','picke','min','9tcwsfB','Error','12iPvvGg','max','andro','getSi','aller','1911371eUvCip','\x20of\x20p','1830IoZVhk','133580KmpyUd','ring','ios','1195232dtjUUC','heigh','16VshNNd','ictur','\x20get\x20','\x20size','path','ker\x20f'];Y=function(){return X;};return Y();}function J(d,i){const c=Y();return J=function(R,y){R=R-0x121;let B=c[R];return B;},J(d,i);}import{Image as d,Platform as i}from'react-native';import R from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:y=i['OS']===G(0x125)?0.8:0x1,cropping:B=!0x1})=>{const W=G,w=await R[W(0x13e)+W(0x130)]({'compressImageQuality':Math[W(0x140)](Math[W(0x144)](0x0,y),0x1),'cropping':B===!0x0});if(w[W(0x127)+'t']&&w[W(0x13c)]&&w[W(0x12c)]){let k;if(i['OS']===W(0x145)+'id'){const E=()=>new Promise(A=>{const P=W;d[P(0x146)+'ze'](w[P(0x12c)],(H,O)=>{A({'height':O,'width':H});});});try{const A=await E();k={'width':A[W(0x13c)],'height':A[W(0x127)+'t']};}catch(H){console[W(0x13d)](W(0x142)+W(0x12a)+W(0x12f)+W(0x12b)+W(0x121)+W(0x129)+W(0x13b)+W(0x12d)+W(0x138)+W(0x147)+'y\x20',H);}}else k={'height':w[W(0x127)+'t'],'width':w[W(0x13c)]};if(k){const O=w[W(0x12c)][W(0x135)+W(0x137)+'f']('/');return{'source':W(0x13f)+'r','name':w[W(0x12c)][W(0x133)+W(0x124)](O+0x1),'size':w[W(0x12e)],'uri':w[W(0x12c)],...k};}else return;}};
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,c){const k=J,R=i();while(!![]){try{const y=-parseInt(k(0x1ca))/0x1+-parseInt(k(0x1cb))/0x2+-parseInt(k(0x1cf))/0x3+parseInt(k(0x1ce))/0x4+-parseInt(k(0x1d5))/0x5*(parseInt(k(0x1c3))/0x6)+parseInt(k(0x1cd))/0x7+parseInt(k(0x1c2))/0x8;if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0x96a25));function Y(){const o=['2374599BKBIZV','g\x20ima','iled.','oadin','Downl','downl','5JMZLoi','file:','5575200lvBGfD','1042404OrdamR','ge\x20fa','sDire','ctory','Cache','oadFi','promi','1139005pUhFwR','48260uGIunG','Path','8291402BYVjJT','3456052NhafxB'];Y=function(){return o;};return Y();}function J(d,i){const c=Y();return J=function(R,y){R=R-0x1c2;let B=c[R];return B;},J(d,i);}import d from'react-native-fs';export const saveFile=async({fileName:c,fromUrl:R,onProgress:y})=>{const E=J;try{const B=d[E(0x1c7)+E(0x1c5)+E(0x1c6)+E(0x1cc)]+'/'+encodeURIComponent(c);return await d[E(0x1d4)+E(0x1c8)+'le']({'fromUrl':R,'toFile':B,'background':!0x0,'discretionary':!0x0,'progress':y,'begin':w=>{},'progressDivider':0x5})[E(0x1c9)+'se'],E(0x1d6)+'//'+B;}catch{throw new Error(E(0x1d3)+E(0x1d2)+E(0x1d0)+E(0x1c4)+E(0x1d1)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const k=J;function Y(){const r=['6059568UWTsCV','3wxXgMZ','1565030fJnYGX','7rgFbHE','2078464qKqPsn','445986OrQilU','2070145FZssTc','6299656SgsTZk','5849883jRzHBp','setSt','ring'];Y=function(){return r;};return Y();}(function(i,c){const w=J,R=i();while(!![]){try{const y=-parseInt(w(0x9a))/0x1+parseInt(w(0x97))/0x2*(parseInt(w(0x96))/0x3)+-parseInt(w(0x99))/0x4+parseInt(w(0x9b))/0x5+-parseInt(w(0x95))/0x6*(parseInt(w(0x98))/0x7)+parseInt(w(0x91))/0x8+parseInt(w(0x92))/0x9;if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0xa0c1a));function J(d,i){const c=Y();return J=function(R,y){R=R-0x91;let B=c[R];return B;},J(d,i);}import d from'@react-native-clipboard/clipboard';export const setClipboardString=i=>d[k(0x93)+k(0x94)](i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const J
|
|
1
|
+
'use strict';const V=J;(function(w,k){const f=J,E=w();while(!![]){try{const o=parseInt(f(0x193))/0x1+parseInt(f(0x16d))/0x2*(parseInt(f(0x188))/0x3)+-parseInt(f(0x192))/0x4+parseInt(f(0x19f))/0x5*(parseInt(f(0x183))/0x6)+-parseInt(f(0x17d))/0x7+parseInt(f(0x186))/0x8+-parseInt(f(0x190))/0x9;if(o===k)break;else E['push'](E['shift']());}catch(t){E['push'](E['shift']());}}}(Y,0x7e5a5));import{AppState as i,Image as c,PermissionsAndroid as R,Platform as y}from'react-native';function Y(){const I=['\x20size','2474143BREJjF','reque','error','andro','curre','ndexO','127230oxMUhQ','ring','lastI','4787768ohbwHP','ntSta','295041SslNeO','path','\x20from','camer','Error','_ASK_','utred','ant\x20c','3758706bGRFRy','width','1676480DhxfYI','650441MeJkeX','PERMI','messa','\x20came','size','max','e\x20cap','check','SSION','openC','NEVER','User\x20','85GiHZLz','\x20of\x20p','amera','DENIE','\x20get\x20','issio','image','2tdTbxt','ra\x20','getSi','heigh','did\x20n','min','subst','RESUL','\x20perm','activ','CAMER','ot\x20gr','ictur','AGAIN','ios'];Y=function(){return I;};return Y();}import B from'react-native-image-crop-picker';function J(d,i){const c=Y();return J=function(R,y){R=R-0x16b;let B=c[R];return B;},J(d,i);}export const takePhoto=async({compressImageQuality:w=y['OS']===V(0x17b)?0.8:0x1,cropping:k=!0x1})=>{const e=V;if(y['OS']===e(0x180)+'id'&&R[e(0x194)+e(0x19b)+'S'][e(0x177)+'A']&&!await R[e(0x19a)](R[e(0x194)+e(0x19b)+'S'][e(0x177)+'A'])){const E=await R[e(0x17e)+'st'](R[e(0x194)+e(0x19b)+'S'][e(0x177)+'A']);if(E===R[e(0x174)+'TS'][e(0x1a2)+'D'])return{'cancelled':!0x0};if(E===R[e(0x174)+'TS'][e(0x19d)+e(0x18d)+e(0x17a)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const A=await B[e(0x19c)+e(0x1a1)]({'compressImageQuality':Math[e(0x172)](Math[e(0x198)](0x0,w),0x1),'cropping':k===!0x0});if(A[e(0x170)+'t']&&A[e(0x191)]&&A[e(0x189)]){let H;if(y['OS']===e(0x180)+'id'){const O=()=>new Promise(N=>{const b=e;c[b(0x16f)+'ze'](A[b(0x189)],(G,W)=>{N({'height':W,'width':G});});});try{const N=await O();H={'width':N[e(0x191)],'height':N[e(0x170)+'t']};}catch(G){console[e(0x17f)](e(0x18c)+e(0x1a3)+e(0x16c)+e(0x17c)+e(0x1a0)+e(0x179)+e(0x199)+e(0x18e)+e(0x18a)+e(0x196)+e(0x16e),G);}}else H={'height':A[e(0x170)+'t'],'width':A[e(0x191)]};if(H){const W=A[e(0x189)][e(0x185)+e(0x182)+'f']('/');return{'cancelled':!0x1,'source':e(0x18b)+'a','name':A[e(0x189)][e(0x173)+e(0x184)](W+0x1),'size':A[e(0x197)],'uri':A[e(0x189)],...H};}else return;}}catch(P){if(P instanceof Error&&y['OS']===e(0x17b)&&i[e(0x181)+e(0x187)+'te']===e(0x176)+'e'){const X=e(0x19e)+e(0x171)+e(0x178)+e(0x18f)+e(0x1a1)+e(0x175)+e(0x16b)+'n.';if(P[e(0x195)+'ge']===X)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(i,c){const w=J,R=i();while(!![]){try{const y=parseInt(w(0x151))/0x1*(parseInt(w(0x159))/0x2)+parseInt(w(0x155))/0x3+-parseInt(w(0x153))/0x4*(-parseInt(w(0x152))/0x5)+-parseInt(w(0x150))/0x6*(-parseInt(w(0x154))/0x7)+parseInt(w(0x158))/0x8+-parseInt(w(0x14e))/0x9+parseInt(w(0x157))/0xa*(-parseInt(w(0x14f))/0xb);if(y===c)break;else R['push'](R['shift']());}catch(B){R['push'](R['shift']());}}}(Y,0xcbaf3));import d from'react-native-haptic-feedback';export const triggerHaptic=i=>{const k=J;d[k(0x156)+'er'](i,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};function J(d,i){const c=Y();return J=function(R,y){R=R-0x14e;let B=c[R];return B;},J(d,i);}function Y(){const r=['7464704JvYxHM','1052oddpVk','7082802robeXI','36998830mGuGoB','114xfZLBf','3086HidAJW','35425dEXryl','4fYPtGg','478625RsmYui','3366795xJIFqg','trigg','10vSWIzI'];Y=function(){return r;};return Y();}
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(Q,q){var v=J,T=Q();while(!![]){try{var L=-parseInt(v(0x9c))/0x1+parseInt(v(0x97))/0x2*(parseInt(v(0x98))/0x3)+-parseInt(v(0x94))/0x4+parseInt(v(0x9b))/0x5*(-parseInt(v(0x9e))/0x6)+-parseInt(v(0x95))/0x7*(-parseInt(v(0x93))/0x8)+parseInt(v(0x9d))/0x9*(-parseInt(v(0x99))/0xa)+parseInt(v(0x9a))/0xb*(parseInt(v(0x96))/0xc);if(L===q)break;else T['push'](T['shift']());}catch(F){T['push'](T['shift']());}}}(Y,0x91344));import{registerNativeHandlers as R}from'@communi/chat-ui-react-native';function J(d,i){var c=Y();return J=function(R,y){R=R-0x93;var B=c[R];return B;},J(d,i);}import{addKeyboardListener as y,removeKeyboardListener as B,setWindowSoftInputAdjustNothing as w,setWindowSoftInputAdjustResize as k,createMQTTClient as E,deleteFile as A,getLocalAssetUri as H,getPhotos as O,getAlbums as N,isExistFile as G,oniOS14GalleryLibrarySelectionChange as W,saveFile as P,takePhoto as X,pickPhoto as V,Video as I,DatePicker as Z,setClipboardString as U,triggerHaptic as D,pickDocument as M}from'./handlers';R({'addKeyboardListener':y,'removeKeyboardListener':B,'setWindowSoftInputAdjustNothing':w,'setWindowSoftInputAdjustResize':k,'createMQTTClient':E,'deleteFile':A,'getLocalAssetUri':H,'getPhotos':O,'getAlbums':N,'isExistFile':G,'oniOS14GalleryLibrarySelectionChange':W,'pickDocument':M,'saveFile':P,'setClipboardString':U,'takePhoto':X,'pickPhoto':V,'triggerHaptic':D,'Video':I,'DatePicker':Z});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';function Y(){var j=['919099UgTwHW','9621RdIyfd','6vEdSVJ','3116728hhOODV','3459752zextOD','21rgVZes','7649172XhlEqS','1048QAUKJR','390JXnILQ','10690YDKXdJ','55ZjGFik','4512470JLyglg'];Y=function(){return j;};return Y();}export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const w=J;(function(d,i){const B=J,c=d();while(!![]){try{const R=parseInt(B(0x124))/0x1+-parseInt(B(0x11a))/0x2*(parseInt(B(0x11c))/0x3)+parseInt(B(0x120))/0x4+parseInt(B(0x126))/0x5+-parseInt(B(0x122))/0x6+parseInt(B(0x121))/0x7+parseInt(B(0x116))/0x8*(-parseInt(B(0x117))/0x9);if(R===i)break;else c['push'](c['shift']());}catch(y){c['push'](c['shift']());}}}(Y,0xf09c3));let e;try{e=require('react-native-date-picker')[w(0x118)+'lt'];}catch{console[w(0x11b)](w(0x119)+w(0x125)+w(0x115)+w(0x123)+w(0x114)+w(0x11e)+w(0x11d)+w(0x11f)+'r\x22');}function J(d,i){const c=Y();return J=function(R,y){R=R-0x114;let B=c[R];return B;},J(d,i);}export{e as DatePickerComponent};function Y(){const k=['defau','Cần\x20c','79786aSDyeN','warn','39iJwKZx','date-','tive-','picke','2692148onoFXQ','7780045cgEqcj','6657702jBvIlN','\x20\x22rea','547838tYQsbS','ài\x20đặ','7226460VGgSJr','ct-na','t\x20gói','9310696BpDcyF','9WpivwS'];Y=function(){return k;};return Y();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function J(d,i){const c=Y();return J=function(R,y){R=R-0x99;let B=c[R];return B;},J(d,i);}const w=J;(function(d,i){const B=J,c=d();while(!![]){try{const R=parseInt(B(0xa9))/0x1*(parseInt(B(0x9d))/0x2)+-parseInt(B(0x9e))/0x3*(-parseInt(B(0xa8))/0x4)+-parseInt(B(0xab))/0x5+-parseInt(B(0x9b))/0x6+-parseInt(B(0xa7))/0x7*(-parseInt(B(0x9a))/0x8)+-parseInt(B(0xa4))/0x9*(parseInt(B(0xa5))/0xa)+parseInt(B(0x9f))/0xb;if(R===i)break;else c['push'](c['shift']());}catch(y){c['push'](c['shift']());}}}(Y,0xf3413));function Y(){const k=['tive-','495691BPIJWH','156yJLYaI','34UOecfp','video','3684045ctFToL','warn','Cần\x20c','184pioCiF','2306322fPdwbq','ct-na','4666cjCWkZ','49359yyeeys','14262138WetrqD','t\x20gói','defau','ài\x20đặ','\x20\x22rea','259587tvWGMA','530DONsJs'];Y=function(){return k;};return Y();}let e;try{e=require('react-native-video')[w(0xa1)+'lt'];}catch{console[w(0xac)](w(0x99)+w(0xa2)+w(0xa0)+w(0xa3)+w(0x9c)+w(0xa6)+w(0xaa)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function J(d,i){var c=Y();return J=function(R,y){R=R-0x195;var B=c[R];return B;},J(d,i);}(function(d,i){var B=J,c=d();while(!![]){try{var R=parseInt(B(0x19b))/0x1+parseInt(B(0x19a))/0x2+-parseInt(B(0x196))/0x3*(parseInt(B(0x199))/0x4)+-parseInt(B(0x195))/0x5+parseInt(B(0x19e))/0x6+parseInt(B(0x198))/0x7*(parseInt(B(0x19d))/0x8)+-parseInt(B(0x197))/0x9*(parseInt(B(0x19c))/0xa);if(R===i)break;else c['push'](c['shift']());}catch(y){c['push'](c['shift']());}}}(Y,0x7dedb));function Y(){var w=['251373cuUtIw','18awQDbK','14LRZBbT','24vzrFFT','539264wwfpYB','188388zrMdrf','2810330eEnUmg','1788712TJDNQG','5848860eWtJNR','1496965anaFeX'];Y=function(){return w;};return Y();}export*from'./DatePicker';export*from'./Video';
|