%PDF- %PDF-
Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/ |
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/205.bcaf3590.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[205],{2668:function(e,t,a){"use strict";a.r(t);var c=a(163),s=a(1098),l=a(148),n=a(149),r=a(1090),i=a(1028),j=a(548),h=a(193),d=a(1072),m=a(43),o=a(1099),x=a(194),b=a(50),p=a.n(b),O=a(5),f=a(1118),u=a(0),N=a(1);const w=Object(d.a)({title:{color:l.a[800]},url:{color:n.a[800]}});t.default=function(){const e=w(),t=Object(m.a)(),[a,l]=Object(u.useState)([]);Object(u.useEffect)((()=>{p.a.get("/api/search").then((e=>{l(e.data)}))}),[]);const n={hidden:{opacity:0,y:40},show:{opacity:1,y:0}};return Object(N.jsx)(c.a,{header:Object(N.jsx)("div",{className:"flex flex-1 items-center p-16 sm:p-24 max-w-md",children:Object(N.jsx)(o.a,{theme:t,children:Object(N.jsxs)(h.a,{className:"flex items-center h-44 w-full px-16 rounded-16 shadow",children:[Object(N.jsx)(j.a,{placeholder:"Search...",disableUnderline:!0,fullWidth:!0,inputProps:{"aria-label":"Search"}}),Object(N.jsx)(r.a,{color:"action",children:"search"})]})})}),content:Object(N.jsxs)("div",{className:"p-16 pt-0 sm:p-24 sm:pt-0 max-w-md",children:[a.length>0&&Object(N.jsxs)(f.a.div,{variants:{show:{transition:{staggerChildren:.05}}},initial:"hidden",animate:"show",children:[Object(N.jsx)(f.a.div,{variants:n,children:Object(N.jsxs)(x.a,{color:"textSecondary",className:"text-13 mt-12 mb-24",children:[a.length," results"]})}),a.map((t=>Object(N.jsxs)(f.a.div,{variants:n,className:"mb-28",children:[Object(N.jsx)(x.a,{className:Object(O.a)(e.title,"text-18 cursor-pointer"),children:t.title}),Object(N.jsx)(x.a,{className:Object(O.a)(e.url),children:t.url}),Object(N.jsx)(x.a,{className:"text-13",children:t.excerpt})]},t.id)))]}),Object(N.jsx)("div",{className:"flex justify-center mt-32",children:Object(N.jsxs)("div",{className:"flex item-center",children:[Object(N.jsx)(i.a,{className:"w-32",children:Object(N.jsx)(r.a,{className:"text-20",children:"ltr"===t.direction?"chevron_left":"chevron_right"})}),Object(N.jsx)(s.a,{className:"font-normal min-w-32 h-48 p-0 px-8",children:"1"}),Object(N.jsx)(s.a,{className:"font-normal min-w-32 h-48 p-0 px-8",children:"2"}),Object(N.jsx)(s.a,{className:"font-normal min-w-32 h-48 p-0 px-8",children:"3"}),Object(N.jsx)(s.a,{className:"font-normal min-w-32 h-48 p-0 px-8",children:"4"}),Object(N.jsx)(s.a,{className:"font-normal min-w-32 h-48 p-0 px-8",children:"5"}),Object(N.jsx)(i.a,{className:"w-32",children:Object(N.jsx)(r.a,{className:"text-20",children:"ltr"===t.direction?"chevron_right":"chevron_left"})})]})})]})})}}}]);