"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),u=require("react-router-dom"),l=require("../components/Icons/Icons.js");require("../components/Icons/EuiIcon.js");require("@elastic/eui");require("../node_modules/.pnpm/twin.macro@2.8.2/node_modules/twin.macro/macro.js");require("../form/Field.js");require("react-hook-form");require("../node_modules/.pnpm/@elastic_eui@61.0.0_zavqrpf4tc2kjxw3tjmx3rmpbq/node_modules/@elastic/eui/dist/eui_theme_light.js");require("../tailwind.js");const m=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=m(o);function c({data:t=[]}){return e.default.createElement("header",{className:"sticky z-50 w-[100wh] h-14 -ml-56 bg-green-600 flex items-end justify-between px-6"},e.default.createElement("div",{className:"flex items-end space-x-4"},e.default.createElement("div",{className:"relative flex items-center px-6 py-2 text-sm font-medium bg-white rounded-t text-text-500 hover:text-text-600"},e.default.createElement(l.Icons,{name:"base",className:"inline-flex w-5 h-5 mr-2 opacity-75"})," \u5C0F\u4E07\u52A9\u6559"),t&&t.map(a=>e.default.createElement(i,{...a,key:a.path}))))}const i=({path:t,name:a,icon:n,label:d,className:s,...f})=>e.default.createElement(u.NavLink,{to:t,className:({isActive:r})=>`
        
        ${s||""}
        relative flex items-center text-gray-500 hover:text-green-600 p-2 text-sm font-medium"
      `},({isActive:r})=>e.default.createElement(e.default.Fragment,null,n&&e.default.createElement("span",{className:`${r?"text-green-600":""} hover:text-green-600`},typeof n=="string"?e.default.createElement(l.Icons,{name:n}):n),e.default.createElement("span",{className:`${r?"text-green-600 font-bold":void 0} ml-2`},a),r&&e.default.createElement("span",{className:"absolute left-0 right-0 border-2 border-green-600 -bottom-4","aria-hidden":"true"})));exports.Header=c;
//# sourceMappingURL=Header.js.map
