'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),l=require("./SubMegaMenu.js"),s=require("../../text/components/Text.js");exports.default=({setting:r={},styles:g})=>{let{data:p}=r;return e.jsx("div",{className:"gp-flex gp-justify-center",children:e.jsx("div",{className:"gp-relative gp-inline-flex gp-items-center",children:p?.ROOT?.childrens?.map(r=>e.jsxs("div",{className:"gp-group gp-mx-4 gp-flex gp-cursor-pointer gp-items-center gp-bg-transparent gp-py-4",children:[e.jsxs("div",{children:[e.jsx(s.default,{styles:g,setting:{htmlTag:"span",text:p?.[r]?.title,excludeFlex:!0}}),!!p?.[r]?.childrens?.length&&e.jsx("span",{className:t.cls("gp-ml-1.5 gp-inline-flex gp-transition-all gp-duration-[300ms] group-hover:gp-rotate-180",t.getGlobalColorStateClass("text",g?.color)),style:{...t.getGlobalColorStateStyle("c",g?.color)},children:e.jsx("svg",{fill:"inherit",width:"14",height:"7",viewBox:"0 0 15 8",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fill:"inherit",d:"M7.4995 8C7.22536 8 6.95108 7.90234 6.74217 7.70703L0.313881 1.70703C-0.104627 1.31641 -0.104627 0.683594 0.313881 0.292969C0.732389 -0.0976562 1.41037 -0.0976562 1.82888 0.292969L7.4995 5.5875L13.1711 0.29375C13.5896 -0.0968752 14.2676 -0.0968752 14.6861 0.29375C15.1046 0.684375 15.1046 1.31719 14.6861 1.70781L8.25783 7.70781C8.04858 7.90312 7.77404 8 7.4995 8Z"})})})]}),e.jsx("div",{className:"gp-absolute gp-left-0 gp-top-full gp-mt-2 gp-hidden gp-max-w-[800px] gp-cursor-default gp-bg-white before:gp-absolute before:gp-bottom-full before:gp-h-2 before:gp-w-full group-hover:gp-block",children:!!p?.[r]?.childrens?.length&&e.jsx("div",{className:"gp-grid gp-grid-cols-[auto_auto_auto_auto] gp-gap-8 gp-p-4",children:e.jsx(l.default,{data:p,menu:p?.[r]?.childrens,styles:g})})})]},r))})})};
