PageSourceSearch

https://cdn.beachcomber-hotels.com/v9/_next/static/chunks/136.2bcb52eaef4440ec.js

js beachcomber-hotels.com collected 2026-10-09 23:35:48 UTC 7,172 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136,4161,3411,3472],{23411:function(e,n,t){t.r(n);var o=t(85893),i=t(85739),c=t(7126),a=t.n(c),l=t(21608),r=t(31555),d=t(67433),u=t(72045),v=t(67294),f=t(58299),s=t(9669),_=t.n(s);function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},o=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){h(e,n,t[n])}))}return e}n.default=function(e){var n=e.data,t=e.isMobile,c=void 0!==t&&t,s=e.dataBooking,h=void 0===s?null:s,m=e.strateName,p=void 0===m?"":m,b=(0,v.useState)(!1),y=b[0],k=b[1],x=(0,v.useState)((null===n||void 0===n?void 0:n.content)||[]),j=x[0],O=x[1];if((0,v.useEffect)((function(){var e=(null===n||void 0===n?void 0:n.content)||[];k(!0);var t=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){var t=e||{},o=t.field_mode_affichages_prix,i=t.offer_id,c=o||{},a=c.field_mode_affichages_prix,l=c.field_type,r=c.field_prefix,d=c.label_as_from,u=c.label_up_to,v=c.offers_remise_label,f=c.field_percent,s=c.field_currency,_=c.field_montant,h={};if("prix_dynamique"===a){var m=n.find((function(e){return(null===e||void 0===e?void 0:e.offer_type_id)===i})),p=(null===m||void 0===m?void 0:m.offer_best_percentage)||null;(h={amount:p?"".concat(p,"%"):"",lowerText:v||""}).upperText="as_from"===r?d||"":u||""}else"pourcentage"===l?(h={amount:f?"".concat(f,"%"):"",lowerText:v||""}).upperText="as_from"===r?d||"":u||"":(h={amount:_||"",lowerText:s||""}).upperText="as_from"===r?d||"":u||"";return g({},e,{formatedData:h})}));O(t)};if(e.length>0){var o=h||{},i=o.pageLocale,c=void 0===i?"en":i,a=o.country,l=void 0===a?"73":a,r=(null===f.QA||void 0===f.QA?void 0:f.QA[c])||1,d="".concat(f.a7,"&country_id=").concat(l,"&language_id=").concat(r);e.filter((function(e){var n;return"prix_dynamique"===(null===e||void 0===e||null===(n=e.field_mode_affichages_prix)||void 0===n?void 0:n.field_mode_affichages_prix)})).length>0?_().get(d).then((function(e){var n,o=(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.data)||[];t(o),k(!1)})).catch((function(e){console.error(e),k(!1)})):(t(),k(!1))}else k(!1)}),[n,h]),n){var T=n||{},w=T.field_title,A=T.field_teaser_description_desktop,N=void 0===A?"":A,D=function(e){var n,t,i,a,l=e.landing_pages_read_more,r=e.field_images_market,u=e.field_teaser_detail,v=e.formatedData,f=e.title,s=e.path,_=r||{},h=_.field_image_desktop,g=_.field_image_mobile,m=(null===h||void 0===h?void 0:h.imageDerivatives)||{},b=(null===g||void 0===g?void 0:g.imageDerivatives)||{},k=c?null===u||void 0===u?void 0:u.field_teaser_mobile:null===u||void 0===u?void 0:u.field_teaser_desktop;return(0,o.jsx)(d.Z,{titleTop:!0,priceWithDescription:!0,bigImage:!0,CTALabel:l||"",CTALink:null===s||void 0===s?void 0:s.alias,label:f,description:k,imageAlt:null===h||void 0===h?void 0:h.alt,imageWidth:null===h||void 0===h?void 0:h.width,imageHeight:null===h||void 0===h?void 0:h.height,imageDJ:(null===m||void 0===m||null===(n=m.teaser_desktop)||void 0===n?void 0:n.url)||(null===m||void 0===m?void 0:m.default_url),imageDW:(null===m||void 0===m||null===(t=m.teaser_desktop)||void 0===t?void 0:t.webp)||(null===m||void 0===m?void 0:m.default_url),imageTJ:(null===b||void 0===b||null===(i=b.image_250_x_312)||void 0===i?void 0:i.url)||(null===b||void 0===b?void 0:b.default_url),imageTW:(null===b||void 0===b||null===(a=b.image_250_x_312)||void 0===a?void 0:a.webp)||(null===b||void 0===b?void 0:b.default_url),loadingPrice:y,formatedData:v,strateName:p})};return(0,o.jsxs)("div",{id:"zoneOffre",className:"".concat(a().zoneOffers," ").concat(a().zoneOffersGrid),children:[w&&(0,o.jsx)("span",{className:a().titleH2,children:w}),N&&(0,o.jsx)("div",{className:a().richText,children:(0,o.jsx)("div",{className:"d-none d-md-block",children:(0,o.jsx)("div",{className:"text-align-center",children:(0,i.Z)(N||"")})})}),(0,o.jsx)("div",{className:a().hotelsContainerOffert,children:(0,o.jsx)(l.Z,{className:"justify-content-center",children:j.map((function(e){return(0,o.jsx)(r.Z,{md:6,lg:4,children:D(e)},(0,u.Z)())}))})})]})}}},13871:function(e,n,t){t.d(n,{SG:function(){return c},_2:function(){return l},bA:function(){return i},ib:function(){return d},nk:function(){return r},p7:function(){return a}});var o=t(83454),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:73;return e=e.toLowerCase(),t=t?"?f_country=".concat(t):"",n.includes("http")?"".concat(n).concat(t):"/".concat(e).concat(o.env.DRUPAL_JSONAPI_PREFIX).concat(n).concat(t)},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1?arguments[1]:void 0;return"/".concat(e,"/router/translate-path?path=").concat(n,"&_format=json")},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1?arguments[1]:void 0;return"/".concat(e,"/router/menu/hotel?nid=").concat(n)},l=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:73,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",i=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",l="https://bookings.beachcomber-hotels.com";return"".concat(l,"/?hotel_id=").concat(e,"&hotel_name=").concat(n,"&contryId=").concat(t,"&country_id=").concat(t,"&client_type_id=8&adults=2&infant=0&children=0&check_in=").concat(i,"&check_out=").concat(c,"&isIndustryPartner=0&isTravelAgent=0&lang=").concat(o).concat(a?"&room_id=".concat(a):"")},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:73,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",t="https://bookings.beachcomber-hotels.com";return"".concat(t,"/?hotel_id=&hotel_name=&contryId=").concat(e,"&country_id=").concat(e,"&client_type_id=8&adults=2&infant=0&children=0&check_in=&check_out=&isIndustryPartner=0&isTravelAgent=0&lang=").concat(n)},d=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:73,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",i=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",r="https://bookings.beachcomber-hotels.com",d="";return l&&(d="&selectedOfferId=".concat(l,"&selectedOffer=").concat(l),"1"===l&&(d="".concat(d,"&type_of_stay=checkHoneymoon")),"7"===l&&(d="".concat(d,"&type_of_stay=checkAnniversary")),"Familymoon"!==l&&"77"!==l||(d="".concat(d,"&type_of_stay=checkHoneymoon"))),"".concat(r,"/?hotel_id=").concat(e,"&hotel_name=").concat(n,"&contryId=").concat(t,"&country_id=").concat(t,"&adults=").concat(a,"&check_in=").concat(i,"&check_out=").concat(c,"&lang=").concat(o).concat(d)}}}]);

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.