PageSourceSearch

https://oss.umy.com/umy-fe/webapp-prod/_nuxt/ecumf-jX.js

js umy.com collected 2026-10-05 02:32:22 UTC 11,206 bytes, 1 lines download raw bytes

1import{a as oe,u as ae}from"./CrbjgiHh.js";import{bc as le,bj as ie,by as ne,bd as G,be as re,bz as ce,bh as de,aG as J,aM as ue,aI as me,aN as pe}from"./BwBio_rZ.js";import{u as fe}from"./D1YRyqeS.js";import{U as K,C as Q}from"./CE34yyBq.js";import{au as Z,P,N as x,Q as he,K as E,J as A,aD as d,al as u,aE as n,aI as ve,ac as o,aF as $,a2 as W,aH as Y,aA as M,a1 as ee,aU as v,av as R,Y as O,aJ as _e,aG as V,aT as be,$ as ge,aa as ye,aM as we,ah as ke,aZ as Ie,bm as xe,bn as $e}from"./bn3zGTMA.js";import{_ as Ce}from"./B9UInDhI.js";import{u as De,a as Se}from"./CqH4uYNi.js";import{u as Ve,a as Ee}from"./FhM5VK-i.js";import{d as Le}from"./CQJqrNPf.js";import{E as Te}from"./zM5TcTFJ.js";import{_ as Be}from"./BBUvoMLQ.js";import{u as Fe}from"./TJea0Fzm.js";import{u as Ne}from"./IFxHm-jQ.js";import{u as ze}from"./B2dFq-OP.js";import{_ as He}from"./Byc7f_JD.js";import{v as Pe}from"./DSRNprm7.js";import{_ as je}from"./DYJxEZ2m.js";try{(function(){var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new i.Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="e18a1808-ab69-4db6-93be-8bd260636bb0",i._sentryDebugIdIdentifier="sentry-dbid-e18a1808-ab69-4db6-93be-8bd260636bb0")})()}catch{}const Re=le({options:{type:ie(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:ne,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...fe(["ariaLabel"])}),Ae={[K]:i=>Z(i)||G(i),[Q]:i=>Z(i)||G(i)},Me=["id","aria-label","aria-labelledby"],Oe=["name","disabled","checked","onChange"],Ue=P({name:"ElSegmented"}),Xe=P({...Ue,props:Re,emits:Ae,setup(i,{emit:a}){const r=i,c=re("segmented"),w=ce(),k=De(),z=Se(),{formItem:C}=Ve(),{inputId:m,isLabeledByFormItem:S}=Ee(r,{formItemContext:C}),_=x(null),L=oe(),e=he({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),p=t=>{const h=D(t);a(K,h),a(Q,h)},D=t=>R(t)?t.value:t,B=t=>R(t)?t.label:t,I=t=>!!(z.value||R(t)&&t.disabled),T=t=>r.modelValue===D(t),F=t=>r.options.find(h=>D(h)===t),s=t=>[c.e("item"),c.is("selected",T(t)),c.is("disabled",I(t))],l=()=>{if(!_.value)return;const t=_.value.querySelector(".is-selected"),h=_.value.querySelector(".is-selected input");if(!t||!h){e.width=0,e.translateX=0,e.disabled=!1,e.focusVisible=!1;return}const y=t.getBoundingClientRect();e.isInit=!0,e.width=y.width,e.translateX=t.offsetLeft,e.disabled=I(F(r.modelValue));try{e.focusVisible=h.matches(":focus-visible")}catch{}},b=E(()=>[c.b(),c.m(k.value),c.is("block",r.block)]),g=E(()=>({width:`${e.width}px`,transform:`translateX(${e.translateX}px)`,display:e.isInit?"block":"none"})),N=E(()=>[c.e("item-selected"),c.is("disabled",e.disabled),c.is("focus-visible",e.focusVisible)]
1),f=E(()=>r.name||w.value);return ae(_,l),A(L,l),A(()=>r.modelValue,()=>{var t;l(),r.validateEvent&&((t=C==null?void 0:C.validate)==null||t.call(C,"change").catch(h=>Le()))},{flush:"post"}),(t,h)=>(d(),u("div",{id:o(m),ref_key:"segmentedRef",ref:_,class:$(o(b)),role:"radiogroup","aria-label":o(S)?void 0:t.ariaLabel||"segmented","aria-labelledby":o(S)?o(C).labelId:void 0},[n("div",{class:$(o(c).e("group"))},[n("div",{style:ve(o(g)),class:$(o(N))},null,6),(d(!0),u(W,null,Y(t.options,(y,H)=>(d(),u("label",{key:H,class:$(s(y))},[n("input",{class:$(o(c).e("item-input")),type:"radio",name:o(f),disabled:I(y),checked:T(y),onChange:j=>p(y)},null,42,Oe),n("div",{class:$(o(c).e("item-label"))},[M(t.$slots,"default",{item:y},()=>[ee(v(B(y)),1)])],2)],2))),128))],2)],10,Me))}});var qe=Ce(Xe,[["__file","segmented.vue"]]);const Ge=de(qe),Je=["href"],Ze={class:"block h-[17.5rem] min-h-[17.5rem] w-full overflow-hidden"},Ke={class:"flex w-full flex-1 flex-col justify-between bg-[#fff] px-5 pb-[1.875rem] pt-5"},Qe={class:"line-clamp-2 text-[1.25rem] font-medium leading-[1.875rem] text-[#2B2B2B]"},We={key:1,class:"mt-[0.375rem] truncate text-[0.875rem] text-[#242424]"},Ye={key:2,class:"my-2 line-clamp-2 text-[0.875rem] text-[#595959]"},et={key:3,class:"mt-[0.5rem] flex items-start gap-1"},tt=n("img",{src:He,alt:"",class:"mt-[0.125rem]"},null,-1),st={class:"text-[0.875rem] font-[350] text-[#414141]"},ot={class:"flex flex-col items-end gap-2"},at={key:0,class:"mb-[0.3125rem] flex font-notoSansSc font-medium"},lt={key:0,class:"rounded-[0.125rem] bg-[#FEEFF4] px-[0.25rem] py-[0.125rem] text-[0.75rem]/[1rem] text-[#F03278]"},it={key:1,class:"ml-[0.375rem] w-fit rounded-[0.125rem] bg-[#F03278] px-[0.3125rem] py-[0.125rem] text-[0.75rem]/[1rem] text-white"},nt={key:0,class:"mr-[0.5rem] text-[1rem]/[2.5rem] font-normal text-[#000]/40 line-through"},rt=P({__name:"item",props:{hotel:{},checkinDate:{},checkoutDate:{},source:{}},setup(i){const a=i,{parseHotelFilter:r,stringifyHotelFilter:c}=Fe(),{calcHotelPrice:w}=Ne(),k=E(()=>{const e=r("{}");a.checkinDate&&(e.checkinDate=J.unix(a.checkinDate).toDate()),a.checkoutDate&&(e.checkoutDate=J.unix(a.checkoutDate).toDate());const p=`/hotel/${a.hotel.id}?filter=${c(e)}`;return a.source?`${p}&source=${a.source}`:p});function z(){window.open(k.value)}const C=E(()=>{const e=a.hotel.summary.name,p=a.hotel.summary.name_en;return!!p&&e!==p}),m=E(()=>{var e,p;return((p=(e=a.hotel.price)==null?void 0:e.lowest_price)==null?void 0:p.discount_labels)||[]}),{hasDiscountLabels:S,getDiscountText:_,getDiscountOff:L}=ze(m);return(e,p)=>{var I,T,F,s,l,b,g,N,f,t,h,y,H,j,U,X,q;const D=Te,B=Be;return d(),u("a",{class:"relative flex h-[33.5rem] cursor-pointer flex-col overflow-hidden rounded-[1.25rem]",href:o(k),onClick:be(z,["prevent"])},[n("div",Ze,[O(D,{class:"h-full w-full scale-100 object-cover transition-transform hover:scale-125",src:((T=(I=e.hotel.images)==null?void 0:I[0])==null?void 0:T.image_url_hd)||((s=(F=e.hotel.images)==null?void 0:F[0])==null?void 0:s.image_url),loading:"lazy"},null,8,["src"])]),n("div",Ke,[n("section",null,[n("div",Qe,v(e.hotel.summary.name),1),e.hotel.summary.star_rating>0?(d(),_e(B,{key:0,"model-value":e.hotel.summary.star_rating,size:"1.3rem"},null,8,["model-value"])):V("",!0),o(C)?(d(),u("div",We,v(e.hotel.summary.name_en),1)):V("",!0),o(S)?V("",!0):(d(),u("div",Ye,v(e.hotel.summary.address)+","+v(e.hotel.summary.city_name),1)),(l=e.hotel.address_descriptor)!=null&&l.distances[0]?(d(),u("div",et,[tt,n("span",st,v(e.hotel.address_descriptor.distances[0]),1)])):V("",!0)]),n("div",ot,[o(S)?(d(),u("div",at,[o(_)?(d(),u("div",lt,v(o(_)),1)):V("",!0),o(L)?(d(),u("div",it,v(o(L)),1)):V("",!0)])):V("",!0),n("div",{class:$(["relative text-[1.6875rem] font-medium leading-[1.25rem] text-[#2B2B2B]",[(g=(b=e.hotel.price)==null?void 0:b.lowest_price)!=null&&g.strikethrough?"flex items-center font-gilroy font-semibold":""]])},[(f=(N=e.hotel.price)==null?void 0:N.lowest_price)!=null&&f.strikethrough?(d(),u("span",nt,v(o(w)((h=(t=e.hotel.price)==null?void 0:t.lowest_price)==null?void 0:h.strikethrough,(H=(y=e.hotel.price)==null?void 0:y.lowest_price)==null?void 0:H.currency)),1)):V("",!0),ee(" "+v(o(w)((U=(j=e.hotel.price)==null?void 0:j.lowest_price)==null?void 0:U.value,(q=(X=e.hotel.price)==null?void 0:X.lowest_price)==null?void 0:q.currency)),1)],2)])])],8,Je)}}}),te="data:image/svg+xml,%3csvg%20width='10'%20height='18'%20viewBox='0%200%2010%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.55877%207.916C10.1448%208.5%2010.1468%209.446%209.56477%2010.034L2.60777%2017.056C2.31477%2017.352%201.92877%2017.5%201.54277%2017.5C1.16077%2017.5%200.778771%2017.355%200.486771%2017.065C-0.102229%2016.482%20-0.105229%2015.533%200.477771%2014.944L6.38187%208.984L0.440871%203.062C-0.145129%202.478%20-0.147128%201.5279%200.437871%200.941001C1.02187%200.354001%201.97387%200.353001%202.55887%200.938001L9.55877%207.916Z'%20fill='black'%20fill-opacity='0.56'/%3e%3c/svg%3e",se=i=>(xe("data-v-553e898c"),i=i(),$e(),i),ct={class:"text-center text-[2.25rem] font-bold text-white"},dt={key:0,class:"custom-tabs"},ut=["onClick"],mt={class:"swiper-container mb-10 min-h-[10vh] overflow-hidden pt-10","element-loading-background":"rgba(255, 255, 255, 0.4)"},pt=["slides-per-view"],ft={class:"home-section-center flex items-center justify-end gap-4 pb-[5rem]"},ht=se(()=>n("img",{src:te,class:"w-[0.5rem]"},null,-1)),vt=[ht],_t=se(()=>n("img",{src:te,class:"w-[0.5rem]"},null,-1)),bt=[_t],gt=P({__name:"list",props:{title:{},tabValue:{},hotelType:{},slidesPerView:{},titleClass:{}},setup(i){const a=i,r=x(),c=x([]),w=x(0),k=x(!0),z=x(0),C=x(0),m=x(""),S=ue(),{logError:_}=pe("IndexHotelList"),L=me(),e=s=>{k.value||s===m.value||(m.value=s,D())};ge(async()=>
1{if(!a.tabValue&&!a.hotelType?await F():m.value=a.tabValue||"",await D(),await ye(),r.value){const s=r.value;s.loop=!0,s.addEventListener("swiperslidechange",l=>{var b,g;p.value=l.detail[0].realIndex,w.value=(g=(b=r.value)==null?void 0:b.swiper)==null?void 0:g.progress}),s.initialize()}});const p=x(0);A(()=>a.tabValue,()=>{a.tabValue&&(m.value=a.tabValue,D())});const D=async()=>{var s;if(m.value){k.value=!0;try{const{hotels:l,check_in:b,check_out:g}=await S.umyInterfaceListRecommendedHotels({hotel_type:a.hotelType||"special_hotels",city_id:m.value,platform:0,lang:L.lang});z.value=+b,C.value=+g,c.value=l||[],(s=r.value.swiper)==null||s.slideTo(0)}catch(l){_(l,"list special hotel deals")}k.value=!1}},B=s=>{!r.value||!r.value.swiper||(s===0&&w.value!==0&&r.value.swiper.slidePrev(),s===1&&w.value!==1&&r.value.swiper.slideNext())},I=x([]),T=E(()=>I.value.map(s=>({value:s.city_id,label:s.city_name}))),F=async()=>{var s;try{const{city:l}=await S.umyInterfaceListRecommendedCity({hotel_type:"special_hotels",platform:0,lang:L.lang});I.value=l??[],m.value=(s=I.value[0])==null?void 0:s.city_id}catch(l){_(l,"recommend-city-list")}};return(s,l)=>{const b=Ge,g=rt,N=Pe;return d(),u("div",null,[n("div",{class:$(["home-section-center flex items-center justify-between",s.titleClass])},[n("div",ct,v(s.title||s.$t("pages.index.special_hotel_deals")),1),s.tabValue?M(s.$slots,"default",{key:1},void 0,!0):(d(),u("div",dt,[O(b,{modelValue:o(m),"onUpdate:modelValue":l[0]||(l[0]=f=>ke(m)?m.value=f:null),options:o(T),disabled:o(k)},{default:we(f=>[n("div",{onClick:t=>e(f.item.value)},v(f.item.label),9,ut)]),_:1},8,["modelValue","options","disabled"])]))],2),M(s.$slots,"customTabs",{},void 0,!0),Ie((d(),u("section",mt,[n("swiper-container",{ref_key:"container",ref:r,"slides-per-view":s.slidesPerView||4,"mousewheel-enabled":"true","mousewheel-release-on-edges":"true","mousewheel-force-to-axis":"true",direction:"horizontal","space-between":"20",init:"false"},[(d(!0),u(W,null,Y(o(c),(f,t)=>(d(),u("swiper-slide",{key:t,class:"swiper-slide",lazy:"true"},[O(g,{hotel:f,source:"home"},null,8,["hotel"])]))),128))],8,pt)])),[[N,o(k)]]),n("div",ft,[n("div",{class:$(["flex h-[2.75rem] w-[2.75rem] -rotate-180 cursor-pointer items-center justify-center rounded-full bg-[rgba(210,210,215,0.64)]",[o(w)===0?"opacity-[36%]":"hover:opacity-70"]]),onClick:l[1]||(l[1]=f=>B(0))},vt,2),n("div",{class:$(["flex h-[2.75rem] w-[2.75rem] cursor-pointer items-center justify-center rounded-full bg-[rgba(210,210,215,0.64)]",[o(w)===1?"opacity-[36%]":"hover:opacity-70"]]),onClick:l[2]||(l[2]=f=>B(1))},bt,2)])])}}}),Ht=je(gt,[["__scopeId","data-v-553e898c"]]);export{Ht as _};

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.