1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ThirdPartyAnalytics-o-mHmUE5.js","assets/index-B7hLyOg2.js"])))=>i.map(i=>d[i]); 2import{c as b,u as v,r as l,j as e,a0 as j,$ as y}from"./index-B7hLyOg2.js";import{H as w,F as T}from"./Footer-OjcZ2NsT.js";import{A as N}from"./arrow-up-right-uuNwTZmg.js";const E=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],_=b("headphones",E),S=l.lazy(()=>y(()=>import("./ThirdPartyAnalytics-o-mHmUE5.js"),__vite__mapDeps([0,1])).then(t=>({default:t.ThirdPartyAnalytics}))),L=[2,3,4,14,33,34,42,45,55,56,58,61,64,65,94,127,201,202,203,205,207,230,296,384,418,419,421,422,423,425,445,447,528],G=new Set([1,386,389]),C="https://wegotrip.ru/helpers/widgetManager.js",k="5582",W="https://wegotrip.ru/widgets/?perPage=8&cityId=498817&coupon=5582&preorder=true&ids=515%2C16348%2C514%2C508%2C668%2C764%2C730%2C506";function R(t){const o=t?.length?t:L;return[...new Set(o)].filter(n=>!G.has(n))}function P(){const[t]=performance.getEntriesByType("navigation");return!!t?.domContentLoadedEventStart||document.readyState==="complete"}function A(t){const o=document.addEventListener;return document.addEventListener=function(n,r,i){if(r){if(n!=="DOMContentLoaded"||!P()){o.call(document,n,r,i);return}window.setTimeout(()=>{if(t())return;const d=new Event("DOMContentLoaded",{bubbles:!0,cancelable:!0});typeof r=="function"?r.call(document,d):r.handleEvent(d)},0)}},()=>{document.addEventListener=o}}function h(){document.querySelectorAll('script[data-grandora-tours="true"]').forEach(t=>t.remove())}function x(){h(),document.querySelectorAll('style[data-grandora-tours-style="true"]').forEach(t=>t.remove())}function p(){document.querySelectorAll("style").forEach(t=>{t.dataset.grandoraToursStyle||t.textContent?.includes("ap-showcase")&&(t.dataset.grandoraToursStyle="true")})}function O({config:t,scriptUrl:o}){const n=l.useRef(null),[r,i]=l.useState("loading"),d=l.useMemo(()=>JSON.stringify(t),[t]);return l.useEffect(()=>{if(typeof document>"u")return;let c=!1;const a=n.current;if(!a)return;i("loading"),a.innerHTML="",x();const u=A(()=>c),m=new MutationObserver(()=>{!a.children.length&&!a.textContent?.trim()||(i("ready"),p())});m.observe(a,{childList:!0,subtree:!0,characterData:!0});const s=document.createElement("script");s.src=o,s.async=!1,s.dataset.grandoraTours="true",s.addEventListener("load",()=>{window.setTimeout(()=>{p(),u()},0)}),s.addEventListener("error",()=>{u(),i("error")});const f=window.setTimeout(()=>{c||(h(),document.body.appendChild(s))},0),g=window.setTimeout(()=>{!c&&!a.children.length&&i("error")},3e4);return()=>{c=!0,window.clearTimeout(f),window.clearTimeout(g),m.disconnect(),u(),s.remove(),a.innerHTML="",x()}},[d,o]),e.jsxs("section",{className:"grandora-excursions-host mt-10 sm:mt-12 lg:mt-16 mx-auto max-w-[1200px] rounded-[15px] bg-satin-100 p-3 sm:p-5 lg:p-6 shadow-[0_18px_60px_-48px_rgba(61,22,18,0.55)]",children:[e.jsx("script",{id:"ap-showcase-config",type:"application/json",dangerouslySetInnerHTML:{__html:d}}),e.jsxs("div",{className:"relative min-h-[420px] sm:min-h-[520px]","aria-busy":r==="loading",children:[r==="loading"&&e.jsxs("div",{className:"absolute inset-0 z-10 rounded-[12px] bg-satin-50 p-4 sm:p-6",children:[e.jsx("span",{className:"sr-only",children:"ÐагÑÑжаем ÑкÑкÑÑÑии"}),e.jsx("div",{className:"grid gap-4 sm:grid-cols-3",children:[0,1,2].map(c=>e.jsxs("div",{className:"rounded-[12px] bg-satin-100 p-4",children:[e.jsx("div",{className:"h-36 rounded-[10px] bg-satin-300/45"}),e.jsx("div",{className:"mt-4 h-4 w-3/4 rounded-full bg-choco-700/15"}),e.jsx("div",{className:"mt-3 h-3 w-1/2 rounded-full bg-choco-700/10"}),e.jsx("div",{className:"mt-5 h-10 rounded-[8px] bg-choco-700/15"})]},c))})]}),r==="error"&&e.jsxs("div",{className:"rounded-[12px] bg-satin-50 p-6 sm:p-8 text-choco-900",children:[e.jsx("p",{className:"font-display text-xl sm:text-2xl",children:"ÐкÑкÑÑÑии вÑеменно не загÑÑзилиÑÑ"}),e.jsx("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-choco-700/75",children:"ÐбновиÑе ÑÑÑаниÑÑ Ð¸Ð»Ð¸ попÑобÑйÑе оÑкÑÑÑÑ Ñаздел ÑÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ."})]}),e.jsx("div",{ref:n,id:"ap-showcase3",className:r==="loading"?"opacity-0":""})]})]})}function I({open:t,onClose:o,title:n,widgetSrc:r,scriptUrl:i,partnerId:d}){const[c,a]=l.useState(!1);return l.useEffect(()=>{if(!t||typeof document>"u")return;const u=document.body.style.overflow;
2if(document.body.style.overflow="hidden",!document.querySelector('script[data-grandora-wegotrip="true"]')){const s=document.createElement("script");s.src=i,s.async=!0,s.defer=!0,s.dataset.wegPartnerId=d,s.dataset.grandoraWegotrip="true",document.body.appendChild(s)}const m=s=>{s.key==="Escape"&&o()};return document.addEventListener("keydown",m),()=>{document.body.style.overflow=u,document.removeEventListener("keydown",m)}},[o,t,d,i]),l.useEffect(()=>{t&&a(!1)},[t,r]),t?e.jsx("div",{className:"fixed inset-0 z-[120] flex items-end justify-center bg-choco-900/55 px-3 py-4 backdrop-blur-sm sm:items-center sm:p-6",role:"dialog","aria-modal":"true","aria-label":n,onClick:o,children:e.jsxs("div",{className:"relative flex max-h-[92vh] w-full max-w-[1180px] flex-col overflow-hidden rounded-[18px] bg-satin-50 shadow-[0_34px_90px_-42px_rgba(61,22,18,0.72)]",onClick:u=>u.stopPropagation(),children:[e.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-choco-700/10 bg-satin-100 px-4 py-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-sans text-[11px] font-bold uppercase tracking-[0.18em] text-jasper",children:"WeGoTrip"}),e.jsx("h2",{className:"mt-1 font-display text-2xl leading-tight text-choco-900 sm:text-3xl",children:n})]}),e.jsx("button",{type:"button","aria-label":"ÐакÑÑÑÑ",onClick:o,className:"flex size-10 shrink-0 items-center justify-center rounded-full border border-choco-700/12 bg-white text-choco-900 transition-colors hover:bg-[#f1cab7] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-jasper",children:e.jsx(j,{className:"size-5",strokeWidth:1.8})})]}),e.jsxs("div",{className:"relative min-h-0 flex-1 overflow-y-auto overscroll-contain bg-[#fff8f4] p-2 sm:p-4 lg:p-5",children:[c?null:e.jsx("div",{className:"absolute inset-2 z-10 grid place-items-center rounded-[14px] bg-satin-50 sm:inset-4 lg:inset-5",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto size-10 animate-spin rounded-full border-2 border-choco-900/18 border-t-jasper"}),e.jsx("p",{className:"mt-4 font-sans text-sm text-choco-700/75",children:"ÐагÑÑжаем аÑдиогидÑ"})]})}),e.jsx("iframe",{className:"js-wegotrip-widget grandora-wegotrip-frame block w-full rounded-[14px] bg-white",width:"100%",height:"1480",frameBorder:"0",scrolling:"auto",src:r,title:"WeGoTrip Partner Widget",onLoad:()=>a(!0)})]})]})}):null}function M(){const{tours:t}=v(),[o,n]=l.useState(!1),r={partner:t?.partner??1014,excursions:R(t?.excursions)},i=t?.widgetScriptUrl||"https://lk.excurr.ru/js/showcase3.js",d=t?.audioGuideTitle||"ÐÑÐ´Ð¸Ð¾Ð³Ð¸Ð´Ñ WeGoTrip",c=t?.audioGuideWidgetSrc||W,a=t?.audioGuideWidgetScriptUrl||C,u=t?.audioGuidePartnerId||k;return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx(w,{}),e.jsx("main",{className:"pt-24 sm:pt-28 lg:pt-32 pb-16 sm:pb-20 lg:pb-28",children:e.jsxs("div",{className:"container-grandora",children:[e.jsxs("section",{className:"max-w-5xl",children:[e.jsxs("h1",{className:"font-display text-choco-900 leading-[1.05]",style:{fontSize:"clamp(2.4rem, 6vw, 6.5rem)"},children:[e.jsx("span",{className:"font-normal",children:t?.headingPart1??"ÐкÑкÑÑÑии"})," ",e.jsx("span",{className:"font-extralight",children:t?.headingPart2??"по СанкÑ-ÐеÑеÑбÑÑгÑ"})]}),t?.intro&&e.jsx("p",{className:"mt-6 max-w-3xl font-sans text-base leading-relaxed text-choco-700/80 sm:text-lg",children:t.intro})]}),t?.audioGuideTitle||t?.audioGuideText?e.jsxs("section",{className:"mt-10 grid gap-5 rounded-[15px] bg-choco-900 p-6 text-satin-50 sm:p-8 lg:grid-cols-[auto_1fr_auto] lg:items-center",children:[e.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-jasper text-satin-50",children:e.jsx(_,{className:"size-7",strokeWidth:1.75})}),e.jsxs("div",{children:[e.jsx("h2",{className:"font-display text-3xl leading-tight sm:text-4xl",children:t.audioGuideTitle}),t.audioGuideText?e.jsx("p",{className:"mt-3 max-w-3xl font-sans text-sm leading-relaxed text-satin-50/78 sm:text-base",children:t.audioGuideText}):null]}),t.audioGuideButtonText?e.jsxs("button",{type:"button",onClick:()=>n(!0),className:"inline-flex min-h-[52px] items-center justify-center gap-2 rounded-[10px] bg-satin-50 px-5 font-sans text-[11px] font-bold uppercase tracking-[0.14em] text-choco-900 transition-colors hover:bg-[#f1cab7
2]",children:[t.audioGuideButtonText,e.jsx(N,{className:"size-4",strokeWidth:1.8})]}):null]}):null,e.jsx(O,{config:r,scriptUrl:i})]})}),e.jsx(I,{open:o,onClose:()=>n(!1),title:d,widgetSrc:c,scriptUrl:a,partnerId:u}),e.jsx(T,{}),e.jsx(l.Suspense,{fallback:null,children:e.jsx(S,{})})]})}export{M as T};
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.