@communi/chat-react-native 4.0.0 → 4.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 +3 -2
- package/src/PSChat.js +1 -1
- package/src/files/PSFileOpenProvider.js +1 -1
- package/src/files/saveCachedFileToDownloads.js +1 -1
- 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/iOS14RefreshGallerySelection.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/shareImage.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 b(N,U){var H=T();return b=function(h,r){h=h-0x11f;var s=H[h];return s;},b(N,U);}(function(N,U){var s=b,H=N();while(!![]){try{var h=-parseInt(s(0x123))/0x1*(parseInt(s(0x11f))/0x2)+-parseInt(s(0x121))/0x3+parseInt(s(0x128))/0x4*(-parseInt(s(0x120))/0x5)+parseInt(s(0x124))/0x6+-parseInt(s(0x122))/0x7+-parseInt(s(0x126))/0x8+-parseInt(s(0x125))/0x9*(-parseInt(s(0x127))/0xa);if(h===U)break;else H['push'](H['shift']());}catch(r){H['push'](H['shift']());}}}(T,0xa4e6a));export*from'./src';function T(){var E=['2299554QnqQnC','7524776NMyVIT','11AREVpx','160470rBALUW','9fXgdsG','7403296YLwbnu','47115710kSJZrK','687884cHINeo','204366MvpORV','5jGdNDC'];T=function(){return E;};return T();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@communi/chat-react-native",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "PiScale Chat React Native",
|
|
5
5
|
"homepage": "https://github.com/piscale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"types": "index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"lodash": "4.17.21",
|
|
11
12
|
"@communi/chat-api-client-typescript": "^3.0.0",
|
|
12
|
-
"@communi/chat-ui-react-native": "^4.0.
|
|
13
|
+
"@communi/chat-ui-react-native": "^4.0.2",
|
|
13
14
|
"@communi/keyboard-area-react-native": "^3.0.0",
|
|
14
15
|
"@communi/mqtt-client-interface-typescript": "^3.0.0",
|
|
15
16
|
"@communi/mqtt-client-react-native": "^3.0.0"
|
package/src/PSChat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(h,r){const q=b,s=h();while(!![]){try{const E=-parseInt(q(0x15a))/0x1+-parseInt(q(0x159))/0x2*(parseInt(q(0x150))/0x3)+-parseInt(q(0x155))/0x4*(-parseInt(q(0x153))/0x5)+parseInt(q(0x14d))/0x6*(-parseInt(q(0x152))/0x7)+-parseInt(q(0x15e))/0x8+-parseInt(q(0x156))/0x9+parseInt(q(0x15d))/0xa;if(E===r)break;else s['push'](s['shift']());}catch(K){s['push'](s['shift']());}}}(T,0x744f1));import N from'react';import{PSChat as U}from'@communi/chat-ui-react-native';function T(){const X=['133707SqwDtu','70aSLgfc','color','182812fqcUTn','5926878TXpNnq','stall','ApkIn','62uiCmsw','70245FuOBMr','ent','allow','21934870LpChbN','1600344DUjjnL','creat','174lksljX','enabl','eElem','84597STSSQN','ation'];T=function(){return X;};return T();}import{PSFileOpenProvider as H}from'./files/PSFileOpenProvider';function b(N,U){const H=T();return b=function(h,r){h=h-0x14c;let s=H[h];return s;},b(N,U);}export function PSChat({props:h,children:s}){const J=b,{fileActions:E,...K}=h;return N[J(0x14c)+J(0x14f)+J(0x15b)](U,{'props':K},E?.[J(0x14e)+'ed']===!0x1?s:N[J(0x14c)+J(0x14f)+J(0x15b)](H,{'allowApkInstallation':E?.[J(0x15c)+J(0x158)+J(0x157)+J(0x151)]??!0x1,'colors':E?.[J(0x154)+'s']},s));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const TE=b;(function(d,Z){const Ts=b,f=d();while(!![]){try{const o=-parseInt(Ts(0x159))/0x1+-parseInt(Ts(0x13a))/0x2+parseInt(Ts(0x122))/0x3+-parseInt(Ts(0x10c))/0x4+-parseInt(Ts(0x155))/0x5*(parseInt(Ts(0x151))/0x6)+parseInt(Ts(0x11b))/0x7+parseInt(Ts(0x154))/0x8*(parseInt(Ts(0x131))/0x9);if(o===Z)break;else f['push'](f['shift']());}catch(I){f['push'](f['shift']());}}}(T,0x9a28a));import U from'react';import{Alert as h,NativeModules as r,Platform as s,StyleSheet as K,Text as J}from'react-native';import P from'react-native-file-viewer';function T(){const Tx=['ngLar','curre','eSave','test','andro','show','cance','edium','bind','ve_su','creat','bodyM','r\x20is\x20','openF','485274lBwqDb','tion','backg','8CJIdJJ','45DiltsL','useCa','ion','useSt','1115885IEELdQ','isFil','rmiss','recto','der','ovide','penPr','ilure','XLarg','FileO','title','ncel','requi','47312GLbAlg','colum','ryPat','succe','le_sa','eElem','dFile','ompt','allPe','oads','round','ensur','headi','error','red','861973aCcKNe','saveF','bodyX','actio','Provi','ps_fi','ve_fa','804555ShQGzv','alert','700','useRe','ent','ccess','eCont','ntext','ing','catch','ate','useMe','Downl','useCo','ve_ac','21621906IDNbtV','save','Cache','heade','subTe','brand','cente','open','geM','613400nEvhLj','oadDi','ve_ca','ext','eInst','Prima','ile','ve_pr','llbac'];T=function(){return Tx;};return T();}import m from'react-native-fs';import{PSFileActionsProvider as Y,usePSDesignSystemContext as y,usePSTranslationContext as k,scale as G,PSFlashMessage as p,PSBottomActionSheet as j,PSBottomActionSheetSection as F,PSBottomActionSheetItem as v}from'@communi/chat-ui-react-native';import{saveCachedFileToDownloads as w,isMessageFileSavedToDownloads as D}from'./saveCachedFileToDownloads';const O=U[TE(0x14d)+TE(0x128)+TE(0x13d)](void 0x0),g=()=>{const TK=TE,d=U[TK(0x12f)+TK(0x129)](O);if(!d)throw new Error(TK(0x108)+TK(0x15f)+TK(0x15e)+TK(0x14f)+TK(0x10b)+TK(0x11a));return d;};export const useOpenMessageFile=()=>g()[TE(0x150)+TE(0x140)],useSaveMessageFile=()=>g()[TE(0x11c)+TE(0x140)],useIsMessageFileSaved=()=>g()[TE(0x15a)+TE(0x145)+'d'];function b(N,U){const H=T();return b=function(h,r){h=h-0x108;let s=H[h];return s;},b(N,U);}export function PSFileOpenProvider({children:Z,allowApkInstallation:o=!0x1,colors:I}){const Tq=TE,{translator:t}=k(),{colors:n,typography:Q}=y(),[T0,T1]=U[Tq(0x158)+Tq(0x12c)](),T2=U[Tq(0x125)+'f'](void 0x0),[T3,T4]=U[Tq(0x158)+Tq(0x12c)](0x0),T5=U[Tq(0x125)+'f'](!0x1),T6=U[Tq(0x125)+'f'](!0x1),T7=U[Tq(0x156)+Tq(0x142)+'k'](async(TH,Th)=>{const TJ=Tq;if(await D(Th??TH)[TJ(0x12b)](()=>!0x1)){T4(Tr=>Tr+0x1),T5[TJ(0x144)+'nt']=!0x1;return;}T2[TJ(0x144)+'nt']=Th,T1(TH);},[]),T8=U[Tq(0x156)+Tq(0x142)+'k'](async(TH,Th)=>{const TX=Tq;if(!T5[TX(0x144)+'nt']){T5[TX(0x144)+'nt']=!0x0,T2[TX(0x144)+'nt']=Th;try{if(s['OS']===TX(0x147)+'id'&&/\.apk$/i[TX(0x146)](TH)){if(!o){await T7(TH,Th);return;}if(!await r[TX(0x133)+TX(0x112)+TX(0x12e)+TX(0x115)][TX(0x117)+TX(0x13e)+TX(0x114)+TX(0x15b)+TX(0x157)]()){await T7(TH,Th);return;}}await P[TX(0x138)](TH),T5[TX(0x144)+'nt']=!0x1;}catch(Tr){s['OS']===TX(0x147)+'id'?await T7(TH,Th):(T5[TX(0x144)+'nt']=!0x1,h[TX(0x123)](String(Tr)));}}},[T7,o]),T9=()=>{const TP=Tq;T1(void 0x0),T5[TP(0x144)+'nt']=!0x1;},TT=U[Tq(0x156)+Tq(0x142)+'k'](async(TH,Th)=>{const Tm=Tq;if(!T6[Tm(0x144)+'nt']){T6[Tm(0x144)+'nt']=!0x0;try{await w(TH,Th),T4(Tr=>Tr+0x1),p[Tm(0x148)]({'type':Tm(0x10f)+'ss','text1':t(Tm(0x120)+Tm(0x110)+Tm(0x14c)+Tm(0x127)),'text2':m[Tm(0x12e)+Tm(0x13b)+Tm(0x15c)+Tm(0x10e)+'h'],'visibilityTime':0xfa0});}catch{p[Tm(0x148)]({'type':Tm(0x119),'text1':t(Tm(0x120)+Tm(0x110)+Tm(0x121)+Tm(0x160)),'visibilityTime':0xbb8});}finally{T6[Tm(0x144)+'nt']=!0x1;}}},[t]),Tb=async()=>{const Te=Tq;if(!T0||T6[Te(0x144)+'nt'])return;const TH=T0;T1(void 0x0);try{await TT(TH,T2[Te(0x144)+'nt']);}finally{T5[Te(0x144)+'nt']=!0x1;}},TN=U[Tq(0x12d)+'mo'](()=>D[Tq(0x14b)](null),[T3]),TU=U[Tq(0x12d)+'mo'](()=>({'openFile':T8,'saveFile':TT,'isFileSaved':TN}),[T8,TT,TN]);return U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](O[Tq(0x11f)+Tq(0x15d)],{'value':TU},U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](Y,{'value':{'colors':I,'onViewFilePress':T8,'onSaveFilePress':s['OS']===Tq(0x147)+'id'?TT:void 0x0,'isFileSaved':s['OS']===Tq(0x147)+'id'?TN:void 0x0}},Z),s['OS']===Tq(0x147)+'id'&&U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](j,{'isVisible':!!T0,'onClose':T9},U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](F,{'backgroundColor':n[Tq(0x13f)+'ry'][Tq(0x153)+Tq(0x116)]},U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](J,{'accessibilityRole':Tq(0x134)+'r','style':[x[Tq(0x109)],Q[Tq(0x14e)+Tq(0x14a)+'S'],{'color':n[Tq(0x13f)+'ry'][Tq(0x135)+'xt']}]},t(Tq(0x120)+Tq(0x110)+Tq(0x141)+Tq(0x113))),U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](v,{'title':t(Tq(0x120)+Tq(0x110)+Tq(0x130)+Tq(0x152)),'onPress':Tb,'style':x[Tq(0x11e)+'n'],'textStyle':{...Q[Tq(0x118)+Tq(0x143)+Tq(0x139)],'color':I?.[Tq(0x132)]??n[Tq(0x13f)+'ry'][Tq(0x136)+Tq(0x12a)],'fontWeight':Tq(0x124),'marginVertical':G(0x10)}})),U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](F,{'backgroundColor':n[Tq(0x13f)+'ry'][Tq(0x153)+Tq(0x116)]},U[Tq(0x14d)+Tq(0x111)+Tq(0x126)](v,{'title':t(Tq(0x120)+Tq(0x110)+Tq(0x13c)+Tq(0x10a)),'onPress':T9,'style':x[Tq(0x11e)+'n'],'textStyle':{...Q[Tq(0x11d)+Tq(0x161)+'eR'],'color':I?.[Tq(0x149)+'l']??n[Tq(0x13f)+'ry'][Tq(0x135)+'xt']}}))));}const x=K[TE(0x14d)+'e']({'title':{'textAlign':TE(0x137)+'r','marginHorizontal':G(0x10),'marginTop':G(0x10),'marginBottom':G(0x8)},'action':{'flexDirection':TE(0x10d)+'n'}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function T(){var x=['Cache','saveT','expor','suppo','isSav','ge\x20pe','rmiss','Versi','6wdmQMG','1574294yTohzd','18sOEAqM','315286UpuHQJ','_EXTE','droid','15sZqdzr','enied','oads','on\x20An','rted\x20','dFile','racke','GRANT','reque','1901390sGJtmg','3YqlIVR','1371172JUvGNO','WRITE','save','Stora','RNAL_','only\x20','SSION','5379822ehuVvr','3824024VigZWj','STORA','RESUL','PERMI','t\x20is\x20','996412RMCFzO','Downl','ion\x20d','oads\x20','andro'];T=function(){return x;};return T();}(function(h,E){var X=b,K=h();while(!![]){try{var q=parseInt(X(0x1e9))/0x1+parseInt(X(0x1e7))/0x2*(-parseInt(X(0x1f6))/0x3)+-parseInt(X(0x1d9))/0x4*(-parseInt(X(0x1ec))/0x5)+parseInt(X(0x1e6))/0x6*(-parseInt(X(0x1fe))/0x7)+parseInt(X(0x1ff))/0x8+parseInt(X(0x1e8))/0x9*(parseInt(X(0x1f5))/0xa)+parseInt(X(0x1f7))/0xb;if(q===E)break;else K['push'](K['shift']());}catch(J){K['push'](K['shift']());}}}(T,0x7796b));import{NativeModules as N,PermissionsAndroid as U,Platform as H}from'react-native';function b(N,U){var H=T();return b=function(h,r){h=h-0x1d7;var s=H[h];return s;},b(N,U);}export async function saveCachedFileToDownloads(h,E){var P=b;if(H['OS']!==P(0x1dd)+'id')throw new Error(P(0x1da)+P(0x1dc)+P(0x1e0)+P(0x1d8)+P(0x1fc)+P(0x1e1)+P(0x1f0)+P(0x1ef)+P(0x1eb));if(Number(H[P(0x1e5)+'on'])<0x1d&&await U[P(0x1f4)+'st'](U[P(0x1d7)+P(0x1fd)+'S'][P(0x1f8)+P(0x1ea)+P(0x1fb)+P(0x200)+'GE'])!==U[P(0x201)+'TS'][P(0x1f3)+'ED'])throw new Error(P(0x1fa)+P(0x1e3)+P(0x1e4)+P(0x1db)+P(0x1ed));return E?N[P(0x1de)+P(0x1f1)+P(0x1da)+P(0x1ee)][P(0x1df)+P(0x1f2)+'d'](h,E):N[P(0x1de)+P(0x1f1)+P(0x1da)+P(0x1ee)][P(0x1f9)](h);}export async function isMessageFileSavedToDownloads(h){var m=b;return H['OS']!==m(0x1dd)+'id'?!0x1:N[m(0x1de)+m(0x1f1)+m(0x1da)+m(0x1ee)][m(0x1e2)+'ed'](h);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const e=b;function b(N,U){const H=T();return b=function(h,r){h=h-0xad;let s=H[h];return s;},b(N,U);}(function(H,h){const P=b,r=H();while(!![]){try{const s=-parseInt(P(0xad))/0x1+-parseInt(P(0xb6))/0x2+-parseInt(P(0xae))/0x3*(-parseInt(P(0xb8))/0x4)+parseInt(P(0xb7))/0x5+-parseInt(P(0xb4))/0x6+parseInt(P(0xb0))/0x7+-parseInt(P(0xaf))/0x8*(-parseInt(P(0xb3))/0x9);if(s===h)break;else r['push'](r['shift']());}catch(E){r['push'](r['shift']());}}}(T,0x9d8ab));function T(){const x=['138260QpMOZt','1233363NrVkSk','12yqiSMm','8jdtGST','2696540bccnTr','ent','eElem','14690205uFjxCD','1278132vPbeCJ','creat','2555582PyTxyP','6068710YLCSUq'];T=function(){return x;};return T();}import N from'react';import{DatePickerComponent as U}from'../optionalDependencies/DatePicker';export const DatePicker=U?({modal:H,open:h,date:s,minimumDate:E,maximumDate:K,mode:q,onConfirm:J,onCancel:X})=>N[e(0xb5)+e(0xb2)+e(0xb1)](U,{'modal':H,'open':h,'date':s,'minimumDate':E,'maximumDate':K,'mode':q,'onConfirm':J,'onCancel':X}):null;
|
package/src/handlers/Keyboard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const q=b;(function(H,h){const K=b,r=H();while(!![]){try{const s=parseInt(K(0x168))/0x1*(parseInt(K(0x170))/0x2)+parseInt(K(0x15e))/0x3*(parseInt(K(0x16f))/0x4)+-parseInt(K(0x16b))/0x5*(-parseInt(K(0x160))/0x6)+-parseInt(K(0x16e))/0x7*(parseInt(K(0x17e))/0x8)+-parseInt(K(0x17a))/0x9+parseInt(K(0x179))/0xa*(parseInt(K(0x166))/0xb)+-parseInt(K(0x162))/0xc*(parseInt(K(0x165))/0xd);if(s===h)break;else r['push'](r['shift']());}catch(E){r['push'](r['shift']());}}}(T,0x4cb05));import{PSKeyboard as N,SoftInputMode as U}from'@communi/keyboard-area-react-native';export const addKeyboardListener=H=>N[q(0x15f)+q(0x16c)+q(0x167)+q(0x177)](H),removeKeyboardListener=H=>N[q(0x169)+q(0x178)+q(0x17d)+q(0x161)+'er'](H),setWindowSoftInputAdjustNothing=()=>N[q(0x172)+q(0x176)+q(0x16d)+q(0x164)+'de'](U[q(0x174)+q(0x171)+q(0x163)+q(0x175)+q(0x17c)]),setWindowSoftInputAdjustResize=()=>N[q(0x172)+q(0x176)+q(0x16d)+q(0x164)+'de'](U[q(0x174)+q(0x171)+q(0x163)+q(0x173)+q(0x16a)]),setWindowSoftInputAdjustPan=()=>N[q(0x172)+q(0x176)+q(0x16d)+q(0x164)+'de'](U[q(0x174)+q(0x171)+q(0x163)+q(0x17b)+'N']);function b(N,U){const H=T();return b=function(h,r){h=h-0x15e;let s=H[h];return s;},b(N,U);}function T(){const J=['_ADJU','putMo','85657lEVVuN','2783ayHKjH','dList','34310zTVBGG','remov','SIZE','25euhNJj','yboar','oftIn','310289qCGxYG','68GemIlY','32TlBmyG','INPUT','setWi','ST_RE','SOFT_','ST_NO','ndowS','ener','eKeyb','24140FNVsrr','1164231GzbKDc','ST_PA','THING','oardL','112AFjbOu','51567FQaRsW','addKe','40602eeazUV','isten','768tDpDXO'];T=function(){return J;};return T();}
|
package/src/handlers/MQTT.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function T(){const q=['7123259UGKGbS','5306936yuwFwq','1356354vpmxIA','116Qoseku','9ADIdDg','5GKjYTH','2923688LshJRs','stanc','15101bSbmEk','getIn','50bNTkAx','593547gEXPPg','208824RFNydS'];T=function(){return q;};return T();}const K=b;(function(U,H){const E=b,h=U();while(!![]){try{const r=-parseInt(E(0x1ee))/0x1*(parseInt(E(0x1f6))/0x2)+-parseInt(E(0x1f1))/0x3+-parseInt(E(0x1f4))/0x4+parseInt(E(0x1f8))/0x5*(parseInt(E(0x1f5))/0x6)+-parseInt(E(0x1f2))/0x7+parseInt(E(0x1ec))/0x8*(-parseInt(E(0x1f7))/0x9)+-parseInt(E(0x1f0))/0xa*(-parseInt(E(0x1f3))/0xb);if(r===H)break;else h['push'](h['shift']());}catch(s){h['push'](h['shift']());}}}(T,0xa320a));function b(N,U){const H=T();return b=function(h,r){h=h-0x1ec;let s=H[h];return s;},b(N,U);}import{MQTTClient as N}from'@communi/mqtt-client-react-native';export const createMQTTClient=async U=>N[K(0x1ef)+K(0x1ed)+'e'](U);
|
package/src/handlers/Video.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function b(N,U){const H=T();return b=function(h,r){h=h-0x1e7;let s=H[h];return s;},b(N,U);}const k=b;(function(H,h){const y=b,r=H();while(!![]){try{const s=-parseInt(y(0x1ea))/0x1+-parseInt(y(0x1f0))/0x2+parseInt(y(0x1ee))/0x3+-parseInt(y(0x1e7))/0x4+parseInt(y(0x1e8))/0x5+parseInt(y(0x1f1))/0x6+-parseInt(y(0x1ef))/0x7*(parseInt(y(0x1ed))/0x8);if(s===h)break;else r['push'](r['shift']());}catch(E){r['push'](r['shift']());}}}(T,0x7151c));import N from'react';import{AudioVideoComponent as U}from'../optionalDependencies/Video';function T(){const p=['eElem','1211520cKHcnQ','1472845GlyGTc','error','394083MjxSTe','ent','creat','8888wYHagF','277923ZxCnUb','49ACwXUV','287506GIgOKI','5552634nuDRpR','ignor'];T=function(){return p;};return T();}export const Video=U?({onBuffer:H,onEnd:h,onLoad:E,onProgress:K,paused:q,repeat:J,resizeMode:X,style:P,uri:m,videoRef:x})=>N[k(0x1ec)+k(0x1f3)+k(0x1eb)](U,{'ignoreSilentSwitch':k(0x1f2)+'e','onBuffer':H,'onEnd':h,'onError':Y=>{const G=k;console[G(0x1e9)](Y);},'onLoad':E,'onProgress':K,'paused':q,'ref':x,'repeat':J,'resizeMode':X,'source':{'uri':m},'style':P}):null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function b(N,U){const H=T();return b=function(h,r){h=h-0xf4;let s=H[h];return s;},b(N,U);}(function(U,H){const E=b,h=U();while(!![]){try{const r=-parseInt(E(0xf4))/0x1+parseInt(E(0xf8))/0x2+-parseInt(E(0xfe))/0x3*(parseInt(E(0xf9))/0x4)+parseInt(E(0x102))/0x5+parseInt(E(0xfa))/0x6+-parseInt(E(0xf5))/0x7*(parseInt(E(0xfc))/0x8)+parseInt(E(0xfb))/0x9;if(r===H)break;else h['push'](h['shift']());}catch(s){h['push'](h['shift']());}}}(T,0x5868b));function T(){const q=['File\x20','1359672rUipwW','64DkhhpB','2177352lNTFAI','702495umsOQY','2700024VuKEpF','ion\x20f','127920DoGrrg','ailed','unlin','log','2096455rhkYSj','delet','158208GrGKPO','7rwjoQi','...'];T=function(){return q;};return T();}import N from'react-native-fs';export const deleteFile=async({uri:U})=>{const K=b;try{return await N[K(0x100)+'k'](U),!0x0;}catch(H){return console[K(0x101)](K(0xf7)+K(0x103)+K(0xfd)+K(0xff)+K(0xf6),H),!0x1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const k=b;(function(r,s){const y=b,E=r();while(!![]){try{const K=-parseInt(y(0x14b))/0x1*(-parseInt(y(0x14e))/0x2)+-parseInt(y(0x137))/0x3*(parseInt(y(0x135))/0x4)+parseInt(y(0x153))/0x5*(-parseInt(y(0x138))/0x6)+-parseInt(y(0x148))/0x7*(-parseInt(y(0x13f))/0x8)+-parseInt(y(0x14f))/0x9*(-parseInt(y(0x151))/0xa)+parseInt(y(0x13b))/0xb*(-parseInt(y(0x13d))/0xc)+parseInt(y(0x147))/0xd*(parseInt(y(0x157))/0xe);if(K===s)break;else E['push'](E['shift']());}catch(q){E['push'](E['shift']());}}}(T,0xa259d));function T(){const F=['3309388nDqPvo','andro','3ADaJbm','6234UHnhEX','selec','getAl','5989115YKpZeo','title','12WAjXwb','Deep','88MYaqVn','node','all','clone','getPh','All','Error','Album','1943591TAHGxj','36967YIrxHc','Recen','lengt','15956liMFtg','otos\x20','forEa','152jKbLBn','6890040nvGYYT','Smart','10JDtpWN','push','3595BwNknO','bums\x20','image','bums','70GqXCbJ','otos','edges'];T=function(){return F;};return T();}import{CameraRoll as N}from'@react-native-camera-roll/camera-roll';import{Platform as U}from'react-native';import{verifyAndroidPermissions as H}from'./getPhotos';import h from'lodash';function b(N,U){const H=T();return b=function(h,r){h=h-0x135;let s=H[h];return s;},b(N,U);}export const getAlbums=async({albumType:r=k(0x150)+k(0x146),assetType:E=k(0x144)})=>{const G=k;try{if(U['OS']===G(0x136)+'id'&&!await H())throw new Error(G(0x143)+G(0x14c)+G(0x145));const K=await N[G(0x13a)+G(0x156)]({'albumType':r,'assetType':E});if(K&&K[G(0x14a)+'h']){const q=[];return h[G(0x142)+G(0x13e)](K)[G(0x14d)+'ch'](J=>{const j=G,X=new Promise(async(P,x)=>{const p=b;try{const Y=await N[p(0x143)+p(0x158)]({'assetType':E,'first':0x1,'groupName':J[p(0x13c)],'groupTypes':U[p(0x139)+'t']({'ios':J[p(0x13c)]===p(0x149)+'ts'?p(0x144):p(0x150)+p(0x146),'android':void 0x0})});Y?.[p(0x159)]?.[0x0]?.[p(0x140)]?.[p(0x155)]&&(J[p(0x155)]=Y[p(0x159)][0x0][p(0x140)][p(0x155)]),P(J);}catch{P(J);}});q[j(0x152)](X);}),{'Albums':await Promise[G(0x141)](q)};}return{'Albums':[]};}catch{throw new Error(G(0x13a)+G(0x154)+G(0x145));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(U,H){const E=b,h=U();while(!![]){try{const r=-parseInt(E(0xc3))/0x1+parseInt(E(0xb7))/0x2*(-parseInt(E(0xb9))/0x3)+parseInt(E(0xc4))/0x4*(-parseInt(E(0xb8))/0x5)+-parseInt(E(0xbe))/0x6+parseInt(E(0xbf))/0x7+parseInt(E(0xc0))/0x8+parseInt(E(0xba))/0x9;if(r===H)break;else h['push'](h['shift']());}catch(s){h['push'](h['shift']());}}}(T,0xe1505));function b(N,U){const H=T();return b=function(h,r){h=h-0xb7;let s=H[h];return s;},b(N,U);}function T(){const q=['save','i\x20Err','3980172VohBPz','1208466QbNzmO','13791904MwBIND','getLo','calAs','968612yEKzrI','212eKLiBF','8DKdDBK','61790tVhXTg','711681tbeCJZ','20359035OHeMEe','setUr'];T=function(){return q;};return T();}import{CameraRoll as N}from'@react-native-camera-roll/camera-roll';export const getLocalAssetUri=async U=>{const K=b;try{return await N[K(0xbc)](U);}catch{throw new Error(K(0xc1)+K(0xc2)+K(0xbb)+K(0xbd)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';(function(h,r){const y=b,s=h();while(!![]){try{const E=parseInt(y(0x164))/0x1+parseInt(y(0x1a3))/0x2+-parseInt(y(0x187))/0x3*(-parseInt(y(0x15b))/0x4)+parseInt(y(0x184))/0x5*(-parseInt(y(0x175))/0x6)+-parseInt(y(0x167))/0x7*(-parseInt(y(0x19e))/0x8)+parseInt(y(0x181))/0x9*(-parseInt(y(0x198))/0xa)+parseInt(y(0x1a6))/0xb*(parseInt(y(0x19d))/0xc);if(E===r)break;else s['push'](s['shift']());}catch(K){s['push'](s['shift']());}}}(T,0x5f028));function T(){const p=['Size','184129VtACKG','TORAG','cess\x20','259ZnTOWI','ame','Deny','andro','ants','All','_VIDE','end_c','selec','ess','playa','ired\x20','Versi','reque','6eCircH','getPh','has_n','then','Nativ','age','page_','fileS','otos','Permi','RESUL','ssion','17379sBWumv','MEDIA','node','797390wSYZvU','ratio','minor','164232fofaGZ','image','const','stMul','to\x20ac','\x20requ','react','limit','NAL_S','and\x20s','info','PERMI','s\x20are','_IMAG','filen','all','edges','2530rSPOrq','photo','ize','ion','e\x20Lat','20508rhvpiO','135288uzCEnF','s\x20Acc','Allow','READ_','GRANT','68232EEUFlp','EXTER','Recen','539fBqKxw','Error','ext_p','check','album','SSION','eVers','ursor','tiple','8XnxhUy','picke','Ask\x20M','bleDu','Photo','otos\x20','hare\x20','map'];T=function(){return p;};return T();}import{CameraRoll as N}from'@react-native-camera-roll/camera-roll';import{PermissionsAndroid as U,Platform as H}from'react-native';function b(N,U){const H=T();return b=function(h,r){h=h-0x15b;let s=H[h];return s;},b(N,U);}export const verifyAndroidPermissions=async()=>{const k=b,h=H[k(0x189)+k(0x16b)][k(0x18d)+k(0x179)+k(0x1ac)+k(0x19b)]?.[k(0x186)]>=0x47,r=H[k(0x173)+'on']>=0x21,K=h&&r;return await((()=>K?Promise[k(0x196)]([U[k(0x1a9)](U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x194)+'ES']),U[k(0x1a9)](U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x16d)+'O'])])[k(0x178)](([q,J])=>q&&J):U[k(0x1a9)](U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x1a4)+k(0x18f)+k(0x165)+'E']))())?!0x0:await((()=>K?U[k(0x174)+k(0x18a)+k(0x1ae)]([U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x194)+'ES'],U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x16d)+'O']])[k(0x178)](q=>q[U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x194)+'ES']]===U[k(0x17f)+'TS'][k(0x1a2)+'ED']&&q[U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x182)+k(0x16d)+'O']]===U[k(0x17f)+'TS'][k(0x1a2)+'ED']):U[k(0x174)+'st'](U[k(0x192)+k(0x1ab)+'S'][k(0x1a1)+k(0x1a4)+k(0x18f)+k(0x165)+'E'],{'buttonNegative':k(0x169),'buttonNeutral':k(0x15d)+k(0x19c)+'er','buttonPositive':k(0x1a0),'message':k(0x17e)+k(0x180)+k(0x193)+k(0x18c)+k(0x172)+k(0x18b)+k(0x166)+k(0x190)+k(0x161)+k(0x199)+'s.','title':k(0x15f)+k(0x19f)+k(0x170)})[k(0x178)](q=>q===U[k(0x17f)+'TS'][k(0x1a2)+'ED']))());},getPhotos=async({after:h,first:K,groupName:q,groupTypes:J})=>{const G=b;try{if(H['OS']===G(0x16a)+'id'&&!await verifyAndroidPermissions())throw new Error(G(0x176)+G(0x160)+G(0x1a7));const X=await N[G(0x176)+G(0x17d)]({'after':h,'assetType':G(0x16c),'groupName':q===G(0x1a5)+'ts'?void 0x0:q,'groupTypes':H[G(0x16f)+'t']({'ios':q===G(0x1a5)+'ts'?G(0x16c):J,'android':void 0x0}),'first':K,'includeSharedAlbums':!0x0,'include':[G(0x17c)+G(0x19a),G(0x195)+G(0x168),G(0x188)+G(0x163),G(0x171)+G(0x15e)+G(0x185)+'n',G(0x1aa)+'s']}),P=X[G(0x197)][G(0x162)](Y=>({'source':G(0x15c)+'r',...Y[G(0x183)][G(0x188)],'fileSize':Y[G(0x183)][G(0x188)][G(0x17c)+G(0x19a)]??0x0})),m=X[G(0x17b)+G(0x191)][G(0x177)+G(0x1a8)+G(0x17a)],x=X[G(0x17b)+G(0x191)][G(0x16e)+G(0x1ad)];return{'assets':P,'endCursor':x,'hasNextPage':m,'iOSLimited':!!X[G(0x18e)+'ed']};}catch{throw new Error(G(0x176)+G(0x160)+G(0x1a7));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const J=b;function b(N,U){const H=T();return b=function(h,r){h=h-0x1e9;let s=H[h];return s;},b(N,U);}(function(H,h){const q=b,s=H();while(!![]){try{const E=parseInt(q(0x1ea))/0x1+-parseInt(q(0x1f2))/0x2*(parseInt(q(0x1f4))/0x3)+-parseInt(q(0x1ed))/0x4+-parseInt(q(0x1f0))/0x5+parseInt(q(0x1f5))/0x6*(-parseInt(q(0x1f3))/0x7)+parseInt(q(0x1ef))/0x8+parseInt(q(0x1ec))/0x9;if(E===h)break;else s['push'](s['shift']());}catch(K){s['push'](s['shift']());}}}(T,0x814da));import{Platform as N}from'react-native';import{iosRefreshGallerySelection as U}from'@react-native-camera-roll/camera-roll';function T(){const X=['then','1669048nBdVdx','772875bhCOkl','Versi','2fnyKuX','4648LBxsHX','2035365ZRGIpt','1398VxXtAZ','resol','183593ccTlPq','ios','15727950jNgQNo','2489624NaABjm'];T=function(){return X;};return T();}const o=N['OS']===J(0x1eb)&&parseInt(N[J(0x1f1)+'on'],0xa)>=0xe;export const iOS14RefreshGallerySelection=()=>o?U()[J(0x1ee)](()=>{}):Promise[J(0x1e9)+'ve']();
|
package/src/handlers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(N,U){var s=b,H=N();while(!![]){try{var h=parseInt(s(0x8f))/0x1*(-parseInt(s(0x8d))/0x2)+parseInt(s(0x86))/0x3*(parseInt(s(0x87))/0x4)+-parseInt(s(0x8a))/0x5+-parseInt(s(0x88))/0x6+-parseInt(s(0x8b))/0x7+-parseInt(s(0x89))/0x8*(parseInt(s(0x85))/0x9)+parseInt(s(0x8c))/0xa*(parseInt(s(0x8e))/0xb);if(h===U)break;else H['push'](H['shift']());}catch(r){H['push'](H['shift']());}}}(T,0xe86fc));function T(){var E=['10lJquep','4zJvCHv','42872159YMZxfM','720267nERDyX','18vBvChJ','12AtRVZE','1722364UzGOQK','8377392OagMaE','5236272ULmUgl','137655xytUEe','3460856jaURGq'];T=function(){return E;};return T();}export*from'./deleteFile';export*from'./getLocalAssetUri';export*from'./getPhotos';export*from'./iOS14RefreshGallerySelection';function b(N,U){var H=T();return b=function(h,r){h=h-0x85;var s=H[h];return s;},b(N,U);}export*from'./getAlbums';export*from'./isExistFile';export*from'./saveFile';export*from'./setClipboardString';export*from'./shareImage';export*from'./oniOS14GalleryLibrarySelectionChange';export*from'./pickDocument';export*from'./pickPhoto';export*from'./takePhoto';export*from'./triggerHaptic';export*from'./Video';export*from'./Keyboard';export*from'./DatePicker';export*from'./MQTT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function T(){const J=['5WBgFPX','4344923cCKONo','299770gUkanq','2803014FjUTEb','10qKEpMt','96XeAxxV','stFil','e\x20Err','169598ZEmpfB','313957rGmwqv','exist','378776nVbZQt','3mpomlU','isExi','2764647rWDNVo'];T=function(){return J;};return T();}(function(U,H){const K=b,h=U();while(!![]){try{const s=-parseInt(K(0x1c5))/0x1+-parseInt(K(0x1bc))/0x2*(parseInt(K(0x1c0))/0x3)+parseInt(K(0x1bf))/0x4+parseInt(K(0x1c3))/0x5*(parseInt(K(0x1b7))/0x6)+parseInt(K(0x1bd))/0x7*(-parseInt(K(0x1b9))/0x8)+parseInt(K(0x1c2))/0x9+parseInt(K(0x1b8))/0xa*(parseInt(K(0x1c4))/0xb);if(s===H)break;else h['push'](h['shift']());}catch(E){h['push'](h['shift']());}}}(T,0x5350a));function b(N,U){const H=T();return b=function(h,r){h=h-0x1b7;let s=H[h];return s;},b(N,U);}import N from'react-native-fs';export const isExistFile=async U=>{const q=b;try{return await N[q(0x1be)+'s'](U);}catch{throw new Error(q(0x1c1)+q(0x1ba)+q(0x1bb)+'or');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const J=b;function T(){const m=['ios','33VfHcvr','7655YyJyMX','144723ERGyZH','ionCh','remov','onLib','3243800yoiGLi','addLi','51045KTLNZM','raryS','27KJPrMC','16fwTHWT','ange','stene','elect','2042110qAnwHF','48oLDKZX','78tDIKki','2255351WUocRq','7939812evmvKz','Versi'];T=function(){return m;};return T();}(function(H,h){const q=b,s=H();while(!![]){try{const E=parseInt(q(0x1c6))/0x1+-parseInt(q(0x1be))/0x2*(-parseInt(q(0x1b6))/0x3)+-parseInt(q(0x1b4))/0x4+parseInt(q(0x1c5))/0x5*(-parseInt(q(0x1bf))/0x6)+parseInt(q(0x1c0))/0x7*(-parseInt(q(0x1b9))/0x8)+-parseInt(q(0x1b8))/0x9*(parseInt(q(0x1bd))/0xa)+-parseInt(q(0x1c4))/0xb*(-parseInt(q(0x1c1))/0xc);if(E===h)break;else s['push'](s['shift']());}catch(K){s['push'](s['shift']());}}}(T,0x6de74));import{cameraRollEventEmitter as N}from'@react-native-camera-roll/camera-roll';import{Platform as U}from'react-native';function b(N,U){const H=T();return b=function(h,r){h=h-0x1b1;let s=H[h];return s;},b(N,U);}const i=U['OS']===J(0x1c3)&&parseInt(U[J(0x1c2)+'on'],0xa)>=0xe;export function oniOS14GalleryLibrarySelectionChange(H){const X=J;if(i){const h=N[X(0x1b5)+X(0x1bb)+'r'](X(0x1b3)+X(0x1b7)+X(0x1bc)+X(0x1b1)+X(0x1ba),H);return{'unsubscribe':()=>{const P=X;h[P(0x1b2)+'e']();}};}return{'unsubscribe':()=>{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function T(){const J=['8CzeCke','lengt','4198wWzcip','862oOCjzC','19700010ZlBQlA','2171915oxFLqT','5843330MItbee','7403683cnSHNv','map','6lQvvsO','4464609JQgPrd','4OhaNPd','13644837gZwqcp','slice'];T=function(){return J;};return T();}(function(U,H){const K=b,h=U();while(!![]){try{const s=-parseInt(K(0x1ce))/0x1*(parseInt(K(0x1cf))/0x2)+parseInt(K(0x1d6))/0x3*(parseInt(K(0x1d7))/0x4)+-parseInt(K(0x1d1))/0x5+parseInt(K(0x1d5))/0x6*(-parseInt(K(0x1d3))/0x7)+-parseInt(K(0x1cc))/0x8*(-parseInt(K(0x1ca))/0x9)+-parseInt(K(0x1d2))/0xa+parseInt(K(0x1d0))/0xb;if(s===H)break;else h['push'](h['shift']());}catch(E){h['push'](h['shift']());}}}(T,0xde0ab));import{pick as N}from'@react-native-documents/picker';function b(N,U){const H=T();return b=function(h,r){h=h-0x1ca;let s=H[h];return s;},b(N,U);}export const pickDocument=async U=>{const q=b;try{let H=await N({'allowMultiSelection':!0x0});return U&&H[q(0x1cd)+'h']>U&&(H=[H[0x0],...H[q(0x1cb)](0x1,U)]),{'assets':H[q(0x1d4)](({name:h,size:s,uri:E})=>({'uri':E,'size':s,'name':h})),'cancelled':!0x1};}catch{return{'cancelled':!0x0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const x=b;function b(N,U){const H=T();return b=function(h,r){h=h-0x120;let s=H[h];return s;},b(N,U);}(function(h,r){const e=b,s=h();while(!![]){try{const E=-parseInt(e(0x135))/0x1*(parseInt(e(0x12d))/0x2)+parseInt(e(0x13a))/0x3+parseInt(e(0x130))/0x4*(-parseInt(e(0x13b))/0x5)+-parseInt(e(0x13d))/0x6+-parseInt(e(0x127))/0x7*(parseInt(e(0x134))/0x8)+parseInt(e(0x132))/0x9*(parseInt(e(0x141))/0xa)+-parseInt(e(0x122))/0xb*(-parseInt(e(0x12a))/0xc);if(E===r)break;else s['push'](s['shift']());}catch(K){s['push'](s['shift']());}}}(T,0x3d524));import{Image as N,Platform as U}from'react-native';import H from'react-native-image-crop-picker';export const pickPhoto=async({compressImageQuality:s=U['OS']===x(0x144)?0.8:0x1,cropping:E=!0x1})=>{const Y=x,K=await H[Y(0x120)+Y(0x145)]({'compressImageQuality':Math[Y(0x146)](Math[Y(0x121)](0x0,s),0x1),'cropping':E===!0x0});if(K[Y(0x124)+'t']&&K[Y(0x140)]&&K[Y(0x12f)]){let q;if(U['OS']===Y(0x12e)+'id'){const J=()=>new Promise(X=>{const y=Y;N[y(0x13e)+'ze'](K[y(0x12f)],(P,m)=>{X({'height':m,'width':P});});});try{const X=await J();q={'width':X[Y(0x140)],'height':X[Y(0x124)+'t']};}catch(P){console[Y(0x133)](Y(0x129)+Y(0x13c)+Y(0x142)+Y(0x12b)+Y(0x128)+Y(0x139)+Y(0x126)+Y(0x136)+Y(0x125)+Y(0x137)+'y\x20',P);}}else q={'height':K[Y(0x124)+'t'],'width':K[Y(0x140)]};if(q){const m=K[Y(0x12f)][Y(0x143)+Y(0x13f)+'f']('/');return{'source':Y(0x123)+'r','name':K[Y(0x12f)][Y(0x12c)+Y(0x131)](m+0x1),'size':K[Y(0x138)],'uri':K[Y(0x12f)],...q};}else return;}};function T(){const k=['10ixSbok','\x20get\x20','298152WqHnlZ','getSi','ndexO','width','571630aoHECu','image','lastI','ios','icker','min','openP','max','17996zrrmSd','picke','heigh','rom\x20g','e\x20pic','10381ZCEEoK','\x20of\x20p','Error','1680TjtOxF','\x20size','subst','31426TkuqBc','andro','path','45804rpuYPQ','ring','9XFomFG','error','272aYzlGa','19OjzvuQ','ker\x20f','aller','size','ictur','1159596xfMVPM'];T=function(){return k;};return T();}
|
package/src/handlers/saveFile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(U,H){const K=b,h=U();while(!![]){try{const s=parseInt(K(0x1d8))/0x1*(-parseInt(K(0x1e4))/0x2)+parseInt(K(0x1d1))/0x3+-parseInt(K(0x1e2))/0x4+-parseInt(K(0x1d5))/0x5+parseInt(K(0x1d9))/0x6*(-parseInt(K(0x1e6))/0x7)+parseInt(K(0x1cf))/0x8*(-parseInt(K(0x1db))/0x9)+parseInt(K(0x1e0))/0xa*(parseInt(K(0x1e1))/0xb);if(s===H)break;else h['push'](h['shift']());}catch(E){h['push'](h['shift']());}}}(T,0x9d2ac));function b(N,U){const H=T();return b=function(h,r){h=h-0x1cf;let s=H[h];return s;},b(N,U);}import N from'react-native-fs';export const saveFile=async({fileName:U,fromUrl:H,onProgress:h})=>{const q=b;try{const s=N[q(0x1d2)+q(0x1d0)+q(0x1d7)+q(0x1dc)]+'/'+encodeURIComponent(U);return await N[q(0x1dd)+q(0x1d6)+'le']({'fromUrl':H,'toFile':s,'background':!0x0,'discretionary':!0x0,'progress':h,'begin':E=>{},'progressDivider':0x5})[q(0x1da)+'se'],q(0x1df)+'//'+s;}catch{throw new Error(q(0x1de)+q(0x1d3)+q(0x1e5)+q(0x1e3)+q(0x1d4)+'..');}};function T(){const J=['289788enAfqI','ge\x20fa','6QwFOuT','g\x20ima','1029BrsBSA','397528huzfKz','sDire','222945uFyxfL','Cache','oadin','iled.','3484800txujEy','oadFi','ctory','241797QUzIQa','49254IPCETM','promi','9viaFTP','Path','downl','Downl','file:','33206530XAjBFP','11JuDkTo'];T=function(){return J;};return T();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const K=b;(function(U,H){const E=b,h=U();while(!![]){try{const r=parseInt(E(0xe5))/0x1+parseInt(E(0xda))/0x2*(parseInt(E(0xdc))/0x3)+parseInt(E(0xde))/0x4*(-parseInt(E(0xdd))/0x5)+-parseInt(E(0xe6))/0x6+parseInt(E(0xe3))/0x7*(-parseInt(E(0xd9))/0x8)+-parseInt(E(0xe1))/0x9*(-parseInt(E(0xdf))/0xa)+parseInt(E(0xe4))/0xb*(-parseInt(E(0xdb))/0xc);if(r===H)break;else h['push'](h['shift']());}catch(s){h['push'](h['shift']());}}}(T,0xd120d));function b(N,U){const H=T();return b=function(h,r){h=h-0xd9;let s=H[h];return s;},b(N,U);}function T(){const q=['5820lLmPkf','786ldEPDm','1885725kUbhGW','4XAWNtF','40SXgUCE','setSt','3173382eqrHsN','ring','7uiHNqI','8283jFOwRb','835638UXObav','4967262xMoEHA','3932048YLUVvA','5132lIEYFT'];T=function(){return q;};return T();}import N from'@react-native-clipboard/clipboard';export const setClipboardString=U=>N[K(0xe0)+K(0xe2)](U);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const q=b;(function(H,h){const K=b,r=H();while(!![]){try{const s=parseInt(K(0x168))/0x1+parseInt(K(0x161))/0x2*(parseInt(K(0x175))/0x3)+parseInt(K(0x180))/0x4*(-parseInt(K(0x186))/0x5)+parseInt(K(0x183))/0x6+parseInt(K(0x16b))/0x7+-parseInt(K(0x177))/0x8*(-parseInt(K(0x17b))/0x9)+-parseInt(K(0x187))/0xa*(parseInt(K(0x170))/0xb);if(s===h)break;else r['push'](r['shift']());}catch(E){r['push'](r['shift']());}}}(T,0x7af3e));function b(N,U){const H=T();return b=function(h,r){h=h-0x15e;let s=H[h];return s;},b(N,U);}import{Platform as N}from'react-native';import U from'react-native-fs';let t;try{t=require('react-native-share')[q(0x181)+'lt'];}catch{console[q(0x172)](q(0x17a)+q(0x17f)+q(0x179)+q(0x173)+q(0x184)+q(0x165)+q(0x178));}export const shareImage=t?async({type:H,url:h})=>{const J=q;try{const s=await U[J(0x17c)+J(0x16c)](h,J(0x17e)+'4'),E=J(0x162)+H+(J(0x15f)+J(0x169))+s;return await t[J(0x16e)]({'activityItemSources':N['OS']===J(0x15e)?[{'item':{'default':{'content':h,'type':J(0x16f)}},'linkMetadata':{'icon':h},'placeholderItem':{'content':h,'type':J(0x16f)}}]:void 0x0,'excludedActivityTypes':[],'failOnCancel':!0x1,'type':H,'url':N['OS']===J(0x176)+'id'?E:void 0x0}),!0x0;}catch{return console[J(0x160)](J(0x163)+J(0x171)+J(0x16a)+'..'),!0x1;}}:null,shareText=t?async({text:H})=>{const X=q;try{return await t[X(0x16e)]({'title':H,'message':H})[X(0x167)](h=>{const P=X;console[P(0x172)](P(0x182)+P(0x185)+P(0x17d)+JSON[P(0x164)+P(0x166)](h));})[X(0x16d)](h=>{const m=X;console[m(0x172)](m(0x182)+m(0x174)+m(0x17d)+JSON[m(0x164)+m(0x166)](h));}),!0x0;}catch{return console[X(0x160)](X(0x163)+X(0x171)+X(0x16a)+'..'),!0x1;}}:null;function T(){const e=['then','918117tRrKSz','64,','iled.','4115356DlmybE','ile','catch','open','url','44OdwDJX','ng\x20fa','log','are\x20i',':\x20err','815154DXTXOH','andro','32XoRyQK','alled','ve-sh','react','1591947sikgyR','readF','\x20=\x20','base6','-nati','76sbMbvd','defau','Share','1200108YdjEkt','s\x20not',':\x20res','129595zjhLGo','4902340CohSgw','ios',';base','warn','4nimNBj','data:','Shari','strin','\x20inst','gify'];T=function(){return e;};return T();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const j=b;(function(K,q){const p=b,J=K();while(!![]){try{const X=-parseInt(p(0x1cf))/0x1*(parseInt(p(0x1d0))/0x2)+parseInt(p(0x1e8))/0x3*(parseInt(p(0x1d7))/0x4)+-parseInt(p(0x1da))/0x5+parseInt(p(0x1dc))/0x6*(-parseInt(p(0x1e9))/0x7)+-parseInt(p(0x1d1))/0x8+-parseInt(p(0x1c6))/0x9+-parseInt(p(0x1d4))/0xa*(-parseInt(p(0x1ea))/0xb);if(X===q)break;else J['push'](J['shift']());}catch(P){J['push'](J['shift']());}}}(T,0xb02bd));function T(){const v=['150XSHnLH','_ASK_','issio','NEVER','DENIE','width','\x20perm','heigh','ring','SSION','camer','amera','8175HnvIuU','308931JkyWjX','110TUCwks','max','ot\x20gr','ios','\x20of\x20p','messa','path','curre','\x20get\x20','image','getSi','ntSta','lastI','\x20from','reque','ndexO','e\x20cap','RESUL','ant\x20c','ra\x20','ictur','AGAIN','check','10704177AcuKDG','\x20size','utred','error','andro','openC','User\x20','\x20came','PERMI','49liaMad','29902ksfmVr','5533424BzRjVp','size','subst','5279280PGeWnI','min','Error','468CySKyz','did\x20n','CAMER','5797765TpwPXH','activ'];T=function(){return v;};return T();}function b(N,U){const H=T();return b=function(h,r){h=h-0x1bd;let s=H[h];return s;},b(N,U);}import{AppState as N,Image as U,PermissionsAndroid as H,Platform as s}from'react-native';import E from'react-native-image-crop-picker';export const takePhoto=async({compressImageQuality:K=s['OS']===j(0x1ed)?0.8:0x1,cropping:q=!0x1})=>{const F=j;if(s['OS']===F(0x1ca)+'id'&&H[F(0x1ce)+F(0x1e5)+'S'][F(0x1d9)+'A']&&!await H[F(0x1c5)](H[F(0x1ce)+F(0x1e5)+'S'][F(0x1d9)+'A'])){const J=await H[F(0x1bd)+'st'](H[F(0x1ce)+F(0x1e5)+'S'][F(0x1d9)+'A']);if(J===H[F(0x1c0)+'TS'][F(0x1e0)+'D'])return{'cancelled':!0x0};if(J===H[F(0x1c0)+'TS'][F(0x1df)+F(0x1dd)+F(0x1c4)])return{'askToOpenSettings':!0x0,'cancelled':!0x0};}try{const X=await E[F(0x1cb)+F(0x1e7)]({'compressImageQuality':Math[F(0x1d5)](Math[F(0x1eb)](0x0,K),0x1),'cropping':q===!0x0});if(X[F(0x1e3)+'t']&&X[F(0x1e1)]&&X[F(0x1f0)]){let P;if(s['OS']===F(0x1ca)+'id'){const m=()=>new Promise(x=>{const g=F;U[g(0x1f4)+'ze'](X[g(0x1f0)],(Y,y)=>{x({'height':y,'width':Y});});});try{const x=await m();P={'width':x[F(0x1e1)],'height':x[F(0x1e3)+'t']};}catch(Y){console[F(0x1c9)](F(0x1d6)+F(0x1f2)+F(0x1f3)+F(0x1c7)+F(0x1ee)+F(0x1c3)+F(0x1bf)+F(0x1c8)+F(0x1f7)+F(0x1cd)+F(0x1c2),Y);}}else P={'height':X[F(0x1e3)+'t'],'width':X[F(0x1e1)]};if(P){const y=X[F(0x1f0)][F(0x1f6)+F(0x1be)+'f']('/');return{'cancelled':!0x1,'source':F(0x1e6)+'a','name':X[F(0x1f0)][F(0x1d3)+F(0x1e4)](y+0x1),'size':X[F(0x1d2)],'uri':X[F(0x1f0)],...P};}else return;}}catch(k){if(k instanceof Error&&s['OS']===F(0x1ed)&&N[F(0x1f1)+F(0x1f5)+'te']===F(0x1db)+'e'){const G=F(0x1cc)+F(0x1d8)+F(0x1ec)+F(0x1c1)+F(0x1e7)+F(0x1e2)+F(0x1de)+'n.';if(k[F(0x1ef)+'ge']===G)return{'askToOpenSettings':!0x0,'cancelled':!0x0};}}return{'cancelled':!0x0};};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(U,H){const E=b,h=U();while(!![]){try{const r=parseInt(E(0x1c2))/0x1*(-parseInt(E(0x1c1))/0x2)+-parseInt(E(0x1be))/0x3+parseInt(E(0x1c5))/0x4*(-parseInt(E(0x1bd))/0x5)+-parseInt(E(0x1c4))/0x6+-parseInt(E(0x1c3))/0x7+-parseInt(E(0x1bf))/0x8*(-parseInt(E(0x1c6))/0x9)+parseInt(E(0x1c0))/0xa;if(r===H)break;else h['push'](h['shift']());}catch(s){h['push'](h['shift']());}}}(T,0xc4107));function T(){const q=['20pFOlUL','883167KnHHSs','8bAZIJq','40052240bPIbZe','2849686mGzrns','1XJzKWJ','7329063utcaAA','958632OKjsbi','1038536UKxgpc','6861636noSdxH','trigg'];T=function(){return q;};return T();}function b(N,U){const H=T();return b=function(h,r){h=h-0x1bc;let s=H[h];return s;},b(N,U);}import N from'react-native-haptic-feedback';export const triggerHaptic=U=>{const K=b;N[K(0x1bc)+'er'](U,{'enableVibrateFallback':!0x1,'ignoreAndroidSystemSettings':!0x1});};
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(B,O){var T3=N,T0=B();while(!![]){try{var T1=parseInt(T3(0x1a8))/0x1+parseInt(T3(0x1a9))/0x2+-parseInt(T3(0x1a2))/0x3+parseInt(T3(0x1a7))/0x4+-parseInt(T3(0x1a4))/0x5*(parseInt(T3(0x1a6))/0x6)+-parseInt(T3(0x1a3))/0x7+parseInt(T3(0x1aa))/0x8*(parseInt(T3(0x1a5))/0x9);if(T1===O)break;else T0['push'](T0['shift']());}catch(T2){T0['push'](T0['shift']());}}}(T,0xa9143));function N(b,U){var H=T();return N=function(h,r){h=h-0x1a2;var s=H[h];return s;},N(b,U);}import{registerNativeHandlers as U}from'@communi/chat-ui-react-native';function T(){var T4=['8GumLTS','2317791zEGmzd','6897051tbPrnX','105lBQLQI','10550097OboQao','264798fVLUwD','2173668xWFWiY','479203vITKKU','2364754WtqSTS'];T=function(){return T4;};return T();}import{addKeyboardListener as H,removeKeyboardListener as E,setWindowSoftInputAdjustNothing as K,setWindowSoftInputAdjustResize as q,createMQTTClient as J,deleteFile as X,getLocalAssetUri as Y,getPhotos as G,getAlbums as j,isExistFile as F,oniOS14GalleryLibrarySelectionChange as v,saveFile as R,takePhoto as w,pickPhoto as D,Video as Z,DatePicker as L,setClipboardString as I,triggerHaptic as V,pickDocument as W,iOS14RefreshGallerySelection as C,shareImage as z,shareText as Q,setWindowSoftInputAdjustPan as M}from'./handlers';U({'addKeyboardListener':H,'removeKeyboardListener':E,'setWindowSoftInputAdjustNothing':K,'setWindowSoftInputAdjustResize':q,'setWindowSoftInputAdjustPan':M,'createMQTTClient':J,'deleteFile':X,'getLocalAssetUri':Y,'getPhotos':G,'iOS14RefreshGallerySelection':C,'getAlbums':j,'isExistFile':F,'oniOS14GalleryLibrarySelectionChange':v,'pickDocument':W,'saveFile':R,'setClipboardString':I,'shareImage':z,'shareText':Q,'takePhoto':w,'pickPhoto':D,'triggerHaptic':V,'Video':Z,'DatePicker':L});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';export{PSChat}from'./PSChat';export*from'./files/PSFileOpenProvider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const E=b;(function(N,U){const s=b,H=N();while(!![]){try{const h=-parseInt(s(0x165))/0x1+-parseInt(s(0x162))/0x2+parseInt(s(0x15d))/0x3*(-parseInt(s(0x15b))/0x4)+parseInt(s(0x15a))/0x5+parseInt(s(0x15e))/0x6+-parseInt(s(0x164))/0x7*(-parseInt(s(0x161))/0x8)+parseInt(s(0x160))/0x9;if(h===U)break;else H['push'](H['shift']());}catch(r){H['push'](H['shift']());}}}(T,0xbd6b0));function T(){const K=['tive-','defau','picke','Cần\x20c','6186035FaozTf','44LaxulP','ài\x20đặ','234114DSnMwu','3304176aJrlLS','ct-na','10540845himjJK','16yUxfKW','2495742PLiGYF','t\x20gói','2835952AQjNIi','887235FaDzFF','date-','warn','\x20\x22rea'];T=function(){return K;};return T();}function b(N,U){const H=T();return b=function(h,r){h=h-0x156;let s=H[h];return s;},b(N,U);}let e;try{e=require('react-native-date-picker')[E(0x157)+'lt'];}catch{console[E(0x167)](E(0x159)+E(0x15c)+E(0x163)+E(0x168)+E(0x15f)+E(0x156)+E(0x166)+E(0x158)+'r\x22');}export{e as DatePickerComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const E=b;function b(N,U){const H=T();return b=function(h,r){h=h-0x77;let s=H[h];return s;},b(N,U);}(function(N,U){const s=b,H=N();while(!![]){try{const h=parseInt(s(0x7e))/0x1*(-parseInt(s(0x79))/0x2)+parseInt(s(0x8a))/0x3+parseInt(s(0x8b))/0x4*(parseInt(s(0x88))/0x5)+parseInt(s(0x7f))/0x6+-parseInt(s(0x87))/0x7*(-parseInt(s(0x78))/0x8)+parseInt(s(0x86))/0x9*(parseInt(s(0x7c))/0xa)+-parseInt(s(0x82))/0xb*(parseInt(s(0x84))/0xc);if(h===U)break;else H['push'](H['shift']());}catch(r){H['push'](H['shift']());}}}(T,0xd3a81));let e;try{e=require('react-native-video')[E(0x83)+'lt'];}catch{console[E(0x81)](E(0x80)+E(0x7d)+E(0x89)+E(0x85)+E(0x7a)+E(0x7b)+E(0x77)+'\x22');}function T(){const K=['6107140WwENKb','ài\x20đặ','19457eKnUCi','4746840oXnwdQ','Cần\x20c','warn','473aMFqDx','defau','678660YVmcxF','\x20\x22rea','9qoCXZo','7903XgGFic','5pGKXlP','t\x20gói','187287UERChf','1031368wwDrur','video','11448OqTrNN','4HWCbsP','ct-na','tive-'];T=function(){return K;};return T();}export{e as AudioVideoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(N,U){var s=b,H=N();while(!![]){try{var h=-parseInt(s(0x85))/0x1*(parseInt(s(0x80))/0x2)+parseInt(s(0x82))/0x3+parseInt(s(0x83))/0x4*(parseInt(s(0x7e))/0x5)+-parseInt(s(0x84))/0x6*(parseInt(s(0x7b))/0x7)+-parseInt(s(0x7c))/0x8*(-parseInt(s(0x81))/0x9)+-parseInt(s(0x7f))/0xa+-parseInt(s(0x7d))/0xb;if(h===U)break;else H['push'](H['shift']());}catch(r){H['push'](H['shift']());}}}(T,0x8015b));function b(N,U){var H=T();return b=function(h,r){h=h-0x7b;var s=H[h];return s;},b(N,U);}function T(){var E=['9DcniOg','306234pGSuXX','23628yDRlcV','6SluLmT','11522yrsOHo','1428413MFWGsf','4885736CTyCPS','2643718ColBer','645Ghwhrx','4481560zsPZYS','10EtHXvO'];T=function(){return E;};return T();}export*from'./DatePicker';export*from'./Video';
|