PageSourceSearch

https://www.spacecloud.kr/_next/static/chunks/43-s4-4u83e03.js

js spacecloud.kr collected 2026-10-01 11:28:02 UTC 147,767 bytes, 10 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="adb29950-8226-422e-b75b-1146dc190fa7")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,669090,e=>{"use strict";var t=e.i(503517),r=e.i(448503),i=e.i(172450);let l=0;var s=e.i(226472),a=e.i(231859),n=e.i(637956),o=e.i(779278),c=e.i(538271),d=e.i(668449),p=e.i(747173);let m=async()=>(await (0,p.api)("/search/popular_keywords")).popular_keywords??[];var u=e.i(934469),h=e.i(239134);let x={"data-v-mh":""},f="search_section_title text-mo-subtitle-2 font-medium mb-3 min-[1025px]:text-pc-body-1 min-[1025px]:font-semibold min-[1025px]:mb-2 min-[1025px]:py-0 min-[1025px]:px-5",b=String.raw`p-0 [.recommend\_keyword\_list_&]:text-secondary-1 [.recommend\_keyword\_list_&]:text-mo-subtitle-3 font-normal min-[1025px]:bg-sc-white`,g="recent_keyword_list min-[1025px]:bg-transparent min-[1025px]:rounded-none",y=e=>`flex items-center py-0 px-4 ${e?"border-b-0 [border-bottom-style:none]":"border-b [border-bottom-style:solid] border-b-gray-03"} min-[1025px]:py-3 min-[1025px]:px-5 min-[1025px]:border-b-0 min-[1025px]:border-b-current min-[1025px]:[border-bottom-style:none] [&:hover]:bg-gray-01`,_=String.raw`recent_space_button flex items-center flex-1 min-w-0 h-[55px] py-4 px-0 [.recent\_keyword\_list_&]:text-mo-subtitle-3 font-normal leading-5 min-[1025px]:h-6 min-[1025px]:p-0 min-[1025px]:[.recent\_keyword\_list_&]:text-pc-subtitle-3`,w="recent_text flex items-start gap-2",A=String.raw`close_button p-0 ml-auto w-4 h-4 min-[1025px]:hidden min-[1025px]:w-6 min-[1025px]:h-6 [.recent\_keyword\_list_li:hover_&]:block [.recent\_keyword\_list_li:hover_&]:h-6 [.recent\_keyword\_list_li:hover_&]:ml-auto`,v=String.raw`show_more_button w-full pt-6 px-0 pb-4 text-center [.recent\_keyword\_wrapper_&]:text-pc-body-2 font-medium leading-[17px] [.recent\_keyword\_wrapper_&]:text-gray-05`,j=String.raw`[.search\_bottom\_wrapper_&]:text-mo-subtitle-2 font-medium leading-5`,N=String.raw`[.search\_bottom\_wrapper_&]:text-sc-black`,k=String.raw`[.search\_bottom\_wrapper_&]:text-gray-04 cursor-auto`,C="relative flex-1 h-9 [transition:all_0.4s_cubic-bezier(0.25,0.8,0.25,1)] min-[1025px]:h-12",S=String.raw`[.header\_wrapper_.search\_wrapper_&]:w-full [.header\_wrapper_.search\_wrapper_&]:h-9 [.header\_wrapper_.search\_wrapper_&]:pt-3 [.header\_wrapper_.search\_wrapper_&]:pr-14 [.header\_wrapper_.search\_wrapper_&]:pb-3 [.header\_wrapper_.search\_wrapper_&]:pl-4 [.header\_wrapper_.search\_wrapper_&]:border [.header\_wrapper_.search\_wrapper_&]:border-solid [.header\_wrapper_.search\_wrapper_&]:border-primary [.header\_wrapper_.search\_wrapper_&]:rounded-[48px] [.header\_wrapper_.search\_wrapper_&]:text-mo-subtitle-3 [.header\_wrapper_.search\_wrapper_&]:font-normal [.header\_wrapper_.search\_wrapper_&]:text-sc-black [.header\_wrapper_.search\_wrapper_&]:[transition:all_0.4s_cubic-bezier(0.25,0.8,0.25,1)] min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:text-pc-subtitle-3 min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:h-12 min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:px-15 pc:[input[type=text]&]:leading-[1.2]`,$=String.raw`min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:py-4`,E=String.raw`min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:rounded-t-[24px] min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:rounded-b-none min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:border-b-0 min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:border-b-current min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:[border-bottom-style:none] min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:font-medium min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:pt-4 min-[1025px]:[.header\_wrapper_.search\_wrapper_&]:pb-0 legacy-max-1025:[.header\_wrapper_.search\_wrapper_&]:pr-3!`,T="min-[1025px]:absolute min-[1025px]:left-5 min-[1025px]:[transform:translateY(-50%)] min-[1025px]:cursor-pointer min-[1025px]:z-sticky",P="min-[1025px]:top-[calc(50%+8px)]",I="text-pc-subtitle-3 shrink-0",M="text-primary font-bold",L="text-gray-05 font-medium";function D({onMenuClick:e,isOpenSpaceList:l=!1,onCloseSpaceList:p}){let R=(0,s.usePathname)(),O=(0,s.useRouter)(),B=(0,h.default)(),{categories:F,headerFilter:Q,setHeaderFilter:q,searchKeyword:U,setSearchKeyword:H,isMapView:z,setIsMapView:W}=(0,o.useMainState)(),{showToast:K}=(0,c.useToast)(),[Y,J]=(0,r.useState)("");(0,r.useEffect)(()=>{J(U)},[U]);let[V,X]=(0,r.useState)(!1),[G,Z]=(0,r.useState)([]),[ee,et]=(0,r.useState)(5),{data:er=[],isError:ei}=(0,d.useQuery)({queryKey:["search","popularKeywords"],queryFn:m,staleTime:18e5,enabled:V}),el=(0,r.useRef)(null),es=(0,r.useRef)(null),ea=()=>{try{let e=JSON.parse(localStorage.getItem("recentSearches")||"null");Z(e||[])}catch{Z([])}};(0,r.useEffect)(()=>{ea()},[]),(0,r.useEffect)(()=>{V&&eo()},[R]),(0,r.useEffect)(()=>{ei&&K("error","데이터를 불러올 수 없습니다")},[ei]);let en=()=>{!V&&(X(!0),(0,i.lockBodyScroll)(),l&&p?.(),B&&es.current?.focus())},eo=()=>{X(!1),et(5),(0,i.unlockBodyScroll)(),document.activeElement instanceof HTMLElement&&document.activeElement.blur()},ec=e=>{let t=F.map(({id:e,name:t})=>({id:e,name:t})),r=t.find(t=>t.name===e);return r||(r=t.filter(t=>e.includes(t.name)).sort((e,t)=>
2t.name.length-e.name.length)[0]),r||{id:0,name:"모든유형"}},ed=(e,t={})=>{e.id?(q({...Q,...t,space:{id:e.id,name:e.name}}),localStorage.setItem("last_selected_space_type",JSON.stringify(e)),(0,u.mirrorLastSpaceTypeCookie)(e)):(q({...Q,...t,space:{id:0,name:"모든유형"}}),localStorage.removeItem("last_selected_space_type"),(0,u.clearLastSpaceTypeCookie)())},ep=e=>{let t=new URLSearchParams(window.location.search);t.set("q",e),O.push(`/?${t.toString()}`)},em=()=>{let e=Y.trim();if(!e)return;let t=JSON.parse(localStorage.getItem("recentSearches")||"[]").filter(e=>e!==Y);t.unshift(Y),localStorage.setItem("recentSearches",JSON.stringify(t));let r=ec(e),i=new URLSearchParams(window.location.search);i.set("q",0!==r.id?r.name:Y),O.replace(`${R}?${i.toString()}`),ed(r),H(Y),eo(),ea(),"/"!==R&&ep(Y)},eu=e=>{let t=ec(e);ed(t,{region:{}}),H(e),eo(),ep(0!==t.id?t.name:e)},eh=()=>{if(J(""),H(""),V){let e=B?es.current:el.current;e?.focus()}else en()},ex=e=>{try{let t=JSON.parse(localStorage.getItem("recentSearches")||"[]");localStorage.setItem("recentSearches",JSON.stringify(t.filter(t=>t!==e))),ea()}catch{}},ef=()=>{localStorage.removeItem("recentSearches"),Z([])},eb=G.slice(0,ee),eg=G.length>ee,ey=e=>(0,t.jsxs)("div",{...x,className:"search_layer_wrapper fixed top-[68px] bottom-0 left-0 right-0 w-full h-screen supports-[height:100dvh]:h-[calc(100dvh-68px)] bg-gray-01 rounded-b-[24px] overflow-auto z-header pb-25 min-[1025px]:static min-[1025px]:h-auto min-[1025px]:bg-sc-white min-[1025px]:max-h-[450px] min-[1025px]:pb-0 min-[1025px]:border min-[1025px]:border-solid min-[1025px]:border-primary min-[1025px]:border-t-0 min-[1025px]:border-t-current min-[1025px]:[border-top-style:none]",children:[(0,t.jsx)("h3",{...x,className:"hidden_text",children:"검색 영역"}),(0,t.jsxs)("div",{...x,children:[er.length>0&&(0,t.jsxs)("section",{...x,className:"recommend_section mt-8 py-0 px-4 min-[1025px]:mt-0 min-[1025px]:pt-9 min-[1025px]:px-0 min-[1025px]:pb-0",children:[(0,t.jsx)("h4",{...x,className:f,children:"이런 공간은 어때요?"}),(0,t.jsx)("ul",{...x,className:"recommend_keyword_list flex gap-2 p-0 flex-wrap min-[1025px]:gap-2.5 min-[1025px]:py-0 min-[1025px]:px-5",children:er.map(e=>(0,t.jsx)("li",{...x,className:"flex items-center h-8 py-2 px-3 border border-solid border-secondary-1 rounded-[100px] bg-sc-white min-[1025px]:bg-transparent",children:(0,t.jsx)("button",{...x,className:b,onMouseDown:()=>{let t,r,i;return r=ec(t=e.keyword.trim()),void((i=new URLSearchParams(window.location.search)).set("q",0!==r.id?r.name:t),O.push(`${R}?${i.toString()}`),ed(r),H(t),eo(),"/"!==R&&ep(t))},children:e.keyword})},e.id))})]}),(0,t.jsxs)("section",{...x,className:"recent_section my-10 mx-0 py-0 px-4 min-[1025px]:mb-0 min-[1025px]:max-h-[308px] min-[1025px]:overflow-y-auto min-[1025px]:p-0",children:[(0,t.jsx)("h4",{...x,className:f,children:"최근에 검색했어요."}),"mobile"===e?G.length>0?(0,t.jsxs)("div",{...x,className:"recent_keyword_wrapper bg-sc-white rounded-lg",children:[(0,t.jsx)("ul",{...x,className:g,children:eb.map((e,r,i)=>(0,t.jsxs)("li",{...x,className:y(r===i.length-1),children:[(0,t.jsx)("button",{...x,className:_,onClick:()=>eu(e),children:(0,t.jsx)("span",{...x,className:w,children:e})}),(0,t.jsx)("button",{...x,className:A,onClick:t=>{t.stopPropagation(),t.preventDefault(),ex(e)},children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"close",width:B?"16px":"24px",height:B?"16px":"24px",fillColor:B?"#1f1f1f":"#767676"})})]},e))}),eg&&(0,t.jsx)("button",{...x,className:v,onClick:()=>et(e=>e+5),children:"더 보기"})]}):(0,t.jsx)("p",{...x,className:"no_recent_search_keyword rounded-lg h-14 flex items-center justify-center text-mo-subtitle-3 font-medium text-gray-05",children:"검색된 결과가 없어요."}):G.length>0?(0,t.jsx)("ul",{...x,className:g,children:G.slice(0,5).map((e,r,i)=>(0,t.jsxs)("li",{...x,className:y(r===i.length-1),children:[(0,t.jsx)("button",{...x,className:_,onClick:()=>eu(e),children:(0,t.jsx)("span",{...x,className:w,children:(0,t.jsx)("span",{...x,className:"recent_keyword max-w-[720px] whitespace-nowrap overflow-hidden text-ellipsis",children:e})})}),(0,t.jsx)("button",{...x,className:A,onClick:t=>{t.stopPropagation(),t.preventDefault(),ex(e)},children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"close",width:"24px",height:"24px",fillColor:"#767676"})})]},e))}):(0,t.jsx)("p",{...x,className:"no_recent_keyword_text text-mo-subtitle-2 not-italic font-medium leading-5 text-gray-05 text-center py-3 px-5 min-[1025px]:pt-3 min-[1025px]:px-5 min-[1025px]:pb-8",children:"검색된 결과가 없어요."})]}),(0,t.jsx)("div",{...x,className:"search_bottom_wrapper fixed left-0 right-0 bottom-0 bg-sc-white border-t [border-top-style:solid] border-t-gray-03 rounded-b-lg py-4 px-3 min-[1025px]:sticky",children:(0,t.jsx)("button",{...x,className:`${j} ${0===G.length?k:N}`,onClick:ef,disabled:0===G.length,children:"모두 지우기"})})]})]});return(0,t.jsxs)("div",{...x,children:[(0,t.jsx)("div",{...x,className:"main_header mobile_header bg-sc-white shadow-[0_1px_0] shadow-legacy-black-10 [.main\\_header&]:block min-[1025px]:[.main\\_header&]:hidden",children:(0,t.jsxs)("div",{...x,className:"header_wrapper relative max-w-480 my-0 mx-auto flex items-center pt-5 px-4 pb-3 gap-1 min-[1025px]:justify-between min-[1025px]:py-4 min-[1025px]:px-21 min-[1025px]:gap-4",children:[(0,t.jsx)("h2",{...x,className:"hidden_text",children:"Spacecloud Header"}),V&&(0,t.jsx)("button",{...x,className:"backward_button p-0 h-6 w-6",onClick:eo,children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:"90",strokeWidth:"2px"})}),!V&&!l&&(0,t.jsx)("a",{href:"/",...x,className:"mobile_logo_button p-0 w-9 h-9 flex items-center justify-center",children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"symbolLogo",width:"36px",height:"36px",className:`${T} ${V||l?P:"min-[1025px]:top-1/2"} icon_logo`})}),(0,t.jsxs)("div",{...x,className:`${C} ${V||l?"min-[1025px]:w-[808px]":"min-[1025px]:w-[638px]"}
2 search_wrapper${V||l?" expanded":""}`,children:[(0,t.jsx)("input",{className:`${S} ${V||l?E:$}`,...x,ref:es,type:"text",autoComplete:"off",placeholder:"어떤 공간을 찾으세요?",onChange:e=>J(e.target.value),onMouseDown:en,onTouchStart:en,onKeyUp:e=>{"Enter"===e.key&&em()},value:Y}),Y.length>0?(0,t.jsx)("button",{...x,className:"search_button absolute right-3 top-1/2 [transform:translateY(-50%)] p-0 w-7 h-7 cursor-pointer flex items-center justify-center min-[1025px]:right-4",onClick:eh,children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"close",width:"24px",height:"24px",fillColor:"#1f1f1f",strokeWidth:"1px",className:"icon_search"})}):(0,t.jsx)("button",{...x,className:"search_button absolute right-3 top-1/2 [transform:translateY(-50%)] p-0 w-7 h-7 cursor-pointer flex items-center justify-center min-[1025px]:right-4",onClick:em,children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"search",width:"24px",height:"24px",strokeColor:"#4f00f8",fillColor:"#fff",strokeWidth:"3px",className:"icon_search"})})]}),!V&&!l&&(0,t.jsx)("button",{...x,className:"view_toggle_button flex items-center justify-center p-0 w-9 h-9 ml-1",onClick:()=>{W(!z)},children:(0,t.jsx)(n.default,{dataAttrs:x,icon:z?"list":"map",width:"36px",height:"36px",strokeColor:"#000",fillColor:"#fff"})}),V&&ey("mobile")]})}),(0,t.jsx)("div",{...x,className:"main_header desktop_header bg-sc-white shadow-[0_1px_0] shadow-legacy-black-10 [.main\\_header&]:hidden min-[1025px]:[.main\\_header&]:relative min-[1025px]:[.main\\_header&]:block min-[1025px]:z-header",children:(0,t.jsxs)("div",{...x,className:`${V?"expanded ":""}header_wrapper relative max-w-480 my-0 mx-auto flex items-center pt-5 px-4 pb-3 gap-1 min-[1025px]:justify-between min-[1025px]:py-4 min-[1025px]:px-21 min-[1025px]:gap-4`,children:[(0,t.jsx)("h2",{...x,className:"hidden_text",children:"Spacecloud Header"}),(0,t.jsxs)("div",{...x,className:"logo_wrapper flex items-center gap-3",children:[(0,t.jsx)("button",{...x,className:"menu_button p-0 w-7 h-7","aria-label":"전체 메뉴",onClick:()=>{V&&eo(),e?.()},children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"menu",width:"28px",height:"28px",fillColor:"#000"})}),(0,t.jsx)("a",{href:"/",...x,className:"header_link inline-block h-6",children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"textLogo",width:"134px",height:"24px",fillColor:"#000"})})]}),(0,t.jsx)("div",{...x,className:"search_inner flex items-center gap-3",children:(0,t.jsxs)("div",{...x,className:`${C} ${V?"min-[1025px]:w-[808px]":"min-[1025px]:w-[638px]"} search_wrapper${V?" expanded":""}`,children:[(0,t.jsx)(n.default,{dataAttrs:x,icon:"symbolLogo",width:"24px",height:"24px",className:`${T} ${V?P:"min-[1025px]:top-1/2"} icon_logo${V?" expanded":""}`}),(0,t.jsx)("input",{className:`${S} ${V?E:$}`,...x,ref:el,type:"text",autoComplete:"off",placeholder:"어떤 공간을 찾으세요?",onChange:e=>J(e.target.value),onFocus:en,onKeyUp:e=>{"Enter"===e.key&&em()},value:Y}),Y.length>0&&(0,t.jsx)("button",{...x,className:`hidden min-[1025px]:flex min-[1025px]:absolute min-[1025px]:right-13 min-[1025px]:[transform:translateY(-50%)] min-[1025px]:p-0 min-[1025px]:w-6 min-[1025px]:h-6 min-[1025px]:cursor-pointer min-[1025px]:items-center min-[1025px]:justify-center ${V?P:"min-[1025px]:top-1/2"} clear_search_button${V?" expanded":""}`,onClick:eh,children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"close",width:"24px",height:"24px",fillColor:"#1f1f1f"})}),Y.length>0&&(0,t.jsx)("span",{...x,className:`hidden min-[1025px]:block min-[1025px]:absolute min-[1025px]:right-10 min-[1025px]:[transform:translateY(-50%)] min-[1025px]:w-px min-[1025px]:h-4 min-[1025px]:bg-gray-03 min-[1025px]:my-0 min-[1025px]:mx-2 ${V?P:"min-[1025px]:top-1/2"} search_divider${V?" expanded":""}`}),(0,t.jsx)("button",{...x,className:`search_button absolute right-3 top-1/2 [transform:translateY(-50%)] p-0 w-7 h-7 cursor-pointer flex items-center justify-center min-[1025px]:right-4 ${V?P:""}${V?" expanded":""}`,onClick:em,children:(0,t.jsx)(n.default,{dataAttrs:x,icon:"search",width:"28px",height:"28px",strokeColor:"#4f00f8",fillColor:"#fff",className:"icon_search"})}),V&&ey("pc")]})}),(0,t.jsxs)("div",{...x,className:`flex items-center gap-8 router_wrapper${V?" exp
2anded":""}`,children:[(0,t.jsx)(a.default,{href:"/",...x,className:`${I} ${"/"===R?M:L} router_link${"/"===R?" active":""}`,prefetch:!1,children:"공간찾기"}),(0,t.jsxs)(a.default,{...x,href:"/contents",className:`${I} relative ${R?.startsWith("/contents")?M:L} router_link contents_link${R?.startsWith("/contents")?" active":""}`,prefetch:!1,children:["추천",(0,t.jsx)("span",{...x,className:"new_badge absolute -top-3 -right-[15px] inline-flex items-center justify-center w-4.5 h-4.5 text-pc-body-4 font-semibold text-sc-white bg-primary rounded-[50%] leading-none",children:"N"})]})]})]})}),V&&!B&&(0,t.jsx)("div",{...x,className:"search_dimmed fixed top-0 right-0 bottom-0 left-0 bg-legacy-black-50 z-header-dimmed",onClick:eo})]})}let R={"data-v-msl":""},O={space:[{id:0,value:"all",label:"모든유형",sections:[]},{id:1,value:"practice",label:"연습",sections:["연습"]},{id:2,value:"meet",label:"모임",sections:["모임"]},{id:3,value:"studio",label:"촬영",sections:["촬영"]},{id:5,value:"event",label:"행사",sections:["행사"]},{id:6,value:"office",label:"오피스",sections:["오피스"]},{id:7,value:"camping",label:"캠핑",sections:["캠핑"]}],theme:[{id:0,value:"all",label:"전체",sections:[]},{id:1,value:"meet",label:"모임/파티",sections:["모임/파티"]},{id:2,value:"studio",label:"촬영/연습",sections:["촬영/연습"]},{id:3,value:"office",label:"공부/업무",sections:["공부/업무"]}]},B={space:["연습","모임","촬영","행사","오피스","캠핑"],theme:["모임/파티","촬영/연습","공부/업무"]},F={"20명 이상 모임":"20명 이상<br>모임","반려동물과 함께":"반려동물과<br>함께","루프탑 바베큐파티":"루프탑<br>바베큐파티","돌잔치/칠순잔치":"돌잔치<br>칠순잔치"},Q=e=>({id:e.id,name:e.name,section:{id:e.category_group_id,value:e.category_group_name},imageUrl:e.category_image_url,inactiveImageUrl:e.category_inactive_image_url}),q=e=>({id:e.theme_id,name:e.theme_name,section:{id:e.theme_group_id,value:e.theme_group_name},imageUrl:e.image_url,inactiveImageUrl:e.inactive_image_url});function U({onClose:e}){let i,l=(0,s.useRouter)(),a=(0,s.usePathname)(),d=(0,s.useSearchParams)(),{showToast:p}=(0,c.useToast)(),{categories:m,themes:h,headerFilter:x,setHeaderFilter:f,setSearchKeyword:b,setIsOnlySpaceTypeChanged:g}=(0,o.useMainState)(),y=(0,r.useRef)(null),_=(0,r.useRef)(!1),[w,A]=(0,r.useState)({id:"space",label:"유형별"}),[v,j]=(0,r.useState)({id:0,name:"모든유형",type:"space"}),[N,k]=(0,r.useState)({id:0,label:"모든유형"}),[C,S]=(0,r.useState)(!1),$=w.id||"space",E=O[$]||O.space,T=0===N.id,P="space"===$?m.map(Q):h.map(q),I=(i=B[$],(0===N.id?i:N.sections||[]).map(e=>({sectionTitle:e,sectionItems:P.filter(t=>t.section.value===e)})));(0,r.useEffect)(()=>{let e=d?.get("q");if(e){let t=m.find(t=>t.name===e||t.name.includes(e));if(t){j({id:t.id,name:t.name,type:"space"}),A({id:"space",label:"유형별"}),S(!0);return}let r=h.find(t=>t.theme_name===e||t.theme_name.includes(e));if(r){j({id:r.theme_id,name:r.theme_name,type:"theme"}),A({id:"theme",label:"테마별"}),S(!0);return}}let t=JSON.parse(localStorage.getItem("last_selected_space_type")||"null"),r=JSON.parse(localStorage.getItem("last_selected_theme")||"null");"space"===x.categoryType?0===x.space.id&&t&&m.some(e=>e.id===t.id)?j({id:t.id,name:t.name,type:"space"}):j({id:x.space.id,name:x.space.name,type:"space"}):(A({id:"theme",label:"테마별"}),0===x.theme.id&&r&&h.some(e=>e.theme_id===r.id)?j({id:r.id,name:r.name,type:"theme"}):j({id:x.theme.id,name:x.theme.name,type:"theme"})),S(!0)},[]),(0,r.useEffect)(()=>{if(!C||0===v.id)return;let e=y.current?.querySelector(".space_select_button.active");e&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},[C]),(0,r.useEffect)(()=>{_.current&&(_.current=!1,y.current&&(y.current.scrollTop=0))},[w]);let M=(t,r,i)=>{if(v.id===t&&v.type===i)return void p("info","theme"===i?"이미 선택된 테마입니다":"이미 선택된 공간 유형입니다");let s={...x,categoryType:i,[i]:{id:t,name:r}};
2"space"===i?s.theme={id:0,name:"모든유형"}:"theme"===i&&(s.space={id:0,name:"모든유형"}),f(s),g(!0),0===t?b(""):b(r),j({id:t,name:r,type:i}),"space"===i?0!==t?(localStorage.setItem("last_selected_space_type",JSON.stringify({id:t,name:r})),(0,u.mirrorLastSpaceTypeCookie)({id:t,name:r})):(localStorage.removeItem("last_selected_space_type"),(0,u.clearLastSpaceTypeCookie)()):"theme"===i&&(0!==t?localStorage.setItem("last_selected_theme",JSON.stringify({id:t,name:r})):localStorage.removeItem("last_selected_theme")),"/"!==a&&l.push(0!==t?`/?q=${encodeURIComponent(r)}`:"/"),e()};return(0,t.jsxs)("article",{...R,ref:y,className:"space_list_wrapper pt-2 px-0 pb-3 w-full h-[calc(100vh-56px)] supports-[height:100dvh]:h-[calc(100dvh-56px)] mt-14 fixed top-0 left-0 right-0 bottom-0 bg-sc-white z-header overflow-y-auto",children:[(0,t.jsxs)("header",{...R,children:[(0,t.jsx)("h3",{...R,className:"hidden_text",children:"공간 유형 선택"})," ",(0,t.jsx)("ul",{...R,className:"tab_list fixed top-14 left-0 right-0 flex items-center py-0 px-4 bg-sc-white",children:[{id:"space",label:"유형별"},{id:"theme",label:"테마별"}].map(e=>(0,t.jsx)("li",{...R,className:"flex-1 text-center",children:(0,t.jsx)("button",{...R,className:`tab_button text-[18px] font-semibold w-full h-full py-3 px-0 shadow-[inset_0_-2px_0_0] ${w.id===e.id?"text-sc-black shadow-sc-black active":"text-gray-04 shadow-gray-03"}`,onClick:()=>{var t;A({id:t=e.id,label:e.label}),k(O[t][0]),_.current=!0},children:`
3          ${e.label}
4        `})},e.id))})]})," ",(0,t.jsxs)("div",{...R,className:"space_list_contents_wrapper flex h-full",children:[(0,t.jsx)("aside",{...R,className:"space_list_side_nav h-full bg-gray-01 min-w-[108px] fixed top-26 left-0 bottom-0",children:(0,t.jsx)("ul",{...R,className:"side_tab_list",children:E.map(e=>(0,t.jsx)("li",{...R,children:(0,t.jsx)("button",{...R,className:`side_tab_button p-4 text-[15px] w-full h-full text-left ${e.id===N.id?"bg-sc-white font-semibold text-sc-black active":"font-medium text-gray-05"}`,onClick:()=>{var t;return t=e.id,void k(E.find(e=>e.id===t)||{id:0,label:"모든유형",sections:[]})},children:`
5            ${e.label}
6          `})},e.label))})})," ",(0,t.jsx)("div",{...R,className:"space_section_wrapper py-0 px-4 w-full ml-[108px] mt-9.5",children:(0,t.jsxs)("ul",{...R,className:"space_type_section_list pb-45",children:[0===N.id&&"space"===w.id&&0===v.id&&(0,t.jsx)("li",{...R,className:"section_list_item py-3 px-0 border-b border-solid border-gray-03 last-of-type:border-b-0",children:(0,t.jsxs)("button",{...R,className:"all_type_button active flex items-center flex-col gap-1 text-gray-05 text-[12px] font-medium w-13 p-0",onClick:()=>M(0,"모든유형","space"),children:[(0,t.jsx)("span",{...R,className:"icon_wrapper flex w-13 h-13 items-center justify-center [.all\\_type\\_button.active_&]:bg-primary [.all\\_type\\_button.active_&]:rounded-legacy-half",children:(0,t.jsx)(n.default,{icon:"allTypeActive",width:"40px",height:"40px",strokeColor:"#767676"})})," ",(0,t.jsx)("span",{...R,className:"all_type_text [.all\\_type\\_button.active_&]:text-primary",children:"모든유형"})]})})," ",I.map(e=>(0,t.jsxs)("li",{...R,className:`section_list_item border-b border-solid border-gray-03 last-of-type:border-b-0 ${!T?"border-b-0 p-0 purpose_list_item":"py-3 px-0"}`,children:[0===N.id&&(0,t.jsx)("strong",{...R,className:"section_title text-[14px] font-semibold",children:e.sectionTitle})," ",(0,t.jsx)("ul",{...R,className:"space_item_list mt-3 flex flex-wrap gap-x-4 gap-y-3",children:(e.sectionItems||[]).map(e=>{let r;return(0,t.jsx)("li",{...R,className:`flex justify-center w-[54px] ${v.id===e.id&&v.type===w.id?"active":""}`,children:(0,t.jsxs)("button",{...R,className:`space_select_button flex flex-col items-center gap-1 p-0 text-[12px] font-medium ${v.id===Number(e.id)&&v.type===w.id?"text-primary active":"text-gray-05"}`,onClick:()=>M(e.id,e.name,w.id),children:[(0,t.jsx)("span",{...R,className:"active_space_type flex items-center justify-center w-13 h-13 [.space\\_select\\_button.active_&]:rounded-legacy-half [.space\\_select\\_button.active_&]:bg-primary",children:(0,t.jsx)("img",{...R,width:"40",height:"40",src:e.imageUrl,alt:`${e.name} 아이콘`})})," ",(0,t.jsx)("span",{...R,className:"space_type_text whitespace-nowrap break-keep text-center",dangerouslySetInnerHTML:{__html:F[r=e.name]||r}})]})},e.id)})})]},e.sectionTitle))]})})]})]})}var H=e.i(272295);let z=(e,t)=>(0,d.useQuery)({queryKey:["layout","userMeStats",e],queryFn:async()=>(await (0,H.getUserMeStats)(e)).user_stats,enabled:t&&!!e});var W=e.i(128984);let K=e=>e?e>999e3?"999,999+":(0,W.formatNumberWithComma)(e):"0",Y=e=>e?e>9999?"9,999+":e:0,J="myMenuScrollPosition",V=()=>{sessionStorage.removeItem(J)},X=["/reserve/list","/my","/my/level","/my/coin","/my/coupons","/my/badge","/my/review","/space/zzim","/my/interest"];var G=e.i(940208),Z=e.i(84812);let ee={"data-v-mm":""},et=Z.default.src,er=[{label:"이벤트",link:"/event",hasArrow:!0},{label:"공지사항",link:"/board/notice",hasArrow:!0},{label:"도시산책",link:"https://citylog.spacecloud.kr",blankTarget:!0,hasArrow:!0},{label:"도움말",link:"https://plucky-sleep-a52.notion.site/3ee61c78fc1c442a85dea202782d5102",blankTarget:!0,hasArrow:!0}],ei=[{href:"/introduction",title:"서비스소개"},{href:"/agreement",title:"이용약관"},{href:"/policyPerson",title:"개인정보처리방침"},{href:"/policyOperate",title:"운영정책"}],el="h-14 text-mo-subtitle-3 not-italic font-medium leading-[18px]",es="border-b [border-bottom-style:solid] border-b-gray-03",ea="border-b-0 [border-bottom-style:none]",en="item_link flex py-4 px-0",eo="label_wrapper flex items-center gap-1 mr-auto text-sc-black",ec="value_wrapper flex items-center gap-1 text-sc-black",ed="flex py-4 px-0 text-sc-black text-mo-subtitle-3 not-italic font-medium leading-[18px]",ep="flex items-center w-full text-sc-black",em="section_title text-mo-subtitle-2 not-italic font-semibold leading-5 text-sc-black mb-3",eu="profile_menu_list bg-sc-white py-0 px-6 rounded-lg",eh=String.raw`normal_menu_button flex items-center w-full h-full p-0 [.menu\_wrapper_&]:text-sc-black [.menu\_wrapper_&]:text-mo-subtitle-3 not-italic font-medium leading-[18px]`,ex=e=>(0,t.jsx)(n.default,{className:e,icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:"270",dataAttrs:ee});function ef({onClose:e,onRequestLogout:i}){let l,o=(0,s.useRouter)(),c=(0,s.usePathname)(),[d,p]=(0,r.useState)(!1),m=(0,G.useSessionSnapshotSync)(),u=!!m,{data:h}=z(m?.token,u),x=(0,r.useRef)(null),f=(0,r.useRef)(0),b=(0,r.useRef)(!1),g=(0,r.useRef)([]),[y,_]=(0,r.useState)(!1),w=(0,r.useCallback)(()=>{var e;e=f.current,sessionStorage.setItem(J,e.toString())},[]),A=(0,r.useCallback)(()=>{let e=sessionStorage.getItem(J);if(null===e||b.current)return;let t=setTimeout(()=>{let t=x.current;if(t){let r=parseInt(e,10);t.scrollTop=r,f.current=r,b.current=!0}_(!0)},50);g.current.push(t)},[]);(0,r.useEffect)(()=>{let e=x.current,t=()=>{e&&(f.current=e.scrollTop)};return e?.addEventListener("scroll",t,{passive:!0}),()=>{e?.removeEventListener("scroll",t),w(),g.current.forEach(clearTimeout),g.current=[]}},[w]),(0,r.useEffect)(()=>{let e=sessionStorage.getItem(J);e&&"0"!==e||_(!0)},[]),(0,r.useEffect)(()=>{b.current?y||_(!0):A()});let v=(0,r.useRef)(c);(0,r.useEffect)(()=>{var t;t=v.current,null!==t&&t!==c&&(X.includes(c)||"/"!==c)&&(w(),e()),v.current=c},[c,e,w]);let j=h?[{label:"누적 예약",value:`${Y(h.reservation_count)}회`},{label:"이용한 공간",value:`${Y(h.use_space_count)}곳`},{label:"함께한 사람들",value:`${Y(h.use_member_count)}명`}]:[],N=h?[{title:"프로필",items:[{icon:"myProfile",label:(l=(h.nickname||"").trim()).length>0?l:"게스트",value:"프로필 관리",link:"/my",hasArrow:!0},{icon:h.my_member_level_image,label:h.my_member_level_name||"스타터",value:"등급 혜택",link:"/my/level",hasArrow:!0}]},{title:"스클이 보내준 선물",items:[{icon:"myCoin",label:"내 코인",value:`${K(h.usable_coin_balance)}C`,link:"/my/coin",hasArrow:!0},{icon:"myCoupon",label:"내 쿠폰",value:`${h.my_coupons_count||0}장`,link:"/my/coupons",hasArrow:!0},{icon:"myBadge",label:"내 배지",value:`${h.my_badge_count||0}개 `,link:"/my/badge",hasArrow:!0}]},{title:"스클에 남긴 흔적",items:[{icon:"myReview",label:"이용후기/Q&A",value:`${h.review_count||0}건/${h.question_count||0}건`,link:"/my/review",hasArrow:!0},{icon:"myZzim",label:"찜한 공간",value:`${h.zzim_count||0}곳`,link:"/space/zzim",hasArrow:!0}
6,{icon:"myInterest",label:"관심 정보",value:h.is_interest_completed?"완성":"미완성",link:"/my/interest",hasArrow:!0}]}]:[],k=N.find(e=>"프로필"===e.title),C=N.filter(e=>"프로필"!==e.title),S=m?.img_url,$=(e,r,i)=>(0,t.jsx)("li",{...ee,className:`${el} ${r===i.length-1?ea:es}`,children:(0,t.jsxs)(a.default,{...ee,href:e.link,className:en,prefetch:!1,children:[(0,t.jsxs)("div",{...ee,className:eo,children:[e.icon&&(0,t.jsx)(n.default,{icon:e.icon,width:"24px",height:"24px",dataAttrs:ee}),(0,t.jsx)("span",{...ee,className:"label_text",children:e.label})]}),(0,t.jsxs)("div",{...ee,className:ec,children:[(0,t.jsx)("span",{...ee,className:"value_text",children:e.value}),e.hasArrow&&ex()]})]})},e.label);return(0,t.jsxs)("article",{ref:x,...ee,className:`w-full h-screen supports-[height:100dvh]:h-dvh fixed top-0 left-0 right-0 bottom-0 bg-gray-01 z-sidebar overflow-y-auto [transition:opacity_0.1s_ease-in-out] menu_wrapper${y?" scroll-ready opacity-100":""}`,children:[(0,t.jsx)("header",{...ee,className:"menu_header bg-sc-white h-12 text-center text-mo-subtitle-1 not-italic font-semibold leading-[22px] text-sc-black py-3 px-0 border-b [border-bottom-style:solid] border-b-gray-03",children:(0,t.jsx)("h3",{...ee,children:"마이"})}),(0,t.jsxs)("div",{...ee,className:"menu_list_wrapper pt-8 px-4 pb-45",children:[u?(0,t.jsxs)("ul",{...ee,className:"profile_section_list flex flex-col gap-8",children:[(0,t.jsxs)("li",{...ee,children:[(0,t.jsx)("h4",{...ee,className:em,children:"예약내역"}),(0,t.jsx)("ul",{...ee,className:eu,children:(0,t.jsx)("li",{...ee,className:`${el} ${ea}`,children:(0,t.jsxs)(a.default,{...ee,href:"/reserve/list",className:en,prefetch:!1,children:[(0,t.jsxs)("div",{...ee,className:eo,children:[(0,t.jsx)(n.default,{icon:"myReserve",width:"24px",height:"24px",dataAttrs:ee}),(0,t.jsxs)("span",{...ee,className:"label_text",children:[" ","예약내역 바로가기"]})]}),(0,t.jsx)("div",{...ee,className:ec,children:ex()})]})})})]}),(0,t.jsxs)("li",{...ee,children:[(0,t.jsx)("h4",{...ee,className:em,children:"스클과 함께한 추억"}),(0,t.jsx)("ul",{...ee,className:"memory_list bg-sc-white rounded-md flex py-4 px-0 text-center",children:j.map(e=>(0,t.jsxs)("li",{...ee,className:"flex-1 flex flex-col justify-center gap-1",children:[(0,t.jsx)("span",{...ee,className:"memory_label_text text-gray-05 text-pc-body-2 not-italic font-semibold leading-[17px]",children:e.label}),(0,t.jsx)("span",{...ee,className:"memory_value_text text-pc-subtitle-1 not-italic font-normal leading-[23px] text-sc-black",children:e.value})]},e.label))})]}),k&&(0,t.jsxs)("li",{...ee,children:[(0,t.jsx)("h4",{...ee,className:em,children:k.title}),(0,t.jsx)("ul",{...ee,className:eu,children:k.items.map((e,r,i)=>(0,t.jsx)("li",{...ee,className:`${el} ${r===i.length-1?ea:es}`,children:(0,t.jsxs)(a.default,{...ee,href:e.link,className:en,prefetch:!1,children:[(0,t.jsxs)("div",{...ee,className:eo,children:[(0,t.jsx)("figure",{...ee,className:"profile_image w-5 h-5 bg-cover rounded-[50%]",style:{backgroundImage:`url(${"myProfile"===e.icon?S||et:e.icon})`}}),(0,t.jsx)("span",{...ee,className:"label_text",children:e.label})]}),(0,t.jsxs)("div",{...ee,className:ec,children:[(0,t.jsx)("span",{...ee,className:"value_text",children:e.value}),e.hasArrow&&ex()]})]})},e.label))})]}),C.map(e=>(0,t.jsxs)("li",{...ee,children:[(0,t.jsx)("h4",{...ee,className:em,children:e.title}),(0,t.jsx)("ul",{...ee,className:eu,children:e.items.map($)})]},e.title))]}):(0,t.jsxs)("div",{...ee,className:"login_wrapper",children:[(0,t.jsx)("p",{...ee,className:"login_text text-mo-subtitle-3 not-italic font-medium leading-[18px] text-gray-05",children:"공간을 예약하려면 로그인이 필요해요."}),(0,t.jsx)("button",{...ee,onClick:()=>{o.push("/auth/login"),e()},className:"login_button block [.menu\\_wrapper_&]:rounded-lg bg-sc-black text-center py-3.5 px-0 w-full [.menu\\_wrapper_&]:text-sc-white mt-3",children:"로그인 / 회원가입"})]}),(0,t.jsxs)("ul",{...ee,className:"normal_menu_list mt-8 bg-sc-white py-0 px-6 rounded-lg",children:[er.map(e=>(0,t.jsx)("li",{...ee,className:`${ed} items-center ${es}`,children:e.blankTarget?(0,t.jsxs)("a",{...ee,href:e.link,target:"_blank",className:ep,children:[`${e.label} `,e.hasArrow&&ex("arrow_icon ml-auto")]}):(0,t.jsxs)(a.default,{...ee,href:e.link,prefetch:!1,className:ep,children:[e.label,e.hasArrow&&ex("arrow_icon ml-auto")]})},e.label)),(0,t.jsx)("li",{...ee,className:`${ed} items-center ${es}`,children:(0,t.jsx)("button",{...ee,className:eh,onClick:()=>{window.open("https://spacecloud.channel.io/support-bots/29706","_blank")},children:"1:1 문의"})}),(0,t.jsxs)("li",{...ee,className:`${ed} flex-col items-start ${u?es:ea} column_list`,children:[(0,t.jsxs)("button",{...ee,className:eh,onClick:()=>p(e=>!e),children:[(0,t.jsx)("span",{...ee,children:" 서비스 정보 "}),(0,t.jsx)(n.default,{className:"arrow_icon ml-auto",icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:d?"180":"",dataAttrs:ee})]}),d&&(0,t.jsx)("ul",{...ee,className:"service_info_list flex w-full flex-col mt-4 gap-4",children:ei.map(e=>(0,t.jsx)("li",{...ee,className:"flex items-center py-0 px-4 h-6 border-0 [border-style:none] text-sc-black text-pc-body-2 not-italic font-normal leading-[18px]",children:(0,t.jsx)(a.default,{...ee,href:e.href,prefetch:!1,className:ep,children:` ${e.title} `})},e.href))})]}),u&&(0,t.jsx)("li",{...ee,className:`${ed} items-center ${ea}`,children:(0,t.jsx)("button",{...ee,className:"logout_button w-full p-0 text-left [.menu\\_wrapper_&]:text-gray-05",onClick:i,children:"로그아웃"})})]}),(0,t.jsx)("a",{...ee,href:"https://partner.spacecloud.kr",target:"_blank",className:"host_center_link block w-full bg-primary rounded-lg py-4 px-6 text-sc-white h-[50px] mt-8 text-mo-subtitle-3 font-medium leading-[18px]",children:"호스트센터로 가기"})]})]})}function eb({length:e="100%",color:r="#ccc",margin:i}){return(0,t.jsx)("div",{className:"divider_horizon",style:{width:e,height:"1px",backgroundColor:r,margin:i||"10px 0"}})}var eg=e.i(867386),ey=e.i(694609),e_=e.i(256964),ew=e.i(159505);let eA=(e,t)=>
6"email"!==e.register_type||e.phone?t:"/auth/verify/phone",ev={src:e.i(785580).default,width:360,height:360,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRmoBAABXRUJQVlA4TF0BAAAvB8ABEM1VICICHgiADQIAAIAspF7PcATS4SgSAAAOAAgAAAAAAAAAAABAAAAABBICUoKgJCHvRUUCAADwQAByEAAAAM5/sbW3MRNSYIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICBBiPqp+dvKAwHIQQAAADj/uv9qS4IEEAAAAAgBAAAAAAAAAAAAAAAAAAAAAAAIAABAaCb9+v3ngRSgsAIAAJz/wxAAAAACACDAAQAAAAD+AADAIQAAIAAAAABgB+gDAAgAAAABEtT/8CghU0rhyvArAdA+rM1He/EokS/XSsMb7EMLCrXk7iM+wzKAkCll2NeOuYdXRDmC1rJV05kghf8GEYY8yrZZdEzUTyavwNjwAE5hBECFuQDt1EfqtJXmYePb+TvXjY92zl5XXKSGZ/s3OcxbcCxt1JDN020PYsR66n2fK6iKyr9Key3kdzN+e16qXI/XlPMDAA=="},ej={src:e.i(387989).default,width:360,height:360,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRrgAAABXRUJQVlA4TKwAAAAvB8ABEM1VICICHghADgIAAIC6Z1tTUQAAAYCCEgAAAAAAQAEAgAAgACAAAQAAARAgAhAKIAExm+0BAAARHggBCgMAAMD5H4YAAAAQAAABHgAAAACwAQCARwAAQAAAAADAHtAAAAQAAIABkq42hmxGAhszri6m1UfWdMtDLB9jVh0sw0L3WQ9wSqkP05A8IimB5jwbghdLkePbpjkFReDrLPOu9T7r/3mv+aEX"},eN={src:e.i(499344).default,width:360,height:360,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRnABAABXRUJQVlA4TGQBAAAvB8ABEM1VICICHgiADQIAAICqv/pzRBJACIKDAiAAAACAAwAAAQAAABACAAhAAEJAAAQkEL8KrLoBAADwQABMGAAAAM7/y17pdQceHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHCcO52++lZ5IAA2CAAAAOdfofj1rkMu8ipAEAABAAAIAAAAEAAAAAAIAAAoAABEBHASBOB7ip6jeCAFKKwAAADn/zAEAACAAAAIcAAAAACAPwAAcAgAAAgAAAAA2AH6AAACAABAgPTgf+QqQ+1T1gqGIAYA72uDaY0pGWR0x7BaPCL/SMsya+XNozjFwopCxTGrbjtPJZ8KyAkLH8FeTxPJRsHgmSNVSN4WK41HY7dT2HhHTAwtMcqBQKhQQnY+ufgAc9v/bJMaQTCMX+gwc1ADe1lH/p9aNU9AJ5os1LvXr75ls6F/xqebR6M1YPpbrFPGqaudvnOvq7/69xf3Aw=="},ek={src:e.i(932446).default,width:360,height:360,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRmoBAABXRUJQVlA4TF0BAAAvB8ABEM1VICICHgiADQIAAIB/r1enOEEEAAHwABAAAAAA4AAAgAAAAgBAAAAAgAAEQIJAgO4H//YAAAA8EAAbBAAAgPPXJen/1IsSCAWBCAAAAAAAAAAgABAAAAAAAIAAQAEAKOEIlHsov6TKPRCAIwQAAIDz37bZr3gEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIlX6v+09kAIUVgAAgPN/GAIAAEAAAAQ4AAAAAMAfAAA4BAAABAAAAADsAH0AAAEAACBAguHH8Ajb9zRKhiIQDe8g9om3leERa3es5ZDoYTYdjjbmdwzVuQgj7NBz+qsX6Y8lkIP0I9KS2XX85XzqKBmIKHX1qy6HgJQXTWPVqAA4m8AtkiaJEykFj4havT628IB9xM0bNwZ+iaTVWdD/hZoJ0VF24jvDxdHqLmpnb56ZnVX3a79HevnN7yfbPbJVW3u9ONUHAA=="},eC={src:e.i(315746).default,width:360,height:360,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRmoBAABXRUJQVlA4TF0BAAAvB8ABEM1VICICHgiADQIAAICucjyR7sNxRBwQAAAAAIgAAAAAAAAAAAAAAAkAQBAAAAEi+H6cW78AAAA8EIAUBgAAgPO/frW9bRMMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABALFSr/vJAAGwQAAAAzr//9w5OBdDBBQBIkMABAAQAAAAAAAAAAAAAAE4AAIFAQhQOReqKnFPzQApQWAEAAM7/YQgAAAABABDgAAAAAAB/AADgEAAAEAAAAACwA/QBAAQAAIAAyYAeqSps1AlBDo5IbX5nwCwOl1QVy9surUUI0Nbxb8pC9ITFFoSNOkfJ+jAc01a6WR+oFqQ3gIRdDs5gLrPtM9ZsTHUSHVIJH
65wfMR7JcWCOspsPwr8xJAT1fbMFvAjHWdvvRgipIljs29+VcRL9ST5xXaXzqTxHDvmekPuZ5ll3HX6vHYU+vl7YxX8pl7o3z+sDAA=="},eS={스타터:ev.src,플레이어:ej.src,챌린저:eN.src,크리에이터:ek.src,스클러:eC.src};var e$=e.i(556165);let eE=[{type:"link",href:"/event",icon:"event_icon",title:"이벤트"},{type:"button",route:"/reserve/list",icon:"list_icon",title:"예약 리스트"},{type:"button",route:"/my/review",icon:"qna_icon",title:"이용후기 Q&A관리"},{type:"button",route:"/space/zzim",icon:"zzim_icon",title:"찜한 공간"}],eT=[{href:"/introduction",title:"서비스소개"},{href:"/agreement",title:"이용약관"},{href:"/policyPerson",title:"개인정보처리방침"},{href:"/policyOperate",title:"운영정책"}],eP="next_level_text text-pc-subtitle-2 text-legacy-black font-normal leading-[22px]",eI="text-legacy-primary font-semibold",eM="w-full text-pc-subtitle-2 font-semibold",eL=String.raw`block text-pc-body-2 [.menu\_wrapper_&]:font-normal text-legacy-gray-999 mb-2`,eD="text-legacy-primary",eR="text-legacy-black",eO="flex-1 relative",eB="route_link flex flex-col justify-center items-center",eF="reword_title block text-pc-body-1 font-semibold text-[#444] mt-3 mx-0 mb-1",eQ="reword_count flex items-center text-pc-body-1 font-semibold text-legacy-primary whitespace-nowrap",eq="route_button min-w-[70px] flex gap-1 flex-col justify-center items-center text-center",eU="route_page_title text-legacy-text text-pc-body-1 font-normal break-keep",eH="inline-block w-10 h-10 bg-auto bg-no-repeat bg-center",ez={coin_icon:"bg-[url(img/menu_coin.svg)]",coupon_icon:"bg-[url(img/menu_coupon.svg)]",badge_icon:"bg-[url(img/menu_badge.svg)]",event_icon:"bg-[url(img/menu_event.svg)]",list_icon:"bg-[url(img/menu_calendar.svg)]",qna_icon:"bg-[url(img/menu_qna.svg)]",zzim_icon:"bg-[url(img/menu_zzim.svg)]"},eW="border border-solid border-gray-03",eK="route_link flex items-center w-full py-5 px-6 h-15",eY="menu_button flex items-center w-full py-5 px-6 h-15",eJ="menu_title mr-auto text-pc-subtitle-2 font-normal text-legacy-black no-underline",eV=String.raw`user_status_button block w-full [.menu\_wrapper_&]:text-pc-body-1 [.menu\_wrapper_&]:text-legacy-text-light border-0 [border-style:none] bg-transparent underline mt-6 text-center`;function eX({open:e,onClose:i,onRequestLogout:l}){let s,o,c,p,m,[u,h]=(0,r.useState)("closed"),[x,f]=(0,r.useState)(!1),b=(0,ey.useUserSessionStore)(e=>e.user),g=e&&"closed"!==u,{data:y}=(s=b?.token,(0,d.useQuery)({queryKey:["layout","myMemberLevels",s],queryFn:()=>(0,e$.getMyMemberLevels)(s),enabled:g&&!!s})),{data:_}=z(b?.token,g);if((0,r.useEffect)(()=>{e&&!b?.id&&(0,e_.getUserSession)()?.id&&(0,ew.dispatchFlutterLogin)()},[e,b]),(0,r.useEffect)(()=>{if(e){h("entering");let e=requestAnimationFrame(()=>h("open"));return()=>cancelAnimationFrame(e)}h(e=>"closed"===e?"closed":"leaving")},[e]),(0,r.useEffect)(()=>{if("leaving"!==u)return;let e=setTimeout(()=>{h("closed"),f(!1)},300);return()=>clearTimeout(e)},[u]),"closed"===u)return null;let w="entering"===u?"slide_enter [transition:none] [transform:translate(-50%,0)]":"open"===u?"slide_enter_active [transition:0.3s] [transform:translate(0,0)]":"slide_leave_active [transition:0.3s] [transform:translate(-50%,0)] opacity-0",A=()=>{i(),b||(window.location.href="/auth/login")},v=e=>{if(i(),!b){window.location.href="/auth/login";return}window.location.href=eA(b,e)},j=e=>{i(),window.open(e,"_blank")};return(0,t.jsx)("div",{className:"pc",children:(0,t.jsxs)("aside",{id:"all_menu",role:"navigation",className:`fixed top-0 bottom-0 block w-[362px] left-[-362px] bg-sc-white z-sidebar ${w}`,style:{left:0},children:[(0,t.jsxs)("div",{className:"menu_wrapper h-dvh",children:[(0,t.jsx)("h2",{className:"hidden_text",children:"Spacecloud Menu"}),(0,t.jsxs)("div",{className:"profile_wrapper w-full h-35 p-5 bg-[#ffd014d9] flex items-center z-header",children:[(0,t.jsx)("h3",{className:"hidden_text",children:"프로필"}),(0,t.jsxs)("figure",{className:"profile_image w-17.5 h-17.5 rounded-[50%] overflow-hidden mr-5 bg-cover",style:{backgroundImage:`url(${b?.image_url||Z.default.src})`},children:[(0,t.jsx)("button",{className:"profile_route_button block w-full h-full",title:"프로필 페이지로 이동",onClick:()=>v("/my"),children:(0,t.jsx)("span",{className:"hidden_text",children:"프로필사진"})}),(0,t.jsx)("figcaption",{className:"hidden_text",children:"프로필 사진"})]}),b?(0,t.jsxs)("button",{className:"profile_manage_button flex flex-col text-left gap-2",onClick:()=>v("/my"),children:[(0,t.jsx)("strong",{className:"user_name_text text-pc-subtitle-1 [.menu\\_wrapper_&]:font-bold text-legacy-black cursor-pointer",children:b.name&&0!==b.name.trim().length?b.name:"게스트"}),(0,t.jsxs)("span",{className:"profile_manage_text flex items-center text-pc-body-1 font-semibold text-[#806c1b]",children:[(0,t.jsx)("span",{children:"프로필 관리"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"currentColor"})]})]}):(0,t.jsxs)("button",{className:"login_button [.menu\\_wrapper_&]:text-pc-subtitle-1 font-bold text-legacy-black leading-normal ml-5 text-left",onClick:A,children:["게스트로",(0,t.jsx)("br",{}),"로그인/회원가입"]}),(0,t.jsx)("button",{className:"close_button absolute top-2.5 right-2.5 bg-transparent border-0 [border-style:none] cursor-pointer",onClick:i,"aria-label":"사이드메뉴 닫기",children:(0,t.jsx)(n.default,{icon:"arrowLeft",width:"32px",height:"32px",strokeColor:"#704DE4",strokeWidth:"2px"})})]}),(0,t.jsxs)("div",{className:"user_develop_wrapper h-[calc(100dvh-200
6px)] overflow-y-auto pb-5",children:[b&&y&&(0,t.jsxs)("div",{className:"user_level_wrapper flex items-center p-5",children:[(0,t.jsxs)("div",{className:"user_image_wrapper flex flex-col items-center w-25 mr-auto",children:[(0,t.jsx)("figure",{className:"user_level_image w-25 h-25 bg-no-repeat bg-center bg-contain mb-2.5 [transition:all_0.5s_linear] animate-legacy-level-flip cursor-pointer [&:hover]:rotate-y-180",style:{backgroundImage:`url(${(o=y.my_level_name)&&eS[o]||eS["스타터"]})`},children:(0,t.jsx)("figcaption",{className:"hidden_text",children:`${y.my_level_name} 레벨 이미지`})}),(0,t.jsx)("span",{className:"user_level_text font-semibold text-pc-subtitle-3 text-legacy-black",children:y.my_level_name})]}),(0,t.jsxs)("div",{className:"next_level_wrapper flex flex-col gap-3",children:[(0,t.jsxs)(eg.default,{className:"ml-auto",width:"122px",height:"30px",variant:"outline",onClick:()=>v("/my/level"),children:[(0,t.jsx)("span",{children:"등급별 혜택"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"12px",height:"12px",strokeColor:"currentColor"})]}),"maxLevel"===(c=((e,t,r,i)=>{if("스클러"===e)return{type:"maxLevel"};let l=r-i;return l>0?{type:"remaining",nextLevelName:t,count:l}:{type:"congrats",nextLevelName:t}})(y.my_level_name,y.next_level_name,y.next_level_condition_value,_?.recent_reservation_count??0)).type?(0,t.jsxs)("p",{className:eP,children:["스페이스클라우드에 푹 빠진 ",(0,t.jsx)("br",{}),"진정한 ",(0,t.jsx)("em",{className:eI,children:"스클러"}),"가 되셨군요!"]}):"remaining"===c.type?(0,t.jsx)("div",{className:eP,children:(0,t.jsxs)("p",{children:[(0,t.jsx)("em",{className:eI,children:c.nextLevelName}),"가 되기까지",(0,t.jsx)("br",{}),"예약 ",c.count,"회 남았어요."]})}):(0,t.jsx)("div",{className:eP,children:(0,t.jsxs)("p",{children:["축하해요! 다음달",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:c.nextLevelName}),"가 됩니다."]})})]})]}),b&&_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eb,{color:"#ebebeb",length:"90%",margin:"10px auto"}),(0,t.jsxs)("div",{className:"user_record_wrapper py-0 px-5 text-center mt-5",children:[(0,t.jsx)("h3",{className:"user_record_title inline-block my-0 mx-auto text-pc-subtitle-3 text-legacy-black bg-[linear-gradient(to_top,#ffeca1_50%,transparent_50%)]",children:"스페이스클라우드와 함께한 추억"}),(0,t.jsxs)("ul",{className:"user_record_list flex items-center mt-7.5 list-none",children:[(0,t.jsxs)("li",{className:eM,children:[(0,t.jsx)("strong",{className:eL,children:"누적 예약"}),(0,t.jsx)("em",{className:eD,children:_.reservation_count})," ",(0,t.jsx)("span",{className:eR,children:"회"})]}),(0,t.jsxs)("li",{className:eM,children:[(0,t.jsx)("strong",{className:eL,children:"이용한 공간"}),(0,t.jsx)("em",{className:eD,children:_.use_space_count})," ",(0,t.jsx)("span",{className:eR,children:"개"})]}),(0,t.jsxs)("li",{className:eM,children:[(0,t.jsx)("strong",{className:eL,children:"함께한 사람들"}),(0,t.jsx)("em",{className:eD,children:_.use_member_count})," ",(0,t.jsx)("span",{className:eR,children:"명"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"hidden_text",children:"스페이스클라우드 리워드"}),(0,t.jsxs)("ul",{className:"user_reword_list flex mt-7.5 rounded-sm border border-solid border-gray-03 py-5 px-6",children:[(0,t.jsx)("li",{className:eO,children:(0,t.jsxs)("a",{className:eB,href:"/my/coin",children:[(0,t.jsxs)("span",{className:"new_badge block absolute right-1.5 -top-2.5 text-center py-1 px-2 text-pc-body-4 not-italic font-semibold bg-legacy-primary text-sc-white rounded-[24px]",children:[" ","NEW"," "]}),(0,t.jsx)("i",{className:`${eH} ${ez.coin_icon} icon coin_icon`}),(0,t.jsx)("h4",{className:eF,children:"내 코인"}),(0,t.jsxs)("span",{className:eQ,children:[(0,t.jsxs)("span",{children:[K(_.usable_coin_balance)," ","C"]}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"14px",height:"14px",strokeColor:"currentColor",strokeWidth:"3px"})]})]})}),(0,t.jsx)("li",{className:eO,children:(0,t.jsxs)("a",{className:eB,href:"/my/coupons",children:[(0,t.jsx)("i",{className:`${eH} ${ez.coupon_icon} icon coupon_icon`}),(0,t.jsx)("h4",{className:eF,children:"내 쿠폰"}),(0,t.jsxs)("span",{className:eQ,children:[(0,t.jsxs)("span",{children:[b.my_coupons_count||0,"장"]}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"14px",height:"14px",strokeColor:"currentColor",strokeWidth:"3px"})]})]})}),(0,t.jsx)("li",{className:eO,children:(0,t.jsxs)("a",{className:eB,href:"/my/badge",children:[(0,t.jsx)("i",{className:`${eH} ${ez.badge_icon} icon badge_icon`}),(0,t.jsx)("h4",{className:eF,children:"내 배지"}),(0,t.jsxs)("span",{className:eQ,children:[(0,t.jsxs)("span",{children:[_.my_badge_count,"개 획득"]}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"14px",height:"14px",strokeColor:"currentColor",strokeWidth:"3px"})]})]})})]})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"hidden_text",children:"주요 페이지"}),(0,t.jsx)("ul",{className:"page_list mt-5 py-0 px-5 flex justify-center gap-5",children:eE.map(e=>(0,t.jsx)("li",{children:"link"===e.type?(0,t.jsxs)(a.default,{className:eq,href:e.href,onClick:i,prefetch:!1,children:[(0,t.jsx)("i",{className:`${eH} ${ez[e.icon]} icon ${e.icon}`}),(0,t.jsx)("h4",{className:eU,children:e.title})]}):(0,t.jsxs)("button",{className:eq,onClick:()=>(e=>{if(i(),!b){(0,e_.setFromUrl)(e),window.location.href="/auth/login";return}window.location.href=eA(b,e)})(e.route),children:[(0,t.jsx)("i",{className:`${eH} ${ez[e.icon]} icon ${e.icon}`}),(0,t.jsx)("h4",{className:eU,children:e.title})]})}
6,e.title))})]}),(0,t.jsx)("nav",{children:(0,t.jsx)("div",{children:(0,t.jsxs)("ul",{className:"menu_list mt-7.5 bg-sc-white",children:[(0,t.jsx)("h3",{className:"hidden_text",children:"메뉴 페이지"}),(0,t.jsx)("li",{className:"bg-legacy-primary border-0 [border-style:none]",children:(0,t.jsxs)(a.default,{className:eK,href:"/my/interest",onClick:i,prefetch:!1,children:[(0,t.jsx)("h4",{className:"menu_title mr-auto text-pc-subtitle-2 font-extrabold text-sc-white no-underline",children:"내 관심정보 설정"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#fff",strokeWidth:"2px"})]})}),(0,t.jsx)("li",{className:eW,children:(0,t.jsxs)(a.default,{className:eK,href:"/",onClick:i,prefetch:!1,children:[(0,t.jsx)("h4",{className:eJ,children:"스페이스클라우드 홈"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]})}),(0,t.jsx)("li",{className:eW,children:(0,t.jsxs)(a.default,{className:eK,href:"/board/notice",onClick:i,prefetch:!1,children:[(0,t.jsx)("h4",{className:eJ,children:"공지사항"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]})}),(0,t.jsx)("li",{className:eW,children:(0,t.jsxs)("button",{className:eY,onClick:()=>j("https://citylog.spacecloud.kr"),children:[(0,t.jsx)("h4",{className:eJ,children:"도시산책"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]})}),(0,t.jsx)("li",{className:eW,children:(0,t.jsxs)("button",{className:eY,onClick:()=>j("https://plucky-sleep-a52.notion.site/3ee61c78fc1c442a85dea202782d5102"),children:[(0,t.jsx)("h4",{className:eJ,children:"도움말"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]})}),(0,t.jsx)("li",{className:eW,children:(0,t.jsxs)("button",{className:eY,onClick:()=>{window.open("https://spacecloud.channel.io/support-bots/29706","_blank"),i()},children:[(0,t.jsx)("h4",{className:eJ,children:"1:1 문의"}),(0,t.jsx)(n.default,{icon:"chevronRight",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]})}),(0,t.jsxs)("li",{className:eW,children:[(0,t.jsxs)("button",{className:eY,onClick:()=>f(e=>!e),children:[(0,t.jsx)("h4",{className:eJ,children:"서비스 정보"}),x?(0,t.jsx)(n.default,{icon:"chevronUp",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"}):(0,t.jsx)(n.default,{icon:"chevronDown",width:"16px",height:"16px",strokeColor:"#ccc",strokeWidth:"2px"})]}),x&&(0,t.jsx)("ul",{className:"service_info_list",children:eT.map((e,r)=>(0,t.jsx)("li",{className:`w-full flex items-center ${0===r?"border-0 [border-style:none]":"border border-solid border-gray-03"} bg-legacy-bg py-4 px-[25px] before:inline-block before:content-[''] before:w-1 before:h-1 before:mr-2 before:bg-legacy-text`,children:(0,t.jsx)(a.default,{href:e.href,onClick:i,prefetch:!1,className:"block w-full text-legacy-text",children:e.title})},e.href))})]})]})})}),(0,t.jsxs)("div",{children:[b?(0,t.jsx)("button",{className:eV,onClick:()=>{i(),l()},children:"로그아웃"}):(0,t.jsx)("button",{className:eV,onClick:A,children:"로그인"}),(0,t.jsx)("small",{className:"copyright_text block w-full mt-4 text-pc-body-3 text-center text-legacy-text-light",children:"Powered by © NSPACE Corp."})]})]})]}),(0,t.jsxs)("a",{className:"host_center_link flex gap-2.5 items-center justify-center sticky bottom-0 left-0 w-full h-15 py-5 px-0 text-center text-pc-subtitle-1 font-semibold text-warning bg-legacy-primary",href:(p="partner.spacecloud.kr",m=navigator.userAgent.toLowerCase(),/sc_ios/i.test(m)?"#":/sc_android/i.test(m)?`intent://${p}#Intent;scheme=http;package=com.android.chrome;end`:`https://${p}`),onClick:()=>{/sc_ios/i.test(navigator.userAgent.toLowerCase())&&window.open("https://partner.spacecloud.kr","_system")},children:["호스트센터로 이동",(0,t.jsx)(n.default,{icon:"circleArrowRight",width:"24px",height:"24px"})]})]})})}let eG=[{title:"회사",items:[{title:"about NSPACE",link:"https://nspace.co/mission"},{title:"How We Work",link:"https://nspace.co/howwework"},{title:"Portfolio",link:"https://nspace.co/portfolio"},{title:"Career",link:"https://nspace.co/career"},{title:"News",link:"https://nspace.co/news"},{title:"Location & Contact",link:"https://nspace.co/contact"}]},{title:"서비스 안내",items:[{title:"서비스 소개",link:"/introduction"},{title:"공지사항",link:"/board/notice"},{title:"도움말",link:"https://plucky-sleep-a52.notion.site/3ee61c78fc1c442a85dea202782d5102"}
6,{title:"App Store",link:"https://apps.apple.com/kr/app/%EC%8A%A4%ED%8E%98%EC%9D%B4%EC%8A%A4%ED%81%B4%EB%9D%BC%EC%9A%B0%EB%93%9C-%ED%8C%8C%ED%8B%B0%EB%A3%B8-%EC%97%B0%EC%8A%B5%EC%8B%A4-%EA%B3%B5%EA%B0%84%EB%8C%80%EA%B4%80%EC%9D%98-%EB%AA%A8%EB%93%A0%EA%B2%83/id1025620281?l=en-GB"},{title:"Google Play",link:"https://play.google.com/store/apps/details?id=com.hustay.swing.p3cfded673ced4983b0db9399638730cb"}]},{title:"관련 서비스",items:[{title:"호스트센터",link:"https://partner.spacecloud.kr"},{title:"도시산책",link:"https://citylog.spacecloud.kr"},{title:"문화N지대",link:"https://culture.spacecloud.kr/"},{title:"임팩트 리포트",link:"https://impact.spacecloud.kr/"}]},{title:"파트너쉽",items:[{title:"공간 입점 문의",link:"https://spacecloud.channel.io/support-bots/27978"},{title:"광고 문의",link:"https://plucky-sleep-a52.notion.site/41ae473161e44ae88e46df399902f8fd"},{title:"제휴 문의",link:"mailto:[email protected]"}]},{title:"서비스 제공 국가",items:[{title:"대한민국",link:"/",scrollToTop:!0},{title:"영국",link:"https://spacecloud.city"}]}],eZ=[{class:"ico_blog",href:"http://blog.naver.com/spacecloud",title:"블로그",text:"블로그"},{class:"ico_instagram",href:"https://www.instagram.com/spacecloud.kr",title:"인스타그램",text:"인스타그램"},{class:"ico_facebook",href:"https://www.facebook.com/spaceclouding",title:"페이스북",text:"페이스북"},{class:"ico_x",href:"https://twitter.com/spacecloud_kr",title:"트위터",text:"트위터"}],e0=[{text:"대표 : 정수현"},{text:"사업자 등록번호: 230-81-03117"},{text:"통신판매업 신고번호 : 2024-서울영등포-1094"},{html:'<a href="https://www.ftc.go.kr/bizCommPop.do?wrkr_no=2308103117" target="_blank">사업자 등록정보</a>'},{text:"영업소재지 : 서울특별시 영등포구 여의대로8 여의도파크센터 B동 2401호"},{html:'<span>이메일 : <a href="mailto:[email protected]">[email protected]</a></span>'},{text:"대표전화 : 1599-4312(평일 오후 2시 ~ 오후 6시)"},{html:'<a href="https://spacecloud.channel.io/support-bots/29706" target="_blank">온라인 1:1문의 바로가기</a> (평일 오전 10시 ~ 오후 6시)'}],e1=[{title:"이용약관",link:"/agreement"},{title:"개인정보처리방침",link:"/policyPerson"},{title:"운영정책",link:"/policyOperate"}],e2="스페이스클라우드는 통신판매중개자이며 통신판매의 당사자가 아닙니다. 따라서 스페이스클라우드는 공간 거래정보 및 거래에 대해 책임지지 않습니다.";function e5({up:e,color:r}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e?"lucide lucide-chevron-up":"lucide lucide-chevron-down",children:e?(0,t.jsx)("path",{d:"m18 15-6-6-6 6"}):(0,t.jsx)("path",{d:"m6 9 6 6 6-6"})})}let e3="text-mo-body-2 font-normal text-sc-black min-[1025px]:text-pc-body-1 min-[1025px]:text-gray-05 min-[1025px]:no-underline min-[1025px]:[transition:color_0.2s] min-[1025px]:[&:hover]:text-sc-black";function e4({item:e}){let r=(0,s.usePathname)(),i=(0,s.useRouter)();return e.link&&(e.link.startsWith("http")||e.link.startsWith("mailto"))?(0,t.jsx)("a",{href:e.link,target:"_blank",className:e3,children:e.title}):e.scrollToTop?(0,t.jsx)("a",{href:"/",onClick:t=>{t.preventDefault();let l=document.querySelector(".scroll_container");r===e.link?l?.scrollTo({top:0,behavior:"smooth"}):e.link&&i.push(e.link)},className:e3,children:e.title}):e.link?(0,t.jsx)(a.default,{href:e.link,prefetch:!1,className:e3,children:e.title}):(0,t.jsx)("span",{children:e.title})}function e6(){return(0,t.jsx)("div",{className:"terms_wrapper mt-2 mb-1 min-[1025px]:mt-0",children:(0,t.jsx)("ul",{className:"terms_list flex gap-4",children:e1.map(e=>(0,t.jsx)("li",{className:"relative text-mo-body-2 font-medium text-gray-05 min-[1025px]:text-pc-body-2 [&:not(:first-child)]:before:content-['|'] [&:not(:first-child)]:before:absolute [&:not(:first-child)]:before:-left-2.5 [&:not(:first-child)]:before:text-legacy-line-d9",children:e.link?(0,t.jsx)(a.default,{href:e.link,prefetch:!1,className:"text-gray-05 no-underline [&:hover]:text-sc-black [&:hover]:underline",children:e.title}):(0,t.jsx)("span",{children:e.title})},e.title))})})}let e9={ico_blog:"bg-img-common-social-blog",ico_instagram:"bg-img-common-social-instagram",ico_facebook:"bg-img-common-social-facebook",ico_x:"bg-img-common-social-x"},e8={ico_blog:"min-[1025px]:bg-img-common-social-blog",ico_instagram:"min-[1025px]:bg-img-common-social-instagram",ico_facebook:"min-[1025px]:bg-img-common-social-facebook",ico_x:"min-[1025px]:bg-img-common-social-x"};function e7({tier:e}){let r="pc"===e?"min-[1025px]:inline-block min-[1025px]:w-9 min-[1025px]:h-9 min-[1025px]:bg-cover min-[1025px]:bg-no-repeat min-[1025px]:bg-center min-[1025px]:rounded-md":"inline-block w-9.5 h-9.5 min-[1025px]:w-10 min-[1025px]:h-10 bg-cover bg-no-repeat bg-center rounded-md",i="pc"===e?e8:e9;return(0,t.jsx)("div",{className:"pc"===e?"sns_list min-[1025px]:flex min-[1025px]:gap-3":"sns_list flex gap-4 mb-3",children:eZ.map(e=>(0,t.jsxs)("a",{href:e.href,target:"_blank",title:e.title,children:[(0,t.jsx)("span",{className:"hidden_text",children:e.text}),(0,t.jsx)("i",{className:`${r} ${i[e.class]} ${e.class}`})]},e.class))})}let te="footer_container py-8 px-4 min-[1025px]:pt-10 min-[1025px]:px-21 min-[1025px]:pb-14 min-[1025px]:max-w-480 min-[1025px]:my-0 min-[1025px]:mx-auto",tt="menu_list bg-gray-02 py-2 px-4 flex flex-col min-[1025px]:gap-2.5 min-[1025px]:bg-transparent min-[1025px]:p-0",tr="h-10 flex items-center min-[1025px]:h-auto min-[1025px]:text-pc-body-1 min-[1025px]:font-medium min-[1025px]:text-gray-05",ti="information_wrapper py-3 px-4 bg-gray-02 flex flex-col gap-2 min-[1025px]:gap-1 min-[1025px]:mb-4 min-[1025px]:p-0 min-[1025px]:bg-transparent",tl="text-pc-body-2 font-normal text-gray-05 leading-normal [&_a]:text-gray-05! [&_a:hover]:text-sc-black!",ts="disclaimer_text text-mo-body-2 font-normal text-gray-05 leading-normal min-[1025px]:text-pc-body-2";function ta(){let e=(0,h.default)(),i=(0,s.usePathname)(),[l,a]=(0,r.useState)(""),[n,o]=(0,r.useState)(!1),c=[`${e0[0].text} | ${e0[1].text}`,`${e0[2].text} | ${e0[3].html}`,`${e0[4].text} | ${e0[5].html}`,`${e0[6].text} | ${e0[7].html}`],d=e0.map(e=>e.text||e.html||""),p="/"===i||["/","/contents","/reserve","/auth"].some(e=>i?.startsWith(e));return e?(0,t.jsxs)("footer",{className:`bg-footer-bg w-full main_footer${e&&p?" has-bottom-tab pb-14":""}`,children:[(0,t.jsx)("h2",{className:"hidden_text",children:"Spacecloud Footer"}),(0,t.jsxs)("div",{className:te,children:[(0,t.jsx)("section",{className:"introduce_section min-[1025px]:flex min-[1025px]:border-b min-[1025px]:[border-bottom-style:solid] min-[1025px]:border-b-gray-03 min-[1025px]:pb-8",children:(0,t.jsx)("ul",{className:"introduce_list min-[1025px]:flex min-[1025px]:gap-30 min-[1025px]:mr-auto",children:eG.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("button",{className:"menu_toggle_button w-full h-12 p-0 flex items-center",onClick:()=>a(t=>t===e.title?"":e.title),children:[(0,t.jsx)("h3",{className:"menu_title mr-auto text-mo-subtitle-3 font-semibold min-[1025px]:inline-block min-[1025px]:text-pc-subtitle-3 min-[1025px]:text-sc-black min-[1025px]:mb-3.5",children:e.title}),l===e.title?(0,t.jsx)(e5,{up:!0,color:"#767676"}):(0,t.jsx)(e5,{color:"#d4d4d4"})]}),l===e.title&&(0,t.jsx)("ul",{className:tt,children:e.items.map(e=>(0,t.jsx)("li",{className:tr,children:(0,t.jsx)(e4,{item:e})},e.title))})]},e.title))})}),(0,t.jsxs)("section",{className:"information_section min-[1025px]:pt-8",children:[(0,t.jsxs)("button",{className:"toggle_information_section_button flex items-center w-full h-10 [.information\\_section_&]:text-mo-subtitle-3 font-medium [.information\\_section_&]:text-gray-05 p-0 mt-8",onClick:()=>o(e=>!e),children:[(0,t.jsx)("h3",{className:"information_title mr-auto",children:"(주)NSPACE 사업자정보"}),n?(0,t.jsx)(e5,{up:!0,color:"#767676"}):(0,t.jsx)(e5,{color:"#d4d4d4"})]}),n&&(0,t.jsx)("div",{className:ti,children:d.map((e,r)=>(0,t.jsx)("p",{className:tl,dangerouslySetInnerHTML:{__html:e}},r))}),(0,t.jsx)(e6,{}),(0,t.jsx)("p",{className:ts,children:e2}),(0,t.jsx)("div",{className:"logo_img_wrapper mt-8 mx-0 mb-4",children:(0,t.jsx)("i",{className:"logo_img inline-block w-[145px] h-7 bg-cover bg-no-repeat bg-center bg-img-common-logo-footer"})}),(0,t.jsx)(e7,{tier:"mo"}),(0,t.jsx)("small",{className:"copyright_text text-mo-body-2 font-normal text-gray-05",children:"Copyright NSPACE Corp. All Rights Reserved."})]})]})]}):(0,t.jsxs)("footer",{className:"main_footer bg-footer-bg w-full",children:[(0,t.jsx)("h2",{className:"hidden_text",children:"Spacecloud Footer"}),(0,t.jsxs)("div",{className:te,children:[(0,t.jsxs)("section",{className:"introduce_section min-[1025px]:flex min-[1025px]:border-b min-[1025px]:[border-bottom-style:solid] min-[1025px]:border-b-gray-03 min-[1025px]:pb-8",children:[(0,t.jsx)("ul",{className:"introduce_list min-[1025px]:flex min-[1025px]:gap-30 min-[1025px]:mr-auto",children:eG.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("h3",{className:"menu_title min-[1025px]:inline-block min-[1025px]:text-pc-subtitle-3 min-[1025px]:font-semibold min-[1025px]:text-sc-black min-[1025px]:mb-3.5",children:e.title}),(0,t.jsx)("ul",{className:tt,children:e.items.map(e=>(0,t.jsx)("li",{className:tr,children:(0,t.jsx)(e4,{item:e})},e.title))})]},e.title))}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"logo_img_wrapper min-[1025px]:mb-6 min-[1025px]:text-right",children:(0,t.jsx)("i",{className:"logo_img min-[1025px]:inline-block min-[1025px]:w-40 min-[1025px]:h-[33px] min-[1025px]:bg-cover min-[1025px]:bg-no-repeat min-[1025px]:bg-center min-[1025px]:bg-img-common-logo-footer"})}),(0,t.jsx)(e7,{tier:"pc"})]})]}),(0,t.jsxs)("section",{className:"information_section min-[1025px]:pt-8",children:[(0,t.jsx)("h3",{className:"company_title min-[1025px]:text-pc-body-1 min-[1025px]:font-medium min-[1025px]:text-gray-05 min-[1025px]:mb-2.5",children:"주식회사 앤스페이스"}),(0,t.jsx)("div",{className:ti,children:c.map((e,r)=>(0,t.jsx)("p",{className:tl,dangerouslySetInnerHTML:{__html:e}},r))}),(0,t.jsx)(e6,{}),(0,t.jsx)("p",{className:ts,children:e2})]})]})]})}var tn=e.i(367),to=e.i(272e3);let tc={"data-v-sf":""},td="space_list flex py-0 px-6 m-0 [.pc_&]:mx-0 list-none gap-9 overflow-y-hidden overflow-x-auto scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden min-w-90 min-[1025px]:relative",tp="flex flex-col items-center justify-center shrink-0 whitespace-nowrap text-gray-05 transition-all duration-300 ease-in-out gap-1",tm="space_select_button w-14 h-14 flex flex-col gap-1 items-center justify-center p-0 rounded-legacy-half [.pc_&]:rounded-legacy-half relative overflow-hidden transition-[color] duration-300 ease-in-out [&>*]:relative [&>*]:z-base before:content-[''] before:absolute before:top-1/2 before:left-1/2 before:rounded-legacy-half before:bg-primary before:transform-[translate(-50%,-50%)] before:transition-[width,height] before:duration-400 before:ease-in-out",tu="active before:w-full before:h-full",th="space_type_text text-pc-body-2 whitespace-nowrap overflow-hidden text-ellipsis w-full min-w-0 text-center transition-[color] duration-300 ease-in-out",tx="active text-primary font-semibold",tf="space_list_nav_button absolute z-sticky flex items-center justify-center p-0 top-1/2 transform-[translateY(-50%)] bg-white border border-gray-04 roun
6ded-legacy-100 [.pc_&]:rounded-legacy-100 h-9 w-9 opacity-0 [transition:opacity_0.2s_ease-in-out] disabled:cursor-auto",tb={space:[{id:0,value:"all",label:"모든유형"},{id:1,value:"practice",label:"연습"},{id:2,value:"meet",label:"모임"},{id:3,value:"studio",label:"촬영"},{id:5,value:"event",label:"행사"},{id:6,value:"office",label:"오피스"},{id:7,value:"camping",label:"캠핑"}],theme:[{id:0,value:"all",label:"모든유형"},{id:1,value:"meet",label:"모임/파티"},{id:2,value:"studio",label:"촬영/연습"},{id:3,value:"office",label:"공부/업무"}]},tg=e=>({id:e.id,name:e.name,section:{id:e.category_group_id,value:e.category_group_name},imageUrl:e.category_image_url,inactiveImageUrl:e.category_inactive_image_url}),ty=e=>({id:e.theme_id,name:e.theme_name,section:{id:e.theme_group_id,value:e.theme_group_name},imageUrl:e.image_url,inactiveImageUrl:e.inactive_image_url});function t_(){let e=(0,s.useSearchParams)(),{categories:i,themes:l,headerFilter:a,setHeaderFilter:c,setSearchKeyword:d,isMainPageLoading:p,setIsOnlySpaceTypeChanged:m}=(0,o.useMainState)(),[h,x]=(0,r.useState)("space"),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(null),[_,w]=(0,r.useState)({id:0,name:"모든유형"}),[A,v]=(0,r.useState)(!0),[j,N]=(0,r.useState)(!1),k=(0,r.useRef)(null),C=(0,r.useRef)(null),S=a.categoryType||"space",$="space"===S?0===i.length:0===l.length,E="space"===S?i.map(tg):l.map(ty),T=tb[S]||tb.space,P=g?E.filter(e=>e.section.value===g):E,I=g?T.find(e=>e.label===g)?.label??"용도":"용도",M=e?.get("q")||"",L=(()=>{if(!M)return;let e=E.find(e=>M===e.name);return e||(e=E.find(e=>M.includes(e.name))),e?.id||0})(),D=(0,r.useCallback)(()=>{let e=k.current;if(!e)return;let{scrollLeft:t,clientWidth:r,scrollWidth:i}=e;v(0===t),N(i>r&&t+r>=i)},[]),R=(0,r.useCallback)(e=>{let t=k.current;if(!t||void 0===e)return;if(0===e){t.scrollTo({left:0,behavior:"smooth"}),setTimeout(D,300);return}let r=P.findIndex(t=>t.id===e);if(-1===r)return;let i=t.querySelectorAll("li")[r];if(!i)return;let l=t.getBoundingClientRect(),s=i.getBoundingClientRect();if(s.left<l.left||s.right>l.right){let e=i.offsetLeft-t.clientWidth/2+i.offsetWidth/2;t.scrollTo({left:Math.max(0,e),behavior:"smooth"}),setTimeout(D,300)}},[P,D]);(0,r.useEffect)(()=>{"space"===S&&a.space.id!==_.id&&(w(a.space),$||R(a.space.id))},[a.space,$]),(0,r.useEffect)(()=>{"theme"===S&&a.theme.id!==_.id&&w(a.theme)},[a.theme]),(0,r.useEffect)(()=>{x(a.categoryType)},[a.categoryType]),(0,r.useEffect)(()=>{D();let e=e=>{let t=C.current;t&&!t.contains(e.target)&&b(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[D]),(0,r.useEffect)(()=>{document.documentElement.style.overflow=f?"hidden":"",document.body.style.overflow=f?"hidden":""},[f]),(0,r.useEffect)(()=>{$||void 0===L||R(L)},[$]);let O=(e,t)=>{let r=e.filter(t);return 0===r.length?null:r[Math.floor(Math.random()*r.length)]},B=(e,t,r)=>{e===_.id||p||(c({...a,[r]:{id:e,name:t}}),m(!0),d(0===e?"":t),w({id:e,name:t}),"space"===r?0!==e?(localStorage.setItem("last_selected_space_type",JSON.stringify({id:e,name:t})),(0,u.mirrorLastSpaceTypeCookie)({id:e,name:t})):(localStorage.removeItem("last_selected_space_type"),(0,u.clearLastSpaceTypeCookie)()):0!==e?localStorage.setItem("last_selected_theme",JSON.stringify({id:e,name:t})):localStorage.removeItem("last_selected_theme"))},F=e=>{k.current?.scrollBy({left:276*e,behavior:"smooth"}),setTimeout(D,100)};return(0,t.jsx)("div",{...tc,children:(0,t.jsx)("div",{...tc,className:"space_filter_wrapper desktop_filter border-b border-b-gray-03 relative z-header-filter-wrapper bg-white hidden min-[1025px]:block",children:(0,t.jsxs)("nav",{...tc,className:"space_filter flex items-center bg-white max-w-480 my-0 mx-auto min-[1025px]:py-3 min-[1025px]:px-21 legacy-max-1025:before:content-[''] legacy-max-1025:before:absolute legacy-max-1025:before:left-0 legacy-max-1025:before:top-0 legacy-max-1025:before:bottom-0 legacy-max-1025:before:w-7.5 legacy-max-1025:before:z-sticky legacy-max-1025:before:pointer-events-none legacy-max-1025:after:content-[''] legacy-max-1025:after:absolute legacy-max-1025:after:right-0 legacy-max-1025:after:top-0 legacy-max-1025:after:bottom-0 legacy-max-1025:after:w-15 legacy-max-1025:after:z-sticky legacy-max-1025:after:pointer-events-none legacy-max-1025:before:bg-[linear-gradient(to_right,var(--color-white)_40%,var(--color-legacy-white-0)_100%)] legacy-max-1025:after:bg-[linear-gradient(to_left,var(--color-white)_40%,var(--color-legacy-white-0)_100%)]",children:[(0,t.jsxs)("div",{...tc,className:"switch_wrapper flex flex-col justify-center items-center gap-2 pr-5 border-r border-r-gray-03",children:[(0,t.jsx)("div",{...tc,className:"toggle_switch_wrapper w-28.5 flex items-center p-1 bg-gray-03 border border-secondary-1 rounded-legacy-20 overflow-hidden h-9 shrink-0",children:[{id:"space",label:"유형별"},{id:"theme",label:"테마별"}].map((e,r)=>(0,t.jsx)("button",{...tc,className:`toggle_button flex-1 p-0 w-13 h-7 border-none rounded-legacy-20 [.pc_&]:rounded-legacy-20 cursor-pointer [transition:background-color_0.2s,c
6olor_0.2s] text-pc-body-2 [.pc_&]:text-pc-body-2 font-medium ${h===e.id?"active bg-primary text-white [.pc_&]:text-white":"text-legacy-text-2 [.pc_&]:text-legacy-text-2"}`,type:"button",onClick:()=>(e=>{if(h!==e&&!p)if(x(e),y(null),"theme"===e){let t,r=JSON.parse(localStorage.getItem("last_selected_theme")||"null"),i=r&&l.some(e=>e.theme_id===r.id)?r:(t=O(l,e=>!!e.is_primary))?{id:t.theme_id,name:t.theme_name}:null;i?(w(i),c({...a,space:{id:0,name:"모든유형"},theme:i,categoryType:e}),d(i.name),setTimeout(()=>R(i.id),100)):(w({id:0,name:"모든유형"}),c({...a,space:{id:0,name:"모든유형"},theme:{id:0,name:"모든유형"},categoryType:e}),d(""),setTimeout(()=>R(0),100))}else{let t,r=JSON.parse(localStorage.getItem("last_selected_space_type")||"null"),l=r&&i.some(e=>e.id===r.id)?r:(t=O(i,e=>!!e.is_primary))?{id:t.id,name:t.name}:null;l?(w(l),c({...a,space:l,theme:{id:0,name:"모든유형"},categoryType:e}),d(l.name),setTimeout(()=>R(l.id),100)):(w({id:0,name:"모든유형"}),c({...a,space:{id:0,name:"모든유형"},theme:{id:0,name:"모든유형"},categoryType:e}),d(""),setTimeout(()=>R(0),100))}})(e.id),children:e.label},`${e.label}_${r}`))}),(0,t.jsxs)("div",{...tc,ref:C,className:"header_select_wrapper relative w-full shrink-0",children:[(0,t.jsxs)("button",{...tc,className:`select_button cursor-pointer flex items-center gap-1 h-9 py-1 px-3 w-full justify-center rounded-legacy-100 [.pc_&]:rounded-legacy-100 ${f||g?"active bg-primary border-none":"border border-gray-04 bg-white"}`,onClick:()=>b(e=>!e),children:[(0,t.jsx)("span",{...tc,className:`select_label text-pc-body-2 mr-1 flex-2 ${f||g?"text-white":"text-sc-black"}`,children:I}),(0,t.jsx)(n.default,{icon:"chevron",width:"18px",height:"18px",strokeColor:f||g?"#fff":"#1F1F1F"})]}),f&&(0,t.jsx)("div",{...tc,className:"space_purpose_wrapper",children:(0,t.jsx)("ul",{...tc,className:"space_purpose_list absolute top-[calc(100%+8px)] left-0 mt-1 bg-white border border-gray-04 shadow-legacy-dropdown min-w-28.5 z-header-dropdown rounded-b-lg overflow-hidden",children:T.map(e=>(0,t.jsx)("li",{...tc,className:"space_purpose_option flex justify-start w-full h-12",children:(0,t.jsx)("button",{...tc,type:"button",className:"space_purpose_option_button w-full py-2 px-4 text-left text-pc-body-1 [.pc_&]:text-pc-body-1 bg-transparent border-none text-sc-black [.pc_&]:text-sc-black cursor-pointer [&:hover]:bg-gray-02",onClick:()=>{y("모든유형"===e.label?null:e.label),b(!1)},children:e.label})},`${e.value}_${e.id}`))})})]})]}),f&&(0,t.jsx)("div",{...tc,className:"select_dimmed fixed top-46 right-0 bottom-0 left-0 z-header-dimmed bg-legacy-black-50",onClick:()=>b(!1)}),(0,t.jsx)(tn.default,{direction:"vertical",color:"#EBEBEB",size:"1px"}),(0,t.jsxs)("div",{...tc,className:"space_list_wrapper overflow-hidden relative py-0 px-10 w-full before:content-[''] before:absolute before:left-0 before:top-0 before:bottom-0 before:w-15 before:z-base before:pointer-events-none after:content-[''] after:absolute after:right-0 after:top-0 after:bottom-0 after:w-25 after:z-base after:pointer-events-none before:bg-[linear-gradient(to_right,var(--color-white)_40%,var(--color-legacy-white-0)_100%)] after:bg-[linear-gradient(to_left,var(--color-white)_40%,var(--color-legacy-white-0)_100%)]",children:[$?(0,t.jsx)("ul",{...tc,className:td,ref:k,children:Array.from({length:25},(e,r)=>(0,t.jsx)(to.default,{type:"spaceTypeItem"},`spaceType_${r+1}`))}):(0,t.jsxs)("ul",{...tc,className:td,ref:k,children:[0===_.id&&(0,t.jsxs)("li",{...tc,className:tp,children:[(0,t.jsx)("button",{...tc,className:`${tm} ${tu}`,onClick:()=>B(0,"모든유형",S),children:(0,t.jsx)(n.default,{icon:"allTypeActive",width:"52px",height:"52px",strokeColor:"#767676"})}),(0,t.jsxs)("span",{...tc,className:`${th} ${tx}`,children:[" ","모든유형"," "]})]}),P.map(e=>(0,t.jsxs)("li",{...tc,className:tp,children:[(0,t.jsx)("button",{...tc,className:`${tm} ${_.id===e.id?tu:"before:w-0 before:h-0"}`,onClick:()=>B(e.id,e.name,S),children:(0,t.jsx)("img",{...tc,width:"52",height:"52",src:_.id===e.id?e.imageUrl:e.inactiveImageUrl,alt:`${e.name} 아이콘`})})," ",(0,t.jsx)("span",{...tc,className:`${th} ${_.id===e.id?tx:"font-medium"}`,children:e.name})]},`${e.section.value}_${e.id}`))]}),(0,t.jsx)("button",{...tc,className:`${tf} prev_button left-5`,onClick:()=>F(-1),disabled:A,children:(0,t.jsx)(n.default,{icon:"chevron",strokeColor:"#1F1F1F",width:"18px",height:"18px",rotate:"90"})}),(0,t.jsx)("button",{...tc,className:`${tf} next_button right-0`,onClick:()=>F(1),disabled:j||$,children:(0,t.jsx)(n.default,{icon:"chevron",strokeColor:"#1F1F1F",width:"18px",height:"18px",rotate:"270"})})]})]})})})}var tw=e.i(808520),tA=e.i(87366);let tv=()=>(0,e_.getUserSession)(),tj=({loadOnMount:e=!1}={})=>{let{headerFilter:t,setHeaderFilter:i}=(0,o.useMainState)(),{showToast:l}=(0,c.useToast)(),[s]=(0,r.useState)(()=>!!tv()),[a,n]=(0,r.useState)(()=>e&&!!tv()),[d,m]=(0,r.useState)([]),[u,h]=(0,r.useState)(void 0),x=(0,r.useRef)(l);x.current=l;let f=(0,r.useRef)(t);f.current=t;let b=(0,r.useRef)(d);b.current=d;let g=async()=>{let e=tv();if(!e)return;n(!0);let t=b.current;try{let r=await (0,tA.getMyInterests)(e.token);r&&r.my_interests.length>0&&(t=r.my_interests.find(e=>"RGN"===e.type)?.interest_items?.map(e=>
6({id:e.region_id,value:e.content,label:e.content,regionGroupId:e.region_group_id}))||[],m(t))}catch(t){let e=t instanceof p.ApiError?t.raw?.error:void 0;x.current("error",e||"관심지역을 불러오지 못했습니다.")}(e=>{if(0===e.length)return;let t=f.current?.region?.regionId;if(!t)return;let r=e.find(e=>e.id===t);r&&h(r.value)})(t),n(!1)},y=(0,r.useRef)(g);y.current=g;let _=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{e&&!_.current&&(_.current=!0,y.current())},[e]),{isLoading:a,isLoggedIn:s,options:d,selectedValue:u,load:g,select:e=>{let r=d.find(t=>t.value===e);return!!r&&(h(r.value),i({...t,region:{regionId:r.id,regionName:r.value}}),!0)},clearSelected:()=>h(void 0)}},tN={"data-v-itp":""};function tk({onPopupClose:e}){let i=(0,s.useRouter)(),{isLoading:l,isLoggedIn:a,options:n,selectedValue:o,select:c}=tj({loadOnMount:!0});return(0,r.useEffect)(()=>{a||(0,e_.setFromUrl)("/")},[a]),(0,t.jsxs)("article",{...tN,className:"filter_popup_wrapper absolute top-full right-54.5 w-92 bg-sc-white rounded-b-lg border border-divider z-sticky overflow-auto",children:[(0,t.jsx)("h3",{...tN,className:"hidden_text",children:"내 관심지역 설정 필터"}),l?(0,t.jsx)("div",{...tN,className:"spinner_wrapper w-20 h-20 rounded-md absolute top-1/2 left-1/2 transform-[translate(-50%,-50%)] z-sticky flex justify-center items-center",children:(0,t.jsx)(tw.default,{hostAttrs:tN})}):(0,t.jsx)("div",{...tN,className:"filter_panel flex relative flex-col gap-7 pt-6 px-6 pb-8",children:(0,t.jsxs)("section",{...tN,className:a?"":"not_logged_in text-center",children:[(0,t.jsx)("h4",{...tN,className:"section_title text-mo-subtitle-2 pc:text-pc-subtitle-3 font-medium mb-3 text-text-primary text-left",children:"관심지역"}),0===n.length?(0,t.jsxs)("p",{...tN,className:"favorite_description text_center text-mo-subtitle-3 pc:text-pc-body-1 font-normal text-text-secondary text-center",children:["설정한 관심지역이 없어요.",(0,t.jsx)("br",{...tN}),"관심지역을 설정하면 공간 탐색이 빨라져요."]}):(0,t.jsx)("p",{...tN,className:"favorite_description text-mo-subtitle-3 pc:text-pc-body-1 font-normal text-text-secondary",children:"내가 설정한 관심지역이에요"}),n.length>0&&(0,t.jsx)("div",{...tN,className:"region_button_group flex flex-col gap-2 mt-6",children:n.map(r=>(0,t.jsx)("button",{...tN,className:`region_button${o===r.value?" selected":""} w-full h-12 px-4 py-3 bg-sc-white text-left cursor-pointer [transition:border-color_0.15s,background-color_0.15s] ${o===r.value?"border-2 border-border-active font-semibold":"border border-divider font-normal [&:hover]:border-gray-05"}`,onClick:()=>{c(r.value)&&e()},children:r.label},r.id))}),(0,t.jsx)("button",{...tN,className:"set_favorite_region_button w-full h-12 bg-primary-2 font-medium mt-8",onClick:()=>{i.push("/my/interest"),e()},children:"관심지역 설정하기"})]})})]})}function tC({children:e}){return(0,t.jsx)("div",{className:"slider_container w-full overflow-x-auto [-webkit-overflow-scrolling:touch] snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,t.jsx)("div",{className:"swiper_wrapper flex pr-0",children:(0,t.jsx)("div",{className:"swiper_item_wrapper flex gap-2 after:content-[''] after:flex-[0_0_8px] [&>*]:flex-none [&>*]:snap-start",children:e})})})}var tS=e.i(354269);let t$={"data-v-mf":""},tE="text-pc-subtitle-3 not-italic font-medium mb-3 min-[1025px]:font-normal min-[1025px]:mb-0 min-[1025px]:text-pc-body-1",tT="bg-white flex items-center p-4 rounded-lg min-[1025px]:bg-transparent min-[1025px]:p-0",tP="w-9 h-9 p-0 text-pc-subtitle-2 [.pc_&]:text-pc-subtitle-2 font-medium disabled:text-gray-04 disabled:cursor-auto";function tI({onPopupClose:e,onUpdateUserCount:i}){let{headerFilter:l,setHeaderFilter:s}=(0,o.useMainState)(),{showToast:a}=(0,c.useToast)(),n=(0,h.default)(),[d,p]=(0,r.useState)(l.userCount||0);(0,r.useEffect)(()=>{p(l.userCount||0)},[l.userCount]);let m=(0,t.jsxs)("div",{...t$,className:"count_button_wrapper flex items-center ml-auto border border-gray-04 rounded-md h-9",children:[(0,t.jsx)("button",{...t$,className:tP,onClick:()=>{let e=""===d?0:d;if(e>0){let t=e-1;p(t),i?.(t)}},disabled:0===d,children:"-"}),(0,t.jsx)("input",{...t$,className:"count_input text-center leading-9 w-12 [.pc_&]:w-12 border-l border-l-gray-03 border-r border-r-gray-03 [.pc_&]:border-l [.pc_&]:border-l-gray-03 [.pc_&]:border-r [.pc_&]:border-r-gray-03 text-pc-subtitle-2 [.pc_&]:text-pc-subtitle-2 h-9",type:"number",value:d,onChange:e=>{let t=e.currentTarget.value.replace(/[^0-9]/g,"");if(""===t)return void p("");if(Number(t)>999)a("warning","최대 999명까지만 입력할 수 있어요."),p(Number(t.slice(0,3)));else{let e=Number(t);p(e),i?.(e)}},onKeyDown:e=>{["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.ke
6y)||/^[0-9]$/.test(e.key)||e.preventDefault()}}),(0,t.jsx)("button",{...t$,className:tP,onClick:()=>{let e=""===d?0:d;if(e<999){let t=e+1;p(t),i?.(t)}},children:"+"})]});return n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{...t$,className:"hidden_text",children:"인원 선택 필터"}),(0,t.jsxs)("section",{...t$,children:[(0,t.jsx)("h4",{...t$,className:`filter_section_title ${tE}`,children:"몇 분이 이용하세요?"}),(0,t.jsxs)("div",{...t$,className:`count_wrapper ${tT}`,children:[(0,t.jsx)("span",{...t$,className:"count_wrapper_text text-pc-body-1 font-medium ml-2",children:"인원"}),m]})]})]}):(0,t.jsxs)("article",{...t$,className:"filter_popup_wrapper absolute top-full left-120 w-100 bg-white rounded-b-lg border border-gray-03 z-sticky overflow-auto max-h-131",children:[(0,t.jsx)("h3",{...t$,className:"hidden_text",children:"인원 선택 필터"}),(0,t.jsx)("div",{...t$,className:"filter_panel h-full pt-6 px-6 pb-8",children:(0,t.jsxs)("div",{...t$,className:`count_wrapper ${tT}`,children:[(0,t.jsx)("h4",{...t$,className:`filter_section_title ${tE}`,children:"몇 분이 이용하세요?"}),m]})}),(0,t.jsxs)("div",{...t$,className:"panel_buttons_wrapper sticky bottom-0 left-0 right-0 flex items-center border-t border-t-gray-03 bg-white text-legacy-black h-15 py-3 px-6 rounded-b-lg",children:[(0,t.jsx)("button",{...t$,type:"button",onClick:()=>{p(0)},className:"reset_button h-9 p-0 text-pc-body-1 [.pc_&]:text-pc-body-1 disabled:text-gray-04",disabled:!d,children:"인원 초기화"}),(0,t.jsx)("button",{...t$,type:"button",onClick:()=>{s({...l,userCount:""===d?0:d}),e()},className:"apply_button h-9 py-2 px-3 text-pc-body-3 [.pc_&]:text-pc-body-3 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white ml-auto",children:"공간 찾기"})]})]})}var tM=e.i(851614);let tL={"data-v-mfs":""},tD="p-0 min-[1025px]:py-0 min-[1025px]:px-6",tR="shrink-0 font-medium text-pc-subtitle-3",tO="price_unit_wrapper flex items-center py-2 px-3 rounded-md border border-gray-04 bg-white text-gray-05 min-[1025px]:w-20 min-[1025px]:ml-1",tB="price_input_inner flex items-center h-9 gap-1";function tF(e){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,","):""}function tQ(e){let t=e&&e.replace(/000$/,"");return t?tF(t):""}let tq=(0,r.forwardRef)(function({onPopupClose:e,onUpdateUsage:i,onUpdateMinPrice:l,onUpdateMaxPrice:s,onUpdateConvenience:a},d){let{headerFilter:p,setHeaderFilter:m}=(0,o.useMainState)(),{showToast:u}=(0,c.useToast)(),x=(0,h.default)(),[f,b]=(0,r.useState)(p.usage),[g,y]=(0,r.useState)(()=>tQ(p.minPrice)),[_,w]=(0,r.useState)(()=>tQ(p.maxPrice)),[A,v]=(0,r.useState)(()=>new Set(p.convenience.map(e=>e.key))),[j,N]=(0,r.useState)(!1),k="ALL"===f&&""===g&&""===_&&0===A.size,C=j?tM.CONVENIENCE_OPTIONS:tM.CONVENIENCE_OPTIONS.slice(0,6),S=e=>{["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.key)||/^[0-9]$/.test(e.key)||e.preventDefault()},$=(e,t)=>{let r=e?Number(e.replace(/,/g,"")):0,i=t?Number(t.replace(/,/g,"")):0;i&&r&&i<r?u("warning","최대 가격은 최소 가격보다 커야 해요."):i&&r&&(i-r)*1e3<5e3&&u("warning","최소, 최대 가격 차이는 5천원 이상이어야 해요.")},E=()=>{b("ALL"),y(""),w(""),v(new Set)};(0,r.useImperativeHandle)(d,()=>({resetFilters:E}));let T=x?"section_title text-pc-subtitle-3 not-italic font-medium mb-3 min-[1025px]:text-pc-subtitle-2":"filter_section_title text-pc-body-2 font-medium leading-4.5 text-legacy-black min-[1025px]:text-pc-body-1",P=(0,t.jsxs)("section",{...tL,className:`panel_section ${tD}`,children:[(0,t.jsx)("h4",{...tL,className:T,children:"이용유형"}),(0,t.jsx)("ul",{...tL,className:"tab_list flex mt-2 bg-white rounded-md mb-12 overflow-hidden min-[1025px]:mb-6 min-[1025px]:border min-[1025px]:border-gray-03",children:tM.USAGE_OPTIONS.map((e,r)=>(0,t.jsx)("li",{...tL,className:"h-11 w-full flex items-center justify-center min-[1025px]:bg-gray-01",children:(0,t.jsx)("button",{...tL,className:`w-full h-full p-0 text-pc-body-1 [.pc_&]:text-pc-body-1 text-sc-black [.pc_&]:text-sc-black ${f===e.id?"active border-2 border-sc-black rounded-md [.pc_&]:rounded-md min-[1025px]:bg-white":r>0&&f===tM.USAGE_OPTIONS[r-1].id?"":"border-l border-l-gray-03"}`,onClick:()=>{var t;b(t=e.id),i?.(t)},children:e.label})},e.id))})]}),I=(0,t.jsxs)("section",{...tL,className:`panel_section ${tD}`,children:[(0,t.jsx)("h4",{...tL,className:T,children:"가격"}),(0,t.jsxs)("div",{...tL,className:"price_wrapper mt-3 flex flex-col py-3 px-5 bg-white rounded-lg mb-12 min-[1025px]:mt-2 min-[1025px]:bg-gray-01 min-[1025px]:mb-6",children:[(0,t.jsxs)("div",{...tL,className:"price_input_wrapper flex items-center gap-1",children:[(0,t.jsxs)("div",{...tL,className:tB,children:[(0,t.jsx)("label",{...tL,htmlFor:"minPrice",className:tR,children:"최소"}),(0,t.jsx)("div",{...tL,className:tO,children:(0,t.jsx)("input",{className:"pc:[input[type=text]&]:h-12.5 pc:[input[type=text]&]:py-0 pc:[input[type=text]&]:px-4 pc:[input[type=text]&]:leading-[1.2]",...tL,id:"minPrice",type:"text",placeholder:"#,###",inputMode:"numeric",value:g,onChange:e=>{let t=e.currentTarget.value.replace(/[^0-9]/g,"").replace(/^0+/,"").slice(0,4);y(tF(t)),l?.(t)},onKeyDown:S,onBlur:()=>{let e=Number(g.replace(/,/g,"")),t=e?tF(String(e)):"";
6y(t),$(t,_),l?.(e?String(e):"")}})}),(0,t.jsx)("span",{...tL,className:tR,children:",000원"})]}),(0,t.jsx)("span",{...tL,children:"~"}),(0,t.jsxs)("div",{...tL,className:tB,children:[(0,t.jsx)("label",{...tL,htmlFor:"maxPrice",className:tR,children:"최대"}),(0,t.jsx)("div",{...tL,className:tO,children:(0,t.jsx)("input",{className:"pc:[input[type=text]&]:h-12.5 pc:[input[type=text]&]:py-0 pc:[input[type=text]&]:px-4 pc:[input[type=text]&]:leading-[1.2]",...tL,id:"maxPrice",type:"text",placeholder:"#,###",inputMode:"numeric",value:_,onChange:e=>{let t=e.currentTarget.value.replace(/[^0-9]/g,"").replace(/^0+/,"").slice(0,4);w(tF(t)),s?.(t)},onKeyDown:S,onBlur:()=>{let e=Number(_.replace(/,/g,"")),t=e?tF(String(e)):"";w(t),$(g,t),s?.(e?String(e):"")}})}),(0,t.jsx)("span",{...tL,className:tR,children:",000원"})]})]}),(0,t.jsxs)("p",{...tL,className:"text_notify flex items-center gap-1 text-pc-body-3 font-normal text-gray-05 tracking-[-0.3px] mt-3 mx-0 mb-0",children:[(0,t.jsx)(n.default,{icon:"notify",width:"14px",height:"14px",fillColor:"#767676",className:"icon_notify min-w-3.5",dataAttrs:tL}),"최소, 최대 가격 차이는 5천원 이상이어야 해요."]})]})]}),M=(0,t.jsxs)("section",{...tL,className:"panel_section pt-0 px-0 pb-16 min-[1025px]:pt-0 min-[1025px]:px-6 min-[1025px]:pb-4",children:[(0,t.jsx)("h4",{...tL,className:T,children:"편의시설"}),(0,t.jsxs)("div",{...tL,className:"convenience_wrapper mt-3 flex flex-col justify-around p-5 bg-white rounded-lg min-[1025px]:mt-2 min-[1025px]:bg-gray-01",children:[(0,t.jsx)("ul",{...tL,className:"convenience_list grid grid-cols-[repeat(2,1fr)] gap-6 list-none min-[1025px]:grid-cols-[repeat(3,1fr)] min-[1025px]:gap-y-4 min-[1025px]:gap-x-6",children:(x?C:tM.CONVENIENCE_OPTIONS).map(e=>{let r=A.has(e.key);return(0,t.jsx)("li",{...tL,children:(0,t.jsxs)("label",{...tL,className:"convenience_checkbox_label flex items-center gap-2 text-pc-body-2 font-normal tracking-[-0.3px] cursor-pointer relative",children:[(0,t.jsxs)("div",{...tL,className:"checkbox_icon_wrapper flex items-center relative",children:[(0,t.jsx)("input",{className:"pc:[input[type=checkbox]&]:absolute [input:where([type=checkbox])&]:absolute [input:where([type=checkbox])&]:left-[-99999px] pc:[input[type=checkbox]&]:left-[-99999px]",...tL,type:"checkbox",checked:r,onChange:()=>{var t;return t=e.key,void v(e=>{let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),a?.(tM.CONVENIENCE_OPTIONS.filter(e=>r.has(e.key)).map(e=>({...e,isSelected:!0}))),r})},style:x?{width:"20px",height:"20px"}:void 0}),r&&(0,t.jsx)(n.default,{icon:"check",width:x?"12px":"8px",height:x?"12px":"8px",strokeColor:"#fff",className:"icon_check",dataAttrs:tL})]}),(0,t.jsx)("span",{...tL,style:x?{fontSize:"15px"}:void 0,children:e.label})]})},e.key)})}),x&&(0,t.jsxs)("button",{...tL,className:"convenience_expand_button flex p-0 items-center gap-1 underline text-sc-black [.pc_&]:text-sc-black text-pc-body-1 [.pc_&]:text-pc-body-1 font-normal mt-6",onClick:()=>N(e=>!e),children:[(0,t.jsx)("span",{...tL,children:j?"간략히 보기":"더 보기"}),(0,t.jsx)(n.default,{icon:"chevron",width:"12px",height:"12px",strokeColor:"#1F1F1F",rotate:"270",dataAttrs:tL})]})]})]});return x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{...tL,className:"hidden_text",children:"공간 검색 필터"}),(0,t.jsxs)("div",{...tL,children:[P,I,M]})]}):(0,t.jsxs)("article",{...tL,className:"filter_popup_wrapper absolute top-full left-21 w-127.5 bg-white rounded-b-lg border border-gray-03 z-sticky flex flex-col max-h-[calc(100vh_-_240px)] overflow-hidden",children:[(0,t.jsx)("h3",{...tL,className:"hidden_text",children:"공간 검색 필터"}),(0,t.jsxs)("div",{...tL,className:"filter_panel flex flex-col gap-8 pb-10 flex-auto min-h-0 overflow-y-auto min-[1025px]:relative min-[1025px]:gap-6.5 min-[1025px]:py-6 min-[1025px]:px-0",children:[P,I,M]}),(0,t.jsxs)("div",{...tL,className:"panel_buttons_wrapper static bottom-0 left-0 right-0 flex items-center border-t border-t-gray-03 bg-white text-legacy-black h-15 py-3 px-6 rounded-b-lg",children:[(0,t.jsx)("button",{...tL,type:"button",onClick:E,className:"reset_button w-auto h-9 p-0 text-pc-body-1 [.pc_&]:text-pc-body-1 disabled:text-gray-04",disabled:k,children:"필터 초기화"}),(0,t.jsx)("button",{...tL,type:"button",onClick:()=>{let t=`${g.replace(",","")}000`,r=`${_.replace(",","")}000`;0!==Number(r)&&0!==Number(t)&&Number(r)-Number(t)<5e3?u("warning","최소, 최대 가격 차이는 5천원 이상이어야 해요."):(m({...p,usage:f,minPrice:"000"===t?"":t,maxPrice:"000"===r?"":r,convenience:tM.CONVENIENCE_OPTIONS.filter(e=>A.has(e.key)).map(e=>({...e,isSelected:!0})),coupon:p.coupon,payment:p.payment,isNowPay:"NOWPY"===p.payment,isCoupon:"discount"===p.coupon}),e())},className:"apply_button w-auto h-9 py-2 px-3 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white ml-auto text-pc-body-3 [.pc_&]:text-pc-body-3",children:"공간 찾기"})]})]})}),tU={"data-v-mfr":""},tH=(0,r.forwardRef)(function({onPopupClose:e,onUpdateRegion:i},l){let{headerFilter:s,setHeaderFilter:a,regions:c}=(0,o.useMainState)(),d=(0,h.default)(),[p,m]=(0,r.useState)(()=>{let e=s.region.regionName;return e&&c.find(t=>t.places.some(t=>t.regionName===e))||null}),[u,x]=(0,r.useState)(s.region.regionName?s.region:{regionName:""}),f=!u.regionName,b=[];for(let e=0;e<c.length;e+=2)b.push(c.slice(e,e+2));let g=()=>{x({regionName:""}),m(null)};(0,r.useImperativeHandle)(l,()=>({resetFilters:g}));let y=c.length>0&&(0,t.jsxs)("section",{...tU,className:"region_list_section pb-10",children:[(0,t.jsx)("h4",{...tU,className:d?"choice_region_title text-pc-subtitle-3 font-medium mb-3":"select_region_title text-sc-black text-pc-body-1 font-medium",children:"원하는 지역을 선택하세요"}),(0,t.jsx)("ul",{...tU,className:"region_list bg-gray-02 flex flex-col min-[1025px]:mt-3 min-[1025px]:bg-gray-01 min-[1025px]:rounded-lg min-[1025px]:border min-[1025px]:border-gray-03 min-[1025px]:overflow-auto",children:b.map((r,l)=>(0,t.jsxs)("li",{...tU,className:"region_item flex items-center flex-wrap border-b border-b-gray-03 relative min-h-13",children:[r.map((e,r)=>(0,t.jsxs)("button",{...tU,className:`city_title_toggle w-full flex flex-1 items-center py-0 px-4 h-13${p?.regionId===e.regionId?" active bg-white":""}${0===r?" border-r border-r-gray-03":""}`,onClick:()=>{m(t=>t?.regionId===e.regionId?null:e)},children:[(0,t.jsx)("strong",{...tU,className:"city_title text-pc-body-1 font-semibold [.pc_&]:font-semibold mr-auto text-sc-black",children:e.city}),(0,t.jsx)(n.default,{icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",strokeWidth:"2px",rotate:p?.regionId===e.regionId?"180":void 0})]},`${e.city}_toggle`)),1===r.length&&(0,t.jsx)("span",{...tU,"aria-hidden":"true",className:"city_title_empty"}),r.map(r=>(0,t.jsx)("div",{...tU,className:"sub_region_list w-full grid grid-cols-[repeat(2,1fr)] relative z-sticky top-0 border-t border-t-gray-03",style:{display:p?.regionId===r.regionId?void 0:"none"},children:r.places.map((l,n)=>(0,t.jsx)("button",{...tU,className:`sub_region_item text-left h-11 border-r border-r-gray-03 py-0 px-4 bg-white text-pc-body-2 [.pc_&]:text-pc-body-2${n<r.places.length-2?" border-b border-b-gray-03":""}
6${u.regionName===l.regionName?" selected":""}`,onClick:()=>{(x(l),d)?i?.(l):(a({...s,region:l}),e())},children:l.regionName},l.regionName))},`${r.city}_list`))]},`${r[0]?.city}_${r[1]?.city}_${l}`))})]}),_=(0,t.jsxs)("section",{...tU,className:"set_region_section bg-white rounded-lg flex flex-col items-center p-6 gap-4 mb-8 min-[1025px]:bg-gray-01",children:[(0,t.jsx)("h4",{...tU,className:"set_region_title text-pc-subtitle-3 font-semibold text-sc-black",children:"혹시 관심지역 설정 하셨나요?"}),(0,t.jsx)("p",{...tU,className:"set_region_description text-pc-body-2 font-normal text-sc-black text-center",children:"관심지역을 설정하면 관심지역의 검색 결과를 빠르게 확인할 수 있어요!"}),(0,t.jsx)("a",{...tU,href:"/my/interest",className:"set_region_link w-full flex items-center justify-center bg-primary-2 rounded-lg text-white h-12 text-pc-body-1",onClick:e,children:"관심지역 설정하기"})]});return d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{...tU,className:"hidden_text",children:"지역 선택 필터"}),_,y]}):(0,t.jsxs)("article",{...tU,className:"filter_popup_wrapper absolute top-full left-72.5 w-121 bg-white rounded-b-lg border border-gray-03 z-sticky flex flex-col overflow-hidden h-131",children:[(0,t.jsx)("h3",{...tU,className:"hidden_text",children:"지역 선택 필터"}),(0,t.jsxs)("div",{...tU,className:"filter_panel flex-1 overflow-y-auto pt-6 px-6 pb-8",children:[_,y]}),(0,t.jsxs)("div",{...tU,className:"panel_buttons_wrapper shrink-0 flex items-center border-t border-t-gray-03 bg-white text-legacy-black h-15 py-3 px-6 rounded-b-lg",children:[(0,t.jsx)("button",{...tU,type:"button",onClick:g,className:"reset_button h-9 p-0 text-pc-body-1 [.pc_&]:text-pc-body-1 disabled:text-gray-04",disabled:f,children:"지역 초기화"}),(0,t.jsx)("button",{...tU,type:"button",onClick:()=>{a({...s,region:u.regionName?u:{}}),e()},className:"apply_button h-9 py-2 px-3 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white ml-auto text-pc-body-3 [.pc_&]:text-pc-body-3",children:"공간 찾기"})]})]})}),tz=["일","월","화","수","목","금","토"],tW={"data-v-mfd":""},tK="navigation_button bg-transparent w-6 h-6 p-0 cursor-pointer rounded-sm [.pc_&]:rounded-sm text-legacy-text-2 [.pc_&]:text-legacy-text-2 [transition:all_0.2s_ease] [&:hover]:bg-legacy-gray-f5 [&:hover]:text-legacy-text-strong",tY=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),tJ=e=>String(e).padStart(2,"0");function tV({selectedDate:e,allowPastDates:i,holidays:l,maxBookingMonths:s,onDateSelected:a}){let[o,c]=(0,r.useState)(new Date),d=o.getFullYear(),p=tJ(o.getMonth()+1),m=o.getFullYear(),u=o.getMonth(),h=new Date(m,u,1),x=new Date(m,u+1,0),f=new Date(h);f.setDate(f.getDate()-h.getDay());let b=new Date(x);b.setDate(b.getDate()+(6-x.getDay()));let g=new Date;g.setHours(0,0,0,0);let y=new Date(g);y.setMonth(y.getMonth()+s);let _=[],w=new Date(f);for(;w<=b;){let t=!i&&w<g||w>y;_.push({year:w.getFullYear(),month:w.getMonth()+1,day:w.getDate(),dayOfWeek:w.getDay(),isCurrentMonth:w.getMonth()===u,isToday:tY(w,g),isSelected:null!==e&&tY(w,e),date:new Date(w),isDisabled:t,isHoliday:l.includes(`${w.getFullYear()}-${tJ(w.getMonth()+1)}-${tJ(w.getDate())}`)}),w.setDate(w.getDate()+1)}return(0,t.jsxs)("div",{...tW,className:"calendar_wrapper w-full bg-white rounded-lg border border-gray-03 py-5 px-4 min-[768px]:border-none min-[768px]:p-0",children:[(0,t.jsxs)("div",{...tW,className:"calendar_header flex items-center gap-15 justify-between mb-6",children:[(0,t.jsx)("button",{...tW,type:"button",className:tK,onClick:()=>{c(new Date(o.getFullYear(),o.getMonth()-1,1))},children:(0,t.jsx)(n.default,{icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:"90"})}),(0,t.jsxs)("div",{...tW,className:"calendar_title_wrapper flex items-center gap-2 flex-nowrap",children:[(0,t.jsxs)("span",{...tW,className:"calendar_title whitespace-nowrap break-keep text-pc-subtitle-3 font-medium text-sc-black",children:[d,"년 ",p,"월"]}),(0,t.jsx)("button",{...tW,type:"button",className:"today_button shrink-0 bg-legacy-gray-f8f9fa border border-gray-05 h-6 py-0 px-2 rounded-md [.pc_&]:rounded-md text-pc-body-4 [.pc_&]:text-pc-body-4 text-sc-black [.pc_&]:text-sc-black cursor-pointer [&:hover]:bg-legacy-gray-e9ecef",onClick:()=>{let e=new Date;c(e),a(e)},children:"오늘"})]}),(0,t.jsx)("button",{...tW,type:"button",className:tK,onClick:()=>
6{c(new Date(o.getFullYear(),o.getMonth()+1,1))},children:(0,t.jsx)(n.default,{icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:"270"})})]}),(0,t.jsx)("div",{...tW,className:"weekdays_wrapper grid grid-cols-[repeat(7,1fr)] gap-1 mb-2",children:tz.map(e=>(0,r.createElement)("div",{...tW,key:e,className:"weekday_text_wrapper text-center text-pc-body-3 font-semibold text-sc-black p-0"},e))}),(0,t.jsx)("div",{...tW,className:"calendar_body grid grid-cols-[repeat(7,1fr)] gap-1",children:_.map(e=>(0,r.createElement)("div",{...tW,key:`${e.year}-${e.month}-${e.day}`,className:["date_wrapper aspect-square flex items-center justify-center text-pc-body-1 font-medium cursor-pointer rounded-legacy-half [transition:all_0.2s_ease] text-legacy-text-strong",!e.isCurrentMonth&&"other_month_date",e.isToday?"today relative font-semibold before:content-[''] before:absolute before:w-1 before:h-1 before:bg-primary before:top-0 before:rounded-legacy-half":"font-medium",e.isSelected&&!e.isDisabled&&"selected",0===e.dayOfWeek&&"sunday",6===e.dayOfWeek&&"saturday",e.isHoliday&&"holiday",e.isDisabled&&"disabled_day"].filter(Boolean).join(" "),onClick:()=>{let t;(t=new Date).setHours(0,0,0,0),(i||!(e.date<t))&&!e.isDisabled&&(!e.isCurrentMonth&&c(new Date(e.year,e.month-1,1)),a(e.date))}},e.day))})]})}let tX={"data-v-tp":""};function tG({firstTimeOfTimeList:e,endTimeOfTimeList:i="24:00",value:l,disabled:s=!1,className:a,onTimeSelected:o}){let[c,d]=(0,r.useState)(l),[p,m]=(0,r.useState)(!1),[u,h]=(0,r.useState)(!1),x=(0,r.useRef)(null),f=(0,r.useRef)(null);(0,r.useEffect)(()=>{d(l)},[l]),(0,r.useEffect)(()=>{let e=e=>{let t=f.current,r=x.current;t&&t.contains(e.target)||r&&!r.contains(e.target)&&m(!1)};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[]);let[b]=e.split(":"),[g]=i.split(":"),y=parseInt(g,10),_=parseInt(b,10),w=[];for(;_<y+1&&(w.push(`${String(_).padStart(2,"0")}:00`),!((_+=1)>y+1)););return(0,t.jsxs)("div",{...tX,ref:x,className:`time_picker_wrapper relative rounded-md border bg-white h-12 w-full ${s?"disabled border-gray-03 bg-legacy-gray-f9f9f9 [.pc_&]:bg-legacy-gray-f9f9f9":p?"selected border-sc-black shadow-legacy-ring-black":"border-gray-04"}${a?` ${a}`:""}`,children:[(0,t.jsxs)("button",{...tX,ref:f,type:"button",className:"time_picker_button flex items-center bg-transparent w-full h-full py-0 px-3 [&>*:last-child]:ml-auto disabled:cursor-auto",onClick:()=>{let e=!p;m(e),e&&requestAnimationFrame(()=>{let e=f.current;if(!e)return;let t=e.getBoundingClientRect();h(window.innerHeight-t.bottom<300)})},disabled:s,children:[(0,t.jsx)(n.default,{icon:"time",width:"18px",height:"18px",fillColor:s?"#d4d4d4":"#1F1F1F"}),(0,t.jsxs)("span",{...tX,className:`time_picker_text block w-15 text-pc-subtitle-3 font-medium mt-0 mr-0 mb-0 ml-2 ${s?"text-gray-04":"text-sc-black"}`,children:[c," "]}),(0,t.jsx)(n.default,{icon:"chevron",width:"18px",height:"18px",strokeColor:s?"#d4d4d4":"#1F1F1F",strokeWidth:"2px"})]}),p&&(0,t.jsx)("div",{...tX,className:`time_list_wrapper absolute w-full rounded-md border border-sc-black shadow-legacy-ring-black bg-white max-h-75 overflow-scroll z-50 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${u?"upward top-auto bottom-11.75":"top-11.75"}`,children:(0,t.jsx)("ul",{...tX,children:w.map(e=>(0,r.createElement)("li",{...tX,key:e,className:"flex items-center h-12 rounded-md [&:hover]:bg-gray-02"},(0,t.jsx)("button",{...tX,type:"button",className:"w-full h-full py-0 px-4 text-left text-pc-subtitle-3 [.pc_&]:text-pc-subtitle-3 font-medium",onClick:()=>{m(!1),d(e),o(e)},children:e})))})})]})}let tZ={"data-v-mfd":""},t0=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),t1=e=>String(e).padStart(2,"0"),t2=e=>{let[t,r,i]=e.split("-").map(Number);return new Date(t,r-1,i)},t5=e=>e?`${e.getFullYear()}-${t1(e.getMonth()+1)}-${t1(e.getDate())}`:"";function t3({onPopupClose:e,onUpdateDate:i,onUpdateStartTime:l,onUpdateEndTime:s}){let{headerFilter:a,setHeaderFilter:n,holidays:c}=(0,o.useMainState)(),d=(0,h.default)(),[p,m]=(0,r.useState)(()=>a.date?t2(a.date):null),[u,x]=(0,r.useState)(a.startTime),[f,b]=(0,r.useState)(a.endTime);(0,r.useEffect)(()=>{m(a.date?t2(a.date):null),x(a.startTime),b(a.endTime)},[a.date,a.startTime,a.endTime]);let g=null===p||t0(p,new Date),y=(()=>
6{if(!g)return"00:00";let e=new Date,t=e.getMinutes()>30?e.getHours()+1:e.getHours();return`${t1(t)}:00`})(),_=(()=>{let[e]=(u?`${u}:00`:y).split(":"),t=parseInt(e,10)+1;return t>=24?"24:00":`${t1(t)}:00`})(),w=null!==p&&t0(p,new Date)&&""===u&&""===f,A=(e,t)=>{let[r]=e.split(":");"start"===t?(x(r),l?.(r)):(b(r),s?.(r))},v=(0,t.jsxs)("div",{...tZ,className:"date_filter_wrapper flex flex-col overflow-visible min-[1025px]:flex-row min-[1025px]:gap-6.5",children:[(0,t.jsx)("div",{...tZ,children:(0,t.jsx)(tV,{selectedDate:p,allowPastDates:!1,holidays:c,maxBookingMonths:3,onDateSelected:e=>{m(e),i?.(t5(e))}})}),(0,t.jsx)("div",{...tZ,className:"date_picker_wrapper flex flex-col mt-4 overflow-visible min-[1025px]:w-full min-[1025px]:gap-3 min-[1025px]:mt-0",children:d?(0,t.jsxs)("div",{...tZ,className:"time_picker_wrapper my-0 mx-px flex gap-2",children:[(0,t.jsx)(tG,{className:"my-0 mx-px",value:u?`${u}:00`:"시작시간",firstTimeOfTimeList:y,endTimeOfTimeList:"23:00",onTimeSelected:e=>A(e,"start")}),(0,t.jsx)(tG,{className:"my-0 mx-px",value:f?`${f}:00`:"종료시간",disabled:0===u.length,firstTimeOfTimeList:_,endTimeOfTimeList:"24:00",onTimeSelected:e=>A(e,"end")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tG,{value:u?`${u}:00`:"시작시간",firstTimeOfTimeList:y,onTimeSelected:e=>A(e,"start")}),(0,t.jsx)(tG,{value:f?`${f}:00`:"종료시간",disabled:0===u.length,firstTimeOfTimeList:_,onTimeSelected:e=>A(e,"end")})]})})]});return d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{...tZ,className:"hidden_text",children:"날짜 선택 필터"}),(0,t.jsxs)("section",{...tZ,children:[(0,t.jsx)("h4",{...tZ,className:"filter_section_title text-pc-subtitle-3 font-medium mb-3",children:"언제 이용하세요?"}),v]})]}):(0,t.jsxs)("article",{...tZ,className:"filter_popup_wrapper absolute top-full left-92.5 w-133.5 bg-white rounded-b-lg border border-gray-03 z-40 overflow-visible max-h-131",children:[(0,t.jsx)("h3",{...tZ,className:"hidden_text",children:"날짜 선택 필터"}),(0,t.jsx)("div",{...tZ,className:"filter_panel h-full overflow-visible pt-6 px-6 pb-8",children:v}),(0,t.jsxs)("div",{...tZ,className:"panel_buttons_wrapper sticky bottom-0 left-0 right-0 flex items-center border-t border-t-gray-03 bg-white text-legacy-black h-15 py-3 px-6 rounded-b-lg",children:[(0,t.jsx)("button",{...tZ,type:"button",onClick:()=>{m(null),x(""),b("")},className:"reset_button h-9 p-0 text-pc-body-1 [.pc_&]:text-pc-body-1 disabled:text-gray-04",disabled:w,children:"날짜/시간 초기화"}),(0,t.jsx)("button",{...tZ,type:"button",onClick:()=>{n({...a,date:t5(p),startTime:u,endTime:f}),e()},className:"apply_button h-9 py-2 px-3 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white ml-auto text-pc-body-3 [.pc_&]:text-pc-body-3",children:"공간 찾기"})]})]})}var t4=e.i(561526);let t6={date:"",isNowPay:!1,isNowPayQuick:!1,isCoupon:!1,region:{},theme:{id:0,name:"모든유형"},categoryType:"space",coupon:"ALL",usage:"ALL",payment:"ALL",minPrice:"",maxPrice:"",userCount:0,convenience:[],endTime:"",startTime:"",selectedSortOption:{id:"BEST_DESC",value:"추천순",label:"추천순"}},t9={usage:"ALL",coupon:"ALL",payment:"ALL",minPrice:"",maxPrice:"",region:{},convenience:[],userCount:0,date:"",startTime:"",endTime:""},t8={"data-v-mf":""},t7="rounded-legacy-100 [.pc_&]:rounded-legacy-100 text-pc-body-2 [.pc_&]:text-pc-body-2",re="mt-15 relative",rt="filter_close_button flex items-center justify-center ml-0.5 cursor-pointer",rr="text-white font-medium",ri=e=>`flex items-center border cursor-pointer h-8 py-2 px-3 min-w-10.5 gap-1 min-[1025px]:h-9 ${t7} ${e?"active bg-primary border-primary":"bg-white border-gray-04"}`,rl=[{id:"region",label:"지역"},{id:"date",label:"날짜/시간"},{id:"userCount",label:"인원"},{id:"filter",label:"기타"}
6],rs=["일","월","화","수","목","금","토"],ra=e=>`${String(e.getMonth()+1).padStart(2,"0")}/${String(e.getDate()).padStart(2,"0")}(${rs[e.getDay()]})`,rn=e=>{let[t,r,i]=e.split("-").map(Number);return new Date(t,r-1,i)},ro={filter:!1,region:!1,date:!1,userCount:!1,interest:!1,mobile:!1,sortOption:!1},rc=[{id:"BEST_DESC",value:"추천순",label:"추천순"},{id:"RSV_CNT_DESC",value:"예약많은순",label:"예약많은순"},{id:"REVW_AVG_DESC",value:"별점높은순",label:"별점높은순"},{id:"CMNT_DESC",value:"후기많은순",label:"후기많은순"},{id:"PRC_ASC",value:"가격낮은순",label:"가격낮은순"},{id:"PRC_DESC",value:"가격높은순",label:"가격높은순"}];function rd(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#767676",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-circle-help",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("path",{d:"M12 17h.01"})]})}function rp({onDimmedChange:e}){let{headerFilter:l,setHeaderFilter:a,isMapView:d,setIsMapView:p,isMainPageLoading:m}=(0,o.useMainState)(),{showToast:u}=(0,c.useToast)(),x=(0,h.default)(),f=(0,s.useRouter)(),[b,g]=(0,r.useState)(!1),[y,_]=(0,r.useState)(ro),w=y.sortOption,[A,v]=(0,r.useState)(!1),[j,N]=(0,r.useState)("region"),{draft:k,setField:C,reset:S,snapshotFromHeaderFilter:$,isResetEnabled:E}=function(e){var t;let[i,l]=(0,r.useState)(t9);return{draft:i,setField:(e,t)=>{l(r=>({...r,[e]:t}))},reset:()=>l(t9),snapshotFromHeaderFilter:()=>l({usage:e.usage,coupon:e.coupon,payment:e.payment,minPrice:e.minPrice?e.minPrice.replace(/000$/,""):"",maxPrice:e.maxPrice?e.maxPrice.replace(/000$/,""):"",region:e.region,convenience:e.convenience,userCount:e.userCount,date:e.date,startTime:e.startTime,endTime:e.endTime}),isResetEnabled:Object.keys(i).some(e=>{let t=i[e];return Array.isArray(t)?t.length>0:"string"==typeof t?""!==t&&"ALL"!==t:"number"==typeof t?0!==t:"object"==typeof t&&null!==t?Object.keys(t).length>0&&!!t.regionId:!!t})||(t=e).convenience.length>0||"ALL"!==t.coupon||"ALL"!==t.payment||"ALL"!==t.usage||""!==t.date||""!==t.endTime||""!==t.startTime||""!==t.maxPrice||""!==t.minPrice||!!t.region.regionId||0!==t.space.id||0!==t.theme.id||0!==t.userCount}}(l),T=(0,r.useRef)(null),P=(0,r.useRef)(null),I=(0,r.useRef)(null),M=(0,r.useRef)(null),L=(0,r.useRef)(null),D=(0,r.useRef)(null),R=(0,r.useRef)(null),O=(0,r.useRef)(null),B=(0,r.useRef)(!1),F=(0,r.useRef)(null),Q=(0,r.useRef)(null),q=tj();(0,r.useEffect)(()=>{let e=P.current?.querySelector(".slider_container");e&&(e.scrollLeft=0)},[x]),(0,r.useEffect)(()=>{let e=e=>{T.current&&!T.current.contains(e.target)&&_(e=>e.sortOption?{...e,sortOption:!1}:e)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,r.useEffect)(()=>{document.body.style.overflow=w?"hidden":""},[w]);let U=()=>{_(ro),(0,i.unlockBodyScroll)("")},H=(e,t=0)=>{let r=M.current,i={region:L.current,date:D.current,userCount:R.current,filter:O.current}[e];if(!r||!i){B.current=!1;return}if("region"!==e&&i.offsetTop<=32&&t<15)return void setTimeout(()=>H(e,t+1),100);let l=i.offsetTop-32;r.scrollTo?r.scrollTo({top:l,behavior:"auto"}):r.scrollTop=l,setTimeout(()=>{B.current=!1},150)},z=e=>{B.current=!0,N(e),requestAnimationFrame(()=>H(e))},W=e=>{if(!x)return void(y[e]?U():(_({...ro,[e]:!0}),(0,i.lockBodyScroll)()));"interest"!==e&&"mobile"!==e&&"sortOption"!==e&&(e=>{if(m)return;(0,i.lockBodyScroll)();let t=!y.mobile;_({...y,mobile:t}),t&&$(),z(e),requestAnimationFrame(()=>requestAnimationFrame(()=>H(e)))})(e)},K=()=>{v(!1)},Y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!Y.current)return;Y.current=!1;let e=P.current?.querySelector(".slider_container");e?.scrollTo({left:0})});let J=q.clearSelected;(0,r.useEffect)(()=>{l.region.regionId||J()},[l.region.regionId]),(0,r.useEffect)(()=>{if(x)return;let e=e=>{let t=e.composedPath(),r=!!I.current&&t.includes(I.current);I.current&&!r&&U()};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[x]),(0,r.useEffect)(()=>{e?.(!x&&Object.values(y).some(Boolean))},[y,x,e]);let V=(0,r.useRef)(e);(0,r.useEffect)(()=>{V.current=e},[e]),(0,r.useEffect)(()=>()=>{V.current?.(!1),(0,i.unlockBodyScroll)("")},[]);let X=e=>{if(!m)switch(e){case"region":a({...l,region:{}});break;case"date":a({...l,date:"",startTime:"",endTime:""});break;case"userCount":a({...l,userCount:0});break;case"filter":a({...l,usage:"ALL",minPrice:"",maxPrice:"",convenience:[],coupon:"ALL",payment:"ALL",isNowPay:!1,isCoupon:!1})}},G="ALL"!==l.usage||Number(l.minPrice||0)>0||Number(l.maxPrice||0)>0||l.convenience.length>0,Z=()=>{m||(a({...l,...t6}),localStorage.removeItem("last_selected_theme"))}
6,ee=function(e){let{coupon:t,region:r,userCount:i,usage:l,payment:s,date:a,startTime:n,endTime:o,minPrice:c,maxPrice:d,convenience:p,isCoupon:m,isNowPay:u,isNowPayQuick:h}=e;return!!(a||n||o||r.regionName||i>0||"ALL"!==t||"ALL"!==l||"ALL"!==s||c&&"0"!==c||d&&"0"!==d||p.length>0||m||u||h)}(l),et=y.userCount||l.userCount>0,er=y.region||!!l.region.regionName,ei=y.date||l.date.length>0||l.startTime.length>0,el=x?[{id:"filter",label:"필터",isActive:!1,icon:"filter",activeIcon:"filterActive"},{id:"region",label:"지역",isActive:er},{id:"date",label:"날짜/시간",isActive:ei},{id:"userCount",label:"인원",isActive:et}]:[{id:"region",label:"지역",isActive:er},{id:"date",label:"날짜/시간",isActive:ei},{id:"userCount",label:"인원",isActive:et}],es=[{id:"isNowPay",label:"바로결제",isActive:l.isNowPay},{id:"isCoupon",label:"쿠폰할인",isActive:l.isCoupon}],ea=e=>{if(m)return;if(U(),"isNowPayQuick"===e){let e=!l.isNowPayQuick,t=e&&l.isNowPay;a({...l,isNowPayQuick:e,...t&&{isNowPay:!1,payment:"ALL"}});return}if("isNowPay"===e){let e="NOWPY"===l.payment?"ALL":"NOWPY",t="NOWPY"===e,r=t&&l.isNowPayQuick;a({...l,payment:e,isNowPay:t,...r&&{isNowPayQuick:!1}});return}let t="discount"===l.coupon?"ALL":"discount";a({...l,coupon:t,isCoupon:"discount"===t})},en=rc.find(e=>e.id===l.selectedSortOption.id)?.label??"추천순";return(0,t.jsxs)("div",{...t8,children:[(0,t.jsx)("div",{...t8,className:"filter_container bg-white min-[1025px]:relative min-[1025px]:z-header-filter min-[1025px]:shadow-toast",ref:I,children:(0,t.jsxs)("div",{...t8,className:"filter_wrapper flex items-center overflow-hidden pt-0 pr-0 pb-2 pl-4 max-w-480 mx-auto my-0 min-[1025px]:relative min-[1025px]:py-4 min-[1025px]:px-21 min-[1025px]:h-16 min-[1025px]:overflow-visible",children:[!x&&ee&&(0,t.jsxs)("button",{...t8,className:`reset_filter_button flex items-center gap-1 py-2 px-3 h-9 bg-sc-black mr-2 font-normal text-white [.pc_&]:text-white cursor-pointer ${t7}`,onClick:Z,children:[(0,t.jsx)(n.default,{icon:"refresh",width:"16px",height:"16px",strokeColor:"#fff",fillColor:"#1f1f1f"}),(0,t.jsx)("span",{...t8,children:"초기화"})]}),!x&&(0,t.jsxs)("button",{...t8,className:`now_pay_quick_button flex items-center gap-1 h-9 py-1 px-3 border mr-2 cursor-pointer ${t7} ${l.isNowPayQuick?"active bg-primary border-primary text-white [.pc_&]:text-white":"bg-white border-gray-04 text-sc-black [.pc_&]:text-sc-black"}`,onClick:()=>ea("isNowPayQuick"),children:[(0,t.jsx)(n.default,{icon:"live",width:"18px",height:"18px"}),(0,t.jsx)("span",{...t8,className:l.isNowPayQuick?"text-white font-medium":void 0,children:"NOW"}),l.isNowPayQuick&&(0,t.jsx)("span",{...t8,className:"filter_close_button flex items-center justify-center ml-0.5 cursor-pointer text-white font-medium",onClick:e=>{e.stopPropagation(),ea("isNowPayQuick")},children:(0,t.jsx)(n.default,{icon:"close",width:"12px",height:"12px",fillColor:"#fff"})})]}),!x&&(0,t.jsxs)("button",{...t8,className:`filter_button flex items-center cursor-pointer p-0 bg-transparent min-[1025px]:h-9 min-[1025px]:py-1 min-[1025px]:px-3 min-[1025px]:border min-[1025px]:[.pc_&]:rounded-legacy-100 min-[1025px]:mr-4 ${y.filter||G?"active min-[1025px]:bg-primary min-[1025px]:border-primary":"min-[1025px]:bg-white min-[1025px]:border-gray-04"}`,onClick:()=>W("filter"),children:[(0,t.jsx)(n.default,{icon:y.filter||G?"filterActive":"filter",width:"32px",height:"32px",className:"filter_icon shrink-0 min-[1025px]:w-4.5 min-[1025px]:h-4.5 min-[1025px]:mr-1"}),(0,t.jsx)("span",{...t8,className:`filter_label hidden min-[1025px]:inline min-[1025px]:text-pc-body-2 ${y.filter||G?"min-[1025px]:text-white":"min-[1025px]:text-sc-black"}`,children:"필터"}),G&&(0,t.jsx)("span",{...t8,className:"filter_close_button flex items-center justify-center ml-0.5 cursor-pointer min-[1025px]:text-white",onClick:e=>{e.stopPropagation(),X("filter")},children:(0,t.jsx)(n.default,{icon:"close",width:"12px",height:"12px",fillColor:"#fff"})})]}),!x&&(0,t.jsxs)("div",{...t8,ref:T,className:"select_wrapper flex items-center relative border border-gray-04 rounded-legacy-100 bg-white mr-5 py-1 px-3 h-9",children:[(0,t.jsxs)("button",{...t8,className:"select_button flex items-center p-0 gap-1",onClick:()=>{y.sortOption?_(e=>({...e,sortOption:!1})):_({...ro,sortOption:!0})},children:[(0,t.jsx)("span",{...t8,className:"select_label inline text-pc-body-2 text-sc-black",children:en}),(0,t.jsx)(n.default,{icon:"chevron",width:"18px",height:"18px",strokeColor:"#1F1F1F"})]}),w&&(0,t.jsx)("div",{...t8,className:"options_wrapper",children:(0,t.jsx)("ul",{...t8,className:"options_list absolute top-[calc(100%_+_1px)] left-0 mt-3.5 bg-white border border-gray-03 shadow-legacy-dropdown min-w-35 rounded-b-lg",children:rc.map(e=>(0,t.jsx)("li",{...t8,className:"sort_option flex justify-start w-full h-12",children:(0,t.jsxs)("button",{...t8,type:"button",className:"option_select w-full py-3 px-4 text-left text-pc-body-1 [.pc_&]:text-pc-body-1 bg-transparent text-gray-05 [.pc_&]:text-gray-05 cursor-pointer font-normal [&:hover]:bg-gray-02 [&:hover]:text-sc-black [&:hover]:font-medium [li:last-child>&:hover]:rounded-b-lg",onClick:()=>{_(e=>({...e,sortOption:!1})),a({...l,selectedSortOption:e})},children:[`
7                  ${e.label}
8                  `,"BEST_DESC"===e.id&&(0,t.jsxs)("div",{...t8,className:"tooltip_section relative inline-flex",onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[(0,t.jsx)(rd,{}),b&&(0,t.jsx)("div",{...t8,className:"tooltip_wrapper bottom_right absolute z-tooltip top-full left-0 mt-1.5",children:(0,t.jsx)("div",{...t8,className:"tooltip_inner py-2 px-3 w-50 rounded-md border border-sc-black bg-white shadow-toast text-sc-black text-pc-body-2 font-normal",children:(0,t.jsxs)("p",{...t8,children:["공간의 만족도, 신뢰도를 종합적으로 점수화하여 정렬합니다.",(0,t.jsx)("br",{...t8}),"단, 광고 영역은 별도 기준에 따라 정렬합니다."]})})})]})]})},`${e.value}_${e.id}`))})})]}),(0,t.jsxs)("div",{...t8,ref:P,className:"filter_button_wrapper flex items-center flex-1 relative min-w-0 min-[1025px]:ml-4 min-[1025px]:pl-4 min-[1025px]:border-l min-[1025px]:border-l-gray-03 min-[1025px]:gap-4",children:[x&&ee&&(0,t.jsxs)("button",{...t8,className:`mobile_reset_filter_button flex items-center justify-center shrink-0 gap-1 h-8 py-2 px-3 bg-sc-black mr-2 font-normal text-white [.pc_&]:text-white ${t7}`,onClick:Z,children:[(0,t.jsx)(n.default,{icon:"refresh",width:"16px",height:"16px",strokeColor:"#fff"}),(0,t.jsx)("span",{...t8,children:"초기화"})]}),(0,t.jsxs)(tC,{children:[x&&(0,t.jsxs)("button",{...t8,className:`filter_choice_button now_pay_quick_mobile ${ri(l.isNowPayQuick)}`,onClick:()=>ea("isNowPayQuick"),children:[(0,t.jsx)(n.default,{icon:"live",width:"18px",height:"18px"}),(0,t.jsx)("span",{...t8,className:l.isNowPayQuick?rr:void 0,children:"NOW"}),l.isNowPayQuick&&(0,t.jsx)("span",{...t8,className:`${rt} ${rr}`,onClick:e=>{e.stopPropagation(),ea("isNowPayQuick")},children:(0,t.jsx)(n.default,{icon:"close",width:"14px",height:"14px",fillColor:"#fff"})})]}),el.map(e=>{let r=(e=>
8{switch(e){case"region":return l.region.regionName?l.region.regionName:"";case"date":{let{date:e,startTime:t,endTime:r}=l,i=e.length>0,s=t.length>0,a=r.length>0,n=ra(new Date);if(i&&!s)return ra(rn(e));if(!i&&s&&a)return`${n} ${t}시 ~ ${r}시`;if(!i&&s&&!a)return`${n} ${t}시 ~ 24시`;if(i&&s&&a)return`${ra(rn(e))} ${t}시 ~ ${r}시`;if(i&&s&&!a)return`${ra(rn(e))} ${t}시 ~ 24시`;return""}case"userCount":return l.userCount>0?`${l.userCount}명`:"";default:return""}})(e.id);return(0,t.jsxs)("button",{...t8,className:`filter_choice_button ${ri(e.isActive)}`,onClick:"userCount"===e.id||"region"===e.id||"date"===e.id||"filter"===e.id?()=>W(e.id):void 0,children:[e.icon&&(0,t.jsx)(n.default,{icon:e.isActive?e.activeIcon:e.icon,width:"18px",height:"18px"}),(0,t.jsx)("span",{...t8,className:e.isActive?rr:void 0,children:r.length>0?r:!x&&["region","date","userCount"].includes(e.id)?`${e.label} 선택`:e.label}),r.length>0&&(0,t.jsx)("span",{...t8,className:`${rt}${e.isActive?` ${rr}`:""}`,onClick:t=>{t.stopPropagation(),X(e.id)},children:(0,t.jsx)(n.default,{icon:"close",width:"14px",height:"14px",fillColor:"#fff"})})]},e.id)}),es.map(e=>(0,t.jsxs)("button",{...t8,className:`filter_choice_button ${ri(e.isActive)}`,onClick:()=>ea(e.id),children:["isNowPay"===e.id&&!e.isActive&&(0,t.jsx)(n.default,{icon:"lightning",width:"14px",height:"14px"}),"isNowPay"===e.id&&e.isActive&&(0,t.jsx)(n.default,{icon:"lightningActive",width:"14px",height:"14px",fillColor:"#fff",strokeColor:"#fff"}),"isCoupon"===e.id&&!e.isActive&&(0,t.jsx)(n.default,{icon:"coupon",width:"14px",height:"14px"}),"isCoupon"===e.id&&e.isActive&&(0,t.jsx)(n.default,{icon:"couponActive",width:"14px",height:"14px",fillColor:"#fff",innerColor:"#4f00f8"}),(0,t.jsx)("span",{...t8,className:e.isActive?rr:void 0,children:e.label})]},e.id)),x&&(0,t.jsx)("button",{...t8,className:`filter_choice_button ${ri(A)}`,onClick:()=>{v(!0),q.load()},children:(0,t.jsx)("span",{...t8,className:A?rr:void 0,children:"관심지역"})})]})]}),!x&&(0,t.jsx)("button",{...t8,className:"interest_button py-2 px-6 h-10 rounded-lg [.pc_&]:rounded-lg border border-gray-05 text-pc-body-1 [.pc_&]:text-pc-body-1 not-italic font-medium",onClick:()=>W("interest"),children:"관심지역"}),!x&&(0,t.jsxs)("button",{...t8,className:"view_toggle_button flex items-center gap-2 py-2 pr-4 pl-3 h-10 rounded-lg [.pc_&]:rounded-lg ml-3 text-pc-body-1 [.pc_&]:text-pc-body-1 not-italic font-medium bg-primary-2 text-white [.pc_&]:text-white",onClick:()=>{m||p(!d)},children:[(0,t.jsx)(n.default,{icon:d?"list":"map",width:"20px",height:"20px",strokeColor:"#fff"}),d?"목록으로 보기":"지도로 보기"]}),!x&&y.filter&&(0,t.jsx)(tq,{onPopupClose:U}),!x&&y.region&&(0,t.jsx)(tH,{onPopupClose:U}),!x&&y.date&&(0,t.jsx)(t3,{onPopupClose:U}),!x&&y.userCount&&(0,t.jsx)(tI,{onPopupClose:U}),!x&&y.interest&&(0,t.jsx)(tk,{onPopupClose:U})]})}),x&&y.mobile&&(0,t.jsx)(t4.default,{title:"원하는 조건을 골라볼까요?",onPopupClose:U,appKeyboardGuard:!0,footer:(0,t.jsxs)("div",{...t8,className:"panel_buttons_wrapper fixed bottom-0 left-0 right-0 flex items-center border-t border-t-gray-03 bg-white text-legacy-black pt-4 px-4 pb-[calc(16px_+_env(safe-area-inset-bottom))]",children:[(0,t.jsx)("button",{...t8,type:"button",onClick:()=>{Q.current?.resetFilters(),F.current?.resetFilters(),a({...l,...t6}),localStorage.removeItem("last_selected_theme"),S()},className:"reset_button h-12 py-2 px-3 text-pc-body-1 [.pc_&]:text-pc-body-1 disabled:text-gray-04",disabled:!E,children:"초기화"}),(0,t.jsx)("button",{...t8,type:"button",onClick:()=>{let{usage:e,coupon:t,payment:r,region:i,convenience:s,userCount:n,date:o,startTime:c,endTime:d}=k,{min:p,max:m}={min:k.minPrice?1e3*Number(String(k.minPrice).replace(/,/g,"")):0,max:k.maxPrice?1e3*Number(String(k.maxPrice).replace(/,/g,"")):0};p&&m&&m-p<5e3?u("warning","최소, 최대 가격 차이는 5천원 이상이어야 해요."):(a({...l,usage:e,coupon:t,payment:r,minPrice:p?String(p):"",maxPrice:m?String(m):"",region:i,convenience:s,userCount:n,date:o,startTime:c,endTime:d}),U())},className:"apply_button h-12 w-29 py-2 px-3 text-pc-body-1 [.pc_&]:text-pc-body-1 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white ml-auto",children:"공간 찾기"})]}),children:(0,t.jsxs)("div",{...t8,className:"mobile_filter_wrapper pt-11 px-4 pb-0 h-[calc(100dvh_-_130px_-_env(safe-area-inset-bottom))] bg-gray-01 overflow-hidden",children:[(0,t.jsx)("ul",{...t8,className:"filter_tab_list flex fixed top-12 left-0 right-0 h-11 border-b border-b-gray-03 bg-white shadow-toast",children:rl.map(e=>(0,t.jsx)("li",{...t8,className:"flex-[1_0_0]",children:(0,t.jsx)("button",{...t8,className:`p-0 w-full h-full flex items-center justify-center text-pc-subtitle-3 [.pc_&]:text-pc-subtitle-3 not-italic font-medium ${j===e.id?"active border-b-2 border-b-sc-black text-sc-black [.pc_&]:text-sc-black":"text-gray-04 [.pc_&]:text-gray-04"}`,onClick:()=>z(e.id),children:e.label})},e.id))}),(0,t.jsxs)("div",{...t8,className:"mobile_popup_filter_wrapper flex flex-col pt-8 px-0 pb-[calc(96px_+_env(safe-area-inset-bottom))] h-full overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] overscroll-contain transform-[translateZ(0)] [&::-webkit-scrollbar]:hidden",ref:M,onScroll:()=>{if(B.current)return;let e=M.current;if(!e)return;
8let t=e.scrollTop,r=[["region",L.current],["date",D.current],["userCount",R.current],["filter",O.current]],i="region";for(let[e,l]of r)l&&t>=l.offsetTop-32&&(i=e);j!==i&&N(i)},children:[(0,t.jsx)("div",{ref:L,...t8,className:"filter_section","data-testid":"mobile-section-region",children:(0,t.jsx)(tH,{ref:F,onPopupClose:()=>{},onUpdateRegion:e=>C("region",e)})}),(0,t.jsx)("div",{ref:D,...t8,className:`filter_section ${re}`,"data-testid":"mobile-section-date",children:(0,t.jsx)(t3,{onPopupClose:()=>{},onUpdateDate:e=>C("date",e),onUpdateStartTime:e=>C("startTime",e),onUpdateEndTime:e=>C("endTime",e)})}),(0,t.jsx)("div",{ref:R,...t8,className:`filter_section ${re}`,"data-testid":"mobile-section-userCount",children:(0,t.jsx)(tI,{onPopupClose:()=>{},onUpdateUserCount:e=>C("userCount",e)})}),(0,t.jsx)("div",{ref:O,...t8,className:`filter_section ${re}`,"data-testid":"mobile-section-filter",children:(0,t.jsx)(tq,{ref:Q,onPopupClose:()=>{},onUpdateUsage:e=>C("usage",e),onUpdateMinPrice:e=>C("minPrice",e),onUpdateMaxPrice:e=>C("maxPrice",e),onUpdateConvenience:e=>C("convenience",e)})})]})]})}),A&&x&&(0,t.jsx)(tS.default,{title:"내가 설정한 관심지역이에요",closeModal:K,children:(0,t.jsx)("div",{...t8,className:"favorite_popup_content min-h-37.5",children:q.isLoading?(0,t.jsx)("div",{...t8,className:"favorite_spinner_wrapper",children:(0,t.jsx)(tw.default,{hostAttrs:t8})}):(0,t.jsxs)(t.Fragment,{children:[0===q.options.length?(0,t.jsx)("div",{...t8,className:"favorite_radio_wrapper mb-8",children:(0,t.jsxs)("p",{...t8,className:"favorite_noti_text text-pc-subtitle-3 font-normal text-center text-gray-05",children:["설정한 관심지역이 없어요.",(0,t.jsx)("br",{...t8}),"관심지역을 설정하면 공간 탐색이 빨라져요."]})}):(0,t.jsx)("div",{...t8,className:"favorite_radio_wrapper region_button_group mb-8",children:q.options.map(e=>(0,t.jsx)("button",{...t8,className:`region_button${q.selectedValue===e.value?" selected":""}`,onClick:()=>{var t;return t=e.value,void(q.select(t)&&(K(),Y.current=!0))},children:e.label},e.id))}),(0,t.jsx)("button",{...t8,className:"set_favorite_region_button w-full h-12 rounded-lg [.pc_&]:rounded-lg bg-primary-2 text-white [.pc_&]:text-white text-pc-subtitle-3 [.pc_&]:text-pc-subtitle-3 font-medium",onClick:()=>{f.push("/my/interest"),K()},children:"관심지역 설정하기"})]})})})]})}var rm=e.i(919258),ru=e.i(525394),rh=e.i(521799);let rx={"data-v-bt":""},rf=String.raw`gap-2 absolute -top-11 bg-sc-white w-14 h-[70px] [.tab\_list_&]:rounded-[50%] before:content-[''] before:absolute before:top-0 before:left-0 before:w-[54px] before:h-7 before:border before:border-b-0 before:[border-style:solid_solid_none] before:border-legacy-gray-eee before:rounded-t-[28px] before:box-border before:[clip-path:inset(0_7.7%_0_7.7%)] before:[transform:translateX(1px)]`,rb=String.raw`flex flex-col p-0 items-center justify-center [.tab\_list_&]:text-pc-body-4`;function rg(e,t){return["relative",2===e?"flex items-center justify-center bg-sc-white w-10 h-10 rounded-[50%] shadow-[0_1px_8px_0] shadow-legacy-black-10 mt-0.5":"",t?"text-primary font-semibold":""].filter(Boolean).join(" ")}function ry({onOpenSpaceList:e,onCloseSpaceList:i,isSpaceListOpen:l,onOpenMyMenu:a,onCloseMyMenu:c,isMenuOpen:d,onToggleAppInstallModal:p,isMobile:m,ref:u}){let h=(0,s.usePathname)(),x=(0,s.useRouter)(),{headerFilter:f,categories:b,themes:g,isMainPageLoading:y}=(0,o.useMainState)(),[_,w]=(0,r.useState)(""),A=(0,rh.default)(),v=(0,r.useCallback)(()=>{"/"===h?(w("home"),m&&"true"===new URLSearchParams(window.location.search).get("openMyMenu")&&(a(),w("circleUser"),x.replace("/"))):"/contents"===h?w("contents"):w("")},[h,a,x,m]);(0,r.useEffect)(()=>{v()},[v]),(0,r.useImperativeHandle)(u,()=>({setActiveTabFromUrl:v}),[v]);let j=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!j.current){j.current=!0;return}!l&&!d&&(f.space.id||f.theme.id)&&"/"===h&&w("home")},[l]);let N=f.categoryType,k=b.find(e=>e.id===f.space.id)?.category_image_url||"",C=g.find(e=>e.theme_id===f.theme.id)?.image_url||"",S=[{id:"home",icon:"home",label:"홈",link:"/"},{id:"contents",icon:"contents",label:"추천",link:"/contents"},{id:"spaceType",icon:"allTypeActive",label:f.space.id?f.space.name:f.theme.name},{id:"chat",icon:"chat",label:"채팅"},{id:"circleUser",icon:"circleUser",label:"마이"}
8],$="space"===N?k:C;return(0,t.jsxs)("nav",{...rx,className:`block fixed bottom-0 left-0 right-0 h-[70px] bg-sc-white border-t [border-top-style:solid] border-t-legacy-gray-eee min-[1025px]:hidden bottom_nav${"circleUser"===_||"spaceType"===_?" float z-dropdown":" z-sticky"}`,children:[(0,t.jsx)("h2",{...rx,className:"hidden_text",children:"Bottom Navigation"}),(0,t.jsx)("ul",{...rx,className:"tab_list flex m-0 pt-2 px-0 pb-4 list-none items-center justify-around",children:S.map((r,s)=>(0,t.jsx)("li",{...rx,className:`flex flex-1 justify-center relative cursor-pointer ${_===r.id?"active":""}`,children:(0,t.jsxs)("button",{...rx,className:`${rb} ${2===s?rf:"gap-1"} tab_button${f.space.id?" active":""}`,onClick:()=>(t=>{if(!y){if(w(t.id),"circleUser"===t.id){l&&i(),a(),document.body.style.overflow="hidden";return}if("spaceType"===t.id){e(),c(),V();return}d&&(c(),document.body.style.overflow="auto",V()),l&&(i(),document.body.style.overflow="auto"),t.link&&(window.location.href=t.link),"chat"===t.id&&(()=>{if(!(0,ew.isFlutterReady)())return p();if(A(rm.REDIRECT_URL.chatList)){let e;(e=(0,e_.getUserSession)())&&((0,ru.setRedirectionChatPath)(),window.location.href=`${rm.REDIRECT_URL.chatList}${e.id}`)}})()}})(r),children:["spaceType"===r.id&&(0!==f.space.id||0!==f.theme.id)&&$?(0,t.jsx)("span",{...rx,className:`${rg(s,_===r.id)} space_type_icon_wrapper${"spaceType"===_?" active":""}`,children:(0,t.jsx)("img",{...rx,width:"36",height:"36",src:$,alt:""})}):(0,t.jsxs)("span",{...rx,className:`${rg(s,_===r.id)} space_type_icon_wrapper`,children:[(0,t.jsx)(n.default,{icon:r.icon,width:"allTypeActive"===r.icon?"36px":"24px",height:"allTypeActive"===r.icon?"36px":"24px",fillColor:"none",strokeColor:_===r.id?"#4f00f8":"#767676"}),"contents"===r.id&&(0,t.jsx)("span",{...rx,className:"new_badge absolute -top-1 -right-2 inline-flex items-center justify-center w-4 h-4 text-legacy-9 font-semibold text-sc-white bg-primary rounded-[50%] leading-none",children:"N"})]}),(0,t.jsx)("span",{...rx,className:`whitespace-nowrap overflow-hidden text-ellipsis max-w-15 ${_===r.id?"text-primary font-semibold":"text-gray-05 font-medium"} tab_text`,children:r.label})]})},r.id))})]})}let r_=["/agreement","/policyPerson","/policyOperate","/reserve/list","/my","/my/level","/my/badge","/my/review","/space/zzim","/my/interest","/event","/board/notice","/introduction"],rw={"data-v-th":""};function rA({hasBackButton:e=!1}){var i;let l,a=(0,s.usePathname)(),c=(0,s.useRouter)(),{spacePageTitle:d}=(0,o.useMainState)(),p=(a?.includes("/space")??!1)&&d||((l={"/agreement":"이용약관","/auth/login":"로그인","/auth/signup":"회원가입","/board/notice":"공지사항","/contents":"추천 콜렉션","/event":"이벤트","/my":"프로필 관리","/my/level":"등급별 혜택 안내","/my/coin":"내 스클코인","/my/coupons":"내 쿠폰","/my/badge":"내 배지","/my/review":"이용 후기 관리","/my/interest":"내 관심정보 설정","/policyOperate":"운영정책","/policyPerson":"개인정보처리방침","/reserve":"예약내역","/space/zzim":"찜한 공간"})[i=a||"/"]?l[i]:i.startsWith("/reserve/")?"예약내역":"spacecloud"),m=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{m.current=!1},[a]),(0,t.jsxs)("div",{...rw,className:"title_header relative h-12 text-center py-3 px-0 bg-sc-white text-mo-subtitle-1 not-italic font-semibold leading-[22px] text-sc-black flex items-center justify-center border-b [border-bottom-style:solid] border-b-gray-03 z-header",children:[e&&(0,t.jsx)("button",{...rw,className:"title_header_button flex items-center p-0 absolute left-4 top-1/2 [transform:translateY(-50%)]",onClick:()=>{let e=new URLSearchParams(window.location.search);if("pay_completed"===e.get("status")&&(0,ew.dispatchFlutterPayCompletedHeaderBack)(),!m.current){var t,r;if(m.current=!0,"myMenuHome"==(t=a||"/",r=e.get("from"),"/my/coupons"===t?"coin"===r?"historyBack":"myMenuHome":"/my/coin"===t||r_.includes(t)?"myMenuHome":"historyBack"))return void c.push("/?openMyMenu=true");history.back()}},children:(0,t.jsx)(n.default,{icon:"chevron",width:"24px",height:"24px",strokeColor:"#1F1F1F",rotate:"90"})}),(0,t.jsx)("h2",{...rw,className:"title_text",children:p})]})}let rv=["/space/zzim"],rj=["/auth/reset/password"],rN=/sc_ios|sc_android/i,rk=()=>{let e;(e=document.activeElement)instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLElement&&e.isContentEditable||0===document.documentElement.scrollTop&&0===document.body.scrollTop||window.scrollTo(0,0)},rC=()=>{let e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e.blur()};var rS=e.i(296845),r$=e.i(999396),rE=e.i(296179),rT=e.i(635018),rP=e.i(668973);let rI={lastPath:null,previousPath:null};var rM=e.i(189916);
8function rL(){let{isMapView:e,isNoFooter:r}=(0,o.useMainState)();return r||e?null:(0,t.jsx)(ta,{})}function rD({hasTab:e,isMobile:r,onOpenSpaceList:i,onCloseSpaceList:l,isSpaceListOpen:s,onOpenMyMenu:a,onCloseMyMenu:n,isMyMenuOpen:c,onToggleAppInstallModal:d,bottomTabRef:p}){let{isHideBottomTab:m}=(0,o.useMainState)();return!e||m?null:(0,t.jsx)(ry,{ref:p,isMobile:r,onOpenSpaceList:i,onCloseSpaceList:l,isSpaceListOpen:s,onOpenMyMenu:a,onCloseMyMenu:n,isMenuOpen:c,onToggleAppInstallModal:d})}function rR({isMobile:e,isOpenMyMenu:r,onClose:i,onRequestLogout:l}){return e&&r?(0,t.jsx)(ef,{onClose:i,onRequestLogout:l}):null}function rO({isMobile:e,isOpenSpaceList:i,onClose:l}){return e&&i?(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(U,{onClose:l})}):null}e.s(["default",0,function({children:e}){var a,n;let d,p,m=(0,s.usePathname)(),u=(0,s.useRouter)(),x=(0,h.default)(),f="/"===m,[b,g]=(0,r.useState)(!1),[y,_]=(0,r.useState)(!1),[w,A]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[N,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),$=(0,r.useRef)(null),[E,T]=(0,r.useState)(!1),P=(0,ey.useUserSessionStore)(e=>e.setUser),I=()=>{g(!1),(0,i.unlockBodyScroll)()},M=()=>{let e;e=document.body.style.top,document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="auto",window.scrollTo(0,-1*parseInt(e||"0")),j(!1)},L=(0,r.useCallback)(()=>k(!0),[]),R=(0,r.useCallback)(()=>k(!1),[]),O=()=>A(!0),B=(0,r.useCallback)(()=>S(e=>!e),[]),F="/"===(d=m||"")||/^\/(contents)(\/|$)/.test(d),Q=x&&F,[q,U]=(0,r.useState)(!1);(0,r.useLayoutEffect)(()=>{U(!0)},[]);let H=F&&(x||!q),z=(0,r.useRef)(null);(0,r.useEffect)(()=>{z.current&&(z.current.scrollTop=0)},[m]),(0,r.useEffect)(()=>{let e=e=>{e.relatedTarget||requestAnimationFrame(rk)};if(document.addEventListener("focusout",e),!((0,ew.isFlutterReady)()||rN.test(navigator.userAgent)))return()=>document.removeEventListener("focusout",e);let t=()=>{"hidden"===document.visibilityState&&rC()};return window.addEventListener("pagehide",rC),document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("focusout",e),window.removeEventListener("pagehide",rC),document.removeEventListener("visibilitychange",t)}},[]);let W=!x||f,K=!W&&x,Y=!!(a=m??"/").startsWith("/auth")&&!rj.includes(a),J="/auth/callback"===m||(m?.startsWith("/payment/receipt/")??!1),V=(0,r.useRef)(rI);return(m&&(p=V.current,V.current={lastPath:m,previousPath:null!==p.lastPath&&p.lastPath!==m?p.lastPath:p.previousPath}),(0,r.useEffect)(()=>{let e=()=>{window.innerWidth>768?document.body.classList.add("pc"):document.body.classList.remove("pc")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{(0,ew.markFlutterReady)()},[]),J)?(0,t.jsx)(rT.PreviousPathContext.Provider,{value:V.current.previousPath,children:(0,t.jsxs)(c.ToastProvider,{children:[e,(0,t.jsx)(c.ToastList,{})]})}):(0,t.jsx)(rT.PreviousPathContext.Provider,{value:V.current.previousPath,children:(0,t.jsx)(rP.SetIsNoFooterContext.Provider,{value:T,children:(0,t.jsx)(c.ToastProvider,{children:(0,t.jsx)(o.MainStateProvider,{children:(0,t.jsxs)("div",{className:"main_layout bg-white flex flex-col h-screen supports-[height:100dvh]:h-dvh overflow-hidden",children:[(0,t.jsx)("ul",{id:"u_skip",className:"absolute left-0 top-0 w-full z-sticky",children:(0,t.jsx)("li",{className:"absolute left-0 top-0 w-full z-sticky",children:(0,t.jsx)("a",{href:"#content_wraper",className:"overflow-hidden block w-px h-px -mb-px text-white text-[0px] no-underline active:w-full active:h-auto active:py-1.25 active:bg-legacy-text-strong active:text-mo-subtitle-3 active:text-center focus:w-full focus:h-auto focus:py-1.25 focus:bg-legacy-text-strong focus:text-mo-subtitle-3 focus:text-center",children:"컨텐츠 바로가기"})})}),(0,t.jsx)("h1",{className:"hidden_text",children:"spacecloud"}),(0,t.jsxs)("header",{className:"fixed_header_wrapper sticky top-0 shrink-0 z-header bg-white",children:[K&&(0,t.jsx)(rA,{hasBackButton:(n=m||"/",!Q&&(!!rv.includes(n)||!n.startsWith("/space")))}),W&&(0,t.jsx)(D,{onMenuClick:()=>{g(!0),(0,i.lockBodyScroll)()},isOpenSpaceList:v&&x,onCloseSpaceList:M}),f&&(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(t_,{})}),f&&!v&&(0,t.jsx)(rp,{onDimmedChange:_})]}),y&&(0,t.jsx)("div",{className:"filter_content_dimmed fixed inset-0 bg-[rgba(0,0,0,0.5)] z-sticky"}),(0,t.jsxs)("div",{ref:z,className:"scroll_container flex-1 overflow-y-auto overflow-x-hidden [-webkit-overflow-scrolling:auto] min-h-0 flex flex-col",children:[(0,t.jsx)("main",{className:"main_contents_wrapper bg-legacy-bg flex-1",children:e}),!Y&&!E&&(0,t.jsx)(rL,{})]}),(0,t.jsx)(c.ToastList,{}),(0,t.jsx)(rD,{hasTab:H,isMobile:x,onOpenSpaceList:()=>{l=window.scrollY,document.body.style.position="fixed",document.body.style.top=`-${l}px`,document.body.style.width="100%",document.body.style.overflow="hidden",j(!0)},onCloseSpaceList:M,isSpaceListOpen:v,onOpenMyMenu:L,onCloseMyMenu:R,isMyMenuOpen:N,onToggleAppInstallModal:B,bottomTabRef:$}),(0,t.jsx)(rR,{isMobile:x,isOpenMyMenu:N,onClose:R,onRequestLogout:O}),(0,t.jsx)(rO,{isMobile:x,isOpenSpaceList:v,onClose:M}),(0,t.jsx)(eX,{open:b,onClose:I,onRequestLogout:O}),b&&(0,t.jsx)("div",{className:"side_nav_dimmed block fixed top-0 right-0 bottom-0 left-0 bg-legacy-black-50 z-header",onClick:I}),w&&(0,t.jsx)(rS.default,{buttons:[{text:"로그아웃",className:"confirm",onClick:()=>{A(!1),I(),R(),(0,e_.clearSessionStorage)(),P(null),(0,ew.dispatchFlutterLogout)(),(0,rM.trackLogoutCompleted)(),u.push("/auth/login")}},{text:"취소",className:"text",onClick:()=>A(!1)}],closeModal:()=>A(!1),children:(0,t.jsx)("p",{style:{textAlign:"center"},children:"로그아웃 할까요?"})}),(0,t.jsx)(r$.default,{isOpen:C,onOk:()=>{B(),$.current?.setActiveTabFromUrl(),(0,rE.redirectToBridgeScreen)(e=>u.push(e))},onCancel:()=>{B(),$.current?.setActiveTabFromUrl()}})]})})})})})}],669090)},340131,e=>{"use strict";var t=e.i(448503),r=e.i(226472),i=e.i(694609),l=e.i(799458),s=e.i(400393);e.s(["default",0,()=>{let e=(0,r.usePathname)(),a=(0,i.useUserSessionStore)(e=>e.user?.id??null);return(0,t.useEffect)(()=>{(0,s.isMonitoringEnabled)()&&l.setTag("route",e)},[e]),(0,t.useEffect)(()=>
8{(0,s.isMonitoringEnabled)()&&l.setUser(null===a?null:{id:a})},[a]),null}],340131)},42603,e=>{"use strict";var t=e.i(448503),r=e.i(226472),i=e.i(324404);e.s(["default",0,()=>{let e=(0,r.usePathname)(),l=(0,r.useSearchParams)();return(0,t.useEffect)(()=>{let t=l.toString(),r=`${e}${t?`?${t}`:""}${window.location.hash}`;(0,i.sendGaPageView)(r)},[e,l]),null}])},464199,e=>{"use strict";var t=e.i(448503),r=e.i(789013);let i=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];e.s(["default",0,()=>((0,t.useEffect)(()=>{(()=>{let e=new URLSearchParams(window.location.search);if(!sessionStorage.getItem("utm_source"))if(i.some(t=>e.get(t)))i.forEach(t=>{sessionStorage.setItem(t,e.get(t)||"")});else{let e=(e=>{if(!e)return{source:"direct",medium:"none"};try{let t=new URL(e).hostname;if(/search\.naver|m\.search\.naver/.test(t))return{source:"naver",medium:"organic"};if(/google\.com/.test(t))return{source:"google",medium:"organic"};if(/place\.naver/.test(t))return{source:"naver_place",medium:"referral"};if(/blog\.naver/.test(t))return{source:"naver_blog",medium:"referral"};if(/instagram\.com/.test(t))return{source:"instagram",medium:"social"};if(/facebook\.com/.test(t))return{source:"facebook",medium:"social"};if(/twitter\.com|x\.com|t\.co/.test(t))return{source:"twitter",medium:"social"};if(/spacecloud\.kr/.test(t))return{source:"spacecloud",medium:"internal"};return{source:t,medium:"referral"}}catch{return{source:"direct",medium:"none"}}})(document.referrer);sessionStorage.setItem("utm_source",e.source),sessionStorage.setItem("utm_medium",e.medium)}})(),(0,r.initMixpanel)(),(0,r.mixpanelRegister)({channel_source:sessionStorage.getItem("utm_source")||"direct",channel_medium:sessionStorage.getItem("utm_medium")||"none",channel_campaign:sessionStorage.getItem("utm_campaign")||"",channel_content:sessionStorage.getItem("utm_content")||"",channel_term:sessionStorage.getItem("utm_term")||""});let e=(()=>{let e=sessionStorage.getItem("utm_source");if("facebook"!==e&&"twitter"!==e)return null;let t={$referrer:"$direct",$referring_domain:"$direct"};return localStorage.getItem("initial_referrer_processed")||(localStorage.setItem("initial_referrer_processed","1"),t.$initial_referrer="$direct",t.$initial_referring_domain="$direct"),t})();e&&(0,r.mixpanelRegister)(e),(()=>{if(localStorage.getItem("anonymous_id"))return;let e="function"==typeof crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});return localStorage.setItem("anonymous_id",e)})()},[]),null)],464199)},96923,e=>{"use strict";let t;var r=e.i(503517),i=e.i(700519),l=e.i(31616),s=e.i(647854),a=e.i(610934),n=class extends a.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let s=t.queryKey,a=t.queryHash??(0,i.hashQueryKeyByOptions)(s,t),n=this.get(a);return n||(n=new l.Query({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(n)),n}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.matchQuery)(e,t)):t}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o=e.i(403351),c=a,d=class extends c.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#i=0}#t;#r;#i;build(e,t,r){let i=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#i,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#t.add(e);let t=p(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=p(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=p(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=p(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
8t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){s.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.matchMutation)(e,t))}notify(e){s.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.noop))))}};function p(e){return e.options.scope?.id}var m=e.i(593558),u=e.i(917767),h=class{#l;#s;#a;#n;#o;#c;#d;#p;constructor(e={}){this.#l=e.queryCache||new n,this.#s=e.mutationCache||new d,this.#a=e.defaultOptions||{},this.#n=new Map,this.#o=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#d=m.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onFocus())}),this.#p=u.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#d?.(),this.#d=void 0,this.#p?.(),this.#p=void 0)}isFetching(e){return this.#l.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#s.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#l.build(this,t),l=r.state.data;return void 0===l?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(l))}getQueriesData(e){return this.#l.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let l=this.defaultQueryOptions({queryKey:e}),s=this.#l.get(l.queryHash),a=s?.state.data,n=(0,i.functionalUpdate)(t,a);if(void 0!==n)return this.#l.build(this,l).setData(n,{...r,manual:!0})}setQueriesData(e,t,r){return s.notifyManager.batch(()=>this.#l.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state}removeQueries(e){let t=this.#l;s.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#l;return s.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(s.notifyManager.batch(()=>this.#l.findAll(e).map(e=>e.cancel(r)))).then(i.noop).catch(i.noop)}invalidateQueries(e,t={}){return s.notifyManager.batch(()=>(this.#l.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(s.notifyManager.batch(()=>this.#l.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#l.build(this,t);return r.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.noop).catch(i.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.noop).catch(i.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return u.onlineManager.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#l}getMutationCache(){return this.#s}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#n.set((0,i.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#n.values()],r={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#o.set((0,i.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#l.clear(),this.#s.clear()}},x=e.i(15678);let f=()=>new h({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}});e.s(["QueryProvider",0,({children:e})=>(0,r.jsx)(x.QueryClientProvider,{client:i.isServer?f():t??=f(),children:e})],96923)}]);
9
10//# debugId=adb29950-8226-422e-b75b-1146dc190fa7

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.