@universe-platform/ui 0.1.0-beta.61 → 0.1.0-beta.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6088,51 +6088,61 @@ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
6088
6088
  function RelationButtonsView({ groups, onSelect, disabled, stacked = false }) {
6089
6089
  const visible = groups.filter((g) => g.options.length > 0);
6090
6090
  if (visible.length === 0) return null;
6091
- return /* @__PURE__ */ jsx14("div", { className: `grid grid-cols-1 gap-2.5 ${stacked ? "" : "md:grid-cols-2"}`, children: visible.map((group) => /* @__PURE__ */ jsxs12(
6092
- "div",
6093
- {
6094
- className: "bg-white border border-slate-200 rounded-xl p-3 flex flex-col gap-2.5 shadow-2xs",
6095
- children: [
6096
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between gap-2 pb-2 border-b border-slate-100", children: [
6097
- /* @__PURE__ */ jsx14("span", { className: "text-xs font-bold text-slate-800 truncate", title: group.title, children: group.title }),
6091
+ return /* @__PURE__ */ jsx14("div", { className: `grid grid-cols-1 gap-2.5 ${stacked ? "" : "md:grid-cols-2"}`, children: visible.map((group) => {
6092
+ const titleIsDuplicate = group.options.some(
6093
+ (opt) => opt.label.trim() === group.title.trim()
6094
+ );
6095
+ return /* @__PURE__ */ jsx14(
6096
+ "div",
6097
+ {
6098
+ className: "bg-white border border-slate-200 rounded-xl px-3 py-2.5 shadow-2xs",
6099
+ children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-wrap items-end gap-x-2 gap-y-2.5", children: [
6100
+ !titleIsDuplicate && /* @__PURE__ */ jsx14(
6101
+ "span",
6102
+ {
6103
+ className: "self-end h-8 inline-flex items-center text-xs font-bold text-slate-800 max-w-[10rem] truncate",
6104
+ title: group.title,
6105
+ children: group.title
6106
+ }
6107
+ ),
6108
+ group.options.map((opt) => {
6109
+ const active = group.activeId === opt.id;
6110
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center gap-0.5", children: [
6111
+ /* @__PURE__ */ jsx14(
6112
+ "span",
6113
+ {
6114
+ className: `text-[11px] font-bold leading-none ${active ? "text-indigo-700" : "text-slate-500"}`,
6115
+ children: opt.count
6116
+ }
6117
+ ),
6118
+ /* @__PURE__ */ jsx14(
6119
+ "button",
6120
+ {
6121
+ type: "button",
6122
+ disabled,
6123
+ onClick: () => onSelect(group.key, active ? void 0 : opt.id),
6124
+ title: active ? "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D9\u05D8\u05D5\u05DC \u05D4\u05E1\u05D9\u05E0\u05D5\u05DF" : `\u05E1\u05E0\u05DF \u05DC\u05E4\u05D9: ${opt.label}`,
6125
+ "aria-pressed": active,
6126
+ className: `px-3 h-8 rounded-md border text-xs font-semibold whitespace-nowrap shadow-2xs transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none ${active ? "bg-indigo-600 border-indigo-600 text-white hover:bg-indigo-700" : "bg-white border-slate-300 text-slate-700 hover:bg-slate-50 hover:border-slate-400"}`,
6127
+ children: opt.label
6128
+ }
6129
+ )
6130
+ ] }, opt.id);
6131
+ }),
6098
6132
  group.activeId ? /* @__PURE__ */ jsx14(
6099
6133
  "button",
6100
6134
  {
6101
6135
  type: "button",
6102
6136
  onClick: () => onSelect(group.key, void 0),
6103
- className: "text-[11px] font-semibold text-rose-600 hover:text-rose-700 hover:underline cursor-pointer shrink-0",
6137
+ className: "self-end h-8 inline-flex items-center px-1 text-[11px] font-semibold text-rose-600 hover:text-rose-700 hover:underline cursor-pointer shrink-0 whitespace-nowrap",
6104
6138
  children: "\u05E0\u05E7\u05D4 \u05E1\u05D9\u05E0\u05D5\u05DF"
6105
6139
  }
6106
6140
  ) : null
6107
- ] }),
6108
- /* @__PURE__ */ jsx14("div", { className: "flex flex-wrap items-end gap-x-2 gap-y-2.5", children: group.options.map((opt) => {
6109
- const active = group.activeId === opt.id;
6110
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center gap-0.5", children: [
6111
- /* @__PURE__ */ jsx14(
6112
- "span",
6113
- {
6114
- className: `text-[11px] font-bold leading-none ${active ? "text-indigo-700" : "text-slate-500"}`,
6115
- children: opt.count
6116
- }
6117
- ),
6118
- /* @__PURE__ */ jsx14(
6119
- "button",
6120
- {
6121
- type: "button",
6122
- disabled,
6123
- onClick: () => onSelect(group.key, active ? void 0 : opt.id),
6124
- title: active ? "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D9\u05D8\u05D5\u05DC \u05D4\u05E1\u05D9\u05E0\u05D5\u05DF" : `\u05E1\u05E0\u05DF \u05DC\u05E4\u05D9: ${opt.label}`,
6125
- "aria-pressed": active,
6126
- className: `px-3 h-8 rounded-md border text-xs font-semibold whitespace-nowrap shadow-2xs transition-colors cursor-pointer disabled:opacity-50 disabled:pointer-events-none ${active ? "bg-indigo-600 border-indigo-600 text-white hover:bg-indigo-700" : "bg-white border-slate-300 text-slate-700 hover:bg-slate-50 hover:border-slate-400"}`,
6127
- children: opt.label
6128
- }
6129
- )
6130
- ] }, opt.id);
6131
- }) })
6132
- ]
6133
- },
6134
- group.key
6135
- )) });
6141
+ ] })
6142
+ },
6143
+ group.key
6144
+ );
6145
+ }) });
6136
6146
  }
6137
6147
 
6138
6148
  // src/components/TableBlock/RelationButtonsBar.tsx
@@ -10859,8 +10869,57 @@ async function uploadFileToDrive(file, opts) {
10859
10869
  };
10860
10870
  }
10861
10871
 
10862
- // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
10872
+ // src/components/PaymentReportsBlock/PortalLinksBar.tsx
10863
10873
  import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
10874
+ function platformOrigin() {
10875
+ const w = typeof window !== "undefined" ? window : {};
10876
+ const base = w.NEXT_PUBLIC_UNIVERSE_SERVER_URL || w.NEXT_PUBLIC_UNIVERSE_API_URL || process.env.NEXT_PUBLIC_UNIVERSE_SERVER_URL || process.env.NEXT_PUBLIC_UNIVERSE_API_URL || (typeof window !== "undefined" ? window.location.origin : "");
10877
+ return String(base).replace(/\/$/, "");
10878
+ }
10879
+ function PortalLinksBar({ config, componentId }) {
10880
+ const { addToast } = useToast();
10881
+ if (!config.portalEnabled || !config.reportersTableId) return null;
10882
+ const origin = platformOrigin();
10883
+ const links = [
10884
+ config.registrationFormId && {
10885
+ label: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D4\u05E8\u05E9\u05DE\u05D4 (\u05D8\u05D5\u05E4\u05E1 1)",
10886
+ url: `${origin}/embed/form/${config.reportersTableId}?form=${encodeURIComponent(config.registrationFormId)}`
10887
+ },
10888
+ componentId && {
10889
+ label: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D3\u05D9\u05D5\u05D5\u05D7 (\u05D8\u05D5\u05E4\u05E1 2, \u05D1\u05DB\u05E0\u05D9\u05E1\u05D4 \u05E2\u05DD \u05E7\u05D5\u05D3 \u05D1\u05D0\u05D9\u05DE\u05D9\u05D9\u05DC)",
10890
+ url: `${origin}/embed/reporter-report/${config.reportsTableId}?c=${encodeURIComponent(componentId)}`
10891
+ }
10892
+ ].filter(Boolean);
10893
+ if (!links.length) return null;
10894
+ const copy = async (url, label) => {
10895
+ try {
10896
+ await navigator.clipboard.writeText(url);
10897
+ addToast({ type: "success", message: `${label}: \u05D4\u05D5\u05E2\u05EA\u05E7` });
10898
+ } catch (e) {
10899
+ window.prompt("\u05D4\u05E2\u05EA\u05E7 \u05D9\u05D3\u05E0\u05D9\u05EA:", url);
10900
+ }
10901
+ };
10902
+ return /* @__PURE__ */ jsx29("div", { className: "flex flex-col gap-1.5 rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-xs", children: links.map((l) => /* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap items-center gap-2", children: [
10903
+ /* @__PURE__ */ jsxs23("span", { className: "font-semibold text-slate-600 whitespace-nowrap", children: [
10904
+ l.label,
10905
+ ":"
10906
+ ] }),
10907
+ /* @__PURE__ */ jsx29(
10908
+ "input",
10909
+ {
10910
+ readOnly: true,
10911
+ dir: "ltr",
10912
+ value: l.url,
10913
+ onFocus: (e) => e.currentTarget.select(),
10914
+ className: "flex-1 min-w-[200px] rounded-md border border-slate-200 bg-white px-2 py-1 text-[11px] text-slate-600"
10915
+ }
10916
+ ),
10917
+ /* @__PURE__ */ jsx29("button", { type: "button", onClick: () => copy(l.url, l.label), className: "font-semibold text-blue-600 hover:underline cursor-pointer whitespace-nowrap", children: "\u05D4\u05E2\u05EA\u05E7" })
10918
+ ] }, l.url)) });
10919
+ }
10920
+
10921
+ // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
10922
+ import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
10864
10923
  var EMPTY = { rows: [], columns: [], relationOptions: {} };
10865
10924
  var PaymentReportsBlock = (props) => {
10866
10925
  const { executeAction, orgId, role, readOnly, permissions, className } = props;
@@ -11028,16 +11087,17 @@ var PaymentReportsBlock = (props) => {
11028
11087
  }
11029
11088
  };
11030
11089
  if (!config || missing.length) {
11031
- return /* @__PURE__ */ jsx29("div", { dir: "rtl", className: "p-6 rounded-xl border border-dashed border-slate-300 text-slate-500 text-sm text-center", children: '\u05D4\u05E8\u05DB\u05D9\u05D1 "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD \u05DC\u05EA\u05E9\u05DC\u05D5\u05DD" \u05E2\u05D3\u05D9\u05D9\u05DF \u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8 \u05D1\u05DE\u05DC\u05D5\u05D0\u05D5. \u05D9\u05E9 \u05DC\u05D4\u05E9\u05DC\u05D9\u05DD \u05D0\u05EA \u05D4\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D1\u05E2\u05D5\u05E8\u05DA \u05D4\u05E2\u05DE\u05D5\u05D3.' });
11090
+ return /* @__PURE__ */ jsx30("div", { dir: "rtl", className: "p-6 rounded-xl border border-dashed border-slate-300 text-slate-500 text-sm text-center", children: '\u05D4\u05E8\u05DB\u05D9\u05D1 "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD \u05DC\u05EA\u05E9\u05DC\u05D5\u05DD" \u05E2\u05D3\u05D9\u05D9\u05DF \u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8 \u05D1\u05DE\u05DC\u05D5\u05D0\u05D5. \u05D9\u05E9 \u05DC\u05D4\u05E9\u05DC\u05D9\u05DD \u05D0\u05EA \u05D4\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D1\u05E2\u05D5\u05E8\u05DA \u05D4\u05E2\u05DE\u05D5\u05D3.' });
11032
11091
  }
11033
11092
  const tabs = [
11034
11093
  { key: "unpaid", label: "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD (\u05D8\u05E8\u05DD \u05E9\u05D5\u05DC\u05DE\u05D5)", count: unpaidCount },
11035
11094
  { key: "paid", label: "\u05E9\u05D5\u05DC\u05DD (\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05E7\u05D1\u05DC\u05D4)", count: model.payments.filter((p) => !p.receiptDate).length },
11036
11095
  { key: "receipts", label: '\u05E7\u05D1\u05DC\u05D5\u05EA \u05D5\u05D4\u05E0\u05D4"\u05D7', count: model.payments.filter((p) => !!p.receiptDate).length }
11037
11096
  ];
11038
- return /* @__PURE__ */ jsxs23("div", { dir: "rtl", className: `w-full flex flex-col gap-4 ${className || ""}`, children: [
11039
- config.title && /* @__PURE__ */ jsx29("h2", { className: "text-2xl font-bold text-slate-800", children: config.title }),
11040
- /* @__PURE__ */ jsx29("div", { className: "flex border-b border-slate-200 overflow-x-auto", children: tabs.map((t) => /* @__PURE__ */ jsxs23(
11097
+ return /* @__PURE__ */ jsxs24("div", { dir: "rtl", className: `w-full flex flex-col gap-4 ${className || ""}`, children: [
11098
+ config.title && /* @__PURE__ */ jsx30("h2", { className: "text-2xl font-bold text-slate-800", children: config.title }),
11099
+ canEdit && /* @__PURE__ */ jsx30(PortalLinksBar, { config, componentId: props.componentId }),
11100
+ /* @__PURE__ */ jsx30("div", { className: "flex border-b border-slate-200 overflow-x-auto", children: tabs.map((t) => /* @__PURE__ */ jsxs24(
11041
11101
  "button",
11042
11102
  {
11043
11103
  type: "button",
@@ -11046,7 +11106,7 @@ var PaymentReportsBlock = (props) => {
11046
11106
  children: [
11047
11107
  t.label,
11048
11108
  " ",
11049
- /* @__PURE__ */ jsxs23("span", { className: "text-xs opacity-70", children: [
11109
+ /* @__PURE__ */ jsxs24("span", { className: "text-xs opacity-70", children: [
11050
11110
  "(",
11051
11111
  t.count,
11052
11112
  ")"
@@ -11055,8 +11115,8 @@ var PaymentReportsBlock = (props) => {
11055
11115
  },
11056
11116
  t.key
11057
11117
  )) }),
11058
- /* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap items-center gap-3", children: [
11059
- /* @__PURE__ */ jsx29(
11118
+ /* @__PURE__ */ jsxs24("div", { className: "flex flex-wrap items-center gap-3", children: [
11119
+ /* @__PURE__ */ jsx30(
11060
11120
  "input",
11061
11121
  {
11062
11122
  type: "text",
@@ -11066,24 +11126,24 @@ var PaymentReportsBlock = (props) => {
11066
11126
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white w-64"
11067
11127
  }
11068
11128
  ),
11069
- config.reportDateColumn && /* @__PURE__ */ jsxs23(
11129
+ config.reportDateColumn && /* @__PURE__ */ jsxs24(
11070
11130
  "select",
11071
11131
  {
11072
11132
  value: month,
11073
11133
  onChange: (e) => setMonth(e.target.value),
11074
11134
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white",
11075
11135
  children: [
11076
- /* @__PURE__ */ jsx29("option", { value: "", children: "\u05DB\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD" }),
11077
- months.map((m) => /* @__PURE__ */ jsx29("option", { value: m, children: monthLabel(m) }, m))
11136
+ /* @__PURE__ */ jsx30("option", { value: "", children: "\u05DB\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD" }),
11137
+ months.map((m) => /* @__PURE__ */ jsx30("option", { value: m, children: monthLabel(m) }, m))
11078
11138
  ]
11079
11139
  }
11080
11140
  )
11081
11141
  ] }),
11082
- error && /* @__PURE__ */ jsxs23("div", { className: "rounded-lg bg-rose-50 border border-rose-200 text-rose-700 text-sm px-4 py-3 flex items-center justify-between", children: [
11083
- /* @__PURE__ */ jsx29("span", { children: error }),
11084
- /* @__PURE__ */ jsx29("button", { type: "button", onClick: () => load(), className: "underline cursor-pointer", children: "\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1" })
11142
+ error && /* @__PURE__ */ jsxs24("div", { className: "rounded-lg bg-rose-50 border border-rose-200 text-rose-700 text-sm px-4 py-3 flex items-center justify-between", children: [
11143
+ /* @__PURE__ */ jsx30("span", { children: error }),
11144
+ /* @__PURE__ */ jsx30("button", { type: "button", onClick: () => load(), className: "underline cursor-pointer", children: "\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1" })
11085
11145
  ] }),
11086
- loading ? /* @__PURE__ */ jsx29("div", { className: "py-16 text-center text-slate-400 text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD..." }) : tab === "unpaid" ? /* @__PURE__ */ jsx29(
11146
+ loading ? /* @__PURE__ */ jsx30("div", { className: "py-16 text-center text-slate-400 text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD..." }) : tab === "unpaid" ? /* @__PURE__ */ jsx30(
11087
11147
  UnpaidReportsTab,
11088
11148
  {
11089
11149
  config,
@@ -11098,8 +11158,8 @@ var PaymentReportsBlock = (props) => {
11098
11158
  paymentLabels,
11099
11159
  handlers
11100
11160
  }
11101
- ) : tab === "paid" ? /* @__PURE__ */ jsx29(PaidPaymentsTab, { config, symbol, canEdit, payments: pendingPayments, search, handlers }) : /* @__PURE__ */ jsx29(ReceiptsTab, { config, symbol, canEdit, payments: receivedPayments, search, handlers }),
11102
- details && /* @__PURE__ */ jsx29(
11161
+ ) : tab === "paid" ? /* @__PURE__ */ jsx30(PaidPaymentsTab, { config, symbol, canEdit, payments: pendingPayments, search, handlers }) : /* @__PURE__ */ jsx30(ReceiptsTab, { config, symbol, canEdit, payments: receivedPayments, search, handlers }),
11162
+ details && /* @__PURE__ */ jsx30(
11103
11163
  PaymentDetailsModal,
11104
11164
  {
11105
11165
  payment: model.payments.find((p) => p.id === details.id) || details,
@@ -11110,7 +11170,7 @@ var PaymentReportsBlock = (props) => {
11110
11170
  onClose: () => setDetails(null)
11111
11171
  }
11112
11172
  ),
11113
- confirm && /* @__PURE__ */ jsx29(
11173
+ confirm && /* @__PURE__ */ jsx30(
11114
11174
  ConfirmModal,
11115
11175
  {
11116
11176
  danger: true,
@@ -11119,11 +11179,11 @@ var PaymentReportsBlock = (props) => {
11119
11179
  confirmLabel: confirm.kind === "deleteReports" ? "\u05DE\u05D7\u05E7" : "\u05D1\u05D8\u05DC",
11120
11180
  onConfirm: runConfirmed,
11121
11181
  onClose: () => setConfirm(null),
11122
- message: confirm.kind === "deleteReports" ? /* @__PURE__ */ jsx29("p", { children: "\u05DC\u05DE\u05D7\u05D5\u05E7 \u05D0\u05EA \u05D4\u05D3\u05D9\u05D5\u05D5\u05D7? \u05D4\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D0\u05D9\u05E0\u05D4 \u05D4\u05E4\u05D9\u05DB\u05D4." }) : confirm.kind === "cancelPayment" ? /* @__PURE__ */ jsxs23("p", { children: [
11182
+ message: confirm.kind === "deleteReports" ? /* @__PURE__ */ jsx30("p", { children: "\u05DC\u05DE\u05D7\u05D5\u05E7 \u05D0\u05EA \u05D4\u05D3\u05D9\u05D5\u05D5\u05D7? \u05D4\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D0\u05D9\u05E0\u05D4 \u05D4\u05E4\u05D9\u05DB\u05D4." }) : confirm.kind === "cancelPayment" ? /* @__PURE__ */ jsxs24("p", { children: [
11123
11183
  '\u05D4\u05EA\u05E9\u05DC\u05D5\u05DD \u05D9\u05D9\u05DE\u05D7\u05E7, \u05D4\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD \u05D9\u05D7\u05D6\u05E8\u05D5 \u05DC\u05DC\u05E9\u05D5\u05E0\u05D9\u05EA "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD (\u05D8\u05E8\u05DD \u05E9\u05D5\u05DC\u05DE\u05D5)"',
11124
11184
  confirm.payment.proof.length > 0 ? ", \u05D5\u05D4\u05D0\u05E1\u05DE\u05DB\u05EA\u05D0 \u05EA\u05D9\u05DE\u05D7\u05E7 \u05D2\u05DD \u05DE-Google Drive" : "",
11125
11185
  ". \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?"
11126
- ] }) : /* @__PURE__ */ jsx29("p", { children: '\u05D0\u05D9\u05E9\u05D5\u05E8 \u05D4\u05E7\u05D1\u05DC\u05D4 \u05D9\u05D1\u05D5\u05D8\u05DC \u05D5\u05D4\u05EA\u05E9\u05DC\u05D5\u05DD \u05D9\u05D7\u05D6\u05D5\u05E8 \u05DC\u05DC\u05E9\u05D5\u05E0\u05D9\u05EA "\u05E9\u05D5\u05DC\u05DD (\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05E7\u05D1\u05DC\u05D4)". \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?' })
11186
+ ] }) : /* @__PURE__ */ jsx30("p", { children: '\u05D0\u05D9\u05E9\u05D5\u05E8 \u05D4\u05E7\u05D1\u05DC\u05D4 \u05D9\u05D1\u05D5\u05D8\u05DC \u05D5\u05D4\u05EA\u05E9\u05DC\u05D5\u05DD \u05D9\u05D7\u05D6\u05D5\u05E8 \u05DC\u05DC\u05E9\u05D5\u05E0\u05D9\u05EA "\u05E9\u05D5\u05DC\u05DD (\u05DE\u05DE\u05EA\u05D9\u05DF \u05DC\u05E7\u05D1\u05DC\u05D4)". \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?' })
11127
11187
  }
11128
11188
  )
11129
11189
  ] });
@@ -11277,7 +11337,7 @@ function readFileAsBase64(file) {
11277
11337
  }
11278
11338
 
11279
11339
  // src/components/WhatsAppComponent/CreateTemplateModal.tsx
11280
- import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
11340
+ import { Fragment as Fragment6, jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
11281
11341
  function CreateTemplateModal({
11282
11342
  isOpen,
11283
11343
  onClose,
@@ -11629,12 +11689,12 @@ function CreateTemplateModal({
11629
11689
  }
11630
11690
  };
11631
11691
  if (!isOpen) return null;
11632
- return /* @__PURE__ */ jsx30(
11692
+ return /* @__PURE__ */ jsx31(
11633
11693
  "div",
11634
11694
  {
11635
11695
  className: "fixed inset-0 bg-slate-900/60 backdrop-blur-xs z-50 flex items-center justify-center p-4 overflow-y-auto animate-in fade-in duration-200",
11636
11696
  dir: "rtl",
11637
- children: /* @__PURE__ */ jsxs24(
11697
+ children: /* @__PURE__ */ jsxs25(
11638
11698
  "div",
11639
11699
  {
11640
11700
  className: "bg-white rounded-2xl border border-slate-200 shadow-2xl w-full max-w-2xl max-h-[92vh] flex flex-col overflow-hidden animate-in zoom-in-95 duration-150",
@@ -11642,43 +11702,43 @@ function CreateTemplateModal({
11642
11702
  "aria-modal": "true",
11643
11703
  "aria-labelledby": "modal-title",
11644
11704
  children: [
11645
- /* @__PURE__ */ jsxs24("div", { className: "px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
11646
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2.5", children: [
11647
- /* @__PURE__ */ jsx30("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx30(Plus, { className: "w-4 h-4" }) }),
11648
- /* @__PURE__ */ jsxs24("div", { children: [
11649
- /* @__PURE__ */ jsx30("h3", { id: "modal-title", className: "text-sm font-bold text-slate-900", children: "\u05D9\u05E6\u05D9\u05E8\u05EA \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4" }),
11650
- /* @__PURE__ */ jsx30("p", { className: "text-xs text-slate-500", children: "\u05D4\u05D2\u05D3\u05E8\u05EA \u05EA\u05D5\u05DB\u05DF \u05D4\u05D5\u05D3\u05E2\u05D4 \u05D5\u05DE\u05E9\u05EA\u05E0\u05D9\u05DD \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta Cloud API" })
11705
+ /* @__PURE__ */ jsxs25("div", { className: "px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
11706
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2.5", children: [
11707
+ /* @__PURE__ */ jsx31("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx31(Plus, { className: "w-4 h-4" }) }),
11708
+ /* @__PURE__ */ jsxs25("div", { children: [
11709
+ /* @__PURE__ */ jsx31("h3", { id: "modal-title", className: "text-sm font-bold text-slate-900", children: "\u05D9\u05E6\u05D9\u05E8\u05EA \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4" }),
11710
+ /* @__PURE__ */ jsx31("p", { className: "text-xs text-slate-500", children: "\u05D4\u05D2\u05D3\u05E8\u05EA \u05EA\u05D5\u05DB\u05DF \u05D4\u05D5\u05D3\u05E2\u05D4 \u05D5\u05DE\u05E9\u05EA\u05E0\u05D9\u05DD \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta Cloud API" })
11651
11711
  ] })
11652
11712
  ] }),
11653
- /* @__PURE__ */ jsx30(
11713
+ /* @__PURE__ */ jsx31(
11654
11714
  "button",
11655
11715
  {
11656
11716
  type: "button",
11657
11717
  onClick: onClose,
11658
11718
  className: "p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",
11659
11719
  "aria-label": "\u05E1\u05D2\u05D5\u05E8",
11660
- children: /* @__PURE__ */ jsx30(X9, { className: "w-5 h-5" })
11720
+ children: /* @__PURE__ */ jsx31(X9, { className: "w-5 h-5" })
11661
11721
  }
11662
11722
  )
11663
11723
  ] }),
11664
- /* @__PURE__ */ jsxs24("form", { onSubmit: handleSubmit, className: "flex flex-col overflow-hidden flex-1", children: [
11665
- /* @__PURE__ */ jsxs24("div", { className: "p-6 overflow-y-auto space-y-5 flex-1", children: [
11666
- submitError && /* @__PURE__ */ jsxs24("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-800 flex items-center gap-2", children: [
11667
- /* @__PURE__ */ jsx30(AlertCircle2, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11668
- /* @__PURE__ */ jsx30("span", { children: submitError })
11724
+ /* @__PURE__ */ jsxs25("form", { onSubmit: handleSubmit, className: "flex flex-col overflow-hidden flex-1", children: [
11725
+ /* @__PURE__ */ jsxs25("div", { className: "p-6 overflow-y-auto space-y-5 flex-1", children: [
11726
+ submitError && /* @__PURE__ */ jsxs25("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-800 flex items-center gap-2", children: [
11727
+ /* @__PURE__ */ jsx31(AlertCircle2, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11728
+ /* @__PURE__ */ jsx31("span", { children: submitError })
11669
11729
  ] }),
11670
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1.5", children: [
11671
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", children: [
11672
- /* @__PURE__ */ jsxs24("label", { className: "block text-xs font-bold text-slate-800", children: [
11730
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1.5", children: [
11731
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between", children: [
11732
+ /* @__PURE__ */ jsxs25("label", { className: "block text-xs font-bold text-slate-800", children: [
11673
11733
  "\u05E9\u05DD \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4 ",
11674
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
11734
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
11675
11735
  ] }),
11676
- templateName && isNamePatternValid && !isNameDuplicate && /* @__PURE__ */ jsxs24("span", { className: "text-[11px] text-emerald-600 font-semibold flex items-center gap-1", children: [
11677
- /* @__PURE__ */ jsx30(CheckCircle22, { className: "w-3.5 h-3.5" }),
11736
+ templateName && isNamePatternValid && !isNameDuplicate && /* @__PURE__ */ jsxs25("span", { className: "text-[11px] text-emerald-600 font-semibold flex items-center gap-1", children: [
11737
+ /* @__PURE__ */ jsx31(CheckCircle22, { className: "w-3.5 h-3.5" }),
11678
11738
  " \u05E9\u05DD \u05EA\u05E7\u05D9\u05DF"
11679
11739
  ] })
11680
11740
  ] }),
11681
- /* @__PURE__ */ jsx30(
11741
+ /* @__PURE__ */ jsx31(
11682
11742
  "input",
11683
11743
  {
11684
11744
  type: "text",
@@ -11690,47 +11750,47 @@ function CreateTemplateModal({
11690
11750
  required: true
11691
11751
  }
11692
11752
  ),
11693
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400 mt-1", children: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA \u05E7\u05D8\u05E0\u05D5\u05EA \u05D1\u05D0\u05E0\u05D2\u05DC\u05D9\u05EA, \u05DE\u05E1\u05E4\u05E8\u05D9\u05DD \u05D5\u05E7\u05D5\u05D5\u05D9\u05DD \u05EA\u05D7\u05EA\u05D5\u05E0\u05D9\u05DD \u05D1\u05DC\u05D1\u05D3." }),
11694
- !isNameEmpty && isNameDuplicate && /* @__PURE__ */ jsxs24("p", { className: "text-[11px] text-rose-600 font-semibold flex items-center gap-1 mt-1", children: [
11695
- /* @__PURE__ */ jsx30(AlertCircle2, { className: "w-3.5 h-3.5 shrink-0" }),
11753
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400 mt-1", children: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA \u05E7\u05D8\u05E0\u05D5\u05EA \u05D1\u05D0\u05E0\u05D2\u05DC\u05D9\u05EA, \u05DE\u05E1\u05E4\u05E8\u05D9\u05DD \u05D5\u05E7\u05D5\u05D5\u05D9\u05DD \u05EA\u05D7\u05EA\u05D5\u05E0\u05D9\u05DD \u05D1\u05DC\u05D1\u05D3." }),
11754
+ !isNameEmpty && isNameDuplicate && /* @__PURE__ */ jsxs25("p", { className: "text-[11px] text-rose-600 font-semibold flex items-center gap-1 mt-1", children: [
11755
+ /* @__PURE__ */ jsx31(AlertCircle2, { className: "w-3.5 h-3.5 shrink-0" }),
11696
11756
  "\u05E9\u05DD \u05D4\u05EA\u05D1\u05E0\u05D9\u05EA \u05DB\u05D1\u05E8 \u05E7\u05D9\u05D9\u05DD \u05D1\u05D7\u05E9\u05D1\u05D5\u05DF \u05E2\u05D1\u05D5\u05E8 \u05E9\u05E4\u05D4 \u05D6\u05D5 (",
11697
11757
  language,
11698
11758
  "). \u05D0\u05E0\u05D0 \u05D1\u05D7\u05E8 \u05E9\u05DD \u05D9\u05D9\u05D7\u05D5\u05D3\u05D9 \u05D0\u05D5 \u05E9\u05E4\u05D4 \u05D0\u05D7\u05E8\u05EA."
11699
11759
  ] })
11700
11760
  ] }),
11701
- /* @__PURE__ */ jsxs24("div", { className: "grid grid-cols-2 gap-4", children: [
11702
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1.5", children: [
11703
- /* @__PURE__ */ jsx30("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E9\u05E4\u05D4" }),
11704
- /* @__PURE__ */ jsx30(
11761
+ /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-2 gap-4", children: [
11762
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1.5", children: [
11763
+ /* @__PURE__ */ jsx31("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E9\u05E4\u05D4" }),
11764
+ /* @__PURE__ */ jsx31(
11705
11765
  "select",
11706
11766
  {
11707
11767
  value: language,
11708
11768
  onChange: (e) => setLanguage(e.target.value),
11709
11769
  className: "w-full px-3 py-2 text-xs bg-slate-50 border border-slate-200 rounded-xl text-slate-800 outline-hidden",
11710
- children: LANGUAGE_OPTIONS.map((opt) => /* @__PURE__ */ jsx30("option", { value: opt.value, children: opt.label }, opt.value))
11770
+ children: LANGUAGE_OPTIONS.map((opt) => /* @__PURE__ */ jsx31("option", { value: opt.value, children: opt.label }, opt.value))
11711
11771
  }
11712
11772
  )
11713
11773
  ] }),
11714
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1.5", children: [
11715
- /* @__PURE__ */ jsx30("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4" }),
11716
- /* @__PURE__ */ jsx30(
11774
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1.5", children: [
11775
+ /* @__PURE__ */ jsx31("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4" }),
11776
+ /* @__PURE__ */ jsx31(
11717
11777
  "select",
11718
11778
  {
11719
11779
  value: category,
11720
11780
  onChange: (e) => setCategory(e.target.value),
11721
11781
  className: "w-full px-3 py-2 text-xs bg-slate-50 border border-slate-200 rounded-xl text-slate-800 outline-hidden",
11722
- children: CATEGORY_OPTIONS.map((opt) => /* @__PURE__ */ jsx30("option", { value: opt.value, children: opt.label }, opt.value))
11782
+ children: CATEGORY_OPTIONS.map((opt) => /* @__PURE__ */ jsx31("option", { value: opt.value, children: opt.label }, opt.value))
11723
11783
  }
11724
11784
  )
11725
11785
  ] })
11726
11786
  ] }),
11727
- /* @__PURE__ */ jsxs24("div", { className: "space-y-2", children: [
11728
- /* @__PURE__ */ jsxs24("label", { className: "block text-xs font-bold text-slate-800", children: [
11787
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-2", children: [
11788
+ /* @__PURE__ */ jsxs25("label", { className: "block text-xs font-bold text-slate-800", children: [
11729
11789
  "\u05EA\u05D5\u05DB\u05DF \u05D2\u05D5\u05E3 \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 ",
11730
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
11790
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
11731
11791
  ] }),
11732
- /* @__PURE__ */ jsxs24("div", { className: "border border-slate-200 focus-within:border-emerald-500 focus-within:ring-1 focus-within:ring-emerald-500 rounded-xl overflow-visible bg-white transition-all shadow-xs relative", children: [
11733
- /* @__PURE__ */ jsx30(
11792
+ /* @__PURE__ */ jsxs25("div", { className: "border border-slate-200 focus-within:border-emerald-500 focus-within:ring-1 focus-within:ring-emerald-500 rounded-xl overflow-visible bg-white transition-all shadow-xs relative", children: [
11793
+ /* @__PURE__ */ jsx31(
11734
11794
  "textarea",
11735
11795
  {
11736
11796
  ref: textareaRef,
@@ -11745,14 +11805,14 @@ function CreateTemplateModal({
11745
11805
  required: true
11746
11806
  }
11747
11807
  ),
11748
- /* @__PURE__ */ jsxs24(
11808
+ /* @__PURE__ */ jsxs25(
11749
11809
  "div",
11750
11810
  {
11751
11811
  className: "bg-slate-50/90 border-t border-slate-100 px-3 py-1.5 flex items-center justify-between gap-2 select-none relative",
11752
11812
  dir: language === "en_US" ? "ltr" : "rtl",
11753
11813
  children: [
11754
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-1", children: [
11755
- /* @__PURE__ */ jsx30(
11814
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1", children: [
11815
+ /* @__PURE__ */ jsx31(
11756
11816
  "button",
11757
11817
  {
11758
11818
  type: "button",
@@ -11760,10 +11820,10 @@ function CreateTemplateModal({
11760
11820
  onClick: () => handleApplyFormatting("*"),
11761
11821
  title: "\u05DE\u05D5\u05D3\u05D2\u05E9 (Bold) *\u05D8\u05E7\u05E1\u05D8*",
11762
11822
  className: "w-7 h-7 rounded-lg text-slate-600 hover:text-slate-900 hover:bg-slate-200/70 active:bg-slate-300/80 flex items-center justify-center font-bold text-xs transition-colors cursor-pointer",
11763
- children: /* @__PURE__ */ jsx30(Bold, { className: "w-3.5 h-3.5" })
11823
+ children: /* @__PURE__ */ jsx31(Bold, { className: "w-3.5 h-3.5" })
11764
11824
  }
11765
11825
  ),
11766
- /* @__PURE__ */ jsx30(
11826
+ /* @__PURE__ */ jsx31(
11767
11827
  "button",
11768
11828
  {
11769
11829
  type: "button",
@@ -11771,10 +11831,10 @@ function CreateTemplateModal({
11771
11831
  onClick: () => handleApplyFormatting("_"),
11772
11832
  title: "\u05E0\u05D8\u05D5\u05D9 (Italic) _\u05D8\u05E7\u05E1\u05D8_",
11773
11833
  className: "w-7 h-7 rounded-lg text-slate-600 hover:text-slate-900 hover:bg-slate-200/70 active:bg-slate-300/80 flex items-center justify-center italic text-xs transition-colors cursor-pointer",
11774
- children: /* @__PURE__ */ jsx30(Italic, { className: "w-3.5 h-3.5" })
11834
+ children: /* @__PURE__ */ jsx31(Italic, { className: "w-3.5 h-3.5" })
11775
11835
  }
11776
11836
  ),
11777
- /* @__PURE__ */ jsx30(
11837
+ /* @__PURE__ */ jsx31(
11778
11838
  "button",
11779
11839
  {
11780
11840
  type: "button",
@@ -11782,12 +11842,12 @@ function CreateTemplateModal({
11782
11842
  onClick: () => handleApplyFormatting("~"),
11783
11843
  title: "\u05E7\u05D5 \u05D7\u05D5\u05E6\u05D4 (Strikethrough) ~\u05D8\u05E7\u05E1\u05D8~",
11784
11844
  className: "w-7 h-7 rounded-lg text-slate-600 hover:text-slate-900 hover:bg-slate-200/70 active:bg-slate-300/80 flex items-center justify-center text-xs transition-colors cursor-pointer",
11785
- children: /* @__PURE__ */ jsx30(Strikethrough, { className: "w-3.5 h-3.5" })
11845
+ children: /* @__PURE__ */ jsx31(Strikethrough, { className: "w-3.5 h-3.5" })
11786
11846
  }
11787
11847
  ),
11788
- /* @__PURE__ */ jsx30("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11789
- /* @__PURE__ */ jsxs24("div", { className: "relative inline-block", ref: emojiPickerRef, children: [
11790
- /* @__PURE__ */ jsx30(
11848
+ /* @__PURE__ */ jsx31("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11849
+ /* @__PURE__ */ jsxs25("div", { className: "relative inline-block", ref: emojiPickerRef, children: [
11850
+ /* @__PURE__ */ jsx31(
11791
11851
  "button",
11792
11852
  {
11793
11853
  type: "button",
@@ -11795,16 +11855,16 @@ function CreateTemplateModal({
11795
11855
  onClick: () => setIsEmojiPickerOpen(!isEmojiPickerOpen),
11796
11856
  title: "\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9 (Emoji)",
11797
11857
  className: `w-7 h-7 rounded-lg flex items-center justify-center transition-colors cursor-pointer ${isEmojiPickerOpen ? "bg-emerald-100 text-emerald-700" : "text-slate-600 hover:text-slate-900 hover:bg-slate-200/70 active:bg-slate-300/80"}`,
11798
- children: /* @__PURE__ */ jsx30(Smile, { className: "w-4 h-4" })
11858
+ children: /* @__PURE__ */ jsx31(Smile, { className: "w-4 h-4" })
11799
11859
  }
11800
11860
  ),
11801
- isEmojiPickerOpen && /* @__PURE__ */ jsx30(
11861
+ isEmojiPickerOpen && /* @__PURE__ */ jsx31(
11802
11862
  "div",
11803
11863
  {
11804
11864
  className: `absolute bottom-full mb-2 ${language === "en_US" ? "left-0" : "right-0"} z-50 shadow-2xl rounded-2xl overflow-hidden border border-slate-200 animate-in fade-in zoom-in-95 duration-100`,
11805
11865
  dir: "ltr",
11806
11866
  onMouseDown: (e) => e.stopPropagation(),
11807
- children: /* @__PURE__ */ jsx30(
11867
+ children: /* @__PURE__ */ jsx31(
11808
11868
  EmojiPicker,
11809
11869
  {
11810
11870
  onEmojiClick: (emojiData) => {
@@ -11821,8 +11881,8 @@ function CreateTemplateModal({
11821
11881
  }
11822
11882
  )
11823
11883
  ] }),
11824
- /* @__PURE__ */ jsx30("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11825
- /* @__PURE__ */ jsxs24(
11884
+ /* @__PURE__ */ jsx31("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11885
+ /* @__PURE__ */ jsxs25(
11826
11886
  "button",
11827
11887
  {
11828
11888
  type: "button",
@@ -11832,28 +11892,28 @@ function CreateTemplateModal({
11832
11892
  "aria-label": language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4",
11833
11893
  className: "h-7 px-2 rounded-lg text-slate-600 hover:text-slate-900 hover:bg-slate-200/70 active:bg-slate-300/80 flex items-center gap-1 text-xs font-medium transition-colors cursor-pointer",
11834
11894
  children: [
11835
- /* @__PURE__ */ jsx30(Plus, { className: "w-3.5 h-3.5" }),
11836
- /* @__PURE__ */ jsx30("span", { children: language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4" })
11895
+ /* @__PURE__ */ jsx31(Plus, { className: "w-3.5 h-3.5" }),
11896
+ /* @__PURE__ */ jsx31("span", { children: language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4" })
11837
11897
  ]
11838
11898
  }
11839
11899
  )
11840
11900
  ] }),
11841
- /* @__PURE__ */ jsxs24(
11901
+ /* @__PURE__ */ jsxs25(
11842
11902
  "div",
11843
11903
  {
11844
11904
  className: "flex items-center gap-1 font-mono text-[11px]",
11845
11905
  dir: "ltr",
11846
11906
  title: "\u05DE\u05D2\u05D1\u05DC\u05EA \u05EA\u05D5\u05D5\u05D9\u05DD (1024 \u05EA\u05D5\u05D5\u05D9\u05DD \u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8)",
11847
11907
  children: [
11848
- /* @__PURE__ */ jsx30(
11908
+ /* @__PURE__ */ jsx31(
11849
11909
  "span",
11850
11910
  {
11851
11911
  className: `font-semibold transition-colors ${bodyText.length >= 1024 ? "text-rose-600" : bodyText.length >= 950 ? "text-amber-600" : "text-slate-500"}`,
11852
11912
  children: bodyText.length
11853
11913
  }
11854
11914
  ),
11855
- /* @__PURE__ */ jsx30("span", { className: "text-slate-300", children: "/" }),
11856
- /* @__PURE__ */ jsx30("span", { className: "text-slate-400", children: "1024" })
11915
+ /* @__PURE__ */ jsx31("span", { className: "text-slate-300", children: "/" }),
11916
+ /* @__PURE__ */ jsx31("span", { className: "text-slate-400", children: "1024" })
11857
11917
  ]
11858
11918
  }
11859
11919
  )
@@ -11861,30 +11921,30 @@ function CreateTemplateModal({
11861
11921
  }
11862
11922
  )
11863
11923
  ] }),
11864
- /* @__PURE__ */ jsx30("div", { className: "flex flex-wrap items-center justify-between text-[11px] text-slate-400 px-1 gap-2", children: /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-3", children: [
11865
- /* @__PURE__ */ jsxs24("span", { children: [
11924
+ /* @__PURE__ */ jsx31("div", { className: "flex flex-wrap items-center justify-between text-[11px] text-slate-400 px-1 gap-2", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-3", children: [
11925
+ /* @__PURE__ */ jsxs25("span", { children: [
11866
11926
  ratioInfo.staticWordsCount,
11867
11927
  " \u05DE\u05D9\u05DC\u05D9\u05DD"
11868
11928
  ] }),
11869
- /* @__PURE__ */ jsxs24("span", { children: [
11929
+ /* @__PURE__ */ jsxs25("span", { children: [
11870
11930
  ratioInfo.variableCount,
11871
11931
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
11872
11932
  ] })
11873
11933
  ] }) }),
11874
- uniqueVariables.length > 0 && /* @__PURE__ */ jsxs24("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
11875
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-1.5 text-xs font-bold text-slate-800", children: [
11876
- /* @__PURE__ */ jsx30(Info2, { className: "w-4 h-4 text-emerald-600" }),
11877
- /* @__PURE__ */ jsx30("span", { children: "\u05E2\u05E8\u05DB\u05D9\u05DD \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4 \u05DC\u05DE\u05E9\u05EA\u05E0\u05D9\u05DD (\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta)" })
11934
+ uniqueVariables.length > 0 && /* @__PURE__ */ jsxs25("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
11935
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 text-xs font-bold text-slate-800", children: [
11936
+ /* @__PURE__ */ jsx31(Info2, { className: "w-4 h-4 text-emerald-600" }),
11937
+ /* @__PURE__ */ jsx31("span", { children: "\u05E2\u05E8\u05DB\u05D9\u05DD \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4 \u05DC\u05DE\u05E9\u05EA\u05E0\u05D9\u05DD (\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta)" })
11878
11938
  ] }),
11879
- /* @__PURE__ */ jsx30("p", { className: "text-[11px] text-slate-500 leading-relaxed", children: "Meta \u05D3\u05D5\u05E8\u05E9\u05EA \u05D3\u05D5\u05D2\u05DE\u05D4 \u05E2\u05D1\u05D5\u05E8 \u05DB\u05DC \u05DE\u05E9\u05EA\u05E0\u05D4 \u05D9\u05D9\u05D7\u05D5\u05D3\u05D9 \u05DB\u05D3\u05D9 \u05DC\u05D5\u05D5\u05D3\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA \u05EA\u05D5\u05DB\u05DF." }),
11880
- /* @__PURE__ */ jsx30("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1", children: uniqueVariables.map((idx) => /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
11881
- /* @__PURE__ */ jsxs24("label", { className: "block text-[11px] font-semibold text-slate-700 font-mono", children: [
11939
+ /* @__PURE__ */ jsx31("p", { className: "text-[11px] text-slate-500 leading-relaxed", children: "Meta \u05D3\u05D5\u05E8\u05E9\u05EA \u05D3\u05D5\u05D2\u05DE\u05D4 \u05E2\u05D1\u05D5\u05E8 \u05DB\u05DC \u05DE\u05E9\u05EA\u05E0\u05D4 \u05D9\u05D9\u05D7\u05D5\u05D3\u05D9 \u05DB\u05D3\u05D9 \u05DC\u05D5\u05D5\u05D3\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA \u05EA\u05D5\u05DB\u05DF." }),
11940
+ /* @__PURE__ */ jsx31("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1", children: uniqueVariables.map((idx) => /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
11941
+ /* @__PURE__ */ jsxs25("label", { className: "block text-[11px] font-semibold text-slate-700 font-mono", children: [
11882
11942
  "\u05D3\u05D5\u05D2\u05DE\u05D4 \u05E2\u05D1\u05D5\u05E8 ",
11883
11943
  `{{${idx}}}`,
11884
11944
  " ",
11885
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
11945
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
11886
11946
  ] }),
11887
- /* @__PURE__ */ jsx30(
11947
+ /* @__PURE__ */ jsx31(
11888
11948
  "input",
11889
11949
  {
11890
11950
  type: "text",
@@ -11899,21 +11959,21 @@ function CreateTemplateModal({
11899
11959
  )
11900
11960
  ] }, idx)) })
11901
11961
  ] }),
11902
- bodyText.trim().length > 0 && validationResult.errors.length > 0 && /* @__PURE__ */ jsxs24("div", { className: "p-3.5 bg-amber-50 border border-amber-200 rounded-xl space-y-1.5 text-xs text-amber-900", children: [
11903
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-1.5 font-bold", children: [
11904
- /* @__PURE__ */ jsx30(AlertCircle2, { className: "w-4 h-4 text-amber-600 shrink-0" }),
11905
- /* @__PURE__ */ jsx30("span", { children: "\u05D3\u05E8\u05D9\u05E9\u05D5\u05EA \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA Meta \u05DC\u05D7\u05E1\u05D9\u05DE\u05EA \u05E9\u05D2\u05D9\u05D0\u05D5\u05EA:" })
11962
+ bodyText.trim().length > 0 && validationResult.errors.length > 0 && /* @__PURE__ */ jsxs25("div", { className: "p-3.5 bg-amber-50 border border-amber-200 rounded-xl space-y-1.5 text-xs text-amber-900", children: [
11963
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 font-bold", children: [
11964
+ /* @__PURE__ */ jsx31(AlertCircle2, { className: "w-4 h-4 text-amber-600 shrink-0" }),
11965
+ /* @__PURE__ */ jsx31("span", { children: "\u05D3\u05E8\u05D9\u05E9\u05D5\u05EA \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA Meta \u05DC\u05D7\u05E1\u05D9\u05DE\u05EA \u05E9\u05D2\u05D9\u05D0\u05D5\u05EA:" })
11906
11966
  ] }),
11907
- /* @__PURE__ */ jsx30("ul", { className: "list-disc list-inside space-y-1 text-[11px] pr-2 leading-relaxed", children: validationResult.errors.map((err, i) => /* @__PURE__ */ jsx30("li", { children: err }, i)) })
11967
+ /* @__PURE__ */ jsx31("ul", { className: "list-disc list-inside space-y-1 text-[11px] pr-2 leading-relaxed", children: validationResult.errors.map((err, i) => /* @__PURE__ */ jsx31("li", { children: err }, i)) })
11908
11968
  ] })
11909
11969
  ] }),
11910
- /* @__PURE__ */ jsxs24("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
11911
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", children: [
11912
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11913
- /* @__PURE__ */ jsx30(Paperclip, { className: "w-4 h-4 text-slate-600" }),
11914
- /* @__PURE__ */ jsx30("label", { htmlFor: "modalHeaderFileCheckbox", className: "text-xs font-bold text-slate-800 cursor-pointer", children: "\u05E7\u05D5\u05D1\u05E5 \u05DB\u05D5\u05EA\u05E8\u05EA \u05DE\u05E6\u05D5\u05E8\u05E3 (\u05D0\u05D5\u05E4\u05E6\u05D9\u05D5\u05E0\u05DC\u05D9)" })
11970
+ /* @__PURE__ */ jsxs25("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
11971
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between", children: [
11972
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
11973
+ /* @__PURE__ */ jsx31(Paperclip, { className: "w-4 h-4 text-slate-600" }),
11974
+ /* @__PURE__ */ jsx31("label", { htmlFor: "modalHeaderFileCheckbox", className: "text-xs font-bold text-slate-800 cursor-pointer", children: "\u05E7\u05D5\u05D1\u05E5 \u05DB\u05D5\u05EA\u05E8\u05EA \u05DE\u05E6\u05D5\u05E8\u05E3 (\u05D0\u05D5\u05E4\u05E6\u05D9\u05D5\u05E0\u05DC\u05D9)" })
11915
11975
  ] }),
11916
- /* @__PURE__ */ jsx30(
11976
+ /* @__PURE__ */ jsx31(
11917
11977
  "input",
11918
11978
  {
11919
11979
  type: "checkbox",
@@ -11929,12 +11989,12 @@ function CreateTemplateModal({
11929
11989
  }
11930
11990
  )
11931
11991
  ] }),
11932
- hasFileHeader && /* @__PURE__ */ jsxs24("div", { className: "space-y-3 pt-1", children: [
11933
- fileError && /* @__PURE__ */ jsxs24("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl flex items-center gap-2 text-xs text-rose-700 font-semibold animate-in fade-in duration-150", children: [
11934
- /* @__PURE__ */ jsx30(AlertCircle2, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11935
- /* @__PURE__ */ jsx30("span", { children: fileError })
11992
+ hasFileHeader && /* @__PURE__ */ jsxs25("div", { className: "space-y-3 pt-1", children: [
11993
+ fileError && /* @__PURE__ */ jsxs25("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl flex items-center gap-2 text-xs text-rose-700 font-semibold animate-in fade-in duration-150", children: [
11994
+ /* @__PURE__ */ jsx31(AlertCircle2, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11995
+ /* @__PURE__ */ jsx31("span", { children: fileError })
11936
11996
  ] }),
11937
- /* @__PURE__ */ jsx30(
11997
+ /* @__PURE__ */ jsx31(
11938
11998
  "input",
11939
11999
  {
11940
12000
  ref: fileInputRef,
@@ -11944,7 +12004,7 @@ function CreateTemplateModal({
11944
12004
  className: "hidden"
11945
12005
  }
11946
12006
  ),
11947
- !selectedFile && /* @__PURE__ */ jsxs24(
12007
+ !selectedFile && /* @__PURE__ */ jsxs25(
11948
12008
  "button",
11949
12009
  {
11950
12010
  type: "button",
@@ -11954,49 +12014,49 @@ function CreateTemplateModal({
11954
12014
  },
11955
12015
  className: "w-full p-4 border-2 border-dashed border-slate-300 hover:border-emerald-500 rounded-xl flex flex-col items-center justify-center gap-2 bg-white hover:bg-emerald-50/30 transition-all cursor-pointer",
11956
12016
  children: [
11957
- /* @__PURE__ */ jsx30("div", { className: "w-9 h-9 rounded-full bg-slate-100 text-slate-500 flex items-center justify-center", children: /* @__PURE__ */ jsx30(Upload2, { className: "w-4 h-4" }) }),
11958
- /* @__PURE__ */ jsxs24("div", { className: "text-center", children: [
11959
- /* @__PURE__ */ jsx30("span", { className: "text-xs font-bold text-emerald-700 block", children: "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D7\u05D9\u05E8\u05EA \u05E7\u05D5\u05D1\u05E5" }),
11960
- /* @__PURE__ */ jsx30("span", { className: "text-[10px] text-slate-400", children: "PDF, JPG, PNG, MP4 \u05E2\u05D3 5MB" })
12017
+ /* @__PURE__ */ jsx31("div", { className: "w-9 h-9 rounded-full bg-slate-100 text-slate-500 flex items-center justify-center", children: /* @__PURE__ */ jsx31(Upload2, { className: "w-4 h-4" }) }),
12018
+ /* @__PURE__ */ jsxs25("div", { className: "text-center", children: [
12019
+ /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-emerald-700 block", children: "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D7\u05D9\u05E8\u05EA \u05E7\u05D5\u05D1\u05E5" }),
12020
+ /* @__PURE__ */ jsx31("span", { className: "text-[10px] text-slate-400", children: "PDF, JPG, PNG, MP4 \u05E2\u05D3 5MB" })
11961
12021
  ] })
11962
12022
  ]
11963
12023
  }
11964
12024
  ),
11965
- selectedFile && /* @__PURE__ */ jsxs24("div", { className: "p-3 bg-white border border-emerald-200 rounded-xl flex items-center justify-between gap-3 shadow-2xs", children: [
11966
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2.5 overflow-hidden", children: [
11967
- /* @__PURE__ */ jsx30("div", { className: "w-8 h-8 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0", children: selectedFile.type.includes("pdf") || selectedFile.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx30(FileText2, { className: "w-4 h-4" }) : selectedFile.type.includes("video") || selectedFile.name.toLowerCase().match(/\.(mp4|mov|avi|webm)$/) ? /* @__PURE__ */ jsx30(Video, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx30(ImageIcon, { className: "w-4 h-4" }) }),
11968
- /* @__PURE__ */ jsxs24("div", { className: "overflow-hidden", children: [
11969
- /* @__PURE__ */ jsx30("p", { className: "text-xs font-bold text-slate-800 truncate", title: selectedFile.name, children: /* @__PURE__ */ jsx30("span", { dir: "ltr", className: "inline-block truncate max-w-full", children: selectedFile.name }) }),
11970
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400", children: /* @__PURE__ */ jsxs24("span", { dir: "ltr", className: "inline-block", children: [
12025
+ selectedFile && /* @__PURE__ */ jsxs25("div", { className: "p-3 bg-white border border-emerald-200 rounded-xl flex items-center justify-between gap-3 shadow-2xs", children: [
12026
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2.5 overflow-hidden", children: [
12027
+ /* @__PURE__ */ jsx31("div", { className: "w-8 h-8 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0", children: selectedFile.type.includes("pdf") || selectedFile.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx31(FileText2, { className: "w-4 h-4" }) : selectedFile.type.includes("video") || selectedFile.name.toLowerCase().match(/\.(mp4|mov|avi|webm)$/) ? /* @__PURE__ */ jsx31(Video, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx31(ImageIcon, { className: "w-4 h-4" }) }),
12028
+ /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
12029
+ /* @__PURE__ */ jsx31("p", { className: "text-xs font-bold text-slate-800 truncate", title: selectedFile.name, children: /* @__PURE__ */ jsx31("span", { dir: "ltr", className: "inline-block truncate max-w-full", children: selectedFile.name }) }),
12030
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400", children: /* @__PURE__ */ jsxs25("span", { dir: "ltr", className: "inline-block", children: [
11971
12031
  formatFileSize(selectedFile.size),
11972
12032
  selectedFile.type ? ` \u2022 ${selectedFile.type}` : ""
11973
12033
  ] }) })
11974
12034
  ] })
11975
12035
  ] }),
11976
- /* @__PURE__ */ jsx30(
12036
+ /* @__PURE__ */ jsx31(
11977
12037
  "button",
11978
12038
  {
11979
12039
  type: "button",
11980
12040
  onClick: handleRemoveFile,
11981
12041
  className: "p-1 text-slate-400 hover:text-rose-600 rounded-md transition-colors cursor-pointer",
11982
12042
  title: "\u05D4\u05E1\u05E8 \u05E7\u05D5\u05D1\u05E5",
11983
- children: /* @__PURE__ */ jsx30(Trash22, { className: "w-4 h-4" })
12043
+ children: /* @__PURE__ */ jsx31(Trash22, { className: "w-4 h-4" })
11984
12044
  }
11985
12045
  )
11986
12046
  ] })
11987
12047
  ] })
11988
12048
  ] }),
11989
- /* @__PURE__ */ jsxs24("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3.5", children: [
11990
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", children: [
11991
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11992
- /* @__PURE__ */ jsx30(MousePointerClick, { className: "w-4 h-4 text-slate-600" }),
11993
- /* @__PURE__ */ jsxs24("div", { children: [
11994
- /* @__PURE__ */ jsx30("span", { className: "text-xs font-bold text-slate-800 block", children: "\u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD \u05D0\u05D9\u05E0\u05D8\u05E8\u05D0\u05E7\u05D8\u05D9\u05D1\u05D9\u05D9\u05DD (\u05D0\u05D5\u05E4\u05E6\u05D9\u05D5\u05E0\u05DC\u05D9)" }),
11995
- /* @__PURE__ */ jsx30("span", { className: "text-[10px] text-slate-400 block", children: "\u05D4\u05D5\u05E1\u05E4\u05EA \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9 \u05E7\u05E8\u05D9\u05D0\u05D4 \u05DC\u05E4\u05E2\u05D5\u05DC\u05D4 (CTA) \u05D5\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4 (\u05E2\u05D3 10 \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD)" })
12049
+ /* @__PURE__ */ jsxs25("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3.5", children: [
12050
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between", children: [
12051
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
12052
+ /* @__PURE__ */ jsx31(MousePointerClick, { className: "w-4 h-4 text-slate-600" }),
12053
+ /* @__PURE__ */ jsxs25("div", { children: [
12054
+ /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-slate-800 block", children: "\u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD \u05D0\u05D9\u05E0\u05D8\u05E8\u05D0\u05E7\u05D8\u05D9\u05D1\u05D9\u05D9\u05DD (\u05D0\u05D5\u05E4\u05E6\u05D9\u05D5\u05E0\u05DC\u05D9)" }),
12055
+ /* @__PURE__ */ jsx31("span", { className: "text-[10px] text-slate-400 block", children: "\u05D4\u05D5\u05E1\u05E4\u05EA \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9 \u05E7\u05E8\u05D9\u05D0\u05D4 \u05DC\u05E4\u05E2\u05D5\u05DC\u05D4 (CTA) \u05D5\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4 (\u05E2\u05D3 10 \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD)" })
11996
12056
  ] })
11997
12057
  ] }),
11998
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11999
- /* @__PURE__ */ jsxs24(
12058
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
12059
+ /* @__PURE__ */ jsxs25(
12000
12060
  "span",
12001
12061
  {
12002
12062
  className: `text-[10px] font-mono px-2 py-0.5 rounded-full border ${buttons.length >= 10 ? "bg-amber-50 text-amber-700 border-amber-200 font-bold" : "bg-white text-slate-500 border-slate-200"}`,
@@ -12006,8 +12066,8 @@ function CreateTemplateModal({
12006
12066
  ]
12007
12067
  }
12008
12068
  ),
12009
- /* @__PURE__ */ jsxs24("div", { className: "relative", ref: addButtonDropdownRef, children: [
12010
- /* @__PURE__ */ jsxs24(
12069
+ /* @__PURE__ */ jsxs25("div", { className: "relative", ref: addButtonDropdownRef, children: [
12070
+ /* @__PURE__ */ jsxs25(
12011
12071
  "button",
12012
12072
  {
12013
12073
  type: "button",
@@ -12016,9 +12076,9 @@ function CreateTemplateModal({
12016
12076
  className: `inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold rounded-xl border transition-all ${buttons.length >= 10 ? "bg-slate-100 text-slate-400 border-slate-200 cursor-not-allowed opacity-60" : "bg-white text-emerald-700 border-emerald-200 hover:bg-emerald-50/80 active:scale-[0.98] shadow-2xs cursor-pointer"}`,
12017
12077
  title: buttons.length >= 10 ? "\u05D4\u05D2\u05E2\u05EA \u05DC\u05DE\u05D2\u05D1\u05DC\u05D4 \u05D4\u05DE\u05E8\u05D1\u05D9\u05EA \u05E9\u05DC 10 \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD" : "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8 \u05D7\u05D3\u05E9",
12018
12078
  children: [
12019
- /* @__PURE__ */ jsx30(Plus, { className: "w-3.5 h-3.5" }),
12020
- /* @__PURE__ */ jsx30("span", { children: "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" }),
12021
- /* @__PURE__ */ jsx30(
12079
+ /* @__PURE__ */ jsx31(Plus, { className: "w-3.5 h-3.5" }),
12080
+ /* @__PURE__ */ jsx31("span", { children: "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" }),
12081
+ /* @__PURE__ */ jsx31(
12022
12082
  ChevronDown3,
12023
12083
  {
12024
12084
  className: `w-3.5 h-3.5 transition-transform ${isAddButtonOpen ? "rotate-180" : ""}`
@@ -12027,63 +12087,63 @@ function CreateTemplateModal({
12027
12087
  ]
12028
12088
  }
12029
12089
  ),
12030
- isAddButtonOpen && /* @__PURE__ */ jsxs24("div", { className: "absolute top-full left-0 mt-1.5 w-64 bg-white border border-slate-200 rounded-xl shadow-xl z-30 p-1.5 space-y-1 animate-in fade-in-50 zoom-in-95 duration-100 divide-y divide-slate-100", children: [
12031
- /* @__PURE__ */ jsxs24(
12090
+ isAddButtonOpen && /* @__PURE__ */ jsxs25("div", { className: "absolute top-full left-0 mt-1.5 w-64 bg-white border border-slate-200 rounded-xl shadow-xl z-30 p-1.5 space-y-1 animate-in fade-in-50 zoom-in-95 duration-100 divide-y divide-slate-100", children: [
12091
+ /* @__PURE__ */ jsxs25(
12032
12092
  "button",
12033
12093
  {
12034
12094
  type: "button",
12035
12095
  onClick: () => handleAddButton("QUICK_REPLY"),
12036
12096
  className: "w-full p-2 text-right rounded-lg hover:bg-slate-50 flex items-start gap-2.5 transition-colors cursor-pointer group",
12037
12097
  children: [
12038
- /* @__PURE__ */ jsx30("div", { className: "w-7 h-7 rounded-md bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-emerald-100", children: /* @__PURE__ */ jsx30(MessageSquare, { className: "w-3.5 h-3.5" }) }),
12039
- /* @__PURE__ */ jsxs24("div", { children: [
12040
- /* @__PURE__ */ jsx30("p", { className: "text-xs font-semibold text-slate-800", children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" }),
12041
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05DE\u05E2\u05E0\u05D4 \u05DE\u05D4\u05D9\u05E8 \u05D1\u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05D7\u05EA" })
12098
+ /* @__PURE__ */ jsx31("div", { className: "w-7 h-7 rounded-md bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-emerald-100", children: /* @__PURE__ */ jsx31(MessageSquare, { className: "w-3.5 h-3.5" }) }),
12099
+ /* @__PURE__ */ jsxs25("div", { children: [
12100
+ /* @__PURE__ */ jsx31("p", { className: "text-xs font-semibold text-slate-800", children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" }),
12101
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05DE\u05E2\u05E0\u05D4 \u05DE\u05D4\u05D9\u05E8 \u05D1\u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05D7\u05EA" })
12042
12102
  ] })
12043
12103
  ]
12044
12104
  }
12045
12105
  ),
12046
- /* @__PURE__ */ jsxs24(
12106
+ /* @__PURE__ */ jsxs25(
12047
12107
  "button",
12048
12108
  {
12049
12109
  type: "button",
12050
12110
  onClick: () => handleAddButton("URL"),
12051
12111
  className: "w-full p-2 text-right rounded-lg hover:bg-slate-50 flex items-start gap-2.5 transition-colors cursor-pointer group pt-2",
12052
12112
  children: [
12053
- /* @__PURE__ */ jsx30("div", { className: "w-7 h-7 rounded-md bg-sky-50 text-sky-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-sky-100", children: /* @__PURE__ */ jsx30(ExternalLink3, { className: "w-3.5 h-3.5" }) }),
12054
- /* @__PURE__ */ jsxs24("div", { children: [
12055
- /* @__PURE__ */ jsx30("p", { className: "text-xs font-semibold text-slate-800", children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" }),
12056
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05D0\u05D9\u05E0\u05D8\u05E8\u05E0\u05D8 \u05E1\u05D8\u05D8\u05D9" })
12113
+ /* @__PURE__ */ jsx31("div", { className: "w-7 h-7 rounded-md bg-sky-50 text-sky-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-sky-100", children: /* @__PURE__ */ jsx31(ExternalLink3, { className: "w-3.5 h-3.5" }) }),
12114
+ /* @__PURE__ */ jsxs25("div", { children: [
12115
+ /* @__PURE__ */ jsx31("p", { className: "text-xs font-semibold text-slate-800", children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" }),
12116
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05D0\u05D9\u05E0\u05D8\u05E8\u05E0\u05D8 \u05E1\u05D8\u05D8\u05D9" })
12057
12117
  ] })
12058
12118
  ]
12059
12119
  }
12060
12120
  ),
12061
- /* @__PURE__ */ jsxs24(
12121
+ /* @__PURE__ */ jsxs25(
12062
12122
  "button",
12063
12123
  {
12064
12124
  type: "button",
12065
12125
  onClick: () => handleAddButton("PHONE_NUMBER"),
12066
12126
  className: "w-full p-2 text-right rounded-lg hover:bg-slate-50 flex items-start gap-2.5 transition-colors cursor-pointer group pt-2",
12067
12127
  children: [
12068
- /* @__PURE__ */ jsx30("div", { className: "w-7 h-7 rounded-md bg-violet-50 text-violet-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-violet-100", children: /* @__PURE__ */ jsx30(Phone, { className: "w-3.5 h-3.5" }) }),
12069
- /* @__PURE__ */ jsxs24("div", { children: [
12070
- /* @__PURE__ */ jsx30("p", { className: "text-xs font-semibold text-slate-800", children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" }),
12071
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05D7\u05D9\u05D5\u05D2 \u05D9\u05E9\u05D9\u05E8 \u05DC\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF" })
12128
+ /* @__PURE__ */ jsx31("div", { className: "w-7 h-7 rounded-md bg-violet-50 text-violet-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-violet-100", children: /* @__PURE__ */ jsx31(Phone, { className: "w-3.5 h-3.5" }) }),
12129
+ /* @__PURE__ */ jsxs25("div", { children: [
12130
+ /* @__PURE__ */ jsx31("p", { className: "text-xs font-semibold text-slate-800", children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" }),
12131
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05D7\u05D9\u05D5\u05D2 \u05D9\u05E9\u05D9\u05E8 \u05DC\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF" })
12072
12132
  ] })
12073
12133
  ]
12074
12134
  }
12075
12135
  ),
12076
- /* @__PURE__ */ jsxs24(
12136
+ /* @__PURE__ */ jsxs25(
12077
12137
  "button",
12078
12138
  {
12079
12139
  type: "button",
12080
12140
  onClick: () => handleAddButton("COPY_CODE"),
12081
12141
  className: "w-full p-2 text-right rounded-lg hover:bg-slate-50 flex items-start gap-2.5 transition-colors cursor-pointer group pt-2",
12082
12142
  children: [
12083
- /* @__PURE__ */ jsx30("div", { className: "w-7 h-7 rounded-md bg-amber-50 text-amber-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-amber-100", children: /* @__PURE__ */ jsx30(Copy3, { className: "w-3.5 h-3.5" }) }),
12084
- /* @__PURE__ */ jsxs24("div", { children: [
12085
- /* @__PURE__ */ jsx30("p", { className: "text-xs font-semibold text-slate-800", children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" }),
12086
- /* @__PURE__ */ jsx30("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3 \u05E7\u05D5\u05E4\u05D5\u05DF \u05DC\u05DC\u05D5\u05D7" })
12143
+ /* @__PURE__ */ jsx31("div", { className: "w-7 h-7 rounded-md bg-amber-50 text-amber-600 flex items-center justify-center shrink-0 mt-0.5 group-hover:bg-amber-100", children: /* @__PURE__ */ jsx31(Copy3, { className: "w-3.5 h-3.5" }) }),
12144
+ /* @__PURE__ */ jsxs25("div", { children: [
12145
+ /* @__PURE__ */ jsx31("p", { className: "text-xs font-semibold text-slate-800", children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" }),
12146
+ /* @__PURE__ */ jsx31("p", { className: "text-[10px] text-slate-400 leading-tight", children: "\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3 \u05E7\u05D5\u05E4\u05D5\u05DF \u05DC\u05DC\u05D5\u05D7" })
12087
12147
  ] })
12088
12148
  ]
12089
12149
  }
@@ -12092,55 +12152,55 @@ function CreateTemplateModal({
12092
12152
  ] })
12093
12153
  ] })
12094
12154
  ] }),
12095
- buttons.length === 0 && /* @__PURE__ */ jsx30("div", { className: "p-3 text-center border border-dashed border-slate-200 rounded-lg text-slate-400 text-xs bg-white/60", children: '\u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8\u05D5 \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD. \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" \u05DB\u05D3\u05D9 \u05DC\u05D4\u05D5\u05E1\u05D9\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8 \u05E8\u05D0\u05E9\u05D5\u05DF \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA.' }),
12096
- buttons.length > 0 && /* @__PURE__ */ jsx30("div", { className: "space-y-2.5", children: buttons.map((btn, index) => {
12155
+ buttons.length === 0 && /* @__PURE__ */ jsx31("div", { className: "p-3 text-center border border-dashed border-slate-200 rounded-lg text-slate-400 text-xs bg-white/60", children: '\u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8\u05D5 \u05DB\u05E4\u05EA\u05D5\u05E8\u05D9\u05DD. \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" \u05DB\u05D3\u05D9 \u05DC\u05D4\u05D5\u05E1\u05D9\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8 \u05E8\u05D0\u05E9\u05D5\u05DF \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA.' }),
12156
+ buttons.length > 0 && /* @__PURE__ */ jsx31("div", { className: "space-y-2.5", children: buttons.map((btn, index) => {
12097
12157
  const btnNum = index + 1;
12098
- return /* @__PURE__ */ jsxs24(
12158
+ return /* @__PURE__ */ jsxs25(
12099
12159
  "div",
12100
12160
  {
12101
12161
  className: "p-3 bg-white border border-slate-200 rounded-xl space-y-2.5 shadow-2xs transition-all hover:border-slate-300",
12102
12162
  children: [
12103
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", children: [
12104
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
12105
- /* @__PURE__ */ jsxs24("span", { className: "text-[11px] font-bold text-slate-400 font-mono", children: [
12163
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between", children: [
12164
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
12165
+ /* @__PURE__ */ jsxs25("span", { className: "text-[11px] font-bold text-slate-400 font-mono", children: [
12106
12166
  "#",
12107
12167
  btnNum
12108
12168
  ] }),
12109
- btn.type === "QUICK_REPLY" && /* @__PURE__ */ jsxs24("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-emerald-50 text-emerald-700 border border-emerald-200 text-[10px] font-semibold", children: [
12110
- /* @__PURE__ */ jsx30(MessageSquare, { className: "w-3 h-3" }),
12111
- /* @__PURE__ */ jsx30("span", { children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" })
12169
+ btn.type === "QUICK_REPLY" && /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-emerald-50 text-emerald-700 border border-emerald-200 text-[10px] font-semibold", children: [
12170
+ /* @__PURE__ */ jsx31(MessageSquare, { className: "w-3 h-3" }),
12171
+ /* @__PURE__ */ jsx31("span", { children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" })
12112
12172
  ] }),
12113
- btn.type === "URL" && /* @__PURE__ */ jsxs24("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-sky-50 text-sky-700 border border-sky-200 text-[10px] font-semibold", children: [
12114
- /* @__PURE__ */ jsx30(ExternalLink3, { className: "w-3 h-3" }),
12115
- /* @__PURE__ */ jsx30("span", { children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" })
12173
+ btn.type === "URL" && /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-sky-50 text-sky-700 border border-sky-200 text-[10px] font-semibold", children: [
12174
+ /* @__PURE__ */ jsx31(ExternalLink3, { className: "w-3 h-3" }),
12175
+ /* @__PURE__ */ jsx31("span", { children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" })
12116
12176
  ] }),
12117
- btn.type === "PHONE_NUMBER" && /* @__PURE__ */ jsxs24("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-violet-50 text-violet-700 border border-violet-200 text-[10px] font-semibold", children: [
12118
- /* @__PURE__ */ jsx30(Phone, { className: "w-3 h-3" }),
12119
- /* @__PURE__ */ jsx30("span", { children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" })
12177
+ btn.type === "PHONE_NUMBER" && /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-violet-50 text-violet-700 border border-violet-200 text-[10px] font-semibold", children: [
12178
+ /* @__PURE__ */ jsx31(Phone, { className: "w-3 h-3" }),
12179
+ /* @__PURE__ */ jsx31("span", { children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" })
12120
12180
  ] }),
12121
- btn.type === "COPY_CODE" && /* @__PURE__ */ jsxs24("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-amber-50 text-amber-700 border border-amber-200 text-[10px] font-semibold", children: [
12122
- /* @__PURE__ */ jsx30(Copy3, { className: "w-3 h-3" }),
12123
- /* @__PURE__ */ jsx30("span", { children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" })
12181
+ btn.type === "COPY_CODE" && /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-amber-50 text-amber-700 border border-amber-200 text-[10px] font-semibold", children: [
12182
+ /* @__PURE__ */ jsx31(Copy3, { className: "w-3 h-3" }),
12183
+ /* @__PURE__ */ jsx31("span", { children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" })
12124
12184
  ] })
12125
12185
  ] }),
12126
- /* @__PURE__ */ jsx30(
12186
+ /* @__PURE__ */ jsx31(
12127
12187
  "button",
12128
12188
  {
12129
12189
  type: "button",
12130
12190
  onClick: () => handleRemoveButton(index),
12131
12191
  className: "p-1 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition-colors cursor-pointer",
12132
12192
  title: "\u05D4\u05E1\u05E8 \u05DB\u05E4\u05EA\u05D5\u05E8",
12133
- children: /* @__PURE__ */ jsx30(Trash22, { className: "w-3.5 h-3.5" })
12193
+ children: /* @__PURE__ */ jsx31(Trash22, { className: "w-3.5 h-3.5" })
12134
12194
  }
12135
12195
  )
12136
12196
  ] }),
12137
- btn.type === "QUICK_REPLY" && /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12138
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12139
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12197
+ btn.type === "QUICK_REPLY" && /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12198
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12199
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12140
12200
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12141
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12201
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12142
12202
  ] }),
12143
- /* @__PURE__ */ jsxs24(
12203
+ /* @__PURE__ */ jsxs25(
12144
12204
  "span",
12145
12205
  {
12146
12206
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12151,7 +12211,7 @@ function CreateTemplateModal({
12151
12211
  }
12152
12212
  )
12153
12213
  ] }),
12154
- /* @__PURE__ */ jsx30(
12214
+ /* @__PURE__ */ jsx31(
12155
12215
  "input",
12156
12216
  {
12157
12217
  type: "text",
@@ -12163,14 +12223,14 @@ function CreateTemplateModal({
12163
12223
  }
12164
12224
  )
12165
12225
  ] }),
12166
- btn.type === "URL" && /* @__PURE__ */ jsxs24("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12167
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12168
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12169
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12226
+ btn.type === "URL" && /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12227
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12228
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12229
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12170
12230
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12171
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12231
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12172
12232
  ] }),
12173
- /* @__PURE__ */ jsxs24(
12233
+ /* @__PURE__ */ jsxs25(
12174
12234
  "span",
12175
12235
  {
12176
12236
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12181,7 +12241,7 @@ function CreateTemplateModal({
12181
12241
  }
12182
12242
  )
12183
12243
  ] }),
12184
- /* @__PURE__ */ jsx30(
12244
+ /* @__PURE__ */ jsx31(
12185
12245
  "input",
12186
12246
  {
12187
12247
  type: "text",
@@ -12193,18 +12253,18 @@ function CreateTemplateModal({
12193
12253
  }
12194
12254
  )
12195
12255
  ] }),
12196
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12197
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12198
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12256
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12257
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12258
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12199
12259
  "\u05DB\u05EA\u05D5\u05D1\u05EA URL \u05E1\u05D8\u05D8\u05D9\u05EA ",
12200
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12260
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12201
12261
  ] }),
12202
- /* @__PURE__ */ jsxs24("span", { className: "font-mono text-[10px] text-slate-400", children: [
12262
+ /* @__PURE__ */ jsxs25("span", { className: "font-mono text-[10px] text-slate-400", children: [
12203
12263
  (btn.url || "").length,
12204
12264
  "/2000"
12205
12265
  ] })
12206
12266
  ] }),
12207
- /* @__PURE__ */ jsx30(
12267
+ /* @__PURE__ */ jsx31(
12208
12268
  "input",
12209
12269
  {
12210
12270
  type: "url",
@@ -12218,14 +12278,14 @@ function CreateTemplateModal({
12218
12278
  )
12219
12279
  ] })
12220
12280
  ] }),
12221
- btn.type === "PHONE_NUMBER" && /* @__PURE__ */ jsxs24("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12222
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12223
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12224
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12281
+ btn.type === "PHONE_NUMBER" && /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12282
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12283
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12284
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12225
12285
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12226
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12286
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12227
12287
  ] }),
12228
- /* @__PURE__ */ jsxs24(
12288
+ /* @__PURE__ */ jsxs25(
12229
12289
  "span",
12230
12290
  {
12231
12291
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12236,7 +12296,7 @@ function CreateTemplateModal({
12236
12296
  }
12237
12297
  )
12238
12298
  ] }),
12239
- /* @__PURE__ */ jsx30(
12299
+ /* @__PURE__ */ jsx31(
12240
12300
  "input",
12241
12301
  {
12242
12302
  type: "text",
@@ -12248,18 +12308,18 @@ function CreateTemplateModal({
12248
12308
  }
12249
12309
  )
12250
12310
  ] }),
12251
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12252
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12253
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12311
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12312
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12313
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12254
12314
  "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF (\u05E4\u05D5\u05E8\u05DE\u05D8: +[\u05E7\u05D9\u05D3\u05D5\u05DE\u05EA][\u05DE\u05E1\u05E4\u05E8]) ",
12255
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12315
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12256
12316
  ] }),
12257
- /* @__PURE__ */ jsxs24("span", { className: "font-mono text-[10px] text-slate-400", children: [
12317
+ /* @__PURE__ */ jsxs25("span", { className: "font-mono text-[10px] text-slate-400", children: [
12258
12318
  (btn.phone_number || "").length,
12259
12319
  "/20"
12260
12320
  ] })
12261
12321
  ] }),
12262
- /* @__PURE__ */ jsx30(
12322
+ /* @__PURE__ */ jsx31(
12263
12323
  "input",
12264
12324
  {
12265
12325
  type: "tel",
@@ -12273,14 +12333,14 @@ function CreateTemplateModal({
12273
12333
  )
12274
12334
  ] })
12275
12335
  ] }),
12276
- btn.type === "COPY_CODE" && /* @__PURE__ */ jsxs24("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12277
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12278
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12279
- /* @__PURE__ */ jsxs24("label", { className: "font-semibold text-slate-700", children: [
12336
+ btn.type === "COPY_CODE" && /* @__PURE__ */ jsxs25("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12337
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12338
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12339
+ /* @__PURE__ */ jsxs25("label", { className: "font-semibold text-slate-700", children: [
12280
12340
  "\u05E7\u05D5\u05D3 \u05D4\u05E6\u05E2\u05D4 / \u05E7\u05D5\u05E4\u05D5\u05DF ",
12281
- /* @__PURE__ */ jsx30("span", { className: "text-rose-500", children: "*" })
12341
+ /* @__PURE__ */ jsx31("span", { className: "text-rose-500", children: "*" })
12282
12342
  ] }),
12283
- /* @__PURE__ */ jsxs24(
12343
+ /* @__PURE__ */ jsxs25(
12284
12344
  "span",
12285
12345
  {
12286
12346
  className: `font-mono text-[10px] ${(btn.example || "").length >= 15 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12291,7 +12351,7 @@ function CreateTemplateModal({
12291
12351
  }
12292
12352
  )
12293
12353
  ] }),
12294
- /* @__PURE__ */ jsx30(
12354
+ /* @__PURE__ */ jsx31(
12295
12355
  "input",
12296
12356
  {
12297
12357
  type: "text",
@@ -12304,15 +12364,15 @@ function CreateTemplateModal({
12304
12364
  }
12305
12365
  )
12306
12366
  ] }),
12307
- /* @__PURE__ */ jsxs24("div", { className: "space-y-1", children: [
12308
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between text-[11px]", children: [
12309
- /* @__PURE__ */ jsx30("label", { className: "font-semibold text-slate-700", children: "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 (\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC: \u05D4\u05E2\u05EA\u05E7 \u05E7\u05D5\u05D3)" }),
12310
- /* @__PURE__ */ jsxs24("span", { className: "font-mono text-[10px] text-slate-400", children: [
12367
+ /* @__PURE__ */ jsxs25("div", { className: "space-y-1", children: [
12368
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px]", children: [
12369
+ /* @__PURE__ */ jsx31("label", { className: "font-semibold text-slate-700", children: "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 (\u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC: \u05D4\u05E2\u05EA\u05E7 \u05E7\u05D5\u05D3)" }),
12370
+ /* @__PURE__ */ jsxs25("span", { className: "font-mono text-[10px] text-slate-400", children: [
12311
12371
  (btn.text || "").length,
12312
12372
  "/25"
12313
12373
  ] })
12314
12374
  ] }),
12315
- /* @__PURE__ */ jsx30(
12375
+ /* @__PURE__ */ jsx31(
12316
12376
  "input",
12317
12377
  {
12318
12378
  type: "text",
@@ -12332,8 +12392,8 @@ function CreateTemplateModal({
12332
12392
  }) })
12333
12393
  ] })
12334
12394
  ] }),
12335
- /* @__PURE__ */ jsxs24("div", { className: "px-6 py-4 border-t border-slate-100 flex items-center justify-end gap-3 bg-slate-50/50", children: [
12336
- /* @__PURE__ */ jsx30(
12395
+ /* @__PURE__ */ jsxs25("div", { className: "px-6 py-4 border-t border-slate-100 flex items-center justify-end gap-3 bg-slate-50/50", children: [
12396
+ /* @__PURE__ */ jsx31(
12337
12397
  "button",
12338
12398
  {
12339
12399
  type: "button",
@@ -12343,19 +12403,19 @@ function CreateTemplateModal({
12343
12403
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
12344
12404
  }
12345
12405
  ),
12346
- /* @__PURE__ */ jsx30(
12406
+ /* @__PURE__ */ jsx31(
12347
12407
  "button",
12348
12408
  {
12349
12409
  type: "submit",
12350
12410
  disabled: !canSubmit,
12351
12411
  className: `inline-flex items-center gap-2 px-5 py-2 text-xs font-semibold text-white rounded-xl shadow-xs transition-all cursor-pointer active:scale-[0.98] ${canSubmit ? "bg-emerald-600 hover:bg-emerald-700" : "bg-slate-300 text-slate-500 cursor-not-allowed opacity-60"}`,
12352
12412
  title: !canSubmit ? fileError || validationResult.errors[0] || "\u05D9\u05E9 \u05DC\u05D4\u05E9\u05DC\u05D9\u05DD \u05D0\u05EA \u05DB\u05DC \u05E9\u05D3\u05D5\u05EA \u05D4\u05D7\u05D5\u05D1\u05D4 \u05D1\u05D0\u05D5\u05E4\u05DF \u05EA\u05E7\u05D9\u05DF" : "\u05E9\u05DC\u05D7 \u05EA\u05D1\u05E0\u05D9\u05EA \u05DC\u05D0\u05D9\u05E9\u05D5\u05E8 Meta",
12353
- children: isSubmitting ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
12354
- /* @__PURE__ */ jsx30(Loader24, { className: "w-4 h-4 animate-spin" }),
12355
- /* @__PURE__ */ jsx30("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
12356
- ] }) : /* @__PURE__ */ jsxs24(Fragment6, { children: [
12357
- /* @__PURE__ */ jsx30(CheckCircle22, { className: "w-4 h-4" }),
12358
- /* @__PURE__ */ jsx30("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
12413
+ children: isSubmitting ? /* @__PURE__ */ jsxs25(Fragment6, { children: [
12414
+ /* @__PURE__ */ jsx31(Loader24, { className: "w-4 h-4 animate-spin" }),
12415
+ /* @__PURE__ */ jsx31("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
12416
+ ] }) : /* @__PURE__ */ jsxs25(Fragment6, { children: [
12417
+ /* @__PURE__ */ jsx31(CheckCircle22, { className: "w-4 h-4" }),
12418
+ /* @__PURE__ */ jsx31("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
12359
12419
  ] })
12360
12420
  }
12361
12421
  )
@@ -15063,7 +15123,7 @@ import {
15063
15123
  CheckCircle2 as CheckCircle23,
15064
15124
  AlertCircle as AlertCircle3
15065
15125
  } from "lucide-react";
15066
- import { Fragment as Fragment7, jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
15126
+ import { Fragment as Fragment7, jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
15067
15127
  function TemplateSelectionBlock({
15068
15128
  selectedTemplate,
15069
15129
  selectedTemplateId,
@@ -15090,15 +15150,15 @@ function TemplateSelectionBlock({
15090
15150
  handleFileUpload
15091
15151
  }) {
15092
15152
  const fileInputRef = useRef20(null);
15093
- return /* @__PURE__ */ jsxs25("div", { className: "col-span-12 lg:col-span-5 min-h-[26rem] h-full flex flex-col bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 relative", children: [
15094
- /* @__PURE__ */ jsxs25("div", { className: "space-y-1.5 shrink-0", children: [
15095
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between pb-1.5 border-b border-slate-200/70 shrink-0 gap-2", children: [
15096
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 min-w-0", children: [
15097
- /* @__PURE__ */ jsx31(FileText3, { className: "w-4 h-4 text-emerald-600 shrink-0" }),
15098
- /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-slate-800 truncate", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05D5\u05EA\u05D5\u05DB\u05DF \u05D4\u05D5\u05D3\u05E2\u05D4" })
15153
+ return /* @__PURE__ */ jsxs26("div", { className: "col-span-12 lg:col-span-5 min-h-[26rem] h-full flex flex-col bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 relative", children: [
15154
+ /* @__PURE__ */ jsxs26("div", { className: "space-y-1.5 shrink-0", children: [
15155
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between pb-1.5 border-b border-slate-200/70 shrink-0 gap-2", children: [
15156
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1.5 min-w-0", children: [
15157
+ /* @__PURE__ */ jsx32(FileText3, { className: "w-4 h-4 text-emerald-600 shrink-0" }),
15158
+ /* @__PURE__ */ jsx32("span", { className: "text-xs font-bold text-slate-800 truncate", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05D5\u05EA\u05D5\u05DB\u05DF \u05D4\u05D5\u05D3\u05E2\u05D4" })
15099
15159
  ] }),
15100
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 shrink-0", children: [
15101
- /* @__PURE__ */ jsxs25(
15160
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1.5 shrink-0", children: [
15161
+ /* @__PURE__ */ jsxs26(
15102
15162
  "button",
15103
15163
  {
15104
15164
  type: "button",
@@ -15107,12 +15167,12 @@ function TemplateSelectionBlock({
15107
15167
  className: `h-7 px-2 text-[11px] font-semibold rounded-lg border transition-all flex items-center gap-1 ${selectedTemplate && !isDeleting ? "bg-white text-rose-600 hover:bg-rose-50 border-rose-200 active:scale-[0.98] shadow-2xs cursor-pointer" : "bg-slate-100 text-slate-400 border-slate-200 cursor-not-allowed opacity-60"}`,
15108
15168
  title: !selectedTemplate ? "\u05D1\u05D7\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05DB\u05D3\u05D9 \u05DC\u05DE\u05D7\u05D5\u05E7 \u05D0\u05D5\u05EA\u05D4" : `\u05DE\u05D7\u05E7 \u05D0\u05EA \u05D4\u05EA\u05D1\u05E0\u05D9\u05EA "${selectedTemplate.name}"`,
15109
15169
  children: [
15110
- isDeleting ? /* @__PURE__ */ jsx31(Loader25, { className: "w-3.5 h-3.5 animate-spin text-rose-500" }) : /* @__PURE__ */ jsx31(Trash23, { className: "w-3.5 h-3.5 text-rose-500" }),
15111
- /* @__PURE__ */ jsx31("span", { children: "\u05DE\u05D7\u05D9\u05E7\u05D4" })
15170
+ isDeleting ? /* @__PURE__ */ jsx32(Loader25, { className: "w-3.5 h-3.5 animate-spin text-rose-500" }) : /* @__PURE__ */ jsx32(Trash23, { className: "w-3.5 h-3.5 text-rose-500" }),
15171
+ /* @__PURE__ */ jsx32("span", { children: "\u05DE\u05D7\u05D9\u05E7\u05D4" })
15112
15172
  ]
15113
15173
  }
15114
15174
  ),
15115
- /* @__PURE__ */ jsxs25(
15175
+ /* @__PURE__ */ jsxs26(
15116
15176
  "button",
15117
15177
  {
15118
15178
  type: "button",
@@ -15120,40 +15180,40 @@ function TemplateSelectionBlock({
15120
15180
  className: "h-7 px-2.5 text-[11px] font-semibold text-white bg-emerald-600 hover:bg-emerald-700 active:scale-[0.98] rounded-lg shadow-2xs transition-all flex items-center gap-1 cursor-pointer",
15121
15181
  title: "\u05E6\u05D5\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4",
15122
15182
  children: [
15123
- /* @__PURE__ */ jsx31(Plus2, { className: "w-3.5 h-3.5" }),
15124
- /* @__PURE__ */ jsx31("span", { children: "\u05D7\u05D3\u05E9" })
15183
+ /* @__PURE__ */ jsx32(Plus2, { className: "w-3.5 h-3.5" }),
15184
+ /* @__PURE__ */ jsx32("span", { children: "\u05D7\u05D3\u05E9" })
15125
15185
  ]
15126
15186
  }
15127
15187
  )
15128
15188
  ] })
15129
15189
  ] }),
15130
- /* @__PURE__ */ jsxs25("div", { className: "relative", children: [
15131
- /* @__PURE__ */ jsxs25(
15190
+ /* @__PURE__ */ jsxs26("div", { className: "relative", children: [
15191
+ /* @__PURE__ */ jsxs26(
15132
15192
  "button",
15133
15193
  {
15134
15194
  type: "button",
15135
15195
  onClick: () => setIsDropdownOpen((prev) => !prev),
15136
15196
  className: "w-full h-8.5 px-3 bg-white hover:bg-slate-100/70 border border-slate-200 rounded-xl text-right flex items-center justify-between transition-colors cursor-pointer text-xs",
15137
15197
  children: [
15138
- selectedTemplate ? /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15139
- /* @__PURE__ */ jsx31(
15198
+ selectedTemplate ? /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15199
+ /* @__PURE__ */ jsx32(
15140
15200
  "span",
15141
15201
  {
15142
15202
  className: `w-2 h-2 rounded-full shrink-0 ${getStatusConfig(selectedTemplate.status).dotColor}`
15143
15203
  }
15144
15204
  ),
15145
- /* @__PURE__ */ jsx31("span", { className: "text-xs font-semibold text-slate-900 truncate", children: selectedTemplate.name }),
15146
- /* @__PURE__ */ jsxs25("span", { className: "text-[10px] text-slate-400 shrink-0", children: [
15205
+ /* @__PURE__ */ jsx32("span", { className: "text-xs font-semibold text-slate-900 truncate", children: selectedTemplate.name }),
15206
+ /* @__PURE__ */ jsxs26("span", { className: "text-[10px] text-slate-400 shrink-0", children: [
15147
15207
  "(",
15148
15208
  selectedTemplate.category,
15149
15209
  " \u2022 ",
15150
15210
  selectedTemplate.language,
15151
15211
  ")"
15152
15212
  ] })
15153
- ] }) : /* @__PURE__ */ jsx31("span", { className: "text-xs text-slate-400", children: "\u05D1\u05D7\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05E7\u05D9\u05D9\u05DE\u05EA \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4..." }),
15154
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 shrink-0 mr-1", children: [
15155
- isLoadingTemplates && /* @__PURE__ */ jsx31(Loader25, { className: "w-3.5 h-3.5 text-emerald-600 animate-spin" }),
15156
- /* @__PURE__ */ jsx31(
15213
+ ] }) : /* @__PURE__ */ jsx32("span", { className: "text-xs text-slate-400", children: "\u05D1\u05D7\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05E7\u05D9\u05D9\u05DE\u05EA \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4..." }),
15214
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1.5 shrink-0 mr-1", children: [
15215
+ isLoadingTemplates && /* @__PURE__ */ jsx32(Loader25, { className: "w-3.5 h-3.5 text-emerald-600 animate-spin" }),
15216
+ /* @__PURE__ */ jsx32(
15157
15217
  ChevronDown4,
15158
15218
  {
15159
15219
  className: `w-3.5 h-3.5 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}`
@@ -15163,21 +15223,21 @@ function TemplateSelectionBlock({
15163
15223
  ]
15164
15224
  }
15165
15225
  ),
15166
- isDropdownOpen && /* @__PURE__ */ jsxs25(Fragment7, { children: [
15167
- /* @__PURE__ */ jsx31(
15226
+ isDropdownOpen && /* @__PURE__ */ jsxs26(Fragment7, { children: [
15227
+ /* @__PURE__ */ jsx32(
15168
15228
  "div",
15169
15229
  {
15170
15230
  className: "fixed inset-0 z-40",
15171
15231
  onClick: () => setIsDropdownOpen(false)
15172
15232
  }
15173
15233
  ),
15174
- /* @__PURE__ */ jsxs25("div", { className: "absolute top-full left-0 right-0 mt-1 bg-white border border-slate-200 rounded-xl shadow-xl z-50 max-h-52 overflow-y-auto divide-y divide-slate-100 animate-in fade-in-50 zoom-in-95 duration-100", children: [
15175
- templates.length === 0 && !isLoadingTemplates && /* @__PURE__ */ jsx31("div", { className: "p-3 text-center text-xs text-slate-400", children: '\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA. \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05E6\u05D5\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4".' }),
15234
+ /* @__PURE__ */ jsxs26("div", { className: "absolute top-full left-0 right-0 mt-1 bg-white border border-slate-200 rounded-xl shadow-xl z-50 max-h-52 overflow-y-auto divide-y divide-slate-100 animate-in fade-in-50 zoom-in-95 duration-100", children: [
15235
+ templates.length === 0 && !isLoadingTemplates && /* @__PURE__ */ jsx32("div", { className: "p-3 text-center text-xs text-slate-400", children: '\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA. \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05E6\u05D5\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4".' }),
15176
15236
  templates.map((tpl) => {
15177
15237
  const statusConfig = getStatusConfig(tpl.status);
15178
15238
  const isSelected = tpl.id === selectedTemplateId;
15179
15239
  const canSelect = statusConfig.isSelectable;
15180
- return /* @__PURE__ */ jsxs25(
15240
+ return /* @__PURE__ */ jsxs26(
15181
15241
  "div",
15182
15242
  {
15183
15243
  onClick: () => {
@@ -15190,29 +15250,29 @@ function TemplateSelectionBlock({
15190
15250
  className: `p-2.5 flex items-center justify-between gap-2.5 transition-colors ${canSelect ? "hover:bg-slate-50 cursor-pointer" : "opacity-60 bg-slate-50/60 cursor-not-allowed"} ${isSelected ? "bg-emerald-50/50" : ""}`,
15191
15251
  title: !canSelect ? `\u05E1\u05D8\u05D8\u05D5\u05E1 \u05EA\u05D1\u05E0\u05D9\u05EA: ${tpl.status}. \u05E8\u05E7 \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA \u05D1\u05DE\u05E6\u05D1 \u05DE\u05D0\u05D5\u05E9\u05E8 \u05D0\u05D5 \u05E4\u05E2\u05D9\u05DC \u05E0\u05D9\u05EA\u05E0\u05D5\u05EA \u05DC\u05D1\u05D7\u05D9\u05E8\u05D4.` : void 0,
15192
15252
  children: [
15193
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15194
- /* @__PURE__ */ jsx31(
15253
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15254
+ /* @__PURE__ */ jsx32(
15195
15255
  "span",
15196
15256
  {
15197
15257
  className: `w-2 h-2 rounded-full shrink-0 ${statusConfig.dotColor}`
15198
15258
  }
15199
15259
  ),
15200
- /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
15201
- /* @__PURE__ */ jsx31(
15260
+ /* @__PURE__ */ jsxs26("div", { className: "overflow-hidden", children: [
15261
+ /* @__PURE__ */ jsx32(
15202
15262
  "p",
15203
15263
  {
15204
15264
  className: `text-xs font-semibold truncate ${isSelected ? "text-emerald-700" : canSelect ? "text-slate-800" : "text-slate-500"}`,
15205
15265
  children: tpl.name
15206
15266
  }
15207
15267
  ),
15208
- /* @__PURE__ */ jsxs25("p", { className: "text-[10px] text-slate-400", children: [
15268
+ /* @__PURE__ */ jsxs26("p", { className: "text-[10px] text-slate-400", children: [
15209
15269
  tpl.category,
15210
15270
  " \u2022 ",
15211
15271
  tpl.language
15212
15272
  ] })
15213
15273
  ] })
15214
15274
  ] }),
15215
- /* @__PURE__ */ jsx31(
15275
+ /* @__PURE__ */ jsx32(
15216
15276
  "span",
15217
15277
  {
15218
15278
  className: `text-[9px] font-semibold px-2 py-0.5 rounded-full border shrink-0 ${statusConfig.badgeBg} ${statusConfig.badgeText}`,
@@ -15228,18 +15288,18 @@ function TemplateSelectionBlock({
15228
15288
  ] })
15229
15289
  ] })
15230
15290
  ] }),
15231
- /* @__PURE__ */ jsxs25("div", { className: "flex-1 min-h-0 flex flex-col gap-2", children: [
15232
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-600 shrink-0", children: [
15233
- /* @__PURE__ */ jsx31("span", { children: "\u05EA\u05E6\u05D5\u05D2\u05EA \u05D4\u05D5\u05D3\u05E2\u05D4" }),
15234
- selectedTemplate && /* @__PURE__ */ jsxs25("span", { className: "text-[10px] text-slate-400", children: [
15291
+ /* @__PURE__ */ jsxs26("div", { className: "flex-1 min-h-0 flex flex-col gap-2", children: [
15292
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-600 shrink-0", children: [
15293
+ /* @__PURE__ */ jsx32("span", { children: "\u05EA\u05E6\u05D5\u05D2\u05EA \u05D4\u05D5\u05D3\u05E2\u05D4" }),
15294
+ selectedTemplate && /* @__PURE__ */ jsxs26("span", { className: "text-[10px] text-slate-400", children: [
15235
15295
  "(",
15236
15296
  templateBodyText.length,
15237
15297
  " \u05EA\u05D5\u05D5\u05D9\u05DD)"
15238
15298
  ] })
15239
15299
  ] }),
15240
- selectedTemplate ? /* @__PURE__ */ jsx31("div", { className: "flex-1 min-h-0 overflow-y-auto bg-white border border-slate-200 rounded-lg p-3 text-sm text-slate-700 leading-relaxed font-sans whitespace-pre-wrap select-all shadow-2xs", children: templateBodyText || "(\u05D2\u05D5\u05E3 \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E8\u05D9\u05E7)" }) : /* @__PURE__ */ jsxs25("div", { className: "flex-1 min-h-0 py-3 bg-white border border-dashed border-slate-200 rounded-lg text-center text-sm text-slate-400 flex flex-col items-center justify-center gap-0.5", children: [
15241
- /* @__PURE__ */ jsx31("span", { children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" }),
15242
- /* @__PURE__ */ jsx31("span", { className: "text-xs text-slate-400", children: '\u05D1\u05D7\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05D0\u05D5 \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05D7\u05D3\u05E9"' })
15300
+ selectedTemplate ? /* @__PURE__ */ jsx32("div", { className: "flex-1 min-h-0 overflow-y-auto bg-white border border-slate-200 rounded-lg p-3 text-sm text-slate-700 leading-relaxed font-sans whitespace-pre-wrap select-all shadow-2xs", children: templateBodyText || "(\u05D2\u05D5\u05E3 \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E8\u05D9\u05E7)" }) : /* @__PURE__ */ jsxs26("div", { className: "flex-1 min-h-0 py-3 bg-white border border-dashed border-slate-200 rounded-lg text-center text-sm text-slate-400 flex flex-col items-center justify-center gap-0.5", children: [
15301
+ /* @__PURE__ */ jsx32("span", { children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" }),
15302
+ /* @__PURE__ */ jsx32("span", { className: "text-xs text-slate-400", children: '\u05D1\u05D7\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05D0\u05D5 \u05DC\u05D7\u05E5 \u05E2\u05DC "+ \u05D7\u05D3\u05E9"' })
15243
15303
  ] }),
15244
15304
  selectedTemplate && (() => {
15245
15305
  var _a;
@@ -15248,19 +15308,19 @@ function TemplateSelectionBlock({
15248
15308
  );
15249
15309
  const tplButtons = (buttonsComp == null ? void 0 : buttonsComp.buttons) || [];
15250
15310
  if (!tplButtons || tplButtons.length === 0) return null;
15251
- return /* @__PURE__ */ jsx31("div", { className: "flex flex-wrap gap-1.5 shrink-0 pt-0.5", children: tplButtons.map((btn, idx) => {
15311
+ return /* @__PURE__ */ jsx32("div", { className: "flex flex-wrap gap-1.5 shrink-0 pt-0.5", children: tplButtons.map((btn, idx) => {
15252
15312
  const btnType = (btn.type || "").toUpperCase();
15253
15313
  const btnText = btn.text || (btnType === "COPY_CODE" ? `\u05D4\u05E2\u05EA\u05E7 \u05E7\u05D5\u05D3: ${btn.example}` : "\u05DB\u05E4\u05EA\u05D5\u05E8");
15254
- return /* @__PURE__ */ jsxs25(
15314
+ return /* @__PURE__ */ jsxs26(
15255
15315
  "div",
15256
15316
  {
15257
15317
  className: "inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-white border border-slate-200/90 text-slate-700 text-xs font-semibold shadow-2xs select-none",
15258
15318
  children: [
15259
- btnType === "QUICK_REPLY" && /* @__PURE__ */ jsx31(MessageSquare2, { className: "w-3 h-3 text-emerald-600" }),
15260
- btnType === "URL" && /* @__PURE__ */ jsx31(ExternalLink4, { className: "w-3 h-3 text-sky-600" }),
15261
- btnType === "PHONE_NUMBER" && /* @__PURE__ */ jsx31(Phone2, { className: "w-3 h-3 text-violet-600" }),
15262
- btnType === "COPY_CODE" && /* @__PURE__ */ jsx31(Copy4, { className: "w-3 h-3 text-amber-600" }),
15263
- /* @__PURE__ */ jsx31("span", { className: "truncate max-w-[180px]", children: btnText })
15319
+ btnType === "QUICK_REPLY" && /* @__PURE__ */ jsx32(MessageSquare2, { className: "w-3 h-3 text-emerald-600" }),
15320
+ btnType === "URL" && /* @__PURE__ */ jsx32(ExternalLink4, { className: "w-3 h-3 text-sky-600" }),
15321
+ btnType === "PHONE_NUMBER" && /* @__PURE__ */ jsx32(Phone2, { className: "w-3 h-3 text-violet-600" }),
15322
+ btnType === "COPY_CODE" && /* @__PURE__ */ jsx32(Copy4, { className: "w-3 h-3 text-amber-600" }),
15323
+ /* @__PURE__ */ jsx32("span", { className: "truncate max-w-[180px]", children: btnText })
15264
15324
  ]
15265
15325
  },
15266
15326
  idx
@@ -15275,9 +15335,9 @@ function TemplateSelectionBlock({
15275
15335
  const docFilename = resolveDocumentFilename(templateHeaderComp, headerMediaUrl);
15276
15336
  const hasValidMedia = Boolean(headerMediaUrl && headerMediaUrl.trim() && headerMediaUrl.startsWith("http"));
15277
15337
  const uploadButtonLabel = headerFormat === "DOCUMENT" ? "\u05D4\u05E2\u05DC\u05D4 \u05DE\u05E1\u05DE\u05DA" : headerFormat === "IMAGE" ? "\u05D4\u05E2\u05DC\u05D4 \u05EA\u05DE\u05D5\u05E0\u05D4" : "\u05D4\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5";
15278
- return /* @__PURE__ */ jsxs25("div", { className: "p-2.5 bg-slate-50 border border-slate-200/90 rounded-xl flex items-center justify-between gap-3 shrink-0 shadow-2xs", children: [
15279
- /* @__PURE__ */ jsx31("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs25(Fragment7, { children: [
15280
- /* @__PURE__ */ jsx31("div", { className: "w-8 h-8 rounded-lg overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: hasValidMedia ? /* @__PURE__ */ jsx31(
15338
+ return /* @__PURE__ */ jsxs26("div", { className: "p-2.5 bg-slate-50 border border-slate-200/90 rounded-xl flex items-center justify-between gap-3 shrink-0 shadow-2xs", children: [
15339
+ /* @__PURE__ */ jsx32("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs26(Fragment7, { children: [
15340
+ /* @__PURE__ */ jsx32("div", { className: "w-8 h-8 rounded-lg overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: hasValidMedia ? /* @__PURE__ */ jsx32(
15281
15341
  "img",
15282
15342
  {
15283
15343
  src: headerMediaUrl,
@@ -15287,33 +15347,33 @@ function TemplateSelectionBlock({
15287
15347
  e.currentTarget.style.display = "none";
15288
15348
  }
15289
15349
  }
15290
- ) : /* @__PURE__ */ jsx31(ImageIcon2, { className: "w-4 h-4 text-amber-600" }) }),
15291
- /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
15292
- /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15293
- /* @__PURE__ */ jsx31("span", { className: "text-[10px] text-slate-400 block truncate", children: hasValidMedia ? "\u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4 \u05DE\u05E7\u05D5\u05E9\u05E8 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA" : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4" })
15350
+ ) : /* @__PURE__ */ jsx32(ImageIcon2, { className: "w-4 h-4 text-amber-600" }) }),
15351
+ /* @__PURE__ */ jsxs26("div", { className: "overflow-hidden", children: [
15352
+ /* @__PURE__ */ jsx32("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15353
+ /* @__PURE__ */ jsx32("span", { className: "text-[10px] text-slate-400 block truncate", children: hasValidMedia ? "\u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4 \u05DE\u05E7\u05D5\u05E9\u05E8 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA" : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05EA\u05DE\u05D5\u05E0\u05D4" })
15294
15354
  ] })
15295
- ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs25(Fragment7, { children: [
15296
- /* @__PURE__ */ jsx31("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-rose-50 text-rose-600 border-rose-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx31(FileText3, { className: "w-4 h-4" }) }),
15297
- /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
15298
- /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
15299
- /* @__PURE__ */ jsx31("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: hasValidMedia ? docFilename : void 0, children: hasValidMedia ? docFilename : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05DE\u05E1\u05DE\u05DA" })
15355
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs26(Fragment7, { children: [
15356
+ /* @__PURE__ */ jsx32("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-rose-50 text-rose-600 border-rose-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx32(FileText3, { className: "w-4 h-4" }) }),
15357
+ /* @__PURE__ */ jsxs26("div", { className: "overflow-hidden", children: [
15358
+ /* @__PURE__ */ jsx32("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
15359
+ /* @__PURE__ */ jsx32("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: hasValidMedia ? docFilename : void 0, children: hasValidMedia ? docFilename : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05DE\u05E1\u05DE\u05DA" })
15300
15360
  ] })
15301
- ] }) : /* @__PURE__ */ jsxs25(Fragment7, { children: [
15302
- /* @__PURE__ */ jsx31("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-indigo-50 text-indigo-600 border-indigo-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx31(Video2, { className: "w-4 h-4" }) }),
15303
- /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden", children: [
15304
- /* @__PURE__ */ jsx31("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15305
- /* @__PURE__ */ jsx31("span", { className: "text-[10px] text-slate-400 block truncate", children: hasValidMedia ? "\u05E7\u05D5\u05D1\u05E5 \u05D5\u05D9\u05D3\u05D0\u05D5 \u05DE\u05E7\u05D5\u05E9\u05E8 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA" : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05D5\u05D9\u05D3\u05D0\u05D5" })
15361
+ ] }) : /* @__PURE__ */ jsxs26(Fragment7, { children: [
15362
+ /* @__PURE__ */ jsx32("div", { className: `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border ${hasValidMedia ? "bg-indigo-50 text-indigo-600 border-indigo-100" : "bg-slate-100 text-slate-400 border-slate-200"}`, children: /* @__PURE__ */ jsx32(Video2, { className: "w-4 h-4" }) }),
15363
+ /* @__PURE__ */ jsxs26("div", { className: "overflow-hidden", children: [
15364
+ /* @__PURE__ */ jsx32("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15365
+ /* @__PURE__ */ jsx32("span", { className: "text-[10px] text-slate-400 block truncate", children: hasValidMedia ? "\u05E7\u05D5\u05D1\u05E5 \u05D5\u05D9\u05D3\u05D0\u05D5 \u05DE\u05E7\u05D5\u05E9\u05E8 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA" : "\u05D8\u05E8\u05DD \u05D4\u05D5\u05E2\u05DC\u05D4 \u05E7\u05D5\u05D1\u05E5 \u05D5\u05D9\u05D3\u05D0\u05D5" })
15306
15366
  ] })
15307
15367
  ] }) }),
15308
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 shrink-0", children: [
15309
- hasValidMedia ? /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 text-[10px] font-medium text-emerald-800 px-2 py-0.5 bg-emerald-50 border border-emerald-200 rounded-lg", children: [
15310
- /* @__PURE__ */ jsx31(CheckCircle23, { className: "w-3 h-3 text-emerald-600" }),
15368
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2 shrink-0", children: [
15369
+ hasValidMedia ? /* @__PURE__ */ jsxs26("span", { className: "inline-flex items-center gap-1 text-[10px] font-medium text-emerald-800 px-2 py-0.5 bg-emerald-50 border border-emerald-200 rounded-lg", children: [
15370
+ /* @__PURE__ */ jsx32(CheckCircle23, { className: "w-3 h-3 text-emerald-600" }),
15311
15371
  "\u05E7\u05D5\u05D1\u05E5 \u05DE\u05E6\u05D5\u05E8\u05E3 \u05EA\u05E7\u05D9\u05DF"
15312
- ] }) : /* @__PURE__ */ jsxs25("span", { className: "inline-flex items-center gap-1 text-[10px] font-semibold text-amber-800 px-2 py-0.5 bg-amber-50 border border-amber-200 rounded-lg", children: [
15313
- /* @__PURE__ */ jsx31(AlertCircle3, { className: "w-3 h-3 text-amber-600 shrink-0" }),
15372
+ ] }) : /* @__PURE__ */ jsxs26("span", { className: "inline-flex items-center gap-1 text-[10px] font-semibold text-amber-800 px-2 py-0.5 bg-amber-50 border border-amber-200 rounded-lg", children: [
15373
+ /* @__PURE__ */ jsx32(AlertCircle3, { className: "w-3 h-3 text-amber-600 shrink-0" }),
15314
15374
  "\u05E0\u05D3\u05E8\u05E9 \u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5"
15315
15375
  ] }),
15316
- hasValidMedia && /* @__PURE__ */ jsx31(
15376
+ hasValidMedia && /* @__PURE__ */ jsx32(
15317
15377
  "a",
15318
15378
  {
15319
15379
  href: headerMediaUrl,
@@ -15321,10 +15381,10 @@ function TemplateSelectionBlock({
15321
15381
  rel: "noopener noreferrer",
15322
15382
  title: "\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05E9\u05DC \u05D4\u05E7\u05D5\u05D1\u05E5",
15323
15383
  className: "p-1 text-slate-400 hover:text-emerald-700 hover:bg-slate-200/60 rounded-md transition-colors",
15324
- children: /* @__PURE__ */ jsx31(ExternalLink4, { className: "w-3.5 h-3.5" })
15384
+ children: /* @__PURE__ */ jsx32(ExternalLink4, { className: "w-3.5 h-3.5" })
15325
15385
  }
15326
15386
  ),
15327
- /* @__PURE__ */ jsx31(
15387
+ /* @__PURE__ */ jsx32(
15328
15388
  "input",
15329
15389
  {
15330
15390
  ref: fileInputRef,
@@ -15342,7 +15402,7 @@ function TemplateSelectionBlock({
15342
15402
  disabled: isUploadingMedia
15343
15403
  }
15344
15404
  ),
15345
- /* @__PURE__ */ jsx31(
15405
+ /* @__PURE__ */ jsx32(
15346
15406
  "button",
15347
15407
  {
15348
15408
  type: "button",
@@ -15353,39 +15413,39 @@ function TemplateSelectionBlock({
15353
15413
  },
15354
15414
  className: `inline-flex items-center gap-1.5 px-2.5 py-1 text-[11px] font-medium rounded-lg transition-colors border shadow-2xs ${isUploadingMedia ? "bg-slate-100 text-slate-400 border-slate-200 cursor-not-allowed" : hasValidMedia ? "bg-white text-slate-700 hover:bg-slate-50 border-slate-200 hover:border-slate-300" : "bg-emerald-600 text-white hover:bg-emerald-700 border-emerald-600"}`,
15355
15415
  title: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DE\u05D3\u05D9\u05D4 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5" : `${uploadButtonLabel} \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5`,
15356
- children: isUploadingMedia ? /* @__PURE__ */ jsxs25(Fragment7, { children: [
15357
- /* @__PURE__ */ jsx31(Loader25, { className: "w-3.5 h-3.5 animate-spin" }),
15358
- /* @__PURE__ */ jsx31("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
15359
- ] }) : /* @__PURE__ */ jsxs25(Fragment7, { children: [
15360
- /* @__PURE__ */ jsx31(Upload3, { className: "w-3.5 h-3.5" }),
15361
- /* @__PURE__ */ jsx31("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
15416
+ children: isUploadingMedia ? /* @__PURE__ */ jsxs26(Fragment7, { children: [
15417
+ /* @__PURE__ */ jsx32(Loader25, { className: "w-3.5 h-3.5 animate-spin" }),
15418
+ /* @__PURE__ */ jsx32("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
15419
+ ] }) : /* @__PURE__ */ jsxs26(Fragment7, { children: [
15420
+ /* @__PURE__ */ jsx32(Upload3, { className: "w-3.5 h-3.5" }),
15421
+ /* @__PURE__ */ jsx32("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
15362
15422
  ] })
15363
15423
  }
15364
15424
  )
15365
15425
  ] })
15366
15426
  ] });
15367
15427
  })(),
15368
- selectedTemplate && templateVariables.length > 0 && /* @__PURE__ */ jsxs25("div", { className: "shrink-0 flex flex-col gap-1.5 pt-2 border-t border-slate-200/80 pb-0", children: [
15369
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center justify-between shrink-0", children: [
15370
- /* @__PURE__ */ jsx31("span", { className: "text-[11px] font-bold text-slate-700", children: "\u05DE\u05D9\u05E4\u05D5\u05D9 \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD" }),
15371
- /* @__PURE__ */ jsxs25("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 px-1.5 py-0.5 rounded border border-emerald-200", children: [
15428
+ selectedTemplate && templateVariables.length > 0 && /* @__PURE__ */ jsxs26("div", { className: "shrink-0 flex flex-col gap-1.5 pt-2 border-t border-slate-200/80 pb-0", children: [
15429
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between shrink-0", children: [
15430
+ /* @__PURE__ */ jsx32("span", { className: "text-[11px] font-bold text-slate-700", children: "\u05DE\u05D9\u05E4\u05D5\u05D9 \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD" }),
15431
+ /* @__PURE__ */ jsxs26("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 px-1.5 py-0.5 rounded border border-emerald-200", children: [
15372
15432
  templateVariables.length,
15373
15433
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
15374
15434
  ] })
15375
15435
  ] }),
15376
- /* @__PURE__ */ jsx31("div", { className: "max-h-48 overflow-y-auto space-y-1.5 pr-0.5", children: templateVariables.map((varKey) => {
15436
+ /* @__PURE__ */ jsx32("div", { className: "max-h-48 overflow-y-auto space-y-1.5 pr-0.5", children: templateVariables.map((varKey) => {
15377
15437
  var _a;
15378
15438
  const mapping = variableMapping[varKey] || { type: "column", value: "" };
15379
15439
  const isStatic = mapping.type === "static";
15380
15440
  const selectedColVal = textableColumnOptions.some((o) => o.id === mapping.value) ? mapping.value : ((_a = textableColumnOptions.find((o) => o.columnName === mapping.value)) == null ? void 0 : _a.id) || mapping.value || "";
15381
- return /* @__PURE__ */ jsxs25(
15441
+ return /* @__PURE__ */ jsxs26(
15382
15442
  "div",
15383
15443
  {
15384
15444
  className: "flex items-center gap-1.5 p-1 bg-white border border-slate-200 rounded-xl text-xs shrink-0",
15385
15445
  children: [
15386
- /* @__PURE__ */ jsx31("span", { className: "px-2 py-0.5 bg-emerald-50 text-emerald-800 font-mono font-bold text-[11px] rounded-lg border border-emerald-200/80 shrink-0", children: `{{${varKey}}}` }),
15387
- /* @__PURE__ */ jsxs25("div", { className: "inline-flex items-center p-0.5 bg-slate-100 rounded-lg border border-slate-200/80 shrink-0 text-[10px] font-medium", children: [
15388
- /* @__PURE__ */ jsx31(
15446
+ /* @__PURE__ */ jsx32("span", { className: "px-2 py-0.5 bg-emerald-50 text-emerald-800 font-mono font-bold text-[11px] rounded-lg border border-emerald-200/80 shrink-0", children: `{{${varKey}}}` }),
15447
+ /* @__PURE__ */ jsxs26("div", { className: "inline-flex items-center p-0.5 bg-slate-100 rounded-lg border border-slate-200/80 shrink-0 text-[10px] font-medium", children: [
15448
+ /* @__PURE__ */ jsx32(
15389
15449
  "button",
15390
15450
  {
15391
15451
  type: "button",
@@ -15394,7 +15454,7 @@ function TemplateSelectionBlock({
15394
15454
  children: "\u05E2\u05DE\u05D5\u05D3\u05D4"
15395
15455
  }
15396
15456
  ),
15397
- /* @__PURE__ */ jsx31(
15457
+ /* @__PURE__ */ jsx32(
15398
15458
  "button",
15399
15459
  {
15400
15460
  type: "button",
@@ -15404,7 +15464,7 @@ function TemplateSelectionBlock({
15404
15464
  }
15405
15465
  )
15406
15466
  ] }),
15407
- isStatic ? /* @__PURE__ */ jsx31(
15467
+ isStatic ? /* @__PURE__ */ jsx32(
15408
15468
  "input",
15409
15469
  {
15410
15470
  type: "text",
@@ -15413,20 +15473,20 @@ function TemplateSelectionBlock({
15413
15473
  placeholder: "\u05D4\u05D6\u05DF \u05E2\u05E8\u05DA \u05E7\u05D1\u05D5\u05E2 (\u05D7\u05D5\u05D1\u05D4)...",
15414
15474
  className: `flex-1 min-w-0 h-7 px-2 text-[11px] rounded-lg border bg-white text-slate-800 placeholder:text-slate-400 focus:outline-none transition-colors ${!mapping.value || mapping.value.trim() === "" ? "border-amber-300 focus:border-amber-500 focus:ring-1 focus:ring-amber-500/20" : "border-slate-200 focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500/20"}`
15415
15475
  }
15416
- ) : /* @__PURE__ */ jsxs25("div", { className: "relative flex-1 min-w-0", children: [
15417
- /* @__PURE__ */ jsxs25(
15476
+ ) : /* @__PURE__ */ jsxs26("div", { className: "relative flex-1 min-w-0", children: [
15477
+ /* @__PURE__ */ jsxs26(
15418
15478
  "select",
15419
15479
  {
15420
15480
  value: selectedColVal,
15421
15481
  onChange: (e) => handleVariableValueChange(varKey, e.target.value),
15422
15482
  className: "w-full h-7 pr-2.5 pl-6 text-[11px] rounded-lg border border-slate-200 bg-white text-slate-700 focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500/20 cursor-pointer truncate appearance-none",
15423
15483
  children: [
15424
- /* @__PURE__ */ jsx31("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15425
- textableColumnOptions.map((opt) => /* @__PURE__ */ jsx31("option", { value: opt.id, children: opt.label }, opt.id))
15484
+ /* @__PURE__ */ jsx32("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15485
+ textableColumnOptions.map((opt) => /* @__PURE__ */ jsx32("option", { value: opt.id, children: opt.label }, opt.id))
15426
15486
  ]
15427
15487
  }
15428
15488
  ),
15429
- /* @__PURE__ */ jsx31(ChevronDown4, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15489
+ /* @__PURE__ */ jsx32(ChevronDown4, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15430
15490
  ] })
15431
15491
  ]
15432
15492
  },
@@ -15446,7 +15506,7 @@ import {
15446
15506
  CheckSquare,
15447
15507
  RefreshCw
15448
15508
  } from "lucide-react";
15449
- import { Fragment as Fragment8, jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
15509
+ import { Fragment as Fragment8, jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
15450
15510
  function DynamicFiltersBlock({
15451
15511
  filterableColumns,
15452
15512
  filters,
@@ -15461,31 +15521,31 @@ function DynamicFiltersBlock({
15461
15521
  loadTableData,
15462
15522
  isLoadingTableData
15463
15523
  }) {
15464
- return /* @__PURE__ */ jsxs26("div", { className: "col-span-12 lg:col-span-3 min-h-[26rem] h-full flex flex-col justify-between bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 gap-2", children: [
15465
- /* @__PURE__ */ jsxs26("div", { className: "space-y-2", children: [
15466
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: [
15467
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2", children: [
15468
- /* @__PURE__ */ jsx32(Filter3, { className: "w-4 h-4 text-emerald-600" }),
15469
- /* @__PURE__ */ jsx32("span", { className: "text-xs font-bold text-slate-800", children: "\u05E1\u05D9\u05E0\u05D5\u05DF \u05D3\u05D9\u05E0\u05DE\u05D9" }),
15470
- activeFiltersCount > 0 && /* @__PURE__ */ jsx32("span", { className: "text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-emerald-100 text-emerald-800 border border-emerald-200", children: activeFiltersCount })
15524
+ return /* @__PURE__ */ jsxs27("div", { className: "col-span-12 lg:col-span-3 min-h-[26rem] h-full flex flex-col justify-between bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 gap-2", children: [
15525
+ /* @__PURE__ */ jsxs27("div", { className: "space-y-2", children: [
15526
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: [
15527
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
15528
+ /* @__PURE__ */ jsx33(Filter3, { className: "w-4 h-4 text-emerald-600" }),
15529
+ /* @__PURE__ */ jsx33("span", { className: "text-xs font-bold text-slate-800", children: "\u05E1\u05D9\u05E0\u05D5\u05DF \u05D3\u05D9\u05E0\u05DE\u05D9" }),
15530
+ activeFiltersCount > 0 && /* @__PURE__ */ jsx33("span", { className: "text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-emerald-100 text-emerald-800 border border-emerald-200", children: activeFiltersCount })
15471
15531
  ] }),
15472
- activeFiltersCount > 0 && /* @__PURE__ */ jsxs26(
15532
+ activeFiltersCount > 0 && /* @__PURE__ */ jsxs27(
15473
15533
  "button",
15474
15534
  {
15475
15535
  type: "button",
15476
15536
  onClick: handleClearFilters,
15477
15537
  className: "text-[11px] text-rose-600 hover:text-rose-700 font-semibold hover:underline flex items-center gap-1 cursor-pointer",
15478
15538
  children: [
15479
- /* @__PURE__ */ jsx32(X10, { className: "w-3 h-3" }),
15480
- /* @__PURE__ */ jsx32("span", { children: "\u05E0\u05E7\u05D4" })
15539
+ /* @__PURE__ */ jsx33(X10, { className: "w-3 h-3" }),
15540
+ /* @__PURE__ */ jsx33("span", { children: "\u05E0\u05E7\u05D4" })
15481
15541
  ]
15482
15542
  }
15483
15543
  )
15484
15544
  ] }),
15485
- /* @__PURE__ */ jsx32("div", { className: "py-1", children: filterableColumns.length === 0 ? /* @__PURE__ */ jsxs26("div", { className: "flex flex-col items-center justify-center text-center p-4 text-xs text-slate-400 gap-1", children: [
15486
- /* @__PURE__ */ jsx32("span", { children: "\u05D0\u05D9\u05DF \u05E9\u05D3\u05D5\u05EA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D6\u05D5" }),
15487
- /* @__PURE__ */ jsx32("span", { className: "text-[10px] text-slate-400", children: "\u05E9\u05D3\u05D5\u05EA \u05DE\u05E1\u05D5\u05D2 \u05E7\u05E9\u05E8 \u05D5\u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05D1\u05DC\u05D1\u05D3" })
15488
- ] }) : /* @__PURE__ */ jsx32("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-2", children: filterableColumns.map((col) => {
15545
+ /* @__PURE__ */ jsx33("div", { className: "py-1", children: filterableColumns.length === 0 ? /* @__PURE__ */ jsxs27("div", { className: "flex flex-col items-center justify-center text-center p-4 text-xs text-slate-400 gap-1", children: [
15546
+ /* @__PURE__ */ jsx33("span", { children: "\u05D0\u05D9\u05DF \u05E9\u05D3\u05D5\u05EA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D6\u05D5" }),
15547
+ /* @__PURE__ */ jsx33("span", { className: "text-[10px] text-slate-400", children: "\u05E9\u05D3\u05D5\u05EA \u05DE\u05E1\u05D5\u05D2 \u05E7\u05E9\u05E8 \u05D5\u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05D1\u05DC\u05D1\u05D3" })
15548
+ ] }) : /* @__PURE__ */ jsx33("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-2", children: filterableColumns.map((col) => {
15489
15549
  var _a, _b, _c;
15490
15550
  const colType = (_a = col.type) == null ? void 0 : _a.toUpperCase();
15491
15551
  const isBoolean = colType === "BOOLEAN";
@@ -15493,9 +15553,9 @@ function DynamicFiltersBlock({
15493
15553
  const isActive = Boolean(currentValue);
15494
15554
  const refTableId = ((_b = col == null ? void 0 : col.config) == null ? void 0 : _b.referencedTableId) || (col == null ? void 0 : col.referencedTableId);
15495
15555
  const options = ((_c = getRelationOptionsForCol ? getRelationOptionsForCol(col.name) : []) == null ? void 0 : _c.length) > 0 ? getRelationOptionsForCol(col.name) : relationOptions[col.name] && relationOptions[col.name].length > 0 ? relationOptions[col.name] : refTableId && relationOptions[refTableId] && relationOptions[refTableId].length > 0 ? relationOptions[refTableId] : col.id && relationOptions[col.id] && relationOptions[col.id].length > 0 ? relationOptions[col.id] : [];
15496
- return /* @__PURE__ */ jsxs26("div", { className: "space-y-1", children: [
15497
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center justify-between", children: [
15498
- /* @__PURE__ */ jsx32(
15556
+ return /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15557
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15558
+ /* @__PURE__ */ jsx33(
15499
15559
  "label",
15500
15560
  {
15501
15561
  className: "text-[11px] font-semibold text-slate-700 truncate max-w-[130px]",
@@ -15503,49 +15563,49 @@ function DynamicFiltersBlock({
15503
15563
  children: col.name
15504
15564
  }
15505
15565
  ),
15506
- /* @__PURE__ */ jsx32("span", { className: "text-[9px] text-slate-400 font-mono", children: isBoolean ? "\u05DB\u05DF/\u05DC\u05D0" : "\u05E7\u05E9\u05E8" })
15566
+ /* @__PURE__ */ jsx33("span", { className: "text-[9px] text-slate-400 font-mono", children: isBoolean ? "\u05DB\u05DF/\u05DC\u05D0" : "\u05E7\u05E9\u05E8" })
15507
15567
  ] }),
15508
- /* @__PURE__ */ jsxs26("div", { className: "relative", children: [
15509
- /* @__PURE__ */ jsxs26(
15568
+ /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15569
+ /* @__PURE__ */ jsxs27(
15510
15570
  "select",
15511
15571
  {
15512
15572
  value: currentValue,
15513
15573
  onChange: (e) => handleFilterChange(col.name, e.target.value),
15514
15574
  className: `w-full h-8 px-2 pr-2.5 pl-6 text-[11px] rounded-lg border transition-all appearance-none bg-white cursor-pointer truncate ${isActive ? "border-emerald-500 bg-emerald-50/20 text-emerald-900 font-medium ring-1 ring-emerald-500/20" : "border-slate-200 text-slate-700 hover:border-slate-300 focus:border-emerald-500"}`,
15515
15575
  children: [
15516
- /* @__PURE__ */ jsx32("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
15517
- isBoolean ? /* @__PURE__ */ jsxs26(Fragment8, { children: [
15518
- /* @__PURE__ */ jsx32("option", { value: "true", children: "\u05DB\u05DF" }),
15519
- /* @__PURE__ */ jsx32("option", { value: "false", children: "\u05DC\u05D0" })
15520
- ] }) : options.map((opt) => /* @__PURE__ */ jsx32("option", { value: opt.id || opt._id, children: getRelationOptionLabel(opt, col, relationOptions) }, opt.id || opt._id))
15576
+ /* @__PURE__ */ jsx33("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
15577
+ isBoolean ? /* @__PURE__ */ jsxs27(Fragment8, { children: [
15578
+ /* @__PURE__ */ jsx33("option", { value: "true", children: "\u05DB\u05DF" }),
15579
+ /* @__PURE__ */ jsx33("option", { value: "false", children: "\u05DC\u05D0" })
15580
+ ] }) : options.map((opt) => /* @__PURE__ */ jsx33("option", { value: opt.id || opt._id, children: getRelationOptionLabel(opt, col, relationOptions) }, opt.id || opt._id))
15521
15581
  ]
15522
15582
  }
15523
15583
  ),
15524
- /* @__PURE__ */ jsx32(ChevronDown5, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15584
+ /* @__PURE__ */ jsx33(ChevronDown5, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15525
15585
  ] })
15526
15586
  ] }, col.name);
15527
15587
  }) }) })
15528
15588
  ] }),
15529
- /* @__PURE__ */ jsxs26("div", { className: "pt-2.5 mt-2 border-t border-slate-200/80 flex items-center justify-between gap-1.5 shrink-0", children: [
15530
- /* @__PURE__ */ jsxs26(
15589
+ /* @__PURE__ */ jsxs27("div", { className: "pt-2.5 mt-2 border-t border-slate-200/80 flex items-center justify-between gap-1.5 shrink-0", children: [
15590
+ /* @__PURE__ */ jsxs27(
15531
15591
  "div",
15532
15592
  {
15533
15593
  className: `inline-flex items-center gap-1 px-2 py-0.5 rounded-lg text-[11px] font-semibold border transition-all ${selectedRowIds.length > 0 ? "bg-emerald-50 text-emerald-800 border-emerald-200 shadow-2xs" : "bg-white text-slate-600 border-slate-200"}`,
15534
15594
  children: [
15535
- /* @__PURE__ */ jsx32(
15595
+ /* @__PURE__ */ jsx33(
15536
15596
  CheckSquare,
15537
15597
  {
15538
15598
  className: `w-3 h-3 ${selectedRowIds.length > 0 ? "text-emerald-600" : "text-slate-400"}`
15539
15599
  }
15540
15600
  ),
15541
- /* @__PURE__ */ jsxs26("span", { children: [
15601
+ /* @__PURE__ */ jsxs27("span", { children: [
15542
15602
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15543
15603
  selectedRowIds.length
15544
15604
  ] })
15545
15605
  ]
15546
15606
  }
15547
15607
  ),
15548
- /* @__PURE__ */ jsx32(
15608
+ /* @__PURE__ */ jsx33(
15549
15609
  "button",
15550
15610
  {
15551
15611
  type: "button",
@@ -15553,7 +15613,7 @@ function DynamicFiltersBlock({
15553
15613
  disabled: isLoadingTableData,
15554
15614
  className: "p-1.5 text-slate-500 hover:text-slate-800 bg-white hover:bg-slate-100 border border-slate-200 rounded-lg transition-colors cursor-pointer disabled:opacity-50 shrink-0",
15555
15615
  title: "\u05E8\u05E2\u05E0\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9 \u05D8\u05D1\u05DC\u05D4",
15556
- children: /* @__PURE__ */ jsx32(
15616
+ children: /* @__PURE__ */ jsx33(
15557
15617
  RefreshCw,
15558
15618
  {
15559
15619
  className: `w-3.5 h-3.5 ${isLoadingTableData ? "animate-spin text-emerald-600" : ""}`
@@ -15576,7 +15636,7 @@ import {
15576
15636
  X as X11,
15577
15637
  CheckSquare as CheckSquare2
15578
15638
  } from "lucide-react";
15579
- import { Fragment as Fragment9, jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
15639
+ import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
15580
15640
  function SettingsAndActionsBlock({
15581
15641
  isScanningPhoneColumns,
15582
15642
  targetPhoneOptions,
@@ -15619,29 +15679,29 @@ function SettingsAndActionsBlock({
15619
15679
  clearBroadcastSummary
15620
15680
  }) {
15621
15681
  var _a;
15622
- return /* @__PURE__ */ jsxs27("div", { className: "col-span-12 lg:col-span-4 min-h-[26rem] flex flex-col justify-between bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 gap-2", children: [
15623
- /* @__PURE__ */ jsxs27("div", { className: "space-y-2", children: [
15624
- /* @__PURE__ */ jsx33("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
15625
- /* @__PURE__ */ jsx33("span", { className: "text-sm", children: "\u2699\uFE0F" }),
15626
- /* @__PURE__ */ jsx33("span", { className: "text-xs font-bold text-slate-800", children: "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D5\u05E4\u05E2\u05D5\u05DC\u05D5\u05EA" })
15682
+ return /* @__PURE__ */ jsxs28("div", { className: "col-span-12 lg:col-span-4 min-h-[26rem] flex flex-col justify-between bg-slate-50/70 border border-slate-200 rounded-2xl p-3.5 gap-2", children: [
15683
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-2", children: [
15684
+ /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2", children: [
15685
+ /* @__PURE__ */ jsx34("span", { className: "text-sm", children: "\u2699\uFE0F" }),
15686
+ /* @__PURE__ */ jsx34("span", { className: "text-xs font-bold text-slate-800", children: "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D5\u05E4\u05E2\u05D5\u05DC\u05D5\u05EA" })
15627
15687
  ] }) }),
15628
- /* @__PURE__ */ jsxs27("div", { className: "space-y-2.5 py-1", children: [
15629
- isScanningPhoneColumns && targetPhoneOptions.length === 0 ? /* @__PURE__ */ jsxs27("div", { className: "p-2.5 bg-slate-100/80 border border-slate-200 rounded-xl text-slate-500 text-xs flex items-center gap-2 shadow-2xs animate-pulse", children: [
15630
- /* @__PURE__ */ jsx33(Loader26, { className: "w-4 h-4 animate-spin text-emerald-600 shrink-0" }),
15631
- /* @__PURE__ */ jsx33("span", { className: "font-medium text-[11px] text-slate-600", children: "\u05E1\u05D5\u05E8\u05E7 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D5\u05D1\u05D8\u05D1\u05DC\u05D0\u05D5\u05EA \u05DE\u05E7\u05D5\u05E9\u05E8\u05D5\u05EA..." })
15632
- ] }) : targetPhoneOptions.length === 0 ? /* @__PURE__ */ jsxs27("div", { className: "p-2.5 bg-amber-50 border border-amber-200 rounded-xl text-amber-900 text-xs flex items-center gap-2 shadow-2xs", children: [
15633
- /* @__PURE__ */ jsx33(AlertCircle4, { className: "w-4 h-4 text-amber-600 shrink-0" }),
15634
- /* @__PURE__ */ jsx33("span", { className: "font-semibold text-[11px]", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D4 \u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4" })
15635
- ] }) : targetPhoneOptions.length === 1 && targetPhoneOptions[0].type === "DIRECT" ? /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15636
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15637
- /* @__PURE__ */ jsxs27("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15638
- /* @__PURE__ */ jsx33(Phone3, { className: "w-3 h-3 text-slate-400" }),
15639
- /* @__PURE__ */ jsx33("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15688
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-2.5 py-1", children: [
15689
+ isScanningPhoneColumns && targetPhoneOptions.length === 0 ? /* @__PURE__ */ jsxs28("div", { className: "p-2.5 bg-slate-100/80 border border-slate-200 rounded-xl text-slate-500 text-xs flex items-center gap-2 shadow-2xs animate-pulse", children: [
15690
+ /* @__PURE__ */ jsx34(Loader26, { className: "w-4 h-4 animate-spin text-emerald-600 shrink-0" }),
15691
+ /* @__PURE__ */ jsx34("span", { className: "font-medium text-[11px] text-slate-600", children: "\u05E1\u05D5\u05E8\u05E7 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D5\u05D1\u05D8\u05D1\u05DC\u05D0\u05D5\u05EA \u05DE\u05E7\u05D5\u05E9\u05E8\u05D5\u05EA..." })
15692
+ ] }) : targetPhoneOptions.length === 0 ? /* @__PURE__ */ jsxs28("div", { className: "p-2.5 bg-amber-50 border border-amber-200 rounded-xl text-amber-900 text-xs flex items-center gap-2 shadow-2xs", children: [
15693
+ /* @__PURE__ */ jsx34(AlertCircle4, { className: "w-4 h-4 text-amber-600 shrink-0" }),
15694
+ /* @__PURE__ */ jsx34("span", { className: "font-semibold text-[11px]", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D4 \u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4" })
15695
+ ] }) : targetPhoneOptions.length === 1 && targetPhoneOptions[0].type === "DIRECT" ? /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15696
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15697
+ /* @__PURE__ */ jsxs28("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15698
+ /* @__PURE__ */ jsx34(Phone3, { className: "w-3 h-3 text-slate-400" }),
15699
+ /* @__PURE__ */ jsx34("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15640
15700
  ] }),
15641
- /* @__PURE__ */ jsx33("span", { className: "text-[9px] font-medium text-slate-500 bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200", children: "\u05D6\u05D5\u05D4\u05EA\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA" })
15701
+ /* @__PURE__ */ jsx34("span", { className: "text-[9px] font-medium text-slate-500 bg-slate-100 px-1.5 py-0.5 rounded border border-slate-200", children: "\u05D6\u05D5\u05D4\u05EA\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA" })
15642
15702
  ] }),
15643
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15644
- /* @__PURE__ */ jsx33(
15703
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15704
+ /* @__PURE__ */ jsx34(
15645
15705
  "input",
15646
15706
  {
15647
15707
  type: "text",
@@ -15651,52 +15711,52 @@ function SettingsAndActionsBlock({
15651
15711
  className: "w-full h-8 px-2.5 pl-7 text-[11px] rounded-lg border border-slate-200 bg-slate-100 text-slate-600 cursor-not-allowed font-medium select-none"
15652
15712
  }
15653
15713
  ),
15654
- /* @__PURE__ */ jsx33(Phone3, { className: "w-3.5 h-3.5 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15714
+ /* @__PURE__ */ jsx34(Phone3, { className: "w-3.5 h-3.5 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15655
15715
  ] })
15656
- ] }) : /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15657
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15658
- /* @__PURE__ */ jsxs27("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15659
- /* @__PURE__ */ jsx33(Phone3, { className: "w-3 h-3 text-slate-400" }),
15660
- /* @__PURE__ */ jsx33("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15716
+ ] }) : /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15717
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15718
+ /* @__PURE__ */ jsxs28("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15719
+ /* @__PURE__ */ jsx34(Phone3, { className: "w-3 h-3 text-slate-400" }),
15720
+ /* @__PURE__ */ jsx34("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15661
15721
  ] }),
15662
- /* @__PURE__ */ jsx33("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15722
+ /* @__PURE__ */ jsx34("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15663
15723
  ] }),
15664
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15665
- /* @__PURE__ */ jsx33(
15724
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15725
+ /* @__PURE__ */ jsx34(
15666
15726
  "select",
15667
15727
  {
15668
15728
  value: phoneColumnId,
15669
15729
  onChange: (e) => setPhoneColumnId(e.target.value),
15670
15730
  className: "w-full h-8 px-2.5 pr-2.5 pl-6 text-[11px] rounded-lg border border-slate-200 bg-white text-slate-700 appearance-none focus:border-emerald-500 cursor-pointer",
15671
- children: targetPhoneOptions.map((opt) => /* @__PURE__ */ jsx33("option", { value: opt.id, children: opt.label }, opt.id))
15731
+ children: targetPhoneOptions.map((opt) => /* @__PURE__ */ jsx34("option", { value: opt.id, children: opt.label }, opt.id))
15672
15732
  }
15673
15733
  ),
15674
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15734
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15675
15735
  ] })
15676
15736
  ] }),
15677
- /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15678
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15679
- /* @__PURE__ */ jsxs27(
15737
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15738
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15739
+ /* @__PURE__ */ jsxs28(
15680
15740
  "label",
15681
15741
  {
15682
15742
  htmlFor: "whatsapp-auto-select-records",
15683
15743
  className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1 cursor-pointer",
15684
15744
  children: [
15685
- /* @__PURE__ */ jsx33(CheckSquare2, { className: "w-3 h-3 text-slate-400" }),
15686
- /* @__PURE__ */ jsx33("span", { children: "\u05D1\u05D7\u05E8 \u05E8\u05E9\u05D5\u05DE\u05D4 (\u05DB\u05DE\u05D5\u05EA \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05E8\u05D1\u05D9\u05EA)" })
15745
+ /* @__PURE__ */ jsx34(CheckSquare2, { className: "w-3 h-3 text-slate-400" }),
15746
+ /* @__PURE__ */ jsx34("span", { children: "\u05D1\u05D7\u05E8 \u05E8\u05E9\u05D5\u05DE\u05D4 (\u05DB\u05DE\u05D5\u05EA \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05E8\u05D1\u05D9\u05EA)" })
15687
15747
  ]
15688
15748
  }
15689
15749
  ),
15690
- autoSelectCount !== null && autoSelectCount > 0 && /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1.5 animate-in fade-in duration-150", children: [
15691
- /* @__PURE__ */ jsxs27("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 border border-emerald-200/80 px-1.5 py-0.5 rounded-full flex items-center gap-1", children: [
15692
- /* @__PURE__ */ jsx33("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
15693
- /* @__PURE__ */ jsxs27("span", { children: [
15750
+ autoSelectCount !== null && autoSelectCount > 0 && /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1.5 animate-in fade-in duration-150", children: [
15751
+ /* @__PURE__ */ jsxs28("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 border border-emerald-200/80 px-1.5 py-0.5 rounded-full flex items-center gap-1", children: [
15752
+ /* @__PURE__ */ jsx34("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
15753
+ /* @__PURE__ */ jsxs28("span", { children: [
15694
15754
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15695
15755
  selectedRowIdsCount,
15696
15756
  " \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA"
15697
15757
  ] })
15698
15758
  ] }),
15699
- /* @__PURE__ */ jsxs27(
15759
+ /* @__PURE__ */ jsxs28(
15700
15760
  "button",
15701
15761
  {
15702
15762
  type: "button",
@@ -15705,14 +15765,14 @@ function SettingsAndActionsBlock({
15705
15765
  title: "\u05E0\u05E7\u05D4 \u05D1\u05D7\u05D9\u05E8\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA",
15706
15766
  "aria-label": "Clear auto select count",
15707
15767
  children: [
15708
- /* @__PURE__ */ jsx33(X11, { className: "w-3 h-3" }),
15709
- /* @__PURE__ */ jsx33("span", { children: "\u05E0\u05E7\u05D4" })
15768
+ /* @__PURE__ */ jsx34(X11, { className: "w-3 h-3" }),
15769
+ /* @__PURE__ */ jsx34("span", { children: "\u05E0\u05E7\u05D4" })
15710
15770
  ]
15711
15771
  }
15712
15772
  )
15713
15773
  ] })
15714
15774
  ] }),
15715
- /* @__PURE__ */ jsx33("div", { className: "relative", children: /* @__PURE__ */ jsx33(
15775
+ /* @__PURE__ */ jsx34("div", { className: "relative", children: /* @__PURE__ */ jsx34(
15716
15776
  "input",
15717
15777
  {
15718
15778
  id: "whatsapp-auto-select-records",
@@ -15740,19 +15800,19 @@ function SettingsAndActionsBlock({
15740
15800
  }
15741
15801
  ) })
15742
15802
  ] }),
15743
- (selectedPhoneOption == null ? void 0 : selectedPhoneOption.type) === "SUBTABLE" && /* @__PURE__ */ jsxs27("div", { className: "p-2.5 bg-emerald-50/60 border border-emerald-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: [
15744
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1.5 pb-1 border-b border-emerald-200/60", children: [
15745
- /* @__PURE__ */ jsx33(Users, { className: "w-3.5 h-3.5 text-emerald-700" }),
15746
- /* @__PURE__ */ jsxs27("span", { className: "text-[10.5px] font-bold text-emerald-900 truncate", children: [
15803
+ (selectedPhoneOption == null ? void 0 : selectedPhoneOption.type) === "SUBTABLE" && /* @__PURE__ */ jsxs28("div", { className: "p-2.5 bg-emerald-50/60 border border-emerald-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: [
15804
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1.5 pb-1 border-b border-emerald-200/60", children: [
15805
+ /* @__PURE__ */ jsx34(Users, { className: "w-3.5 h-3.5 text-emerald-700" }),
15806
+ /* @__PURE__ */ jsxs28("span", { className: "text-[10.5px] font-bold text-emerald-900 truncate", children: [
15747
15807
  "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DC\u05EA\u05EA-\u05D8\u05D1\u05DC\u05D4 \u05DE\u05E7\u05D5\u05E9\u05E8\u05EA (",
15748
15808
  selectedPhoneOption.parentColumnName,
15749
15809
  ")"
15750
15810
  ] })
15751
15811
  ] }),
15752
- /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15753
- /* @__PURE__ */ jsx33("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx33("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05E1\u05E0\u05DF \u05E0\u05E6\u05D9\u05D2\u05D9\u05DD (\u05D1\u05EA\u05EA-\u05D4\u05D8\u05D1\u05DC\u05D4) \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4:" }) }),
15754
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15755
- /* @__PURE__ */ jsxs27(
15812
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15813
+ /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx34("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05E1\u05E0\u05DF \u05E0\u05E6\u05D9\u05D2\u05D9\u05DD (\u05D1\u05EA\u05EA-\u05D4\u05D8\u05D1\u05DC\u05D4) \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4:" }) }),
15814
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15815
+ /* @__PURE__ */ jsxs28(
15756
15816
  "select",
15757
15817
  {
15758
15818
  value: subtableFilterColumn,
@@ -15762,10 +15822,10 @@ function SettingsAndActionsBlock({
15762
15822
  },
15763
15823
  className: "w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border border-slate-200 bg-white text-slate-700 appearance-none focus:border-emerald-500 cursor-pointer truncate",
15764
15824
  children: [
15765
- /* @__PURE__ */ jsx33("option", { value: "", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5 (\u05DC\u05DC\u05D0 \u05E1\u05D9\u05E0\u05D5\u05DF \u05E0\u05D5\u05E1\u05E3)" }),
15825
+ /* @__PURE__ */ jsx34("option", { value: "", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5 (\u05DC\u05DC\u05D0 \u05E1\u05D9\u05E0\u05D5\u05DF \u05E0\u05D5\u05E1\u05E3)" }),
15766
15826
  subtableFilterableColumns.map((col) => {
15767
15827
  var _a2;
15768
- return /* @__PURE__ */ jsxs27("option", { value: col.name, children: [
15828
+ return /* @__PURE__ */ jsxs28("option", { value: col.name, children: [
15769
15829
  col.name,
15770
15830
  " (",
15771
15831
  ((_a2 = col.type) == null ? void 0 : _a2.toUpperCase()) === "BOOLEAN" ? "\u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9" : "\u05E7\u05E9\u05E8",
@@ -15775,30 +15835,30 @@ function SettingsAndActionsBlock({
15775
15835
  ]
15776
15836
  }
15777
15837
  ),
15778
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15838
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15779
15839
  ] })
15780
15840
  ] }),
15781
- selectedSubtableFilterCol && /* @__PURE__ */ jsxs27("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15782
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15783
- /* @__PURE__ */ jsx33("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05E9\u05D4\u05E2\u05E8\u05DA \u05E9\u05DC\u05D4\u05DD \u05E9\u05D5\u05D5\u05D4 \u05DC:" }),
15784
- !subtableFilterValue && /* @__PURE__ */ jsx33("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." })
15841
+ selectedSubtableFilterCol && /* @__PURE__ */ jsxs28("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15842
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15843
+ /* @__PURE__ */ jsx34("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05E9\u05D4\u05E2\u05E8\u05DA \u05E9\u05DC\u05D4\u05DD \u05E9\u05D5\u05D5\u05D4 \u05DC:" }),
15844
+ !subtableFilterValue && /* @__PURE__ */ jsx34("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." })
15785
15845
  ] }),
15786
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15787
- /* @__PURE__ */ jsxs27(
15846
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15847
+ /* @__PURE__ */ jsxs28(
15788
15848
  "select",
15789
15849
  {
15790
15850
  value: subtableFilterValue,
15791
15851
  onChange: (e) => setSubtableFilterValue(e.target.value),
15792
15852
  className: `w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border appearance-none cursor-pointer truncate transition-colors ${!subtableFilterValue ? "border-amber-400 bg-amber-50/30 text-slate-700 focus:border-amber-500 focus:ring-1 focus:ring-amber-500" : "border-slate-200 bg-white text-slate-700 focus:border-emerald-500"}`,
15793
15853
  children: [
15794
- /* @__PURE__ */ jsx33("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
15795
- ((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
15796
- /* @__PURE__ */ jsx33("option", { value: "true", children: "\u05DB\u05DF (true)" }),
15797
- /* @__PURE__ */ jsx33("option", { value: "false", children: "\u05DC\u05D0 (false)" })
15854
+ /* @__PURE__ */ jsx34("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
15855
+ ((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ jsxs28(Fragment9, { children: [
15856
+ /* @__PURE__ */ jsx34("option", { value: "true", children: "\u05DB\u05DF (true)" }),
15857
+ /* @__PURE__ */ jsx34("option", { value: "false", children: "\u05DC\u05D0 (false)" })
15798
15858
  ] }) : getRelationOptionsForCol(
15799
15859
  selectedSubtableFilterCol.name,
15800
15860
  selectedPhoneOption.parentColumnName
15801
- ).map((opt) => /* @__PURE__ */ jsx33("option", { value: opt.id, children: getRelationOptionLabel(
15861
+ ).map((opt) => /* @__PURE__ */ jsx34("option", { value: opt.id, children: getRelationOptionLabel(
15802
15862
  opt,
15803
15863
  selectedSubtableFilterCol,
15804
15864
  relationOptions
@@ -15806,32 +15866,32 @@ function SettingsAndActionsBlock({
15806
15866
  ]
15807
15867
  }
15808
15868
  ),
15809
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15869
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15810
15870
  ] })
15811
15871
  ] }),
15812
- /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15813
- /* @__PURE__ */ jsx33("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05DE\u05D2\u05D1\u05DC\u05EA \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DC\u05DB\u05DC \u05E9\u05D5\u05E8\u05D4 \u05E8\u05D0\u05E9\u05D9\u05EA:" }),
15814
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15815
- /* @__PURE__ */ jsxs27(
15872
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15873
+ /* @__PURE__ */ jsx34("label", { className: "text-[10px] font-semibold text-slate-700 block", children: "\u05DE\u05D2\u05D1\u05DC\u05EA \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DC\u05DB\u05DC \u05E9\u05D5\u05E8\u05D4 \u05E8\u05D0\u05E9\u05D9\u05EA:" }),
15874
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15875
+ /* @__PURE__ */ jsxs28(
15816
15876
  "select",
15817
15877
  {
15818
15878
  value: subtableSendLimit,
15819
15879
  onChange: (e) => setSubtableSendLimit(e.target.value),
15820
15880
  className: "w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border border-slate-200 bg-white text-slate-700 appearance-none focus:border-emerald-500 cursor-pointer truncate",
15821
15881
  children: [
15822
- /* @__PURE__ */ jsx33("option", { value: "PRIMARY", children: "\u05DC\u05E0\u05E6\u05D9\u05D2 \u05E8\u05D0\u05E9\u05D9 \u05D1\u05DC\u05D1\u05D3" }),
15823
- /* @__PURE__ */ jsx33("option", { value: "FIRST", children: "\u05E0\u05E6\u05D9\u05D2 \u05D0\u05D7\u05D3 \u05D1\u05DC\u05D1\u05D3" }),
15824
- /* @__PURE__ */ jsx33("option", { value: "ALL", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD" })
15882
+ /* @__PURE__ */ jsx34("option", { value: "PRIMARY", children: "\u05DC\u05E0\u05E6\u05D9\u05D2 \u05E8\u05D0\u05E9\u05D9 \u05D1\u05DC\u05D1\u05D3" }),
15883
+ /* @__PURE__ */ jsx34("option", { value: "FIRST", children: "\u05E0\u05E6\u05D9\u05D2 \u05D0\u05D7\u05D3 \u05D1\u05DC\u05D1\u05D3" }),
15884
+ /* @__PURE__ */ jsx34("option", { value: "ALL", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD" })
15825
15885
  ]
15826
15886
  }
15827
15887
  ),
15828
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15888
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15829
15889
  ] })
15830
15890
  ] })
15831
15891
  ] }),
15832
- /* @__PURE__ */ jsxs27("div", { className: "pt-2 border-t border-slate-200/70 space-y-2", children: [
15833
- /* @__PURE__ */ jsxs27("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
15834
- /* @__PURE__ */ jsx33(
15892
+ /* @__PURE__ */ jsxs28("div", { className: "pt-2 border-t border-slate-200/70 space-y-2", children: [
15893
+ /* @__PURE__ */ jsxs28("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
15894
+ /* @__PURE__ */ jsx34(
15835
15895
  "input",
15836
15896
  {
15837
15897
  type: "checkbox",
@@ -15848,13 +15908,13 @@ function SettingsAndActionsBlock({
15848
15908
  className: "w-3.5 h-3.5 rounded border-slate-300 text-emerald-600 focus:ring-emerald-500 cursor-pointer"
15849
15909
  }
15850
15910
  ),
15851
- /* @__PURE__ */ jsx33("span", { className: "text-[11px] font-semibold text-slate-800", children: "\u05E2\u05D3\u05DB\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05DC\u05D0\u05D7\u05E8 \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DE\u05D5\u05E6\u05DC\u05D7\u05EA" })
15911
+ /* @__PURE__ */ jsx34("span", { className: "text-[11px] font-semibold text-slate-800", children: "\u05E2\u05D3\u05DB\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9\u05DD \u05DC\u05D0\u05D7\u05E8 \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DE\u05D5\u05E6\u05DC\u05D7\u05EA" })
15852
15912
  ] }),
15853
- enablePostSendAction && /* @__PURE__ */ jsx33("div", { className: "p-2 bg-slate-100/70 border border-slate-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: postSendActionTargetOptions.length === 0 ? /* @__PURE__ */ jsx33("div", { className: "text-[10px] text-slate-400 text-center py-1", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05E7\u05E9\u05E8 \u05D0\u05D5 \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }) : /* @__PURE__ */ jsxs27(Fragment9, { children: [
15854
- /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
15855
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15856
- /* @__PURE__ */ jsx33("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
15857
- selectedPostSendOption && /* @__PURE__ */ jsx33(
15913
+ enablePostSendAction && /* @__PURE__ */ jsx34("div", { className: "p-2 bg-slate-100/70 border border-slate-200/80 rounded-xl space-y-2 animate-in fade-in duration-150", children: postSendActionTargetOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "text-[10px] text-slate-400 text-center py-1", children: "\u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E2\u05DE\u05D5\u05D3\u05D5\u05EA \u05E7\u05E9\u05E8 \u05D0\u05D5 \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }) : /* @__PURE__ */ jsxs28(Fragment9, { children: [
15914
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
15915
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15916
+ /* @__PURE__ */ jsx34("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3 \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
15917
+ selectedPostSendOption && /* @__PURE__ */ jsx34(
15858
15918
  "span",
15859
15919
  {
15860
15920
  className: `text-[9px] font-medium px-1.5 py-0.5 rounded border ${selectedPostSendOption.targetType === "SUBTABLE" ? "bg-emerald-50 text-emerald-700 border-emerald-200" : "bg-slate-100 text-slate-600 border-slate-200"}`,
@@ -15862,8 +15922,8 @@ function SettingsAndActionsBlock({
15862
15922
  }
15863
15923
  )
15864
15924
  ] }),
15865
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15866
- /* @__PURE__ */ jsxs27(
15925
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15926
+ /* @__PURE__ */ jsxs28(
15867
15927
  "select",
15868
15928
  {
15869
15929
  value: postSendActionColumn,
@@ -15876,35 +15936,35 @@ function SettingsAndActionsBlock({
15876
15936
  },
15877
15937
  className: "w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border border-slate-200 bg-white text-slate-700 appearance-none focus:border-emerald-500 cursor-pointer truncate",
15878
15938
  children: [
15879
- /* @__PURE__ */ jsx33("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15880
- postSendActionTargetOptions.map((opt) => /* @__PURE__ */ jsx33("option", { value: opt.id, children: opt.label }, opt.id))
15939
+ /* @__PURE__ */ jsx34("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15940
+ postSendActionTargetOptions.map((opt) => /* @__PURE__ */ jsx34("option", { value: opt.id, children: opt.label }, opt.id))
15881
15941
  ]
15882
15942
  }
15883
15943
  ),
15884
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15944
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15885
15945
  ] })
15886
15946
  ] }),
15887
- selectedPostSendOption && /* @__PURE__ */ jsxs27("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15888
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
15889
- /* @__PURE__ */ jsx33("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05E8\u05DA \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
15890
- !postSendActionValue && /* @__PURE__ */ jsx33("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05E2\u05E8\u05DA" })
15947
+ selectedPostSendOption && /* @__PURE__ */ jsxs28("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15948
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
15949
+ /* @__PURE__ */ jsx34("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05E8\u05DA \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
15950
+ !postSendActionValue && /* @__PURE__ */ jsx34("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05E2\u05E8\u05DA" })
15891
15951
  ] }),
15892
- /* @__PURE__ */ jsxs27("div", { className: "relative", children: [
15893
- /* @__PURE__ */ jsxs27(
15952
+ /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
15953
+ /* @__PURE__ */ jsxs28(
15894
15954
  "select",
15895
15955
  {
15896
15956
  value: postSendActionValue,
15897
15957
  onChange: (e) => setPostSendActionValue(e.target.value),
15898
15958
  className: `w-full h-7 px-2 pr-2 pl-5 text-[11px] rounded-lg border appearance-none cursor-pointer truncate transition-colors ${!postSendActionValue ? "border-amber-400 bg-amber-50/30 text-slate-700 focus:border-amber-500 focus:ring-1 focus:ring-amber-500" : "border-slate-200 bg-white text-slate-700 focus:border-emerald-500"}`,
15899
15959
  children: [
15900
- /* @__PURE__ */ jsx33("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
15901
- selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
15902
- /* @__PURE__ */ jsx33("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
15903
- /* @__PURE__ */ jsx33("option", { value: "false", children: "\u05DC\u05D0 (No)" })
15960
+ /* @__PURE__ */ jsx34("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
15961
+ selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ jsxs28(Fragment9, { children: [
15962
+ /* @__PURE__ */ jsx34("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
15963
+ /* @__PURE__ */ jsx34("option", { value: "false", children: "\u05DC\u05D0 (No)" })
15904
15964
  ] }) : getRelationOptionsForCol(
15905
15965
  selectedPostSendOption.columnName,
15906
15966
  selectedPostSendOption.parentColumnName
15907
- ).map((opt) => /* @__PURE__ */ jsx33("option", { value: opt.id, children: getRelationOptionLabel(
15967
+ ).map((opt) => /* @__PURE__ */ jsx34("option", { value: opt.id, children: getRelationOptionLabel(
15908
15968
  opt,
15909
15969
  selectedPostSendOption,
15910
15970
  relationOptions
@@ -15912,15 +15972,15 @@ function SettingsAndActionsBlock({
15912
15972
  ]
15913
15973
  }
15914
15974
  ),
15915
- /* @__PURE__ */ jsx33(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15975
+ /* @__PURE__ */ jsx34(ChevronDown6, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15916
15976
  ] })
15917
15977
  ] })
15918
15978
  ] }) })
15919
15979
  ] })
15920
15980
  ] })
15921
15981
  ] }),
15922
- /* @__PURE__ */ jsxs27("div", { className: "mt-auto pt-2.5 border-t border-slate-200/80 space-y-2 shrink-0", children: [
15923
- /* @__PURE__ */ jsxs27(
15982
+ /* @__PURE__ */ jsxs28("div", { className: "mt-auto pt-2.5 border-t border-slate-200/80 space-y-2 shrink-0", children: [
15983
+ /* @__PURE__ */ jsxs28(
15924
15984
  "button",
15925
15985
  {
15926
15986
  type: "button",
@@ -15929,23 +15989,23 @@ function SettingsAndActionsBlock({
15929
15989
  className: `w-full h-8 px-3 text-xs font-semibold rounded-xl border transition-all flex items-center justify-center gap-1.5 ${isTestDisabled || isSendingBroadcast ? "bg-slate-100 text-slate-400 border-slate-200 cursor-not-allowed opacity-60" : "bg-white hover:bg-slate-50 text-slate-700 border-slate-200 active:scale-[0.98] cursor-pointer shadow-2xs"}`,
15930
15990
  title: testButtonTitle,
15931
15991
  children: [
15932
- /* @__PURE__ */ jsx33(Phone3, { className: "w-3 h-3" }),
15933
- /* @__PURE__ */ jsx33("span", { children: "\u05E9\u05DC\u05D7 \u05D8\u05E1\u05D8" })
15992
+ /* @__PURE__ */ jsx34(Phone3, { className: "w-3 h-3" }),
15993
+ /* @__PURE__ */ jsx34("span", { children: "\u05E9\u05DC\u05D7 \u05D8\u05E1\u05D8" })
15934
15994
  ]
15935
15995
  }
15936
15996
  ),
15937
- isSendingBroadcast ? /* @__PURE__ */ jsxs27(
15997
+ isSendingBroadcast ? /* @__PURE__ */ jsxs28(
15938
15998
  "div",
15939
15999
  {
15940
16000
  className: "w-full bg-white border border-emerald-200 rounded-xl p-2.5 shadow-xs space-y-2 animate-in fade-in duration-200",
15941
16001
  "data-testid": "live-broadcast-progress",
15942
16002
  children: [
15943
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-700", children: [
15944
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1.5 text-emerald-800 font-bold", children: [
15945
- /* @__PURE__ */ jsx33(Loader26, { className: "w-3.5 h-3.5 animate-spin text-emerald-600 shrink-0" }),
15946
- /* @__PURE__ */ jsx33("span", { children: "\u05E9\u05D5\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05EA\u05E4\u05D5\u05E6\u05D4..." })
16003
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-700", children: [
16004
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1.5 text-emerald-800 font-bold", children: [
16005
+ /* @__PURE__ */ jsx34(Loader26, { className: "w-3.5 h-3.5 animate-spin text-emerald-600 shrink-0" }),
16006
+ /* @__PURE__ */ jsx34("span", { children: "\u05E9\u05D5\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05EA\u05E4\u05D5\u05E6\u05D4..." })
15947
16007
  ] }),
15948
- /* @__PURE__ */ jsxs27("span", { className: "text-emerald-700 font-bold", children: [
16008
+ /* @__PURE__ */ jsxs28("span", { className: "text-emerald-700 font-bold", children: [
15949
16009
  (broadcastProgress == null ? void 0 : broadcastProgress.percent) || 0,
15950
16010
  "% (",
15951
16011
  (broadcastProgress == null ? void 0 : broadcastProgress.current) || 0,
@@ -15954,7 +16014,7 @@ function SettingsAndActionsBlock({
15954
16014
  ")"
15955
16015
  ] })
15956
16016
  ] }),
15957
- /* @__PURE__ */ jsx33("div", { className: "w-full h-2.5 bg-slate-100 rounded-full overflow-hidden border border-slate-200", children: /* @__PURE__ */ jsx33(
16017
+ /* @__PURE__ */ jsx34("div", { className: "w-full h-2.5 bg-slate-100 rounded-full overflow-hidden border border-slate-200", children: /* @__PURE__ */ jsx34(
15958
16018
  "div",
15959
16019
  {
15960
16020
  className: "h-full bg-emerald-500 rounded-full transition-all duration-300 ease-out",
@@ -15963,18 +16023,18 @@ function SettingsAndActionsBlock({
15963
16023
  }
15964
16024
  }
15965
16025
  ) }),
15966
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-around pt-1 text-[11px] font-medium border-t border-slate-100", children: [
15967
- /* @__PURE__ */ jsxs27("span", { className: "text-emerald-700 flex items-center gap-1", title: "\u05E0\u05E9\u05DC\u05D7\u05D5 \u05D1\u05D4\u05E6\u05DC\u05D7\u05D4", children: [
15968
- /* @__PURE__ */ jsx33("span", { children: "\u2705" }),
15969
- /* @__PURE__ */ jsx33("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.successful) || 0 })
16026
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-around pt-1 text-[11px] font-medium border-t border-slate-100", children: [
16027
+ /* @__PURE__ */ jsxs28("span", { className: "text-emerald-700 flex items-center gap-1", title: "\u05E0\u05E9\u05DC\u05D7\u05D5 \u05D1\u05D4\u05E6\u05DC\u05D7\u05D4", children: [
16028
+ /* @__PURE__ */ jsx34("span", { children: "\u2705" }),
16029
+ /* @__PURE__ */ jsx34("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.successful) || 0 })
15970
16030
  ] }),
15971
- /* @__PURE__ */ jsxs27("span", { className: "text-rose-600 flex items-center gap-1", title: "\u05E9\u05DC\u05D9\u05D7\u05D4 \u05E0\u05DB\u05E9\u05DC\u05D4", children: [
15972
- /* @__PURE__ */ jsx33("span", { children: "\u274C" }),
15973
- /* @__PURE__ */ jsx33("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.failed) || 0 })
16031
+ /* @__PURE__ */ jsxs28("span", { className: "text-rose-600 flex items-center gap-1", title: "\u05E9\u05DC\u05D9\u05D7\u05D4 \u05E0\u05DB\u05E9\u05DC\u05D4", children: [
16032
+ /* @__PURE__ */ jsx34("span", { children: "\u274C" }),
16033
+ /* @__PURE__ */ jsx34("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.failed) || 0 })
15974
16034
  ] }),
15975
- /* @__PURE__ */ jsxs27("span", { className: "text-amber-700 flex items-center gap-1", title: "\u05E9\u05D5\u05E8\u05D5\u05EA \u05E9\u05D3\u05D5\u05DC\u05D2\u05D5 \u05DC\u05DC\u05D0 \u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF \u05EA\u05E7\u05D9\u05DF", children: [
15976
- /* @__PURE__ */ jsx33("span", { children: "\u26A0\uFE0F" }),
15977
- /* @__PURE__ */ jsxs27("span", { className: "font-bold", children: [
16035
+ /* @__PURE__ */ jsxs28("span", { className: "text-amber-700 flex items-center gap-1", title: "\u05E9\u05D5\u05E8\u05D5\u05EA \u05E9\u05D3\u05D5\u05DC\u05D2\u05D5 \u05DC\u05DC\u05D0 \u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF \u05EA\u05E7\u05D9\u05DF", children: [
16036
+ /* @__PURE__ */ jsx34("span", { children: "\u26A0\uFE0F" }),
16037
+ /* @__PURE__ */ jsxs28("span", { className: "font-bold", children: [
15978
16038
  (broadcastProgress == null ? void 0 : broadcastProgress.skipped) || 0,
15979
16039
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
15980
16040
  ] })
@@ -15982,8 +16042,8 @@ function SettingsAndActionsBlock({
15982
16042
  ] })
15983
16043
  ]
15984
16044
  }
15985
- ) : /* @__PURE__ */ jsxs27(Fragment9, { children: [
15986
- /* @__PURE__ */ jsxs27(
16045
+ ) : /* @__PURE__ */ jsxs28(Fragment9, { children: [
16046
+ /* @__PURE__ */ jsxs28(
15987
16047
  "button",
15988
16048
  {
15989
16049
  type: "button",
@@ -15992,56 +16052,56 @@ function SettingsAndActionsBlock({
15992
16052
  className: `w-full h-9 px-3 text-xs font-bold rounded-xl shadow-xs transition-all flex items-center justify-center gap-2 ${isSendDisabled ? "bg-emerald-600/40 text-white/70 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 active:scale-[0.98] text-white cursor-pointer"}`,
15993
16053
  title: sendButtonTitle,
15994
16054
  children: [
15995
- /* @__PURE__ */ jsx33(Send, { className: "w-3.5 h-3.5" }),
15996
- /* @__PURE__ */ jsx33("span", { children: finalRecipientCount > 0 ? `\u05E9\u05DC\u05D7 \u05DC-${finalRecipientCount} \u05E0\u05DE\u05E2\u05E0\u05D9\u05DD` : "\u05E9\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" })
16055
+ /* @__PURE__ */ jsx34(Send, { className: "w-3.5 h-3.5" }),
16056
+ /* @__PURE__ */ jsx34("span", { children: finalRecipientCount > 0 ? `\u05E9\u05DC\u05D7 \u05DC-${finalRecipientCount} \u05E0\u05DE\u05E2\u05E0\u05D9\u05DD` : "\u05E9\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" })
15997
16057
  ]
15998
16058
  }
15999
16059
  ),
16000
- validMainRowsCount > 0 && /* @__PURE__ */ jsxs27("div", { className: "text-center text-[10.5px] text-slate-500 font-medium pt-0.5", children: [
16060
+ validMainRowsCount > 0 && /* @__PURE__ */ jsxs28("div", { className: "text-center text-[10.5px] text-slate-500 font-medium pt-0.5", children: [
16001
16061
  "\u05DE\u05EA\u05D5\u05DA ",
16002
16062
  validMainRowsCount,
16003
16063
  " \u05E9\u05D5\u05E8\u05D5\u05EA \u05E8\u05D0\u05E9\u05D9\u05D5\u05EA"
16004
16064
  ] }),
16005
- broadcastSummary && /* @__PURE__ */ jsxs27(
16065
+ broadcastSummary && /* @__PURE__ */ jsxs28(
16006
16066
  "div",
16007
16067
  {
16008
16068
  className: "w-full bg-slate-50/90 border border-slate-200/90 rounded-xl p-2.5 shadow-2xs space-y-2 animate-in fade-in duration-200",
16009
16069
  "data-testid": "broadcast-summary-card",
16010
16070
  children: [
16011
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center justify-between", children: [
16012
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1.5 text-[11px] font-bold text-slate-700", children: [
16013
- /* @__PURE__ */ jsx33("span", { className: "text-xs", children: "\u{1F4CA}" }),
16014
- /* @__PURE__ */ jsx33("span", { children: "\u05E1\u05D9\u05DB\u05D5\u05DD \u05E9\u05D9\u05D3\u05D5\u05E8 \u05D0\u05D7\u05E8\u05D5\u05DF" })
16071
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center justify-between", children: [
16072
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-1.5 text-[11px] font-bold text-slate-700", children: [
16073
+ /* @__PURE__ */ jsx34("span", { className: "text-xs", children: "\u{1F4CA}" }),
16074
+ /* @__PURE__ */ jsx34("span", { children: "\u05E1\u05D9\u05DB\u05D5\u05DD \u05E9\u05D9\u05D3\u05D5\u05E8 \u05D0\u05D7\u05E8\u05D5\u05DF" })
16015
16075
  ] }),
16016
- clearBroadcastSummary && /* @__PURE__ */ jsx33(
16076
+ clearBroadcastSummary && /* @__PURE__ */ jsx34(
16017
16077
  "button",
16018
16078
  {
16019
16079
  type: "button",
16020
16080
  onClick: clearBroadcastSummary,
16021
16081
  className: "text-slate-400 hover:text-slate-600 p-0.5 rounded-md hover:bg-slate-200/60 transition-colors cursor-pointer",
16022
16082
  title: "\u05E1\u05D2\u05D5\u05E8 \u05E1\u05D9\u05DB\u05D5\u05DD",
16023
- children: /* @__PURE__ */ jsx33(X11, { className: "w-3.5 h-3.5" })
16083
+ children: /* @__PURE__ */ jsx34(X11, { className: "w-3.5 h-3.5" })
16024
16084
  }
16025
16085
  )
16026
16086
  ] }),
16027
- /* @__PURE__ */ jsxs27("div", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [
16028
- /* @__PURE__ */ jsxs27("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-emerald-50 text-emerald-700 border border-emerald-200/80", children: [
16029
- /* @__PURE__ */ jsx33("span", { children: "\u2705" }),
16030
- /* @__PURE__ */ jsxs27("span", { children: [
16087
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [
16088
+ /* @__PURE__ */ jsxs28("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-emerald-50 text-emerald-700 border border-emerald-200/80", children: [
16089
+ /* @__PURE__ */ jsx34("span", { children: "\u2705" }),
16090
+ /* @__PURE__ */ jsxs28("span", { children: [
16031
16091
  broadcastSummary.successful,
16032
16092
  " \u05E0\u05E9\u05DC\u05D7\u05D5"
16033
16093
  ] })
16034
16094
  ] }),
16035
- broadcastSummary.failed > 0 && /* @__PURE__ */ jsxs27("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-rose-50 text-rose-700 border border-rose-200/80", children: [
16036
- /* @__PURE__ */ jsx33("span", { children: "\u274C" }),
16037
- /* @__PURE__ */ jsxs27("span", { children: [
16095
+ broadcastSummary.failed > 0 && /* @__PURE__ */ jsxs28("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-rose-50 text-rose-700 border border-rose-200/80", children: [
16096
+ /* @__PURE__ */ jsx34("span", { children: "\u274C" }),
16097
+ /* @__PURE__ */ jsxs28("span", { children: [
16038
16098
  broadcastSummary.failed,
16039
16099
  " \u05E0\u05DB\u05E9\u05DC\u05D5"
16040
16100
  ] })
16041
16101
  ] }),
16042
- broadcastSummary.skipped > 0 && /* @__PURE__ */ jsxs27("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-amber-50 text-amber-700 border border-amber-200/80", children: [
16043
- /* @__PURE__ */ jsx33("span", { children: "\u26A0\uFE0F" }),
16044
- /* @__PURE__ */ jsxs27("span", { children: [
16102
+ broadcastSummary.skipped > 0 && /* @__PURE__ */ jsxs28("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10.5px] font-semibold bg-amber-50 text-amber-700 border border-amber-200/80", children: [
16103
+ /* @__PURE__ */ jsx34("span", { children: "\u26A0\uFE0F" }),
16104
+ /* @__PURE__ */ jsxs28("span", { children: [
16045
16105
  broadcastSummary.skipped,
16046
16106
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
16047
16107
  ] })
@@ -16139,14 +16199,14 @@ function useInboxState(orgId, actions) {
16139
16199
 
16140
16200
  // src/components/WhatsAppComponent/inbox/ConversationList.tsx
16141
16201
  import { Search as Search4, User } from "lucide-react";
16142
- import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
16202
+ import { jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
16143
16203
  function ConversationList({ conversations, activeId, onSelect }) {
16144
- return /* @__PURE__ */ jsxs28("div", { className: "w-80 border-l border-slate-200 bg-white flex flex-col h-full shrink-0", children: [
16145
- /* @__PURE__ */ jsxs28("div", { className: "p-4 border-b border-slate-100 bg-slate-50", children: [
16146
- /* @__PURE__ */ jsx34("h2", { className: "text-lg font-bold text-slate-800 mb-3", children: "\u05E9\u05D9\u05D7\u05D5\u05EA \u05E0\u05DB\u05E0\u05E1\u05D5\u05EA" }),
16147
- /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
16148
- /* @__PURE__ */ jsx34(Search4, { className: "w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400" }),
16149
- /* @__PURE__ */ jsx34(
16204
+ return /* @__PURE__ */ jsxs29("div", { className: "w-80 border-l border-slate-200 bg-white flex flex-col h-full shrink-0", children: [
16205
+ /* @__PURE__ */ jsxs29("div", { className: "p-4 border-b border-slate-100 bg-slate-50", children: [
16206
+ /* @__PURE__ */ jsx35("h2", { className: "text-lg font-bold text-slate-800 mb-3", children: "\u05E9\u05D9\u05D7\u05D5\u05EA \u05E0\u05DB\u05E0\u05E1\u05D5\u05EA" }),
16207
+ /* @__PURE__ */ jsxs29("div", { className: "relative", children: [
16208
+ /* @__PURE__ */ jsx35(Search4, { className: "w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400" }),
16209
+ /* @__PURE__ */ jsx35(
16150
16210
  "input",
16151
16211
  {
16152
16212
  type: "text",
@@ -16156,27 +16216,27 @@ function ConversationList({ conversations, activeId, onSelect }) {
16156
16216
  )
16157
16217
  ] })
16158
16218
  ] }),
16159
- /* @__PURE__ */ jsx34("div", { className: "flex-1 overflow-y-auto", children: (() => {
16219
+ /* @__PURE__ */ jsx35("div", { className: "flex-1 overflow-y-auto", children: (() => {
16160
16220
  const sortedConversations = [...conversations].sort(
16161
16221
  (a, b) => new Date(b.lastMessageAt).getTime() - new Date(a.lastMessageAt).getTime()
16162
16222
  );
16163
- return sortedConversations.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "p-6 text-center text-sm text-slate-400", children: "\u05D0\u05D9\u05DF \u05E9\u05D9\u05D7\u05D5\u05EA \u05E4\u05E2\u05D9\u05DC\u05D5\u05EA" }) : sortedConversations.map((conv) => {
16223
+ return sortedConversations.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "p-6 text-center text-sm text-slate-400", children: "\u05D0\u05D9\u05DF \u05E9\u05D9\u05D7\u05D5\u05EA \u05E4\u05E2\u05D9\u05DC\u05D5\u05EA" }) : sortedConversations.map((conv) => {
16164
16224
  var _a, _b;
16165
- return /* @__PURE__ */ jsxs28(
16225
+ return /* @__PURE__ */ jsxs29(
16166
16226
  "button",
16167
16227
  {
16168
16228
  onClick: () => onSelect(conv.id),
16169
16229
  className: `w-full text-right p-4 border-b border-slate-100 transition-colors hover:bg-slate-50 flex items-start gap-3 ${activeId === conv.id ? "bg-emerald-50/50 border-r-4 border-r-emerald-500" : "border-r-4 border-r-transparent"}`,
16170
16230
  children: [
16171
- /* @__PURE__ */ jsx34("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx34(User, { className: "w-5 h-5 text-slate-500" }) }),
16172
- /* @__PURE__ */ jsxs28("div", { className: "flex-1 overflow-hidden", children: [
16173
- /* @__PURE__ */ jsxs28("div", { className: "flex justify-between items-center mb-1", children: [
16174
- /* @__PURE__ */ jsx34("span", { className: "font-semibold text-slate-800 text-sm truncate", children: conv.contactName || conv.contactPhone }),
16175
- /* @__PURE__ */ jsx34("span", { className: "text-[10px] text-slate-400", children: new Date(conv.lastMessageAt).toLocaleTimeString("he-IL", { hour: "2-digit", minute: "2-digit" }) })
16231
+ /* @__PURE__ */ jsx35("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx35(User, { className: "w-5 h-5 text-slate-500" }) }),
16232
+ /* @__PURE__ */ jsxs29("div", { className: "flex-1 overflow-hidden", children: [
16233
+ /* @__PURE__ */ jsxs29("div", { className: "flex justify-between items-center mb-1", children: [
16234
+ /* @__PURE__ */ jsx35("span", { className: "font-semibold text-slate-800 text-sm truncate", children: conv.contactName || conv.contactPhone }),
16235
+ /* @__PURE__ */ jsx35("span", { className: "text-[10px] text-slate-400", children: new Date(conv.lastMessageAt).toLocaleTimeString("he-IL", { hour: "2-digit", minute: "2-digit" }) })
16176
16236
  ] }),
16177
- /* @__PURE__ */ jsxs28("div", { className: "flex justify-between items-center", children: [
16178
- /* @__PURE__ */ jsx34("p", { className: "text-xs text-slate-500 truncate w-4/5", children: ((_b = (_a = conv.messages) == null ? void 0 : _a[0]) == null ? void 0 : _b.content) || "\u05D0\u05D9\u05DF \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" }),
16179
- conv.unreadCount > 0 && /* @__PURE__ */ jsx34("span", { className: "bg-emerald-500 text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[20px] text-center", children: conv.unreadCount })
16237
+ /* @__PURE__ */ jsxs29("div", { className: "flex justify-between items-center", children: [
16238
+ /* @__PURE__ */ jsx35("p", { className: "text-xs text-slate-500 truncate w-4/5", children: ((_b = (_a = conv.messages) == null ? void 0 : _a[0]) == null ? void 0 : _b.content) || "\u05D0\u05D9\u05DF \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" }),
16239
+ conv.unreadCount > 0 && /* @__PURE__ */ jsx35("span", { className: "bg-emerald-500 text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[20px] text-center", children: conv.unreadCount })
16180
16240
  ] })
16181
16241
  ] })
16182
16242
  ]
@@ -16191,7 +16251,7 @@ function ConversationList({ conversations, activeId, onSelect }) {
16191
16251
  // src/components/WhatsAppComponent/inbox/ChatWindow.tsx
16192
16252
  import { useState as useState26, useRef as useRef22, useEffect as useEffect19 } from "react";
16193
16253
  import { Send as Send2, User as User2, Loader2 as Loader27 } from "lucide-react";
16194
- import { jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
16254
+ import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
16195
16255
  function ChatWindow({ activeConversation, messages, isLoading, isSending, onSendMessage }) {
16196
16256
  const [inputText, setInputText] = useState26("");
16197
16257
  const messagesTopRef = useRef22(null);
@@ -16209,34 +16269,34 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16209
16269
  setInputText("");
16210
16270
  };
16211
16271
  if (!activeConversation) {
16212
- return /* @__PURE__ */ jsxs29("div", { className: "flex-1 bg-slate-50 flex items-center justify-center flex-col gap-4 text-slate-400", children: [
16213
- /* @__PURE__ */ jsx35("div", { className: "w-16 h-16 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ jsx35("svg", { className: "w-8 h-8 text-slate-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx35("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" }) }) }),
16214
- /* @__PURE__ */ jsx35("p", { children: "\u05D1\u05D7\u05E8 \u05E9\u05D9\u05D7\u05D4 \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC" })
16272
+ return /* @__PURE__ */ jsxs30("div", { className: "flex-1 bg-slate-50 flex items-center justify-center flex-col gap-4 text-slate-400", children: [
16273
+ /* @__PURE__ */ jsx36("div", { className: "w-16 h-16 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ jsx36("svg", { className: "w-8 h-8 text-slate-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx36("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" }) }) }),
16274
+ /* @__PURE__ */ jsx36("p", { children: "\u05D1\u05D7\u05E8 \u05E9\u05D9\u05D7\u05D4 \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC" })
16215
16275
  ] });
16216
16276
  }
16217
- return /* @__PURE__ */ jsxs29("div", { className: "flex-1 flex flex-col bg-[#efeae2] h-full relative", children: [
16218
- /* @__PURE__ */ jsxs29("div", { className: "h-16 bg-white border-b border-slate-200 px-6 flex items-center gap-3 shrink-0 z-10 shadow-sm", children: [
16219
- /* @__PURE__ */ jsx35("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ jsx35(User2, { className: "w-5 h-5 text-slate-500" }) }),
16220
- /* @__PURE__ */ jsxs29("div", { children: [
16221
- /* @__PURE__ */ jsx35("h3", { className: "font-bold text-slate-800", children: activeConversation.contactName || activeConversation.contactPhone }),
16222
- /* @__PURE__ */ jsx35("p", { className: "text-xs text-slate-500", dir: "ltr", children: activeConversation.contactPhone })
16277
+ return /* @__PURE__ */ jsxs30("div", { className: "flex-1 flex flex-col bg-[#efeae2] h-full relative", children: [
16278
+ /* @__PURE__ */ jsxs30("div", { className: "h-16 bg-white border-b border-slate-200 px-6 flex items-center gap-3 shrink-0 z-10 shadow-sm", children: [
16279
+ /* @__PURE__ */ jsx36("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ jsx36(User2, { className: "w-5 h-5 text-slate-500" }) }),
16280
+ /* @__PURE__ */ jsxs30("div", { children: [
16281
+ /* @__PURE__ */ jsx36("h3", { className: "font-bold text-slate-800", children: activeConversation.contactName || activeConversation.contactPhone }),
16282
+ /* @__PURE__ */ jsx36("p", { className: "text-xs text-slate-500", dir: "ltr", children: activeConversation.contactPhone })
16223
16283
  ] })
16224
16284
  ] }),
16225
- /* @__PURE__ */ jsxs29("div", { className: "flex-1 overflow-y-auto p-6 space-y-4", children: [
16226
- /* @__PURE__ */ jsx35("div", { ref: messagesTopRef }),
16227
- isLoading ? /* @__PURE__ */ jsx35("div", { className: "flex justify-center py-10", children: /* @__PURE__ */ jsx35(Loader27, { className: "w-6 h-6 animate-spin text-emerald-600" }) }) : messages.map((msg, idx) => {
16285
+ /* @__PURE__ */ jsxs30("div", { className: "flex-1 overflow-y-auto p-6 space-y-4", children: [
16286
+ /* @__PURE__ */ jsx36("div", { ref: messagesTopRef }),
16287
+ isLoading ? /* @__PURE__ */ jsx36("div", { className: "flex justify-center py-10", children: /* @__PURE__ */ jsx36(Loader27, { className: "w-6 h-6 animate-spin text-emerald-600" }) }) : messages.map((msg, idx) => {
16228
16288
  const isOutbound = msg.direction === "OUTBOUND";
16229
- return /* @__PURE__ */ jsx35("div", { className: `flex ${isOutbound ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ jsxs29("div", { className: `max-w-[70%] rounded-2xl px-4 py-2 shadow-sm relative ${isOutbound ? "bg-[#d9fdd3] text-slate-900 rounded-tr-none" : "bg-white text-slate-900 rounded-tl-none"}`, children: [
16230
- /* @__PURE__ */ jsx35("p", { className: "text-sm whitespace-pre-wrap", children: msg.content }),
16231
- /* @__PURE__ */ jsxs29("div", { className: "text-[11px] text-slate-600 mt-1 text-left flex items-center justify-end gap-1", children: [
16289
+ return /* @__PURE__ */ jsx36("div", { className: `flex ${isOutbound ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ jsxs30("div", { className: `max-w-[70%] rounded-2xl px-4 py-2 shadow-sm relative ${isOutbound ? "bg-[#d9fdd3] text-slate-900 rounded-tr-none" : "bg-white text-slate-900 rounded-tl-none"}`, children: [
16290
+ /* @__PURE__ */ jsx36("p", { className: "text-sm whitespace-pre-wrap", children: msg.content }),
16291
+ /* @__PURE__ */ jsxs30("div", { className: "text-[11px] text-slate-600 mt-1 text-left flex items-center justify-end gap-1", children: [
16232
16292
  new Date(msg.createdAt).toLocaleString("he-IL", { day: "2-digit", month: "2-digit", year: "numeric", hour: "2-digit", minute: "2-digit" }),
16233
- isOutbound && /* @__PURE__ */ jsx35("span", { className: msg.status === "READ" || msg.status === "DELIVERED" ? "text-blue-500" : "text-slate-500", children: msg.status === "READ" ? "\u2713\u2713" : msg.status === "DELIVERED" ? "\u2713\u2713" : "\u2713" })
16293
+ isOutbound && /* @__PURE__ */ jsx36("span", { className: msg.status === "READ" || msg.status === "DELIVERED" ? "text-blue-500" : "text-slate-500", children: msg.status === "READ" ? "\u2713\u2713" : msg.status === "DELIVERED" ? "\u2713\u2713" : "\u2713" })
16234
16294
  ] })
16235
16295
  ] }) }, msg.id || idx);
16236
16296
  })
16237
16297
  ] }),
16238
- /* @__PURE__ */ jsx35("div", { className: "bg-slate-50 p-4 border-t border-slate-200 shrink-0", children: /* @__PURE__ */ jsxs29("form", { onSubmit: handleSend, className: "flex items-end gap-2 max-w-4xl mx-auto", children: [
16239
- /* @__PURE__ */ jsx35("div", { className: "flex-1 bg-white border border-slate-300 rounded-2xl overflow-hidden focus-within:border-emerald-500 focus-within:ring-1 focus-within:ring-emerald-500", children: /* @__PURE__ */ jsx35(
16298
+ /* @__PURE__ */ jsx36("div", { className: "bg-slate-50 p-4 border-t border-slate-200 shrink-0", children: /* @__PURE__ */ jsxs30("form", { onSubmit: handleSend, className: "flex items-end gap-2 max-w-4xl mx-auto", children: [
16299
+ /* @__PURE__ */ jsx36("div", { className: "flex-1 bg-white border border-slate-300 rounded-2xl overflow-hidden focus-within:border-emerald-500 focus-within:ring-1 focus-within:ring-emerald-500", children: /* @__PURE__ */ jsx36(
16240
16300
  "textarea",
16241
16301
  {
16242
16302
  rows: 1,
@@ -16252,13 +16312,13 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16252
16312
  className: "w-full max-h-32 min-h-[44px] p-3 text-sm bg-transparent outline-none resize-none"
16253
16313
  }
16254
16314
  ) }),
16255
- /* @__PURE__ */ jsx35(
16315
+ /* @__PURE__ */ jsx36(
16256
16316
  "button",
16257
16317
  {
16258
16318
  type: "submit",
16259
16319
  disabled: !inputText.trim() || isSending,
16260
16320
  className: `w-11 h-11 rounded-full flex items-center justify-center shrink-0 transition-colors ${!inputText.trim() || isSending ? "bg-slate-200 text-slate-400" : "bg-emerald-600 hover:bg-emerald-700 text-white shadow-md"}`,
16261
- children: isSending ? /* @__PURE__ */ jsx35(Loader27, { className: "w-5 h-5 animate-spin" }) : /* @__PURE__ */ jsx35(Send2, { className: "w-5 h-5 -ml-1" })
16321
+ children: isSending ? /* @__PURE__ */ jsx36(Loader27, { className: "w-5 h-5 animate-spin" }) : /* @__PURE__ */ jsx36(Send2, { className: "w-5 h-5 -ml-1" })
16262
16322
  }
16263
16323
  )
16264
16324
  ] }) })
@@ -16266,7 +16326,7 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16266
16326
  }
16267
16327
 
16268
16328
  // src/components/WhatsAppComponent/inbox/WhatsAppInbox.tsx
16269
- import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
16329
+ import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
16270
16330
  function WhatsAppInbox({
16271
16331
  orgId,
16272
16332
  getConversationsAction,
@@ -16287,8 +16347,8 @@ function WhatsAppInbox({
16287
16347
  sendMessage: sendInboxMessageAction
16288
16348
  });
16289
16349
  const activeConversation = conversations.find((c) => c.id === activeConversationId);
16290
- return /* @__PURE__ */ jsxs30("div", { className: "flex h-[calc(100vh-140px)] min-h-[600px] w-full border border-slate-200 rounded-2xl overflow-hidden bg-white shadow-xs", dir: "rtl", children: [
16291
- /* @__PURE__ */ jsx36(
16350
+ return /* @__PURE__ */ jsxs31("div", { className: "flex h-[calc(100vh-140px)] min-h-[600px] w-full border border-slate-200 rounded-2xl overflow-hidden bg-white shadow-xs", dir: "rtl", children: [
16351
+ /* @__PURE__ */ jsx37(
16292
16352
  ConversationList,
16293
16353
  {
16294
16354
  conversations,
@@ -16296,7 +16356,7 @@ function WhatsAppInbox({
16296
16356
  onSelect: handleSelectConversation
16297
16357
  }
16298
16358
  ),
16299
- /* @__PURE__ */ jsx36(
16359
+ /* @__PURE__ */ jsx37(
16300
16360
  ChatWindow,
16301
16361
  {
16302
16362
  activeConversation,
@@ -16310,21 +16370,21 @@ function WhatsAppInbox({
16310
16370
  }
16311
16371
 
16312
16372
  // src/components/WhatsAppComponent/WhatsAppComponent.tsx
16313
- import { Fragment as Fragment10, jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
16373
+ import { Fragment as Fragment10, jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
16314
16374
  function WhatsAppComponent(props) {
16315
16375
  var _a;
16316
16376
  const { className = "", settings, orgId, componentId, executeAction } = props;
16317
16377
  const state = useWhatsAppState(props);
16318
16378
  const [activeTab, setActiveTab] = React26.useState("broadcast");
16319
- return /* @__PURE__ */ jsxs31(
16379
+ return /* @__PURE__ */ jsxs32(
16320
16380
  "div",
16321
16381
  {
16322
16382
  className: `w-full flex flex-col bg-white border border-slate-200 rounded-2xl shadow-xs overflow-hidden ${className}`,
16323
16383
  "data-testid": "whatsapp-component",
16324
16384
  dir: "rtl",
16325
16385
  children: [
16326
- /* @__PURE__ */ jsxs31("div", { className: "flex border-b border-slate-200 bg-slate-50 px-6 pt-3 gap-4 shrink-0", children: [
16327
- /* @__PURE__ */ jsx37(
16386
+ /* @__PURE__ */ jsxs32("div", { className: "flex border-b border-slate-200 bg-slate-50 px-6 pt-3 gap-4 shrink-0", children: [
16387
+ /* @__PURE__ */ jsx38(
16328
16388
  "button",
16329
16389
  {
16330
16390
  type: "button",
@@ -16333,7 +16393,7 @@ function WhatsAppComponent(props) {
16333
16393
  children: "\u{1F4E4} \u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D5\u05EA\u05E4\u05D5\u05E6\u05D4"
16334
16394
  }
16335
16395
  ),
16336
- /* @__PURE__ */ jsx37(
16396
+ /* @__PURE__ */ jsx38(
16337
16397
  "button",
16338
16398
  {
16339
16399
  type: "button",
@@ -16343,7 +16403,7 @@ function WhatsAppComponent(props) {
16343
16403
  }
16344
16404
  )
16345
16405
  ] }),
16346
- activeTab === "inbox" ? /* @__PURE__ */ jsx37("div", { className: "p-4 flex-1", children: /* @__PURE__ */ jsx37(
16406
+ activeTab === "inbox" ? /* @__PURE__ */ jsx38("div", { className: "p-4 flex-1", children: /* @__PURE__ */ jsx38(
16347
16407
  WhatsAppInbox,
16348
16408
  {
16349
16409
  orgId: orgId || props.organizationId || "",
@@ -16382,37 +16442,37 @@ function WhatsAppComponent(props) {
16382
16442
  }
16383
16443
  }
16384
16444
  }
16385
- ) }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
16386
- state.feedback && /* @__PURE__ */ jsxs31(
16445
+ ) }) : /* @__PURE__ */ jsxs32(Fragment10, { children: [
16446
+ state.feedback && /* @__PURE__ */ jsxs32(
16387
16447
  "div",
16388
16448
  {
16389
16449
  className: `px-6 py-3 border-b text-xs flex items-center justify-between gap-3 ${state.feedback.type === "success" ? "bg-emerald-50 border-emerald-200 text-emerald-800" : "bg-rose-50 border-rose-200 text-rose-800"}`,
16390
16450
  children: [
16391
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
16392
- state.feedback.type === "success" ? /* @__PURE__ */ jsx37(CheckCircle24, { className: "w-4 h-4 text-emerald-600 shrink-0" }) : /* @__PURE__ */ jsx37(AlertCircle5, { className: "w-4 h-4 text-rose-600 shrink-0" }),
16393
- /* @__PURE__ */ jsx37("span", { children: state.feedback.message })
16451
+ /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
16452
+ state.feedback.type === "success" ? /* @__PURE__ */ jsx38(CheckCircle24, { className: "w-4 h-4 text-emerald-600 shrink-0" }) : /* @__PURE__ */ jsx38(AlertCircle5, { className: "w-4 h-4 text-rose-600 shrink-0" }),
16453
+ /* @__PURE__ */ jsx38("span", { children: state.feedback.message })
16394
16454
  ] }),
16395
- /* @__PURE__ */ jsx37(
16455
+ /* @__PURE__ */ jsx38(
16396
16456
  "button",
16397
16457
  {
16398
16458
  type: "button",
16399
16459
  onClick: () => state.setFeedback(null),
16400
16460
  className: "text-slate-400 hover:text-slate-700 cursor-pointer",
16401
- children: /* @__PURE__ */ jsx37(X12, { className: "w-4 h-4" })
16461
+ children: /* @__PURE__ */ jsx38(X12, { className: "w-4 h-4" })
16402
16462
  }
16403
16463
  )
16404
16464
  ]
16405
16465
  }
16406
16466
  ),
16407
- state.fetchError && !state.isLoadingTemplates && /* @__PURE__ */ jsxs31("div", { className: "px-6 py-3 bg-amber-50 border-b border-amber-200 text-xs text-amber-900 flex items-center justify-between", children: [
16408
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2", children: [
16409
- /* @__PURE__ */ jsx37(AlertCircle5, { className: "w-4 h-4 text-amber-600 shrink-0" }),
16410
- /* @__PURE__ */ jsxs31("span", { children: [
16467
+ state.fetchError && !state.isLoadingTemplates && /* @__PURE__ */ jsxs32("div", { className: "px-6 py-3 bg-amber-50 border-b border-amber-200 text-xs text-amber-900 flex items-center justify-between", children: [
16468
+ /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
16469
+ /* @__PURE__ */ jsx38(AlertCircle5, { className: "w-4 h-4 text-amber-600 shrink-0" }),
16470
+ /* @__PURE__ */ jsxs32("span", { children: [
16411
16471
  "\u05E9\u05D2\u05D9\u05D0\u05D4 \u05D1\u05D8\u05E2\u05D9\u05E0\u05EA \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA \u05DE-Meta: ",
16412
16472
  state.fetchError
16413
16473
  ] })
16414
16474
  ] }),
16415
- /* @__PURE__ */ jsx37(
16475
+ /* @__PURE__ */ jsx38(
16416
16476
  "button",
16417
16477
  {
16418
16478
  type: "button",
@@ -16422,9 +16482,9 @@ function WhatsAppComponent(props) {
16422
16482
  }
16423
16483
  )
16424
16484
  ] }),
16425
- /* @__PURE__ */ jsxs31("div", { className: "p-4 flex flex-col gap-4", children: [
16426
- /* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-4 shrink-0 items-stretch", children: [
16427
- /* @__PURE__ */ jsx37(
16485
+ /* @__PURE__ */ jsxs32("div", { className: "p-4 flex flex-col gap-4", children: [
16486
+ /* @__PURE__ */ jsxs32("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-4 shrink-0 items-stretch", children: [
16487
+ /* @__PURE__ */ jsx38(
16428
16488
  TemplateSelectionBlock,
16429
16489
  {
16430
16490
  selectedTemplate: state.selectedTemplate,
@@ -16452,7 +16512,7 @@ function WhatsAppComponent(props) {
16452
16512
  handleFileUpload: state.handleFileUpload
16453
16513
  }
16454
16514
  ),
16455
- /* @__PURE__ */ jsx37(
16515
+ /* @__PURE__ */ jsx38(
16456
16516
  DynamicFiltersBlock,
16457
16517
  {
16458
16518
  filterableColumns: state.filterableColumns,
@@ -16469,7 +16529,7 @@ function WhatsAppComponent(props) {
16469
16529
  isLoadingTableData: state.isLoadingTableData
16470
16530
  }
16471
16531
  ),
16472
- /* @__PURE__ */ jsx37(
16532
+ /* @__PURE__ */ jsx38(
16473
16533
  SettingsAndActionsBlock,
16474
16534
  {
16475
16535
  isScanningPhoneColumns: state.isScanningPhoneColumns,
@@ -16515,13 +16575,13 @@ function WhatsAppComponent(props) {
16515
16575
  }
16516
16576
  )
16517
16577
  ] }),
16518
- /* @__PURE__ */ jsx37("div", { className: "w-full h-[calc(100vh-420px)] min-h-[320px] overflow-hidden border border-slate-200 rounded-2xl shadow-xs bg-white flex flex-col", children: state.isLoadingTableData && state.rawRecords.length === 0 ? /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex flex-col items-center justify-center p-12 text-center text-xs text-slate-400 gap-2", children: [
16519
- /* @__PURE__ */ jsx37(Loader28, { className: "w-6 h-6 animate-spin text-emerald-600" }),
16520
- /* @__PURE__ */ jsx37("span", { children: "\u05D8\u05D5\u05E2\u05DF \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05D4\u05D8\u05D1\u05DC\u05D4..." })
16521
- ] }) : state.tableError ? /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex items-center justify-center p-6 text-center text-xs text-rose-600 bg-rose-50 gap-2", children: [
16522
- /* @__PURE__ */ jsx37(AlertCircle5, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16523
- /* @__PURE__ */ jsx37("span", { children: state.tableError })
16524
- ] }) : !(settings == null ? void 0 : settings.tableMetaId) ? /* @__PURE__ */ jsx37("div", { className: "flex-1 flex items-center justify-center p-10 text-center text-xs text-slate-400", children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05D8\u05D1\u05DC\u05EA \u05DE\u05E7\u05D5\u05E8 \u05E2\u05D1\u05D5\u05E8 \u05E8\u05DB\u05D9\u05D1 WhatsApp \u05D6\u05D4" }) : /* @__PURE__ */ jsx37(
16578
+ /* @__PURE__ */ jsx38("div", { className: "w-full h-[calc(100vh-420px)] min-h-[320px] overflow-hidden border border-slate-200 rounded-2xl shadow-xs bg-white flex flex-col", children: state.isLoadingTableData && state.rawRecords.length === 0 ? /* @__PURE__ */ jsxs32("div", { className: "flex-1 flex flex-col items-center justify-center p-12 text-center text-xs text-slate-400 gap-2", children: [
16579
+ /* @__PURE__ */ jsx38(Loader28, { className: "w-6 h-6 animate-spin text-emerald-600" }),
16580
+ /* @__PURE__ */ jsx38("span", { children: "\u05D8\u05D5\u05E2\u05DF \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05D4\u05D8\u05D1\u05DC\u05D4..." })
16581
+ ] }) : state.tableError ? /* @__PURE__ */ jsxs32("div", { className: "flex-1 flex items-center justify-center p-6 text-center text-xs text-rose-600 bg-rose-50 gap-2", children: [
16582
+ /* @__PURE__ */ jsx38(AlertCircle5, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16583
+ /* @__PURE__ */ jsx38("span", { children: state.tableError })
16584
+ ] }) : !(settings == null ? void 0 : settings.tableMetaId) ? /* @__PURE__ */ jsx38("div", { className: "flex-1 flex items-center justify-center p-10 text-center text-xs text-slate-400", children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05D8\u05D1\u05DC\u05EA \u05DE\u05E7\u05D5\u05E8 \u05E2\u05D1\u05D5\u05E8 \u05E8\u05DB\u05D9\u05D1 WhatsApp \u05D6\u05D4" }) : /* @__PURE__ */ jsx38(
16525
16585
  TableBlockClient,
16526
16586
  {
16527
16587
  settings: {
@@ -16543,7 +16603,7 @@ function WhatsAppComponent(props) {
16543
16603
  }
16544
16604
  ) })
16545
16605
  ] }),
16546
- /* @__PURE__ */ jsx37(
16606
+ /* @__PURE__ */ jsx38(
16547
16607
  CreateTemplateModal,
16548
16608
  {
16549
16609
  isOpen: state.isModalOpen,
@@ -16557,7 +16617,7 @@ function WhatsAppComponent(props) {
16557
16617
  orgId: state.orgId || orgId
16558
16618
  }
16559
16619
  ),
16560
- state.isTestPromptOpen && /* @__PURE__ */ jsx37(
16620
+ state.isTestPromptOpen && /* @__PURE__ */ jsx38(
16561
16621
  "div",
16562
16622
  {
16563
16623
  className: "fixed inset-0 bg-slate-900/60 backdrop-blur-xs z-50 flex items-center justify-center p-4 overflow-y-auto animate-in fade-in duration-150",
@@ -16566,7 +16626,7 @@ function WhatsAppComponent(props) {
16566
16626
  state.setIsTestPromptOpen(false);
16567
16627
  state.setTestFeedback(null);
16568
16628
  },
16569
- children: /* @__PURE__ */ jsxs31(
16629
+ children: /* @__PURE__ */ jsxs32(
16570
16630
  "div",
16571
16631
  {
16572
16632
  className: "bg-white rounded-2xl border border-slate-200 shadow-2xl w-full max-w-md flex flex-col overflow-hidden animate-in zoom-in-95 duration-150",
@@ -16575,15 +16635,15 @@ function WhatsAppComponent(props) {
16575
16635
  "aria-labelledby": "test-modal-title",
16576
16636
  onClick: (e) => e.stopPropagation(),
16577
16637
  children: [
16578
- /* @__PURE__ */ jsxs31("div", { className: "px-5 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
16579
- /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-2.5", children: [
16580
- /* @__PURE__ */ jsx37("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx37(Phone4, { className: "w-4 h-4" }) }),
16581
- /* @__PURE__ */ jsxs31("div", { children: [
16582
- /* @__PURE__ */ jsx37("h3", { id: "test-modal-title", className: "text-sm font-bold text-slate-900", children: "\u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05EA \u05D1\u05D3\u05D9\u05E7\u05D4 (\u05D8\u05E1\u05D8)" }),
16583
- /* @__PURE__ */ jsx37("p", { className: "text-[11px] text-slate-500", children: "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D4\u05EA\u05D1\u05E0\u05D9\u05EA \u05DE\u05D5\u05DC \u05E0\u05DE\u05E2\u05DF \u05D1\u05D5\u05D3\u05D3 \u05DC\u05E4\u05E0\u05D9 \u05E9\u05D9\u05D3\u05D5\u05E8 \u05E8\u05D7\u05D1" })
16638
+ /* @__PURE__ */ jsxs32("div", { className: "px-5 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
16639
+ /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2.5", children: [
16640
+ /* @__PURE__ */ jsx38("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx38(Phone4, { className: "w-4 h-4" }) }),
16641
+ /* @__PURE__ */ jsxs32("div", { children: [
16642
+ /* @__PURE__ */ jsx38("h3", { id: "test-modal-title", className: "text-sm font-bold text-slate-900", children: "\u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05EA \u05D1\u05D3\u05D9\u05E7\u05D4 (\u05D8\u05E1\u05D8)" }),
16643
+ /* @__PURE__ */ jsx38("p", { className: "text-[11px] text-slate-500", children: "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D4\u05EA\u05D1\u05E0\u05D9\u05EA \u05DE\u05D5\u05DC \u05E0\u05DE\u05E2\u05DF \u05D1\u05D5\u05D3\u05D3 \u05DC\u05E4\u05E0\u05D9 \u05E9\u05D9\u05D3\u05D5\u05E8 \u05E8\u05D7\u05D1" })
16584
16644
  ] })
16585
16645
  ] }),
16586
- /* @__PURE__ */ jsx37(
16646
+ /* @__PURE__ */ jsx38(
16587
16647
  "button",
16588
16648
  {
16589
16649
  type: "button",
@@ -16595,25 +16655,25 @@ function WhatsAppComponent(props) {
16595
16655
  },
16596
16656
  className: `w-8 h-8 rounded-lg flex items-center justify-center transition-colors ${state.isSendingTest ? "text-slate-300 cursor-not-allowed" : "text-slate-400 hover:text-slate-700 hover:bg-slate-200/50 cursor-pointer"}`,
16597
16657
  title: "\u05E1\u05D2\u05D5\u05E8",
16598
- children: /* @__PURE__ */ jsx37(X12, { className: "w-4 h-4" })
16658
+ children: /* @__PURE__ */ jsx38(X12, { className: "w-4 h-4" })
16599
16659
  }
16600
16660
  )
16601
16661
  ] }),
16602
- /* @__PURE__ */ jsxs31("div", { className: "p-5 space-y-4", children: [
16603
- /* @__PURE__ */ jsxs31("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16604
- /* @__PURE__ */ jsx37("span", { className: "text-slate-500 font-medium", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05E0\u05D1\u05D7\u05E8\u05EA:" }),
16605
- /* @__PURE__ */ jsx37("span", { className: "font-bold text-slate-800 font-mono", children: ((_a = state.selectedTemplate) == null ? void 0 : _a.name) || "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" })
16662
+ /* @__PURE__ */ jsxs32("div", { className: "p-5 space-y-4", children: [
16663
+ /* @__PURE__ */ jsxs32("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16664
+ /* @__PURE__ */ jsx38("span", { className: "text-slate-500 font-medium", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05E0\u05D1\u05D7\u05E8\u05EA:" }),
16665
+ /* @__PURE__ */ jsx38("span", { className: "font-bold text-slate-800 font-mono", children: ((_a = state.selectedTemplate) == null ? void 0 : _a.name) || "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" })
16606
16666
  ] }),
16607
- state.selectedPhoneOption && /* @__PURE__ */ jsxs31("div", { className: "p-2 bg-emerald-50/50 border border-emerald-200/60 rounded-xl flex items-center justify-between text-[11px]", children: [
16608
- /* @__PURE__ */ jsx37("span", { className: "text-emerald-800 font-medium", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3:" }),
16609
- /* @__PURE__ */ jsx37("span", { className: "font-bold text-emerald-950 font-mono", children: state.selectedPhoneOption.label })
16667
+ state.selectedPhoneOption && /* @__PURE__ */ jsxs32("div", { className: "p-2 bg-emerald-50/50 border border-emerald-200/60 rounded-xl flex items-center justify-between text-[11px]", children: [
16668
+ /* @__PURE__ */ jsx38("span", { className: "text-emerald-800 font-medium", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3:" }),
16669
+ /* @__PURE__ */ jsx38("span", { className: "font-bold text-emerald-950 font-mono", children: state.selectedPhoneOption.label })
16610
16670
  ] }),
16611
16671
  state.templateHeaderComp && (() => {
16612
16672
  const headerFormat = (state.templateHeaderComp.format || "").toUpperCase();
16613
16673
  const docFilename = resolveDocumentFilename(state.templateHeaderComp, state.headerMediaUrl);
16614
- return /* @__PURE__ */ jsxs31("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16615
- /* @__PURE__ */ jsx37("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs31(Fragment10, { children: [
16616
- /* @__PURE__ */ jsx37("div", { className: "w-7 h-7 rounded-md overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ jsx37(
16674
+ return /* @__PURE__ */ jsxs32("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16675
+ /* @__PURE__ */ jsx38("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ jsxs32(Fragment10, { children: [
16676
+ /* @__PURE__ */ jsx38("div", { className: "w-7 h-7 rounded-md overflow-hidden border border-slate-200 shrink-0 bg-slate-100 flex items-center justify-center", children: state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ jsx38(
16617
16677
  "img",
16618
16678
  {
16619
16679
  src: state.headerMediaUrl,
@@ -16623,28 +16683,28 @@ function WhatsAppComponent(props) {
16623
16683
  e.currentTarget.style.display = "none";
16624
16684
  }
16625
16685
  }
16626
- ) : /* @__PURE__ */ jsx37(ImageIcon3, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
16627
- /* @__PURE__ */ jsx37("span", { className: "font-semibold text-slate-800 truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" })
16628
- ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs31(Fragment10, { children: [
16629
- /* @__PURE__ */ jsx37("div", { className: "w-7 h-7 rounded-md bg-rose-50 text-rose-600 border border-rose-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx37(FileText4, { className: "w-3.5 h-3.5" }) }),
16630
- /* @__PURE__ */ jsxs31("div", { className: "overflow-hidden", children: [
16631
- /* @__PURE__ */ jsx37("span", { className: "font-semibold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
16632
- /* @__PURE__ */ jsx37("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
16686
+ ) : /* @__PURE__ */ jsx38(ImageIcon3, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
16687
+ /* @__PURE__ */ jsx38("span", { className: "font-semibold text-slate-800 truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" })
16688
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ jsxs32(Fragment10, { children: [
16689
+ /* @__PURE__ */ jsx38("div", { className: "w-7 h-7 rounded-md bg-rose-50 text-rose-600 border border-rose-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx38(FileText4, { className: "w-3.5 h-3.5" }) }),
16690
+ /* @__PURE__ */ jsxs32("div", { className: "overflow-hidden", children: [
16691
+ /* @__PURE__ */ jsx38("span", { className: "font-semibold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
16692
+ /* @__PURE__ */ jsx38("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
16633
16693
  ] })
16634
- ] }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
16635
- /* @__PURE__ */ jsx37("div", { className: "w-7 h-7 rounded-md bg-indigo-50 text-indigo-600 border border-indigo-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx37(Video3, { className: "w-3.5 h-3.5" }) }),
16636
- /* @__PURE__ */ jsx37("span", { className: "font-semibold text-slate-800 truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" })
16694
+ ] }) : /* @__PURE__ */ jsxs32(Fragment10, { children: [
16695
+ /* @__PURE__ */ jsx38("div", { className: "w-7 h-7 rounded-md bg-indigo-50 text-indigo-600 border border-indigo-100 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx38(Video3, { className: "w-3.5 h-3.5" }) }),
16696
+ /* @__PURE__ */ jsx38("span", { className: "font-semibold text-slate-800 truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" })
16637
16697
  ] }) }),
16638
- state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ jsx37("span", { className: "text-[10px] text-emerald-700 bg-emerald-50 border border-emerald-200 px-1.5 py-0.5 rounded font-medium shrink-0", children: "\u05E7\u05D5\u05D1\u05E5 \u05DE\u05E6\u05D5\u05E8\u05E3 \u05EA\u05E7\u05D9\u05DF" }) : /* @__PURE__ */ jsx37("span", { className: "text-[10px] text-amber-700 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded font-medium shrink-0", children: "\u05E0\u05D3\u05E8\u05E9 \u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5" })
16698
+ state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ jsx38("span", { className: "text-[10px] text-emerald-700 bg-emerald-50 border border-emerald-200 px-1.5 py-0.5 rounded font-medium shrink-0", children: "\u05E7\u05D5\u05D1\u05E5 \u05DE\u05E6\u05D5\u05E8\u05E3 \u05EA\u05E7\u05D9\u05DF" }) : /* @__PURE__ */ jsx38("span", { className: "text-[10px] text-amber-700 bg-amber-50 border border-amber-200 px-1.5 py-0.5 rounded font-medium shrink-0", children: "\u05E0\u05D3\u05E8\u05E9 \u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5" })
16639
16699
  ] });
16640
16700
  })(),
16641
- /* @__PURE__ */ jsxs31("div", { className: "space-y-1.5", children: [
16642
- /* @__PURE__ */ jsxs31("label", { className: "text-xs font-semibold text-slate-700 block", children: [
16701
+ /* @__PURE__ */ jsxs32("div", { className: "space-y-1.5", children: [
16702
+ /* @__PURE__ */ jsxs32("label", { className: "text-xs font-semibold text-slate-700 block", children: [
16643
16703
  "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF \u05DC\u05D8\u05E1\u05D8 ",
16644
- /* @__PURE__ */ jsx37("span", { className: "text-rose-500", children: "*" })
16704
+ /* @__PURE__ */ jsx38("span", { className: "text-rose-500", children: "*" })
16645
16705
  ] }),
16646
- /* @__PURE__ */ jsxs31("div", { className: "relative", children: [
16647
- /* @__PURE__ */ jsx37(
16706
+ /* @__PURE__ */ jsxs32("div", { className: "relative", children: [
16707
+ /* @__PURE__ */ jsx38(
16648
16708
  "input",
16649
16709
  {
16650
16710
  type: "tel",
@@ -16666,17 +16726,17 @@ function WhatsAppComponent(props) {
16666
16726
  className: "w-full h-10 px-3 pr-3 pl-8 text-sm rounded-xl border border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:outline-hidden focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500 transition-all font-mono disabled:opacity-60 disabled:cursor-not-allowed"
16667
16727
  }
16668
16728
  ),
16669
- /* @__PURE__ */ jsx37(Phone4, { className: "w-4 h-4 text-slate-400 absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16729
+ /* @__PURE__ */ jsx38(Phone4, { className: "w-4 h-4 text-slate-400 absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16670
16730
  ] }),
16671
- /* @__PURE__ */ jsx37("p", { className: "text-[11px] text-slate-500 leading-normal", children: "\u05D4\u05D5\u05D3\u05E2\u05EA \u05D4\u05D1\u05D3\u05D9\u05E7\u05D4 \u05EA\u05D9\u05E9\u05DC\u05D7 \u05D9\u05E9\u05D9\u05E8\u05D5\u05EA \u05DC\u05DE\u05E1\u05E4\u05E8 \u05D6\u05D4 \u05DC\u05E6\u05D5\u05E8\u05DA \u05D5\u05D9\u05D3\u05D5\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA \u05EA\u05D5\u05DB\u05DF \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05D5\u05D4\u05E2\u05D9\u05E6\u05D5\u05D1." })
16731
+ /* @__PURE__ */ jsx38("p", { className: "text-[11px] text-slate-500 leading-normal", children: "\u05D4\u05D5\u05D3\u05E2\u05EA \u05D4\u05D1\u05D3\u05D9\u05E7\u05D4 \u05EA\u05D9\u05E9\u05DC\u05D7 \u05D9\u05E9\u05D9\u05E8\u05D5\u05EA \u05DC\u05DE\u05E1\u05E4\u05E8 \u05D6\u05D4 \u05DC\u05E6\u05D5\u05E8\u05DA \u05D5\u05D9\u05D3\u05D5\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D5\u05EA \u05EA\u05D5\u05DB\u05DF \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05D5\u05D4\u05E2\u05D9\u05E6\u05D5\u05D1." })
16672
16732
  ] }),
16673
- state.testFeedback && /* @__PURE__ */ jsxs31("div", { className: "p-2.5 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-700 flex items-center gap-2", children: [
16674
- /* @__PURE__ */ jsx37(AlertCircle5, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16675
- /* @__PURE__ */ jsx37("span", { children: state.testFeedback })
16733
+ state.testFeedback && /* @__PURE__ */ jsxs32("div", { className: "p-2.5 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-700 flex items-center gap-2", children: [
16734
+ /* @__PURE__ */ jsx38(AlertCircle5, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16735
+ /* @__PURE__ */ jsx38("span", { children: state.testFeedback })
16676
16736
  ] })
16677
16737
  ] }),
16678
- /* @__PURE__ */ jsxs31("div", { className: "px-5 py-3.5 bg-slate-50/70 border-t border-slate-100 flex items-center justify-end gap-2", children: [
16679
- /* @__PURE__ */ jsx37(
16738
+ /* @__PURE__ */ jsxs32("div", { className: "px-5 py-3.5 bg-slate-50/70 border-t border-slate-100 flex items-center justify-end gap-2", children: [
16739
+ /* @__PURE__ */ jsx38(
16680
16740
  "button",
16681
16741
  {
16682
16742
  type: "button",
@@ -16690,7 +16750,7 @@ function WhatsAppComponent(props) {
16690
16750
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
16691
16751
  }
16692
16752
  ),
16693
- /* @__PURE__ */ jsx37(
16753
+ /* @__PURE__ */ jsx38(
16694
16754
  "button",
16695
16755
  {
16696
16756
  type: "button",
@@ -16698,12 +16758,12 @@ function WhatsAppComponent(props) {
16698
16758
  onClick: state.handleSendTest,
16699
16759
  title: state.testButtonTitle,
16700
16760
  className: `px-4 py-2 text-xs font-bold rounded-xl transition-all flex items-center gap-1.5 ${!state.testPhoneNumber.trim() || state.isSendingTest || state.isTestDisabled ? "bg-emerald-600/40 text-white/70 cursor-not-allowed" : "bg-emerald-600 hover:bg-emerald-700 active:scale-[0.98] text-white shadow-xs cursor-pointer"}`,
16701
- children: state.isSendingTest ? /* @__PURE__ */ jsxs31(Fragment10, { children: [
16702
- /* @__PURE__ */ jsx37(Loader28, { className: "w-3.5 h-3.5 animate-spin" }),
16703
- /* @__PURE__ */ jsx37("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
16704
- ] }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
16705
- /* @__PURE__ */ jsx37(Send3, { className: "w-3.5 h-3.5" }),
16706
- /* @__PURE__ */ jsx37("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
16761
+ children: state.isSendingTest ? /* @__PURE__ */ jsxs32(Fragment10, { children: [
16762
+ /* @__PURE__ */ jsx38(Loader28, { className: "w-3.5 h-3.5 animate-spin" }),
16763
+ /* @__PURE__ */ jsx38("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
16764
+ ] }) : /* @__PURE__ */ jsxs32(Fragment10, { children: [
16765
+ /* @__PURE__ */ jsx38(Send3, { className: "w-3.5 h-3.5" }),
16766
+ /* @__PURE__ */ jsx38("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
16707
16767
  ] })
16708
16768
  }
16709
16769
  )
@@ -16722,7 +16782,7 @@ function WhatsAppComponent(props) {
16722
16782
  // src/components/FormBlock/FormBlock.tsx
16723
16783
  import { useState as useState27, useEffect as useEffect20 } from "react";
16724
16784
  import { Loader2 as Loader29, CheckCircle2 as CheckCircle25 } from "lucide-react";
16725
- import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
16785
+ import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
16726
16786
 
16727
16787
  // src/components/FormBlock/StyledFormBlock.tsx
16728
16788
  import { useState as useState28, useEffect as useEffect21, useId, useRef as useRef23 } from "react";
@@ -16967,7 +17027,7 @@ function applyFieldOrder(cols, design) {
16967
17027
  }
16968
17028
 
16969
17029
  // src/components/FormBlock/StyledFormBlock.tsx
16970
- import { jsx as jsx39, jsxs as jsxs33 } from "react/jsx-runtime";
17030
+ import { jsx as jsx40, jsxs as jsxs34 } from "react/jsx-runtime";
16971
17031
  var SYSTEM_FIELDS = ["_id", "id", "createdAt", "updatedAt", "orgId", "tableId"];
16972
17032
  function StyledFormBlock({
16973
17033
  settings: schema,
@@ -17336,30 +17396,30 @@ function StyledFormBlock({
17336
17396
  }
17337
17397
  `;
17338
17398
  if (isLoadingSchema) {
17339
- return /* @__PURE__ */ jsxs33("div", { className: "p-8 flex items-center justify-center gap-2 text-slate-500", dir: "rtl", children: [
17340
- /* @__PURE__ */ jsx39(Loader210, { className: "w-5 h-5 animate-spin", style: { color: d.primary } }),
17341
- /* @__PURE__ */ jsx39("span", { className: "text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E9\u05D3\u05D5\u05EA \u05D8\u05D5\u05E4\u05E1..." })
17399
+ return /* @__PURE__ */ jsxs34("div", { className: "p-8 flex items-center justify-center gap-2 text-slate-500", dir: "rtl", children: [
17400
+ /* @__PURE__ */ jsx40(Loader210, { className: "w-5 h-5 animate-spin", style: { color: d.primary } }),
17401
+ /* @__PURE__ */ jsx40("span", { className: "text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E9\u05D3\u05D5\u05EA \u05D8\u05D5\u05E4\u05E1..." })
17342
17402
  ] });
17343
17403
  }
17344
17404
  if (!formColumns || formColumns.length === 0) {
17345
- return /* @__PURE__ */ jsx39("div", { className: "p-4 text-center text-slate-500", children: "\u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8\u05D5 \u05E9\u05D3\u05D5\u05EA \u05DC\u05D8\u05D5\u05E4\u05E1 \u05D6\u05D4." });
17405
+ return /* @__PURE__ */ jsx40("div", { className: "p-4 text-center text-slate-500", children: "\u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8\u05D5 \u05E9\u05D3\u05D5\u05EA \u05DC\u05D8\u05D5\u05E4\u05E1 \u05D6\u05D4." });
17346
17406
  }
17347
17407
  const logoJustify = d.logoAlign === "center" ? "center" : d.logoAlign === "end" ? "flex-end" : "flex-start";
17348
- const headerBlock = (schema == null ? void 0 : schema.title) || d.subtitle || d.logoUrl ? /* @__PURE__ */ jsxs33(
17408
+ const headerBlock = (schema == null ? void 0 : schema.title) || d.subtitle || d.logoUrl ? /* @__PURE__ */ jsxs34(
17349
17409
  "div",
17350
17410
  {
17351
17411
  style: t.headerBand ? { background: d.primary, color: "#ffffff", padding: `${t.padding * 0.8}px ${t.padding}px` } : { marginBottom: t.gap + 4 },
17352
17412
  children: [
17353
- d.logoUrl && /* @__PURE__ */ jsx39("div", { style: { display: "flex", justifyContent: logoJustify, marginBottom: (schema == null ? void 0 : schema.title) || d.subtitle ? 12 : 0 }, children: /* @__PURE__ */ jsx39("img", { src: d.logoUrl, alt: "", style: { height: d.logoHeight, maxWidth: "100%", objectFit: "contain", display: "block" } }) }),
17354
- (schema == null ? void 0 : schema.title) && /* @__PURE__ */ jsx39("h2", { style: __spreadValues({ fontSize: t.titleSize, fontWeight: 800, margin: 0 }, d.titleColor ? { color: d.titleColor } : {}), children: schema.title }),
17355
- d.subtitle && /* @__PURE__ */ jsx39("p", { style: { fontSize: 14, margin: "6px 0 0", color: t.headerBand ? "rgba(255,255,255,0.9)" : muted }, children: d.subtitle })
17413
+ d.logoUrl && /* @__PURE__ */ jsx40("div", { style: { display: "flex", justifyContent: logoJustify, marginBottom: (schema == null ? void 0 : schema.title) || d.subtitle ? 12 : 0 }, children: /* @__PURE__ */ jsx40("img", { src: d.logoUrl, alt: "", style: { height: d.logoHeight, maxWidth: "100%", objectFit: "contain", display: "block" } }) }),
17414
+ (schema == null ? void 0 : schema.title) && /* @__PURE__ */ jsx40("h2", { style: __spreadValues({ fontSize: t.titleSize, fontWeight: 800, margin: 0 }, d.titleColor ? { color: d.titleColor } : {}), children: schema.title }),
17415
+ d.subtitle && /* @__PURE__ */ jsx40("p", { style: { fontSize: 14, margin: "6px 0 0", color: t.headerBand ? "rgba(255,255,255,0.9)" : muted }, children: d.subtitle })
17356
17416
  ]
17357
17417
  }
17358
17418
  ) : null;
17359
17419
  if (isSubmitted) {
17360
17420
  const customMessage = (schema == null ? void 0 : schema.successMessage) || "\u05EA\u05D5\u05D3\u05D4 \u05E8\u05D1\u05D4! \u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05D4\u05EA\u05E7\u05D1\u05DC\u05D5 \u05D1\u05D4\u05E6\u05DC\u05D7\u05D4.";
17361
- return /* @__PURE__ */ jsxs33("div", { id: componentId, dir: "rtl", className, style: __spreadProps(__spreadValues({}, cardStyle), { padding: t.padding || 24, textAlign: "center" }), children: [
17362
- /* @__PURE__ */ jsx39(
17421
+ return /* @__PURE__ */ jsxs34("div", { id: componentId, dir: "rtl", className, style: __spreadProps(__spreadValues({}, cardStyle), { padding: t.padding || 24, textAlign: "center" }), children: [
17422
+ /* @__PURE__ */ jsx40(
17363
17423
  "div",
17364
17424
  {
17365
17425
  style: {
@@ -17373,12 +17433,12 @@ function StyledFormBlock({
17373
17433
  background: t.invertText ? "rgba(255,255,255,0.2)" : "#ecfdf5",
17374
17434
  color: t.invertText ? "#ffffff" : "#059669"
17375
17435
  },
17376
- children: /* @__PURE__ */ jsx39(CheckCircle26, { className: "w-8 h-8" })
17436
+ children: /* @__PURE__ */ jsx40(CheckCircle26, { className: "w-8 h-8" })
17377
17437
  }
17378
17438
  ),
17379
- /* @__PURE__ */ jsx39("h3", { style: { fontSize: 24, fontWeight: 800, margin: "0 0 8px" }, children: "\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E0\u05E9\u05DC\u05D7\u05D4" }),
17380
- /* @__PURE__ */ jsx39("p", { style: { fontSize: 16, color: muted, maxWidth: 420, margin: "0 auto", whiteSpace: "pre-wrap" }, children: customMessage }),
17381
- submitMode !== "update" && /* @__PURE__ */ jsx39(
17439
+ /* @__PURE__ */ jsx40("h3", { style: { fontSize: 24, fontWeight: 800, margin: "0 0 8px" }, children: "\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E0\u05E9\u05DC\u05D7\u05D4" }),
17440
+ /* @__PURE__ */ jsx40("p", { style: { fontSize: 16, color: muted, maxWidth: 420, margin: "0 auto", whiteSpace: "pre-wrap" }, children: customMessage }),
17441
+ submitMode !== "update" && /* @__PURE__ */ jsx40(
17382
17442
  "button",
17383
17443
  {
17384
17444
  type: "button",
@@ -17390,11 +17450,11 @@ function StyledFormBlock({
17390
17450
  ] });
17391
17451
  }
17392
17452
  const justify = d.buttonAlign === "center" ? "center" : d.buttonAlign === "end" ? "flex-end" : d.buttonAlign === "full" ? "stretch" : "flex-start";
17393
- return /* @__PURE__ */ jsxs33("div", { id: componentId, dir: "rtl", className: `${uid} ${className}`, style: cardStyle, children: [
17394
- /* @__PURE__ */ jsx39("style", { children: css }),
17453
+ return /* @__PURE__ */ jsxs34("div", { id: componentId, dir: "rtl", className: `${uid} ${className}`, style: cardStyle, children: [
17454
+ /* @__PURE__ */ jsx40("style", { children: css }),
17395
17455
  headerBlock,
17396
- /* @__PURE__ */ jsx39("div", { style: t.headerBand ? { padding: t.padding } : void 0, children: /* @__PURE__ */ jsxs33("form", { onSubmit: handleSubmit, children: [
17397
- /* @__PURE__ */ jsx39("div", { className: "fdz-grid", ref: gridRef, children: (() => {
17456
+ /* @__PURE__ */ jsx40("div", { style: t.headerBand ? { padding: t.padding } : void 0, children: /* @__PURE__ */ jsxs34("form", { onSubmit: handleSubmit, children: [
17457
+ /* @__PURE__ */ jsx40("div", { className: "fdz-grid", ref: gridRef, children: (() => {
17398
17458
  const spanOf = (col) => {
17399
17459
  var _a;
17400
17460
  if (resizing && resizing.name === col.name) return resizing.span;
@@ -17412,7 +17472,7 @@ function StyledFormBlock({
17412
17472
  const fieldHeight = resizing && resizing.name === col.name ? resizing.height : (_e = (_d = design == null ? void 0 : design.fields) == null ? void 0 : _d[col.name]) == null ? void 0 : _e.height;
17413
17473
  const useTextarea = !!fieldHeight && fieldHeight > 56 && InputComponent === FORM_INPUTS.DEFAULT;
17414
17474
  const boxStyle = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, isBoolean ? booleanBoxStyle : inputBoxStyle), fieldHeight && !isBoolean ? __spreadValues({ minHeight: fieldHeight }, useTextarea ? { height: fieldHeight } : {}) : {}), canReorder ? { pointerEvents: "none" } : {}), missingNames.includes(col.name) ? t.inputStyle === "underline" ? { borderBottom: "2px solid #f43f5e" } : { border: "1px solid #f43f5e", boxShadow: "0 0 0 3px rgba(244,63,94,0.15)" } : {}), locked ? { background: t.inputStyle === "underline" ? "transparent" : "#f1f5f9", opacity: 0.85, cursor: "not-allowed" } : {});
17415
- return /* @__PURE__ */ jsxs33(
17475
+ return /* @__PURE__ */ jsxs34(
17416
17476
  "div",
17417
17477
  {
17418
17478
  "data-fdz-field": col.name,
@@ -17436,13 +17496,13 @@ function StyledFormBlock({
17436
17496
  borderRadius: 6
17437
17497
  } : {}),
17438
17498
  children: [
17439
- /* @__PURE__ */ jsxs33("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17499
+ /* @__PURE__ */ jsxs34("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17440
17500
  col.name,
17441
17501
  " ",
17442
- isFieldRequired(col, design) && !locked && /* @__PURE__ */ jsx39("span", { style: { color: t.invertText ? "#fecdd3" : "#f43f5e" }, children: "*" }),
17443
- locked && /* @__PURE__ */ jsx39("span", { style: { fontSize: 11, fontWeight: 400, opacity: 0.7 }, children: "(\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E2\u05E8\u05D9\u05DB\u05D4)" })
17502
+ isFieldRequired(col, design) && !locked && /* @__PURE__ */ jsx40("span", { style: { color: t.invertText ? "#fecdd3" : "#f43f5e" }, children: "*" }),
17503
+ locked && /* @__PURE__ */ jsx40("span", { style: { fontSize: 11, fontWeight: 400, opacity: 0.7 }, children: "(\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E2\u05E8\u05D9\u05DB\u05D4)" })
17444
17504
  ] }),
17445
- /* @__PURE__ */ jsx39("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ jsx39(
17505
+ /* @__PURE__ */ jsx40("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ jsx40(
17446
17506
  "textarea",
17447
17507
  {
17448
17508
  value: shownValue,
@@ -17462,7 +17522,7 @@ function StyledFormBlock({
17462
17522
  boxSizing: "border-box"
17463
17523
  }
17464
17524
  }
17465
- ) : /* @__PURE__ */ jsx39(
17525
+ ) : /* @__PURE__ */ jsx40(
17466
17526
  InputComponent,
17467
17527
  {
17468
17528
  column: col,
@@ -17473,7 +17533,7 @@ function StyledFormBlock({
17473
17533
  context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef, orgId: schema == null ? void 0 : schema.orgId }
17474
17534
  }
17475
17535
  ) }),
17476
- canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ jsx39(
17536
+ canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ jsx40(
17477
17537
  "div",
17478
17538
  {
17479
17539
  style: __spreadValues({
@@ -17488,7 +17548,7 @@ function StyledFormBlock({
17488
17548
  }, drop.side === "before" ? { insetInlineStart: -(t.gap / 2) - 2 } : { insetInlineEnd: -(t.gap / 2) - 2 })
17489
17549
  }
17490
17550
  ),
17491
- onFieldResize && !isBoolean && /* @__PURE__ */ jsx39(
17551
+ onFieldResize && !isBoolean && /* @__PURE__ */ jsx40(
17492
17552
  "div",
17493
17553
  {
17494
17554
  onMouseDown: (e) => e.stopPropagation(),
@@ -17518,7 +17578,7 @@ function StyledFormBlock({
17518
17578
  };
17519
17579
  return formColumns.map((col) => renderField(col));
17520
17580
  })() }),
17521
- formError && /* @__PURE__ */ jsx39(
17581
+ formError && /* @__PURE__ */ jsx40(
17522
17582
  "div",
17523
17583
  {
17524
17584
  ref: errorRef,
@@ -17537,7 +17597,7 @@ function StyledFormBlock({
17537
17597
  children: formError
17538
17598
  }
17539
17599
  ),
17540
- /* @__PURE__ */ jsx39(
17600
+ /* @__PURE__ */ jsx40(
17541
17601
  "div",
17542
17602
  {
17543
17603
  style: {
@@ -17547,7 +17607,7 @@ function StyledFormBlock({
17547
17607
  display: "flex",
17548
17608
  justifyContent: justify
17549
17609
  },
17550
- children: /* @__PURE__ */ jsxs33(
17610
+ children: /* @__PURE__ */ jsxs34(
17551
17611
  "button",
17552
17612
  {
17553
17613
  type: "submit",
@@ -17570,8 +17630,8 @@ function StyledFormBlock({
17570
17630
  opacity: isSubmitting ? 0.5 : 1
17571
17631
  },
17572
17632
  children: [
17573
- isSubmitting && /* @__PURE__ */ jsx39(Loader210, { className: "w-4 h-4 animate-spin" }),
17574
- /* @__PURE__ */ jsx39("span", { children: isSubmitting ? "\u05E9\u05D5\u05DE\u05E8..." : d.buttonText })
17633
+ isSubmitting && /* @__PURE__ */ jsx40(Loader210, { className: "w-4 h-4 animate-spin" }),
17634
+ /* @__PURE__ */ jsx40("span", { children: isSubmitting ? "\u05E9\u05D5\u05DE\u05E8..." : d.buttonText })
17575
17635
  ]
17576
17636
  }
17577
17637
  )
@@ -17583,7 +17643,7 @@ function StyledFormBlock({
17583
17643
 
17584
17644
  // src/themes/ThemeScope.tsx
17585
17645
  import * as React29 from "react";
17586
- import { jsx as jsx40 } from "react/jsx-runtime";
17646
+ import { jsx as jsx41 } from "react/jsx-runtime";
17587
17647
  var UNIVERSE_THEME_IDS = ["classic", "clean", "ocean", "warm"];
17588
17648
  function resolveUniverseTheme(value) {
17589
17649
  return typeof value === "string" && UNIVERSE_THEME_IDS.includes(value) ? value : "classic";
@@ -17593,7 +17653,7 @@ function withThemeScope(Component) {
17593
17653
  var _a, _b, _c;
17594
17654
  const p = props;
17595
17655
  const theme = resolveUniverseTheme((_c = (_a = p.settings) == null ? void 0 : _a.theme) != null ? _c : (_b = p.config) == null ? void 0 : _b.theme);
17596
- return /* @__PURE__ */ jsx40("div", { "data-theme": theme, style: { display: "contents" }, children: React29.createElement(Component, props) });
17656
+ return /* @__PURE__ */ jsx41("div", { "data-theme": theme, style: { display: "contents" }, children: React29.createElement(Component, props) });
17597
17657
  }
17598
17658
  ThemeScoped.displayName = `ThemeScoped(${Component.displayName || Component.name || "Component"})`;
17599
17659
  return ThemeScoped;