1import{a as c,g as u}from"./BaUz8AXB.js";const f=e=>["flex h-[32px] items-center rounded-full px-md py-xxs text-[14px] font-normal leading-[120%]",e?"bg-status_active text-text_on-navy":"border border-solid border-border_primary text-text_body"],m=(e,a)=>{let r=null;const s=()=>{r!==null&&(clearTimeout(r),r=null)};return Object.assign((...l)=>{s(),r=setTimeout(()=>{r=null,e(...l)},a)},{cancel:s})},n=[{slug:"womens",conditionKey:"womenOnly",searchParamKey:"is_women_only",name:"女æ§å°ç¨"},{slug:"24h",conditionKey:"alwaysOpen",searchParamKey:"is_always_open",name:"24æéå¶æ¥"},{slug:"one_shot",conditionKey:"oneShot",searchParamKey:"is_one_shot",name:"é½åº¦æã"}],p=e=>n.find(a=>a.slug===e)??null,o=e=>n.filter(a=>e[a.conditionKey]),g=e=>!e.keyword&&!e.nearby&&e.serviceIds.length===0&&!e.prefectureId&&!e.cityId&&o(e).length===0,i=e=>!!e.keyword||e.nearby||e.serviceIds.length>0||!!e.cityId,d=async(e,a)=>{let r="";if(e)try{const{findById:s}=c(),t=await s(e);if(!t)return null;r=`/studios/search/area/${Number(t.jisx0401)}`}catch(s){return console.error("Error: prefectures api request failed.",s),null}return a?r?`${r}/${a.slug}`:`/studios/search/${a.slug}`:r||"/studios/search/area"},h=async(e,a)=>{const r=new URLSearchParams;await u(r,e),a.areaSearch&&e.prefectureId&&r.set("areasearch","true");const s=r.toString();return s?`/studios/search/filters?${s}`:"/studios/search/filters"},b=async(e,a={})=>{const r=o(e);if(!i(e)&&r.length<=1){const s=await d(e.prefectureId,r[0]??null);if(s)return s}return await h(e,a)};export{o as a,m as d,p as f,g as h,b as r,f as s};
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.