"use strict";

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 _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; }
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 _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 _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 _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; }
// GHS CRM — Marketing module · Part 2
// Statistieken (KPI hero · spend chart · funnel · platforms · campagne-tabel · top posts · attributie · heatmap)
// + Campagnes overview, Content library, Automatisering, Externe toegang
// + Compose drawer + Marketing page shell with tabs

/* ──────────────────────────────────────────────────────────────────────────
   STATISTIEKEN
   ────────────────────────────────────────────────────────────────────────── */

var MkSpark = function MkSpark(_ref) {
  var data = _ref.data,
    _ref$color = _ref.color,
    color = _ref$color === void 0 ? '#00D900' : _ref$color;
  var w = 64,
    h = 26;
  var max = Math.max.apply(Math, _toConsumableArray(data)),
    min = Math.min.apply(Math, _toConsumableArray(data));
  var pts = data.map(function (v, i) {
    return [i / (data.length - 1) * w, h - (v - min) / (max - min || 1) * (h - 6) - 3];
  });
  var d = pts.map(function (p, i) {
    return (i ? 'L' : 'M') + p[0].toFixed(1) + ' ' + p[1].toFixed(1);
  }).join(' ');
  var area = d + " L ".concat(w, " ").concat(h, " L 0 ").concat(h, " Z");
  var gid = "mk-spark-".concat(color.replace('#', ''));
  return /*#__PURE__*/React.createElement("svg", {
    width: w,
    height: h,
    viewBox: "0 0 ".concat(w, " ").concat(h),
    style: {
      flexShrink: 0
    }
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
    id: gid,
    x1: "0",
    x2: "0",
    y1: "0",
    y2: "1"
  }, /*#__PURE__*/React.createElement("stop", {
    offset: "0%",
    stopColor: color,
    stopOpacity: "0.35"
  }), /*#__PURE__*/React.createElement("stop", {
    offset: "100%",
    stopColor: color,
    stopOpacity: "0"
  }))), /*#__PURE__*/React.createElement("path", {
    d: area,
    fill: "url(#".concat(gid, ")")
  }), /*#__PURE__*/React.createElement("path", {
    d: d,
    fill: "none",
    stroke: color,
    strokeWidth: "1.5",
    strokeLinejoin: "round",
    strokeLinecap: "round"
  }), /*#__PURE__*/React.createElement("circle", {
    cx: pts[pts.length - 1][0],
    cy: pts[pts.length - 1][1],
    r: "2",
    fill: color
  }));
};
var MkKpiHero = function MkKpiHero() {
  var kpis = [{
    label: 'AD SPEND',
    value: '€ 12.460',
    delta: '+€ 1.840',
    pct: '+17,3%',
    spark: [4, 5, 4, 6, 7, 5, 6, 8, 7, 8, 9, 10],
    glow: T.accent
  }, {
    label: 'ROAS',
    value: '× 38,2',
    delta: '+4,1×',
    pct: '+12,0%',
    spark: [2, 3, 2, 4, 5, 4, 5, 5, 6, 6, 7, 8],
    glow: T.accent,
    accent: true
  }, {
    label: 'TOTAAL LEADS',
    value: '424',
    delta: '+62',
    pct: '+17,1%',
    spark: [3, 4, 4, 5, 6, 5, 7, 6, 8, 7, 9, 9],
    glow: T.accent
  }, {
    label: 'AFSPRAKEN',
    value: '115',
    delta: '+18',
    pct: '+18,5%',
    spark: [1, 2, 2, 3, 3, 4, 3, 4, 4, 5, 5, 6],
    glow: '#ffb020'
  }, {
    label: 'VERKOPEN',
    value: '30',
    delta: '+7',
    pct: '+30,4%',
    spark: [0, 1, 1, 2, 2, 2, 3, 2, 3, 4, 3, 4],
    glow: '#bf63ff'
  }, {
    label: 'REVENUE',
    value: '€ 466.800',
    delta: '+€ 91k',
    pct: '+24,2%',
    spark: [2, 3, 3, 4, 5, 4, 6, 5, 7, 7, 8, 9],
    glow: T.accent
  }];
  return /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fit,minmax(150px,1fr))',
      gap: 12
    }
  }, kpis.map(function (k, i) {
    return /*#__PURE__*/React.createElement("div", {
      key: i,
      style: {
        padding: '16px 18px',
        background: k.accent ? 'linear-gradient(160deg, rgba(0,217,0,0.16) 0%, rgba(0,217,0,0.04) 50%, rgba(246,247,235,0.02) 100%), ' + T.bg1 : T.bg1,
        backgroundImage: !k.accent ? 'linear-gradient(180deg,rgba(246,247,235,0.04),rgba(246,247,235,0))' : undefined,
        clipPath: cutPath(13),
        position: 'relative',
        overflow: 'hidden',
        boxShadow: k.accent ? 'inset 0 1px 0 rgba(0,217,0,0.20), 0 0 28px rgba(0,217,0,0.08)' : 'inset 0 1px 0 rgba(246,247,235,0.04)'
      }
    }, k.accent && /*#__PURE__*/React.createElement("div", {
      style: accentEdge(13)
    }), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10,
        fontWeight: 700,
        letterSpacing: '0.16em',
        color: T.fg3
      }
    }, k.label), /*#__PURE__*/React.createElement("div", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 26,
        marginTop: 9,
        letterSpacing: '-0.025em',
        lineHeight: 1,
        color: k.accent ? T.accent : T.fg1,
        fontVariantNumeric: 'tabular-nums',
        textShadow: k.accent ? '0 0 22px rgba(0,217,0,0.35)' : 'none'
      }
    }, k.value), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'flex-end',
        justifyContent: 'space-between',
        marginTop: 11,
        gap: 6
      }
    }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11,
        color: T.accent,
        fontWeight: 600,
        display: 'inline-flex',
        alignItems: 'center',
        gap: 3,
        fontVariantNumeric: 'tabular-nums'
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: "arrowupright",
      size: 11,
      color: T.accent
    }), k.pct), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10,
        color: T.fg3,
        marginTop: 2,
        fontVariantNumeric: 'tabular-nums'
      }
    }, k.delta, " vs vorige")), /*#__PURE__*/React.createElement(MkSpark, {
      data: k.spark,
      color: k.glow
    })));
  }));
};
var MkSpendChart = function MkSpendChart() {
  var spend = [180, 220, 240, 260, 200, 300, 380, 350, 420, 400, 480, 520, 460, 540, 580, 620, 590, 660, 700, 680, 720, 760, 740, 800, 820, 860, 900, 880, 920, 980];
  var revenue = spend.map(function (s) {
    return s * (32 + s * 7 % 8);
  });
  var w = 800,
    h = 240,
    pad = {
      l: 48,
      r: 18,
      t: 18,
      b: 30
    };
  var cw = w - pad.l - pad.r,
    ch = h - pad.t - pad.b;
  var maxSpend = Math.max.apply(Math, spend);
  var maxRev = Math.max.apply(Math, _toConsumableArray(revenue));
  var xs = function xs(i) {
    return pad.l + i / (spend.length - 1) * cw;
  };
  var ySpend = function ySpend(v) {
    return pad.t + ch - v / maxSpend * ch;
  };
  var yRev = function yRev(v) {
    return pad.t + ch - v / maxRev * ch;
  };
  var sp = spend.map(function (v, i) {
    return (i ? 'L' : 'M') + xs(i) + ' ' + ySpend(v);
  }).join(' ');
  var rp = revenue.map(function (v, i) {
    return (i ? 'L' : 'M') + xs(i) + ' ' + yRev(v);
  }).join(' ');
  var sa = sp + " L ".concat(pad.l + cw, " ").concat(pad.t + ch, " L ").concat(pad.l, " ").concat(pad.t + ch, " Z");
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 10,
      marginBottom: 6
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0,
      letterSpacing: '-0.01em'
    }
  }, "Ad spend \xD7 Omzet"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "DAGELIJKS"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginLeft: 'auto',
      display: 'flex',
      gap: 14,
      fontSize: 11.5
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: 6
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      width: 10,
      height: 2,
      background: '#bf63ff'
    }
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg2
    }
  }, "Ad spend")), /*#__PURE__*/React.createElement("span", {
    style: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: 6
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      width: 10,
      height: 2,
      background: T.accent,
      boxShadow: "0 0 6px ".concat(T.accent)
    }
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg2
    }
  }, "Omzet")))), /*#__PURE__*/React.createElement("svg", {
    width: "100%",
    viewBox: "0 0 ".concat(w, " ").concat(h),
    style: {
      display: 'block',
      marginTop: 4
    }
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
    id: "mk-rev-grad",
    x1: "0",
    x2: "0",
    y1: "0",
    y2: "1"
  }, /*#__PURE__*/React.createElement("stop", {
    offset: "0%",
    stopColor: T.accent,
    stopOpacity: "0.28"
  }), /*#__PURE__*/React.createElement("stop", {
    offset: "100%",
    stopColor: T.accent,
    stopOpacity: "0"
  })), /*#__PURE__*/React.createElement("linearGradient", {
    id: "mk-spend-grad",
    x1: "0",
    x2: "0",
    y1: "0",
    y2: "1"
  }, /*#__PURE__*/React.createElement("stop", {
    offset: "0%",
    stopColor: "#bf63ff",
    stopOpacity: "0.28"
  }), /*#__PURE__*/React.createElement("stop", {
    offset: "100%",
    stopColor: "#bf63ff",
    stopOpacity: "0"
  }))), [0, 0.25, 0.5, 0.75, 1].map(function (p, i) {
    return /*#__PURE__*/React.createElement("g", {
      key: i
    }, /*#__PURE__*/React.createElement("line", {
      x1: pad.l,
      x2: pad.l + cw,
      y1: pad.t + p * ch,
      y2: pad.t + p * ch,
      stroke: "rgba(246,247,235,0.05)",
      strokeDasharray: p === 0 || p === 1 ? '0' : '2 4'
    }), /*#__PURE__*/React.createElement("text", {
      x: pad.l - 6,
      y: pad.t + p * ch + 4,
      fontSize: "10",
      fill: T.fg3,
      textAnchor: "end",
      fontFamily: T.fontBody
    }, Math.round((1 - p) * maxSpend / 100) * 100));
  }), /*#__PURE__*/React.createElement("path", {
    d: sa,
    fill: "url(#mk-spend-grad)"
  }), /*#__PURE__*/React.createElement("path", {
    d: sp,
    fill: "none",
    stroke: "#bf63ff",
    strokeWidth: "1.75",
    strokeLinejoin: "round",
    strokeLinecap: "round"
  }), /*#__PURE__*/React.createElement("path", {
    d: rp,
    fill: "none",
    stroke: T.accent,
    strokeWidth: "2",
    strokeLinejoin: "round",
    strokeLinecap: "round",
    style: {
      filter: "drop-shadow(0 0 4px ".concat(T.accent, ")")
    }
  }), /*#__PURE__*/React.createElement("circle", {
    cx: xs(spend.length - 1),
    cy: ySpend(spend[spend.length - 1]),
    r: "3.5",
    fill: "#bf63ff"
  }), /*#__PURE__*/React.createElement("circle", {
    cx: xs(revenue.length - 1),
    cy: yRev(revenue[revenue.length - 1]),
    r: "4",
    fill: T.accent,
    style: {
      filter: "drop-shadow(0 0 6px ".concat(T.accent, ")")
    }
  }), [0, 7, 14, 21, 29].map(function (i) {
    return /*#__PURE__*/React.createElement("text", {
      key: i,
      x: xs(i),
      y: h - 10,
      fontSize: "10",
      fill: T.fg3,
      textAnchor: "middle",
      fontFamily: T.fontBody
    }, i + 1, " mei");
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 6,
      padding: '9px 13px',
      background: 'rgba(0,217,0,0.06)',
      border: "1px solid rgba(0,217,0,0.18)",
      clipPath: cutPath(6),
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      fontSize: 12
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "sparkles",
    size: 13,
    color: T.accent
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg1
    }
  }, /*#__PURE__*/React.createElement("strong", {
    style: {
      color: T.accent
    }
  }, "Trend stijgt:"), " elke euro spend brengt nu \u20AC 38 binnen. Premie-campagne lift mee.")));
};
var MkFunnel = function MkFunnel() {
  var steps = [{
    label: 'Impressies',
    value: 384200,
    bar: 'rgba(0,217,0,0.18)'
  }, {
    label: 'Klikken',
    value: 18640,
    bar: 'rgba(0,217,0,0.28)'
  }, {
    label: 'Leads',
    value: 424,
    bar: 'rgba(0,217,0,0.40)'
  }, {
    label: 'Afspraken',
    value: 115,
    bar: 'rgba(0,217,0,0.55)'
  }, {
    label: 'Verkopen',
    value: 30,
    bar: T.accent
  }];
  var top = steps[0].value;
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      marginBottom: 13
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Funnel"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "IMPRESSIE \u2192 VERKOOP")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      flexDirection: 'column',
      gap: 6
    }
  }, steps.map(function (s, i) {
    var w = s.value / top * 100;
    var conv = i > 0 ? (s.value / steps[i - 1].value * 100).toFixed(1) : null;
    return /*#__PURE__*/React.createElement("div", {
      key: s.label
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'space-between',
        marginBottom: 4
      }
    }, /*#__PURE__*/React.createElement("span", {
      style: {
        fontSize: 11.5,
        color: T.fg2,
        fontWeight: 600
      }
    }, s.label), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        gap: 10
      }
    }, conv && /*#__PURE__*/React.createElement("span", {
      style: {
        fontSize: 10,
        color: T.fg3,
        fontVariantNumeric: 'tabular-nums'
      }
    }, "\u21B3 ", conv, "%"), /*#__PURE__*/React.createElement("span", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 15,
        fontVariantNumeric: 'tabular-nums',
        color: i === steps.length - 1 ? T.accent : T.fg1
      }
    }, s.value.toLocaleString('nl-BE')))), /*#__PURE__*/React.createElement("div", {
      style: {
        height: 20,
        width: "".concat(w, "%"),
        background: s.bar,
        border: i === steps.length - 1 ? "1px solid rgba(0,217,0,0.6)" : "1px solid ".concat(T.stroke1),
        boxShadow: i === steps.length - 1 ? "0 0 12px rgba(0,217,0,0.4)" : 'none',
        clipPath: cutPath(5)
      }
    }));
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 13,
      padding: '9px 13px',
      background: 'rgba(246,247,235,0.04)',
      clipPath: cutPath(5),
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'space-between',
      fontSize: 12
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg2
    }
  }, "Algemene conversie"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 17,
      color: T.accent,
      fontVariantNumeric: 'tabular-nums'
    }
  }, "0,78%")));
};
var MkPlatformBreakdown = function MkPlatformBreakdown() {
  var data = [{
    id: 'facebook',
    spend: 5240,
    leads: 184,
    sales: 14,
    roas: 42.1,
    share: 42
  }, {
    id: 'instagram',
    spend: 4180,
    leads: 156,
    sales: 10,
    roas: 34.8,
    share: 33
  }, {
    id: 'tiktok',
    spend: 2680,
    leads: 78,
    sales: 5,
    roas: 28.4,
    share: 22
  }, {
    id: 'linkedin',
    spend: 360,
    leads: 24,
    sales: 1,
    roas: 18.0,
    share: 3
  }];
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      marginBottom: 14
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Per kanaal"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "SPEND-SHARE \xD7 ROAS")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(auto-fit,minmax(200px,1fr))',
      gap: 12
    }
  }, data.map(function (d) {
    var p = MK_PLATFORMS[d.id];
    return /*#__PURE__*/React.createElement("div", {
      key: d.id,
      style: {
        padding: '14px 16px',
        background: "linear-gradient(160deg, ".concat(p.color, "14 0%, rgba(0,0,0,0) 60%), #001F1C"),
        border: "1px solid ".concat(p.color, "33"),
        clipPath: cutPath(11),
        position: 'relative',
        overflow: 'hidden'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        position: 'absolute',
        right: -8,
        top: -8,
        opacity: 0.08,
        pointerEvents: 'none'
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: d.id,
      size: 78,
      color: p.color,
      sw: 1
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        gap: 8,
        position: 'relative'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        width: 24,
        height: 24,
        borderRadius: '50%',
        background: d.id === 'instagram' ? 'linear-gradient(135deg, #F58529, #DD2A7B, #515BD4)' : p.color,
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        flexShrink: 0
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: d.id,
      size: 13,
      color: "#fff"
    })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 13,
        fontWeight: 700
      }
    }, p.label), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10,
        color: T.fg3
      }
    }, d.share, "% van spend"))), /*#__PURE__*/React.createElement("div", {
      style: {
        marginTop: 13,
        display: 'grid',
        gridTemplateColumns: '1fr 1fr',
        gap: 9,
        position: 'relative'
      }
    }, [['SPEND', "\u20AC ".concat(d.spend.toLocaleString('nl-BE')), T.fg1], ['ROAS', "\xD7".concat(d.roas), d.roas > 30 ? T.accent : T.fg1], ['LEADS', d.leads, T.fg1], ['VERKOPEN', d.sales, T.fg1]].map(function (_ref2) {
      var _ref3 = _slicedToArray(_ref2, 3),
        l = _ref3[0],
        v = _ref3[1],
        c = _ref3[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: c,
          fontVariantNumeric: 'tabular-nums'
        }
      }, v));
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        marginTop: 11,
        height: 4,
        background: 'rgba(246,247,235,0.06)',
        position: 'relative'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        height: '100%',
        width: "".concat(d.share, "%"),
        background: p.color,
        boxShadow: "0 0 8px ".concat(p.color)
      }
    })));
  })));
};
var MkCampaignStatus = function MkCampaignStatus(_ref4) {
  var status = _ref4.status;
  var map = {
    live: {
      label: 'Live',
      c: T.accent,
      bg: 'rgba(0,217,0,0.10)',
      b: 'rgba(0,217,0,0.30)'
    },
    paused: {
      label: 'Pauze',
      c: '#ffb020',
      bg: 'rgba(255,176,32,0.08)',
      b: 'rgba(255,176,32,0.30)'
    },
    draft: {
      label: 'Concept',
      c: T.fg3,
      bg: 'rgba(246,247,235,0.04)',
      b: 'rgba(246,247,235,0.12)'
    }
  };
  var m = map[status];
  return /*#__PURE__*/React.createElement("span", {
    style: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: 5,
      padding: '3px 8px',
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.12em',
      textTransform: 'uppercase',
      color: m.c,
      background: m.bg,
      border: "1px solid ".concat(m.b),
      clipPath: cutPath(4)
    }
  }, status === 'live' && /*#__PURE__*/React.createElement("span", {
    style: {
      width: 5,
      height: 5,
      borderRadius: '50%',
      background: m.c,
      boxShadow: "0 0 5px ".concat(m.c)
    }
  }), m.label);
};
var MkCampaignTable = function MkCampaignTable() {
  var cols = '1.8fr 1fr 100px 90px 80px 100px 80px 80px 90px 28px';
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1)
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      padding: '15px 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
    }
  }, "Campagnes"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, MK_CAMPAIGNS.length, " ACTIEF \xB7 30 DAGEN"), /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "sm",
    icon: "filter",
    style: {
      marginLeft: 'auto'
    }
  }, "Filter"), /*#__PURE__*/React.createElement(Button, {
    variant: "primary",
    size: "sm",
    icon: "plus"
  }, "Nieuwe campagne")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: cols,
      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, "Campagne"), /*#__PURE__*/React.createElement("span", null, "Kanaal"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "Spend"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "Leads"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "CPL"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "Afspraken"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "Verkopen"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "ROAS"), /*#__PURE__*/React.createElement("span", null, "Status"), /*#__PURE__*/React.createElement("span", null)), MK_CAMPAIGNS.map(function (c, i) {
    return /*#__PURE__*/React.createElement("div", {
      key: c.id,
      style: {
        display: 'grid',
        gridTemplateColumns: cols,
        alignItems: 'center',
        padding: '12px 18px',
        borderBottom: i < MK_CAMPAIGNS.length - 1 ? "1px solid rgba(246,247,235,0.03)" : 0,
        cursor: 'pointer',
        transition: 'background 220ms',
        fontVariantNumeric: 'tabular-nums',
        fontSize: 13
      },
      onMouseEnter: function onMouseEnter(e) {
        return e.currentTarget.style.background = 'rgba(0,217,0,0.03)';
      },
      onMouseLeave: function onMouseLeave(e) {
        return e.currentTarget.style.background = 'transparent';
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'flex',
        alignItems: 'center',
        gap: 10
      }
    }, /*#__PURE__*/React.createElement("span", {
      style: {
        width: 6,
        height: 24,
        background: c.color,
        boxShadow: c.status === 'live' ? "0 0 5px ".concat(c.color) : 'none'
      }
    }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 600
      }
    }, c.name), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 11,
        color: T.fg3,
        marginTop: 1
      }
    }, "#", c.id))), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 12,
        color: T.fg2
      }
    }, c.platform), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontFamily: T.fontDisplay,
        fontWeight: 500,
        fontSize: 14
      }
    }, "\u20AC ", c.spend.toLocaleString('nl-BE')), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, c.leads), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        color: c.cpl > 35 ? '#ffb020' : c.cpl > 0 ? T.fg1 : T.fg4
      }
    }, c.cpl > 0 ? "\u20AC ".concat(c.cpl.toFixed(2)) : '—'), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, c.apts), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontWeight: 600
      }
    }, c.sales), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 15,
        color: c.roas > 40 ? T.accent : c.roas > 20 ? T.fg1 : T.fg3
      }
    }, c.roas > 0 ? "\xD7".concat(c.roas) : '—'), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MkCampaignStatus, {
      status: c.status
    })), /*#__PURE__*/React.createElement(Icon, {
      name: "moredots",
      size: 13,
      color: T.fg3
    }));
  }), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: cols,
      alignItems: 'center',
      padding: '13px 18px',
      background: 'rgba(0,217,0,0.04)',
      borderTop: "1px solid rgba(0,217,0,0.18)",
      fontVariantNumeric: 'tabular-nums',
      fontSize: 13
    }
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 11,
      fontWeight: 700,
      letterSpacing: '0.14em',
      textTransform: 'uppercase',
      color: T.fg2
    }
  }, "TOTAAL"), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right',
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 14
    }
  }, "\u20AC 12.460"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right',
      fontWeight: 600
    }
  }, "424"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right'
    }
  }, "\u20AC 29,38"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right',
      fontWeight: 600
    }
  }, "115"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right',
      fontWeight: 600
    }
  }, "30"), /*#__PURE__*/React.createElement("span", {
    style: {
      textAlign: 'right',
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      color: T.accent
    }
  }, "\xD738,2"), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)));
};
var MkTopPosts = function MkTopPosts() {
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      marginBottom: 13
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Top posts"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "30 DAGEN \xB7 OP BEREIK")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      flexDirection: 'column',
      gap: 8
    }
  }, MK_TOP_POSTS.map(function (p, i) {
    var pf = MK_PLATFORMS[p.platform];
    return /*#__PURE__*/React.createElement("div", {
      key: p.id,
      style: {
        display: 'grid',
        gridTemplateColumns: '28px 40px minmax(0,1fr) 60px 60px 50px',
        gap: 8,
        alignItems: 'center',
        padding: '9px 11px',
        background: i === 0 ? 'rgba(0,217,0,0.06)' : 'rgba(246,247,235,0.02)',
        border: "1px solid ".concat(i === 0 ? 'rgba(0,217,0,0.22)' : T.stroke1),
        clipPath: cutPath(6)
      }
    }, /*#__PURE__*/React.createElement("span", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 700,
        fontSize: 16,
        color: i === 0 ? T.accent : T.fg3,
        fontVariantNumeric: 'tabular-nums'
      }
    }, String(i + 1).padStart(2, '0')), /*#__PURE__*/React.createElement("div", {
      style: {
        width: 40,
        height: 40,
        background: "linear-gradient(135deg, ".concat(pf.color, "33, ").concat(pf.color, "11), #001F1C"),
        border: "1px solid ".concat(pf.color, "44"),
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        clipPath: cutPath(5)
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: p.platform,
      size: 16,
      color: pf.color
    })), /*#__PURE__*/React.createElement("div", {
      style: {
        minWidth: 0
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 600,
        fontSize: 12.5,
        overflow: 'hidden',
        textOverflow: 'ellipsis',
        whiteSpace: 'nowrap'
      }
    }, p.label), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10.5,
        color: T.fg3,
        marginTop: 2
      }
    }, pf.label)), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 9,
        color: T.fg3,
        letterSpacing: '0.14em',
        fontWeight: 700
      }
    }, "BEREIK"), /*#__PURE__*/React.createElement("div", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 13,
        fontVariantNumeric: 'tabular-nums'
      }
    }, p.reach.toLocaleString('nl-BE'))), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 9,
        color: T.fg3,
        letterSpacing: '0.14em',
        fontWeight: 700
      }
    }, "ENG."), /*#__PURE__*/React.createElement("div", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 13,
        fontVariantNumeric: 'tabular-nums',
        color: T.accent
      }
    }, p.eng, "%")), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right'
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 9,
        color: T.fg3,
        letterSpacing: '0.14em',
        fontWeight: 700
      }
    }, "LEADS"), /*#__PURE__*/React.createElement("div", {
      style: {
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 13,
        fontVariantNumeric: 'tabular-nums'
      }
    }, p.leads)));
  })));
};
var MkAttribution = function MkAttribution() {
  var links = [{
    post: 'Premie verlengd tot juni',
    campaign: 'Premie 2026',
    deals: 6,
    value: 96500,
    platform: 'facebook'
  }, {
    post: 'Time-lapse install Gent',
    campaign: 'Lente Solar 2026',
    deals: 4,
    value: 64800,
    platform: 'instagram'
  }, {
    post: 'Mei resultaten — bedankt!',
    campaign: 'Maandelijkse',
    deals: 3,
    value: 48200,
    platform: 'instagram'
  }, {
    post: 'Heat pump in 60 sec',
    campaign: 'Heat pump push',
    deals: 2,
    value: 34100,
    platform: 'tiktok'
  }, {
    post: 'Klantverhaal · De Smet',
    campaign: 'Klantverhalen',
    deals: 2,
    value: 31400,
    platform: 'facebook'
  }];
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      marginBottom: 13
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "target",
    size: 13,
    color: T.accent
  }), /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Attributie \xB7 Post \u2192 Deal"), /*#__PURE__*/React.createElement("span", {
    style: {
      marginLeft: 'auto',
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "GEKOPPELD AAN ERP")), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      flexDirection: 'column',
      gap: 7
    }
  }, links.map(function (l, i) {
    var pf = MK_PLATFORMS[l.platform];
    return /*#__PURE__*/React.createElement("div", {
      key: i,
      style: {
        display: 'grid',
        gridTemplateColumns: 'auto minmax(0,1fr) 80px 100px',
        gap: 12,
        alignItems: 'center',
        padding: '9px 13px',
        background: 'rgba(246,247,235,0.02)',
        border: "1px solid rgba(246,247,235,0.05)",
        clipPath: cutPath(6)
      }
    }, /*#__PURE__*/React.createElement(Icon, {
      name: l.platform,
      size: 14,
      color: pf.color
    }), /*#__PURE__*/React.createElement("div", {
      style: {
        minWidth: 0
      }
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontWeight: 600,
        fontSize: 12.5,
        overflow: 'hidden',
        textOverflow: 'ellipsis',
        whiteSpace: 'nowrap'
      }
    }, l.post), /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10.5,
        color: T.fg3,
        marginTop: 2
      }
    }, l.campaign)), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontSize: 12,
        color: T.fg2
      }
    }, /*#__PURE__*/React.createElement("strong", {
      style: {
        fontFamily: T.fontDisplay,
        fontSize: 15,
        color: T.fg1
      }
    }, l.deals), " deals"), /*#__PURE__*/React.createElement("div", {
      style: {
        textAlign: 'right',
        fontFamily: T.fontDisplay,
        fontWeight: 600,
        fontSize: 15,
        fontVariantNumeric: 'tabular-nums',
        color: T.accent
      }
    }, "\u20AC ", (l.value / 1000).toFixed(1), "k"));
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 12,
      padding: '9px 13px',
      background: 'rgba(191,99,255,0.06)',
      border: "1px solid rgba(191,99,255,0.20)",
      clipPath: cutPath(5),
      display: 'flex',
      alignItems: 'center',
      gap: 8,
      fontSize: 11.5
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "link",
    size: 12,
    color: "#bf63ff"
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg2
    }
  }, "Leads gekoppeld via UTM-tag ", /*#__PURE__*/React.createElement("code", {
    style: {
      fontFamily: 'ui-monospace,monospace',
      fontSize: 11,
      color: '#bf63ff'
    }
  }, "?src=ghs-marketing"), " & ERP-leadformulier")));
};
var MkHeatmap = function MkHeatmap() {
  var data = Array.from({
    length: 7
  }, function (_, day) {
    return Array.from({
      length: 24
    }, function (_, h) {
      var weekday = day < 5;
      var peak = weekday ? 19 : 13;
      var dist = Math.abs(h - peak);
      var noise = (day * 13 + h * 7) % 11 / 100;
      var v = Math.max(0, 1 - dist / 6) * (weekday ? 1 : 0.85) + noise;
      return Math.min(1, v);
    });
  });
  var days = ['MA', 'DI', 'WO', 'DO', 'VR', 'ZA', 'ZO'];
  return /*#__PURE__*/React.createElement("div", {
    style: {
      background: T.bg1,
      clipPath: cutPath(16),
      border: "1px solid ".concat(T.stroke1),
      padding: '18px 22px'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      marginBottom: 13
    }
  }, /*#__PURE__*/React.createElement("h3", {
    style: {
      fontFamily: T.fontDisplay,
      fontWeight: 600,
      fontSize: 15,
      margin: 0
    }
  }, "Beste tijden om te posten"), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 10,
      fontWeight: 700,
      letterSpacing: '0.14em',
      color: T.fg3
    }
  }, "HEATMAP \xB7 30 DAGEN ENGAGEMENT"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginLeft: 'auto',
      display: 'flex',
      alignItems: 'center',
      gap: 8,
      fontSize: 10.5,
      color: T.fg3
    }
  }, /*#__PURE__*/React.createElement("span", null, "laag"), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      height: 10
    }
  }, [0.15, 0.3, 0.5, 0.7, 0.9].map(function (v) {
    return /*#__PURE__*/React.createElement("div", {
      key: v,
      style: {
        width: 14,
        background: "rgba(0,217,0,".concat(v, ")")
      }
    });
  })), /*#__PURE__*/React.createElement("span", null, "hoog"))), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: '30px 1fr',
      gap: 5,
      alignItems: 'center'
    }
  }, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: 'repeat(24, 1fr)',
      gap: 2
    }
  }, Array.from({
    length: 24
  }, function (_, h) {
    return /*#__PURE__*/React.createElement("div", {
      key: h,
      style: {
        fontSize: 9,
        fontWeight: 600,
        color: T.fg3,
        textAlign: 'center',
        fontVariantNumeric: 'tabular-nums',
        visibility: h % 3 === 0 ? 'visible' : 'hidden'
      }
    }, String(h).padStart(2, '0'));
  })), data.map(function (row, day) {
    return /*#__PURE__*/React.createElement(React.Fragment, {
      key: day
    }, /*#__PURE__*/React.createElement("div", {
      style: {
        fontSize: 10,
        fontWeight: 700,
        color: T.fg3,
        letterSpacing: '0.12em'
      }
    }, days[day]), /*#__PURE__*/React.createElement("div", {
      style: {
        display: 'grid',
        gridTemplateColumns: 'repeat(24, 1fr)',
        gap: 2
      }
    }, row.map(function (v, h) {
      var isPeak = v > 0.75;
      return /*#__PURE__*/React.createElement("div", {
        key: h,
        title: "".concat(days[day], " ").concat(String(h).padStart(2, '0'), ":00 \u2014 ").concat(Math.round(v * 100), "%"),
        style: {
          height: 20,
          background: "rgba(0,217,0,".concat((v * 0.9).toFixed(2), ")"),
          border: isPeak ? "1px solid rgba(0,217,0,0.6)" : "1px solid rgba(246,247,235,0.04)",
          boxShadow: isPeak ? "0 0 5px rgba(0,217,0,0.4)" : 'none'
        }
      });
    })));
  })), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 12,
      padding: '9px 13px',
      background: 'rgba(0,217,0,0.06)',
      border: "1px solid rgba(0,217,0,0.20)",
      clipPath: cutPath(5),
      display: 'flex',
      alignItems: 'center',
      gap: 9,
      fontSize: 12
    }
  }, /*#__PURE__*/React.createElement(Icon, {
    name: "bolt",
    size: 12,
    color: T.accent
  }), /*#__PURE__*/React.createElement("span", {
    style: {
      color: T.fg1
    }
  }, /*#__PURE__*/React.createElement("strong", {
    style: {
      color: T.accent
    }
  }, "Sweet spot:"), " donderdag 18-21u brengt 2,4\xD7 meer engagement."), /*#__PURE__*/React.createElement(Button, {
    variant: "accent",
    size: "sm",
    icon: "arrowright",
    style: {
      marginLeft: 'auto'
    }
  }, "Auto-plan op piekuren")));
};
var MkStatistieken = function MkStatistieken() {
  var _useState = useState('30d'),
    _useState2 = _slicedToArray(_useState, 2),
    range = _useState2[0],
    setRange = _useState2[1];
  return /*#__PURE__*/React.createElement("div", {
    className: "ghs-stapel"
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      alignItems: 'center',
      gap: 11,
      flexWrap: 'wrap'
    }
  }, /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'flex',
      gap: 2,
      padding: 3,
      background: 'rgba(246,247,235,0.04)',
      clipPath: cutPath(6)
    }
  }, [['7d', '7 dagen'], ['30d', '30 dagen'], ['90d', '90 dagen'], ['ytd', 'YTD'], ['all', 'Alles']].map(function (_ref5) {
    var _ref6 = _slicedToArray(_ref5, 2),
      id = _ref6[0],
      l = _ref6[1];
    return /*#__PURE__*/React.createElement(MkChip, {
      key: id,
      active: range === id,
      onClick: function onClick() {
        return setRange(id);
      }
    }, l);
  })), /*#__PURE__*/React.createElement("span", {
    style: {
      fontSize: 11,
      color: T.fg3,
      letterSpacing: '0.12em',
      textTransform: 'uppercase'
    }
  }, "1 \u2192 30 Mei 2026"), /*#__PURE__*/React.createElement("div", {
    style: {
      marginLeft: 'auto',
      display: 'flex',
      gap: 7
    }
  }, /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "sm",
    icon: "globe"
  }, "Alle kanalen"), /*#__PURE__*/React.createElement(Button, {
    variant: "secondary",
    size: "sm",
    icon: "download"
  }, "Export"), /*#__PURE__*/React.createElement(Button, {
    variant: "accent",
    size: "sm",
    icon: "link"
  }, "Live \xB7 Metricool sync"))), /*#__PURE__*/React.createElement(MkKpiHero, null), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: '1.5fr 1fr',
      gap: 14,
      marginTop: 14
    }
  }, /*#__PURE__*/React.createElement(MkSpendChart, null), /*#__PURE__*/React.createElement(MkFunnel, null)), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 14
    }
  }, /*#__PURE__*/React.createElement(MkPlatformBreakdown, null)), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 14
    }
  }, /*#__PURE__*/React.createElement(MkCampaignTable, null)), /*#__PURE__*/React.createElement("div", {
    style: {
      display: 'grid',
      gridTemplateColumns: '1fr 1.3fr',
      gap: 14,
      marginTop: 14
    }
  }, /*#__PURE__*/React.createElement(MkTopPosts, null), /*#__PURE__*/React.createElement(MkAttribution, null)), /*#__PURE__*/React.createElement("div", {
    style: {
      marginTop: 14
    }
  }, /*#__PURE__*/React.createElement(MkHeatmap, null)));
};
window.MkStatistieken = MkStatistieken;
window.MkCampaignStatus = MkCampaignStatus;