import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{i as t,o as n,t as r}from"./jsx-runtime-DHSfUA5-.js";import{P as i,m as a}from"./test.id-DxQrYxPk.js";import{t as o}from"./navigationService-BNBSAd9W.js";import{f as s,o as c}from"./route-CPr17rXr.js";import{m as l}from"./selectors-DZWoTA9D.js";import{t as u}from"./useDiaryModel-BQGj9xs8.js";import{t as d}from"./HeaderPage-CPQpvQQw.js";n();var f=r();function p(){let{notebookId:n}=s(),r=u(),p=i(o);return!(n&&l(r,n))||!n?(0,f.jsx)(c,{to:`/diaries`,replace:!0}):(0,f.jsx)(d,{pageTestId:a.page,contentTestId:a.content,header:{title:e(`diary.search`,`Find diary content`),showBack:!0},children:(0,f.jsxs)(`div`,{className:t.DiarySearchPage.Root,children:[(0,f.jsx)(`p`,{className:t.DiarySearchPage.Hint,children:e(`diary.search.hint`,`Quickly find diary content`)}),(0,f.jsxs)(`div`,{className:t.DiarySearchPage.Grid,children:[(0,f.jsx)(`button`,{type:`button`,className:t.DiarySearchPage.Option,"data-test-id":a.byDate,onClick:()=>p.navigate({path:`/calendar?notebookId=${n}`}),children:e(`diary.search.byDate`,`Date`)}),(0,f.jsx)(`span`,{className:t.DiarySearchPage.Divider,"aria-hidden":`true`,children:`｜`}),(0,f.jsx)(`button`,{type:`button`,className:t.DiarySearchPage.Option,"data-test-id":a.byMedia,onClick:()=>p.navigate({path:`/diary/${n}/media`}),children:e(`diary.media`,`Images and videos`)})]})]})})}export{p as DiaryChatSearchPage};
//# sourceMappingURL=search-gHSmQei8.js.map