webpackJsonp([5],{436:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=e(542),a=e(639),i=e(7),r=i(o.a,a.a,!1,null,null,null);n.default=r.exports},437:function(t,n,e){"use strict";function o(t){e(640)}Object.defineProperty(n,"__esModule",{value:!0});var a=e(543),i=e(643),r=e(7),s=o,c=r(a.a,i.a,!1,s,null,null);n.default=c.exports},453:function(t,n,e){"use strict";function o(t,n){return new c.a(function(e,o){l()({method:d.a.ajaxMethod,url:t,data:n,dataType:"json"}).then(function(t){e(t)}).catch(function(){})})}function a(t,n){return new c.a(function(e,o){l.a.post(t,r()(n),{responseType:"blob"}).then(function(t){e(t)}).catch(function(t){o(t)})})}var i=e(55),r=e.n(i),s=e(8),c=e.n(s),u=e(11),l=e.n(u),d=e(20);n.a={getBookings:function(t){return o(d.a.getBookings,t)},getDetail:function(t){return o(d.a.getBookingDetail,t)},cancel:function(t){return o(d.a.cancelBooking,t)},getBookingVoucher:function(t){return o(d.a.getBookingVoucher,t)},getBookingProformaInvoice:function(t){return o(d.a.getBookingProformaInvoice,t)},hotelUpdatePayment:function(t){return o(d.a.hotelUpdatePayment,t)},hotelCheckPaymentStatus:function(t){return o(d.a.hotelCheckPaymentStatus,t)},hotelUpdatePayment2c2p:function(t){return o(d.a.hotelUpdatePayment2c2p,t)},hotelChangetoBankTransfer:function(t){return o(d.a.hotelChangetoBankTransfer,t)},hotelChangetoCreditCard:function(t){return o(d.a.hotelChangetoCreditCard,t)},getWBookings:function(t){return o(d.a.getWBookings,t)},getWDetail:function(t){return o(d.a.getWBookingDetail,t)},getWLConnectingPaxBookings:function(t){return o(d.a.getWLConnectingPaxBookings,t)},getWLConnectingPaxBookingDetail:function(t){return o(d.a.getWLConnectingPaxBookingDetail,t)},getWLConnectingTastePaxBookings:function(t){return o(d.a.getWLConnectingTastePaxBookings,t)},getWLConnectingTasteBookingDetail:function(t){return o(d.a.getWLConnectingTasteBookingDetail,t)},exportGroupBookingEnquiries:function(t){return a(d.a.exportGroupBookingEnquiries,t)},exportWLBookings:function(t){return a(d.a.exportWLBookings,t)},exportFnbBookings:function(t){return a(d.a.exportFnbBookings,t)}}},542:function(t,n,e){"use strict";var o=e(30),a=e.n(o),i=e(453),r=e(29);n.a={name:"booking-status",data:function(){return{booking:null}},computed:a()({},Object(r.b)("hotel",["bookDetail"])),mounted:function(){var t=this,n=this.$route.query.id;void 0===n||isNaN(parseInt(n))||i.a.getDetail({propertiesBookingId:parseInt(n)}).then(function(n){t.booking=n})},beforeRouteLeave:function(t,n,e){e()},methods:{backToHome:function(){this.$router.push({path:this.RouterConfig.BookingList})},viewBooking:function(){var t=this.$route.query.id;void 0===t||isNaN(parseInt(t))||this.$router.push({path:this.RouterConfig.BookingDetail,query:{id:t}})}}}},543:function(t,n,e){"use strict";(function(t){var o=e(30),a=e.n(o),i=e(642),r=e(29);n.a={name:"profile-paymentcard-list",data:function(){return{nav:null,users:{}}},computed:a()({},Object(r.b)("common",["lang"])),mounted:function(){this.nav=function(){return e.e(26).then(e.bind(null,459))},this.getUsers()},methods:{getUsers:function(){var t=this;window.scrollTo({top:0,behavior:"instant"}),i.a.getPaymentCards({language:this.lang}).then(function(n){t.users=n})},addUser:function(){i.a.addPaymentCard({language:this.lang}).then(function(t){window.open(t.webPaymentUrl,"_blank")})},removeUser:function(n){var e=this;t.confirm({title:"Notice",content:"Are you sure to delete this payment card?",type:"red",useBootstrap:!1,buttons:{confirm:function(){i.a.deletePaymentCard({language:e.lang,paymentCardId:n}).then(function(){e.getUsers()})},cancel:function(){}}})}}}}).call(n,e(9))},639:function(t,n,e){"use strict";var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.booking?e("div",{staticClass:"fc-booking-status"},[e("div",{staticClass:"ui container"},[e("h1",[t._v("Booking Cancelled")]),t._v(" "),e("div",{staticClass:"fc-booking-no"},[e("label",[t._v("for booking :")]),t._v(" "),e("div",[t._v(t._s(t.booking.bookingRef))])]),t._v(" "),e("div",{staticClass:"fc-booking-control"},[e("a",{staticClass:"fc-back",on:{click:t.backToHome}},[t._v("Back to List")]),t._v(" "),e("a",{staticClass:"fc-view",on:{click:t.viewBooking}},[t._v("View Booking")])])])]):t._e()},a=[],i={render:o,staticRenderFns:a};n.a=i},640:function(t,n,e){var o=e(641);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);e(418)("3854ba94",o,!0,{})},641:function(t,n,e){n=t.exports=e(417)(!1),n.push([t.i,".user_table{width:100%;border-collapse:collapse;font-size:14px;color:#666}.user_table td,.user_table th{border:1px solid #eee;padding:8px 16px;text-align:center}.add-user{color:#76b72a;border:1px solid #76b72a;padding:4px 12px;margin:4px 0;display:inline-block;background:#fff;cursor:pointer}.fc-booking_head>div{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding-right:24px}.user_table a{color:red;cursor:pointer}@media only screen and (max-width:767px){.user_table tr>td,.user_table tr>th{display:none}.user_table tr>td:first-of-type,.user_table tr>th:first-of-type{display:block}}",""])},642:function(t,n,e){"use strict";function o(t,n){return new i.a(function(e,o){s()({method:c.a.ajaxMethod,url:t,data:n,dataType:"json"}).then(function(t){e(t)}).catch(function(){})})}var a=e(8),i=e.n(a),r=e(11),s=e.n(r),c=e(20);n.a={getPaymentCards:function(t){return o(c.a.getPaymentCards,t)},addPaymentCard:function(t){return o(c.a.addPaymentCard,t)},deletePaymentCard:function(t){return o(c.a.deletePaymentCard,t)}}},643:function(t,n,e){"use strict";var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"fc-profile"},[e("div",{staticClass:"ui container"},[e(t.nav,{tag:"component",attrs:{active:3}}),t._v(" "),e("div",{staticClass:"fc-profile-booking-list"},[e("div",{staticClass:"fc-recent-booking"},[e("div",{staticClass:"fc-booking_head"},[e("div",[e("label",[t._v("My Payment Cards")]),t._v(" "),e("a",{staticClass:"add-user",on:{click:t.addUser}},[t._v("Add Credit Card")])])]),t._v(" "),e("div",{staticClass:"fc-recent-booking_body"},[e("table",{staticClass:"user_table"},[t._m(0),t._v(" "),e("tbody",[t.users&&t.users.paymentCards&&t.users.paymentCards.length>0?t._l(t.users.paymentCards,function(n){return e("tr",{key:n.id},[e("td",[t._v(t._s(n.cardNo))]),t._v(" "),e("td",[t._v(t._s(n.issueCountry))]),t._v(" "),e("td",[t._v(t._s(n.issuerBank))]),t._v(" "),e("td",[t._v(t._s(n.cardType))]),t._v(" "),e("td",[t._v(t._s(n.merchantId))]),t._v(" "),e("td",[e("a",{on:{click:function(e){return t.removeUser(n.id)}}},[t._v("Delete")])])])}):t._e()],2)])])])])],1)])},a=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("thead",[e("tr",[e("th",[t._v("Card No")]),t._v(" "),e("th",[t._v("Issue Country")]),t._v(" "),e("th",[t._v("Issuer Bank")]),t._v(" "),e("th",[t._v("Card Type")]),t._v(" "),e("th",[t._v("Merchant ID")]),t._v(" "),e("th",[t._v("Active")])])])}],i={render:o,staticRenderFns:a};n.a=i}});