mirror of
https://github.com/abhay-raizada/PeerScribe.git
synced 2026-10-22 08:33:23 +00:00
Fix Errors
This commit is contained in:
1 parent
477a924fe0
commit
2f0c7ddadb
9 files changed
+721175
-167
No files matched your search
@@ -3,7 +3,7 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.
|
||||
!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}function t(n,t,a){if(n.formatValueCalls++,n.formatValueCalls>200)return`[TOO BIG formatValueCalls ${n.formatValueCalls} exceeded limit of 200]`;var c=r(n,t);if(c)return c;var f=Object.keys(t),p=e(f);if(d(t)&&(f.indexOf('message')>=0||f.indexOf('description')>=0))return o(t);if(0===f.length){if(v(t)){var g=t.name?': '+t.name:'';return n.stylize('[Function'+g+']','special')}if(s(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(d(t))return o(t)}var h,m,b='',j=!1,O=['{','}'];(h=t,Array.isArray(h)&&(j=!0,O=['[',']']),v(t))&&(b=' [Function'+(t.name?': '+t.name:'')+']');return s(t)&&(b=' '+RegExp.prototype.toString.call(t)),y(t)&&(b=' '+Date.prototype.toUTCString.call(t)),d(t)&&(b=' '+o(t)),0!==f.length||j&&0!=t.length?a<0?s(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),m=j?i(n,t,a,p,f):f.map((function(e){return l(n,t,a,p,e,j)})),n.seen.pop(),u(m,b,O)):O[0]+b+O[1]}function r(n,e){if(p(e))return n.stylize('undefined','undefined');if('string'==typeof e){var t="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return f(e)?n.stylize(''+e,'number'):a(e)?n.stylize(''+e,'boolean'):c(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,t,r,o){for(var i=[],u=0,a=e.length;u<a;++u)m(e,String(u))?i.push(l(n,e,t,r,String(u),!0)):i.push('');return o.forEach((function(o){o.match(/^\d+$/)||i.push(l(n,e,t,r,o,!0))})),i}function l(n,e,r,o,i,l){var u,a,f;if((f=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=f.set?n.stylize('[Getter/Setter]','special'):n.stylize('[Getter]','special'):f.set&&(a=n.stylize('[Setter]','special')),m(o,i)||(u='['+i+']'),a||(n.seen.indexOf(f.value)<0?(a=c(r)?t(n,f.value,null):t(n,f.value,r-1)).indexOf('\n')>-1&&(a=l?a.split('\n').map((function(n){return' '+n})).join('\n').slice(2):'\n'+a.split('\n').map((function(n){return' '+n})).join('\n')):a=n.stylize('[Circular]','special')),p(u)){if(l&&i.match(/^\d+$/))return a;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.slice(1,u.length-1),u=n.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,'string'))}return u+': '+a}function u(n,e,t){return n.reduce((function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1}),0)>60?t[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+e+' '+n.join(', ')+' '+t[1]}function a(n){return'boolean'==typeof n}function c(n){return null===n}function f(n){return'number'==typeof n}function p(n){return void 0===n}function s(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function m(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,r){return t({seen:[],formatValueCalls:0,stylize:n},e,r.depth)}})(),t=0,r=1,o=2,i=3,l=[];l[t]='debug',l[r]='log',l[o]='warning',l[i]='error';function u(t){return function(){var r;r=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,(function(n){return e(n,{depth:10})})).join(', ');var u=arguments[0],a=t;'string'==typeof u&&'Warning: '===u.slice(0,9)&&a>=i&&(a=o),n.__inspectorLog&&n.__inspectorLog(l[a],r,[].slice.call(arguments),1),c.length&&(r=f('',r)),n.nativeLoggingHook(r,a)}}function a(n,e){return Array.apply(null,Array(e)).map((function(){return n}))}var c=[];function f(n,e){return c.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:u(i),info:u(r),log:u(r),warn:u(o),trace:u(t),debug:u(t),table:function(e){if(!Array.isArray(e)){var t=e;for(var o in e=[],t)if(t.hasOwnProperty(o)){var i=t[o];i["(index)"]=o,e.push(i)}}if(0!==e.length){var l=Object.keys(e[0]).sort(),u=[],c=[];l.forEach((function(n,t){c[t]=n.length;for(var r=0;r<e.length;r++){var o=(e[r][n]||'?').toString();u[r]=u[r]||[],u[r][t]=o,c[t]=Math.max(c[t],o.length)}}));for(var f=g(c.map((function(n){return a('-',n).join('')})),'-'),p=[g(l),f],s=0;s<e.length;s++)p.push(g(u[s]));n.nativeLoggingHook('\n'+p.join('\n'),r)}else n.nativeLoggingHook('',r);function g(n,e){var t=n.map((function(n,e){return n+a(' ',c[e]-n.length).join('')}));return e=e||' ',t.join(e+'|'+e)}},group:function(e){n.nativeLoggingHook(f("\u2510",e),r),c.push("\u2502")},groupEnd:function(){c.pop(),n.nativeLoggingHook(f("\u2518"),r)},groupCollapsed:function(e){n.nativeLoggingHook(f("\u2518",e),r),c.push("\u2502")},assert:function(e,t){e||n.nativeLoggingHook('Assertion failed: '+t,i)}},Object.defineProperty(console,'_isPolyfilled',{value:!0,enuLine truncated
|
||||
!(function(n){var r=0,t=function(n,r){throw n},l={setGlobalHandler:function(n){t=n},getGlobalHandler:function(){return t},reportError:function(n){t&&t(n,!1)},reportFatalError:function(n){t&&t(n,!0)},applyWithGuard:function(n,t,u,o,e){try{return r++,n.apply(t,u)}catch(n){l.reportError(n)}finally{r--}return null},applyWithGuardIfNeeded:function(n,r,t){return l.inGuard()?n.apply(r,t):(l.applyWithGuard(n,r,t),null)},inGuard:function(){return!!r},guard:function(n,r,t){var u;if('function'!=typeof n)return console.warn('A function must be passed to ErrorUtils.guard, got ',n),null;var o=null!=(u=null!=r?r:n.name)?u:'<generated guard>';return function(){for(var r=arguments.length,u=new Array(r),e=0;e<r;e++)u[e]=arguments[e];return l.applyWithGuard(n,null!=t?t:this,u,null,o)}}};n.ErrorUtils=l})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
|
||||
'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window,(function(){'use strict';var e=Object.prototype.hasOwnProperty;'function'!=typeof Object.entries&&(Object.entries=function(n){if(null==n)throw new TypeError('Object.entries called on non-object');var o=[];for(var t in n)e.call(n,t)&&o.push([t,n[t]]);return o}),'function'!=typeof Object.values&&(Object.values=function(n){if(null==n)throw new TypeError('Object.values called on non-object');var o=[];for(var t in n)e.call(n,t)&&o.push(n[t]);return o})})();
|
||||
__d((function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);r(d[2]),r(d[3]);var o=n(r(d[4]));t.AppRegistry.registerComponent(r(d[5]).name,(function(){return o.default}))}),0,[1,2,438,441,443,878]);
|
||||
__d((function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]);r(d[2]),r(d[3]);var o=n(r(d[4]));t.AppRegistry.registerComponent(r(d[5]).name,(function(){return o.default}))}),0,[1,2,438,441,443,879]);
|
||||
__d((function(g,r,i,a,m,e,d){m.exports=function(t){return t&&t.__esModule?t:{default:t}},m.exports.__esModule=!0,m.exports.default=m.exports}),1,[]);
|
||||
__d((function(g,r,i,a,m,e,d){'use strict';m.exports={get AccessibilityInfo(){return r(d[0]).default},get ActivityIndicator(){return r(d[1]).default},get Button(){return r(d[2])},get DrawerLayoutAndroid(){return r(d[3])},get FlatList(){return r(d[4])},get Image(){return r(d[5])},get ImageBackground(){return r(d[6])},get InputAccessoryView(){return r(d[7])},get KeyboardAvoidingView(){return r(d[8]).default},get Modal(){return r(d[9])},get Pressable(){return r(d[10]).default},get ProgressBarAndroid(){return r(d[11])('progress-bar-android-moved',"ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. See https://github.com/react-native-progress-view/progress-bar-android"),r(d[12])},get RefreshControl(){return r(d[13])},get SafeAreaView(){return r(d[14]).default},get ScrollView(){return r(d[15])},get SectionList(){return r(d[16]).default},get StatusBar(){return r(d[17])},get Switch(){return r(d[18]).default},get Text(){return r(d[19])},get TextInput(){return r(d[20])},get Touchable(){return r(d[21])},get TouchableHighlight(){return r(d[22])},get TouchableNativeFeedback(){return r(d[23])},get TouchableOpacity(){return r(d[24])},get TouchableWithoutFeedback(){return r(d[25])},get View(){return r(d[26])},get VirtualizedList(){return r(d[27])},get VirtualizedSectionList(){return r(d[28])},get ActionSheetIOS(){return r(d[29])},get Alert(){return r(d[30])},get Animated(){return r(d[31]).default},get Appearance(){return r(d[32])},get AppRegistry(){return r(d[33])},get AppState(){return r(d[34])},get BackHandler(){return r(d[35])},get Clipboard(){return r(d[11])('clipboard-moved',"Clipboard has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. See https://github.com/react-native-clipboard/clipboard"),r(d[36])},get DeviceInfo(){return r(d[37])},get DevSettings(){return r(d[38])},get Dimensions(){return r(d[39]).default},get Easing(){return r(d[40]).default},get findNodeHandle(){return r(d[41]).findNodeHandle},get I18nManager(){return r(d[42])},get InteractionManager(){return r(d[43])},get Keyboard(){return r(d[44])},get LayoutAnimation(){return r(d[45])},get Linking(){return r(d[46])},get LogBox(){return r(d[47]).default},get NativeDialogManagerAndroid(){return r(d[48]).default},get NativeEventEmitter(){return r(d[49]).default},get Networking(){return r(d[50]).default},get PanResponder(){return r(d[51]).default},get PermissionsAndroid(){return r(d[52])},get PixelRatio(){return r(d[53]).default},get PushNotificationIOS(){return r(d[11])('pushNotificationIOS-moved',"PushNotificationIOS has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. See https://github.com/react-native-push-notification-ios/push-notification-ios"),r(d[54])},get Settings(){return r(d[55])},get Share(){return r(d[56])},get StyleSheet(){return r(d[57])},get Systrace(){return r(d[58])},get ToastAndroid(){return r(d[59])},get TurboModuleRegistry(){return r(d[60])},get UIManager(){return r(d[61])},get unstable_batchedUpdates(){return r(d[41]).unstable_batchedUpdates},get useAnimatedValue(){return r(d[62]).default},get useColorScheme(){return r(d[63]).default},get useWindowDimensions(){return r(d[64]).default},get UTFSequence(){return r(d[65]).default},get Vibration(){return r(d[66])},get YellowBox(){return r(d[67])},get DeviceEventEmitter(){return r(d[68]).default},get DynamicColorIOS(){return r(d[69]).DynamicColorIOS},get NativeAppEventEmitter(){return r(d[70])},get NativeModules(){return r(d[71])},get Platform(){return r(d[72])},get PlatformColor(){return r(d[73]).PlatformColor},get processColor(){return r(d[74]).default},get requireNativeComponent(){return r(d[75]).default},get RootTagContext(){return r(d[76]).RootTagContext},get unstable_enableLogBox(){return function(){return console.warn('LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.')}},get ColorPropType(){return console.error("ColorPropType will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ColorPropType, migrate to the 'deprecated-react-native-prop-types' package."),r(d[77]).ColorPropType},get EdgeInsetsPropType(){return console.error("EdgeInsetsPropType will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using EdgeInsetsPropType, migrate to the 'deprecated-react-native-prop-types' package."),rLine truncated
|
||||
__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),l=n(r(d[2])),u=n(r(d[3])),o=n(r(d[4])),s=n(r(d[5])),c='android'===l.default.OS?new Map([['change','touchExplorationDidChange'],['reduceMotionChanged','reduceMotionDidChange'],['screenReaderChanged','touchExplorationDidChange'],['accessibilityServiceChanged','accessibilityServiceDidChange']]):new Map([['announcementFinished','announcementFinished'],['boldTextChanged','boldTextChanged'],['change','screenReaderChanged'],['grayscaleChanged','grayscaleChanged'],['invertColorsChanged','invertColorsChanged'],['reduceMotionChanged','reduceMotionChanged'],['reduceTransparencyChanged','reduceTransparencyChanged'],['screenReaderChanged','screenReaderChanged']]),f={isBoldTextEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentBoldTextState(n,t):t(null)}))},isGrayscaleEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentGrayscaleState(n,t):t(null)}))},isInvertColorsEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentInvertColorsState(n,t):t(null)}))},isReduceMotionEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS?null!=o.default?o.default.isReduceMotionEnabled(n):t(null):null!=s.default?s.default.getCurrentReduceMotionState(n,t):t(null)}))},prefersCrossFadeTransitions:function(){return new Promise((function(n,t){if('android'===l.default.OS)return Promise.resolve(!1);null!=(null==s.default?void 0:s.default.getCurrentPrefersCrossFadeTransitionsState)?s.default.getCurrentPrefersCrossFadeTransitionsState(n,t):t(null)}))},isReduceTransparencyEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentReduceTransparencyState(n,t):t(null)}))},isScreenReaderEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS?null!=o.default?o.default.isTouchExplorationEnabled(n):t(null):null!=s.default?s.default.getCurrentVoiceOverState(n,t):t(null)}))},isAccessibilityServiceEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS&&null!=o.default&&null!=o.default.isAccessibilityServiceEnabled?o.default.isAccessibilityServiceEnabled(n):t(null)}))},addEventListener:function(n,l){var u=c.get(n);return null==u?{remove:function(){}}:t.default.addListener(u,l)},setAccessibilityFocus:function(n){(0,u.default)(n,'focus')},sendAccessibilityEvent:function(n,t){'ios'===l.default.OS&&'click'===t||(0,r(d[6]).sendAccessibilityEvent)(n,t)},announceForAccessibility:function(n){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null==s.default||s.default.announceForAccessibility(n)},announceForAccessibilityWithOptions:function(n,t){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null!=s.default&&s.default.announceForAccessibilityWithOptions?null==s.default||s.default.announceForAccessibilityWithOptions(n,t):null==s.default||s.default.announceForAccessibility(n)},getRecommendedTimeoutMillis:function(n){return'android'===l.default.OS?new Promise((function(t,l){null!=o.default&&o.default.getRecommendedTimeoutMillis?o.default.getRecommendedTimeoutMillis(n,t):t(n)})):Promise.resolve(n)}};e.default=f}),3,[1,4,21,41,50,51,52]);
|
||||
@@ -590,7 +590,7 @@ __d((function(g,r,_i2,a,m,_e,d){"use strict";var t=r(d[0]),e=r(d[1]),s=r(d[2]),n
|
||||
__d((function(g,_r,_i,a,m,e,d){"use strict";function t(t,r,o,l,n){for(var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:20,h=t[0],i=t[1],u=t[2],y=t[3],p=r[0],s=r[1],v=r[2],f=r[3],w=r[4],b=r[5],_=r[6],L=r[7],C=n,U=o[0],x=o[1],A=o[2],B=h,R=i,S=u,K=y,k=p,z=s,E=v,I=f,j=w,q=b,F=_,M=L,N=C,O=U,P=x,V=A,D=0;D<c;D+=2)B=B+k|0,j=j+(N=(0,_r(d[0]).rotl)(N^B,16))|0,B=B+(k=(0,_r(d[0]).rotl)(k^j,12))|0,j=j+(N=(0,_r(d[0]).rotl)(N^B,8))|0,k=(0,_r(d[0]).rotl)(k^j,7),R=R+z|0,q=q+(O=(0,_r(d[0]).rotl)(O^R,16))|0,R=R+(z=(0,_r(d[0]).rotl)(z^q,12))|0,q=q+(O=(0,_r(d[0]).rotl)(O^R,8))|0,z=(0,_r(d[0]).rotl)(z^q,7),S=S+E|0,F=F+(P=(0,_r(d[0]).rotl)(P^S,16))|0,S=S+(E=(0,_r(d[0]).rotl)(E^F,12))|0,F=F+(P=(0,_r(d[0]).rotl)(P^S,8))|0,E=(0,_r(d[0]).rotl)(E^F,7),K=K+I|0,M=M+(V=(0,_r(d[0]).rotl)(V^K,16))|0,K=K+(I=(0,_r(d[0]).rotl)(I^M,12))|0,M=M+(V=(0,_r(d[0]).rotl)(V^K,8))|0,I=(0,_r(d[0]).rotl)(I^M,7),B=B+z|0,F=F+(V=(0,_r(d[0]).rotl)(V^B,16))|0,B=B+(z=(0,_r(d[0]).rotl)(z^F,12))|0,F=F+(V=(0,_r(d[0]).rotl)(V^B,8))|0,z=(0,_r(d[0]).rotl)(z^F,7),R=R+E|0,M=M+(N=(0,_r(d[0]).rotl)(N^R,16))|0,R=R+(E=(0,_r(d[0]).rotl)(E^M,12))|0,M=M+(N=(0,_r(d[0]).rotl)(N^R,8))|0,E=(0,_r(d[0]).rotl)(E^M,7),S=S+I|0,j=j+(O=(0,_r(d[0]).rotl)(O^S,16))|0,S=S+(I=(0,_r(d[0]).rotl)(I^j,12))|0,j=j+(O=(0,_r(d[0]).rotl)(O^S,8))|0,I=(0,_r(d[0]).rotl)(I^j,7),K=K+k|0,q=q+(P=(0,_r(d[0]).rotl)(P^K,16))|0,K=K+(k=(0,_r(d[0]).rotl)(k^q,12))|0,q=q+(P=(0,_r(d[0]).rotl)(P^K,8))|0,k=(0,_r(d[0]).rotl)(k^q,7);var G=0;l[G++]=h+B|0,l[G++]=i+R|0,l[G++]=u+S|0,l[G++]=y+K|0,l[G++]=p+k|0,l[G++]=s+z|0,l[G++]=v+E|0,l[G++]=f+I|0,l[G++]=w+j|0,l[G++]=b+q|0,l[G++]=_+F|0,l[G++]=L+M|0,l[G++]=C+N|0,l[G++]=U+O|0,l[G++]=x+P|0,l[G++]=A+V|0}function r(t,r,o,l){for(var n=t[0],c=t[1],h=t[2],i=t[3],u=r[0],y=r[1],p=r[2],s=r[3],v=r[4],f=r[5],w=r[6],b=r[7],_=o[0],L=o[1],C=o[2],U=o[3],x=0;x<20;x+=2)n=n+u|0,v=v+(_=(0,_r(d[0]).rotl)(_^n,16))|0,n=n+(u=(0,_r(d[0]).rotl)(u^v,12))|0,v=v+(_=(0,_r(d[0]).rotl)(_^n,8))|0,u=(0,_r(d[0]).rotl)(u^v,7),c=c+y|0,f=f+(L=(0,_r(d[0]).rotl)(L^c,16))|0,c=c+(y=(0,_r(d[0]).rotl)(y^f,12))|0,f=f+(L=(0,_r(d[0]).rotl)(L^c,8))|0,y=(0,_r(d[0]).rotl)(y^f,7),h=h+p|0,w=w+(C=(0,_r(d[0]).rotl)(C^h,16))|0,h=h+(p=(0,_r(d[0]).rotl)(p^w,12))|0,w=w+(C=(0,_r(d[0]).rotl)(C^h,8))|0,p=(0,_r(d[0]).rotl)(p^w,7),i=i+s|0,b=b+(U=(0,_r(d[0]).rotl)(U^i,16))|0,i=i+(s=(0,_r(d[0]).rotl)(s^b,12))|0,b=b+(U=(0,_r(d[0]).rotl)(U^i,8))|0,s=(0,_r(d[0]).rotl)(s^b,7),n=n+y|0,w=w+(U=(0,_r(d[0]).rotl)(U^n,16))|0,n=n+(y=(0,_r(d[0]).rotl)(y^w,12))|0,w=w+(U=(0,_r(d[0]).rotl)(U^n,8))|0,y=(0,_r(d[0]).rotl)(y^w,7),c=c+p|0,b=b+(_=(0,_r(d[0]).rotl)(_^c,16))|0,c=c+(p=(0,_r(d[0]).rotl)(p^b,12))|0,b=b+(_=(0,_r(d[0]).rotl)(_^c,8))|0,p=(0,_r(d[0]).rotl)(p^b,7),h=h+s|0,v=v+(L=(0,_r(d[0]).rotl)(L^h,16))|0,h=h+(s=(0,_r(d[0]).rotl)(s^v,12))|0,v=v+(L=(0,_r(d[0]).rotl)(L^h,8))|0,s=(0,_r(d[0]).rotl)(s^v,7),i=i+u|0,f=f+(C=(0,_r(d[0]).rotl)(C^i,16))|0,i=i+(u=(0,_r(d[0]).rotl)(u^f,12))|0,f=f+(C=(0,_r(d[0]).rotl)(C^i,8))|0,u=(0,_r(d[0]).rotl)(u^f,7);var A=0;l[A++]=n,l[A++]=c,l[A++]=h,l[A++]=i,l[A++]=_,l[A++]=L,l[A++]=C,l[A++]=U}Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=e.hchacha=void 0,e.hchacha=r,e.chacha20orig=(0,_r(d[0]).createCipher)(t,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,_r(d[0]).createCipher)(t,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,_r(d[0]).createCipher)(t,{counterRight:!1,counterLength:8,extendNonceFn:r,allowShortKeys:!1}),e.chacha8=(0,_r(d[0]).createCipher)(t,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,_r(d[0]).createCipher)(t,{counterRight:!1,counterLength:4,rounds:12});var o=new Uint8Array(16),l=function(t,r){t.update(r);var l=r.length%16;l&&t.update(o.subarray(l))},n=new Uint8Array(32);function c(t,r,o,c,h){var i=t(r,o,n),u=_r(d[1]).poly1305.create(i);h&&l(u,h),l(u,c);var y=new Uint8Array(16),p=(0,_r(d[2]).createView)(y);(0,_r(d[2]).setBigUint64)(p,0,BigInt(h?h.length:0),!0),(0,_r(d[2]).setBigUint64)(p,8,BigInt(c.length),!0),u.update(y);var s=u.digest();return i.fill(0),s}e._poly1305_aead=function(t){return function(r,o,l){return(0,_r(d[3]).bytes)(r,32),(0,_r(d[3]).bytes)(o),{encrypt:function(n,h){var i=n.length,u=i+16;h?(0,_r(d[3]).bytes)(h,u):h=new Uint8Array(u),t(r,o,n,h,1);var y=c(t,r,o,h.subarray(0,-16),l);return h.set(y,i),h},decrypt:function(n,h){var i=n.length,u=i-16;if(i<16)throw new Error("encrypted data must be at least 16 bytes");h?(0,_r(d[3]).bytes)(h,u):h=new Uint8Array(u);var y=n.subarray(0,-16),p=n.subarray(-16),s=c(t,r,o,y,l);if(!(0,_r(d[2]).equalBytes)(p,s))throw new Error('invalid tag');return t(r,o,y,h,1),h}}}},e.chacha20poly1305=(0,_r(d[2]).wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,_r(d[2]).wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))}),518,[519,520,514,513]);
|
||||
__d((function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCipher=e.rotl=void 0;var t=(0,r(d[0]).utf8ToBytes)('expand 16-byte k'),n=(0,r(d[0]).utf8ToBytes)('expand 32-byte k'),o=(0,r(d[0]).u32)(t),u=(0,r(d[0]).u32)(n);function a(t){return t.byteOffset%4==0}e.rotl=function(t,n){return t<<n|t>>>32-n};var s=64,h=16,f=4294967295,l=new Uint32Array;function c(t,n,o,u,c,w,y,b){for(var v=c.length,p=new Uint8Array(s),x=(0,r(d[0]).u32)(p),E=a(c)&&a(w),k=E?(0,r(d[0]).u32)(c):l,A=E?(0,r(d[0]).u32)(w):l,U=0;U<v;y++){if(t(n,o,u,x,y,b),y>=f)throw new Error('arx: counter overflow');var $=Math.min(s,v-U);if(E&&$===s){var _=U/4;if(U%4!=0)throw new Error('arx: invalid block position');for(var O,B=0;B<h;B++)A[O=_+B]=k[O]^x[B];U+=s}else{for(var C,K=0;K<$;K++)w[C=U+K]=c[C]^p[K];U+=$}}}e.createCipher=function(t,n){var s=(0,r(d[0]).checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},n),h=s.allowShortKeys,l=s.extendNonceFn,w=s.counterLength,y=s.counterRight,b=s.rounds;if('function'!=typeof t)throw new Error('core must be a function');return(0,r(d[1]).number)(w),(0,r(d[1]).number)(b),(0,r(d[1]).bool)(y),(0,r(d[1]).bool)(h),function(n,s,v,p){var x=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(0,r(d[1]).bytes)(n),(0,r(d[1]).bytes)(s),(0,r(d[1]).bytes)(v);var E=v.length;if(p||(p=new Uint8Array(E)),(0,r(d[1]).bytes)(p),(0,r(d[1]).number)(x),x<0||x>=f)throw new Error('arx: counter overflow');if(p.length<E)throw new Error(`arx: output (${p.length}) is shorter than data (${E})`);var k,A,U=[],$=n.length;if(32===$)k=n.slice(),U.push(k),A=u;else{if(16!==$||!h)throw new Error(`arx: invalid 32-byte key, got length=${$}`);(k=new Uint8Array(32)).set(n),k.set(n,16),A=o,U.push(k)}a(s)||(s=s.slice(),U.push(s));var _=(0,r(d[0]).u32)(k);if(l){if(24!==s.length)throw new Error("arx: extended nonce must be 24 bytes");l(A,_,(0,r(d[0]).u32)(s.subarray(0,16)),_),s=s.subarray(16)}var O=16-w;if(O!==s.length)throw new Error(`arx: nonce must be ${O} or 16 bytes`);if(12!==O){var B=new Uint8Array(12);B.set(s,y?0:12-s.length),s=B,U.push(s)}var C=(0,r(d[0]).u32)(s);for(c(t,A,_,C,v,p,x,b);U.length>0;)U.pop().fill(0);return p}}}),519,[514,513]);
|
||||
__d((function(_g,_r,_i5,_a,m,e,d){"use strict";var t=_r(d[0]),r=_r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=e.wrapConstructorWithKey=void 0;var i=function(t,r){return 255&t[r++]|(255&t[r++])<<8},s=(function(){function s(r){t(this,s),this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,r=(0,_r(d[2]).toBytes)(r),(0,_r(d[3]).bytes)(r,32);var n=i(r,0),h=i(r,2),o=i(r,4),a=i(r,6),u=i(r,8),f=i(r,10),v=i(r,12),c=i(r,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|h<<3),this.r[2]=7939&(h>>>10|o<<6),this.r[3]=8191&(o>>>7|a<<9),this.r[4]=255&(a>>>4|u<<12),this.r[5]=u>>>1&8190,this.r[6]=8191&(u>>>14|f<<2),this.r[7]=8065&(f>>>11|v<<5),this.r[8]=8191&(v>>>8|c<<8),this.r[9]=c>>>5&127;for(var l=0;l<8;l++)this.pad[l]=i(r,16+2*l)}return r(s,[{key:"process",value:function(t,r){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:2048,n=this.h,h=this.r,o=h[0],a=h[1],u=h[2],f=h[3],v=h[4],c=h[5],l=h[6],p=h[7],y=h[8],b=h[9],k=i(t,r+0),w=i(t,r+2),L=i(t,r+4),g=i(t,r+6),A=i(t,r+8),U=i(t,r+10),_=i(t,r+12),B=i(t,r+14),x=n[0]+(8191&k),z=n[1]+(8191&(k>>>13|w<<3)),C=n[2]+(8191&(w>>>10|L<<6)),I=n[3]+(8191&(L>>>7|g<<9)),K=n[4]+(8191&(g>>>4|A<<12)),M=n[5]+(A>>>1&8191),W=n[6]+(8191&(A>>>14|U<<2)),j=n[7]+(8191&(U>>>11|_<<5)),O=n[8]+(8191&(_>>>8|B<<8)),P=n[9]+(B>>>5|s),q=0,D=q+x*o+z*(5*b)+C*(5*y)+I*(5*p)+K*(5*l);q=D>>>13,D&=8191;var E=(q+=(D+=M*(5*c)+W*(5*v)+j*(5*f)+O*(5*u)+P*(5*a))>>>13)+x*a+z*o+C*(5*b)+I*(5*y)+K*(5*p);q=E>>>13,E&=8191,q+=(E+=M*(5*l)+W*(5*c)+j*(5*v)+O*(5*f)+P*(5*u))>>>13,E&=8191;var F=q+x*u+z*a+C*o+I*(5*b)+K*(5*y);q=F>>>13,F&=8191,q+=(F+=M*(5*p)+W*(5*l)+j*(5*c)+O*(5*v)+P*(5*f))>>>13,F&=8191;var G=q+x*f+z*u+C*a+I*o+K*(5*b);q=G>>>13,G&=8191,q+=(G+=M*(5*y)+W*(5*p)+j*(5*l)+O*(5*c)+P*(5*v))>>>13,G&=8191;var H=q+x*v+z*f+C*u+I*a+K*o;q=H>>>13,H&=8191,q+=(H+=M*(5*b)+W*(5*y)+j*(5*p)+O*(5*l)+P*(5*c))>>>13,H&=8191;var J=q+x*c+z*v+C*f+I*u+K*a;q=J>>>13,J&=8191,q+=(J+=M*o+W*(5*b)+j*(5*y)+O*(5*p)+P*(5*l))>>>13,J&=8191;var N=q+x*l+z*c+C*v+I*f+K*u;q=N>>>13,N&=8191,q+=(N+=M*a+W*o+j*(5*b)+O*(5*y)+P*(5*p))>>>13,N&=8191;var Q=q+x*p+z*l+C*c+I*v+K*f;q=Q>>>13,Q&=8191,q+=(Q+=M*u+W*a+j*o+O*(5*b)+P*(5*y))>>>13,Q&=8191;var R=q+x*y+z*p+C*l+I*c+K*v;q=R>>>13,R&=8191,q+=(R+=M*f+W*u+j*a+O*o+P*(5*b))>>>13,R&=8191;var S=q+x*b+z*y+C*p+I*l+K*c;q=S>>>13,S&=8191,q+=(S+=M*v+W*f+j*u+O*a+P*o)>>>13,S&=8191,D=8191&(q=(q=(q<<2)+q|0)+(D&=8191)|0),E+=q>>>=13,n[0]=D,n[1]=E,n[2]=F,n[3]=G,n[4]=H,n[5]=J,n[6]=N,n[7]=Q,n[8]=R,n[9]=S}},{key:"finalize",value:function(){var t=this.h,r=this.pad,i=new Uint16Array(10),s=t[1]>>>13;t[1]&=8191;for(var n=2;n<10;n++)t[n]+=s,s=t[n]>>>13,t[n]&=8191;t[0]+=5*s,s=t[0]>>>13,t[0]&=8191,t[1]+=s,s=t[1]>>>13,t[1]&=8191,t[2]+=s,i[0]=t[0]+5,s=i[0]>>>13,i[0]&=8191;for(var h=1;h<10;h++)i[h]=t[h]+s,s=i[h]>>>13,i[h]&=8191;i[9]-=8192;for(var o=(1^s)-1,a=0;a<10;a++)i[a]&=o;o=~o;for(var u=0;u<10;u++)t[u]=t[u]&o|i[u];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);var f=t[0]+r[0];t[0]=65535&f;for(var v=1;v<8;v++)f=(t[v]+r[v]|0)+(f>>>16)|0,t[v]=65535&f}},{key:"update",value:function(t){(0,_r(d[3]).exists)(this);for(var r=this.buffer,i=this.blockLen,s=(t=(0,_r(d[2]).toBytes)(t)).length,n=0;n<s;){var h=Math.min(i-this.pos,s-n);if(h!==i)r.set(t.subarray(n,n+h),this.pos),this.pos+=h,n+=h,this.pos===i&&(this.process(r,0,!1),this.pos=0);else for(;i<=s-n;n+=i)this.process(t,n)}return this}},{key:"destroy",value:function(){this.h.fill(0),this.r.fill(0),this.buffer.fill(0),this.pad.fill(0)}},{key:"digestInto",value:function(t){(0,_r(d[3]).exists)(this),(0,_r(d[3]).output)(t,this),this.finished=!0;var r=this.buffer,i=this.h,s=this.pos;if(s){for(r[s++]=1;s<16;s++)r[s]=0;this.process(r,0,!0)}this.finalize();for(var n=0,h=0;h<8;h++)t[n++]=i[h]>>>0,t[n++]=i[h]>>>8;return t}},{key:"digest",value:function(){var t=this.buffer,r=this.outputLen;this.digestInto(t);var i=t.slice(0,r);return this.destroy(),i}}]),s})();function n(t){var r=function(r,i){return t(i).update((0,_r(d[2]).toBytes)(r)).digest()},i=t(new Uint8Array(32));return r.outputLen=i.outputLen,r.blockLen=i.blockLen,r.create=function(r){return t(r)},r}e.wrapConstructorWithKey=n,e.poly1305=n((function(t){return new s(t)}))}),520,[5,6,514,513]);
|
||||
__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PrescriptionCreator=void 0;var t=e(r(d[1])),l=e(r(d[2])),n=e(r(d[3])),o=r(d[4]),s=r(d[5]),c=e(r(d[6])),u=r(d[7]);function p(e){var t='';for(var l in e){if(t+='<'+l+'>',Array.isArray(e[l]))for(var n of e[l])t+='</'+l+'>',t+='<'+l+'>',t+=p(new Object(n));else'object'==typeof e[l]?t+=p(new Object(e[l])):t+=e[l];t+='</'+l+'>'}return t=t.replace(/<\/?[0-9]{1,}>/g,'')}o.Appearance.getColorScheme(),r(d[8]).Colors.darker;var y=o.Dimensions.get('window').width,h=(o.Dimensions.get('window').height,[{label:'Pharmacy A',value:'A',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.damus.io']},{label:'Pharmacy B',value:'B',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.primal.net']},{label:'Pharmacy C',value:'C',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.hllo.live']},{label:'Pharmacy D',value:'D',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://nos.lol','wss://relay.damus.io']}]);_e.PrescriptionCreator=function(){var e=(0,s.useState)(!1),f=(0,n.default)(e,2),w=f[0],b=f[1],j=(0,s.useState)(''),v=(0,n.default)(j,2),x=v[0],P=v[1],k=(0,s.useState)(h[0].npub),S=(0,n.default)(k,2),z=S[0],C=S[1],D=(0,s.useState)([]),F=(0,n.default)(D,2),_=F[0],q=F[1],A=(0,s.useState)({}),E=(0,n.default)(A,2),I=E[0],V=E[1];(0,s.useEffect)((function(){function e(){return(e=(0,l.default)((function*(){var e=null;try{(e=yield c.default.getItem('user_credentials'))?P(r(d[9]).nip19.npubEncode((0,r(d[9]).getPublicKey)(r(d[9]).nip19.decode(e).data))):b(!0)}catch(e){console.log('Error getting credentials',e)}}))).apply(this,arguments)}!(function(){e.apply(this,arguments)})()}),[]);var B=function(e,l){console.log('Filling',e,l),V(Object.assign({},I,(0,t.default)({},e,l)))},O=(function(){var e=(0,l.default)((function*(e){console.log('Will generate IDs');var t=r(d[9]).nip19.decode(yield c.default.getItem('user_credentials')).data,l=(0,r(d[9]).getPublicKey)(t),n=r(d[9]).nip19.decode(z).data;console.log('Got ids'),console.log('content is ',e);var s={kind:4,tags:[['p',n]],content:yield r(d[9]).nip04.encrypt(t,n,`${e}`),created_at:Math.floor(Date.now()/1e3),pubkey:l},u=(0,r(d[9]).finalizeEvent)(s,t),p=new(r(d[9]).SimplePool);console.log('publishing event'),yield Promise.allSettled(p.publish(_,u)),console.log('Event Published'),o.Alert.alert('Prescription Sent to the pharmacy!')}));return function(t){return e.apply(this,arguments)}})();return(0,u.jsxs)(o.View,{style:{backgroundColor:r(d[8]).Colors.black},children:[(0,u.jsx)(o.Image,{style:{height:100,width:o.Dimensions.get('window').width},source:{uri:'https://www.studentdoctor.net/wp-content/uploads/2018/08/20180815_prescription.png'}}),(0,u.jsxs)(r(d[10]).Section,{title:"PeerScribe",children:["From the practice of ",x,(0,u.jsx)(r(d[11]).Button,{size:"small",onPress:function(){b(!0)},children:"Edit!"})]}),(0,u.jsx)(r(d[10]).Section,{title:"Choose a Pharmacy",children:(0,u.jsx)(o.View,{style:{width:y-40},children:(0,u.jsx)(r(d[12]).Dropdown,{data:h,labelField:'label',valueField:'label',onChange:function(e){C(e.npub),q(e.relays)},value:h[0],renderItem:function(e){return(0,u.jsxs)(o.View,{style:{width:y,display:'flex',flexDirection:'column',padding:10,flexWrap:'wrap'},children:[(0,u.jsx)(o.Text,{style:{color:'black',fontSize:24},children:e.label}),(0,u.jsxs)(o.View,{style:{width:y-100},children:[(0,u.jsxs)(o.Text,{style:{color:'grey',paddingBottom:5},children:["Npub: ",e.npub]}),(0,u.jsxs)(o.Text,{style:{color:'grey'},children:["Relays: ",e.relays.join(', ')]})]})]})},style:{width:'100%'},placeholderStyle:{color:'white'},selectedTextStyle:{color:'white'}})})}),(0,u.jsx)(r(d[10]).Section,{title:"Prescription",children:(0,u.jsxs)(o.View,{style:{display:'flex',flexDirection:'column',width:'100%'},children:[(0,u.jsx)(r(d[13]).PatientForm,{nestedFormCallback:B}),(0,u.jsx)(r(d[14]).AddressForm,{nestedFormCallback:B}),(0,u.jsx)(r(d[11]).Button,{type:"primary",onPress:function(){console.log('Final JSON is',I);var e=p({prescription:I});console.log('XML is...',e,typeof e),O(e)},children:(0,u.jsxs)(o.Text,{style:[{color:r(d[8]).Colors.light}],children:[' ',"Create RX",' ']})})]})}),(0,u.jsx)(r(d[15]).ImportNsec,{isVisible:w,onClose:function(){b(!1)},onPress:function(e){c.default.setItem('user_credentials',e),e.startsWith('nsec1')&&63!==e.length?o.Alert.alert('not a valid nsec!'):(P(r(d[9]).nip19.npubEncode((0,r(d[9]).getPublicKey)(r(d[9]).nip19.decode(e).data))),b(!1))}})]})}}),521,[1,170,339,26,2,153,522,194,480,492,524,526,852,868,876,877]);
|
||||
__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PrescriptionCreator=void 0;var t=e(r(d[1])),l=e(r(d[2])),n=e(r(d[3])),o=r(d[4]),s=r(d[5]),c=e(r(d[6])),u=r(d[7]);function p(e){var t='';for(var l in e){if(t+='<'+l+'>',Array.isArray(e[l]))for(var n of e[l])t+='</'+l+'>',t+='<'+l+'>',t+=p(new Object(n));else'object'==typeof e[l]?t+=p(new Object(e[l])):t+=e[l];t+='</'+l+'>'}return t=t.replace(/<\/?[0-9]{1,}>/g,'')}o.Appearance.getColorScheme(),r(d[8]).Colors.darker;var y=o.Dimensions.get('window').width,h=(o.Dimensions.get('window').height,[{label:'Pharmacy A',value:'A',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.damus.io']},{label:'Pharmacy B',value:'B',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.primal.net']},{label:'Pharmacy C',value:'C',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://relay.hllo.live']},{label:'Pharmacy D',value:'D',npub:'npub1tea09rtjeuzgk4gjajzry37wuyv7h02d4zw38cpadcrkg5yt0qhqncr7km',relays:['wss://nos.lol','wss://relay.damus.io']}]);_e.PrescriptionCreator=function(){var e=(0,s.useState)(!1),f=(0,n.default)(e,2),w=f[0],b=f[1],j=(0,s.useState)(''),v=(0,n.default)(j,2),x=v[0],k=v[1],P=(0,s.useState)(h[0].npub),S=(0,n.default)(P,2),C=S[0],z=S[1],F=(0,s.useState)([]),D=(0,n.default)(F,2),_=D[0],q=D[1],A=(0,s.useState)({}),E=(0,n.default)(A,2),I=E[0],V=E[1];(0,s.useEffect)((function(){function e(){return(e=(0,l.default)((function*(){var e=null;try{(e=yield c.default.getItem('user_credentials'))?k(r(d[9]).nip19.npubEncode((0,r(d[9]).getPublicKey)(r(d[9]).nip19.decode(e).data))):b(!0)}catch(e){console.log('Error getting credentials',e)}}))).apply(this,arguments)}!(function(){e.apply(this,arguments)})()}),[]);var B=function(e,l){console.log('Filling',e,l),V(Object.assign({},I,(0,t.default)({},e,l)))},O=(function(){var e=(0,l.default)((function*(e){console.log('Will generate IDs');var t=r(d[9]).nip19.decode(yield c.default.getItem('user_credentials')).data,l=(0,r(d[9]).getPublicKey)(t),n=r(d[9]).nip19.decode(C).data;console.log('Got ids'),console.log('content is ',e);var s={kind:4,tags:[['p',n]],content:yield r(d[9]).nip04.encrypt(t,n,`${e}`),created_at:Math.floor(Date.now()/1e3),pubkey:l},u=(0,r(d[9]).finalizeEvent)(s,t),p=new(r(d[9]).SimplePool);console.log('publishing event'),yield Promise.allSettled(p.publish(_,u)),console.log('Event Published'),o.Alert.alert('Prescription Sent to the pharmacy!')}));return function(t){return e.apply(this,arguments)}})();return(0,u.jsxs)(o.View,{style:{backgroundColor:r(d[8]).Colors.black},children:[(0,u.jsx)(o.Image,{style:{height:100,width:o.Dimensions.get('window').width},source:{uri:'https://www.studentdoctor.net/wp-content/uploads/2018/08/20180815_prescription.png'}}),(0,u.jsxs)(r(d[10]).Section,{title:"PeerScribe",children:["From the practice of ",x,(0,u.jsx)(r(d[11]).Button,{size:"small",onPress:function(){b(!0)},children:"Edit!"})]}),(0,u.jsx)(r(d[10]).Section,{title:"Choose a Pharmacy",children:(0,u.jsx)(o.View,{style:{width:y-40},children:(0,u.jsx)(r(d[12]).Dropdown,{data:h,labelField:'label',valueField:'label',onChange:function(e){z(e.npub),q(e.relays)},value:h[0],renderItem:function(e){return(0,u.jsxs)(o.View,{style:{width:y,display:'flex',flexDirection:'column',padding:10,flexWrap:'wrap'},children:[(0,u.jsx)(o.Text,{style:{color:'black',fontSize:24},children:e.label}),(0,u.jsxs)(o.View,{style:{width:y-100},children:[(0,u.jsxs)(o.Text,{style:{color:'grey',paddingBottom:5},children:["Npub: ",e.npub]}),(0,u.jsxs)(o.Text,{style:{color:'grey'},children:["Relays: ",e.relays.join(', ')]})]})]})},style:{width:'100%'},placeholderStyle:{color:'white'},selectedTextStyle:{color:'white'}})})}),(0,u.jsx)(r(d[10]).Section,{title:"Prescription",children:(0,u.jsxs)(o.View,{style:{display:'flex',flexDirection:'column',width:'100%'},children:[(0,u.jsx)(r(d[13]).PatientForm,{nestedFormCallback:B}),(0,u.jsx)(r(d[14]).AddressForm,{nestedFormCallback:B}),(0,u.jsx)(r(d[15]).MedicineForm,{nestedFormCallback:B}),(0,u.jsx)(r(d[11]).Button,{type:"primary",onPress:function(){console.log('Final JSON is',I);var e=p({prescription:I});console.log('XML is...',e,typeof e),O(e)},children:(0,u.jsxs)(o.Text,{style:[{color:r(d[8]).Colors.light}],children:[' ',"Create RX",' ']})})]})}),(0,u.jsx)(r(d[16]).ImportNsec,{isVisible:w,onClose:function(){b(!1)},onPress:function(e){c.default.setItem('user_credentials',e),e.startsWith('nsec1')&&63!==e.length?o.Alert.alert('not a valid nsec!'):(k(r(d[9]).nip19.npubEncode((0,r(d[9]).getPublicKey)(r(d[9]).nip19.decode(e).data))),b(!1))}})]})}}),521,[1,170,339,26,2,153,522,194,480,492,524,526,852,868,876,877,878]);
|
||||
__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))}),522,[1,523]);
|
||||
__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),c=r(d[3]).NativeModules.RNEncryptedStorage;if(!c)throw new Error('RNEncryptedStorage is undefined');e.default=(function(){function t(){(0,n.default)(this,t)}return(0,u.default)(t,null,[{key:"setItem",value:function(t,n,u){if(!u)return c.setItem(t,n);c.setItem(t,n).then(u).catch(u)}},{key:"getItem",value:function(t,n){if(!n)return c.getItem(t);c.getItem(t).then(n).catch(n)}},{key:"removeItem",value:function(t,n){if(!n)return c.removeItem(t);c.removeItem(t).then(n).catch(n)}},{key:"clear",value:function(t){if(!t)return c.clear();c.clear().then(t).catch(t)}}]),t})()}),523,[1,5,6,2]);
|
||||
__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Section=function(n){var l=n.children,c=n.title;return(0,s.jsxs)(t.View,{style:r(d[2]).styles.sectionContainer,children:[(0,s.jsx)(t.Text,{style:r(d[2]).styles.sectionTitle,children:c}),(0,s.jsx)(t.Text,{style:[r(d[2]).styles.sectionDescription],children:l})]})};var t=r(d[0]),s=r(d[1])}),524,[2,194,525]);
|
||||
@@ -962,7 +962,8 @@ __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",
|
||||
__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DatePickerIOS=void 0;var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[0])),t=_r(d[1]),n=_r(d[2]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var r=(0,_r(d[3]).getNativeComponent)(),i=(_e.DatePickerIOS=function(t){var a=(0,e.useCallback)((function(e){var n=e.nativeEvent.timestamp;t.onDateChange&&t.onDateChange(new Date(n))}),[t]),o=Object.assign({},t,{onChange:a,style:[i.datePickerIOS,t.style],date:t.date?t.date.getTime():void 0,locale:t.locale?t.locale:void 0,maximumDate:t.maximumDate?t.maximumDate.getTime():void 0,minimumDate:t.minimumDate?t.minimumDate.getTime():void 0,theme:t.theme?t.theme:'auto'});return(0,_r(d[4]).useModal)({props:o,id:void 0}),t.modal?null:(0,n.jsx)(r,Object.assign({},o,{onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1}}))},t.StyleSheet.create({datePickerIOS:{height:216,width:310}}))}),874,[153,2,194,871,873]);
|
||||
__d((function(_g,_r,i,a,m,e,d){var f=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.colorToHex=function(f){if(void 0===f)return f;if('none'===f)return f;if(f.includes('rgb'))return n(l(f));if(f.includes('hsl'))return t(o(f));if(f.includes('#')){if(!/^#([0-9A-Fa-f]{3}){1,2}$/i.test(f))throw Error('Invalid color: '+f);if(4===f.length)return'#'+f[1]+f[1]+f[2]+f[2]+f[3]+f[3];if(7===f.length)return f}var r=c(f);if(r)return r;throw Error('Invalid color: '+f)};var r=f(_r(d[1]));function l(f){var r=f.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!r)throw Error('Invalid color: '+f);return r.slice(1)}function n(f){return 3!==f.length?'':'#'+parseInt(f[0],10).toString(16).padStart(2,'0')+parseInt(f[1],10).toString(16).padStart(2,'0')+parseInt(f[2],10).toString(16).padStart(2,'0')}function o(f){var r=f.match(/^hsla*\((\d{1,3})\s*[, ]\s*(\d{1,3})%\s*[, ]\s*(\d{1,3})%.*\)/i);if(null===r)throw Error('Invalid color: '+f);return[r[1]/360,r[2]/100,r[3]/100]}function t(f){if(3!==f.length)return'';var l,o,t,c=(0,r.default)(f,3),u=c[0],b=c[1],s=c[2];if(0===b)l=o=t=s;else{var g=function(f,r,l){return l<0&&(l+=1),l>1&&(l-=1),l<.16666666666666666?f+6*(r-f)*l:l<.5?r:l<.6666666666666666?f+(r-f)*(.6666666666666666-l)*6:f},h=s<.5?s*(1+b):s+b-s*b,p=2*s-h;l=g(p,h,u+.3333333333333333),o=g(p,h,u),t=g(p,h,u-.3333333333333333)}return n([Math.round(255*l),Math.round(255*o),Math.round(255*t)])}function c(f){return{aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',gold:'#ffd700',goldenrod:'#daa520',gray:'#808080',green:'#008000',greenyellow:'#adff2f',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavender:'#e6e6fa',lavenderblush:'#fff0f5',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgrey:'#d3d3d3',lightgreen:'#90ee90',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370d8',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#d87093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',rebeccapurple:'#663399',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'}[f.toLowerCase()]}}),875,[1,26]);
|
||||
__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.AddressForm=void 0;var n=t(r(d[1])),l=r(d[2]),s=r(d[3]),o=r(d[4]);e.AddressForm=function(t){var c=t.nestedFormCallback,x=(0,s.useState)({}),h=(0,n.default)(x,2),u=h[0],T=h[1],p=function(t,n){var l=Object.assign({},u);l[t]=n,T(l),c('Address',l)};return(0,o.jsx)(r(d[5]).Section,{title:"Address",children:(0,o.jsxs)(l.View,{children:[(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Address Line 1"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter street",value:u.address_line_1,placeholderTextColor:"white",onChangeText:function(t){return p('address_line_1',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"City"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter city",value:u.city,placeholderTextColor:"white",onChangeText:function(t){return p('city',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"State Provice"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"enter state...",value:u.state_province,placeholderTextColor:"white",onChangeText:function(t){return p('state_province',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Postal Code"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter postal code...",value:u.postal_code,placeholderTextColor:"light",onChangeText:function(t){return p('postal_code',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Country Code"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter Country Code...",value:u.country_code,placeholderTextColor:"light",onChangeText:function(t){return p('country_code',t)}})]})]})})}}),876,[1,26,2,153,194,524,525]);
|
||||
__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ImportNsec=void 0;var n=o(r(d[1])),t=r(d[2]),s=r(d[3]),l=r(d[4]);e.ImportNsec=function(o){var c=o.isVisible,u=o.onClose,f=o.onPress,x=(0,t.useState)(""),h=(0,n.default)(x,2),j=h[0],p=h[1];return(0,l.jsx)(s.Modal,{visible:c,onRequestClose:function(){return console.log("closing...."),u(),!0},onDismiss:function(){u()},presentationStyle:"pageSheet",children:(0,l.jsxs)(s.View,{style:{backgroundColor:"#ffffff",height:500,justifyContent:"center",display:"flex",margin:30,borderColor:"red",alignItems:"center"},children:[(0,l.jsxs)(s.View,{style:{margin:5},children:[(0,l.jsx)(s.Text,{style:{color:"#000000",margin:5},children:"Import Your Nsec"}),(0,l.jsx)(s.TextInput,{style:{borderColor:"#000000",borderWidth:1,borderRadius:5,color:"#000000"},onChangeText:function(o){p(o)}})]}),(0,l.jsx)(s.View,{children:(0,l.jsx)(s.Button,{title:"Import",onPress:function(){return f(j)}})})]})})}}),877,[1,26,153,2,194]);
|
||||
__d((function(e,r,i,a,c,n,b){c.exports={name:"PeerScribe",displayName:"PeerScribe"}}),878,[]);
|
||||
__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.MedicineForm=void 0;var n=t(r(d[1])),l=r(d[2]),s=r(d[3]),o=r(d[4]);e.MedicineForm=function(t){var h=t.nestedFormCallback,x=(0,s.useState)({}),c=(0,n.default)(x,2),u=c[0],T=c[1],p=function(t,n){var l=Object.assign({},u);l[t]=n,T(l),h('MedicationPrescribed',l)};return(0,o.jsx)(r(d[5]).Section,{title:"Medicine",children:(0,o.jsxs)(l.View,{children:[(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Name of Medicine"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter name of medicine",value:u.name,placeholderTextColor:"white",onChangeText:function(t){return p('name',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:" Form of Dosage"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"what is the dosage form",value:u.dosage_form,placeholderTextColor:"white",onChangeText:function(t){return p('dosage_form',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Strength"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"enter strength...",value:u.strength,placeholderTextColor:"white",onChangeText:function(t){return p('strength',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Quantity"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter quantity...",value:u.quantity,placeholderTextColor:"light",onChangeText:function(t){return p('quantity',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Refills"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Refills",value:u.refills,placeholderTextColor:"light",onChangeText:function(t){return p('refills',t)}})]}),(0,o.jsxs)(l.View,{children:[(0,o.jsx)(l.Text,{style:r(d[6]).TextTheme,children:"Directions"}),(0,o.jsx)(l.TextInput,{style:r(d[6]).styles.input,placeholder:"Enter directions",value:u.refills,placeholderTextColor:"light",onChangeText:function(t){return p('directions',t)}})]})]})})}}),877,[1,26,2,153,194,524,525]);
|
||||
__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ImportNsec=void 0;var n=o(r(d[1])),t=r(d[2]),s=r(d[3]),l=r(d[4]);e.ImportNsec=function(o){var c=o.isVisible,u=o.onClose,f=o.onPress,x=(0,t.useState)(''),h=(0,n.default)(x,2),j=h[0],p=h[1];return(0,l.jsx)(s.Modal,{visible:c,onRequestClose:function(){return console.log('closing....'),u(),!0},onDismiss:function(){u()},presentationStyle:"pageSheet",children:(0,l.jsxs)(s.View,{style:{backgroundColor:'#ffffff',height:500,justifyContent:'center',display:'flex',margin:30,borderColor:'red',alignItems:'center'},children:[(0,l.jsxs)(s.View,{style:{margin:5},children:[(0,l.jsx)(s.Text,{style:{color:'#000000',margin:5},children:"Import Your Nsec"}),(0,l.jsx)(s.TextInput,{style:{borderColor:'#000000',borderWidth:1,borderRadius:5,color:'#000000'},onChangeText:function(o){p(o)}})]}),(0,l.jsx)(s.View,{children:(0,l.jsx)(s.Button,{title:"Import",onPress:function(){return f(j)}})})]})})}}),878,[1,26,153,2,194]);
|
||||
__d((function(e,r,i,a,c,n,b){c.exports={name:"PeerScribe",displayName:"PeerScribe"}}),879,[]);
|
||||
__r(57);
|
||||
__r(0);
|
||||
Reference in new issue
Block a user