'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("next/link"),t=require("@gem-sdk/core"),r=require("./SubNavigationMenu.js"),s=require("../../text/components/Text.js");exports.default=({data:i,menu:g,styles:n})=>e.jsx(e.Fragment,{children:g?.map(g=>e.jsxs("div",{className:"gp-group gp-relative gp-flex gp-h-10 gp-max-w-[256px] gp-cursor-pointer gp-items-center gp-pl-4 gp-transition-all gp-duration-[200ms]",children:[e.jsxs("div",{className:"gp-flex gp-items-center gp-truncate gp-pr-10",children:[e.jsx(l,{href:i?.[g]?.link??"",children:e.jsx(s.default,{styles:n,setting:{htmlTag:"span",text:i?.[g]?.title,excludeFlex:!0}})}),!!i?.[g]?.childrens?.length&&e.jsx("span",{className:t.cls("custom-menu-icon gp-absolute gp-right-0 gp-hidden group-hover:gp-inline-block",t.getGlobalColorStateClass("text",n?.color)),style:{...t.getGlobalColorStateStyle("c",n?.color)},children:e.jsx("svg",{width:16,height:16,viewBox:"0 0 256 512",fill:"currentColor",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"})})})]}),!!i?.[g]?.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:e.jsx(r.default,{data:i,menu:i?.[g]?.childrens,styles:n})})]},g))});
