1import{X as m,j as e,I as h,as as p,F as a,at as u,B as f,E as g,f as b,T as n,au as j,av as N,aw as y}from"./app-CQDOLSaW.js";function v({onChangePrefecture:l,onChangeKeyword:i,onSearch:c,showFavoriteOnly:s,setShowFavoriteOnly:o,initialKeyword:x="",initialAreaIds:d=[]}){const{auth:t}=m().props;return e.jsx("header",{className:"w-full",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsxs("form",{className:"flex items-center",onSubmit:r=>{r.preventDefault(),c()},children:[e.jsx(h,{type:"text",placeholder:"ãã¼ã¯ã¼ã",className:"h-8 md:h-8 w-40 rounded-none border-gray-300 border-r-0",defaultValue:x,onChange:r=>i(r.target.value)}),e.jsx(p,{onChangeArea:l,defaultAreaIds:d,inputClassName:"h-8 w-40 cursor-pointer bg-white rounded-none pr-8 border-gray-300"}),e.jsx("button",{type:"submit",className:"h-8 px-4 bg-secondary hover:bg-steel-blue text-white rounded-none flex items-center justify-center","aria-label":"æ¤ç´¢",children:e.jsx(a,{icon:u})})]}),t&&e.jsxs(f,{type:"button",onClick:()=>o(!s),className:g("h-8 px-4 w-40 rounded-sm text-sm text-white flex items-center gap-2",s?"bg-pink-500 hover:bg-pink-800":"bg-gray-300 hover:bg-gray-400"),"aria-label":s?"ãæ°ã«å
¥ãé¢é£è¡¨ç¤ºãè§£é¤":"ãæ°ã«å
¥ãé¢é£ã®ã¿è¡¨ç¤º",children:[e.jsx(a,{icon:b}),"ãæ°ã«å
¥ãé¢é£"]}),e.jsx("div",{className:"flex-1"}),e.jsxs("div",{className:"flex gap-6 text-sm",children:[e.jsxs(n,{href:j("RSS_URL"),className:"flex items-center gap-1",target:"_blank",variant:"primary",children:[e.jsx(a,{icon:N,className:"text-orange-500",fontSize:20}),"æ°çã¤ãã³ãFeed"]}),t&&e.jsxs(n,{href:"/mypage/user_tags",className:"flex items-center gap-1",variant:"primary",children:[e.jsx(a,{icon:y,fontSize:16}),"ãæ°ã«å
¥ãã¿ã°è¨å®"]})]})]})})}v.displayName="SearchHeader";export{v as SearchHeader};
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.