/* global React, ReactDOM, EditingSuiteHero, InpaintSection, EDExpressionSection, RecolorSection, FiltersSection, UpscaleSection, EDPipelineSection, FinalSection, MEDPage */
// Editing Suite feature page — assembly + layout tweak (desktop / mobile).
const ED_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "layout": (window.SZ_LAYOUT || "desktop")
}/*EDITMODE-END*/;

const ED_LOCALS = { '/editing-suite': 'Hero — Editing Suite', '06 Edit Image': 'Hero — Editing Suite', '15 Pricing': '07 Pricing', '16 FAQ': '08 FAQ' };

const EditingSuitePage = () => {
  const [t, setTweak] = window.useTweaks(ED_TWEAK_DEFAULTS);
  const mobile = t.layout === 'mobile';
  return (
    <React.Fragment>
      {mobile ? <MEDPage /> : (
        <div style={{ fontFamily: 'var(--font-sans)' }}>
          <div data-screen-label="Hero — Editing Suite"><EditingSuiteHero /></div>
          <div data-screen-label="01 Inpaint"><InpaintSection /></div>
          <div data-screen-label="02 Expression"><EDExpressionSection /></div>
          <div data-screen-label="03 Recolor"><RecolorSection /></div>
          <div data-screen-label="04 Filters"><FiltersSection /></div>
          <div data-screen-label="05 Upscale"><UpscaleSection /></div>
          <div data-screen-label="06 Ship it"><EDPipelineSection /></div>
          <div data-screen-label="07 Pricing"><window.PricingSection /></div>
          <div data-screen-label="08 FAQ"><window.FAQSection /></div>
          <div data-screen-label="CTA + Footer"><FinalSection /></div>
          <window.SozeeNav revealAfter="always" logoHref="/" siteHref="/" localLabels={ED_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(<EditingSuitePage />);
