1import{d as I,a as b,b as y}from"./clientRequest-b63ba440.js";import{a1 as u,_ as k,A as c,f as r,g as l,x as _,y as g,h as t,q as o,j as h,B as O,k as m,F as R,D as H,m as B}from"./primeicons-188d8800.js";import{s as w}from"./index-2d391fdc.js";import{s as P}from"./index-31c11766.js";import{s as v}from"./index-158eb1d1.js";import{s as x}from"./index-0cfbab97.js";import{s as Y}from"./index-cdbcac17.js";import{s as K}from"./index-d471af00.js";import{s as U}from"./index-ce716d12.js";import{u as V}from"./gatewayTerminals-1091829f.js";import{_ as F}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-b11cbba4.js";import"./index-cc2be72b.js";import"./index-e11ee551.js";const q={setup(){const{isBelow:e}=V();return{isBelow:e}},components:{Dialog:w,Card:P,InputNumber:v,InputGroup:x,InputGroupAddon:Y,Textarea:K,ToggleSwitch:U},props:["currency"],mounted(){I.on("open-additional-charge-modal",this.showModal),I.on("card_updated",this.handleCardUpdated),I.on("cvv-verified-card-token",this.handleCvvVerifiedCardToken)},data(){return{additional_charge:{booking_info_id:0,amount:"",description:"",is_3ds:!1,selected_card:"",cvvCardToken:null,function:"_additionalCharge",unique_token:"",due_date:null,min_due_datetime:u(new Date).format("YYYY-MM-DD hh:mm a"),charge_option:1,payment_link_expiry_date:null},hasError:{amount:!1,description:!1,due_date:!1,payment_link_expiry_date:!1},errorMessage:{amount:"",description:"",due_date:"",payment_link_expiry_date:""},additionalChargeOptions:2,closeDialogCC:!1,_cleanupPolling:null,isVisible:!1,preserveFormOnHide:!1}},methods:{...b("general/",["getAllBookingCards","getPGTerminalData"]),isReady(){return!0},showModal(){this.isVisible=!0},closeModal(){this.isVisible=!1},handleCardUpdated(e){e&&this.getAllBookingCards({booking_info_id:this.booking_id})},handleCvvVerifiedCardToken({token:e,meta:a}){!a||a.booking_info_id!==this.additional_charge.booking_info_id||a.function==="_additionalCharge"&&(this.additional_charge={...a},this.additional_charge.cvvCardToken=e,this._additionalCharge())},handleCancel(){this.closeModal()},methodCardPt(e){return{root:{class:["shadow-none","cursor-pointer","flex-fill","w-100","additional-charge-modal__method-card",{"additional-charge-modal__method-card--active":this.additional_charge.charge_option===e}]},body:{class:{"ca-ph-8 ca-pv-16":this.isMobileSheet,"ca-pv-16 ca-ph-20":!this.isMobileSheet}}}},onTransactionAmountBlur(){var e;(e=this.$refs.additionalChargeCreditCard)==null||e.fetchPGTerminalWithAmount({skipLoader:!0})},handleModalHidden(){this.preserveFormOnHide||this.formReset(),this.preserveFormOnHide=!1,this.$forceCleanupBodyAndBackdrops(!0),this._cleanupPolling||(this._cleanupPolling=this.$cleanupBodyStylesPolling())},openModal(){this.$nextTick(()=>{this.$refs.additionalChargeCreditCard?this.$refs.additionalChargeCreditCard.showModal():console.warn("additionalChargeCreditCard ref is not available yet")})},reset(){const e=this.isVisible,a=this._cleanupPolling;Object.assign(this.$data,this.$options.data()),this.isVisible=e,this._cleanupPolling=a},validateadditionalChargeNow(){let e=!0;return this.resetValidationErrorMessage(),this.additional_charge.amount==""?(this.hasError.amount=!0,this.errorMessage.amount=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.TRANSACTION_AMOUNT_MISSING"),e=!1):isNaN(this.additional_charge.amount)?(this.hasError.amount=!0,this.errorMessage.amount=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.TRANSACTION_AMOUNT_NUMERIC"),e=!1):this.additional_charge.amount<1?(this.hasError.amount=!0,this.errorMessage.amount=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.TRANSACTION_AMOUNT_MIN"),e=!1):this.additional_charge.amount>999999999999e-2&&(this.hasError.amount=!0,this.errorMessage.amount=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.TRANSACTION_AMOUNT_MAX"),e=!1),this.additional_charge.description.trim()==""&&(this.hasError.description=!0,this.errorMessage.description=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.REASON_MISSING"),e=!1),e},additionalChargeNow(){this._additionalCharge()}
1,validateAdditonalScheduleCharge(){let e=this.validateadditionalChargeNow();this.additional_charge.due_date==null&&(this.hasError.due_date=!0,this.errorMessage.due_date=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.SCHEDULE_DATE_MISSING"),e=!1);const a=u(this.additional_charge.due_date,"YYYY-MM-DD HH:mm a"),d=u();return a.isBefore(d)&&(this.hasError.due_date=!0,this.errorMessage.due_date=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.SCHEDULE_DATE_FUTURE"),e=!1),e},validatePaymentLink(){let e=this.validateadditionalChargeNow();this.additional_charge.payment_link_expiry_date==null&&(this.hasError.payment_link_expiry_date=!0,this.errorMessage.payment_link_expiry_date=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.PAYMENT_LINK_EXPIRY_DATE_MISSING"),e=!1);const a=u(this.additional_charge.payment_link_expiry_date,["YYYY-MM-DD hh:mm a","YYYY-MM-DD HH:mm a"],!0),d=u();return this.additional_charge.payment_link_expiry_date!=null&&(!a.isValid()||a.isBefore(d))&&(this.hasError.payment_link_expiry_date=!0,this.errorMessage.payment_link_expiry_date=this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.ERROR_MESSAGES.PAYMENT_LINK_EXPIRY_DATE_FUTURE"),e=!1),e},additionalScheduleCharge(){this._additionalCharge()},closeChargePaymentModal(){const e=document.querySelector(`#closeChargeNowModal-${this.booking_id}`);e&&(e==null||e.click()),this._cleanupPolling||(this._cleanupPolling=this.$cleanupBodyStylesPolling())},_additionalCharge(){this.additional_charge.unique_token=this.generate_unique_token.token,this.$store.dispatch("general/additionalCharge",this.additional_charge).then(e=>{e&&(e.require_cvv||(e.status===!1?this.handleErrorResponse():e.status_code==200?(this.closeDialogCC=!0,this.closeChargePaymentModal(),this.formReset(),this.closeModal()):e.status_code==410?(this.closeChargePaymentModal(),this.formReset(),this.closeModal()):e.require_cvv||(this.closeChargePaymentModal(),this.formReset(),this.closeModal())))})},handleErrorResponse(){this.closeDialogCC=!0,this.closeChargePaymentModal(),this.$refs.additionalChargeCreditCard&&this.$refs.additionalChargeCreditCard.closeModal(),this.formReset(),this.closeModal()},formReset(){this.additional_charge.booking_info_id=0,this.additional_charge.amount="",this.additional_charge.description="",this.additional_charge.is_3ds=!1,this.additional_charge.due_date=null,this.additional_charge.payment_link_expiry_date=null,this.additional_charge.charge_option=1,this.additional_charge.cvvCardToken=null,this.additional_charge.unique_token="",this.$store.dispatch("general/additionalChargeActiveId",this.additional_charge.booking_info_id),this.resetValidationErrorMessage(),this.additionalChargeOptions=2,this.closeDialogCC=!1},resetValidationErrorMessage(){this.hasError={amount:!1,description:!1,due_date:!1,payment_link_expiry_date:!1},this.errorMessage={amount:"",description:"",due_date:"",payment_link_expiry_date:""}},additionalRequest(){let e=this;this.additional_charge.unique_token=this.generate_unique_token.token,this.additional_charge.charge_option=this.additionalChargeOptions,e.$store.dispatch("general/additionalRequest",e.additional_charge).then(()=>{e.formReset(),e.closeModal()})},setSelectedCard(e){this.additional_charge.selected_card=e},saveAdditionalCharge:async function(e){switch(this.additional_charge.booking_info_id=this.booking_id,e){case"send_additional_payment_request":this.additional_charge.charge_option=2,this.validatePaymentLink()&&this.additionalRequest();break;case"charge_now_additional_payment":this.validateadditionalChargeNow()&&(this.additional_charge.charge_option=1,this.preserveFormOnHide=!0,this.closeModal(),await this.getPGTerminalData({booking_id:this.booking_id,source:"client_side",caller:"additional_charge",amount:parseFloat(this.additional_charge.amount),currency:this.currency}),this.openModal());break;case"schedule_additional_payment_request":this.validateAdditonalScheduleCharge()&&(this.additional_charge.charge_option=3,this.preserveFormOnHide=!0,this.closeModal(),this.additionalScheduleCharge());break}},changeSelectedCardId(e){this.additional_charge.selected_card=e},setPaymentType(e){this.additional_charge.charge_option=e},handlePrimaryAction(){if(this.additional_charge.charge_option===1){this.saveAdditionalCharge("charge_now_additional_payment");return}if(this.additional_charge.charge_option===2){this.saveAdditionalCharge("send_additional_payment_request");return}this.additional_charge.charge_option===3&&this.saveAdditionalCharge("schedule_additional_payment_request")}},computed:{...y({booking_id:e=>
1e.general.additional_charge_active_booking_id,booking_cards:e=>e.general.booking_cards,generate_unique_token:e=>e.general.generate_unique_token,booking_detail:e=>e.general.booking.booking_detail}),isMobileSheet(){return this.isBelow("md")},dialogPosition(){return this.isMobileSheet?"bottom":"center"},dialogPt(){return this.isMobileSheet?{header:{class:"cau-border-bottom-grey-20 ca-p-20"},content:{class:"ca-p-20 additional-charge-modal__content"},footer:{class:"ca-p-20"}}:{header:{class:"cau-border-bottom-grey-20 ca-p-24"},content:{class:"ca-p-24"},footer:{class:"ca-p-24"}}},currencySymbol(){var A;const e=(this.currency||"").toString().trim();if(e)return e;const a=(A=this.booking_detail)==null?void 0:A[this.booking_id];return((a==null?void 0:a.booking_currency)||(a==null?void 0:a.currency)||"").toString().trim()||"$"},hasNamedGuest(){var a;const e=(a=this.booking_detail)==null?void 0:a[this.booking_id];return!!((e==null?void 0:e.guest_name)||"").trim()},guestName(){var d;const e=(d=this.booking_detail)==null?void 0:d[this.booking_id];return((e==null?void 0:e.guest_name)||"").trim()||this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BANNERS.GUEST_FALLBACK")},formattedChargeAmount(){const e=parseFloat(this.additional_charge.amount);return this.additional_charge.amount===""||this.additional_charge.amount===null||Number.isNaN(e)?"00.00":e.toFixed(2)},formattedChargeAmountWithCurrency(){return`{${this.currencySymbol}${this.formattedChargeAmount}}`},primaryActionLabel(){return this.additional_charge.charge_option===2?this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.SEND_PAYMENT_LINK"):this.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.SCHEDULE_CHARGE")},dueDateModel:{get(){if(!this.additional_charge.due_date)return null;const e=u(this.additional_charge.due_date,["YYYY-MM-DD hh:mm a","YYYY-MM-DD HH:mm a"],!0);return e.isValid()?e.toDate():null},set(e){if(!e){this.additional_charge.due_date=null;return}this.additional_charge.due_date=u(e).format("YYYY-MM-DD hh:mm a")}},paymentLinkExpiryDateModel:{get(){if(!this.additional_charge.payment_link_expiry_date)return null;const e=u(this.additional_charge.payment_link_expiry_date,["YYYY-MM-DD hh:mm a","YYYY-MM-DD HH:mm a"],!0);return e.isValid()?e.toDate():null},set(e){if(!e){this.additional_charge.payment_link_expiry_date=null;return}this.additional_charge.payment_link_expiry_date=u(e).format("YYYY-MM-DD hh:mm a")}},minDueDateTime(){return new Date},maxDueDateTime(){if(this.booking_id!==0&&this.booking_id!==""&&this.booking_detail[this.booking_id]){const e=this.booking_detail[this.booking_id];return u(e.check_out_date,"YYYY-MM-DD").add(3,"days").endOf("day").toDate()}},paymentTypes(){const e=this.isMobileSheet;return[{id:1,icon:"pi pi-bolt",name:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.CHARGE_NOW":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.CHARGE_NOW"),description:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.CHARGE_NOW_DESCRIPTION":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.CHARGE_NOW_DESCRIPTION")},{id:2,icon:"pi pi-link",name:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.SEND_PAYMENT_LINK":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.SEND_PAYMENT_LINK"),description:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.SEND_PAYMENT_LINK_DESCRIPTION":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.SEND_PAYMENT_LINK_DESCRIPTION")},{id:3,icon:"pi pi-calendar",name:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.SCHEDULE_CHARGE":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.SCHEDULE_CHARGE"),description:this.$t(e?"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.MOBILE.SCHEDULE_CHARGE_DESCRIPTION":"BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.METHODS.SCHEDULE_CHARGE_DESCRIPTION")}]}},beforeUnmount(){I.off("open-additional-charge-modal",this.showModal),I.off("card_updated",this.handleCardUpdated),I.off("cvv-verified-card-token",this.handleCvvVerifiedCardToken),this._cleanupPolling&&(this._cleanupPolling.stop(),this._cleanupPolling=null),this.$forceCleanupBodyAndBackdrops(!0)},watch:{booking_id:{immediate:!0,handler(e,a){e!=0&&e!=a&&this.getAllBookingCards({booking_info_id:this.booking_id}),this.reset()}}
1,booking_cards:{immediate:!0,handler(e,a){let d=e.filter(A=>A.is_default==1);k.isEmpty(d)||(this.additional_charge.selected_card=d[0].id)}},additional_charge:{immediate:!0,deep:!0,handler(e){this.$emit("updateAmount",e.amount)}}}},W={class:"cac-h1 cac-fw-semi ca-text-blue-100"},X={class:"translate"},j={class:"cac-body-lg cac-fw-med ca-text-blue-100 ca-mb-16"},z={class:"translate"},$={class:"additional-charge-modal__methods d-flex align-items-stretch gap-2"},J={class:"text-center"},Q={class:"ca-mb-8"},Z={class:"cac-body-sm cac-fw-reg ca-text-grey-80 translate"},ee={key:0,class:"additional-charge-modal__link-banner d-flex align-items-start gap-3 ca-bg-blue-20 ca-p-16 ca-mt-24"},ae={class:"translate cac-body-md cac-fw-reg ca-text-blue-60"},te={class:"ca-mt-24"},ie={class:"d-block cac-body-md cac-fw-med ca-text-blue-100",for:"transactionAmount"},se={class:"translate"},oe={key:0,class:"cac-body-sm cac-fw-reg ca-text-red-100"},ne={class:"translate"},re={class:"d-block cac-body-md cac-fw-med ca-text-blue-100",for:"paymentLinkExpiryDate"},de={class:"translate"},le={key:0,class:"cac-body-sm cac-fw-reg ca-text-red-100"},ce={class:"translate"},_e={class:"d-block cac-body-md cac-fw-med ca-text-blue-100",for:"scheduleChargeDate"},he={class:"translate"},ue={key:0,class:"cac-body-sm cac-fw-reg ca-text-red-100"},me={class:"translate"},ge={class:"w-100 ca-mt-16"},Ie={class:"d-block cac-body-md cac-fw-med ca-text-blue-100",for:"transactionDescription"},Ae={class:"translate"},pe={key:0,class:"cac-body-sm cac-fw-reg ca-text-red-100"},De={class:"translate"},Oe={class:"cac-body-md cac-fw-med ca-text-blue-100 ca-mr-8 ca-mb-0",for:"transactionChargebackProtection"},Ne={class:"translate"},Ce={class:"translate"},Ee={key:0},Te={key:0,class:"translate"},fe={class:"notranslate ca-ml-2 ca-mr-2"},Le={key:1,class:"translate"},Me={key:1,class:"translate"};function Se(e,a,d,A,s,i){const N=c("Card"),C=c("InputGroupAddon"),E=c("InputNumber"),T=c("InputGroup"),p=c("ca-datepicker"),f=c("Textarea"),L=c("cac-tooltip"),M=c("ToggleSwitch"),D=c("cac-btn"),S=c("Dialog"),G=c("additional-charge-credit-card");return r(),l("div",null,[_(S,{id:"additionalChargeModal",visible:s.isVisible,"onUpdate:visible":a[5]||(a[5]=n=>s.isVisible=n),modal:"",draggable:!1,closable:"",dismissableMask:!1,closeOnEscape:!0,showHeader:"",showFooter:"",class:h(["additional-charge-modal",{"additional-charge-modal--mobile-sheet":i.isMobileSheet}]),position:i.dialogPosition,pt:i.dialogPt,onHide:i.handleModalHidden},{header:g(()=>[t("h5",W,[t("span",X,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.TITLE")),1)])]),footer:g(()=>[t("div",{class:h(["w-100 d-flex align-items-center",i.isMobileSheet?"":"justify-content-between"])},[i.isMobileSheet?m("",!0):(r(),O(D,{key:0,"data-test-id":"additional-charge-modal-new-cancel",variant:"secondary",appearance:"text",size:"sm",class:"translate",onClick:i.handleCancel,label:e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.CANCEL")},null,8,["onClick","label"])),_(D,{variant:"primary",size:"sm",class:h(i.isMobileSheet?"w-100":""),onClick:i.handlePrimaryAction},{default:g(()=>[s.additional_charge.charge_option===1?(r(),l("span",Ee,[e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.CHARGE_AMOUNT_NOW_PREFIX")?(r(),l("span",Te,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.CHARGE_AMOUNT_NOW_PREFIX")),1)):m("",!0),t("span",fe,o(i.formattedChargeAmountWithCurrency),1),e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.CHARGE_AMOUNT_NOW_SUFFIX")?(r(),l("span",Le,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BUTTONS.CHARGE_AMOUNT_NOW_SUFFIX")),1)):m("",!0)])):(r(),l("span",Me,o(i.primaryActionLabel),1)),a[12]||(a[12]=t("i",{class:"pi pi-arrow-right pi-icon--md ca-ml-8"},null,-1))]),_:1},8,["class","onClick"])],2)]),default:g(()=>[t("div",null,[t("div",j,[t("span",z,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.HOW_TO_CHARGE")),1)]),t("div",$,[(r(!0),l(R,null,H(i.paymentTypes,n=>(r(),O(N,{key:n.id,pt:i.methodCardPt(n.id),onClick:Ge=>i.setPaymentType(n.id)},{content:g(()=>[t("div",J,[t("div",Q,[t("i",{class:h(["pi",n.icon,s.additional_charge.charge_option===n.id?"ca-text-accent":"ca-text-grey-80"])},null,2)]),t("div",{class:h(["cac-body-sm cac-fw-med translate",s.additional_charge.charge_option===n.id?"ca-text-accent":"ca-text-blue-90"])},o(n.name),3),t("div",Z,o(n.description),1)])]),_:2},1032,["pt","onClick"]))),128))]),s.additional_charge.charge_option===2?(r(),l("div",ee,[a[6]||(a[6]=t("i",{class:"pi pi-info-circle ca-text-accent ca-mt-6 pi-icon--sm","aria-hidden":"true"},null,-1)),t("span",null,[t("span",ae,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.BANNERS.PAYMENT_LINK")+"Â "),1),t("span",{class:h(["cac-body-md cac-fw-semi ca-text-blue-60",i.hasNamedGuest?"notranslate":"translate"])},o(i.guestName),3)])])):m("",!0),t("div",te,[t("div",{class:h(["d-flex gap-3",i.isMobileSheet?"flex-column":""])},[t("div",{class:h(i.isMobileSheet?"w-100":"w-50")},[t("label",ie,[t("span",se,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.AMOUNT")),1),a[7]||(a[7]=t("span",{class:"text-danger"},"*",-1))]),_(T,{class:"notranslate"},{default:g(()=>[_(C,{class:"notranslate"},{default:g(()=>[B(o(i.currencySymbol),1)]),_:1}),_(E,{modelValue:s.additional_charge.amount,"onUpdate:modelValue":a[0]||(a[0]=n=>s.additional_charge.amount=n),id:"transactionAmount",class:"notranslate",placeholder:e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.PLACEHOLDERS.AMOUNT_LABEL"),minFractionDigits:2,maxFractionDigits:2,"no-translate":!0,fluid:"",onBlur:i.onTransactionAmountBlur},null,8,["modelValue","placeholder","onBlur"])]),_:1}),s.hasError.amount?(r(),l("small",oe,[t("span",ne,o(s.errorMessage.amount),1)])):m("",!0)],2),s.additional_charge.charge_option===2?(r(),l("div",{key:0,class:h(i.isMobileSheet?"w-100":"w-50")},[t("label",re,[t("span",de,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.PAYMENT_LINK_EXPIRY")),1),a[8]||(a[8]=t("span",{class:"text-danger"},"*",-1))]),_(p,{id:"paymentLinkExpiryDate",modelValue:i.paymentLinkExpiryDateModel,"onUpdate:modelValue":a[1]||(a[1]=n=>i.paymentLinkExpiryDateModel=n),manualInput:!1,minDate:i.minDueDateTime,maxDate:i.maxDueDateTime,showTime:"",hourFormat:"12",dateFormat:"yy-mm-dd",appendTo:"body",inputClass:"notranslate",panelClass:"custom-datepicker-panel",placeholder:e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.PLACEHOLDERS.SELECT_DATE_TIME"),fluid:"",showIcon:"",iconDisplay:"input"},null,8,["modelValue","minDate","maxDate","placeholder"]),s.hasError.payment_link_expiry_date?(r(),l("small",le,[t("span",ce,o(s.errorMessage.payment_link_expiry_date),1)])):m("",!0)],2)):m("",!0),s.additional_charge.charge_option===3?(r(),l("div",{key:1,class:h(i.isMobileSheet?"w-100":"w-50")},[t("label",_e,[t("span",he,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.SCHEDULE_CHARGE_DATE")),1),a[9]||(a[9]=t("span",{class:"text-danger"},"*",-1))]),_(p,{id:"scheduleChargeDate",modelValue:i.dueDateModel,"onUpdate:modelValue":a[2]||(a[2]=n=>i.dueDateModel=n),manualInput:!1,minDate:i.minDueDateTime,maxDate:i.maxDueDateTime,showTime:"",hourFormat:"12",dateFormat:"yy-mm-dd",appendTo:"body",inputClass:"notranslate",panelClass:"custom-datepicker-panel",placeholder:e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.PLACEHOLDERS.SELECT_DATE_TIME"),fluid:"",showIcon:"",iconDisplay:"input"},null,8,["modelValue","minDate","maxDate","placeholder"]),s.hasError.due_date?(r(),l("small",ue,[t("span",me,o(s.errorMessage.due_date),1)])):m("",!0)],2)):m("",!0)],2),t("div",ge,[t("label",Ie,[t("span",Ae,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.DESCRIPTION")),1),a[10]||(a[10]=t("span",{class:"text-danger"},"*",-1))]),_(f,{class:"w-100 notranslate",id:"transactionDescription",placeholder:e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.PLACEHOLDERS.DESCRIPTION_DETAIL"),modelValue:s.additional_charge.de
1scription,"onUpdate:modelValue":a[3]||(a[3]=n=>s.additional_charge.description=n),rows:i.isMobileSheet?4:5,"no-translate":!0},null,8,["placeholder","modelValue","rows"]),s.hasError.description?(r(),l("small",pe,[t("span",De,o(s.errorMessage.description),1)])):m("",!0)]),t("div",{class:h(["w-100 ca-mt-16 d-flex align-items-center",i.isMobileSheet?"justify-content-between":""])},[t("label",Oe,[t("span",Ne,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.LABELS.CHARGEBACK_PROTECTION")),1),_(L,{placement:"top"},{trigger:g(()=>[...a[11]||(a[11]=[t("i",{class:"pi pi-info-circle pi-icon--xs ml-1","aria-hidden":"true"},null,-1)])]),default:g(()=>[t("span",Ce,o(e.$t("BOOKING_LISTING.ADDITIONAL_CHARGE_MODAL.TOOLTIPS.CHARGEBACK_PROTECTION")),1)]),_:1})]),_(M,{modelValue:s.additional_charge.is_3ds,"onUpdate:modelValue":a[4]||(a[4]=n=>s.additional_charge.is_3ds=n),severity:"success",size:"sm",inputId:"transactionChargebackProtection"},null,8,["modelValue"])],2)])])]),_:1},8,["visible","class","position","pt","onHide"]),_(G,{charge_option:s.additional_charge.charge_option,booking_id:e.booking_id,amount:s.additional_charge.amount,currency:d.currency,description:s.additional_charge.description,closeDialogCC:s.closeDialogCC,onCharge_now:i.additionalChargeNow,onSchedule_charge:i.additionalScheduleCharge,onFetchCard:i.changeSelectedCardId,onSelectedCard:i.setSelectedCard,ref:"additionalChargeCreditCard"},null,8,["charge_option","booking_id","amount","currency","description","closeDialogCC","onCharge_now","onSchedule_charge","onFetchCard","onSelectedCard"])])}const Fe=F(q,[["render",Se]]);export{Fe as default}; 2//# sourceMappingURL=AdditionalChargeModalLatest-fdf41bf7.js.map
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.