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