@communi/chat-react-native 2.6.2 → 2.6.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/getAlbums.js +1 -1
- package/src/handlers/getLocalAssetUri.js +1 -1
- package/src/handlers/getPhotos.js +1 -1
- package/src/handlers/index.js +1 -1
- package/src/handlers/isExistFile.js +1 -1
- package/src/handlers/oniOS14GalleryLibrarySelectionChange.js +1 -1
- package/src/handlers/pickDocument.js +1 -1
- package/src/handlers/pickPhoto.js +1 -1
- package/src/handlers/saveFile.js +1 -1
- package/src/handlers/setClipboardString.js +1 -1
- package/src/handlers/takePhoto.js +1 -1
- package/src/handlers/triggerHaptic.js +1 -1
- package/src/index.js +1 -1
- package/src/optionalDependencies/DatePicker.js +1 -1
- package/src/optionalDependencies/Video.js +1 -1
- package/src/optionalDependencies/index.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(r,W){var A=o,V=r();while(!![]){try{var D=-parseInt(A(0x7b))/0x1*(parseInt(A(0x80))/0x2)+-parseInt(A(0x83))/0x3+parseInt(A(0x79))/0x4+parseInt(A(0x7f))/0x5*(-parseInt(A(0x7a))/0x6)+parseInt(A(0x7c))/0x7*(parseInt(A(0x7e))/0x8)+-parseInt(A(0x81))/0x9+parseInt(A(0x82))/0xa*(parseInt(A(0x7d))/0xb);if(D===W)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(c,0x4c967));function o(r,W){var V=c();return o=function(D,E){D=D-0x79;var A=V[D];return A;},o(r,W);}function c(){var m=['300804FzVvEf','474sKqPns','70979wyLONJ','28uajMRV','407YClHrW','217528UaiFDk','25115cKandA','6qStVNm','4031973TONhza','357110ovNEXP','401454azCOQB'];c=function(){return m;};return c();}export*from'./src';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.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.6.
|
|
12
|
-
"@communi/chat-ui-react-native": "^2.6.
|
|
11
|
+
"@communi/chat-api-client-typescript": "^2.6.3",
|
|
12
|
+
"@communi/chat-ui-react-native": "^2.6.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
|
|
1
|
+
'use strict';const i=r;(function(D,E){const Y=r,A=D();while(!![]){try{const m=parseInt(Y(0x18e))/0x1*(-parseInt(Y(0x192))/0x2)+-parseInt(Y(0x196))/0x3*(-parseInt(Y(0x18f))/0x4)+-parseInt(Y(0x195))/0x5*(-parseInt(Y(0x193))/0x6)+-parseInt(Y(0x190))/0x7+parseInt(Y(0x18d))/0x8*(-parseInt(Y(0x191))/0x9)+-parseInt(Y(0x198))/0xa+-parseInt(Y(0x199))/0xb*(-parseInt(Y(0x19a))/0xc);if(m===E)break;else A['push'](A['shift']());}catch(H){A['push'](A['shift']());}}}(c,0x5b5c4));import W from'react';function c(){const e=['1640723bLvCpe','153ZwbiCv','18vYgJLd','940686wYgLON','eElem','5Dzllrv','6UuJPab','ent','146270rglkiI','363pByTmj','346188lYrrsE','creat','122680VmARkc','63717SJBgfc','697156pdJyNN'];c=function(){return e;};return c();}import{DatePickerComponent as V}from'../optionalDependencies/DatePicker';function r(o,W){const V=c();return r=function(D,E){D=D-0x18c;let A=V[D];return A;},r(o,W);}export const DatePicker=V?({modal:D,open:E,date:A,minimumDate:H,onConfirm:z,onCancel:y})=>W[i(0x18c)+i(0x194)+i(0x197)](V,{'modal':D,'open':E,'date':A,'minimumDate':H,'onConfirm':z,'onCancel':y}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const z=o;(function(V,D){const H=o,E=V();while(!![]){try{const A=parseInt(H(0xbf))/0x1*(parseInt(H(0xbb))/0x2)+-parseInt(H(0xb6))/0x3*(-parseInt(H(0xac))/0x4)+parseInt(H(0xc5))/0x5*(parseInt(H(0xaf))/0x6)+-parseInt(H(0xc6))/0x7+parseInt(H(0xc3))/0x8*(parseInt(H(0xc8))/0x9)+parseInt(H(0xc0))/0xa*(-parseInt(H(0xbc))/0xb)+-parseInt(H(0xb1))/0xc*(parseInt(H(0xb2))/0xd);if(A===D)break;else E['push'](E['shift']());}catch(m){E['push'](E['shift']());}}}(c,0x1c687));function o(r,W){const V=c();return o=function(D,E){D=D-0xac;let A=V[D];return A;},o(r,W);}function c(){const y=['isten','eKeyb','ndowS','_ADJU','9536ihZANT','681505iDzjnf','ener','ST_RE','48HxQuoU','20wqSrRG','ST_NO','THING','24YaTnlY','INPUT','10TDCfJW','936936aWSopp','remov','199881SqBCYF','yboar','oftIn','addKe','168tgAHhp','setWi','oardL','107742PfgxpV','dList','1265064sVpBzV','13ZCxNpu','putMo','SOFT_','SIZE','10581FtzbUf'];c=function(){return y;};return c();}import{PSKeyboard as r,SoftInputMode as W}from'@communi/keyboard-area-react-native';export const addKeyboardListener=V=>r[z(0xcb)+z(0xc9)+z(0xb0)+z(0xbd)](V),removeKeyboardListener=V=>r[z(0xc7)+z(0xb8)+z(0xae)+z(0xb7)+'er'](V),setWindowSoftInputAdjustNothing=()=>r[z(0xad)+z(0xb9)+z(0xca)+z(0xb3)+'de'](W[z(0xb4)+z(0xc4)+z(0xba)+z(0xc1)+z(0xc2)]),setWindowSoftInputAdjustResize=()=>r[z(0xad)+z(0xb9)+z(0xca)+z(0xb3)+'de'](W[z(0xb4)+z(0xc4)+z(0xba)+z(0xbe)+z(0xb5)]);
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const H=o;(function(W,V){const m=o,D=W();while(!![]){try{const E=parseInt(m(0xcb))/0x1+-parseInt(m(0xce))/0x2*(-parseInt(m(0xcc))/0x3)+parseInt(m(0xcd))/0x4+parseInt(m(0xcf))/0x5*(parseInt(m(0xc6))/0x6)+-parseInt(m(0xc4))/0x7+parseInt(m(0xc5))/0x8*(parseInt(m(0xca))/0x9)+-parseInt(m(0xc9))/0xa*(parseInt(m(0xc7))/0xb);if(E===V)break;else D['push'](D['shift']());}catch(A){D['push'](D['shift']());}}}(c,0x53e60));function c(){const t=['34wlANOS','186255qvvZhT','stanc','560714yVGSUE','1672fxgbGN','12SECwOI','9275057pOsyTz','getIn','10CjEibz','9450XvmNfV','543274qdBwxm','28956wBeyvJ','1062508WsIEZS'];c=function(){return t;};return c();}function o(r,W){const V=c();return o=function(D,E){D=D-0xc4;let A=V[D];return A;},o(r,W);}import{MQTTClient as r}from'@communi/mqtt-client-react-native';export const createMQTTClient=async W=>r[H(0xc8)+H(0xd0)+'e'](W);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const f=r;function r(o,W){const V=c();return r=function(D,E){D=D-0xe8;let A=V[D];return A;},r(o,W);}(function(D,E){const Z=r,A=D();while(!![]){try{const m=parseInt(Z(0xed))/0x1*(-parseInt(Z(0xf2))/0x2)+parseInt(Z(0xf5))/0x3*(-parseInt(Z(0xef))/0x4)+parseInt(Z(0xf6))/0x5+parseInt(Z(0xeb))/0x6*(parseInt(Z(0xe9))/0x7)+parseInt(Z(0xe8))/0x8+parseInt(Z(0xea))/0x9+parseInt(Z(0xee))/0xa;if(m===E)break;else A['push'](A['shift']());}catch(H){A['push'](A['shift']());}}}(c,0x32fdb));function c(){const N=['200313EmNdHB','48ByKMFa','error','552MxJHam','3751980dSLcyW','28BYzIzC','ignor','ent','678ngIqgE','creat','eElem','103383dAIkxH','197235XamNHH','728000OfIHEt','95648glpsDw'];c=function(){return N;};return c();}import W from'react';import{AudioVideoComponent as V}from'../optionalDependencies/Video';export const Video=V?({onBuffer:D,onEnd:E,onLoad:A,onProgress:m,paused:H,repeat:z,resizeMode:y,style:Y,uri:Q,videoRef:k})=>W[f(0xf3)+f(0xf4)+f(0xf1)](V,{'ignoreSilentSwitch':f(0xf0)+'e','onBuffer':D,'onEnd':E,'onError':q=>{const h=f;console[h(0xec)](q);},'onLoad':A,'onProgress':m,'paused':H,'ref':k,'repeat':z,'resizeMode':y,'source':{'uri':Q},'style':Y}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(W,V){const m=o,D=W();while(!![]){try{const E=parseInt(m(0x14a))/0x1+parseInt(m(0x13c))/0x2+parseInt(m(0x13d))/0x3*(parseInt(m(0x140))/0x4)+-parseInt(m(0x14c))/0x5+parseInt(m(0x147))/0x6*(parseInt(m(0x146))/0x7)+-parseInt(m(0x149))/0x8+-parseInt(m(0x141))/0x9*(-parseInt(m(0x13e))/0xa);if(E===V)break;else D['push'](D['shift']());}catch(A){D['push'](D['shift']());}}}(c,0x29061));function o(r,W){const V=c();return o=function(D,E){D=D-0x13c;let A=V[D];return A;},o(r,W);}function c(){const z=['log','delet','21xtytSR','476148XjVCbA','...','1329504QksVQl','103003jQiLkw','File\x20','1589035TKccLp','11736QNaZYo','684543KsscwA','420tRGdkz','ailed','4HpSuQn','16479pHHDah','unlin','ion\x20f'];c=function(){return z;};return c();}import r from'react-native-fs';export const deleteFile=async({uri:W})=>{const H=o;try{return await r[H(0x142)+'k'](W),!0x0;}catch(V){return console[H(0x144)](H(0x14b)+H(0x145)+H(0x143)+H(0x13f)+H(0x148),V),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const f=r;(function(A,H){const Z=r,t=A();while(!![]){try{const z=-parseInt(Z(0x1f2))/0x1*(parseInt(Z(0x1f8))/0x2)+parseInt(Z(0x209))/0x3+parseInt(Z(0x1f3))/0x4+-parseInt(Z(0x200))/0x5+parseInt(Z(0x1f5))/0x6+parseInt(Z(0x1fb))/0x7+parseInt(Z(0x1ed))/0x8*(-parseInt(Z(0x1ea))/0x9);if(z===H)break;else t['push'](t['shift']());}catch(y){t['push'](t['shift']());}}}(o,0x89856));import{CameraRoll as W}from'@react-native-camera-roll/camera-roll';import{Platform as V}from'react-native';import{verifyAndroidPermissions as D}from'./getPhotos';import E from'lodash';function o(){const J=['1111628nXdeKF','All','6624492XRsXIh','bums\x20','all','80pzCKfc','title','edges','5025349itnniG','andro','otos\x20','Album','Recen','489830gABBGw','image','otos','node','forEa','push','getAl','getPh','clone','1858566sQXJVR','370962GhCZup','Smart','lengt','376uNVChW','selec','bums','Error','Deep','3023fEjeVz'];o=function(){return J;};return o();}function r(c,W){const V=o();return r=function(D,E){D=D-0x1ea;let A=V[D];return A;},r(c,W);}export const getAlbums=async({albumType:A=f(0x1eb)+f(0x1fe),assetType:H=f(0x1f4)})=>{const h=f;try{if(V['OS']===h(0x1fc)+'id'&&!await D())throw new Error(h(0x207)+h(0x1fd)+h(0x1f0));const z=await W[h(0x206)+h(0x1ef)]({'albumType':A,'assetType':H});if(z&&z[h(0x1ec)+'h']){const y=[];return E[h(0x208)+h(0x1f1)](z)[h(0x204)+'ch'](Y=>{const u=h,i=new Promise(async(Q,k)=>{const N=r;try{const q=await W[N(0x207)+N(0x202)]({'assetType':H,'first':0x1,'groupName':Y[N(0x1f9)],'groupTypes':V[N(0x1ee)+'t']({'ios':Y[N(0x1f9)]===N(0x1ff)+'ts'?N(0x1f4):N(0x1eb)+N(0x1fe),'android':void 0x0})});q?.[N(0x1fa)]?.[0x0]?.[N(0x203)]?.[N(0x201)]&&(Y[N(0x201)]=q[N(0x1fa)][0x0][N(0x203)][N(0x201)]),Q(Y);}catch{Q(Y);}});y[u(0x205)](i);}),{'Albums':await Promise[h(0x1f7)](y)};}return{'Albums':[]};}catch{throw new Error(h(0x206)+h(0x1f6)+h(0x1f0));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(V,D){const H=r,E=V();while(!![]){try{const A=-parseInt(H(0xf3))/0x1*(parseInt(H(0xf7))/0x2)+-parseInt(H(0xfc))/0x3*(-parseInt(H(0xf2))/0x4)+-parseInt(H(0x100))/0x5*(parseInt(H(0xf5))/0x6)+parseInt(H(0xfb))/0x7*(-parseInt(H(0xfe))/0x8)+-parseInt(H(0x101))/0x9*(parseInt(H(0xf4))/0xa)+parseInt(H(0xfd))/0xb*(-parseInt(H(0xff))/0xc)+parseInt(H(0xfa))/0xd;if(A===D)break;else E['push'](E['shift']());}catch(m){E['push'](E['shift']());}}}(c,0x7bdd2));function r(o,W){const V=c();return r=function(D,E){D=D-0xf2;let A=V[D];return A;},r(o,W);}function c(){const z=['277490OLERZG','i\x20Err','save','36823085IczfXi','539ixKlVv','2319kubTTt','33jzGWls','92672ePSNaS','3980664ArdjCK','1585EOJRno','5105988UlQCJo','setUr','calAs','4572jjVmkK','5gNHgIJ','10tDelgj','1146vFSGyK','getLo'];c=function(){return z;};return c();}import{CameraRoll as W}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async V=>{const t=r;try{return await W[t(0xf9)](V);}catch{throw new Error(t(0xf6)+t(0x103)+t(0x102)+t(0xf8)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function c(){const N=['image','TORAG','e\x20Lat','Versi','ame','93143MtYffq','48GDmldj','ion','Photo','reque','react','hare\x20','143VNiDlO','NAL_S','EXTER','ants','check','73749hvgCzY','990372vcOGYU','Allow','10hdhUDV','stMul','and\x20s','filen','READ_','page_','playa','photo','age','7169247LGxoXS','picke','ursor','otos','MEDIA','album','cess\x20','minor','edges','ired\x20','Recen','5nnDaTP','ize','Deny','s\x20are','3303408NVTPNh','Permi','fileS','Ask\x20M','ratio','RESUL','ext_p','node','has_n','ess','getPh','andro','map','PERMI','end_c','eVers','2625144MEwVgf','\x20requ','63Xgatto','All','selec','const','tiple','all','SSION','bleDu','Nativ','_IMAG','_VIDE','Error','then','GRANT','ssion','to\x20ac','otos\x20','Size','info','531498hhCNwR','s\x20Acc'];c=function(){return N;};return c();}(function(D,E){const Z=o,m=D();while(!![]){try{const H=-parseInt(Z(0xe7))/0x1+parseInt(Z(0xe8))/0x2*(parseInt(Z(0xa0))/0x3)+-parseInt(Z(0xbb))/0x4*(parseInt(Z(0xb7))/0x5)+parseInt(Z(0xe0))/0x6*(parseInt(Z(0xcd))/0x7)+-parseInt(Z(0xcb))/0x8+-parseInt(Z(0xac))/0x9*(parseInt(Z(0xa3))/0xa)+parseInt(Z(0xee))/0xb*(parseInt(Z(0xa1))/0xc);if(H===E)break;else m['push'](m['shift']());}catch(t){m['push'](m['shift']());}}}(c,0x65aa5));function o(r,W){const V=c();return o=function(D,E){D=D-0x9f;let A=V[D];return A;},o(r,W);}import{CameraRoll as r}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as W,Platform as V}from'react-native';export const verifyAndroidPermissions=async()=>{const f=o,D=V[f(0xd0)+f(0xf1)][f(0xec)+f(0xd5)+f(0xca)+f(0xe9)]?.[f(0xb3)]>=0x47,m=V[f(0xe5)+'on']>=0x21,H=D&&m;return await((()=>H?Promise[f(0xd2)]([W[f(0x9f)](W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd6)+'ES']),W[f(0x9f)](W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd7)+'O'])])[f(0xd9)](([t,z])=>t&&z):W[f(0x9f)](W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xf0)+f(0xef)+f(0xe3)+'E']))())?!0x0:await((()=>H?W[f(0xeb)+f(0xa4)+f(0xd1)]([W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd6)+'ES'],W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd7)+'O']])[f(0xd9)](t=>t[W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd6)+'ES']]===W[f(0xc0)+'TS'][f(0xda)+'ED']&&t[W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xb0)+f(0xd7)+'O']]===W[f(0xc0)+'TS'][f(0xda)+'ED']):W[f(0xeb)+'st'](W[f(0xc8)+f(0xd3)+'S'][f(0xa7)+f(0xf0)+f(0xef)+f(0xe3)+'E'],{'buttonNegative':f(0xb9),'buttonNeutral':f(0xbe)+f(0xe4)+'er','buttonPositive':f(0xa2),'message':f(0xbc)+f(0xdb)+f(0xba)+f(0xcc)+f(0xb5)+f(0xdc)+f(0xb2)+f(0xa5)+f(0xed)+f(0xaa)+'s.','title':f(0xea)+f(0xe1)+f(0xc4)})[f(0xd9)](t=>t===W[f(0xc0)+'TS'][f(0xda)+'ED']))());},getPhotos=async({after:D,first:m,groupName:H,groupTypes:z})=>{const h=o;try{if(V['OS']===h(0xc6)+'id'&&!await verifyAndroidPermissions())throw new Error(h(0xc5)+h(0xdd)+h(0xd8));const y=await r[h(0xc5)+h(0xaf)]({'after':D,'assetType':h(0xce),'groupName':H===h(0xb6)+'ts'?void 0x0:H,'groupTypes':V[h(0xcf)+'t']({'ios':H===h(0xb6)+'ts'?h(0xce):z,'android':void 0x0}),'first':m,'includeSharedAlbums':!0x0,'include':[h(0xbd)+h(0xb8),h(0xa6)+h(0xe6),h(0xe2)+h(0xde),h(0xa9)+h(0xd4)+h(0xbf)+'n',h(0xb1)+'s']}),Y=y[h(0xb4)][h(0xc7)](q=>({'source':h(0xad)+'r',...q[h(0xc2)][h(0xe2)],'fileSize':q[h(0xc2)][h(0xe2)][h(0xbd)+h(0xb8)]??0x0})),Q=y[h(0xa8)+h(0xdf)][h(0xc3)+h(0xc1)+h(0xab)],k=y[h(0xa8)+h(0xdf)][h(0xc9)+h(0xae)];return{'assets':Y,'endCursor':k,'hasNextPage':Q};}catch{throw new Error(h(0xc5)+h(0xdd)+h(0xd8));}};
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(r,W){var A=o,V=r();while(!![]){try{var D=parseInt(A(0x1a0))/0x1*(-parseInt(A(0x19d))/0x2)+-parseInt(A(0x198))/0x3*(parseInt(A(0x19a))/0x4)+parseInt(A(0x19c))/0x5+parseInt(A(0x195))/0x6*(parseInt(A(0x19b))/0x7)+parseInt(A(0x19e))/0x8*(-parseInt(A(0x19f))/0x9)+-parseInt(A(0x194))/0xa*(-parseInt(A(0x196))/0xb)+-parseInt(A(0x197))/0xc*(-parseInt(A(0x199))/0xd);if(D===W)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(c,0xcebda));export*from'./deleteFile';export*from'./getLocalAssetUri';function o(r,W){var V=c();return o=function(D,E){D=D-0x194;var A=V[D];return A;},o(r,W);}export*from'./getPhotos';export*from'./getAlbums';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';function c(){var m=['7846947wckfhQ','206047DauYyr','18010AUHgyk','73410YFIEGz','3740teCftD','7428dRVhZd','3GciteF','25753pTzAQd','264888ZvrPmt','35dWiuMX','2516510evQdkg','6JkLYkA','8zDNLuk'];c=function(){return m;};return c();}export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function c(){const z=['2170203yiQUkO','16xhNDSN','exist','e\x20Err','1005rEzNbW','isExi','18215450pkPvxd','stFil','1093782axgHOt','12105CxMLcd','482XRsuxt','778725TnJrhN','5464GVQouX','2291800RXVePG'];c=function(){return z;};return c();}(function(V,D){const H=o,E=V();while(!![]){try{const A=parseInt(H(0xda))/0x1*(-parseInt(H(0xe0))/0x2)+-parseInt(H(0xd6))/0x3+-parseInt(H(0xd7))/0x4*(-parseInt(H(0xe1))/0x5)+-parseInt(H(0xde))/0x6+parseInt(H(0xd5))/0x7+parseInt(H(0xd4))/0x8*(-parseInt(H(0xdf))/0x9)+parseInt(H(0xdc))/0xa;if(A===D)break;else E['push'](E['shift']());}catch(m){E['push'](E['shift']());}}}(c,0xac36b));import W from'react-native-fs';function o(r,W){const V=c();return o=function(D,E){D=D-0xd4;let A=V[D];return A;},o(r,W);}export const isExistFile=async V=>{const t=o;try{return await W[t(0xd8)+'s'](V);}catch{throw new Error(t(0xdb)+t(0xdd)+t(0xd9)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function W(o,r){const V=c();return W=function(D,E){D=D-0x95;let A=V[D];return A;},W(o,r);}const y=W;function c(){const Q=['4254hZRGLI','120kESnrZ','ionCh','4739nOTzkJ','ios','15153820KTbdaf','10UoQMMJ','ange','5YBCyuw','raryS','addLi','remov','Versi','onLib','145491azjxYS','5415836HVggre','stene','222669ZcmmbV','elect','110729MUeQay','14468800VLfnrF'];c=function(){return Q;};return c();}(function(E,A){const z=W,m=E();while(!![]){try{const H=parseInt(z(0x9f))/0x1+-parseInt(z(0xa7))/0x2*(parseInt(z(0x9a))/0x3)+parseInt(z(0x9b))/0x4*(-parseInt(z(0xa9))/0x5)+parseInt(z(0xa1))/0x6*(-parseInt(z(0xa4))/0x7)+parseInt(z(0xa0))/0x8+parseInt(z(0x9d))/0x9*(-parseInt(z(0xa2))/0xa)+parseInt(z(0xa6))/0xb;if(H===A)break;else m['push'](m['shift']());}catch(t){m['push'](m['shift']());}}}(c,0xe17e4));import{cameraRollEventEmitter as V}from'@react-native-camera-roll/camera-roll';import{Platform as D}from'react-native';const i=D['OS']===y(0xa5)&&parseInt(D[y(0x98)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(E){const Y=y;if(i){const A=V[Y(0x96)+Y(0x9c)+'r'](Y(0x99)+Y(0x95)+Y(0x9e)+Y(0xa3)+Y(0xa8),E);return{'unsubscribe':()=>{const e=Y;A[e(0x97)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(V,D){const H=r,E=V();while(!![]){try{const A=-parseInt(H(0x1f5))/0x1+-parseInt(H(0x1e7))/0x2*(parseInt(H(0x1ea))/0x3)+-parseInt(H(0x1ef))/0x4*(-parseInt(H(0x1f0))/0x5)+parseInt(H(0x1ed))/0x6*(parseInt(H(0x1e8))/0x7)+parseInt(H(0x1f2))/0x8+parseInt(H(0x1f1))/0x9+parseInt(H(0x1e6))/0xa*(parseInt(H(0x1f6))/0xb);if(A===D)break;else E['push'](E['shift']());}catch(m){E['push'](E['shift']());}}}(o,0x939a4));function r(c,W){const V=o();return r=function(D,E){D=D-0x1e6;let A=V[D];return A;},r(c,W);}import W from'react-native-document-picker';function o(){const z=['480XpFyIi','1766612apBZTM','7OOkozp','types','3KSOORm','slice','lengt','260454lcOLAO','pick','4744EmLvMr','1945ZinOlX','6315912EGeDyi','6219344RIhIRx','allFi','les','1166911ENURFX','153736PLhsgm','map'];o=function(){return z;};return o();}export const pickDocument=async V=>{const t=r;try{let D=await W[t(0x1ee)]({'allowMultiSelection':!0x0,'type':[W[t(0x1e9)][t(0x1f3)+t(0x1f4)]]});return V&&D[t(0x1ec)+'h']>V&&(D=D[t(0x1eb)](0x0,V)),{'assets':D[t(0x1f7)](({name:E,size:A,uri:m})=>({'uri':m,'size':A,'name':E})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const Z=W;(function(A,m){const q=W,H=A();while(!![]){try{const t=-parseInt(q(0x10d))/0x1*(-parseInt(q(0x110))/0x2)+parseInt(q(0xec))/0x3*(-parseInt(q(0xee))/0x4)+parseInt(q(0x10e))/0x5*(-parseInt(q(0x111))/0x6)+-parseInt(q(0x100))/0x7+-parseInt(q(0x104))/0x8*(-parseInt(q(0x10c))/0x9)+parseInt(q(0xf9))/0xa*(-parseInt(q(0xf4))/0xb)+-parseInt(q(0xfb))/0xc*(-parseInt(q(0x103))/0xd);if(t===m)break;else H['push'](H['shift']());}catch(z){H['push'](H['shift']());}}}(r,0x1f9dc));function r(){const N=['ndexO','lastI','width','openP','subst','rom\x20g','676962KFSOfq','514gQMDaF','905uBGnYD','picke','614SsNxwq','4650ZMyWag','heigh','\x20of\x20p','627834bpQpug','error','4KEdsLg','getSi','\x20size','ker\x20f','\x20get\x20','ictur','168949xjBmGK','ios','ring','aller','image','60qLzUyG','icker','754212tCEJyh','Error','size','e\x20pic','andro','1765414qUAwEw','max','path','91mbjtKK','24USCmea','min'];r=function(){return N;};return r();}function W(c,o){const V=r();return W=function(D,E){D=D-0xec;let A=V[D];return A;},W(c,o);}import{Image as V,Platform as D}from'react-native';import E from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:A=D['OS']===Z(0xf5)?0.8:0x1,cropping:m=!0x1})=>{const f=Z,H=await E[f(0x109)+f(0xfa)]({'compressImageQuality':Math[f(0x105)](Math[f(0x101)](0x0,A),0x1),'cropping':m===!0x0});if(H[f(0x112)+'t']&&H[f(0x108)]&&H[f(0x102)]){let z;if(D['OS']===f(0xff)+'id'){const y=()=>new Promise(Y=>{const h=f;V[h(0xef)+'ze'](H[h(0x102)],(Q,k)=>{Y({'height':k,'width':Q});});});try{const Y=await y();z={'width':Y[f(0x108)],'height':Y[f(0x112)+'t']};}catch(Q){console[f(0xed)](f(0xfc)+f(0xf2)+f(0xf8)+f(0xf0)+f(0x113)+f(0xf3)+f(0xfe)+f(0xf1)+f(0x10b)+f(0xf7)+'y\x20',Q);}}else z={'height':H[f(0x112)+'t'],'width':H[f(0x108)]};if(z){const k=H[f(0x102)][f(0x107)+f(0x106)+'f']('/');return{'source':f(0x10f)+'r','name':H[f(0x102)][f(0x10a)+f(0xf6)](k+0x1),'size':H[f(0xfd)],'uri':H[f(0x102)],...z};}else return;}};
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(c,
|
|
1
|
+
'use strict';function c(){const z=['sDire','1808RYSdoe','Cache','2668072AlEMgv','g\x20ima','oadFi','promi','7626210wULZLY','Path','372fvSccv','Downl','oadin','file:','3270258GyjTwK','9268odHBWb','ctory','5FuBxig','ge\x20fa','776058jHvUmb','downl','iled.','1803599TsJzLu','423PFeXCo'];c=function(){return z;};return c();}(function(V,D){const H=o,E=V();while(!![]){try{const A=-parseInt(H(0x16f))/0x1*(-parseInt(H(0x15a))/0x2)+parseInt(H(0x162))/0x3*(-parseInt(H(0x167))/0x4)+parseInt(H(0x169))/0x5*(-parseInt(H(0x16b))/0x6)+parseInt(H(0x16e))/0x7+-parseInt(H(0x15c))/0x8+-parseInt(H(0x166))/0x9+parseInt(H(0x160))/0xa;if(A===D)break;else E['push'](E['shift']());}catch(m){E['push'](E['shift']());}}}(c,0x4697c));import W from'react-native-fs';function o(r,W){const V=c();return o=function(D,E){D=D-0x159;let A=V[D];return A;},o(r,W);}export const saveFile=async({fileName:V,fromUrl:D,onProgress:E})=>{const t=o;try{const A=W[t(0x15b)+t(0x159)+t(0x168)+t(0x161)]+'/'+encodeURIComponent(V);return await W[t(0x16c)+t(0x15e)+'le']({'fromUrl':D,'toFile':A,'background':!0x0,'discretionary':!0x0,'progress':E,'begin':m=>{},'progressDivider':0x5})[t(0x15f)+'se'],t(0x165)+'//'+A;}catch{throw new Error(t(0x163)+t(0x164)+t(0x15d)+t(0x16a)+t(0x16d)+'..');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const E=
|
|
1
|
+
'use strict';function o(r,W){const V=c();return o=function(D,E){D=D-0x164;let A=V[D];return A;},o(r,W);}function c(){const z=['3621RpppOr','6657777cuaXcT','630950LeFGAW','2434bTLzSZ','940929CdaBsK','4107812ehFAWF','35xOgGnL','1033632GgPDUA','8jasIHP','ring','5156340stLHsz','setSt'];c=function(){return z;};return c();}const H=o;(function(W,V){const m=o,D=W();while(!![]){try{const E=parseInt(m(0x164))/0x1+parseInt(m(0x16f))/0x2*(parseInt(m(0x16c))/0x3)+-parseInt(m(0x165))/0x4+parseInt(m(0x16a))/0x5+parseInt(m(0x167))/0x6*(-parseInt(m(0x166))/0x7)+-parseInt(m(0x168))/0x8*(parseInt(m(0x16d))/0x9)+-parseInt(m(0x16e))/0xa;if(E===V)break;else D['push'](D['shift']());}catch(A){D['push'](D['shift']());}}}(c,0xb7183));import r from'@react-native-clipboard/clipboard';export const setClipboardString=W=>r[H(0x16b)+H(0x169)](W);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function c(){const F=['\x20get\x20','User\x20','andro','AGAIN','issio','228339UdeRQm','amera','CAMER','size','NEVER','min','e\x20cap','did\x20n','PERMI','ndexO','2158980VcGtzs','max','RESUL','\x20size','ra\x20','Error','check','489836SlGqxN','camer','ntSta','openC','1547826maxXYH','messa','lastI','ictur','ot\x20gr','reque','_ASK_','image','path','DENIE','103412mAfRKs','width','curre','88nzDMYX','subst','ios','heigh','\x20from','\x20came','utred','\x20perm','activ','SSION','2mgziEI','ring','555561gGDtlm','4244166GCgEGA','\x20of\x20p','error','ant\x20c','getSi','65hzZZkZ'];c=function(){return F;};return c();}const J=o;function o(r,W){const V=c();return o=function(D,E){D=D-0x1f3;let A=V[D];return A;},o(r,W);}(function(m,H){const u=o,t=m();while(!![]){try{const z=parseInt(u(0x228))/0x1+parseInt(u(0x209))/0x2*(-parseInt(u(0x20b))/0x3)+parseInt(u(0x1fc))/0x4*(-parseInt(u(0x211))/0x5)+parseInt(u(0x20c))/0x6+-parseInt(u(0x22c))/0x7+parseInt(u(0x1ff))/0x8*(-parseInt(u(0x217))/0x9)+parseInt(u(0x221))/0xa;if(z===H)break;else t['push'](t['shift']());}catch(y){t['push'](t['shift']());}}}(c,0x5f9c4));import{AppState as W,Image as V,PermissionsAndroid as D,Platform as E}from'react-native';import A from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:m=E['OS']===J(0x201)?0.8:0x1,cropping:H=!0x1})=>{const K=J;if(E['OS']===K(0x214)+'id'&&D[K(0x21f)+K(0x208)+'S'][K(0x219)+'A']&&!await D[K(0x227)](D[K(0x21f)+K(0x208)+'S'][K(0x219)+'A'])){const z=await D[K(0x1f7)+'st'](D[K(0x21f)+K(0x208)+'S'][K(0x219)+'A']);if(z===D[K(0x223)+'TS'][K(0x1fb)+'D'])return{'cancelled':!0x0};if(z===D[K(0x223)+'TS'][K(0x21b)+K(0x1f8)+K(0x215)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const y=await A[K(0x22b)+K(0x218)]({'compressImageQuality':Math[K(0x21c)](Math[K(0x222)](0x0,m),0x1),'cropping':H===!0x0});if(y[K(0x202)+'t']&&y[K(0x1fd)]&&y[K(0x1fa)]){let Y;if(E['OS']===K(0x214)+'id'){const Q=()=>new Promise(k=>{const j=K;V[j(0x210)+'ze'](y[j(0x1fa)],(q,Z)=>{k({'height':Z,'width':q});});});try{const k=await Q();Y={'width':k[K(0x1fd)],'height':k[K(0x202)+'t']};}catch(q){console[K(0x20e)](K(0x226)+K(0x212)+K(0x1f9)+K(0x224)+K(0x20d)+K(0x1f5)+K(0x21d)+K(0x205)+K(0x203)+K(0x204)+K(0x225),q);}}else Y={'height':y[K(0x202)+'t'],'width':y[K(0x1fd)]};if(Y){const Z=y[K(0x1fa)][K(0x1f4)+K(0x220)+'f']('/');return{'cancelled':!0x1,'source':K(0x229)+'a','name':y[K(0x1fa)][K(0x200)+K(0x20a)](Z+0x1),'size':y[K(0x21a)],'uri':y[K(0x1fa)],...Y};}else return;}}catch(f){if(f instanceof Error&&E['OS']===K(0x201)&&W[K(0x1fe)+K(0x22a)+'te']===K(0x207)+'e'){const N=K(0x213)+K(0x21e)+K(0x1f6)+K(0x20f)+K(0x218)+K(0x206)+K(0x216)+'n.';if(f[K(0x1f3)+'ge']===N)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(W,V){const m=o,D=W();while(!![]){try{const E=-parseInt(m(0x1e1))/0x1*(-parseInt(m(0x1da))/0x2)+parseInt(m(0x1d7))/0x3+-parseInt(m(0x1db))/0x4*(-parseInt(m(0x1dc))/0x5)+-parseInt(m(0x1d9))/0x6*(parseInt(m(0x1dd))/0x7)+-parseInt(m(0x1df))/0x8*(parseInt(m(0x1d8))/0x9)+-parseInt(m(0x1e0))/0xa*(-parseInt(m(0x1de))/0xb)+-parseInt(m(0x1d6))/0xc;if(E===V)break;else D['push'](D['shift']());}catch(A){D['push'](D['shift']());}}}(c,0x826bc));function o(r,W){const V=c();return o=function(D,E){D=D-0x1d6;let A=V[D];return A;},o(r,W);}import r from'react-native-haptic-feedback';function c(){const z=['837171PBRJsG','12WSPVTL','2ecVEok','4XHomez','161375HjUnyg','934633cgGQEy','121RhEOIl','32ksZrwu','349220axKKQp','991243mGMNDP','trigg','9392448avllWW','1645086ZaMAGZ'];c=function(){return z;};return c();}export const triggerHaptic=W=>{const H=o;r[H(0x1e2)+'er'](W,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(R,v){var O=V,C=R();while(!![]){try{var U=-parseInt(O(0x177))/0x1*(parseInt(O(0x172))/0x2)+-parseInt(O(0x170))/0x3+parseInt(O(0x178))/0x4*(parseInt(O(0x16e))/0x5)+-parseInt(O(0x176))/0x6*(parseInt(O(0x174))/0x7)+-parseInt(O(0x16f))/0x8+parseInt(O(0x173))/0x9*(parseInt(O(0x16d))/0xa)+-parseInt(O(0x171))/0xb*(-parseInt(O(0x175))/0xc);if(U===v)break;else C['push'](C['shift']());}catch(w){C['push'](C['shift']());}}}(W,0x40f64));function W(){var T=['384JQpTFp','16404IoBvUD','52ugqIkX','845636DIORZs','1756190WfFJtN','10rbepOq','3976776XQeYag','1540452yPcmxo','273493ysxYQU','1150jSmSZw','9AQDFlp','224sqbtdY'];W=function(){return T;};return W();}import{registerNativeHandlers as D}from'@communi/chat-ui-react-native';import{addKeyboardListener as E,removeKeyboardListener as A,setWindowSoftInputAdjustNothing as H,setWindowSoftInputAdjustResize as z,createMQTTClient as y,deleteFile as Y,getLocalAssetUri as Q,getPhotos as k,getAlbums as q,isExistFile as Z,oniOS14GalleryLibrarySelectionChange as N,saveFile as J,takePhoto as K,pickPhoto as j,Video as F,DatePicker as L,setClipboardString as X,triggerHaptic as I,pickDocument as B}from'./handlers';D({'addKeyboardListener':E,'removeKeyboardListener':A,'setWindowSoftInputAdjustNothing':H,'setWindowSoftInputAdjustResize':z,'createMQTTClient':y,'deleteFile':Y,'getLocalAssetUri':Q,'getPhotos':k,'getAlbums':q,'isExistFile':Z,'oniOS14GalleryLibrarySelectionChange':N,'pickDocument':B,'saveFile':J,'setClipboardString':X,'takePhoto':K,'pickPhoto':j,'triggerHaptic':I,'Video':F,'DatePicker':L});export*from'@communi/chat-ui-react-native';export*from'@communi/keyboard-area-react-native';export*from'@communi/mqtt-client-react-native';function V(c,o){var r=W();return V=function(D,E){D=D-0x16d;var A=r[D];return A;},V(c,o);}export*from'@communi/mqtt-client-interface-typescript';export*from'@communi/chat-api-client-typescript';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const m=o;(function(r,W){const A=o,V=r();while(!![]){try{const D=parseInt(A(0x1dc))/0x1+parseInt(A(0x1d9))/0x2+parseInt(A(0x1e0))/0x3+parseInt(A(0x1e2))/0x4+parseInt(A(0x1d7))/0x5*(parseInt(A(0x1d1))/0x6)+-parseInt(A(0x1db))/0x7*(parseInt(A(0x1d4))/0x8)+-parseInt(A(0x1d5))/0x9;if(D===W)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(c,0x524c8));function o(r,W){const V=c();return o=function(D,E){D=D-0x1d0;let A=V[D];return A;},o(r,W);}let e;try{e=require('react-native-date-picker')[m(0x1dd)+'lt'];}catch{console[m(0x1df)](m(0x1d6)+m(0x1da)+m(0x1d0)+m(0x1d2)+m(0x1d8)+m(0x1e1)+m(0x1de)+m(0x1d3)+'r\x22');}export{e as DatePickerComponent};function c(){const H=['\x20\x22rea','picke','39800oUiEaM','15040287eIbcVk','Cần\x20c','195ejXuIQ','ct-na','324320sDYVFO','ài\x20đặ','371PIiLLN','479233kJwlcJ','defau','date-','warn','1863702NYOxyz','tive-','2320056ZITjfC','t\x20gói','66042PzZNXf'];c=function(){return H;};return c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const m=o;(function(r,W){const A=o,V=r();while(!![]){try{const D=parseInt(A(0x12b))/0x1*(-parseInt(A(0x11b))/0x2)+-parseInt(A(0x12c))/0x3*(parseInt(A(0x123))/0x4)+-parseInt(A(0x128))/0x5*(-parseInt(A(0x121))/0x6)+parseInt(A(0x11f))/0x7*(parseInt(A(0x125))/0x8)+-parseInt(A(0x12e))/0x9+parseInt(A(0x122))/0xa+-parseInt(A(0x11e))/0xb;if(D===W)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(c,0x89b6d));let e;function c(){const H=['\x20\x22rea','ài\x20đặ','1844275sNhCva','defau','ct-na','21566jbDXCh','25107ZkdHrP','t\x20gói','8388288JFqViZ','2tHhSUB','warn','video','113795RhKkyG','7XGfZuD','Cần\x20c','12UTsxsj','4639580zcVsKO','244KkqylP','tive-','6694888ObspGu'];c=function(){return H;};return c();}function o(r,W){const V=c();return o=function(D,E){D=D-0x11b;let A=V[D];return A;},o(r,W);}try{e=require('react-native-video')[m(0x129)+'lt'];}catch{console[m(0x11c)](m(0x120)+m(0x127)+m(0x12d)+m(0x126)+m(0x12a)+m(0x124)+m(0x11d)+'\x22');}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(r,W){var A=o,V=r();while(!![]){try{var D=-parseInt(A(0xa9))/0x1+-parseInt(A(0xa7))/0x2+-parseInt(A(0xae))/0x3+parseInt(A(0xaf))/0x4*(-parseInt(A(0xad))/0x5)+-parseInt(A(0xab))/0x6*(parseInt(A(0xb0))/0x7)+-parseInt(A(0xa8))/0x8*(-parseInt(A(0xac))/0x9)+parseInt(A(0xaa))/0xa;if(D===W)break;else V['push'](V['shift']());}catch(E){V['push'](V['shift']());}}}(c,0xf3f69));export*from'./DatePicker';function c(){var m=['5369707vzTuJK','3149460eevpvG','8uERTno','1179686sxXTEh','66456540wvKzfu','6BhInNM','11154555VYbmvv','1072695bchiUd','4300224QixxqW','36aIRqig'];c=function(){return m;};return c();}function o(r,W){var V=c();return o=function(D,E){D=D-0xa7;var A=V[D];return A;},o(r,W);}export*from'./Video';
|