'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"),React=require("react"),SalePageHeaderWarning=require("./SalePageHeaderWarning.js");const BasicHeader=dynamic(()=>Promise.resolve().then(function(){return require("./kind/basic/index.js")})),ModernHeader=dynamic(()=>Promise.resolve().then(function(){return require("./kind/modern/index.js")})),Header=({builderAttrs:e,builderProps:r,style:a,setting:i,styles:n,children:s})=>{let{kind:t,...d}=i??{},o="morden"===t?ModernHeader:BasicHeader,u=core.usePageType(),c=React.useMemo(()=>"GP_FUNNEL_PAGE"===u,[u]);return r?.isPreview&&c?null:jsxRuntime.jsxs("nav",{"data-id":r?.uid,className:core.cls("gp-z-10 hover:gp-z-50",r?.uid),...e,style:{...a,...core.getGlobalColorResponsiveStyle("bgc",n?.headerBg),...core.makeStyleResponsive("h",n?.height)},children:[c&&jsxRuntime.jsx(SalePageHeaderWarning.default,{}),jsxRuntime.jsx(o,{...d,...n}),s]})};exports.default=Header;
