@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.js CHANGED
@@ -6243,51 +6243,61 @@ var import_jsx_runtime14 = require("react/jsx-runtime");
6243
6243
  function RelationButtonsView({ groups, onSelect, disabled, stacked = false }) {
6244
6244
  const visible = groups.filter((g) => g.options.length > 0);
6245
6245
  if (visible.length === 0) return null;
6246
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `grid grid-cols-1 gap-2.5 ${stacked ? "" : "md:grid-cols-2"}`, children: visible.map((group) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
6247
- "div",
6248
- {
6249
- className: "bg-white border border-slate-200 rounded-xl p-3 flex flex-col gap-2.5 shadow-2xs",
6250
- children: [
6251
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between gap-2 pb-2 border-b border-slate-100", children: [
6252
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-xs font-bold text-slate-800 truncate", title: group.title, children: group.title }),
6246
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `grid grid-cols-1 gap-2.5 ${stacked ? "" : "md:grid-cols-2"}`, children: visible.map((group) => {
6247
+ const titleIsDuplicate = group.options.some(
6248
+ (opt) => opt.label.trim() === group.title.trim()
6249
+ );
6250
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6251
+ "div",
6252
+ {
6253
+ className: "bg-white border border-slate-200 rounded-xl px-3 py-2.5 shadow-2xs",
6254
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-wrap items-end gap-x-2 gap-y-2.5", children: [
6255
+ !titleIsDuplicate && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6256
+ "span",
6257
+ {
6258
+ className: "self-end h-8 inline-flex items-center text-xs font-bold text-slate-800 max-w-[10rem] truncate",
6259
+ title: group.title,
6260
+ children: group.title
6261
+ }
6262
+ ),
6263
+ group.options.map((opt) => {
6264
+ const active = group.activeId === opt.id;
6265
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col items-center gap-0.5", children: [
6266
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6267
+ "span",
6268
+ {
6269
+ className: `text-[11px] font-bold leading-none ${active ? "text-indigo-700" : "text-slate-500"}`,
6270
+ children: opt.count
6271
+ }
6272
+ ),
6273
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6274
+ "button",
6275
+ {
6276
+ type: "button",
6277
+ disabled,
6278
+ onClick: () => onSelect(group.key, active ? void 0 : opt.id),
6279
+ 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}`,
6280
+ "aria-pressed": active,
6281
+ 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"}`,
6282
+ children: opt.label
6283
+ }
6284
+ )
6285
+ ] }, opt.id);
6286
+ }),
6253
6287
  group.activeId ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6254
6288
  "button",
6255
6289
  {
6256
6290
  type: "button",
6257
6291
  onClick: () => onSelect(group.key, void 0),
6258
- className: "text-[11px] font-semibold text-rose-600 hover:text-rose-700 hover:underline cursor-pointer shrink-0",
6292
+ 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",
6259
6293
  children: "\u05E0\u05E7\u05D4 \u05E1\u05D9\u05E0\u05D5\u05DF"
6260
6294
  }
6261
6295
  ) : null
6262
- ] }),
6263
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-wrap items-end gap-x-2 gap-y-2.5", children: group.options.map((opt) => {
6264
- const active = group.activeId === opt.id;
6265
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col items-center gap-0.5", children: [
6266
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6267
- "span",
6268
- {
6269
- className: `text-[11px] font-bold leading-none ${active ? "text-indigo-700" : "text-slate-500"}`,
6270
- children: opt.count
6271
- }
6272
- ),
6273
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
6274
- "button",
6275
- {
6276
- type: "button",
6277
- disabled,
6278
- onClick: () => onSelect(group.key, active ? void 0 : opt.id),
6279
- 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}`,
6280
- "aria-pressed": active,
6281
- 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"}`,
6282
- children: opt.label
6283
- }
6284
- )
6285
- ] }, opt.id);
6286
- }) })
6287
- ]
6288
- },
6289
- group.key
6290
- )) });
6296
+ ] })
6297
+ },
6298
+ group.key
6299
+ );
6300
+ }) });
6291
6301
  }
6292
6302
 
6293
6303
  // src/components/TableBlock/RelationButtonsBar.tsx
@@ -11011,8 +11021,57 @@ async function uploadFileToDrive(file, opts) {
11011
11021
  };
11012
11022
  }
11013
11023
 
11014
- // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
11024
+ // src/components/PaymentReportsBlock/PortalLinksBar.tsx
11015
11025
  var import_jsx_runtime29 = require("react/jsx-runtime");
11026
+ function platformOrigin() {
11027
+ const w = typeof window !== "undefined" ? window : {};
11028
+ 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 : "");
11029
+ return String(base).replace(/\/$/, "");
11030
+ }
11031
+ function PortalLinksBar({ config, componentId }) {
11032
+ const { addToast } = useToast();
11033
+ if (!config.portalEnabled || !config.reportersTableId) return null;
11034
+ const origin = platformOrigin();
11035
+ const links = [
11036
+ config.registrationFormId && {
11037
+ label: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D4\u05E8\u05E9\u05DE\u05D4 (\u05D8\u05D5\u05E4\u05E1 1)",
11038
+ url: `${origin}/embed/form/${config.reportersTableId}?form=${encodeURIComponent(config.registrationFormId)}`
11039
+ },
11040
+ componentId && {
11041
+ 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)",
11042
+ url: `${origin}/embed/reporter-report/${config.reportsTableId}?c=${encodeURIComponent(componentId)}`
11043
+ }
11044
+ ].filter(Boolean);
11045
+ if (!links.length) return null;
11046
+ const copy = async (url, label) => {
11047
+ try {
11048
+ await navigator.clipboard.writeText(url);
11049
+ addToast({ type: "success", message: `${label}: \u05D4\u05D5\u05E2\u05EA\u05E7` });
11050
+ } catch (e) {
11051
+ window.prompt("\u05D4\u05E2\u05EA\u05E7 \u05D9\u05D3\u05E0\u05D9\u05EA:", url);
11052
+ }
11053
+ };
11054
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
11055
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "font-semibold text-slate-600 whitespace-nowrap", children: [
11056
+ l.label,
11057
+ ":"
11058
+ ] }),
11059
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11060
+ "input",
11061
+ {
11062
+ readOnly: true,
11063
+ dir: "ltr",
11064
+ value: l.url,
11065
+ onFocus: (e) => e.currentTarget.select(),
11066
+ className: "flex-1 min-w-[200px] rounded-md border border-slate-200 bg-white px-2 py-1 text-[11px] text-slate-600"
11067
+ }
11068
+ ),
11069
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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" })
11070
+ ] }, l.url)) });
11071
+ }
11072
+
11073
+ // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
11074
+ var import_jsx_runtime30 = require("react/jsx-runtime");
11016
11075
  var EMPTY = { rows: [], columns: [], relationOptions: {} };
11017
11076
  var PaymentReportsBlock = (props) => {
11018
11077
  const { executeAction, orgId, role, readOnly, permissions, className } = props;
@@ -11180,16 +11239,17 @@ var PaymentReportsBlock = (props) => {
11180
11239
  }
11181
11240
  };
11182
11241
  if (!config || missing.length) {
11183
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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.' });
11242
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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.' });
11184
11243
  }
11185
11244
  const tabs = [
11186
11245
  { key: "unpaid", label: "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD (\u05D8\u05E8\u05DD \u05E9\u05D5\u05DC\u05DE\u05D5)", count: unpaidCount },
11187
11246
  { 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 },
11188
11247
  { key: "receipts", label: '\u05E7\u05D1\u05DC\u05D5\u05EA \u05D5\u05D4\u05E0\u05D4"\u05D7', count: model.payments.filter((p) => !!p.receiptDate).length }
11189
11248
  ];
11190
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { dir: "rtl", className: `w-full flex flex-col gap-4 ${className || ""}`, children: [
11191
- config.title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h2", { className: "text-2xl font-bold text-slate-800", children: config.title }),
11192
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex border-b border-slate-200 overflow-x-auto", children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
11249
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { dir: "rtl", className: `w-full flex flex-col gap-4 ${className || ""}`, children: [
11250
+ config.title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { className: "text-2xl font-bold text-slate-800", children: config.title }),
11251
+ canEdit && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PortalLinksBar, { config, componentId: props.componentId }),
11252
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex border-b border-slate-200 overflow-x-auto", children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11193
11253
  "button",
11194
11254
  {
11195
11255
  type: "button",
@@ -11198,7 +11258,7 @@ var PaymentReportsBlock = (props) => {
11198
11258
  children: [
11199
11259
  t.label,
11200
11260
  " ",
11201
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "text-xs opacity-70", children: [
11261
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-xs opacity-70", children: [
11202
11262
  "(",
11203
11263
  t.count,
11204
11264
  ")"
@@ -11207,8 +11267,8 @@ var PaymentReportsBlock = (props) => {
11207
11267
  },
11208
11268
  t.key
11209
11269
  )) }),
11210
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
11211
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11270
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
11271
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11212
11272
  "input",
11213
11273
  {
11214
11274
  type: "text",
@@ -11218,24 +11278,24 @@ var PaymentReportsBlock = (props) => {
11218
11278
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white w-64"
11219
11279
  }
11220
11280
  ),
11221
- config.reportDateColumn && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
11281
+ config.reportDateColumn && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11222
11282
  "select",
11223
11283
  {
11224
11284
  value: month,
11225
11285
  onChange: (e) => setMonth(e.target.value),
11226
11286
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white",
11227
11287
  children: [
11228
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: "", children: "\u05DB\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD" }),
11229
- months.map((m) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: m, children: monthLabel(m) }, m))
11288
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "", children: "\u05DB\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD" }),
11289
+ months.map((m) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: m, children: monthLabel(m) }, m))
11230
11290
  ]
11231
11291
  }
11232
11292
  )
11233
11293
  ] }),
11234
- error && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("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: [
11235
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: error }),
11236
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { type: "button", onClick: () => load(), className: "underline cursor-pointer", children: "\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1" })
11294
+ error && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
11295
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: error }),
11296
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", onClick: () => load(), className: "underline cursor-pointer", children: "\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1" })
11237
11297
  ] }),
11238
- loading ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsx)(
11298
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(
11239
11299
  UnpaidReportsTab,
11240
11300
  {
11241
11301
  config,
@@ -11250,8 +11310,8 @@ var PaymentReportsBlock = (props) => {
11250
11310
  paymentLabels,
11251
11311
  handlers
11252
11312
  }
11253
- ) : tab === "paid" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PaidPaymentsTab, { config, symbol, canEdit, payments: pendingPayments, search, handlers }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ReceiptsTab, { config, symbol, canEdit, payments: receivedPayments, search, handlers }),
11254
- details && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11313
+ ) : tab === "paid" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PaidPaymentsTab, { config, symbol, canEdit, payments: pendingPayments, search, handlers }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ReceiptsTab, { config, symbol, canEdit, payments: receivedPayments, search, handlers }),
11314
+ details && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11255
11315
  PaymentDetailsModal,
11256
11316
  {
11257
11317
  payment: model.payments.find((p) => p.id === details.id) || details,
@@ -11262,7 +11322,7 @@ var PaymentReportsBlock = (props) => {
11262
11322
  onClose: () => setDetails(null)
11263
11323
  }
11264
11324
  ),
11265
- confirm && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11325
+ confirm && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11266
11326
  ConfirmModal,
11267
11327
  {
11268
11328
  danger: true,
@@ -11271,11 +11331,11 @@ var PaymentReportsBlock = (props) => {
11271
11331
  confirmLabel: confirm.kind === "deleteReports" ? "\u05DE\u05D7\u05E7" : "\u05D1\u05D8\u05DC",
11272
11332
  onConfirm: runConfirmed,
11273
11333
  onClose: () => setConfirm(null),
11274
- message: confirm.kind === "deleteReports" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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__ */ (0, import_jsx_runtime29.jsxs)("p", { children: [
11334
+ message: confirm.kind === "deleteReports" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsxs)("p", { children: [
11275
11335
  '\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)"',
11276
11336
  confirm.payment.proof.length > 0 ? ", \u05D5\u05D4\u05D0\u05E1\u05DE\u05DB\u05EA\u05D0 \u05EA\u05D9\u05DE\u05D7\u05E7 \u05D2\u05DD \u05DE-Google Drive" : "",
11277
11337
  ". \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?"
11278
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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?' })
11338
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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?' })
11279
11339
  }
11280
11340
  )
11281
11341
  ] });
@@ -11406,7 +11466,7 @@ function readFileAsBase64(file) {
11406
11466
  }
11407
11467
 
11408
11468
  // src/components/WhatsAppComponent/CreateTemplateModal.tsx
11409
- var import_jsx_runtime30 = require("react/jsx-runtime");
11469
+ var import_jsx_runtime31 = require("react/jsx-runtime");
11410
11470
  function CreateTemplateModal({
11411
11471
  isOpen,
11412
11472
  onClose,
@@ -11758,12 +11818,12 @@ function CreateTemplateModal({
11758
11818
  }
11759
11819
  };
11760
11820
  if (!isOpen) return null;
11761
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11821
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11762
11822
  "div",
11763
11823
  {
11764
11824
  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",
11765
11825
  dir: "rtl",
11766
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11826
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11767
11827
  "div",
11768
11828
  {
11769
11829
  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",
@@ -11771,43 +11831,43 @@ function CreateTemplateModal({
11771
11831
  "aria-modal": "true",
11772
11832
  "aria-labelledby": "modal-title",
11773
11833
  children: [
11774
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
11775
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2.5", children: [
11776
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Plus, { className: "w-4 h-4" }) }),
11777
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
11778
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" }),
11779
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
11834
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "px-6 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
11835
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2.5", children: [
11836
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Plus, { className: "w-4 h-4" }) }),
11837
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
11838
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" }),
11839
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
11780
11840
  ] })
11781
11841
  ] }),
11782
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11842
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11783
11843
  "button",
11784
11844
  {
11785
11845
  type: "button",
11786
11846
  onClick: onClose,
11787
11847
  className: "p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",
11788
11848
  "aria-label": "\u05E1\u05D2\u05D5\u05E8",
11789
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.X, { className: "w-5 h-5" })
11849
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.X, { className: "w-5 h-5" })
11790
11850
  }
11791
11851
  )
11792
11852
  ] }),
11793
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("form", { onSubmit: handleSubmit, className: "flex flex-col overflow-hidden flex-1", children: [
11794
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-6 overflow-y-auto space-y-5 flex-1", children: [
11795
- submitError && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-800 flex items-center gap-2", children: [
11796
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11797
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: submitError })
11853
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("form", { onSubmit: handleSubmit, className: "flex flex-col overflow-hidden flex-1", children: [
11854
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-6 overflow-y-auto space-y-5 flex-1", children: [
11855
+ submitError && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-3 bg-rose-50 border border-rose-200 rounded-xl text-xs text-rose-800 flex items-center gap-2", children: [
11856
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11857
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: submitError })
11798
11858
  ] }),
11799
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1.5", children: [
11800
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between", children: [
11801
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11859
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11860
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
11861
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11802
11862
  "\u05E9\u05DD \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4 ",
11803
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
11863
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
11804
11864
  ] }),
11805
- templateName && isNamePatternValid && !isNameDuplicate && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-[11px] text-emerald-600 font-semibold flex items-center gap-1", children: [
11806
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.CheckCircle2, { className: "w-3.5 h-3.5" }),
11865
+ templateName && isNamePatternValid && !isNameDuplicate && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[11px] text-emerald-600 font-semibold flex items-center gap-1", children: [
11866
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.CheckCircle2, { className: "w-3.5 h-3.5" }),
11807
11867
  " \u05E9\u05DD \u05EA\u05E7\u05D9\u05DF"
11808
11868
  ] })
11809
11869
  ] }),
11810
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11870
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11811
11871
  "input",
11812
11872
  {
11813
11873
  type: "text",
@@ -11819,47 +11879,47 @@ function CreateTemplateModal({
11819
11879
  required: true
11820
11880
  }
11821
11881
  ),
11822
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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." }),
11823
- !isNameEmpty && isNameDuplicate && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("p", { className: "text-[11px] text-rose-600 font-semibold flex items-center gap-1 mt-1", children: [
11824
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.AlertCircle, { className: "w-3.5 h-3.5 shrink-0" }),
11882
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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." }),
11883
+ !isNameEmpty && isNameDuplicate && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("p", { className: "text-[11px] text-rose-600 font-semibold flex items-center gap-1 mt-1", children: [
11884
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-3.5 h-3.5 shrink-0" }),
11825
11885
  "\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 (",
11826
11886
  language,
11827
11887
  "). \u05D0\u05E0\u05D0 \u05D1\u05D7\u05E8 \u05E9\u05DD \u05D9\u05D9\u05D7\u05D5\u05D3\u05D9 \u05D0\u05D5 \u05E9\u05E4\u05D4 \u05D0\u05D7\u05E8\u05EA."
11828
11888
  ] })
11829
11889
  ] }),
11830
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
11831
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1.5", children: [
11832
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E9\u05E4\u05D4" }),
11833
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11890
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
11891
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11892
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E9\u05E4\u05D4" }),
11893
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11834
11894
  "select",
11835
11895
  {
11836
11896
  value: language,
11837
11897
  onChange: (e) => setLanguage(e.target.value),
11838
11898
  className: "w-full px-3 py-2 text-xs bg-slate-50 border border-slate-200 rounded-xl text-slate-800 outline-hidden",
11839
- children: LANGUAGE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11899
+ children: LANGUAGE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11840
11900
  }
11841
11901
  )
11842
11902
  ] }),
11843
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1.5", children: [
11844
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4" }),
11845
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11903
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11904
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4" }),
11905
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11846
11906
  "select",
11847
11907
  {
11848
11908
  value: category,
11849
11909
  onChange: (e) => setCategory(e.target.value),
11850
11910
  className: "w-full px-3 py-2 text-xs bg-slate-50 border border-slate-200 rounded-xl text-slate-800 outline-hidden",
11851
- children: CATEGORY_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11911
+ children: CATEGORY_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11852
11912
  }
11853
11913
  )
11854
11914
  ] })
11855
11915
  ] }),
11856
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-2", children: [
11857
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11916
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-2", children: [
11917
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11858
11918
  "\u05EA\u05D5\u05DB\u05DF \u05D2\u05D5\u05E3 \u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 ",
11859
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
11919
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
11860
11920
  ] }),
11861
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
11862
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11921
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
11922
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11863
11923
  "textarea",
11864
11924
  {
11865
11925
  ref: textareaRef,
@@ -11874,14 +11934,14 @@ function CreateTemplateModal({
11874
11934
  required: true
11875
11935
  }
11876
11936
  ),
11877
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11937
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11878
11938
  "div",
11879
11939
  {
11880
11940
  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",
11881
11941
  dir: language === "en_US" ? "ltr" : "rtl",
11882
11942
  children: [
11883
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-1", children: [
11884
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11943
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1", children: [
11944
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11885
11945
  "button",
11886
11946
  {
11887
11947
  type: "button",
@@ -11889,10 +11949,10 @@ function CreateTemplateModal({
11889
11949
  onClick: () => handleApplyFormatting("*"),
11890
11950
  title: "\u05DE\u05D5\u05D3\u05D2\u05E9 (Bold) *\u05D8\u05E7\u05E1\u05D8*",
11891
11951
  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",
11892
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Bold, { className: "w-3.5 h-3.5" })
11952
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Bold, { className: "w-3.5 h-3.5" })
11893
11953
  }
11894
11954
  ),
11895
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11955
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11896
11956
  "button",
11897
11957
  {
11898
11958
  type: "button",
@@ -11900,10 +11960,10 @@ function CreateTemplateModal({
11900
11960
  onClick: () => handleApplyFormatting("_"),
11901
11961
  title: "\u05E0\u05D8\u05D5\u05D9 (Italic) _\u05D8\u05E7\u05E1\u05D8_",
11902
11962
  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",
11903
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Italic, { className: "w-3.5 h-3.5" })
11963
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Italic, { className: "w-3.5 h-3.5" })
11904
11964
  }
11905
11965
  ),
11906
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11966
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11907
11967
  "button",
11908
11968
  {
11909
11969
  type: "button",
@@ -11911,12 +11971,12 @@ function CreateTemplateModal({
11911
11971
  onClick: () => handleApplyFormatting("~"),
11912
11972
  title: "\u05E7\u05D5 \u05D7\u05D5\u05E6\u05D4 (Strikethrough) ~\u05D8\u05E7\u05E1\u05D8~",
11913
11973
  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",
11914
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Strikethrough, { className: "w-3.5 h-3.5" })
11974
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Strikethrough, { className: "w-3.5 h-3.5" })
11915
11975
  }
11916
11976
  ),
11917
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11918
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative inline-block", ref: emojiPickerRef, children: [
11919
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11977
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11978
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative inline-block", ref: emojiPickerRef, children: [
11979
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11920
11980
  "button",
11921
11981
  {
11922
11982
  type: "button",
@@ -11924,16 +11984,16 @@ function CreateTemplateModal({
11924
11984
  onClick: () => setIsEmojiPickerOpen(!isEmojiPickerOpen),
11925
11985
  title: "\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9 (Emoji)",
11926
11986
  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"}`,
11927
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Smile, { className: "w-4 h-4" })
11987
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Smile, { className: "w-4 h-4" })
11928
11988
  }
11929
11989
  ),
11930
- isEmojiPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11990
+ isEmojiPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11931
11991
  "div",
11932
11992
  {
11933
11993
  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`,
11934
11994
  dir: "ltr",
11935
11995
  onMouseDown: (e) => e.stopPropagation(),
11936
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11996
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11937
11997
  import_emoji_picker_react.default,
11938
11998
  {
11939
11999
  onEmojiClick: (emojiData) => {
@@ -11950,8 +12010,8 @@ function CreateTemplateModal({
11950
12010
  }
11951
12011
  )
11952
12012
  ] }),
11953
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11954
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12013
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
12014
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11955
12015
  "button",
11956
12016
  {
11957
12017
  type: "button",
@@ -11961,28 +12021,28 @@ function CreateTemplateModal({
11961
12021
  "aria-label": language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4",
11962
12022
  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",
11963
12023
  children: [
11964
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
11965
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4" })
12024
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
12025
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4" })
11966
12026
  ]
11967
12027
  }
11968
12028
  )
11969
12029
  ] }),
11970
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12030
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11971
12031
  "div",
11972
12032
  {
11973
12033
  className: "flex items-center gap-1 font-mono text-[11px]",
11974
12034
  dir: "ltr",
11975
12035
  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)",
11976
12036
  children: [
11977
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12037
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11978
12038
  "span",
11979
12039
  {
11980
12040
  className: `font-semibold transition-colors ${bodyText.length >= 1024 ? "text-rose-600" : bodyText.length >= 950 ? "text-amber-600" : "text-slate-500"}`,
11981
12041
  children: bodyText.length
11982
12042
  }
11983
12043
  ),
11984
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-slate-300", children: "/" }),
11985
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-slate-400", children: "1024" })
12044
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-slate-300", children: "/" }),
12045
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-slate-400", children: "1024" })
11986
12046
  ]
11987
12047
  }
11988
12048
  )
@@ -11990,30 +12050,30 @@ function CreateTemplateModal({
11990
12050
  }
11991
12051
  )
11992
12052
  ] }),
11993
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex flex-wrap items-center justify-between text-[11px] text-slate-400 px-1 gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-3", children: [
11994
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { children: [
12053
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex flex-wrap items-center justify-between text-[11px] text-slate-400 px-1 gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-3", children: [
12054
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { children: [
11995
12055
  ratioInfo.staticWordsCount,
11996
12056
  " \u05DE\u05D9\u05DC\u05D9\u05DD"
11997
12057
  ] }),
11998
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { children: [
12058
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { children: [
11999
12059
  ratioInfo.variableCount,
12000
12060
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
12001
12061
  ] })
12002
12062
  ] }) }),
12003
- uniqueVariables.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
12004
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-1.5 text-xs font-bold text-slate-800", children: [
12005
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Info, { className: "w-4 h-4 text-emerald-600" }),
12006
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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)" })
12063
+ uniqueVariables.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
12064
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 text-xs font-bold text-slate-800", children: [
12065
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Info, { className: "w-4 h-4 text-emerald-600" }),
12066
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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)" })
12007
12067
  ] }),
12008
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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." }),
12009
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1", children: uniqueVariables.map((idx) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12010
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "block text-[11px] font-semibold text-slate-700 font-mono", children: [
12068
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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." }),
12069
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1", children: uniqueVariables.map((idx) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12070
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-[11px] font-semibold text-slate-700 font-mono", children: [
12011
12071
  "\u05D3\u05D5\u05D2\u05DE\u05D4 \u05E2\u05D1\u05D5\u05E8 ",
12012
12072
  `{{${idx}}}`,
12013
12073
  " ",
12014
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12074
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12015
12075
  ] }),
12016
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12076
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12017
12077
  "input",
12018
12078
  {
12019
12079
  type: "text",
@@ -12028,21 +12088,21 @@ function CreateTemplateModal({
12028
12088
  )
12029
12089
  ] }, idx)) })
12030
12090
  ] }),
12031
- bodyText.trim().length > 0 && validationResult.errors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-3.5 bg-amber-50 border border-amber-200 rounded-xl space-y-1.5 text-xs text-amber-900", children: [
12032
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-1.5 font-bold", children: [
12033
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
12034
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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:" })
12091
+ bodyText.trim().length > 0 && validationResult.errors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-3.5 bg-amber-50 border border-amber-200 rounded-xl space-y-1.5 text-xs text-amber-900", children: [
12092
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 font-bold", children: [
12093
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
12094
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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:" })
12035
12095
  ] }),
12036
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "list-disc list-inside space-y-1 text-[11px] pr-2 leading-relaxed", children: validationResult.errors.map((err, i) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { children: err }, i)) })
12096
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("ul", { className: "list-disc list-inside space-y-1 text-[11px] pr-2 leading-relaxed", children: validationResult.errors.map((err, i) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { children: err }, i)) })
12037
12097
  ] })
12038
12098
  ] }),
12039
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
12040
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between", children: [
12041
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
12042
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Paperclip, { className: "w-4 h-4 text-slate-600" }),
12043
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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)" })
12099
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
12100
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12101
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12102
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Paperclip, { className: "w-4 h-4 text-slate-600" }),
12103
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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)" })
12044
12104
  ] }),
12045
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12105
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12046
12106
  "input",
12047
12107
  {
12048
12108
  type: "checkbox",
@@ -12058,12 +12118,12 @@ function CreateTemplateModal({
12058
12118
  }
12059
12119
  )
12060
12120
  ] }),
12061
- hasFileHeader && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-3 pt-1", children: [
12062
- fileError && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12063
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
12064
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: fileError })
12121
+ hasFileHeader && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-3 pt-1", children: [
12122
+ fileError && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12123
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
12124
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: fileError })
12065
12125
  ] }),
12066
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12126
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12067
12127
  "input",
12068
12128
  {
12069
12129
  ref: fileInputRef,
@@ -12073,7 +12133,7 @@ function CreateTemplateModal({
12073
12133
  className: "hidden"
12074
12134
  }
12075
12135
  ),
12076
- !selectedFile && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12136
+ !selectedFile && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12077
12137
  "button",
12078
12138
  {
12079
12139
  type: "button",
@@ -12083,49 +12143,49 @@ function CreateTemplateModal({
12083
12143
  },
12084
12144
  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",
12085
12145
  children: [
12086
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-9 h-9 rounded-full bg-slate-100 text-slate-500 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Upload, { className: "w-4 h-4" }) }),
12087
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "text-center", children: [
12088
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xs font-bold text-emerald-700 block", children: "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D7\u05D9\u05E8\u05EA \u05E7\u05D5\u05D1\u05E5" }),
12089
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-[10px] text-slate-400", children: "PDF, JPG, PNG, MP4 \u05E2\u05D3 5MB" })
12146
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-9 h-9 rounded-full bg-slate-100 text-slate-500 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Upload, { className: "w-4 h-4" }) }),
12147
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "text-center", children: [
12148
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-bold text-emerald-700 block", children: "\u05DC\u05D7\u05E5 \u05DC\u05D1\u05D7\u05D9\u05E8\u05EA \u05E7\u05D5\u05D1\u05E5" }),
12149
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-[10px] text-slate-400", children: "PDF, JPG, PNG, MP4 \u05E2\u05D3 5MB" })
12090
12150
  ] })
12091
12151
  ]
12092
12152
  }
12093
12153
  ),
12094
- selectedFile && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-3 bg-white border border-emerald-200 rounded-xl flex items-center justify-between gap-3 shadow-2xs", children: [
12095
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2.5 overflow-hidden", children: [
12096
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.FileText, { className: "w-4 h-4" }) : selectedFile.type.includes("video") || selectedFile.name.toLowerCase().match(/\.(mp4|mov|avi|webm)$/) ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Video, { className: "w-4 h-4" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Image, { className: "w-4 h-4" }) }),
12097
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "overflow-hidden", children: [
12098
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs font-bold text-slate-800 truncate", title: selectedFile.name, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { dir: "ltr", className: "inline-block truncate max-w-full", children: selectedFile.name }) }),
12099
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-[10px] text-slate-400", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { dir: "ltr", className: "inline-block", children: [
12154
+ selectedFile && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-3 bg-white border border-emerald-200 rounded-xl flex items-center justify-between gap-3 shadow-2xs", children: [
12155
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2.5 overflow-hidden", children: [
12156
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.FileText, { className: "w-4 h-4" }) : selectedFile.type.includes("video") || selectedFile.name.toLowerCase().match(/\.(mp4|mov|avi|webm)$/) ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Video, { className: "w-4 h-4" }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Image, { className: "w-4 h-4" }) }),
12157
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
12158
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs font-bold text-slate-800 truncate", title: selectedFile.name, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { dir: "ltr", className: "inline-block truncate max-w-full", children: selectedFile.name }) }),
12159
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[10px] text-slate-400", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { dir: "ltr", className: "inline-block", children: [
12100
12160
  formatFileSize(selectedFile.size),
12101
12161
  selectedFile.type ? ` \u2022 ${selectedFile.type}` : ""
12102
12162
  ] }) })
12103
12163
  ] })
12104
12164
  ] }),
12105
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12165
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12106
12166
  "button",
12107
12167
  {
12108
12168
  type: "button",
12109
12169
  onClick: handleRemoveFile,
12110
12170
  className: "p-1 text-slate-400 hover:text-rose-600 rounded-md transition-colors cursor-pointer",
12111
12171
  title: "\u05D4\u05E1\u05E8 \u05E7\u05D5\u05D1\u05E5",
12112
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Trash2, { className: "w-4 h-4" })
12172
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Trash2, { className: "w-4 h-4" })
12113
12173
  }
12114
12174
  )
12115
12175
  ] })
12116
12176
  ] })
12117
12177
  ] }),
12118
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3.5", children: [
12119
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between", children: [
12120
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
12121
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.MousePointerClick, { className: "w-4 h-4 text-slate-600" }),
12122
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
12123
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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)" }),
12124
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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)" })
12178
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3.5", children: [
12179
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12180
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12181
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MousePointerClick, { className: "w-4 h-4 text-slate-600" }),
12182
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12183
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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)" }),
12184
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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)" })
12125
12185
  ] })
12126
12186
  ] }),
12127
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
12128
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12187
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12188
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12129
12189
  "span",
12130
12190
  {
12131
12191
  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"}`,
@@ -12135,8 +12195,8 @@ function CreateTemplateModal({
12135
12195
  ]
12136
12196
  }
12137
12197
  ),
12138
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", ref: addButtonDropdownRef, children: [
12139
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12198
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", ref: addButtonDropdownRef, children: [
12199
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12140
12200
  "button",
12141
12201
  {
12142
12202
  type: "button",
@@ -12145,9 +12205,9 @@ function CreateTemplateModal({
12145
12205
  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"}`,
12146
12206
  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",
12147
12207
  children: [
12148
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
12149
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" }),
12150
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12208
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
12209
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" }),
12210
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12151
12211
  import_lucide_react11.ChevronDown,
12152
12212
  {
12153
12213
  className: `w-3.5 h-3.5 transition-transform ${isAddButtonOpen ? "rotate-180" : ""}`
@@ -12156,63 +12216,63 @@ function CreateTemplateModal({
12156
12216
  ]
12157
12217
  }
12158
12218
  ),
12159
- isAddButtonOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12160
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12219
+ isAddButtonOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12220
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12161
12221
  "button",
12162
12222
  {
12163
12223
  type: "button",
12164
12224
  onClick: () => handleAddButton("QUICK_REPLY"),
12165
12225
  className: "w-full p-2 text-right rounded-lg hover:bg-slate-50 flex items-start gap-2.5 transition-colors cursor-pointer group",
12166
12226
  children: [
12167
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.MessageSquare, { className: "w-3.5 h-3.5" }) }),
12168
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
12169
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" }),
12170
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
12227
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MessageSquare, { className: "w-3.5 h-3.5" }) }),
12228
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12229
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" }),
12230
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
12171
12231
  ] })
12172
12232
  ]
12173
12233
  }
12174
12234
  ),
12175
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12235
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12176
12236
  "button",
12177
12237
  {
12178
12238
  type: "button",
12179
12239
  onClick: () => handleAddButton("URL"),
12180
12240
  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",
12181
12241
  children: [
12182
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.ExternalLink, { className: "w-3.5 h-3.5" }) }),
12183
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
12184
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" }),
12185
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
12242
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.ExternalLink, { className: "w-3.5 h-3.5" }) }),
12243
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12244
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" }),
12245
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
12186
12246
  ] })
12187
12247
  ]
12188
12248
  }
12189
12249
  ),
12190
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12250
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12191
12251
  "button",
12192
12252
  {
12193
12253
  type: "button",
12194
12254
  onClick: () => handleAddButton("PHONE_NUMBER"),
12195
12255
  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",
12196
12256
  children: [
12197
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Phone, { className: "w-3.5 h-3.5" }) }),
12198
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
12199
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" }),
12200
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
12257
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Phone, { className: "w-3.5 h-3.5" }) }),
12258
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12259
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" }),
12260
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
12201
12261
  ] })
12202
12262
  ]
12203
12263
  }
12204
12264
  ),
12205
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12265
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12206
12266
  "button",
12207
12267
  {
12208
12268
  type: "button",
12209
12269
  onClick: () => handleAddButton("COPY_CODE"),
12210
12270
  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",
12211
12271
  children: [
12212
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Copy, { className: "w-3.5 h-3.5" }) }),
12213
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
12214
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" }),
12215
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
12272
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Copy, { className: "w-3.5 h-3.5" }) }),
12273
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12274
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xs font-semibold text-slate-800", children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" }),
12275
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
12216
12276
  ] })
12217
12277
  ]
12218
12278
  }
@@ -12221,55 +12281,55 @@ function CreateTemplateModal({
12221
12281
  ] })
12222
12282
  ] })
12223
12283
  ] }),
12224
- buttons.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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.' }),
12225
- buttons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "space-y-2.5", children: buttons.map((btn, index) => {
12284
+ buttons.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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.' }),
12285
+ buttons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "space-y-2.5", children: buttons.map((btn, index) => {
12226
12286
  const btnNum = index + 1;
12227
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12287
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12228
12288
  "div",
12229
12289
  {
12230
12290
  className: "p-3 bg-white border border-slate-200 rounded-xl space-y-2.5 shadow-2xs transition-all hover:border-slate-300",
12231
12291
  children: [
12232
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between", children: [
12233
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
12234
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-[11px] font-bold text-slate-400 font-mono", children: [
12292
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12293
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12294
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[11px] font-bold text-slate-400 font-mono", children: [
12235
12295
  "#",
12236
12296
  btnNum
12237
12297
  ] }),
12238
- btn.type === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12239
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.MessageSquare, { className: "w-3 h-3" }),
12240
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" })
12298
+ btn.type === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12299
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MessageSquare, { className: "w-3 h-3" }),
12300
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" })
12241
12301
  ] }),
12242
- btn.type === "URL" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12243
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.ExternalLink, { className: "w-3 h-3" }),
12244
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" })
12302
+ btn.type === "URL" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12303
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.ExternalLink, { className: "w-3 h-3" }),
12304
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" })
12245
12305
  ] }),
12246
- btn.type === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12247
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Phone, { className: "w-3 h-3" }),
12248
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" })
12306
+ btn.type === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12307
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Phone, { className: "w-3 h-3" }),
12308
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" })
12249
12309
  ] }),
12250
- btn.type === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
12251
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Copy, { className: "w-3 h-3" }),
12252
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" })
12310
+ btn.type === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
12311
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Copy, { className: "w-3 h-3" }),
12312
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" })
12253
12313
  ] })
12254
12314
  ] }),
12255
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12315
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12256
12316
  "button",
12257
12317
  {
12258
12318
  type: "button",
12259
12319
  onClick: () => handleRemoveButton(index),
12260
12320
  className: "p-1 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition-colors cursor-pointer",
12261
12321
  title: "\u05D4\u05E1\u05E8 \u05DB\u05E4\u05EA\u05D5\u05E8",
12262
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Trash2, { className: "w-3.5 h-3.5" })
12322
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Trash2, { className: "w-3.5 h-3.5" })
12263
12323
  }
12264
12324
  )
12265
12325
  ] }),
12266
- btn.type === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12267
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12268
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12326
+ btn.type === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12327
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12328
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12269
12329
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12270
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12330
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12271
12331
  ] }),
12272
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12332
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12273
12333
  "span",
12274
12334
  {
12275
12335
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12280,7 +12340,7 @@ function CreateTemplateModal({
12280
12340
  }
12281
12341
  )
12282
12342
  ] }),
12283
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12343
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12284
12344
  "input",
12285
12345
  {
12286
12346
  type: "text",
@@ -12292,14 +12352,14 @@ function CreateTemplateModal({
12292
12352
  }
12293
12353
  )
12294
12354
  ] }),
12295
- btn.type === "URL" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12296
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12297
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12298
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12355
+ btn.type === "URL" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12356
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12357
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12358
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12299
12359
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12300
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12360
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12301
12361
  ] }),
12302
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12362
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12303
12363
  "span",
12304
12364
  {
12305
12365
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12310,7 +12370,7 @@ function CreateTemplateModal({
12310
12370
  }
12311
12371
  )
12312
12372
  ] }),
12313
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12373
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12314
12374
  "input",
12315
12375
  {
12316
12376
  type: "text",
@@ -12322,18 +12382,18 @@ function CreateTemplateModal({
12322
12382
  }
12323
12383
  )
12324
12384
  ] }),
12325
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12326
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12327
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12385
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12386
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12387
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12328
12388
  "\u05DB\u05EA\u05D5\u05D1\u05EA URL \u05E1\u05D8\u05D8\u05D9\u05EA ",
12329
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12389
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12330
12390
  ] }),
12331
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12391
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12332
12392
  (btn.url || "").length,
12333
12393
  "/2000"
12334
12394
  ] })
12335
12395
  ] }),
12336
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12396
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12337
12397
  "input",
12338
12398
  {
12339
12399
  type: "url",
@@ -12347,14 +12407,14 @@ function CreateTemplateModal({
12347
12407
  )
12348
12408
  ] })
12349
12409
  ] }),
12350
- btn.type === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12351
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12352
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12353
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12410
+ btn.type === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12411
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12412
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12413
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12354
12414
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12355
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12415
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12356
12416
  ] }),
12357
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12417
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12358
12418
  "span",
12359
12419
  {
12360
12420
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12365,7 +12425,7 @@ function CreateTemplateModal({
12365
12425
  }
12366
12426
  )
12367
12427
  ] }),
12368
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12428
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12369
12429
  "input",
12370
12430
  {
12371
12431
  type: "text",
@@ -12377,18 +12437,18 @@ function CreateTemplateModal({
12377
12437
  }
12378
12438
  )
12379
12439
  ] }),
12380
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12381
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12382
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12440
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12441
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12442
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12383
12443
  "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF (\u05E4\u05D5\u05E8\u05DE\u05D8: +[\u05E7\u05D9\u05D3\u05D5\u05DE\u05EA][\u05DE\u05E1\u05E4\u05E8]) ",
12384
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12444
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12385
12445
  ] }),
12386
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12446
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12387
12447
  (btn.phone_number || "").length,
12388
12448
  "/20"
12389
12449
  ] })
12390
12450
  ] }),
12391
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12451
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12392
12452
  "input",
12393
12453
  {
12394
12454
  type: "tel",
@@ -12402,14 +12462,14 @@ function CreateTemplateModal({
12402
12462
  )
12403
12463
  ] })
12404
12464
  ] }),
12405
- btn.type === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12406
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12407
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12408
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12465
+ btn.type === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12466
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12467
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12468
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12409
12469
  "\u05E7\u05D5\u05D3 \u05D4\u05E6\u05E2\u05D4 / \u05E7\u05D5\u05E4\u05D5\u05DF ",
12410
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12470
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12411
12471
  ] }),
12412
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12472
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12413
12473
  "span",
12414
12474
  {
12415
12475
  className: `font-mono text-[10px] ${(btn.example || "").length >= 15 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12420,7 +12480,7 @@ function CreateTemplateModal({
12420
12480
  }
12421
12481
  )
12422
12482
  ] }),
12423
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12483
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12424
12484
  "input",
12425
12485
  {
12426
12486
  type: "text",
@@ -12433,15 +12493,15 @@ function CreateTemplateModal({
12433
12493
  }
12434
12494
  )
12435
12495
  ] }),
12436
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "space-y-1", children: [
12437
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12438
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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)" }),
12439
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12496
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12497
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12498
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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)" }),
12499
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12440
12500
  (btn.text || "").length,
12441
12501
  "/25"
12442
12502
  ] })
12443
12503
  ] }),
12444
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12504
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12445
12505
  "input",
12446
12506
  {
12447
12507
  type: "text",
@@ -12461,8 +12521,8 @@ function CreateTemplateModal({
12461
12521
  }) })
12462
12522
  ] })
12463
12523
  ] }),
12464
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "px-6 py-4 border-t border-slate-100 flex items-center justify-end gap-3 bg-slate-50/50", children: [
12465
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12524
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "px-6 py-4 border-t border-slate-100 flex items-center justify-end gap-3 bg-slate-50/50", children: [
12525
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12466
12526
  "button",
12467
12527
  {
12468
12528
  type: "button",
@@ -12472,19 +12532,19 @@ function CreateTemplateModal({
12472
12532
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
12473
12533
  }
12474
12534
  ),
12475
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12535
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12476
12536
  "button",
12477
12537
  {
12478
12538
  type: "submit",
12479
12539
  disabled: !canSubmit,
12480
12540
  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"}`,
12481
12541
  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",
12482
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
12483
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.Loader2, { className: "w-4 h-4 animate-spin" }),
12484
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
12485
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
12486
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.CheckCircle2, { className: "w-4 h-4" }),
12487
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
12542
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
12543
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Loader2, { className: "w-4 h-4 animate-spin" }),
12544
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
12545
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
12546
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.CheckCircle2, { className: "w-4 h-4" }),
12547
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
12488
12548
  ] })
12489
12549
  }
12490
12550
  )
@@ -15177,7 +15237,7 @@ function useWhatsAppState(props) {
15177
15237
  // src/components/WhatsAppComponent/ui/TemplateSelectionBlock.tsx
15178
15238
  var import_react31 = require("react");
15179
15239
  var import_lucide_react12 = require("lucide-react");
15180
- var import_jsx_runtime31 = require("react/jsx-runtime");
15240
+ var import_jsx_runtime32 = require("react/jsx-runtime");
15181
15241
  function TemplateSelectionBlock({
15182
15242
  selectedTemplate,
15183
15243
  selectedTemplateId,
@@ -15204,15 +15264,15 @@ function TemplateSelectionBlock({
15204
15264
  handleFileUpload
15205
15265
  }) {
15206
15266
  const fileInputRef = (0, import_react31.useRef)(null);
15207
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15208
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5 shrink-0", children: [
15209
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between pb-1.5 border-b border-slate-200/70 shrink-0 gap-2", children: [
15210
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 min-w-0", children: [
15211
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.FileText, { className: "w-4 h-4 text-emerald-600 shrink-0" }),
15212
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
15267
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15268
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "space-y-1.5 shrink-0", children: [
15269
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between pb-1.5 border-b border-slate-200/70 shrink-0 gap-2", children: [
15270
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 min-w-0", children: [
15271
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.FileText, { className: "w-4 h-4 text-emerald-600 shrink-0" }),
15272
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
15213
15273
  ] }),
15214
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0", children: [
15215
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15274
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0", children: [
15275
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15216
15276
  "button",
15217
15277
  {
15218
15278
  type: "button",
@@ -15221,12 +15281,12 @@ function TemplateSelectionBlock({
15221
15281
  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"}`,
15222
15282
  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}"`,
15223
15283
  children: [
15224
- isDeleting ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 animate-spin text-rose-500" }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Trash2, { className: "w-3.5 h-3.5 text-rose-500" }),
15225
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05DE\u05D7\u05D9\u05E7\u05D4" })
15284
+ isDeleting ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 animate-spin text-rose-500" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Trash2, { className: "w-3.5 h-3.5 text-rose-500" }),
15285
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DE\u05D7\u05D9\u05E7\u05D4" })
15226
15286
  ]
15227
15287
  }
15228
15288
  ),
15229
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15289
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15230
15290
  "button",
15231
15291
  {
15232
15292
  type: "button",
@@ -15234,40 +15294,40 @@ function TemplateSelectionBlock({
15234
15294
  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",
15235
15295
  title: "\u05E6\u05D5\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4",
15236
15296
  children: [
15237
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Plus, { className: "w-3.5 h-3.5" }),
15238
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05D7\u05D3\u05E9" })
15297
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Plus, { className: "w-3.5 h-3.5" }),
15298
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05D7\u05D3\u05E9" })
15239
15299
  ]
15240
15300
  }
15241
15301
  )
15242
15302
  ] })
15243
15303
  ] }),
15244
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
15245
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15304
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
15305
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15246
15306
  "button",
15247
15307
  {
15248
15308
  type: "button",
15249
15309
  onClick: () => setIsDropdownOpen((prev) => !prev),
15250
15310
  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",
15251
15311
  children: [
15252
- selectedTemplate ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15253
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15312
+ selectedTemplate ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15313
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15254
15314
  "span",
15255
15315
  {
15256
15316
  className: `w-2 h-2 rounded-full shrink-0 ${getStatusConfig(selectedTemplate.status).dotColor}`
15257
15317
  }
15258
15318
  ),
15259
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-semibold text-slate-900 truncate", children: selectedTemplate.name }),
15260
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[10px] text-slate-400 shrink-0", children: [
15319
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-semibold text-slate-900 truncate", children: selectedTemplate.name }),
15320
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-[10px] text-slate-400 shrink-0", children: [
15261
15321
  "(",
15262
15322
  selectedTemplate.category,
15263
15323
  " \u2022 ",
15264
15324
  selectedTemplate.language,
15265
15325
  ")"
15266
15326
  ] })
15267
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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..." }),
15268
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0 mr-1", children: [
15269
- isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 text-emerald-600 animate-spin" }),
15270
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15327
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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..." }),
15328
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0 mr-1", children: [
15329
+ isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 text-emerald-600 animate-spin" }),
15330
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15271
15331
  import_lucide_react12.ChevronDown,
15272
15332
  {
15273
15333
  className: `w-3.5 h-3.5 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}`
@@ -15277,21 +15337,21 @@ function TemplateSelectionBlock({
15277
15337
  ]
15278
15338
  }
15279
15339
  ),
15280
- isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15281
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15340
+ isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15341
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15282
15342
  "div",
15283
15343
  {
15284
15344
  className: "fixed inset-0 z-40",
15285
15345
  onClick: () => setIsDropdownOpen(false)
15286
15346
  }
15287
15347
  ),
15288
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15289
- templates.length === 0 && !isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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".' }),
15348
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15349
+ templates.length === 0 && !isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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".' }),
15290
15350
  templates.map((tpl) => {
15291
15351
  const statusConfig = getStatusConfig(tpl.status);
15292
15352
  const isSelected = tpl.id === selectedTemplateId;
15293
15353
  const canSelect = statusConfig.isSelectable;
15294
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15354
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15295
15355
  "div",
15296
15356
  {
15297
15357
  onClick: () => {
@@ -15304,29 +15364,29 @@ function TemplateSelectionBlock({
15304
15364
  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" : ""}`,
15305
15365
  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,
15306
15366
  children: [
15307
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15308
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15367
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15368
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15309
15369
  "span",
15310
15370
  {
15311
15371
  className: `w-2 h-2 rounded-full shrink-0 ${statusConfig.dotColor}`
15312
15372
  }
15313
15373
  ),
15314
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
15315
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15374
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15375
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15316
15376
  "p",
15317
15377
  {
15318
15378
  className: `text-xs font-semibold truncate ${isSelected ? "text-emerald-700" : canSelect ? "text-slate-800" : "text-slate-500"}`,
15319
15379
  children: tpl.name
15320
15380
  }
15321
15381
  ),
15322
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("p", { className: "text-[10px] text-slate-400", children: [
15382
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("p", { className: "text-[10px] text-slate-400", children: [
15323
15383
  tpl.category,
15324
15384
  " \u2022 ",
15325
15385
  tpl.language
15326
15386
  ] })
15327
15387
  ] })
15328
15388
  ] }),
15329
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15389
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15330
15390
  "span",
15331
15391
  {
15332
15392
  className: `text-[9px] font-semibold px-2 py-0.5 rounded-full border shrink-0 ${statusConfig.badgeBg} ${statusConfig.badgeText}`,
@@ -15342,18 +15402,18 @@ function TemplateSelectionBlock({
15342
15402
  ] })
15343
15403
  ] })
15344
15404
  ] }),
15345
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex-1 min-h-0 flex flex-col gap-2", children: [
15346
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-600 shrink-0", children: [
15347
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05EA\u05E6\u05D5\u05D2\u05EA \u05D4\u05D5\u05D3\u05E2\u05D4" }),
15348
- selectedTemplate && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[10px] text-slate-400", children: [
15405
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex-1 min-h-0 flex flex-col gap-2", children: [
15406
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-600 shrink-0", children: [
15407
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05EA\u05E6\u05D5\u05D2\u05EA \u05D4\u05D5\u05D3\u05E2\u05D4" }),
15408
+ selectedTemplate && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-[10px] text-slate-400", children: [
15349
15409
  "(",
15350
15410
  templateBodyText.length,
15351
15411
  " \u05EA\u05D5\u05D5\u05D9\u05DD)"
15352
15412
  ] })
15353
15413
  ] }),
15354
- selectedTemplate ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsxs)("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: [
15355
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" }),
15356
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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"' })
15414
+ selectedTemplate ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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__ */ (0, import_jsx_runtime32.jsxs)("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: [
15415
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" }),
15416
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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"' })
15357
15417
  ] }),
15358
15418
  selectedTemplate && (() => {
15359
15419
  var _a;
@@ -15362,19 +15422,19 @@ function TemplateSelectionBlock({
15362
15422
  );
15363
15423
  const tplButtons = (buttonsComp == null ? void 0 : buttonsComp.buttons) || [];
15364
15424
  if (!tplButtons || tplButtons.length === 0) return null;
15365
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex flex-wrap gap-1.5 shrink-0 pt-0.5", children: tplButtons.map((btn, idx) => {
15425
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex flex-wrap gap-1.5 shrink-0 pt-0.5", children: tplButtons.map((btn, idx) => {
15366
15426
  const btnType = (btn.type || "").toUpperCase();
15367
15427
  const btnText = btn.text || (btnType === "COPY_CODE" ? `\u05D4\u05E2\u05EA\u05E7 \u05E7\u05D5\u05D3: ${btn.example}` : "\u05DB\u05E4\u05EA\u05D5\u05E8");
15368
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15428
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15369
15429
  "div",
15370
15430
  {
15371
15431
  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",
15372
15432
  children: [
15373
- btnType === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.MessageSquare, { className: "w-3 h-3 text-emerald-600" }),
15374
- btnType === "URL" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.ExternalLink, { className: "w-3 h-3 text-sky-600" }),
15375
- btnType === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Phone, { className: "w-3 h-3 text-violet-600" }),
15376
- btnType === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Copy, { className: "w-3 h-3 text-amber-600" }),
15377
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate max-w-[180px]", children: btnText })
15433
+ btnType === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.MessageSquare, { className: "w-3 h-3 text-emerald-600" }),
15434
+ btnType === "URL" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.ExternalLink, { className: "w-3 h-3 text-sky-600" }),
15435
+ btnType === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Phone, { className: "w-3 h-3 text-violet-600" }),
15436
+ btnType === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Copy, { className: "w-3 h-3 text-amber-600" }),
15437
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "truncate max-w-[180px]", children: btnText })
15378
15438
  ]
15379
15439
  },
15380
15440
  idx
@@ -15389,9 +15449,9 @@ function TemplateSelectionBlock({
15389
15449
  const docFilename = resolveDocumentFilename(templateHeaderComp, headerMediaUrl);
15390
15450
  const hasValidMedia = Boolean(headerMediaUrl && headerMediaUrl.trim() && headerMediaUrl.startsWith("http"));
15391
15451
  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";
15392
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15393
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15394
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(
15452
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15453
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center gap-2.5 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15454
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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__ */ (0, import_jsx_runtime32.jsx)(
15395
15455
  "img",
15396
15456
  {
15397
15457
  src: headerMediaUrl,
@@ -15401,33 +15461,33 @@ function TemplateSelectionBlock({
15401
15461
  e.currentTarget.style.display = "none";
15402
15462
  }
15403
15463
  }
15404
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Image, { className: "w-4 h-4 text-amber-600" }) }),
15405
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
15406
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15407
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
15464
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Image, { className: "w-4 h-4 text-amber-600" }) }),
15465
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15466
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15467
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
15408
15468
  ] })
15409
- ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15410
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.FileText, { className: "w-4 h-4" }) }),
15411
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
15412
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
15413
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
15469
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15470
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.FileText, { className: "w-4 h-4" }) }),
15471
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15472
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
15473
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
15414
15474
  ] })
15415
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15416
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Video, { className: "w-4 h-4" }) }),
15417
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
15418
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15419
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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" })
15475
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15476
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Video, { className: "w-4 h-4" }) }),
15477
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15478
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-bold text-slate-800 block truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" }),
15479
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
15420
15480
  ] })
15421
15481
  ] }) }),
15422
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
15423
- hasValidMedia ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15424
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.CheckCircle2, { className: "w-3 h-3 text-emerald-600" }),
15482
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
15483
+ hasValidMedia ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15484
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.CheckCircle2, { className: "w-3 h-3 text-emerald-600" }),
15425
15485
  "\u05E7\u05D5\u05D1\u05E5 \u05DE\u05E6\u05D5\u05E8\u05E3 \u05EA\u05E7\u05D9\u05DF"
15426
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15427
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.AlertCircle, { className: "w-3 h-3 text-amber-600 shrink-0" }),
15486
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15487
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.AlertCircle, { className: "w-3 h-3 text-amber-600 shrink-0" }),
15428
15488
  "\u05E0\u05D3\u05E8\u05E9 \u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5"
15429
15489
  ] }),
15430
- hasValidMedia && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15490
+ hasValidMedia && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15431
15491
  "a",
15432
15492
  {
15433
15493
  href: headerMediaUrl,
@@ -15435,10 +15495,10 @@ function TemplateSelectionBlock({
15435
15495
  rel: "noopener noreferrer",
15436
15496
  title: "\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05E9\u05DC \u05D4\u05E7\u05D5\u05D1\u05E5",
15437
15497
  className: "p-1 text-slate-400 hover:text-emerald-700 hover:bg-slate-200/60 rounded-md transition-colors",
15438
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.ExternalLink, { className: "w-3.5 h-3.5" })
15498
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.ExternalLink, { className: "w-3.5 h-3.5" })
15439
15499
  }
15440
15500
  ),
15441
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15501
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15442
15502
  "input",
15443
15503
  {
15444
15504
  ref: fileInputRef,
@@ -15456,7 +15516,7 @@ function TemplateSelectionBlock({
15456
15516
  disabled: isUploadingMedia
15457
15517
  }
15458
15518
  ),
15459
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15519
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15460
15520
  "button",
15461
15521
  {
15462
15522
  type: "button",
@@ -15467,39 +15527,39 @@ function TemplateSelectionBlock({
15467
15527
  },
15468
15528
  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"}`,
15469
15529
  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`,
15470
- children: isUploadingMedia ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15471
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
15472
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
15473
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15474
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.Upload, { className: "w-3.5 h-3.5" }),
15475
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
15530
+ children: isUploadingMedia ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15531
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
15532
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
15533
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15534
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Upload, { className: "w-3.5 h-3.5" }),
15535
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
15476
15536
  ] })
15477
15537
  }
15478
15538
  )
15479
15539
  ] })
15480
15540
  ] });
15481
15541
  })(),
15482
- selectedTemplate && templateVariables.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "shrink-0 flex flex-col gap-1.5 pt-2 border-t border-slate-200/80 pb-0", children: [
15483
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between shrink-0", children: [
15484
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-[11px] font-bold text-slate-700", children: "\u05DE\u05D9\u05E4\u05D5\u05D9 \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD" }),
15485
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 px-1.5 py-0.5 rounded border border-emerald-200", children: [
15542
+ selectedTemplate && templateVariables.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "shrink-0 flex flex-col gap-1.5 pt-2 border-t border-slate-200/80 pb-0", children: [
15543
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between shrink-0", children: [
15544
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-[11px] font-bold text-slate-700", children: "\u05DE\u05D9\u05E4\u05D5\u05D9 \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD" }),
15545
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-[9px] font-semibold text-emerald-700 bg-emerald-50 px-1.5 py-0.5 rounded border border-emerald-200", children: [
15486
15546
  templateVariables.length,
15487
15547
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
15488
15548
  ] })
15489
15549
  ] }),
15490
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "max-h-48 overflow-y-auto space-y-1.5 pr-0.5", children: templateVariables.map((varKey) => {
15550
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "max-h-48 overflow-y-auto space-y-1.5 pr-0.5", children: templateVariables.map((varKey) => {
15491
15551
  var _a;
15492
15552
  const mapping = variableMapping[varKey] || { type: "column", value: "" };
15493
15553
  const isStatic = mapping.type === "static";
15494
15554
  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 || "";
15495
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15555
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15496
15556
  "div",
15497
15557
  {
15498
15558
  className: "flex items-center gap-1.5 p-1 bg-white border border-slate-200 rounded-xl text-xs shrink-0",
15499
15559
  children: [
15500
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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}}}` }),
15501
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("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: [
15502
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15560
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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}}}` }),
15561
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15562
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15503
15563
  "button",
15504
15564
  {
15505
15565
  type: "button",
@@ -15508,7 +15568,7 @@ function TemplateSelectionBlock({
15508
15568
  children: "\u05E2\u05DE\u05D5\u05D3\u05D4"
15509
15569
  }
15510
15570
  ),
15511
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15571
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15512
15572
  "button",
15513
15573
  {
15514
15574
  type: "button",
@@ -15518,7 +15578,7 @@ function TemplateSelectionBlock({
15518
15578
  }
15519
15579
  )
15520
15580
  ] }),
15521
- isStatic ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15581
+ isStatic ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15522
15582
  "input",
15523
15583
  {
15524
15584
  type: "text",
@@ -15527,20 +15587,20 @@ function TemplateSelectionBlock({
15527
15587
  placeholder: "\u05D4\u05D6\u05DF \u05E2\u05E8\u05DA \u05E7\u05D1\u05D5\u05E2 (\u05D7\u05D5\u05D1\u05D4)...",
15528
15588
  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"}`
15529
15589
  }
15530
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative flex-1 min-w-0", children: [
15531
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15590
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative flex-1 min-w-0", children: [
15591
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15532
15592
  "select",
15533
15593
  {
15534
15594
  value: selectedColVal,
15535
15595
  onChange: (e) => handleVariableValueChange(varKey, e.target.value),
15536
15596
  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",
15537
15597
  children: [
15538
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15539
- textableColumnOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15598
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15599
+ textableColumnOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15540
15600
  ]
15541
15601
  }
15542
15602
  ),
15543
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react12.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15603
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15544
15604
  ] })
15545
15605
  ]
15546
15606
  },
@@ -15554,7 +15614,7 @@ function TemplateSelectionBlock({
15554
15614
 
15555
15615
  // src/components/WhatsAppComponent/ui/DynamicFiltersBlock.tsx
15556
15616
  var import_lucide_react13 = require("lucide-react");
15557
- var import_jsx_runtime32 = require("react/jsx-runtime");
15617
+ var import_jsx_runtime33 = require("react/jsx-runtime");
15558
15618
  function DynamicFiltersBlock({
15559
15619
  filterableColumns,
15560
15620
  filters,
@@ -15569,31 +15629,31 @@ function DynamicFiltersBlock({
15569
15629
  loadTableData,
15570
15630
  isLoadingTableData
15571
15631
  }) {
15572
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
15573
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "space-y-2", children: [
15574
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: [
15575
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2", children: [
15576
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.Filter, { className: "w-4 h-4 text-emerald-600" }),
15577
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-bold text-slate-800", children: "\u05E1\u05D9\u05E0\u05D5\u05DF \u05D3\u05D9\u05E0\u05DE\u05D9" }),
15578
- activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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 })
15632
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15633
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-2", children: [
15634
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: [
15635
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2", children: [
15636
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.Filter, { className: "w-4 h-4 text-emerald-600" }),
15637
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-xs font-bold text-slate-800", children: "\u05E1\u05D9\u05E0\u05D5\u05DF \u05D3\u05D9\u05E0\u05DE\u05D9" }),
15638
+ activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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 })
15579
15639
  ] }),
15580
- activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15640
+ activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15581
15641
  "button",
15582
15642
  {
15583
15643
  type: "button",
15584
15644
  onClick: handleClearFilters,
15585
15645
  className: "text-[11px] text-rose-600 hover:text-rose-700 font-semibold hover:underline flex items-center gap-1 cursor-pointer",
15586
15646
  children: [
15587
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.X, { className: "w-3 h-3" }),
15588
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15647
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.X, { className: "w-3 h-3" }),
15648
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15589
15649
  ]
15590
15650
  }
15591
15651
  )
15592
15652
  ] }),
15593
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "py-1", children: filterableColumns.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col items-center justify-center text-center p-4 text-xs text-slate-400 gap-1", children: [
15594
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05D0\u05D9\u05DF \u05E9\u05D3\u05D5\u05EA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D6\u05D5" }),
15595
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
15596
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-2", children: filterableColumns.map((col) => {
15653
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "py-1", children: filterableColumns.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col items-center justify-center text-center p-4 text-xs text-slate-400 gap-1", children: [
15654
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05D0\u05D9\u05DF \u05E9\u05D3\u05D5\u05EA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D6\u05D5" }),
15655
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" })
15656
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-1 gap-2", children: filterableColumns.map((col) => {
15597
15657
  var _a, _b, _c;
15598
15658
  const colType = (_a = col.type) == null ? void 0 : _a.toUpperCase();
15599
15659
  const isBoolean = colType === "BOOLEAN";
@@ -15601,9 +15661,9 @@ function DynamicFiltersBlock({
15601
15661
  const isActive = Boolean(currentValue);
15602
15662
  const refTableId = ((_b = col == null ? void 0 : col.config) == null ? void 0 : _b.referencedTableId) || (col == null ? void 0 : col.referencedTableId);
15603
15663
  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] : [];
15604
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "space-y-1", children: [
15605
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between", children: [
15606
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15664
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15665
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15666
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15607
15667
  "label",
15608
15668
  {
15609
15669
  className: "text-[11px] font-semibold text-slate-700 truncate max-w-[130px]",
@@ -15611,49 +15671,49 @@ function DynamicFiltersBlock({
15611
15671
  children: col.name
15612
15672
  }
15613
15673
  ),
15614
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-[9px] text-slate-400 font-mono", children: isBoolean ? "\u05DB\u05DF/\u05DC\u05D0" : "\u05E7\u05E9\u05E8" })
15674
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-[9px] text-slate-400 font-mono", children: isBoolean ? "\u05DB\u05DF/\u05DC\u05D0" : "\u05E7\u05E9\u05E8" })
15615
15675
  ] }),
15616
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
15617
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15676
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15677
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15618
15678
  "select",
15619
15679
  {
15620
15680
  value: currentValue,
15621
15681
  onChange: (e) => handleFilterChange(col.name, e.target.value),
15622
15682
  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"}`,
15623
15683
  children: [
15624
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
15625
- isBoolean ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15626
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "true", children: "\u05DB\u05DF" }),
15627
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "false", children: "\u05DC\u05D0" })
15628
- ] }) : options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: opt.id || opt._id, children: getRelationOptionLabel(opt, col, relationOptions) }, opt.id || opt._id))
15684
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
15685
+ isBoolean ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
15686
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "true", children: "\u05DB\u05DF" }),
15687
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "false", children: "\u05DC\u05D0" })
15688
+ ] }) : options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id || opt._id, children: getRelationOptionLabel(opt, col, relationOptions) }, opt.id || opt._id))
15629
15689
  ]
15630
15690
  }
15631
15691
  ),
15632
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react13.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15692
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15633
15693
  ] })
15634
15694
  ] }, col.name);
15635
15695
  }) }) })
15636
15696
  ] }),
15637
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "pt-2.5 mt-2 border-t border-slate-200/80 flex items-center justify-between gap-1.5 shrink-0", children: [
15638
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15697
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "pt-2.5 mt-2 border-t border-slate-200/80 flex items-center justify-between gap-1.5 shrink-0", children: [
15698
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15639
15699
  "div",
15640
15700
  {
15641
15701
  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"}`,
15642
15702
  children: [
15643
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15703
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15644
15704
  import_lucide_react13.CheckSquare,
15645
15705
  {
15646
15706
  className: `w-3 h-3 ${selectedRowIds.length > 0 ? "text-emerald-600" : "text-slate-400"}`
15647
15707
  }
15648
15708
  ),
15649
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { children: [
15709
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
15650
15710
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15651
15711
  selectedRowIds.length
15652
15712
  ] })
15653
15713
  ]
15654
15714
  }
15655
15715
  ),
15656
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15716
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15657
15717
  "button",
15658
15718
  {
15659
15719
  type: "button",
@@ -15661,7 +15721,7 @@ function DynamicFiltersBlock({
15661
15721
  disabled: isLoadingTableData,
15662
15722
  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",
15663
15723
  title: "\u05E8\u05E2\u05E0\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9 \u05D8\u05D1\u05DC\u05D4",
15664
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15724
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15665
15725
  import_lucide_react13.RefreshCw,
15666
15726
  {
15667
15727
  className: `w-3.5 h-3.5 ${isLoadingTableData ? "animate-spin text-emerald-600" : ""}`
@@ -15675,7 +15735,7 @@ function DynamicFiltersBlock({
15675
15735
 
15676
15736
  // src/components/WhatsAppComponent/ui/SettingsAndActionsBlock.tsx
15677
15737
  var import_lucide_react14 = require("lucide-react");
15678
- var import_jsx_runtime33 = require("react/jsx-runtime");
15738
+ var import_jsx_runtime34 = require("react/jsx-runtime");
15679
15739
  function SettingsAndActionsBlock({
15680
15740
  isScanningPhoneColumns,
15681
15741
  targetPhoneOptions,
@@ -15718,29 +15778,29 @@ function SettingsAndActionsBlock({
15718
15778
  clearBroadcastSummary
15719
15779
  }) {
15720
15780
  var _a;
15721
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15722
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-2", children: [
15723
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2", children: [
15724
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-sm", children: "\u2699\uFE0F" }),
15725
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-xs font-bold text-slate-800", children: "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D5\u05E4\u05E2\u05D5\u05DC\u05D5\u05EA" })
15781
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
15782
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-2", children: [
15783
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-2", children: [
15784
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm", children: "\u2699\uFE0F" }),
15785
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-xs font-bold text-slate-800", children: "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05D5\u05E4\u05E2\u05D5\u05DC\u05D5\u05EA" })
15726
15786
  ] }) }),
15727
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-2.5 py-1", children: [
15728
- isScanningPhoneColumns && targetPhoneOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15729
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Loader2, { className: "w-4 h-4 animate-spin text-emerald-600 shrink-0" }),
15730
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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..." })
15731
- ] }) : targetPhoneOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15732
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
15733
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" })
15734
- ] }) : targetPhoneOptions.length === 1 && targetPhoneOptions[0].type === "DIRECT" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15735
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15736
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15737
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15738
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15787
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-2.5 py-1", children: [
15788
+ isScanningPhoneColumns && targetPhoneOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
15789
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Loader2, { className: "w-4 h-4 animate-spin text-emerald-600 shrink-0" }),
15790
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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..." })
15791
+ ] }) : targetPhoneOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
15792
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
15793
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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" })
15794
+ ] }) : targetPhoneOptions.length === 1 && targetPhoneOptions[0].type === "DIRECT" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15795
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15796
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15797
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15798
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15739
15799
  ] }),
15740
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" })
15800
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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" })
15741
15801
  ] }),
15742
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15743
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15802
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15803
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15744
15804
  "input",
15745
15805
  {
15746
15806
  type: "text",
@@ -15750,52 +15810,52 @@ function SettingsAndActionsBlock({
15750
15810
  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"
15751
15811
  }
15752
15812
  ),
15753
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Phone, { className: "w-3.5 h-3.5 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15813
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3.5 h-3.5 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15754
15814
  ] })
15755
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15756
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15757
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15758
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15759
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15815
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15816
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15817
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15818
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15819
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15760
15820
  ] }),
15761
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15821
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15762
15822
  ] }),
15763
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15764
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15823
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15824
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15765
15825
  "select",
15766
15826
  {
15767
15827
  value: phoneColumnId,
15768
15828
  onChange: (e) => setPhoneColumnId(e.target.value),
15769
15829
  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",
15770
- children: targetPhoneOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15830
+ children: targetPhoneOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15771
15831
  }
15772
15832
  ),
15773
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15833
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none" })
15774
15834
  ] })
15775
15835
  ] }),
15776
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15777
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15778
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15836
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15837
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15838
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15779
15839
  "label",
15780
15840
  {
15781
15841
  htmlFor: "whatsapp-auto-select-records",
15782
15842
  className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1 cursor-pointer",
15783
15843
  children: [
15784
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.CheckSquare, { className: "w-3 h-3 text-slate-400" }),
15785
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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)" })
15844
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.CheckSquare, { className: "w-3 h-3 text-slate-400" }),
15845
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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)" })
15786
15846
  ]
15787
15847
  }
15788
15848
  ),
15789
- autoSelectCount !== null && autoSelectCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-1.5 animate-in fade-in duration-150", children: [
15790
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15791
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
15792
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
15849
+ autoSelectCount !== null && autoSelectCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 animate-in fade-in duration-150", children: [
15850
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
15851
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
15852
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
15793
15853
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15794
15854
  selectedRowIdsCount,
15795
15855
  " \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA"
15796
15856
  ] })
15797
15857
  ] }),
15798
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15858
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15799
15859
  "button",
15800
15860
  {
15801
15861
  type: "button",
@@ -15804,14 +15864,14 @@ function SettingsAndActionsBlock({
15804
15864
  title: "\u05E0\u05E7\u05D4 \u05D1\u05D7\u05D9\u05E8\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA",
15805
15865
  "aria-label": "Clear auto select count",
15806
15866
  children: [
15807
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.X, { className: "w-3 h-3" }),
15808
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15867
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.X, { className: "w-3 h-3" }),
15868
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15809
15869
  ]
15810
15870
  }
15811
15871
  )
15812
15872
  ] })
15813
15873
  ] }),
15814
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15874
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15815
15875
  "input",
15816
15876
  {
15817
15877
  id: "whatsapp-auto-select-records",
@@ -15839,19 +15899,19 @@ function SettingsAndActionsBlock({
15839
15899
  }
15840
15900
  ) })
15841
15901
  ] }),
15842
- (selectedPhoneOption == null ? void 0 : selectedPhoneOption.type) === "SUBTABLE" && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
15843
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-1.5 pb-1 border-b border-emerald-200/60", children: [
15844
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Users, { className: "w-3.5 h-3.5 text-emerald-700" }),
15845
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "text-[10.5px] font-bold text-emerald-900 truncate", children: [
15902
+ (selectedPhoneOption == null ? void 0 : selectedPhoneOption.type) === "SUBTABLE" && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
15903
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 pb-1 border-b border-emerald-200/60", children: [
15904
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Users, { className: "w-3.5 h-3.5 text-emerald-700" }),
15905
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-[10.5px] font-bold text-emerald-900 truncate", children: [
15846
15906
  "\u05D4\u05D2\u05D3\u05E8\u05D5\u05EA \u05E9\u05DC\u05D9\u05D7\u05D4 \u05DC\u05EA\u05EA-\u05D8\u05D1\u05DC\u05D4 \u05DE\u05E7\u05D5\u05E9\u05E8\u05EA (",
15847
15907
  selectedPhoneOption.parentColumnName,
15848
15908
  ")"
15849
15909
  ] })
15850
15910
  ] }),
15851
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15852
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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:" }) }),
15853
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15854
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15911
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15912
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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:" }) }),
15913
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15914
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15855
15915
  "select",
15856
15916
  {
15857
15917
  value: subtableFilterColumn,
@@ -15861,10 +15921,10 @@ function SettingsAndActionsBlock({
15861
15921
  },
15862
15922
  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",
15863
15923
  children: [
15864
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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)" }),
15924
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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)" }),
15865
15925
  subtableFilterableColumns.map((col) => {
15866
15926
  var _a2;
15867
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("option", { value: col.name, children: [
15927
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("option", { value: col.name, children: [
15868
15928
  col.name,
15869
15929
  " (",
15870
15930
  ((_a2 = col.type) == null ? void 0 : _a2.toUpperCase()) === "BOOLEAN" ? "\u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9" : "\u05E7\u05E9\u05E8",
@@ -15874,30 +15934,30 @@ function SettingsAndActionsBlock({
15874
15934
  ]
15875
15935
  }
15876
15936
  ),
15877
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15937
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15878
15938
  ] })
15879
15939
  ] }),
15880
- selectedSubtableFilterCol && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15881
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15882
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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:" }),
15883
- !subtableFilterValue && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." })
15940
+ selectedSubtableFilterCol && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15941
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15942
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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:" }),
15943
+ !subtableFilterValue && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." })
15884
15944
  ] }),
15885
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15886
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15945
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15946
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15887
15947
  "select",
15888
15948
  {
15889
15949
  value: subtableFilterValue,
15890
15950
  onChange: (e) => setSubtableFilterValue(e.target.value),
15891
15951
  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"}`,
15892
15952
  children: [
15893
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
15894
- ((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
15895
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "true", children: "\u05DB\u05DF (true)" }),
15896
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "false", children: "\u05DC\u05D0 (false)" })
15953
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
15954
+ ((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
15955
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "true", children: "\u05DB\u05DF (true)" }),
15956
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "false", children: "\u05DC\u05D0 (false)" })
15897
15957
  ] }) : getRelationOptionsForCol(
15898
15958
  selectedSubtableFilterCol.name,
15899
15959
  selectedPhoneOption.parentColumnName
15900
- ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
15960
+ ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
15901
15961
  opt,
15902
15962
  selectedSubtableFilterCol,
15903
15963
  relationOptions
@@ -15905,32 +15965,32 @@ function SettingsAndActionsBlock({
15905
15965
  ]
15906
15966
  }
15907
15967
  ),
15908
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15968
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15909
15969
  ] })
15910
15970
  ] }),
15911
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15912
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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:" }),
15913
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15914
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15971
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15972
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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:" }),
15973
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15974
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15915
15975
  "select",
15916
15976
  {
15917
15977
  value: subtableSendLimit,
15918
15978
  onChange: (e) => setSubtableSendLimit(e.target.value),
15919
15979
  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",
15920
15980
  children: [
15921
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "PRIMARY", children: "\u05DC\u05E0\u05E6\u05D9\u05D2 \u05E8\u05D0\u05E9\u05D9 \u05D1\u05DC\u05D1\u05D3" }),
15922
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "FIRST", children: "\u05E0\u05E6\u05D9\u05D2 \u05D0\u05D7\u05D3 \u05D1\u05DC\u05D1\u05D3" }),
15923
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "ALL", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD" })
15981
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "PRIMARY", children: "\u05DC\u05E0\u05E6\u05D9\u05D2 \u05E8\u05D0\u05E9\u05D9 \u05D1\u05DC\u05D1\u05D3" }),
15982
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "FIRST", children: "\u05E0\u05E6\u05D9\u05D2 \u05D0\u05D7\u05D3 \u05D1\u05DC\u05D1\u05D3" }),
15983
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "ALL", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD" })
15924
15984
  ]
15925
15985
  }
15926
15986
  ),
15927
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15987
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15928
15988
  ] })
15929
15989
  ] })
15930
15990
  ] }),
15931
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "pt-2 border-t border-slate-200/70 space-y-2", children: [
15932
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
15933
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15991
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "pt-2 border-t border-slate-200/70 space-y-2", children: [
15992
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
15993
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15934
15994
  "input",
15935
15995
  {
15936
15996
  type: "checkbox",
@@ -15947,13 +16007,13 @@ function SettingsAndActionsBlock({
15947
16007
  className: "w-3.5 h-3.5 rounded border-slate-300 text-emerald-600 focus:ring-emerald-500 cursor-pointer"
15948
16008
  }
15949
16009
  ),
15950
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" })
16010
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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" })
15951
16011
  ] }),
15952
- enablePostSendAction && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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__ */ (0, import_jsx_runtime33.jsx)("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__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
15953
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15954
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15955
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" }),
15956
- selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
16012
+ enablePostSendAction && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsx)("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__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
16013
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
16014
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16015
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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" }),
16016
+ selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15957
16017
  "span",
15958
16018
  {
15959
16019
  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"}`,
@@ -15961,8 +16021,8 @@ function SettingsAndActionsBlock({
15961
16021
  }
15962
16022
  )
15963
16023
  ] }),
15964
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15965
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16024
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
16025
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15966
16026
  "select",
15967
16027
  {
15968
16028
  value: postSendActionColumn,
@@ -15975,35 +16035,35 @@ function SettingsAndActionsBlock({
15975
16035
  },
15976
16036
  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",
15977
16037
  children: [
15978
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15979
- postSendActionTargetOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
16038
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
16039
+ postSendActionTargetOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15980
16040
  ]
15981
16041
  }
15982
16042
  ),
15983
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16043
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
15984
16044
  ] })
15985
16045
  ] }),
15986
- selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15987
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15988
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05E8\u05DA \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
15989
- !postSendActionValue && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05E2\u05E8\u05DA" })
16046
+ selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
16047
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16048
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "text-[10px] font-semibold text-slate-600 block", children: "\u05E2\u05E8\u05DA \u05DC\u05E2\u05D3\u05DB\u05D5\u05DF" }),
16049
+ !postSendActionValue && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D7\u05D5\u05D1\u05D4 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05E2\u05E8\u05DA" })
15990
16050
  ] }),
15991
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15992
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16051
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
16052
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15993
16053
  "select",
15994
16054
  {
15995
16055
  value: postSendActionValue,
15996
16056
  onChange: (e) => setPostSendActionValue(e.target.value),
15997
16057
  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"}`,
15998
16058
  children: [
15999
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
16000
- selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
16001
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
16002
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "false", children: "\u05DC\u05D0 (No)" })
16059
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
16060
+ selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
16061
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
16062
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "false", children: "\u05DC\u05D0 (No)" })
16003
16063
  ] }) : getRelationOptionsForCol(
16004
16064
  selectedPostSendOption.columnName,
16005
16065
  selectedPostSendOption.parentColumnName
16006
- ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
16066
+ ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
16007
16067
  opt,
16008
16068
  selectedPostSendOption,
16009
16069
  relationOptions
@@ -16011,15 +16071,15 @@ function SettingsAndActionsBlock({
16011
16071
  ]
16012
16072
  }
16013
16073
  ),
16014
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16074
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.ChevronDown, { className: "w-3 h-3 text-slate-400 absolute left-1.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16015
16075
  ] })
16016
16076
  ] })
16017
16077
  ] }) })
16018
16078
  ] })
16019
16079
  ] })
16020
16080
  ] }),
16021
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "mt-auto pt-2.5 border-t border-slate-200/80 space-y-2 shrink-0", children: [
16022
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16081
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "mt-auto pt-2.5 border-t border-slate-200/80 space-y-2 shrink-0", children: [
16082
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16023
16083
  "button",
16024
16084
  {
16025
16085
  type: "button",
@@ -16028,23 +16088,23 @@ function SettingsAndActionsBlock({
16028
16088
  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"}`,
16029
16089
  title: testButtonTitle,
16030
16090
  children: [
16031
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3" }),
16032
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05D8\u05E1\u05D8" })
16091
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3" }),
16092
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05D8\u05E1\u05D8" })
16033
16093
  ]
16034
16094
  }
16035
16095
  ),
16036
- isSendingBroadcast ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16096
+ isSendingBroadcast ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16037
16097
  "div",
16038
16098
  {
16039
16099
  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",
16040
16100
  "data-testid": "live-broadcast-progress",
16041
16101
  children: [
16042
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-700", children: [
16043
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-1.5 text-emerald-800 font-bold", children: [
16044
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Loader2, { className: "w-3.5 h-3.5 animate-spin text-emerald-600 shrink-0" }),
16045
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E9\u05D5\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05EA\u05E4\u05D5\u05E6\u05D4..." })
16102
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-700", children: [
16103
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 text-emerald-800 font-bold", children: [
16104
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Loader2, { className: "w-3.5 h-3.5 animate-spin text-emerald-600 shrink-0" }),
16105
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E9\u05D5\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D1\u05EA\u05E4\u05D5\u05E6\u05D4..." })
16046
16106
  ] }),
16047
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "text-emerald-700 font-bold", children: [
16107
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-emerald-700 font-bold", children: [
16048
16108
  (broadcastProgress == null ? void 0 : broadcastProgress.percent) || 0,
16049
16109
  "% (",
16050
16110
  (broadcastProgress == null ? void 0 : broadcastProgress.current) || 0,
@@ -16053,7 +16113,7 @@ function SettingsAndActionsBlock({
16053
16113
  ")"
16054
16114
  ] })
16055
16115
  ] }),
16056
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-full h-2.5 bg-slate-100 rounded-full overflow-hidden border border-slate-200", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
16116
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-full h-2.5 bg-slate-100 rounded-full overflow-hidden border border-slate-200", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
16057
16117
  "div",
16058
16118
  {
16059
16119
  className: "h-full bg-emerald-500 rounded-full transition-all duration-300 ease-out",
@@ -16062,18 +16122,18 @@ function SettingsAndActionsBlock({
16062
16122
  }
16063
16123
  }
16064
16124
  ) }),
16065
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-around pt-1 text-[11px] font-medium border-t border-slate-100", children: [
16066
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "text-emerald-700 flex items-center gap-1", title: "\u05E0\u05E9\u05DC\u05D7\u05D5 \u05D1\u05D4\u05E6\u05DC\u05D7\u05D4", children: [
16067
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u2705" }),
16068
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.successful) || 0 })
16125
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-around pt-1 text-[11px] font-medium border-t border-slate-100", children: [
16126
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-emerald-700 flex items-center gap-1", title: "\u05E0\u05E9\u05DC\u05D7\u05D5 \u05D1\u05D4\u05E6\u05DC\u05D7\u05D4", children: [
16127
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u2705" }),
16128
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.successful) || 0 })
16069
16129
  ] }),
16070
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "text-rose-600 flex items-center gap-1", title: "\u05E9\u05DC\u05D9\u05D7\u05D4 \u05E0\u05DB\u05E9\u05DC\u05D4", children: [
16071
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u274C" }),
16072
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.failed) || 0 })
16130
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-rose-600 flex items-center gap-1", title: "\u05E9\u05DC\u05D9\u05D7\u05D4 \u05E0\u05DB\u05E9\u05DC\u05D4", children: [
16131
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u274C" }),
16132
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.failed) || 0 })
16073
16133
  ] }),
16074
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
16075
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u26A0\uFE0F" }),
16076
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "font-bold", children: [
16134
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
16135
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u26A0\uFE0F" }),
16136
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-bold", children: [
16077
16137
  (broadcastProgress == null ? void 0 : broadcastProgress.skipped) || 0,
16078
16138
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
16079
16139
  ] })
@@ -16081,8 +16141,8 @@ function SettingsAndActionsBlock({
16081
16141
  ] })
16082
16142
  ]
16083
16143
  }
16084
- ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
16085
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16144
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
16145
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16086
16146
  "button",
16087
16147
  {
16088
16148
  type: "button",
@@ -16091,56 +16151,56 @@ function SettingsAndActionsBlock({
16091
16151
  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"}`,
16092
16152
  title: sendButtonTitle,
16093
16153
  children: [
16094
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.Send, { className: "w-3.5 h-3.5" }),
16095
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: finalRecipientCount > 0 ? `\u05E9\u05DC\u05D7 \u05DC-${finalRecipientCount} \u05E0\u05DE\u05E2\u05E0\u05D9\u05DD` : "\u05E9\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" })
16154
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Send, { className: "w-3.5 h-3.5" }),
16155
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: finalRecipientCount > 0 ? `\u05E9\u05DC\u05D7 \u05DC-${finalRecipientCount} \u05E0\u05DE\u05E2\u05E0\u05D9\u05DD` : "\u05E9\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA" })
16096
16156
  ]
16097
16157
  }
16098
16158
  ),
16099
- validMainRowsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "text-center text-[10.5px] text-slate-500 font-medium pt-0.5", children: [
16159
+ validMainRowsCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "text-center text-[10.5px] text-slate-500 font-medium pt-0.5", children: [
16100
16160
  "\u05DE\u05EA\u05D5\u05DA ",
16101
16161
  validMainRowsCount,
16102
16162
  " \u05E9\u05D5\u05E8\u05D5\u05EA \u05E8\u05D0\u05E9\u05D9\u05D5\u05EA"
16103
16163
  ] }),
16104
- broadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16164
+ broadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16105
16165
  "div",
16106
16166
  {
16107
16167
  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",
16108
16168
  "data-testid": "broadcast-summary-card",
16109
16169
  children: [
16110
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
16111
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-1.5 text-[11px] font-bold text-slate-700", children: [
16112
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-xs", children: "\u{1F4CA}" }),
16113
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E1\u05D9\u05DB\u05D5\u05DD \u05E9\u05D9\u05D3\u05D5\u05E8 \u05D0\u05D7\u05E8\u05D5\u05DF" })
16170
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16171
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 text-[11px] font-bold text-slate-700", children: [
16172
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-xs", children: "\u{1F4CA}" }),
16173
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E1\u05D9\u05DB\u05D5\u05DD \u05E9\u05D9\u05D3\u05D5\u05E8 \u05D0\u05D7\u05E8\u05D5\u05DF" })
16114
16174
  ] }),
16115
- clearBroadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
16175
+ clearBroadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
16116
16176
  "button",
16117
16177
  {
16118
16178
  type: "button",
16119
16179
  onClick: clearBroadcastSummary,
16120
16180
  className: "text-slate-400 hover:text-slate-600 p-0.5 rounded-md hover:bg-slate-200/60 transition-colors cursor-pointer",
16121
16181
  title: "\u05E1\u05D2\u05D5\u05E8 \u05E1\u05D9\u05DB\u05D5\u05DD",
16122
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react14.X, { className: "w-3.5 h-3.5" })
16182
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.X, { className: "w-3.5 h-3.5" })
16123
16183
  }
16124
16184
  )
16125
16185
  ] }),
16126
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [
16127
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
16128
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u2705" }),
16129
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
16186
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [
16187
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
16188
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u2705" }),
16189
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16130
16190
  broadcastSummary.successful,
16131
16191
  " \u05E0\u05E9\u05DC\u05D7\u05D5"
16132
16192
  ] })
16133
16193
  ] }),
16134
- broadcastSummary.failed > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
16135
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u274C" }),
16136
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
16194
+ broadcastSummary.failed > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
16195
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u274C" }),
16196
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16137
16197
  broadcastSummary.failed,
16138
16198
  " \u05E0\u05DB\u05E9\u05DC\u05D5"
16139
16199
  ] })
16140
16200
  ] }),
16141
- broadcastSummary.skipped > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
16142
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u26A0\uFE0F" }),
16143
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
16201
+ broadcastSummary.skipped > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("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: [
16202
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u26A0\uFE0F" }),
16203
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16144
16204
  broadcastSummary.skipped,
16145
16205
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
16146
16206
  ] })
@@ -16238,14 +16298,14 @@ function useInboxState(orgId, actions) {
16238
16298
 
16239
16299
  // src/components/WhatsAppComponent/inbox/ConversationList.tsx
16240
16300
  var import_lucide_react15 = require("lucide-react");
16241
- var import_jsx_runtime34 = require("react/jsx-runtime");
16301
+ var import_jsx_runtime35 = require("react/jsx-runtime");
16242
16302
  function ConversationList({ conversations, activeId, onSelect }) {
16243
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-80 border-l border-slate-200 bg-white flex flex-col h-full shrink-0", children: [
16244
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "p-4 border-b border-slate-100 bg-slate-50", children: [
16245
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { className: "text-lg font-bold text-slate-800 mb-3", children: "\u05E9\u05D9\u05D7\u05D5\u05EA \u05E0\u05DB\u05E0\u05E1\u05D5\u05EA" }),
16246
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
16247
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.Search, { className: "w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400" }),
16248
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
16303
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "w-80 border-l border-slate-200 bg-white flex flex-col h-full shrink-0", children: [
16304
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "p-4 border-b border-slate-100 bg-slate-50", children: [
16305
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h2", { className: "text-lg font-bold text-slate-800 mb-3", children: "\u05E9\u05D9\u05D7\u05D5\u05EA \u05E0\u05DB\u05E0\u05E1\u05D5\u05EA" }),
16306
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", children: [
16307
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react15.Search, { className: "w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400" }),
16308
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
16249
16309
  "input",
16250
16310
  {
16251
16311
  type: "text",
@@ -16255,27 +16315,27 @@ function ConversationList({ conversations, activeId, onSelect }) {
16255
16315
  )
16256
16316
  ] })
16257
16317
  ] }),
16258
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 overflow-y-auto", children: (() => {
16318
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1 overflow-y-auto", children: (() => {
16259
16319
  const sortedConversations = [...conversations].sort(
16260
16320
  (a, b) => new Date(b.lastMessageAt).getTime() - new Date(a.lastMessageAt).getTime()
16261
16321
  );
16262
- return sortedConversations.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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) => {
16322
+ return sortedConversations.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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) => {
16263
16323
  var _a, _b;
16264
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16324
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
16265
16325
  "button",
16266
16326
  {
16267
16327
  onClick: () => onSelect(conv.id),
16268
16328
  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"}`,
16269
16329
  children: [
16270
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react15.User, { className: "w-5 h-5 text-slate-500" }) }),
16271
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex-1 overflow-hidden", children: [
16272
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-between items-center mb-1", children: [
16273
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-semibold text-slate-800 text-sm truncate", children: conv.contactName || conv.contactPhone }),
16274
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[10px] text-slate-400", children: new Date(conv.lastMessageAt).toLocaleTimeString("he-IL", { hour: "2-digit", minute: "2-digit" }) })
16330
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react15.User, { className: "w-5 h-5 text-slate-500" }) }),
16331
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 overflow-hidden", children: [
16332
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between items-center mb-1", children: [
16333
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-semibold text-slate-800 text-sm truncate", children: conv.contactName || conv.contactPhone }),
16334
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-[10px] text-slate-400", children: new Date(conv.lastMessageAt).toLocaleTimeString("he-IL", { hour: "2-digit", minute: "2-digit" }) })
16275
16335
  ] }),
16276
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex justify-between items-center", children: [
16277
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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" }),
16278
- conv.unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("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 })
16336
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between items-center", children: [
16337
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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" }),
16338
+ conv.unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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 })
16279
16339
  ] })
16280
16340
  ] })
16281
16341
  ]
@@ -16290,7 +16350,7 @@ function ConversationList({ conversations, activeId, onSelect }) {
16290
16350
  // src/components/WhatsAppComponent/inbox/ChatWindow.tsx
16291
16351
  var import_react33 = require("react");
16292
16352
  var import_lucide_react16 = require("lucide-react");
16293
- var import_jsx_runtime35 = require("react/jsx-runtime");
16353
+ var import_jsx_runtime36 = require("react/jsx-runtime");
16294
16354
  function ChatWindow({ activeConversation, messages, isLoading, isSending, onSendMessage }) {
16295
16355
  const [inputText, setInputText] = (0, import_react33.useState)("");
16296
16356
  const messagesTopRef = (0, import_react33.useRef)(null);
@@ -16308,34 +16368,34 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16308
16368
  setInputText("");
16309
16369
  };
16310
16370
  if (!activeConversation) {
16311
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 bg-slate-50 flex items-center justify-center flex-col gap-4 text-slate-400", children: [
16312
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-16 h-16 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { className: "w-8 h-8 text-slate-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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" }) }) }),
16313
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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" })
16371
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex-1 bg-slate-50 flex items-center justify-center flex-col gap-4 text-slate-400", children: [
16372
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-16 h-16 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { className: "w-8 h-8 text-slate-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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" }) }) }),
16373
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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" })
16314
16374
  ] });
16315
16375
  }
16316
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 flex flex-col bg-[#efeae2] h-full relative", children: [
16317
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
16318
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.User, { className: "w-5 h-5 text-slate-500" }) }),
16319
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
16320
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h3", { className: "font-bold text-slate-800", children: activeConversation.contactName || activeConversation.contactPhone }),
16321
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xs text-slate-500", dir: "ltr", children: activeConversation.contactPhone })
16376
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex-1 flex flex-col bg-[#efeae2] h-full relative", children: [
16377
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("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: [
16378
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react16.User, { className: "w-5 h-5 text-slate-500" }) }),
16379
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
16380
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "font-bold text-slate-800", children: activeConversation.contactName || activeConversation.contactPhone }),
16381
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-xs text-slate-500", dir: "ltr", children: activeConversation.contactPhone })
16322
16382
  ] })
16323
16383
  ] }),
16324
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 overflow-y-auto p-6 space-y-4", children: [
16325
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: messagesTopRef }),
16326
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-center py-10", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Loader2, { className: "w-6 h-6 animate-spin text-emerald-600" }) }) : messages.map((msg, idx) => {
16384
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex-1 overflow-y-auto p-6 space-y-4", children: [
16385
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref: messagesTopRef }),
16386
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex justify-center py-10", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react16.Loader2, { className: "w-6 h-6 animate-spin text-emerald-600" }) }) : messages.map((msg, idx) => {
16327
16387
  const isOutbound = msg.direction === "OUTBOUND";
16328
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `flex ${isOutbound ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("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: [
16329
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm whitespace-pre-wrap", children: msg.content }),
16330
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "text-[11px] text-slate-600 mt-1 text-left flex items-center justify-end gap-1", children: [
16388
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `flex ${isOutbound ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("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: [
16389
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm whitespace-pre-wrap", children: msg.content }),
16390
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "text-[11px] text-slate-600 mt-1 text-left flex items-center justify-end gap-1", children: [
16331
16391
  new Date(msg.createdAt).toLocaleString("he-IL", { day: "2-digit", month: "2-digit", year: "numeric", hour: "2-digit", minute: "2-digit" }),
16332
- isOutbound && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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" })
16392
+ isOutbound && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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" })
16333
16393
  ] })
16334
16394
  ] }) }, msg.id || idx);
16335
16395
  })
16336
16396
  ] }),
16337
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "bg-slate-50 p-4 border-t border-slate-200 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("form", { onSubmit: handleSend, className: "flex items-end gap-2 max-w-4xl mx-auto", children: [
16338
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsx)(
16397
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "bg-slate-50 p-4 border-t border-slate-200 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("form", { onSubmit: handleSend, className: "flex items-end gap-2 max-w-4xl mx-auto", children: [
16398
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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__ */ (0, import_jsx_runtime36.jsx)(
16339
16399
  "textarea",
16340
16400
  {
16341
16401
  rows: 1,
@@ -16351,13 +16411,13 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16351
16411
  className: "w-full max-h-32 min-h-[44px] p-3 text-sm bg-transparent outline-none resize-none"
16352
16412
  }
16353
16413
  ) }),
16354
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
16414
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
16355
16415
  "button",
16356
16416
  {
16357
16417
  type: "submit",
16358
16418
  disabled: !inputText.trim() || isSending,
16359
16419
  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"}`,
16360
- children: isSending ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Loader2, { className: "w-5 h-5 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Send, { className: "w-5 h-5 -ml-1" })
16420
+ children: isSending ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react16.Loader2, { className: "w-5 h-5 animate-spin" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react16.Send, { className: "w-5 h-5 -ml-1" })
16361
16421
  }
16362
16422
  )
16363
16423
  ] }) })
@@ -16365,7 +16425,7 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16365
16425
  }
16366
16426
 
16367
16427
  // src/components/WhatsAppComponent/inbox/WhatsAppInbox.tsx
16368
- var import_jsx_runtime36 = require("react/jsx-runtime");
16428
+ var import_jsx_runtime37 = require("react/jsx-runtime");
16369
16429
  function WhatsAppInbox({
16370
16430
  orgId,
16371
16431
  getConversationsAction,
@@ -16386,8 +16446,8 @@ function WhatsAppInbox({
16386
16446
  sendMessage: sendInboxMessageAction
16387
16447
  });
16388
16448
  const activeConversation = conversations.find((c) => c.id === activeConversationId);
16389
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("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: [
16390
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
16449
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("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: [
16450
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16391
16451
  ConversationList,
16392
16452
  {
16393
16453
  conversations,
@@ -16395,7 +16455,7 @@ function WhatsAppInbox({
16395
16455
  onSelect: handleSelectConversation
16396
16456
  }
16397
16457
  ),
16398
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
16458
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16399
16459
  ChatWindow,
16400
16460
  {
16401
16461
  activeConversation,
@@ -16409,21 +16469,21 @@ function WhatsAppInbox({
16409
16469
  }
16410
16470
 
16411
16471
  // src/components/WhatsAppComponent/WhatsAppComponent.tsx
16412
- var import_jsx_runtime37 = require("react/jsx-runtime");
16472
+ var import_jsx_runtime38 = require("react/jsx-runtime");
16413
16473
  function WhatsAppComponent(props) {
16414
16474
  var _a;
16415
16475
  const { className = "", settings, orgId, componentId, executeAction } = props;
16416
16476
  const state = useWhatsAppState(props);
16417
16477
  const [activeTab, setActiveTab] = import_react34.default.useState("broadcast");
16418
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16478
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16419
16479
  "div",
16420
16480
  {
16421
16481
  className: `w-full flex flex-col bg-white border border-slate-200 rounded-2xl shadow-xs overflow-hidden ${className}`,
16422
16482
  "data-testid": "whatsapp-component",
16423
16483
  dir: "rtl",
16424
16484
  children: [
16425
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex border-b border-slate-200 bg-slate-50 px-6 pt-3 gap-4 shrink-0", children: [
16426
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16485
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex border-b border-slate-200 bg-slate-50 px-6 pt-3 gap-4 shrink-0", children: [
16486
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16427
16487
  "button",
16428
16488
  {
16429
16489
  type: "button",
@@ -16432,7 +16492,7 @@ function WhatsAppComponent(props) {
16432
16492
  children: "\u{1F4E4} \u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D5\u05EA\u05E4\u05D5\u05E6\u05D4"
16433
16493
  }
16434
16494
  ),
16435
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16495
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16436
16496
  "button",
16437
16497
  {
16438
16498
  type: "button",
@@ -16442,7 +16502,7 @@ function WhatsAppComponent(props) {
16442
16502
  }
16443
16503
  )
16444
16504
  ] }),
16445
- activeTab === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "p-4 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16505
+ activeTab === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "p-4 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16446
16506
  WhatsAppInbox,
16447
16507
  {
16448
16508
  orgId: orgId || props.organizationId || "",
@@ -16481,37 +16541,37 @@ function WhatsAppComponent(props) {
16481
16541
  }
16482
16542
  }
16483
16543
  }
16484
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16485
- state.feedback && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16544
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16545
+ state.feedback && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16486
16546
  "div",
16487
16547
  {
16488
16548
  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"}`,
16489
16549
  children: [
16490
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-2", children: [
16491
- state.feedback.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.CheckCircle2, { className: "w-4 h-4 text-emerald-600 shrink-0" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
16492
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: state.feedback.message })
16550
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
16551
+ state.feedback.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.CheckCircle2, { className: "w-4 h-4 text-emerald-600 shrink-0" }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
16552
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.feedback.message })
16493
16553
  ] }),
16494
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16554
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16495
16555
  "button",
16496
16556
  {
16497
16557
  type: "button",
16498
16558
  onClick: () => state.setFeedback(null),
16499
16559
  className: "text-slate-400 hover:text-slate-700 cursor-pointer",
16500
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16560
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16501
16561
  }
16502
16562
  )
16503
16563
  ]
16504
16564
  }
16505
16565
  ),
16506
- state.fetchError && !state.isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("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: [
16507
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-2", children: [
16508
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
16509
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { children: [
16566
+ state.fetchError && !state.isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("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: [
16567
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
16568
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
16569
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { children: [
16510
16570
  "\u05E9\u05D2\u05D9\u05D0\u05D4 \u05D1\u05D8\u05E2\u05D9\u05E0\u05EA \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA \u05DE-Meta: ",
16511
16571
  state.fetchError
16512
16572
  ] })
16513
16573
  ] }),
16514
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16574
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16515
16575
  "button",
16516
16576
  {
16517
16577
  type: "button",
@@ -16521,9 +16581,9 @@ function WhatsAppComponent(props) {
16521
16581
  }
16522
16582
  )
16523
16583
  ] }),
16524
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "p-4 flex flex-col gap-4", children: [
16525
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-4 shrink-0 items-stretch", children: [
16526
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16584
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-4 flex flex-col gap-4", children: [
16585
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-4 shrink-0 items-stretch", children: [
16586
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16527
16587
  TemplateSelectionBlock,
16528
16588
  {
16529
16589
  selectedTemplate: state.selectedTemplate,
@@ -16551,7 +16611,7 @@ function WhatsAppComponent(props) {
16551
16611
  handleFileUpload: state.handleFileUpload
16552
16612
  }
16553
16613
  ),
16554
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16614
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16555
16615
  DynamicFiltersBlock,
16556
16616
  {
16557
16617
  filterableColumns: state.filterableColumns,
@@ -16568,7 +16628,7 @@ function WhatsAppComponent(props) {
16568
16628
  isLoadingTableData: state.isLoadingTableData
16569
16629
  }
16570
16630
  ),
16571
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16631
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16572
16632
  SettingsAndActionsBlock,
16573
16633
  {
16574
16634
  isScanningPhoneColumns: state.isScanningPhoneColumns,
@@ -16614,13 +16674,13 @@ function WhatsAppComponent(props) {
16614
16674
  }
16615
16675
  )
16616
16676
  ] }),
16617
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex-1 flex flex-col items-center justify-center p-12 text-center text-xs text-slate-400 gap-2", children: [
16618
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Loader2, { className: "w-6 h-6 animate-spin text-emerald-600" }),
16619
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "\u05D8\u05D5\u05E2\u05DF \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05D4\u05D8\u05D1\u05DC\u05D4..." })
16620
- ] }) : state.tableError ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex-1 flex items-center justify-center p-6 text-center text-xs text-rose-600 bg-rose-50 gap-2", children: [
16621
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16622
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: state.tableError })
16623
- ] }) : !(settings == null ? void 0 : settings.tableMetaId) ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsx)(
16677
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-1 flex flex-col items-center justify-center p-12 text-center text-xs text-slate-400 gap-2", children: [
16678
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Loader2, { className: "w-6 h-6 animate-spin text-emerald-600" }),
16679
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05D8\u05D5\u05E2\u05DF \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05D4\u05D8\u05D1\u05DC\u05D4..." })
16680
+ ] }) : state.tableError ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex-1 flex items-center justify-center p-6 text-center text-xs text-rose-600 bg-rose-50 gap-2", children: [
16681
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16682
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.tableError })
16683
+ ] }) : !(settings == null ? void 0 : settings.tableMetaId) ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsx)(
16624
16684
  TableBlockClient,
16625
16685
  {
16626
16686
  settings: {
@@ -16642,7 +16702,7 @@ function WhatsAppComponent(props) {
16642
16702
  }
16643
16703
  ) })
16644
16704
  ] }),
16645
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16705
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16646
16706
  CreateTemplateModal,
16647
16707
  {
16648
16708
  isOpen: state.isModalOpen,
@@ -16656,7 +16716,7 @@ function WhatsAppComponent(props) {
16656
16716
  orgId: state.orgId || orgId
16657
16717
  }
16658
16718
  ),
16659
- state.isTestPromptOpen && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16719
+ state.isTestPromptOpen && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16660
16720
  "div",
16661
16721
  {
16662
16722
  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",
@@ -16665,7 +16725,7 @@ function WhatsAppComponent(props) {
16665
16725
  state.setIsTestPromptOpen(false);
16666
16726
  state.setTestFeedback(null);
16667
16727
  },
16668
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16728
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16669
16729
  "div",
16670
16730
  {
16671
16731
  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",
@@ -16674,15 +16734,15 @@ function WhatsAppComponent(props) {
16674
16734
  "aria-labelledby": "test-modal-title",
16675
16735
  onClick: (e) => e.stopPropagation(),
16676
16736
  children: [
16677
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "px-5 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
16678
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-2.5", children: [
16679
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Phone, { className: "w-4 h-4" }) }),
16680
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { children: [
16681
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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)" }),
16682
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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" })
16737
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "px-5 py-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/70", children: [
16738
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2.5", children: [
16739
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "w-8 h-8 rounded-lg bg-emerald-100 text-emerald-700 flex items-center justify-center shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Phone, { className: "w-4 h-4" }) }),
16740
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
16741
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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)" }),
16742
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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" })
16683
16743
  ] })
16684
16744
  ] }),
16685
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16745
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16686
16746
  "button",
16687
16747
  {
16688
16748
  type: "button",
@@ -16694,25 +16754,25 @@ function WhatsAppComponent(props) {
16694
16754
  },
16695
16755
  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"}`,
16696
16756
  title: "\u05E1\u05D2\u05D5\u05E8",
16697
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16757
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16698
16758
  }
16699
16759
  )
16700
16760
  ] }),
16701
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "p-5 space-y-4", children: [
16702
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16703
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-slate-500 font-medium", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05E0\u05D1\u05D7\u05E8\u05EA:" }),
16704
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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" })
16761
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-5 space-y-4", children: [
16762
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16763
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-slate-500 font-medium", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05E0\u05D1\u05D7\u05E8\u05EA:" }),
16764
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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" })
16705
16765
  ] }),
16706
- state.selectedPhoneOption && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "p-2 bg-emerald-50/50 border border-emerald-200/60 rounded-xl flex items-center justify-between text-[11px]", children: [
16707
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-emerald-800 font-medium", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3:" }),
16708
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-bold text-emerald-950 font-mono", children: state.selectedPhoneOption.label })
16766
+ state.selectedPhoneOption && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-2 bg-emerald-50/50 border border-emerald-200/60 rounded-xl flex items-center justify-between text-[11px]", children: [
16767
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-emerald-800 font-medium", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3:" }),
16768
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-bold text-emerald-950 font-mono", children: state.selectedPhoneOption.label })
16709
16769
  ] }),
16710
16770
  state.templateHeaderComp && (() => {
16711
16771
  const headerFormat = (state.templateHeaderComp.format || "").toUpperCase();
16712
16772
  const docFilename = resolveDocumentFilename(state.templateHeaderComp, state.headerMediaUrl);
16713
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16714
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16715
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsx)(
16773
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-2.5 bg-slate-50 border border-slate-200/80 rounded-xl flex items-center justify-between text-xs", children: [
16774
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex items-center gap-2 overflow-hidden", children: headerFormat === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16775
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsx)(
16716
16776
  "img",
16717
16777
  {
16718
16778
  src: state.headerMediaUrl,
@@ -16722,28 +16782,28 @@ function WhatsAppComponent(props) {
16722
16782
  e.currentTarget.style.display = "none";
16723
16783
  }
16724
16784
  }
16725
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Image, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
16726
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-semibold text-slate-800 truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" })
16727
- ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16728
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.FileText, { className: "w-3.5 h-3.5" }) }),
16729
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "overflow-hidden", children: [
16730
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-semibold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
16731
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
16785
+ ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Image, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
16786
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-semibold text-slate-800 truncate", children: "\u05EA\u05DE\u05D5\u05E0\u05EA \u05DB\u05D5\u05EA\u05E8\u05EA" })
16787
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16788
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.FileText, { className: "w-3.5 h-3.5" }) }),
16789
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "overflow-hidden", children: [
16790
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-semibold text-slate-800 block truncate", children: "\u05DE\u05E1\u05DE\u05DA \u05DB\u05D5\u05EA\u05E8\u05EA (PDF)" }),
16791
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
16732
16792
  ] })
16733
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16734
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Video, { className: "w-3.5 h-3.5" }) }),
16735
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-semibold text-slate-800 truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" })
16793
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16794
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Video, { className: "w-3.5 h-3.5" }) }),
16795
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-semibold text-slate-800 truncate", children: "\u05E1\u05E8\u05D8\u05D5\u05DF \u05DB\u05D5\u05EA\u05E8\u05EA" })
16736
16796
  ] }) }),
16737
- state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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__ */ (0, import_jsx_runtime37.jsx)("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" })
16797
+ state.headerMediaUrl && state.headerMediaUrl.startsWith("http") ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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__ */ (0, import_jsx_runtime38.jsx)("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" })
16738
16798
  ] });
16739
16799
  })(),
16740
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-1.5", children: [
16741
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { className: "text-xs font-semibold text-slate-700 block", children: [
16800
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-1.5", children: [
16801
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "text-xs font-semibold text-slate-700 block", children: [
16742
16802
  "\u05DE\u05E1\u05E4\u05E8 \u05D8\u05DC\u05E4\u05D5\u05DF \u05DC\u05D8\u05E1\u05D8 ",
16743
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-rose-500", children: "*" })
16803
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-rose-500", children: "*" })
16744
16804
  ] }),
16745
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", children: [
16746
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16805
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative", children: [
16806
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16747
16807
  "input",
16748
16808
  {
16749
16809
  type: "tel",
@@ -16765,17 +16825,17 @@ function WhatsAppComponent(props) {
16765
16825
  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"
16766
16826
  }
16767
16827
  ),
16768
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Phone, { className: "w-4 h-4 text-slate-400 absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16828
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Phone, { className: "w-4 h-4 text-slate-400 absolute left-2.5 top-1/2 -translate-y-1/2 pointer-events-none" })
16769
16829
  ] }),
16770
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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." })
16830
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("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." })
16771
16831
  ] }),
16772
- state.testFeedback && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("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: [
16773
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16774
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: state.testFeedback })
16832
+ state.testFeedback && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("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: [
16833
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16834
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.testFeedback })
16775
16835
  ] })
16776
16836
  ] }),
16777
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "px-5 py-3.5 bg-slate-50/70 border-t border-slate-100 flex items-center justify-end gap-2", children: [
16778
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16837
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "px-5 py-3.5 bg-slate-50/70 border-t border-slate-100 flex items-center justify-end gap-2", children: [
16838
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16779
16839
  "button",
16780
16840
  {
16781
16841
  type: "button",
@@ -16789,7 +16849,7 @@ function WhatsAppComponent(props) {
16789
16849
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
16790
16850
  }
16791
16851
  ),
16792
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16852
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16793
16853
  "button",
16794
16854
  {
16795
16855
  type: "button",
@@ -16797,12 +16857,12 @@ function WhatsAppComponent(props) {
16797
16857
  onClick: state.handleSendTest,
16798
16858
  title: state.testButtonTitle,
16799
16859
  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"}`,
16800
- children: state.isSendingTest ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16801
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
16802
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
16803
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16804
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.Send, { className: "w-3.5 h-3.5" }),
16805
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
16860
+ children: state.isSendingTest ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16861
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
16862
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
16863
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16864
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Send, { className: "w-3.5 h-3.5" }),
16865
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
16806
16866
  ] })
16807
16867
  }
16808
16868
  )
@@ -16821,7 +16881,7 @@ function WhatsAppComponent(props) {
16821
16881
  // src/components/FormBlock/FormBlock.tsx
16822
16882
  var import_react35 = require("react");
16823
16883
  var import_lucide_react18 = require("lucide-react");
16824
- var import_jsx_runtime38 = require("react/jsx-runtime");
16884
+ var import_jsx_runtime39 = require("react/jsx-runtime");
16825
16885
 
16826
16886
  // src/components/FormBlock/StyledFormBlock.tsx
16827
16887
  var import_react36 = require("react");
@@ -17066,7 +17126,7 @@ function applyFieldOrder(cols, design) {
17066
17126
  }
17067
17127
 
17068
17128
  // src/components/FormBlock/StyledFormBlock.tsx
17069
- var import_jsx_runtime39 = require("react/jsx-runtime");
17129
+ var import_jsx_runtime40 = require("react/jsx-runtime");
17070
17130
  var SYSTEM_FIELDS = ["_id", "id", "createdAt", "updatedAt", "orgId", "tableId"];
17071
17131
  function StyledFormBlock({
17072
17132
  settings: schema,
@@ -17435,30 +17495,30 @@ function StyledFormBlock({
17435
17495
  }
17436
17496
  `;
17437
17497
  if (isLoadingSchema) {
17438
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "p-8 flex items-center justify-center gap-2 text-slate-500", dir: "rtl", children: [
17439
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.Loader2, { className: "w-5 h-5 animate-spin", style: { color: d.primary } }),
17440
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E9\u05D3\u05D5\u05EA \u05D8\u05D5\u05E4\u05E1..." })
17498
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "p-8 flex items-center justify-center gap-2 text-slate-500", dir: "rtl", children: [
17499
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.Loader2, { className: "w-5 h-5 animate-spin", style: { color: d.primary } }),
17500
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E9\u05D3\u05D5\u05EA \u05D8\u05D5\u05E4\u05E1..." })
17441
17501
  ] });
17442
17502
  }
17443
17503
  if (!formColumns || formColumns.length === 0) {
17444
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("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." });
17504
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("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." });
17445
17505
  }
17446
17506
  const logoJustify = d.logoAlign === "center" ? "center" : d.logoAlign === "end" ? "flex-end" : "flex-start";
17447
- const headerBlock = (schema == null ? void 0 : schema.title) || d.subtitle || d.logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
17507
+ const headerBlock = (schema == null ? void 0 : schema.title) || d.subtitle || d.logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17448
17508
  "div",
17449
17509
  {
17450
17510
  style: t.headerBand ? { background: d.primary, color: "#ffffff", padding: `${t.padding * 0.8}px ${t.padding}px` } : { marginBottom: t.gap + 4 },
17451
17511
  children: [
17452
- d.logoUrl && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { style: { display: "flex", justifyContent: logoJustify, marginBottom: (schema == null ? void 0 : schema.title) || d.subtitle ? 12 : 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("img", { src: d.logoUrl, alt: "", style: { height: d.logoHeight, maxWidth: "100%", objectFit: "contain", display: "block" } }) }),
17453
- (schema == null ? void 0 : schema.title) && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h2", { style: __spreadValues({ fontSize: t.titleSize, fontWeight: 800, margin: 0 }, d.titleColor ? { color: d.titleColor } : {}), children: schema.title }),
17454
- d.subtitle && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { style: { fontSize: 14, margin: "6px 0 0", color: t.headerBand ? "rgba(255,255,255,0.9)" : muted }, children: d.subtitle })
17512
+ d.logoUrl && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { style: { display: "flex", justifyContent: logoJustify, marginBottom: (schema == null ? void 0 : schema.title) || d.subtitle ? 12 : 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("img", { src: d.logoUrl, alt: "", style: { height: d.logoHeight, maxWidth: "100%", objectFit: "contain", display: "block" } }) }),
17513
+ (schema == null ? void 0 : schema.title) && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h2", { style: __spreadValues({ fontSize: t.titleSize, fontWeight: 800, margin: 0 }, d.titleColor ? { color: d.titleColor } : {}), children: schema.title }),
17514
+ d.subtitle && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { style: { fontSize: 14, margin: "6px 0 0", color: t.headerBand ? "rgba(255,255,255,0.9)" : muted }, children: d.subtitle })
17455
17515
  ]
17456
17516
  }
17457
17517
  ) : null;
17458
17518
  if (isSubmitted) {
17459
17519
  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.";
17460
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { id: componentId, dir: "rtl", className, style: __spreadProps(__spreadValues({}, cardStyle), { padding: t.padding || 24, textAlign: "center" }), children: [
17461
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17520
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { id: componentId, dir: "rtl", className, style: __spreadProps(__spreadValues({}, cardStyle), { padding: t.padding || 24, textAlign: "center" }), children: [
17521
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17462
17522
  "div",
17463
17523
  {
17464
17524
  style: {
@@ -17472,12 +17532,12 @@ function StyledFormBlock({
17472
17532
  background: t.invertText ? "rgba(255,255,255,0.2)" : "#ecfdf5",
17473
17533
  color: t.invertText ? "#ffffff" : "#059669"
17474
17534
  },
17475
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.CheckCircle2, { className: "w-8 h-8" })
17535
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.CheckCircle2, { className: "w-8 h-8" })
17476
17536
  }
17477
17537
  ),
17478
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h3", { style: { fontSize: 24, fontWeight: 800, margin: "0 0 8px" }, children: "\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E0\u05E9\u05DC\u05D7\u05D4" }),
17479
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { style: { fontSize: 16, color: muted, maxWidth: 420, margin: "0 auto", whiteSpace: "pre-wrap" }, children: customMessage }),
17480
- submitMode !== "update" && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17538
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h3", { style: { fontSize: 24, fontWeight: 800, margin: "0 0 8px" }, children: "\u05D4\u05D5\u05D3\u05E2\u05D4 \u05E0\u05E9\u05DC\u05D7\u05D4" }),
17539
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { style: { fontSize: 16, color: muted, maxWidth: 420, margin: "0 auto", whiteSpace: "pre-wrap" }, children: customMessage }),
17540
+ submitMode !== "update" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17481
17541
  "button",
17482
17542
  {
17483
17543
  type: "button",
@@ -17489,11 +17549,11 @@ function StyledFormBlock({
17489
17549
  ] });
17490
17550
  }
17491
17551
  const justify = d.buttonAlign === "center" ? "center" : d.buttonAlign === "end" ? "flex-end" : d.buttonAlign === "full" ? "stretch" : "flex-start";
17492
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { id: componentId, dir: "rtl", className: `${uid} ${className}`, style: cardStyle, children: [
17493
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("style", { children: css }),
17552
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { id: componentId, dir: "rtl", className: `${uid} ${className}`, style: cardStyle, children: [
17553
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("style", { children: css }),
17494
17554
  headerBlock,
17495
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { style: t.headerBand ? { padding: t.padding } : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("form", { onSubmit: handleSubmit, children: [
17496
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "fdz-grid", ref: gridRef, children: (() => {
17555
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { style: t.headerBand ? { padding: t.padding } : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("form", { onSubmit: handleSubmit, children: [
17556
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "fdz-grid", ref: gridRef, children: (() => {
17497
17557
  const spanOf = (col) => {
17498
17558
  var _a;
17499
17559
  if (resizing && resizing.name === col.name) return resizing.span;
@@ -17511,7 +17571,7 @@ function StyledFormBlock({
17511
17571
  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;
17512
17572
  const useTextarea = !!fieldHeight && fieldHeight > 56 && InputComponent === FORM_INPUTS.DEFAULT;
17513
17573
  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" } : {});
17514
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
17574
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17515
17575
  "div",
17516
17576
  {
17517
17577
  "data-fdz-field": col.name,
@@ -17535,13 +17595,13 @@ function StyledFormBlock({
17535
17595
  borderRadius: 6
17536
17596
  } : {}),
17537
17597
  children: [
17538
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17598
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17539
17599
  col.name,
17540
17600
  " ",
17541
- isFieldRequired(col, design) && !locked && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { style: { color: t.invertText ? "#fecdd3" : "#f43f5e" }, children: "*" }),
17542
- locked && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { style: { fontSize: 11, fontWeight: 400, opacity: 0.7 }, children: "(\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E2\u05E8\u05D9\u05DB\u05D4)" })
17601
+ isFieldRequired(col, design) && !locked && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { style: { color: t.invertText ? "#fecdd3" : "#f43f5e" }, children: "*" }),
17602
+ locked && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { style: { fontSize: 11, fontWeight: 400, opacity: 0.7 }, children: "(\u05DC\u05D0 \u05E0\u05D9\u05EA\u05DF \u05DC\u05E2\u05E8\u05D9\u05DB\u05D4)" })
17543
17603
  ] }),
17544
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17604
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17545
17605
  "textarea",
17546
17606
  {
17547
17607
  value: shownValue,
@@ -17561,7 +17621,7 @@ function StyledFormBlock({
17561
17621
  boxSizing: "border-box"
17562
17622
  }
17563
17623
  }
17564
- ) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17624
+ ) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17565
17625
  InputComponent,
17566
17626
  {
17567
17627
  column: col,
@@ -17572,7 +17632,7 @@ function StyledFormBlock({
17572
17632
  context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef, orgId: schema == null ? void 0 : schema.orgId }
17573
17633
  }
17574
17634
  ) }),
17575
- canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17635
+ canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17576
17636
  "div",
17577
17637
  {
17578
17638
  style: __spreadValues({
@@ -17587,7 +17647,7 @@ function StyledFormBlock({
17587
17647
  }, drop.side === "before" ? { insetInlineStart: -(t.gap / 2) - 2 } : { insetInlineEnd: -(t.gap / 2) - 2 })
17588
17648
  }
17589
17649
  ),
17590
- onFieldResize && !isBoolean && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17650
+ onFieldResize && !isBoolean && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17591
17651
  "div",
17592
17652
  {
17593
17653
  onMouseDown: (e) => e.stopPropagation(),
@@ -17617,7 +17677,7 @@ function StyledFormBlock({
17617
17677
  };
17618
17678
  return formColumns.map((col) => renderField(col));
17619
17679
  })() }),
17620
- formError && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17680
+ formError && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17621
17681
  "div",
17622
17682
  {
17623
17683
  ref: errorRef,
@@ -17636,7 +17696,7 @@ function StyledFormBlock({
17636
17696
  children: formError
17637
17697
  }
17638
17698
  ),
17639
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17699
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17640
17700
  "div",
17641
17701
  {
17642
17702
  style: {
@@ -17646,7 +17706,7 @@ function StyledFormBlock({
17646
17706
  display: "flex",
17647
17707
  justifyContent: justify
17648
17708
  },
17649
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
17709
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17650
17710
  "button",
17651
17711
  {
17652
17712
  type: "submit",
@@ -17669,8 +17729,8 @@ function StyledFormBlock({
17669
17729
  opacity: isSubmitting ? 0.5 : 1
17670
17730
  },
17671
17731
  children: [
17672
- isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.Loader2, { className: "w-4 h-4 animate-spin" }),
17673
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: isSubmitting ? "\u05E9\u05D5\u05DE\u05E8..." : d.buttonText })
17732
+ isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.Loader2, { className: "w-4 h-4 animate-spin" }),
17733
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: isSubmitting ? "\u05E9\u05D5\u05DE\u05E8..." : d.buttonText })
17674
17734
  ]
17675
17735
  }
17676
17736
  )
@@ -17682,7 +17742,7 @@ function StyledFormBlock({
17682
17742
 
17683
17743
  // src/themes/ThemeScope.tsx
17684
17744
  var React29 = __toESM(require("react"));
17685
- var import_jsx_runtime40 = require("react/jsx-runtime");
17745
+ var import_jsx_runtime41 = require("react/jsx-runtime");
17686
17746
  var UNIVERSE_THEME_IDS = ["classic", "clean", "ocean", "warm"];
17687
17747
  function resolveUniverseTheme(value) {
17688
17748
  return typeof value === "string" && UNIVERSE_THEME_IDS.includes(value) ? value : "classic";
@@ -17692,7 +17752,7 @@ function withThemeScope(Component) {
17692
17752
  var _a, _b, _c;
17693
17753
  const p = props;
17694
17754
  const theme = resolveUniverseTheme((_c = (_a = p.settings) == null ? void 0 : _a.theme) != null ? _c : (_b = p.config) == null ? void 0 : _b.theme);
17695
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { "data-theme": theme, style: { display: "contents" }, children: React29.createElement(Component, props) });
17755
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { "data-theme": theme, style: { display: "contents" }, children: React29.createElement(Component, props) });
17696
17756
  }
17697
17757
  ThemeScoped.displayName = `ThemeScoped(${Component.displayName || Component.name || "Component"})`;
17698
17758
  return ThemeScoped;