1"use strict";(self.webpackChunkthe720s=self.webpackChunkthe720s||[]).push([[327],{26930:function(e,t,s){s.r(t),s.d(t,{default:function(){return R}});var a=s(74165),n=s(15861),i=s(15671),r=s(43144),l=s(60136),c=s(27277),d=s(47313),h=s(98215),o=s(82020),u=s(68642),m=s(90894),x=s(33528),p=s(11097),g=s(47618),j=s(70816),v=s.n(j),f=s(98230),y=s(59073),b=s(34437),_=s(16049),S=s(99590),k=s(94126),N=s(4453),C=s(910),Z=s(5123),I=s(53910),w=s(91135),M=s(79688),A=s(8625),D=s(63016),O=s(21222),T=s(43598),P=s(62001),Y=s.p+"static/media/message_sample.49389fffcec99ad5a8da.jpg",H=s(2135),E=s(61378),U=s.n(E),z=s(81402),B=(s(72632),s(46417)),L=function(e){(0,l.Z)(s,e);var t=(0,c.Z)(s);function s(e){var a;return(0,i.Z)(this,s),(a=t.call(this,e)).handleCalenderChange=function(e,t){t.name;var s=t.value,n=v()(new Date(s)),i=v()(new Date);if(parseInt(v().duration(i.diff(n)).asDays())>0)D.Am.error("\u904e\u53bb\u306e\u65e5\u4ed8\u306f\u9078\u629e\u51fa\u6765\u307e\u305b\u3093\u3002",{position:"top-center",autoClose:5e3,closeOnClick:!0,hideProgressBar:!0,pauseOnHover:!0,draggable:!0,draggablePercent:50});else{var r=a.state.mySchedule;r.days[a.state.editingIndex]=n.format("YYYY/MM/DD"),a.setState({mySchedule:r})}},a.handleTime=function(e,t){t.name;var s=t.value;console.log(s);var n=a.state.mySchedule;n.times[a.state.editingIndex]=s,a.setState({mySchedule:n})},a.handleDayChecked=function(){var e=a.state.mySchedule;e.times[a.state.editingIndex].day=!e.times[a.state.editingIndex].day,a.setState({mySchedule:e})},a.handleNightChecked=function(){var e=a.state.mySchedule;e.times[a.state.editingIndex].night=!e.times[a.state.editingIndex].night,a.setState({mySchedule:e})},a.handleShareContactOption=function(){a.setState({shareContactOption:!a.state.shareContactOption},(function(){return a.postMatch()}))},a.handleAreasInput=function(e,t){var s=t.name,n=t.checked,i=a.state.myAreas;i[s]=n,a.setState({myAreas:i})},a.onExitingAnimation=function(){a.animating=!0},a.onExitedAnimation=function(){a.animating=!1},a.nextImage=function(){if(!a.animating){var e=a.state.activeImageIndex===a.state.imageItems.length-1?0:a.state.activeImageIndex+1;a.setState({activeImageIndex:e})}},a.previousImage=function(){if(!a.animating){var e=0===a.state.activeImageIndex?a.state.imageItems.length-1:a.state.activeImageIndex-1;a.setState({activeImageIndex:e})}},a.goToImageIndex=function(e){a.animating||a.setState({activeImageIndex:e})},a.state={match:null,supplementMessageShow:!0,phoneMessageShow:!0,introExpand:!1,mySchedule:{days:[null,null,null,null,null],times:[{day:!1,night:!1},{day:!1,night:!1},{day:!1,night:!1},{day:!1,night:!1},{day:!1,night:!1}]},shareContactOption:!1,editingIndex:null,myAreas:{areaA:!1,areaB:!1,areaC:!1,areaD:!1,others:!1},areasEditable:!1,isHTTPRequesting:!1,imageItems:[],activeImageIndex:0},a.inbox=void 0,a}return(0,r.Z)(s,[{key:"componentDidMount",value:function(){var e=(0,n.Z)((0,a.Z)().mark((function e(){var t,s,i,r=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.props.navigate,p.g.currentAuthenticatedUser().then(function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.getMatch(r.props.match.params.id);case 2:r.getCurrentUser();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),(e="not authenticated")&&t("/")})),(s=localStorage.getItem("supplement_message_show_value"))&&("true"==s?this.setState({supplementMessageShow:!0}):this.setState({supplementMessageShow:!1})),(i=localStorage.getItem("phone_message_show_value"))&&("true"==i?this.setState({phoneMessageShow:!0}):this.setState({phoneMessageShow:!1}));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.deinitChat()}},{key:"initChat",value:function(){var e=this,t=this.state.user,s=this.state.match.user;"schedule_meet"==this.state.match.status&&P.Z.ready.then((function(){var a=new P.Z.User({id:t.user_id,name:t.info.nickname,email:t.info.email,locale:"ja-JP",phone:null==t.info.phone||""==t.info.phone?null:"+81"+t.info.phone.substring(1),role:"EndUser"});window.talkSession||(window.talkSession=new P.Z.Session({appId:"I9lPLkNZ",me:a,signature:t.chatToken}));
1var n=new P.Z.User(s.user_id),i=P.Z.oneOnOneId(a,n),r=window.talkSession.getOrCreateConversation(i);r.setParticipant(a),r.setParticipant(n),e.inbox=window.talkSession.createChatbox(r,{messageField:{enterSendsMessage:!1}}),e.inbox.mount(e.container)})).catch((function(e){return console.error(e)}))}},{key:"deinitChat",value:function(){this.inbox&&"schedule_meet"===this.state.match.status&&this.inbox.destroy()}},{key:"renderMessage",value:function(){if("schedule_required"===this.state.match.status)return(0,B.jsxs)(f.Z,{negative:!0,children:[(0,B.jsx)(f.Z.Header,{children:"\u30c7\u30fc\u30c8\u5019\u88dc\u65e5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}),(0,B.jsx)("hr",{className:"my-3"}),(0,B.jsxs)("p",{children:[(0,B.jsx)("b",{children:"1.\u30c7\u30fc\u30c8\u5019\u88dc\u65e5\u304c\u4e00\u81f4"}),(0,B.jsx)("br",{}),"\u307e\u305f\u306f",(0,B.jsx)("br",{}),(0,B.jsx)("b",{children:"2.\u4e8c\u4eba\u5171\u300c\u4eca\u3059\u3050\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u4e88\u5b9a\u3092\u8abf\u6574\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af"}),(0,B.jsx)("br",{}),"\u3059\u308b\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u4ea4\u63db\u3067\u304d\u307e\u3059\uff01"]})]})}},{key:"renderOpponentSchedule",value:function(){var e=this.state.match,t=e.male_id===e.user.user_id?e.male_available_days:e.female_available_days;if(null!=t){for(var s=JSON.parse(t).days,a=JSON.parse(t).times,n=[],i=0;i<s.length;i++)if(null!=s[i]){var r=v()(new Date(s[i])).format("YYYY/MM/DD");a[i].day&&(r+=" \u663c"),a[i].night&&(r+=" \u591c"),n.push(r)}return(0,B.jsxs)(f.Z,{children:[(0,B.jsx)(f.Z.Header,{children:"\u304a\u76f8\u624b\u304c\u5165\u529b\u3057\u305f\u5019\u88dc\u65e5"}),(0,B.jsx)("hr",{className:"my-3"}),(0,B.jsx)("p",{dangerouslySetInnerHTML:{__html:n.join("<br/>")}})]})}}},{key:"renderSchedule",value:function(){var e=this;return this.state.mySchedule.days.map((function(t,s){return null==t?(0,B.jsxs)(y.Z.Content,{className:"scheduleInputPlaceHolder",onClick:function(){e.setState({open:!0,editingIndex:s})},children:[s+1,".",(0,B.jsx)(b.Z,{name:"calendar alternate outline"}),"(\u672a\u5165\u529b)"]},s):(0,B.jsxs)(y.Z.Content,{className:"scheduleInput",onClick:function(){e.setState({open:!0,editingIndex:s})},children:[s+1,".",(0,B.jsx)(b.Z,{name:"calendar alternate outline"}),v()(t).format("YYYY/MM/DD")+" "+(e.state.mySchedule.times[s].day?"\u663c":"")+(e.state.mySchedule.times[s].day&&e.state.mySchedule.times[s].night?",":"")+(e.state.mySchedule.times[s].night?"\u591c":"")]},s)}))}},{key:"composeMatchedDayString",value:function(e){var t=[];if(null==e.dateDays)return t;for(var s=0;s<e.dateDays.length;s++){var a=v()(new Date(e.dateDays[s].day)).format("YYYY/MM/DD");"day"===e.dateDays[s].times&&(a+=" \u663c"),"night"===e.dateDays[s].times&&(a+=" \u591c"),t.push(a)}return t}},{key:"_renderContactCheckBox",value:function(){return(0,B.jsxs)("div",{children:[(0,B.jsx)(_.Z,{onChange:this.handleShareContactOption,label:"\u4eca\u3059\u3050\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u4e88\u5b9a\u3092\u8abf\u6574\u3059\u308b",checked:this.state.shareContactOption}),(0,B.jsx)(S.Z,{className:"shareContactOptionNote",basic:!0,pointing:!0,children:"\u304a\u76f8\u624b\u3082\u3053\u3061\u3089\u3092\u9078\u629e\u3057\u305f\u5834\u5408\u3001\u3053\u306e\u30da\u30fc\u30b8\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u3084\u308a\u3068\u308a\u304c\u958b\u59cb\u3067\u304d\u307e\u3059\u3002"})]})}},{key:"_renderScheduleInputViews",value:function(e){return"schedule_meet"===e.status&&null!=e.dateDays?(0,B.jsxs)("div",{children:[(0,B.jsx)(k.Z,{horizontal:!0,children:"\u304a\u76f8\u624b\u3068\u4e00\u81f4\u3057\u305f\u30c7\u30fc\u30c8\u5019\u88dc\u65e5"}),(0,B.jsx)(f.Z,{children:(0,B.jsx)("p",{dangerouslySetInnerHTML:{__html:this.composeMatchedDayString(e).join("<br/>")}})})]}):1==e.male_open_contact&&1==e.female_open_contact?null:e.expired?void 0:(0,B.jsxs)("div",{children:[this._renderContactCheckBox(),(0,B.jsx)(k.Z,{horizontal:!0,children:"\u30c7\u30fc\u30c8\u5019\u88dc\u65e5"}),this.renderMessage(),this.renderOpponentSchedule(),(0,B.jsx)(y.Z,{divided:!0,verticalAlign:"middle",children:this.renderSchedule()})]})}},{key:"createMailTo",value:function(){return"mailto:"+this.state.match.user.info.email+"?subject="+(this.state.match.user.info.nickname+"\u3055\u3093\u306f\u3058\u3081\u307e\u3057\u3066")+"&body="+(this.state.user.info.nickname+"\u3067\u3059\u3002%0D%0A\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002%0D%0A"+this.composeMatchedDayString(this.state.match).join(",")+"\u306e\u8a73\u7d30\u3092\u6c7a\u3081\u307e\u305b\u3093\u304b\uff1f")}},{key:"_getBachelor",value:function(e){return"\u305d\u306e\u4ed6"==e.bachelor&&null!=e.otherUniv?e.otherUniv:e.bachelor}},{key:"_renderProfile",value:function(){var e=this,t=this.state.match;if(null==t)return null;var s,a=t.user.info,n=[];(null!=t.user.avatar_url&&""!=t.user.avatar_url&&n.push({src:t.user.avatar_url}),null!=t.user.profile_image_url_1&&""!=t.user.profile_image_url_1&&n.push({src:t.user.profile_image_url_1}),null!=t.user.profile_image_url_2&&""!=t.user.profile_image_url_2&&n.push({src:t.user.profile_image_url_2}),null!=t.user.profile_image_url_3&&""!=t.user.profile_image_url_3&&n.push({src:t.user.profile_image_url_3}),null!=t.user.profile_image_url_4&&""!=t.user.profile_image_url_4&&n.push({src:t.user.profile_image_url_4}),0==n.length)&&(s="female"==t.user.sex?"/images/default-female.png":"/images/default-male.png",n.push({src:s}));console.log(n),this.state.imageItems=n;var i=n.length>1,r=n.length>1;return(0,B.jsxs)("div",{children:[n.length>0?(0,B.jsx)(x.Mi,{autoplay:!1,arrows:!1,indicators:i,canSwipe:r,children:n.map((function(e,t){return(0,B.jsxs)("div",{className:"avatar-item",children:[(0,B.jsx)("img",{className:"avatar-image",src:e.src}),(0,B.jsx)("div",{className:"image-overwrap"})]},t)}))}):null,(0,B.jsxs)("div",{className:"d-flex justify-content-between align-items-end top-intro",children:[(0,B.jsxs)("div",{className:"d-flex align-items-end",children:[(0,B.jsxs)("div",{className:"name-label",children:[(0,B.jsx)("span",{className:"name",children:a.nickname+""}),"\u3055\u3093"]}),null!=a.doctor&&"none"!=a.doctor?(0,B.jsx)("div",{className:"ml-3 doctor-label",children:"Ph.D"}):null]}),(0,B.jsxs)("div",{className:"d-flex align-items-end",children:[null!=O.X.getUserAge(a)?(0,B.jsx)("div",{children:O.X.getUserAge(a)+"\u6b73"}):null,null!=a.address?(0,B.jsx)("div",{className:"ml-3",children:T.z.address.filter((function(e){return e.value==a.address}))[0].text+" \u5728\u4f4f"}):null]})]}),(0,B.jsxs)("div",{className:"education-section",children:[null!=a.bachelor?(0,B.jsxs)("div",{className:"education-history-item",children:[(0,B.jsx)("span",{className:"label",children:"\u5b66\u58eb"}),(0,B.jsx)("span",{className:"ml-4",children:this._getBachelor(a)})]}
1):null,null!=a.master&&"none"!=a.master?(0,B.jsxs)("div",{className:"education-history-item",children:[(0,B.jsx)("span",{className:"label",children:"\u4fee\u58eb"}),(0,B.jsx)("span",{className:"ml-4",children:a.master})]}):null,null!=a.doctor&&"none"!=a.doctor?(0,B.jsxs)("div",{className:"education-history-item",children:[(0,B.jsx)("span",{className:"label",children:"\u535a\u58eb"}),(0,B.jsx)("span",{className:"ml-4",children:a.doctor})]}):null]}),(0,B.jsxs)("table",{className:"profile-table",children:[(0,B.jsxs)("colgroup",{children:[(0,B.jsx)("col",{width:"50%"}),(0,B.jsx)("col",{width:"50%"})]}),(0,B.jsxs)("tbody",{children:[(0,B.jsxs)("tr",{children:[(0,B.jsxs)("td",{children:[(0,B.jsx)("span",{className:"label",children:"\u696d\u7a2e"}),null!=a.industry?(0,B.jsx)("span",{className:"ml-4",children:T.z.industry.filter((function(e){return e.value==a.industry}))[0].text}):null]}),(0,B.jsxs)("td",{children:[(0,B.jsx)("span",{className:"label",children:"\u5e74\u53ce"}),null!=a.income&&"no_answer"!=a.income?(0,B.jsx)("span",{className:"ml-4",children:T.z.incomes.filter((function(e){return e.value==a.income}))[0].text}):null]})]}),null!=a.company?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u52e4\u52d9\u5148"})}),(0,B.jsx)("td",{colSpan:"3",children:(0,B.jsx)("div",{children:a.company})})]}):null]})]}),(0,B.jsxs)("table",{className:"profile-table",children:[(0,B.jsxs)("colgroup",{children:[(0,B.jsx)("col",{width:"35%"}),(0,B.jsx)("col",{width:"*"})]}),(0,B.jsxs)("tbody",{children:[null!=a.selfintro?(0,B.jsx)("tr",{children:(0,B.jsx)("td",{colSpan:"2",children:(0,B.jsx)("div",{onClick:function(){e.setState({introExpand:!e.state.introExpand})},className:this.state.introExpand?"expanded":"collapsed",dangerouslySetInnerHTML:{__html:a.selfintro.replace(/\n/g,"<br />")}})})}):null,null!=a.height?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u8eab\u9577"})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:a.height+"cm"})})]}):null,null!=a.bodyType?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u4f53\u578b"})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:T.z.bodyTypes.filter((function(e){return e.value==a.bodyType}))[0].text})})]}):null,null!=a.language?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u4f7f\u7528\u8a00\u8a9e"})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"mt-2",children:a.language.join("\u3001")})})]}):null,null!=a.homeType?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsxs)("div",{className:"label",children:["\u30a4\u30f3\u30c9\u30a2\u6d3e or ",(0,B.jsx)("br",{}),"\u30a2\u30a6\u30c8\u30c9\u30a2\u6d3e"]})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:a.homeType})})]}):null,null!=a.smoke?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u30bf\u30d0\u30b3"})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:T.z.smokes.filter((function(e){return e.value==a.smoke}))[0].text})})]}):null,null!=a.alcohol?(0,B.jsxs)("tr",{children:[(0,B.jsxs)("td",{children:[(0,B.jsx)("div",{className:"label",children:"\u304a\u9152"}),(0,B.jsx)("small",{children:"(\u3069\u306e\u304f\u3089\u3044\u55dc\u3080\u304b)"})]}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:T.z.alcoholTypes.filter((function(e){return e.value==a.alcohol}))[0].text})})]}):null,null!=a.exerciseType?(0,B.jsxs)("tr",{children:[(0,B.jsx)("td",{children:(0,B.jsx)("div",{className:"label",children:"\u904b\u52d5\u983b\u5ea6"})}),(0,B.jsx)("td",{children:(0,B.jsx)("div",{children:T.z.exerciseTypes.filter((function(e){return e.value==a.exerciseType}))[0].text})})]}):null,null!=a.hobby?(0,B.jsx)("tr",{children:(0,B.jsxs)("td",{colSpan:"2",children:[(0,B.jsx)("div",{className:"label",children:"\u8da3\u5473/\u8208\u5473\u95a2\u5fc3"}),(0,B.jsx)("div",{children:a.hobby.join("\u3001")})]})}):null]})]})]})}},{key:"_renderChat",value:function(e){var t=this;return"schedule_meet"!=e.status?null:(0,B.jsxs)("div",{children:[(0,B.jsx)("div",{className:"lunch-date-caution",children:"\u30c7\u30fc\u30c8\u306e\u4e88\u5b9a\u3092\u6c7a\u3081\u307e\u3057\u3087\u3046\uff01"}),null==this.state.user.info.phone||""==this.state.user.info.phone?(0,B.jsx)("div",{children:(0,B.jsxs)(f.Z,{children:[(0,B.jsx)("div",{className:"text-center",children:(0,B.jsx)("b",{children:"SMS\u901a\u77e5\u306b\u3064\u3044\u3066"})}),(0,B.jsx)("hr",{className:"my-3"}),this.state.phoneMessageShow&&(0,B.jsxs)("div",{className:"phone-intro-line",children:["\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306b\u96fb\u8a71\u756a\u53f7\u3092\u5165\u529b\u3059\u308b\u3068\u3001",(0,B.jsx)("br",{className:"d-lg-none"}),(0,B.jsx)("b",{children:"\u65b0\u7740\u30e1\u30c3\u30bb\u30fc\u30b8\u3092SMS\u901a\u77e5\u3067\u53d7\u3051\u53d6\u308c\u307e\u3059\uff01"}),(0,B.jsx)("br",{}),"\uff08\u3054\u7d39\u4ecb\u76f8\u624b\u306b\u96fb\u8a71\u756a\u53f7\u306f\u5171\u6709\u3055\u308c\u307e\u305b\u3093\uff09",(0,B.jsx)("br",{}),"\u96fb\u8a71\u756a\u53f7\u5165\u529b\u306f ",(0,B.jsx)(H.rU,{to:"/profile",className:"black-link",children:"\u3053\u3061\u3089"})]}),(0,B.jsx)("div",{className:"text-right",children:(0,B.jsxs)("span",{className:"close-message cursor-pointer",onClick:function(){var e=!t.state.phoneMessageShow;t.setState({phoneMessageShow:e}),localStorage.setItem("phone_message_show_value",e)},children:["[",this.state.phoneMessageShow?"\u9589\u3058\u308b":"\u8a73\u3057\u304f\u898b\u308b","]"]})})]})}):null,(0,B.jsx)("div",{className:"chatBox",ref:function(e){return t.container=e},children:"Loading..."}),this.initChat(),this._renderReport(e)]})}},{key:"_renderReport",value:function(e){var t=this,s=this.props.navigate,a=e.male_id==e.user.user_id;return(0,B.jsxs)("div",{className:"pb-5",children:[(0,B.jsx)("div",{className:"messageNotation",children:"\u30fb \u30c8\u30e9\u30d6\u30eb\u9632\u6b62\u306e\u70ba\u3001\u304a\u4f1a\u3044\u3059\u308b\u524d\u306bLINE\u7b49\u306e\u9023\u7d61\u5148\u306e\u4ea4\u63db\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u304a\u4e92\u3044\u306e\u4e86\u627f\u3092\u5f97\u3066\u304b\u3089\u884c\u3046\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u304a\u308a\u307e\u3059\u3002"}),a?(0,B.jsxs)("div",{className:"messageNotation",children:["\u30fb \u9055\u53cd/\u8ff7\u60d1\u884c\u70ba\u7b49\u306e\u3054\u5831\u544a\u306f",(0,B.jsx)("a",{href:"mailto:[email protected]?subject=\u9055\u53cd\u8ff7\u60d1\u30e6\u30fc\u30b6\u30fc\u901a\u5831 from:"+this.state.user.user_id+" to "+e.user.user_id,className:"black-link",children:"\u3053\u3061\u3089"})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{className:"messageNotation",children:["\u30fb \u9055\u53cd/\u8ff7\u60d1\u884c\u70ba\u7b49\u306e\u3054\u5831\u544a\u306f",(0,B.jsx)("a",{href:"mailto:[email protected]?subject=\u9055\u53cd\u8ff7\u60d1\u30e6\u30fc\u30b6\u30fc\u901a\u5831 from:"+this.state.user.user_id+" to "+e.user.user_id,className:"black-link",children:"\u3053\u3061\u3089"})]}),(0,B.jsxs)("div",{className:"messageNotation",children:["\u30fb \u4e00\u5ea6\u3082\u8fd4\u4fe1\u304c\u6765\u305a3\u65e5\u4ee5\u4e0a\u7d4c\u3063\u305f\u5834\u5408\u306e\u88dc\u586b\u7533\u8acb\u306f",(0,B.jsx)("span",{onClick:function(){var a=v()(new Date),n=v()(e.created_at);a.diff(n,"days")<3?D.Am.error("3\u65e5\u4ee5\u4e0a\u7d4c\u904e\u3057\u3066\u304b\u3089\u5831\u544a\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002",{position:"top-center",autoClose:5e3,closeOnClick:!0,hideProgressBar:!0,pauseOnHover:!0,draggable:!0,draggablePercent:50}):s("/report/"+t.props.match.params.id)},className:"black-link",children:"\u3053\u3061\u3089"})]})]})]})}},{key:"_renderVersionOne",value:function(){var e=this,t=this.state.match;return(0,B.jsxs)("div",{children:[this._renderScheduleInputViews(t),this._renderChat(t),(0,B.jsxs)(h.Z,{isOpen:this.state.open,toggle:function(){return e.setState({open:!e.state.open})},children:[(0,B.jsx)(o.Z,{toggle:function(){return e.setState({open:!e.state.open})},children:"\u30c7\u30fc\u30c8\u5019\u88dc\u65e5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"}),(0,B.jsx)("p",{className:"fontSmall red",children:"\u203b\u65b0\u578b\u30b3\u30ed\u30ca\u30a6\u30a4\u30eb\u30b9\u306e\u5f71\u97ff\u3067\u3001\u5404\u81ea\u6cbb\u4f53\u3088\u308a\u5916\u51fa\u81ea\u7c9b\u8981\u8acb\u304c\u51fa\u3066\u304a\u308a\u307e\u3059\u3002\u4e00\u6642\u7684\u306b\u30c7\u30fc\u30c8\u3067\u306f\u306a\u304f\u3001LINE\u7b49\u306e\u9023\u7d61\u5148\u4ea4\u63db\u3092\u63a8\u5968\u3057\u3066\u304a\u308a\u307e\u3059\u3002"}),(0,B.jsxs)(u.Z,{children:[(0,B.jsx)(U(),{dateFormat:"YYYY-MM-DD",selected:this.state.mySchedule.days[this.state.editingIndex]||new Date,onChange:this.handleCalenderChange}),(0,B.jsx)("label",{children:"\u6642\u9593\u5e2f(\u8907\u6570\u9078\u629e\u53ef)"}),(0,B.jsxs)(N.Z,{children:[(0,B.jsx)(N.Z.Column,{children:(0,B.jsx)(C.Z.Field,{control:_.Z,onChange:this.handleDayChecked,checked:null!=this.state.editingIndex&&this.state.mySchedule.times[this.state.editingIndex].day,label:"\u663c"})}),(0,B.jsx)(N.Z.Column,{className:"nightOption",children:(0,B.jsx)(C.Z.Field,{control:_.Z,onChange:this.handleNightChecked,checked:null!=this.state.editingIndex&&this.state.mySchedule.times[this.state.editingIndex].night,label:"\u591c"})})]}),(0,B.jsx)(Z.Z,{className:"mt-3",fluid:!0,basic:!0,color:"grey",onClick:function(){var t=e.state,s=t.mySchedule,a=t.editingIndex;null==s.days[a]&&(s.days[a]=v()(new Date).format("YYYY/MM/DD")),e.state.mySchedule.times[e.state.editingIndex].night||e.state.mySchedule.times[e.state.editingIndex].day?e.setState({open:!1,mySchedule:s},(function(){return e.postMatch()})):D.Am.error("\u6642\u9593\u5e2f\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002",{position:"top-center",autoClose:5e3,closeOnClick:!0,hideProgressBar:!0,pauseOnHover:!0,draggable:!0,draggablePercent:50})},children:"\u6c7a\u5b9a"}),(0,B.jsx)(Z.Z,{className:"mt-3",fluid:!0,basic:!0,color:"red",onClick:function(){var t=e.state,s=t.mySchedule,a=t.editingIndex;s.days[a]=null,e.setState({open:!1,mySchedule:s})},children:"\u524a\u9664"})]})]})]})}},{key:"_renderAreas",value:function(e,t){var s=this,a=this.state.match,n=a.male_id===t?a.male_areas:a.female_areas;
1if(console.log(n),null!=n){n=JSON.parse(n);var i=O.X.getDateAreas(this.state.user);return(0,B.jsxs)(f.Z,{children:[(0,B.jsx)(f.Z.Header,{children:(0,B.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,B.jsx)("div",{children:e}),this.state.user.user_id==t&&["wait_for_schedule","schedule_required"].includes(this.state.match.status)?(0,B.jsx)("div",{className:"schedule-edit-button",onClick:function(){s.setState({areasEditable:!0})},children:"\u7de8\u96c6\u3059\u308b"}):null]})}),(0,B.jsx)("hr",{className:"my-3"}),this.isValidAreasInput(n)?null:(0,B.jsx)("p",{children:"\u307e\u3060\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002"}),n.areaA?(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{children:i[0]}),(0,B.jsx)("br",{})]}):null,n.areaB?(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{children:i[1]}),(0,B.jsx)("br",{})]}):null,n.areaC?(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{children:i[2]}),(0,B.jsx)("br",{})]}):null,n.areaD?(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{children:i[3]}),(0,B.jsx)("br",{})]}):null,n.others?(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{children:"\u305d\u306e\u4ed6"}),(0,B.jsx)("br",{})]}):null]})}return(0,B.jsxs)(f.Z,{children:[(0,B.jsx)(f.Z.Header,{children:e}),(0,B.jsx)("hr",{className:"my-3"}),(0,B.jsx)("p",{children:"(\u307e\u3060\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093)"})]})}},{key:"isValidAreasInput",value:function(e){var t=Object.values(e).filter((function(e){return e}));return console.log("validSelection"),console.log(t),console.log("----"),0!=t.length}},{key:"_renderAreasCaution",value:function(){return this.isValidAreasInput(this.state.myAreas)?null:(0,B.jsx)("div",{children:(0,B.jsx)("p",{className:"availableDaysCaution",children:"\u5c11\u306a\u304f\u3068\u30821\u3064\u9078\u3093\u3067\u304f\u3060\u3055\u3044"})})}},{key:"_renderAreasInput",value:function(){var e=this,t=O.X.getDateAreas(this.state.user);return(0,B.jsx)("div",{children:(0,B.jsxs)(f.Z,{children:[(0,B.jsx)(f.Z.Header,{children:"\u3042\u306a\u305f\u306e\u5e0c\u671b"}),(0,B.jsx)("hr",{className:"my-3"}),this._renderAreasCaution(),(0,B.jsx)(_.Z,{onChange:this.handleAreasInput,label:(0,B.jsx)("label",{children:t[0]}),name:"areaA",checked:this.state.myAreas.areaA}),(0,B.jsx)("br",{}),(0,B.jsx)(_.Z,{onChange:this.handleAreasInput,label:(0,B.jsx)("label",{children:t[1]}),name:"areaB",checked:this.state.myAreas.areaB}),(0,B.jsx)("br",{}),(0,B.jsx)(_.Z,{onChange:this.handleAreasInput,label:(0,B.jsx)("label",{children:t[2]}),name:"areaC",checked:this.state.myAreas.areaC}),(0,B.jsx)("br",{}),(0,B.jsx)(_.Z,{onChange:this.handleAreasInput,label:(0,B.jsx)("label",{children:t[3]}),name:"areaD",checked:this.state.myAreas.areaD}),(0,B.jsx)("br",{}),(0,B.jsx)(_.Z,{onChange:this.handleAreasInput,label:(0,B.jsx)("label",{children:"\u305d\u306e\u4ed6"}),name:"others",checked:this.state.myAreas.others}),(0,B.jsx)(Z.Z,{className:"mt-3",fluid:!0,basic:!0,color:this.isValidAreasInput(this.state.myAreas)?"black":"lightGrey",onClick:function(){e.postMatchVerTwo()},children:"\u6c7a\u5b9a"})]})})}},{key:"_renderVersionTwo",value:function(){return(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{className:"blue-section-header text-center",children:["Step1",(0,B.jsx)("br",{}),"\u30c7\u30fc\u30c8\u5e0c\u671b\u5165\u529b"]}),(0,B.jsx)("div",{className:"lunch-date-caution",children:"\u307e\u305a\u306f\u6c17\u8efd\u306a\u30e9\u30f3\u30c1\u30c7\u30fc\u30c8\u3092\u63a8\u5968\u3057\u3066\u304a\u308a\u307e\u3059\u3002"}),this._renderAreas("\u304a\u76f8\u624b\u304c\u5165\u529b\u3057\u305f\u5019\u88dc",this.state.match.user.user_id),"schedule_required"===this.state.match.status||this.state.areasEditable?this._renderAreasInput():null,"schedule_meet"!==this.state.match.status&&"wait_for_schedule"!==this.state.match.status||this.state.areasEditable?null:this._renderAreas("\u3042\u306a\u305f\u306e\u5019\u88dc",this.state.user.user_id),(0,B.jsxs)("div",{className:"blue-section-header text-center",children:["Step2",(0,B.jsx)("br",{}),"\u30e1\u30c3\u30bb\u30fc\u30b8"]}),this._renderStep2Intro(),this._renderChat(this.state.match)]})}},{key:"_renderStep2Intro",value:function(){return["penalty","penalty_victim","not_count"].includes(this.state.match.status)?(0,B.jsxs)("div",{className:"MessageSamplebox",children:[(0,B.jsx)("p",{children:"Step2\u306b\u81f3\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002"}),"penalty_victim"==this.state.match.status?(0,B.jsx)("p",{children:"\u304a\u76f8\u624b\u304cstep1\u3092\u5165\u529b\u3057\u306a\u304b\u3063\u305f\u70ba\u3001\u7d39\u4ecb\u6570\u306f\u6d88\u8cbb\u3055\u308c\u307e\u305b\u3093\u3002"}):null]}):"schedule_meet"!=this.state.match.status?(0,B.jsxs)("div",{className:"MessageSamplebox",children:[(0,B.jsx)(I.Z,{src:Y}),(0,B.jsx)("div",{className:"MessageSampleText",children:"\u304a\u4e8c\u4eba\u304cStep1\u3092\u5165\u529b\u3059\u308b\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3067\u304d\u307e\u3059\u3002"})]}):null}},{key:"render",value:function(){var e=this,t=this.props.navigate,s=this.state,a=s.match,n=s.user;return null==a||null==n?(0,B.jsx)("div",{className:"LoadingIndicator",children:(0,B.jsx)(w.Z,{active:!0,inline:"centered",children:"Loading"})}):null==a.user?(0,B.jsxs)("div",{children:[(0,B.jsx)(M.Z,{children:(0,B.jsx)(M.Z.Item,{onClick:function(){t("/home")},children:(0,B.jsx)(b.Z,{name:"angle left"})})}),"\u304a\u76f8\u624b\u304c\u9000\u4f1a\u6e08\u3067\u3059\u3002"]}):(0,B.jsxs)("div",{className:"match-detail-page",children:[(0,B.jsx)(A.Z,{isLoading:this.state.isHTTPRequesting}),(0,B.jsx)(M.Z,{children:(0,B.jsx)(M.Z.Item,{onClick:function(){t("/home")},children:(0,B.jsx)(b.Z,{name:"angle left"})})}),(0,B.jsxs)(m.Z,{children:[(0,B.jsx)(D.Ix,{}),(0,B.jsx)("div",{children:"male"==this.state.user.sex?(0,B.jsxs)(f.Z,{className:"mb-4",children:[(0,B.jsx)("div",{className:"text-center",children:(0,B.jsx)("b",{children:"\u4e0b\u8a18\u306e\u5834\u5408\u306f\u3054\u7d39\u4ecb\u3092\u88dc\u586b\u81f4\u3057\u307e\u3059\u3002"})}),(0,B.jsx)("hr",{className:"my-3"}),this.state.supplementMessageShow&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"supplement-line mb-3",children:"01. Step1\u5165\u529b\u5f8c\u3001\u304a\u76f8\u624b\u304c\u4e00\u9031\u9593\u4ee5\u4e0aStep1\u3092\u5165\u529b\u3057\u306a\u3044\u5834\u5408\uff08\u81ea\u52d5\u3067\u88dc\u586b\u3055\u308c\u307e\u3059\uff09"}),(0,B.jsx)("div",{className:"supplement-line",children:"02. \u304a\u76f8\u624b\u304b\u3089\u4e00\u5ea6\u3082\u30e1\u30c3\u30bb\u30fc\u30b8\u8fd4\u4fe1\u304c\u7121\u3044\u5834\u5408\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\u753b\u9762\u4e0b\u306e\u201d\u88dc\u586b\u7533\u8acb\u201d\u3088\u308a\u3054\u5831\u544a\u4e0b\u3055\u3044\uff09"})]}),(0,B.jsx)("div",{className:"text-right",children:(0,B.jsxs)("span",{className:"close-message cursor-pointer",onClick:function(){var t=!e.state.supplementMessageShow;e.setState({supplementMessageShow:t}),localStorage.setItem("supplement_message_show_value",t)},children:["[",this.state.supplementMessageShow?"\u9589\u3058\u308b":"\u8a73\u3057\u304f\u898b\u308b","]"]})})]}):(0,B.jsxs)(f.Z,{className:"mb-4",children:[(0,B.jsxs)("div",{className:"text-center red",children:[(0,B.jsx)(b.Z,{name:"warning sign"}),"\u4e0b\u8a18\u884c\u52d5\u304c\u78ba\u8a8d\u3055\u308c\u305f\u5834\u5408\u306b\u306f\u3001\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5bfe\u8c61\u5916\u3001\u6b21\u56de\u4ee5\u964d\u306e\u3054\u7d39\u4ecb\u306b\u5f71\u97ff\u304c\u51fa\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002"]}),(0,B.jsx)("hr",{className:"my-3"}),this.state.supplementMessageShow&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{className:"supplement-line mb-3",children:"01. \u30c7\u30fc\u30c8\u5019\u88dc\u5730\u306e\u672a\u5165\u529b\u304c\u8907\u6570\u56de\u7d9a\u304f"}),(0,B.jsx)("div",{className:"supplement-line",children:"02. \u304a\u76f8\u624b\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7121\u8996\u3059\u308b\u3001\u305d\u306e\u4ed6\u304a\u76f8\u624b\u304c\u4e0d\u5feb\u3068\u601d\u3046\u8a00\u52d5\u3092\u884c\u3046"})]}),(0,B.jsx)("div",{className:"text-right",children:(0,B.jsxs)("span",{className:"close-message cursor-pointer",onClick:function(){var t=!e.state.supplementMessageShow;e.setState({supplementMessageShow:t}),localStorage.setItem("supplement_message_show_value",t)},children:["[",this.state.supplementMessageShow?"\u9589\u3058\u308b":"\u8a73\u3057\u304f\u898b\u308b","]"]})})]})}),(0,B.jsx)("div",{children:this._renderProfile()}),2==this.state.match.version?this._renderVersionTwo():this._renderVersionOne()]})]})}},{key:"setAvailableDays",value:function(){var e=this.state.match;null!=e&&(e.male_id===e.user.user_id&&null!=e.female_areas&&this.setState({myAreas:JSON.parse(e.female_areas)}),e.female_id===e.user.user_id&&null!=e.male_areas&&this.setState({myAreas:JSON.parse(e.male_areas)}))}},{key:"getMatch",value:function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){var s,n,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s="/matches/"+t,console.log(s),e.prev=2,e.next=5,g.b.get("brightappapi",s);case 5:n=e.sent,i=n[0],console.log(i),this.setState({match:i}),2==i.version?this.setAvailableDays():this.setMySchedules(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[2,12]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getCurrentUser",value:function(){var e=(0,n.Z)((0,a.Z)().mark((function e(){var t,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props.navigate,e.prev=1,e.next=4,g.b.get("brightappapi","/userStatus");case 4:s=e.sent,O.X.isRegistrationCompleted(s)?(console.log(s),this.setState({user:s})):t("/regist"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t("/");case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"postMatchVerTwo",value:function(){var e=(0,n.Z)((0,a.Z)().mark((function e(){var t,s,n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this.state.match&&this.isValidAreasInput(this.state.myAreas)){e.next=2;break}return e.abrupt("return");case 2:return t="/matches/"+this.state.match.id,s={version:2,availableDays:this.state.myAreas},e.prev=4,this.setState({isHTTPRequesting:!0}),e.next=8,g.b.post("brightappapi",t,{body:s});case 8:return n=e.sent,console.log(n),e.next=12,this.getMatch(this.props.match.params.id);case 12:this.initChat(),this.setState({isHTTPRequesting:!1,areasEditable:!1}),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(4),console.log(e.t0),this.setState({isHTTPRequesting:!1});case 20:case"end":return e.stop()}}),e,this,[[4,16]])})));return function(){return e.apply(this,arguments)}}()},{key:"postMatch",value:function(){var e=(0,n.Z)((0,a.Z)().mark((function e(){var t,s;return(0,a.Z)().wrap((function(e){for(;;
1)switch(e.prev=e.next){case 0:if(null!=this.state.match){e.next=2;break}return e.abrupt("return");case 2:if(0!=this.state.mySchedule.days.filter((function(e){return null!=e})).length||this.state.shareContactOption){e.next=6;break}return D.Am.error("\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002",{position:"top-center",autoClose:5e3,closeOnClick:!0,hideProgressBar:!0,pauseOnHover:!0,draggable:!0,draggablePercent:50}),e.abrupt("return");case 6:return t="/matches/"+this.state.match.id,s={shareContactOption:this.state.shareContactOption,schedule:this.state.mySchedule},e.prev=8,this.setState({isHTTPRequesting:!0}),e.next=12,g.b.post("brightappapi",t,{body:s});case 12:return e.sent,e.next=15,this.getMatch(this.props.match.params.id);case 15:this.initChat(this.state.user,this.state.match.user),this.setState({isHTTPRequesting:!1}),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(8),console.log(e.t0),this.setState({isHTTPRequesting:!1});case 23:case"end":return e.stop()}}),e,this,[[8,19]])})));return function(){return e.apply(this,arguments)}}()},{key:"setMySchedules",value:function(){var e=this.state.match;if(null!=e){e.male_id===e.user.user_id&&this.setState({shareContactOption:e.female_open_contact}),e.female_id===e.user.user_id&&this.setState({shareContactOption:e.male_open_contact});var t=null;e.female_id===e.user.user_id&&(t=e.male_available_days),e.male_id===e.user.user_id&&(t=e.female_available_days);var s=JSON.parse(t);null!=s&&null!=s.days&&(s.days=s.days.map((function(e){if(null!=e)return new Date(e)})),this.setState({mySchedule:s}))}}}]),s}(d.Component),R=(0,z.E)(L)},8625:function(e,t,s){var a=s(15671),n=s(43144),i=s(60136),r=s(27277),l=s(47313),c=s(75192),d=s.n(c),h=s(96502),o=s(46417),u=function(e){(0,i.Z)(s,e);var t=(0,r.Z)(s);function s(e){return(0,a.Z)(this,s),t.call(this,e)}return(0,n.Z)(s,[{key:"styleForOverlay",get:function(){return{background:"rgba(0, 0, 0, 0.2)",position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:10,display:"block"}}},{key:"render",value:function(){return this.props.isLoading?(0,o.jsx)("div",{style:this.styleForOverlay,children:(0,o.jsx)(h.p2,{height:"80",width:"80",color:"#dcdcdc",ariaLabel:"circles-loading",wrapperStyle:{justifyContent:"center",alignItems:"center",height:"100%"},wrapperClass:"",visible:!0})}):null}}],[{key:"propTypes",get:function(){return{isLoading:d().bool}}}]),s}(l.Component);t.Z=u},21222:function(e,t,s){s.d(t,{X:function(){return r}});var a=s(43598),n=s(70816),i=s.n(n),r={isRegistrationCompleted:function(e){return null!=e.info&&null!=e.info.nickname&&null!=e.info.email&&null!=e.info.sex&&null!=e.info.income&&null!=e.info.bachelor&&null!=e.info.master&&null!=e.info.doctor&&null!=e.info.planOnRegist&&null!=e.info.age},getDateAreas:function(e){if(e.info.address){if(a.z.kanto.includes(e.info.address))return["\u6075\u6bd4\u5bff/\u4ee3\u5b98\u5c71/\u4e2d\u76ee\u9ed2","\u9280\u5ea7/\u4e38\u306e\u5185","\u516d\u672c\u6728/\u9ebb\u5e03","\u9752\u5c71/\u8868\u53c2\u9053"];if(a.z.kansai.includes(e.info.address))return["\u56db\u6761","\u6885\u7530","\u96e3\u6ce2","\u4e09\u5bae"];if(a.z.tokai.includes(e.info.address))return["\u6804","\u8c4a\u6a4b","\u6d5c\u677e","\u67f3\u30b1\u702c"]}return["\u6075\u6bd4\u5bff/\u4ee3\u5b98\u5c71/\u4e2d\u76ee\u9ed2","\u9280\u5ea7/\u4e38\u306e\u5185","\u516d\u672c\u6728/\u9ebb\u5e03","\u9752\u5c71/\u8868\u53c2\u9053"]},getUserAge:function(e){return null==e.birthday?e.age:Math.floor(i()().diff(i()(new Date(e.birthday)),"year",!0))}}},81402:function(e,t,s){s.d(t,{E:function(){return r}});var a=s(1413),n=s(58467),i=s(46417);function r(e){return function(t){var s={params:(0,n.UO)()};return(0,i.jsx)(e,(0,a.Z)((0,a.Z)({},t),{},{match:s}))}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.