'use client';
import{jsx as e,Fragment as l,jsxs as t}from"react/jsx-runtime";import{getGlobalColorStateStyle as r,cls as i,getGlobalColorStateClass as p}from"@gem-sdk/core";import g from"next/link";import n from"../../text/components/Text.js";let o=({data:o,menu:c,styles:s})=>{let h=(l,o)=>o?.map(o=>t("div",{className:"gp-group gp-relative gp-flex gp-h-10 gp-items-center gp-whitespace-nowrap gp-pl-4 gp-pr-7",children:[t("div",{className:"gp-flex gp-items-center",children:[e(g,{href:l?.[o]?.link??"",children:e(n,{styles:s,setting:{htmlTag:"span",text:l?.[o]?.title,excludeFlex:!0}})}),!!l?.[o]?.childrens?.length&&e("span",{className:i("gp-absolute gp-right-0 gp-hidden group-hover:gp-inline-flex",p("text",s?.color)),style:{...r("c",s?.color)},children:e("svg",{fill:"currentColor",width:16,height:16,viewBox:"0 0 256 512",children:e("path",{fill:"currentColor",d:"M64 448c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L178.8 256L41.38 118.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25l-160 160C80.38 444.9 72.19 448 64 448z"})})})]}),!!l?.[o]?.childrens?.length&&e("div",{className:"gp-absolute gp-left-full gp-top-0 gp-hidden gp-flex-col gp-bg-white group-hover:gp-flex",children:h(l,l?.[o]?.childrens)})]},o));return e(l,{children:h(o,c)})};export{o as default};
