diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 37b7350..a70c056 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" + android:usesCleartextTraffic="true" android:theme="@style/AppTheme"> 0&&void 0!==arguments[0]?arguments[0]:1,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.97,l=(0,s.useState)(new u.Animated.Value(t)),v=(0,n.default)(l,1)[0];return{scaleValue:v,handlePressIn:function(){u.Animated.spring(v,{toValue:o,friction:3,useNativeDriver:!0}).start()},handlePressOut:function(){u.Animated.spring(v,{toValue:t,friction:3,useNativeDriver:!0}).start()}}}}),443,[1,26,153,2]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.COLOR_WHITE=e.COLOR_TEXT_DARKGRAY=e.COLOR_TEXT_BLACK=e.COLOR_TEXT70GRAY=e.COLOR_TEXT60GRAY=e.COLOR_SECONDARY=e.COLOR_RED=e.COLOR_PRIMARY=e.COLOR_ORANGE=e.COLOR_NAVY=e.COLOR_LIGHTGRAY=e.COLOR_HOME_BACKGROUND=e.COLOR_GRAY=e.COLOR_DISABLE_GRAY=e.COLOR_BLUE=e.COLOR_BACKGROUND=void 0;e.COLOR_PRIMARY='#2D4B33',e.COLOR_SECONDARY='#3e6746',e.COLOR_BACKGROUND='#FEFEFE',e.COLOR_TEXT_BLACK='#000000',e.COLOR_TEXT_DARKGRAY='#535353',e.COLOR_GRAY='#888888',e.COLOR_WHITE='#FFFFFF',e.COLOR_TEXT70GRAY='#4D4D4D',e.COLOR_TEXT60GRAY='#666666',e.COLOR_NAVY='#003C71',e.COLOR_LIGHTGRAY='#dddddd',e.COLOR_RED='#FF0000',e.COLOR_BLUE='#0000FF',e.COLOR_ORANGE='#FF6A13',e.COLOR_HOME_BACKGROUND='#E2E2E2',e.COLOR_DISABLE_GRAY='#C5C5C5'}),444,[]); @@ -667,7 +667,7 @@ __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esMo __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(r){var n=e.useContext(_r(d[1]).NavigationContext),o=(0,_r(d[1]).useRoute)();if(void 0===n)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");e.useEffect((function(){for(var e=[],u=n;u;)'tab'===u.getState().type&&e.push(u),u=u.getParent();if(0!==e.length){var l=e.map((function(u){return u.addListener('tabPress',(function(u){var l=n.isFocused(),c=e.includes(n)||n.getState().routes[0].key===o.key;requestAnimationFrame((function(){var e=t(r);l&&c&&e&&!u.defaultPrevented&&('scrollToTop'in e?e.scrollToTop():'scrollTo'in e?e.scrollTo({y:0,animated:!0}):'scrollToOffset'in e?e.scrollToOffset({offset:0,animated:!0}):'scrollResponderScrollTo'in e&&e.scrollResponderScrollTo({y:0,animated:!0}))}))}))}));return function(){l.forEach((function(e){return e()}))}}}),[n,r,o.key])};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=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=u?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function t(e){return null==e.current?null:'scrollToTop'in e.current||'scrollTo'in e.current||'scrollToOffset'in e.current||'scrollResponderScrollTo'in e.current?e.current:'getScrollResponder'in e.current?e.current.getScrollResponder():'getNode'in e.current?e.current.getNode():e.current}}),619,[153,529]); __d((function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:750,height:592,scales:[1],hash:"01792c1285fca185683f1e9e7ce12c50",name:"splashLogo",type:"png"})}),620,[621]); __d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),621,[179]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[13]).useNavigation)(),x=(0,a.useState)(''),h=(0,n.default)(x,2),y=h[0],j=h[1],w=(0,a.useState)(''),T=(0,n.default)(w,2),C=T[0],v=T[1],b=(0,a.useState)(!0),O=(0,n.default)(b,2),R=O[0],S=O[1],_=(0,a.useState)(!0),k=(0,n.default)(_,2),I=k[0],V=k[1],A=(0,a.useRef)(null),P=(0,a.useRef)(null),B=(0,a.useContext)(u.default);(0,a.useEffect)((function(){y&&C&&I?V(!1):y&&C||I||V(!0)}),[y,C]);var E=(function(){var n=(0,t.default)((function*(){console.log('email:',y),console.log('password:',C);try{var t=yield s.default.post("http://13.124.226.226/v1/users/email/sign-in",{email:y,password:C});if(console.log('response:',t.data.data),!t.data.data)return void console.log('Error: No return data');var n=t.data.data.token.accessToken,a=t.data.data.token.refreshToken,r=t.data.data.userDto.id;B.setAccessTokenValue(n),B.setRefreshTokenValue(a),B.setIdValue(r),c.default.setItem('accessToken',n),c.default.setItem('refreshToken',a),c.default.setItem('userId',r.toString()),e.navigate('BottomTab')}catch(e){l.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return n.apply(this,arguments)}})();return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(r.TouchableWithoutFeedback,{onPress:r.Keyboard.dismiss,accessible:!1,children:(0,f.jsxs)(r.View,{style:p.entire,children:[(0,f.jsxs)(r.View,{style:p.container,children:[(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\uc774\uba54\uc77c"}),(0,f.jsx)(r.TextInput,{ref:A,onSubmitEditing:function(){P.current.focus()},keyboardType:"email-address",autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){j(e)},value:y,style:p.textinputBox,placeholder:""})]}),(0,f.jsx)(r.View,{style:{height:20}}),(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\ube44\ubc00 \ubc88\ud638"}),(0,f.jsx)(r.TextInput,{ref:P,onSubmitEditing:E,secureTextEntry:R,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){v(e)},value:C,style:p.textinputBox}),(0,f.jsx)(o.default,{style:p.showButton,onPress:function(){S(!R)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:R?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})]}),(0,f.jsx)(r.View,{style:{height:40}}),(0,f.jsx)(i.default,{text:"\ub85c\uadf8\uc778\ud558\uae30",action:E,disable:I}),(0,f.jsx)(r.View,{style:{marginTop:12,padding:4},children:(0,f.jsxs)(r.View,{style:{flexDirection:'row'},children:[(0,f.jsx)(o.default,{onPress:function(){e.navigate('FindPassword')},style:{padding:30,paddingVertical:0},children:(0,f.jsx)(r.Text,{style:p.samllTextColor,children:"\ube44\ubc00\ubc88\ud638 \ucc3e\uae30"})}),(0,f.jsx)(o.default,{onPress:function(){e.navigate('Signup')},style:{padding:30,paddingVertical:0},children:(0,f.jsx)(r.Text,{style:p.samllTextColor,children:'\ud68c\uc6d0\uac00\uc785'})})]})})]})})})};var t=e(_r(d[1])),n=e(_r(d[2])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a})(_r(d[3])),r=_r(d[4]),o=e(_r(d[5])),l=e(_r(d[6])),s=e(_r(d[7])),i=(e(_r(d[8])),e(_r(d[9]))),u=e(_r(d[10])),c=e(_r(d[11])),f=_r(d[12]);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}var p=r.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},samllTextColor:{color:_r(d[14]).COLOR_SECONDARY,fontSize:12,fontFamily:'NanumSquareRoundB',textAlign:'center',paddingVertical:4},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),622,[1,339,26,153,2,442,445,472,623,523,439,517,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[13]).useNavigation)(),x=(0,a.useState)(''),h=(0,n.default)(x,2),y=h[0],j=h[1],w=(0,a.useState)(''),T=(0,n.default)(w,2),C=T[0],v=T[1],b=(0,a.useState)(!0),O=(0,n.default)(b,2),R=O[0],S=O[1],_=(0,a.useState)(!0),k=(0,n.default)(_,2),I=k[0],V=k[1],A=(0,a.useRef)(null),P=(0,a.useRef)(null),B=(0,a.useContext)(u.default);(0,a.useEffect)((function(){y&&C&&I?V(!1):y&&C||I||V(!0)}),[y,C]);var E=(function(){var n=(0,t.default)((function*(){console.log('email:',y),console.log('password:',C);try{var t=yield s.default.post("undefined/v1/users/email/sign-in",{email:y,password:C});if(console.log('response:',t.data.data),!t.data.data)return void console.log('Error: No return data');var n=t.data.data.token.accessToken,a=t.data.data.token.refreshToken,r=t.data.data.userDto.id;B.setAccessTokenValue(n),B.setRefreshTokenValue(a),B.setIdValue(r),c.default.setItem('accessToken',n),c.default.setItem('refreshToken',a),c.default.setItem('userId',r.toString()),e.navigate('BottomTab')}catch(e){l.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return n.apply(this,arguments)}})();return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(r.TouchableWithoutFeedback,{onPress:r.Keyboard.dismiss,accessible:!1,children:(0,f.jsxs)(r.View,{style:p.entire,children:[(0,f.jsxs)(r.View,{style:p.container,children:[(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\uc774\uba54\uc77c"}),(0,f.jsx)(r.TextInput,{ref:A,onSubmitEditing:function(){P.current.focus()},keyboardType:"email-address",autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){j(e)},value:y,style:p.textinputBox,placeholder:""})]}),(0,f.jsx)(r.View,{style:{height:20}}),(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\ube44\ubc00 \ubc88\ud638"}),(0,f.jsx)(r.TextInput,{ref:P,onSubmitEditing:E,secureTextEntry:R,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){v(e)},value:C,style:p.textinputBox}),(0,f.jsx)(o.default,{style:p.showButton,onPress:function(){S(!R)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:R?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})]}),(0,f.jsx)(r.View,{style:{height:40}}),(0,f.jsx)(i.default,{text:"\ub85c\uadf8\uc778\ud558\uae30",action:E,disable:I}),(0,f.jsx)(r.View,{style:{marginTop:12,padding:4},children:(0,f.jsxs)(r.View,{style:{flexDirection:'row'},children:[(0,f.jsx)(o.default,{onPress:function(){e.navigate('FindPassword')},style:{padding:30,paddingVertical:0},children:(0,f.jsx)(r.Text,{style:p.samllTextColor,children:"\ube44\ubc00\ubc88\ud638 \ucc3e\uae30"})}),(0,f.jsx)(o.default,{onPress:function(){e.navigate('Signup')},style:{padding:30,paddingVertical:0},children:(0,f.jsx)(r.Text,{style:p.samllTextColor,children:'\ud68c\uc6d0\uac00\uc785'})})]})})]})})})};var t=e(_r(d[1])),n=e(_r(d[2])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a})(_r(d[3])),r=_r(d[4]),o=e(_r(d[5])),l=e(_r(d[6])),s=e(_r(d[7])),i=(e(_r(d[8])),e(_r(d[9]))),u=e(_r(d[10])),c=e(_r(d[11])),f=_r(d[12]);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}var p=r.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},samllTextColor:{color:_r(d[14]).COLOR_SECONDARY,fontSize:12,fontFamily:'NanumSquareRoundB',textAlign:'center',paddingVertical:4},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),622,[1,339,26,153,2,442,445,472,623,523,439,517,194,524,444,624,696]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var o=(0,_r(d[5]).useNavigation)(),i=e.title,l=e.isBackButton;return(0,r.jsxs)(t.View,{style:{backgroundColor:_r(d[6]).COLOR_BACKGROUND,height:56,justifyContent:'center',alignItems:'center',flexDirection:'row'},children:[l?(0,r.jsx)(n.default,{style:{position:'absolute',left:6,padding:10},onPress:function(){o.goBack()},children:(0,r.jsx)(_r(d[7]).SvgXml,{xml:_r(d[8]).svgXml.button.gobackGray,width:"24",height:"24"})}):null,(0,r.jsx)(t.Text,{style:{color:_r(d[6]).COLOR_PRIMARY,fontSize:16,fontWeight:'bold',textAlign:'center'},children:i})]})};!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(r,l,a):r[l]=e[l]}r.default=e,n&&n.set(e,r)})(_r(d[1]));var t=_r(d[2]),n=e(_r(d[3])),r=_r(d[4]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.StyleSheet.create({})}),623,[1,153,2,442,194,524,444,624,696]); __d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t.default}});var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}))}),624,[625]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={Shape:!0,Rect:!0,Circle:!0,Ellipse:!0,Polygon:!0,Polyline:!0,Line:!0,Svg:!0,Path:!0,G:!0,Text:!0,TSpan:!0,TextPath:!0,Use:!0,Image:!0,Symbol:!0,Defs:!0,LinearGradient:!0,RadialGradient:!0,Stop:!0,ClipPath:!0,Pattern:!0,Mask:!0,Marker:!0,ForeignObject:!0,parse:!0,SvgAst:!0,SvgFromUri:!0,SvgFromXml:!0,SvgUri:!0,SvgXml:!0,camelCase:!0,err:!0,fetchText:!0,RNSVGCircle:!0,RNSVGClipPath:!0,RNSVGDefs:!0,RNSVGEllipse:!0,RNSVGForeignObject:!0,RNSVGGroup:!0,RNSVGImage:!0,RNSVGLine:!0,RNSVGLinearGradient:!0,RNSVGMarker:!0,RNSVGMask:!0,RNSVGPath:!0,RNSVGPattern:!0,RNSVGRadialGradient:!0,RNSVGRect:!0,RNSVGSvgAndroid:!0,RNSVGSvgIOS:!0,RNSVGSymbol:!0,RNSVGText:!0,RNSVGTextPath:!0,RNSVGTSpan:!0,RNSVGUse:!0,SvgCss:!0,SvgCssUri:!0,SvgWithCss:!0,SvgWithCssUri:!0,inlineStyles:!0,LocalSvg:!0,WithLocalSvg:!0,loadLocalRawResource:!0};Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"ClipPath",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"Defs",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ForeignObject",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"G",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"LinearGradient",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"LocalSvg",{enumerable:!0,get:function(){return r(d[1]).LocalSvg}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"Mask",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"Pattern",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"RNSVGCircle",{enumerable:!0,get:function(){return r(d[2]).RNSVGCircle}}),Object.defineProperty(e,"RNSVGClipPath",{enumerable:!0,get:function(){return r(d[2]).RNSVGClipPath}}),Object.defineProperty(e,"RNSVGDefs",{enumerable:!0,get:function(){return r(d[2]).RNSVGDefs}}),Object.defineProperty(e,"RNSVGEllipse",{enumerable:!0,get:function(){return r(d[2]).RNSVGEllipse}}),Object.defineProperty(e,"RNSVGForeignObject",{enumerable:!0,get:function(){return r(d[2]).RNSVGForeignObject}}),Object.defineProperty(e,"RNSVGGroup",{enumerable:!0,get:function(){return r(d[2]).RNSVGGroup}}),Object.defineProperty(e,"RNSVGImage",{enumerable:!0,get:function(){return r(d[2]).RNSVGImage}}),Object.defineProperty(e,"RNSVGLine",{enumerable:!0,get:function(){return r(d[2]).RNSVGLine}}),Object.defineProperty(e,"RNSVGLinearGradient",{enumerable:!0,get:function(){return r(d[2]).RNSVGLinearGradient}}),Object.defineProperty(e,"RNSVGMarker",{enumerable:!0,get:function(){return r(d[2]).RNSVGMarker}}),Object.defineProperty(e,"RNSVGMask",{enumerable:!0,get:function(){return r(d[2]).RNSVGMask}}),Object.defineProperty(e,"RNSVGPath",{enumerable:!0,get:function(){return r(d[2]).RNSVGPath}}),Object.defineProperty(e,"RNSVGPattern",{enumerable:!0,get:function(){return r(d[2]).RNSVGPattern}}),Object.defineProperty(e,"RNSVGRadialGradient",{enumerable:!0,get:function(){return r(d[2]).RNSVGRadialGradient}}),Object.defineProperty(e,"RNSVGRect",{enumerable:!0,get:function(){return r(d[2]).RNSVGRect}}),Object.defineProperty(e,"RNSVGSvgAndroid",{enumerable:!0,get:function(){return r(d[2]).RNSVGSvgAndroid}}),Object.defineProperty(e,"RNSVGSvgIOS",{enumerable:!0,get:function(){return r(d[2]).RNSVGSvgIOS}}),Object.defineProperty(e,"RNSVGSymbol",{enumerable:!0,get:function(){return r(d[2]).RNSVGSymbol}}),Object.defineProperty(e,"RNSVGTSpan",{enumerable:!0,get:function(){return r(d[2]).RNSVGTSpan}}),Object.defineProperty(e,"RNSVGText",{enumerable:!0,get:function(){return r(d[2]).RNSVGText}}),Object.defineProperty(e,"RNSVGTextPath",{enumerable:!0,get:function(){return r(d[2]).RNSVGTextPath}}),Object.defineProperty(e,"RNSVGUse",{enumerable:!0,get:function(){return r(d[2]).RNSVGUse}}),Object.defineProperty(e,"RadialGradient",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Stop",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"Svg",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"SvgAst",{enumerable:!0,get:function(){return r(d[3]).SvgAst}}),Object.defineProperty(e,"SvgCss",{enumerable:!0,get:function(){return r(d[1]).SvgCss}}),Object.defineProperty(e,"SvgCssUri",{enumerable:!0,get:function(){return r(d[1]).SvgCssUri}}),Object.defineProperty(e,"SvgFromUri",{enumerable:!0,get:function(){return r(d[3]).SvgFromUri}}),Object.defineProperty(e,"SvgFromXml",{enumerable:!0,get:function(){return r(d[3]).SvgFromXml}}),Object.defineProperty(e,"SvgUri",{enumerable:!0,get:function(){return r(d[3]).SvgUri}}),Object.defineProperty(e,"SvgWithCss",{enumerable:!0,get:function(){return r(d[1]).SvgWithCss}}),Object.defineProperty(e,"SvgWithCssUri",{enumerable:!0,get:function(){return r(d[1]).SvgWithCssUri}}),Object.defineProperty(e,"SvgXml",{enumerable:!0,get:function(){return r(d[3]).SvgXml}}),Object.defineProperty(e,"Symbol",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"TSpan",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"TextPath",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"Use",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"WithLocalSvg",{enumerable:!0,get:function(){return r(d[1]).WithLocalSvg}}),Object.defineProperty(e,"camelCase",{enumerable:!0,get:function(){return r(d[3]).camelCase}}),e.default=void 0,Object.defineProperty(e,"err",{enumerable:!0,get:function(){return r(d[3]).err}}),Object.defineProperty(e,"fetchText",{enumerable:!0,get:function(){return r(d[3]).fetchText}}),Object.defineProperty(e,"inlineStyles",{enumerable:!0,get:function(){return r(d[1]).inlineStyles}}),Object.defineProperty(e,"loadLocalRawResource",{enumerable:!0,get:function(){return r(d[1]).loadLocalRawResource}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r(d[3]).parse}});var u=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),l=t(r(d[8])),b=t(r(d[9])),S=t(r(d[10])),p=t(r(d[11])),P=t(r(d[12])),R=t(r(d[13])),y=t(r(d[14])),G=t(r(d[15])),O=t(r(d[16])),j=t(r(d[17])),N=t(r(d[18])),V=t(r(d[19])),s=t(r(d[20])),v=t(r(d[21])),h=t(r(d[22])),C=t(r(d[23])),L=t(r(d[24])),T=t(r(d[25])),U=t(r(d[26])),x=t(r(d[27])),M=t(r(d[28]));Object.keys(r(d[29])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in e&&e[t]===r(d[29])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[29])[t]}}))}));e.default=p.default}),625,[1,626,627,650,652,651,666,667,668,671,672,673,669,675,678,679,680,681,682,683,684,685,688,689,690,691,692,693,694,695]); @@ -742,9 +742,9 @@ __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esMo __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 e=t(_r(d[1])),r=t(_r(d[2])),n=t(_r(d[3])),u=t(_r(d[4])),o=t(_r(d[5])),a=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=l(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&{}.hasOwnProperty.call(t,o)){var a=u?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}n.default=t,r&&r.set(t,n)})(_r(d[6])),t(_r(d[7]))),f=t(_r(d[8])),i=_r(d[9]);function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}var p=_e.default=(function(t){function a(){return(0,e.default)(this,a),t=this,r=a,o=arguments,r=(0,u.default)(r),(0,n.default)(t,c()?Reflect.construct(r,o||[],(0,u.default)(t).constructor):r.apply(t,o));var t,r,o}return(0,o.default)(a,t),(0,r.default)(a,[{key:"render",value:function(){var t=this,e=this.props,r=e.x,n=e.y,u=e.width,o=e.height,a=e.children,l={x:r,y:n,width:u,height:o};return(0,i.jsx)(f.default,Object.assign({ref:function(e){return t.refMethod(e)}},(0,_r(d[10]).withoutXY)(this,e),l,{children:a}))}}])})(a.default);p.displayName='ForeignObject',p.defaultProps={x:'0%',y:'0%',width:'100%',height:'100%'}}),694,[1,5,6,10,14,15,153,675,632,194,656]); __d((function(g,r,i,a,m,e,d){}),695,[]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.svgXml=void 0;e.svgXml={baricon:{home:"\n \n \n \n \n ",map:"\n \n \n \n \n ",list:"\n \n \n \n \n ",prifile:"\n \n \n \n \n ",homeColor:"\n \n \n \n \n ",mapColor:"\n \n \n \n \n ",listColor:"\n \n \n \n \n ",prifileColor:"\n \n \n \n \n "},button:{goback:"\n \n \n \n ",gobackGray:"\n \n \n \n ",passwordNotShow:"\n \n \n \n \n ",passwordShow:"\n \n \n \n ",goForward:"\n \n \n \n "},marker:{_1:"\n \n \n \n \n ",_2:"\n \n \n \n \n ",_3:"\n \n\n\n\n",_4:"\n\n\n\n\n",_5:"\n\n\n\n\n",_6:"\n\n\n\n\n"},icon:{noImage:"\n \n \n \n \n \n \n \n \n ",star:"\n \n \n \n ",heart:"\n \n \n \n ",starFill:"\n \n \n \n ",starEmpty:"\n \n \n \n ",shop:"\n \n \n \n \n \n ",shopColor:"\n \n \n \n \n \n ",search:"\n \n \n \n ",persent:"\n \n \n \n \n \n \n \n ",presentColor:"\n \n \n \n \n \n \n \n ",emptyHeart:"\n \n \n \n ",emptyHeartColor:"\n \n \n \n ",compass:"\n \n \n \n \n ",gps:"\n \n \n \n \n \n \n \n \n ",refresh:"\n \n \n \n \n ",Color:"\n \n \n \n \n \n \n ",arrowDown:"\n \n \n \n ",persentBlack:"\n \n \n \n \n \n \n \n ",starBlack:"\n \n \n \n ",starGrey:"\n \n \n \n ",heartGrey:"\n \n \n \n ",emptyHeartGrey:"\n \n \n \n ",camera:"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ",prodileDefault:"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n",reviewCamera:"\n \n \n \n \n ",phone:"\n \n \n \n ",pen:"\n \n \n \n \n ",location:"\n \n \n \n \n ",clock:"\n \n \n \n \n ",emptyStar:"\n \n \n \n ",emptyStarColor:"\n \n \n \n ",price:"\n \n \n \n \n \n ",priceColor:"\n \n \n \n \n \n ",reply:"\n \n \n \n \n ",replyColor:"\n \n \n \n \n ",filterColor:"\n \n \n \n \n \n \n ",filter:"\n \n \n \n \n \n \n ",close:"\n \n \n \n \n ",naver:"\n \n \n \n \n \n \n \n \n \n \n \n ",thumbupOn:"\n \n \n \n \n \n ",thumbupOff:"\n \n \n \n \n \n "}}}),696,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[12]).useNavigation)(),c=(0,r.useState)(''),f=(0,n.default)(c,2),h=f[0],x=f[1],y=(0,r.useState)(!0),O=(0,n.default)(y,2),j=O[0],b=O[1],C=(function(){var n=(0,t.default)((function*(){console.log('email:',h);try{var t=yield i.default.post("http://13.124.226.226/v1/users/email/send",{email:h,sendType:'RESET_PASSWORD'});console.log('response:',t.data),'SUCCESS'===t.data.result&&e.navigate('CheckEmail2',{email:h})}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return n.apply(this,arguments)}})();return(0,r.useEffect)((function(){h&&j?b(!1):h||j||b(!0)}),[h]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.default,{title:'\ube44\ubc00\ubc88\ud638 \ucc3e\uae30',isBackButton:!0}),(0,u.jsx)(a.TouchableWithoutFeedback,{onPress:a.Keyboard.dismiss,accessible:!1,children:(0,u.jsxs)(a.View,{style:p.entire,children:[(0,u.jsx)(a.View,{style:p.container,children:(0,u.jsxs)(a.View,{style:p.textAndInput,children:[(0,u.jsx)(a.Text,{style:p.samllText,children:"\uc774\uba54\uc77c \uc8fc\uc18c"}),(0,u.jsx)(a.TextInput,{placeholderTextColor:_r(d[13]).COLOR_GRAY,autoCapitalize:"none",keyboardType:"email-address",onChangeText:function(e){x(e)},value:h,style:p.textinputBox})]})}),(0,u.jsx)(a.View,{style:{height:20}}),(0,u.jsx)(s.default,{text:"\ube44\ubc00\ubc88\ud638 \ucd08\uae30\ud654 \uba54\uc77c \ubc1c\uc1a1",action:C,disable:j})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=f(_r(d[3])),a=_r(d[4]),o=e(_r(d[5])),i=(e(_r(d[6])),f(_r(d[7]))),l=e(_r(d[8])),s=e(_r(d[9])),u=(e(_r(d[10])),_r(d[11]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}var p=a.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[13]).COLOR_BACKGROUND,alignItems:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginTop:160,marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[13]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[13]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,top:0,padding:5,justifyContent:'center',alignItems:'center'}})}),697,[1,339,26,153,2,445,442,472,623,523,439,194,524,444]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[13]).useNavigation)(),f=(0,o.useState)(''),h=(0,n.default)(f,2),y=h[0],j=h[1],w=(0,o.useState)(''),T=(0,n.default)(w,2),C=T[0],v=T[1],O=(0,o.useState)(''),S=(0,n.default)(O,2),b=S[0],R=S[1],_=(0,o.useState)(!0),A=(0,n.default)(_,2),B=A[0],I=A[1],V=(0,o.useState)(''),E=(0,n.default)(V,2),P=E[0],z=E[1],k=(0,o.useState)(!0),G=(0,n.default)(k,2),L=G[0],N=G[1],F=(0,o.useState)(!0),M=(0,n.default)(F,2),X=M[0],Y=M[1],W=(0,o.useRef)(null),D=(0,o.useRef)(null),U=(0,o.useRef)(null),H=(0,o.useRef)(null);(0,o.useContext)(u.default);(0,o.useEffect)((function(){y&&C&&b&&X&&P&&b===P?Y(!1):y&&C&&b&&P&&b===P||X||Y(!0)}),[y,C,b,P]);var K=(function(){var n=(0,t.default)((function*(){console.log('name:',y),console.log('email:',C),console.log('password:',b);try{var t=yield r.default.post("http://13.124.226.226/v1/users/email/send",{email:C,sendType:'SIGN_UP'});console.log('response:',t.data),'SUCCESS'===t.data.result&&e.navigate('CheckEmail',{name:y,email:C,password:b})}catch(e){console.log(e.response.data),c.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return n.apply(this,arguments)}})();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.default,{title:'\ud68c\uc6d0\uac00\uc785',isBackButton:!0}),(0,x.jsx)(l.TouchableWithoutFeedback,{onPress:l.Keyboard.dismiss,accessible:!1,children:(0,x.jsxs)(l.View,{style:p.entire,children:[(0,x.jsxs)(l.View,{style:p.container,children:[(0,x.jsxs)(l.View,{style:p.textAndInput,children:[(0,x.jsx)(l.Text,{style:p.samllText,children:"\uc774\ub984"}),(0,x.jsx)(l.TextInput,{ref:W,onSubmitEditing:function(){D.current.focus()},autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){j(e)},value:y,style:p.textinputBox})]}),(0,x.jsx)(l.View,{style:{height:15}}),(0,x.jsxs)(l.View,{style:p.textAndInput,children:[(0,x.jsx)(l.Text,{style:p.samllText,children:"\uc774\uba54\uc77c \uc8fc\uc18c"}),(0,x.jsx)(l.TextInput,{ref:D,onSubmitEditing:function(){U.current.focus()},keyboardType:"email-address",autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){v(e)},value:C,style:p.textinputBox})]}),(0,x.jsx)(l.View,{style:{height:15}}),(0,x.jsxs)(l.View,{style:p.textAndInput,children:[(0,x.jsx)(l.Text,{style:p.samllText,children:"\ube44\ubc00\ubc88\ud638"}),(0,x.jsx)(l.TextInput,{ref:U,onSubmitEditing:function(){H.current.focus()},secureTextEntry:B,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){R(e)},value:b,style:p.textinputBox}),(0,x.jsx)(s.default,{style:p.showButton,onPress:function(){I(!B)},children:(0,x.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:B?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]}),(0,x.jsx)(l.View,{style:{height:15}}),(0,x.jsxs)(l.View,{style:p.textAndInput,children:[(0,x.jsx)(l.Text,{style:p.samllText,children:"\ube44\ubc00\ubc88\ud638 \ud655\uc778"}),(0,x.jsx)(l.TextInput,{ref:H,secureTextEntry:L,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){z(e)},value:P,style:p.textinputBox}),(0,x.jsx)(s.default,{style:p.showButton,onPress:function(){N(!L)},children:(0,x.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:L?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})]}),(0,x.jsx)(l.View,{style:{height:50}}),(0,x.jsx)(i.default,{text:b===P?(q=b,Z=/[a-zA-Z]/.test(q),$=/\d/.test(q),J=/[!@#$%^&*(),.?":{}|<>]/.test(q),Z&&$&&J?'\ud68c\uc6d0\uac00\uc785':'\uc601\uc5b4, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.'):'\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4',action:K,disable:X}),(0,x.jsxs)(l.View,{style:{marginTop:12,padding:4},children:[(0,x.jsx)(l.Text,{style:p.samllText2,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,x.jsx)(l.Text,{style:[p.samllText2,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]});var q,Z,$,J};var t=e(_r(d[1])),n=e(_r(d[2])),o=h(_r(d[3])),l=_r(d[4]),s=e(_r(d[5])),r=h(_r(d[6])),a=e(_r(d[7])),i=e(_r(d[8])),u=(e(_r(d[9])),e(_r(d[10]))),c=e(_r(d[11])),x=_r(d[12]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var r=l?Object.getOwnPropertyDescriptor(e,s):null;r&&(r.get||r.set)?Object.defineProperty(o,s,r):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}var p=l.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},samllText2:{color:_r(d[14]).COLOR_TEXT70GRAY,fontSize:14,textAlign:'center',marginBottom:8,fontFamily:'NanumSquareRoundB'},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),698,[1,339,26,153,2,442,472,623,523,517,439,445,194,524,444,624,696]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f,w,v=(0,_r(d[13]).useNavigation)(),j=(0,n.useContext)(l.default),R=e.route,p=(null==(f=R.params)||null==(w=f.data)?void 0:w.id)||2,O=(0,n.useState)(null),C=(0,i.default)(O,2),S=C[0],I=C[1],B=(0,n.useState)(!1),L=(0,i.default)(B,2),V=L[0],b=L[1],A=(0,n.useState)(0),_=(0,i.default)(A,2),k=_[0],N=_[1],X=(0,n.useState)([]),z=(0,i.default)(X,2),D=z[0],F=z[1],E=(0,n.useState)([]),G=(0,i.default)(E,2),P=G[0],M=G[1],H=(0,n.useState)([]),Y=(0,i.default)(H,2),K=Y[0],q=Y[1],$=(0,n.useState)([]),U=(0,i.default)($,2),W=U[0],J=U[1],Q=(0,n.useState)(4),Z=(0,i.default)(Q,2),ee=Z[0],te=Z[1],ie=(0,n.useState)(4),ne=(0,i.default)(ie,2),re=ne[0],oe=ne[1],ae=(0,n.useState)(!1),se=(0,i.default)(ae,2),le=se[0],ce=se[1];(0,_r(d[13]).useFocusEffect)((0,n.useCallback)((function(){ue()}),[])),(0,n.useEffect)((function(){q(D.slice(0,ee))}),[D,ee]),(0,n.useEffect)((function(){J(P.slice(0,re))}),[P,re]);var ue=(function(){var e=(0,t.default)((function*(){console.log('Id: ',p);try{var e=yield c.default.get(`http://13.124.226.226/v1/restaurants/${p}`,{headers:{Authorization:`Bearer ${j.accessToken}`}}),t=yield c.default.get(`http://13.124.226.226/v1/restaurants/${p}/reviews`,{headers:{Authorization:`Bearer ${j.accessToken}`}}),i=e.data.data,n=t.data.data;console.log('storedata: ',i),I(i),b(i.restaurant.isLike),N(i.restaurant.likeCount),F(i.restaurant.detailInfo.menus),M(n.reviews.content)}catch(e){console.error('Error fetching restaurant details:',e)}}));return function(){return e.apply(this,arguments)}})(),de=(function(){var e=(0,t.default)((function*(){try{var e=!V;b(e),N(e?k+1:k-1);var t=yield c.default.post(`http://13.124.226.226/v1/restaurants/${p}/like`,{isLike:e},{headers:{Authorization:`Bearer ${j.accessToken}`}});console.log('isLike: ',t.data)}catch(e){console.error('Error updating heart count:',e)}}));return function(){return e.apply(this,arguments)}})(),he=function(e){h.default.setString(e),r.Alert.alert('\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4.')},me=(function(){var e=(0,t.default)((function*(e){try{var t=!e.item.isLike,i=P.map((function(i){return i.id===e.item.id?Object.assign({},i,{isLike:t,likeCount:t?i.likeCount+1:i.likeCount-1}):i}));M(i);var n=yield c.default.post(`http://13.124.226.226/v1/restaurants/reviews/${e.item.id}/like`,{isLike:t},{headers:{Authorization:`Bearer ${j.accessToken}`}});console.log('isReviewLike: ',n.data)}catch(t){o.default.show({type:'error',text1:'Error',text2:t.response.data.message});var r=P.map((function(t){return t.id===e.item.id?Object.assign({},t,{isLike:e.item.isLike,likeCount:e.item.likeCount}):t}));M(r)}}));return function(t){return e.apply(this,arguments)}})(),ge=function(){te(ee+4)},xe=function(){oe(re+4)};if(!S)return(0,x.jsx)(r.Text,{children:"Loading..."});var fe=function(e){var t=e.item;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(r.View,{style:T.sectionItem,children:[(0,x.jsx)(r.View,{style:{position:'absolute',opacity:1,width:90,height:90,borderRadius:12,marginVertical:12},children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.noImage,width:90,height:90,style:{marginTop:5}})}),(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:t.imageUrl},style:T.menuImage}),(0,x.jsxs)(r.View,{style:T.menuTextContainer,children:[(0,x.jsx)(r.Text,{style:T.menuTitle,children:t.name}),(0,x.jsx)(r.Text,{style:T.menuDescription,children:t.description}),(0,x.jsxs)(r.Text,{style:T.menuPrice,children:[t.price,"\uc6d0"]})]})]},t.name),(0,x.jsx)(r.View,{style:T.horizontalDivider})]})},ye=function(e){var t=e.item,i=t.rating,n=t.likeCount;console.log('review: ',t);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.View,{style:T.sectionItem2,children:(0,x.jsxs)(r.View,{style:T.reviewTextContainer,children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',width:'100%'},children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[t.profileImageUrl?(0,x.jsx)(r.Image,{source:{uri:t.profileImageUrl},style:T.reviewAuthorImage}):(0,x.jsx)(r.View,{style:T.reviewAuthorImagePlaceholder}),(0,x.jsx)(r.Text,{style:T.reviewAuthor,children:t.username}),(0,x.jsx)(r.Text,{style:T.reviewAuthor2,children:"\ub2d8"}),(0,x.jsx)(r.TouchableOpacity,{style:T.contactButton,onPress:function(){return me({item:t})},children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:t.isLike?_r(d[15]).svgXml.icon.thumbupOn:_r(d[15]).svgXml.icon.thumbupOff,width:20,height:20})})]}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,x.jsx)(r.Text,{style:T.reviewStats,children:`\uc88b\uc544\uc694 ${n}`}),(function(){for(var e=[],t=0;t<5;t++)e.push((0,x.jsx)(_r(d[14]).SvgXml,{xml:t0?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.Text,{style:T.reviewText,children:t.content}),(0,x.jsx)(r.FlatList,{horizontal:!0,data:t.imageUrls,renderItem:function(e){var t=e.item;return(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:t},style:T.reviewImage})},keyExtractor:function(e,i){return`${t.id}-${i}`}})]}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(r.Text,{style:T.reviewText2,children:t.content})})})]})},t.id),(0,x.jsx)(r.View,{style:T.horizontalDivider})]})};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.default,{title:S.restaurant.name,isBackButton:!0,style:{backgroundColor:'trasparent'}}),(0,x.jsx)(r.FlatList,{ListHeaderComponent:function(){return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(r.View,{style:T.entire,children:[(0,x.jsxs)(r.View,{style:T.storeImageContainer,children:[(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:S.restaurant.representativeImageUrl},style:T.storeImage}),(0,x.jsx)(r.View,{style:{position:'absolute',width:y,height:240,backgroundColor:'#000000',opacity:.4}})]}),(0,x.jsxs)(r.View,{style:T.storeInfo,children:[(0,x.jsxs)(r.View,{style:T.storeHeader,children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between'},children:[(0,x.jsx)(r.Text,{style:T.storeName,children:S.restaurant.name}),(0,x.jsx)(r.Text,{style:T.storeCategory,children:S.restaurant.categories})]}),(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.storeReview,children:'\ucc1c '+k}),(0,x.jsx)(r.Text,{style:T.storeReview,children:"\xb7"}),(0,x.jsxs)(r.Text,{style:T.storeReview,children:["\ub9ac\ubdf0 ",S.restaurant.reviewCount]})]}),(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:'('}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.naver,width:15,height:15})}),(0,x.jsxs)(r.Text,{style:T.storeReviewNaver,children:["\ud3c9\uc810 ",S.restaurant.naverRatingAvg]}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:"\xb7"}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.naver,width:15,height:15})}),(0,x.jsxs)(r.Text,{style:T.storeReviewNaver,children:["\ub9ac\ubdf0 ",S.restaurant.naverReviewCount," ",')']})]})]})]}),(0,x.jsx)(r.View,{style:T.horizontalDivider}),(0,x.jsxs)(r.View,{style:T.contactContainer,children:[(0,x.jsxs)(r.TouchableOpacity,{style:T.contactButton,onPress:function(){return ce(!0)},children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.phone,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\uc804\ud654"})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(r.TouchableOpacity,{style:T.contactButton,onPress:de,children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:V?_r(d[15]).svgXml.icon.heartGrey:_r(d[15]).svgXml.icon.emptyHeartGrey,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\ucc1c"})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(r.View,{style:T.contactButton,children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.starGrey,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:S.restaurant.ratingAvg.toFixed(1)})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(a.default,{style:T.contactButton,onPress:function(){v.navigate('ReviewWrite',{data:S.restaurant})},children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.pen,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\ub9ac\ubdf0"})]})]}),(0,x.jsx)(r.View,{style:T.horizontalDivider}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',marginTop:6,alignItems:'center'},children:[(0,x.jsx)(_r(d[14]).SvgXml,{style:T.contactButtonIcon,xml:_r(d[15]).svgXml.icon.location,width:24,height:24}),(0,x.jsxs)(r.View,{style:T.copyContainer,children:[(0,x.jsxs)(r.Text,{style:T.storeAddress,children:["\uc704\uce58: ",S.restaurant.detailInfo.address]}),(0,x.jsx)(r.TouchableOpacity,{onPress:function(){he(S.restaurant.detailInfo.address)},children:(0,x.jsx)(r.Text,{style:T.copyButtonText,children:"\ubcf5\uc0ac"})})]})]}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,x.jsx)(_r(d[14]).SvgXml,{style:T.contactButtonIcon,xml:_r(d[15]).svgXml.icon.phone,width:24,height:24}),(0,x.jsxs)(r.Text,{style:T.storePhoneNum,children:["\uc804\ud654\ubc88\ud638: ",S.restaurant.detailInfo.contactNumber]}),(0,x.jsx)(r.TouchableOpacity,{onPress:function(){he(S.restaurant.detailInfo.contactNumber)},children:(0,x.jsx)(r.Text,{style:T.copyButtonText,children:"\ubcf5\uc0ac"})})]})]}),(0,x.jsxs)(r.View,{style:T.section,children:[(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.sectionTitleText,children:"\uba54\ub274"}),(0,x.jsx)(r.Text,{style:T.sectionTitleNumText,children:D.length})]}),(0,x.jsx)(r.FlatList,{data:K,renderItem:fe,keyExtractor:function(e){return e.name}}),ee]/.test(q),Z&&$&&J?'\ud68c\uc6d0\uac00\uc785':'\uc601\uc5b4, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.'):'\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4',action:K,disable:X}),(0,x.jsxs)(l.View,{style:{marginTop:12,padding:4},children:[(0,x.jsx)(l.Text,{style:p.samllText2,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,x.jsx)(l.Text,{style:[p.samllText2,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]});var q,Z,$,J};var t=e(_r(d[1])),n=e(_r(d[2])),o=h(_r(d[3])),l=_r(d[4]),s=e(_r(d[5])),r=h(_r(d[6])),a=e(_r(d[7])),i=e(_r(d[8])),u=(e(_r(d[9])),e(_r(d[10]))),c=e(_r(d[11])),x=_r(d[12]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var r=l?Object.getOwnPropertyDescriptor(e,s):null;r&&(r.get||r.set)?Object.defineProperty(o,s,r):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}var p=l.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},samllText2:{color:_r(d[14]).COLOR_TEXT70GRAY,fontSize:14,textAlign:'center',marginBottom:8,fontFamily:'NanumSquareRoundB'},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),698,[1,339,26,153,2,442,472,623,523,517,439,445,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f,w,v=(0,_r(d[13]).useNavigation)(),j=(0,n.useContext)(l.default),R=e.route,p=(null==(f=R.params)||null==(w=f.data)?void 0:w.id)||2,O=(0,n.useState)(null),C=(0,i.default)(O,2),S=C[0],I=C[1],B=(0,n.useState)(!1),L=(0,i.default)(B,2),V=L[0],b=L[1],A=(0,n.useState)(0),_=(0,i.default)(A,2),k=_[0],N=_[1],X=(0,n.useState)([]),z=(0,i.default)(X,2),D=z[0],F=z[1],E=(0,n.useState)([]),G=(0,i.default)(E,2),P=G[0],M=G[1],H=(0,n.useState)([]),Y=(0,i.default)(H,2),K=Y[0],q=Y[1],$=(0,n.useState)([]),U=(0,i.default)($,2),W=U[0],J=U[1],Q=(0,n.useState)(4),Z=(0,i.default)(Q,2),ee=Z[0],te=Z[1],ie=(0,n.useState)(4),ne=(0,i.default)(ie,2),re=ne[0],oe=ne[1],ae=(0,n.useState)(!1),se=(0,i.default)(ae,2),le=se[0],ce=se[1];(0,_r(d[13]).useFocusEffect)((0,n.useCallback)((function(){de()}),[])),(0,n.useEffect)((function(){q(D.slice(0,ee))}),[D,ee]),(0,n.useEffect)((function(){J(P.slice(0,re))}),[P,re]);var de=(function(){var e=(0,t.default)((function*(){console.log('Id: ',p);try{var e=yield c.default.get(`undefined/v1/restaurants/${p}`,{headers:{Authorization:`Bearer ${j.accessToken}`}}),t=yield c.default.get(`undefined/v1/restaurants/${p}/reviews`,{headers:{Authorization:`Bearer ${j.accessToken}`}}),i=e.data.data,n=t.data.data;console.log('storedata: ',i),I(i),b(i.restaurant.isLike),N(i.restaurant.likeCount),F(i.restaurant.detailInfo.menus),M(n.reviews.content)}catch(e){console.error('Error fetching restaurant details:',e)}}));return function(){return e.apply(this,arguments)}})(),ue=(function(){var e=(0,t.default)((function*(){try{var e=!V;b(e),N(e?k+1:k-1);var t=yield c.default.post(`undefined/v1/restaurants/${p}/like`,{isLike:e},{headers:{Authorization:`Bearer ${j.accessToken}`}});console.log('isLike: ',t.data)}catch(e){console.error('Error updating heart count:',e)}}));return function(){return e.apply(this,arguments)}})(),he=function(e){h.default.setString(e),r.Alert.alert('\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4.')},me=(function(){var e=(0,t.default)((function*(e){try{var t=!e.item.isLike,i=P.map((function(i){return i.id===e.item.id?Object.assign({},i,{isLike:t,likeCount:t?i.likeCount+1:i.likeCount-1}):i}));M(i);var n=yield c.default.post(`undefined/v1/restaurants/reviews/${e.item.id}/like`,{isLike:t},{headers:{Authorization:`Bearer ${j.accessToken}`}});console.log('isReviewLike: ',n.data)}catch(t){o.default.show({type:'error',text1:'Error',text2:t.response.data.message});var r=P.map((function(t){return t.id===e.item.id?Object.assign({},t,{isLike:e.item.isLike,likeCount:e.item.likeCount}):t}));M(r)}}));return function(t){return e.apply(this,arguments)}})(),ge=function(){te(ee+4)},xe=function(){oe(re+4)};if(!S)return(0,x.jsx)(r.Text,{children:"Loading..."});var fe=function(e){var t=e.item;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(r.View,{style:T.sectionItem,children:[(0,x.jsx)(r.View,{style:{position:'absolute',opacity:1,width:90,height:90,borderRadius:12,marginVertical:12},children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.noImage,width:90,height:90,style:{marginTop:5}})}),(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:t.imageUrl},style:T.menuImage}),(0,x.jsxs)(r.View,{style:T.menuTextContainer,children:[(0,x.jsx)(r.Text,{style:T.menuTitle,children:t.name}),(0,x.jsx)(r.Text,{style:T.menuDescription,children:t.description}),(0,x.jsxs)(r.Text,{style:T.menuPrice,children:[t.price,"\uc6d0"]})]})]},t.name),(0,x.jsx)(r.View,{style:T.horizontalDivider})]})},ye=function(e){var t=e.item,i=t.rating,n=t.likeCount;console.log('review: ',t);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.View,{style:T.sectionItem2,children:(0,x.jsxs)(r.View,{style:T.reviewTextContainer,children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',width:'100%'},children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[t.profileImageUrl?(0,x.jsx)(r.Image,{source:{uri:t.profileImageUrl},style:T.reviewAuthorImage}):(0,x.jsx)(r.View,{style:T.reviewAuthorImagePlaceholder}),(0,x.jsx)(r.Text,{style:T.reviewAuthor,children:t.username}),(0,x.jsx)(r.Text,{style:T.reviewAuthor2,children:"\ub2d8"}),(0,x.jsx)(r.TouchableOpacity,{style:T.contactButton,onPress:function(){return me({item:t})},children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:t.isLike?_r(d[15]).svgXml.icon.thumbupOn:_r(d[15]).svgXml.icon.thumbupOff,width:20,height:20})})]}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,x.jsx)(r.Text,{style:T.reviewStats,children:`\uc88b\uc544\uc694 ${n}`}),(function(){for(var e=[],t=0;t<5;t++)e.push((0,x.jsx)(_r(d[14]).SvgXml,{xml:t0?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.Text,{style:T.reviewText,children:t.content}),(0,x.jsx)(r.FlatList,{horizontal:!0,data:t.imageUrls,renderItem:function(e){var t=e.item;return(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:t},style:T.reviewImage})},keyExtractor:function(e,i){return`${t.id}-${i}`}})]}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(r.Text,{style:T.reviewText2,children:t.content})})})]})},t.id),(0,x.jsx)(r.View,{style:T.horizontalDivider})]})};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.default,{title:S.restaurant.name,isBackButton:!0,style:{backgroundColor:'trasparent'}}),(0,x.jsx)(r.FlatList,{ListHeaderComponent:function(){return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(r.View,{style:T.entire,children:[(0,x.jsxs)(r.View,{style:T.storeImageContainer,children:[(0,x.jsx)(u.default,{swipeToDismiss:!0,modalImageResizeMode:"contain",imageBackgroundColor:"transparent",overlayBackgroundColor:"rgba(32, 32, 32, 0.9)",source:{uri:S.restaurant.representativeImageUrl},style:T.storeImage}),(0,x.jsx)(r.View,{style:{position:'absolute',width:y,height:240,backgroundColor:'#000000',opacity:.4}})]}),(0,x.jsxs)(r.View,{style:T.storeInfo,children:[(0,x.jsxs)(r.View,{style:T.storeHeader,children:[(0,x.jsxs)(r.View,{style:{flexDirection:'row',justifyContent:'space-between'},children:[(0,x.jsx)(r.Text,{style:T.storeName,children:S.restaurant.name}),(0,x.jsx)(r.Text,{style:T.storeCategory,children:S.restaurant.categories})]}),(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.storeReview,children:'\ucc1c '+k}),(0,x.jsx)(r.Text,{style:T.storeReview,children:"\xb7"}),(0,x.jsxs)(r.Text,{style:T.storeReview,children:["\ub9ac\ubdf0 ",S.restaurant.reviewCount]})]}),(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:'('}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.naver,width:15,height:15})}),(0,x.jsxs)(r.Text,{style:T.storeReviewNaver,children:["\ud3c9\uc810 ",S.restaurant.naverRatingAvg]}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:"\xb7"}),(0,x.jsx)(r.Text,{style:T.storeReviewNaver,children:(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.naver,width:15,height:15})}),(0,x.jsxs)(r.Text,{style:T.storeReviewNaver,children:["\ub9ac\ubdf0 ",S.restaurant.naverReviewCount," ",')']})]})]})]}),(0,x.jsx)(r.View,{style:T.horizontalDivider}),(0,x.jsxs)(r.View,{style:T.contactContainer,children:[(0,x.jsxs)(r.TouchableOpacity,{style:T.contactButton,onPress:function(){return ce(!0)},children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.phone,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\uc804\ud654"})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(r.TouchableOpacity,{style:T.contactButton,onPress:ue,children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:V?_r(d[15]).svgXml.icon.heartGrey:_r(d[15]).svgXml.icon.emptyHeartGrey,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\ucc1c"})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(r.View,{style:T.contactButton,children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.starGrey,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:S.restaurant.ratingAvg.toFixed(1)})]}),(0,x.jsx)(r.View,{style:T.verticalDivider}),(0,x.jsxs)(a.default,{style:T.contactButton,onPress:function(){v.navigate('ReviewWrite',{data:S.restaurant})},children:[(0,x.jsx)(_r(d[14]).SvgXml,{xml:_r(d[15]).svgXml.icon.pen,width:24,height:24}),(0,x.jsx)(r.Text,{style:T.contactButtonText,children:"\ub9ac\ubdf0"})]})]}),(0,x.jsx)(r.View,{style:T.horizontalDivider}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',marginTop:6,alignItems:'center'},children:[(0,x.jsx)(_r(d[14]).SvgXml,{style:T.contactButtonIcon,xml:_r(d[15]).svgXml.icon.location,width:24,height:24}),(0,x.jsxs)(r.View,{style:T.copyContainer,children:[(0,x.jsxs)(r.Text,{style:T.storeAddress,children:["\uc704\uce58: ",S.restaurant.detailInfo.address]}),(0,x.jsx)(r.TouchableOpacity,{onPress:function(){he(S.restaurant.detailInfo.address)},children:(0,x.jsx)(r.Text,{style:T.copyButtonText,children:"\ubcf5\uc0ac"})})]})]}),(0,x.jsxs)(r.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,x.jsx)(_r(d[14]).SvgXml,{style:T.contactButtonIcon,xml:_r(d[15]).svgXml.icon.phone,width:24,height:24}),(0,x.jsxs)(r.Text,{style:T.storePhoneNum,children:["\uc804\ud654\ubc88\ud638: ",S.restaurant.detailInfo.contactNumber]}),(0,x.jsx)(r.TouchableOpacity,{onPress:function(){he(S.restaurant.detailInfo.contactNumber)},children:(0,x.jsx)(r.Text,{style:T.copyButtonText,children:"\ubcf5\uc0ac"})})]})]}),(0,x.jsxs)(r.View,{style:T.section,children:[(0,x.jsxs)(r.View,{style:T.sectionTitle,children:[(0,x.jsx)(r.Text,{style:T.sectionTitleText,children:"\uba54\ub274"}),(0,x.jsx)(r.Text,{style:T.sectionTitleNumText,children:D.length})]}),(0,x.jsx)(r.FlatList,{data:K,renderItem:fe,keyExtractor:function(e){return e.name}}),ee=3)N(!0);else{var t='';yield h.default.readFile(e.path,'base64').then((function(e){console.log('encoded',e),t=e})).catch((function(e){console.error(e)}));try{for(var r,n=0;n<3;){if(r=yield c.default.post("https://utdyfn3jhj.execute-api.ap-northeast-2.amazonaws.com/v1/upload-image",{images:[{imageData:t,location:'test'}]}),console.log('response image:',r.data),'SUCCESS'===r.data.result){Y(r.data.data[0].imageUrl);break}n+=1}3===n&&i.Alert.alert('\uc624\ub958','\uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4!',[{text:'\ud655\uc778'}])}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}}));return function(t){return e.apply(this,arguments)}})();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.default,{title:'\ub9ac\ubdf0 \uc4f0\uae30',isBackButton:!0}),(0,p.jsxs)(i.View,{contentContainerStyle:w.entire,children:[(0,p.jsxs)(i.View,{style:w.headerContainer,children:[(0,p.jsx)(i.Text,{style:w.storeName,numberOfLines:1,children:v.name}),(0,p.jsx)(i.View,{style:w.starContainer,children:(0,t.default)(Array(5)).map((function(e,t){return(0,p.jsx)(i.TouchableWithoutFeedback,{onPress:function(){R(t+1),E(!1)},children:(0,p.jsx)(_r(d[18]).SvgXml,{xml:t=3)N(!0);else{var t='';yield h.default.readFile(e.path,'base64').then((function(e){console.log('encoded',e),t=e})).catch((function(e){console.error(e)}));try{for(var r,n=0;n<3;){if(r=yield c.default.post("undefined/v1/upload-image",{images:[{imageData:t,location:'test'}]}),console.log('response image:',r.data),'SUCCESS'===r.data.result){Y(r.data.data[0].imageUrl);break}n+=1}3===n&&i.Alert.alert('\uc624\ub958','\uc774\ubbf8\uc9c0 \uc5c5\ub85c\ub4dc\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4!',[{text:'\ud655\uc778'}])}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}}));return function(t){return e.apply(this,arguments)}})();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.default,{title:'\ub9ac\ubdf0 \uc4f0\uae30',isBackButton:!0}),(0,p.jsxs)(i.View,{contentContainerStyle:w.entire,children:[(0,p.jsxs)(i.View,{style:w.headerContainer,children:[(0,p.jsx)(i.Text,{style:w.storeName,numberOfLines:1,children:v.name}),(0,p.jsx)(i.View,{style:w.starContainer,children:(0,t.default)(Array(5)).map((function(e,t){return(0,p.jsx)(i.TouchableWithoutFeedback,{onPress:function(){R(t+1),E(!1)},children:(0,p.jsx)(_r(d[18]).SvgXml,{xml:t1&&void 0!==arguments[1]?arguments[1]:{};return e.mkdir(c(n),o).then((function(){}))},moveFile:function(n,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.moveFile(c(n),c(o),t).then((function(){}))},copyFile:function(n,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.copyFile(c(n),c(o),t).then((function(){}))},pathForBundle:function(n){return e.pathForBundle(n)},pathForGroup:function(n){return e.pathForGroup(n)},getFSInfo:function(){return e.getFSInfo()},getAllExternalFilesDirs:function(){return e.getAllExternalFilesDirs()},unlink:function(n){return e.unlink(c(n)).then((function(){}))},exists:function(n){return e.exists(c(n))},stopDownload:function(n){e.stopDownload(n)},resumeDownload:function(n){e.resumeDownload(n)},isResumable:function(n){return e.isResumable(n)},stopUpload:function(n){e.stopUpload(n)},completeHandlerIOS:function(n){return e.completeHandlerIOS(n)},readDir:function(n){return f(n,e.readDir)},readDirAssets:function(n){if(!e.readDirAssets)throw new Error('readDirAssets is not available on this platform');return f(n,e.readDirAssets)},existsAssets:function(n){if(!e.existsAssets)throw new Error('existsAssets is not available on this platform');return e.existsAssets(n)},existsRes:function(n){if(!e.existsRes)throw new Error('existsRes is not available on this platform');return e.existsRes(n)},readdir:function(e){return p.readDir(c(e)).then((function(e){return e.map((function(e){return e.name}))}))},setReadable:function(n,o,t){return e.setReadable(n,o,t).then((function(e){return e}))},stat:function(n){return e.stat(c(n)).then((function(e){return{path:n,ctime:new Date(1e3*e.ctime),mtime:new Date(1e3*e.mtime),size:e.size,mode:e.mode,originalFilepath:e.originalFilepath,isFile:function(){return e.type===o},isDirectory:function(){return e.type===t}}}))},readFile:function(n,o){return u(n,o,e.readFile)},read:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0,l={encoding:'utf8'};return s&&('string'==typeof s?l.encoding=s:'object'==typeof s&&(l=s)),e.read(c(n),o,t).then((function(e){var n;if('utf8'===l.encoding)n=r(d[1]).decode(r(d[2]).decode(e));else if('ascii'===l.encoding)n=r(d[2]).decode(e);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+String(l.encoding)+'"');n=e}return n}))},readFileAssets:function(n,o){if(!e.readFileAssets)throw new Error('readFileAssets is not available on this platform');return u(n,o,e.readFileAssets)},readFileRes:function(n,o){if(!e.readFileRes)throw new Error('readFileRes is not available on this platform');return u(n,o,e.readFileRes)},hash:function(n,o){return e.hash(c(n),o)},copyFileAssets:function(n,o){if(!e.copyFileAssets)throw new Error('copyFileAssets is not available on this platform');return e.copyFileAssets(c(n),c(o)).then((function(){}))},copyFileRes:function(n,o){if(!e.copyFileRes)throw new Error('copyFileRes is not available on this platform');return e.copyFileRes(n,c(o)).then((function(){}))},copyAssetsFileIOS:function(n,o,t,s){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:'contain';return e.copyAssetsFileIOS(n,o,t,s,l,c,u)},copyAssetsVideoIOS:function(n,o){return e.copyAssetsVideoIOS(n,o)},writeFile:function(n,o,t){var s,l={encoding:'utf8'};if(t&&('string'==typeof t?l.encoding=t:'object'==typeof t&&(l=Object.assign({},l,t))),'utf8'===l.encoding)s=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===l.encoding)s=r(d[2]).encode(o);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+l.encoding+'"');s=o}return e.writeFile(c(n),s,l).then((function(){}))},appendFile:function(n,o,t){var s,l={encoding:'utf8'};if(t&&('string'==typeof t?l.encoding=t:'object'==typeof t&&(l=t)),'utf8'===l.encoding)s=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===l.encoding)s=r(d[2]).encode(o);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+l.encoding+'"');s=o}return e.appendFile(c(n),s)},write:function(n,o,t,s){var l,u={encoding:'utf8'};if(s&&('string'==typeof s?u.encoding=s:'object'==typeof s&&(u=s)),'utf8'===u.encoding)l=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===u.encoding)l=r(d[2]).encode(o);else{if('base64'!==u.encoding)throw new Error('Invalid encoding type "'+u.encoding+'"');l=o}return void 0===t&&(t=-1),e.write(c(n),l,t).then((function(){}))},downloadFile:function(o){if('object'!=typeof o)throw new Error('downloadFile: Invalid value for argument `options`');if('string'!=typeof o.fromUrl)throw new Error('downloadFile: Invalid value for property `fromUrl`');if('string'!=typeof o.toFile)throw new Error('downloadFile: Invalid value for property `toFile`');if(o.headers&&'object'!=typeof o.headers)throw new Error('downloadFile: Invalid value for property `headers`');if(o.background&&'boolean'!=typeof o.background)throw new Error('downloadFile: Invalid value for property `background`');if(o.progressDivider&&'number'!=typeof o.progressDivider)throw new Error('downloadFile: Invalid value for property `progressDivider`');if(o.progressInterval&&'number'!=typeof o.progressInterval)throw new Error('downloadFile: Invalid value for property `progressInterval`');if(o.readTimeout&&'number'!=typeof o.readTimeout)throw new Error('downloadFile: Invalid value for property `readTimeout`');if(o.connectionTimeout&&'number'!=typeof o.connectionTimeout)throw new Error('downloadFile: Invalid value for property `connectionTimeout`');if(o.backgroundTimeout&&'number'!=typeof o.backgroundTimeout)throw new Error('downloadFile: Invalid value for property `backgroundTimeout`');var t=l(),s=[];o.begin&&s.push(n.addListener('DownloadBegin',(function(e){e.jobId===t&&o.begin(e)}))),o.progress&&s.push(n.addListener('DownloadProgress',(function(e){e.jobId===t&&o.progress(e)}))),o.resumable&&s.push(n.addListener('DownloadResumable',(function(e){e.jobId===t&&o.resumable(e)})));var u={jobId:t,fromUrl:o.fromUrl,toFile:c(o.toFile),headers:o.headers||{},background:!!o.background,progressDivider:o.progressDivider||0,progressInterval:o.progressInterval||0,readTimeout:o.readTimeout||15e3,connectionTimeout:o.connectionTimeout||5e3,backgroundTimeout:o.backgroundTimeout||36e5,hasBeginCallback:o.begin instanceof Function,hasProgressCallback:o.progress instanceof Function,hasResumableCallback:o.resumable instanceof Function};return{jobId:t,promise:e.downloadFile(u).then((function(e){return s.forEach((function(e){return e.remove()})),e})).catch((function(e){return Promise.reject(e)}))}},uploadFiles:function(o){if(!e.uploadFiles)return{jobId:-1,promise:Promise.reject(new Error('`uploadFiles` is unsupported on this platform'))};var t=l(),s=[];if('object'!=typeof o)throw new Error('uploadFiles: Invalid value for argument `options`');if('string'!=typeof o.toUrl)throw new Error('uploadFiles: Invalid value for property `toUrl`');if(!Array.isArray(o.files))throw new Error('uploadFiles: Invalid value for property `files`');if(o.headers&&'object'!=typeof o.headers)throw new Error('uploadFiles: Invalid value for property `headers`');if(o.fields&&'object'!=typeof o.fields)throw new Error('uploadFiles: Invalid value for property `fields`');if(o.method&&'string'!=typeof o.method)throw new Error('uploadFiles: Invalid value for property `method`');o.begin?s.push(n.addListener('UploadBegin',o.begin)):o.beginCallback&&s.push(n.addListener('UploadBegin',o.beginCallback)),o.progress?s.push(n.addListener('UploadProgress',o.progress)):o.progressCallback&&s.push(n.addListener('UploadProgress',o.progressCallback));var c={jobId:t,toUrl:o.toUrl,files:o.files,binaryStreamOnly:o.binaryStreamOnly||!1,headers:o.headers||{},fields:o.fields||{},method:o.method||'POST',hasBeginCallback:o.begin instanceof Function||o.beginCallback instanceof Function,hasProgressCallback:o.progress instanceof Function||o.progressCallback instanceof Function};return{jobId:t,promise:e.uploadFiles(c).then((function(e){return s.forEach((function(e){return e.remove()})),e}))}},touch:function(n,o,t){if(t&&!(t instanceof Date))throw new Error('touch: Invalid value for argument `ctime`');if(o&&!(o instanceof Date))throw new Error('touch: Invalid value for argument `mtime`');return e.touch(c(n),o&&o.getTime(),0)},scanFile:function(n){return e.scanFile(n)},MainBundlePath:e.RNFSMainBundlePath,CachesDirectoryPath:e.RNFSCachesDirectoryPath,ExternalCachesDirectoryPath:e.RNFSExternalCachesDirectoryPath,DocumentDirectoryPath:e.RNFSDocumentDirectoryPath,DownloadDirectoryPath:e.RNFSDownloadDirectoryPath,ExternalDirectoryPath:e.RNFSExternalDirectoryPath,ExternalStorageDirectoryPath:e.RNFSExternalStorageDirectoryPath,TemporaryDirectoryPath:e.RNFSTemporaryDirectoryPath,LibraryDirectoryPath:e.RNFSLibraryDirectoryPath,PicturesDirectoryPath:e.RNFSPicturesDirectoryPath,FileProtectionKeys:e.RNFSFileProtectionKeys};m.exports=p}),725,[2,726,727]); __d((function(g,r,i,a,m,e,d){!(function(n){var t,o,u,f=String.fromCharCode;function c(n){for(var t,o,u=[],f=0,c=n.length;f=55296&&t<=56319&&f65535&&(c+=f((t-=65536)>>>10&1023|55296),t=56320|1023&t),c+=f(t);return c}function v(n){if(n>=55296&&n<=57343)throw Error('Lone surrogate U+'+n.toString(16).toUpperCase()+' is not a scalar value')}function l(n,t){return f(n>>t&63|128)}function s(n){if(!(4294967168&n))return f(n);var t='';return 4294965248&n?4294901760&n?4292870144&n||(t=f(n>>18&7|240),t+=l(n,12),t+=l(n,6)):(v(n),t=f(n>>12&15|224),t+=l(n,6)):t=f(n>>6&31|192),t+=f(63&n|128)}function w(){if(u>=o)throw Error('Invalid byte index');var n=255&t[u];if(u++,128==(192&n))return 63&n;throw Error('Invalid continuation byte')}function E(){var n,f;if(u>o)throw Error('Invalid byte index');if(u==o)return!1;if(n=255&t[u],u++,!(128&n))return n;if(192==(224&n)){if((f=(31&n)<<6|w())>=128)return f;throw Error('Invalid continuation byte')}if(224==(240&n)){if((f=(15&n)<<12|w()<<6|w())>=2048)return v(f),f;throw Error('Invalid continuation byte')}if(240==(248&n)&&(f=(7&n)<<18|w()<<12|w()<<6|w())>=65536&&f<=1114111)return f;throw Error('Invalid UTF-8 detected')}n.version='3.0.0',n.encode=function(n){for(var t=c(n),o=t.length,u=-1,f='';++u>18&63)+d.charAt(c>>12&63)+d.charAt(c>>6&63)+d.charAt(63&c);return 2==f?(n=t.charCodeAt(A)<<8,o=t.charCodeAt(++A),s+=d.charAt((c=n+o)>>10)+d.charAt(c>>4&63)+d.charAt(c<<2&63)+'='):1==f&&(c=t.charCodeAt(A),s+=d.charAt(c>>2)+d.charAt(c<<4&63)+'=='),s},decode:function(t){var n=(t=String(t).replace(f,'')).length;n%4==0&&(n=(t=t.replace(/==?$/,'')).length),(n%4==1||/[^+a-zA-Z0-9/]/.test(t))&&h('Invalid character: the string to be decoded is not correctly encoded.');for(var o,a,c=0,s='',A=-1;++A>(-2*c&6)));return s},version:'0.1.0'};if('function'==typeof define&&'object'==typeof define.amd&&define.amd)define((function(){return s}));else if(n&&!n.nodeType)if(o)o.exports=s;else for(var A in s)s.hasOwnProperty(A)&&(n[A]=s[A]);else t.base64=s})(this)}),727,[]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f=(0,_r(d[13]).useNavigation)(),p=e.route.params,x=(0,r.useState)(!0),y=(0,n.default)(x,2),j=y[0],w=y[1],b=(0,r.useState)(''),v=(0,n.default)(b,2),O=v[0],C=v[1],T=(0,r.useState)(!0),_=(0,n.default)(T,2),S=_[0],P=_[1],R=(function(){var e=(0,t.default)((function*(){console.log('name:',p.name),console.log('email:',p.email),console.log('password:',p.password);try{var e=yield i.default.post("http://13.124.226.226/v1/users/email/validate",{code:O,email:p.email,sendType:'SIGN_UP'});if(console.log('response:',e.data),!e.data)return void console.log('Error: No return data');f.navigate('ProfileSet',{name:p.name,email:p.email,password:p.password,token:e.data.data.token})}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,r.useEffect)((function(){6==O.length&&S?P(!1):6==O.length||S||P(!0)}),[O]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.default,{title:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',isBackButton:!0}),(0,c.jsx)(o.TouchableWithoutFeedback,{onPress:o.Keyboard.dismiss,accessible:!1,children:(0,c.jsxs)(o.View,{style:h.entire,children:[(0,c.jsx)(o.View,{style:h.container,children:(0,c.jsxs)(o.View,{style:h.textAndInput,children:[(0,c.jsx)(o.Text,{style:h.samllText,children:"\uc778\uc99d\ubc88\ud638 \uc785\ub825"}),(0,c.jsx)(o.TextInput,{secureTextEntry:j,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){C(e)},value:O,style:h.textinputBox,keyboardType:"number-pad"}),(0,c.jsx)(l.default,{style:h.showButton,onPress:function(){w(!j)},children:(0,c.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:j?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})}),(0,c.jsx)(o.View,{style:{height:20}}),(0,c.jsx)(u.default,{text:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',action:R,disable:S}),(0,c.jsxs)(o.View,{style:{marginTop:12,padding:4},children:[(0,c.jsx)(o.Text,{style:h.samllText,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,c.jsx)(o.Text,{style:[h.samllText,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=p(_r(d[3])),o=_r(d[4]),a=e(_r(d[5])),l=e(_r(d[6])),i=p(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),c=(e(_r(d[10])),e(_r(d[11])),_r(d[12]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var h=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),728,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var y=(0,_r(d[15]).useNavigation)(),j=(0,a.useContext)(f.default),b=e.route.params,w=(0,a.useState)(''),C=(0,n.default)(w,2),O=C[0],k=C[1],T=(0,a.useState)(!0),I=(0,n.default)(T,2),_=I[0],R=I[1],S=(0,a.useState)(''),B=(0,n.default)(S,2),P=B[0],V=B[1],A=(function(){var e=(0,t.default)((function*(){console.log('name:',b.name),console.log('email:',b.email),console.log('password:',b.password);try{var e=yield s.default.post("http://13.124.226.226/v1/users/email/sign-up",{email:b.email,nickname:b.nickname,password:b.password,profileImageUrl:P});if(console.log('response:',e.data.data),!e.data.data)return void console.log('Error: No return data');var t=e.data.data.token.accessToken,n=e.data.data.token.refreshToken,a=e.data.data.userDto.id;j.setAccessTokenValue(t),j.setRefreshTokenValue(n),j.setIdValue(a),c.default.setItem('accessToken',t),c.default.setItem('refreshToken',n),c.default.setItem('userId',a.toString()),y.navigate('BottomTab')}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),M=(function(){var e=(0,t.default)((function*(e){var t='';yield h.default.readFile(e.path,'base64').then((function(e){t=e})).catch((function(e){console.error(e)})),console.log('token:',b.token);try{var n=yield s.default.post("https://utdyfn3jhj.execute-api.ap-northeast-2.amazonaws.com/v1/upload-image",{images:[{imageData:t,location:'test'}]});if(console.log('response image:',n.data),'SUCCESS'!=n.data.result)return void console.log('Error: No return data');V(n.data.data[0].imageUrl)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();return(0,a.useEffect)((function(){O&&_?R(!1):O||_||R(!0)}),[O]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.default,{title:'\ud504\ub85c\ud544 \uc124\uc815',isBackButton:!0}),(0,x.jsx)(r.TouchableWithoutFeedback,{onPress:r.Keyboard.dismiss,accessible:!1,children:(0,x.jsxs)(r.View,{style:v.entire,children:[(0,x.jsx)(i.default,{style:v.profile,onPress:function(){p.default.openPicker({width:400,height:400,cropping:!0,cropperCircleOverlay:!0}).then((function(e){M(e)}))},children:P?(0,x.jsx)(r.Image,{resizeMode:"contain",source:{uri:P},style:{borderRadius:75,width:150,height:150}}):(0,x.jsx)(_r(d[16]).SvgXml,{width:200,height:200,xml:_r(d[17]).svgXml.icon.camera})}),(0,x.jsx)(r.View,{style:v.container,children:(0,x.jsxs)(r.View,{style:v.textAndInput,children:[(0,x.jsx)(r.Text,{style:v.samllText,children:"\ub2c9\ub124\uc784"}),(0,x.jsx)(r.TextInput,{autoCapitalize:"none",placeholderTextColor:_r(d[18]).COLOR_GRAY,onChangeText:function(e){k(e)},value:O,style:v.textinputBox})]})}),(0,x.jsx)(r.View,{style:{height:40}}),(0,x.jsx)(u.default,{text:'\ud68c\uc6d0\uac00\uc785',action:A,disable:_}),(0,x.jsxs)(r.View,{style:{marginTop:12,padding:4},children:[(0,x.jsx)(r.Text,{style:v.samllText,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,x.jsx)(r.Text,{style:[v.samllText,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),a=j(_r(d[3])),r=_r(d[4]),o=e(_r(d[5])),i=e(_r(d[6])),s=j(_r(d[7])),l=e(_r(d[8])),u=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),p=e(_r(d[12])),h=e(_r(d[13])),x=_r(d[14]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function j(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}var v=r.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[18]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[18]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontWeight:'bold',marginBottom:10},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[18]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'},profile:{width:150,height:150,borderRadius:75,borderWidth:.7,borderColor:_r(d[18]).COLOR_NAVY,marginBottom:60,justifyContent:'center',alignItems:'center'}})}),729,[1,339,26,153,2,445,442,472,623,523,517,439,724,725,194,524,624,696,444]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f=(0,_r(d[13]).useNavigation)(),p=e.route.params,x=(0,r.useState)(!0),y=(0,n.default)(x,2),b=y[0],j=y[1],v=(0,r.useState)(''),w=(0,n.default)(v,2),O=w[0],C=w[1],_=(0,r.useState)(!0),S=(0,n.default)(_,2),T=S[0],R=S[1],k=(function(){var e=(0,t.default)((function*(){console.log('email:',p.email);try{var e=yield l.default.post("http://13.124.226.226/v1/users/email/validate",{code:O,email:p.email,sendType:'RESET_PASSWORD'});if(console.log('response:',e.data),!e.data)return void console.log('Error: No return data');f.navigate('ResetPassword',{email:p.email,token:e.data.data.token})}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,r.useEffect)((function(){6==O.length&&T?R(!1):6==O.length||T||R(!0)}),[O]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.default,{title:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',isBackButton:!0}),(0,c.jsx)(o.TouchableWithoutFeedback,{onPress:o.Keyboard.dismiss,accessible:!1,children:(0,c.jsxs)(o.View,{style:h.entire,children:[(0,c.jsx)(o.View,{style:h.container,children:(0,c.jsxs)(o.View,{style:h.textAndInput,children:[(0,c.jsx)(o.Text,{style:h.samllText,children:"\uc778\uc99d\ubc88\ud638 \uc785\ub825"}),(0,c.jsx)(o.TextInput,{secureTextEntry:b,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){C(e)},value:O,style:h.textinputBox,keyboardType:"number-pad"}),(0,c.jsx)(i.default,{style:h.showButton,onPress:function(){j(!b)},children:(0,c.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:b?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})}),(0,c.jsx)(o.View,{style:{height:20}}),(0,c.jsx)(u.default,{text:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',action:k,disable:T})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=p(_r(d[3])),o=_r(d[4]),a=e(_r(d[5])),i=e(_r(d[6])),l=p(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),c=(e(_r(d[10])),e(_r(d[11])),_r(d[12]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var h=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_TEXT70GRAY,fontSize:14,textAlign:'center',paddingVertical:4,fontWeight:'bold',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),730,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); -__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){var x=(0,_r(d[13]).useNavigation)(),h=t.route.params,y=(0,o.useState)(''),w=(0,n.default)(y,2),j=w[0],v=w[1],b=(0,o.useState)(!0),C=(0,n.default)(b,2),O=C[0],S=C[1],_=(0,o.useState)(''),R=(0,n.default)(_,2),T=R[0],B=R[1],k=(0,o.useState)(!0),A=(0,n.default)(k,2),I=A[0],P=A[1],z=(0,o.useState)(!0),E=(0,n.default)(z,2),M=E[0],V=E[1],F=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useContext)(c.default);(0,o.useEffect)((function(){j&&M&&T&&j===T?V(!1):j&&T&&j===T||M||V(!0)}),[j,T]);var N=(function(){var t=(0,e.default)((function*(){console.log('email:',h.email),console.log('token:',h.token),console.log('password:',j);try{var t=yield l.default.patch("http://13.124.226.226/v1/users/password",{email:h.email,password:j,token:h.token});console.log('response2:',t.data),'SUCCESS'===t.data.result&&x.navigate('Login')}catch(t){s.default.show({type:'error',text1:'Error',text2:t.response.data.message})}}));return function(){return t.apply(this,arguments)}})();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.default,{title:'\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815',isBackButton:!0}),(0,f.jsx)(r.TouchableWithoutFeedback,{onPress:r.Keyboard.dismiss,accessible:!1,children:(0,f.jsxs)(r.View,{style:p.entire,children:[(0,f.jsxs)(r.View,{style:p.container,children:[(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\uc0c8 \ube44\ubc00\ubc88\ud638"}),(0,f.jsx)(r.TextInput,{ref:F,onSubmitEditing:function(){L.current.focus()},secureTextEntry:O,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(t){v(t)},value:j,style:p.textinputBox}),(0,f.jsx)(a.default,{style:p.showButton,onPress:function(){S(!O)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:O?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]}),(0,f.jsx)(r.View,{style:{height:15}}),(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\ube44\ubc00\ubc88\ud638 \ud655\uc778"}),(0,f.jsx)(r.TextInput,{ref:L,secureTextEntry:I,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(t){B(t)},value:T,style:p.textinputBox}),(0,f.jsx)(a.default,{style:p.showButton,onPress:function(){P(!I)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:I?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})]}),(0,f.jsx)(r.View,{style:{height:20}}),(0,f.jsx)(u.default,{text:j===T?(X=j,W=/[a-zA-Z]/.test(X),D=/\d/.test(X),G=/[!@#$%^&*(),.?":{}|<>]/.test(X),W&&D&&G?'\ud68c\uc6d0\uac00\uc785':'\uc601\uc5b4, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.'):'\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4',action:N,disable:M})]})})]});var X,W,D,G};var e=t(_r(d[1])),n=t(_r(d[2])),o=h(_r(d[3])),r=_r(d[4]),s=t(_r(d[5])),a=t(_r(d[6])),l=h(_r(d[7])),i=t(_r(d[8])),u=t(_r(d[9])),c=(t(_r(d[10])),t(_r(d[11]))),f=_r(d[12]);function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(x=function(t){return t?n:e})(t)}function h(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=x(e);if(n&&n.has(t))return n.get(t);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&{}.hasOwnProperty.call(t,s)){var a=r?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}var p=r.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),731,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f,h=(0,_r(d[15]).useNavigation)(),p=(0,n.useContext)(c.default),w=e.route,j=null==(f=w.params)?void 0:f.setSearch,T=(0,n.useState)(''),v=(0,r.default)(T,2),O=v[0],S=v[1],C=(0,n.useState)([]),B=(0,r.default)(C,2),_=B[0],R=B[1],b=(0,n.useState)([]),L=(0,r.default)(b,2),A=L[0],k=L[1];(0,n.useEffect)((function(){I()}),[]);var z=(function(){var e=(0,t.default)((function*(e){console.log('\uac80\uc0c9\uc5b4:',e);try{var t=new URLSearchParams({query:e}).toString(),r=(yield s.default.get(`http://13.124.226.226:3000/restaurant?${t}`,{headers:{Authorization:`Bearer ${p.accessToken}`}})).data.results.slice(0,5);k(r)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})(),I=(function(){var e=(0,t.default)((function*(){try{var e=yield s.default.get("http://13.124.226.226/v1/recents",{headers:{Authorization:`Bearer ${p.accessToken}`}});console.log('response:',e.data.data.recentQueries),R(e.data.data.recentQueries)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),V=(function(){var e=(0,t.default)((function*(e){try{console.log('context.accessToken:',p.accessToken);var t=yield s.default.delete("http://13.124.226.226/v1/recents",{headers:{Authorization:`Bearer ${p.accessToken}`},data:{query:e}});console.log('response:',t.data)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.default,{title:'\uac80\uc0c9',isBackButton:!0}),(0,u.jsxs)(o.View,{style:y.entire,children:[(0,u.jsx)(o.View,{style:{alignItems:'center',marginBottom:0==O.length?20:0},children:(0,u.jsxs)(o.View,{style:{width:x-32,backgroundColor:'white',borderRadius:10,padding:4,paddingHorizontal:8,elevation:4,marginVertical:15,justifyContent:'center',flexDirection:'row',alignItems:'center'},children:[(0,u.jsx)(i.default,{onPress:function(){j(O),h.goBack()},style:{padding:8},children:(0,u.jsx)(_r(d[16]).SvgXml,{xml:_r(d[17]).svgXml.icon.search,width:"24",height:"24"})}),(0,u.jsx)(_r(d[18]).TextInput,{placeholder:'\uc728\uc804\uc758 \ub9db\uc9d1\uc740 \uacfc\uc5f0 \uc5b4\ub514?',placeholderTextColor:'#888888',style:y.textInput,onChangeText:function(e){S(e),z(e)},blurOnSubmit:!1,maxLength:200,value:O,onSubmitEditing:function(){j(O),h.goBack()},textAlignVertical:"center",autoCapitalize:"none",autoComplete:"off",autoCorrect:!1,numberOfLines:1})]})}),0==O.length?(0,u.jsxs)(o.View,{style:{},children:[(0,u.jsxs)(o.View,{style:y.recentHeader,children:[(0,u.jsx)(o.Text,{style:{fontSize:15,color:_r(d[19]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundB'},children:"\ucd5c\uadfc \uac80\uc0c9\uc5b4"}),(0,u.jsx)(i.default,{onPress:function(){console.log('\ucd5c\uadfc \uac80\uc0c9\uc5b4 \uc804\ubd80 \uc0ad\uc81c'),R([]);for(var e=0;e<_.length;e++)V(_[e].query)},style:{marginLeft:10},children:(0,u.jsx)(o.Text,{style:{fontSize:12,color:_r(d[19]).COLOR_TEXT60GRAY,fontFamily:'NanumSquareRoundB',marginBottom:4},children:"\uc804\uccb4 \uc0ad\uc81c"})})]}),(0,u.jsx)(o.View,{style:{height:80},children:(0,u.jsxs)(o.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{paddingTop:15},children:[(0,u.jsx)(o.View,{style:{width:16}}),_.map((function(e,t){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.default,{style:y.filterButton,onPress:function(){console.log('press item:',e.query),j(e.query),h.goBack()},children:(0,u.jsx)(o.Text,{style:y.recentText,children:e.query})}),(0,u.jsx)(o.View,{style:{width:7}})]})}))]})})]}):(0,u.jsx)(o.View,{style:y.searchArea,children:(0,u.jsx)(_r(d[18]).FlatList,{data:A,renderItem:function(e){var r=e.item;e.index;return(0,u.jsxs)(i.default,{style:y.listButton,onPress:(0,t.default)((function*(){j(r.org_display),h.goBack()})),children:[(0,u.jsx)(_r(d[16]).SvgXml,{xml:_r(d[17]).svgXml.icon.search,width:"18",height:"18"}),(0,u.jsx)(o.Text,{style:y.buttonText,children:r.org_display}),(0,u.jsx)(o.View,{style:{flex:1}}),(0,u.jsx)(o.Text,{style:y.categoryText,children:r.category})]})}})})]})]})};var t=e(_r(d[1])),r=e(_r(d[2])),n=h(_r(d[3])),o=_r(d[4]),a=e(_r(d[5])),i=e(_r(d[6])),l=e(_r(d[7])),s=(h(_r(d[8])),e(_r(d[9])),e(_r(d[10])),e(_r(d[11])),h(_r(d[12]))),c=e(_r(d[13])),u=_r(d[14]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var x=o.Dimensions.get('window').width;var y=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[19]).COLOR_BACKGROUND,alignItems:'center'},textInput:{marginLeft:4,flex:1,fontSize:14,color:_r(d[19]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRound',padding:0},recentHeader:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',marginHorizontal:16,width:x-32},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',paddingHorizontal:12,paddingVertical:0,borderRadius:15,backgroundColor:_r(d[19]).COLOR_WHITE,borderColor:_r(d[19]).COLOR_PRIMARY,borderWidth:1,height:37},recentText:{fontSize:13,color:_r(d[19]).COLOR_TEXT_BLACK,textAlign:'center',fontFamily:'NanumSquareRoundB'},searchArea:{flex:1,width:x},touchArea:{flex:1,width:x},listButton:{marginStart:18,padding:8,paddingHorizontal:16,flexDirection:'row',alignItems:'center'},buttonText:{fontSize:13,color:_r(d[19]).COLOR_TEXT_BLACK,marginStart:6,fontFamily:'NanumSquareRound',marginLeft:2},categoryText:{fontSize:12,color:_r(d[19]).COLOR_PRIMARY,marginStart:6,fontFamily:'NanumSquareRoundEB',textAlign:'right',marginBottom:2.5}})}),732,[1,339,26,153,2,445,442,700,733,755,756,711,472,439,194,524,624,696,781,444]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f=(0,_r(d[13]).useNavigation)(),p=e.route.params,h=(0,r.useState)(!0),y=(0,n.default)(h,2),j=y[0],w=y[1],b=(0,r.useState)(''),v=(0,n.default)(b,2),O=v[0],C=v[1],T=(0,r.useState)(!0),_=(0,n.default)(T,2),S=_[0],P=_[1],R=(function(){var e=(0,t.default)((function*(){console.log('name:',p.name),console.log('email:',p.email),console.log('password:',p.password);try{var e=yield l.default.post("undefined/v1/users/email/validate",{code:O,email:p.email,sendType:'SIGN_UP'});if(console.log('response:',e.data),!e.data)return void console.log('Error: No return data');f.navigate('ProfileSet',{name:p.name,email:p.email,password:p.password,token:e.data.data.token})}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,r.useEffect)((function(){6==O.length&&S?P(!1):6==O.length||S||P(!0)}),[O]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.default,{title:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',isBackButton:!0}),(0,c.jsx)(o.TouchableWithoutFeedback,{onPress:o.Keyboard.dismiss,accessible:!1,children:(0,c.jsxs)(o.View,{style:x.entire,children:[(0,c.jsx)(o.View,{style:x.container,children:(0,c.jsxs)(o.View,{style:x.textAndInput,children:[(0,c.jsx)(o.Text,{style:x.samllText,children:"\uc778\uc99d\ubc88\ud638 \uc785\ub825"}),(0,c.jsx)(o.TextInput,{secureTextEntry:j,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){C(e)},value:O,style:x.textinputBox,keyboardType:"number-pad"}),(0,c.jsx)(i.default,{style:x.showButton,onPress:function(){w(!j)},children:(0,c.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:j?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})}),(0,c.jsx)(o.View,{style:{height:20}}),(0,c.jsx)(u.default,{text:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',action:R,disable:S}),(0,c.jsxs)(o.View,{style:{marginTop:12,padding:4},children:[(0,c.jsx)(o.Text,{style:x.samllText,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,c.jsx)(o.Text,{style:[x.samllText,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=p(_r(d[3])),o=_r(d[4]),a=e(_r(d[5])),i=e(_r(d[6])),l=p(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),c=(e(_r(d[10])),e(_r(d[11])),_r(d[12]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var x=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),728,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var y=(0,_r(d[15]).useNavigation)(),j=(0,r.useContext)(f.default),b=e.route.params,w=(0,r.useState)(''),C=(0,n.default)(w,2),O=C[0],k=C[1],T=(0,r.useState)(!0),I=(0,n.default)(T,2),_=I[0],R=I[1],S=(0,r.useState)(''),B=(0,n.default)(S,2),P=B[0],V=B[1],A=(function(){var e=(0,t.default)((function*(){console.log('name:',b.name),console.log('email:',b.email),console.log('password:',b.password);try{var e=yield s.default.post("undefined/v1/users/email/sign-up",{email:b.email,nickname:b.nickname,password:b.password,profileImageUrl:P});if(console.log('response:',e.data.data),!e.data.data)return void console.log('Error: No return data');var t=e.data.data.token.accessToken,n=e.data.data.token.refreshToken,r=e.data.data.userDto.id;j.setAccessTokenValue(t),j.setRefreshTokenValue(n),j.setIdValue(r),c.default.setItem('accessToken',t),c.default.setItem('refreshToken',n),c.default.setItem('userId',r.toString()),y.navigate('BottomTab')}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),M=(function(){var e=(0,t.default)((function*(e){var t='';yield h.default.readFile(e.path,'base64').then((function(e){t=e})).catch((function(e){console.error(e)})),console.log('token:',b.token);try{var n=yield s.default.post("undefined/v1/upload-image",{images:[{imageData:t,location:'test'}]});if(console.log('response image:',n.data),'SUCCESS'!=n.data.result)return void console.log('Error: No return data');V(n.data.data[0].imageUrl)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();return(0,r.useEffect)((function(){O&&_?R(!1):O||_||R(!0)}),[O]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.default,{title:'\ud504\ub85c\ud544 \uc124\uc815',isBackButton:!0}),(0,x.jsx)(a.TouchableWithoutFeedback,{onPress:a.Keyboard.dismiss,accessible:!1,children:(0,x.jsxs)(a.View,{style:v.entire,children:[(0,x.jsx)(i.default,{style:v.profile,onPress:function(){p.default.openPicker({width:400,height:400,cropping:!0,cropperCircleOverlay:!0}).then((function(e){M(e)}))},children:P?(0,x.jsx)(a.Image,{resizeMode:"contain",source:{uri:P},style:{borderRadius:75,width:150,height:150}}):(0,x.jsx)(_r(d[16]).SvgXml,{width:200,height:200,xml:_r(d[17]).svgXml.icon.camera})}),(0,x.jsx)(a.View,{style:v.container,children:(0,x.jsxs)(a.View,{style:v.textAndInput,children:[(0,x.jsx)(a.Text,{style:v.samllText,children:"\ub2c9\ub124\uc784"}),(0,x.jsx)(a.TextInput,{autoCapitalize:"none",placeholderTextColor:_r(d[18]).COLOR_GRAY,onChangeText:function(e){k(e)},value:O,style:v.textinputBox})]})}),(0,x.jsx)(a.View,{style:{height:40}}),(0,x.jsx)(u.default,{text:'\ud68c\uc6d0\uac00\uc785',action:A,disable:_}),(0,x.jsxs)(a.View,{style:{marginTop:12,padding:4},children:[(0,x.jsx)(a.Text,{style:v.samllText,children:'\uac00\uc785\ud558\uc2dc\uba74 \uc774\uc6a9\uc57d\uad00 \ubc0f \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638\uc815\ucc45\uc5d0'}),(0,x.jsx)(a.Text,{style:[v.samllText,{marginTop:-5}],children:'\uc790\ub3d9\uc73c\ub85c \ub3d9\uc758\ud558\uac8c \ub429\ub2c8\ub2e4.'})]})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=j(_r(d[3])),a=_r(d[4]),o=e(_r(d[5])),i=e(_r(d[6])),s=j(_r(d[7])),l=e(_r(d[8])),u=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),p=e(_r(d[12])),h=e(_r(d[13])),x=_r(d[14]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function j(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}var v=a.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[18]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[18]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontWeight:'bold',marginBottom:10},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[18]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'},profile:{width:150,height:150,borderRadius:75,borderWidth:.7,borderColor:_r(d[18]).COLOR_NAVY,marginBottom:60,justifyContent:'center',alignItems:'center'}})}),729,[1,339,26,153,2,445,442,472,623,523,517,439,724,725,194,524,624,696,444]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f=(0,_r(d[13]).useNavigation)(),p=e.route.params,x=(0,r.useState)(!0),y=(0,n.default)(x,2),b=y[0],j=y[1],v=(0,r.useState)(''),w=(0,n.default)(v,2),O=w[0],C=w[1],_=(0,r.useState)(!0),S=(0,n.default)(_,2),T=S[0],R=S[1],k=(function(){var e=(0,t.default)((function*(){console.log('email:',p.email);try{var e=yield l.default.post("undefined/v1/users/email/validate",{code:O,email:p.email,sendType:'RESET_PASSWORD'});if(console.log('response:',e.data),!e.data)return void console.log('Error: No return data');f.navigate('ResetPassword',{email:p.email,token:e.data.data.token})}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,r.useEffect)((function(){6==O.length&&T?R(!1):6==O.length||T||R(!0)}),[O]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.default,{title:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',isBackButton:!0}),(0,c.jsx)(o.TouchableWithoutFeedback,{onPress:o.Keyboard.dismiss,accessible:!1,children:(0,c.jsxs)(o.View,{style:h.entire,children:[(0,c.jsx)(o.View,{style:h.container,children:(0,c.jsxs)(o.View,{style:h.textAndInput,children:[(0,c.jsx)(o.Text,{style:h.samllText,children:"\uc778\uc99d\ubc88\ud638 \uc785\ub825"}),(0,c.jsx)(o.TextInput,{secureTextEntry:b,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){C(e)},value:O,style:h.textinputBox,keyboardType:"number-pad"}),(0,c.jsx)(i.default,{style:h.showButton,onPress:function(){j(!b)},children:(0,c.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:b?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})}),(0,c.jsx)(o.View,{style:{height:20}}),(0,c.jsx)(u.default,{text:'\uc778\uc99d\ubc88\ud638 \ud655\uc778',action:k,disable:T})]})})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=p(_r(d[3])),o=_r(d[4]),a=e(_r(d[5])),i=e(_r(d[6])),l=p(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),c=(e(_r(d[10])),e(_r(d[11])),_r(d[12]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var h=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_TEXT70GRAY,fontSize:14,textAlign:'center',paddingVertical:4,fontWeight:'bold',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:10,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),730,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var x=(0,_r(d[13]).useNavigation)(),h=e.route.params,y=(0,o.useState)(''),w=(0,n.default)(y,2),j=w[0],v=w[1],b=(0,o.useState)(!0),C=(0,n.default)(b,2),O=C[0],S=C[1],_=(0,o.useState)(''),R=(0,n.default)(_,2),T=R[0],B=R[1],k=(0,o.useState)(!0),A=(0,n.default)(k,2),I=A[0],P=A[1],z=(0,o.useState)(!0),E=(0,n.default)(z,2),M=E[0],V=E[1],F=(0,o.useRef)(null),L=(0,o.useRef)(null);(0,o.useContext)(c.default);(0,o.useEffect)((function(){j&&M&&T&&j===T?V(!1):j&&T&&j===T||M||V(!0)}),[j,T]);var N=(function(){var e=(0,t.default)((function*(){console.log('email:',h.email),console.log('token:',h.token),console.log('password:',j);try{var e=yield l.default.patch("undefined/v1/users/password",{email:h.email,password:j,token:h.token});console.log('response2:',e.data),'SUCCESS'===e.data.result&&x.navigate('Login')}catch(e){s.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.default,{title:'\ube44\ubc00\ubc88\ud638 \uc7ac\uc124\uc815',isBackButton:!0}),(0,f.jsx)(r.TouchableWithoutFeedback,{onPress:r.Keyboard.dismiss,accessible:!1,children:(0,f.jsxs)(r.View,{style:p.entire,children:[(0,f.jsxs)(r.View,{style:p.container,children:[(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\uc0c8 \ube44\ubc00\ubc88\ud638"}),(0,f.jsx)(r.TextInput,{ref:F,onSubmitEditing:function(){L.current.focus()},secureTextEntry:O,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){v(e)},value:j,style:p.textinputBox}),(0,f.jsx)(a.default,{style:p.showButton,onPress:function(){S(!O)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:O?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]}),(0,f.jsx)(r.View,{style:{height:15}}),(0,f.jsxs)(r.View,{style:p.textAndInput,children:[(0,f.jsx)(r.Text,{style:p.samllText,children:"\ube44\ubc00\ubc88\ud638 \ud655\uc778"}),(0,f.jsx)(r.TextInput,{ref:L,secureTextEntry:I,autoCapitalize:"none",placeholderTextColor:_r(d[14]).COLOR_GRAY,onChangeText:function(e){B(e)},value:T,style:p.textinputBox}),(0,f.jsx)(a.default,{style:p.showButton,onPress:function(){P(!I)},children:(0,f.jsx)(_r(d[15]).SvgXml,{width:20,height:20,xml:I?_r(d[16]).svgXml.button.passwordShow:_r(d[16]).svgXml.button.passwordNotShow})})]})]}),(0,f.jsx)(r.View,{style:{height:20}}),(0,f.jsx)(u.default,{text:j===T?(X=j,W=/[a-zA-Z]/.test(X),D=/\d/.test(X),G=/[!@#$%^&*(),.?":{}|<>]/.test(X),W&&D&&G?'\ud68c\uc6d0\uac00\uc785':'\uc601\uc5b4, \uc22b\uc790, \ud2b9\uc218\ubb38\uc790\uac00 \ud3ec\ud568\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.'):'\ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4',action:N,disable:M})]})})]});var X,W,D,G};var t=e(_r(d[1])),n=e(_r(d[2])),o=h(_r(d[3])),r=_r(d[4]),s=e(_r(d[5])),a=e(_r(d[6])),l=h(_r(d[7])),i=e(_r(d[8])),u=e(_r(d[9])),c=(e(_r(d[10])),e(_r(d[11]))),f=_r(d[12]);function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var a=r?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}var p=r.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[14]).COLOR_BACKGROUND,alignItems:'center',justifyContent:'center'},container:{width:'90%',alignItems:'center',justifyContent:'center',marginHorizontal:16},textAndInput:{width:'100%',alignItems:'flex-start',justifyContent:'center'},samllText:{color:_r(d[14]).COLOR_PRIMARY,fontSize:14,textAlign:'center',paddingVertical:4,fontFamily:'NanumSquareRoundB',marginBottom:8},textinputBox:{height:50,borderColor:'#F8F8F8',borderWidth:1,borderRadius:5,paddingHorizontal:15,backgroundColor:_r(d[14]).COLOR_HOME_BACKGROUND,fontSize:16,width:'100%'},showButton:{position:'absolute',right:0,bottom:8,padding:5,justifyContent:'center',alignItems:'center'}})}),731,[1,339,26,153,2,445,442,472,623,523,517,439,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f,h,j=(0,_r(d[15]).useNavigation)(),w=(0,r.useContext)(u.default),T=e.route,v=null==(f=T.params)?void 0:f.setSearch,S=null==(h=T.params)?void 0:h.search,O=(0,r.useState)(''),C=(0,n.default)(O,2),B=C[0],R=C[1],_=(0,r.useState)([]),b=(0,n.default)(_,2),L=b[0],A=b[1],k=(0,r.useState)([]),z=(0,n.default)(k,2),E=z[0],I=z[1];(0,r.useEffect)((function(){S&&(R(S),V(S)),q()}),[S]),(0,r.useEffect)((function(){q()}),[]);var V=(function(){var e=(0,t.default)((function*(e){console.log('\uac80\uc0c9\uc5b4:',e);try{var t=new URLSearchParams({query:e}).toString(),n=(yield s.default.get(`undefined?${t}`,{headers:{Authorization:`Bearer ${w.accessToken}`}})).data.results.slice(0,5);I(n)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})(),q=(function(){var e=(0,t.default)((function*(){try{var e=yield s.default.get("undefined/v1/recents",{headers:{Authorization:`Bearer ${w.accessToken}`}});console.log('response:',e.data.data.recentQueries),A(e.data.data.recentQueries)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),P=(function(){var e=(0,t.default)((function*(e){try{console.log('context.accessToken:',w.accessToken);var t=yield s.default.delete("undefined/v1/recents",{headers:{Authorization:`Bearer ${w.accessToken}`},data:{query:e}});console.log('response:',t.data)}catch(e){a.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.default,{title:'\uac80\uc0c9',isBackButton:!0}),(0,c.jsxs)(o.View,{style:p.entire,children:[(0,c.jsx)(o.View,{style:{alignItems:'center',marginBottom:0==B.length?20:0},children:(0,c.jsxs)(o.View,{style:{width:x-32,backgroundColor:'white',borderRadius:10,padding:4,paddingHorizontal:8,elevation:4,marginVertical:15,justifyContent:'center',flexDirection:'row',alignItems:'center'},children:[(0,c.jsx)(i.default,{onPress:function(){v(B),j.goBack()},style:{padding:8},children:(0,c.jsx)(_r(d[16]).SvgXml,{xml:_r(d[17]).svgXml.icon.search,width:"24",height:"24"})}),(0,c.jsx)(_r(d[18]).TextInput,{placeholder:'\uc728\uc804\uc758 \ub9db\uc9d1\uc740 \uacfc\uc5f0 \uc5b4\ub514?',placeholderTextColor:'#888888',style:p.textInput,onChangeText:function(e){R(e),V(e)},blurOnSubmit:!1,maxLength:200,value:B,onSubmitEditing:function(){v(B),j.goBack()},textAlignVertical:"center",autoCapitalize:"none",autoComplete:"off",autoCorrect:!1,numberOfLines:1})]})}),0==B.length?(0,c.jsxs)(o.View,{style:{},children:[(0,c.jsxs)(o.View,{style:p.recentHeader,children:[(0,c.jsx)(o.Text,{style:{fontSize:15,color:_r(d[19]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundB'},children:"\ucd5c\uadfc \uac80\uc0c9\uc5b4"}),(0,c.jsx)(i.default,{onPress:function(){console.log('\ucd5c\uadfc \uac80\uc0c9\uc5b4 \uc804\ubd80 \uc0ad\uc81c'),A([]);for(var e=0;e|<\/strong>)/g);return t.map((function(e,n){return''===e?(0,c.jsx)(o.Text,{style:{fontFamily:'NanumSquareRoundEB'},children:t[n+1]},n):''===e||''===t[n-1]?null:(0,c.jsx)(o.Text,{children:e},n)}))};var p=o.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[19]).COLOR_BACKGROUND,alignItems:'center'},textInput:{marginLeft:4,flex:1,fontSize:14,color:_r(d[19]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRound',padding:0},recentHeader:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',marginHorizontal:16,width:x-32},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',paddingHorizontal:12,paddingVertical:0,borderRadius:15,backgroundColor:_r(d[19]).COLOR_WHITE,borderColor:_r(d[19]).COLOR_PRIMARY,borderWidth:1,height:37},recentText:{fontSize:13,color:_r(d[19]).COLOR_TEXT_BLACK,textAlign:'center',fontFamily:'NanumSquareRoundB'},searchArea:{flex:1,width:x},touchArea:{flex:1,width:x},listButton:{marginStart:18,padding:8,paddingHorizontal:16,flexDirection:'row',alignItems:'center'},buttonText:{fontSize:13,color:_r(d[19]).COLOR_TEXT_BLACK,marginStart:6,fontFamily:'NanumSquareRound',marginLeft:2},categoryText:{fontSize:12,color:_r(d[19]).COLOR_PRIMARY,marginStart:6,fontFamily:'NanumSquareRoundEB',textAlign:'right',marginBottom:2.5}})}),732,[1,339,26,153,2,445,442,700,733,755,756,711,472,439,194,524,624,696,781,444]); __d((function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,l,u){void 0===u&&(u=l);var o=Object.getOwnPropertyDescriptor(n,l);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[l]}}),Object.defineProperty(t,u,o)}:function(t,n,l,u){void 0===u&&(u=l),t[u]=n[l]}),n=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),l=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(null!=l)for(var o in l)"default"!==o&&Object.prototype.hasOwnProperty.call(l,o)&&t(u,l,o);return n(u,l),u},u=this&&this.__exportStar||function(n,l){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(l,u)||t(l,n,u)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.OverlayAnimated=e.MarkerAnimated=e.MAP_TYPES=e.Animated=e.Overlay=e.Marker=e.Geojson=e.AnimatedRegion=e.MapCalloutSubview=e.CalloutSubview=e.MapCallout=e.Callout=e.MapLocalTile=e.LocalTile=e.MapWMSTile=e.WMSTile=e.MapUrlTile=e.UrlTile=e.MapCircle=e.Circle=e.MapPolygon=e.Polygon=e.MapHeatmap=e.Heatmap=e.MapPolyline=e.Polyline=e.MapOverlay=e.MapMarker=void 0;var f=l(r(d[0]));Object.defineProperty(e,"Animated",{enumerable:!0,get:function(){return f.AnimatedMapView}}),Object.defineProperty(e,"MAP_TYPES",{enumerable:!0,get:function(){return f.MAP_TYPES}});var c=o(r(d[1]));e.Marker=c.default,Object.defineProperty(e,"MapMarker",{enumerable:!0,get:function(){return r(d[1]).MapMarker}});var p=o(r(d[2]));e.Overlay=p.default,Object.defineProperty(e,"MapOverlay",{enumerable:!0,get:function(){return r(d[2]).MapOverlay}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return o(r(d[3])).default}}),Object.defineProperty(e,"MapPolyline",{enumerable:!0,get:function(){return r(d[3]).MapPolyline}}),Object.defineProperty(e,"Heatmap",{enumerable:!0,get:function(){return o(r(d[4])).default}}),Object.defineProperty(e,"MapHeatmap",{enumerable:!0,get:function(){return r(d[4]).MapHeatmap}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return o(r(d[5])).default}}),Object.defineProperty(e,"MapPolygon",{enumerable:!0,get:function(){return r(d[5]).MapPolygon}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return o(r(d[6])).default}}),Object.defineProperty(e,"MapCircle",{enumerable:!0,get:function(){return r(d[6]).MapCircle}}),Object.defineProperty(e,"UrlTile",{enumerable:!0,get:function(){return o(r(d[7])).default}}),Object.defineProperty(e,"MapUrlTile",{enumerable:!0,get:function(){return r(d[7]).MapUrlTile}}),Object.defineProperty(e,"WMSTile",{enumerable:!0,get:function(){return o(r(d[8])).default}}),Object.defineProperty(e,"MapWMSTile",{enumerable:!0,get:function(){return r(d[8]).MapWMSTile}}),Object.defineProperty(e,"LocalTile",{enumerable:!0,get:function(){return o(r(d[9])).default}}),Object.defineProperty(e,"MapLocalTile",{enumerable:!0,get:function(){return r(d[9]).MapLocalTile}}),Object.defineProperty(e,"Callout",{enumerable:!0,get:function(){return o(r(d[10])).default}}),Object.defineProperty(e,"MapCallout",{enumerable:!0,get:function(){return r(d[10]).MapCallout}}),Object.defineProperty(e,"CalloutSubview",{enumerable:!0,get:function(){return o(r(d[11])).default}}),Object.defineProperty(e,"MapCalloutSubview",{enumerable:!0,get:function(){return r(d[11]).MapCalloutSubview}}),Object.defineProperty(e,"AnimatedRegion",{enumerable:!0,get:function(){return o(r(d[12])).default}}),Object.defineProperty(e,"Geojson",{enumerable:!0,get:function(){return o(r(d[13])).default}}),u(r(d[14]),e),u(r(d[15]),e),u(r(d[16]),e),u(r(d[17]),e),e.MarkerAnimated=c.default.Animated,e.OverlayAnimated=p.default.Animated,e.default=f.default}),733,[734,738,740,741,742,743,744,745,746,747,748,749,750,751,735,752,753,754]); __d((function(g,r,i,a,_m,_e,d){"use strict";var e=r(d[0]),t=r(d[1]),o=r(d[2]),n=r(d[3]),s=r(d[4]),u=r(d[5]),l=r(d[6]),p=r(d[7]);function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var h=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var s=Object.getOwnPropertyDescriptor(t,o);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,s)}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&h(t,e,o);return c(t,e),t};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnimatedMapView=_e.MAP_TYPES=void 0;var v=f(r(d[8])),M=r(d[9]),y=f(r(d[10]));_e.MAP_TYPES={STANDARD:'standard',SATELLITE:'satellite',HYBRID:'hybrid',TERRAIN:'terrain',NONE:'none',MUTEDSTANDARD:'mutedStandard',SATELLITE_FLYOVER:'satelliteFlyover',HYBRID_FLYOVER:'hybridFlyover'};var C=[_e.MAP_TYPES.TERRAIN,_e.MAP_TYPES.NONE],P=(function(h){function c(e){var t,o,s,p;return n(this,c),o=this,p=[e],s=l(s=c),(t=u(o,m()?Reflect.construct(s,p||[],l(o).constructor):s.apply(o,p))).map=v.createRef(),t.state={isReady:'ios'===M.Platform.OS},t._onMapReady=t._onMapReady.bind(t),t._onChange=t._onChange.bind(t),t}return p(c,h),s(c,[{key:"setNativeProps",value:function(e){var t;null==(t=this.map.current)||t.setNativeProps(e)}},{key:"_onMapReady",value:function(){var e=this.props.onMapReady;this.setState({isReady:!0},(function(){e&&e()}))}},{key:"_onChange",value:function(e){var t=e.nativeEvent,o={isGesture:t.isGesture};t.continuous?this.props.onRegionChange&&this.props.onRegionChange(t.region,o):this.props.onRegionChangeComplete&&this.props.onRegionChangeComplete(t.region,o)}},{key:"getCamera",value:function(){return'android'===M.Platform.OS?M.NativeModules.AirMapModule.getCamera(this._getHandle()):'ios'===M.Platform.OS?this._runCommand('getCamera',[]):Promise.reject('getCamera not supported on this platform')}},{key:"setCamera",value:function(e){this.map.current&&r(d[11]).Commands.setCamera(this.map.current,e)}},{key:"animateCamera",value:function(e,t){this.map.current&&r(d[11]).Commands.animateCamera(this.map.current,e,null!=t&&t.duration?t.duration:500)}},{key:"animateToRegion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;this.map.current&&r(d[11]).Commands.animateToRegion(this.map.current,e,t)}},{key:"fitToElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.map.current){var t=e.edgePadding,o=void 0===t?{top:0,right:0,bottom:0,left:0}:t,n=e.animated,s=void 0===n||n;r(d[11]).Commands.fitToElements(this.map.current,o,s)}}},{key:"fitToSuppliedMarkers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.map.current){var o=t.edgePadding,n=void 0===o?{top:0,right:0,bottom:0,left:0}:o,s=t.animated,u=void 0===s||s;r(d[11]).Commands.fitToSuppliedMarkers(this.map.current,e,n,u)}}},{key:"fitToCoordinates",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.map.current){var o=t.edgePadding,n=void 0===o?{top:0,right:0,bottom:0,left:0}:o,s=t.animated,u=void 0===s||s;r(d[11]).Commands.fitToCoordinates(this.map.current,e,n,u)}}},{key:"getMapBoundaries",value:(f=o((function*(){return'android'===M.Platform.OS?yield M.NativeModules.AirMapModule.getMapBoundaries(this._getHandle()):'ios'===M.Platform.OS?yield this._runCommand('getMapBoundaries',[]):Promise.reject('getMapBoundaries not supported on this platform')})),function(){return f.apply(this,arguments)})},{key:"setMapBoundaries",value:function(e,t){this.map.current&&r(d[11]).Commands.setMapBoundaries(this.map.current,e,t)}},{key:"setIndoorActiveLevelIndex",value:function(e){this.map.current&&r(d[11]).Commands.setIndoorActiveLevelIndex(this.map.current,e)}},{key:"takeSnapshot",value:function(e){var t=this,o={width:e.width||0,height:e.height||0,region:e.region||{},format:e.format||'png',quality:e.quality||1,result:e.result||'file'};if('png'!==o.format&&'jpg'!==o.format)throw new Error('Invalid format specified');if('file'!==o.result&&'base64'!==o.result)throw new Error('Invalid result specified');return'android'===M.Platform.OS?M.NativeModules.AirMapModule.takeSnapshot(this._getHandle(),o):'ios'===M.Platform.OS?new Promise((function(e,n){t._runCommand('takeSnapshot',[o.width,o.height,o.region,o.format,o.quality,o.result,function(t,o){t?n(t):e(o)}])})):Promise.reject('takeSnapshot not supported on this platform')}},{key:"addressForCoordinate",value:function(e){return'android'===M.Platform.OS?M.NativeModules.AirMapModule.getAddressFromCoordinates(this._getHandle(),e):'ios'===M.Platform.OS?this._runCommand('getAddressFromCoordinates',[e]):Promise.reject('getAddress not supported on this platform')}},{key:"pointForCoordinate",value:function(e){return'android'===M.Platform.OS?M.NativeModules.AirMapModule.pointForCoordinate(this._getHandle(),e):'ios'===M.Platform.OS?this._runCommand('pointForCoordinate',[e]):Promise.reject('pointForCoordinate not supported on this platform')}},{key:"coordinateForPoint",value:function(e){return'android'===M.Platform.OS?M.NativeModules.AirMapModule.coordinateForPoint(this._getHandle(),e):'ios'===M.Platform.OS?this._runCommand('coordinateForPoint',[e]):Promise.reject('coordinateForPoint not supported on this platform')}},{key:"getMarkersFrames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return'ios'===M.Platform.OS?this._runCommand('getMarkersFrames',[e]):Promise.reject('getMarkersFrames not supported on this platform')}},{key:"boundingBoxForRegion",value:function(e){return{northEast:{latitude:e.latitude+e.latitudeDelta/2,longitude:e.longitude+e.longitudeDelta/2},southWest:{latitude:e.latitude-e.latitudeDelta/2,longitude:e.longitude-e.longitudeDelta/2}}}},{key:"_mapManagerCommand",value:function(e){return M.NativeModules[`${(0,r(d[12]).getNativeMapName)(this.props.provider)}Manager`][e]}},{key:"_getHandle",value:function(){return(0,M.findNodeHandle)(this.map.current)}},{key:"_runCommand",value:function(e,o){return'ios'===M.Platform.OS?this._mapManagerCommand(e).apply(void 0,[this._getHandle()].concat(t(o))):Promise.reject(`Invalid platform was passed: ${M.Platform.OS}`)}},{key:"render",value:function(){var t;this.state.isReady?(t=Object.assign({region:null,initialRegion:null,onChange:this._onChange,onMapReady:this._onMapReady,liteMode:this.props.liteMode,googleMapId:this.props.googleMapId,googleRenderer:this.props.googleRenderer,ref:this.map,customMapStyleString:this.props.customMapStyle?JSON.stringify(this.props.customMapStyle):void 0},this.props),'ios'===M.Platform.OS&&t.provider===y.PROVIDER_DEFAULT&&t.mapType&&C.includes(t.mapType)&&(t.mapType=_e.MAP_TYPES.STANDARD),t.onPanDrag&&(t.handlePanDrag=!!t.onPanDrag)):t={style:this.props.style,region:null,liteMode:this.props.liteMode,googleMapId:this.props.googleMapId,googleRenderer:this.props.googleRenderer,initialRegion:this.props.initialRegion||null,initialCamera:this.props.initialCamera,ref:this.map,onChange:this._onChange,onMapReady:this._onMapReady,onLayout:this.props.onLayout,customMapStyleString:this.props.customMapStyle?JSON.stringify(this.props.customMapStyle):void 0};var o=S(this.props.provider);return e.jsx(r(d[12]).ProviderContext.Provider,{value:this.props.provider,children:e.jsx(o,Object.assign({},t))})}}]);var f})(v.Component),_={default:(0,M.requireNativeComponent)('AIRMap'),google:function(){return null}};'android'===M.Platform.OS?_.google=_.default:_.google=r(d[12]).googleMapIsInstalled?(0,M.requireNativeComponent)('AIRGoogleMap'):(0,r(d[12]).createNotSupportedComponent)('react-native-maps: AirGoogleMaps dir must be added to your xCode project to support GoogleMaps on iOS.');var S=function(e){return _[e||'default']};_e.AnimatedMapView=M.Animated.createAnimatedComponent(P),P.Animated=_e.AnimatedMapView,_e.default=P}),734,[194,34,339,5,6,10,14,15,153,2,735,736,737]); __d((function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PROVIDER_GOOGLE=e.PROVIDER_DEFAULT=void 0,e.PROVIDER_DEFAULT=void 0,e.PROVIDER_GOOGLE='google'}),735,[]); @@ -1139,8 +1139,8 @@ __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esMo __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,o.default)(r(d[12]).COLOR_PRIMARY),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n.StatusBar,{backgroundColor:r(d[12]).COLOR_PRIMARY}),(0,h.jsxs)(b.Navigator,{initialRouteName:"HomeNavigator",screenOptions:{headerShown:!1,tabBarStyle:{height:56,backgroundColor:r(d[12]).COLOR_PRIMARY},tabBarShowLabel:!1,tabBarLabelStyle:{fontFamily:'NotoSansKR-Regular'},tabBarActiveTintColor:r(d[12]).COLOR_PRIMARY},children:[(0,h.jsx)(b.Screen,{name:"HomeNavigator",component:x,options:{tabBarShowLabel:!1,tabBarLabel:'\ud648',tabBarIcon:function(t){return(0,h.jsx)(r(d[13]).SvgXml,{width:S,height:S,xml:t.focused?r(d[14]).svgXml.baricon.homeColor:r(d[14]).svgXml.baricon.home})}}}),(0,h.jsx)(b.Screen,{name:"MapNavigator",component:j,options:{tabBarShowLabel:!1,tabBarLabel:'\uc9c0\ub3c4',tabBarIcon:function(t){return(0,h.jsx)(r(d[13]).SvgXml,{width:S,height:S,xml:t.focused?r(d[14]).svgXml.baricon.mapColor:r(d[14]).svgXml.baricon.map})}}}),(0,h.jsx)(b.Screen,{name:"ListNavigator",component:B,options:{tabBarShowLabel:!1,tabBarLabel:'\ub9ac\uc2a4\ud2b8',tabBarIcon:function(t){return(0,h.jsx)(r(d[13]).SvgXml,{width:S,height:S,xml:t.focused?r(d[14]).svgXml.baricon.listColor:r(d[14]).svgXml.baricon.list})}}}),(0,h.jsx)(b.Screen,{name:"MypageNavigator",component:y,options:{tabBarShowLabel:!1,tabBarLabel:'\ud504\ub85c\ud544',tabBarIcon:function(t){return(0,h.jsx)(r(d[13]).SvgXml,{width:S,height:S,xml:t.focused?r(d[14]).svgXml.baricon.prifileColor:r(d[14]).svgXml.baricon.prifile})}}})]})]})};t(r(d[1]));var n=r(d[2]),o=t(r(d[3])),c=t(r(d[4])),l=t(r(d[5])),s=t(r(d[6])),u=t(r(d[7])),p=t(r(d[8])),h=r(d[9]),b=(0,r(d[10]).createBottomTabNavigator)(),S=35,v=function(t){var n=t.current,o=t.next,c=t.layouts;return{cardStyle:{transform:[{translateX:n.progress.interpolate({inputRange:[0,1],outputRange:[c.screen.width,0]})},{scale:o?o.progress.interpolate({inputRange:[0,1],outputRange:[1,.9]}):1}]},overlayStyle:{opacity:n.progress.interpolate({inputRange:[0,1],outputRange:[0,.5]})}}},f=(0,r(d[11]).createStackNavigator)();function x(){return(0,h.jsx)(f.Navigator,{initialRouteName:"Home",screenOptions:{headerShown:!1,cardStyleInterpolator:v},children:(0,h.jsx)(f.Screen,{name:"Home",component:c.default})})}var R=(0,r(d[11]).createStackNavigator)();function j(){return(0,h.jsx)(R.Navigator,{initialRouteName:"Map",screenOptions:{headerShown:!1,cardStyleInterpolator:v},children:(0,h.jsx)(R.Screen,{name:"Map",component:s.default})})}var N=(0,r(d[11]).createStackNavigator)();function B(){return(0,h.jsx)(N.Navigator,{initialRouteName:"ListMain",screenOptions:{headerShown:!1,cardStyleInterpolator:v},children:(0,h.jsx)(N.Screen,{name:"ListMain",component:l.default})})}var L=(0,r(d[11]).createStackNavigator)();function y(){return(0,h.jsxs)(L.Navigator,{initialRouteName:"Mypage",screenOptions:{headerShown:!1,cardStyleInterpolator:v},children:[(0,h.jsx)(L.Screen,{name:"Mypage",component:u.default}),(0,h.jsx)(L.Screen,{name:"UserDataChange",component:p.default})]})}}),1082,[1,153,2,1083,1085,1086,1099,1100,1106,194,1107,1185,444,624,696]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"hideNavigationBar",{enumerable:!0,get:function(){return r(d[0]).hideNavigationBar}}),Object.defineProperty(e,"showNavigationBar",{enumerable:!0,get:function(){return r(d[0]).showNavigationBar}});e.default=r(d[0]).changeNavigationBarColor}),1083,[1084]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.showNavigationBar=e.hideNavigationBar=e.changeNavigationBarColor=void 0;var o=r(d[0]),n=o.NativeModules.NavigationBarColor;e.changeNavigationBarColor=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:String,v=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if('android'===o.Platform.OS){var h=!!v;n.changeNavigationBarColor(t,h,l)}},e.hideNavigationBar=function(){return'android'===o.Platform.OS&&n.hideNavigationBar()},e.showNavigationBar=function(){if('android'!==o.Platform.OS)return!1;n.showNavigationBar()}}),1084,[2]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){(0,_r(d[14]).useNavigation)();var e=(0,a.useContext)(s.default),h=(0,a.useState)([]),y=(0,r.default)(h,2),O=y[0],j=y[1],w=(0,a.useState)([]),x=(0,r.default)(w,2),_=x[0],S=x[1],k=(function(){var r=(0,t.default)((function*(){try{var t=new URLSearchParams({discountForSkku:!0}).toString(),r=yield i.default.get(`http://13.124.226.226/v1/restaurants?${t}`,{headers:{Authorization:`Bearer ${e.accessToken}`}});S(r.data.data.restaurants.content)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return r.apply(this,arguments)}})(),b=(function(){var r=(0,t.default)((function*(){try{var t=yield i.default.get("http://13.124.226.226/v1/restaurants/recommend",{headers:{Authorization:`Bearer ${e.accessToken}`}});console.log('response:',t.data.data.restaurants),j(t.data.data.restaurants)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return r.apply(this,arguments)}})();return(0,a.useEffect)((function(){k(),b()}),[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.default,{title:'\ud648',isBackButton:!1}),(0,p.jsxs)(n.ScrollView,{contentContainerStyle:v.entire,children:[(0,p.jsx)(l.default,{todaysPick:O}),(0,p.jsx)(c.default,{}),(0,p.jsx)(f.default,{passData:_}),(0,p.jsx)(n.View,{style:{height:30}})]})]})};var t=e(_r(d[1])),r=e(_r(d[2])),a=y(_r(d[3])),n=_r(d[4]),o=e(_r(d[5])),u=(e(_r(d[6])),e(_r(d[7]))),s=e(_r(d[8])),i=y(_r(d[9])),l=e(_r(d[10])),c=e(_r(d[11])),f=e(_r(d[12])),p=_r(d[13]);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}n.Dimensions.get('window').width;var v=n.StyleSheet.create({entire:{backgroundColor:_r(d[15]).COLOR_HOME_BACKGROUND,alignItems:'center'},buttonText:{fontSize:20,color:_r(d[15]).COLOR_WHITE,fontWeight:'bold',alignSelf:'center'}})}),1085,[1,339,26,153,2,445,442,700,439,472,710,712,723,194,524,444]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[17]).useNavigation)(),y=(0,n.useContext)(v.default),p=(0,n.useState)(!1),R=(0,l.default)(p,2),b=R[0],T=R[1],O=(0,n.useState)(!1),k=(0,l.default)(O,2),X=k[0],D=k[1],V=(0,n.useState)(!1),A=(0,l.default)(V,2),L=A[0],B=A[1],F=(0,n.useState)(!1),I=(0,l.default)(F,2),P=I[0],_=I[1],M=(0,n.useState)(!1),E=(0,l.default)(M,2),Y=E[0],z=E[1],H=(0,n.useState)(!1),N=(0,l.default)(H,2),W=N[0],U=N[1],q=(0,n.useState)(!1),G=(0,l.default)(q,2),K=G[0],$=G[1],J=(0,n.useState)([]),Q=(0,l.default)(J,2),Z=Q[0],ee=Q[1],te=(0,n.useState)('\uc804\uccb4'),ie=(0,l.default)(te,2),le=ie[0],ne=ie[1],se=(0,n.useState)('\uc804\uccb4'),re=(0,l.default)(se,2),oe=re[0],ae=re[1],ce=(0,n.useState)('\uc804\uccb4'),de=(0,l.default)(ce,2),ue=de[0],he=de[1],xe=(0,n.useState)('\uc804\uccb4'),fe=(0,l.default)(xe,2),ge=fe[0],me=fe[1],je=(0,n.useState)('\uc804\uccb4'),ve=(0,l.default)(je,2),we=ve[0],ye=ve[1],pe=(0,n.useState)('\uae30\ubcf8 \uc21c'),Se=(0,l.default)(pe,2),Ce=Se[0],Re=Se[1],be=(0,n.useState)(!1),Te=(0,l.default)(be,2),Oe=Te[0],ke=Te[1],Xe=(0,n.useState)(!1),De=(0,l.default)(Xe,2),Ve=De[0],Ae=De[1],Le=(0,n.useState)(''),Be=(0,l.default)(Le,2),Fe=Be[0],Ie=Be[1],Pe=(0,n.useState)({latitude:37.297861,longitude:126.971458}),Me=(0,l.default)(Pe,2),Ee=Me[0],Ye=Me[1],ze=(0,n.useState)(0),He=(0,l.default)(ze,2),Ne=He[0],We=He[1],Ue=(0,n.useState)([]),qe=(0,l.default)(Ue,2),Ge=qe[0],Ke=qe[1],$e=(function(){var e=(0,i.default)((function*(){var e=yield u.default.getItem('category');e?(ee([e]),yield u.default.setItem('category','')):ee([])}));return function(){return e.apply(this,arguments)}})(),Je=(function(){var e=(0,i.default)((function*(e){try{We(e+1);var i={page:e};switch(Oe&&(i.discountForSkku=!0),Ve&&(i.like=!0),Z.length>0&&(i.categories=Z),le){case'5.0\uc810':i.ratingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':i.ratingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':i.ratingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':i.ratingAvg=3.5}switch(oe){case'5.0\uc810':i.naverRatingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':i.naverRatingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':i.naverRatingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':i.naverRatingAvg=3.5}switch(ue){case'10\uac1c \uc774\uc0c1':i.reviewCount=10;break;case'30\uac1c \uc774\uc0c1':i.reviewCount=30;break;case'50\uac1c \uc774\uc0c1':i.reviewCount=50;break;case'100\uac1c \uc774\uc0c1':i.reviewCount=100}switch(we){case'10\uac1c \uc774\uc0c1':i.naverReviewCount=10;break;case'30\uac1c \uc774\uc0c1':i.naverReviewCount=30;break;case'50\uac1c \uc774\uc0c1':i.naverReviewCount=50;break;case'100\uac1c \uc774\uc0c1':i.naverReviewCount=100}switch(ge){case'1\ub9cc\uc6d0 \ubbf8\ub9cc':i.priceMax=1e4;break;case'1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0':i.priceMin=1e4,i.priceMax=2e4;break;case'2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0':i.priceMin=2e4,i.priceMax=3e4;break;case'3\ub9cc\uc6d0 \uc774\uc0c1':i.priceMin=3e4}switch(Ce){case'\uac00\uae4c\uc6b4 \uc21c':i.customSort='CLOSELY_DESC',i.latitude=Ee.latitude,i.longitude=Ee.longitude;break;case'\ud3c9\uc810 \ub192\uc740 \uc21c':i.customSort='RATING_DESC';break;case'\ub313\uae00 \ub9ce\uc740 \uc21c':i.customSort='REVIEW_COUNT_DESC';break;case'\ucc1c \ub9ce\uc740 \uc21c':i.customSort='LIKE_COUNT_DESC';break;case'\uae30\ubcf8 \uc21c':i.customSort='BASIC'}''!==Fe&&(i.query=Fe);var l=new URLSearchParams(i).toString(),n=yield h.default.get(`http://13.124.226.226/v1/restaurants?${l}`,{headers:{Authorization:`Bearer ${y.accessToken}`}});console.log('response:',n.data.data),console.log('page:',e),Ke(0==e?n.data.data.restaurants.content:[].concat((0,t.default)(Ge),(0,t.default)(n.data.data.restaurants.content)))}catch(e){r.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();(0,n.useEffect)((function(){$e()}),[]),(0,n.useEffect)((function(){Je(0)}),[Z,le,ue,ge,Oe,Ve,Ce,oe,we,Ee,Fe]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a.default,{title:'\ub9ac\uc2a4\ud2b8',isBackButton:!1}),(0,w.jsx)(s.View,{style:C.entire,children:(0,w.jsx)(s.View,{style:{flex:1,alignItems:'center'},children:(0,w.jsx)(s.FlatList,{data:Ge,style:{flex:1,width:S},ListHeaderComponent:function(){return(0,w.jsx)(s.View,{style:{marginTop:16},children:(0,w.jsxs)(s.View,{style:{alignItems:'center'},children:[(0,w.jsx)(o.default,{style:{width:S-32,backgroundColor:'white',borderRadius:10,padding:4,paddingHorizontal:8,elevation:4,justifyContent:'center'},onPress:function(){Ie(''),e.navigate('Search',{setSearch:Ie})},children:(0,w.jsxs)(s.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,w.jsx)(s.View,{style:{padding:8},children:(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.search,width:"24",height:"24"})}),''!==Fe?(0,w.jsx)(s.Text,{style:C.textInput,children:Fe}):(0,w.jsx)(s.Text,{style:C.textInput,children:'\uc728\uc804\uc758 \ub9db\uc9d1\uc740 \uacfc\uc5f0 \uc5b4\ub514?'})]})}),(0,w.jsxs)(s.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{paddingTop:16},children:[(0,w.jsx)(s.View,{style:{width:16}}),(0,w.jsx)(o.default,{style:[b?C.filterButtonSelected:C.filterButton,,{backgroundColor:Z.length>0?_r(d[20]).COLOR_PRIMARY:b?'#D9D9D9':'white'}],onPress:function(){console.log('press \uce74\ud14c\uace0\ub9ac'),T(!0)},children:0==Z.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.shop,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uce74\ud14c\uace0\ub9ac'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.shopColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\uce74\ud14c\uace0\ub9ac'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[K?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uae30\ubcf8 \uc21c'!==Ce?_r(d[20]).COLOR_PRIMARY:K?'#D9D9D9':'white'}],onPress:function(){console.log('press \uc815\ub82c'),$(!0)},children:'\uae30\ubcf8 \uc21c'===Ce?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.filter,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uae30\ubcf8 \uc21c'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.filterColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:Ce})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[C.filterButton,{backgroundColor:Oe?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \uc131\ub300\uc0dd \ud560\uc778'),ke(!Oe)},children:Oe?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.presentColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\uc131\ub300\uc0dd \ud560\uc778'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.persent,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uc131\ub300\uc0dd \ud560\uc778'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[C.filterButton,{backgroundColor:Ve?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \ucc1c'),Ae(!Ve)},children:Ve?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyHeartColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\ucc1c'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyHeart,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ucc1c'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[X?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==le?_r(d[20]).COLOR_PRIMARY:X?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),D(!0)},children:'\uc804\uccb4'===le?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:le})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[P?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==oe?_r(d[20]).COLOR_PRIMARY:P?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),_(!0)},children:'\uc804\uccb4'===oe?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub124\uc774\ubc84 \ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:oe})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[L?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==ue?_r(d[20]).COLOR_PRIMARY:L?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),B(!0)},children:'\uc804\uccb4'===ue?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub313\uae00 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:ue})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[Y?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==we?_r(d[20]).COLOR_PRIMARY:Y?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub124\uc774\ubc84 \ub313\uae00\uc218'),z(!0)},children:'\uc804\uccb4'===we?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:we})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[W?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==ge?_r(d[20]).COLOR_PRIMARY:W?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),U(!0)},children:'\uc804\uccb4'===ge?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.price,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uac00\uaca9'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.priceColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:ge})]})}),(0,w.jsx)(s.View,{style:{width:16}})]})]})})},ListFooterComponent:function(){return(0,w.jsx)(s.View,{style:{height:16}})},onEndReached:function(){console.log('onEndReached',Ne),0!==Ne&&Je(Ne)},onEndReachedThreshold:60,renderItem:function(e){var t=e.item,i=e.index;return(0,w.jsxs)(s.View,{style:{alignItems:'center'},children:[(0,w.jsx)(s.View,{style:{height:16}}),(0,w.jsx)(c.default,{storeData:t,index:i})]})}})})}),(0,w.jsx)(j.default,{isVisible:b,hasBackdrop:!0,backdropOpacity:.5,onSwipeComplete:function(){return T(!1)},swipeDirection:'down',onBackdropPress:function(){return T(!1)},onBackButtonPress:function(){return T(!1)},onModalHide:function(){T(!1)},style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,w.jsxs)(s.View,{style:C.modalContent,children:[(0,w.jsxs)(s.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},children:[(0,w.jsx)(s.Text,{style:C.modalTitle,children:"\uce74\ud14c\uace0\ub9ac"}),(0,w.jsx)(o.default,{style:{padding:4},onPress:function(){console.log('\uc0c8\ub85c\uace0\uce68'),ee([]),T(!1)},children:(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.refresh,width:"24",height:"24"})})]}),(0,w.jsx)(s.View,{style:{marginTop:12},children:(0,w.jsx)(x.default,{onPress:ee,data:Z})})]})}),(0,w.jsx)(f.default,{visible:X,setVisible:D,title:'\ud3c9\uc810',value:le,setValue:ne,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:P,setVisible:_,title:'\ub124\uc774\ubc84 \ud3c9\uc810',value:oe,setValue:ae,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:K,setVisible:$,title:'\uc815\ub82c',value:Ce,setValue:Re,valueList:['\uae30\ubcf8 \uc21c','\uac00\uae4c\uc6b4 \uc21c','\ud3c9\uc810 \ub192\uc740 \uc21c','\ub313\uae00 \ub9ce\uc740 \uc21c','\ucc1c \ub9ce\uc740 \uc21c'],setLocation:Ye}),(0,w.jsx)(f.default,{visible:L,setVisible:B,title:'\ub313\uae00 \uc218',value:ue,setValue:he,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:Y,setVisible:z,title:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218',value:we,setValue:ye,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:W,setVisible:U,title:'\uac00\uaca9',value:ge,setValue:me,valueList:['\uc804\uccb4','1\ub9cc\uc6d0 \ubbf8\ub9cc','1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0','2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0','3\ub9cc\uc6d0 \uc774\uc0c1']})]})};var t=e(_r(d[1])),i=e(_r(d[2])),l=e(_r(d[3])),n=p(_r(d[4])),s=_r(d[5]),r=e(_r(d[6])),o=e(_r(d[7])),a=e(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=p(_r(d[11])),x=e(_r(d[12])),f=e(_r(d[13])),j=e(_r(d[14])),v=e(_r(d[15])),w=_r(d[16]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(y=function(e){return e?i:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=y(t);if(i&&i.has(e))return i.get(e);var l={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var r=n?Object.getOwnPropertyDescriptor(e,s):null;r&&(r.get||r.set)?Object.defineProperty(l,s,r):l[s]=e[s]}return l.default=e,i&&i.set(e,l),l}var S=s.Dimensions.get('window').width;var C=s.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[20]).COLOR_BACKGROUND,justifyContent:'center',alignItems:'center'},textInput:{marginLeft:10,flex:1,fontSize:13,color:'#888888',padding:0,fontFamily:'NanumSquareRoundB'},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterButtonSelected:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterText:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundEB'},filterTextActive:{marginLeft:1,fontSize:12,color:'#FFFFFF',fontFamily:'NanumSquareRoundB'},filterTextFade:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_GRAY,fontWeight:'bold'},modalContent:{backgroundColor:'white',padding:16,borderRadius:16,borderBottomLeftRadius:0,borderBottomRightRadius:0},modalTitle:{fontSize:20,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'700'},categoryLine:{flexDirection:'row',justifyContent:'space-evenly'}})}),1086,[1,34,339,26,153,2,445,442,700,711,517,472,1087,1088,756,439,194,524,624,696,444]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){(0,_r(d[14]).useNavigation)();var e=(0,n.useContext)(s.default),y=(0,n.useState)([]),h=(0,r.default)(y,2),O=h[0],j=h[1],w=(0,n.useState)([]),x=(0,r.default)(w,2),_=x[0],S=x[1],k=(function(){var r=(0,t.default)((function*(){try{var t=new URLSearchParams({discountForSkku:!0}).toString(),r=yield i.default.get(`undefined/v1/restaurants?${t}`,{headers:{Authorization:`Bearer ${e.accessToken}`}});S(r.data.data.restaurants.content)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return r.apply(this,arguments)}})(),b=(function(){var r=(0,t.default)((function*(){try{var t=yield i.default.get("undefined/v1/restaurants/recommend",{headers:{Authorization:`Bearer ${e.accessToken}`}});console.log('response:',t.data.data.restaurants),j(t.data.data.restaurants)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return r.apply(this,arguments)}})();return(0,n.useEffect)((function(){k(),b()}),[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.default,{title:'\ud648',isBackButton:!1}),(0,p.jsxs)(a.ScrollView,{contentContainerStyle:v.entire,children:[(0,p.jsx)(f.default,{todaysPick:O}),(0,p.jsx)(l.default,{}),(0,p.jsx)(c.default,{passData:_}),(0,p.jsx)(a.View,{style:{height:30}})]})]})};var t=e(_r(d[1])),r=e(_r(d[2])),n=h(_r(d[3])),a=_r(d[4]),o=e(_r(d[5])),u=(e(_r(d[6])),e(_r(d[7]))),s=e(_r(d[8])),i=h(_r(d[9])),f=e(_r(d[10])),l=e(_r(d[11])),c=e(_r(d[12])),p=_r(d[13]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}a.Dimensions.get('window').width;var v=a.StyleSheet.create({entire:{backgroundColor:_r(d[15]).COLOR_HOME_BACKGROUND,alignItems:'center'},buttonText:{fontSize:20,color:_r(d[15]).COLOR_WHITE,fontWeight:'bold',alignSelf:'center'}})}),1085,[1,339,26,153,2,445,442,700,439,472,710,712,723,194,524,444]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[17]).useNavigation)(),y=(0,n.useContext)(v.default),p=(0,n.useState)(!1),R=(0,l.default)(p,2),b=R[0],T=R[1],O=(0,n.useState)(!1),k=(0,l.default)(O,2),X=k[0],L=k[1],A=(0,n.useState)(!1),D=(0,l.default)(A,2),V=D[0],B=D[1],_=(0,n.useState)(!1),F=(0,l.default)(_,2),I=F[0],P=F[1],M=(0,n.useState)(!1),E=(0,l.default)(M,2),Y=E[0],z=E[1],H=(0,n.useState)(!1),N=(0,l.default)(H,2),W=N[0],U=N[1],q=(0,n.useState)(!1),G=(0,l.default)(q,2),K=G[0],$=G[1],J=(0,n.useState)([]),Q=(0,l.default)(J,2),Z=Q[0],ee=Q[1],te=(0,n.useState)('\uc804\uccb4'),ie=(0,l.default)(te,2),le=ie[0],ne=ie[1],se=(0,n.useState)('\uc804\uccb4'),re=(0,l.default)(se,2),oe=re[0],ae=re[1],ce=(0,n.useState)('\uc804\uccb4'),de=(0,l.default)(ce,2),ue=de[0],he=de[1],xe=(0,n.useState)('\uc804\uccb4'),fe=(0,l.default)(xe,2),ge=fe[0],me=fe[1],je=(0,n.useState)('\uc804\uccb4'),ve=(0,l.default)(je,2),we=ve[0],ye=ve[1],pe=(0,n.useState)('\uae30\ubcf8 \uc21c'),Se=(0,l.default)(pe,2),Ce=Se[0],Re=Se[1],be=(0,n.useState)(!1),Te=(0,l.default)(be,2),Oe=Te[0],ke=Te[1],Xe=(0,n.useState)(!1),Le=(0,l.default)(Xe,2),Ae=Le[0],De=Le[1],Ve=(0,n.useState)(''),Be=(0,l.default)(Ve,2),Fe=Be[0],Ie=Be[1],Pe=(0,n.useState)({latitude:37.297861,longitude:126.971458}),Me=(0,l.default)(Pe,2),Ee=Me[0],Ye=Me[1],ze=(0,n.useState)(0),He=(0,l.default)(ze,2),Ne=He[0],We=He[1],Ue=(0,n.useState)([]),qe=(0,l.default)(Ue,2),Ge=qe[0],Ke=qe[1],$e=(function(){var e=(0,i.default)((function*(){var e=yield u.default.getItem('category');e?(ee([e]),yield u.default.setItem('category','')):ee([])}));return function(){return e.apply(this,arguments)}})(),Je=(function(){var e=(0,i.default)((function*(e){try{We(e+1);var i={page:e};switch(Oe&&(i.discountForSkku=!0),Ae&&(i.like=!0),Z.length>0&&(i.categories=Z),le){case'5.0\uc810':i.ratingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':i.ratingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':i.ratingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':i.ratingAvg=3.5}switch(oe){case'5.0\uc810':i.naverRatingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':i.naverRatingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':i.naverRatingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':i.naverRatingAvg=3.5}switch(ue){case'10\uac1c \uc774\uc0c1':i.reviewCount=10;break;case'30\uac1c \uc774\uc0c1':i.reviewCount=30;break;case'50\uac1c \uc774\uc0c1':i.reviewCount=50;break;case'100\uac1c \uc774\uc0c1':i.reviewCount=100}switch(we){case'10\uac1c \uc774\uc0c1':i.naverReviewCount=10;break;case'30\uac1c \uc774\uc0c1':i.naverReviewCount=30;break;case'50\uac1c \uc774\uc0c1':i.naverReviewCount=50;break;case'100\uac1c \uc774\uc0c1':i.naverReviewCount=100}switch(ge){case'1\ub9cc\uc6d0 \ubbf8\ub9cc':i.priceMax=1e4;break;case'1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0':i.priceMin=1e4,i.priceMax=2e4;break;case'2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0':i.priceMin=2e4,i.priceMax=3e4;break;case'3\ub9cc\uc6d0 \uc774\uc0c1':i.priceMin=3e4}switch(Ce){case'\uac00\uae4c\uc6b4 \uc21c':i.customSort='CLOSELY_DESC',i.latitude=Ee.latitude,i.longitude=Ee.longitude;break;case'\ud3c9\uc810 \ub192\uc740 \uc21c':i.customSort='RATING_DESC';break;case'\ub313\uae00 \ub9ce\uc740 \uc21c':i.customSort='REVIEW_COUNT_DESC';break;case'\ucc1c \ub9ce\uc740 \uc21c':i.customSort='LIKE_COUNT_DESC';break;case'\uae30\ubcf8 \uc21c':i.customSort='BASIC'}''!==Fe&&(i.query=Fe);var l=new URLSearchParams(i).toString(),n=yield h.default.get(`undefined/v1/restaurants?${l}`,{headers:{Authorization:`Bearer ${y.accessToken}`}});console.log('response:',n.data.data),console.log('page:',e),Ke(0==e?n.data.data.restaurants.content:[].concat((0,t.default)(Ge),(0,t.default)(n.data.data.restaurants.content)))}catch(e){r.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(t){return e.apply(this,arguments)}})();(0,n.useEffect)((function(){$e()}),[]),(0,n.useEffect)((function(){Je(0)}),[Z,le,ue,ge,Oe,Ae,Ce,oe,we,Ee,Fe]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a.default,{title:'\ub9ac\uc2a4\ud2b8',isBackButton:!1}),(0,w.jsx)(s.View,{style:C.entire,children:(0,w.jsx)(s.View,{style:{flex:1,alignItems:'center'},children:(0,w.jsx)(s.FlatList,{data:Ge,style:{flex:1,width:S},ListHeaderComponent:function(){return(0,w.jsx)(s.View,{style:{marginTop:16},children:(0,w.jsxs)(s.View,{style:{alignItems:'center'},children:[(0,w.jsx)(o.default,{style:{width:S-32,backgroundColor:'white',borderRadius:10,padding:4,paddingHorizontal:8,elevation:4,justifyContent:'center'},onPress:function(){e.navigate('Search',{setSearch:Ie,search:Fe})},children:(0,w.jsxs)(s.View,{style:{flexDirection:'row',alignItems:'center'},children:[(0,w.jsx)(s.View,{style:{padding:8},children:(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.search,width:"24",height:"24"})}),''!==Fe?(0,w.jsx)(s.Text,{style:C.textInput,children:Fe}):(0,w.jsx)(s.Text,{style:C.textInput,children:'\uc728\uc804\uc758 \ub9db\uc9d1\uc740 \uacfc\uc5f0 \uc5b4\ub514?'})]})}),(0,w.jsxs)(s.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{paddingTop:16},children:[(0,w.jsx)(s.View,{style:{width:16}}),(0,w.jsx)(o.default,{style:[b?C.filterButtonSelected:C.filterButton,,{backgroundColor:Z.length>0?_r(d[20]).COLOR_PRIMARY:b?'#D9D9D9':'white'}],onPress:function(){console.log('press \uce74\ud14c\uace0\ub9ac'),T(!0)},children:0==Z.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.shop,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uce74\ud14c\uace0\ub9ac'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.shopColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\uce74\ud14c\uace0\ub9ac'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[K?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uae30\ubcf8 \uc21c'!==Ce?_r(d[20]).COLOR_PRIMARY:K?'#D9D9D9':'white'}],onPress:function(){console.log('press \uc815\ub82c'),$(!0)},children:'\uae30\ubcf8 \uc21c'===Ce?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.filter,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uae30\ubcf8 \uc21c'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.filterColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:Ce})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[C.filterButton,{backgroundColor:Oe?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \uc131\ub300\uc0dd \ud560\uc778'),ke(!Oe)},children:Oe?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.presentColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\uc131\ub300\uc0dd \ud560\uc778'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.persent,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uc131\ub300\uc0dd \ud560\uc778'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[C.filterButton,{backgroundColor:Ae?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \ucc1c'),De(!Ae)},children:Ae?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyHeartColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:'\ucc1c'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyHeart,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ucc1c'})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[X?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==le?_r(d[20]).COLOR_PRIMARY:X?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),L(!0)},children:'\uc804\uccb4'===le?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:le})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[I?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==oe?_r(d[20]).COLOR_PRIMARY:I?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),P(!0)},children:'\uc804\uccb4'===oe?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub124\uc774\ubc84 \ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:oe})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[V?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==ue?_r(d[20]).COLOR_PRIMARY:V?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),B(!0)},children:'\uc804\uccb4'===ue?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub313\uae00 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:ue})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[Y?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==we?_r(d[20]).COLOR_PRIMARY:Y?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub124\uc774\ubc84 \ub313\uae00\uc218'),z(!0)},children:'\uc804\uccb4'===we?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:we})]})}),(0,w.jsx)(s.View,{style:{width:8}}),(0,w.jsx)(o.default,{style:[W?C.filterButtonSelected:C.filterButton,{backgroundColor:'\uc804\uccb4'!==ge?_r(d[20]).COLOR_PRIMARY:W?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),U(!0)},children:'\uc804\uccb4'===ge?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.price,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterText,children:'\uac00\uaca9'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.priceColor,width:"20",height:"20"}),(0,w.jsx)(s.Text,{style:C.filterTextActive,children:ge})]})}),(0,w.jsx)(s.View,{style:{width:16}})]})]})})},ListFooterComponent:function(){return(0,w.jsx)(s.View,{style:{height:16}})},onEndReached:function(){console.log('onEndReached',Ne),0!==Ne&&Je(Ne)},onEndReachedThreshold:60,renderItem:function(e){var t=e.item,i=e.index;return(0,w.jsxs)(s.View,{style:{alignItems:'center'},children:[(0,w.jsx)(s.View,{style:{height:16}}),(0,w.jsx)(c.default,{storeData:t,index:i})]})}})})}),(0,w.jsx)(j.default,{isVisible:b,hasBackdrop:!0,backdropOpacity:.5,onSwipeComplete:function(){return T(!1)},swipeDirection:'down',onBackdropPress:function(){return T(!1)},onBackButtonPress:function(){return T(!1)},onModalHide:function(){T(!1)},style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,w.jsxs)(s.View,{style:C.modalContent,children:[(0,w.jsxs)(s.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},children:[(0,w.jsx)(s.Text,{style:C.modalTitle,children:"\uce74\ud14c\uace0\ub9ac"}),(0,w.jsx)(o.default,{style:{padding:4},onPress:function(){console.log('\uc0c8\ub85c\uace0\uce68'),ee([]),T(!1)},children:(0,w.jsx)(_r(d[18]).SvgXml,{xml:_r(d[19]).svgXml.icon.refresh,width:"24",height:"24"})})]}),(0,w.jsx)(s.View,{style:{marginTop:12},children:(0,w.jsx)(x.default,{onPress:ee,data:Z})})]})}),(0,w.jsx)(f.default,{visible:X,setVisible:L,title:'\ud3c9\uc810',value:le,setValue:ne,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:I,setVisible:P,title:'\ub124\uc774\ubc84 \ud3c9\uc810',value:oe,setValue:ae,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:K,setVisible:$,title:'\uc815\ub82c',value:Ce,setValue:Re,valueList:['\uae30\ubcf8 \uc21c','\uac00\uae4c\uc6b4 \uc21c','\ud3c9\uc810 \ub192\uc740 \uc21c','\ub313\uae00 \ub9ce\uc740 \uc21c','\ucc1c \ub9ce\uc740 \uc21c'],setLocation:Ye}),(0,w.jsx)(f.default,{visible:V,setVisible:B,title:'\ub313\uae00 \uc218',value:ue,setValue:he,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:Y,setVisible:z,title:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218',value:we,setValue:ye,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(f.default,{visible:W,setVisible:U,title:'\uac00\uaca9',value:ge,setValue:me,valueList:['\uc804\uccb4','1\ub9cc\uc6d0 \ubbf8\ub9cc','1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0','2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0','3\ub9cc\uc6d0 \uc774\uc0c1']})]})};var t=e(_r(d[1])),i=e(_r(d[2])),l=e(_r(d[3])),n=p(_r(d[4])),s=_r(d[5]),r=e(_r(d[6])),o=e(_r(d[7])),a=e(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=p(_r(d[11])),x=e(_r(d[12])),f=e(_r(d[13])),j=e(_r(d[14])),v=e(_r(d[15])),w=_r(d[16]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(y=function(e){return e?i:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=y(t);if(i&&i.has(e))return i.get(e);var l={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var r=n?Object.getOwnPropertyDescriptor(e,s):null;r&&(r.get||r.set)?Object.defineProperty(l,s,r):l[s]=e[s]}return l.default=e,i&&i.set(e,l),l}var S=s.Dimensions.get('window').width;var C=s.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[20]).COLOR_BACKGROUND,justifyContent:'center',alignItems:'center'},textInput:{marginLeft:10,flex:1,fontSize:13,color:_r(d[20]).COLOR_TEXT_BLACK,padding:0,fontFamily:'NanumSquareRoundEB'},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterButtonSelected:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterText:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundEB'},filterTextActive:{marginLeft:1,fontSize:12,color:'#FFFFFF',fontFamily:'NanumSquareRoundB'},filterTextFade:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_GRAY,fontWeight:'bold'},modalContent:{backgroundColor:'white',padding:16,borderRadius:16,borderBottomLeftRadius:0,borderBottomRightRadius:0},modalTitle:{fontSize:20,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'700'},categoryLine:{flexDirection:'row',justifyContent:'space-evenly'}})}),1086,[1,34,339,26,153,2,445,442,700,711,517,472,1087,1088,756,439,194,524,624,696,444]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var a=e.onPress,l=e.data;(0,_r(d[11]).useNavigation)(),(0,n.useContext)(i.default);return(0,c.jsxs)(r.View,{style:u.todayPick,children:[(0,c.jsx)(r.View,{style:u.buttonLine,children:['\ud55c\uc2dd','\uc591\uc2dd','\uc77c\uc2dd','\uc911\uc2dd','\ubd84\uc2dd'].map((function(e,n){var i=n+1;return(0,c.jsxs)(s.default,{style:u.buttonSet,onPress:(0,o.default)((function*(){if(l.includes(e)){var o=l.filter((function(t){return t!==e}));a(o)}else a([].concat((0,t.default)(l),[e]))})),children:[(0,c.jsx)(r.View,{style:[u.categroyButton,l.includes(e)?{backgroundColor:_r(d[12]).COLOR_SECONDARY,borderRadius:20}:null],children:1===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[13])}):2===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[14])}):3===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[15])}):4===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[16])}):(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[17])})},n),(0,c.jsx)(r.Text,{style:u.categroyText2,children:e})]})}))}),(0,c.jsx)(r.View,{style:{height:13}}),(0,c.jsx)(r.View,{style:u.buttonLine,children:['\uce58\ud0a8','\ud53c\uc790','\ubc84\uac70','\uc544\uc2dc\uc548','\uce74\ud398'].map((function(e,n){var i=n+1;return(0,c.jsxs)(s.default,{style:u.buttonSet,onPress:(0,o.default)((function*(){if(l.includes(e)){var o=l.filter((function(t){return t!==e}));a(o)}else a([].concat((0,t.default)(l),[e]))})),children:[(0,c.jsx)(r.View,{style:[u.categroyButton,l.includes(e)?{backgroundColor:_r(d[12]).COLOR_SECONDARY,borderRadius:20}:null],children:1===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[18])}):2===i?(0,c.jsx)(r.Image,{style:u.foodIcon2,resizeMode:"contain",source:_r(d[19])}):3===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[20])}):4===i?(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[21])}):(0,c.jsx)(r.Image,{style:u.foodIcon,resizeMode:"contain",source:_r(d[22])})},n),(0,c.jsx)(r.Text,{style:u.categroyText2,children:e})]})}))})]})};var t=e(_r(d[1])),o=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n})(_r(d[3])),r=_r(d[4]),i=(e(_r(d[5])),e(_r(d[6])),e(_r(d[7]))),s=(e(_r(d[8])),e(_r(d[9]))),c=_r(d[10]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var l=r.Dimensions.get('window').width;var u=r.StyleSheet.create({todayPick:{width:l-32,padding:12,paddingHorizontal:15},todayPickTitle:{fontSize:20,color:_r(d[12]).COLOR_PRIMARY,fontFamily:'NIXGONFONTS M 2.0'},line:{marginVertical:8,height:.5,backgroundColor:'#D9D9D9',width:'100%'},buttonLine:{flexDirection:'row',justifyContent:'space-between',marginHorizontal:3},categroyButton:{justifyContent:'center',alignItems:'center',marginBottom:3,width:50,height:50},categroyText2:{fontSize:13,color:_r(d[12]).COLOR_TEXT_BLACK,fontFamily:'NIXGONFONTS M 2.0'},buttonSet:{justifyContent:'center',alignItems:'center',marginBottom:0},foodIcon:{width:30,height:30},foodIcon2:{width:25,height:25}})}),1087,[1,34,339,153,2,517,700,439,472,442,194,524,444,713,714,715,716,717,718,719,720,721,722]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var a=e.visible,u=e.setVisible,c=e.title,f=e.value,p=e.setValue,h=e.valueList,y=e.setLocation,x=(function(){var e=(0,t.default)((function*(){var e=_r(d[14]).PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION;try{var t=yield(0,_r(d[14]).request)(e);console.log(t)}catch(e){console.warn(e)}r.default.getCurrentPosition((function(e){console.log(e.coords.latitude,e.coords.longitude);var t=e.coords,n=t.latitude,o=t.longitude;y({latitude:n,longitude:o})}),(function(e){console.log(e.code,e.message)}),{enableHighAccuracy:!0,timeout:15e3,maximumAge:1e4})}));return function(){return e.apply(this,arguments)}})();return(0,l.jsx)(i.default,{isVisible:a,hasBackdrop:!0,backdropOpacity:.5,onSwipeComplete:function(){return u(!1)},swipeDirection:'down',onBackdropPress:function(){return u(!1)},onBackButtonPress:function(){return u(!1)},onModalHide:function(){u(!1)},style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,l.jsxs)(n.View,{style:s.modalContent,children:[(0,l.jsxs)(n.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},children:[(0,l.jsx)(n.Text,{style:s.modalTitle,children:c}),(0,l.jsx)(o.default,{style:{padding:4},onPress:function(){console.log('\uc0c8\ub85c\uace0\uce68'),p(h[0]),u(!1)},children:(0,l.jsx)(_r(d[15]).SvgXml,{xml:_r(d[16]).svgXml.icon.refresh,width:"24",height:"24"})})]}),(0,l.jsx)(n.View,{style:{height:8}}),(0,l.jsx)(_r(d[17]).FlatList,{data:h,renderItem:function(e){var i=e.item;e.index;return(0,l.jsx)(o.default,{style:s.listButton,onPress:(0,t.default)((function*(){'\uac00\uae4c\uc6b4 \uc21c'==i&&x(),p(i)})),children:i==f?(0,l.jsx)(n.Text,{style:s.buttonText2,children:i}):(0,l.jsx)(n.Text,{style:s.buttonText,children:i})})}})]})})};var t=e(_r(d[1])),n=(u(_r(d[2])),_r(d[3])),o=e(_r(d[4])),i=(e(_r(d[5])),u(_r(d[6])),e(_r(d[7])),e(_r(d[8]))),r=(e(_r(d[9])),e(_r(d[10]))),l=(u(_r(d[11])),e(_r(d[12])),_r(d[13]));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)}function u(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 o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var l=i?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}n.Dimensions.get('window').width;var s=n.StyleSheet.create({modalContent:{backgroundColor:'white',padding:16,borderRadius:16,borderBottomLeftRadius:0,borderBottomRightRadius:0},modalTitle:{fontSize:20,color:_r(d[18]).COLOR_TEXT70GRAY,fontWeight:'700'},listButton:{padding:8,paddingHorizontal:0},buttonText:{fontSize:13,color:_r(d[18]).COLOR_TEXT_BLACK,fontWeight:'normal'},buttonText2:{fontSize:13,color:'#A4D65E',fontWeight:'normal'}})}),1088,[1,339,153,2,442,700,733,755,756,711,1089,472,439,194,1091,624,696,781,444]); __d((function(g,r,i,a,m,e,d){var E=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PositionError=void 0;var I=E(r(d[1]));e.PositionError=Object.freeze({PERMISSION_DENIED:1,POSITION_UNAVAILABLE:2,TIMEOUT:3,PLAY_SERVICE_NOT_AVAILABLE:4,SETTINGS_NOT_SATISFIED:5,INTERNAL_ERROR:-1}),e.default=I.default}),1089,[1,1090]); @@ -1153,14 +1153,14 @@ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule", __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]);e.default=o.TurboModuleRegistry.getEnforcing('RNPermissions')}),1096,[2]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.platformVersion=void 0,e.uniq=function(n){return n.filter((function(o,t){return null!=o&&n.indexOf(o)===t}))};var n=r(d[0]);e.platformVersion='string'==typeof n.Platform.Version?parseInt(n.Platform.Version,10):n.Platform.Version}),1097,[2]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.checkLocationAccuracy=function(){return u.apply(this,arguments)},e.openPhotoPicker=function(){return p.apply(this,arguments)},e.requestLocationAccuracy=function(n){return c.apply(this,arguments)};var t=n(r(d[1])),o='Only supported by iOS 14 and above';function u(){return(u=(0,t.default)((function*(){throw new Error(o)}))).apply(this,arguments)}function c(){return(c=(0,t.default)((function*(n){throw new Error(o)}))).apply(this,arguments)}function p(){return(p=(0,t.default)((function*(){throw new Error(o)}))).apply(this,arguments)}}),1098,[1,339]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){(0,_r(d[18]).useNavigation)();var e=(0,l.useContext)(v.default),w=(0,l.useRef)(null),C=(0,l.useState)(!1),R=(0,i.default)(C,2),O=R[0],T=R[1],k=(0,l.useState)(!1),D=(0,i.default)(k,2),B=D[0],X=D[1],A=(0,l.useState)(!1),P=(0,i.default)(A,2),L=P[0],_=P[1],I=(0,l.useState)(!1),V=(0,i.default)(I,2),F=V[0],M=V[1],E=(0,l.useState)(!1),z=(0,i.default)(E,2),Y=z[0],W=z[1],H=(0,l.useState)(!1),N=(0,i.default)(H,2),G=N[0],q=N[1],U=(0,l.useState)(!1),K=(0,i.default)(U,2),$=K[0],J=K[1],Q=(0,l.useState)({latitude:0,longitude:0}),Z=(0,i.default)(Q,2),ee=Z[0],te=Z[1],ie=(0,l.useState)({}),le=(0,i.default)(ie,2),ne=le[0],re=le[1],oe=(0,l.useState)([]),se=(0,i.default)(oe,2),ae=se[0],de=se[1],ce=(0,l.useState)('\uc804\uccb4'),ue=(0,i.default)(ce,2),ge=ue[0],he=ue[1],fe=(0,l.useState)('\uc804\uccb4'),xe=(0,i.default)(fe,2),me=xe[0],ve=xe[1],je=(0,l.useState)('\uc804\uccb4'),ye=(0,i.default)(je,2),pe=ye[0],we=ye[1],Ce=(0,l.useState)('\uc804\uccb4'),Se=(0,i.default)(Ce,2),be=Se[0],Re=Se[1],Oe=(0,l.useState)('\uc804\uccb4'),Te=(0,i.default)(Oe,2),ke=Te[0],De=Te[1],Be=(0,l.useState)(!1),Xe=(0,i.default)(Be,2),Ae=Xe[0],Pe=Xe[1],Le=(0,l.useState)(!1),Ie=(0,i.default)(Le,2),Ve=Ie[0],Fe=Ie[1],Me=(0,l.useState)(''),Ee=(0,i.default)(Me,2),ze=Ee[0],Ye=(Ee[1],function(){W(!1)}),We=(function(){var e=(0,t.default)((function*(){if(0===ee.latitude){var e=_r(d[19]).PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION;try{var t=yield(0,_r(d[19]).request)(e);console.log(t)}catch(e){console.warn(e)}f.default.getCurrentPosition((function(e){console.log(e.coords.latitude,e.coords.longitude);var t=e.coords,i=t.latitude,l=t.longitude;te({latitude:i,longitude:l})}),(function(e){console.log(e.code,e.message)}),{enableHighAccuracy:!0,timeout:15e3,maximumAge:1e4})}else te({latitude:0,longitude:0})}));return function(){return e.apply(this,arguments)}})(),He=(0,l.useState)([]),Ne=(0,i.default)(He,2),Ge=Ne[0],qe=Ne[1],Ue=(function(){var i=(0,t.default)((function*(){try{var t={size:30};switch(Ae&&(t.discountForSkku=!0),Ve&&(t.like=!0),ae.length>0&&(t.categories=ae),ge){case'5.0\uc810':t.ratingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':t.ratingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':t.ratingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':t.ratingAvg=3.5}switch(be){case'5.0\uc810':t.naverRatingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':t.naverRatingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':t.naverRatingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':t.naverRatingAvg=3.5}switch(me){case'10\uac1c \uc774\uc0c1':t.reviewCount=10;break;case'30\uac1c \uc774\uc0c1':t.reviewCount=30;break;case'50\uac1c \uc774\uc0c1':t.reviewCount=50;break;case'100\uac1c \uc774\uc0c1':t.reviewCount=100}switch(ke){case'10\uac1c \uc774\uc0c1':t.naverReviewCount=10;break;case'30\uac1c \uc774\uc0c1':t.naverReviewCount=30;break;case'50\uac1c \uc774\uc0c1':t.naverReviewCount=50;break;case'100\uac1c \uc774\uc0c1':t.naverReviewCount=100}switch(pe){case'1\ub9cc\uc6d0 \ubbf8\ub9cc':t.priceMax=1e4;break;case'1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0':t.priceMin=1e4,t.priceMax=2e4;break;case'2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0':t.priceMin=2e4,t.priceMax=3e4;break;case'3\ub9cc\uc6d0 \uc774\uc0c1':t.priceMin=3e4}''!==ze&&(t.query=ze);var i=new URLSearchParams(t).toString(),l=yield x.default.get(`http://13.124.226.226/v1/restaurants?${i}`,{headers:{Authorization:`Bearer ${e.accessToken}`}});console.log('response:',l.data.data.restaurants.content[0]),qe(l.data.data.restaurants.content)}catch(e){s.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return i.apply(this,arguments)}})();return(0,l.useEffect)((function(){Ue()}),[ae,ge,me,pe,Ae,Ve,be,ke,ze]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.default,{title:'\uc9c0\ub3c4',isBackButton:!1}),(0,p.jsxs)(n.View,{style:b.entire,children:[(0,p.jsxs)(a.default,{ref:w,style:{flex:1,width:S},provider:a.PROVIDER_GOOGLE,initialRegion:{latitude:37.297861,longitude:126.971458,latitudeDelta:.005,longitudeDelta:.005},children:[Ge.map((function(e,t){return(0,p.jsx)(c.default,{data:e,onPress:function(){W(!0),re(e)}})})),0!==ee.latitude?(0,p.jsx)(a.Marker,{coordinate:{latitude:ee.latitude,longitude:ee.longitude},tracksViewChanges:!1}):null]}),(0,p.jsx)(n.View,{style:{position:'absolute',top:6,alignItems:'center'},children:(0,p.jsxs)(n.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{paddingTop:16},children:[(0,p.jsx)(n.View,{style:{width:16}}),(0,p.jsx)(r.default,{style:[O?b.filterButtonSelected:b.filterButton,,{backgroundColor:ae.length>0?_r(d[20]).COLOR_PRIMARY:O?'#D9D9D9':'white'}],onPress:function(){console.log('press \uce74\ud14c\uace0\ub9ac'),T(!0)},children:0==ae.length?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.shop,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\uce74\ud14c\uace0\ub9ac'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.shopColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:'\uce74\ud14c\uace0\ub9ac'})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[b.filterButton,{backgroundColor:Ae?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \uc131\ub300\uc0dd \ud560\uc778'),Pe(!Ae)},children:Ae?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.presentColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:'\uc131\ub300\uc0dd \ud560\uc778'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.persent,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\uc131\ub300\uc0dd \ud560\uc778'})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[b.filterButton,{backgroundColor:Ve?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \ucc1c'),Fe(!Ve)},children:Ve?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyHeartColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:'\ucc1c'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyHeart,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\ucc1c'})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[B?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==ge?_r(d[20]).COLOR_PRIMARY:B?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),X(!0)},children:'\uc804\uccb4'===ge?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\ud3c9\uc810'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:ge})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[G?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==be?_r(d[20]).COLOR_PRIMARY:G?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),q(!0)},children:'\uc804\uccb4'===be?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\ub124\uc774\ubc84 \ud3c9\uc810'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:be})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[L?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==me?_r(d[20]).COLOR_PRIMARY:L?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),_(!0)},children:'\uc804\uccb4'===me?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.reply,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\ub313\uae00 \uc218'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:me})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[$?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==ke?_r(d[20]).COLOR_PRIMARY:$?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub124\uc774\ubc84 \ub313\uae00\uc218'),J(!0)},children:'\uc804\uccb4'===ke?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.reply,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:ke})]})}),(0,p.jsx)(n.View,{style:{width:8}}),(0,p.jsx)(r.default,{style:[F?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==pe?_r(d[20]).COLOR_PRIMARY:F?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),M(!0)},children:'\uc804\uccb4'===pe?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.price,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterText,children:'\uac00\uaca9'})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.priceColor,width:"20",height:"20"}),(0,p.jsx)(n.Text,{style:b.filterTextActive,children:pe})]})}),(0,p.jsx)(n.View,{style:{width:16}})]})}),(0,p.jsx)(r.default,{style:[b.cornerButton,{left:16}],onPress:function(){w.current.animateCamera({heading:0})},children:(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.compass,width:"30",height:"30"})}),(0,p.jsx)(r.default,{style:[b.cornerButton,{right:16}],onPress:function(){console.log('press gps'),We()},children:(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.gps,width:"24",height:"24"})})]}),(0,p.jsx)(u.default,{isVisible:O,hasBackdrop:!0,backdropOpacity:0,onSwipeComplete:function(){return T(!1)},swipeDirection:'down',onBackdropPress:function(){return T(!1)},onBackButtonPress:function(){return T(!1)},onModalHide:function(){T(!1)},style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,p.jsxs)(n.View,{style:b.modalContent,children:[(0,p.jsxs)(n.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},children:[(0,p.jsx)(n.Text,{style:b.modalTitle,children:"\uce74\ud14c\uace0\ub9ac"}),(0,p.jsx)(r.default,{style:{padding:4},onPress:function(){console.log('\uc0c8\ub85c\uace0\uce68'),de([]),T(!1)},children:(0,p.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.refresh,width:"24",height:"24"})})]}),(0,p.jsx)(n.View,{style:{marginTop:12},children:(0,p.jsx)(y.default,{onPress:de,data:ae})})]})}),(0,p.jsx)(j.default,{visible:B,setVisible:X,title:'\ud3c9\uc810',value:ge,setValue:he,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,p.jsx)(j.default,{visible:G,setVisible:q,title:'\ub124\uc774\ubc84 \ud3c9\uc810',value:be,setValue:Re,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,p.jsx)(j.default,{visible:L,setVisible:_,title:'\ub313\uae00 \uc218',value:me,setValue:ve,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,p.jsx)(j.default,{visible:$,setVisible:J,title:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218',value:ke,setValue:De,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,p.jsx)(j.default,{visible:F,setVisible:M,title:'\uac00\uaca9',value:pe,setValue:we,valueList:['\uc804\uccb4','1\ub9cc\uc6d0 \ubbf8\ub9cc','1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0','2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0','3\ub9cc\uc6d0 \uc774\uc0c1']}),(0,p.jsx)(u.default,{isVisible:Y,hasBackdrop:!0,backdropOpacity:.5,onSwipeComplete:Ye,swipeDirection:'down',onBackdropPress:Ye,onBackButtonPress:Ye,onModalHide:Ye,style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,p.jsx)(n.View,{style:b.modalContent,children:(0,p.jsx)(h.default,{storeData:ne,index:1})})})]})};var t=e(_r(d[1])),i=e(_r(d[2])),l=C(_r(d[3])),n=_r(d[4]),r=e(_r(d[5])),o=e(_r(d[6])),s=e(_r(d[7])),a=C(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=e(_r(d[11])),f=e(_r(d[12])),x=C(_r(d[13])),v=e(_r(d[14])),j=e(_r(d[15])),y=e(_r(d[16])),p=_r(d[17]);function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(w=function(e){return e?i:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=w(t);if(i&&i.has(e))return i.get(e);var l={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var o=n?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(l,r,o):l[r]=e[r]}return l.default=e,i&&i.set(e,l),l}var S=n.Dimensions.get('window').width;var b=n.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[20]).COLOR_BACKGROUND,justifyContent:'center',alignItems:'center'},triangle:{width:0,height:0,borderStyle:'solid',borderRightWidth:8,borderTopWidth:8,borderRightColor:'transparent',borderTopColor:'white'},dart:{padding:3,alignItems:'center',backgroundColor:_r(d[20]).COLOR_WHITE,borderRadius:8,borderBottomLeftRadius:0},dartText:{fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK},textInput:{marginLeft:10,flex:1,fontSize:13,color:'#888888',padding:0,fontFamily:'NanumSquareRoundB'},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,elevation:4,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterButtonSelected:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,elevation:4,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterText:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundEB'},filterTextActive:{marginLeft:1,fontSize:11,color:'#FFFFFF',fontFamily:'NanumSquareRoundEB'},filterTextFade:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_GRAY,fontWeight:'bold'},cornerButton:{position:'absolute',bottom:16,backgroundColor:'white',borderRadius:15,height:30,width:30,elevation:4,justifyContent:'center',alignItems:'center'},modalContent:{backgroundColor:'white',padding:16,borderRadius:16,borderBottomLeftRadius:0,borderBottomRightRadius:0},modalTitle:{fontSize:20,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'700'},categoryModalButton:{borderWidth:.5,borderColor:'#D9D9D9',alignItems:'center',justifyContent:'center',paddingVertical:8,flex:1},categoryModalButtonSelected:{borderWidth:.5,borderColor:'#D9D9D9',backgroundColor:'#D9D9D9',alignItems:'center',justifyContent:'center',paddingVertical:8,flex:1},categoryModalButtonText:{fontSize:16,color:_r(d[20]).COLOR_TEXT60GRAY},categoryModalButtonTextSelected:{fontSize:16,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'bold'},categoryLine:{flexDirection:'row',justifyContent:'space-evenly'}})}),1099,[1,339,26,153,2,442,700,445,733,755,756,711,1089,472,439,1088,1087,194,524,1091,444,624,696]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[14]).useNavigation)(),v=(0,n.useContext)(f.default),x=(0,n.useState)([]),w=(0,r.default)(x,2),R=w[0],j=w[1],I=(0,n.useState)(!0),O=(0,r.default)(I,2),S=O[0],C=O[1],T=(0,n.useState)([]),_=(0,r.default)(T,2),k=_[0],P=_[1],B=(0,n.useState)(''),M=(0,r.default)(B,2),b=M[0],z=M[1],D=(0,n.useState)(''),E=(0,r.default)(D,2),L=E[0],A=E[1],F=(0,n.useState)(0),U=(0,r.default)(F,2),$=U[0],N=U[1],q=(0,n.useState)(0),G=(0,r.default)(q,2),V=G[0],W=G[1],X=(0,n.useState)(!0),Y=(0,r.default)(X,2),K=Y[0],H=Y[1],J=(0,n.useState)(!0),Q=(0,r.default)(J,2),Z=Q[0],ee=Q[1],te=(0,n.useState)(''),ae=(0,r.default)(te,2),re=ae[0],ne=ae[1],oe=(function(){var e=(0,a.default)((function*(){try{var e=yield h.default.getItem('userId');console.log('User ID:',e);var t=yield c.default.get(`http://13.124.226.226/v1/users/${e}`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('User Info:',t.data),z(t.data.data.userDto.nickname),A(t.data.data.userDto.profileImageUrl),ne(t.data.data.userDto.email)}catch(e){u.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),ie=(function(){var e=(0,a.default)((function*(e){try{var a=yield c.default.get(`http://13.124.226.226/v1/restaurants/my-reviews?page=${e}&size=5`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('My Reviews:',a.data);var r=a.data.data.reviews.content.map((function(e){return{id:e.id,image:e.imageUrls[0],score:e.rating,reviewCount:e.viewCount,heartCount:e.likeCount,firstReview:{reviewer:e.username,body:e.content},restaurantId:e.restaurantId}}));j(0===e?r:function(e){return[].concat((0,t.default)(e),(0,t.default)(r))}),H(a.data.data.reviews.content.length>0)}catch(e){console.error('Failed to fetch reviews:',e)}finally{C(!1)}}));return function(t){return e.apply(this,arguments)}})(),ue=(function(){var e=(0,a.default)((function*(e){try{var a=yield c.default.get(`http://13.124.226.226/v1/restaurants/my-like?page=${e}&size=20`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('Liked Stores Response:',a.data.data.restaurants.content);var r=a.data.data.restaurants.content.map((function(e){return{name:e.name,image:e.representativeImageUrl,id:e.id}}));P(0===e?r:function(e){return[].concat((0,t.default)(e),(0,t.default)(r))}),ee(!a.data.data.restaurants.last)}catch(e){console.error('Failed to fetch liked stores:',e)}}));return function(t){return e.apply(this,arguments)}})();(0,_r(d[14]).useFocusEffect)(n.default.useCallback((function(){oe(),N(0),W(0),ie(0),ue(0)}),[])),(0,n.useEffect)((function(){ie($)}),[v.accessToken,$]),(0,n.useEffect)((function(){ue(V)}),[v.accessToken,V]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.default,{title:'\ub0b4 \ud504\ub85c\ud544',isBackButton:!1}),(0,y.jsxs)(o.ScrollView,{contentContainerStyle:p.entire,children:[''!=L?(0,y.jsx)(o.Image,{style:[p.myPageItem],resizeMode:"cover",source:{uri:L}}):(0,y.jsx)(o.Image,{style:[p.myPageItemLayout],resizeMode:"cover",source:_r(d[15])}),(0,y.jsxs)(o.TouchableOpacity,{style:p.text6Position,onPress:function(){e.navigate('UserDataChange',{data:L})},children:[(0,y.jsx)(o.Text,{style:p.text6,children:b}),(0,y.jsx)(o.Image,{style:p.arrowIcon,resizeMode:"contain",source:_r(d[16])})]}),(0,y.jsxs)(o.View,{style:{flexDirection:'row',justifyContent:'center',alignItems:'center'},children:[(0,y.jsx)(o.Text,{style:p.text7,children:"\uc774\uba54\uc77c \uc8fc\uc18c"}),(0,y.jsxs)(o.Text,{style:p.text8,children:[" ",re]})]}),(0,y.jsx)(l.default,{passData:k,onEndReached:function(){Z&&W((function(e){return e+1}))},hasMore:Z}),S?(0,y.jsx)(o.ActivityIndicator,{size:"large",color:_r(d[17]).COLOR_PRIMARY}):(0,y.jsx)(s.default,{myReviews:R,onEndReached:function(){K&&N((function(e){return e+1}))},hasMore:K}),(0,y.jsx)(o.View,{style:{height:100}})]})]})};var t=e(_r(d[1])),a=e(_r(d[2])),r=e(_r(d[3])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,a&&a.set(e,r),r})(_r(d[4])),o=_r(d[5]),i=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),h=e(_r(d[12])),y=_r(d[13]);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(v=function(e){return e?a:t})(e)}var p=o.StyleSheet.create({entire:{backgroundColor:_r(d[17]).COLOR_HOME_BACKGROUND,alignItems:'center',flex:1},myPageItem:{width:100,height:100,marginTop:20,marginBottom:10,borderRadius:50},myPageItemLayout:{width:100,height:100,marginTop:20,marginBottom:10,borderRadius:15},text6:{fontSize:20,color:_r(d[17]).COLOR_TEXT_BLACK,marginLeft:20,marginRight:5,fontFamily:'NanumSquareRoundB'},text7:{fontSize:12,color:_r(d[17]).COLOR_TEXT70GRAY,marginRight:6,fontFamily:'NanumSquareRoundB'},text8:{fontSize:12,color:_r(d[17]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB'},text6Position:{flexDirection:'row',alignItems:'center',marginBottom:10},arrowIcon:{width:20,height:20}})}),1100,[1,34,339,26,153,2,700,445,1101,1103,472,439,517,194,524,1104,1105,444]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){(0,_r(d[18]).useNavigation)();var e=(0,n.useContext)(v.default),p=(0,n.useRef)(null),C=(0,n.useState)(!1),R=(0,i.default)(C,2),O=R[0],T=R[1],k=(0,n.useState)(!1),D=(0,i.default)(k,2),B=D[0],X=D[1],A=(0,n.useState)(!1),P=(0,i.default)(A,2),L=P[0],_=P[1],I=(0,n.useState)(!1),V=(0,i.default)(I,2),F=V[0],M=V[1],E=(0,n.useState)(!1),z=(0,i.default)(E,2),Y=z[0],W=z[1],H=(0,n.useState)(!1),N=(0,i.default)(H,2),G=N[0],q=N[1],U=(0,n.useState)(!1),K=(0,i.default)(U,2),$=K[0],J=K[1],Q=(0,n.useState)({latitude:0,longitude:0}),Z=(0,i.default)(Q,2),ee=Z[0],te=Z[1],ie=(0,n.useState)({}),ne=(0,i.default)(ie,2),le=ne[0],re=ne[1],oe=(0,n.useState)([]),se=(0,i.default)(oe,2),ae=se[0],de=se[1],ce=(0,n.useState)('\uc804\uccb4'),ue=(0,i.default)(ce,2),ge=ue[0],fe=ue[1],he=(0,n.useState)('\uc804\uccb4'),xe=(0,i.default)(he,2),me=xe[0],ve=xe[1],je=(0,n.useState)('\uc804\uccb4'),ye=(0,i.default)(je,2),we=ye[0],pe=ye[1],Ce=(0,n.useState)('\uc804\uccb4'),Se=(0,i.default)(Ce,2),be=Se[0],Re=Se[1],Oe=(0,n.useState)('\uc804\uccb4'),Te=(0,i.default)(Oe,2),ke=Te[0],De=Te[1],Be=(0,n.useState)(!1),Xe=(0,i.default)(Be,2),Ae=Xe[0],Pe=Xe[1],Le=(0,n.useState)(!1),Ie=(0,i.default)(Le,2),Ve=Ie[0],Fe=Ie[1],Me=(0,n.useState)(''),Ee=(0,i.default)(Me,2),ze=Ee[0],Ye=(Ee[1],function(){W(!1)}),We=(function(){var e=(0,t.default)((function*(){if(0===ee.latitude){var e=_r(d[19]).PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION;try{var t=yield(0,_r(d[19]).request)(e);console.log(t)}catch(e){console.warn(e)}h.default.getCurrentPosition((function(e){console.log(e.coords.latitude,e.coords.longitude);var t=e.coords,i=t.latitude,n=t.longitude;te({latitude:i,longitude:n})}),(function(e){console.log(e.code,e.message)}),{enableHighAccuracy:!0,timeout:15e3,maximumAge:1e4})}else te({latitude:0,longitude:0})}));return function(){return e.apply(this,arguments)}})(),He=(0,n.useState)([]),Ne=(0,i.default)(He,2),Ge=Ne[0],qe=Ne[1],Ue=(function(){var i=(0,t.default)((function*(){try{var t={size:30};switch(Ae&&(t.discountForSkku=!0),Ve&&(t.like=!0),ae.length>0&&(t.categories=ae),ge){case'5.0\uc810':t.ratingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':t.ratingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':t.ratingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':t.ratingAvg=3.5}switch(be){case'5.0\uc810':t.naverRatingAvg=5;break;case'4.5\uc810 \uc774\uc0c1':t.naverRatingAvg=4.5;break;case'4.0\uc810 \uc774\uc0c1':t.naverRatingAvg=4;break;case'3.5\uc810 \uc774\uc0c1':t.naverRatingAvg=3.5}switch(me){case'10\uac1c \uc774\uc0c1':t.reviewCount=10;break;case'30\uac1c \uc774\uc0c1':t.reviewCount=30;break;case'50\uac1c \uc774\uc0c1':t.reviewCount=50;break;case'100\uac1c \uc774\uc0c1':t.reviewCount=100}switch(ke){case'10\uac1c \uc774\uc0c1':t.naverReviewCount=10;break;case'30\uac1c \uc774\uc0c1':t.naverReviewCount=30;break;case'50\uac1c \uc774\uc0c1':t.naverReviewCount=50;break;case'100\uac1c \uc774\uc0c1':t.naverReviewCount=100}switch(we){case'1\ub9cc\uc6d0 \ubbf8\ub9cc':t.priceMax=1e4;break;case'1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0':t.priceMin=1e4,t.priceMax=2e4;break;case'2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0':t.priceMin=2e4,t.priceMax=3e4;break;case'3\ub9cc\uc6d0 \uc774\uc0c1':t.priceMin=3e4}''!==ze&&(t.query=ze);var i=new URLSearchParams(t).toString(),n=yield x.default.get(`undefined/v1/restaurants?${i}`,{headers:{Authorization:`Bearer ${e.accessToken}`}});console.log('response:',n.data.data.restaurants.content[0]),qe(n.data.data.restaurants.content)}catch(e){s.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return i.apply(this,arguments)}})();return(0,n.useEffect)((function(){Ue()}),[ae,ge,me,we,Ae,Ve,be,ke,ze]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o.default,{title:'\uc9c0\ub3c4',isBackButton:!1}),(0,w.jsxs)(l.View,{style:b.entire,children:[(0,w.jsxs)(a.default,{ref:p,style:{flex:1,width:S},provider:a.PROVIDER_GOOGLE,initialRegion:{latitude:37.297861,longitude:126.971458,latitudeDelta:.005,longitudeDelta:.005},children:[Ge.map((function(e,t){return(0,w.jsx)(c.default,{data:e,onPress:function(){W(!0),re(e)}})})),0!==ee.latitude?(0,w.jsx)(a.Marker,{coordinate:{latitude:ee.latitude,longitude:ee.longitude},tracksViewChanges:!1}):null]}),(0,w.jsx)(l.View,{style:{position:'absolute',top:6,alignItems:'center'},children:(0,w.jsxs)(l.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:{paddingTop:16},children:[(0,w.jsx)(l.View,{style:{width:16}}),(0,w.jsx)(r.default,{style:[O?b.filterButtonSelected:b.filterButton,,{backgroundColor:ae.length>0?_r(d[20]).COLOR_PRIMARY:O?'#D9D9D9':'white'}],onPress:function(){console.log('press \uce74\ud14c\uace0\ub9ac'),T(!0)},children:0==ae.length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.shop,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\uce74\ud14c\uace0\ub9ac'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.shopColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:'\uce74\ud14c\uace0\ub9ac'})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[b.filterButton,{backgroundColor:Ae?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \uc131\ub300\uc0dd \ud560\uc778'),Pe(!Ae)},children:Ae?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.presentColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:'\uc131\ub300\uc0dd \ud560\uc778'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.persent,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\uc131\ub300\uc0dd \ud560\uc778'})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[b.filterButton,{backgroundColor:Ve?_r(d[20]).COLOR_PRIMARY:'white'}],onPress:function(){console.log('press \ucc1c'),Fe(!Ve)},children:Ve?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyHeartColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:'\ucc1c'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyHeart,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\ucc1c'})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[B?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==ge?_r(d[20]).COLOR_PRIMARY:B?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),X(!0)},children:'\uc804\uccb4'===ge?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:ge})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[G?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==be?_r(d[20]).COLOR_PRIMARY:G?'#D9D9D9':'white'}],onPress:function(){console.log('press \ud3c9\uc810'),q(!0)},children:'\uc804\uccb4'===be?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStar,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\ub124\uc774\ubc84 \ud3c9\uc810'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.emptyStarColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:be})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[L?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==me?_r(d[20]).COLOR_PRIMARY:L?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),_(!0)},children:'\uc804\uccb4'===me?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\ub313\uae00 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:me})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[$?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==ke?_r(d[20]).COLOR_PRIMARY:$?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub124\uc774\ubc84 \ub313\uae00\uc218'),J(!0)},children:'\uc804\uccb4'===ke?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.reply,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.replyColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:ke})]})}),(0,w.jsx)(l.View,{style:{width:8}}),(0,w.jsx)(r.default,{style:[F?b.filterButtonSelected:b.filterButton,{backgroundColor:'\uc804\uccb4'!==we?_r(d[20]).COLOR_PRIMARY:F?'#D9D9D9':'white'}],onPress:function(){console.log('press \ub313\uae00\uc218'),M(!0)},children:'\uc804\uccb4'===we?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.price,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterText,children:'\uac00\uaca9'})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.priceColor,width:"20",height:"20"}),(0,w.jsx)(l.Text,{style:b.filterTextActive,children:we})]})}),(0,w.jsx)(l.View,{style:{width:16}})]})}),(0,w.jsx)(r.default,{style:[b.cornerButton,{left:16}],onPress:function(){p.current.animateCamera({heading:0})},children:(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.compass,width:"30",height:"30"})}),(0,w.jsx)(r.default,{style:[b.cornerButton,{right:16}],onPress:function(){console.log('press gps'),We()},children:(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.gps,width:"24",height:"24"})})]}),(0,w.jsx)(u.default,{isVisible:O,hasBackdrop:!0,backdropOpacity:0,onSwipeComplete:function(){return T(!1)},swipeDirection:'down',onBackdropPress:function(){return T(!1)},onBackButtonPress:function(){return T(!1)},onModalHide:function(){T(!1)},style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,w.jsxs)(l.View,{style:b.modalContent,children:[(0,w.jsxs)(l.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},children:[(0,w.jsx)(l.Text,{style:b.modalTitle,children:"\uce74\ud14c\uace0\ub9ac"}),(0,w.jsx)(r.default,{style:{padding:4},onPress:function(){console.log('\uc0c8\ub85c\uace0\uce68'),de([]),T(!1)},children:(0,w.jsx)(_r(d[21]).SvgXml,{xml:_r(d[22]).svgXml.icon.refresh,width:"24",height:"24"})})]}),(0,w.jsx)(l.View,{style:{marginTop:12},children:(0,w.jsx)(y.default,{onPress:de,data:ae})})]})}),(0,w.jsx)(j.default,{visible:B,setVisible:X,title:'\ud3c9\uc810',value:ge,setValue:fe,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(j.default,{visible:G,setVisible:q,title:'\ub124\uc774\ubc84 \ud3c9\uc810',value:be,setValue:Re,valueList:['\uc804\uccb4','5.0\uc810','4.5\uc810 \uc774\uc0c1','4.0\uc810 \uc774\uc0c1','3.5\uc810 \uc774\uc0c1']}),(0,w.jsx)(j.default,{visible:L,setVisible:_,title:'\ub313\uae00 \uc218',value:me,setValue:ve,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(j.default,{visible:$,setVisible:J,title:'\ub124\uc774\ubc84 \ub9ac\ubdf0 \uc218',value:ke,setValue:De,valueList:['\uc804\uccb4','10\uac1c \uc774\uc0c1','30\uac1c \uc774\uc0c1','50\uac1c \uc774\uc0c1','100\uac1c \uc774\uc0c1']}),(0,w.jsx)(j.default,{visible:F,setVisible:M,title:'\uac00\uaca9',value:we,setValue:pe,valueList:['\uc804\uccb4','1\ub9cc\uc6d0 \ubbf8\ub9cc','1\ub9cc\uc6d0 ~ 2\ub9cc\uc6d0','2\ub9cc\uc6d0 ~ 3\ub9cc\uc6d0','3\ub9cc\uc6d0 \uc774\uc0c1']}),(0,w.jsx)(u.default,{isVisible:Y,hasBackdrop:!0,backdropOpacity:.5,onSwipeComplete:Ye,swipeDirection:'down',onBackdropPress:Ye,onBackButtonPress:Ye,onModalHide:Ye,style:{justifyContent:'flex-end',margin:0},animationIn:"slideInUp",animationOut:"slideOutDown",children:(0,w.jsx)(l.View,{style:b.modalContent,children:(0,w.jsx)(f.default,{storeData:le,index:1})})})]})};var t=e(_r(d[1])),i=e(_r(d[2])),n=C(_r(d[3])),l=_r(d[4]),r=e(_r(d[5])),o=e(_r(d[6])),s=e(_r(d[7])),a=C(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),f=e(_r(d[11])),h=e(_r(d[12])),x=C(_r(d[13])),v=e(_r(d[14])),j=e(_r(d[15])),y=e(_r(d[16])),w=_r(d[17]);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(p=function(e){return e?i:t})(e)}function C(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=p(t);if(i&&i.has(e))return i.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var o=l?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}return n.default=e,i&&i.set(e,n),n}var S=l.Dimensions.get('window').width;var b=l.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[20]).COLOR_BACKGROUND,justifyContent:'center',alignItems:'center'},triangle:{width:0,height:0,borderStyle:'solid',borderRightWidth:8,borderTopWidth:8,borderRightColor:'transparent',borderTopColor:'white'},dart:{padding:3,alignItems:'center',backgroundColor:_r(d[20]).COLOR_WHITE,borderRadius:8,borderBottomLeftRadius:0},dartText:{fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK},textInput:{marginLeft:10,flex:1,fontSize:13,color:'#888888',padding:0,fontFamily:'NanumSquareRoundB'},filterButton:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,elevation:4,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterButtonSelected:{flexDirection:'row',justifyContent:'center',alignItems:'center',padding:5,paddingHorizontal:7,borderRadius:15,elevation:4,borderWidth:1.5,borderColor:_r(d[20]).COLOR_PRIMARY},filterText:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundEB'},filterTextActive:{marginLeft:1,fontSize:11,color:'#FFFFFF',fontFamily:'NanumSquareRoundEB'},filterTextFade:{marginLeft:1,fontSize:12,color:_r(d[20]).COLOR_GRAY,fontWeight:'bold'},cornerButton:{position:'absolute',bottom:16,backgroundColor:'white',borderRadius:15,height:30,width:30,elevation:4,justifyContent:'center',alignItems:'center'},modalContent:{backgroundColor:'white',padding:16,borderRadius:16,borderBottomLeftRadius:0,borderBottomRightRadius:0},modalTitle:{fontSize:20,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'700'},categoryModalButton:{borderWidth:.5,borderColor:'#D9D9D9',alignItems:'center',justifyContent:'center',paddingVertical:8,flex:1},categoryModalButtonSelected:{borderWidth:.5,borderColor:'#D9D9D9',backgroundColor:'#D9D9D9',alignItems:'center',justifyContent:'center',paddingVertical:8,flex:1},categoryModalButtonText:{fontSize:16,color:_r(d[20]).COLOR_TEXT60GRAY},categoryModalButtonTextSelected:{fontSize:16,color:_r(d[20]).COLOR_TEXT70GRAY,fontWeight:'bold'},categoryLine:{flexDirection:'row',justifyContent:'space-evenly'}})}),1099,[1,339,26,153,2,442,700,445,733,755,756,711,1089,472,439,1088,1087,194,524,1091,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,_r(d[14]).useNavigation)(),v=(0,r.useContext)(f.default),x=(0,r.useState)([]),w=(0,n.default)(x,2),R=w[0],j=w[1],I=(0,r.useState)(!0),O=(0,n.default)(I,2),S=O[0],C=O[1],T=(0,r.useState)([]),_=(0,n.default)(T,2),k=_[0],P=_[1],B=(0,r.useState)(''),M=(0,n.default)(B,2),b=M[0],z=M[1],D=(0,r.useState)(''),E=(0,n.default)(D,2),L=E[0],A=E[1],F=(0,r.useState)(0),U=(0,n.default)(F,2),$=U[0],N=U[1],q=(0,r.useState)(0),G=(0,n.default)(q,2),V=G[0],W=G[1],X=(0,r.useState)(!0),Y=(0,n.default)(X,2),K=Y[0],H=Y[1],J=(0,r.useState)(!0),Q=(0,n.default)(J,2),Z=Q[0],ee=Q[1],te=(0,r.useState)(''),ae=(0,n.default)(te,2),ne=ae[0],re=ae[1],oe=(function(){var e=(0,a.default)((function*(){try{var e=yield y.default.getItem('userId');console.log('User ID:',e);var t=yield c.default.get(`undefined/v1/users/${e}`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('User Info:',t.data),z(t.data.data.userDto.nickname),A(t.data.data.userDto.profileImageUrl),re(t.data.data.userDto.email)}catch(e){u.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),ie=(function(){var e=(0,a.default)((function*(e){try{var a=yield c.default.get(`undefined/v1/restaurants/my-reviews?page=${e}&size=5`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('My Reviews:',a.data);var n=a.data.data.reviews.content.map((function(e){return{id:e.id,image:e.imageUrls[0],score:e.rating,reviewCount:e.viewCount,heartCount:e.likeCount,firstReview:{reviewer:e.username,body:e.content},restaurantId:e.restaurantId}}));j(0===e?n:function(e){return[].concat((0,t.default)(e),(0,t.default)(n))}),H(a.data.data.reviews.content.length>0)}catch(e){console.error('Failed to fetch reviews:',e)}finally{C(!1)}}));return function(t){return e.apply(this,arguments)}})(),ue=(function(){var e=(0,a.default)((function*(e){try{var a=yield c.default.get(`undefined/v1/restaurants/my-like?page=${e}&size=20`,{headers:{Authorization:`Bearer ${v.accessToken}`}});console.log('Liked Stores Response:',a.data.data.restaurants.content);var n=a.data.data.restaurants.content.map((function(e){return{name:e.name,image:e.representativeImageUrl,id:e.id}}));P(0===e?n:function(e){return[].concat((0,t.default)(e),(0,t.default)(n))}),ee(!a.data.data.restaurants.last)}catch(e){console.error('Failed to fetch liked stores:',e)}}));return function(t){return e.apply(this,arguments)}})();(0,_r(d[14]).useFocusEffect)(r.default.useCallback((function(){oe(),N(0),W(0),ie(0),ue(0)}),[])),(0,r.useEffect)((function(){ie($)}),[v.accessToken,$]),(0,r.useEffect)((function(){ue(V)}),[v.accessToken,V]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i.default,{title:'\ub0b4 \ud504\ub85c\ud544',isBackButton:!1}),(0,h.jsxs)(o.ScrollView,{contentContainerStyle:p.entire,children:[''!=L?(0,h.jsx)(o.Image,{style:[p.myPageItem],resizeMode:"cover",source:{uri:L}}):(0,h.jsx)(o.Image,{style:[p.myPageItemLayout],resizeMode:"cover",source:_r(d[15])}),(0,h.jsxs)(o.TouchableOpacity,{style:p.text6Position,onPress:function(){e.navigate('UserDataChange',{data:L})},children:[(0,h.jsx)(o.Text,{style:p.text6,children:b}),(0,h.jsx)(o.Image,{style:p.arrowIcon,resizeMode:"contain",source:_r(d[16])})]}),(0,h.jsxs)(o.View,{style:{flexDirection:'row',justifyContent:'center',alignItems:'center'},children:[(0,h.jsx)(o.Text,{style:p.text7,children:"\uc774\uba54\uc77c \uc8fc\uc18c"}),(0,h.jsxs)(o.Text,{style:p.text8,children:[" ",ne]})]}),(0,h.jsx)(l.default,{passData:k,onEndReached:function(){Z&&W((function(e){return e+1}))},hasMore:Z}),S?(0,h.jsx)(o.ActivityIndicator,{size:"large",color:_r(d[17]).COLOR_PRIMARY}):(0,h.jsx)(s.default,{myReviews:R,onEndReached:function(){K&&N((function(e){return e+1}))},hasMore:K}),(0,h.jsx)(o.View,{style:{height:100}})]})]})};var t=e(_r(d[1])),a=e(_r(d[2])),n=e(_r(d[3])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,a&&a.set(e,n),n})(_r(d[4])),o=_r(d[5]),i=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),y=e(_r(d[12])),h=_r(d[13]);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(v=function(e){return e?a:t})(e)}var p=o.StyleSheet.create({entire:{backgroundColor:_r(d[17]).COLOR_HOME_BACKGROUND,alignItems:'center',flex:1},myPageItem:{width:100,height:100,marginTop:20,marginBottom:10,borderRadius:50},myPageItemLayout:{width:100,height:100,marginTop:20,marginBottom:10,borderRadius:15},text6:{fontSize:20,color:_r(d[17]).COLOR_TEXT_BLACK,marginLeft:20,marginRight:5,fontFamily:'NanumSquareRoundB'},text7:{fontSize:12,color:_r(d[17]).COLOR_TEXT70GRAY,marginRight:6,fontFamily:'NanumSquareRoundB'},text8:{fontSize:12,color:_r(d[17]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB'},text6Position:{flexDirection:'row',alignItems:'center',marginBottom:10},arrowIcon:{width:20,height:20}})}),1100,[1,34,339,26,153,2,700,445,1101,1103,472,439,517,194,524,1104,1105,444]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){(0,_r(d[7]).useNavigation)(),(0,n.useContext)(o.default);var l=(0,n.useRef)(),u=e.myReviews,c=e.onEndReached,f=e.hasMore,h=(0,n.useState)(0),w=(0,t.default)(h,2),v=w[0],y=w[1],p=Array.from({length:u.length},(function(e,t){return(0,a.jsx)(r.View,{style:{width:4,height:4,borderRadius:2,marginHorizontal:3.5,backgroundColor:t===v?_r(d[8]).COLOR_PRIMARY:'#D9D9D9'}},t.toString())}));return(0,a.jsx)(a.Fragment,{children:0===u.length?null:(0,a.jsxs)(r.View,{style:s.myReview,children:[(0,a.jsx)(r.Text,{style:s.myReviewTitle,children:"\ub0b4\uac00 \uc791\uc131\ud55c \ub9ac\ubdf0"}),(0,a.jsx)(r.ScrollView,{showsVerticalScrollIndicator:!1,showsHorizontalScrollIndicator:!1,style:{marginTop:10},horizontal:!0,pagingEnabled:!0,onScroll:function(e){var t=e.nativeEvent.contentOffset.x,n=e.nativeEvent.layoutMeasurement.width,r=Math.floor(t/n+.5);y(r),r===u.length-1&&f&&c()},scrollEventThrottle:16,scrollEnabled:u.length>1,ref:l,children:u.map((function(e,t){return(0,a.jsx)(i.default,{storeData:e,index:t},t.toString())}))}),(0,a.jsx)(r.View,{style:{flexDirection:'row',justifyContent:'center',marginTop:8},children:p})]})})};var t=e(_r(d[1])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[2])),r=_r(d[3]),o=e(_r(d[4])),i=e(_r(d[5])),a=_r(d[6]);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=r.Dimensions.get('window').width;var s=r.StyleSheet.create({myReview:{marginTop:15,width:u-32,padding:12,paddingHorizontal:10,backgroundColor:_r(d[8]).COLOR_WHITE,borderRadius:10,shadowOffset:{width:0,height:4},shadowOpacity:.25,shadowRadius:4,elevation:4,height:200},myReviewTitle:{fontSize:20,color:_r(d[8]).COLOR_PRIMARY,fontFamily:'NIXGONFONTS M 2.0'},noReviewText:{marginTop:20,fontSize:16,color:_r(d[8]).COLOR_TEXT70GRAY,textAlign:'center'}})}),1101,[1,26,153,2,439,1102,194,524,444]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var s=(0,_r(d[9]).useNavigation)(),f=(0,n.useContext)(i.default),h=e.storeData,v=e.index,x=(0,n.useState)([]),y=(0,r.default)(x,2),w=y[0],R=y[1],O=(0,n.useState)(0),S=(0,r.default)(O,2),j=S[0],T=S[1],p=(0,n.useState)(0),C=(0,r.default)(p,2),_=C[0],b=C[1],L=(function(){var e=(0,t.default)((function*(){console.log('Id: ',h.restaurantId);try{var e=yield o.default.get(`http://13.124.226.226/v1/restaurants/${h.restaurantId}`,{headers:{Authorization:`Bearer ${f.accessToken}`}});console.log('Restaurant heart:',e.data.data.restaurant),R(e.data.data.restaurant),b(e.data.data.restaurant.ratingAvg),T(e.data.data.restaurant.naverRatingAvg)}catch(e){console.error('Error fetching restaurant details:',e)}}));return function(){return e.apply(this,arguments)}})();return(0,n.useEffect)((function(){L()}),[]),(0,l.jsx)(a.Pressable,{style:{},onPress:function(){s.navigate('StoreDetail',{data:w})},children:(0,l.jsxs)(a.View,{style:{flexDirection:'row'},children:[(0,l.jsxs)(a.View,{style:c.imageContainer,children:[(0,l.jsx)(a.View,{style:{position:'absolute',width:u/4,height:u/4,backgroundColor:_r(d[10]).COLOR_BACKGROUND,borderRadius:10,justifyContent:'center',alignItems:'center',borderWidth:.5},children:(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.noImage,width:"100",height:"100"})}),h.image?(0,l.jsx)(a.Image,{resizeMode:"cover",style:c.image,source:{uri:h.image||'https://via.placeholder.com/150'}}):(0,l.jsx)(a.Image,{resizeMode:"cover",style:c.image,source:{uri:w.representativeImageUrl}})]}),(0,l.jsxs)(a.View,{style:{flex:1,marginLeft:12},children:[(0,l.jsx)(a.Text,{style:c.storeName,numberOfLines:1,children:w.name}),(0,l.jsxs)(a.View,{style:{flexDirection:'row',alignItems:'center',marginVertical:2},children:[(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.star,width:"15",height:"15",style:{}}),(0,l.jsxs)(a.Text,{style:c.reviewText,children:[_.toFixed(1)," (",w.reviewCount,")"]}),(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.heart,width:"15",height:"15",style:{marginLeft:7}}),(0,l.jsx)(a.Text,{style:c.heartText,children:w.likeCount}),(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.naver,width:15,height:15,style:{marginLeft:10}}),(0,l.jsx)(a.Text,{style:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:3},children:j.toFixed(1)+' ('+w.naverReviewCount+')'})]}),(0,l.jsx)(a.Text,{style:c.reviewerName,children:h.firstReview.reviewer+'\ub2d8'}),(0,l.jsx)(a.Text,{numberOfLines:4,style:{fontSize:11,color:_r(d[10]).COLOR_TEXT60GRAY,fontFamily:'NanumSquareRoundR',width:245},children:h.firstReview.body})]})]})},v.toString())};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),a=_r(d[4]),i=(e(_r(d[5])),e(_r(d[6]))),o=e(_r(d[7])),l=_r(d[8]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=a.Dimensions.get('window').width;var c=a.StyleSheet.create({imageContainer:{width:u/4,height:u/4,borderWidth:1,borderColor:_r(d[10]).COLOR_TEXT70GRAY,borderRadius:10,overflow:'hidden',justifyContent:'center',alignItems:'center',backgroundColor:'#f0f0f0'},image:{width:u/4,height:u/4},storeName:{width:245,fontSize:15,color:_r(d[10]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundR',alignSelf:'flex-start'},reviewText:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:7},heartText:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:7},reviewerName:{fontSize:12,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',marginVertical:6,marginBottom:10}})}),1102,[1,339,26,153,2,701,439,472,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var s=(0,_r(d[9]).useNavigation)(),c=(0,n.useContext)(i.default),h=e.storeData,v=e.index,x=(0,n.useState)([]),y=(0,r.default)(x,2),w=y[0],R=y[1],O=(0,n.useState)(0),S=(0,r.default)(O,2),j=S[0],T=S[1],p=(0,n.useState)(0),C=(0,r.default)(p,2),_=C[0],b=C[1],L=(function(){var e=(0,t.default)((function*(){console.log('Id: ',h.restaurantId);try{var e=yield o.default.get(`undefined/v1/restaurants/${h.restaurantId}`,{headers:{Authorization:`Bearer ${c.accessToken}`}});console.log('Restaurant heart:',e.data.data.restaurant),R(e.data.data.restaurant),b(e.data.data.restaurant.ratingAvg),T(e.data.data.restaurant.naverRatingAvg)}catch(e){console.error('Error fetching restaurant details:',e)}}));return function(){return e.apply(this,arguments)}})();return(0,n.useEffect)((function(){L()}),[]),(0,l.jsx)(a.Pressable,{style:{},onPress:function(){s.navigate('StoreDetail',{data:w})},children:(0,l.jsxs)(a.View,{style:{flexDirection:'row'},children:[(0,l.jsxs)(a.View,{style:f.imageContainer,children:[(0,l.jsx)(a.View,{style:{position:'absolute',width:u/4,height:u/4,backgroundColor:_r(d[10]).COLOR_BACKGROUND,borderRadius:10,justifyContent:'center',alignItems:'center',borderWidth:.5},children:(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.noImage,width:"100",height:"100"})}),h.image?(0,l.jsx)(a.Image,{resizeMode:"cover",style:f.image,source:{uri:h.image||'https://via.placeholder.com/150'}}):(0,l.jsx)(a.Image,{resizeMode:"cover",style:f.image,source:{uri:w.representativeImageUrl}})]}),(0,l.jsxs)(a.View,{style:{flex:1,marginLeft:12},children:[(0,l.jsx)(a.Text,{style:f.storeName,numberOfLines:1,children:w.name}),(0,l.jsxs)(a.View,{style:{flexDirection:'row',alignItems:'center',marginVertical:2},children:[(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.star,width:"15",height:"15",style:{}}),(0,l.jsxs)(a.Text,{style:f.reviewText,children:[_.toFixed(1)," (",w.reviewCount,")"]}),(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.heart,width:"15",height:"15",style:{marginLeft:7}}),(0,l.jsx)(a.Text,{style:f.heartText,children:w.likeCount}),(0,l.jsx)(_r(d[11]).SvgXml,{xml:_r(d[12]).svgXml.icon.naver,width:15,height:15,style:{marginLeft:10}}),(0,l.jsx)(a.Text,{style:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:3},children:j.toFixed(1)+' ('+w.naverReviewCount+')'})]}),(0,l.jsx)(a.Text,{style:f.reviewerName,children:h.firstReview.reviewer+'\ub2d8'}),(0,l.jsx)(a.Text,{numberOfLines:4,style:{fontSize:11,color:_r(d[10]).COLOR_TEXT60GRAY,fontFamily:'NanumSquareRoundR',width:245},children:h.firstReview.body})]})]})},v.toString())};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),a=_r(d[4]),i=(e(_r(d[5])),e(_r(d[6]))),o=e(_r(d[7])),l=_r(d[8]);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=a.Dimensions.get('window').width;var f=a.StyleSheet.create({imageContainer:{width:u/4,height:u/4,borderWidth:1,borderColor:_r(d[10]).COLOR_TEXT70GRAY,borderRadius:10,overflow:'hidden',justifyContent:'center',alignItems:'center',backgroundColor:'#f0f0f0'},image:{width:u/4,height:u/4},storeName:{width:245,fontSize:15,color:_r(d[10]).COLOR_TEXT_BLACK,fontFamily:'NanumSquareRoundR',alignSelf:'flex-start'},reviewText:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:7},heartText:{fontSize:11,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',alignSelf:'center',marginLeft:7},reviewerName:{fontSize:12,color:_r(d[10]).COLOR_TEXT70GRAY,fontFamily:'NanumSquareRoundB',marginVertical:6,marginBottom:10}})}),1102,[1,339,26,153,2,701,439,472,194,524,444,624,696]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var a=(0,_r(d[6]).useNavigation)(),l=((0,t.useContext)(n.default),(0,t.useRef)()),c=e.passData,u=e.onEndReached,f=e.hasMore;return(0,i.jsxs)(o.View,{style:s.kingopass,children:[(0,i.jsx)(o.Text,{style:s.kingopassTitle,children:"\ucc1c\ud55c \uac00\uac8c"}),0===c.length?(0,i.jsx)(o.Text,{style:s.noStoreText,children:"\ucc1c\ud55c \uac00\uac8c\uac00 \uc5c6\uc2b5\ub2c8\ub2e4"}):(0,i.jsx)(o.ScrollView,{showsVerticalScrollIndicator:!1,showsHorizontalScrollIndicator:!0,contentContainerStyle:s.scrollViewContent,horizontal:!0,ref:l,onScroll:function(e){var t=e.nativeEvent,o=t.contentOffset,n=t.layoutMeasurement,r=t.contentSize;o.x+n.width>=r.width-50&&f&&u()},scrollEventThrottle:16,children:c.map((function(e,t){return(0,i.jsxs)(r.default,{style:s.kingopassKard,onPress:function(){console.log('\ucc1c\ud55c \uac00\uac8c \ud398\uc774\uc9c0\ub85c \uc774\ub3d9',e),a.navigate('StoreDetail',{data:e})},children:[(0,i.jsx)(o.Image,{source:{uri:e.image},resizeMode:"cover",style:{width:140,height:140,borderRadius:10}}),(0,i.jsx)(o.View,{style:{position:'absolute',borderRadius:10,width:140,height:140,backgroundColor:'#000000',opacity:.4}}),(0,i.jsx)(o.View,{style:{position:'absolute',borderRadius:10,width:140,height:140},children:(0,i.jsx)(o.Text,{numberOfLines:1,style:{fontSize:20,color:_r(d[7]).COLOR_WHITE,fontFamily:'NIXGONFONTS M 2.0',margin:10},children:e.name})})]},t.toString())}))})]})};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n})(_r(d[1])),o=_r(d[2]),n=e(_r(d[3])),r=e(_r(d[4])),i=_r(d[5]);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var l=o.Dimensions.get('window').width;var s=o.StyleSheet.create({kingopass:{marginTop:15,width:l,paddingHorizontal:0},kingopassTitle:{fontSize:20,marginLeft:26,color:_r(d[7]).COLOR_PRIMARY,fontFamily:'NIXGONFONTS M 2.0',marginBottom:10},kingopassKard:{height:140,width:140,borderRadius:10,marginHorizontal:5,marginBottom:10,shadowOffset:{width:0,height:4},shadowOpacity:.25,shadowRadius:4,elevation:4},noStoreText:{fontSize:16,color:_r(d[7]).COLOR_TEXT70GRAY,textAlign:'center',marginTop:10},scrollViewContent:{flexDirection:'row',paddingHorizontal:16}})}),1103,[1,153,2,439,442,194,524,444]); __d((function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:750,height:750,scales:[1],hash:"039d7804ef24fd2d07a98afe269a7bed",name:"logo",type:"png"})}),1104,[621]); __d((function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/images",width:72,height:72,scales:[1],hash:"bff8d5a519d081f854afa6678b7ecd88",name:"right-arrow",type:"png"})}),1105,[621]); -__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var y,O=(0,_r(d[14]).useNavigation)(),T=(0,n.useContext)(l.default),R=e.route,C=(0,n.useState)(null==(y=R.params)?void 0:y.data),v=(0,r.default)(C,2),k=v[0],b=v[1],j=(0,n.useState)(''),B=(0,r.default)(j,2),_=B[0],w=B[1],I=(0,n.useState)(''),S=(0,r.default)(I,2),L=S[0],A=S[1],P=(0,n.useState)(''),E=(0,r.default)(P,2),z=E[0],D=E[1],M=(0,n.useState)(_r(d[15]).COLOR_RED),V=(0,r.default)(M,2),F=V[0],N=V[1];(0,n.useEffect)((function(){var e=(function(){var e=(0,t.default)((function*(){try{var e=yield u.default.getItem('userId');console.log(`Fetching user info with userId: ${e}`),console.log(`Using accessToken: ${T.accessToken}`);var t=yield s.default.get(`http://13.124.226.226/v1/users/${e}`,{headers:{Authorization:`Bearer ${T.accessToken}`}});console.log('User Info API Response:',t.data),w(t.data.data.userDto.nickname),A(t.data.data.userDto.email)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();e()}),[T.accessToken]);var W=(function(){var e=(0,t.default)((function*(){try{(yield s.default.get("http://13.124.226.226/v1/users/check-nickname",{params:{nickname:_},headers:{Authorization:`Bearer ${T.accessToken}`}})).data.isDuplicate||_===T.nickname?(D('\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_RED)):(D('\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_BLUE))}catch(e){D('\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_RED),o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),U=(function(){var e=(0,t.default)((function*(){try{200===(yield s.default.patch("http://13.124.226.226/v1/users",{profileImageUrl:k,nickname:_},{headers:{Authorization:`Bearer ${T.accessToken}`}})).status&&a.Alert.alert('\uc131\uacf5','\ub2c9\ub124\uc784/\ud504\ub85c\ud544 \uc774\ubbf8\uc9c0\uac00 \uc131\uacf5\uc801\uc73c\ub85c \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778',onPress:function(){return O.goBack()}}])}catch(e){console.error('Failed to update nickname:',e),a.Alert.alert('\uc624\ub958','\ub2c9\ub124\uc784 \ubcc0\uacbd \uc911 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778'}])}}));return function(){return e.apply(this,arguments)}})(),$=(function(){var e=(0,t.default)((function*(){try{200===(yield s.default.delete("http://13.124.226.226/v1/users",{headers:{Authorization:`Bearer ${T.accessToken}`}})).status&&a.Alert.alert('\uc131\uacf5','\ud68c\uc6d0\ud0c8\ud1f4\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778',onPress:(e=(0,t.default)((function*(){yield u.default.removeItem('accessToken'),yield u.default.removeItem('refreshToken'),T.setAccessTokenValue(null),T.setRefreshTokenValue(null),O.dispatch(_r(d[14]).CommonActions.reset({index:0,routes:[{name:'Splash'}]}))})),function(){return e.apply(this,arguments)})}])}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}var e}));return function(){return e.apply(this,arguments)}})(),q=(function(){var e=(0,t.default)((function*(e){var t='';yield h.default.readFile(e.path,'base64').then((function(e){t=e})).catch((function(e){console.error(e)}));try{var r=yield s.default.post("https://utdyfn3jhj.execute-api.ap-northeast-2.amazonaws.com/v1/upload-image",{images:[{imageData:t,location:'test'}]});if(console.log('response image:',r.data),'SUCCESS'!=r.data.result)return void console.log('Error: No return data');b(r.data.data[0].imageUrl)}catch(e){console.log('Error:',e)}}));return function(t){return e.apply(this,arguments)}})(),H=(function(){var e=(0,t.default)((function*(){try{yield u.default.removeItem('accessToken'),yield u.default.removeItem('refreshToken'),T.setAccessTokenValue(null),T.setRefreshTokenValue(null),O.dispatch(_r(d[14]).CommonActions.reset({index:0,routes:[{name:'Splash'}]}))}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.default,{title:'\ub0b4 \uc815\ubcf4 \uc218\uc815',isBackButton:!0}),(0,p.jsxs)(a.ScrollView,{contentContainerStyle:x.entire,children:[(0,p.jsx)(c.default,{style:x.profile,onPress:function(){f.default.openPicker({width:400,height:400,cropping:!0,cropperCircleOverlay:!0}).then((function(e){q(e)}))},children:k?(0,p.jsx)(a.Image,{source:{uri:k},style:{width:100,height:100,borderRadius:75}}):(0,p.jsx)(_r(d[16]).SvgXml,{width:100,height:100,xml:_r(d[17]).svgXml.icon.camera})}),(0,p.jsxs)(a.View,{style:x.inputContainer,children:[(0,p.jsx)(a.Text,{style:x.label,children:"\ub2c9\ub124\uc784"}),(0,p.jsxs)(a.View,{style:x.inputWithButton,children:[(0,p.jsx)(a.TextInput,{style:[x.input,{flex:1}],value:_,onChangeText:w,placeholder:"\ub2c9\ub124\uc784\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694"}),(0,p.jsx)(a.TouchableOpacity,{style:x.checkButton,onPress:W,children:(0,p.jsx)(a.Text,{style:x.checkButtonText,children:"\uc911\ubcf5\ud655\uc778"})})]}),z?(0,p.jsx)(a.Text,{style:[x.duplicateMessage,{color:F}],children:z}):null]}),(0,p.jsxs)(a.View,{style:x.inputContainer,children:[(0,p.jsx)(a.Text,{style:x.label,children:"\ub300\ud45c \uc774\uba54\uc77c"}),(0,p.jsx)(a.TextInput,{style:[x.input2,x.disabledInput],value:L,editable:!1})]}),(0,p.jsx)(a.TouchableOpacity,{style:x.updateButton,onPress:U,children:(0,p.jsx)(a.Text,{style:x.updateButtonText,children:"\uc218\uc815\ud558\uae30"})}),(0,p.jsxs)(a.View,{style:x.footer,children:[(0,p.jsx)(a.TouchableOpacity,{onPress:H,children:(0,p.jsx)(a.Text,{style:x.footerText,children:"\ub85c\uadf8\uc544\uc6c3"})}),(0,p.jsx)(a.TouchableOpacity,{onPress:$,children:(0,p.jsx)(a.Text,{style:x.footerText,children:"\ud68c\uc6d0\ud0c8\ud1f4"})})]})]})]})};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),a=_r(d[4]),o=e(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),l=e(_r(d[8])),s=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),h=e(_r(d[12])),p=_r(d[13]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}var x=a.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[15]).COLOR_BACKGROUND,alignItems:'center'},myPageItem:{width:120,height:120},myPageItemLayout:{marginTop:20,marginBottom:50,borderRadius:15},inputContainer:{width:'85%',marginBottom:20},inputWithButton:{flexDirection:'row',alignItems:'center'},label:{fontSize:14,color:_r(d[15]).COLOR_TEXT_BLACK,marginBottom:8,fontFamily:'NanumSquareRoundB'},input:{borderWidth:1.5,borderColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,padding:10,fontSize:14,backgroundColor:_r(d[15]).COLOR_WHITE,width:'100%',height:45,fontFamily:'NanumSquareRoundEB'},input2:{borderWidth:1.5,borderColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,padding:10,fontSize:14,backgroundColor:_r(d[15]).COLOR_TEXT_BLACK,width:'100%',height:45,fontFamily:'NanumSquareRoundEB'},disabledInput:{backgroundColor:_r(d[15]).COLOR_HOME_BACKGROUND,color:_r(d[15]).COLOR_TEXT_BLACK,height:45},checkButton:{marginLeft:10,backgroundColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,paddingVertical:10,paddingHorizontal:15,height:45,justifyContent:'center'},checkButtonText:{color:_r(d[15]).COLOR_WHITE,fontSize:12,fontFamily:'NanumSquareRoundB'},duplicateMessage:{fontSize:14,marginTop:5},updateButton:{width:'85%',backgroundColor:_r(d[15]).COLOR_PRIMARY,borderRadius:15,paddingVertical:15,alignItems:'center',marginTop:20},updateButtonText:{color:_r(d[15]).COLOR_WHITE,fontSize:16,fontFamily:'NanumSquareRoundB'},footer:{flexDirection:'row',justifyContent:'space-between',width:'60%',marginTop:20},footerText:{color:_r(d[15]).COLOR_PRIMARY,fontSize:14,fontFamily:'NanumSquareRoundB'},profile:{width:100,height:100,justifyContent:'center',alignItems:'center',marginTop:30,marginBottom:10}})}),1106,[1,339,26,153,2,445,700,517,439,472,442,724,725,194,524,444,624,696]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var y,O=(0,_r(d[14]).useNavigation)(),T=(0,r.useContext)(l.default),R=e.route,C=(0,r.useState)(null==(y=R.params)?void 0:y.data),v=(0,n.default)(C,2),k=v[0],b=v[1],B=(0,r.useState)(''),j=(0,n.default)(B,2),_=j[0],I=j[1],w=(0,r.useState)(''),S=(0,n.default)(w,2),L=S[0],A=S[1],P=(0,r.useState)(''),E=(0,n.default)(P,2),D=E[0],M=E[1],z=(0,r.useState)(_r(d[15]).COLOR_RED),V=(0,n.default)(z,2),F=V[0],N=V[1];(0,r.useEffect)((function(){var e=(function(){var e=(0,t.default)((function*(){try{var e=yield u.default.getItem('userId');console.log(`Fetching user info with userId: ${e}`),console.log(`Using accessToken: ${T.accessToken}`);var t=yield s.default.get(`undefined/v1/users/${e}`,{headers:{Authorization:`Bearer ${T.accessToken}`}});console.log('User Info API Response:',t.data),I(t.data.data.userDto.nickname),A(t.data.data.userDto.email)}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();e()}),[T.accessToken]);var W=(function(){var e=(0,t.default)((function*(){try{(yield s.default.get("undefined/v1/users/check-nickname",{params:{nickname:_},headers:{Authorization:`Bearer ${T.accessToken}`}})).data.isDuplicate||_===T.nickname?(M('\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_RED)):(M('\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_BLUE))}catch(e){M('\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.'),N(_r(d[15]).COLOR_RED),o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})(),U=(function(){var e=(0,t.default)((function*(){try{200===(yield s.default.patch("undefined/v1/users",{profileImageUrl:k,nickname:_},{headers:{Authorization:`Bearer ${T.accessToken}`}})).status&&a.Alert.alert('\uc131\uacf5','\ub2c9\ub124\uc784/\ud504\ub85c\ud544 \uc774\ubbf8\uc9c0\uac00 \uc131\uacf5\uc801\uc73c\ub85c \ubcc0\uacbd\ub418\uc5c8\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778',onPress:function(){return O.goBack()}}])}catch(e){console.error('Failed to update nickname:',e),a.Alert.alert('\uc624\ub958','\ub2c9\ub124\uc784 \ubcc0\uacbd \uc911 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778'}])}}));return function(){return e.apply(this,arguments)}})(),$=(function(){var e=(0,t.default)((function*(){try{200===(yield s.default.delete("undefined/v1/users",{headers:{Authorization:`Bearer ${T.accessToken}`}})).status&&a.Alert.alert('\uc131\uacf5','\ud68c\uc6d0\ud0c8\ud1f4\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.',[{text:'\ud655\uc778',onPress:(e=(0,t.default)((function*(){yield u.default.removeItem('accessToken'),yield u.default.removeItem('refreshToken'),T.setAccessTokenValue(null),T.setRefreshTokenValue(null),O.dispatch(_r(d[14]).CommonActions.reset({index:0,routes:[{name:'Splash'}]}))})),function(){return e.apply(this,arguments)})}])}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}var e}));return function(){return e.apply(this,arguments)}})(),q=(function(){var e=(0,t.default)((function*(e){var t='';yield h.default.readFile(e.path,'base64').then((function(e){t=e})).catch((function(e){console.error(e)}));try{var n=yield s.default.post("undefined/v1/upload-image",{images:[{imageData:t,location:'test'}]});if(console.log('response image:',n.data),'SUCCESS'!=n.data.result)return void console.log('Error: No return data');b(n.data.data[0].imageUrl)}catch(e){console.log('Error:',e)}}));return function(t){return e.apply(this,arguments)}})(),H=(function(){var e=(0,t.default)((function*(){try{yield u.default.removeItem('accessToken'),yield u.default.removeItem('refreshToken'),T.setAccessTokenValue(null),T.setRefreshTokenValue(null),O.dispatch(_r(d[14]).CommonActions.reset({index:0,routes:[{name:'Splash'}]}))}catch(e){o.default.show({type:'error',text1:'Error',text2:e.response.data.message})}}));return function(){return e.apply(this,arguments)}})();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.default,{title:'\ub0b4 \uc815\ubcf4 \uc218\uc815',isBackButton:!0}),(0,p.jsxs)(a.ScrollView,{contentContainerStyle:x.entire,children:[(0,p.jsx)(c.default,{style:x.profile,onPress:function(){f.default.openPicker({width:400,height:400,cropping:!0,cropperCircleOverlay:!0}).then((function(e){q(e)}))},children:k?(0,p.jsx)(a.Image,{source:{uri:k},style:{width:100,height:100,borderRadius:75}}):(0,p.jsx)(_r(d[16]).SvgXml,{width:100,height:100,xml:_r(d[17]).svgXml.icon.camera})}),(0,p.jsxs)(a.View,{style:x.inputContainer,children:[(0,p.jsx)(a.Text,{style:x.label,children:"\ub2c9\ub124\uc784"}),(0,p.jsxs)(a.View,{style:x.inputWithButton,children:[(0,p.jsx)(a.TextInput,{style:[x.input,{flex:1}],value:_,onChangeText:I,placeholder:"\ub2c9\ub124\uc784\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694"}),(0,p.jsx)(a.TouchableOpacity,{style:x.checkButton,onPress:W,children:(0,p.jsx)(a.Text,{style:x.checkButtonText,children:"\uc911\ubcf5\ud655\uc778"})})]}),D?(0,p.jsx)(a.Text,{style:[x.duplicateMessage,{color:F}],children:D}):null]}),(0,p.jsxs)(a.View,{style:x.inputContainer,children:[(0,p.jsx)(a.Text,{style:x.label,children:"\ub300\ud45c \uc774\uba54\uc77c"}),(0,p.jsx)(a.TextInput,{style:[x.input2,x.disabledInput],value:L,editable:!1})]}),(0,p.jsx)(a.TouchableOpacity,{style:x.updateButton,onPress:U,children:(0,p.jsx)(a.Text,{style:x.updateButtonText,children:"\uc218\uc815\ud558\uae30"})}),(0,p.jsxs)(a.View,{style:x.footer,children:[(0,p.jsx)(a.TouchableOpacity,{onPress:H,children:(0,p.jsx)(a.Text,{style:x.footerText,children:"\ub85c\uadf8\uc544\uc6c3"})}),(0,p.jsx)(a.TouchableOpacity,{onPress:$,children:(0,p.jsx)(a.Text,{style:x.footerText,children:"\ud68c\uc6d0\ud0c8\ud1f4"})})]})]})]})};var t=e(_r(d[1])),n=e(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),a=_r(d[4]),o=e(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),l=e(_r(d[8])),s=e(_r(d[9])),c=e(_r(d[10])),f=e(_r(d[11])),h=e(_r(d[12])),p=_r(d[13]);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var x=a.StyleSheet.create({entire:{flex:1,backgroundColor:_r(d[15]).COLOR_BACKGROUND,alignItems:'center'},myPageItem:{width:120,height:120},myPageItemLayout:{marginTop:20,marginBottom:50,borderRadius:15},inputContainer:{width:'85%',marginBottom:20},inputWithButton:{flexDirection:'row',alignItems:'center'},label:{fontSize:14,color:_r(d[15]).COLOR_TEXT_BLACK,marginBottom:8,fontFamily:'NanumSquareRoundB'},input:{borderWidth:1.5,borderColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,padding:10,fontSize:14,backgroundColor:_r(d[15]).COLOR_WHITE,width:'100%',height:45,fontFamily:'NanumSquareRoundEB'},input2:{borderWidth:1.5,borderColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,padding:10,fontSize:14,backgroundColor:_r(d[15]).COLOR_TEXT_BLACK,width:'100%',height:45,fontFamily:'NanumSquareRoundEB'},disabledInput:{backgroundColor:_r(d[15]).COLOR_HOME_BACKGROUND,color:_r(d[15]).COLOR_TEXT_BLACK,height:45},checkButton:{marginLeft:10,backgroundColor:_r(d[15]).COLOR_PRIMARY,borderRadius:12,paddingVertical:10,paddingHorizontal:15,height:45,justifyContent:'center'},checkButtonText:{color:_r(d[15]).COLOR_WHITE,fontSize:12,fontFamily:'NanumSquareRoundB'},duplicateMessage:{fontSize:14,marginTop:5},updateButton:{width:'85%',backgroundColor:_r(d[15]).COLOR_PRIMARY,borderRadius:15,paddingVertical:15,alignItems:'center',marginTop:20},updateButtonText:{color:_r(d[15]).COLOR_WHITE,fontSize:16,fontFamily:'NanumSquareRoundB'},footer:{flexDirection:'row',justifyContent:'space-between',width:'60%',marginTop:20},footerText:{color:_r(d[15]).COLOR_PRIMARY,fontSize:14,fontFamily:'NanumSquareRoundB'},profile:{width:100,height:100,justifyContent:'center',alignItems:'center',marginTop:30,marginBottom:10}})}),1106,[1,339,26,153,2,445,700,517,439,472,442,724,725,194,524,444,624,696]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BottomTabBar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"BottomTabBarHeightCallbackContext",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"BottomTabBarHeightContext",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"BottomTabView",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"createBottomTabNavigator",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"useBottomTabBarHeight",{enumerable:!0,get:function(){return c.default}});var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),b=t(r(d[4])),f=t(r(d[5])),c=t(r(d[6]))}),1107,[1,1108,1113,1110,1111,1112,1184]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),a=((function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=l(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,a&&a.set(e,n)})(_r(d[2])),e(_r(d[3]))),n=e(_r(d[4])),o=_r(d[5]),r=["id","initialRouteName","backBehavior","children","screenListeners","screenOptions","sceneContainerStyle"],i=["lazy","tabBarOptions"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(l=function(e){return e?a:t})(e)}_e.default=(0,_r(d[6]).createNavigatorFactory)((function(e){var l,c=e.id,s=e.initialRouteName,b=e.backBehavior,u=e.children,p=e.screenListeners,f=e.screenOptions,v=e.sceneContainerStyle,y=(0,t.default)(e,r),B=y.lazy,O=y.tabBarOptions,S=(0,t.default)(y,i),h={};O&&(Object.assign(h,{tabBarHideOnKeyboard:O.keyboardHidesTabBar,tabBarActiveTintColor:O.activeTintColor,tabBarInactiveTintColor:O.inactiveTintColor,tabBarActiveBackgroundColor:O.activeBackgroundColor,tabBarInactiveBackgroundColor:O.inactiveBackgroundColor,tabBarAllowFontScaling:O.allowFontScaling,tabBarShowLabel:O.showLabel,tabBarLabelStyle:O.labelStyle,tabBarIconStyle:O.iconStyle,tabBarItemStyle:O.tabStyle,tabBarLabelPosition:null!=(l=O.labelPosition)?l:!1===O.adaptive?'below-icon':void 0,tabBarStyle:[{display:O.tabBarVisible?'none':'flex'},h.tabBarStyle]}),Object.keys(h).forEach((function(e){void 0===h[e]&&delete h[e]})),(0,a.default)(O,`Bottom Tab Navigator: 'tabBarOptions' is deprecated. Migrate the options to 'screenOptions' instead.\n\nPlace the following in 'screenOptions' in your code to keep current behavior:\n\n${JSON.stringify(h,null,2)}\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator#options for more details.`)),'boolean'==typeof B&&(h.lazy=B,(0,a.default)(!0,"Bottom Tab Navigator: 'lazy' in props is deprecated. Move it to 'screenOptions' instead.\n\nSee https://reactnavigation.org/docs/bottom-tab-navigator/#lazy for more details."));var k=(0,_r(d[6]).useNavigationBuilder)(_r(d[6]).TabRouter,{id:c,initialRouteName:s,backBehavior:b,children:u,screenListeners:p,screenOptions:f,defaultScreenOptions:h}),C=k.state,j=k.descriptors,w=k.navigation,_=k.NavigationContent;return(0,o.jsx)(_,{children:(0,o.jsx)(n.default,Object.assign({},S,{state:C,navigation:w,descriptors:j,sceneContainerStyle:v}))})}))}),1108,[1,119,153,1109,1110,194,524]); __d((function(g,r,i,a,m,e,d){new Set;m.exports=function(n){}}),1109,[]); diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 721bf14..ace492e 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - meokguskku + 먹구스꾸 diff --git a/app.json b/app.json index 1668a2e..7086ce5 100644 --- a/app.json +++ b/app.json @@ -1,4 +1,4 @@ { "name": "meokguskku", - "displayName": "meokguskku" + "displayName": "먹구스꾸" } diff --git a/src/screens/signup/SplashScreen.js b/src/screens/signup/SplashScreen.js index d06c200..46c3586 100644 --- a/src/screens/signup/SplashScreen.js +++ b/src/screens/signup/SplashScreen.js @@ -27,6 +27,8 @@ export default function SplashScreen() { const navigation = useNavigation(); const context = useContext(AppContext); + const [buttonView, setButtonView] = useState(false); + const tryAutoLogin = async () => { try { // AsyncStorage(=디바이스에 저장하는 데이터)에 저장된 토큰을 가져온다. @@ -37,6 +39,7 @@ export default function SplashScreen() { //없으면 그만 console.log('accessToken:', accessToken); if (accessToken == null) { + setButtonView(true); return; } @@ -49,6 +52,7 @@ export default function SplashScreen() { //토큰이 맞지 않으면 그만 if (!response.data.data) { console.log('Error: No return data'); + setButtonView(true); return; } @@ -59,11 +63,12 @@ export default function SplashScreen() { //화면 이동 navigation.navigate('BottomTab'); } catch (error) { - Toast.show({ - type: 'error', - text1: 'Error', - text2: error.response.data.message, - }); + setButtonView(true); + // Toast.show({ + // type: 'error', + // text1: 'Error', + // text2: error.response.data.message, + // }); } }; @@ -86,9 +91,11 @@ export default function SplashScreen() { style={styles.image} /> - - - + {buttonView ? ( + + + + ) : null} ); }