PageSourceSearch

https://exclusivetravelgroup.com/_nuxt/DPyDIVhA.js

js exclusivetravelgroup.com collected 2026-10-06 18:08:39 UTC 22,534 bytes, 1 lines download raw bytes

1import{_ as ce}from"./DsHsJO_L.js";import{_ as ue,m as me,a as fe}from"./CdgNJ--n.js";import{d as ve}from"./CLyQkrmw.js";import{j as I,d as ie,V as U,e as E,m as H,q as _e,b as pe,k as he,h as Y,S as ee,C as z,E as te,t as ae,_ as ge}from"./B3lMsHIL.js";import{W as f,ab as i,l as e,f as re,d as T,b,D as de,o as q,a0 as $,a3 as O,u as n,a2 as s,k as t,M as se,m as ne,a5 as A,n as W,a4 as G,F as P,a9 as le,a7 as ye}from"./BgudiCsd.js";import{b as xe,c as we}from"./rp_rLx0l.js";import{c as oe}from"./BpMc9zY9.js";import{a as J,V as be}from"./D0SEQDkr.js";import{V as B}from"./CJ3lzYfX.js";import{_ as Ae}from"./Btv0Mbur.js";import{F as Ce}from"./BMnmHCrD.js";import{F as $e}from"./D87b5TxL.js";import{V as Ee}from"./4_gQYftm.js";import"./Cu1WVesf.js";import"./D1DHIjVV.js";import"./cOG_Tgfm.js";import"./D3IHYATn.js";import"./88CiFob0.js";import"./TkQW67wj.js";import"./DG74eiGR.js";import"./BTyqKkSn.js";import"./7Uw2BLKa.js";import"./BFrRRYyD.js";import"./DLAUhSm-.js";import"./D3iL_lKc.js";import"./CXQlBbV5.js";import"./CeeKZcSV.js";import"./CiCXVKA5.js";import"./neu2ZDPg.js";try{let v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new v.Error().stack;r&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[r]="a517763d-5cd5-483f-a9b4-3333a3154e63",v._sentryDebugIdIdentifier="sentry-dbid-a517763d-5cd5-483f-a9b4-3333a3154e63")}catch{}const Ze={},ke={id:"Temp_Icon","data-name":"Temp Icon",xmlns:"http://www.w3.org/2000/svg",width:"49",height:"49",viewBox:"0 0 49 49"};function Se(v,r){return i(),f("svg",ke,[...r[0]||(r[0]=[e("circle",{id:"Ellipse_47","data-name":"Ellipse 47",cx:"24.5",cy:"24.5",r:"24.5",fill:"#261218"},null,-1),e("path",{id:"device_thermostat_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24",d:"M286.239-855.042a6.013,6.013,0,0,1-4.414-1.825A6.014,6.014,0,0,1,280-861.282a6.1,6.1,0,0,1,.655-2.792,6.341,6.341,0,0,1,1.841-2.2v-9.983a3.61,3.61,0,0,1,1.092-2.652A3.61,3.61,0,0,1,286.239-880a3.61,3.61,0,0,1,2.652,1.092,3.61,3.61,0,0,1,1.092,2.652v9.983a6.342,6.342,0,0,1,1.841,2.2,6.1,6.1,0,0,1,.655,2.792,6.014,6.014,0,0,1-1.825,4.414A6.014,6.014,0,0,1,286.239-855.042Zm-1.248-13.727h2.5v-1.248h-1.248v-1.248h1.248v-2.5h-1.248v-1.248h1.248v-1.248a1.207,1.207,0,0,0-.359-.889,1.207,1.207,0,0,0-.889-.359,1.207,1.207,0,0,0-.889.359,1.207,1.207,0,0,0-.359.889Z",transform:"translate(-261.739 891.021)",fill:"#fbfaf6"},null,-1)])])}const De=I(Ze,[["render",Se]]),Fe={},Ie={id:"Summer",xmlns:"http://www.w3.org/2000/svg",width:"49",height:"49",viewBox:"0 0 49 49"};function Ve(v,r){return i(),f("svg",Ie,[...r[0]||(r[0]=[e("circle",{id:"Ellipse_48","data-name":"Ellipse 48",cx:"24.5",cy:"24.5",r:"24.5",fill:"#261218"},null,-1),e("path",{id:"clear_day_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24",d:"M52.479-915.008V-920h2.5v4.992Zm8.3,3.432-1.716-1.716,3.494-3.588L64.3-915.1Zm1.685,6.551v-2.5h4.992v2.5Zm-9.983,12.479v-4.992h2.5v4.992Zm-5.8-19.093L43.12-915.1l1.778-1.747,3.525,3.525Zm15.848,15.973-3.463-3.588,1.685-1.685,3.557,3.432ZM40-905.025v-2.5h4.992v2.5Zm4.9,9.359-1.747-1.778,3.494-3.494.9.842.9.873Zm8.829-3.12a7.221,7.221,0,0,1-5.3-2.184,7.221,7.221,0,0,1-2.184-5.3,7.22,7.22,0,0,1,2.184-5.3,7.221,7.221,0,0,1,5.3-2.184,7.221,7.221,0,0,1,5.3,2.184,7.22,7.22,0,0,1,2.184,5.3,7.221,7.221,0,0,1-2.184,5.3A7.221,7.221,0,0,1,53.727-898.786Zm0-2.5a4.807,4.807,0,0,0,3.525-1.466,4.806,4.806,0,0,0,1.466-3.525,4.806,4.806,0,0,0-1.466-3.525,4.807,4.807,0,0,0-3.525-1.466A4.806,4.806,0,0,0,50.2-909.8a4.806,4.806,0,0,0-1.466,3.525,4.806,4.806,0,0,0,1.466,3.525A4.807,4.807,0,0,0,53.727-901.282ZM53.727-906.273Z",transform:"translate(-29.227 930.773)",fill:"#fbfaf6"},null,-1)])])}const Me=I(Fe,[["render",Ve]]),Le={},Te={id:"Autumn",xmlns:"http://www.w3.org/2000/svg",width:"49",height:"49",viewBox:"0 0 49 49"};function Be(v,r){return i(),f("svg",Te,[...r[0]||(r[0]=[e("circle",{id:"Ellipse_50","data-name":"Ellipse 50",cx:"24.5",cy:"24.5",r:"24.5",fill:"#261218"},null,-1),e("path",{id:"nest_eco_leaf_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24",d:"M169.983-780.034a9.8,9.8,0,0,1-3.291-.546,9.945,9.945,0,0,1-2.823-1.544l-1.747,1.716a1.183,1.183,0,0,1-.874.343,1.183,1.183,0,0,1-.874-.343,1.183,1.183,0,0,1-.343-.873,1.183,1.183,0,0,1,.343-.874l1.716-1.716a9.891,9.891,0,0,1-1.544-2.839,9.939,9.939,0,0,1-.546-3.307,9.635,9.635,0,0,1,2.9-7.082,9.635,9.635,0,0,1,7.082-2.9h9.983v9.983a9.635,9.635,0,0,1-2.9,7.082A9.635,9.635,0,0,1,169.983-780.034Zm0-2.5a7.221,7.221,0,0,0,5.3-2.184,7.221,7.221,0,0,0,2.184-5.3V-797.5h-7.487a7.221,7.221,0,0,0-5.3,2.184,7.221,7.221,0,0,0-2.184,5.3,7.209,7.209,0,0,0,.374,2.324,7.5,7.5,0,0,0,1.03,2.012l6.458-6.458a1.183,1.183,0,0,1,.874-.343,1.183,1.183,0,0,1,.874.343,1.215,1.215,0,0,1,.374.889,1.215,1.215,0,0,1-.374.889l-6.458,6.458a7.176,7.176,0,0,0,2.012,1.014A7.5,7.5,0,0,0,169.983-782.529ZM169.983-790.017Z",transform:"translate(-145.483 814.517)",fill:"#fbfaf6"},null,-1)])])}const Ne=I(Le,[["render",Be]]),Re={},ze={id:"Winter",xmlns:"http://www.w3.org/2000/svg",width:"49",he
1ight:"49",viewBox:"0 0 49 49"};function Ge(v,r){return i(),f("svg",ze,[...r[0]||(r[0]=[e("circle",{id:"Ellipse_48","data-name":"Ellipse 48",cx:"24.5",cy:"24.5",r:"24.5",fill:"#261218"},null,-1),e("path",{id:"ac_unit_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24",d:"M91.231-855.042v-5.179l-4.056,3.993-1.747-1.747,5.8-5.8v-2.5h-2.5l-5.8,5.8-1.747-1.747,3.993-4.056H80v-2.5h5.179l-3.993-4.056,1.747-1.747,5.8,5.8h2.5v-2.5l-5.8-5.8,1.747-1.747,4.056,3.993V-880h2.5v5.179l4.056-3.993,1.747,1.747-5.8,5.8v2.5h2.5l5.8-5.8,1.747,1.747-3.993,4.056h5.179v2.5H99.779l3.993,4.056-1.747,1.747-5.8-5.8h-2.5v2.5l5.8,5.8-1.747,1.747-4.056-3.993v5.179Z",transform:"translate(-67.979 892.021)",fill:"#fbfaf6"},null,-1)])])}const Ue=I(Re,[["render",Ge]]),je={},qe={id:"Spring",xmlns:"http://www.w3.org/2000/svg",width:"49",height:"49",viewBox:"0 0 49 49"};function We(v,r){return i(),f("svg",qe,[...r[0]||(r[0]=[e("circle",{id:"Ellipse_49","data-name":"Ellipse 49",cx:"24.5",cy:"24.5",r:"24.5",fill:"#261218"},null,-1),e("path",{id:"local_florist_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24",d:"M131.231-910.017a1.207,1.207,0,0,0,.889-.359,1.207,1.207,0,0,0,.359-.889,1.207,1.207,0,0,0-.359-.889,1.207,1.207,0,0,0-.889-.359,1.207,1.207,0,0,0-.889.359,1.207,1.207,0,0,0-.359.889,1.207,1.207,0,0,0,.359.889A1.207,1.207,0,0,0,131.231-910.017Zm0,7.487a3.813,3.813,0,0,1-2.2-.671,3.8,3.8,0,0,1-1.419-1.763,2.284,2.284,0,0,0-.281.016,2.273,2.273,0,0,1-.281.016,3.785,3.785,0,0,1-2.777-1.154,3.785,3.785,0,0,1-1.154-2.777,3.712,3.712,0,0,1,.218-1.263,3.81,3.81,0,0,1,.655-1.139,4.205,4.205,0,0,1-.624-1.139,3.711,3.711,0,0,1-.218-1.263,3.811,3.811,0,0,1,1.139-2.776,3.734,3.734,0,0,1,2.761-1.154,2.273,2.273,0,0,1,.281.016,2.284,2.284,0,0,0,.281.016,3.8,3.8,0,0,1,1.419-1.763,3.813,3.813,0,0,1,2.2-.671,3.813,3.813,0,0,1,2.2.671,3.8,3.8,0,0,1,1.419,1.763,2.285,2.285,0,0,0,.281-.016,2.273,2.273,0,0,1,.281-.016,3.734,3.734,0,0,1,2.761,1.154,3.811,3.811,0,0,1,1.139,2.776,3.968,3.968,0,0,1-.2,1.263,3.551,3.551,0,0,1-.64,1.139,4.206,4.206,0,0,1,.624,1.139,3.711,3.711,0,0,1,.218,1.263,3.811,3.811,0,0,1-1.139,2.777,3.734,3.734,0,0,1-2.761,1.154,2.273,2.273,0,0,1-.281-.016,2.285,2.285,0,0,0-.281-.016,3.8,3.8,0,0,1-1.419,1.763A3.813,3.813,0,0,1,131.231-902.53Zm0,8.735a10.789,10.789,0,0,1,.889-4.352,11.472,11.472,0,0,1,2.418-3.572,11.473,11.473,0,0,1,3.572-2.418,10.79,10.79,0,0,1,4.352-.889,10.789,10.789,0,0,1-.889,4.352,11.473,11.473,0,0,1-2.418,3.572,11.473,11.473,0,0,1-3.572,2.418A10.789,10.789,0,0,1,131.231-893.794Zm3.057-3.057a8.533,8.533,0,0,0,3.12-2,8.535,8.535,0,0,0,2-3.12,8.533,8.533,0,0,0-3.12,2A8.534,8.534,0,0,0,134.288-896.852Zm-3.057,3.057a10.789,10.789,0,0,0-.889-4.352,11.473,11.473,0,0,0-2.418-3.572,11.472,11.472,0,0,0-3.572-2.418,10.79,10.79,0,0,0-4.352-.889,10.789,10.789,0,0,0,.889,4.352,11.473,11.473,0,0,0,2.418,3.572,11.472,11.472,0,0,0,3.572,2.418A10.788,10.788,0,0,0,131.231-893.794Zm-3.057-3.057a8.534,8.534,0,0,1-3.12-2,8.535,8.535,0,0,1-2-3.12,8.533,8.533,0,0,1,3.12,2A8.534,8.534,0,0,1,128.174-896.852ZM134.288-896.852ZM128.174-896.852Zm7.238-10.576a1.382,1.382,0,0,0,1.014-.421,1.382,1.382,0,0,0,.421-1.014,1.281,1.281,0,0,0-.234-.764,1.629,1.629,0,0,0-.608-.515l-1.092-.53a3.779,3.779,0,0,1-.187.671,4.683,4.683,0,0,1-.281.608,3.062,3.062,0,0,1-.374.53,4.96,4.96,0,0,1-.468.468l1,.718a1.075,1.075,0,0,0,.359.187A1.536,1.536,0,0,0,135.411-907.428Zm-.5-4.43,1.092-.53a1.464,1.464,0,0,0,.593-.53,1.368,1.368,0,0,0,.218-.749,1.409,1.409,0,0,0-.406-1.014,1.332,1.332,0,0,0-1-.421,1.383,1.383,0,0,0-.437.062,1.576,1.576,0,0,0-.374.187l-1.029.718q.25.218.484.468a2.675,2.675,0,0,1,.39.53,4.683,4.683,0,0,1,.281.608A3.78,3.78,0,0,1,134.912-911.858Zm-4.96-2.9a3.56,3.56,0,0,1,.624-.187,3.337,3.337,0,0,1,.655-.062,3.337,3.337,0,0,1,.655.062,3.56,3.56,0,0,1,.624.187l.156-1.373a1.081,1.081,0,0,0-.39-.967,1.519,1.519,0,0,0-1.045-.406,1.519,1.519,0,0,0-1.045.406,1.081,1.081,0,0,0-.39.967Zm1.279,9.734a1.518,1.518,0,0,0,1.045-.406,1.081,1.081,0,0,0,.39-.967l-.156-1.373a3.56,3.56,0,0,1-.624.187,3.337,3.337,0,0,1-.655.062,3.337,3.337,0,0,1-.655-.062,3.56,3.56,0,0,1-.624-.187L129.8-906.4a1.081,1.081,0,0,0,.39.967A1.518,1.518,0,0,0,131.231-905.025Zm-3.681-6.832a3.78,3.78,0,0,1,.187-.671,4.685,4.685,0,0,1,.281-.608,3.064,3.064,0,0,1,.374-.53,4.968,4.968,0,0,1,.468-.468l-1-.718a1.074,1.074,0,0,0-.359-.187,1.536,1.536,0,0,0-.452-.062,1.382,1.382,0,0,0-1.014.421,1.382,1.382,0,0,0-.421,1.014,1.3,1.3,0,0,0,.234.749,1.579,1.579,0,0,0,.608.53Zm-.5,4.4a1.814,1.814,0,0,0,.437-.047.954.954,0,0,0,.374-.2l1.03-.686q-.25-.218-.484-.468a2.672,2.672,0,0,1-.39-.53,4.685,4.685,0,0,1-.281-.608,3.779,3.779,0,0,1-.187-.671l-1.092.53a1.463,1.463,0,0,0-.593.53,1.368,1.368,0,0,0-.218.749,1.505,1.505,0,0,0,.421,1A1.306,1.306,0,0,0,127.051-907.459ZM134.444-909.393ZM134.444-913.137ZM131.231-915.008ZM131.231-907.521ZM128.018-913.137ZM128.018-909.393Z",transform:"translate(-106.731 930.773)",fill:"#fbfaf6"},null,-1)])])}const Pe=I(je,[["render",We]]),Oe={class:"u-text-h4 list-title"},He={class:"u-text-h4 list-title"},Je={class:"d-flex flex-column temp-text-container"},Ke={key:1,class:"d-flex align-center temp-display"},Qe={class:"d-flex flex-column"},Xe={class:"d-flex justify-space-between align-center"},Ye={class:"u-text-h4"},et={key:0,class:"u-text-small"},tt={key:1,class:"u-text-small"},at={key:1,class:"d-flex flex-column temp-text-container"},st={class:"u-text-h4"},nt={key:0,class:"u-text-small"},lt={key:1,class:"u-text-small"},ot={class:"u-text-h3 city-title"},it={class:"u-text-main"},rt=re({__name:"ClimateSelector",props:{destination:{}},setup(v){const r=v,V=ie().$createApi(),M=T(()=>{var a;return(a=r.destination)==null?void 0:a.id}),g=b(void 0),y=a=>{o.value=a,C()},C=()=>{var a,c,_,k;if(o.value&&(h.value&&(h.value.remove(),h.value=null),(a=u.value)!=null&&a.lat&&((c=u.value)!=null&&c.lon))
1){const d=document.createElement("div");d.style.backgroundImage=`url(${me})`,d.innerText=((k=(_=u.value.city)==null?void 0:_.at(0))==null?void 0:k.toUpperCase())??"",d.style.fontFamily="area-normal",d.style.width="32px",d.style.height="38px",d.style.backgroundSize="cover",d.style.cursor="pointer",d.style.textAlign="center",d.style.paddingTop="5px",d.style.fontSize="1rem";const p=[u.value.lon,u.value.lat];o.value.flyTo({center:p,animate:!0,zoom:8,speed:.8,curve:1.4,easing:j=>j}),o.value.once("moveend",()=>{o.value.getZoom()!==8&&o.value.setZoom(8)}),h.value=new fe.Marker(d,{anchor:"bottom"}).setLngLat(p).addTo(o.value)}},x=b(void 0),L=b(void 0),Z=b(void 0),w=b(void 0),S=b(!1),l=b([]),o=b(null),h=b(null),D=b((()=>{try{const a=Intl.DateTimeFormat().resolvedOptions().timeZone;return a.startsWith("America/")&&!a.startsWith("America/Argentina")&&!a.startsWith("America/Sao_Paulo")&&!a.includes("Santiago")&&!a.includes("Buenos_Aires")&&!a.includes("Mexico")&&!a.includes("Bogota")&&!a.includes("Lima")}catch{return!1}})()?"f":"c"),u=T(()=>w.value?w.value:L.value),F=T(()=>{var c;const a=(c=u.value)==null?void 0:c.temperature;return D.value==="c"?xe(a):we(a)}),m=[{name:"January",value:1},{name:"February",value:2},{name:"March",value:3},{name:"April",value:4},{name:"May",value:5},{name:"June",value:6},{name:"July",value:7},{name:"August",value:8},{name:"September",value:9},{name:"October",value:10},{name:"November",value:11},{name:"December",value:12}],R=T(()=>{var _,k,d;if(!((k=(_=r.destination)==null?void 0:_.countryIds)!=null&&k.length)||!((d=l.value)!=null&&d.length))return[];const a=r.destination.countryIds;var c=l.value.filter(p=>p.countryId&&a.includes(p.countryId));return c.length>0&&!x.value&&(x.value=c[0].name),c});de(async()=>{try{const a=await V.cityClimate.getGetAllCitiesCityClimate();l.value=a.data.cities||[]}catch(a){console.error("Error fetching cities:",a)}}),q(x,async a=>{var _;if(!a)return;const c=await V.cityClimate.getGetCityClimateTodayCityClimate(a);(_=c.data.cityClimate)!=null&&_.temperature?L.value=c.data.cityClimate:L.value=void 0,C()});const K=()=>{D.value=D.value==="c"?"f":"c"};return q([x,Z],async([a,c])=>{if(w.value=void 0,!(!a||!c)){S.value=!0;try{const _=await V.cityClimate.getGetCityClimateCityClimate(a,c);w.value=_.data.cityClimate||void 0}catch(_){console.error("Error fetching climate data:",_),w.value=void 0}finally{S.value=!1}}}),q(u,()=>{var a;g.value==null&&((a=u.value)!=null&&a.lat)&&u.value.lon&&(g.value={lat:u.value.lat,lon:u.value.lon})}),q(()=>{var a;return(a=r.destination)==null?void 0:a.id},()=>{x.value=void 0,Z.value=void 0,w.value=void 0,L.value=void 0,g.value=void 0,D.value="c",h.value&&(h.value.remove(),h.value=null)},{immediate:!0}),(a,c)=>{const _=ue;return n(R).length>0?(i(),$(B,{key:0,flat:"",class:"card-bordered"},{default:s(()=>[c[3]||(c[3]=e("h2",{class:"u-text-h2 title"},"Climate Information",-1)),t(U,null,{default:s(()=>[t(E,{cols:"12",md:"4"},{default:s(()=>{var k;return[t(oe,{modelValue:n(x),"onUpdate:modelValue":c[0]||(c[0]=d=>se(x)?x.value=d:null),items:n(R),"item-title":"name","item-value":"name",label:"Select a city",variant:"outlined",density:"comfortable","list-props":{bgColor:"#FBFAF6"},disabled:!n(R).length,"hide-details":"",class:"u-text-h3 large-dropdown"},{item:s(({props:d,item:p})=>[t(J,ne(d,{title:p.raw.name,class:"list-item"}),{title:s(()=>[e("h3",Oe,A(p.raw.name),1)]),_:2},1040,["title"])]),"no-data":s(()=>[...c[2]||(c[2]=[e("div",{class:"pa-4 text-center"}," No cities available for this destination ",-1)])]),_:1},8,["modelValue","items","disabled"]),t(oe,{modelValue:n(Z),"onUpdate:modelValue":c[1]||(c[1]=d=>se(Z)?Z.value=d:null),items:m,"item-title":"name","item-value":"value",label:"Select a month",variant:"outlined",density:"comfortable","hide-details":"","list-props":{bgColor:"#FBFAF6"},class:"u-text-h3 large-dropdown month-dropdown"},{item:s(({props:d,item:p})=>[t(J,ne(d,{title:p.raw.name,class:"list-item"}),{title:s(()=>[e("h3",He,A(p.raw.name),1)]),_:2},1040,["title"])]),_:1},8,["modelValue"]),t(U,null,{default:s(()=>[t(E,null,{default:s(()=>[t(B,{flat:"",class:"d-flex temp-card align-center"},{default:s(()=>[t(De),e("div",Je,[n(S)?(i(),$(H,{key:0,indeterminate:"",color:"syrah"})):(i(),f("div",Ke,[e("div",Qe,[e("div",Xe,[e("h4",Ye,A(n(F)),1),t(_e,{color:"syrah",icon:n(ve),class:"login-icon",onClick:K,"aria-label":n(D)==="c"?"Switch to Fahrenheit":"Switch to Celsius"},null,8,["icon","aria-label"])]),n(u)==n(w)?(i(),f("small",et,"Average Temp")):(i(),f("small",tt,"Current Temp"))])]))])]),_:1})]),_:1}),t(E,null,{default:s(()=>[t(B,{flat:"",class:"d-flex temp-card align-center"},{default:s(()=>{var d,p,j,Q,X;return[t(Me,{class:W({hidden:((d=n(u))==null?void 0:d.season)!="Summer"})},null,8,["class"]),t(Ue,{class:W({hidden:((p=n(u))==null?void 0:p.season)!="Winter"})},null,8,["class"]),t(Ne,{class:W({hidden:((j=n(u))==null?void 0:j.season)!="Fall"})},null,8,["class"]),t(Pe,{class:W({hidden:((Q=n(u))==null?void 0:Q.season)!="Spring"})},null,8,["class"]),n(S)?(i(),$(H,{key:0,class:"temp-text-container",indeterminate:"",color:"syrah"})):(i(),f("div",at,[e("h4",st,A((X=n(u))==null?void 0:X.season),1),n(u)==n(w)?(i(),f("small",nt,"Season")):(i(),f("small",lt,"Current Season"))]))]}),_:1})]),_:1})]),_:1}),e("h3",ot,"About "+A(n(x)),1),e("p",it,A((k=n(u))==null?void 0:k.description),1)]}),_:1}),t(E,{cols:"12",md:"8"},{default:s(()=>[t(_,{"map-id":n(M),style:{width:"100%",height:"100%"},options:{style:"mapbox://styles/devcichstudio/cmayw1oof006c01syf1bre6vr",center:n(g),zoom:4,attributionControl:!1},onLoad:y},null,8,["map-id","options"])]),_:1})]),_:1})]),_:1})):O("",!0)}}}),dt=I(rt,[["__scopeId","data-v-caf7324e"]]),ct={class:"d-flex justify-space-between align-center mb-1"},ut={class:"destination-report-container d-flex justify-space-between flex-wrap"},mt={class:"report-image-container"},ft={class:"d-flex align-center justify-center fill-height bg-grey-lighten-3"},vt={class:"destination-report-content d-flex flex-column"},_t={class:"d-flex flex-column"},pt={class:"report-content-top"},ht={class:"destination-report-meta u-text-h5 font-weight-bold"},gt={class:"u-text-h3 destination-report-title"},yt={class:"d-flex justify-space-between u-text-small destination-report-subtitle"},xt=["onClick"],wt={key:1,class:"u-text-main pa-4"},bt={class:"d-flex justify-space-between align-end mb-1"},At={key:0},Ct={class:"d-flex flex-column h-100"},$t={class:"pa-1 h-100 d-flex align-end flex-row"},Et={class:"text-overlay d-flex flex-column"},Zt={class:"u-text-main"},kt={class:"u-text-h3"},St={class:"d-flex align-center justify-center fill-height bg-grey-lighten-3"},Dt={key:1,class:"text-body-1 text-medium-emphasis"},Ft=re({__name:"index",props:{destination:{}},setup(v){const r=v;pe({title:()=>{var l;return`${(l=r.destination)==null?void 0:l.name}`}});const V=he(),M=ie().$createApi(),g=T(()=>V.params.destination),y=T(()=>{var l;return(l=r.destination)==null?void 0:l.id}),C=b([]);de(async()=>{const l=await M.agent.getGetFavouritesAgent();C.value=l.data.favourites??[]});const x=l=>{var h;return l?!!((h=C.value)==null?void 0:h.find(N=>N.offerId==l||N.resourceId==l)):!1},L=l=>{l&&(C.value.find(o=>o.resourceId==l)?C.value=C.value.filter(o=>o.resourceId!=l):C.value.push({resourceId:l}),M.agent.postFavouriteResourceAgent(l).then(o=>{C.value=o.data.favourites??[]}))},{data:Z}=Y(`destination-news-overview-${g.value}`,async()=>
1{if(!y.value)return[];try{return(await M.agentDestination.getResourceSearchAgentDestination({"Filter.Filters":[{field:"destinationId",action:z.Eq,value:y.value},{field:"published",action:z.Eq,value:"true"},{field:"type",action:z.Eq,value:te.News}],PageNumber:1,PageSize:5,SortBy:"eventDate",SortDir:ee.Descending})).data.rows||[]}catch(l){return console.error("Error fetching destination news:",l),[]}},{watch:[y],immediate:!!y.value}),{data:w}=Y(`events-overview-${g.value}`,async()=>{if(!y.value)return[];try{return(await M.agentDestination.getResourceSearchAgentDestination({"Filter.Filters":[{field:"destinationId",action:z.Eq,value:y.value},{field:"type",action:z.Eq,value:te.Event}],PageSize:2,SortBy:"eventDate",SortDir:ee.Ascending})).data.rows||[]}catch(l){return console.error("Error fetching events:",l),[]}},{watch:[y],immediate:!!y.value}),S=l=>l?new Date(l).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}):"";return(l,o)=>{const h=ce,N=dt,D=ge,u=Ae;return i(),f(P,null,[t(U,null,{default:s(()=>[t(E,{cols:"12",md:"8",class:"d-flex"},{default:s(()=>[t(B,{flat:"",class:"card-bordered d-flex flex-column flex-grow-1"},{default:s(()=>{var F;return[e("div",ct,[o[1]||(o[1]=e("h2",{class:"u-text-h2"},"News and Insights",-1)),t(h,{to:"/agents/news",class:"u-text-h4 deals"},{default:s(()=>[...o[0]||(o[0]=[G(" View all ",-1)])]),_:1})]),(F=n(Z))!=null&&F.length?(i(),$(be,{key:0,lines:"three",class:"destination-reports-list",density:"comfortable"},{default:s(()=>[(i(!0),f(P,null,le(n(Z),(m,R)=>(i(),f(P,{key:m.id},[t(J,{align:"start",class:"background-hover destination-report-item",to:`/agents/news/${m.slug}`},{default:s(()=>[e("div",ut,[e("div",mt,[t(ae,{src:m.heroImage||"/images/placeholder.jpg",alt:m.name,class:"destination-report-image","as
1pect-ratio":"295/222",cover:""},{placeholder:s(()=>[e("div",ft,[t(H,{indeterminate:"",color:"grey-lighten-4"})])]),_:1},8,["src","alt"])]),e("div",vt,[e("div",_t,[e("div",pt,[e("div",ht,A(m.category),1)]),e("div",gt,A(m.name),1)]),e("div",yt,[e("div",null,A(S(m.eventDate))+" by Exclusive Travel Group ",1),e("div",{class:"fav-icon",onClick:ye(K=>L(m==null?void 0:m.id),["stop","prevent"])},[x(m==null?void 0:m.id)?(i(),$($e,{key:1})):(i(),$(Ce,{key:0}))],8,xt)])])])]),_:2},1032,["to"]),R<n(Z).length-1?(i(),$(Ee,{key:`${m.id}-divider`})):O("",!0)],64))),128))]),_:1})):(i(),f("div",wt," No recent news found. "))]}),_:1})]),_:1}),t(E,{cols:"12",md:"4"},{default:s(()=>[t(B,{flat:"",class:"card-bordered d-flex flex-column flex-grow-1"},{default:s(()=>{var F;return[e("div",bt,[o[3]||(o[3]=e("h2",{class:"u-text-h2"},"Upcoming Events",-1)),t(h,{to:`/agents/destinations/${n(g)}/events`,class:"u-text-h4 deals"},{default:s(()=>[...o[2]||(o[2]=[G(" View all ",-1)])]),_:1},8,["to"])]),(F=n(w))!=null&&F.length?(i(),f("div",At,[(i(!0),f(P,null,le(n(w),m=>(i(),$(B,{key:m.id,hover:"",class:"mb-1 event-card",color:"transparent",to:`/agents/destinations/${n(V).params.destination}/events/${m.slug}`},{default:s(()=>[e("div",Ct,[m.heroImage?(i(),$(ae,{key:0,src:m.heroImage,cover:"",height:"20rem",class:"w-100",gradient:"to top right, rgba(0,0,0,.2), rgba(0,0,0,.2)"},{placeholder:s(()=>[e("div",St,[t(H,{indeterminate:"",color:"grey-lighten-4"})])]),default:s(()=>[e("div",$t,[e("div",Et,[e("div",Zt,A(S(m.eventDate)),1),e("h3",kt,A(m.name),1)])])]),_:2},1032,["src"])):O("",!0)])]),_:2},1032,["to"]))),128))])):(i(),f("div",Dt," No upcoming events found. "))]}),_:1})]),_:1})]),_:1}),t(U,{class:"temp-component"},{default:s(()=>[t(E,{cols:"12"},{default:s(()=>[t(D,null,{default:s(()=>[v.destination?(i(),$(N,{key:n(y),destination:v.destination},null,8,["destination"])):O("",!0)]),_:1})]),_:1})]),_:1}),t(U,{class:"bottom-nav-btns"},{default:s(()=>[t(E,{cols:"12",sm:"3",class:"ps-sm-0"},{default:s(()=>[t(u,{to:`/agents/destinations/${n(g)}/famil-reports`},{default:s(()=>[...o[4]||(o[4]=[G("Famil Reports",-1)])]),_:1},8,["to"])]),_:1}),t(E,{cols:"12",sm:"3"},{default:s(()=>[t(u,{to:`/agents/destinations/${n(g)}/destination-resources`},{default:s(()=>[...o[5]||(o[5]=[G("Destination Resources",-1)])]),_:1},8,["to"])]),_:1}),t(E,{cols:"12",sm:"3"},{default:s(()=>[t(u,{to:`/agents/destinations/${n(g)}/events`},{default:s(()=>[...o[6]||(o[6]=[G("Events",-1)])]),_:1},8,["to"])]),_:1})]),_:1})],64)}}}),i1=I(Ft,[["__scopeId","data-v-39f3409b"]]);export{i1 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.