'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@gem-sdk/core"),r=require("next/dynamic"),s=require("../../../../cart/components/Cart.js");require("react"),require("next/head"),require("next/image"),require("@gem-sdk/system"),require("next/link"),require("react-youtube");var o=require("../../../../image/components/Image.js");require("../../../../cart/components/shop-pay-button/ShopPayButton.js");var i=require("../../../../cart/components/CheckoutNow.js");const l=r(()=>Promise.resolve().then(function(){return require("./MobileMenu.js")})),n=r(()=>Promise.resolve().then(function(){return require("./DesktopMenu.js")}));exports.default=({btnBgColor:r,btnBorder:a,btnRounded:c,btnSpacing:p,btnTextColor:g,btnTypography:d,btnType:u,btnWidth:m,openMode:b,buyNow:h,breakpoint:x,...y})=>{let f=!!y.menu?.ROOT.childrens?.length;return e.jsxs("div",{className:"gp-relative gp-z-50 gp-flex gp-items-center gp-px-4 gp-justify-between",style:t.makeStyleResponsive("h",y.height),children:[f?e.jsxs(e.Fragment,{children:[e.jsx(l,{...y,className:t.cls({"gp-flex":"desktop"===x,"gp-hidden tablet:gp-flex":"tablet"===x,"gp-hidden mobile:gp-flex":"mobile"===x})}),e.jsx(n,{...y,className:t.cls({"!gp-hidden":"desktop"===x,"tablet:!gp-hidden":"tablet"===x,"mobile:!gp-hidden":"mobile"===x})})]}):null,!!y.logo&&e.jsx("div",{className:t.cls({"gp-justify-center":"desktop"===x&&f,"tablet:gp-justify-center":"tablet"===x&&f,"mobile:gp-justify-center":"mobile"===x&&f,"gp-flex gp-items-center":"desktop"===x,"tablet:gp-flex tablet:gp-items-center":"tablet"===x,"mobile:gp-flex mobile:gp-items-center":"mobile"===x,"gp-order-first":"desktop"!==x,"mobile:gp-order-[0]":!0,"tablet:gp-order-[0]":"tablet"===x}),children:e.jsx(o.default,{style:t.makeStyleResponsive("maxh",y.height),setting:{srcSet:y.logo,alt:"Logo",quality:100,isAdaptive:!0},styles:{customAspectRadio:y.customAspectRadio,aspectRatio:y.logoAspectRatio,width:y.logoWidth,objectFit:y.layout,opacity:{normal:0,hover:0}}})}),e.jsxs("div",{className:"gp-flex gp-items-center gp-gap-4",children:[h&&e.jsx(i.default,{className:"mobile:gp-hidden",setting:{label:"Buy Now",openMode:b},styles:{backgroundColor:r,borderBtn:a,roundedBtn:c,btnSpacing:p,textColor:g,typography:d,type:u,width:m}}),e.jsx(s.default,{setting:{iconOnly:!0,svgIcon:y.cartIcon,enableHoverEffect:y.cardEnableHoverEffect??!0},styles:{iconColor:y.cartIconColor}})]})]})};
