'use client';
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{usePageType as a,cls as d,getGlobalColorResponsiveStyle as i,makeStyleResponsive as o}from"@gem-sdk/core";import t from"next/dynamic";import{useMemo as m}from"react";import n from"./SalePageHeaderWarning.js";let BasicHeader=t(()=>import("./kind/basic/index.js")),ModernHeader=t(()=>import("./kind/modern/index.js")),Header=({builderAttrs:t,builderProps:s,style:c,setting:p,styles:l,children:g})=>{let{kind:H,...f}=p??{},h="morden"===H?ModernHeader:BasicHeader,u=a(),x=m(()=>"GP_FUNNEL_PAGE"===u,[u]);return s?.isPreview&&x?null:e("nav",{"data-id":s?.uid,className:d("gp-z-10 hover:gp-z-50",s?.uid),...t,style:{...c,...i("bgc",l?.headerBg),...o("h",l?.height)},children:[x&&r(n,{}),r(h,{...f,...l}),g]})};export{Header as default};
