PageSourceSearch

https://cdn.myfunnow.com/funnowwebv3/prod/_nuxt/WcbXP8L6.js

js myfunnow.com collected 2026-10-02 02:27:15 UTC 48,306 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DS-WHLxf.js","./Bamyh7fc.js","./DWjolwZt.js","./DXCQSwpG.js","./swiper.DINM83sz.css","./entry.vs8dypoL.css","./iRVlTpmC.js","./DwmI7dtT.js","./DOkDmiFl.js","./-aBN1KQE.js","./Bn-KCVQO.js","./Dv02aJrg.js","./funnow-svg-icon.CH1ypUhk.css","./BWCOTyhn.js","./C18XcI5t.js","./BaMtOrqD.js","./BfNQKmPC.js","./DDOxkFWC.js","./l9hJjWTr.js","./BbvWImDq.js","./Df_JA40D.js","./B8z_NYFN.js","./CAg8qHMB.js","./B9SczcV0.js","./CW-Iv93c.js","./CN7nmcu_.js","./CNIDsELb.js","./CXYx2LDX.js","./DQHDmrZr.js","./C85wccUG.js","./OAIxCxBl.js","./CA9l8S-X.js","./CN8YeJ1p.js","./ui-modal.DNwxurnM.css","./K11qOT7D.js","./CmIbZ_Sb.js","./Df5cj3wt.js","./DtyXnP3T.js","./CVjehKMH.js","./loading.DT2tcQAr.css","./BWMgPsMA.js","./CHQSoK5t.js","./PromoCodeCard.Bddbay0J.css","./PromoCampaignModal.Dh1uc6Xl.css","./D71CN2mV.js","./Cbl7FQI7.js","./B53IK6vE.js","./Bvjc8HCw.js","./DikfltMH.js","./DzRL5Ynd.js","./C0MXZGsp.js","./search-content-card.Nlxl2o6o.css","./BdcwOMaG.js","./Ea_ya762.js","./Cc1rHpUp.js","./date-picker.BKzHrloi.css","./Cj_iPlHx.js","./AcShWls_.js","./B_LiqDhM.js","./radio-filter.ehncHivP.css","./DBeR1miW.js","./Cb2a7uLc.js","./CI8oPb5z.js","./time-picker.DsITwIyy.css","./C0PI7CGU.js","./-rJYGV6k.js","./CppZYB_D.js","./CdCSQcNj.js","./search-navigation.Pm19EjdO.css"])))=>i.map(i=>d[i]);
2import{w as Te,d as T,C as Re,u as $,r as F,M as qe,bx as R,ab as v,b5 as _,bf as l,a9 as n,bA as _e,ac as L,a8 as De,bw as Be,bk as z,bj as P,aS as q,bh as I,bi as E,ad as G,bz as Me,a7 as te,aW as Le,aJ as A,_ as W,b6 as Je,a4 as y,bF as Xe,aT as we,E as et,o as tt,a1 as it,n as at,bc as Ke,bd as rt}from"./Bamyh7fc.js";import{u as Ve,a as Ee}from"./-aBN1KQE.js";import{Z as nt,$ as ot,_ as ie,i as N,B as Ie,Y as He,a0 as Ue,y as Ae,J as st,a1 as lt,a2 as ve,a3 as dt,H as ut,a4 as ct,a5 as ft,a6 as ht}from"./DWjolwZt.js";import be from"./Bn-KCVQO.js";import{V as mt}from"./BWCOTyhn.js";import{V as ee}from"./DDOxkFWC.js";import{V}from"./l9hJjWTr.js";import{V as he}from"./BbvWImDq.js";import{V as pt,a as gt,b as yt}from"./B8z_NYFN.js";import{V as We}from"./CW-Iv93c.js";import{V as Se,a as vt,b as wt}from"./iRVlTpmC.js";import{b as bt,a as St}from"./CNIDsELb.js";import{V as Ct}from"./Df_JA40D.js";import{V as ke}from"./B9SczcV0.js";import{S as _t,a as kt}from"./DXCQSwpG.js";import{V as $e}from"./CXYx2LDX.js";import{P as Ft}from"./DQHDmrZr.js";import{u as Tt}from"./D71CN2mV.js";import{s as Dt}from"./Cbl7FQI7.js";import{V as Bt}from"./CN8YeJ1p.js";import{R as Vt}from"./B53IK6vE.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6351650a-a101-4ec0-9088-de395626fb27",e._sentryDebugIdIdentifier="sentry-dbid-6351650a-a101-4ec0-9088-de395626fb27")}catch{}function It(e,t){var i={};return t=bt(t),St(e,function(a,r,o){nt(i,r,t(a,r,o))}),i}const je=6e4,xe=36e5,Ne=Symbol.for("constructDateFrom");function le(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ne in e?e[Ne](t):e instanceof Date?new e.constructor(t):new Date(t)}function oe(e,t){return le(e,e)}function Pt(e,...t){const i=le.bind(null,t.find(a=>typeof a=="object"));return t.map(i)}function Oe(e,t){const i=oe(e);return i.setHours(0,0,0,0),i}function Mt(e){return le(e,Date.now())}function Kt(e,t,i){const[a,r]=Pt(i?.in,e,t);return+Oe(a)==+Oe(r)}function $t(e,t){return+oe(e)<+oe(t)}function Nt(e,t){return Kt(le(e,e),Mt(e))}function ze(e,t){const i=()=>le(t?.in,NaN),r=Et(e);let o;if(r.date){const d=Ht(r.date,2);o=Ut(d.restDateString,d.year)}if(!o||isNaN(+o))return i();const s=+o;let u=0,m;if(r.time&&(u=At(r.time),isNaN(u)))return i();if(r.timezone){if(m=Wt(r.timezone),isNaN(m))return i()}else{const d=new Date(s+u),c=oe(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return oe(s+u+m)}const me={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ot=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Rt=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lt=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Et(e){const t={},i=e.split(me.dateTimeDelimiter);let a;if(i.length>2)return t;if(/:/.test(i[0])?a=i[0]:(t.date=i[0],a=i[1],me.timeZoneDelimiter.test(t.date)&&(t.date=e.split(me.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){const r=me.timezone.exec(a);r?(t.time=a.replace(r[1],""),t.timezone=r[1]):t.time=a}return t}function Ht(e,t){const i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(i);if(!a)return{year:NaN,restDateString:""};const r=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:o===null?r:o*100,restDateString:e.slice((a[1]||a[2]).length)}}function Ut(e,t){if(t===null)return new Date(NaN);const i=e.match(Ot);if(!i)return new Date(NaN);const a=!!i[4],r=ne(i[1]),o=ne(i[2])-1,s=ne(i[3]),u=ne(i[4]),m=ne(i[5])-1;if(a)return Yt(t,u,m)?jt(t,u,m):new Date(NaN);{const d=new Date(0);return!zt(t,o,s)||!Gt(t,r)?new Date(NaN):(d.setUTCFullYear(t,o,Math.max(r,s)),d)}}function ne(e){return e?parseInt(e):1}function At(e){const t=e.match(Rt);if(!t)return NaN;const i=Fe(t[1]),a=Fe(t[2]),r=Fe(t[3]);return Qt(i,a,r)?i*xe+a*je+r*1e3:NaN}function Fe(e){return e&&parseFloat(e.replace(",","."))||0}function Wt(e){if(e==="Z")return 0;const t=e.match(Lt);if(!t)return 0;
2const i=t[1]==="+"?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return Zt(a,r)?i*(a*xe+r*je):NaN}function jt(e,t,i){const a=new Date(0);a.setUTCFullYear(e,0,4);const r=a.getUTCDay()||7,o=(t-1)*7+i+1-r;return a.setUTCDate(a.getUTCDate()+o),a}const xt=[31,null,31,30,31,30,31,31,30,31,30,31];function Ge(e){return e%400===0||e%4===0&&e%100!==0}function zt(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(xt[t]||(Ge(e)?29:28))}function Gt(e,t){return t>=1&&t<=(Ge(e)?366:365)}function Yt(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}function Qt(e,t,i){return e===24?t===0&&i===0:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}function Zt(e,t){return t>=0&&t<=59}const qt=[{id:"morning",startHour:6,endHour:11},{id:"noon",startHour:11,endHour:14},{id:"afternoon",startHour:14,endHour:17},{id:"night",startHour:17,endHour:24},{id:"midnight",startHour:0,endHour:6}];function Jt(e,t){return`${`${e}`.padStart(2,"0")}:${`${t}`.padStart(2,"0")}`}function Xt(e,t,i){const a=[];for(let r=e.startHour;r<e.endHour;r++)for(const o of[0,30]){const s=Jt(r,o);t!==null&&$t(ze(`${t}T${s}`),i)||a.push({time:s})}return a}function Pe(e,t=qt){const i=new Date,a=e!=null&&Nt(ze(e))?e:null;return t.map(r=>{const o=Xt(r,a,i);return o.length===0?null:{id:r.id,startHour:r.startHour,endHour:r.endHour,slots:o}}).filter(r=>r!==null)}function se(e){return e.slots.map(t=>t.time)}function ei(e,t,i){const a=new Set(e);function r(o){const s=se(o);return s.length>0&&s.every(u=>a.has(u))?[i[o.id]??o.id]:s.filter(u=>a.has(u))}return t.flatMap(r)}function ti(e){const{selectedTimes:t,selectedDate:i,periodLabelMap:a,defaultLabel:r,formatExcessLabel:o}=e;if(t.length===0)return r;const s=ei(t,Pe(i),a);return s.length===0?r:s.length<=2?s.join(", "):o(s.length)}function Ye(e,t){const i=new Set(Pe(t).flatMap(a=>se(a)));return e.filter(a=>i.has(a))}function ii(e,t){const i=se(e);if(i.length===0)return!1;const a=new Set(t);return i.every(r=>a.has(r))}function la(e,t){const i=T(()=>Pe(e.value)),a=T(()=>new Set(t.value));function r(m){return a.value.has(m)}function o(m){return ii(m,t.value)}function s(m){r(m)?t.value=t.value.filter(d=>d!==m):t.value=[...t.value,m]}function u(m,d){const c=new Set(se(m));d?t.value=[...new Set([...t.value,...c])]:t.value=t.value.filter(g=>!c.has(g))}return Te(e,()=>{const m=new Set(i.value.flatMap(c=>se(c))),d=t.value.filter(c=>m.has(c));d.length!==t.value.length&&(t.value=d)}),{timeSlotGroups:i,isSlotSelected:r,isGroupFullySelected:o,handleSlotClick:s,handleSelectAllToggle:u}}const pe="now",X="date",ge="time",ye="headcount",Qe=e=>{const{$store:t,$i18n:i,$dayjs:a}=Re(),r=$({activated:!1}),o=F(1),s=$({options:[]}),u=$({value:[],text:i.t("all_time"),activated:!1}),m=$({options:[]}),d=$({components:[]}),c=F(e.region.id),g=$({}),k=qe(e).categories,D=F(e.searchKeyWord||""),C=$({filter_regionid:c.value,category_id:g.id||null,filter_keyword:D.value}),M=T(()=>It(ot,h=>i.t(h.labelI18n))),H=h=>{D.value=h,Object.assign(C,{filter_keyword:h})},K=()=>{const h={regionID:c.value};t.dispatch("search/fetchSearchKeywordsOfRegion",h)},Y=h=>{t.dispatch("filter/getFilters",{categoryID:h||null,regionID:c.value}).then(p=>{if(p.code===0)o.value=p.data.day_mode,Object.assign(d,p.data),x();else throw p}).catch(p=>{console.error("fetchFilters:error",p)})},Q=h=>{const p=d.components.findIndex(O=>O.name===h);let S=p>=0?d.components[p]:{};return h===X&&(S=p>0?d.components[p].options[2].components[0]:{options:[]}),S},ae=h=>h?a(h).format("MM/DD"):"",Z=()=>({value:[""],text:"",keyValue:["starttime","endtime"],options:Q(X).options||{},dayMode:o.value,activated:!1}),j=()=>({value:[],text:i.t("all_time"),keyValue:["filter_times"],activated:!1}),de=()=>({value:"",text:"",keyValue:["limit"],options:Q(ye).options||[],activated:!1}),B=h=>{switch(h){case pe:delete C.filter_time;break;case X:s.keyValue.forEach(p=>{delete C[p]});break;case ge:delete C.filter_times;break;case ye:delete C.limit;break}},U=()=>{const h=!r.activated;Object.assign(r,{activated:h}),h?Object.assign(C,{filter_time:"now"}):B(pe),h&&s.activated&&(B(X),Object.assign(s,Z())),h&&u.activated&&(B(ge),Object.assign(u,j()))},f=()=>{r.activated&&(Object.assign(r,{activated:!1}),B(pe))},b=h=>{const p=h.filter_times||[],S=ti({selectedTimes:p,selectedDate:s.value?.[0]||null,periodLabelMap:M.value,defaultLabel:i.t("all_time"),formatExcessLabel:fe=>i.t("filter_time_display",{count:fe})}),O=p.length>0;Object.assign(u,{value:p,text:S,activated:O}),O&&f()},w=h=>{if(u.value.length===0)return;const p=Ye(u.value,h);p.length!==u.value.length&&(b({filter_times:p}),p.length>0?Object.assign(C,{filter_times:p}):delete C.filter_times)},J=h=>{const p=ae(h.starttime),S=h.starttime||"",O=!!S;Object.assign(s,{value:[S],text:p,activated:O}),O&&f(),S&&w(S)},re=h=>{const p=h.limit?i.t("all_number_pax",[h.limit]):"",S=h.limit||"";Object.assign(m,{value:S,text:p,activated:!!S})},x=()=>{Object.assign(s,{...Z()}),Object.assign(u,{...j()}),Object.assign(m,{...de()})},ue=h=>{const p={};for(const S in h)h[S]?p[S]=h[S]:C[S]&&delete C[S];Object.assign(C,p)},ce=({params:h,filterKey:p})=>{ue(h);const S=Object.keys(h).length>0;switch(p){case X:S&&J(h);break;case ge:S&&b(h);break;case ye:S&&re(h);break}};return{filterNow:r,filterDate:s,filterTime:u,filterHeadCount:m,currentFilter:C,selectedCategory:g,initSearchBar:()=>{c.value&&(Y(),K())},setSearchKeyWord:H,fetchSearchKeywords:K,fetchFilters:Y,updateCondition:ce,onClickCategory:({params:h})=>{const p=k.value.find(O=>O.id===h.categoryID)||{},S=p.id;g.id!==S&&(x(),Object.assign(g,p),Object.assign(C,{category_id:S}),B(pe),B(X),B(ye),B(ge),Y(h.categoryID))},clickNowFilter:()=>{U()},syncFiltersFromStore:h=>{if(!h)return;const p=h.starttime||"",S=h.endtime||"",O=h.limit||"",fe=h.filter_times?[].concat(h.filter_times):[],Ce=h.filter_time||"";ce({params:{starttime:p,endtime:S},filterKey:"date"}),ce({params:{filter_times:fe,filter_time:Ce},filterKey:"time",activated:fe.length>0||Ce==="now"}),ce({params:{limit:O},filterKey:"headcount"}),Object.assign(r,{activated:Ce==="now"})}}},ai=A(()=>W(()=>import("./DS-WHLxf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url)),ri=A(()=>W(()=>import("./Bvjc8HCw.js"),__vite__mapDeps([47,1,10,11,2,3,4,5,12,19,16,20]),import.meta.url)),ni=A(()=>W(()=>import("./DikfltMH.js"),__vite__mapDeps([48,2,1,3,4,5,6,7,8,49,15,50,21,22,23,51]),import.meta.url)),oi=te({name:"RegionsSearchBar",components:{FilterMenuCard:ai,TimeFilterMenu:ri,SearchContentCard:ni,FunnowSvgIcon:be},props:{allRegions:{type:Array,default:()=>[]},region:{type:Object,default:()=>({})},categories:{type:Array,default:()=>[]},dataCount:{type:Number,default:0},searchParams:{type:Object,default:()=>({})},searchKeyWord:{type:String,default:""},searchKeywordsOfRegion:{type:Array,default:()=>[]},historyKeyWords:{type:Array,default:()=>[]},headcountOptions:{type:Array,default:()=>[]},isBranchCardMode:{type:Boolean,default:!0},showCategoryAndNow:{type:Boolean,default:!0}},emits:["updateFilterData","updateSearchKeyword"],setup(e){const{sendGtmEvent:t}=Ve(),{keywordSource:i,fireSearchQuerySentEvent:a}=Ee(),{filterNow:r,filterDate:o,filterTime:s,filterHeadCount:u,currentFilter:m,selectedCategory:d,initSearchBar:c,setSearchKeyWord:g,updateCondition:k,onClickCategory:D,clickNowFilter:C,syncFiltersFromStore:M}=Qe(e),H=Ae();return{sendGtmEvent:t,keywordSource:i,fireSearchQuerySentEvent:a,filterNow:r,filterDate:o,filterTime:s,filterHeadCount:u,currentFilter:m,selectedCategory:d,initSearchBar:c,setSearchKeyWord:g,updateCondition:k,onClickCategory:D,clickNowFilter:C,syncFiltersFromStore:M,localePath:H}},data(){return{regionMenu:!1,categoryMenu:!1,dateMenuValue:!1,headCountMenuValue:!1,searchMenu:!1,inputKeyword:this.searchKeyWord||"",totalCount:this.dataCount||0}},computed:{loggedInUser(){return this.$auth.user},nowRegionID(){return this.region.id},searchPlaceholder(){return this.$t("search_region_placeholder",{region:this.region.name})},disabledHeadCount(){return this.isListPage?!1:this.filterHeadCount.options.length<=0},storeFilters(){return this.$store.getters["filter/filters"]},effectivePopularKeywords(){return this.isListPage?this.$store.getters["search/searchKeywordsOfCategory"]:this.searchKeywordsOfRegion}
2,effectiveHistoryKeyWords(){return this.isListPage?this.$store.getters["search/searchKeywordsOfHistory"]:this.historyKeyWords},storeSearchKeyword(){return this.$store.getters["search/searchKeyword"]},isListPage(){const e=(this._.provides[Le]||this.$route)?.name;return He(e)||Ue(e)}},watch:{headcountOptions:{handler(e){this.isListPage&&e&&e.length>0&&Object.assign(this.filterHeadCount,{options:e})}},storeFilters(e){this.isListPage&&this.filterDate.options&&this.filterDate.options.length>0&&this._syncFiltersFromStore(e)},dataCount(e){this.totalCount=e},searchKeyWord(e){this.inputKeyword=e},storeSearchKeyword(e){this.isListPage&&(this.inputKeyword=e||"")}},created(){if(this.initSearchBar(),this.isListPage){this.inputKeyword=this.storeSearchKeyword||"";const e=this.$watch(()=>this.filterDate.options,t=>{t&&t.length>0&&(e(),this.headcountOptions&&this.headcountOptions.length>0&&Object.assign(this.filterHeadCount,{options:this.headcountOptions}),this._syncFiltersFromStore(this.storeFilters))},{immediate:!0})}},methods:{_syncFiltersFromStore(e){this.syncFiltersFromStore(e)},closedMenu(e){switch(e){case"date":this.dateMenuValue=!1;break;case"headcount":this.headCountMenuValue=!1;break}},async handleRedirectToRegion(e){const t=e.region_id,i={event:Ie.REGION_CHANGED,payload:{"To Region ID":t,"To Region Name":e.name}};this.sendGtmEvent(i,!1),this.loggedInUser&&(this.sendGtmEvent(i,!0),await this.$store.dispatch("authentication/updateMemberRegion",{regionId:t,userInfo:this.loggedInUser})),this.$router.push(this.localePath({name:"regions-rid",params:{rid:t}}))},updateFilterCondition({params:e,filterKey:t,activated:i,totalCount:a}){this.closedMenu(t),this.updateCondition({params:e,filterKey:t,activated:i}),this.totalCount=a,t==="date"?this.$store.dispatch("filter/setFilters",{...e,filter_time:null}):this.$store.dispatch("filter/setFilters",{...e}),this.$emit("updateFilterData",{totalCount:a,filters:e})},inputSearchKeywords(e){this.isListPage||(this.keywordSource=""),this.setSearchKeyWord(e),this.isListPage||this.updateSearchKeywords(e)},onClickKeyword({keyword:e,keywordSource:t}){this.searchMenu=!1,this.inputKeyword=e,this.keywordSource=t||"",this.setSearchKeyWord(e),this.isListPage&&(this.fireSearchQuerySentEvent(this.buildSearchEventOptions({keyword:e})),this.$store.dispatch("search/setSearchKeyword",e))},updateSearchKeywords(e){this.$emit("updateSearchKeyword",e)},pathToSearchResult(e={}){const{isEnter:t=!1}=e,{starttime:i,endtime:a,filter_times:r,limit:o,filter_time:s,filter_keyword:u}=this.currentFilter;if(this.fireSearchQuerySentEvent(this.buildSearchEventOptions({keyword:u,isEnter:t})),this.isListPage){u&&this.$store.dispatch("search/saveHistorySearchKeyword",u),this.$store.dispatch("search/setSearchKeyword",u||"");return}const m=this.region.id,d=this.selectedCategory.id,c={starttime:i,endtime:a,filter_times:r,limit:o,filter_time:s,filter_keyword:u||void 0};u&&this.$store.dispatch("search/saveHistorySearchKeyword",u),d?this.$router.push(this.localePath({name:"regions-rid-categories-id",params:{rid:m,id:d},query:{...c}})):this.$router.push(this.localePath({name:"regions-rid-search",params:{rid:m},query:{...c}}))},buildSearchEventOptions({keyword:e,isEnter:t=!1}){return{keyword:e,isEnter:t,sourceName:this.$store.getters["category/firstLevelCategory"]?.name||"",isListPage:this.isListPage,isEmbeddedSearchBarVisible:this.$store.getters.isEmbeddedSearchBarVisible}}}}),si={class:"btn__text"},li={class:"d-flex"},di={class:"wd-w-7 wd-h-7 wd-flex wd-justify-center wd-items-center"};function ui(e,t,i,a,r,o){const s=R("FunnowSvgIcon"),u=R("FilterMenuCard"),m=R("TimeFilterMenu"),d=R("search-content-card");return v(),_(Se,{class:"regions-search__bar px-3"},{default:l(()=>[n(mt,{class:"search-form",onSubmit:t[8]||(t[8]=_e(c=>e.pathToSearchResult({isEnter:!0}),["prevent"]))},{default:l(()=>[n(ee,{"no-gutters":"",class:"flex-wrap"},{default:l(()=>[e.showCategoryAndNow?(v(),_(V,{key:0,class:"bar__col--vertical-divider my-3",cols:"auto"},{default:l(()=>[n(he,{modelValue:e.categoryMenu,"onUpdate:modelValue":t[0]||(t[0]=c=>e.categoryMenu=c),"min-width":"264","max-height":"384",offset:"16","z-index":"3","slide-x":""},{activator:l(({props:c,isActive:g})=>
2[n(N,q({class:"filter__btn mx-3 px-3",color:g?"orange50":"",height:"40",variant:"text"},c),{default:l(()=>[n(s,{class:"mr-2","max-width":"24","image-path":"funnow-icon.svg"}),z(" "+P(e.selectedCategory.name||e.$t("filter_category")),1)]),_:1},16,["color"])]),default:l(()=>[n(pt,{selected:e.selectedCategory.id||0,color:"orange50",mandatory:""},{default:l(()=>[(v(!0),L(De,null,Be(e.categories,(c,g)=>(v(),_(gt,{key:g,value:c.id,color:"orange50",active:c.id===e.selectedCategory.id,onClick:k=>e.onClickCategory({params:{categoryID:c.id}})},{default:l(()=>[n(yt,null,{default:l(()=>[z(P(c.name),1)]),_:2},1024)]),_:2},1032,["value","active","onClick"]))),128))]),_:1},8,["selected"])]),_:1},8,["modelValue"])]),_:1})):I("",!0),e.showCategoryAndNow?(v(),_(V,{key:1,class:"bar__col--vertical-divider my-3",cols:"auto"},{default:l(()=>[n(N,{class:E(["filter__btn mx-3 px-3",{selected:e.filterNow.activated}]),"min-width":"100",height:"40",variant:"text",onClick:e.clickNowFilter},{default:l(()=>[n(s,{class:"mr-2","max-width":"24","image-path":"flash-icon_current.svg"}),z(" "+P(e.$t("filter_now")),1)]),_:1},8,["class","onClick"])]),_:1})):I("",!0),n(V,{class:"bar__col--vertical-divider my-3",cols:"auto"},{default:l(()=>[n(he,{modelValue:e.dateMenuValue,"onUpdate:modelValue":t[1]||(t[1]=c=>e.dateMenuValue=c),"close-on-content-click":!1,offset:"16","z-index":"3",location:"bottom"},{activator:l(({props:c,isActive:g})=>[n(N,q({class:"filter__btn filter__btn--date mx-3 px-3",color:g||e.filterDate.activated?"orange50":"","min-width":"100",height:"40",variant:"text"},c),{default:l(()=>[n(s,{class:"mr-2","max-width":"24","image-path":"calendar-icon.svg"}),G("span",si,P(e.filterDate.text||e.$t("filter_date")),1)]),_:1},16,["color"])]),default:l(()=>[e.dateMenuValue?(v(),_(u,{key:0,title:e.filterDate.title,"filter-value":e.filterDate.value,"filter-options":e.filterDate.options,"filter-selected":e.filterDate.activated,"current-filter":e.currentFilter,"date-mode":e.filterDate.dayMode,"total-count":e.totalCount,"key-value":e.filterDate.keyValue,"is-branch-card-mode":e.isBranchCardMode,"clear-btn":!0,"menu-width":480,"filter-key":"date","content-type":"date-picker",onConfirm:e.updateFilterCondition},null,8,["title","filter-value","filter-options","filter-selected","current-filter","date-mode","total-count","key-value","is-branch-card-mode","onConfirm"])):I("",!0)]),_:1},8,["modelValue"])]),_:1}),n(V,{class:"bar__col--vertical-divider my-3",cols:"auto"},{default:l(()=>[n(m,{"display-text":e.filterTime.text,activated:e.filterTime.activated,"selected-times":e.filterTime.value,"key-value":e.filterTime.keyValue,"current-filter":e.currentFilter,"total-count":e.totalCount,"is-branch-card-mode":e.isBranchCardMode,onConfirm:e.updateFilterCondition},null,8,["display-text","activated","selected-times","key-value","current-filter","total-count","is-branch-card-mode","onConfirm"])]),_:1}),n(V,{class:"bar__col--vertical-divider my-3 mr-3",cols:"auto"},{default:l(()=>[n(he,{modelValue:e.headCountMenuValue,"onUpdate:modelValue":t[2]||(t[2]=c=>e.headCountMenuValue=c),disabled:e.disabledHeadCount,"close-on-content-click":!1,offset:[0,0,16,0],"z-index":"3",location:"bottom"},{activator:l(({props:c,value:g})=>[n(N,q({class:"filter__btn mx-3 px-3",color:g||e.filterHeadCount.activated?"orange50":"",disabled:e.disabledHeadCount,"min-width":"100",height:"40",variant:"text"},c),{default:l(()=>[n(s,{class:"mr-2","max-width":"24","image-path":"member-icon.svg"}),z(" "+P(e.filterHeadCount.text||e.$t("filter_pax")),1)]),_:1},16,["color","disabled"])]),default:l(()=>[e.headCountMenuValue?(v(),_(u,{key:0,title:e.filterHeadCount.title,"filter-value":e.filterHeadCount.value,"filter-options":e.filterHeadCount.options,"current-filter":e.currentFilter,"date-mode":e.filterHeadCount.dayMode,"total-count":e.totalCount,"key-value":e.filterHeadCount.keyValue,"is-branch-card-mode":e.isBranchCardMode,"filter-key":"headcount","content-type":"list",onConfirm:e.updateFilterCondition},null,8,["title","filter-value","filter-options","current-filter","date-mode","total-count","key-value","is-branch-card-mode","onConfirm"])):I("",!0)]),_:1},8,["modelValue","disabled"])]),_:1}),n(V,{class:"my-3"},{default:l(()=>[G("div",li,[n(he,{modelValue:e.searchMenu,"onUpdate:modelValue":t[6]||(t[6]=c=>e.searchMenu=c),"close-on-content-click":!1,"max-width":"728",width:"728","max-height":"280",offset:"16","z-index":"3",location:"bottom","slide-x":""},{activator:l(({props:c})=>[n(We,q({modelValue:e.inputKeyword,"onUpdate:modelValue":t[3]||(t[3]=g=>e.inputKeyword=g),class:"search-input wd-h-10 wd-w-full",placeholder:e.searchPlaceholder,autocomplete:"off",color:"orange50",variant:"solo",flat:"",density:"compact","hide-details":""},c,{onKeydownCapture:[t[4]||(t[4]=Me(_e(()=>{},["stop"]),["down"])),t[5]||(t[5]=Me(_e(()=>{},["stop"]),["up"]))],"onUpdate:modelValue":e.inputSearchKeywords}),null,16,["modelValue","placeholder","onUpdate:modelValue"])]),default:l(()=>[n(d,{ref:"searchContentCard","popular-keywords":e.effectivePopularKeywords,"history-key-words":e.effectiveHistoryKeyWords,onChangeKeyword:e.onClickKeyword},null,8,["popular-keywords","history-key-words","onChangeKeyword"])]),_:1},8,["modelValue"]),n(N,{class:"search__btn","min-width":"40",width:"40",height:"40",color:"orange50",variant:"flat",onClick:t[7]||(t[7]=c=>e.pathToSearchResult({isEnter:!0}))},{default:l(()=>[G("div",di,[n(s,{"image-path":"magnify-icon_white.svg"})])]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})}const da=ie(oi,[["render",ui],["__scopeId","data-v-54bbe53d"]]),ci=e=>{const{$axios:t}=Re();let i=F(e.isDebounce),a=F(e.filterKey),r=F(e.keyValue),o=F(e.type),s=$(e.currentFilter||{}),u=$(e.currentTagFilter||{});const m=$({}),d=$({}),c=F(!1),g=F(!1),k=F(e.filterSelected||!1),D=F(e.totalCount||0);Te(e,f=>{i=F(f.isDebounce),a=F(f.filterKey),r=F(f.keyValue),o=F(f.type),s=$(f.currentFilter||{}),u=$(f.currentTagFilter||{}),D.value=f.totalCount});const C=f=>{const b={...f};for(const w in b)b[w]||delete b[w];return b},M=f=>{for(const b in f)m[b]=f[b]},H=f=>{const b=[],w=C({...u,...f});for(const re in w){const x=w[re].join(",");x&&b.push(`[${x}]`)}return b.join(",")||!1},K=f=>{!f.starttime||!f.filter_times||(f.filter_times=Ye(f.filter_times,f.starttime),f.filter_times.length===0&&delete f.filter_times)},Y=()=>{g.value=!0;const f=C({...s,...m}),b=H(d);return K(f),Object.assign(f,{filter_tags:b?`[${b}]`:void 0}),e.isBranchCardMode?st(t,{...f}).then(w=>
2(w.code===0&&(D.value=w.total_count,g.value=!1),w)).catch(w=>{console.error("fetchTempFilterData: error",w),g.value=!1}):t.$get("/pub/product",{params:f}).then(w=>(w.code===0&&(D.value=w.total_count,g.value=!1),w)).catch(w=>{console.error("fetchTempFilterData: error",w),g.value=!1})},Q=f=>{const b={};return r.value.forEach((w,J)=>{b[w]=f[J]}),b},ae=f=>{d[a.value]=f},Z=f=>{let b={};o.value==="tags"?ae(f):(b=Q(f),M(b)),i.value&&Y()},j=f=>{c.value=f||!1};return{showClearBtn:k,clearing:c,filterLoading:g,filterTotalCount:D,tempFilters:m,setSelectedFilter:Z,doClearData:()=>{j(!0)},updateClearBtn:f=>{k.value=f,f||j(!1)},getConfirmFilterData:()=>{const f=k.value,b=Object.assign({},{...o.value==="tags"?d:m}),w=Object.assign({},{params:b,activated:f,totalCount:D.value});return w.index=e.index||0,o.value&&(w.type=o.value),a.value&&(w.filterKey=a.value),w}}},fi=A(()=>W(()=>import("./Bn-KCVQO.js"),__vite__mapDeps([10,11,1,2,3,4,5,12]),import.meta.url)),hi=A(()=>W(()=>import("./BdcwOMaG.js"),__vite__mapDeps([52,2,1,3,4,5,53,54,7,15,32,55]),import.meta.url)),mi=A(()=>W(()=>import("./Cj_iPlHx.js"),__vite__mapDeps([56,2,1,3,4,5,57,58,14,15,59]),import.meta.url)),pi=A(()=>W(()=>import("./CVjehKMH.js"),__vite__mapDeps([38,2,1,3,4,5,39]),import.meta.url)),gi=A(()=>W(()=>import("./DBeR1miW.js"),__vite__mapDeps([60,2,1,3,4,5,61,62,58,14,15,9,10,11,12,13,16,17,18,19,20,21,22,7,8,23,24,25,6,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,63]),import.meta.url)),yi={name:"FilterBottomSheet",components:{FunnowSvgIcon:fi,DatePicker:hi,RadioFilter:mi,Loading:pi,TimePicker:gi},props:{actived:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconPath:{type:String,default:""},buttonText:{type:String,default:""},title:{type:String,default:""},clearBtn:{type:Boolean,default:!1},contentType:{type:String,default:""},filterValue:{type:[String,Number,Object,Array],default:""},filterKey:{type:String,default:""},dayMode:{type:Number,default:1},filterOptions:{type:Array,default:()=>[]},currentFilter:{type:Object,default:()=>({})},totalCount:{type:Number,default:0},isDebounce:{type:Boolean,default:!1},filterType:{type:String,default:""},keyValue:{type:Array,default:()=>[]},isBranchCardMode:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","confirmBtn"],setup(e){const{showClearBtn:t,clearing:i,filterLoading:a,filterTotalCount:r,setSelectedFilter:o,doClearData:s,updateClearBtn:u,getConfirmFilterData:m}=ci(e),d=T(()=>e.currentFilter?.starttime||"");return{showClearBtn:t,clearing:i,filterLoading:a,filterTotalCount:r,timePickerSelectedDate:d,setSelectedFilter:o,doClearData:s,updateClearBtn:u,getConfirmFilterData:m}},data(){return{showBottomSheet:this.modelValue||!1}},computed:{filterResultText(){return this.filterTotalCount<=100?this.$t("filter_result_exact_button",{result:this.filterTotalCount}):this.$t("filter_result_exceed_button",{result:100})}},watch:{showBottomSheet(e){this.$emit("update:modelValue",e)},value(e){this.showBottomSheet=e}},methods:{doConfirm(){const e=this.getConfirmFilterData();this.$emit("confirmBtn",{...e,totalCount:this.filterTotalCount}),this.doClosed()},doClosed(){this.hideBottomSheet()},hideBottomSheet(){this.showBottomSheet=!1}}},vi={class:"btn__text text__overflow wd-text-omd"},wi={class:"dialog-title text-center mb-0"},bi={key:1},Si={key:2};function Ci(e,t,i,a,r,o){const s=R("FunnowSvgIcon"),u=R("RadioFilter"),m=R("DatePicker"),d=R("TimePicker"),c=R("loading");return v(),_(Ct,{modelValue:r.showBottomSheet,"onUpdate:modelValue":t[1]||(t[1]=g=>r.showBottomSheet=g)},{activator:l(({isActive:g,props:k})=>[n(N,q({class:"filter__btn",color:g||i.actived?"orange50":"black50",height:"40",disabled:i.disabled,variant:"text"},k),{default:l(()=>[i.iconPath?(v(),_(s,{key:0,class:"mr-2","max-width":"24","image-path":i.iconPath},null,8,["image-path"])):I("",!0),G("span",vi,P(i.buttonText||""),1)]),_:1},16,["color","disabled"])]),default:l(()=>[n(Se,{class:"filter-menu-card-container !wd-px-0"},{default:l(()=>[n(vt,{class:"pa-0"},{default:l(()=>[n(ee,null,{default:l(()=>[n(V,{class:"py-4",cols:"3"},{default:l(()=>[a.showClearBtn&&i.clearBtn?(v(),_(N,{key:0,class:"header-btn","min-width":66,height:40,color:"orange50",variant:"text",onClick:t[0]||(t[0]=g=>a.doClearData(!0))},{default:l(()=>[z(P(e.$t("all_clear")),1)]),_:1})):I("",!0)]),_:1}),n(V,{class:"py-4",cols:"6"},{default:l(()=>[G("p",wi,P(i.title),1)]),_:1}),n(V,{class:"py-4 text-right",cols:"3"},{default:l(()=>[n(N,{class:"header-btn mr-5 rounded-circle","min-width":24,width:24,height:24,variant:"text",icon:"",onClick:o.doClosed},{default:l(()=>[n(lt,null,{default:l(()=>[...t[2]||(t[2]=[z(" mdi-close ",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1}),i.contentType==="list"?(v(),_(u,{key:0,value:i.filterValue,options:i.filterOptions,"key-value":i.keyValue,onUpdateClearBtn:a.updateClearBtn,onReturnFilter:a.setSelectedFilter}
2,null,8,["value","options","key-value","onUpdateClearBtn","onReturnFilter"])):I("",!0),i.contentType==="date-picker"?(v(),_(m,{key:1,value:i.filterValue,"is-clear":a.clearing,"day-mode":i.dayMode,options:i.filterOptions,onUpdateClearBtn:a.updateClearBtn,onReturnFilter:a.setSelectedFilter},null,8,["value","is-clear","day-mode","options","onUpdateClearBtn","onReturnFilter"])):I("",!0),i.contentType==="time-picker"?(v(),_(d,{key:2,value:i.filterValue,"is-clear":a.clearing,"selected-date":a.timePickerSelectedDate,onUpdateClearBtn:a.updateClearBtn,onReturnFilter:a.setSelectedFilter},null,8,["value","is-clear","selected-date","onUpdateClearBtn","onReturnFilter"])):I("",!0),n(wt,{class:"!wd-py-6 !wd-px-5 wd-justify-end"},{default:l(()=>[n(N,{class:"wd-w-full",height:"40",color:"orange50",elevation:"0",variant:"flat",onClick:o.doConfirm},{default:l(()=>[a.filterLoading?(v(),_(c,{key:0})):i.isDebounce?(v(),L("span",bi,P(o.filterResultText),1)):(v(),L("span",Si,P(e.$t("all_ok")),1))]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const _i=ie(yi,[["render",Ci],["__scopeId","data-v-82c568bf"]]),ki=A(()=>W(()=>import("./C0PI7CGU.js"),__vite__mapDeps([64,48,2,1,3,4,5,6,7,8,49,15,50,21,22,23,51,30,65,13,14,16,24,25,66,67,68]),import.meta.url)),Fi=te({name:"RegionsSearchBarMobile",components:{FilterBottomSheet:_i,SearchNavigation:ki,FunnowSvgIcon:be},props:{allRegions:{type:Array,default:()=>[]},region:{type:Object,default:()=>({})},categories:{type:Array,default:()=>[]},dataCount:{type:Number,default:0},searchParams:{type:Object,default:()=>({})},searchKeyWord:{type:String,default:""},searchKeywordsOfRegion:{type:Array,default:()=>[]},historyKeyWords:{type:Array,default:()=>[]},headcountOptions:{type:Array,default:()=>[]},isBranchCardMode:{type:Boolean,default:!0},showCategoryAndNow:{type:Boolean,default:!0}},emits:["updateFilterData","updateSearchKeyword"],setup(e){const{sendGtmEvent:t}=Ve(),{keywordSource:i,fireSearchQuerySentEvent:a}=Ee(),{filterNow:r,filterDate:o,filterTime:s,filterHeadCount:u,currentFilter:m,selectedCategory:d,initSearchBar:c,setSearchKeyWord:g,updateCondition:k,onClickCategory:D,clickNowFilter:C,syncFiltersFromStore:M}=Qe(e),H=Ae();return{sendGtmEvent:t,keywordSource:i,fireSearchQuerySentEvent:a,filterNow:r,filterDate:o,filterTime:s,filterHeadCount:u,currentFilter:m,selectedCategory:d,initSearchBar:c,setSearchKeyWord:g,updateCondition:k,onClickCategory:D,clickNowFilter:C,syncFiltersFromStore:M,localePath:H}},data(){return{regionMenu:!1,categoryMenu:!1,dateMenuValue:!1,headCountMenuValue:!1,filters:{components:[]},inputKeyword:this.searchKeyWord||"",totalCount:this.dataCount||0}},computed:{loggedInUser(){return this.$auth.user},regionsOptions(){return this.allRegions.map(e=>({title:e.name,value:e.region_id}))},categoriesOptions(){return this.categories.map(e=>({title:e.name,value:e.id}))},searchPlaceholder(){return this.$t("search_region_placeholder",{region:this.region.name})},isSearchNavigationShown(){return this.$store.state.searchNavigation},storeSearchKeyword(){return this.$store.getters["search/searchKeyword"]},storeFilters(){return this.$store.getters["filter/filters"]},isListPage(){const e=(this._.provides[Le]||this.$route)?.name;return He(e)||Ue(e)},disabledHeadCount(){return this.isListPage?!1:this.filterHeadCount.options.length<=0},effectivePopularKeywords(){return this.isListPage?this.$store.getters["search/searchKeywordsOfCategory"]:this.searchKeywordsOfRegion},effectiveHistoryKeyWords(){return this.isListPage?this.$store.getters["search/searchKeywordsOfHistory"]:this.historyKeyWords}},watch:{headcountOptions:{handler(e){this.isListPage&&e&&e.length>0&&Object.assign(this.filterHeadCount,{options:e})}},storeFilters(e){this.isListPage&&this.filterDate.options&&this.filterDate.options.length>0&&this._syncFiltersFromStore(e)},dataCount(e){this.totalCount=e},searchKeyWord(e){this.inputKeyword=e},storeSearchKeyword(e){this.isListPage&&(this.inputKeyword=e||"")}},created(){if(this.initSearchBar(),this.isListPage){this.inputKeyword=this.storeSearchKeyword||"";const e=this.$watch(()=>this.filterDate.options,t=>{t&&t.length>0&&(e(),this.headcountOptions&&this.headcountOptions.length>0&&Object.assign(this.filterHeadCount,{options:this.headcountOptions}),this._syncFiltersFromStore(this.storeFilters))},{immediate:!0})}},methods:{async handleRedirectToRegion({params:e}){const t=e.regionID,i=this.regionsOptions.find(r=>r.value===t),a={event:Ie.REGION_CHANGED,payload:{"To Region ID":t,"To Region Name":i.title}};t&&t!==this.region.id&&(this.sendGtmEvent(a,!1),this.loggedInUser&&(this.sendGtmEvent(a,!0),await this.$store.dispatch("authentication/updateMemberRegion",{regionId:t,userInfo:this.loggedInUser})),this.$router.push(this.localePath({name:"regions-rid",params:{rid:t}})))},updateFilterCondition({params:e,filterKey:t,activated:i,totalCount:a}){this.updateCondition({params:e,filterKey:t,activated:i}),this.totalCount=a,t==="date"?this.$store.dispatch("filter/setFilters",{...e,filter_time:null}):this.$store.dispatch("filter/setFilters",{...e}),this.$emit("updateFilterData",{totalCount:a,filters:e})},_syncFiltersFromStore(e){this.syncFiltersFromStore(e)},openSearchNavigation(){this.$store.dispatch("setSearchNavigation",!0)},inputSearchKeywords({keyword:e,keywordSource:t,isEnter:i}){this.inputKeyword=e,this.keywordSource=t||"",this.setSearchKeyWord(e),this.isListPage?(this.fireSearchQuerySentEvent(this.buildSearchEventOptions({keyword:e,isEnter:i})),this.$store.dispatch("search/setSearchKeyword",e)):this.updateSearchKeywords(e)},updateSearchKeywords(e){this.$emit("updateSearchKeyword",e)},pathToSearchResult(){const{starttime:e,endtime:t,filter_times:i,limit:a,filter_time:r,filter_keyword:o}=this.currentFilter;if(this.fireSearchQuerySentEvent(this.buildSearchEventOptions({keyword:o,isEnter:!0})),this.isListPage){o&&this.$store.dispatch("search/saveHistorySearchKeyword",o),this.$store.dispatch("search/setSearchKeyword",o||"");return}const s=this.region.id,u=this.selectedCategory.id,m={starttime:e,endtime:t,filter_times:i,limit:a,filter_time:r,filter_keyword:o||void 0};u?this.$router.push(this.localePath({name:"regions-rid-categories-id",params:{rid:s,id:u},query:{...m}})):this.$router.push(this.localePath({name:"regions-rid-search",params:{rid:s},query:{...m}}))},buildSearchEventOptions({keyword:e,isEnter:t=!1}){return{keyword:e,isEnter:t,sourceName:this.$store.getters["category/firstLevelCategory"]?.name||"",isListPage:this.isListPage,isEmbeddedSearchBarVisible:this.$store.getters.isEmbeddedSearchBarVisible}}}});function Ti(e,t,i,a,r,o){const s=R("FilterBottomSheet"),u=R("FunnowSvgIcon"),m=R("SearchNavigation");return v(),_(Se,{class:E(["regions-search__bar px-4",{"!wd-z-15":e.isSearchNavigationShown}])},{default:l(()=>[e.showCategoryAndNow?(v(),_(ee,{key:0,class:"bar__row","no-gutters":""},{default:l(()=>[n(V,{class:"d-flex py-3",cols:"2/3"},{default:l(()=>[n(s,{modelValue:e.categoryMenu,"onUpdate:modelValue":t[0]||(t[0]=d=>e.categoryMenu=d),"filter-value":e.selectedCategory.id||0,"filter-options":e.categoriesOptions,"icon-path":"funnow-icon.svg","button-text":e.selectedCategory.name||e.$t("filter_category"),"key-value":["categoryID"],"is-branch-card-mode":e.isBranchCardMode,title:e.$t("filter_category"),"content-type":"list",onConfirmBtn:e.onClickCategory},null,8,["modelValue","filter-value","filter-options","button-text","is-branch-card-mode","title","onConfirmBtn"])]),_:1}),n(ke,{class:"mx-1 my-4",vertical:""}),n(V,{class:"d-flex py-3",cols:"auto"},{default:l(()=>
2[n(N,{class:E(["filter__btn mr-3 wd-text-omd",{selected:e.filterNow.activated}]),"min-width":"100",height:"40",variant:"text",onClick:e.clickNowFilter},{default:l(()=>[n(u,{class:"mr-2","max-width":"24","image-path":"flash-icon_current.svg"}),z(" "+P(e.$t("filter_now")),1)]),_:1},8,["class","onClick"])]),_:1})]),_:1})):I("",!0),n(ee,{class:"bar__row","no-gutters":""},{default:l(()=>[n(V,{class:"d-flex py-3"},{default:l(()=>[n(s,{ref:"dateFilter",modelValue:e.dateMenuValue,"onUpdate:modelValue":t[1]||(t[1]=d=>e.dateMenuValue=d),actived:e.filterDate.activated,"filter-key":"date","filter-value":e.filterDate.value||["",[]],"filter-options":e.filterDate.options,"icon-path":"calendar-icon.svg","button-text":e.filterDate.text||e.$t("filter_date"),"day-mode":e.filterDate.dayMode,"key-value":e.filterDate.keyValue,"current-filter":e.currentFilter,"total-count":e.totalCount,"is-debounce":!0,"clear-btn":!0,title:e.$t("available_booking_time"),"is-branch-card-mode":e.isBranchCardMode,"content-type":"date-picker",onConfirmBtn:e.updateFilterCondition},null,8,["modelValue","actived","filter-value","filter-options","button-text","day-mode","key-value","current-filter","total-count","title","is-branch-card-mode","onConfirmBtn"])]),_:1}),n(ke,{class:"mx-1 my-4",vertical:""}),n(V,{class:"d-flex py-3"},{default:l(()=>[n(s,{actived:e.filterTime.activated,"filter-key":"time","filter-value":e.filterTime.value,"icon-path":"clock.svg","button-text":e.filterTime.text||e.$t("all_time"),"key-value":e.filterTime.keyValue,"current-filter":e.currentFilter,"total-count":e.totalCount,"is-debounce":!0,"clear-btn":!0,title:e.$t("all_time"),"is-branch-card-mode":e.isBranchCardMode,"content-type":"time-picker",onConfirmBtn:e.updateFilterCondition},null,8,["actived","filter-value","button-text","key-value","current-filter","total-count","title","is-branch-card-mode","onConfirmBtn"])]),_:1}),n(ke,{class:"mx-1 my-4",vertical:""}),n(V,{class:"d-flex py-3"},{default:l(()=>[n(s,{modelValue:e.headCountMenuValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.headCountMenuValue=d),actived:e.filterHeadCount.activated,disabled:e.disabledHeadCount,"filter-key":"headcount","filter-value":e.filterHeadCount.value,"filter-options":e.filterHeadCount.options,"icon-path":"member-icon.svg","button-text":e.filterHeadCount.text||e.$t("filter_pax"),"key-value":e.filterHeadCount.keyValue,"current-filter":e.currentFilter,"total-count":e.totalCount,"is-debounce":!0,title:e.$t("filter_pax"),"is-branch-card-mode":e.isBranchCardMode,"content-type":"list",onConfirmBtn:e.updateFilterCondition},null,8,["modelValue","actived","disabled","filter-value","filter-options","button-text","key-value","current-filter","total-count","title","is-branch-card-mode","onConfirmBtn"])]),_:1})]),_:1}),n(ee,{"no-gutters":""},{default:l(()=>[n(V,{class:"d-flex py-3",cols:"auto"},{default:l(()=>[n(We,{modelValue:e.inputKeyword,"onUpdate:modelValue":t[3]||(t[3]=d=>e.inputKeyword=d),class:"search-input text__overflow wd-h-8 wd-w-full",placeholder:e.searchPlaceholder,autocomplete:"off",color:"orange50",variant:"solo",flat:"",density:"compact",readonly:"","hide-details":"",onClick:e.openSearchNavigation},null,8,["modelValue","placeholder","onClick"])]),_:1})]),_:1}),n(ee,{"no-gutters":""},{default:l(()=>[n(V,{class:"pb-3",cols:"12",sm:"auto"},{default:l(()=>[n(N,{class:"search__btn text-white","min-width":"40",width:"100%",height:"40",color:"orange50",variant:"flat",block:"",onClick:e.pathToSearchResult},{default:l(()=>[z(P(e.$t("filter_result_apply_button")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),n(m,{"search-keyword":e.inputKeyword,placeholder:e.searchPlaceholder,"popular-keywords":e.effectivePopularKeywords,"history-key-words":e.effectiveHistoryKeyWords,onSubmitKeyword:e.inputSearchKeywords},null,8,["search-keyword","placeholder","popular-keywords","history-key-words","onSubmitKeyword"])]),_:1},8,["class"])}const ua=ie(Fi,[["render",Ti],["__scopeId","data-v-bc571449"]]);function Ze({isSingleSlidePerView:e,isMobile:t,isImageSizeLarge:i}){let a;return e?a=t?"auto":"240px":t?a="120px":a=i?"200px":"135px",{height:a,aspectRatio:e&&t?"2.67":"auto"}}const Di={key:1,class:"banner__description wd-leading-22px !wd-mb-0"},Bi=te({__name:"BannerSlide",props:{isMobile:{type:Boolean,default:!1},banner:{},slideWidth:{default:360},isSingleSlidePerView:{type:Boolean,default:!1},isCategoryUiType:{type:Boolean,default:!1},isImageSizeLarge:{type:Boolean,default:!1}},setup(e){const t=e,i=et(),a=T(()=>t.banner.link_type===ve.None||t.banner.link_type===ve.FromCurrentPage),r=T(()=>
2a.value?"div":"a"),o=T(()=>({...t.banner.link_type===ve.FromCurrentPage?{class:"wd-cursor-pointer"}:{},...a.value?{}:{href:t.banner.link_target,target:"_blank"}})),s=T(()=>m(t.banner.cover_image||"")),u=T(()=>{const{height:d,aspectRatio:c}=Ze({isSingleSlidePerView:t.isSingleSlidePerView,isMobile:t.isMobile,isImageSizeLarge:t.isImageSizeLarge});return{"background-image":`url('${s.value}')`,"background-position":"center","background-repeat":"no-repeat","background-size":"cover",width:`${t.slideWidth}px`,height:d,"aspect-ratio":c}});function m(d){return`${i.public.CDN_URI}${d}`}return(d,c)=>e.banner.id?(v(),_(Je(y(r)),Xe(q({key:0},y(o))),{default:l(()=>[n(Se,{class:"banner__card",width:e.slideWidth,flat:""},{default:l(()=>[G("div",{class:"wd-rounded-4px",style:we(y(u))},null,4),e.isCategoryUiType&&e.banner.description?(v(),L("h2",{key:0,class:E(["banner__description wd-font-normal",e.isMobile?"wd-my-2 wd-text-omd":"wd-my-4 wd-text-otempmd"])},P(e.banner.description),3)):(v(),L("p",Di,P(e.banner.description),1))]),_:1},8,["width"])]),_:1},16)):I("",!0)}}),Vi=ie(Bi,[["__scopeId","data-v-12d26972"]]),Ii={class:"swiper-btn-group wd-flex"},Pi=te({__name:"BannerSwiperBtnGroup",props:{disabledPrevBtn:{type:Boolean},disabledNextBtn:{type:Boolean}},emits:["prev","next"],setup(e){const t=e;return(i,a)=>(v(),L("div",Ii,[n(N,{class:E(["swiper-button swiper-prev mr-3 pa-0",{disabled:t.disabledPrevBtn}]),"min-width":"32",height:"32",variant:"text","aria-label":"Prev Button",onClick:a[0]||(a[0]=r=>i.$emit("prev"))},{default:l(()=>[n(be,{"max-width":"24","image-path":"chevron-left.svg"})]),_:1},8,["class"]),n(N,{class:E(["swiper-button swiper-next pa-0",{disabled:t.disabledNextBtn}]),"min-width":"32",height:"32",variant:"text","aria-label":"Next Button",onClick:a[1]||(a[1]=r=>i.$emit("next"))},{default:l(()=>[n(be,{"max-width":"24","image-path":"chevron-right.svg"})]),_:1},8,["class"])]))}}),Mi=ie(Pi,[["__scopeId","data-v-42edd88f"]]),Ki=te({__name:"BannerSwiperSkeleton",props:{slideWidth:{},isMobile:{type:Boolean},isSingleSlidePerView:{type:Boolean},isImageSizeLarge:{type:Boolean},isCategoryUiType:{type:Boolean},hasBannerDescription:{type:Boolean}},setup(e){const t=e,i=T(()=>[{mobile:t.isMobile,"has-banner-description":t.hasBannerDescription,"wd-pl-5 xs:wd-pl-0":t.isCategoryUiType}]),a=T(()=>t.isMobile?"wd-mr-2":"wd-mr-5"),r=T(()=>{const{height:s,aspectRatio:u}=Ze({isSingleSlidePerView:t.isSingleSlidePerView,isMobile:t.isMobile,isImageSizeLarge:t.isImageSizeLarge});return{height:s,"aspect-ratio":u}}),o=T(()=>t.isCategoryUiType?"wd-my-2 xs:wd-my-4 wd-h-12":"wd-h-44px");return(s,u)=>(v(),L("div",{class:E(["swiper__skeleton d-flex wd-overflow-hidden",y(i)])},[(v(),L(De,null,Be(3,m=>G("div",{key:m,class:E(y(a))},[n($e,{class:"",style:we(y(r)),width:t.slideWidth,type:"ossein"},null,8,["style","width"]),t.hasBannerDescription?(v(),_($e,{key:0,class:E(y(o)),width:t.slideWidth,type:"ossein"},null,8,["class","width"])):I("",!0)],2)),64))],2))}}),$i={key:0,class:"header__title"},Ni=["innerHTML"],Oi=te({__name:"banner-swiper",props:{isMobile:{type:Boolean,default:!1},title:{default:""},items:{default:()=>[]},uiType:{default:"banner"},isSingleSlidePerView:{type:Boolean,default:!1},isImageSizeLarge:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0}},setup(e,{expose:t}){const i=e,{swiper:a,disabledPrevBtn:r,disabledNextBtn:o,initSwiper:s,prevSwiper:u,nextSwiper:m}=Tt(),d=dt(),{sendGtmEvent:c}=Ve(),{userInfo:g}
2=ut(),k=F(360),D=F(0),C=F(null),M=T(()=>i.uiType===ft.CATEGORY),H=T(()=>({allowTouchMove:!0,setWrapperSize:!0,spaceBetween:8,speed:300,slidesPerGroup:1,loop:K.value.length>1,slidesPerView:"auto",centeredSlides:i.isSingleSlidePerView&&(K.value.length>1||i.isMobile),breakpoints:{[ht.xs]:{spaceBetween:20}}})),K=T(()=>i.items.length===2||i.items.length===3?i.items.concat(i.items):i.items),Y=T(()=>K.value.some(B=>B.description)),Q=T(()=>M.value?"":"wd-pt-1 wd-pb-3 wd-px-0");tt(()=>{Z(),C.value=Dt(()=>{a.value?.slideNext()},5e3)}),it(()=>{C.value&&clearInterval(C.value)}),Te(()=>i.items,()=>{j()});function ae(B){if(i.items.length<=0)return;const U=B.clickedIndex%K.value.length,f=K.value[U]||{},b=!!g.value,w={event:Ie.HOME_BANNER_CLICKED,payload:{"Banner ID":f.id,"Banner Title":f.title,Path:f.link_target,Sequence:U}};c(w,!1),b&&c(w,!0);const J=f.link_type,re=f.link_target||"";if(J===ve.FromCurrentPage){const x=re.match(/\/campaign\/(\d+)/),ue=x?x[1]:null;ue&&(d.setRootDynamicComponentOption({promoCampaignId:ue}),d.setRootDynamicComponent(Ft),d.setShouldRootDynamicComponentShow(!0))}}function Z(){at(()=>{if(de(),!i.isSingleSlidePerView&&i.isMobile){k.value=320;return}if(!i.isSingleSlidePerView&&!i.isMobile){k.value=i.isImageSizeLarge?534:360;return}if(window.innerWidth<=ct)D.value=i.isMobile?0:20,k.value=window.innerWidth-40;else{const B=(window.innerWidth-1440)/2,U=96+Math.round(Math.max(B,0));D.value=U,k.value=window.innerWidth-U*2}})}function j(){i.isMobile||i.items.length>1&&(r.value=!1,o.value=!1)}function de(){a.value?.update(),j()}return t({prevSwiper:u,nextSwiper:m,disabledPrevBtn:r,disabledNextBtn:o,swiper:a}),(B,U)=>Ke((v(),_(Bt,{class:"banners__swiper",elevation:"0",rounded:""},{default:l(()=>[e.showHeader?(v(),L("div",{key:0,class:E(["swiper__header d-flex justify-space-between align-center",{"wd-py-3":!y(M),"wd-mb-2":y(M)&&!e.isMobile}])},[y(M)?e.isMobile?I("",!0):(v(),L("h1",{key:1,class:"wd-font-medium wd-text-otemplg wd-flex wd-items-center",innerHTML:e.title},null,8,Ni)):(v(),L("h2",$i,P(e.title),1)),!e.isMobile&&y(K).length>1?(v(),_(Mi,{key:2,"disabled-prev-btn":y(r),"disabled-next-btn":y(o),onPrev:y(u),onNext:y(m)},null,8,["disabled-prev-btn","disabled-next-btn","onPrev","onNext"])):I("",!0)],2)):I("",!0),Ke(G("div",{class:E(["swiper__container",y(Q)]),style:we(e.isSingleSlidePerView&&y(K).length>1?{"margin-left":`-${y(D)}px`,"margin-right":`-${y(D)}px`}:"")},[n(y(_t),q({ref:"relatedBannersSwiper"},y(H),{onSwiper:y(s),onClick:ae}),{default:l(()=>[(v(!0),L(De,null,Be(y(K),(f,b)=>(v(),_(y(kt),{key:`${f.id}_${b}`,style:we({width:`${y(k)}px`})},{default:l(()=>[n(Vi,{"is-mobile":e.isMobile,banner:f,"slide-width":y(k),"is-single-slide-per-view":e.isSingleSlidePerView,"is-category-ui-type":y(M),"is-image-size-large":e.isImageSizeLarge},null,8,["is-mobile","banner","slide-width","is-single-slide-per-view","is-category-ui-type","is-image-size-large"])]),_:2},1032,["style"]))),128))]),_:1},16,["onSwiper"])],6),[[rt,y(a)]]),y(a)?I("",!0):(v(),_(Ki,{key:1,class:E(y(Q)),"slide-width":y(k),"is-mobile":e.isMobile,"is-single-slide-per-view":e.isSingleSlidePerView,"is-image-size-large":e.isImageSizeLarge,"is-category-ui-type":y(M),"has-banner-description":y(Y)},null,8,["class","slide-width","is-mobile","is-single-slide-per-view","is-image-size-large","is-category-ui-type","has-banner-description"]))]),_:1})),[[Vt,Z]])}}),ca=ie(Oi,[["__scopeId","data-v-a56f4cd9"]]);export{ca as B,ua as R,da as a,Mi as b,ci as c,Ye as f,ti as g,It as m,la as u};

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.