1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32857],{51889:function(e,t,r){r.d(t,{U:function(){return R}});var n=r(765),s=r(52983),o=r(4156),i=r.n(o),a=r(43857),l=r(99816),c=r(88947),u=r(20437),p=r(77146),m=r(42715),d=r(46910),f=r(32187),O=r(55675),g=r(58562),b=r(11511),y=r(6505),h=r(87332),v=r(84585),j=r(20006),N=r(79151),S=r(20790),_=r(83688),I=r(97458);let w=["className","firstItemDisplay","hasCounters","label","onClick","thematic","url"];function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let P=e=>{let{className:t,firstItemDisplay:r=!1,hasCounters:n=!1,label:s,onClick:o,thematic:i,url:a}=e,u=(0,O.Z)(e,w),{pageType:p}=(0,c.lO)(),{isDesktop:d}=(0,l.F)(),C=p===y.u2.PLE,P=i?.onlineBookableCount||0,x=C?P:(i?.activitiesCounters?.included||0)+(i?.activitiesCounters?.onDemand||0),A=(0,b.$G)(i.name,d?35:25),R=i.name;return(0,I.jsxs)(v.Z,E(E({},u),{},{className:(0,f.d)("group relative isolate flex h-310 items-end justify-between overflow-hidden rounded-12 p-20 text-white",t),"data-testid":"thematics",onClick:o,shallow:!0,url:a,children:[(0,I.jsxs)("div",{className:"absolute inset-0 -z-1 flex transform items-center transition-all duration-250 ease-in group-hover:scale-105",children:[(0,I.jsx)(N.E,{className:"flex h-full w-full",imageUrl:i.images?.[0]}),(0,I.jsx)("div",{className:"absolute bottom-0 h-1/2 w-full bg-gradient-to-t from-black/80"})]}),n&&(0,I.jsxs)("div",{className:"absolute top-0 mt-10 flex flex-row items-center",children:[i?.activitiesCounters?.onDemand>0&&(0,I.jsx)(h.C,{className:"size-30 border-orange bg-orange text-white",iconName:g.UZ.ON_DEMAND,iconSize:"0.875rem",variant:"pill"}),i?.activitiesCounters?.included>0&&(0,I.jsx)(h.C,{className:"size-30 border-green bg-green text-white",iconName:g.UZ.ALL_INCLUSIVE,iconSize:"0.875rem",variant:"pill"}),(0,I.jsx)("span",{className:"ms-10 font-brand",children:(0,m.t)(x>1?"common.activities.counters._n":"common.activities.counters._1",{count:x})})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(_.D,{className:"mb-5 text-white",theme:"title-brand-n0",children:r?A:R}),(0,I.jsx)(S.x,{className:"text-white",text:(0,b.$G)(i.description||"",r?d?40:25:d?90:42),theme:"text-sans-n3"})]}),(0,I.jsx)(j.J,{className:"shrink-0",hasRtl:!0,name:g.UZ.ARROW_RIGHT,width:"1rem"})]}))};var x=r(62157);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let R=({hasRentals:e=!1,isProposal:t=!1,layerName:r,rentalsLayerName:o,thematics:O,trackRentals:g=()=>{}})=>{let{trackingData:b}=(0,s.useContext)(u.H),{isTablet:y}=(0,l.F)(),{siteSection:h,pageMeta:v,pageId:j}=(0,c.lO)(),N=O.length+(e?1:0),S=0===(!y&&N%2),_=(0,d.r)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({actionGA:"activities",siteSection:h,pageName:v.resortId&&h?`${h}_${v.resortId}`:t?"BE_activities":j},b)),{nextUri:w}=(0,p.s)(r||a.ed,{type:"THEMATICS"}),C=e=>new(i())(w).addQuery({catId:e}).toString();return(0,I.jsxs)("section",{className:"isolate grid grid-cols-2 gap-20 md:grid-cols-3","data-testid":"Activities-all-componant",children:[e&&(0,I.jsx)(x.K,{className:"col-span-2 h-310",layerName:o,onClick:g}),O.filter(e=>(e.activities||[]).length>0).map((t,r)=>(0,I.jsx)(P,{className:(0,f.d)({"col-span-2":!e&&0===r||S,"col-span-1":e||r>0&&!S}),firstItemDisplay:r>0&&!e,label:(0,m.t)("common.activities.label"),onClick:()=>_({labelGA:`themes_${t.name}`}),thematic:t,url:C(t.id)},t.id))]})}},95194:function(e,t,r){r.d(t,{D2:function(){return N},Hx:function(){return _},UY:function(){return j},V8:function(){return S},Vj:function(){return C},aM:function(){return w},ix:function(){return I}});
1var n=r(765),s=r(73352),o=r.n(s),i=r(13546),a=r.n(i),l=r(44874),c=r(42715),u=r(6505);r(28856),r(91947);var p=r(32866),m=r(99458),d=r(76989),f=r(30726);r(31621);var O=r(73340);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r(18453);let y=(e,t)=>t.isPartiallyRented?t.timeSlots&&t.timeSlots.length>0?e+t.timeSlots.filter(({isRented:e})=>e).length:e+1:e,h=(e,t)=>e+t.schedules.reduce(y,0),v=e=>["TRANSFER","INSURANCE"].includes(e.type)?1:e.isPartiallyRented?e.attendees?e.attendees.reduce(h,0):e.schedules.reduce((e,{attendees:t})=>e+t.reduce((e,{isRented:t})=>e+(t?1:0),0),0):0,j={CHILDCARE:"childcare",EXCURSION:"excursion",LAND_SPORT:"landSport",RENTAL:"ski",TRANSFER:"transfer",WATER_SPORT:"waterSport",WINTER_SPORT:"winterSport",WELLNESS:"wellness",INSURANCE:"insurance"},N=(e,t,r)=>{let n=(0,f.Kr)(d.U2(u.vJ)),s=n.roomFilters||[],i=n.roomOptions||{},a={upsell_revenue:r,upsell_category:"room",upsell_name:t.accommodations[0].id,upsell_quantity:t.accommodations.reduce((e,t)=>e+t.quantity,0)};"upsell"in i&&"yes"===i.upsell&&i.proposalId===t.id&&Object.assign(a,{upsell_revenue:i.upsellRevenue,upsell_category:i.upsellCategory,upsell_name:i.upsellName,upsell_quantity:i.upsellQuantity}),s.length&&s.filter(e=>e.proposalId===t.id).forEach(t=>{(t.upsellRevenue??0)>0&&e(u.Hz.UPSELL_TRANSACTION,o()(b(b({},a),{},{upsell_revenue:t.upsellRevenue,upsell_category:t.upsellCategory,upsell_name:t.upsellName}),"proposalId"))}),a.upsell_revenue>0&&e(u.Hz.UPSELL_TRANSACTION,o()(a,"proposalId")),d.t8(b(b({},(0,f.Kr)(n)),{},{roomFilters:[],roomOptions:{}}))},S=(e,t,r)=>{e(u.Hz.UPSELL_TRANSACTION,{upsell_category:"joyview",upsell_name:t.packageId,upsell_quantity:1,upsell_revenue:r})},_=(e,t,r)=>{let{price:n,resort:s,accommodations:o}=e,i=(0,m.r9)(s?.hasECSpace,o?.[0]?.exclusiveCollection);(0,p.T7)({affiliation:"purchase",currency:n?.total?.currency||"",id:r,revenue:n?.total?.value}),(0,p.C9)({id:r,name:s?.name||"",price:n?.total?.value,code:s?.id||"",category:i})},I=(e,t)=>t.map((e,t,r)=>{let n=r.findIndex(t=>t.productInfo.id===e.productInfo.id);if(!n||n===t)return e;{let t=r[n];t.pricingInfo.schedules=[...t.pricingInfo.schedules,...e.pricingInfo.schedules],t.pricingInfo.rentedAmount.value+=e.pricingInfo.rentedAmount.value}}).filter(Boolean).forEach(({pricingInfo:t,productInfo:r})=>{t.rentedAmount.value>0&&e(u.Hz.UPSELL_TRANSACTION,{upsell_category:j[t.type],upsell_name:r.id,upsell_revenue:t.rentedAmount.value,upsell_quantity:v(t)})}),w=(e,t)=>e.transports?"yes with transport":t.length>0?"yes without transport":"no",C=({location:e,bookingId:t,config:r,proposal:n,isCmta:s,isSeller:o,isNotDelCredere:i,hasSaveOption:u,expirationTime:p,isReliable:m})=>{let{urlParams:d,queryParams:f}=e,g=a()(n,"resort.name"),{option:{confirmation:{failureImmersiveTitle:y,failureDescription:h,successTitle:v,successDescription2:j,aBookingAlreadyExistsTitle:N,aBookingAlreadyExistsDescription:S,aBookingAlreadyExistsDescription2:_,itemOfTheBookingNotAvailableTitle:I,itemOfTheBookingNotAvailableDescription:w}},partners:C,confirmation:{failure:E}}=r.booking,P=s&&i,x=(0,l.messageFormat)(E.headSentence).format({resortName:g}),A=E.notCompletedMessage,R="true"===f.futureTravelCreditOption;switch(parseInt(d.status,10)){case O.E4:let T={type:"OPTION",status:"SUCCESS",bookingId:t,expirationTime:p,isReliable:m};if(R)return b(b({},T),{},{title:(0,c.t)("booking.summary.futureTravelCredit.confirmation.title"),message:(0,c.t)("booking.summary.futureTravelCredit.confirmation.information")});if(P&&!u)return b(b({},T),{},{title:(0,c.t)("booking.partners.confirmation.noDelcredere.headSentence"),message:(0,c.t)("booking.partners.confirmation.noDelcredere.bookingCompleteAdditionalText")});if(s)return b(b({},T),{},{title:(0,l.messageFormat)(v).format({resortName:g}),message:`${C.option.confirmation.successDescription} ${C.phoneNumber}`});return{type:"OPTION",status:"SUCCESS",title:(0,l.messageFormat)(v).format({resortName:g}),message:j,bookingId:t,expirationTime:p,isReliable:m};case O.X5:return"BOOKING_ALREADY_EXISTS"===d.error_code?{bookingId:t,status:"FAILURE",type:"OPTION",title:P?x:N,message:P?A:o?S:_}:{bookingId:t,status:"FAILURE",type:"OPTION",title:P?x:I,message:P?A:w};default:return{type:"OPTION",status:"FAILURE",title:P?x:(0,l.messageFormat)(y).format({resortName:g}),message:P?A:h,bookingId:t}}}}}]); 2//# sourceMappingURL=32857-93e9d2f9acf6c278.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.