PageSourceSearch

https://cdn.beachcomber-hotels.com/v9/_next/static/chunks/9968.7f422d57b6a06938.js

js beachcomber-hotels.com collected 2026-10-09 23:37:13 UTC 12,875 bytes, 1 lines download raw bytes

vendor: 4,659 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9968,1117],{27484:function(t){t.exports=function(){"use strict";var t=1e3,n=6e4,e=36e5,r="millisecond",i="second",s="minute",a="hour",o="day",u="week",c="month",l="quarter",d="year",h="date",f="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],e=t%100;return"["+t+(n[(e-20)%10]||n[e]||n[0])+"]"}},$=function(t,n,e){var r=String(t);return!r||r.length>=n?t:""+Array(n+1-r.length).join(e)+t},y={s:$,z:function(t){var n=-t.utcOffset(),e=Math.abs(n),r=Math.floor(e/60),i=e%60;return(n<=0?"+":"-")+$(r,2,"0")+":"+$(i,2,"0")},m:function t(n,e){if(n.date()<e.date())return-t(e,n);var r=12*(e.year()-n.year())+(e.month()-n.month()),i=n.clone().add(r,c),s=e-i<0,a=n.clone().add(r+(s?-1:1),c);return+(-(r+(e-i)/(s?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:u,d:o,D:h,h:a,m:s,s:i,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=p;var w=function(t){return t instanceof b},k=function t(n,e,r){var i;if(!n)return g;if("string"==typeof n){var s=n.toLowerCase();D[s]&&(i=s),e&&(D[s]=e,i=s);var a=n.split("-");if(!i&&a.length>1)return t(a[0])}else{var o=n.name;D[o]=n,i=o}return!r&&i&&(g=i),i||!r&&g},x=function(t,n){if(w(t))return t.clone();var e="object"==typeof n?n:{};return e.date=t,e.args=arguments,new b(e)},_=y;_.l=k,_.i=w,_.w=function(t,n){return x(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function p(t){this.$L=k(t.locale,null,!0),this.parse(t)}var $=p.prototype;return $.parse=function(t){this.$d=function(t){var n=t.date,e=t.utc;if(null===n)return new Date(NaN);if(_.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(v);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return e?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(n)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return _},$.isValid=function(){return!(this.$d.toString()===f)},$.isSame=function(t,n){var e=x(t);return this.startOf(n)<=e&&e<=this.endOf(n)},$.isAfter=function(t,n){return x(t)<this.startOf(n)},$.isBefore=function(t,n){return this.endOf(n)<x(t)},$.$g=function(t,n,e){return _.u(t)?this[n]:this.set(e,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,n){var e=this,r=!!_.u(n)||n,l=_.p(t),f=function(t,n){var i=_.w(e.$u?Date.UTC(e.$y,n,t):new Date(e.$y,n,t),e);return r?i:i.endOf(o)},v=function(t,n){return _.w(e.toDate()[t].apply(e.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(n)),e)},m=this.$W,p=this.$M,$=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case d:return r?f(1,0):f(31,11);case c:return r?f(1,p):f(0,p+1);case u:var g=this.$locale().weekStart||0,D=(m<g?m+7:m)-g;return f(r?$-D:$+(6-D),p);case o:case h:return v(y+"Hours",0);case a:return v(y+"Minutes",1);case s:return v(y+"Seconds",2);case i:return v(y+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,n){var e,u=_.p(t),l="set"+(this.$u?"UTC":""),f=(e={},e[o]=l+"Date",e[h]=l+"Date",e[c]=l+"Month",e[d]=l+"FullYear",e[a]=l+"Hours",e[s]=l+"Minutes",e[i]=l+"Seconds",e[r]=l+"Milliseconds",e)[u],v=u===o?this.$D+(n-this.$W):n;if(u===c||u===d){var m=this.clone().set(h,1);m.$d[f](v),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](v);return this.init(),this},$.set=function(t,n){return this.clone().$set(t,n)},$.get=function(t){return this[_.p(t)]()},$.add=function(r,l){var h,f=this;r=Number(r);var v=_.p(l),m=function(t){var n=x(f);return _.w(n.date(n.date()+Math.round(t*r)),f)};if(v===c)return this.set(c,this.$M+r);if(v===d)return this.set(d,this.$y+r);if(v===o)return m(1);if(v===u)return m(7);var p=(h={},h[s]=n,h[a]=e,h[i]=t,h)[v]||1,$=this.$d.getTime()+r*p;return _.w($,this)},$.subtract=function(t,n){return this.add(-1*t,n)},$.format=function(t){var n=this,e=this.$locale();
1if(!this.isValid())return e.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),s=this.$H,a=this.$m,o=this.$M,u=e.weekdays,c=e.months,l=function(t,e,i,s){return t&&(t[e]||t(n,r))||i[e].slice(0,s)},d=function(t){return _.s(s%12||12,t,"0")},h=e.meridiem||function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:_.s(o+1,2,"0"),MMM:l(e.monthsShort,o,c,3),MMMM:l(c,o),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:l(e.weekdaysMin,this.$W,u,2),ddd:l(e.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:_.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,a,!0),A:h(s,a,!1),m:String(a),mm:_.s(a,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,n){return n||v[t]||i.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,h,f){var v,m=_.p(h),p=x(r),$=(p.utcOffset()-this.utcOffset())*n,y=this-p,g=_.m(this,p);return g=(v={},v[d]=g/12,v[c]=g,v[l]=g/3,v[u]=(y-$)/6048e5,v[o]=(y-$)/864e5,v[a]=y/e,v[s]=y/n,v[i]=y/t,v)[m]||y,f?g:_.a(g)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return D[this.$L]},$.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),r=k(t,n,!0);return r&&(e.$L=r),e},$.clone=function(){return _.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),j=b.prototype;return x.prototype=j,[["$ms",r],["$s",i],["$m",s],["$H",a],["$W",o],["$M",c],["$y",d],["$D",h]].forEach((function(t){j[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),x.extend=function(t,n){return t.$i||(t(n,b,x),t.$i=!0),x},x.locale=k,x.isDayjs=w,x.unix=function(t){return x(1e3*t)},x.en=D[g],x.Ls=D,x.p={},x}()},64535:function(t,n,e){"use strict";e.r(n);var r=e(85893),i=e(27484),s=e.n(i),a=e(62832),o=e.n(a),u=e(58299),c=e(13871),l=e(6873),d=e(20417),h=e(41664),f=e.n(h),v=e(5152),m=e.n(v),p=e(67294),$=e(97346);e(84415);function y(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function g(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,s=[],a=!0,o=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(s.push(r.value),!n||s.length!==n);a=!0);}catch(u){o=!0,i=u}finally{try{a||null==e.return||e.return()}finally{if(o)throw i}}return s}}(t,n)||function(t,n){if(!t)return;if("string"===typeof t)return y(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return y(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D=m()((function(){return e.e(9198).then(e.t.bind(e,9198,23))}),{loadableGenerated:{webpack:function(){return[9198]}},ssr:!1}),w="YYYY-MM-DD",k=function(t){var n=t.startDate,e=t.endDate,i=t.cin,a=t.cout,u=t.onClose,c=s()(e).diff(s()(n),"day"),l=!(!n||!e),d=0==c||Number.isNaN(c)?1:c,h=l?d:"-";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:o().closeBtnBooking,children:(0,r.jsx)("button",{onClick:function(t){t.preventDefault(),u()},type:"button"})}),(0,r.jsxs)("div",{className:o().bookingDatepicker,children:[(0,r.jsxs)("p",{children:[i?"".concat(i," : "):"",(0,r.jsx)("span",{children:n?s()(n).format(w):"-"})]}),(0,r.jsxs)("p",{children:[a?"".concat(a," : "):"",(0,r.jsx)("span",{children:e?s()(e).format(w):"-"})]}),h&&(0,r.jsxs)("p",{children:["Night(s) : ",(0,r.jsx)("span",{children:h})]})]})]})},x=(0,p.forwardRef)((function(t,n){var e=t.startCheck,i=t.startDate,s=t.endDate,a=t.endCheck,o=t.onClick,c=t.onInputChange,l=function(t){(0,d.D)((null===window||void 0===window?void 0:window.scrollY)>u.nj?"sticky bar":"content","choose your stay - date picker - ".concat(t))};return(0,r.jsxs)("div",{className:"inputholderContainer",onClick:o,ref:n,children:[(0,r.jsx)("div",{className:"inputholder",onClick:function(){return l("date de d\xe9part")},children:(0,r.jsx)("input",{onChange:c,placeholder:e,value:i,name:"start",readOnly:!0})}),(0,r.jsx)("div",{className:"inputholder",onClick:function(){return l("date d'arriv\xe9e")},children:(0,r.jsx)("input",{onChange:c,placeholder:a,value:s,name:"end",readOnly:!0})})]})}));x.displayName="DatePickerCustomInputs";var _=function(t){var n,e,i=t.data,a=t.nodeId,h=void 0===a?null:a,v=t.bookingFlights,m=(0,p.useState)(null),y=m[0],_=m[1],b=(0,p.useState)(null),j=b[0],M=b[1],S=(0,p.useState)("-1"),C=S[0],N=S[1],O=(0,p.useState)(!1),Y=O[0],I=O[1],A=((null===v||void 0===v||null===(n=v.data)||void 0===n?void 0:n.meta)||{}).field_cta,H=A||{},T=H.link,F=H.title,B=new Date,L=new Date(B);if(L.setDate(B.getDate()+1),(0,p.useEffect)((function(){if(h&&i){var t=null===i||void 0===i?void 0:i.hotel_lists.find((function(t){return(null===t||void 0===t?void 0:t.node_id)==h}));N((null===t||void 0===t?void 0:t.hotel_id)||"-1")}}),[i,h]),i){var W=i||{},U=W.choose_your_stay,Z=W.your_beach_hotel,E=W.check_in,J=W.check_out,R=W.button_book,z=W.button_book_flight_url,V=W.button_book_flight_text,P=W.locale,q=W.country,G=W.hotel_lists,Q=void 0===G?[]:G,K=function(t){var n=t.target,e=n.name,r=n.value;"start"==e?_(r):"end"==e?M(r):"hotel"==e&&N(r)},X=function(t){return"Invalid Date"!=s()(t).format(w)?s()(t).format(w):""};return(0,r.jsx)("div",{className:"".concat(o().headerBottom," bookingsection"),children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:o().contentResa,children:[U&&(0,r.jsx)("span",{className:o().titleh2,children:U}),(0,r.jsx)("div",{className:"select-bc",onClick:function(){(0,d.D)((null===window||void 0===window?void 0:window.scrollY)>u.nj?"sticky bar":"content","choose your stay - choix hotel")},children:(0,r.jsxs)($.Z.Select,{value:C,onChange:K,name:"hotel",children:[Z&&(0,r.jsx)("option",{value:"-1",children:Z}
1),Q.map((function(t){return(null===t||void 0===t?void 0:t.title)&&(0,r.jsx)("option",{value:t.hotel_id,children:t.title},t.hotel_id)}))]})}),(0,r.jsx)("div",{className:o().formResa,children:(0,r.jsxs)($.Z,{className:o().formBc,children:[Y?(0,r.jsx)(D,{selected:y,onChange:function(t){var n=g(t,2),e=n[0],r=n[1];_(e),M(r)},minDate:L,startDate:y,endDate:j,selectsRange:!0,monthsShown:2,shouldCloseOnSelect:!1,dateFormat:"yyyy-MM-dd",startOpen:!0,customInput:(0,r.jsx)(x,{startCheck:E,startDate:X(y),endDate:X(j),endCheck:J,onInputChange:K}),children:(0,r.jsx)(k,{startDate:y,endDate:j,cin:E,cout:J,onClose:function(){return I(!1)}})}):(0,r.jsx)("div",{className:"react-datepicker-wrapper",children:(0,r.jsx)("div",{className:"react-datepicker__input-container",children:(0,r.jsx)(x,{startCheck:E,startDate:X(y),endDate:X(j),endCheck:J,onInputChange:K,onClick:function(){return I(!0)}})})}),R&&(0,r.jsx)("button",{type:"button",className:o().btnBook,onClick:function(t){t.preventDefault(),(0,d.D)((null===window||void 0===window?void 0:window.scrollY)>u.nj?"sticky bar":"content","choose your stay - CTA - book now"),window.open((0,l.$3)(function(){var t=X(j),n=X(y),e="",r="";if("-1"!=C){var i=Q.find((function(t){return t.hotel_id==C}));e=i.hotel_id,r=i.hotel_siteurl}return(0,c._2)(e,r,q,P,n,t)}()),"_blank")},children:(0,r.jsx)("span",{children:R})})]})}),v&&(null===v||void 0===v?void 0:v.data)&&(null===v||void 0===v||null===(e=v.data)||void 0===e?void 0:e.meta)&&A&&(0,r.jsx)("div",{className:o().bookBcFly,children:(0,r.jsx)(f(),{href:null===T||void 0===T?void 0:T.url,passHref:!0,children:(0,r.jsx)("a",{target:"_blank",rel:"noreferrer",children:(0,r.jsx)("span",{className:o().linkBookFlight,children:F})})})}),z&&V&&(0,r.jsx)("div",{className:o().bookBcFly,children:(0,r.jsx)(f(),{href:z,passHref:!0,children:(0,r.jsx)("a",{target:"_blank",rel:"noreferrer",children:(0,r.jsx)("span",{className:o().linkBookFlight,children:V})})})})]})})})}};n.default=(0,p.memo)(_)},84415:function(){}}]);

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.