(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c681f02"],{"45eb":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("e439"),n("5d41");var a=n("7e84");function i(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=Object(a["a"])(e),null===e)break;return e}function r(e,t,n){return r="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var a=i(e,t);if(a){var r=Object.getOwnPropertyDescriptor(a,t);return r.get?r.get.call(n):r.value}},r(e,t,n||e)}},"5d41":function(e,t,n){var a=n("23e7"),i=n("861d"),r=n("825a"),s=n("5135"),o=n("06cf"),c=n("e163");function l(e,t){var n,a,u=arguments.length<3?e:arguments[2];return r(e)===u?e[t]:(n=o.f(e,t))?s(n,"value")?n.value:void 0===n.get?void 0:n.get.call(u):i(a=c(e))?l(a,t,u):void 0}a({target:"Reflect",stat:!0},{get:l})},ce9a:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{ref:"form",attrs:{id:"paymentForm",method:"post",action:e.url}},[n("input",{attrs:{type:"hidden",name:"ShopID"},domProps:{value:e.shopId}}),n("input",{attrs:{type:"hidden",name:"OrderID"},domProps:{value:e.orderId}}),n("input",{attrs:{type:"hidden",name:"Amount"},domProps:{value:e.amount}}),n("input",{attrs:{type:"hidden",name:"Tax"},domProps:{value:e.tax}}),n("input",{attrs:{type:"hidden",name:"DateTime"},domProps:{value:e.dateTime}}),n("input",{attrs:{type:"hidden",name:"ShopPassString"},domProps:{value:e.shopPassString}}),n("input",{attrs:{type:"hidden",name:"RetURL"},domProps:{value:e.retURL}}),n("input",{attrs:{type:"hidden",name:"CancelURL"},domProps:{value:e.cancelURL}}),n("input",{attrs:{type:"hidden",name:"UseCredit"},domProps:{value:e.useCredit}}),n("input",{attrs:{type:"hidden",name:"JobCd"},domProps:{value:e.jobCd}}),e._m(0)])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"button-submit-onlie",attrs:{type:"submit"}},[n("i",{staticClass:"far fa-credit-card fa-lg"}),e._v("オンライン決済へ進む")])}],r=n("d4ec"),s=n("bee2"),o=n("262e"),c=n("2caf"),l=n("9ab4"),u=n("08af"),p=n("60a3"),d=function(e){Object(o["a"])(n,e);var t=Object(c["a"])(n);function n(){return Object(r["a"])(this,n),t.apply(this,arguments)}return Object(s["a"])(n,[{key:"submit",value:function(){var e=this.$refs;e.form.submit()}},{key:"viewID",get:function(){return u["a"].NoNamed}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),n}(u["c"]);Object(l["a"])([Object(p["b"])()],d.prototype,"url",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"shopId",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"orderId",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"amount",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"tax",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"dateTime",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"shopPassString",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"retURL",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"cancelURL",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"jobCd",void 0),Object(l["a"])([Object(p["b"])()],d.prototype,"useCredit",void 0),d=Object(l["a"])([Object(p["a"])({})],d);var m=d,v=m,f=n("2877"),y=Object(f["a"])(v,a,i,!1,null,null,null);t["a"]=y.exports},df2e:function(e,t,n){"use strict";n.r(t),n.d(t,"PaymentStatus",(function(){return j}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ippan-pages favorite-list-page"},[n("IppanHeader",{attrs:{returnPageType:e.viewID,returnPageParams:e.viewParams}}),n("div",{staticClass:"banner"}),n("div",{staticClass:"body-content"},[n("IppanSidebar"),n("section",{staticClass:"primary"},[n("div",{staticClass:"main-content center-content primary-main-content"},[n("div",{staticClass:"primary-content"},[n("div",{staticClass:"common-shadow-box"},[n("header",{staticClass:"header-title"},[n("h2",{staticClass:"dashboard-title"},[e._v("予約履歴")]),n("div",{staticClass:"help-icon"},[n("HelpInformation",{attrs:{pageType:e.viewID,type:"page"}})],1)]),n("div",{staticClass:"favorite-plan-content"},[n("div",{staticClass:"reservation-now"},e._l(e.reservations,(function(t){return n("table",{key:t.index,staticClass:"favorite-hotel-list"},[n("tbody",[n("tr",[n("td",{staticClass:"plan-details"},[n("h3",[e._v(e._s(t.data.facility.name))]),n("ul",{staticClass:"description"},[n("li",[n("h4",{staticClass:"plan-items"},[e._v("チェックイン日")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(e._f("formatDate")(e.toDate(t.data.checkInDate),"YYYY年MM月DD日")))])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("プラン")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(t.data.plan.name))])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("食事")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(t.data.plan.mealTypeLabel))])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("部屋タイプ")]),n("p",{staticClass:"plan-details-p"},[e._v(" "+e._s(t.data.roomGroup.name)+" "),t.data.roomGroup.isEnabledSmoking?e._e():n("span",[n("i",{staticClass:"fas red fa-smoking-ban fa-lg"}),e._v("禁煙 ")])])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("利用部屋数")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(t.data.roomNumber)+"部屋")])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("請求金額")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(e._f("priceJP")(t.data.allTotalPrice)))])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("決済方法")]),n("p",{staticClass:"plan-details-p"},[e._v(e._s(e._f("paymentType")(t.data.paymentType))),[e._v(e._s(e.getPaymentStepLabel(t)))]],2)]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("状態")]),n("p",{staticClass:"plan-details-p",class:t.state},[n("b",{staticClass:"res-stat"},[e._v(e._s(e._f("reservationState")(t.state)))])])]),n("li",[n("h4",{staticClass:"plan-items"},[e._v("備考")]),n("p",{staticClass:"plan-details-p",domProps:{innerHTML:e._s(e.$options.filters.nl2br(t.data.memo))}})])])]),n("td",{staticClass:"apply-plan",class:t.state},[n("span",{staticClass:"apply-label-mid"},[e._v(e._s(e._f("reservationState")(t.state)))]),t.isPaymentNotApproved?n("h4",[n("b",[e._v("オンライン決済可能残り時間")]),n("span",[n("i",{staticClass:"timer far fa-clock fa-lg"}),e._v(e._s(e._f("remainSeconds")(t.onlinePaymentRemainSeconds)))])]):e._e(),n("h4",[n("b",[e._v("予約番号")]),e._v(" "+e._s(t.code)+" ")]),n("h4",[n("b",[e._v("予約受付日時")]),e._v(" "+e._s(e._f("formatDate")(t.reservationDateTime,"YYYY年MM月DD日 HH時mm分ss秒"))+" ")]),n("h4",[n("b",[e._v("販売元")]),e._v(" "+e._s(t.data.site.name)+" ")]),n("button",{staticClass:"plan-page-link",on:{click:function(n){return e.onFind(t.id)}}},[e._v("予約詳細")]),e.isOnlinePaymentVisibled(t)?[n("button",{staticClass:"payment-button",on:{click:function(n){return e.onOnLinePaymentClicked(t.id)}}},[e._v("オンライン決済")])]:e._e()],2)])])])})),0)])])])])])],1),n("onlinePaymentDialog",{attrs:{onLinePaymentSetting:e.onLinePaymentSetting},on:{ok:e.onOnLinePaymentCommit,cancel:e.onOnLinePaymentCancel}})],1)},i=[],r=(n("99af"),n("4160"),n("159b"),n("96cf"),n("1da1")),s=n("d4ec"),o=n("bee2"),c=n("7e84"),l=n("45eb"),u=n("262e"),p=n("2caf"),d=n("9ab4"),m=n("08af"),v=n("60a3"),f=(n("1d46"),n("950a"),n("afbc")),y=n("9f13"),h=n("d257"),b=n("ebe2"),g=n("0d59"),P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal",{attrs:{name:"onLinePaymentModalDialog",width:900,height:"auto",resizable:!0,clickToClose:!1,reset:!0},on:{opened:e.onOpened}},[n("div",{staticClass:"overlay-content"},[n("header",[n("h3",[e._v("オンライン決済")])]),n("section",{staticClass:"overlay-body-content"},[n("p",[e._v("下記のボタンを押してオンライン決済処理を行ってください。決済処理ページに移動します。")]),n("p",[e._v("決済後、画面に反映するまで時間がかかる場合がございます。")]),n("footer",{staticClass:"overlay-navigation"},[n("div",{staticClass:"close"},[n("button",{on:{click:function(t){return e.onCancel()}}},[n("i",{staticClass:"fas fa-times fa-lg"}),e._v("キャンセル ")])]),n("div",{staticClass:"submit"},[n("PaymentForm",{ref:"PaymentForm",attrs:{url:e.onLinePaymentSetting.url,shopId:e.onLinePaymentSetting.shopId,orderId:e.onLinePaymentSetting.orderId,amount:e.onLinePaymentSetting.amount,tax:e.onLinePaymentSetting.tax,dateTime:e.onLinePaymentSetting.dateTime,shopPassString:e.onLinePaymentSetting.shopPassString,retURL:e.onLinePaymentSetting.retURL,cancelURL:e.onLinePaymentSetting.cancelURL,useCredit:e.onLinePaymentSetting.useCredit,jobCd:e.onLinePaymentSetting.jobCd}})],1)])])])])},C=[],O=n("ce9a"),_=function(e){Object(u["a"])(n,e);var t=Object(p["a"])(n);function n(){return Object(s["a"])(this,n),t.apply(this,arguments)}return Object(o["a"])(n,[{key:"onOpened",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onOK",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("ok");case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("cancel");case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"viewID",get:function(){return m["a"].NoNamed}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),n}(m["c"]);Object(d["a"])([Object(v["b"])()],_.prototype,"onLinePaymentSetting",void 0),_=Object(d["a"])([Object(v["a"])({components:{PaymentForm:O["a"]}})],_);var j,k=_,w=k,L=n("2877"),S=Object(L["a"])(w,P,C,!1,null,null,null),R=S.exports;(function(e){e[e["Unknown"]=0]="Unknown",e[e["Modified"]=1]="Modified",e[e["Canceled"]=2]="Canceled",e[e["Paid"]=3]="Paid",e[e["Complete"]=4]="Complete"})(j||(j={}));var I=function(e){Object(u["a"])(n,e);var t=Object(p["a"])(n);function n(){var e;return Object(s["a"])(this,n),e=t.apply(this,arguments),e.keyword="",e.year=(new Date).getFullYear(),e.reservations=[],e.paidReservationId=0,e.onLinePaymentSetting={},e}return Object(o["a"])(n,[{key:"created",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.onlinePaymentSuccess();case 2:return e.next=4,this.onSearch();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPaymentStatus",value:function(e){return"Modified"==e.state?j.Modified:"Canceled"==e.state?j.Canceled:e.id==this.paidReservationId?j.Paid:e.isOnlinePaymentCompleteAll?j.Complete:j.Unknown}},{key:"getPaymentStepLabel",value:function(e){var t=this.getPaymentStatus(e);switch(t){case j.Paid:return" (支払い済み)";case j.Complete:return" (決済済み)";default:return""}}},{key:"isOnlinePaymentVisibled",value:function(e){if("Confirmed"!=e.state&&"PaymentNotApproved"!=e.state)return!1;if("PaymentNotApproved"==e.state&&e.onlinePaymentRemainSeconds<=0)return!1;if(!e.canOnlinePayment)return!1;var t=this.getPaymentStatus(e);switch(t){case j.Paid:return!1;case j.Complete:return!1;default:return!0}}},{key:"onlinePaymentSuccess",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n,a,i,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.AccessID,n=this.$route.query.AccessPass,a=this.$route.query.OrderID,!(t&&n&&a)){e.next=7;break}return i={orderID:a},e.next=7,this.requestAsync(b["a"].ReqI022F2,i,(function(e){var t=e.data;r.paidReservationId=t.reservationId}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSearch",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={},e.next=3,this.requestAsync(b["a"].ReqI022R,t,(function(e){var t=e.data,a=t.list;n.reservations=a,setInterval((function(){n.reservations.forEach((function(e){return e.onlinePaymentRemainSeconds--}))}),1e3)}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onFind",value:function(e){this.movePage(m["a"].I023,{id:e})}},{key:"onCancel",value:function(){Object(l["a"])(Object(c["a"])(n.prototype),"movePage",this).call(this,"i026")}},{key:"onShowMailNotice",value:function(){}},{key:"onMailNotice",value:function(){Object(l["a"])(Object(c["a"])(n.prototype),"movePage",this).call(this,"i027")}},{key:"onShowMap",value:function(){}},{key:"onOnLinePaymentClicked",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.reqOnLinePaymentInfo(t,(function(e){var t=e.onLinePaymentSetting,a="".concat(y["a"].request.postRedirect).concat(location.origin,"/").concat(h["b"].dummyPath(f["b"]),"/").concat(m["a"].I022,"?"),i=new g["n"];i.url=t.url,i.shopId=t.shopId,i.orderId=t.orderId,i.amount=t.amount,i.tax=t.tax,i.dateTime=t.dateTime,i.shopPassString=t.shopPassString,i.useCredit=t.useCredit,i.jobCd=t.jobCd,i.retURL=a,i.cancelURL=a,n.onLinePaymentSetting=i,n.showOnLinePaymentDialog()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"reqOnLinePaymentInfo",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={id:t},e.next=3,this.requestAsync(b["a"].ReqI022F0,a,(function(e){var t=e.data;n(t)}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"onOnLinePaymentCommit",value:function(){this.hideOnLinePaymentDialog()}},{key:"onOnLinePaymentCancel",value:function(){this.hideOnLinePaymentDialog()}},{key:"showOnLinePaymentDialog",value:function(){this.$modal.show("onLinePaymentModalDialog")}},{key:"hideOnLinePaymentDialog",value:function(){this.$modal.hide("onLinePaymentModalDialog")}},{key:"viewID",get:function(){return m["a"].I022}},{key:"viewParams",get:function(){return{}}},{key:"title",get:function(){return this.getPageTitle()}}]),n}(m["c"]);I=Object(d["a"])([Object(v["a"])({components:{onlinePaymentDialog:R}})],I);var D=I,x=D,T=Object(L["a"])(x,a,i,!1,null,null,null);t["default"]=T.exports}}]); //# sourceMappingURL=chunk-0c681f02.c4e3b399.js.map