1"use strict";(self.webpackChunkdemoapp=self.webpackChunkdemoapp||[]).push([[493],{71493:(O,R,g)=>{g.r(R),g.d(R,{CounselingReservationsModule:()=>Ge});var d=g(60177),D=g(93887),N=g(34901),l=g(84341),v=g(52),f=g(65897),b=g(34978),E=g(10467),F=g(5198),C=g(94756),M=g(94412),k=g(68312),j=g(18359),G=g(95816),T=g(60901),e=g(54438);let P=(()=>{var i;class o{constructor(n,t){this.http=n,this.datePipe=t}setReservationDate(n,t,r,s){this.reservationDate=n,this.reservationForm=t,this.reservationNew=r,this.reservableDays=s}resetReservationDate(){this.reservationDate=null,this.reservationForm=null,this.reservationNew=null,this.reservableDays=null}getReservationDate(){return this.reservationDate}getReservationForm(){return this.reservationForm}getReservationNew(){return this.reservationNew}getReservableDays(){return this.reservableDays}getReservationTicket(n){return this.http.send("GET",{url:"users/counseling_bookings/"+n})}createReservation(n){var t;const s=new FormData;["given_name","given_name_kana","family_name","family_name_kana","phone_number"].forEach(m=>{null!=n[m]&&s.append(m,n[m].toString())}),null===(t=n.user_reservable_dates_attributes)||void 0===t||t.forEach((m,c)=>{if(m.id&&!m.active)s.append("user_reservable_dates_attributes[".concat(c,"][id]"),m.id.toString()),s.append("user_reservable_dates_attributes[".concat(c,"][_destroy]"),"1");else if(m.active){var _;m.id&&s.append("user_reservable_dates_attributes[".concat(c,"][id]"),null===(_=m.id)||void 0===_?void 0:_.toString()),s.append("user_reservable_dates_attributes[".concat(c,"][day_of_week]"),m.day_of_week),s.append("user_reservable_dates_attributes[".concat(c,"][start_at]"),this.datePipe.transform(m.start_at,"yyyy-MM-ddTHH:mm:00+09:00")),s.append("user_reservable_dates_attributes[".concat(c,"][end_at]"),this.datePipe.transform(m.end_at,"yyyy-MM-ddTHH:mm:00+09:00"))}});const a=n.bookings_attributes;a.ticket_id&&s.append("bookings_attributes[0][ticket_id]",a.ticket_id.toString()),s.append("bookings_attributes[0][clinic_id]",a.clinic_id.toString()),s.append("bookings_attributes[0][status]",a.status),s.append("bookings_attributes[0][booking_type]",a.booking_type),s.append("bookings_attributes[0][other_question]",a.other_question),s.append("bookings_attributes[0][treatment_question]",a.treatment_question),s.append("bookings_attributes[0][is_first_time_visiting]",a.is_first_time_visiting?"1":"0"),s.append("bookings_attributes[0][same_day_treatment]",a.same_day_treatment?"1":"0"),a.booking_candidates_attributes.forEach((m,c)=>{s.append("bookings_attributes[0][booking_candidates_attributes][".concat(c,"][candidate_order]"),m.candidate_order.toString()),m.start_at&&m.end_at&&(s.append("bookings_attributes[0][booking_candidates_attributes][".concat(c,"][start_at]"),this.datePipe.transform(m.start_at,"yyyy-MM-ddTHH:mm:00+09:00")),s.append("bookings_attributes[0][booking_candidates_attributes][".concat(c,"][end_at]"),this.datePipe.transform(m.end_at,"yyyy-MM-ddTHH:mm:00+09:00")))});const p={};return p[T.u]="1",this.http.send("POST",{url:"users/counseling_bookings",body:s,headers:p})}getClinicReservableDateMonth(n){return this.http.send("GET",{url:"clinic_reservable_dates/month",params:n})}getClinicReservableDateSlot(n){return this.http.send("GET",{url:"clinic_reservable_dates/slots",params:n})}}return(i=o).\u0275fac=function(n){return new(n||i)(e.KVO(G.k),e.KVO(d.vh))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),o})();var $=g(78188),A=g(16769),I=g(54375);const S=(i,o)=>({"is-active":i,"is-done":o});function Y(i,o){if(1&i&&(e.j41(0,"li",2),e.EFF(1),e.k0s()),2&i){const u=o.$implicit,n=o.index,t=e.XpG();e.Y8G("ngClass",e.l_i(2,S,u.isActive,n+1<t.activeStep)),e.R7$(),e.JRh(u.name)}}let y=(()=>{var i;class o{constructor(){this.list=[{name:"\u4e88\u7d04\u60c5\u5831\u5165\u529b",isActive:!0},{name:"\u4e88\u7d04\u60c5\u5831\u78ba\u8a8d",isActive:!1},{name:"\u4e88\u7d04\u5b8c\u4e86",isActive:!1}]}ngOnInit(){this.setActiveStep()}setActiveStep(){this.activeStep&&this.list.forEach((n,t)=>{n.isActive=t+1===this.activeStep})}}return(i=o).\u0275fac=function(n){return new(n||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["app-counseling-reservation-flow-list"]],inputs:{activeStep:"activeStep"},decls:2,vars:1,consts:[[1,"flow-list"],["class","flow-list-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"flow-list-item",3,"ngClass"]],template:function(n,t){1&n&&(e.j41(0,"ol",0),e.DNE(1,Y,2,5,"li",1),e.k0s()),2&n&&(e.R7$(),e.Y8G("ngForOf",t.list))},dependencies:[d.YU,d.Sq],styles:['.flow-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-column-gap:28px;font-size:12px;font-weight:700;text-align:center;list-style:none;margin:0;padding:0}.flow-list-item[_ngcontent-%COMP%]{position:relative;background-color:#fff;border:solid 1px #999999;border-radius:2px;line-height:1;padding:12px 8px}.flow-list-item.is-active[_ngcontent-%COMP%]{background-color:#8c8168;color:#fff}.flow-list-item.is-done[_ngcontent-%COMP%]{background-color:#0000001f;border:1px solid rgba(0,0,0,.19);color:#0006}.flow-list-item[_ngcontent-%COMP%] + .flow-list-item[_ngcontent-%COMP%]:before{content:"\\f054";color:#cab994;font-family:"Font Awesome 5 Pro";font-size:18px;font-weight:400;display:inline-block;position:absolute;top:9px;left:-18px}']}
1),o})();const w=i=>({"is-disabled":i}),V=i=>[i];function J(i,o){if(1&i&&(e.j41(0,"section",50)(1,"h2",51),e.EFF(2,"\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u4e88\u7d04\u3059\u308b\u30c1\u30b1\u30c3\u30c8"),e.k0s(),e.j41(3,"dl",52)(4,"dt",53),e.EFF(5),e.k0s(),e.j41(6,"dd",54)(7,"div",55),e.nrm(8,"app-image",56),e.k0s(),e.j41(9,"div",57)(10,"p",58),e.EFF(11),e.k0s()()()()()),2&i){const u=e.XpG();e.R7$(5),e.SpI(" ",u.newData.clinic.name," "),e.R7$(3),e.Y8G("ticketAvatar",u.newData.clinic.image),e.R7$(3),e.JRh(u.newData.ticket.title)}}function U(i,o){}function q(i,o){1&i&&e.DNE(0,U,0,0,"ng-template")}function K(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u30af\u30ea\u30cb\u30c3\u30af\u306e\u6765\u9662\u6b74\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function X(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u5f53\u65e5\u306e\u65bd\u8853\u5e0c\u671b\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function z(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u6765\u9662\u306e\u7b2c\u4e00\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function L(i,o){if(1&i){const u=e.RV6();e.j41(0,"img",60),e.bIt("click",function(){e.eBV(u);const t=e.XpG();return e.Njj(t.deleteDate(1))}),e.k0s()}}function H(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u6765\u9662\u306e\u7b2c\u4e8c\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function Q(i,o){if(1&i){const u=e.RV6();e.j41(0,"img",60),e.bIt("click",function(){e.eBV(u);const t=e.XpG();return e.Njj(t.deleteDate(2))}),e.k0s()}}function W(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u6765\u9662\u306e\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function Z(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function ee(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u306e\u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function te(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u96fb\u8a71\u756a\u53f7\u3092\u534a\u89d2\u6570\u5b57\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}function ne(i,o){if(1&i&&(e.j41(0,"li",61),e.nrm(1,"input",62),e.j41(2,"label",63),e.EFF(3),e.k0s()()),2&i){const u=o.$implicit,n=o.index;e.Y8G("formGroupName",n),e.R7$(),e.Y8G("id","day-of-week"+n),e.R7$(),e.Y8G("for","day-of-week"+n),e.R7$(),e.JRh(u)}}function ie(i,o){if(1&i){const u=e.RV6();e.j41(0,"div",68)(1,"dt",69),e.EFF(2),e.k0s(),e.j41(3,"dd",70)(4,"input",71),e.bIt("click",function(){e.eBV(u);const t=e.XpG().index,r=e.XpG(2);return e.Njj(r.openUserTimeSlot(t))}),e.k0s()()()}if(2&i){const u=e.XpG().$implicit;e.R7$(2),e.SpI(" ",u,"\u66dc\u65e5 ")}}function ue(i,o){if(1&i&&(e.qex(0,66),e.DNE(1,ie,5,1,"div",67),e.bVm()),2&i){let u;const n=o.index,t=e.XpG(2);e.Y8G("formGroupName",n),e.R7$(),e.Y8G("ngIf",null==(u=t.reservationForm.get(t.formNames.userReservableTimes).get(e.eq3(2,V,n)).value)?null:u.active)}}function oe(i,o){if(1&i&&(e.j41(0,"dl",64),e.DNE(1,ue,2,4,"ng-container",65),e.k0s()),2&i){const u=e.XpG();e.R7$(),e.Y8G("ngForOf",u.wday)}}function se(i,o){1&i&&(e.j41(0,"p",59),e.EFF(1,"\u9078\u629e\u3057\u305f\u66dc\u65e5\u306e\u6765\u9662\u3057\u3084\u3059\u3044\u6642\u9593\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044"),e.k0s())}
1function re(i,o){if(1&i&&(e.j41(0,"section",74)(1,"h3",12),e.EFF(2),e.k0s(),e.j41(3,"p",75),e.EFF(4),e.k0s()()),2&i){const u=o.$implicit;e.R7$(2),e.JRh(u.title),e.R7$(2),e.JRh(u.text)}}function ae(i,o){if(1&i&&(e.j41(0,"section",8)(1,"h2",9),e.EFF(2,"\u30af\u30ea\u30cb\u30c3\u30af\u304b\u3089\u306e\u6ce8\u610f\u4e8b\u9805"),e.k0s(),e.j41(3,"div",10)(4,"div",72),e.DNE(5,re,5,2,"section",73),e.k0s()()()),2&i){const u=e.XpG();e.R7$(5),e.Y8G("ngForOf",u.newData.clinic.reservation_note)}}function le(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u30af\u30ea\u30cb\u30c3\u30af\u306e\u6765\u9662\u6b74\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function ce(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u5f53\u65e5\u306e\u65bd\u8853\u5e0c\u671b\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function me(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u6765\u9662\u306e\u7b2c\u4e00\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function pe(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u6765\u9662\u306e\u7b2c\u4e8c\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function ge(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u6765\u9662\u306e\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function de(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function _e(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u306e\u304a\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function ve(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u96fb\u8a71\u756a\u53f7\u3092\u534a\u89d2\u6570\u5b57\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function fe(i,o){1&i&&(e.j41(0,"li",79),e.EFF(1," \u9078\u629e\u3057\u305f\u66dc\u65e5\u306e\u6765\u9662\u3057\u3084\u3059\u3044\u6642\u9593\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 "),e.k0s())}function Ce(i,o){if(1&i&&(e.j41(0,"ul",77),e.DNE(1,le,2,0,"li",78)(2,ce,2,0,"li",78)(3,me,2,0,"li",78)(4,pe,2,0,"li",78)(5,ge,2,0,"li",78)(6,de,2,0,"li",78)(7,_e,2,0,"li",78)(8,ve,2,0,"li",78)(9,fe,2,0,"li",78),e.k0s()),2&i){let u,n,t,r,s,a,p,m;const c=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==(u=c.reservationForm.get(c.formNames.is_first_time_visiting).errors)?null:u.required),e.R7$(),e.Y8G("ngIf",null==(n=c.reservationForm.get(c.formNames.same_day_treatment).errors)?null:n.required),e.R7$(),e.Y8G("ngIf",(null==(t=c.getClinicReservable(0).get("day").errors)?null:t.required)||(null==(t=c.getClinicReservable(0).get("time").errors)?null:t.required)),e.R7$(),e.Y8G("ngIf",null==(r=c.getClinicReservable(1).get("time").errors)?null:r.required),e.R7$(),e.Y8G("ngIf",null==(s=c.getClinicReservable(2).get("time").errors)?null:s.required),e.R7$(),e.Y8G("ngIf",(null==(a=c.reservationForm.get(c.formNames.userFamilyName).errors)?null:a.required)||(null==(a=c.reservationForm.get(c.formNames.userGivenName).errors)?null:a.required)),e.R7$(),e.Y8G("ngIf",(null==(p=c.reservationForm.get(c.formNames.userFamilyNameKana).errors)?null:p.required)||(null==(p=c.reservationForm.get(c.formNames.userGivenNameKana).errors)?null:p.required)||(null==(p=c.reservationForm.get(c.formNames.userFamilyNameKana).errors)?null:p.isZenkakuKana)||(null==(p=c.reservationForm.get(c.formNames.userGivenNameKana).errors)?null:p.isZenkakuKana)),e.R7$(),e.Y8G("ngIf",null==(m=c.reservationForm.get(c.formNames.userPhoneNumber).errors)?null:m.required),e.R7$(),e.Y8G("ngIf",c.userReservableTimeValidate())}}function Fe(i,o){if(1&i&&e.DNE(0,Ce,10,9,"ul",76),2&i){const u=e.XpG(),n=e.sdS(5);e.Y8G("ngIf",n.submitted&&u.reservationForm.invalid)}}let he=(()=>{var i;class o{constructor(n,t,r,s,a,p){this.formBuilder=n,this.dialog=t,this.datePipe=r,this.router=s,this.route=a,this.reservationsService=p,this.formNames={is_first_time_visiting:"is_first_time_visiting",same_day_treatment:"same_day_treatment",clinicReservable:"clinicReservable",userReservableTimes:"userReservableTimes",userFamilyName:"userFamilyName",userFamilyNameKana:"userFamilyNameKana",userGivenName:"userGivenName",userGivenNameKana:"userGivenNameKana",userPhoneNumber:"userPhoneNumber",otherQuestion:"otherQuestion",treatmentQuestion:"treatmentQuestion"},this.reservationForm=new l.gE({[this.formNames.is_first_time_visiting]:new l.MJ("",l.k0.required),[this.formNames.same_day_treatment]:new l.MJ("",l.k0.required),[this.formNames.clinicReservable]:this.formBuilder.array([this.formBuilder.group({day:new l.MJ("",l.k0.required),time:new l.MJ("",l.k0.required)}),this.formBuilder.group({day:new l.MJ(""),time:new l.MJ("")}
1),this.formBuilder.group({day:new l.MJ(""),time:new l.MJ("")})]),[this.formNames.userReservableTimes]:this.formBuilder.array([this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1}),this.formBuilder.group({time:new l.MJ(""),active:!1})]),[this.formNames.userFamilyName]:new l.MJ("",l.k0.required),[this.formNames.userFamilyNameKana]:new l.MJ("",[l.k0.required,k.h]),[this.formNames.userGivenName]:new l.MJ("",l.k0.required),[this.formNames.userGivenNameKana]:new l.MJ("",[l.k0.required,k.h]),[this.formNames.userPhoneNumber]:new l.MJ("",[l.k0.required,M.E]),[this.formNames.otherQuestion]:new l.MJ(""),[this.formNames.treatmentQuestion]:new l.MJ("")}),this.newData={},this.reservableDays={},this.wday=["\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f","\u65e5"],this.userReservableDateKey=["mon","tue","wed","thu","fri","sat","sun"],this.subscriptions=new j.yU}ngOnInit(){var n=this;return(0,E.A)(function*(){n.paramsId=n.route.snapshot.paramMap.get("id"),n.newData=yield n.reservationsService.getReservationTicket(n.paramsId);const t=n.reservationsService.getReservationForm();t?(n.reservationForm=t,n.reservableDays=n.reservationsService.getReservableDays()):n.initUserData(),n.clinicReservableSubscribe(),n.userReservableSubscribe()})()}initUserData(){const n=this.newData,t=this.reservationForm,r=this.formNames;t.patchValue({[r.userFamilyName]:n.user.family_name}),t.patchValue({[r.userFamilyNameKana]:n.user.family_name_kana}),t.patchValue({[r.userGivenName]:n.user.given_name}),t.patchValue({[r.userGivenNameKana]:n.user.given_name_kana}),t.patchValue({[r.userPhoneNumber]:n.user.phone_number}),this.userReservableDateKey.forEach((s,a)=>
1{if(!n.user_reservable_dates[s])return;const p=this.datePipe.transform(n.user_reservable_dates[s][0].start,"HH:mm")+"\u301c"+this.datePipe.transform(n.user_reservable_dates[s][0].end,"HH:mm");this.getUserReservableTime(a).patchValue({time:p,active:!0})})}clinicReservableSubscribe(){[1,2].forEach(n=>{const t=this.getClinicReservable(n);this.subscriptions.add(t.get("day").valueChanges.subscribe(r=>{r?t.get("time").setValidators(l.k0.required):t.get("time").clearValidators(),t.get("time").updateValueAndValidity()}))})}userReservableSubscribe(){[0,1,2,3,4,5,6].forEach(n=>{const t=this.getUserReservableTime(n);this.subscriptions.add(t.get("active").valueChanges.subscribe(r=>{r?t.get("time").setValidators(l.k0.required):t.get("time").clearValidators(),t.get("time").updateValueAndValidity()}))})}changeRadio(n,{value:t}){this.reservationForm.patchValue({[this.formNames[n]]:t})}isCheckedWeek(){return this.reservationForm.get(this.formNames.userReservableTimes).value.some(t=>t.active)}getUserReservableTime(n){return this.reservationForm.get(this.formNames.userReservableTimes).get([n])}userReservableTimeValidate(){return[...Array(7)].map((n,t)=>t).some(n=>{var t;return null===(t=this.getUserReservableTime(n).get("time").errors)||void 0===t?void 0:t.required})}openUserTimeSlot(n){const t=this.getUserReservableTime(n),r=[];let s=new Date(0,0,0);const a=new Date(0,0,1);for(;s<a;)r.push({label:this.datePipe.transform(s,"HH:mm"),active:!0}),s=new Date(0,0,0,s.getHours(),s.getMinutes()+30);this.userSlotRef=this.dialog.open($.X,{data:{slots:r,selectDayText:this.wday[n]+"\u66dc\u65e5"},width:"500px"}),this.subscriptions.add(this.userSlotRef.closed.subscribe(m=>{m&&t.patchValue({time:m.startLabel+"\u301c"+m.endLabel})}))}deleteDate(n){this.getClinicReservable(n).patchValue({day:"",time:""}),this.reservableDays[n]=""}getClinicReservable(n){return this.reservationForm.get(this.formNames.clinicReservable).get([n])}openCalendar(n){var t=this;return(0,E.A)(function*(){const r=t.getClinicReservable(n),s=t.reservableDays[n]||new Date,a=new Date(s.getFullYear(),s.getMonth()+1,1),p=yield t.reservationsService.getClinicReservableDateMonth({clinic_id:"krc"+t.newData.clinic.id,month:t.datePipe.transform(s,"yyyyMM")});t.calendarRef=t.dialog.open(F.X,{data:{year:p.year,month:p.month,reservableDates:p.reservable_dates,clinicId:t.newData.clinic.id,currentMonth:a,selectedDay:t.reservableDays[n],order:n},width:"500px"}),t.subscriptions.add(t.calendarRef.closed.subscribe(c=>{c&&(r.patchValue({time:""}),t.reservableDays[n]=c,r.patchValue({day:t.datePipe.transform(c,"yyyy\u5e74M\u6708dd\u65e5\uff08"+t.wday.map((_,B)=>t.wday.slice(B-1)[0])[c.getDay()]+"\uff09")}),t.openTimeSlot(n))}))})()}openTimeSlot(n){var t=this;return(0,E.A)(function*(){const r=t.getClinicReservable(n);if(r.value.day){const s=t.datePipe.transform(t.reservableDays[n],"yyyyMMdd"),a=yield t.reservationsService.getClinicReservableDateSlot({clinic_id:"krc"+t.newData.clinic.id,day:s});t.slotRef=t.dialog.open(C._,{data:{slots:a.slots,minimumSlots:a.minimum_slots,selectDayText:r.value.day,reservableDate:t.reservableDays[n]},width:"500px"}),t.subscriptions.add(t.slotRef.closed.subscribe(m=>{m&&r.patchValue({time:m.startLabel+"\u301c"+m.endLabel})}))}})()}convertUserReservableTimeToDate(n){var t;const r=this.getUserReservableTime(n),[s,a]=null===(t=r.value.time)||void 0===t?void 0:t.split("\u301c");if(s&&a)return{start_at:new Date(0,0,0,s.split(":")[0],s.split(":")[1]),end_at:new Date(0,0,0,a.split(":")[0],a.split(":")[1])}}convertClinicReservableTimeToDate(n){var t;const r=this.getClinicReservable(n),[s,a]=null===(t=r.value.time)||void 0===t?void 0:t.split("\u301c");if(s&&a)return{start_at:new Date(this.reservableDays[n].getFullYear(),this.reservableDays[n].getMonth(),this.reservableDays[n].getDate(),s.split(":")[0],s.split(":")[1]),end_at:new Date(this.reservableDays[n].getFullYear(),this.reservableDays[n].getMonth(),this.reservableDays[n].getDate(),a.split(":")[0],a.split(":")[1])}}setBookingCandidateAttributes(){const n=[];return n.push({candidate_order:1,...this.convertClinicReservableTimeToDate(0)}),this.reservableDays[1]&&n.push({candidate_order:2,...this.convertClinicReservableTimeToDate(1)}),this.reservableDays[2]&&n.push({candidate_order:3,...this.convertClinicReservableTimeToDate(2)}),n}submit(){var n;
1if(this.reservationForm.invalid)return void window.scroll(0,0);const t={given_name:this.reservationForm.get(this.formNames.userGivenName).value,given_name_kana:this.reservationForm.get(this.formNames.userGivenNameKana).value,family_name:this.reservationForm.get(this.formNames.userFamilyName).value,family_name_kana:this.reservationForm.get(this.formNames.userFamilyNameKana).value,phone_number:this.reservationForm.get(this.formNames.userPhoneNumber).value||"",user_reservable_dates_attributes:[...this.userReservableDateKey.map((r,s)=>{var a,p;return{id:null===(a=this.newData.user_reservable_dates[r])||void 0===a||null===(a=a[0])||void 0===a?void 0:a.id,day_of_week:r,...this.convertUserReservableTimeToDate(s),active:null===(p=this.getUserReservableTime(s).value)||void 0===p?void 0:p.active}})],bookings_attributes:{ticket_id:this.newData.ticket.id,clinic_id:this.newData.clinic.id,status:"\u8abf\u6574\u4e2d",booking_type:"web_ticket",other_question:this.reservationForm.get(this.formNames.otherQuestion).value,treatment_question:null===(n=this.reservationForm.get(this.formNames.treatmentQuestion))||void 0===n?void 0:n.value,is_first_time_visiting:this.reservationForm.get(this.formNames.is_first_time_visiting).value,same_day_treatment:this.reservationForm.get(this.formNames.same_day_treatment).value,booking_candidates_attributes:this.setBookingCandidateAttributes()}};this.reservationsService.setReservationDate(t,this.reservationForm,this.newData,this.reservableDays),this.router.navigate(["/counseling-reservations/confirm/"+this.paramsId])}ngOnDestroy(){var n,t,r;null===(n=this.calendarRef)||void 0===n||n.close(),null===(t=this.slotRef)||void 0===t||t.close(),null===(r=this.userSlotRef)||void 0===r||r.close(),this.subscriptions.unsubscribe()}}return(i=o).\u0275fac=function(n){return new(n||i)(e.rXU(l.ok),e.rXU(N.lG),e.rXU(d.vh),e.rXU(v.Ix),e.rXU(v.nX),e.rXU(P))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-counseling-reservation-new"]],decls:135,vars:48,consts:[["ngForm","ngForm"],["errorMessageList",""],[1,"container","page-container"],[3,"activeStep"],["class","ticket-info-section",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"form",3,"ngSubmit","formGroup"],[1,"no-margin"],[1,"page-section"],[1,"section-title"],[1,"section-inner"],[1,"sub-section"],[1,"section-subtitle"],[1,"required-label"],[1,"radio-list"],[1,"radio-item"],["idName","is_first_time_visit","name","is_first_time_visiting","size","medium",3,"onChange","value","checked"],["idName","is_repeat","name","is_first_time_visiting","size","medium",3,"onChange","value","checked"],["class","error-message",4,"ngIf"],["idName","same_day_treatment","name","same_day_treatment","size","medium",3,"onChange","value","checked"],["idName","counseling_only","name","same_day_treatment","size","medium",3,"onChange","value","checked"],[1,"form-desc"],[1,"visit-date-list",3,"formArrayName"],[1,"visit-date-item",3,"formGroupName"],[1,"visit-date-container"],["placeholder","2021\u5e744\u670812\u65e5\uff08\u6708\uff09","formControlName","day",1,"form-input",3,"click"],["placeholder","00:00\u301c00:00","formControlName","time",1,"form-input",3,"click","ngClass"],["class","visit-date-delete","src","/assets/images/icon/[email protected]","width","24","height","24","alt","\u65e5\u4ed8\u3092\u524a\u9664\u3059\u308b",3,"click",4,"ngIf"],["rows","6","placeholder","\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u3067\u3054\u76f8\u8ac7\u3057\u305f\u3044\u5185\u5bb9\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001200\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",1,"form-textarea",3,"formControlName"],[1,"name-list"],[1,"name-item"],[1,"name-form"],["type","text","placeholder","\u7dba\u9e97\u7530",1,"form-input",3,"formControlName"],["type","text","placeholder","\u82b1\u5b50",1,"form-input",3,"formControlName"],["type","text","placeholder","\u30ad\u30ec\u30a4\u30c0",1,"form-input",3,"formControlName"],["type","text","placeholder","\u30cf\u30ca\u30b3",1,"form-input",3,"formControlName"],["type","tel","placeholder","09012345678",1,"form-input","form-input-tel",3,"formControlName"],[1,"mail-address"],[1,"sub-section",3,"formArrayName"],[1,"section-lead-text"],[1,"multiple-label"],[1,"week-list"],["class","week-item",3,"formGroupName",4,"ngFor","ngForOf"],["class","week-time-list",4,"ngIf"],["rows","6","placeholder","\u3054\u4e88\u7d04\u306b\u95a2\u3057\u3066\u3001\u3054\u8981\u671b\u3084\u3054\u4e0d\u660e\u70b9\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001200\u6587\u5b57\u4ee5\u5185\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",1,"form-textarea",3,"formControlName"],["class","page-section",4,"ngIf"],[1,"form-action"],[1,"reserve-desc"],["routerLink","/policy-privacy","target","_blank",1,"privacy-policy-link"],["type","submit",1,"submit-button"],[1,"ticket-info-section"],[1,"ticket-info-title"],[1,"ticket-info"],[1,"clinic-name"],[1,"ticket-desc"],[1,"ticket-image"],[3,"ticketAvatar"],[1,"ticket-title"],[1,"ticket-title-inner","line-clamp-3"],[1,"error-message"],["src","/assets/images/icon/[email protected]","width","24","height","24","alt","\u65e5\u4ed8\u3092\u524a\u9664\u3059\u308b",1,"visit-date-delete",3,"click"],[1,"week-item",3,"formGroupName"],["type","checkbox","formControlName","active",1,"week-checkbox",3,"id"],[1,"week-label",3,"for"],[1,"week-time-list"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],["class","week-time-group",4,"ngIf"],[1,"week-time-group"],[1,"week-name"],[1,"week-time-form"],["type","text","placeholder","10:00\u301c19:00","formControlName","time",1,"form-input",3,"click"],[1,"clinic-note-container"],["class","clinic-note-section",4,"ngFor","ngForOf"],[1,"clinic-note-section"],[1,"clinic-note"],["class","error-message-list",4,"ngIf"],[1,"error-message-list"],["class","error-message-item",4,"ngIf"],[1,"error-message-item"]],template:function(n,t){if(1&n){const r=e.RV6();e.j41(0,"div",2),e.nrm(1,"app-counseling-reservation-flow-list",3),e.DNE(2,J,12,3,"section",4)(3,q,1,0,null,5),e.j41(4,"form",6,0),e.bIt("ngSubmit",function(){return e.eBV(r),e.Njj(t.submit())}),e.j41(6,"div",7)(7,"section",8)(8,"h2",9),e.EFF(9,"\u3054\u4e88\u7d04\u306b\u95a2\u3057\u3066"),e.k0s(),e.j41(10,"div",10)(11,"section",11)(12,"h3",12),e.
1EFF(13,"\u3053\u306e\u30af\u30ea\u30cb\u30c3\u30af\u3078\u306e\u6765\u9662\u306f\u521d\u3081\u3066\u3067\u3059\u304b\uff1f"),e.j41(14,"span",13),e.EFF(15,"\u5fc5\u9808"),e.k0s()(),e.j41(16,"ul",14)(17,"li",15)(18,"app-radio-button",16),e.bIt("onChange",function(a){return e.eBV(r),e.Njj(t.changeRadio("is_first_time_visiting",a))}),e.EFF(19," \u306f\u3044\u3001\u521d\u3081\u3066\u3067\u3059 "),e.k0s()(),e.j41(20,"li",15)(21,"app-radio-button",17),e.bIt("onChange",function(a){return e.eBV(r),e.Njj(t.changeRadio("is_first_time_visiting",a))}),e.EFF(22," \u3044\u3044\u3048\u3001\u884c\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059 "),e.k0s()()(),e.DNE(23,K,2,0,"p",18),e.k0s(),e.j41(24,"section",11)(25,"h3",12),e.EFF(26,"\u5f53\u65e5\u3001\u65bd\u8853\u3092\u5e0c\u671b\u3057\u307e\u3059\u304b\uff1f"),e.j41(27,"span",13),e.EFF(28,"\u5fc5\u9808"),e.k0s()(),e.j41(29,"ul",14)(30,"li",15)(31,"app-radio-button",19),e.bIt("onChange",function(a){return e.eBV(r),e.Njj(t.changeRadio("same_day_treatment",a))}),e.EFF(32," \u5e0c\u671b\u3059\u308b "),e.k0s()(),e.j41(33,"li",15)(34,"app-radio-button",20),e.bIt("onChange",function(a){return e.eBV(r),e.Njj(t.changeRadio("same_day_treatment",a))}),e.EFF(35," \u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306e\u307f\u5e0c\u671b "),e.k0s()()(),e.DNE(36,X,2,0,"p",18),e.k0s(),e.j41(37,"section",11)(38,"h3",12),e.EFF(39,"\u6765\u9662\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(40,"p",21),e.EFF(41,"\u7533\u8acb\u3044\u305f\u3060\u3044\u305f\u3054\u4e88\u7d04\u306f\u3001\u30af\u30ea\u30cb\u30c3\u30af\u304b\u3089\u306e\u9023\u7d61\u3092\u3082\u3063\u3066\u78ba\u5b9a\u3044\u305f\u3057\u307e\u3059\u3002\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642\u307e\u3067\u3054\u5165\u529b\u3044\u305f\u3060\u304f\u3068\u3001\u3054\u4e88\u7d04\u304c\u78ba\u5b9a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002"),e.k0s(),e.j41(42,"ul",22)(43,"li",23)(44,"h4",12),e.EFF(45,"\u7b2c\u4e00\u5e0c\u671b\u65e5\u6642"),e.j41(46,"span",13),e.EFF(47,"\u5fc5\u9808"),e.k0s()(),e.j41(48,"div",24)(49,"input",25),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openCalendar(0))}),e.k0s(),e.j41(50,"input",26),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openTimeSlot(0))}),e.k0s()(),e.DNE(51,z,2,0,"p",18),e.k0s(),e.j41(52,"li",23)(53,"h4",12),e.EFF(54,"\u7b2c\u4e8c\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(55,"div",24)(56,"input",25),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openCalendar(1))}),e.k0s(),e.j41(57,"input",26),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openTimeSlot(1))}),e.k0s(),e.DNE(58,L,1,0,"img",27),e.k0s(),e.DNE(59,H,2,0,"p",18),e.k0s(),e.j41(60,"li",23)(61,"h4",12),e.EFF(62,"\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(63,"div",24)(64,"input",25),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openCalendar(2))}),e.k0s(),e.j41(65,"input",26),e.bIt("click",function(){return e.eBV(r),e.Njj(t.openTimeSlot(2))}),e.k0s(),e.DNE(66,Q,1,0,"img",27),e.k0s(),e.DNE(67,W,2,0,"p",18),e.k0s()()(),e.j41(68,"section",11)(69,"h3",12),e.EFF(70,"\u30c1\u30b1\u30c3\u30c8\u4ee5\u5916\u306e\u65bd\u8853\u3084\u304a\u60a9\u307f\u306b\u3064\u3044\u3066\u3082\u8a3a\u5bdf\u3092\u3054\u5e0c\u671b\u306e\u5834\u5408\u306f\u3001\u3054\u76f8\u8ac7\u5185\u5bb9\u3092\u3054\u8a18\u8f09\u304f\u3060\u3055\u3044"),e.k0s(),e.nrm(71,"textarea",28),e.k0s()()(),e.j41(72,"section",8)(73,"h2",9),e.EFF(74,"\u304a\u5ba2\u69d8\u60c5\u5831"),e.k0s(),e.j41(75,"div",10)(76,"section",11)(77,"h3",12),e.
1EFF(78,"\u304a\u540d\u524d"),e.j41(79,"span",13),e.EFF(80,"\u5fc5\u9808"),e.k0s()(),e.j41(81,"ul",29)(82,"li",30)(83,"div",31),e.nrm(84,"input",32)(85,"input",33),e.k0s(),e.DNE(86,Z,2,0,"p",18),e.k0s(),e.j41(87,"li",30)(88,"div",31),e.nrm(89,"input",34)(90,"input",35),e.k0s(),e.DNE(91,ee,2,0,"p",18),e.k0s()()(),e.j41(92,"section",11)(93,"h3",12),e.EFF(94,"\u9023\u7d61\u53ef\u80fd\u306a\u96fb\u8a71\u756a\u53f7"),e.j41(95,"span",13),e.EFF(96,"\u5fc5\u9808"),e.k0s()(),e.nrm(97,"input",36),e.DNE(98,te,2,0,"p",18),e.k0s(),e.j41(99,"section",11)(100,"h3",12),e.EFF(101,"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9"),e.k0s(),e.j41(102,"p",21),e.EFF(103,"\u4e0b\u8a18\u30a2\u30c9\u30ec\u30b9\u306b\u65e5\u7a0b\u8abf\u6574\u30e1\u30fc\u30eb\u304c\u6765\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002"),e.k0s(),e.j41(104,"p",37),e.EFF(105),e.k0s()(),e.j41(106,"section",38)(107,"p",39),e.EFF(108,"\u4e88\u7d04\u306e\u8abf\u6574\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u307e\u3059"),e.k0s(),e.j41(109,"h3",12),e.EFF(110," \u6765\u9662\u3057\u3084\u3059\u3044\u66dc\u65e5\u30fb\u6642\u9593"),e.j41(111,"span",40),e.EFF(112,"\u203b\u8907\u6570\u9078\u629e\u53ef"),e.k0s()(),e.j41(113,"p",21),e.EFF(114,"\u5165\u529b\u3057\u305f\u60c5\u5831\u306f\u30ad\u30ec\u30a4\u30d1\u30b9\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u4fdd\u5b58\u3055\u308c\u3001\u4eca\u5f8c\u306e\u3054\u4e88\u7d04\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u307f\u307e\u3059\u3002"),e.nrm(115,"br"),e.EFF(116,"\u66dc\u65e5\u3092\u9078\u629e\u3059\u308b\u3068\u6642\u9593\u5e2f\u3082\u5165\u529b\u3067\u304d\u307e\u3059\u3002"),e.k0s(),e.j41(117,"ul",41),e.DNE(118,ne,4,4,"li",42),e.k0s(),e.DNE(119,oe,2,1,"dl",43)(120,se,2,0,"p",18),e.k0s(),e.j41(121,"section",11)(122,"h3",12),e.EFF(123,"\u305d\u306e\u4ed6\u3001\u30af\u30ea\u30cb\u30c3\u30af\u3078\u306e\u3054\u8981\u671b\u30fb\u3054\u76f8\u8ac7"),e.k0s(),e.nrm(124,"textarea",44),e.k0s()()(),e.DNE(125,ae,6,1,"section",45),e.j41(126,"div",46)(127,"p",47)(128,"a",48),e.EFF(129,"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc"),e.k0s(),e.EFF(130,"\u306b\u540c\u610f\u306e\u4e0a\u3001\u3054\u4e88\u7d04\u304f\u3060\u3055\u3044"),e.k0s(),e.j41(131,"button",49),e.EFF(132,"\u4e88\u7d04\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b"),e.k0s()()()()(),e.DNE(133,Fe,1,1,"ng-template",null,1,e.C5r)}if(2&n){let r,s,a,p,m,c,_,B;const h=e.sdS(5),Te=e.sdS(134);e.R7$(),e.Y8G("activeStep",1),e.R7$(),e.Y8G("ngIf",t.newData.clinic),e.R7$(),e.Y8G("ngTemplateOutlet",Te),e.R7$(),e.Y8G("formGroup",t.reservationForm),e.R7$(14),e.Y8G("value",!0)("checked",t.reservationForm.get(t.formNames.is_first_time_visiting).value),e.R7$(3),e.Y8G("value",!1)("checked",!1===t.reservationForm.get(t.formNames.is_first_time_visiting).value),e.R7$(2),e.Y8G("ngIf",(null==(r=t.reservationForm.get(t.formNames.is_first_time_visiting).errors)?null:r.required)&&h.submitted),e.R7$(8),e.Y8G("value",!0)("checked",t.reservationForm.get(t.formNames.same_day_treatment).value),e.R7$(3),e.Y8G("value",!1)("checked",!1===t.reservationForm.get(t.formNames.same_day_treatment).value),e.R7$(2),e.Y8G("ngIf",(null==(s=t.reservationForm.get(t.formNames.same_day_treatment).errors)?null:s.required)&&h.submitted),e.R7$(6),e.Y8G("formArrayName",t.formNames.clinicReservable),e.R7$(),e.Y8G("formGroupName",0),e.R7$(7),e.Y8G("ngClass",e.eq3(42,w,!t.getClinicReservable(0).get("day").value)),e.R7$(),e.Y8G("ngIf",((null==(a=t.getClinicReservable(0).get("day").errors)?null:a.required)||(null==(a=t.getClinicReservable(0).get("time").errors)?null:a.required))&&h.submitted),e.R7$(),e.Y8G("formGroupName",1),e.R7$(5),e.Y8G("ngClass",e.eq3(44,w,!t.getClinicReservable(1).get("day").value)),e.R7$(),e.Y8G("ngIf",t.getClinicReservable(1).get("day").value),e.R7$(),e.Y8G("ngIf",(null==(p=t.getClinicReservable(1).get("time").errors)?null:p.required)&&h.submitted),e.R7$(),e.Y8G("formGroupName",2),e.R7$(5),e.Y8G("ngClass",e.eq3(46,w,!t.getClinicReservable(2).get("day").value)),e.R7$(),e.Y8G("ngIf",t.getClinicReservable(2).get("day").value),e.R7$(),e.Y8G("ngIf",(null==(m=t.getClinicReservable(2).get("time").errors)?null:m.required)&&h.submitted),e.R7$(4),e.Y8G("formControlName",t.formNames.treatmentQuestion),e.R7$(13),e.Y8G("formControlName",t.formNames.userFamilyName),e.R7$(),e.Y8G("formControlName",t.formNames.userGivenName),e.R7$(),e.Y8G("ngIf",((null==(c=t.reservationForm.get(t.formNames.userFamilyName).errors)?null:c.required)||(null==(c=t.reservationForm.get(t.formNames.userGivenName).errors)?null:c.required))&&h.submitted),e.R7$(3),e.Y8G("formControlName",t.formNames.userFamilyNameKana),e.R7$(),e.Y8G("formControlName",t.formNames.userGivenNameKana),e.R7$(),e.Y8G("ngIf",((null==(_=t.reservationForm.get(t.formNames.userFamilyNameKana).errors)?null:_.required)||(null==(_=t.reservationForm.get(t.formNames.userGivenNameKana).errors)?null:_.required)||(null==(_=t.reservationForm.get(t.formNames.userFamilyNameKana).errors)?null:_.isZenkakuKana)||
1(null==(_=t.reservationForm.get(t.formNames.userGivenNameKana).errors)?null:_.isZenkakuKana))&&h.submitted),e.R7$(6),e.Y8G("formControlName",t.formNames.userPhoneNumber),e.R7$(),e.Y8G("ngIf",(null==(B=t.reservationForm.get(t.formNames.userPhoneNumber).errors)?null:B.required)&&h.submitted),e.R7$(7),e.JRh(null==t.newData.user?null:t.newData.user.email),e.R7$(),e.Y8G("formArrayName",t.formNames.userReservableTimes),e.R7$(12),e.Y8G("ngForOf",t.wday),e.R7$(),e.Y8G("ngIf",t.isCheckedWeek()),e.R7$(),e.Y8G("ngIf",t.userReservableTimeValidate()&&h.submitted),e.R7$(4),e.Y8G("formControlName",t.formNames.otherQuestion),e.R7$(),e.Y8G("ngIf",(null==t.newData.clinic||null==t.newData.clinic.reservation_note?null:t.newData.clinic.reservation_note.length)>0)}},dependencies:[d.YU,d.Sq,d.bT,d.T3,A.h,I.d,l.qT,l.me,l.Zm,l.BC,l.cb,l.j4,l.JD,l.$R,l.v8,v.Wk,y],styles:['.form[_ngcontent-%COMP%], .ticket-info[_ngcontent-%COMP%], .ticket-desc[_ngcontent-%COMP%], .ticket-info-title[_ngcontent-%COMP%], .ticket-title-inner[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%], .visit-date-list[_ngcontent-%COMP%], .section-subtitle[_ngcontent-%COMP%], .form-desc[_ngcontent-%COMP%], .name-list[_ngcontent-%COMP%], .mail-address[_ngcontent-%COMP%], .week-list[_ngcontent-%COMP%], .week-label[_ngcontent-%COMP%], .week-time-list[_ngcontent-%COMP%], .week-time-form[_ngcontent-%COMP%], .clinic-note[_ngcontent-%COMP%], .reserve-desc[_ngcontent-%COMP%], .error-message-list[_ngcontent-%COMP%], .error-message[_ngcontent-%COMP%]{margin:0}.ticket-info-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:600}.page-container[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:48px}.ticket-info-title[_ngcontent-%COMP%]{margin-top:32px}.ticket-info[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;padding:16px;margin-top:8px}.clinic-name[_ngcontent-%COMP%]{font-weight:400;font-size:12px}.ticket-desc[_ngcontent-%COMP%]{display:grid;grid-template-columns:20% 1fr;grid-template-rows:minmax(63px,-webkit-max-content);grid-template-rows:minmax(63px,max-content);grid-column-gap:12px;margin-top:16px}.ticket-image[_ngcontent-%COMP%]{align-self:center}.section-title[_ngcontent-%COMP%]{padding:32px 0 8px 16px}.section-inner[_ngcontent-%COMP%]{background-color:#fff;padding:26px 16px 24px}.section-subtitle[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600}.required-label[_ngcontent-%COMP%], .multiple-label[_ngcontent-%COMP%]{font-size:1rem;margin-left:8px}.required-label[_ngcontent-%COMP%]{background-color:#ce3a32;color:#fff;font-weight:700;line-height:1;padding:4px 7px;border-radius:3px}.multiple-label[_ngcontent-%COMP%]{font-weight:400}.radio-list[_ngcontent-%COMP%], .radio-item[_ngcontent-%COMP%] + .radio-item[_ngcontent-%COMP%]{margin-top:16px}.sub-section[_ngcontent-%COMP%] + .sub-section[_ngcontent-%COMP%]{border-top:solid 1px #e0e0e0;margin-top:24px;padding-top:24px}.form-desc[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:8px}.visit-date-list[_ngcontent-%COMP%]{margin-top:21px}.visit-date-item[_ngcontent-%COMP%] + .visit-date-item[_ngcontent-%COMP%]{margin-top:24px}.visit-date-container[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:60% 1fr;grid-template-rows:48px;grid-column-gap:8px;padding-top:16px}.form-input[_ngcontent-%COMP%], .form-textarea[_ngcontent-%COMP%]{border:solid 1px #999999;border-radius:3px;font-size:1.4rem;-webkit-appearance:none;appearance:none;padding:12px 16px;width:100%}.form-input[_ngcontent-%COMP%]::placeholder, .form-textarea[_ngcontent-%COMP%]::placeholder{color:#999}.form-textarea[_ngcontent-%COMP%], .form-input-tel[_ngcontent-%COMP%]{margin-top:16px}.form-input.is-disabled[_ngcontent-%COMP%]{background-color:#e0e0e0}.visit-date-delete[_ngcontent-%COMP%]{position:absolute;left:calc(60% - 32px);top:28px;cursor:pointer}.name-list[_ngcontent-%COMP%]{display:grid;grid-row-gap:12px;margin-top:18px}.name-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:17px}.mail-address[_ngcontent-%COMP%]{margin-top:22px}.section-lead-text[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:#49c2c2;line-height:1}.week-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,36px);grid-column-gap:8px;margin-top:18px;line-height:1}.week-checkbox[_ngcontent-%COMP%]{display:none}.week-label[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;border-radius:50%;border:solid 1px #cab994;padding:10px;font-weight:700}.week-checkbox[_ngcontent-%COMP%]:checked + .week-label[_ngcontent-%COMP%]{background-color:#cab994;color:#fff}.week-time-list[_ngcontent-%COMP%]{display:grid;margin-top:16px;grid-row-gap:12px}.week-time-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:58px 180px}
1.week-name[_ngcontent-%COMP%]{align-self:center}.clinic-note-container[_ngcontent-%COMP%]{background-color:#f9f9f9;padding:20px 16px 23px}.clinic-note-section[_ngcontent-%COMP%] + .clinic-note-section[_ngcontent-%COMP%]{margin-top:20px}.clinic-note[_ngcontent-%COMP%]{margin-top:8px}.form-action[_ngcontent-%COMP%]{padding:32px 16px 0;text-align:center}.reserve-desc[_ngcontent-%COMP%]{color:#999;font-size:1.2rem}.privacy-policy-link[_ngcontent-%COMP%]{color:#49c2c2}.privacy-policy-link[_ngcontent-%COMP%]:after{content:"";background:url(/assets/images/icon/[email protected]) no-repeat;background-size:contain;display:inline-block;width:12px;height:12px;margin:0 4px;vertical-align:middle}.submit-button[_ngcontent-%COMP%]{background-color:#49c2c2;border-radius:4px;color:#fff;padding:23px;line-height:1;font-weight:700;font-size:1.8rem;width:100%;margin-top:16px}.error-message-list[_ngcontent-%COMP%], .error-message[_ngcontent-%COMP%]{color:#ce3a32}.error-message-list[_ngcontent-%COMP%]{background-color:#ffebee;padding:16px;margin-top:32px}.error-message-item[_ngcontent-%COMP%]{display:flex;align-items:center;grid-column-gap:8px}.error-message-item[_ngcontent-%COMP%]:before{display:inline-block;content:"";background:url(/assets/images/treatment-history/[email protected]) no-repeat;background-size:contain;width:14px;height:14px}.error-message[_ngcontent-%COMP%]{margin-top:8px}']}),o})();const x=i=>[i];function be(i,o){if(1&i&&(e.j41(0,"section",4)(1,"h2",5),e.EFF(2,"\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u4e88\u7d04\u3059\u308b\u30c1\u30b1\u30c3\u30c8"),e.k0s(),e.j41(3,"dl",6)(4,"dt",7),e.EFF(5),e.k0s(),e.j41(6,"dd",8)(7,"div",9),e.nrm(8,"app-image",10),e.k0s(),e.j41(9,"div",11)(10,"p",12),e.EFF(11),e.k0s()()()()()),2&i){const u=e.XpG();e.R7$(5),e.SpI(" ",u.newData.clinic.name," "),e.R7$(3),e.Y8G("ticketAvatar",u.newData.clinic.image),e.R7$(3),e.JRh(u.newData.ticket.title)}}function Ee(i,o){if(1&i&&(e.j41(0,"li",32),e.EFF(1),e.k0s()),2&i){const u=e.XpG(),n=u.$implicit,t=u.index,r=e.XpG(2);e.R7$(),e.Lme(" ",n,"\u66dc\u65e5\u3001",r.reservationForm.get(r.formNames.userReservableTimes).get(e.eq3(2,x,t)).value.time," ")}}function ke(i,o){if(1&i&&(e.qex(0),e.DNE(1,Ee,2,4,"li",31),e.bVm()),2&i){const u=o.index,n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.reservationForm.get(n.formNames.userReservableTimes).get(e.eq3(1,x,u)).value.active)}}function Re(i,o){if(1&i&&(e.j41(0,"section",35)(1,"h3",18),e.EFF(2),e.k0s(),e.j41(3,"p",36),e.EFF(4),e.k0s()()),2&i){const u=o.$implicit;e.R7$(2),e.JRh(u.title),e.R7$(2),e.JRh(u.text)}}function Ne(i,o){if(1&i&&(e.j41(0,"section",14)(1,"h2",15),e.EFF(2,"\u30af\u30ea\u30cb\u30c3\u30af\u304b\u3089\u306e\u6ce8\u610f\u4e8b\u9805"),e.k0s(),e.j41(3,"div",16)(4,"div",33),e.DNE(5,Re,5,2,"section",34),e.k0s()()()),2&i){const u=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",u.newData.clinic.reservation_note)}}function Be(i,o){if(1&i){const u=e.RV6();e.j41(0,"div",13)(1,"section",14)(2,"h2",15),e.EFF(3,"\u3054\u4e88\u7d04\u306b\u95a2\u3057\u3066"),e.k0s(),e.j41(4,"div",16)(5,"section",17)(6,"h3",18),e.EFF(7,"\u3053\u306e\u30af\u30ea\u30cb\u30c3\u30af\u3078\u306e\u6765\u9662\u306f\u521d\u3081\u3066\u3067\u3059\u304b\uff1f"),e.j41(8,"span",19),e.EFF(9,"\u5fc5\u9808"),e.k0s()(),e.j41(10,"p",20),e.EFF(11),e.k0s()(),e.j41(12,"section",17)(13,"h3",18),e.EFF(14,"\u5f53\u65e5\u3001\u65bd\u8853\u3092\u5e0c\u671b\u3057\u307e\u3059\u304b\uff1f"),e.j41(15,"span",19),e.EFF(16,"\u5fc5\u9808"),e.k0s()(),e.j41(17,"p",20),e.EFF(18),e.k0s()(),e.j41(19,"section",17)(20,"h3",18),e.EFF(21,"\u6765\u9662\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(22,"p",21),e.EFF(23,"\u7533\u8acb\u3044\u305f\u3060\u3044\u305f\u3054\u4e88\u7d04\u306f\u3001\u30af\u30ea\u30cb\u30c3\u30af\u304b\u3089\u306e\u9023\u7d61\u3092\u3082\u3063\u3066\u78ba\u5b9a\u3044\u305f\u3057\u307e\u3059\u3002\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642\u307e\u3067\u3054\u5165\u529b\u3044\u305f\u3060\u304f\u3068\u3001\u3054\u4e88\u7d04\u304c\u78ba\u5b9a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002"),e.k0s(),e.j41(24,"section",22)(25,"h4",18),e.EFF(26,"\u7b2c\u4e00\u5e0c\u671b\u65e5\u6642"),e.j41(27,"span",19),e.EFF(28,"\u5fc5\u9808"),e.k0s()(),e.j41(29,"p",20),e.EFF(30),e.k0s()(),e.j41(31,"section",22)(32,"h4",18),e.EFF(33,"\u7b2c\u4e8c\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(34,"p",20),e.EFF(35),e.k0s()(),e.j41(36,"section",22)(37,"h4",18),e.EFF(38,"\u7b2c\u4e09\u5e0c\u671b\u65e5\u6642"),e.k0s(),e.j41(39,"p",20),e.EFF(40),e.k0s()()(),e.j41(41,"section",17)(42,"h3",18),e.EFF(43,"\u30c1\u30b1\u30c3\u30c8\u4ee5\u5916\u306e\u65bd\u8853\u3084\u304a\u60a9\u307f\u306b\u3064\u3044\u3066\u3082\u8a3a\u5bdf\u3092\u3054\u5e0c\u671b\u306e\u5834\u5408\u306f\u3001\u3054\u76f8\u8ac7\u5185\u5bb9\u3092\u3054\u8a18\u8f09\u304f\u3060\u3055\u3044"),e.k0s(),e.j41(44,"p",20),e.EFF(45),e.k0s()()()(),e.j41(46,"section",14)(47,"h2",15),e.EFF(48,"\u304a\u5ba2\u69d8\u60c5\u5831"),e.k0s(),e.j41(49,"div",16)(50,"section",17)(51,"h3",18),e.EFF(52,"\u304a\u540d\u524d"),e.j41(53,"span",19),e.EFF(54,"\u5fc5\u9808"),e.k0s()(),e.j41(55,"p",20),e.EFF(56),e.k0s(),e.j41(57,"p",20),e.EFF(58),e.k0s()(),e.j41(59,"section",17)(60,"h3",18),e.EFF(61,"\u9023\u7d61\u53ef\u80fd\u306a\u96fb\u8a71\u756a\u53f7"),e.j41(62,"span",19),e.EFF(63,"\u5fc5\u9808"),e.k0s()(),e.j41(64,"p",20),e.EFF(65),e.k0s()(),e.j41(66,"section",17)(67,"h3",18),e.EFF(68,"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9"),e.k0s(),e.j41(69,"p",20),e.EFF(70),e.k0s()(),e.j41(71,"section",17)(72,"h3",18),e.EFF(73,"\u6765\u9662\u3057\u3084\u3059\u3044\u66dc\u65e5\u30fb\u6642\u9593"),e.k0s(),e.j41(74,"ul",23),e.DNE(75,ke,2,3,"ng-container",24),e.k0s()(),e.j41(76,"section",17)(77,"h3",18),e.EFF(78,"\u305d\u306e\u4ed6\u3001\u30af\u30ea\u30cb\u30c3\u30af\u3078\u306e\u3054\u8981\u671b\u30fb\u3054\u76f8\u8ac7"),e.k0s(),e.j41(79,"p",20),e.EFF(80),e.k0s()()()(),e.DNE(81,Ne,6,1,"section",25),e.j41(82,"div",26)(83,"p",27)(84,"a",28),e.EFF(85,"\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u30dd\u30ea\u30b7\u30fc"),e.k0s(),e.EFF(86,"\u306b\u540c\u610f\u306e\u4e0a\u3001\u3054\u4e88\u7d04\u304f\u3060\u3055\u3044"),e.k0s(),e.j41(87,"button",29),e.bIt("click",function(){e.eBV(u);const t=e.XpG();return e.Njj(t.submit())}),e.EFF(88,"\u4e0a\u8a18\u5185\u5bb9\u3067\u4e88\u7d04\u7533\u3057\u8fbc\u307f\u3059\u308b"),e.k0s(),e.j41(89,"button",30),e.EFF(90,"\u4e88\u7d04\u5185\u5bb9\u3092\u4fee\u6b63\u3059\u308b"),e.k0s()()()}if(2&i){const u=e.XpG();e.R7$(11),e.JRh(u.reservationForm.get(u.formNames.is_first_time_visiting).value?"\u306f\u3044\u3001\u521d\u3081\u3066\u3067\u3059":"\u3044\u3044\u3048\u3001\u884c\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059"),e.R7$(7),e.JRh(u.reservationForm.get(u.formNames.same_day_treatment).value?"\u5e0c\u671b\u3059\u308b":"\u30ab\u30a6\u30f3\u30bb\u30ea\u30f3\u30b0\u306e\u307f\u5e0c\u671b"),e.R7$(12),e.JRh(u.getClinicReservableText(0)),e.R7$(5),e.JRh(u.getClinicReservableText(1)),e.R7$(5),e.JRh(u.getClinicReservableText(2)),e.R7$(5),e.JRh(u.reservationForm.get(u.formNames.treatmentQuestion).value),e.R7$(11),e.Lme("",u.reservationForm.get(u.formNames.userFamilyName).value," ",u.reservationForm.get(u.formNames.userGivenName).value,""),e.R7$(2),e.Lme("(",u.reservationForm.get(u.formNames.userFamilyNameKana).value," ",u.reservationForm.get(u.formNames.userGivenNameKana).value,")"),e.R7$(7),e.JRh(u.reservationForm.get(u.formNames.userPhoneNumber).value),e.R7$(5),e.JRh(null==u.newData.user?null:u.newData.user.email),e.R7$(5),e.Y8G("ngForOf",u.wday),e.R7$(5),e.JRh(u.reservationForm.get(u.formNames.otherQuestion).value),e.R7$(),e.Y8G("ngIf",(null==u.newData.clinic||null==u.newData.clinic.reservation_note?null:u.newData.clinic.reservation_note.length)>0),e.R7$(8),e.Y8G("routerLink","/counseling-reservations/new/"+u.paramsId)}}let De=(()=>{var i;class o{constructor(n,t,r){this.route=n,this.router=t,this.reservationsService=r,this.formNames={is_first_time_visiting:"is_first_time_visiting",same_day_treatment:"same_day_treatment",clinicReservable:"clinicReservable",userReservableTimes:"userReservableTimes",userFamilyName:"userFamilyName",userFamilyNameKana:"userFamilyNameKana",userGivenName:"userGivenName",userGivenNameKana:"userGivenNameKana",userPhoneNumber:"userPhoneNumber",otherQuestion:"otherQuestion",treatmentQuestion:"treatmentQuestion"},this.wday=["\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f","\u65e5"],this.newData={}}
1ngOnInit(){if(this.paramsId=this.route.snapshot.paramMap.get("id"),this.newData=this.reservationsService.getReservationNew(),this.reservationDate=this.reservationsService.getReservationDate(),this.reservationForm=this.reservationsService.getReservationForm(),!this.reservationForm)return this.router.navigate(["/counseling-reservations/new/"+this.paramsId])}getClinicReservableText(n){if(!this.reservationForm)return"\u6307\u5b9a\u306a\u3057";const t=this.reservationForm.get(this.formNames.clinicReservable).get([n]);return t.value.day?"".concat(t.value.day," ").concat(t.value.time):"\u6307\u5b9a\u306a\u3057"}submit(){this.reservationsService.createReservation(this.reservationDate).then(n=>{"ok"===n.status?(this.reservationsService.resetReservationDate(),this.router.navigate(["/counseling-reservations/complete/"])):alert(n.message)}).catch(n=>{alert("\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002")})}}return(i=o).\u0275fac=function(n){return new(n||i)(e.rXU(v.nX),e.rXU(v.Ix),e.rXU(P))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-counseling-reservation-confirm"]],decls:4,vars:3,consts:[[1,"container","page-container"],[3,"activeStep"],["class","ticket-info-section",4,"ngIf"],["class","no-margin",4,"ngIf"],[1,"ticket-info-section"],[1,"ticket-info-title"],[1,"ticket-info"],[1,"clinic-name"],[1,"ticket-desc"],[1,"ticket-image"],[3,"ticketAvatar"],[1,"ticket-title"],[1,"ticket-title-inner","line-clamp-3"],[1,"no-margin"],[1,"page-section"],[1,"section-title"],[1,"section-inner"],[1,"sub-section"],[1,"section-subtitle"],[1,"required-label"],[1,"confirm-text"],[1,"form-desc"],[1,"third-section"],[1,"confirm-list"],[4,"ngFor","ngForOf"],["class","page-section",4,"ngIf"],[1,"form-action"],[1,"reserve-desc"],["routerLink","/policy-privacy","target","_blank",1,"privacy-policy-link"],["type","submit",1,"submit-button",3,"click"],["type","button",1,"back-button",3,"routerLink"],["class","confirm-item",4,"ngIf"],[1,"confirm-item"],[1,"clinic-note-container"],["class","clinic-note-section",4,"ngFor","ngForOf"],[1,"clinic-note-section"],[1,"clinic-note"]],template:function(n,t){1&n&&(e.j41(0,"div",0),e.nrm(1,"app-counseling-reservation-flow-list",1),e.DNE(2,be,12,3,"section",2)(3,Be,91,16,"div",3),e.k0s()),2&n&&(e.R7$(),e.Y8G("activeStep",2),e.R7$(),e.Y8G("ngIf",null==t.newData?null:t.newData.clinic),e.R7$(),e.Y8G("ngIf",t.reservationForm))},dependencies:[d.Sq,d.bT,A.h,v.Wk,y],styles:['.ticket-info[_ngcontent-%COMP%], .ticket-desc[_ngcontent-%COMP%], .ticket-info-title[_ngcontent-%COMP%], .ticket-title-inner[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%], .form-desc[_ngcontent-%COMP%], .section-subtitle[_ngcontent-%COMP%], .confirm-text[_ngcontent-%COMP%], .clinic-note[_ngcontent-%COMP%]{margin:0}.ticket-info-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:600}.page-container[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:48px}.ticket-info-title[_ngcontent-%COMP%]{margin-top:32px}.ticket-info[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;padding:16px;margin-top:8px}.clinic-name[_ngcontent-%COMP%]{font-weight:400;font-size:12px}.ticket-desc[_ngcontent-%COMP%]{display:grid;grid-template-columns:20% 1fr;grid-template-rows:minmax(63px,-webkit-max-content);grid-template-rows:minmax(63px,max-content);grid-column-gap:12px;margin-top:16px}.ticket-image[_ngcontent-%COMP%]{align-self:center}.section-title[_ngcontent-%COMP%]{padding:32px 0 8px 16px}.section-inner[_ngcontent-%COMP%]{background-color:#fff;padding:26px 16px 24px}.section-subtitle[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600}.required-label[_ngcontent-%COMP%]{background-color:#ce3a32;color:#fff;font-weight:700;font-size:1rem;margin-left:8px;line-height:1;padding:4px 7px;border-radius:3px}.sub-section[_ngcontent-%COMP%] + .sub-section[_ngcontent-%COMP%]{border-top:solid 1px #e0e0e0;margin-top:24px;padding-top:24px}.third-section[_ngcontent-%COMP%] + .third-section[_ngcontent-%COMP%]{margin-top:24px}.third-section[_ngcontent-%COMP%], .confirm-text[_ngcontent-%COMP%], .confirm-list[_ngcontent-%COMP%]{margin-top:16px}.form-desc[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:8px}.clinic-note[_ngcontent-%COMP%], .confirm-item[_ngcontent-%COMP%] + .confirm-item[_ngcontent-%COMP%]{margin-top:8px}.clinic-note-container[_ngcontent-%COMP%]{background-color:#f9f9f9;padding:20px 16px 23px}.clinic-note-section[_ngcontent-%COMP%] + .clinic-note-section[_ngcontent-%COMP%]{margin-top:20px}.form-action[_ngcontent-%COMP%]{padding:32px 16px 0;text-align:center}.reserve-desc[_ngcontent-%COMP%]{color:#999;font-size:1.2rem}.privacy-policy-link[_ngcontent-%COMP%]{color:#49c2c2}.privacy-policy-link[_ngcontent-%COMP%]:after{content:"";background:url(/assets/images/icon/[email protected]) no-repeat;background-size:contain;display:inline-block;width:12px;height:12px;margin:0 4px;vertical-align:middle}.submit-button[_ngcontent-%COMP%], .back-button[_ngcontent-%COMP%]{border-radius:4px;font-weight:700;font-size:1.8rem;line-height:1;width:100%;margin-top:16px;padding:23px}.submit-button[_ngcontent-%COMP%]{background-color:#49c2c2;color:#fff}.back-button[_ngcontent-%COMP%]{background-color:#fff;border:solid 1px #49c2c2;color:#49c2c2}']}),o})();var ye=g(45120),we=g(45312),Me=g(78013);function Pe(i,o){if(1&i&&(e.j41(0,"a",8),e.nI1(1,"safeUrl"),e.EFF(2,"\u8cfc\u5165\u6e08\u307f\u30c1\u30b1\u30c3\u30c8\u4e00\u89a7\u3092\u898b\u308b"),e.k0s()),2&i){const u=e.XpG();e.Y8G("href",e.bMT(1,1,u.appPurchasedTicketsDeeplink()),e.B4B)}}function Ae(i,o){1&i&&(e.j41(0,"a",9),e.EFF(1,"\u8cfc\u5165\u6e08\u307f\u30c1\u30b1\u30c3\u30c8\u4e00\u89a7\u3092\u898b\u308b"),e.k0s())}const Oe=[{path:"new/:id",component:he,data:{name:f.L.counselingReservationsNew},canActivate:[b.q]},{path:"confirm/:id",component:De,data:{name:f.L.counselingReservationsConfirm},canActivate:[b.q]},{path:"complete",component:(()=>{var i;class o{constructor(n){this.browserService=n,this.appUrlScheme=we.c.app.urlScheme}ngOnInit(){}isIOSApp(){return this.browserService.isIOSApp()}appPurchasedTicketsDeeplink(){return"".concat(this.appUrlScheme,"://mypage/purchased-tickets")}}return(i=o).\u0275fac=function(n){return new(n||i)(e.rXU(ye.I))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-counseling-reservation-complete"]],decls:14,vars:3,consts:[["normalLink",""],[1,"container","page-container"],[3,"activeStep"],[1,"page-section"],[1,"section-title"],[1,"thanks-message"],[1,"section-text"],["class","page-link",3,"href",4,"ngIf","ngIfElse"],[1,"page-link",3,"href"],["routerLink","/mypage/purchased-tickets",1,"page-link"]],template:function(n,t){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-counseling-reservation-flow-list",2),e.j41(2,"section",3)(3,"h2",4),e.EFF(4,"\u4e88\u7d04\u7533\u3057\u8fbc\u307f\u5b8c\u4e86"),e.k0s(),e.j41(5,"p",5),e.EFF(6,"\u3054\u4e88\u7d04\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059"),e.k0s(),e.j41(7,"p",6),e.EFF(8,"\u30af\u30ea\u30cb\u30c3\u30af\u304b\u3089\u8ffd\u3063\u3066\u3054\u9023\u7d61\u3044\u305f\u3057\u307e\u3059\u3002"),e.nrm(9,"br"),e.EFF(10,"\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u4e0b\u3055\u3044\u3002"),e.k0s(),e.DNE(11,Pe,3,3,"a",7)(12,Ae,2,0,"ng-template",null,0,e.C5r),e.k0s()()),2&n){const r=e.sdS(13);e.R7$(),e.Y8G("activeStep",3),e.R7$(10),e.Y8G("ngIf",t.isIOSApp())("ngIfElse",r)}},dependencies:[d.bT,v.Wk,y,Me.d],styles:[".section-title[_ngcontent-%COMP%], .thanks-message[_ngcontent-%COMP%], .section-text[_ngcontent-%COMP%]{margin:0}.page-container[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:48px}.page-section[_ngcontent-%COMP%]{margin-top:48px;text-align:center}.section-title[_ngcontent-%COMP%], .thanks-message[_ngcontent-%COMP%]{font-size:2rem;font-weight:600}.section-title[_ngcontent-%COMP%]{color:#8c8168}.thanks-message[_ngcontent-%COMP%]{margin-top:24px}.section-text[_ngcontent-%COMP%]{margin-top:16px}.page-link[_ngcontent-%COMP%]{display:flex;background-color:#49c2c2;border-radius:4px;color:#fff;font-size:1.8rem;font-weight:700;margin-top:48px;width:100%;justify-content:center;align-items:center;padding:18px}"]}),o})(),data:{name:f.L.counselingReservationsComplete},canActivate:[b.q]}];let je=(()=>{var i;class o{}return(i=o).\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[v.iI.forChild(Oe),v.iI]}),o})(),Ge=(()=>{var i;class o{}return(i=o).\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({providers:[d.vh],imports:[d.MD,D.G,l.YN,l.X1,N.Ph,je]}),o})()},54375:(O,R,g)=>{g.d(R,{d:()=>v});var d=g(54438),D=g(60177);const N=["*"],l=f=>({"radio-label-medium":f});let v=(()=>{var f;class b{constructor(){this.idName="",this.name="",this.value="",this.disabled=!1,this.size="",this.checkedChange=new d.bkB,this.onChange=new d.bkB}ngOnInit(){}emitChecked(F){this.checkedChange.emit(F.target.checked)}emitChange(F){this.onChange.emit({id:this.idName,name:this.name,checked:F.target.checked,value:this.value})}}return(f=b).\u0275fac=function(F){return new(F||f)},f.\u0275cmp=d.VBU({type:f,selectors:[["app-radio-button"]],inputs:{idName:"idName",name:"name",value:"value",disabled:"disabled",checked:"checked",size:"size"}
1,outputs:{checkedChange:"checkedChange",onChange:"onChange"},ngContentSelectors:N,decls:3,vars:9,consts:[["type","radio",1,"radio-input",3,"change","id","name","value","checked","disabled"],[1,"radio-label",3,"for","ngClass"]],template:function(F,C){1&F&&(d.NAR(),d.j41(0,"input",0),d.bIt("change",function(k){return C.emitChecked(k),C.emitChange(k)}),d.k0s(),d.j41(1,"label",1),d.SdG(2),d.k0s()),2&F&&(d.Y8G("id",C.idName)("name",C.name)("value",C.value)("checked",C.checked)("disabled",C.disabled),d.R7$(),d.Y8G("for",C.idName)("ngClass",d.eq3(7,l,"medium"===C.size)))},dependencies:[D.YU],styles:['.radio-input[_ngcontent-%COMP%]{display:none}.radio-label[_ngcontent-%COMP%]{position:relative;margin:0;display:grid;grid-template-columns:24px 1fr;grid-column-gap:16px;font-size:1.6rem;cursor:pointer}.radio-label[_ngcontent-%COMP%]:before, .radio-label[_ngcontent-%COMP%]:after{content:"";display:inline-block;border-radius:50px}.radio-label[_ngcontent-%COMP%]:before{width:24px;height:24px;border:solid 1px #e0e0e0;vertical-align:middle}.radio-input[_ngcontent-%COMP%]:checked + .radio-label[_ngcontent-%COMP%]:after{position:absolute;top:7px;left:7px;width:10px;height:10px;background-color:#cab994}.radio-label-medium[_ngcontent-%COMP%]{grid-template-columns:22px 1fr;grid-column-gap:6px;font-size:1.4rem}.radio-label-medium[_ngcontent-%COMP%]:before{width:22px;height:22px}.radio-input[_ngcontent-%COMP%]:checked + .radio-label-medium[_ngcontent-%COMP%]:after{top:6.6px;left:6.6px;width:8.8px;height:8.8px}']}),b})()}}]);
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.