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