PageSourceSearch

https://maasaimara.com/assets/routes-CJHnXHzB.js

js maasaimara.com collected 2026-10-02 07:43:55 UTC 25,726 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LeafletMap-BHNj50U4.js","assets/rolldown-runtime-DAXXjFlN.js","assets/react-BUD3sqOU.js","assets/jsx-runtime-CFwixLRt.js","assets/index-jxR16gWz.js","assets/react-dom-DmHqBZ9-.js","assets/createServerFn-BX-pYca9.js","assets/useStore-CvenRxHN.js","assets/route-BTxnArw9.js","assets/link-EObPN6Pf.js","assets/useMatch-CeqP68jL.js","assets/useNavigate-Bj6xHREt.js","assets/setPrototypeOf-CWyw1Mv0.js","assets/index-CojfEBZ_.css","assets/MapSkeleton-CscOU8fU.js","assets/MapSkeleton-DCvwDmAr.css","assets/LeafletMap-DwMbZRBA.css","assets/AccommodationEnquiryModal-BYMyK20N.js","assets/SuccessfulEnquirySubmission-DYq7LxfK.js","assets/EntryCard-cVAc5J0U.js","assets/EntryCard-RYAlmw6l.css","assets/SuccessfulEnquirySubmission-CMCzbYRm.css","assets/EnquiryForm-DOyypdcU.js","assets/formik.esm-idfaz6-d.js","assets/EnquiryForm.module-BGLWONFL.js","assets/EnquiryForm-JYQyKXYQ.css","assets/CountrySelect-BSNi8tIt.js","assets/emotion-react.browser.esm-D7GzjEY7.js","assets/AccommodationEnquiryModal-CG4i8jY9.css"])))=>i.map(i=>d[i]);
2import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{n,t as r}from"./link-EObPN6Pf.js";import{r as i}from"./route-BTxnArw9.js";import{t as a}from"./jsx-runtime-CFwixLRt.js";import{t as o}from"./Carousel-CPukhTJj.js";import{A as s,j as c,s as l}from"./index-jxR16gWz.js";import{t as u}from"./EntryCard-cVAc5J0U.js";import{t as d}from"./MapSkeleton-CscOU8fU.js";import{t as f}from"./lodash.isempty-B9lCSQVw.js";import{t as p}from"./FeaturedProperties-TmHtokJs.js";import{t as m}from"./YouTube.esm-DU74TT9X.js";import{n as h,r as g,t as _}from"./SafariIdeas-DdnWewro.js";var v=e(t(),1),y={section:`_section_1d6ua_1`,container:`_container_1d6ua_5`,withMap:`_withMap_1d6ua_47`,copy:`_copy_1d6ua_62`,mapWrap:`_mapWrap_1d6ua_66`,text:`_text_1d6ua_83`,title:`_title_1d6ua_99`,content:`_content_1d6ua_119`,description:`_description_1d6ua_126`,statrow:`_statrow_1d6ua_136`,statNumber:`_statNumber_1d6ua_143`,statLabel:`_statLabel_1d6ua_151`,statSublabel:`_statSublabel_1d6ua_161`,seeMore:`_seeMore_1d6ua_168`},b=a(),ee=(0,v.lazy)(()=>c(()=>import(`./LeafletMap-BHNj50U4.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),te=i(`/`),x=()=>{let e=(0,v.useContext)(s),{aboutDescription:t}=te.useLoaderData(),[n,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(!1),c=e?.about,u=e?._id;if((0,v.useEffect)(()=>{if(!u){o(!0);return}let e=!1;return l({data:{destinationId:u}}).then(t=>{e||(i(t),o(!0))}).catch(()=>{e||o(!0)}),()=>{e=!0}},[u]),!c?.title)return null;let f=t??c.description,p=Array.isArray(n)?n[0]:n?.currentDestination&&n.currentDestination[0]||n?.otherDestinations&&n.otherDestinations[0],m=p?.location?.latitude??e?.location?.latitude,h=p?.location?.longitude??e?.location?.longitude,g=n&&!Array.isArray(n)&&(n.currentDestination||n.otherDestinations),_=Array.isArray(n)&&n.length>0||g&&(n.currentDestination&&n.currentDestination.length>0||n.otherDestinations&&n.otherDestinations.length>0),x=!!(e?.location?.latitude&&e?.location?.longitude)||_||!a&&!!u;return(0,b.jsx)(`div`,{className:y.section,children:(0,b.jsxs)(`div`,{className:`${y.container} ${x?y.withMap:``}`,children:[(0,b.jsxs)(`div`,{className:y.copy,children:[c.eyebrow&&(0,b.jsx)(`p`,{className:y.text,children:c.eyebrow}),(0,b.jsx)(`h2`,{className:y.title,dangerouslySetInnerHTML:{__html:c.title}}),(0,b.jsxs)(`div`,{className:y.content,children:[f&&(0,b.jsx)(`div`,{className:`${y.description} inserted-html`,dangerouslySetInnerHTML:{__html:f}}),Array.isArray(c.stats)&&c.stats.length>0&&(0,b.jsx)(`div`,{className:y.statrow,children:c.stats.map((e,t)=>(0,b.jsxs)(`div`,{className:y.stat,children:[(0,b.jsx)(`div`,{className:y.statNumber,children:e.number}),(0,b.jsx)(`div`,{className:y.statLabel,children:e.label}),e.sublabel&&(0,b.jsx)(`div`,{className:y.statSublabel,children:e.sublabel})]},e.label||t))}),(0,b.jsx)(r,{className:y.seeMore,to:`/useful-info`,children:`See More →`})]})]}),x&&(0,b.jsx)(`div`,{className:y.mapWrap,children:n&&m&&h?(0,b.jsx)(v.Suspense,{fallback:(0,b.jsx)(d,{label:`Loading map markers…`}),children:(0,b.jsx)(ee,{latitude:m,longitude:h,zoom:9,markerData:n})}):(0,b.jsx)(d,{label:`Exploring destination map…`})})]})})},S={container:`_container_a2vak_1`,"main-card-content":`_main-card-content_a2vak_23`,"main-wrapper":`_main-wrapper_a2vak_35`,"main-content":`_main-content_a2vak_42`,"main-top-content":`_main-top-content_a2vak_52`,"main-top-content__title":`_main-top-content__title_a2vak_61`,eyebrow:`_eyebrow_a2vak_69`,"main-top-content__clickables":`_main-top-content__clickables_a2vak_108`,"main-top-content__tag":`_main-top-content__tag_a2vak_121`},C=e(f(),1),w=i(`/`),T=()=>{let{safaris:e}=w.useLoaderData(),t=(0,v.useContext)(s);return!(0,C.default)(e)&&(0,b.jsx)(`div`,{className:S.container,id:`handpicked-safaris`,children:(0,b.jsx)(`div`,{className:S[`main-wrapper`],children:(0,b.jsxs)(`div`,{className:S[`main-content`],children:[(0,b.jsxs)(`div`,{className:S[`main-top-content`],children:[(0,b.jsxs)(`div`,{className:S[`main-top-content__title`],children:[(0,b.jsx)(`span`,{className:S.eyebrow,children:`Real Safaris, Ready to Book`}
2),(0,b.jsxs)(`h1`,{children:[`Safaris in `,t.name]}),(0,b.jsx)(`p`,{children:`We selected the top safaris to ensure you experience only the very best.`})]}),(0,b.jsx)(`div`,{className:S[`main-top-content__clickables`],children:(0,b.jsx)(`div`,{className:S.clickables,children:(0,b.jsx)(r,{to:`/safaris`,className:S[`main-top-content__tag`],children:`View All Safaris`})})})]}),(0,b.jsx)(`div`,{className:S[`main-card-content`],children:e.map(e=>(0,b.jsx)(`div`,{children:(0,b.jsx)(u,{entry:e,isProperty:!1,isSmall:!0})},e._id))})]})})})},E={hero:`_hero_v73u3_1`,bg:`_bg_v73u3_10`,carousel:`_carousel_v73u3_19`,image:`_image_v73u3_59`,scrim:`_scrim_v73u3_66`,recommended:`_recommended_v73u3_75`,content:`_content_v73u3_99`,kicker:`_kicker_v73u3_109`,title:`_title_v73u3_129`,subtitle:`_subtitle_v73u3_160`,heroSubtext:`_heroSubtext_v73u3_176`,actions:`_actions_v73u3_186`,primaryBtn:`_primaryBtn_v73u3_201`,secondaryBtn:`_secondaryBtn_v73u3_202`},ne=({destination:e,onOpenPlanner:t})=>{let n=(e?.images?.home||[]).slice(0,3),i=n.length>1,a=e?.youTubeUrl?e.youTubeUrl.split(`=`)[1]:``;return(0,b.jsxs)(`header`,{className:E.hero,children:[(0,b.jsx)(`div`,{className:E.bg}),(0,b.jsx)(`div`,{className:E.carousel,children:a?(0,b.jsx)(m,{className:E.carousel,videoId:a,opts:{width:`100%`,height:`100%`,playerVars:{autoplay:1,controls:0,loop:1,mute:1,modestbranding:1,fs:0}}}):(0,b.jsx)(o,{controls:i,indicators:i,interval:i?5e3:null,pause:!1,children:(n.length?n:[{_id:`fallback`}]).map((t,n)=>(0,b.jsx)(o.Item,{style:{height:`100%`},children:t.url&&(0,b.jsx)(`img`,{className:E.image,src:t.url,alt:t.title||e?.name,fetchPriority:n===0?`high`:`auto`,loading:n===0?`eager`:`lazy`,decoding:`async`})},t._id))})}),(0,b.jsx)(`div`,{className:E.scrim}),(0,b.jsxs)(`div`,{className:E.content,children:[(0,b.jsx)(`div`,{className:E.kicker,children:e?.heroText?.home?.eyebrow||`The Original ${e?.name||``} Guide`}),e?.heroText?.home?.title||e?.mainHeader?(0,b.jsx)(`h1`,{className:E.title,dangerouslySetInnerHTML:{__html:e?.heroText?.home?.title||e?.mainHeader||e?.name||``}}):(0,b.jsx)(`h1`,{className:E.title,children:e?.name}),(e?.heroText?.home?.subtext||e?.mainSub)&&(0,b.jsx)(`p`,{className:E.subtitle,children:e?.heroText?.home?.subtext||e?.mainSub}),(0,b.jsxs)(`div`,{className:E.actions,children:[(0,b.jsx)(`button`,{className:E.primaryBtn,onClick:()=>t?.(),children:`Design your Safari  →`}),(0,b.jsx)(r,{to:`/accommodation`,className:E.secondaryBtn,children:`Accommodation Listings →`})]})]})]})},D={quickbar:`_quickbar_1n6af_1`,qbIn:`_qbIn_1n6af_8`,qbLead:`_qbLead_1n6af_18`,qbF:`_qbF_1n6af_34`,qbGrow:`_qbGrow_1n6af_56`,btn:`_btn_1n6af_61`,trustbar:`_trustbar_1n6af_79`,tbWrap:`_tbWrap_1n6af_84`,tb:`_tb_1n6af_84`,star:`_star_1n6af_106`},O=({onOpenPlanner:e,totalProperties:t})=>{let[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(`5`),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)(``);return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(`div`,{className:D.trustbar,children:(0,b.jsxs)(`div`,{className:D.tbWrap,children:[(0,b.jsxs)(`div`,{className:D.tb,children:[(0,b.jsx)(`b`,{children:`3`}),`\xA0 competing quotes per enquiry`]}),(0,b.jsxs)(`div`,{className:D.tb,children:[(0,b.jsxs)(`b`,{children:[t||`100`,`+`]}),`\xA0verified camps & lodges`]}),(0,b.jsxs)(`div`,{className:D.tb,children:[`replies within \xA0`,(0,b.jsx)(`b`,{children:`24 hrs`})]}),(0,b.jsxs)(`div`,{className:D.tb,children:[(0,b.jsx)(`b`,{children:`0% \xA0`}),` commission · no mark-up`]})]})})})},k={section:`_section_51lkv_1`,wrap:`_wrap_51lkv_11`,header:`_header_51lkv_32`,eyebrow:`_eyebrow_51lkv_41`,heading:`_heading_51lkv_50`,plan:`_plan_51lkv_75`,gal:`_gal_51lkv_85`,cell:`_cell_51lkv_91`},A=()=>{let e=(0,v.useContext)(s),t=[e?.images?.home,e?.images?.accommodation,e?.images?.safari,e?.images?.destination,e?.images?.about],n=new Set,i=t.flat().filter(e=>e?.url&&!n.has(e.url)&&n.add(e.url)).slice(0,8);if(i.length===0)return null;let a=e?.galleryContent;return(0,b.jsx)(`section`,{className:k.section,children:(0,b.jsxs)(`div`,{className:k.wrap,children:[(0,b.jsxs)(`div`,{className:k.header,children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`div`,{className:k.eyebrow,children:a?.eyebrow||`${e?.name||`The Destination`} in Pictures`}),a?.title?(0,b.jsx)(`h2`,{className:k.heading,dangerouslySetInnerHTML:{__html:a.title}}):(0,b.jsx)(`h2`,{className:k.heading,children:`A Glimpse of What Awaits`})]}),(0,b.jsx)(r,{className:k.plan,to:`/accommodation`,children:`Plan Your Visit →`})]}),(0,b.jsx)(`div`,{className:k.gal,children:i.map(t=>(0,b.jsx)(`div`,{className:k.cell,children:(0,b.jsx)(`img`,{src:t.url,alt:t.title||e?.name,loading:`lazy`,decoding:`async`})},t.url))})]})})},j={split:`_split_d1n1n_1`,card:`_card_d1n1n_12`,balloonCard:`_balloonCard_d1n1n_35`,bg:`_bg_d1n1n_39`,balloonBg:`_balloonBg_d1n1n_49`,inner:`_inner_d1n1n_53`,kick:`_kick_d1n1n_59`,btn:`_btn_d1n1n_86`},M=()=>{let e=(0,v.useContext)(s),t=e?.images?.accommodation?.[0]?.url||e?.images?.home?.[0]?.url,n=e?.images?.s
2afari?.[0]?.url||e?.images?.home?.[0]?.url;return(0,b.jsxs)(`section`,{className:j.split,children:[(0,b.jsxs)(r,{to:`/accommodation`,className:j.card,children:[t&&(0,b.jsx)(`img`,{src:t,alt:`Accommodation in destination`,className:j.bg,loading:`lazy`,decoding:`async`}),(0,b.jsxs)(`div`,{className:j.inner,children:[(0,b.jsx)(`div`,{className:j.kick,children:`Accommodation`}),(0,b.jsx)(`h2`,{children:`View All Places to Stay`}),(0,b.jsxs)(`p`,{children:[`From ultra-luxury tented camps to intimate conservancy lodges — browse every verified property in the `,e?.name,` ecosystem.`]}),(0,b.jsx)(`span`,{className:j.btn,children:`Browse Camps & Lodges →`})]})]}),(0,b.jsxs)(r,{to:`/safaris`,className:`${j.card} ${j.balloonCard}`,children:[n&&(0,b.jsx)(`img`,{src:n,alt:`Safaris in destination`,className:`${j.bg} ${j.balloonBg}`,loading:`lazy`,decoding:`async`}),(0,b.jsxs)(`div`,{className:j.inner,children:[(0,b.jsx)(`div`,{className:j.kick,children:`Safari Experiences`}),(0,b.jsxs)(`h2`,{children:[`Safaris That Include `,e?.name]}),(0,b.jsxs)(`p`,{children:[`Discover multi-destination safari itineraries that weave `,e?.name,` into a wider East African adventure.`]}),(0,b.jsx)(`span`,{className:j.btn,children:`Find Out More →`})]})]})]})},N={section:`_section_jfu23_1`,wrap:`_wrap_jfu23_12`,header:`_header_jfu23_33`,eyebrow:`_eyebrow_jfu23_39`,heading:`_heading_jfu23_49`,accent:`_accent_jfu23_57`,lead:`_lead_jfu23_63`,articles:`_articles_jfu23_71`,footer:`_footer_jfu23_90`,seeAll:`_seeAll_jfu23_95`,article:`_article_jfu23_71`,plate:`_plate_jfu23_125`,plateTitle:`_plateTitle_jfu23_149`,plateTitleAccent:`_plateTitleAccent_jfu23_163`,articleBody:`_articleBody_jfu23_168`,description:`_description_jfu23_172`,readLink:`_readLink_jfu23_180`},re=i(`/`),P=28,F=e=>{if(typeof e!=`string`)return``;let t=e.replace(/<[^>]+>/g,` `).replace(/&nbsp;/gi,` `).replace(/\s+/g,` `).trim(),n=t.split(` `).filter(Boolean);return n.length>P?`${n.slice(0,P).join(` `)}…`:t},I=e=>{let t=(e||``).trim().split(/\s+/),n=t.shift(),r=t.join(` `);return(0,b.jsxs)(b.Fragment,{children:[n?`${n} `:``,(0,b.jsx)(`span`,{className:N.plateTitleAccent,children:r})]})},L=()=>{let e=(0,v.useContext)(s),{usefulInfoArticles:t}=re.useLoaderData(),n=e?.maraGuide?.selectedUsefulInfo,i=Array.isArray(n)&&n.length>0?n:t;if(!Array.isArray(i)||i.length===0)return null;let a=i.slice(0,3),o=e?.name||`Destination`;return(0,b.jsx)(`section`,{className:N.section,children:(0,b.jsxs)(`div`,{className:N.wrap,children:[(0,b.jsxs)(`div`,{className:N.header,children:[(0,b.jsxs)(`div`,{className:N.eyebrow,children:[o,` Knowledge Base`]}),(0,b.jsxs)(`h2`,{className:N.heading,children:[`The `,o,` `,(0,b.jsx)(`span`,{className:N.accent,children:`Guide`})]}),(0,b.jsx)(`p`,{className:N.lead,children:`Written by the guides who know every corner of this ecosystem.`})]}),(0,b.jsx)(`div`,{className:N.articles,children:a.map(e=>(0,b.jsxs)(r,{to:`/useful-info/$slug`,params:{slug:e.slug},className:N.article,children:[(0,b.jsx)(`div`,{className:N.plate,children:(0,b.jsx)(`h3`,{className:N.plateTitle,children:I(e.eyebrow||e.title)})}),(0,b.jsxs)(`div`,{className:N.articleBody,children:[(0,b.jsx)(`p`,{className:N.description,children:F(e.description)}),(0,b.jsx)(`span`,{className:N.readLink,children:`Read Guide →`})]})]},e._id||e.slug))}),(0,b.jsx)(`div`,{className:N.footer,children:(0,b.jsx)(r,{to:`/useful-info`,className:N.seeAll,children:`See All Guides →`})})]})})},R={section:`_section_un1qa_1`,wrap:`_wrap_un1qa_12`,header:`_header_un1qa_33`,eyebrow:`_eyebrow_un1qa_38`,heading:`_heading_un1qa_48`,reasons:`_reasons_un1qa_61`,reason:`_reason_un1qa_61`,num:`_num_un1qa_105`},z=()=>{let e=(0,v.useContext)(s),t=e?.destinationDescription?.reasons;return!Array.isArray(t)||t.length===0?null:(0,b.jsx)(`section`,{className:R.section,children:(0,b.jsxs)(`div`,{className:R.wrap,children:[(0,b.jsxs)(`div`,{className:R.header,children:[(0,b.jsx)(`div`,{className:R.eyebrow,children:`Why Come Here`}),(0,b.jsxs)(`h2`,{className:R.heading,children:[`Top `,t.length,` Reasons to Visit `,(0,b.jsx)(`em`,{children:e?.name})]})]}),(0,b.jsx)(`div`,{className:R.reasons,children:t.map((e,t)=>(0,b.jsxs)(`div`,{className:R.reason,children:[(0,b.jsx)(`div`,{className:R.num,children:t+1}),e.title&&(0,b.jsx)(`h4`,{children:e.title}),(0,b.jsx)(`p`,{children:e.description})]},e.title||t))})]})})},B={section:`_section_157lw_1`,wrap:`_wrap_157lw_11`,header:`_header_157lw_32`,eyebrow:`_eyebrow_157lw_37`,heading:`_heading_157lw_47`,legend:`_legend_157lw_60`,legendItem:`_legendItem_157lw_68`,callout:`_callout_157lw_83`,season:`_season_157lw_95`,cal:`_cal_157lw_83`,mo:`_mo_157lw_127`,icon:`_icon_157lw_138`,best:`_best_157lw_150`,good:`_good_157lw_154`,shoulder:`_shoulder_157lw_158`,low:`_low_157lw_162`,m:`_m_157lw_127`,badge:`_badge_157lw_175`},V=(e=``)=>{let t=e.toLowerCase();return t.includes(`excellent`)||t.includes(`best`)?B.best:t.includes(`good`)?B.good:t.includes(`shoulder`)?B.shoulder:B.low},H=(e=``,t=``)=>{let n=e.toLowerCase(),r=t.toLowerCase();return n.includes(`excellent`)||n.includes(`best`)?`☀`:n.includes(`good`)?`🌤`:n.includes(`shoulder`)?r.includes(`rain`)?`🌦`:`⛅`:`🌧`},U=()=>{let e=(0,v.useContext)(s)?.bestTimeToVisit,t=e?.months;return!Array.isArray(t)||t.length===0?null:(0,b.jsx)(`section`,{className:B.section,children:(0,b.jsxs)(`div`,{className:B.wrap,children:[(0,b.jsxs)(`div`,{className:B.header,children:[(0,b.jsx)(`div`,{className:B.eyebrow,children:e.headlineStatNumber||`When to Go`}),e.headlineStatLabel?(0,b.jsx)(`h2`,{className:B.heading,dangerouslySetInnerHTML:{__html:e.headlineStatLabel}}
2):(0,b.jsx)(`h2`,{className:B.heading,children:`Best Time to Visit`}),Array.isArray(e.legend)&&e.legend.length>0&&(0,b.jsx)(`div`,{className:B.legend,children:e.legend.map(e=>(0,b.jsxs)(`span`,{className:B.legendItem,children:[(0,b.jsx)(`i`,{className:V(e)}),` `,e]},e))})]}),(0,b.jsx)(`div`,{className:B.cal,children:t.map((e,t)=>(0,b.jsxs)(`div`,{className:`${B.mo} ${V(e.rating)}`,children:[(0,b.jsx)(`span`,{className:B.icon,children:H(e.rating,e.season)}),(0,b.jsx)(`div`,{className:B.m,children:e.name}),e.season&&(0,b.jsx)(`div`,{className:B.season,children:e.season}),(0,b.jsx)(`span`,{className:`${B.badge} ${V(e.rating)}`,children:e.rating})]},e.name||t))}),e.calloutText&&(0,b.jsx)(`div`,{className:B.callout,children:e.calloutText})]})})},W={section:`_section_158pb_1`,wrap:`_wrap_158pb_12`,header:`_header_158pb_33`,eyebrow:`_eyebrow_158pb_38`,heading:`_heading_158pb_48`,accent:`_accent_158pb_56`,map:`_map_158pb_62`,mapInner:`_mapInner_158pb_82`,mapLoading:`_mapLoading_158pb_89`,card:`_card_158pb_99`,factsTitle:`_factsTitle_158pb_110`,divider:`_divider_158pb_119`},G=i(`/`),K=(0,v.lazy)(()=>c(()=>import(`./LeafletMap-BHNj50U4.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),q={kenya:3,tanzania:3,uganda:3,rwanda:2,burundi:2,ethiopia:3,somalia:3,"south africa":2,namibia:2,botswana:2,zambia:2,zimbabwe:2,mozambique:2,malawi:2,madagascar:3},J=e=>e===0?`GMT`:`GMT${e>0?`+`:``}${e}`,Y=(e,t)=>{let n=e&&q[e.trim().toLowerCase()];
2return typeof n==`number`?J(n):typeof t==`number`?J(Math.round(t/15)):null},ie=()=>{let e=(0,v.useContext)(s),{countriesList:t}=G.useLoaderData(),{latitude:r,longitude:i}=e?.location||{},a=e?.locationDetails,o=(t||[]).find(t=>t._id===e?.country)?.name,c=a?.countyRegion||o,l=Y(c,i),[u,f]=(0,v.useState)(!1),p=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(u)return;let e=p.current;if(!e)return;if(typeof IntersectionObserver>`u`){f(!0);return}let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&(f(!0),t.disconnect())},{rootMargin:`300px`});return t.observe(e),()=>t.disconnect()},[u]),(0,b.jsx)(`section`,{className:W.section,children:(0,b.jsxs)(`div`,{className:W.wrap,children:[(0,b.jsxs)(`div`,{className:W.header,children:[(0,b.jsx)(`div`,{className:W.eyebrow,children:`Location`}),(0,b.jsxs)(`h2`,{className:W.heading,children:[`Where is the`,` `,(0,b.jsx)(`span`,{className:W.accent,children:a?.reserveName||e?.name}),`?`]})]}),(0,b.jsxs)(`div`,{className:W.map,ref:p,children:[(0,b.jsx)(`div`,{className:W.mapInner,children:r&&i&&u?(0,b.jsx)(n,{fallback:(0,b.jsx)(d,{dark:!0,label:`Loading reserve map…`}),children:(0,b.jsx)(v.Suspense,{fallback:(0,b.jsx)(d,{dark:!0,label:`Initializing map…`}),children:(0,b.jsx)(K,{latitude:r,longitude:i,zoom:7,darkSkeleton:!0})})}):(0,b.jsx)(d,{dark:!0,label:`Loading reserve map…`})}),(0,b.jsxs)(`div`,{className:W.card,children:[(0,b.jsx)(`div`,{className:W.factsTitle,children:a?.reserveName||`The Reserve`}),(0,b.jsx)(`div`,{className:W.divider}),(0,b.jsxs)(`dl`,{children:[c&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`dt`,{children:`Country`}),(0,b.jsx)(`dd`,{children:c})]}),a?.coordinatesText?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`dt`,{children:`Coordinates`}),(0,b.jsx)(`dd`,{children:a.coordinatesText})]}):r&&i?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`dt`,{children:`Coordinates`}),(0,b.jsxs)(`dd`,{children:[r.toFixed(2),`°, `,i.toFixed(2),`°`]})]}):null,l&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`dt`,{children:`Time zone`}),(0,b.jsx)(`dd`,{children:l})]})]})]})]})]})})},X={section:`_section_1dgv7_1`,wrap:`_wrap_1dgv7_11`,header:`_header_1dgv7_32`,eyebrow:`_eyebrow_1dgv7_37`,heading:`_heading_1dgv7_47`,grid:`_grid_1dgv7_60`,card:`_card_1dgv7_71`,quoteMark:`_quoteMark_1dgv7_79`,who:`_who_1dgv7_96`,avatar:`_avatar_1dgv7_103`,name:`_name_1dgv7_118`,source:`_source_1dgv7_134`},ae=(e=``)=>e.split(` `).map(e=>e[0]).filter(Boolean).slice(0,2).join(``).toUpperCase(),Z=()=>{let e=(0,v.useContext)(s)?.guestVoices,t=e?.testimonials;return!e||!Array.isArray(t)||t.length===0?null:(0,b.jsx)(`section`,{className:X.section,children:(0,b.jsxs)(`div`,{className:X.wrap,children:[(0,b.jsxs)(`div`,{className:X.header,children:[(0,b.jsx)(`div`,{className:X.eyebrow,children:e.eyebrow}),(0,b.jsx)(`h2`,{className:X.heading,dangerouslySetInnerHTML:{__html:e.title}})]}),(0,b.jsx)(`div`,{className:X.grid,children:t.map((e,t)=>(0,b.jsxs)(`article`,{className:X.card,children:[(0,b.jsx)(`div`,{className:X.quoteMark,children:`”`}),(0,b.jsx)(`p`,{children:e.quote}),(0,b.jsxs)(`div`,{className:X.who,children:[(0,b.jsx)(`span`,{className:X.avatar,children:ae(e.name)}),(0,b.jsxs)(`span`,{className:X.name,children:[(0,b.jsx)(`b`,{children:e.name}),e.location&&(0,b.jsx)(`span`,{children:e.location})]}),e.source&&(0,b.jsx)(`span`,{className:X.source,children:e.source})]})]},e.name||t))})]})})},Q={section:`_section_170mp_1`,wrap:`_wrap_170mp_12`,eyebrow:`_eyebrow_170mp_38`,heading:`_heading_170mp_48`,body:`_body_170mp_61`,ticks:`_ticks_170mp_72`,stars:`_stars_170mp_82`,card:`_card_170mp_86`,step:`_step_170mp_102`,g2:`_g2_170mp_111`,note:`_note_170mp_164`},oe=i(`/`),se=e=>({eyebrow:`Let the Journey Begin`,title:`The Wilderness is Calling`,subtext:`We connect you directly to ${e?`${e}'s`:`Kenya's`} most trusted, vetted safari operators — and let them compete to design your perfect trip. Fill in the form and receive three fully tailored proposals, each competing for your business.`,trustBullets:[`Free & no obligation`,`Reply within 24 hours`,`No commission, no mark-up`],formHeading:`Design your Safari `,stepLabel:`Step 1 of 2 — Your Trip`}),ce=({onOpenPlanner:e})=>{let t=(0,v.useContext)(s),{finalCtaSubtext:n}=oe.useLoaderData(),[r,i]=(0,v.useState)(``),[a,o]=(0,v.useState)(`5`),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(``),f=t=>{t.preventDefault();let n=u===`650+`?800:u===`0-650`?400:void 0;e?.({startDate:r,numberOfDays:a,adults:c?Number(c):void 0,pricePerPerson:n})},p=se(t?.name),m=t?.finalCta||{},h=Object.fromEntries(Object.keys(p).map(e=>[e,(Array.isArray(m[e])?m[e].length>0:m[e])?m[e]:p[e]])),g=m.subtext?n??m.subtext:p.subtext;return(0,b.jsx)(`section`,{className:Q.section,children:(0,b.jsxs)(`div`,{className:Q.wrap,children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`div`,{className:Q.eyebrow,children:h.eyebrow}),(0,b.jsx)(`h2`,{className:Q.heading,dangerouslySetInnerHTML:{__html:h.title}}),(0,b.jsx)(`div`,{className:Q.body,dangerouslySetInnerHTML:{__html:g}}),(0,b.jsx)(`div`,{className:Q.ticks,children:Array.isArray(h.trustBullets)&&h.trustBullets.map(e=>(0,b.jsxs)(`span`,{children:[`✓ `,e]},e))})]}),(0,b.jsxs)(`form`,{className:Q.card,onSubmit:f,children:[(0,b.jsx)(`h3`,{children:h.formHeading}),(0,b.jsx)(`div`,{className:Q.step,children:h.stepLabel}),(0,b.jsxs)(`div`,{className:Q.g2,children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`label`,{children:`Arrival date`}),(0,b.jsx)(`input`,{type:`date`,value:r,onChange:e=>i(e.target.value)})]}),(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`label`,{children:`Number of nights`}),(0,b.jsx)(`input`,{value:a,onChange:e=>o(e.target.value)})]}),(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`label`,{children:`Number of guests`}),(0,b.jsx)(`input`,{type:`number`,min:`1`,placeholder:`2`,value:c,onChange:e=>l(e.target.value)})]}),(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`label`,{children:`Budget per person/night`}),(0,b.jsxs)(`select`,{value:u,onChange:e=>d(e.target.value),children:[(0,b.jsx)(`option`,{value:``,children:`Prefer not to say`}),(0,b.jsx)(`option`,{value:`0-650`,children:`$0 – $650`}),(0,b.jsx)(`option`,{value:`650+`,children:`$650+`})]})]})]}),(0,b.jsx)(`button`,{type:`submit`,children:`Continue →`}),(0,b.jsx)(`div`,{className:Q.note,children:`Free service · No commission · Direct contact with operators`})]})]})})}
2,$={bar:`_bar_1xdhm_1`,show:`_show_1xdhm_15`,wrap:`_wrap_1xdhm_19`,txt:`_txt_1xdhm_45`,stars:`_stars_1xdhm_64`,btn:`_btn_1xdhm_68`},le=({onOpenPlanner:e})=>{let[t,n]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let e=document.querySelector(`header`),t=()=>{let t=e?e.offsetHeight*.9:600;n(window.scrollY>t)};return window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)},[]),(0,b.jsx)(`div`,{className:`${$.bar} ${t?$.show:``}`,children:(0,b.jsxs)(`div`,{className:$.wrap,children:[(0,b.jsxs)(`div`,{className:$.txt,children:[`Ready to plan your safari?`,(0,b.jsxs)(`span`,{children:[(0,b.jsx)(`span`,{className:$.stars,children:`★★★★★`}),` 4.9 · 3 free quotes · reply within 24 hours`]})]}),(0,b.jsx)(`button`,{className:$.btn,onClick:()=>e?.(),children:`Design your Safari  →`})]})})},ue=(0,v.lazy)(()=>c(()=>import(`./AccommodationEnquiryModal-BYMyK20N.js`),__vite__mapDeps([17,1,2,5,3,11,7,4,6,8,9,10,12,13,18,19,14,15,20,21,22,23,24,25,26,27,28]))),de=i(`/`),fe=()=>{let e=(0,v.useContext)(s),{countriesList:t,totalProperties:n}=de.useLoaderData(),r=(0,v.useRef)(null),i=(0,v.useRef)(null),[a,o]=(0,v.useState)(null),c=e=>r.current?.open(e);return(0,b.jsxs)(v.Fragment,{children:[(0,b.jsx)(ne,{destination:e,onOpenPlanner:c}),(0,b.jsx)(O,{onOpenPlanner:c,totalProperties:n}),(0,b.jsx)(g,{pageName:`homePage`}),(0,b.jsx)(x,{}),(0,b.jsx)(A,{}),(0,b.jsx)(h,{ref:r,destination:e?.name,howItWorksData:e?.howItWorks,initialCountriesList:t,onOpenPlanner:c,onBrowseCamps:()=>document.getElementById(`featured-camps`)?.scrollIntoView({behavior:`smooth`,block:`start`})}),(0,b.jsx)(M,{}),(0,b.jsx)(p,{page:`home`,onOpenPlanner:e=>{o(e),i.current?.open(e?.property,e?.intent)}}),(0,b.jsx)(T,{currentDestination:e?.name}),(0,b.jsx)(_,{onOpenPlanner:c}),(0,b.jsx)(L,{}),(0,b.jsx)(z,{}),(0,b.jsx)(U,{}),(0,b.jsx)(ie,{}),(0,b.jsx)(Z,{}),(0,b.jsx)(ce,{onOpenPlanner:c}),(0,b.jsx)(le,{onOpenPlanner:c}),a&&(0,b.jsx)(v.Suspense,{fallback:null,children:(0,b.jsx)(ue,{ref:i,isOpen:!0,initialProperty:a.property,initialIntent:a.intent,onClose:()=>o(null)})})]})},pe=()=>(0,b.jsx)(fe,{});export{pe as component};
3//# sourceMappingURL=routes-CJHnXHzB.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.