PageSourceSearch

https://www.modetour.com/_next/static/chunks/pages/main-page/search-result-e18f4d0237b8cb22.js

js modetour.com collected 2026-10-01 12:09:04 UTC 14,661 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2186],{21221:(e,a,t)=>{"use strict";t.d(a,{M:()=>s});var l=t(63163),r=t(43999),n=t.n(r),o=t(58214),i=t(12794);let s=()=>{let e=(0,l.k)(),[a]=(0,i.E)();return{list:(0,o.useMemo)(()=>e.list.filter(e=>"hotel"===e.domain),[e.list]),post:()=>{var t,l;if(!(null==a?void 0:a.searchFrom)||!(null==a?void 0:a.searchTo)||!a.areaName&&!a.regionName||!a.type||!a.domain||"hotel"!==a.domain||!n()(null==a?void 0:a.searchFrom).isValid()||!n()(null==a?void 0:a.searchTo).isValid()||n()(null==a?void 0:a.searchFrom).isSameOrAfter(n()(null==a?void 0:a.searchTo))||n()(null==a?void 0:a.searchFrom).diff(n()(null==a?void 0:a.searchTo))>=29||!(null==(t=a.occupancies)?void 0:t.length))return;let r=n()(null==a?void 0:a.searchFrom,"YYYY-MM-DD").format("YYYY.MM.DD"),o=n()(null==a?void 0:a.searchTo,"YYYY-MM-DD").format("YYYY.MM.DD");e.post({href:window.location.href,type:a.type,domain:a.domain,textDate:"".concat(r," ~ ").concat(o),title:"[호텔] ".concat(a.areaName||a.regionName),timeStamp:new Date().getTime(),textParam:"총 ".concat(null==(l=a.occupancies)?void 0:l.reduce((e,a)=>e+a.adult+a.childs.length,0),"인")})},remove:e.remove}}},65148:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>E,default:()=>P});var l=t(39942),r=t(85486),n=t(26935),o=t(46729),i=t(34302),s=t(97799),d=t(59558),c=t(17656),m=t(56310),u=t(19894),p=t(63630),x=t(98626),h=t(43999),v=t.n(h),f=t(58214),N=t(10847),g=t(31031);let y={name:"",value:0},b=e=>{var a;let{onClose:t,selectDates:n,setSelectDates:o}=e,i=(0,x.wA)(),{sendGaSearchEvent:s}=(0,d.B)(),{openAlert:c}=(0,u.M)(),[h,b]=(0,f.useState)(0),[j,_]=(0,f.useState)(y),[w,T]=(0,r.gt)(),[D,Y]=(0,f.useState)(y),[M,C]=(0,f.useState)(y),[F,k]=(0,f.useState)(y),[S,A]=(0,f.useState)("domestic"===w.type);return(0,f.useEffect)(()=>{A("domestic"===w.type)},[w.type]),(0,f.useMemo)(()=>{_((()=>{if((null==M?void 0:M.name)==="대한민국"){if(null==F?void 0:F.value)return{...F,isCountry:!1}}else{if(null==F?void 0:F.value)return{...F,isCountry:!1};if(null==D?void 0:D.value)return{...D,isCountry:!0}}return y})())},[M,D,F]),(0,f.useEffect)(()=>{var e,a,t;let l={name:null==M?void 0:M.name,value:null==M?void 0:M.value};(null==(e=w.filter)?void 0:e.endLocation)&&(l.firstCity=(null==(a=w.filter)?void 0:a.endLocation)?String(null==(t=w.filter)?void 0:t.endLocation):void 0),_(l)},[M]),(0,l.jsxs)("div",{className:"".concat("package"===w.domain?"right-0":"left-0"," absolute top-[80px] w-[395px] pt-5 pb-10 min-h-[278px] bg-[#fff] border border-[#D3DBD9] shadow-[0px_3px_6px_#1111111A] rounded-[5px] z-[10]"),children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("div",{className:"px-[30px]",children:(0,l.jsxs)("div",{className:"border-b border-[#D3DBD9] py-[24px] min-h-[68px] flex items-center justify-between cursor-pointer",onClick:()=>b(+(1!==h)),onKeyPress:void 0,role:"button",tabIndex:0,children:[(0,l.jsx)("p",{className:"mb-0 h-[19px] text-[16px] font-medium leading-[19px]",children:(null==j?void 0:j.name)||(null==(a=w.filter)?void 0:a.endLocation)||"지역을 선택해주세요."}),(0,l.jsx)("div",{className:"duration-300 ".concat(1===h?"rotate-180":""),children:(0,l.jsx)(m.Yj,{})})]})}),1===h&&(0,l.jsx)(g.A,{citySelected:F,countrySelected:D,isDomesticTravel:S,regionSelected:M,setCitySelected:k,setCountrySelected:Y,setIsDomesticTravel:A,setRegionSelected:C,setVisibleTab:b})]}),(0,l.jsxs)("div",{className:"px-[30px]",children:[(0,l.jsxs)("div",{className:"border-b border-[#D3DBD9] h-[68px] flex items-center py-[24px] justify-between cursor-pointer",onClick:()=>b(2*(2!==h)),onKeyPress:void 0,role:"button",tabIndex:0,children:[(0,l.jsx)("p",{className:"mb-0 h-[19px] text-[16px] font-medium leading-[19px]",children:"여행 예정일"}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("p",{className:"mr-[18px] mb-0 font-semibold h-4 leading-4 text-[#009C75]",children:(0,l.jsx)("span",{children:n.map(e=>e.format("YYYY.MM.DD")).join(" ~ ")})}),(0,l.jsx)("div",{className:"duration-300 ".concat(2===h?"rotate-180":""),children:(0,l.jsx)(m.Yj,{})})]})]}),2===h&&(0,l.jsx)(N.A,{date:n,setDate:e=>{2===e.length&&e[0]&&e[1]?o([e[0],e[1]]):1===e.length&&e[0]&&o([e[0]])}})]}),(0,l.jsx)("div",{className:"px-[30px] ".concat(2===h?"mt-[10px]":"mt-[30px]"),children:(0,l.jsx)("button",{className:"bg-[#009C75] rounded-[5px] w-full h-[52px]",onClick:()=>
1{if("대한민국"!==w.areaName||(null==j?void 0:j.value)){var e,a,l,o,d,m;if(t(),i((0,p.kZ)([])),"package"===w.domain){let e="",a="",t="",l="";S?(e="국내여행",a=null==M?void 0:M.name,t=null==D?void 0:D.name):(e="해외여행",a=null==M?void 0:M.name,t=null==D?void 0:D.name,l=""===F.name?null==F?void 0:F.name:(null==D?void 0:D.name)!==""&&(null==F?void 0:F.name)!==""&&(null==D?void 0:D.name)===(null==F?void 0:F.name)?"":null!=(d=null==F?void 0:F.name)?d:""),s({ep_event_page:"메인_".concat(e,"_검색결과"),ep_event_area:"통합_검색",ep_event_button:"선택완료",ep_event_category1_area:a,ep_event_category2_area:t,ep_event_category3_area:l,ep_event_depart_date:v()(null==n?void 0:n[0]).format("YYYYMMDD"),ep_event_arrival_date:(null==n?void 0:n[1])?v()(null==n?void 0:n[1]).format("YYYYMMDD"):v()(null==n?void 0:n[0]).add(1,"days").format("YYYYMMDD")})}let c=F.areaKeywordNo||D.areaKeywordNo||M.areaKeywordNo||w.areaKeywordNo,u=(null==F||null==(e=F.filterThemeNo)?void 0:e.length)?F.filterThemeNo:(null==D||null==(a=D.filterThemeNo)?void 0:a.length)?D.filterThemeNo:(null==M||null==(l=M.filterThemeNo)?void 0:l.length)?M.filterThemeNo:[],x=(0,r.ZH)(),h=(null==F?void 0:F.name)||(null==D?void 0:D.name)||(null==M?void 0:M.name)||(null==j?void 0:j.name)||w.areaName||w.regionName||"",f=null!=(m=[null==F?void 0:F.startingPoint,null==D?void 0:D.startingPoint,null==M?void 0:M.startingPoint,null==(o=w.filter)?void 0:o.startingPoint].find(e=>Array.isArray(e)&&e.length>0))?m:"overseas"===w.type?["SEL"]:void 0,N=S||(null==M?void 0:M.name)==="대한민국"?"domestic":"overseas";T({...w,searchFrom:(null==n||n[1],v()(null==n?void 0:n[0]).format("YYYY-MM-DD")),searchTo:(null==n?void 0:n[1])?v()(null==n?void 0:n[1]).format("YYYY-MM-DD"):x.searchTo,areaKeywordNo:c,type:N,areaName:h,regionName:"",themeNo:F.themeNo||D.themeNo||M.themeNo,filter:{...r.pe,..."domestic"!==N&&f?{startingPoint:f}:{},...u.length>0&&{themeNo:u}}})}else c({message:"지역을 선택해주세요.",onCancel:()=>{},onOk:()=>{},canCancel:!1})},type:"button",children:(0,l.jsx)("p",{className:"mb-0 h-[19px] text-[16px] text-center leading-[19px] font-semibold text-[#fff]",children:"검색하기"})})}),(0,l.jsx)("div",{className:"fixed top-0 left-0 w-full h-full z-[-2]",onClick:()=>t(),onKeyPress:void 0,role:"button",tabIndex:0,children:" "})]})};var j=t(14453),_=t(14406),w=t(76194),T=t(84222),D=t(91349),Y=t(14160),M=t(93529),C=t.n(M);let F=()=>{var e;let{findPackEventPageName:a,findPackEventAreaName:t,sendGaClickEvent:m}=(0,d.B)(),{searchParams:u,packageFilter:p,getPackageFilter:x,resetPackageFilter:h,isFetchingStartingPoints:N,travelTypeApi:g,handleUpdateQueryString:y,endLocation:M}=(0,c.ru)(),[F,k]=(0,r.gt)(),[S,A]=(0,o.Eq)(),{gnbHotelUseState:E}=(0,T.hB)(),{isBP:P}=(0,w.A)(),{type:K}=u,B=F.domain,L=(0,f.useRef)({}),H=(0,f.useRef)({}),I=(0,f.useRef)({});(0,f.useEffect)(()=>{"package"===B?(L.current={searchFrom:F.searchFrom,searchTo:F.searchTo},I.current={filter:F.filter,themeNo:F.themeNo,type:F.type,areaKeywordNo:F.areaKeywordNo,areaName:F.areaName,regionName:F.regionName,regionNo:F.regionNo,countryCode:F.countryCode,subType:F.subType}):"hotel"===B&&(H.current={searchFrom:S.searchFrom,searchTo:S.searchTo})},[B,F.searchFrom,F.searchTo,F.filter,F.themeNo,F.type,F.areaKeywordNo,F.areaName,F.regionName,F.regionNo,F.countryCode,F.subType,S.searchTo]);let R=(0,f.useMemo)(()=>[{id:"package",name:"domestic"===F.type?"국내여행":"해외여행"},...!P||E.isUse&&E.isDisplaySearch?[{id:"hotel",name:"호텔"}]:[]],[F.type,B,P,E]);(0,f.useEffect)(()=>{var e,a;if("package"!==B||"overseas"!==F.type||"overseas"!==g||!(F.areaKeywordNo||F.themeNo))return void h();let t=(0,r.ZH)(),l=null!=(e=(0,D.B)(F.searchFrom))?e:t.searchFrom,n=null!=(a=(0,D.B)(F.searchTo))?a:t.searchTo;x({areaNo:F.areaKeywordNo||0,themeNo:F.themeNo||0,travelType:"GNBOverseasTravel",searchFrom:l,searchTo:n!==l?n:null})},[B,F.type,F.areaKeywordNo,F.themeNo,F.searchFrom,F.searchTo,g,x,h]);let O=(0,f.useMemo)(()=>(0,j.d2)(null==p?void 0:p.startingPoint),[null==p?void 0:p.startingPoint]),V=(0,f.useMemo)(()=>{var e,a;let t=null!=(a=null==(e=F.filter)?void 0:e.startingPoint)?a:[];if(!t.length)return[];if(t.includes("ALL"))return["ALL"];let l=O.find(e=>e.codes.some(e=>t.includes(e)));return l?[l.label]:[]},[null==(e=F.filter)?void 0:e.startingPoint,O]),Z="package"===B&&"overseas"===F.type,z=Z&&N&&"domestic"!==g,[U,X]=(0,f.useState)(!1),[q,G]=(0,f.useState)(()=>{var e,a;let t=(0,r.ZH)(),l=null!=(e=(0,D.B)(F.searchFrom))?e:t.searchFrom,n=null!=(a=(0,D.B)(F.searchTo))?a:t.searchTo,o=[];return l&&o.push(v()(l)),n&&o.push(v()(n)),o});return(0,f.useEffect)(()=>{var e,a;let t=(0,r.ZH)(),l=null!=(e=(0,D.B)(F.searchFrom))?e:t.searchFrom,n=null!=(a=(0,D.B)(F.searchTo))?a:t.searchTo,o=[];l&&o.push(v()(l)),n&&o.push(v()(n)),G(o)},[F.searchFrom,F.searchTo]),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"relative flex justify-between border-b-[2px] border-[#111]",children:[(0,l.jsx)("div",{className:"relative mt-[38px] flex items-center justify-between mb-[30px]",children:(0,l.jsx)("div",{className:"w-fit flex items-center pb-[10px]",children:null==R?void 0:R.map((e,a)=>(0,l.jsxs)("div",{className:"text-[20px] h-6 leading-[26px] mr-10 whitespace-nowrap  ".concat(e.id===B?"text-[#009C75] font-semibold":"text-[#aaa] font-medium"),onClick:()=>
1{var a,t,l,r,n,o,s,d,c,u;if(m({ep_event_page:"메인_".concat(e.name,"_검색결과"),ep_event_area:"탭",ep_event_button:"".concat(null!=(a=null==e?void 0:e.name)?a:"")}),"package"===e.id){let e=I.current;k({domain:"package",searchFrom:L.current.searchFrom,searchTo:L.current.searchTo,filter:null!=(t=e.filter)?t:{},themeNo:null!=(l=e.themeNo)?l:0,type:null!=(r=e.type)?r:F.type,areaKeywordNo:null!=(n=e.areaKeywordNo)?n:F.areaKeywordNo,areaName:null!=(o=e.areaName)?o:F.areaName,regionName:null!=(s=e.regionName)?s:F.regionName,regionNo:null!=(d=e.regionNo)?d:F.regionNo,countryCode:null!=(c=e.countryCode)?c:F.countryCode,subType:null!=(u=e.subType)?u:F.subType})}else A({domain:"hotel",type:"domestic"===F.type?"domestic":"overseas",areaKeywordNo:Number(F.areaKeywordNo)||0,areaName:F.areaName||M||"",regionName:F.regionName||"",searchFrom:H.current.searchFrom||i.i.searchFrom,searchTo:H.current.searchTo||i.i.searchTo,isMap:!1,occupancies:i.i.occupancies})},role:"button",tabIndex:0,children:[null==e?void 0:e.name,(null==e?void 0:e.id)===B&&(0,l.jsx)("div",{className:"w-full h-[2px] bg-[#009C75]"})]},a))})}),(0,l.jsxs)("div",{className:"flex space-x-6 items-center relative",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsxs)("div",{className:"flex items-center gap-[12px] max-w-[1000px]",children:[z?(0,l.jsx)("div",{className:"flex items-center h-[44px] rounded-[26px] border border-[#DEE4E2] px-[30px] flex-1 min-w-0",children:(0,l.jsx)(_.A,{indicator:(0,l.jsx)(n.A,{style:{fontSize:24}}),spinning:N})}):(0,l.jsx)(l.Fragment,{children:Z&&"overseas"===g&&!!(null==O?void 0:O.length)&&(0,l.jsxs)("div",{className:"flex items-center rounded-[26px] border border-[#DEE4E2] px-[30px] h-[44px] flex-1 min-w-0",children:[(0,l.jsx)("p",{className:"text-[16px] font-medium",children:"출발지"}),(0,l.jsx)("span",{className:"px-[20px] text-[#AAAAAA]",children:"|"}),(0,l.jsx)("div",{className:"pt-[6px] m-0 min-w-0 flex-1",children:(0,l.jsx)(s.A,{baseStyle:"radio",isUseParentValue:!0,onClickBtn:e=>{m({ep_event_page:a(),ep_event_area:t("필터"),ep_event_button:"출발지_".concat(e)});let l=O.find(a=>a.label===e);y({filter:{startingPoint:"전체"===e?["ALL"]:(null==l?void 0:l.codes[0])?[l.codes[0]]:[]}},{isFullRouteChange:!1})},options:[{label:"전체",value:"ALL"},...O.map(e=>({label:e.label,value:e.label}))],span:"",style:{height:"27px",marginBottom:"-4px"},value:V})})]})}),(0,l.jsxs)("div",{className:"h-[44px] w-fit px-[30px] bg-[#f5f6f6] rounded-[26px] flex items-center justify-center cursor-pointer flex-shrink-0",onClick:()=>X(!U),role:"button",tabIndex:0,children:[(0,l.jsxs)("p",{className:"mb-0 mr-5 h-[20px] font-medium text-base flex gap-2 items-center",children:[M||(null==u?void 0:u.regionName)||(null==u?void 0:u.areaName)||"지역을 선택해주세요.",(0,l.jsx)(Y.Ck,{height:10,width:15})]}),(0,l.jsx)("div",{className:"w-[1px] h-[14px] bg-[#aaa] mr-5"}),(0,l.jsxs)("p",{className:"mb-0 h-[20px] font-medium text-base flex gap-2 items-center",children:[(0,l.jsx)("span",{children:q.map(e=>e.format("YYYY.MM.DD")).join(" ~ ")}),(0,l.jsx)(Y.Vv,{height:20,width:20})]})]})]})}),"hotel"===B&&(0,l.jsx)("div",{children:S.isMap?(0,l.jsxs)("div",{"aria-hidden":!0,className:"cursor-pointer flex flex-row space-x-[8px] justify-center items-center px-[30px] py-[12px] rounded-[22px] border border-[#D3DBD9]",onClick:()=>A({isMap:!1}),children:[(0,l.jsx)(C(),{alt:"",height:16,src:"/icons/hotels/icon_list_18.svg",width:16}),(0,l.jsx)("span",{className:"text-[16px] leading-[20px] font-semibold text-[#111]",children:"목록으로 보기"})]}):(0,l.jsxs)("div",{"aria-hidden":!0,className:"cursor-pointer flex flex-row space-x-[8px] justify-center items-center px-[30px] py-[12px] rounded-[22px] border border-[#D3DBD9] ",onClick:()=>A({isMap:!0}),children:[(0,l.jsx)(Y.T5,{height:16,width:16}),(0,l.jsx)("span",{className:"text-[16px] leading-[20px] font-semibold text-[#111]",children:"지도로보기"})]})}),U&&(0,l.jsx)(b,{onClose:()=>X(!1),selectDates:q,setSelectDates:G})]})]})})};var k=t(46551),S=t(25538),A=t(78801);t(36011).A.of(x.iE).getServerSideProps(async(e,a)=>{var t,l;return await (null==(l=Promise)?void 0:l.all(null==a?void 0:a.dispatch(null===A.FH||void 0===A.FH||null==(t=A.FH.util)?void 0:t.getRunningQueriesThunk()))),{props:{}}});var E=!0;let P=function(){let[e]=(0,r.gt)();return(0,l.jsx)(c.aj,{children:(0,l.jsxs)("div",{className:"mt-[60px] w-full flex-1 max-w-[1200px] mx-auto text-[#111]",children:[(0,l.jsx)("p",{className:"font-bold text-[26px] h-[32px] leading-[34px]",children:"검색결과"}),(0,l.jsx)(F,{}),(0,l.jsx)("div",{className:"mt-[30px]",children:"package"===e.domain?(0,l.jsx)(S.z,{}):"hotel"===e.domain?(0,l.jsx)(k.D,{}):null})]})})}},70955:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main-page/search-result",function(){return t(65148)}])}},e=>{e.O(0,[7061,4374,9158,558,3373,2152,6914,8651,3235,6831,1761,6551,5538,636,6593,8792],()=>e(e.s=70955)),_N_E=e.O()}]);

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.