PageSourceSearch

https://sharecancun.com/_nuxt/BZOtRJ-F.js

js sharecancun.com collected 2026-09-24 10:56:49 UTC 7,185 bytes, 1 lines download raw bytes

1import{e as $,s as O,o as l,c as r,a as t,t as d,g as f,d as k,v as A,b as p,n as T,T as F,w as R,f as U,q as b,_ as P,j,k as L,F as E,r as W,h as C,u as z}from"./XGI6j-Eo.js";import{_ as V}from"./Bp9EINAY.js";import{_ as B}from"./F7g1M_Tq.js";import{_ as H}from"./OODmL-Pt.js";import{s as q}from"./CSTjavt-.js";import{_ as G}from"./DDr87DXA.js";import"./DBQsSl9e.js";import"./DI561iuU.js";const J={class:"w-full text-center"},K={class:"inline-block text-2xl border-1 border-[var(--color-orange-bright)] text-[var(--color-orange-bright)] px-6 py-2 rounded-full font-regular mb-6"},Q={class:"text-3xl md:text-5xl font-extrabold mb-6 text-[var(--color-gray-medium)]"},X={class:"text-[var(--color-orange-bright)] block"},Y={class:"text-sm md:text-base text-[var(--color-gray-medium)] max-w-2xl mx-auto mb-8"},Z=$({__name:"OfertasIntro",setup(o){const{t:e}=O();return(v,u)=>(l(),r("section",J,[t("div",K,d(f(e)("nav.ofertas")),1),t("h2",Q,[k(d(f(e)("ofertas.explora"))+" ",1),t("span",X,d(f(e)("ofertas.promociones")),1)]),t("p",Y,d(f(e)("ofertas.descripcion")),1)]))}}),ee=Object.assign(Z,{__name:"OfertasIntro"}),te={class:"bg-[var(--color-bg-light)] text-[var(--color-gray-dark)] rounded-xl shadow-sm overflow-hidden flex flex-col p-4 md:p-5 w-full border border-gray-200"},oe={class:"flex flex-row gap-2 items-center"},ae=["alt"],se={class:"text-[10px] sm:text-xs font-bold text-[var(--color-gray-medium)]"},ne={class:"text-base sm:text-lg font-bold mt-1 leading-tight"},le={class:"w-full mt-3 overflow-hidden rounded-lg aspect-[16/8]"},re=["src","alt"],ie={class:"text-base sm:text-lg mt-4"},ce={class:"font-semibold"},de={key:0,class:"overflow-hidden"},_e={class:"mt-2 text-xs sm:text-sm text-gray-500 leading-relaxed py-2 border-t border-gray-200 italic"},ue={class:"mt-5"},me=$({__name:"OfertasCard",props:{plan:{},name:{},imgSrc:{},imgAlt:{},price:{},to:{},extraInfo:{},iconAlt:{}},emits:["toggle-info"],setup(o,{emit:e}){const{t:v}=O(),u=A(),s=o,i=e,n=b(!1);function w(c){c.preventDefault(),c.stopPropagation(),n.value=!n.value,i("toggle-info",n.value)}return(c,g)=>{const m=V,S=B;return l(),r("div",te,[t("div",oe,[t("img",{src:H,alt:o.iconAlt||o.plan,class:"h-4 sm:h-5 opacity-80"},null,8,ae),t("p",se,d(o.plan),1)]),t("h3",ne,d(o.name),1),t("div",le,[t("img",{src:o.imgSrc,alt:o.imgAlt||o.name,class:"w-full h-full object-cover"},null,8,re)]),t("p",ie,[k(d(f(v)("ofertas.desde"))+" ",1),t("span",ce,d(o.price),1)]),t("button",{onClick:w,class:"flex items-center mt-2 text-sm font-medium text-gray-500 hover:text-gray-700 cursor-pointer transition-colors w-fit"},[g[0]||(g[0]=k(" Ver más ",-1)),p(m,{class:T(["ml-1 w-4 h-4 transition-transform duration-300",n.value?"rotate-180":""]),name:"i-lucide-chevron-down"},null,8,["class"])]),p(F,{name:"expand"},{default:R(()=>[n.value?(l(),r("div",de,[t("div",_e,d(o.extraInfo),1)])):U("",!0)]),_:1}),t("div",ue,[p(S,{to:f(u)(s.to),class:"group relative flex items-center justify-center w-full h-8 bg-gradient-to-r from-[var(--color-orange-soft)] to-[var(--color-orange-bright)] rounded-full overflow-hidden transition-all hover:shadow-lg hover:brightness-110 active:scale-95"},{default:R(()=>[...g[1]||(g[1]=[t("div",{class:"absolute inset-0 bg-share-gradient transition-opacity duration-300 group-hover:opacity-0"},null,-1),t("div",{class:"absolute inset-0 bg-[var(--color-gray-dark)] opacity-0 transition-opacity duration-300 group-hover:opacity-100"},null,-1),t("div",{class:"relative z-10 transition-colors duration-300"},[t("span",{class:"text-white italic text-lg tracking-widest"}," Obtener oferta ")],-1)])]),_:1},8,["to"])])])}}}),fe=Object.assign(P(me,[["__scopeId","data-v-5ce727f4"]]),{__name:"OfertasCard"}),pe={class:"w-full"},ge={key:0,class:"flex justify-center gap-2 mt-8"},xe=$({__name:"OfertasCarousel",setup(o){const{t:e}=O(),v=A(),u=C(()=>[{plan:e("ofertas.plan_todo_incluido"),name:`${e("hoteles.tabs.riviera")}, ${e("ofertas.tiempo",{d:5,n:4})}`,img:"/images/principal/3_OFERTAS_PROMOCIONES_SW_RM_HTR_720x313.png",price:"$2,300 USD",extraInfo:e("ofertas.info_hoteles.hacienda"),id:"hacienda-tres-rios"},{plan:e("ofertas.plan_todo_incluido"),name:`${e("hoteles.tabs.cancun")}, ${e("ofertas.tiempo",{d:5,n:4})}`,img:"/images/principal/3_OFERTAS_PROMOCIONES_SW_CUN_LSG_720x313.png",price:"$1,120 USD",extraInfo:e("ofertas.info_hoteles.laguna"),id:"laguna-suites"},{plan:e("ofertas.plan_todo_incluido"),name:`${e("hoteles.tabs.cancun")}, ${e("ofertas.tiempo",{d:5,n:4})}`,img:"/images/principal/3_OFERTAS_PROMOCIONES_SW_CUN_SM_720x313.png",price:"$1,300 USD",extraInfo:e("ofertas.info_hoteles.marina"),id:"sunset-marina"},{plan:e("ofertas.plan_todo_incluido"),name:`${e("hoteles.tabs.cancun")}, ${e("ofertas.tiempo",{d:5,n:4})}`,img:"/images/principal/3_OFERTAS_PROMOCIONES_SW_CUN_OSH_720x313.png",price:"$1,120 USD",extraInfo:e("ofertas.info_hoteles.ocean"),id:"ocean-spa"},{plan:e("ofertas.plan_todo_incluido"),name:`${e("hoteles.tabs.cancun")}, ${e("ofertas.tiempo",{d:5,n:4})}`,img:"/images/principal/3_OFERTAS_PROMOCIONES_SW_CUN_SR_720x313.png",price:"$1,800 USD",extraInfo:e("ofertas.info_hoteles.royal"),id:"sunset-royal"}
1]),s=b(null),i=b(0),n=b(0),w=b(!1);let c=null;const g=C(()=>n.value<768),m=C(()=>g.value?u.value.length:u.value.length-2),S=()=>{n.value=window.innerWidth},y=x=>{w.value=x,x||N()},D=()=>{if(!s.value)return;const{scrollLeft:x,scrollWidth:_,clientWidth:I}=s.value,a=_-I;if(a<=0)return;const h=a/(m.value-1);i.value=Math.round(x/h),N()},M=()=>{c=q(()=>{if(w.value||!s.value)return;i.value=(i.value+1)%m.value;const _=(s.value.scrollWidth-s.value.clientWidth)/(m.value-1);s.value.scrollTo({left:i.value*_,behavior:"smooth"})},6e3)},N=()=>{c&&clearInterval(c),M()};return j(()=>{n.value=window.innerWidth,window.addEventListener("resize",S),M()}),L(()=>{window.removeEventListener("resize",S),c&&clearInterval(c)}),(x,_)=>{const I=fe;return l(),r("div",pe,[t("div",{ref_key:"scrollContainer",ref:s,onScroll:D,onMouseenter:_[0]||(_[0]=a=>y(!0)),onMouseleave:_[1]||(_[1]=a=>y(!1)),class:"flex overflow-x-auto snap-x snap-mandatory scrollbar-hide gap-6 px-4"},[(l(!0),r(E,null,W(u.value,(a,h)=>(l(),r("div",{key:a.id,class:"flex-shrink-0 snap-center w-[85%] md:w-[calc(33.333%-1rem)]"},[p(I,{plan:a.plan,name:a.name,imgSrc:a.img,price:a.price,extraInfo:a.extraInfo,to:f(v)(`/hoteles/${a.id}`),onToggleInfo:y},null,8,["plan","name","imgSrc","price","extraInfo","to"])]))),128))],544),m.value>1?(l(),r("div",ge,[(l(!0),r(E,null,W(m.value,(a,h)=>(l(),r("div",{key:h,class:T(["h-3 rounded-full transition-all duration-300",i.value===h?"bg-[var(--color-orange-bright)] w-8":"bg-gray-300 w-3"])},null,2))),128))])):U("",!0)])}}}),ve=Object.assign(P(xe,[["__scopeId","data-v-c9a053c2"]]),{__name:"OfertasCarousel"}),he={class:"flex p-4 sm:p-10 flex-col lg:flex-row gap-5 sm:gap-0"},be={class:"flex flex-col w-full lg:w-[68%] lg:pr-5 xl:pr-2"},we={class:""},Se={class:""},$e={class:"flex flex-col w-full lg:w-[32%] lg:pl-5 xl:pl-2"},Oe={class:""},We=$({__name:"index",setup(o){const{t:e}=O();return z({title:"Share Cancun - Ofertas"}),(v,u)=>{const s=ee,i=ve,n=G;return l(),r("div",he,[t("div",be,[t("div",we,[p(s)]),t("div",Se,[p(i)])]),t("div",$e,[t("div",Oe,[p(n)])])])}}});export{We 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.