1import{H as D}from"./HasTranslations-CWvkTxxs.js";import{D as O}from"./Dates-Bi2vQXFv.js";import{n as M}from"./_plugin-vue2_normalizer-p4i_2SC9.js";import"./customParseFormat-DrbsBrmp.js";import"./_commonjsHelpers-CE1G-McA.js";const k={name:"DatesPickerModal",mixins:[D,O],props:{value:{type:Object,required:!0},isOpen:{type:Boolean,required:!0},context:{type:String,required:!1},refElementId:{type:String,required:!1,default(){return`dates-picker-container-${this._uid}`}},position:{type:[String,Object],required:!1,default:()=>"bottom left"},disabled:{type:Boolean,default:!1},suggestedDay:{type:Number,default:null},mode:{type:String,default:()=>"unavailability"},ignoreUnavailabilities:{type:Boolean,default:!1},availabilities:{type:Object,default:()=>({})},unavailabilities:{type:Array,default:()=>[]},periods:{type:Array,default:()=>[]},daterange:{type:Boolean,default:()=>!0},nbMonths:{type:Number,default:()=>2},mobileNbMonths:{type:Number,default:()=>6},monthFormat:{type:String,default:()=>"MMMM - YYYY"},blockPastDates:{type:Boolean,default:!0},blockChangeYear:{type:Boolean,default:!1},blockHalfDay:{type:Boolean,default:!0},blockMorning:{type:Boolean,default:!1},blockCtas:{type:Boolean,default:!1},restrictToPeriodsAllowedDays:{type:Boolean,default:!1},openOnDate:{type:String,default:""},maxDate:{type:String,default:()=>dayjs().endOf("month").add(2,"year").format("YYYY-MM-DD")}},emits:["input","did-dismiss","save","cancel","reset"],data(){let e;return this.daterange?e=this.value&&this.value.start?dayjs(this.value.start):dayjs():e=this.value?dayjs(this.value):dayjs(),{displayedDate:e,datesHasChanged:!1,dayHover:!1,periodsOfTheDays:{},dates:{start:this.value&&this.value.start?dayjs(this.value.start).startOf("day"):null,end:this.value&&this.value.end?dayjs(this.value.end).startOf("day"):null,halfday:this.value&&!!this.value.halfday,morning:this.value&&!!this.value.morning},internalUnavailabilities:this.transformUnavailabilitiesToInternalUnvailabilities(this.unavailabilities),container:null,refElementResizeObserver:null,rootElementResizeObserver:null,modalResizeObserver:null,orientation:"horizontal",currentPosition:"right top",modalHorizontalWidth:0,modalRects:{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},refElementRects:{height:0,width:0},mobileMoreMonths:0,closedauto:!1}},computed:{refElement(){return document.getElementById(this.refElementId)},unavailabilityMode(){return this.mode=="unavailability"},availabilityMode(){return this.mode=="availability"},manageUnavailabilityMode(){return this.mode=="manage-unavailability"},mobileDisplay(){return window.samboatData.isMobile},computedStyle(){if(this.mobileDisplay||!this.container||!this.modalRects.width||!this.refElement)return"";let e=-this.container.offsetLeft-parseFloat(getComputedStyle(this.refElement).borderLeftWidth||0),t=-this.container.offsetTop-parseFloat(getComputedStyle(this.refElement).borderTopWidth||0);return this.currentPosition.indexOf("bottom")==0||this.currentPosition.indexOf("top")==0?(this.currentPosition.indexOf("bottom")==0?t+=this.refElementRects.height:t-=this.modalRects.height,this.currentPosition.indexOf("center")!=-1?e+=this.refElementRects.width/2-this.modalRects.width/2:this.currentPosition.indexOf("left")==-1&&(e+=this.refElementRects.width-this.modalRects.width)):(this.currentPosition.indexOf("bottom")!==-1&&(t+=this.refElementRects.height-this.modalRects.height),this.currentPosition.indexOf("left")!==-1?e-=this.modalRects.width:e+=this.refElementRects.width),`top: ${t}px; left:${e}px;display:block;--bs-modal-zindex:1056`},internalDates(){let e=[],t=this.nbMonths;const a=this.mobileDisplay&&this.blockPastDates?dayjs().startOf("month"):this.displayedDate;if(this.mobileDisplay){let s=this.mobileNbMonths;if(this.openOnDate){const i=dayjs(this.openOnDate).diff(a,"month")+1;s=Math.max(s,i)}t=Math.min((this.mobileMoreMonths+1)*s,dayjs(this.maxDate).diff(a,"month")+1)}for(let s=0;s<t;s++)e.push(a.clone().add(s,"months"));return e},prevMonthAvailable(){if(this.blockChangeYear){var e=this.displayedDate.clone().startOf("month").subtract(1,"months");return e.isSame(dayjs(),"year")}else return this.blockPastDates?this.displayedDate.isSameOrAfter(dayjs()):!0},nextMonthAvailable(){if(this.blockChangeYear){var e=this.displayedDate.clone().startOf("month").add(this.nbMonths,"months");return e.isSame(dayjs(),"year")}else{let t=this.maxDate?dayjs(this.maxDate):dayjs().add(2,"year");return this.displayedDate.clone().add(this.nbMonths,"months")<t}},dayNotCompatibleHalfdayUnavailabilities(){return this.internalUnavailabilities.filter(e=>e.halfday&&e.half_day_slot_day_compatible==!1).map(e=>e.start.format("YYYY-MM-DD"))},weekDays(){return dayjs.weekdaysMin(!0)},fullDayUnavailabilities(){return this.internalUnavailabilities.filter(e=>!e.halfday).map(e=>e.start.format("YYYY-MM-DD"))},ctas(){let e={};if(!this.dates.start||this.blockCtas)return e;let t=this.periodOfTheDay(this.dates.start),a=this.dates.start.clone().add(7,"days");return!this.blockHalfDay&&this.isAllowed(this.dates.start)&&(!t||t.min_day===null||t.min_day==0)&&(e["half-day"]=this.dates.start.clone()),(this.ignoreUnavailabilities||this.isAllowed(this.dates.start)&&this.isAvailable(this.dates.start).includes("available")&&!this.fullDayUnavailabilities.includes(this.dates.start.format("YYYY-MM-DD"))&&!this.dayNotCompatibleHalfdayUnavailabilities.includes(this.dates.start.format("YYYY-MM-DD"))&&(!t||t.min_day===null||t.min_day<=1)&&(!t||t.max_day===null||t.max_day>=1))&&(e["1-day"]=this.dates.start.clone()),(this.ignoreUnavailabilities||this.isAvailable(a).includes("available")&&this.isAllowed(a)&&(!t||t.max_day===null||t.max_day>
1=7))&&(e["1-week"]=a),e},isOnlyHalfDaySelected(){return Object.keys(this.ctas).length===1}},beforeDestroy(){this.isOpen&&this.close(),this.refElementResizeObserver&&this.refElementResizeObserver.disconnect(),this.rootElementResizeObserver&&this.rootElementResizeObserver.disconnect(),this.modalResizeObserver&&this.modalResizeObserver.disconnect(),this.$el.parentNode.removeChild(this.$el)},mounted(){this.isOpen&&this.open(),this.moveElement(),this.modalRects=(this.$refs.modal.getClientRects()[0]||new DOMRect).toJSON(),this.refElementRects=(this.refElement.getClientRects()[0]||new DOMRect).toJSON(),this.orientation=="horizontal"&&(this.modalHorizontalWidth=this.modalRects.width),this.updateCurrentPosition(),this.updateOrientation(),this.refElement&&(this.refElementResizeObserver=new ResizeObserver(()=>{this.refElement&&(this.refElementRects=(this.refElement.getClientRects()[0]||new DOMRect).toJSON())}).observe(this.refElement)),this.$nextTick(()=>{this.container=this.$refs.container,this.rootElementResizeObserver=new ResizeObserver(()=>{!this.$refs.modal||!this.$refs.modal.offsetWidth||(this.modalRects=this.$refs.modal.getClientRects()[0].toJSON(),this.refElementRects=this.refElement.getClientRects()[0].toJSON(),this.updateCurrentPosition(),this.updateOrientation())}).observe(this.$root.$el),this.modalResizeObserver=new ResizeObserver(()=>{!this.$refs.modal||!this.$refs.modal.offsetWidth||(this.modalRects=this.$refs.modal.getClientRects()[0].toJSON(),this.orientation=="horizontal"&&(this.modalHorizontalWidth=this.modalRects.width))}).observe(this.$refs.modal)})},watch:{unavailabilities:{deep:!0,handler(e){this.internalUnavailabilities=this.transformUnavailabilitiesToInternalUnvailabilities(e)}},isOpen(e){e&&requestAnimationFrame(()=>{this.open()})},mobileDisplay(){this.moveElement()},value:{deep:!0,handler(e){this.daterange?(this.dates.start=e&&e.start?dayjs(e.start).startOf("day"):null,this.dates.end=e&&e.end?dayjs(e.end).startOf("day"):null,this.dates.halfday=e&&!!e.halfday,this.dates.morning=e&&!!e.morning):this.dates.start=e.start}}},methods:{transformUnavailabilitiesToInternalUnvailabilities(e){let t=[];for(var a=0,s=e.length;a<s;a++){let i={start:dayjs(e[a].start),end:dayjs(e[a].end),halfday:!!e[a].halfday,half_day_slot:!!e[a].half_day_slot,half_day_slot_day_compatible:!!e[a].half_day_slot_day_compatible,half_day_slot_id:e[a].half_day_slot_id||0,morning:!!e[a].morning,evening:!!e[a].evening,yesterday_evening_unavailable:!!e[a].yesterday_evening_unavailable,unavailability_type:e[a].unavailability_type,api_boat:e[a].api_boat};i.start.isValid()&&i.end.isValid()&&t.push(i)}return t.sort((i,l)=>i.half_day_slot_id<l.half_day_slot_id?-1:1),t},moveElement(){this.$el.parentNode.removeChild(this.$el),this.mobileDisplay?document.querySelector("body").append(this.$el):this.refElement.prepend(this.$el)},updateOrientation(){this.mobileDisplay||(this.currentPosition.indexOf("left")==0?this.orientation=this.refElementRects.left-this.modalHorizontalWidth<0?"vertical":"horizontal":this.currentPosition.indexOf("right")==0?this.orientation=this.refElementRects.right+this.modalHorizontalWidth>window.innerWidth?"vertical":"horizontal":this.orientation="horizontal")}
1,updateCurrentPosition(){if(typeof this.position=="string")this.currentPosition=this.position;else{const e=Object.keys(this.position).sort((t,a)=>a-t).find(t=>window.innerWidth>=t);this.currentPosition=this.position[e]}},mouseover(e){this.mobileDisplay||!this.datesHasChanged||(this.dayHover=e)},open(){if(this.mobileDisplay&&(Modal.getOrCreateInstance(this.$refs.modal).show(),this.$refs.modal.addEventListener("shown.bs.modal",e=>{let t=this.$refs.modal.querySelector(`[month="${this.displayedDate.format("YYYY-MM")}"]`);t&&t.scrollIntoView({behavior:"smooth"})})),this.dates.start)this.displayedDate=dayjs(this.dates.start).startOf("month");else if(this.openOnDate){const e=dayjs(this.openOnDate,"YYYY-MM-DD").startOf("month");e.diff(dayjs(),"months")<24?this.displayedDate=e:this.displayedDate=dayjs().add(24,"month").startOf("month")}if(this.closedauto){this.closedauto=!1;const e=[{event:"reopened-after-autoclose"}];pushGTMTrackEvent(e)}},close(){this.mobileDisplay&&Modal.getOrCreateInstance(this.$refs.modal).hide(),this.$emit("didDismiss",!0)},nextMonth(){this.nextMonthAvailable&&(this.displayedDate=this.displayedDate.clone().add(1,"months"))},prevMonth(){this.prevMonthAvailable&&(this.displayedDate=this.displayedDate.clone().subtract(1,"months"))},reset(){this.dates.start=null,this.dates.end=null,this.dates.halfday=!1,this.dates.morning=!1,this.emitInput(),this.$emit("reset")},emitInput(){this.$emit("input",{...this.value,start:this.dates.start||null,end:this.dates.end||null,halfday:this.dates.halfday||!1,morning:this.dates.morning||!1,start_hour:this.dates.start_hour||null,end_hour:this.dates.end_hour||null})},selectCta(e){this.dates.end=null,requestAnimationFrame(()=>{this.selectDayDeferred(this.ctas[e],e=="half-day",!0)})},getOffset(e){return e.startOf("month").weekday()},getDaysByWeek(e){let t={},a=0,s=e.clone(),i=s.startOf("month"),l=s.week(),d=s.daysInMonth(),r;for(r=1;r<=d;r++)i.weekday()===0&&(l+=1),t[String(l)]==null&&(t[String(l)]=[],a++),t[String(l)].push(i.clone()),i.add(1,"days");if(a<6&&!this.mobileDisplay)for(let n=1;n<=6-a;n++)t[l+n]=[];return t},periodOfTheDay(e){const t={...this.periodsOfTheDays};let a=e.utc(!0).toDate().toISOString().slice(0,10);if(t[a])return t[a];let s=this.periods.find(i=>{if(i.start==null||i.end==null)return!1;let l=dayjs(i.start),d=dayjs(i.end);return e.isBetween(l,d,"day","[]")});return s==null&&(s=this.periods.find(i=>i.start==null&&i.end==null&&i.main==1)),t[a]=s||!1,t[a]},isAvailable(e){const t=e.unix();if(this.blockPastDates&&t<dayjs().startOf("day").unix())return"unavailability u-past";const a={...this.dates};a.start&&typeof a.start.unix!="function"&&(a.start=dayjs(a.start)),a.end&&typeof a.end.unix!="function"&&(a.end=dayjs(a.end));const s=a.start?.unix(),i=[...this.dayNotCompatibleHalfdayUnavailabilities],l=a.start?.utc(!0).toDate().toISOString().slice(0,10);if(a.start&&s!=t&&i.includes(l))return"unavailability u-halfday";const d=a.end?.unix(),r=e.utc(!0).toDate().toISOString().slice(0,10),n=[...this.internalUnavailabilities],f=this.periodOfTheDay(e);if(n&&n.length){if(f?.half_day_slots?.length>1&&n.some(c=>c.halfday&&dayjs(c.start).isSame(e)).length)return"unavailability manage-all-slot";for(var o=0,_=n.length;o<_;o++){let c=n[o].start,p=n[o].end,h=c.unix(),u=p.unix();const m=n[o].halfday,y=n[o].unavailability_type&&this.manageUnavailabilityMode?n[o].unavailability_type:"unavailability";if(!this.ignoreUnavailabilities&&(n[o].unavailability_type=="reservation"||n[o].api_boat)&&!this.blockMorning&&a.start&&t==h&&!n[o].evening&&!n[o].yesterday_evening_unavailable&&!n.find(g=>g.end.isSame(e.clone().subtract(1,"day"),"day"))&&e.diff(a.start,"days")>=2)return a.end?"unavailability giveback-morning":"available giveback-morning";if(!m&&h<=t&&t<=u)return n[o].unavailability_type=="reservation"&&p.diff(c,"days")==0&&f&&f.half_day_slots&&f.half_day_slots.find(b=>b.day_compatible==0?!1:b.type=="schedule"?!0:!n.find(v=>v.start.unix()<=t&&t<=v.end.unix()&&v.half_day_slot_id&&v.half_day_slot_id==b.id))?y+" available halfday daycompatible":y+" u1";if(m&&h<t&&t<u)return y+" u2";if(m&&h<=t&&t<=u)return y+" available halfday";if(this.datesHasChanged&&t>h&&!a.end&&!this.ignoreUnavailabilities){if(n[o].unavailability_type=="reservation"&&(n[o].evening||(c=c.clone().subtract(1,"day"),h=c.unix()),n[o].morning||(p=p.clone().subtract(1,"day"),u=p.unix())),a.start&&!m&&s<=h&&h<t)return"unavailability u3";if(a.start&&m&&s<h&&h<t)return"unavailability u4";if(a.start&&!m&&t<u&&u<=s)return"unavailability u5";if(a.end&&!m&&u<=h&&h<t)return y+" u6";if(a.end&&m&&d<h&&h<t)return y+" u7";if(a.end&&!m&&t<u&&u<=d)return y+" u8"}}}if(this.availabilityMode){if((!a.start||a.end)&&!this.availabilities[r])return"availability u-as selected-unallowed";if(a.start&&!a.end&&!this.availabilities[l]?.find(c=>c.end==r))return"availability u-ae selected-unallowed"}return"available"},isAllowed(e){if(this.restrictToPeriodsAllowedDays){let t=this.periodOfTheDay(e);if(t){if(t.min_day>1&&this.dates.start&&!this.dates.end){let a=dayjs(this.dates.start).add(t.min_day-1,"day");if(!(e.isBefore(this.dates.start)||a.isSameOrBefore(e)))return!1}if(this.daterange&&t)return t.allowed_days.find(a=>a.type=="start")&&(!this.dates.start&&!this.dates.end||this.dates.start&&this.dates.end||this.dates.start&&!this.dates.end&&e.isBefore(this.dates.start))?t.allowed_days.find(a=>a.type=="start"&&a["day_"+e.format("d")]==1)!==void 0:t.allowed_days.find(a=>a.type=="end")&&this.dates.start&&!this.dates.end?t.allowed_days.find(a=>a.type=="end"&&a["day_"+e.format("d")]==1)!==void 0:!0}else return!0}else return!0},selectDayDeferred(e,t){requestAnimationFrame(()=>{this.selectDay(e,t)},0)},isDateSelectable(e){let t=this.isAvailable(e);return this.isAllowed(e)&&(t.includes("available")||this.ignoreUnavailabilities&&t==="unavailability u-past")},findMatchingCta(e,t){for(let a in e)if(e[a].isSame(t))return a},deferEmitInput(){requestAnimationFrame(()=>setTimeout(()=>this.emitInput(),0))},deferTracking(){requestAnimationFrame(()=>{setTimeout(()=>{try{pushGTMTrackEvent([{event:"trackEvent"}])}catch{}},0)})},selectDay(e,t=!1,a=!1){if({...this.ctas},!!this.isDateSelectable(e)){if(this.datesHasChanged=!0,this.dates.halfday=t,this.dates.morning=this.isAvailable(e)=="available giveback-morning",this.daterange)if(!this.dates.start)this.dates.start=e.clone();else if(this.dates.end)this.dates.start&&this.dates.end&&(this.dates.start=e.clone(),this.dates.end=!1);else if(e.isBefore(this.dates.start))this.dates.start=e.clone();else{if(this.dates.end=e.clone(),this.availabilityMode&&this.availabilities[this.dates.start.format("YYYY-MM-DD")]){let s=this.availabilities[this.dates.start.format("YYYY-MM-DD")].find(i=>i.end==e.format("YYYY-MM-DD"));this.dates.start_hour=s.start_hour,this.dates.end_hour=s.end_hour}return this.deferTracking(),this.closedauto=!0,this.save()}else return this.dates.start=e.clone(),this.save();this.deferEmitInput(),this.dates={...this.dates}}},selectedClass(e){let t="",a=this.isAllowed(e),s=this.isAvailable(e);const i={...this.dates},l=i.start?.unix(),d=i.end?.unix(),r=e.unix();return a?t+=" selected-type-"+s+" ":t+=" selected-unallowed",e.utc(!0).toDate().getDay()==this.suggestedDay&&!this.dates.end&&(t+=" suggested-day"),this.dates.start&&r==l?(t+=" selected-start",this.dates.end&&(this.dates.halfday?t+=" halfday":r==d&&(t+=" selected-e
1nd")),t):this.dates.end&&r==d||this.dates.start&&!this.dates.end&&this.dayHover&&this.dayHover.isSame(e,"day")&&this.dayHover.isAfter(this.dates.start)&&!s.includes("unavailability")?t+" selected-end":this.dates.end&&this.dates.start&&l<=r&&r<=d?t+" selected-between s1":this.daterange&&this.dates.start&&!this.dates.end&&this.dayHover&&this.dayHover.isAfter(this.dates.start)&&e.isBetween(this.dates.start,this.dayHover,"day","[]")&&!s.includes("unavailability")?t+" selected-between s2":s.includes("available")?t+" selected-available":s.includes("unavailability")?this.ignoreUnavailabilities&&s!="unavailability u-past"?t+" selectable-unavailable":t+" selected-unavailable":t},validate(){this.isOpen&&!this.manageUnavailabilityMode&&this.close()},save(){requestAnimationFrame(()=>{this.validate(),this.emitInput(),this.$nextTick(()=>{this.$emit("save"),setTimeout(()=>{Bus.$emit("dates-picker-modal:save")},0)})})},cancel(){this.close(),this.$emit("cancel")},nDaysMinimuns(e){if(!this.unavailabilityMode||!this.dates.start||!e.isSame(this.dates.start)||!this.datesHasChanged||this.dates.end)return!1;let t=this.periodOfTheDay(e);return t&&t.min_day>1}}};var w=function(){var t=this,a=t._self._c;return a("div",{ref:"container",staticClass:"dates-picker-container modal-popover-container",attrs:{id:`dates-picker-container-${t._uid}`}},[a("div",{ref:"modal",staticClass:"modal rounded-lg-3 shadow-lg",class:{fade:t.mobileDisplay,"modal-popover":!t.mobileDisplay,vertical:!t.mobileDisplay&&t.orientation=="vertical",horizontal:!t.mobileDisplay&&t.orientation=="horizontal",invisible:!t.mobileDisplay&&!t.isOpen},style:t.computedStyle,attrs:{id:"date-picker-modal"}},[a("div",{staticClass:"modal-dialog",class:{"modal-dialog-scrollable modal-fullscreen":t.mobileDisplay}},[a("div",{staticClass:"modal-content border-0"},[a("div",{staticClass:"modal-header"},[a("button",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:"click_close"}],expression:`[{ 2 'event': 'click_close', 3 }]`}],staticClass:"btn-close p-2 position-absolute right-0 top-0",attrs:{type:"button","aria-label":"Close"},on:{click:t.cancel}})]),a("div",{staticClass:"dates-picker modal-body",on:{mouseleave:function(s){s.stopPropagation(),s.preventDefault(),!t.mobileDisplay&&(t.dayHover=null)}}},[a("div",{staticClass:"dates-picker-calendar",class:{"mx-7 mx-xl-6":!t.mobileDisplay}},[!t.mobileDisplay&&t.prevMonthAvailable?a("div",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:"click_prev_month"}],expression:`[{ 4 'event': 'click_prev_month', 5 }]`}],staticClass:"d-flex align-items-center justify-content-center dates-picker-arrow",attrs:{id:"dates-picker-control-arrow-left"},on:{click:function(s){return s.preventDefault(),s.stopPropagation(),t.prevMonth.apply(null,arguments)}}},[a("svg",{attrs:{width:"10",height:"25",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[a("path",{attrs:{fill:"currentColor",d:"M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"}})])]):t._e(),a("div",{staticClass:"row"},t._l(t.internalDates,function(s,i){return a("div",{key:i,class:{"col-12 col-md-6":t.nbMonths>1,"col-lg-6":t.nbMonths>1&&t.orientation=="horizontal","col-lg-12":t.nbMonths>1&&t.orientation=="vertical","col-12":t.nbMonths==1,"mb-3":t.nbMonths>2,"range-selected":t.dates.start&&t.dates.end}},[a("div",{staticClass:"month mb-4 mb-lg-0",attrs:{month:s.format("YYYY-MM")}},[a("div",{staticClass:"capitalize text-start fw-bold mb-2"},[t._v(" "+t._s(s.format(t.monthFormat))+" ")]),a("table",{staticClass:"h-100"},[a("tr",t._l(t.weekDays,function(l){return a("td",{key:l,staticClass:"capitalize fw-semibold"},[t._v(" "+t._s(l)+" ")])}),0),t._l(t.getDaysByWeek(s),function(l,d,r){return a("tr",{key:d,staticClass:"week-days"},[r===0&&t.getOffset(s)>0?t._l(t.getOffset(s),function(n){return a("td",{key:n},[t._v(" Â ")])}):r===5&&l.length===0?[t._m(0,!0)]:t._e(),t._l(l,function(n){return a("td",{key:n.format("YYYY-MM-DD"),class:t.selectedClass(n),attrs:{date:n.format("YYYY-MM-DD")},on:{mouseover:function(f){return f.preventDefault(),f.stopPropagation(),t.mouseover(n)}}},[a("div",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:"click_day_cell"}],expression:`[{ 6 'event': 'click_day_cell', 7 }]`}],staticClass:"day-cell",attrs:{day:n.format("D"),month:n.format("M")},on:{click:function(f){f.preventDefault(),f.stopPropagation(),!t.disabled&&t.selectDayDeferred(n,t.isOnlyHalfDaySelected&&n.isSame(t.ctas["half-day"]))}}},[t._v(" "+t._s(n.format("D"))+" ")])])})],2)})],2)])])}),0),t.mobileDisplay&&t.dayjs(this.internalDates[this.internalDates.length-1]).add(1,"months").unix()<t.dayjs(t.maxDate).unix()?a("div",[a("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(s){s.stopPropagation(),t.mobileMoreMonths++}}},[t._v(" "+t._s(t.translate("display-more-dates"))+" ")])]):t._e(),!t.mobileDisplay&&t.nextMonthAvailable?a("div",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:"click_next_month"}],expression:`[{ 8 'event': 'click_next_month', 9 }]`}],staticClass:"d-flex align-items-center justify-content-center dates-picker-arrow",attrs:{id:"dates-picker-control-arrow-right"},on:{click:function(s){return s.preventDefault(),s.stopPropagation(),t.nextMonth.apply(null,arguments)}}},[a("svg",{attrs:{width:"10",height:"25",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}}
9,[a("path",{attrs:{fill:"currentColor",d:"M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"}})])]):t._e()])]),t.dates.start?a("div",{staticClass:"modal-footer d-block p-3",class:{bounceInUp:t.dates.start,slideOutDown:!t.dates.start}},[t.nDaysMinimuns(t.dates.start)?a("div",{staticClass:"fw-semibold mb-4"},[t._v(" "+t._s(t.translate("n-days-minimum",{n:t.periodOfTheDay(t.dates.start).min_day}))+" ")]):t._e(),a("div",{staticClass:"m-0"},[t.daterange?a("div",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.ctas).length&&(!t.dates.end||Object.values(t.ctas).find(s=>s.isSame(t.dates.end))),expression:"Object.keys(ctas).length && (!dates.end || Object.values(ctas).find(d => d.isSame(dates.end)))"}],staticClass:"row align-items-baseline mb-4"},[a("div",{staticClass:"col-auto mb-3"},[a("b",[t._v(t._s(t.translate("quick-choices")))])]),a("div",{staticClass:"col-12 col-lg d-flex justify-content-between justify-content-sm-start"},[t._l(t.ctas,function(s,i,l){return[a("button",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:`click_${i}_cta`}],expression:"[{\n 'event': `click_${key}_cta`,\n }]"}],key:i,staticClass:"btn btn-sm cta-btn",class:[{"ms-0 ms-sm-3":l},t.dates.end&&t.dates.end.isSame(s)&&t.dates.halfday==(i=="half-day")?"btn-primary":"btn-outline-secondary",`cta-${i}`],attrs:{type:"button",date:s.format("YYYY-MM-DD")},on:{click:function(d){return d.stopPropagation(),t.selectCta(i)}}},[t._v(" "+t._s(t.translate(i))+" ")])]})],2)]):t._e(),a("div",{staticClass:"container"},[a("div",{staticClass:"row gap-2 justify-content-end"},[a("button",{directives:[{name:"gtmtrack",rawName:"v-gtmtrack",value:[{event:"click_reset"}],expression:`[{ 10 'event': 'click_reset', 11 }]`}],staticClass:"btn btn-light btn-sm col col-lg-auto dates-picker-reset",attrs:{type:"button"},on:{click:function(s){return s.stopPropagation(),t.reset.apply(null,arguments)}}},[t._v(" "+t._s(t.translate("reset"))+" ")])])])])]):t._e()])])])])},x=[function(){var e=this,t=e._self._c;return t("td",[t("div",{staticClass:"day-cell"},[e._v(" Â ")])])}],C=M(k,w,x,!1,null,null);const z=C.exports;export{z as default};
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.