"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
// GHS CRM — Marketing module · Part 3
// Campagnes overview · Library · Automatisering · Externe toegang · Compose drawer · Main MarketingPage shell

/* ──────────────────────────────────────────────────────────────────────────
   CAMPAGNES tab
   ────────────────────────────────────────────────────────────────────────── */

var MkCampagnes = function MkCampagnes() {
  return /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel"
  }, /*#__PURE__*/React.createElement("div", {
    className: "ghs-werkbalk"
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      fontFamily: T.fontBody,
      fontSize: 12,
      color: T.fg3
    }
  }, "Beheer ad-spend, doelgroepen en creatives"), /*#__PURE__*/React.createElement(Button, {
    variant: "primary",
    size: "sm",
    icon: "plus",
    style: {
      marginLeft: 'auto'
    }
  }, "Nieuwe campagne")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fill, minmax(310px, 1fr))',
      gap: 14
    }
  }, MK_CAMPAIGNS.map(function (c) {
    return /*#__PURE__*/React.createElement("div", {
      key: c.id,
      style: {
        background: "linear-gradient(160deg, ".concat(c.color, "11, rgba(0,0,0,0)) , ").concat(T.bg1),
        border: "1px solid ".concat(T.stroke1),
        padding: '16px 18px',
        clipPath: cutPath(13)
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        gap: 8,
        marginBottom: 11
      }
    }, /*#__PURE__*/React.createElement("span", {
      style: {
        width: 6,
        height: 22,
        background: c.color,
        boxShadow: c.status === 'live' ? "0 0 6px ".concat(c.color) : 'none'
      }
    }), /*#__PURE__*/React.createElement("div", {
      style: {
        flex: 1,
        minWidth: 0
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 700,
        fontSize: 13.5,
        overflow: 'hidden',
        textOverflow: 'ellipsis',
        whiteSpace: 'nowrap'
      }
    }, c.name), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11,
        color: T.fg3,
        marginTop: 2
      }
    }, c.platform)), /*#__PURE__*/React.createElement(MkCampaignStatus, {
      status: c.status
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'grid',
        gridTemplateColumns: '1fr 1fr 1fr',
        gap: 10,
        marginTop: 11
      }
    }, [['SPEND', "\u20AC ".concat((c.spend / 1000).toFixed(1), "k"), T.fg1], ['LEADS', c.leads, T.fg1], ['ROAS', c.roas > 0 ? "\xD7".concat(c.roas) : '—', c.roas > 30 ? T.accent : T.fg1]].map(function (_ref) {
      var _ref2 = _slicedToArray(_ref, 3),
        l = _ref2[0],
        v = _ref2[1],
        col = _ref2[2];
      return /*#__PURE__*/React.createElement("div", {
        key: l
      }, /*#__PURE__*/React.createElement("div", {
        style: {
          fontSize: 9,
          fontWeight: 700,
          letterSpacing: '0.14em',
          color: T.fg3
        }
      }, l), /*#__PURE__*/React.createElement("div", {
        style: {
          fontFamily: T.fontDisplay,
          fontWeight: 600,
          fontSize: 17,
          marginTop: 3,
          color: col,
          fontVariantNumeric: 'tabular-nums'
        }
      }, v));
    })), c.status === 'live' && /*#__PURE__*/React.createElement("div", {
      style: {
        marginTop: 12
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        justifyContent: 'space-between',
        fontSize: 10,
        color: T.fg3,
        marginBottom: 4
      }
    }, /*#__PURE__*/React.createElement("span", null, "BUDGET BESTEED"), /*#__PURE__*/React.createElement("span", {
      style: {
        fontVariantNumeric: 'tabular-nums'
      }
    }, "\u20AC ", c.spend.toLocaleString('nl-BE'), " / \u20AC ", (c.spend * 1.4 | 0).toLocaleString('nl-BE'))), /*#__PURE__*/React.createElement("div", {
      style: {
        height: 4,
        background: 'rgba(246,247,235,0.06)'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        height: '100%',
        width: "".concat(c.spend / (c.spend * 1.4) * 100, "%"),
        background: c.color,
        boxShadow: "0 0 5px ".concat(c.color)
      }
    }))));
  })));
};

/* ──────────────────────────────────────────────────────────────────────────
   LIBRARY tab
   ────────────────────────────────────────────────────────────────────────── */

var MkLibrary = function MkLibrary() {
  var items = Array.from({
    length: 18
  }, function (_, i) {
    var r = i * 37 % 7;
    return {
      id: "m".concat(i),
      type: r % 3 === 0 ? 'video' : 'image',
      tags: ['installatie', 'klant', 'drone', 'portret', 'studio'][r % 5]
    };
  });
  return /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel"
  }, /*#__PURE__*/React.createElement("div", {
    className: "ghs-werkbalk"
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      fontFamily: T.fontBody,
      fontSize: 12,
      color: T.fg3
    }
  }, "247 items \xB7 18,4 GB"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginLeft: 'auto',
      display: 'flex',
      gap: 7
    }
  }, /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "sm",
    icon: "filter"
  }, "Filter"), /*#__PURE__*/React.createElement(Button, {
    variant: "accent",
    size: "sm",
    icon: "upload"
  }, "Upload"))), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fit,minmax(145px,1fr))',
      gap: 10
    }
  }, items.map(function (it) {
    return /*#__PURE__*/React.createElement("div", {
      key: it.id,
      style: {
        aspectRatio: '1 / 1',
        background: 'linear-gradient(160deg, #0F5030 0%, #001F1C 100%)',
        border: "1px solid ".concat(T.stroke1),
        clipPath: cutPath(10),
        position: 'relative',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        cursor: 'pointer'
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: it.type === 'video' ? 'play' : 'image',
      size: 26,
      color: "rgba(0,217,0,0.4)"
    }), /*#__PURE__*/React.createElement("div", {
      style: {
        position: 'absolute',
        left: 7,
        bottom: 7,
        fontSize: 9,
        fontWeight: 700,
        letterSpacing: '0.14em',
        color: 'rgba(246,247,235,0.6)'
      }
    }, it.tags.toUpperCase()), it.type === 'video' && /*#__PURE__*/React.createElement("div", {
      style: {
        position: 'absolute',
        right: 7,
        top: 7,
        fontSize: 9,
        fontWeight: 700,
        padding: '2px 5px',
        background: 'rgba(0,0,0,0.6)',
        color: T.fg1
      }
    }, "0:", it.id.charCodeAt(1) * 7 % 50 + 12));
  })));
};

/* ──────────────────────────────────────────────────────────────────────────
   AUTOMATISERING tab
   ────────────────────────────────────────────────────────────────────────── */

var MkToggle = function MkToggle(_ref3) {
  var checked = _ref3.checked,
    onChange = _ref3.onChange;
  return /*#__PURE__*/React.createElement("span", {
    onClick: onChange,
    style: {
      display: 'inline-block',
      width: 34,
      height: 18,
      background: checked ? 'rgba(0,217,0,0.4)' : 'rgba(246,247,235,0.10)',
      border: "1px solid ".concat(checked ? 'rgba(0,217,0,0.6)' : 'rgba(246,247,235,0.14)'),
      borderRadius: 999,
      position: 'relative',
      boxShadow: checked ? '0 0 8px rgba(0,217,0,0.4)' : 'none',
      flexShrink: 0,
      cursor: 'pointer'
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      position: 'absolute',
      top: 2,
      left: checked ? 17 : 2,
      width: 12,
      height: 12,
      borderRadius: '50%',
      background: checked ? T.accent : T.fg3,
      transition: 'left 220ms'
    }
  }));
};
var MkAutomatisering = function MkAutomatisering() {
  var _useState = useState([{
      id: 1,
      name: 'Re-post best performers',
      trigger: 'Post bereikt > 10k engagement',
      action: 'Hergebruik op TikTok 7 dagen later',
      active: true,
      used: 18
    }, {
      id: 2,
      name: 'Auto-boost premie-content',
      trigger: 'Caption bevat "premie"',
      action: '+€ 50 spend op FB + IG',
      active: true,
      used: 6
    }, {
      id: 3,
      name: 'Klantverhaal automatisch',
      trigger: 'Deal status → Live',
      action: 'Maak draft post in IG met dronemateriaal',
      active: true,
      used: 14
    }, {
      id: 4,
      name: 'AI co-pilot suggesties',
      trigger: 'Elke maandag 09:00',
      action: 'Genereer 5 post-ideeën uit kalender',
      active: false,
      used: 0
    }, {
      id: 5,
      name: 'Pauzeer slechte CPL',
      trigger: 'CPL > € 50 voor 48u',
      action: 'Pauzeer ad-set + waarschuw marketing',
      active: true,
      used: 3
    }]),
    _useState2 = _slicedToArray(_useState, 2),
    rules = _useState2[0],
    setRules = _useState2[1];
  var toggle = function toggle(id) {
    return setRules(function (rs) {
      return rs.map(function (r) {
        return r.id === id ? _objectSpread(_objectSpread({}, r), {}, {
          active: !r.active
        }) : r;
      });
    });
  };
  return /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel"
  }, /*#__PURE__*/React.createElement("div", {
    className: "ghs-werkbalk"
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      fontFamily: T.fontBody,
      fontSize: 12,
      color: T.fg3
    }
  }, "Regels \xB7 workflows \xB7 AI co-pilot"), /*#__PURE__*/React.createElement(Button, {
    variant: "primary",
    size: "sm",
    icon: "plus",
    style: {
      marginLeft: 'auto',
      background: 'linear-gradient(135deg, #d99cff 0%, #bf63ff 50%, #9333ea 100%)',
      color: '#fff'
    }
  }, "Nieuwe regel")), /*#__PURE__*/React.createElement("div", {
    style: {
      background: 'linear-gradient(120deg, rgba(191,99,255,0.10), rgba(0,217,0,0.06)), ' + T.bg1,
      border: "1px solid rgba(191,99,255,0.22)",
      padding: '16px 20px',
      clipPath: cutPath(13),
      marginBottom: 14,
      display: 'flex',
      alignItems: 'center',
      gap: 14
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 40,
      height: 40,
      background: 'rgba(191,99,255,0.18)',
      border: "1px solid rgba(191,99,255,0.35)",
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      clipPath: cutPath(7)
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "sparkles",
    size: 18,
    color: "#bf63ff"
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15
    }
  }, "GHS AI is in leerlingmode"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 12,
      color: T.fg2,
      marginTop: 3
    }
  }, "We bestuderen wat werkt op jullie kanalen. Over ", /*#__PURE__*/React.createElement("strong", {
    style: {
      color: '#bf63ff'
    }
  }, "~4 weken"), " kan AI autonoom plannen en posten \u2014 als jij dat wil.")), /*#__PURE__*/React.createElement("div", {
    style: {
      width: 180
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      justifyContent: 'space-between',
      fontSize: 10,
      color: T.fg3,
      marginBottom: 4
    }
  }, /*#__PURE__*/React.createElement("span", null, "LEERVOORTGANG"), /*#__PURE__*/React.createElement("span", {
    style: {
      color: '#bf63ff',
      fontWeight: 700
    }
  }, "68%")), /*#__PURE__*/React.createElement("div", {
    style: {
      height: 5,
      background: 'rgba(246,247,235,0.08)'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      height: '100%',
      width: '68%',
      background: 'linear-gradient(90deg, #bf63ff, #00D900)',
      boxShadow: '0 0 6px rgba(191,99,255,0.6)'
    }
  })))), /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1)
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '14px 18px',
      display: 'flex',
      alignItems: 'center',
      gap: 11,
      borderBottom: "1px solid ".concat(T.stroke1)
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Actieve regels"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, rules.filter(function (r) {
    return r.active;
  }).length, " / ", rules.length, " ACTIEF")), rules.map(function (r, i) {
    return /*#__PURE__*/React.createElement("div", {
      key: r.id,
      style: {
        display: 'grid',
        gridTemplateColumns: 'auto minmax(0,1fr) minmax(0,1fr) 90px 28px',
        gap: 16,
        alignItems: 'center',
        padding: '14px 18px',
        borderBottom: i < rules.length - 1 ? "1px solid rgba(246,247,235,0.03)" : 0
      }
    }, /*#__PURE__*/React.createElement(MkToggle, {
      checked: r.active,
      onChange: function onChange() {
        return toggle(r.id);
      }
    }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 600,
        fontSize: 13
      }
    }, r.name), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11,
        color: T.fg3,
        marginTop: 3,
        display: 'flex',
        alignItems: 'center',
        gap: 5
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: "bolt",
      size: 10,
      color: "#ffb020"
    }), /*#__PURE__*/React.createElement("span", null, r.trigger), /*#__PURE__*/React.createElement(Icon, {
      name: "arrowright",
      size: 9,
      color: T.fg3
    }))), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 12,
        color: T.fg2,
        display: 'flex',
        alignItems: 'center',
        gap: 5
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: "sparkles",
      size: 11,
      color: T.accent
    }), r.action), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 15,
        fontVariantNumeric: 'tabular-nums'
      }
    }, r.used), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 9,
        color: T.fg3,
        letterSpacing: '0.14em',
        fontWeight: 700
      }
    }, "UITGEVOERD")), /*#__PURE__*/React.createElement(Icon, {
      name: "moredots",
      size: 13,
      color: T.fg3
    }));
  })));
};

/* ──────────────────────────────────────────────────────────────────────────
   EXTERNE TOEGANG tab
   ────────────────────────────────────────────────────────────────────────── */

var MkExtern = function MkExtern() {
  var partners = [{
    name: 'Mediabureau Zoom',
    contact: 'annick@zoom.test',
    role: 'Reels & Stories',
    perms: ['plan', 'concept', 'media'],
    status: 'online',
    posts: 24,
    since: 'Mar 2026'
  }, {
    name: 'Studio Nordlys',
    contact: 'jens@nordlys.test',
    role: 'Foto & video',
    perms: ['plan', 'concept', 'media'],
    status: 'online',
    posts: 18,
    since: 'Jan 2026'
  }, {
    name: 'Fien · freelance',
    contact: 'fien@freelance.test',
    role: 'Captions / copy',
    perms: ['concept'],
    status: 'offline',
    posts: 41,
    since: 'Sep 2025'
  }, {
    name: 'Marketing Manager',
    contact: 'stef@ghs.test',
    role: 'GHS · admin',
    perms: ['plan', 'publish', 'media', 'ads', 'approve'],
    status: 'online',
    posts: 87,
    since: '—'
  }];
  var permColor = function permColor(perm) {
    return perm === 'publish' || perm === 'ads' ? '#ffb020' : perm === 'approve' ? '#bf63ff' : T.accent;
  };
  var permBg = function permBg(perm) {
    return perm === 'publish' || perm === 'ads' ? 'rgba(255,176,32,0.10)' : perm === 'approve' ? 'rgba(191,99,255,0.10)' : 'rgba(0,217,0,0.08)';
  };
  var permBorder = function permBorder(perm) {
    return perm === 'publish' || perm === 'ads' ? 'rgba(255,176,32,0.30)' : perm === 'approve' ? 'rgba(191,99,255,0.30)' : 'rgba(0,217,0,0.25)';
  };
  return /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel"
  }, /*#__PURE__*/React.createElement("div", {
    className: "ghs-werkbalk"
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      fontFamily: T.fontBody,
      fontSize: 12,
      color: T.fg3
    }
  }, "Beheer derde partijen + rechten"), /*#__PURE__*/React.createElement(Button, {
    variant: "primary",
    size: "sm",
    icon: "userplus",
    style: {
      marginLeft: 'auto'
    }
  }, "Nodig uit")), /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1)
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'minmax(0,2fr) minmax(0,1.2fr) minmax(0,1.6fr) 80px 100px',
      padding: '11px 18px',
      borderBottom: "1px solid ".concat(T.stroke1),
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      textTransform: 'uppercase',
      color: T.fg3
    }
  }, /*#__PURE__*/React.createElement("span", null, "Partner"), /*#__PURE__*/React.createElement("span", null, "Rol"), /*#__PURE__*/React.createElement("span", null, "Rechten"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "Posts"), /*#__PURE__*/React.createElement("span", null, "Sinds")), partners.map(function (p, i) {
    return /*#__PURE__*/React.createElement("div", {
      key: i,
      style: {
        display: 'grid',
        gridTemplateColumns: 'minmax(0,2fr) minmax(0,1.2fr) minmax(0,1.6fr) 80px 100px',
        alignItems: 'center',
        padding: '13px 18px',
        borderBottom: i < partners.length - 1 ? "1px solid rgba(246,247,235,0.03)" : 0
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        gap: 11
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        width: 34,
        height: 34,
        borderRadius: '50%',
        background: 'linear-gradient(135deg, #1E7040, #063520)',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        fontSize: 11,
        fontWeight: 700,
        position: 'relative'
      }
    }, p.name.split(' ').map(function (x) {
      return x[0];
    }).slice(0, 2).join(''), /*#__PURE__*/React.createElement("span", {
      style: {
        position: 'absolute',
        bottom: 0,
        right: 0,
        width: 9,
        height: 9,
        borderRadius: '50%',
        background: p.status === 'online' ? T.accent : T.fg4,
        border: "2px solid ".concat(T.bg1),
        boxShadow: p.status === 'online' ? "0 0 5px ".concat(T.accent) : 'none'
      }
    })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 600,
        fontSize: 13
      }
    }, p.name), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11,
        color: T.fg3,
        marginTop: 2
      }
    }, p.contact))), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 12,
        color: T.fg2
      }
    }, p.role), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        flexWrap: 'wrap',
        gap: 4
      }
    }, p.perms.map(function (perm) {
      return /*#__PURE__*/React.createElement("span", {
        key: perm,
        style: {
          fontSize: 9.5,
          fontWeight: 700,
          letterSpacing: '0.12em',
          textTransform: 'uppercase',
          padding: '3px 6px',
          color: permColor(perm),
          background: permBg(perm),
          border: "1px solid ".concat(permBorder(perm)),
          clipPath: cutPath(3)
        }
      }, perm);
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 15,
        fontVariantNumeric: 'tabular-nums'
      }
    }, p.posts), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11.5,
        color: T.fg2
      }
    }, p.since));
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 14,
      background: 'rgba(0,217,0,0.05)',
      border: "1px solid rgba(0,217,0,0.22)",
      padding: '15px 20px',
      clipPath: cutPath(11),
      display: 'flex',
      alignItems: 'center',
      gap: 14
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "shield",
    size: 17,
    color: T.accent
  }), /*#__PURE__*/React.createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 13,
      fontWeight: 700
    }
  }, "Granulaire rechten \xB7 standaard veilig"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11.5,
      color: T.fg2,
      marginTop: 3,
      lineHeight: 1.5
    }
  }, "Externen kunnen plannen en concepten uploaden, maar publicatie en ad-spend blijven standaard bij GHS-admin. Alle wijzigingen worden gelogd in de Audit-trail.")), /*#__PURE__*/React.createElement(Button, {
    variant: "accent",
    size: "sm"
  }, "Bekijk audit-log")));
};

/* ──────────────────────────────────────────────────────────────────────────
   COMPOSE drawer
   ────────────────────────────────────────────────────────────────────────── */

var MkCompose = function MkCompose(_ref4) {
  var onClose = _ref4.onClose;
  var _useState3 = useState(['instagram', 'facebook']),
    _useState4 = _slicedToArray(_useState3, 2),
    picked = _useState4[0],
    setPicked = _useState4[1];
  var _useState5 = useState('reel'),
    _useState6 = _slicedToArray(_useState5, 2),
    postType = _useState6[0],
    setPostType = _useState6[1];
  var _useState7 = useState('Van leeg dak tot 8,4 kWp in één dag. Bedankt familie De Smet uit Gent voor het vertrouwen.\n\n#zonnepanelenbe #ghs #greenhousesolutions #solar2026'),
    _useState8 = _slicedToArray(_useState7, 2),
    caption = _useState8[0],
    setCaption = _useState8[1];
  var _useState9 = useState('2026-05-30'),
    _useState0 = _slicedToArray(_useState9, 2),
    scheduleDate = _useState0[0],
    setScheduleDate = _useState0[1];
  var _useState1 = useState('18:30'),
    _useState10 = _slicedToArray(_useState1, 2),
    scheduleTime = _useState10[0],
    setScheduleTime = _useState10[1];
  var _useState11 = useState(false),
    _useState12 = _slicedToArray(_useState11, 2),
    autoOptimal = _useState12[0],
    setAutoOptimal = _useState12[1];
  var toggle = function toggle(pf) {
    return setPicked(function (p) {
      return p.includes(pf) ? p.filter(function (x) {
        return x !== pf;
      }) : [].concat(_toConsumableArray(p), [pf]);
    });
  };
  return /*#__PURE__*/React.createElement("div", {
    style: {
      position: 'fixed',
      inset: 0,
      zIndex: 200
    }
  }, /*#__PURE__*/React.createElement("div", {
    onClick: onClose,
    style: {
      position: 'absolute',
      inset: 0,
      background: 'rgba(0,0,0,0.55)',
      backdropFilter: 'blur(6px)'
    }
  }), /*#__PURE__*/React.createElement("aside", {
    role: "dialog",
    "aria-modal": "true",
    "aria-label": "Plan een publicatie",
    style: {
      position: 'absolute',
      top: 0,
      right: 0,
      bottom: 'var(--ghs-dock, 0px)',
      width: 720,
      maxWidth: '100%',
      background: T.bg0,
      borderLeft: "1px solid ".concat(T.stroke1),
      boxShadow: '-30px 0 60px rgba(0,0,0,0.5)',
      display: 'flex',
      flexDirection: 'column',
      overflow: 'hidden'
    }
  }, /*#__PURE__*/React.createElement(GhsDialoogKop, {
    icoon: "megaphone",
    label: "Nieuwe post \xB7 concept",
    titel: "Plan een publicatie",
    onClose: onClose
  }), /*#__PURE__*/React.createElement("div", {
    style: {
      flex: 1,
      display: 'grid',
      gridTemplateColumns: '1.2fr 1fr',
      overflow: 'hidden'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '18px 22px',
      overflowY: 'auto',
      display: 'flex',
      flexDirection: 'column',
      gap: 22
    }
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Kanalen"), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fit,minmax(150px,1fr))',
      gap: 7,
      marginTop: 8
    }
  }, Object.entries(MK_PLATFORMS).map(function (_ref5) {
    var _ref6 = _slicedToArray(_ref5, 2),
      id = _ref6[0],
      p = _ref6[1];
    var active = picked.includes(id);
    return /*#__PURE__*/React.createElement("button", {
      key: id,
      onClick: function onClick() {
        return toggle(id);
      },
      style: {
        padding: '12px 11px',
        background: active ? "linear-gradient(160deg, ".concat(p.color, "22, ").concat(p.color, "08)") : 'rgba(246,247,235,0.03)',
        border: "1px solid ".concat(active ? p.color + '66' : T.stroke1),
        cursor: 'pointer',
        textAlign: 'left',
        clipPath: cutPath(6),
        display: 'flex',
        flexDirection: 'column',
        gap: 7
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'space-between'
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: id,
      size: 17,
      color: active ? p.color : T.fg3
    }), active && /*#__PURE__*/React.createElement(Icon, {
      name: "check",
      size: 13,
      color: p.color,
      sw: 2.4
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11.5,
        fontWeight: 600,
        color: active ? T.fg1 : T.fg3
      }
    }, p.label));
  }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Type"), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      gap: 5,
      marginTop: 8,
      flexWrap: 'wrap'
    }
  }, [{
    id: 'post',
    label: 'Post',
    icon: 'image'
  }, {
    id: 'reel',
    label: 'Reel',
    icon: 'video'
  }, {
    id: 'carousel',
    label: 'Carousel',
    icon: 'copy'
  }, {
    id: 'story',
    label: 'Story',
    icon: 'play'
  }].map(function (t) {
    return /*#__PURE__*/React.createElement("button", {
      key: t.id,
      onClick: function onClick() {
        return setPostType(t.id);
      },
      style: {
        display: 'inline-flex',
        alignItems: 'center',
        gap: 5,
        padding: '7px 12px',
        background: postType === t.id ? 'rgba(0,217,0,0.10)' : 'rgba(246,247,235,0.04)',
        color: postType === t.id ? T.accent : T.fg2,
        border: "1px solid ".concat(postType === t.id ? 'rgba(0,217,0,0.30)' : T.stroke1),
        cursor: 'pointer',
        fontSize: 12,
        fontWeight: 600,
        fontFamily: T.fontBody,
        clipPath: cutPath(4)
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: t.icon,
      size: 12,
      color: postType === t.id ? T.accent : T.fg3
    }), t.label);
  }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Media"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 8,
      padding: 18,
      background: 'rgba(246,247,235,0.02)',
      border: "1px dashed rgba(0,217,0,0.30)",
      clipPath: cutPath(10),
      display: 'flex',
      alignItems: 'center',
      gap: 13
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 54,
      height: 54,
      background: 'rgba(0,217,0,0.08)',
      border: "1px solid rgba(0,217,0,0.30)",
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      clipPath: cutPath(6)
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "upload",
    size: 19,
    color: T.accent
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 13,
      fontWeight: 600
    }
  }, "Sleep media hier of klik om te uploaden"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11,
      color: T.fg3,
      marginTop: 3
    }
  }, "JPG / PNG / MP4 \xB7 max 100 MB \xB7 9:16 voor Reels & Stories")), /*#__PURE__*/React.createElement(Button, {
    variant: "accent",
    size: "sm"
  }, "Bibliotheek")), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 7,
      fontSize: 11,
      color: T.fg3,
      display: 'flex',
      alignItems: 'center',
      gap: 5
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "sparkles",
    size: 11,
    color: "#bf63ff"
  }), /*#__PURE__*/React.createElement("span", null, "Tip: AI past automatisch aan naar 1:1 (FB), 4:5 (IG) en 9:16 (TT/Reels)."))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'space-between'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Caption"), /*#__PURE__*/React.createElement("button", {
    style: {
      background: 'rgba(191,99,255,0.10)',
      color: '#bf63ff',
      border: "1px solid rgba(191,99,255,0.30)",
      padding: '4px 9px',
      fontSize: 11,
      fontWeight: 600,
      cursor: 'pointer',
      display: 'inline-flex',
      alignItems: 'center',
      gap: 4,
      clipPath: cutPath(3),
      fontFamily: T.fontBody
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "sparkles",
    size: 11,
    color: "#bf63ff"
  }), "AI \xB7 genereer")), /*#__PURE__*/React.createElement("textarea", {
    value: caption,
    onChange: function onChange(e) {
      return setCaption(e.target.value);
    },
    style: {
      marginTop: 8,
      width: '100%',
      minHeight: 130,
      padding: '12px 14px',
      background: 'rgba(246,247,235,0.03)',
      border: "1px solid ".concat(T.stroke1),
      color: T.fg1,
      fontFamily: T.fontBody,
      fontSize: 13,
      lineHeight: 1.55,
      outline: 0,
      resize: 'vertical',
      clipPath: cutPath(6)
    }
  }), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 5,
      display: 'flex',
      justifyContent: 'space-between',
      fontSize: 10.5,
      color: T.fg3
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      gap: 12
    }
  }, picked.map(function (pf) {
    var max = pf === 'tiktok' ? 2200 : pf === 'instagram' ? 2200 : 63206;
    var ok = caption.length <= max;
    return /*#__PURE__*/React.createElement("span", {
      key: pf,
      style: {
        display: 'inline-flex',
        alignItems: 'center',
        gap: 4
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: pf,
      size: 10,
      color: MK_PLATFORMS[pf].color
    }), /*#__PURE__*/React.createElement("span", {
      style: {
        color: ok ? T.fg3 : T.danger,
        fontVariantNumeric: 'tabular-nums'
      }
    }, caption.length, "/", max.toLocaleString('nl-BE')));
  })))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Publicatie"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 8,
      padding: '13px 15px',
      background: autoOptimal ? 'linear-gradient(160deg, rgba(191,99,255,0.10), rgba(0,0,0,0))' : 'rgba(246,247,235,0.03)',
      border: "1px solid ".concat(autoOptimal ? 'rgba(191,99,255,0.30)' : T.stroke1),
      clipPath: cutPath(6),
      display: 'flex',
      alignItems: 'center',
      gap: 11,
      cursor: 'pointer'
    },
    onClick: function onClick() {
      return setAutoOptimal(!autoOptimal);
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 18,
      height: 18,
      borderRadius: '50%',
      border: "2px solid ".concat(autoOptimal ? '#bf63ff' : T.fg3),
      background: autoOptimal ? '#bf63ff' : 'transparent',
      boxShadow: autoOptimal ? '0 0 7px rgba(191,99,255,0.5)' : 'none',
      flexShrink: 0,
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center'
    }
  }, autoOptimal && /*#__PURE__*/React.createElement(Icon, {
    name: "check",
    size: 11,
    color: "#fff",
    sw: 3
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      flex: 1
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 12.5,
      fontWeight: 600
    }
  }, "AI bepaalt beste tijd per kanaal"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11,
      color: T.fg3,
      marginTop: 2
    }
  }, "Gebaseerd op engagement-piek per platform. IG = di 18:30, TT = do 19:00.")), /*#__PURE__*/React.createElement(Icon, {
    name: "sparkles",
    size: 13,
    color: "#bf63ff"
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: '1fr 1fr',
      gap: 9,
      marginTop: 9,
      opacity: autoOptimal ? 0.4 : 1,
      pointerEvents: autoOptimal ? 'none' : 'auto'
    }
  }, /*#__PURE__*/React.createElement(MkField, {
    icon: "calendar",
    label: "Datum"
  }, /*#__PURE__*/React.createElement(window.GhsDatumVeld, {
    value: scheduleDate,
    onChange: function onChange(v) {
      return setScheduleDate(v);
    },
    style: mkInputStyle
  })), /*#__PURE__*/React.createElement(MkField, {
    icon: "clock",
    label: "Tijd"
  }, /*#__PURE__*/React.createElement(window.GhsTijdVeld, {
    value: scheduleTime,
    onChange: function onChange(v) {
      return setScheduleTime(v);
    },
    style: mkInputStyle
  })))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: mkLabel
  }, "Toewijzen"), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: '1fr 1fr',
      gap: 9,
      marginTop: 8
    }
  }, /*#__PURE__*/React.createElement(MkField, {
    icon: "megaphone",
    label: "Campagne"
  }, /*#__PURE__*/React.createElement("select", {
    style: mkInputStyle
  }, /*#__PURE__*/React.createElement("option", null, "Lente Solar 2026"), /*#__PURE__*/React.createElement("option", null, "Heat pump push"), /*#__PURE__*/React.createElement("option", null, "Premie 2026"), /*#__PURE__*/React.createElement("option", null, "Klantverhalen"))), /*#__PURE__*/React.createElement(MkField, {
    icon: "usercheck",
    label: "Auteur"
  }, /*#__PURE__*/React.createElement("select", {
    style: mkInputStyle
  }, /*#__PURE__*/React.createElement("option", null, "Ive Bogaerts"), /*#__PURE__*/React.createElement("option", null, "S\xE9bastien Flamant"), /*#__PURE__*/React.createElement("option", null, "Mediabureau Zoom")))))), /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#001F1C',
      borderLeft: "1px solid ".concat(T.stroke1),
      padding: '18px 22px',
      overflowY: 'auto'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.18em',
      textTransform: 'uppercase',
      color: T.fg3,
      marginBottom: 12
    }
  }, "Live preview \xB7 ", picked.length || 0, " kanalen"), picked.length === 0 && /*#__PURE__*/React.createElement("div", {
    style: {
      padding: 22,
      textAlign: 'center',
      color: T.fg3,
      fontSize: 13
    }
  }, "Selecteer minstens \xE9\xE9n kanaal om de preview te zien."), picked.includes('instagram') && /*#__PURE__*/React.createElement(MkPreviewIG, {
    caption: caption,
    type: postType
  }), picked.includes('tiktok') && /*#__PURE__*/React.createElement(MkPreviewTT, {
    caption: caption
  }), picked.includes('facebook') && /*#__PURE__*/React.createElement(MkPreviewFB, {
    caption: caption
  }), picked.includes('linkedin') && /*#__PURE__*/React.createElement(MkPreviewLI, {
    caption: caption
  }))), /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '14px 22px',
      borderTop: "1px solid ".concat(T.stroke1),
      background: 'rgba(1,12,8,0.5)',
      display: 'flex',
      alignItems: 'center',
      gap: 10,
      flexShrink: 0
    }
  }, /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "md"
  }, "Bewaar concept"), /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "md",
    icon: "usercheck",
    style: {
      color: '#ffb020',
      borderColor: 'rgba(255,176,32,0.30)'
    }
  }, "Stuur ter review"), /*#__PURE__*/React.createElement("span", {
    style: {
      flex: 1
    }
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 11,
      color: T.fg3
    }
  }, autoOptimal ? 'AI plant op optimale tijden' : "Publiceert ".concat(new Date(scheduleDate).toLocaleDateString('nl-BE', {
    day: '2-digit',
    month: 'short'
  }), " om ").concat(scheduleTime)), /*#__PURE__*/React.createElement(Button, {
    variant: "primary",
    size: "md",
    icon: "send"
  }, "Plan publicatie"))));
};
var mkLabel = {
  fontSize: 10,
  fontWeight: 700,
  letterSpacing: '0.18em',
  textTransform: 'uppercase',
  color: T.fg3
};
var mkInputStyle = {
  flex: 1,
  background: 'transparent',
  border: 0,
  outline: 0,
  color: T.fg1,
  fontFamily: T.fontBody,
  fontSize: 13,
  colorScheme: 'dark'
};
var MkField = function MkField(_ref7) {
  var icon = _ref7.icon,
    label = _ref7.label,
    children = _ref7.children;
  return /*#__PURE__*/React.createElement("label", {
    style: {
      display: 'block'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 10.5,
      fontWeight: 600,
      color: T.fg3,
      marginBottom: 5
    }
  }, label), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      padding: '9px 13px',
      background: 'rgba(246,247,235,0.03)',
      border: "1px solid ".concat(T.stroke1),
      clipPath: cutPath(5)
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: icon,
    size: 12,
    color: T.fg3
  }), children));
};

/* Preview cards */

var MkPreviewFrame = function MkPreviewFrame(_ref8) {
  var title = _ref8.title,
    color = _ref8.color,
    children = _ref8.children;
  return /*#__PURE__*/React.createElement("div", {
    style: {
      marginBottom: 16,
      background: T.bg1,
      border: "1px solid ".concat(T.stroke1),
      clipPath: cutPath(8),
      overflow: 'hidden'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '9px 12px',
      borderBottom: "1px solid ".concat(T.stroke1),
      display: 'flex',
      alignItems: 'center',
      gap: 7
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      width: 6,
      height: 6,
      borderRadius: '50%',
      background: color,
      boxShadow: "0 0 5px ".concat(color)
    }
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: color
    }
  }, title)), children);
};
var MkPreviewIG = function MkPreviewIG(_ref9) {
  var caption = _ref9.caption,
    type = _ref9.type;
  return /*#__PURE__*/React.createElement(MkPreviewFrame, {
    title: "INSTAGRAM",
    color: "#E1306C"
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#000',
      padding: 12,
      display: 'flex',
      alignItems: 'center',
      gap: 9
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 30,
      height: 30,
      borderRadius: '50%',
      background: 'linear-gradient(135deg, #F58529, #DD2A7B, #515BD4)',
      padding: 2
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: '100%',
      height: '100%',
      borderRadius: '50%',
      background: '#063520',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      fontSize: 9,
      fontWeight: 700,
      color: T.accent
    }
  }, "GHS")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11.5,
      fontWeight: 600,
      color: '#fff'
    }
  }, "greenhousesolutions"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 9.5,
      color: 'rgba(255,255,255,0.6)'
    }
  }, "Gesponsord \xB7 Gent"))), /*#__PURE__*/React.createElement("div", {
    style: {
      aspectRatio: type === 'story' || type === 'reel' ? '9 / 16' : '1 / 1',
      background: 'linear-gradient(160deg, #0F5030 0%, #001F1C 100%)',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      position: 'relative',
      maxHeight: 240
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: type === 'reel' ? 'play' : 'image',
    size: 32,
    color: "rgba(0,217,0,0.6)"
  }), /*#__PURE__*/React.createElement("div", {
    style: {
      position: 'absolute',
      bottom: 9,
      right: 11,
      fontSize: 9,
      fontWeight: 700,
      color: 'rgba(255,255,255,0.7)'
    }
  }, "0:42")), /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '9px 12px',
      background: '#000'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      gap: 13,
      marginBottom: 7
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "heart",
    size: 18,
    color: "#fff"
  }), /*#__PURE__*/React.createElement(Icon, {
    name: "messagecircle",
    size: 18,
    color: "#fff"
  }), /*#__PURE__*/React.createElement(Icon, {
    name: "send",
    size: 18,
    color: "#fff"
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      flex: 1
    }
  }), /*#__PURE__*/React.createElement(Icon, {
    name: "bookmark",
    size: 18,
    color: "#fff"
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11,
      color: '#fff',
      lineHeight: 1.4,
      whiteSpace: 'pre-wrap'
    }
  }, /*#__PURE__*/React.createElement("strong", null, "greenhousesolutions"), " ", caption.slice(0, 120), caption.length > 120 ? '…' : '')));
};
var MkPreviewFB = function MkPreviewFB(_ref0) {
  var caption = _ref0.caption;
  return /*#__PURE__*/React.createElement(MkPreviewFrame, {
    title: "FACEBOOK",
    color: "#1877F2"
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#1c1e21',
      padding: 11,
      display: 'flex',
      alignItems: 'center',
      gap: 9
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 32,
      height: 32,
      borderRadius: '50%',
      background: 'linear-gradient(135deg, #1E7040, #063520)',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      fontSize: 10,
      fontWeight: 700,
      color: T.accent
    }
  }, "GHS"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 12,
      fontWeight: 600,
      color: '#fff'
    }
  }, "Green House Solutions"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 9.5,
      color: 'rgba(255,255,255,0.6)'
    }
  }, "Gesponsord \xB7 30 mei"))), /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#1c1e21',
      padding: '0 11px 9px',
      fontSize: 11.5,
      color: '#e4e6eb',
      lineHeight: 1.45
    }
  }, caption.slice(0, 180), caption.length > 180 ? '…' : ''), /*#__PURE__*/React.createElement("div", {
    style: {
      height: 140,
      background: 'linear-gradient(160deg, #0F5030 0%, #001F1C 100%)',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center'
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "image",
    size: 28,
    color: "rgba(0,217,0,0.6)"
  })));
};
var MkPreviewTT = function MkPreviewTT(_ref1) {
  var caption = _ref1.caption;
  return /*#__PURE__*/React.createElement(MkPreviewFrame, {
    title: "TIKTOK",
    color: "#25F4EE"
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      aspectRatio: '9 / 16',
      background: 'linear-gradient(160deg, #0F5030 0%, #001F1C 100%)',
      position: 'relative',
      maxHeight: 300,
      overflow: 'hidden'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      position: 'absolute',
      top: '45%',
      left: '50%',
      transform: 'translate(-50%, -50%)'
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "play",
    size: 38,
    color: "rgba(0,242,234,0.7)"
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      position: 'absolute',
      right: 6,
      bottom: 54,
      display: 'flex',
      flexDirection: 'column',
      gap: 11,
      alignItems: 'center'
    }
  }, ['heart', 'messagecircle', 'share', 'bookmark'].map(function (i) {
    return /*#__PURE__*/React.createElement("div", {
      key: i,
      style: {
        background: 'rgba(0,0,0,0.4)',
        borderRadius: '50%',
        padding: 7
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: i,
      size: 16,
      color: "#fff"
    }));
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      position: 'absolute',
      left: 12,
      right: 54,
      bottom: 11,
      color: '#fff'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 11.5,
      fontWeight: 700,
      marginBottom: 3
    }
  }, "@greenhousesolutions"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 10.5,
      lineHeight: 1.35
    }
  }, caption.slice(0, 100), caption.length > 100 ? '…' : ''), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 9.5,
      color: 'rgba(255,255,255,0.7)',
      marginTop: 5,
      display: 'flex',
      alignItems: 'center',
      gap: 4
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "music",
    size: 10,
    color: "#fff"
  }), "Original sound \xB7 GHS"))));
};
var MkPreviewLI = function MkPreviewLI(_ref10) {
  var caption = _ref10.caption;
  return /*#__PURE__*/React.createElement(MkPreviewFrame, {
    title: "LINKEDIN",
    color: "#0A66C2"
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#1d2226',
      padding: 11,
      display: 'flex',
      alignItems: 'center',
      gap: 9
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      width: 36,
      height: 36,
      borderRadius: 4,
      background: 'linear-gradient(135deg, #1E7040, #063520)',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      fontSize: 10,
      fontWeight: 700,
      color: T.accent
    }
  }, "GHS"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 12,
      fontWeight: 600,
      color: '#fff'
    }
  }, "Green House Solutions"), /*#__PURE__*/React.createElement("div", {
    style: {
      fontSize: 9.5,
      color: 'rgba(255,255,255,0.6)'
    }
  }, "1.234 volgers \xB7 1d"))), /*#__PURE__*/React.createElement("div", {
    style: {
      background: '#1d2226',
      padding: '0 11px 9px',
      fontSize: 11.5,
      color: '#e4e6eb',
      lineHeight: 1.45
    }
  }, caption.slice(0, 220), caption.length > 220 ? '…' : ''));
};

/* ──────────────────────────────────────────────────────────────────────────
   MAIN PAGE SHELL with tabs
   ────────────────────────────────────────────────────────────────────────── */

var MarketingPage = function MarketingPage() {
  var _useState13 = useState('planning'),
    _useState14 = _slicedToArray(_useState13, 2),
    tab = _useState14[0],
    setTab = _useState14[1];
  var _useState15 = useState(false),
    _useState16 = _slicedToArray(_useState15, 2),
    composeOpen = _useState16[0],
    setComposeOpen = _useState16[1];
  return /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      flexDirection: 'column',
      minHeight: '100%'
    }
  }, /*#__PURE__*/React.createElement(Topbar, {
    title: "Marketing",
    breadcrumb: "OVERZICHT \xB7 MARKETING \xB7 PLAN EN MEET SOCIAL CAMPAGNES"
  }), /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel",
    style: {
      padding: 24,
      flex: 1
    }
  }, /*#__PURE__*/React.createElement(Tabs, {
    marge: 0,
    active: tab,
    onChange: setTab,
    tabs: [{
      id: 'planning',
      label: 'Planning',
      count: MK_POSTS.filter(function (p) {
        return p.status !== 'published';
      }).length
    }, {
      id: 'statistieken',
      label: 'Statistieken'
    }, {
      id: 'campagnes',
      label: 'Campagnes',
      count: MK_CAMPAIGNS.filter(function (c) {
        return c.status === 'live';
      }).length
    }, {
      id: 'library',
      label: 'Content library',
      count: 247
    }, {
      id: 'automatisering',
      label: 'Automatisering',
      count: 4
    }, {
      id: 'extern',
      label: 'Externe toegang',
      count: 4
    }],
    rechts: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
      style: {
        display: 'inline-flex',
        alignItems: 'center',
        gap: 6,
        fontSize: 10,
        fontWeight: 700,
        letterSpacing: '0.14em',
        color: T.fg3,
        padding: '5px 10px',
        background: 'rgba(0,217,0,0.06)',
        border: "1px solid rgba(0,217,0,0.20)",
        clipPath: cutPath(5)
      }
    }, /*#__PURE__*/React.createElement("span", {
      style: {
        width: 6,
        height: 6,
        borderRadius: '50%',
        background: T.accent,
        boxShadow: "0 0 5px ".concat(T.accent)
      }
    }), "METRICOOL \xB7 SYNC 14s"), /*#__PURE__*/React.createElement(Button, {
      variant: "primary",
      size: "sm",
      icon: "plus",
      onClick: function onClick() {
        return setComposeOpen(true);
      }
    }, "Nieuwe post"))
  }), tab === 'planning' && /*#__PURE__*/React.createElement(MkPlanning, {
    onCompose: function onCompose() {
      return setComposeOpen(true);
    }
  }), tab === 'statistieken' && /*#__PURE__*/React.createElement(MkStatistieken, null), tab === 'campagnes' && /*#__PURE__*/React.createElement(MkCampagnes, null), tab === 'library' && /*#__PURE__*/React.createElement(MkLibrary, null), tab === 'automatisering' && /*#__PURE__*/React.createElement(MkAutomatisering, null), tab === 'extern' && /*#__PURE__*/React.createElement(MkExtern, null)), composeOpen && /*#__PURE__*/React.createElement(MkCompose, {
    onClose: function onClose() {
      return setComposeOpen(false);
    }
  }));
};
window.MarketingPage = MarketingPage;