PageSourceSearch

https://simplespaceskorea.com/_nuxt/DGHVrO6i.js

js simplespaceskorea.com collected 2026-09-24 14:00:47 UTC 13,200 bytes, 1 lines download raw bytes

1import{_ as ie}from"./shhR9CF3.js";import ne from"./DyW30rRn.js";import{_ as se}from"./DF8kqMjq.js";import{A as v}from"./DAK42KnS.js";import{l as oe,ak as I,d as x,m as q,a6 as g,a7 as r,ah as l,a8 as M,at as h,au as $,u as o,c as k,a4 as U,al as F,ai as w,av as E,aj as P,aa as m,a9 as ae,an as re}from"./CcJNc_cG.js";import{b as de}from"./CFWIh0KZ.js";import{u as O}from"./tlgIIK1w.js";import"./DlAUqK2U.js";import"./C4gbP1QK.js";const ce={class:"flex flex-col gap-2"},ue={class:"grid grid-cols-2 gap-3"},me=["value"],pe=["value"],fe={class:"flex gap-2"},ve=["min"],ye={class:"flex gap-2"},xe=["min"],be=["value"],ge=["value"],he=["value"],ke=["value"],we={class:"flex flex-col"},Pe={class:"mt-4 flow-root"},Ae={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},_e={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Ce={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},Be={class:"min-w-full divide-y divide-neutral-300"},Ne={class:"bg-neutral-50"},Se={scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-neutral-900 sm:pl-6"},De={class:"flex w-full"},Ie={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-neutral-900"},Me={class:"flex w-full"},Ee={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-neutral-900"},Oe={class:"flex w-full"},Ve={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-neutral-900"},Le={class:"flex w-full"},$e={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-neutral-900"},Ue={class:"flex w-full"},Fe={class:"divide-y divide-neutral-200 bg-white"},Ke={class:"whitespace-nowrap py-3.5 pl-4 pr-3 text-left text-sm text-blue-600 transition-all hover:font-bold sm:pl-6"},je={class:"whitespace-nowrap px-3 py-3.5 text-left text-sm font-medium text-neutral-900"},Te={class:"whitespace-nowrap px-3 py-3.5 text-left text-sm font-medium text-neutral-900"},Je={class:"whitespace-nowrap px-3 py-3.5 text-left text-sm font-medium text-neutral-900"},el=oe({__name:"availability",async setup(Ge){var K,j,T,J;let d,y;de();const{data:z}=([d,y]=I(()=>O("/api/ssk/availability","$hxCNMen_Un")),d=await d,y(),d),V=(K=z.value)==null?void 0:K.body,{data:Q}=([d,y]=I(()=>O("/api/ssk/locations","$J8xffHg2Jr")),d=await d,y(),d),Y=(j=Q.value)==null?void 0:j.body,{data:R}=([d,y]=I(()=>O("/api/ssk/places","$fB4Z9UXXr2")),d=await d,y(),d),p=(T=R.value)==null?void 0:T.body,{data:ee}=([d,y]=I(()=>O("/api/ssk/rooms","$O1AHl5iRZk")),d=await d,y(),d),L=(J=ee.value)==null?void 0:J.body,b=x(void 0),C=x(void 0),A=x(void 0),B=x(void 0),_=x(void 0),N=x(void 0),S=x(void 0),a=x({place:"none",roomName:"none",semesterPrice:"none",monthlyPrice:"none",availability:"none"});function D(t){const e=a.value[t];e==="none"?a.value[t]="desc":e==="desc"?a.value[t]="asc":a.value[t]="none"}const le=q(()=>b.value?p==null?void 0:p.filter(t=>t.locationId===b.value):p),te=q(()=>{let t=L==null?void 0:L.slice();return b.value&&(t=t==null?void 0:t.filter(e=>{const s=p==null?void 0:p.find(n=>n.id===e.placeId);return(s==null?void 0:s.locationId)===b.value})),C.value&&(t=t==null?void 0:t.filter(e=>e.placeId===C.value)),A.value&&(t=t==null?void 0:t.filter(e=>(c(e).semesterPrice??0)>=(A.value??0))),B.value&&(t=t==null?void 0:t.filter(e=>(c(e).semesterPrice??1/0)<=(B.value??1/0))),_.value&&(t=t==null?void 0:t.filter(e=>(c(e).monthlyPrice??0)>=(_.value??0))),N.value&&(t=t==null?void 0:t.filter(e=>(c(e).monthlyPrice??1/0)<=(N.value??1/0))),S.value&&(t=t==null?void 0:t.filter(e=>{const s=c(e).availability,n=S.value;return s===n})),a.value.place!=="none"&&(t=t==null?void 0:t.sort((e,s)=>{const n=p==null?void 0:p.find(i=>i.id===e.placeId),u=p==null?void 0:p.find(i=>i.id===s.placeId);return a.value.place==="asc"?n.name.localeCompare(u.name):u.name.localeCompare(n.name)})),a.value.roomName!=="none"&&(a.value.roomName==="asc"?t=t==null?void 0:t.sort((e,s)=>e.name.localeCompare(s.name)):t=t==null?void 0:t.sort((e,s)=>s.name.localeCompare(e.name))),a.value.semesterPrice!=="none"&&(t=t==null?void 0:t.sort((e,s)=>{var i,f;const n=((i=c(e))==null?void 0:i.semesterPrice)??0,u=((f=c(s))==null?void 0:f.semesterPrice)??0;return a.value.semesterPrice==="asc"?n-u:u-n})),a.value.monthlyPrice!=="none"&&(t=t==null?void 0:t.sort((e,s)=>{var i,f;const n=((i=c(e))==null?void 0:i.monthlyPrice)??0,u=((f=c(s))==null?void 0:f.monthlyPrice)??0;return a.value.monthlyPrice==="asc"?n-u:u-n})),a.value.availability!=="none"&&(t=t==null?void 0:t.sort((e,s)=>{var i,f;const n=((i=c(e))==null?void 0:i.availability)??v.BOOKED,u=((f=c(s))==null?void 0:f.availability)??v.BOOKED;return a.value.availability==="asc"?n.localeCompare(u):u.localeCompare(n)})),t});function c(t){const e=V==null?void 0:V.find(u=>u.slug===t.slug);let s="",n="";return(e==null?void 0:e.availability)===v.AVAILABLE?(s="bg-green-100 text-green-800",n="Available"):(e==null?void 0:e.availability)===v.BOOKED?(s="bg-red-100 text-red-800",n="Booked"):(e==null?void 0:e.availability)===v.PENDING?(s="bg-yellow-100 text-yellow-800",n="Pending"):(e==null?void 0:e.availability)===v.OFFERED?(s="bg-blue-100 text-blue-800",n="Offered"):(s="bg-gray-100 text-gray-800",n="-"),{semesterPrice:e==null?void 0:e.semesterPrice,monthlyPrice:e==null?void 0:e.monthlyPrice,availability:e==null?void 0:e.availability,class:s,prettyText:n}}return(t,e)=>{const s=ie,n=ne,u=se;return r(),g("div",ce,[e[34]||(e[34]=l("div",{class:"flex flex-col gap-1"},[l("h1",{class:"text-2xl font-bold"}," Availability "),l("p",null,"Check the availability of our rooms and book your stay!")],-1)),M(s),l("div",ue,[l("div",null,[e[13]||(e[13]=l("label",{for:"location",class:"block text-sm font-semibold leading-6 text-neutral-900"},"Location",-1)),h(l("select",{id:"location","onUpdate:modelValue":e[0]||(e[0]=i=>k(b)?b.value=i:null),name:"location",class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Select a location"},[e[12]||(e[12]=l("option",{value:void 0}," All Locations ",-1)),(r(!0),g(U,null,F(o(Y),i=>(r(),g("option",{key:i.id,value:i.id},w(i.name),9,me))),128))],512),[[$,o(b)]])]),l("div",null,[e[15]||(e[15]=l("label",{for:"place",class:"block text-sm font-semibold leading-6 text-neutral-900"}
1,"Place",-1)),h(l("select",{id:"place","onUpdate:modelValue":e[1]||(e[1]=i=>k(C)?C.value=i:null),name:"place",class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Select a place"},[e[14]||(e[14]=l("option",{value:void 0}," All Places ",-1)),(r(!0),g(U,null,F(o(le),i=>(r(),g("option",{key:i.id,value:i.id},w(i.name),9,pe))),128))],512),[[$,o(C)]])]),l("div",null,[e[17]||(e[17]=l("label",{for:"semesterprice",class:"block text-sm font-semibold leading-6 text-neutral-900"},"Semester Price",-1)),l("div",fe,[h(l("input",{id:"semesterprice","onUpdate:modelValue":e[2]||(e[2]=i=>k(A)?A.value=i:null),name:"semesterprice",type:"number",class:"mt-2 block w-full rounded-md border-0 px-3 py-1.5 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Min",min:"0"},null,512),[[E,o(A)]]),e[16]||(e[16]=l("div",{class:"flex items-center justify-center"},[l("span",null,"~")],-1)),h(l("input",{id:"semesterprice","onUpdate:modelValue":e[3]||(e[3]=i=>k(B)?B.value=i:null),name:"semesterprice",type:"number",class:"mt-2 block w-full rounded-md border-0 px-3 py-1.5 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Max",min:o(A)||0},null,8,ve),[[E,o(B)]])])]),l("div",null,[e[19]||(e[19]=l("label",{for:"monthlyprice",class:"block text-sm font-semibold leading-6 text-neutral-900"},"Monthly Price",-1)),l("div",ye,[h(l("input",{id:"monthlyprice","onUpdate:modelValue":e[4]||(e[4]=i=>k(_)?_.value=i:null),name:"monthlyprice",type:"number",class:"mt-2 block w-full rounded-md border-0 px-3 py-1.5 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Min",min:"0"},null,512),[[E,o(_)]]),e[18]||(e[18]=l("div",{class:"flex items-center justify-center"},[l("span",null,"~")],-1)),h(l("input",{id:"monthlyprice","onUpdate:modelValue":e[5]||(e[5]=i=>k(N)?N.value=i:null),name:"monthlyprice",type:"number",class:"mt-2 block w-full rounded-md border-0 px-3 py-1.5 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Max",min:o(_)||0},null,8,xe),[[E,o(N)]])])]),l("div",null,[e[21]||(e[21]=l("label",{for:"availability",class:"block text-sm font-semibold leading-6 text-neutral-900"},"Availability",-1)),h(l("select",{id:"availability","onUpdate:modelValue":e[6]||(e[6]=i=>k(S)?S.value=i:null),name:"availability",class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-neutral-900 ring-1 ring-inset ring-neutral-300 focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6",placeholder:"Select an availability"},[e[20]||(e[20]=l("option",{value:void 0}," All Availabilities ",-1)),l("option",{value:("Availability"in t?t.Availability:o(v)).AVAILABLE}," Available ",8,be),l("option",{value:("Availability"in t?t.Availability:o(v)).OFFERED}," Offered ",8,ge),l("option",{value:("Availability"in t?t.Availability:o(v)).PENDING}," Pending ",8,he),l("option",{value:("Availability"in t?t.Availability:o(v)).BOOKED}," Booked ",8,ke)],512),[[$,o(S)]])]),e[22]||(e[22]=l("div",{class:"flex flex-col justify-center items-center bg-neutral-100 p-2 rounded-md"},[l("p",{class:"text-sm font-semibold leading-6 text-neutral-900"}," Deposit: "),l("p",{class:"text-sm font-semibold leading-6 text-neutral-600"}," EUR 550 ")],-1))]),M(s),e[35]||(e[35]=l("div",{class:"flex flex-col justify-center items-center bg-neutral-100 p-2 rounded-md"},[l("p",{class:"text-sm font-semibold leading-6 text-neutral-900"}," Availability shown refers to the Spring Semester (Feb 15 - Jul 1) "),l("p",{class:"text-sm font-semibold leading-6 text-neutral-900"},[P(" For inquiries please email us directly at "),l("a",{href:"mailto:[email protected]",class:"text-blue-500"},"[email protected]")])],-1)),M(s),l("div",we,[e[33]||(e[33]=l("h2",{class:"text-lg font-bold"}," Rooms ",-1)),l("div",Pe,[l("div",Ae,[l("div",_e,[l("div",Ce,[l
1("table",Be,[l("thead",Ne,[l("tr",null,[l("th",Se,[l("div",De,[e[23]||(e[23]=P(" Place ")),e[24]||(e[24]=l("span",{class:"flex-1"},null,-1)),l("div",{class:"flex h-full cursor-pointer items-center p-1",onClick:e[7]||(e[7]=i=>D("place"))},[o(a).place==="none"?(r(),m(n,{key:0,name:"heroicons:chevron-up-down-solid"})):o(a).place==="asc"?(r(),m(n,{key:1,name:"heroicons:chevron-up"})):(r(),m(n,{key:2,name:"heroicons:chevron-down"}))])])]),l("th",Ie,[l("div",Me,[e[25]||(e[25]=P(" Room Name ")),e[26]||(e[26]=l("span",{class:"flex-1"},null,-1)),l("div",{class:"flex h-full cursor-pointer items-center p-1",onClick:e[8]||(e[8]=i=>D("roomName"))},[o(a).roomName==="none"?(r(),m(n,{key:0,name:"heroicons:chevron-up-down-solid"})):o(a).roomName==="asc"?(r(),m(n,{key:1,name:"heroicons:chevron-up"})):(r(),m(n,{key:2,name:"heroicons:chevron-down"}))])])]),l("th",Ee,[l("div",Oe,[e[27]||(e[27]=P(" Semester Price ")),e[28]||(e[28]=l("span",{class:"flex-1"},null,-1)),l("div",{class:"flex h-full cursor-pointer items-center p-1",onClick:e[9]||(e[9]=i=>D("semesterPrice"))},[o(a).semesterPrice==="none"?(r(),m(n,{key:0,name:"heroicons:chevron-up-down-solid"})):o(a).semesterPrice==="asc"?(r(),m(n,{key:1,name:"heroicons:chevron-up"})):(r(),m(n,{key:2,name:"heroicons:chevron-down"}))])])]),l("th",Ve,[l("div",Le,[e[29]||(e[29]=P(" Monthly Price ")),e[30]||(e[30]=l("span",{class:"flex-1"},null,-1)),l("div",{class:"flex h-full cursor-pointer items-center p-1",onClick:e[10]||(e[10]=i=>D("monthlyPrice"))},[o(a).monthlyPrice==="none"?(r(),m(n,{key:0,name:"heroicons:chevron-up-down-solid"})):o(a).monthlyPrice==="asc"?(r(),m(n,{key:1,name:"heroicons:chevron-up"})):(r(),m(n,{key:2,name:"heroicons:chevron-down"}))])])]),l("th",$e,[l("div",Ue,[e[31]||(e[31]=P(" Availability ")),e[32]||(e[32]=l("span",{class:"flex-1"},null,-1)),l("div",{class:"flex h-full cursor-pointer items-center p-1",onClick:e[11]||(e[11]=i=>D("availability"))},[o(a).availability==="none"?(r(),m(n,{key:0,name:"heroicons:chevron-up-down-solid"})):o(a).availability==="asc"?(r(),m(n,{key:1,name:"heroicons:chevron-up"})):(r(),m(n,{key:2,name:"heroicons:chevron-down"}))])])])])]),l("tbody",Fe,[(r(!0),g(U,null,F(o(te),i=>{var f,G,H,W,X,Z;return r(),g("tr",{key:i.id},[l("td",Ke,[M(u,{to:`/places/${i.place.slug}`,class:"w-full"},{default:ae(()=>[P(w(i.place.name),1)]),_:2},1032,["to"])]),l("td",je,w(i.name),1),l("td",Te," KRW "+w(((G=(f=c(i))==null?void 0:f.semesterPrice)==null?void 0:G.toLocaleString())??"-"),1),l("td",Je," KRW "+w(((W=(H=c(i))==null?void 0:H.monthlyPrice)==null?void 0:W.toLocaleString())??"-"),1),l("td",{class:re(["whitespace-nowrap px-3 py-3.5 text-left text-sm",[(X=c(i))==null?void 0:X.class]])},w(((Z=c(i))==null?void 0:Z.prettyText)??"-"),3)])}),128))])])])])])])])])}}});export{el as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.