/* global React, ReactDOM, WhiteLabelHero, WLBrandSection, WLComplianceSection, WLRosterSection, WLBillingSection, WLControlSection, WLGloveSection, WLPricingSection, FinalSection, MWLPage */
// White Label — assembly + layout tweak (desktop / mobile).
const WL_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "layout": (window.SZ_LAYOUT || "desktop")
} /*EDITMODE-END*/;

const WL_LOCALS = { '/white-label': 'Hero — White Label' };

const WhiteLabelPage = () => {
  const [t, setTweak] = window.useTweaks(WL_TWEAK_DEFAULTS);
  const mobile = t.layout === 'mobile';
  return (
    <React.Fragment>
      {mobile ? <MWLPage /> :
      <div style={{ fontFamily: 'var(--font-sans)' }}>
          <div data-screen-label="Hero — White Label"><WhiteLabelHero /></div>
          <div data-screen-label="01 Your brand"><WLBrandSection /></div>
          <div data-screen-label="02 Compliance"><WLComplianceSection /></div>
          <div data-screen-label="03 Creators"><WLRosterSection /></div>
          <div data-screen-label="04 Billing"><WLBillingSection /></div>
          <div data-screen-label="05 Control"><WLControlSection /></div>
          <div data-screen-label="06 White glove"><WLGloveSection /></div>
          <div data-screen-label="07 Pricing"><WLPricingSection /></div>
          <div data-screen-label="08 FAQ"><window.BrandFAQSection /></div>
          <div data-screen-label="CTA + Footer"><FinalSection /></div>
          <window.SozeeNav revealAfter="always" logoHref="/" siteHref="/" localLabels={WL_LOCALS} />
        </div>
      }
      <window.TweaksPanel>
        <window.TweakSection label="Layout" />
        <window.TweakRadio label="Viewport" value={t.layout}
        options={[{ value: 'desktop', label: 'Desktop' }, { value: 'mobile', label: 'Mobile' }]}
        onChange={(v) => setTweak('layout', v)} />
      </window.TweaksPanel>
    </React.Fragment>);

};
ReactDOM.createRoot(document.getElementById('root')).render(<WhiteLabelPage />);