'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("@gem-sdk/core"),t=require("next/link"),r=require("../../text/components/Text.js");exports.default=({data:s,menu:i,styles:p})=>{let g=(s,i)=>i?.map(i=>e.jsxs("div",{className:"gp-group gp-relative gp-flex gp-h-10 gp-items-center gp-whitespace-nowrap gp-pl-4 gp-pr-7",children:[e.jsxs("div",{className:"gp-flex gp-items-center",children:[e.jsx(t,{href:s?.[i]?.link??"",children:e.jsx(r.default,{styles:p,setting:{htmlTag:"span",text:s?.[i]?.title,excludeFlex:!0}})}),!!s?.[i]?.childrens?.length&&e.jsx("span",{className:l.cls("gp-absolute gp-right-0 gp-hidden group-hover:gp-inline-flex",l.getGlobalColorStateClass("text",p?.color)),style:{...l.getGlobalColorStateStyle("c",p?.color)},children:e.jsx("svg",{fill:"currentColor",width:16,height:16,viewBox:"0 0 256 512",children:e.jsx("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"})})})]}),!!s?.[i]?.childrens?.length&&e.jsx("div",{className:"gp-absolute gp-left-full gp-top-0 gp-hidden gp-flex-col gp-bg-white group-hover:gp-flex",children:g(s,s?.[i]?.childrens)})]},i));return e.jsx(e.Fragment,{children:g(s,i)})};
