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

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
@@ -11011,8 +11011,57 @@ async function uploadFileToDrive(file, opts) {
11011
11011
  };
11012
11012
  }
11013
11013
 
11014
- // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
11014
+ // src/components/PaymentReportsBlock/PortalLinksBar.tsx
11015
11015
  var import_jsx_runtime29 = require("react/jsx-runtime");
11016
+ function platformOrigin() {
11017
+ const w = typeof window !== "undefined" ? window : {};
11018
+ 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 : "");
11019
+ return String(base).replace(/\/$/, "");
11020
+ }
11021
+ function PortalLinksBar({ config, componentId }) {
11022
+ const { addToast } = useToast();
11023
+ if (!config.portalEnabled || !config.reportersTableId) return null;
11024
+ const origin = platformOrigin();
11025
+ const links = [
11026
+ config.registrationFormId && {
11027
+ label: "\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D4\u05E8\u05E9\u05DE\u05D4 (\u05D8\u05D5\u05E4\u05E1 1)",
11028
+ url: `${origin}/embed/form/${config.reportersTableId}?form=${encodeURIComponent(config.registrationFormId)}`
11029
+ },
11030
+ componentId && {
11031
+ 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)",
11032
+ url: `${origin}/embed/reporter-report/${config.reportsTableId}?c=${encodeURIComponent(componentId)}`
11033
+ }
11034
+ ].filter(Boolean);
11035
+ if (!links.length) return null;
11036
+ const copy = async (url, label) => {
11037
+ try {
11038
+ await navigator.clipboard.writeText(url);
11039
+ addToast({ type: "success", message: `${label}: \u05D4\u05D5\u05E2\u05EA\u05E7` });
11040
+ } catch (e) {
11041
+ window.prompt("\u05D4\u05E2\u05EA\u05E7 \u05D9\u05D3\u05E0\u05D9\u05EA:", url);
11042
+ }
11043
+ };
11044
+ 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: [
11045
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "font-semibold text-slate-600 whitespace-nowrap", children: [
11046
+ l.label,
11047
+ ":"
11048
+ ] }),
11049
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11050
+ "input",
11051
+ {
11052
+ readOnly: true,
11053
+ dir: "ltr",
11054
+ value: l.url,
11055
+ onFocus: (e) => e.currentTarget.select(),
11056
+ className: "flex-1 min-w-[200px] rounded-md border border-slate-200 bg-white px-2 py-1 text-[11px] text-slate-600"
11057
+ }
11058
+ ),
11059
+ /* @__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" })
11060
+ ] }, l.url)) });
11061
+ }
11062
+
11063
+ // src/components/PaymentReportsBlock/PaymentReportsBlock.tsx
11064
+ var import_jsx_runtime30 = require("react/jsx-runtime");
11016
11065
  var EMPTY = { rows: [], columns: [], relationOptions: {} };
11017
11066
  var PaymentReportsBlock = (props) => {
11018
11067
  const { executeAction, orgId, role, readOnly, permissions, className } = props;
@@ -11180,16 +11229,17 @@ var PaymentReportsBlock = (props) => {
11180
11229
  }
11181
11230
  };
11182
11231
  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.' });
11232
+ 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
11233
  }
11185
11234
  const tabs = [
11186
11235
  { key: "unpaid", label: "\u05D3\u05D9\u05D5\u05D5\u05D7\u05D9\u05DD (\u05D8\u05E8\u05DD \u05E9\u05D5\u05DC\u05DE\u05D5)", count: unpaidCount },
11187
11236
  { 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
11237
  { key: "receipts", label: '\u05E7\u05D1\u05DC\u05D5\u05EA \u05D5\u05D4\u05E0\u05D4"\u05D7', count: model.payments.filter((p) => !!p.receiptDate).length }
11189
11238
  ];
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)(
11239
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { dir: "rtl", className: `w-full flex flex-col gap-4 ${className || ""}`, children: [
11240
+ config.title && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { className: "text-2xl font-bold text-slate-800", children: config.title }),
11241
+ canEdit && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PortalLinksBar, { config, componentId: props.componentId }),
11242
+ /* @__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
11243
  "button",
11194
11244
  {
11195
11245
  type: "button",
@@ -11198,7 +11248,7 @@ var PaymentReportsBlock = (props) => {
11198
11248
  children: [
11199
11249
  t.label,
11200
11250
  " ",
11201
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "text-xs opacity-70", children: [
11251
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "text-xs opacity-70", children: [
11202
11252
  "(",
11203
11253
  t.count,
11204
11254
  ")"
@@ -11207,8 +11257,8 @@ var PaymentReportsBlock = (props) => {
11207
11257
  },
11208
11258
  t.key
11209
11259
  )) }),
11210
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
11211
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11260
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
11261
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11212
11262
  "input",
11213
11263
  {
11214
11264
  type: "text",
@@ -11218,24 +11268,24 @@ var PaymentReportsBlock = (props) => {
11218
11268
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white w-64"
11219
11269
  }
11220
11270
  ),
11221
- config.reportDateColumn && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
11271
+ config.reportDateColumn && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11222
11272
  "select",
11223
11273
  {
11224
11274
  value: month,
11225
11275
  onChange: (e) => setMonth(e.target.value),
11226
11276
  className: "border border-slate-300 rounded-lg px-3 py-2 text-sm bg-white",
11227
11277
  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))
11278
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "", children: "\u05DB\u05DC \u05D4\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD" }),
11279
+ months.map((m) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: m, children: monthLabel(m) }, m))
11230
11280
  ]
11231
11281
  }
11232
11282
  )
11233
11283
  ] }),
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" })
11284
+ 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: [
11285
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: error }),
11286
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", onClick: () => load(), className: "underline cursor-pointer", children: "\u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1" })
11237
11287
  ] }),
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)(
11288
+ 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
11289
  UnpaidReportsTab,
11240
11290
  {
11241
11291
  config,
@@ -11250,8 +11300,8 @@ var PaymentReportsBlock = (props) => {
11250
11300
  paymentLabels,
11251
11301
  handlers
11252
11302
  }
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)(
11303
+ ) : 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 }),
11304
+ details && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11255
11305
  PaymentDetailsModal,
11256
11306
  {
11257
11307
  payment: model.payments.find((p) => p.id === details.id) || details,
@@ -11262,7 +11312,7 @@ var PaymentReportsBlock = (props) => {
11262
11312
  onClose: () => setDetails(null)
11263
11313
  }
11264
11314
  ),
11265
- confirm && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
11315
+ confirm && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11266
11316
  ConfirmModal,
11267
11317
  {
11268
11318
  danger: true,
@@ -11271,11 +11321,11 @@ var PaymentReportsBlock = (props) => {
11271
11321
  confirmLabel: confirm.kind === "deleteReports" ? "\u05DE\u05D7\u05E7" : "\u05D1\u05D8\u05DC",
11272
11322
  onConfirm: runConfirmed,
11273
11323
  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: [
11324
+ 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
11325
  '\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
11326
  confirm.payment.proof.length > 0 ? ", \u05D5\u05D4\u05D0\u05E1\u05DE\u05DB\u05EA\u05D0 \u05EA\u05D9\u05DE\u05D7\u05E7 \u05D2\u05DD \u05DE-Google Drive" : "",
11277
11327
  ". \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?' })
11328
+ ] }) : /* @__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
11329
  }
11280
11330
  )
11281
11331
  ] });
@@ -11406,7 +11456,7 @@ function readFileAsBase64(file) {
11406
11456
  }
11407
11457
 
11408
11458
  // src/components/WhatsAppComponent/CreateTemplateModal.tsx
11409
- var import_jsx_runtime30 = require("react/jsx-runtime");
11459
+ var import_jsx_runtime31 = require("react/jsx-runtime");
11410
11460
  function CreateTemplateModal({
11411
11461
  isOpen,
11412
11462
  onClose,
@@ -11758,12 +11808,12 @@ function CreateTemplateModal({
11758
11808
  }
11759
11809
  };
11760
11810
  if (!isOpen) return null;
11761
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11811
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11762
11812
  "div",
11763
11813
  {
11764
11814
  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
11815
  dir: "rtl",
11766
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11816
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11767
11817
  "div",
11768
11818
  {
11769
11819
  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 +11821,43 @@ function CreateTemplateModal({
11771
11821
  "aria-modal": "true",
11772
11822
  "aria-labelledby": "modal-title",
11773
11823
  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" })
11824
+ /* @__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: [
11825
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2.5", children: [
11826
+ /* @__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" }) }),
11827
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
11828
+ /* @__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" }),
11829
+ /* @__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
11830
  ] })
11781
11831
  ] }),
11782
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11832
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11783
11833
  "button",
11784
11834
  {
11785
11835
  type: "button",
11786
11836
  onClick: onClose,
11787
11837
  className: "p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-200/60 rounded-lg transition-colors cursor-pointer",
11788
11838
  "aria-label": "\u05E1\u05D2\u05D5\u05E8",
11789
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react11.X, { className: "w-5 h-5" })
11839
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.X, { className: "w-5 h-5" })
11790
11840
  }
11791
11841
  )
11792
11842
  ] }),
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 })
11843
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("form", { onSubmit: handleSubmit, className: "flex flex-col overflow-hidden flex-1", children: [
11844
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-6 overflow-y-auto space-y-5 flex-1", children: [
11845
+ 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: [
11846
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
11847
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: submitError })
11798
11848
  ] }),
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: [
11849
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11850
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
11851
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11802
11852
  "\u05E9\u05DD \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4 ",
11803
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
11853
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
11804
11854
  ] }),
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" }),
11855
+ templateName && isNamePatternValid && !isNameDuplicate && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[11px] text-emerald-600 font-semibold flex items-center gap-1", children: [
11856
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.CheckCircle2, { className: "w-3.5 h-3.5" }),
11807
11857
  " \u05E9\u05DD \u05EA\u05E7\u05D9\u05DF"
11808
11858
  ] })
11809
11859
  ] }),
11810
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11860
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11811
11861
  "input",
11812
11862
  {
11813
11863
  type: "text",
@@ -11819,47 +11869,47 @@ function CreateTemplateModal({
11819
11869
  required: true
11820
11870
  }
11821
11871
  ),
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" }),
11872
+ /* @__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." }),
11873
+ !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: [
11874
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-3.5 h-3.5 shrink-0" }),
11825
11875
  "\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
11876
  language,
11827
11877
  "). \u05D0\u05E0\u05D0 \u05D1\u05D7\u05E8 \u05E9\u05DD \u05D9\u05D9\u05D7\u05D5\u05D3\u05D9 \u05D0\u05D5 \u05E9\u05E4\u05D4 \u05D0\u05D7\u05E8\u05EA."
11828
11878
  ] })
11829
11879
  ] }),
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)(
11880
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-2 gap-4", children: [
11881
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11882
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E9\u05E4\u05D4" }),
11883
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11834
11884
  "select",
11835
11885
  {
11836
11886
  value: language,
11837
11887
  onChange: (e) => setLanguage(e.target.value),
11838
11888
  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))
11889
+ children: LANGUAGE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11840
11890
  }
11841
11891
  )
11842
11892
  ] }),
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)(
11893
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1.5", children: [
11894
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("label", { className: "block text-xs font-semibold text-slate-700", children: "\u05E7\u05D8\u05D2\u05D5\u05E8\u05D9\u05D4" }),
11895
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11846
11896
  "select",
11847
11897
  {
11848
11898
  value: category,
11849
11899
  onChange: (e) => setCategory(e.target.value),
11850
11900
  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))
11901
+ children: CATEGORY_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
11852
11902
  }
11853
11903
  )
11854
11904
  ] })
11855
11905
  ] }),
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: [
11906
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-2", children: [
11907
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-xs font-bold text-slate-800", children: [
11858
11908
  "\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: "*" })
11909
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
11860
11910
  ] }),
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)(
11911
+ /* @__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: [
11912
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11863
11913
  "textarea",
11864
11914
  {
11865
11915
  ref: textareaRef,
@@ -11874,14 +11924,14 @@ function CreateTemplateModal({
11874
11924
  required: true
11875
11925
  }
11876
11926
  ),
11877
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
11927
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11878
11928
  "div",
11879
11929
  {
11880
11930
  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
11931
  dir: language === "en_US" ? "ltr" : "rtl",
11882
11932
  children: [
11883
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-1", children: [
11884
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11933
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1", children: [
11934
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11885
11935
  "button",
11886
11936
  {
11887
11937
  type: "button",
@@ -11889,10 +11939,10 @@ function CreateTemplateModal({
11889
11939
  onClick: () => handleApplyFormatting("*"),
11890
11940
  title: "\u05DE\u05D5\u05D3\u05D2\u05E9 (Bold) *\u05D8\u05E7\u05E1\u05D8*",
11891
11941
  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" })
11942
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Bold, { className: "w-3.5 h-3.5" })
11893
11943
  }
11894
11944
  ),
11895
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11945
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11896
11946
  "button",
11897
11947
  {
11898
11948
  type: "button",
@@ -11900,10 +11950,10 @@ function CreateTemplateModal({
11900
11950
  onClick: () => handleApplyFormatting("_"),
11901
11951
  title: "\u05E0\u05D8\u05D5\u05D9 (Italic) _\u05D8\u05E7\u05E1\u05D8_",
11902
11952
  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" })
11953
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Italic, { className: "w-3.5 h-3.5" })
11904
11954
  }
11905
11955
  ),
11906
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11956
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11907
11957
  "button",
11908
11958
  {
11909
11959
  type: "button",
@@ -11911,12 +11961,12 @@ function CreateTemplateModal({
11911
11961
  onClick: () => handleApplyFormatting("~"),
11912
11962
  title: "\u05E7\u05D5 \u05D7\u05D5\u05E6\u05D4 (Strikethrough) ~\u05D8\u05E7\u05E1\u05D8~",
11913
11963
  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" })
11964
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Strikethrough, { className: "w-3.5 h-3.5" })
11915
11965
  }
11916
11966
  ),
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)(
11967
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
11968
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative inline-block", ref: emojiPickerRef, children: [
11969
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11920
11970
  "button",
11921
11971
  {
11922
11972
  type: "button",
@@ -11924,16 +11974,16 @@ function CreateTemplateModal({
11924
11974
  onClick: () => setIsEmojiPickerOpen(!isEmojiPickerOpen),
11925
11975
  title: "\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9 (Emoji)",
11926
11976
  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" })
11977
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Smile, { className: "w-4 h-4" })
11928
11978
  }
11929
11979
  ),
11930
- isEmojiPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11980
+ isEmojiPickerOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11931
11981
  "div",
11932
11982
  {
11933
11983
  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
11984
  dir: "ltr",
11935
11985
  onMouseDown: (e) => e.stopPropagation(),
11936
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
11986
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11937
11987
  import_emoji_picker_react.default,
11938
11988
  {
11939
11989
  onEmojiClick: (emojiData) => {
@@ -11950,8 +12000,8 @@ function CreateTemplateModal({
11950
12000
  }
11951
12001
  )
11952
12002
  ] }),
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)(
12003
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-4 w-px bg-slate-200 mx-1" }),
12004
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11955
12005
  "button",
11956
12006
  {
11957
12007
  type: "button",
@@ -11961,28 +12011,28 @@ function CreateTemplateModal({
11961
12011
  "aria-label": language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4",
11962
12012
  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
12013
  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" })
12014
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
12015
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: language === "en_US" ? "Add variable" : "\u05DE\u05E9\u05EA\u05E0\u05D4" })
11966
12016
  ]
11967
12017
  }
11968
12018
  )
11969
12019
  ] }),
11970
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12020
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
11971
12021
  "div",
11972
12022
  {
11973
12023
  className: "flex items-center gap-1 font-mono text-[11px]",
11974
12024
  dir: "ltr",
11975
12025
  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
12026
  children: [
11977
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12027
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
11978
12028
  "span",
11979
12029
  {
11980
12030
  className: `font-semibold transition-colors ${bodyText.length >= 1024 ? "text-rose-600" : bodyText.length >= 950 ? "text-amber-600" : "text-slate-500"}`,
11981
12031
  children: bodyText.length
11982
12032
  }
11983
12033
  ),
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" })
12034
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-slate-300", children: "/" }),
12035
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-slate-400", children: "1024" })
11986
12036
  ]
11987
12037
  }
11988
12038
  )
@@ -11990,30 +12040,30 @@ function CreateTemplateModal({
11990
12040
  }
11991
12041
  )
11992
12042
  ] }),
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: [
12043
+ /* @__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: [
12044
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { children: [
11995
12045
  ratioInfo.staticWordsCount,
11996
12046
  " \u05DE\u05D9\u05DC\u05D9\u05DD"
11997
12047
  ] }),
11998
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { children: [
12048
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { children: [
11999
12049
  ratioInfo.variableCount,
12000
12050
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
12001
12051
  ] })
12002
12052
  ] }) }),
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)" })
12053
+ 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: [
12054
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 text-xs font-bold text-slate-800", children: [
12055
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Info, { className: "w-4 h-4 text-emerald-600" }),
12056
+ /* @__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
12057
  ] }),
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: [
12058
+ /* @__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." }),
12059
+ /* @__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: [
12060
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "block text-[11px] font-semibold text-slate-700 font-mono", children: [
12011
12061
  "\u05D3\u05D5\u05D2\u05DE\u05D4 \u05E2\u05D1\u05D5\u05E8 ",
12012
12062
  `{{${idx}}}`,
12013
12063
  " ",
12014
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12064
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12015
12065
  ] }),
12016
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12066
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12017
12067
  "input",
12018
12068
  {
12019
12069
  type: "text",
@@ -12028,21 +12078,21 @@ function CreateTemplateModal({
12028
12078
  )
12029
12079
  ] }, idx)) })
12030
12080
  ] }),
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:" })
12081
+ 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: [
12082
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-1.5 font-bold", children: [
12083
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
12084
+ /* @__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
12085
  ] }),
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)) })
12086
+ /* @__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
12087
  ] })
12038
12088
  ] }),
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)" })
12089
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3", children: [
12090
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12091
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12092
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Paperclip, { className: "w-4 h-4 text-slate-600" }),
12093
+ /* @__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
12094
  ] }),
12045
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12095
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12046
12096
  "input",
12047
12097
  {
12048
12098
  type: "checkbox",
@@ -12058,12 +12108,12 @@ function CreateTemplateModal({
12058
12108
  }
12059
12109
  )
12060
12110
  ] }),
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 })
12111
+ hasFileHeader && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-3 pt-1", children: [
12112
+ 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: [
12113
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.AlertCircle, { className: "w-4 h-4 text-rose-600 shrink-0" }),
12114
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: fileError })
12065
12115
  ] }),
12066
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12116
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12067
12117
  "input",
12068
12118
  {
12069
12119
  ref: fileInputRef,
@@ -12073,7 +12123,7 @@ function CreateTemplateModal({
12073
12123
  className: "hidden"
12074
12124
  }
12075
12125
  ),
12076
- !selectedFile && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12126
+ !selectedFile && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12077
12127
  "button",
12078
12128
  {
12079
12129
  type: "button",
@@ -12083,49 +12133,49 @@ function CreateTemplateModal({
12083
12133
  },
12084
12134
  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
12135
  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" })
12136
+ /* @__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" }) }),
12137
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "text-center", children: [
12138
+ /* @__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" }),
12139
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-[10px] text-slate-400", children: "PDF, JPG, PNG, MP4 \u05E2\u05D3 5MB" })
12090
12140
  ] })
12091
12141
  ]
12092
12142
  }
12093
12143
  ),
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: [
12144
+ 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: [
12145
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2.5 overflow-hidden", children: [
12146
+ /* @__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" }) }),
12147
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
12148
+ /* @__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 }) }),
12149
+ /* @__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
12150
  formatFileSize(selectedFile.size),
12101
12151
  selectedFile.type ? ` \u2022 ${selectedFile.type}` : ""
12102
12152
  ] }) })
12103
12153
  ] })
12104
12154
  ] }),
12105
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12155
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12106
12156
  "button",
12107
12157
  {
12108
12158
  type: "button",
12109
12159
  onClick: handleRemoveFile,
12110
12160
  className: "p-1 text-slate-400 hover:text-rose-600 rounded-md transition-colors cursor-pointer",
12111
12161
  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" })
12162
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Trash2, { className: "w-4 h-4" })
12113
12163
  }
12114
12164
  )
12115
12165
  ] })
12116
12166
  ] })
12117
12167
  ] }),
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)" })
12168
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "p-4 bg-slate-50 border border-slate-200 rounded-xl space-y-3.5", children: [
12169
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12170
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12171
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MousePointerClick, { className: "w-4 h-4 text-slate-600" }),
12172
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12173
+ /* @__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)" }),
12174
+ /* @__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
12175
  ] })
12126
12176
  ] }),
12127
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
12128
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12177
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12178
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12129
12179
  "span",
12130
12180
  {
12131
12181
  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 +12185,8 @@ function CreateTemplateModal({
12135
12185
  ]
12136
12186
  }
12137
12187
  ),
12138
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", ref: addButtonDropdownRef, children: [
12139
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12188
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", ref: addButtonDropdownRef, children: [
12189
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12140
12190
  "button",
12141
12191
  {
12142
12192
  type: "button",
@@ -12145,9 +12195,9 @@ function CreateTemplateModal({
12145
12195
  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
12196
  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
12197
  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)(
12198
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Plus, { className: "w-3.5 h-3.5" }),
12199
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05D4\u05D5\u05E1\u05E3 \u05DB\u05E4\u05EA\u05D5\u05E8" }),
12200
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12151
12201
  import_lucide_react11.ChevronDown,
12152
12202
  {
12153
12203
  className: `w-3.5 h-3.5 transition-transform ${isAddButtonOpen ? "rotate-180" : ""}`
@@ -12156,63 +12206,63 @@ function CreateTemplateModal({
12156
12206
  ]
12157
12207
  }
12158
12208
  ),
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)(
12209
+ 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: [
12210
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12161
12211
  "button",
12162
12212
  {
12163
12213
  type: "button",
12164
12214
  onClick: () => handleAddButton("QUICK_REPLY"),
12165
12215
  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
12216
  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" })
12217
+ /* @__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" }) }),
12218
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12219
+ /* @__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)" }),
12220
+ /* @__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
12221
  ] })
12172
12222
  ]
12173
12223
  }
12174
12224
  ),
12175
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12225
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12176
12226
  "button",
12177
12227
  {
12178
12228
  type: "button",
12179
12229
  onClick: () => handleAddButton("URL"),
12180
12230
  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
12231
  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" })
12232
+ /* @__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" }) }),
12233
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12234
+ /* @__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)" }),
12235
+ /* @__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
12236
  ] })
12187
12237
  ]
12188
12238
  }
12189
12239
  ),
12190
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12240
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12191
12241
  "button",
12192
12242
  {
12193
12243
  type: "button",
12194
12244
  onClick: () => handleAddButton("PHONE_NUMBER"),
12195
12245
  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
12246
  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" })
12247
+ /* @__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" }) }),
12248
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12249
+ /* @__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)" }),
12250
+ /* @__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
12251
  ] })
12202
12252
  ]
12203
12253
  }
12204
12254
  ),
12205
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12255
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12206
12256
  "button",
12207
12257
  {
12208
12258
  type: "button",
12209
12259
  onClick: () => handleAddButton("COPY_CODE"),
12210
12260
  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
12261
  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" })
12262
+ /* @__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" }) }),
12263
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
12264
+ /* @__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)" }),
12265
+ /* @__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
12266
  ] })
12217
12267
  ]
12218
12268
  }
@@ -12221,55 +12271,55 @@ function CreateTemplateModal({
12221
12271
  ] })
12222
12272
  ] })
12223
12273
  ] }),
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) => {
12274
+ 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.' }),
12275
+ buttons.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "space-y-2.5", children: buttons.map((btn, index) => {
12226
12276
  const btnNum = index + 1;
12227
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12277
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12228
12278
  "div",
12229
12279
  {
12230
12280
  className: "p-3 bg-white border border-slate-200 rounded-xl space-y-2.5 shadow-2xs transition-all hover:border-slate-300",
12231
12281
  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: [
12282
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between", children: [
12283
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2", children: [
12284
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "text-[11px] font-bold text-slate-400 font-mono", children: [
12235
12285
  "#",
12236
12286
  btnNum
12237
12287
  ] }),
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)" })
12288
+ 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: [
12289
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.MessageSquare, { className: "w-3 h-3" }),
12290
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Custom (\u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05D4\u05D9\u05E8\u05D4)" })
12241
12291
  ] }),
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)" })
12292
+ 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: [
12293
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.ExternalLink, { className: "w-3 h-3" }),
12294
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Visit website (\u05E7\u05D9\u05E9\u05D5\u05E8 \u05DC\u05D0\u05EA\u05E8)" })
12245
12295
  ] }),
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)" })
12296
+ 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: [
12297
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Phone, { className: "w-3 h-3" }),
12298
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Call phone number (\u05D7\u05D9\u05D5\u05D2 \u05DC\u05DE\u05E1\u05E4\u05E8)" })
12249
12299
  ] }),
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)" })
12300
+ 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: [
12301
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Copy, { className: "w-3 h-3" }),
12302
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "Copy offer code (\u05D4\u05E2\u05EA\u05E7\u05EA \u05E7\u05D5\u05D3)" })
12253
12303
  ] })
12254
12304
  ] }),
12255
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12305
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12256
12306
  "button",
12257
12307
  {
12258
12308
  type: "button",
12259
12309
  onClick: () => handleRemoveButton(index),
12260
12310
  className: "p-1 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition-colors cursor-pointer",
12261
12311
  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" })
12312
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Trash2, { className: "w-3.5 h-3.5" })
12263
12313
  }
12264
12314
  )
12265
12315
  ] }),
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: [
12316
+ btn.type === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12317
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12318
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12269
12319
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12270
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12320
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12271
12321
  ] }),
12272
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12322
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12273
12323
  "span",
12274
12324
  {
12275
12325
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12280,7 +12330,7 @@ function CreateTemplateModal({
12280
12330
  }
12281
12331
  )
12282
12332
  ] }),
12283
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12333
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12284
12334
  "input",
12285
12335
  {
12286
12336
  type: "text",
@@ -12292,14 +12342,14 @@ function CreateTemplateModal({
12292
12342
  }
12293
12343
  )
12294
12344
  ] }),
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: [
12345
+ btn.type === "URL" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12346
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12347
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12348
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12299
12349
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12300
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12350
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12301
12351
  ] }),
12302
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12352
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12303
12353
  "span",
12304
12354
  {
12305
12355
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12310,7 +12360,7 @@ function CreateTemplateModal({
12310
12360
  }
12311
12361
  )
12312
12362
  ] }),
12313
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12363
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12314
12364
  "input",
12315
12365
  {
12316
12366
  type: "text",
@@ -12322,18 +12372,18 @@ function CreateTemplateModal({
12322
12372
  }
12323
12373
  )
12324
12374
  ] }),
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: [
12375
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12376
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12377
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12328
12378
  "\u05DB\u05EA\u05D5\u05D1\u05EA URL \u05E1\u05D8\u05D8\u05D9\u05EA ",
12329
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12379
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12330
12380
  ] }),
12331
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12381
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12332
12382
  (btn.url || "").length,
12333
12383
  "/2000"
12334
12384
  ] })
12335
12385
  ] }),
12336
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12386
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12337
12387
  "input",
12338
12388
  {
12339
12389
  type: "url",
@@ -12347,14 +12397,14 @@ function CreateTemplateModal({
12347
12397
  )
12348
12398
  ] })
12349
12399
  ] }),
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: [
12400
+ btn.type === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12401
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12402
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12403
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12354
12404
  "\u05D8\u05E7\u05E1\u05D8 \u05D4\u05DB\u05E4\u05EA\u05D5\u05E8 ",
12355
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-rose-500", children: "*" })
12405
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12356
12406
  ] }),
12357
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12407
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12358
12408
  "span",
12359
12409
  {
12360
12410
  className: `font-mono text-[10px] ${(btn.text || "").length >= 25 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12365,7 +12415,7 @@ function CreateTemplateModal({
12365
12415
  }
12366
12416
  )
12367
12417
  ] }),
12368
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12418
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12369
12419
  "input",
12370
12420
  {
12371
12421
  type: "text",
@@ -12377,18 +12427,18 @@ function CreateTemplateModal({
12377
12427
  }
12378
12428
  )
12379
12429
  ] }),
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: [
12430
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12431
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12432
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12383
12433
  "\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: "*" })
12434
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12385
12435
  ] }),
12386
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12436
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12387
12437
  (btn.phone_number || "").length,
12388
12438
  "/20"
12389
12439
  ] })
12390
12440
  ] }),
12391
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12441
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12392
12442
  "input",
12393
12443
  {
12394
12444
  type: "tel",
@@ -12402,14 +12452,14 @@ function CreateTemplateModal({
12402
12452
  )
12403
12453
  ] })
12404
12454
  ] }),
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: [
12455
+ btn.type === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
12456
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12457
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12458
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: "font-semibold text-slate-700", children: [
12409
12459
  "\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: "*" })
12460
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-rose-500", children: "*" })
12411
12461
  ] }),
12412
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
12462
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
12413
12463
  "span",
12414
12464
  {
12415
12465
  className: `font-mono text-[10px] ${(btn.example || "").length >= 15 ? "text-amber-600 font-bold" : "text-slate-400"}`,
@@ -12420,7 +12470,7 @@ function CreateTemplateModal({
12420
12470
  }
12421
12471
  )
12422
12472
  ] }),
12423
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12473
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12424
12474
  "input",
12425
12475
  {
12426
12476
  type: "text",
@@ -12433,15 +12483,15 @@ function CreateTemplateModal({
12433
12483
  }
12434
12484
  )
12435
12485
  ] }),
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: [
12486
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "space-y-1", children: [
12487
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center justify-between text-[11px]", children: [
12488
+ /* @__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)" }),
12489
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "font-mono text-[10px] text-slate-400", children: [
12440
12490
  (btn.text || "").length,
12441
12491
  "/25"
12442
12492
  ] })
12443
12493
  ] }),
12444
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12494
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12445
12495
  "input",
12446
12496
  {
12447
12497
  type: "text",
@@ -12461,8 +12511,8 @@ function CreateTemplateModal({
12461
12511
  }) })
12462
12512
  ] })
12463
12513
  ] }),
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)(
12514
+ /* @__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: [
12515
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12466
12516
  "button",
12467
12517
  {
12468
12518
  type: "button",
@@ -12472,19 +12522,19 @@ function CreateTemplateModal({
12472
12522
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
12473
12523
  }
12474
12524
  ),
12475
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
12525
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
12476
12526
  "button",
12477
12527
  {
12478
12528
  type: "submit",
12479
12529
  disabled: !canSubmit,
12480
12530
  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
12531
  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" })
12532
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
12533
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.Loader2, { className: "w-4 h-4 animate-spin" }),
12534
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: submittingStep || "\u05D9\u05D5\u05E6\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA..." })
12535
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
12536
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react11.CheckCircle2, { className: "w-4 h-4" }),
12537
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05DC\u05D1\u05D3\u05D9\u05E7\u05D4" })
12488
12538
  ] })
12489
12539
  }
12490
12540
  )
@@ -15177,7 +15227,7 @@ function useWhatsAppState(props) {
15177
15227
  // src/components/WhatsAppComponent/ui/TemplateSelectionBlock.tsx
15178
15228
  var import_react31 = require("react");
15179
15229
  var import_lucide_react12 = require("lucide-react");
15180
- var import_jsx_runtime31 = require("react/jsx-runtime");
15230
+ var import_jsx_runtime32 = require("react/jsx-runtime");
15181
15231
  function TemplateSelectionBlock({
15182
15232
  selectedTemplate,
15183
15233
  selectedTemplateId,
@@ -15204,15 +15254,15 @@ function TemplateSelectionBlock({
15204
15254
  handleFileUpload
15205
15255
  }) {
15206
15256
  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" })
15257
+ 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: [
15258
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "space-y-1.5 shrink-0", children: [
15259
+ /* @__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: [
15260
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 min-w-0", children: [
15261
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.FileText, { className: "w-4 h-4 text-emerald-600 shrink-0" }),
15262
+ /* @__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
15263
  ] }),
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)(
15264
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0", children: [
15265
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15216
15266
  "button",
15217
15267
  {
15218
15268
  type: "button",
@@ -15221,12 +15271,12 @@ function TemplateSelectionBlock({
15221
15271
  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
15272
  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
15273
  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" })
15274
+ 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" }),
15275
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DE\u05D7\u05D9\u05E7\u05D4" })
15226
15276
  ]
15227
15277
  }
15228
15278
  ),
15229
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15279
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15230
15280
  "button",
15231
15281
  {
15232
15282
  type: "button",
@@ -15234,40 +15284,40 @@ function TemplateSelectionBlock({
15234
15284
  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
15285
  title: "\u05E6\u05D5\u05E8 \u05EA\u05D1\u05E0\u05D9\u05EA \u05D7\u05D3\u05E9\u05D4",
15236
15286
  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" })
15287
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Plus, { className: "w-3.5 h-3.5" }),
15288
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05D7\u05D3\u05E9" })
15239
15289
  ]
15240
15290
  }
15241
15291
  )
15242
15292
  ] })
15243
15293
  ] }),
15244
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
15245
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15294
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
15295
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15246
15296
  "button",
15247
15297
  {
15248
15298
  type: "button",
15249
15299
  onClick: () => setIsDropdownOpen((prev) => !prev),
15250
15300
  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
15301
  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)(
15302
+ selectedTemplate ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15303
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15254
15304
  "span",
15255
15305
  {
15256
15306
  className: `w-2 h-2 rounded-full shrink-0 ${getStatusConfig(selectedTemplate.status).dotColor}`
15257
15307
  }
15258
15308
  ),
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: [
15309
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-xs font-semibold text-slate-900 truncate", children: selectedTemplate.name }),
15310
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-[10px] text-slate-400 shrink-0", children: [
15261
15311
  "(",
15262
15312
  selectedTemplate.category,
15263
15313
  " \u2022 ",
15264
15314
  selectedTemplate.language,
15265
15315
  ")"
15266
15316
  ] })
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)(
15317
+ ] }) : /* @__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..." }),
15318
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-1.5 shrink-0 mr-1", children: [
15319
+ isLoadingTemplates && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 text-emerald-600 animate-spin" }),
15320
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15271
15321
  import_lucide_react12.ChevronDown,
15272
15322
  {
15273
15323
  className: `w-3.5 h-3.5 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}`
@@ -15277,21 +15327,21 @@ function TemplateSelectionBlock({
15277
15327
  ]
15278
15328
  }
15279
15329
  ),
15280
- isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
15281
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15330
+ isDropdownOpen && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15331
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15282
15332
  "div",
15283
15333
  {
15284
15334
  className: "fixed inset-0 z-40",
15285
15335
  onClick: () => setIsDropdownOpen(false)
15286
15336
  }
15287
15337
  ),
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".' }),
15338
+ /* @__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: [
15339
+ 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
15340
  templates.map((tpl) => {
15291
15341
  const statusConfig = getStatusConfig(tpl.status);
15292
15342
  const isSelected = tpl.id === selectedTemplateId;
15293
15343
  const canSelect = statusConfig.isSelectable;
15294
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15344
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15295
15345
  "div",
15296
15346
  {
15297
15347
  onClick: () => {
@@ -15304,29 +15354,29 @@ function TemplateSelectionBlock({
15304
15354
  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
15355
  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
15356
  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)(
15357
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 overflow-hidden", children: [
15358
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15309
15359
  "span",
15310
15360
  {
15311
15361
  className: `w-2 h-2 rounded-full shrink-0 ${statusConfig.dotColor}`
15312
15362
  }
15313
15363
  ),
15314
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden", children: [
15315
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15364
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15365
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15316
15366
  "p",
15317
15367
  {
15318
15368
  className: `text-xs font-semibold truncate ${isSelected ? "text-emerald-700" : canSelect ? "text-slate-800" : "text-slate-500"}`,
15319
15369
  children: tpl.name
15320
15370
  }
15321
15371
  ),
15322
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("p", { className: "text-[10px] text-slate-400", children: [
15372
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("p", { className: "text-[10px] text-slate-400", children: [
15323
15373
  tpl.category,
15324
15374
  " \u2022 ",
15325
15375
  tpl.language
15326
15376
  ] })
15327
15377
  ] })
15328
15378
  ] }),
15329
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15379
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15330
15380
  "span",
15331
15381
  {
15332
15382
  className: `text-[9px] font-semibold px-2 py-0.5 rounded-full border shrink-0 ${statusConfig.badgeBg} ${statusConfig.badgeText}`,
@@ -15342,18 +15392,18 @@ function TemplateSelectionBlock({
15342
15392
  ] })
15343
15393
  ] })
15344
15394
  ] }),
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: [
15395
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex-1 min-h-0 flex flex-col gap-2", children: [
15396
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-600 shrink-0", children: [
15397
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05EA\u05E6\u05D5\u05D2\u05EA \u05D4\u05D5\u05D3\u05E2\u05D4" }),
15398
+ selectedTemplate && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "text-[10px] text-slate-400", children: [
15349
15399
  "(",
15350
15400
  templateBodyText.length,
15351
15401
  " \u05EA\u05D5\u05D5\u05D9\u05DD)"
15352
15402
  ] })
15353
15403
  ] }),
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"' })
15404
+ 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: [
15405
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D4 \u05EA\u05D1\u05E0\u05D9\u05EA" }),
15406
+ /* @__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
15407
  ] }),
15358
15408
  selectedTemplate && (() => {
15359
15409
  var _a;
@@ -15362,19 +15412,19 @@ function TemplateSelectionBlock({
15362
15412
  );
15363
15413
  const tplButtons = (buttonsComp == null ? void 0 : buttonsComp.buttons) || [];
15364
15414
  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) => {
15415
+ 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
15416
  const btnType = (btn.type || "").toUpperCase();
15367
15417
  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)(
15418
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15369
15419
  "div",
15370
15420
  {
15371
15421
  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
15422
  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 })
15423
+ btnType === "QUICK_REPLY" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.MessageSquare, { className: "w-3 h-3 text-emerald-600" }),
15424
+ btnType === "URL" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.ExternalLink, { className: "w-3 h-3 text-sky-600" }),
15425
+ btnType === "PHONE_NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Phone, { className: "w-3 h-3 text-violet-600" }),
15426
+ btnType === "COPY_CODE" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Copy, { className: "w-3 h-3 text-amber-600" }),
15427
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "truncate max-w-[180px]", children: btnText })
15378
15428
  ]
15379
15429
  },
15380
15430
  idx
@@ -15389,9 +15439,9 @@ function TemplateSelectionBlock({
15389
15439
  const docFilename = resolveDocumentFilename(templateHeaderComp, headerMediaUrl);
15390
15440
  const hasValidMedia = Boolean(headerMediaUrl && headerMediaUrl.trim() && headerMediaUrl.startsWith("http"));
15391
15441
  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)(
15442
+ 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: [
15443
+ /* @__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: [
15444
+ /* @__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
15445
  "img",
15396
15446
  {
15397
15447
  src: headerMediaUrl,
@@ -15401,33 +15451,33 @@ function TemplateSelectionBlock({
15401
15451
  e.currentTarget.style.display = "none";
15402
15452
  }
15403
15453
  }
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" })
15454
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Image, { className: "w-4 h-4 text-amber-600" }) }),
15455
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15456
+ /* @__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" }),
15457
+ /* @__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
15458
  ] })
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" })
15459
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15460
+ /* @__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" }) }),
15461
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15462
+ /* @__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)" }),
15463
+ /* @__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
15464
  ] })
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" })
15465
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15466
+ /* @__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" }) }),
15467
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "overflow-hidden", children: [
15468
+ /* @__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" }),
15469
+ /* @__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
15470
  ] })
15421
15471
  ] }) }),
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" }),
15472
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
15473
+ 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: [
15474
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.CheckCircle2, { className: "w-3 h-3 text-emerald-600" }),
15425
15475
  "\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" }),
15476
+ ] }) : /* @__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: [
15477
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.AlertCircle, { className: "w-3 h-3 text-amber-600 shrink-0" }),
15428
15478
  "\u05E0\u05D3\u05E8\u05E9 \u05E6\u05D9\u05E8\u05D5\u05E3 \u05E7\u05D5\u05D1\u05E5 \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA \u05D6\u05D5"
15429
15479
  ] }),
15430
- hasValidMedia && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15480
+ hasValidMedia && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15431
15481
  "a",
15432
15482
  {
15433
15483
  href: headerMediaUrl,
@@ -15435,10 +15485,10 @@ function TemplateSelectionBlock({
15435
15485
  rel: "noopener noreferrer",
15436
15486
  title: "\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4 \u05E9\u05DC \u05D4\u05E7\u05D5\u05D1\u05E5",
15437
15487
  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" })
15488
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.ExternalLink, { className: "w-3.5 h-3.5" })
15439
15489
  }
15440
15490
  ),
15441
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15491
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15442
15492
  "input",
15443
15493
  {
15444
15494
  ref: fileInputRef,
@@ -15456,7 +15506,7 @@ function TemplateSelectionBlock({
15456
15506
  disabled: isUploadingMedia
15457
15507
  }
15458
15508
  ),
15459
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15509
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15460
15510
  "button",
15461
15511
  {
15462
15512
  type: "button",
@@ -15467,39 +15517,39 @@ function TemplateSelectionBlock({
15467
15517
  },
15468
15518
  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
15519
  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 })
15520
+ children: isUploadingMedia ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15521
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
15522
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: "\u05DE\u05E2\u05DC\u05D4..." })
15523
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
15524
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react12.Upload, { className: "w-3.5 h-3.5" }),
15525
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: hasValidMedia ? "\u05D4\u05D7\u05DC\u05E3 \u05E7\u05D5\u05D1\u05E5" : uploadButtonLabel })
15476
15526
  ] })
15477
15527
  }
15478
15528
  )
15479
15529
  ] })
15480
15530
  ] });
15481
15531
  })(),
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: [
15532
+ 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: [
15533
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between shrink-0", children: [
15534
+ /* @__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" }),
15535
+ /* @__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
15536
  templateVariables.length,
15487
15537
  " \u05DE\u05E9\u05EA\u05E0\u05D9\u05DD"
15488
15538
  ] })
15489
15539
  ] }),
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) => {
15540
+ /* @__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
15541
  var _a;
15492
15542
  const mapping = variableMapping[varKey] || { type: "column", value: "" };
15493
15543
  const isStatic = mapping.type === "static";
15494
15544
  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)(
15545
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15496
15546
  "div",
15497
15547
  {
15498
15548
  className: "flex items-center gap-1.5 p-1 bg-white border border-slate-200 rounded-xl text-xs shrink-0",
15499
15549
  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)(
15550
+ /* @__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}}}` }),
15551
+ /* @__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: [
15552
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15503
15553
  "button",
15504
15554
  {
15505
15555
  type: "button",
@@ -15508,7 +15558,7 @@ function TemplateSelectionBlock({
15508
15558
  children: "\u05E2\u05DE\u05D5\u05D3\u05D4"
15509
15559
  }
15510
15560
  ),
15511
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15561
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15512
15562
  "button",
15513
15563
  {
15514
15564
  type: "button",
@@ -15518,7 +15568,7 @@ function TemplateSelectionBlock({
15518
15568
  }
15519
15569
  )
15520
15570
  ] }),
15521
- isStatic ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
15571
+ isStatic ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15522
15572
  "input",
15523
15573
  {
15524
15574
  type: "text",
@@ -15527,20 +15577,20 @@ function TemplateSelectionBlock({
15527
15577
  placeholder: "\u05D4\u05D6\u05DF \u05E2\u05E8\u05DA \u05E7\u05D1\u05D5\u05E2 (\u05D7\u05D5\u05D1\u05D4)...",
15528
15578
  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
15579
  }
15530
- ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative flex-1 min-w-0", children: [
15531
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
15580
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative flex-1 min-w-0", children: [
15581
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15532
15582
  "select",
15533
15583
  {
15534
15584
  value: selectedColVal,
15535
15585
  onChange: (e) => handleVariableValueChange(varKey, e.target.value),
15536
15586
  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
15587
  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))
15588
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
15589
+ textableColumnOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15540
15590
  ]
15541
15591
  }
15542
15592
  ),
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" })
15593
+ /* @__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
15594
  ] })
15545
15595
  ]
15546
15596
  },
@@ -15554,7 +15604,7 @@ function TemplateSelectionBlock({
15554
15604
 
15555
15605
  // src/components/WhatsAppComponent/ui/DynamicFiltersBlock.tsx
15556
15606
  var import_lucide_react13 = require("lucide-react");
15557
- var import_jsx_runtime32 = require("react/jsx-runtime");
15607
+ var import_jsx_runtime33 = require("react/jsx-runtime");
15558
15608
  function DynamicFiltersBlock({
15559
15609
  filterableColumns,
15560
15610
  filters,
@@ -15569,31 +15619,31 @@ function DynamicFiltersBlock({
15569
15619
  loadTableData,
15570
15620
  isLoadingTableData
15571
15621
  }) {
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 })
15622
+ 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: [
15623
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-2", children: [
15624
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200/70 shrink-0", children: [
15625
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2", children: [
15626
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.Filter, { className: "w-4 h-4 text-emerald-600" }),
15627
+ /* @__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" }),
15628
+ 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
15629
  ] }),
15580
- activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15630
+ activeFiltersCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15581
15631
  "button",
15582
15632
  {
15583
15633
  type: "button",
15584
15634
  onClick: handleClearFilters,
15585
15635
  className: "text-[11px] text-rose-600 hover:text-rose-700 font-semibold hover:underline flex items-center gap-1 cursor-pointer",
15586
15636
  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" })
15637
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react13.X, { className: "w-3 h-3" }),
15638
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15589
15639
  ]
15590
15640
  }
15591
15641
  )
15592
15642
  ] }),
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) => {
15643
+ /* @__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: [
15644
+ /* @__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" }),
15645
+ /* @__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" })
15646
+ ] }) : /* @__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
15647
  var _a, _b, _c;
15598
15648
  const colType = (_a = col.type) == null ? void 0 : _a.toUpperCase();
15599
15649
  const isBoolean = colType === "BOOLEAN";
@@ -15601,9 +15651,9 @@ function DynamicFiltersBlock({
15601
15651
  const isActive = Boolean(currentValue);
15602
15652
  const refTableId = ((_b = col == null ? void 0 : col.config) == null ? void 0 : _b.referencedTableId) || (col == null ? void 0 : col.referencedTableId);
15603
15653
  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)(
15654
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "space-y-1", children: [
15655
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between", children: [
15656
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15607
15657
  "label",
15608
15658
  {
15609
15659
  className: "text-[11px] font-semibold text-slate-700 truncate max-w-[130px]",
@@ -15611,49 +15661,49 @@ function DynamicFiltersBlock({
15611
15661
  children: col.name
15612
15662
  }
15613
15663
  ),
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" })
15664
+ /* @__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
15665
  ] }),
15616
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "relative", children: [
15617
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
15666
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15667
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15618
15668
  "select",
15619
15669
  {
15620
15670
  value: currentValue,
15621
15671
  onChange: (e) => handleFilterChange(col.name, e.target.value),
15622
15672
  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
15673
  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))
15674
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "", children: "\u05D4\u05DB\u05DC" }),
15675
+ isBoolean ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
15676
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "true", children: "\u05DB\u05DF" }),
15677
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: "false", children: "\u05DC\u05D0" })
15678
+ ] }) : 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
15679
  ]
15630
15680
  }
15631
15681
  ),
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" })
15682
+ /* @__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
15683
  ] })
15634
15684
  ] }, col.name);
15635
15685
  }) }) })
15636
15686
  ] }),
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)(
15687
+ /* @__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: [
15688
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15639
15689
  "div",
15640
15690
  {
15641
15691
  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
15692
  children: [
15643
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15693
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15644
15694
  import_lucide_react13.CheckSquare,
15645
15695
  {
15646
15696
  className: `w-3 h-3 ${selectedRowIds.length > 0 ? "text-emerald-600" : "text-slate-400"}`
15647
15697
  }
15648
15698
  ),
15649
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { children: [
15699
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { children: [
15650
15700
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15651
15701
  selectedRowIds.length
15652
15702
  ] })
15653
15703
  ]
15654
15704
  }
15655
15705
  ),
15656
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15706
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15657
15707
  "button",
15658
15708
  {
15659
15709
  type: "button",
@@ -15661,7 +15711,7 @@ function DynamicFiltersBlock({
15661
15711
  disabled: isLoadingTableData,
15662
15712
  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
15713
  title: "\u05E8\u05E2\u05E0\u05DF \u05E0\u05EA\u05D5\u05E0\u05D9 \u05D8\u05D1\u05DC\u05D4",
15664
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
15714
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15665
15715
  import_lucide_react13.RefreshCw,
15666
15716
  {
15667
15717
  className: `w-3.5 h-3.5 ${isLoadingTableData ? "animate-spin text-emerald-600" : ""}`
@@ -15675,7 +15725,7 @@ function DynamicFiltersBlock({
15675
15725
 
15676
15726
  // src/components/WhatsAppComponent/ui/SettingsAndActionsBlock.tsx
15677
15727
  var import_lucide_react14 = require("lucide-react");
15678
- var import_jsx_runtime33 = require("react/jsx-runtime");
15728
+ var import_jsx_runtime34 = require("react/jsx-runtime");
15679
15729
  function SettingsAndActionsBlock({
15680
15730
  isScanningPhoneColumns,
15681
15731
  targetPhoneOptions,
@@ -15718,29 +15768,29 @@ function SettingsAndActionsBlock({
15718
15768
  clearBroadcastSummary
15719
15769
  }) {
15720
15770
  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" })
15771
+ 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: [
15772
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-2", children: [
15773
+ /* @__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: [
15774
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-sm", children: "\u2699\uFE0F" }),
15775
+ /* @__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
15776
  ] }) }),
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" })
15777
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-2.5 py-1", children: [
15778
+ 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: [
15779
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Loader2, { className: "w-4 h-4 animate-spin text-emerald-600 shrink-0" }),
15780
+ /* @__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..." })
15781
+ ] }) : 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: [
15782
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
15783
+ /* @__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" })
15784
+ ] }) : targetPhoneOptions.length === 1 && targetPhoneOptions[0].type === "DIRECT" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15785
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15786
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15787
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15788
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15739
15789
  ] }),
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" })
15790
+ /* @__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
15791
  ] }),
15742
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15743
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15792
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15793
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15744
15794
  "input",
15745
15795
  {
15746
15796
  type: "text",
@@ -15750,52 +15800,52 @@ function SettingsAndActionsBlock({
15750
15800
  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
15801
  }
15752
15802
  ),
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" })
15803
+ /* @__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
15804
  ] })
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" })
15805
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15806
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15807
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1", children: [
15808
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3 text-slate-400" }),
15809
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D8\u05DC\u05E4\u05D5\u05DF \u05D9\u05E2\u05D3" })
15760
15810
  ] }),
15761
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15811
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[9px] text-slate-400", children: "\u05D7\u05D5\u05D1\u05D4" })
15762
15812
  ] }),
15763
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15764
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15813
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15814
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15765
15815
  "select",
15766
15816
  {
15767
15817
  value: phoneColumnId,
15768
15818
  onChange: (e) => setPhoneColumnId(e.target.value),
15769
15819
  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))
15820
+ children: targetPhoneOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15771
15821
  }
15772
15822
  ),
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" })
15823
+ /* @__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
15824
  ] })
15775
15825
  ] }),
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)(
15826
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15827
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15828
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15779
15829
  "label",
15780
15830
  {
15781
15831
  htmlFor: "whatsapp-auto-select-records",
15782
15832
  className: "text-[11px] font-semibold text-slate-700 flex items-center gap-1 cursor-pointer",
15783
15833
  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)" })
15834
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.CheckSquare, { className: "w-3 h-3 text-slate-400" }),
15835
+ /* @__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
15836
  ]
15787
15837
  }
15788
15838
  ),
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: [
15839
+ 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: [
15840
+ /* @__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: [
15841
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" }),
15842
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
15793
15843
  "\u05E0\u05D1\u05D7\u05E8\u05D5 ",
15794
15844
  selectedRowIdsCount,
15795
15845
  " \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA"
15796
15846
  ] })
15797
15847
  ] }),
15798
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15848
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15799
15849
  "button",
15800
15850
  {
15801
15851
  type: "button",
@@ -15804,14 +15854,14 @@ function SettingsAndActionsBlock({
15804
15854
  title: "\u05E0\u05E7\u05D4 \u05D1\u05D7\u05D9\u05E8\u05D4 \u05D0\u05D5\u05D8\u05D5\u05DE\u05D8\u05D9\u05EA",
15805
15855
  "aria-label": "Clear auto select count",
15806
15856
  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" })
15857
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.X, { className: "w-3 h-3" }),
15858
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E0\u05E7\u05D4" })
15809
15859
  ]
15810
15860
  }
15811
15861
  )
15812
15862
  ] })
15813
15863
  ] }),
15814
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
15864
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15815
15865
  "input",
15816
15866
  {
15817
15867
  id: "whatsapp-auto-select-records",
@@ -15839,19 +15889,19 @@ function SettingsAndActionsBlock({
15839
15889
  }
15840
15890
  ) })
15841
15891
  ] }),
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: [
15892
+ (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: [
15893
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 pb-1 border-b border-emerald-200/60", children: [
15894
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Users, { className: "w-3.5 h-3.5 text-emerald-700" }),
15895
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-[10.5px] font-bold text-emerald-900 truncate", children: [
15846
15896
  "\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
15897
  selectedPhoneOption.parentColumnName,
15848
15898
  ")"
15849
15899
  ] })
15850
15900
  ] }),
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)(
15901
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15902
+ /* @__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:" }) }),
15903
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15904
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15855
15905
  "select",
15856
15906
  {
15857
15907
  value: subtableFilterColumn,
@@ -15861,10 +15911,10 @@ function SettingsAndActionsBlock({
15861
15911
  },
15862
15912
  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
15913
  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)" }),
15914
+ /* @__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
15915
  subtableFilterableColumns.map((col) => {
15866
15916
  var _a2;
15867
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("option", { value: col.name, children: [
15917
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("option", { value: col.name, children: [
15868
15918
  col.name,
15869
15919
  " (",
15870
15920
  ((_a2 = col.type) == null ? void 0 : _a2.toUpperCase()) === "BOOLEAN" ? "\u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9" : "\u05E7\u05E9\u05E8",
@@ -15874,30 +15924,30 @@ function SettingsAndActionsBlock({
15874
15924
  ]
15875
15925
  }
15876
15926
  ),
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" })
15927
+ /* @__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
15928
  ] })
15879
15929
  ] }),
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..." })
15930
+ selectedSubtableFilterCol && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
15931
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
15932
+ /* @__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:" }),
15933
+ !subtableFilterValue && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-[9px] text-amber-600 font-medium", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." })
15884
15934
  ] }),
15885
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15886
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
15935
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15936
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15887
15937
  "select",
15888
15938
  {
15889
15939
  value: subtableFilterValue,
15890
15940
  onChange: (e) => setSubtableFilterValue(e.target.value),
15891
15941
  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
15942
  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)" })
15943
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA \u05DC\u05E1\u05D9\u05E0\u05D5\u05DF..." }),
15944
+ ((_a = selectedSubtableFilterCol.type) == null ? void 0 : _a.toUpperCase()) === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
15945
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "true", children: "\u05DB\u05DF (true)" }),
15946
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "false", children: "\u05DC\u05D0 (false)" })
15897
15947
  ] }) : getRelationOptionsForCol(
15898
15948
  selectedSubtableFilterCol.name,
15899
15949
  selectedPhoneOption.parentColumnName
15900
- ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
15950
+ ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
15901
15951
  opt,
15902
15952
  selectedSubtableFilterCol,
15903
15953
  relationOptions
@@ -15905,32 +15955,32 @@ function SettingsAndActionsBlock({
15905
15955
  ]
15906
15956
  }
15907
15957
  ),
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" })
15958
+ /* @__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
15959
  ] })
15910
15960
  ] }),
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)(
15961
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
15962
+ /* @__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:" }),
15963
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
15964
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15915
15965
  "select",
15916
15966
  {
15917
15967
  value: subtableSendLimit,
15918
15968
  onChange: (e) => setSubtableSendLimit(e.target.value),
15919
15969
  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
15970
  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" })
15971
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "PRIMARY", children: "\u05DC\u05E0\u05E6\u05D9\u05D2 \u05E8\u05D0\u05E9\u05D9 \u05D1\u05DC\u05D1\u05D3" }),
15972
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "FIRST", children: "\u05E0\u05E6\u05D9\u05D2 \u05D0\u05D7\u05D3 \u05D1\u05DC\u05D1\u05D3" }),
15973
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "ALL", children: "\u05DB\u05DC \u05D4\u05E0\u05E6\u05D9\u05D2\u05D9\u05DD" })
15924
15974
  ]
15925
15975
  }
15926
15976
  ),
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" })
15977
+ /* @__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
15978
  ] })
15929
15979
  ] })
15930
15980
  ] }),
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)(
15981
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "pt-2 border-t border-slate-200/70 space-y-2", children: [
15982
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "flex items-center gap-2 cursor-pointer select-none", children: [
15983
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15934
15984
  "input",
15935
15985
  {
15936
15986
  type: "checkbox",
@@ -15947,13 +15997,13 @@ function SettingsAndActionsBlock({
15947
15997
  className: "w-3.5 h-3.5 rounded border-slate-300 text-emerald-600 focus:ring-emerald-500 cursor-pointer"
15948
15998
  }
15949
15999
  ),
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" })
16000
+ /* @__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
16001
  ] }),
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)(
16002
+ 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: [
16003
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", children: [
16004
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16005
+ /* @__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" }),
16006
+ selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
15957
16007
  "span",
15958
16008
  {
15959
16009
  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 +16011,8 @@ function SettingsAndActionsBlock({
15961
16011
  }
15962
16012
  )
15963
16013
  ] }),
15964
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15965
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16014
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
16015
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15966
16016
  "select",
15967
16017
  {
15968
16018
  value: postSendActionColumn,
@@ -15975,35 +16025,35 @@ function SettingsAndActionsBlock({
15975
16025
  },
15976
16026
  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
16027
  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))
16028
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05DE\u05D5\u05D3\u05D4..." }),
16029
+ postSendActionTargetOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: opt.label }, opt.id))
15980
16030
  ]
15981
16031
  }
15982
16032
  ),
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" })
16033
+ /* @__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
16034
  ] })
15985
16035
  ] }),
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" })
16036
+ selectedPostSendOption && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1 animate-in fade-in duration-150", children: [
16037
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16038
+ /* @__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" }),
16039
+ !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
16040
  ] }),
15991
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "relative", children: [
15992
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16041
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "relative", children: [
16042
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
15993
16043
  "select",
15994
16044
  {
15995
16045
  value: postSendActionValue,
15996
16046
  onChange: (e) => setPostSendActionValue(e.target.value),
15997
16047
  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
16048
  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)" })
16049
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "", children: "\u05D1\u05D7\u05E8 \u05E2\u05E8\u05DA..." }),
16050
+ selectedPostSendOption.type === "BOOLEAN" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
16051
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "true", children: "\u05DB\u05DF (Yes)" }),
16052
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "false", children: "\u05DC\u05D0 (No)" })
16003
16053
  ] }) : getRelationOptionsForCol(
16004
16054
  selectedPostSendOption.columnName,
16005
16055
  selectedPostSendOption.parentColumnName
16006
- ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
16056
+ ).map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: opt.id, children: getRelationOptionLabel(
16007
16057
  opt,
16008
16058
  selectedPostSendOption,
16009
16059
  relationOptions
@@ -16011,15 +16061,15 @@ function SettingsAndActionsBlock({
16011
16061
  ]
16012
16062
  }
16013
16063
  ),
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" })
16064
+ /* @__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
16065
  ] })
16016
16066
  ] })
16017
16067
  ] }) })
16018
16068
  ] })
16019
16069
  ] })
16020
16070
  ] }),
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)(
16071
+ /* @__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: [
16072
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16023
16073
  "button",
16024
16074
  {
16025
16075
  type: "button",
@@ -16028,23 +16078,23 @@ function SettingsAndActionsBlock({
16028
16078
  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
16079
  title: testButtonTitle,
16030
16080
  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" })
16081
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Phone, { className: "w-3 h-3" }),
16082
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05D8\u05E1\u05D8" })
16033
16083
  ]
16034
16084
  }
16035
16085
  ),
16036
- isSendingBroadcast ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16086
+ isSendingBroadcast ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16037
16087
  "div",
16038
16088
  {
16039
16089
  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
16090
  "data-testid": "live-broadcast-progress",
16041
16091
  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..." })
16092
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between text-[11px] font-semibold text-slate-700", children: [
16093
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 text-emerald-800 font-bold", children: [
16094
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Loader2, { className: "w-3.5 h-3.5 animate-spin text-emerald-600 shrink-0" }),
16095
+ /* @__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
16096
  ] }),
16047
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "text-emerald-700 font-bold", children: [
16097
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-emerald-700 font-bold", children: [
16048
16098
  (broadcastProgress == null ? void 0 : broadcastProgress.percent) || 0,
16049
16099
  "% (",
16050
16100
  (broadcastProgress == null ? void 0 : broadcastProgress.current) || 0,
@@ -16053,7 +16103,7 @@ function SettingsAndActionsBlock({
16053
16103
  ")"
16054
16104
  ] })
16055
16105
  ] }),
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)(
16106
+ /* @__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
16107
  "div",
16058
16108
  {
16059
16109
  className: "h-full bg-emerald-500 rounded-full transition-all duration-300 ease-out",
@@ -16062,18 +16112,18 @@ function SettingsAndActionsBlock({
16062
16112
  }
16063
16113
  }
16064
16114
  ) }),
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 })
16115
+ /* @__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: [
16116
+ /* @__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: [
16117
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u2705" }),
16118
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.successful) || 0 })
16069
16119
  ] }),
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 })
16120
+ /* @__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: [
16121
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u274C" }),
16122
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-bold", children: (broadcastProgress == null ? void 0 : broadcastProgress.failed) || 0 })
16073
16123
  ] }),
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: [
16124
+ /* @__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: [
16125
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u26A0\uFE0F" }),
16126
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-bold", children: [
16077
16127
  (broadcastProgress == null ? void 0 : broadcastProgress.skipped) || 0,
16078
16128
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
16079
16129
  ] })
@@ -16081,8 +16131,8 @@ function SettingsAndActionsBlock({
16081
16131
  ] })
16082
16132
  ]
16083
16133
  }
16084
- ) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
16085
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16134
+ ) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
16135
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16086
16136
  "button",
16087
16137
  {
16088
16138
  type: "button",
@@ -16091,56 +16141,56 @@ function SettingsAndActionsBlock({
16091
16141
  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
16142
  title: sendButtonTitle,
16093
16143
  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" })
16144
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.Send, { className: "w-3.5 h-3.5" }),
16145
+ /* @__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
16146
  ]
16097
16147
  }
16098
16148
  ),
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: [
16149
+ 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
16150
  "\u05DE\u05EA\u05D5\u05DA ",
16101
16151
  validMainRowsCount,
16102
16152
  " \u05E9\u05D5\u05E8\u05D5\u05EA \u05E8\u05D0\u05E9\u05D9\u05D5\u05EA"
16103
16153
  ] }),
16104
- broadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
16154
+ broadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16105
16155
  "div",
16106
16156
  {
16107
16157
  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
16158
  "data-testid": "broadcast-summary-card",
16109
16159
  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" })
16160
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center justify-between", children: [
16161
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1.5 text-[11px] font-bold text-slate-700", children: [
16162
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-xs", children: "\u{1F4CA}" }),
16163
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u05E1\u05D9\u05DB\u05D5\u05DD \u05E9\u05D9\u05D3\u05D5\u05E8 \u05D0\u05D7\u05E8\u05D5\u05DF" })
16114
16164
  ] }),
16115
- clearBroadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
16165
+ clearBroadcastSummary && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
16116
16166
  "button",
16117
16167
  {
16118
16168
  type: "button",
16119
16169
  onClick: clearBroadcastSummary,
16120
16170
  className: "text-slate-400 hover:text-slate-600 p-0.5 rounded-md hover:bg-slate-200/60 transition-colors cursor-pointer",
16121
16171
  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" })
16172
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react14.X, { className: "w-3.5 h-3.5" })
16123
16173
  }
16124
16174
  )
16125
16175
  ] }),
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: [
16176
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [
16177
+ /* @__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: [
16178
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u2705" }),
16179
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16130
16180
  broadcastSummary.successful,
16131
16181
  " \u05E0\u05E9\u05DC\u05D7\u05D5"
16132
16182
  ] })
16133
16183
  ] }),
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: [
16184
+ 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: [
16185
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u274C" }),
16186
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16137
16187
  broadcastSummary.failed,
16138
16188
  " \u05E0\u05DB\u05E9\u05DC\u05D5"
16139
16189
  ] })
16140
16190
  ] }),
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: [
16191
+ 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: [
16192
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u26A0\uFE0F" }),
16193
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { children: [
16144
16194
  broadcastSummary.skipped,
16145
16195
  " \u05DC\u05DC\u05D0 \u05D8\u05DC\u05E4\u05D5\u05DF"
16146
16196
  ] })
@@ -16238,14 +16288,14 @@ function useInboxState(orgId, actions) {
16238
16288
 
16239
16289
  // src/components/WhatsAppComponent/inbox/ConversationList.tsx
16240
16290
  var import_lucide_react15 = require("lucide-react");
16241
- var import_jsx_runtime34 = require("react/jsx-runtime");
16291
+ var import_jsx_runtime35 = require("react/jsx-runtime");
16242
16292
  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)(
16293
+ 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: [
16294
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "p-4 border-b border-slate-100 bg-slate-50", children: [
16295
+ /* @__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" }),
16296
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "relative", children: [
16297
+ /* @__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" }),
16298
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
16249
16299
  "input",
16250
16300
  {
16251
16301
  type: "text",
@@ -16255,27 +16305,27 @@ function ConversationList({ conversations, activeId, onSelect }) {
16255
16305
  )
16256
16306
  ] })
16257
16307
  ] }),
16258
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex-1 overflow-y-auto", children: (() => {
16308
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1 overflow-y-auto", children: (() => {
16259
16309
  const sortedConversations = [...conversations].sort(
16260
16310
  (a, b) => new Date(b.lastMessageAt).getTime() - new Date(a.lastMessageAt).getTime()
16261
16311
  );
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) => {
16312
+ 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
16313
  var _a, _b;
16264
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
16314
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
16265
16315
  "button",
16266
16316
  {
16267
16317
  onClick: () => onSelect(conv.id),
16268
16318
  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
16319
  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" }) })
16320
+ /* @__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" }) }),
16321
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 overflow-hidden", children: [
16322
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between items-center mb-1", children: [
16323
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-semibold text-slate-800 text-sm truncate", children: conv.contactName || conv.contactPhone }),
16324
+ /* @__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
16325
  ] }),
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 })
16326
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between items-center", children: [
16327
+ /* @__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" }),
16328
+ 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
16329
  ] })
16280
16330
  ] })
16281
16331
  ]
@@ -16290,7 +16340,7 @@ function ConversationList({ conversations, activeId, onSelect }) {
16290
16340
  // src/components/WhatsAppComponent/inbox/ChatWindow.tsx
16291
16341
  var import_react33 = require("react");
16292
16342
  var import_lucide_react16 = require("lucide-react");
16293
- var import_jsx_runtime35 = require("react/jsx-runtime");
16343
+ var import_jsx_runtime36 = require("react/jsx-runtime");
16294
16344
  function ChatWindow({ activeConversation, messages, isLoading, isSending, onSendMessage }) {
16295
16345
  const [inputText, setInputText] = (0, import_react33.useState)("");
16296
16346
  const messagesTopRef = (0, import_react33.useRef)(null);
@@ -16308,34 +16358,34 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16308
16358
  setInputText("");
16309
16359
  };
16310
16360
  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" })
16361
+ 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: [
16362
+ /* @__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" }) }) }),
16363
+ /* @__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
16364
  ] });
16315
16365
  }
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 })
16366
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex-1 flex flex-col bg-[#efeae2] h-full relative", children: [
16367
+ /* @__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: [
16368
+ /* @__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" }) }),
16369
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
16370
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "font-bold text-slate-800", children: activeConversation.contactName || activeConversation.contactPhone }),
16371
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-xs text-slate-500", dir: "ltr", children: activeConversation.contactPhone })
16322
16372
  ] })
16323
16373
  ] }),
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) => {
16374
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex-1 overflow-y-auto p-6 space-y-4", children: [
16375
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref: messagesTopRef }),
16376
+ 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
16377
  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: [
16378
+ 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: [
16379
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm whitespace-pre-wrap", children: msg.content }),
16380
+ /* @__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
16381
  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" })
16382
+ 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
16383
  ] })
16334
16384
  ] }) }, msg.id || idx);
16335
16385
  })
16336
16386
  ] }),
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)(
16387
+ /* @__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: [
16388
+ /* @__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
16389
  "textarea",
16340
16390
  {
16341
16391
  rows: 1,
@@ -16351,13 +16401,13 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16351
16401
  className: "w-full max-h-32 min-h-[44px] p-3 text-sm bg-transparent outline-none resize-none"
16352
16402
  }
16353
16403
  ) }),
16354
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
16404
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
16355
16405
  "button",
16356
16406
  {
16357
16407
  type: "submit",
16358
16408
  disabled: !inputText.trim() || isSending,
16359
16409
  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" })
16410
+ 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
16411
  }
16362
16412
  )
16363
16413
  ] }) })
@@ -16365,7 +16415,7 @@ function ChatWindow({ activeConversation, messages, isLoading, isSending, onSend
16365
16415
  }
16366
16416
 
16367
16417
  // src/components/WhatsAppComponent/inbox/WhatsAppInbox.tsx
16368
- var import_jsx_runtime36 = require("react/jsx-runtime");
16418
+ var import_jsx_runtime37 = require("react/jsx-runtime");
16369
16419
  function WhatsAppInbox({
16370
16420
  orgId,
16371
16421
  getConversationsAction,
@@ -16386,8 +16436,8 @@ function WhatsAppInbox({
16386
16436
  sendMessage: sendInboxMessageAction
16387
16437
  });
16388
16438
  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)(
16439
+ 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: [
16440
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16391
16441
  ConversationList,
16392
16442
  {
16393
16443
  conversations,
@@ -16395,7 +16445,7 @@ function WhatsAppInbox({
16395
16445
  onSelect: handleSelectConversation
16396
16446
  }
16397
16447
  ),
16398
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
16448
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16399
16449
  ChatWindow,
16400
16450
  {
16401
16451
  activeConversation,
@@ -16409,21 +16459,21 @@ function WhatsAppInbox({
16409
16459
  }
16410
16460
 
16411
16461
  // src/components/WhatsAppComponent/WhatsAppComponent.tsx
16412
- var import_jsx_runtime37 = require("react/jsx-runtime");
16462
+ var import_jsx_runtime38 = require("react/jsx-runtime");
16413
16463
  function WhatsAppComponent(props) {
16414
16464
  var _a;
16415
16465
  const { className = "", settings, orgId, componentId, executeAction } = props;
16416
16466
  const state = useWhatsAppState(props);
16417
16467
  const [activeTab, setActiveTab] = import_react34.default.useState("broadcast");
16418
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16468
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16419
16469
  "div",
16420
16470
  {
16421
16471
  className: `w-full flex flex-col bg-white border border-slate-200 rounded-2xl shadow-xs overflow-hidden ${className}`,
16422
16472
  "data-testid": "whatsapp-component",
16423
16473
  dir: "rtl",
16424
16474
  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)(
16475
+ /* @__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: [
16476
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16427
16477
  "button",
16428
16478
  {
16429
16479
  type: "button",
@@ -16432,7 +16482,7 @@ function WhatsAppComponent(props) {
16432
16482
  children: "\u{1F4E4} \u05E9\u05DC\u05D9\u05D7\u05EA \u05D4\u05D5\u05D3\u05E2\u05D5\u05EA \u05D5\u05EA\u05E4\u05D5\u05E6\u05D4"
16433
16483
  }
16434
16484
  ),
16435
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16485
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16436
16486
  "button",
16437
16487
  {
16438
16488
  type: "button",
@@ -16442,7 +16492,7 @@ function WhatsAppComponent(props) {
16442
16492
  }
16443
16493
  )
16444
16494
  ] }),
16445
- activeTab === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "p-4 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16495
+ activeTab === "inbox" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "p-4 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16446
16496
  WhatsAppInbox,
16447
16497
  {
16448
16498
  orgId: orgId || props.organizationId || "",
@@ -16481,37 +16531,37 @@ function WhatsAppComponent(props) {
16481
16531
  }
16482
16532
  }
16483
16533
  }
16484
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
16485
- state.feedback && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16534
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16535
+ state.feedback && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16486
16536
  "div",
16487
16537
  {
16488
16538
  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
16539
  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 })
16540
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
16541
+ 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" }),
16542
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.feedback.message })
16493
16543
  ] }),
16494
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16544
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16495
16545
  "button",
16496
16546
  {
16497
16547
  type: "button",
16498
16548
  onClick: () => state.setFeedback(null),
16499
16549
  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" })
16550
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16501
16551
  }
16502
16552
  )
16503
16553
  ]
16504
16554
  }
16505
16555
  ),
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: [
16556
+ 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: [
16557
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2", children: [
16558
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-amber-600 shrink-0" }),
16559
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { children: [
16510
16560
  "\u05E9\u05D2\u05D9\u05D0\u05D4 \u05D1\u05D8\u05E2\u05D9\u05E0\u05EA \u05EA\u05D1\u05E0\u05D9\u05D5\u05EA \u05DE-Meta: ",
16511
16561
  state.fetchError
16512
16562
  ] })
16513
16563
  ] }),
16514
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16564
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16515
16565
  "button",
16516
16566
  {
16517
16567
  type: "button",
@@ -16521,9 +16571,9 @@ function WhatsAppComponent(props) {
16521
16571
  }
16522
16572
  )
16523
16573
  ] }),
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)(
16574
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-4 flex flex-col gap-4", children: [
16575
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-4 shrink-0 items-stretch", children: [
16576
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16527
16577
  TemplateSelectionBlock,
16528
16578
  {
16529
16579
  selectedTemplate: state.selectedTemplate,
@@ -16551,7 +16601,7 @@ function WhatsAppComponent(props) {
16551
16601
  handleFileUpload: state.handleFileUpload
16552
16602
  }
16553
16603
  ),
16554
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16604
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16555
16605
  DynamicFiltersBlock,
16556
16606
  {
16557
16607
  filterableColumns: state.filterableColumns,
@@ -16568,7 +16618,7 @@ function WhatsAppComponent(props) {
16568
16618
  isLoadingTableData: state.isLoadingTableData
16569
16619
  }
16570
16620
  ),
16571
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16621
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16572
16622
  SettingsAndActionsBlock,
16573
16623
  {
16574
16624
  isScanningPhoneColumns: state.isScanningPhoneColumns,
@@ -16614,13 +16664,13 @@ function WhatsAppComponent(props) {
16614
16664
  }
16615
16665
  )
16616
16666
  ] }),
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)(
16667
+ /* @__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: [
16668
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Loader2, { className: "w-6 h-6 animate-spin text-emerald-600" }),
16669
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05D8\u05D5\u05E2\u05DF \u05E8\u05E9\u05D5\u05DE\u05D5\u05EA \u05DE\u05D4\u05D8\u05D1\u05DC\u05D4..." })
16670
+ ] }) : 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: [
16671
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16672
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.tableError })
16673
+ ] }) : !(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
16674
  TableBlockClient,
16625
16675
  {
16626
16676
  settings: {
@@ -16642,7 +16692,7 @@ function WhatsAppComponent(props) {
16642
16692
  }
16643
16693
  ) })
16644
16694
  ] }),
16645
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16695
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16646
16696
  CreateTemplateModal,
16647
16697
  {
16648
16698
  isOpen: state.isModalOpen,
@@ -16656,7 +16706,7 @@ function WhatsAppComponent(props) {
16656
16706
  orgId: state.orgId || orgId
16657
16707
  }
16658
16708
  ),
16659
- state.isTestPromptOpen && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16709
+ state.isTestPromptOpen && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16660
16710
  "div",
16661
16711
  {
16662
16712
  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 +16715,7 @@ function WhatsAppComponent(props) {
16665
16715
  state.setIsTestPromptOpen(false);
16666
16716
  state.setTestFeedback(null);
16667
16717
  },
16668
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
16718
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
16669
16719
  "div",
16670
16720
  {
16671
16721
  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 +16724,15 @@ function WhatsAppComponent(props) {
16674
16724
  "aria-labelledby": "test-modal-title",
16675
16725
  onClick: (e) => e.stopPropagation(),
16676
16726
  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" })
16727
+ /* @__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: [
16728
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-2.5", children: [
16729
+ /* @__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" }) }),
16730
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
16731
+ /* @__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)" }),
16732
+ /* @__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
16733
  ] })
16684
16734
  ] }),
16685
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16735
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16686
16736
  "button",
16687
16737
  {
16688
16738
  type: "button",
@@ -16694,25 +16744,25 @@ function WhatsAppComponent(props) {
16694
16744
  },
16695
16745
  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
16746
  title: "\u05E1\u05D2\u05D5\u05E8",
16697
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16747
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.X, { className: "w-4 h-4" })
16698
16748
  }
16699
16749
  )
16700
16750
  ] }),
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" })
16751
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "p-5 space-y-4", children: [
16752
+ /* @__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: [
16753
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-slate-500 font-medium", children: "\u05EA\u05D1\u05E0\u05D9\u05EA \u05E0\u05D1\u05D7\u05E8\u05EA:" }),
16754
+ /* @__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
16755
  ] }),
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 })
16756
+ 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: [
16757
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-emerald-800 font-medium", children: "\u05E2\u05DE\u05D5\u05D3\u05EA \u05D9\u05E2\u05D3:" }),
16758
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-bold text-emerald-950 font-mono", children: state.selectedPhoneOption.label })
16709
16759
  ] }),
16710
16760
  state.templateHeaderComp && (() => {
16711
16761
  const headerFormat = (state.templateHeaderComp.format || "").toUpperCase();
16712
16762
  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)(
16763
+ 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: [
16764
+ /* @__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: [
16765
+ /* @__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
16766
  "img",
16717
16767
  {
16718
16768
  src: state.headerMediaUrl,
@@ -16722,28 +16772,28 @@ function WhatsAppComponent(props) {
16722
16772
  e.currentTarget.style.display = "none";
16723
16773
  }
16724
16774
  }
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 })
16775
+ ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Image, { className: "w-3.5 h-3.5 text-emerald-600" }) }),
16776
+ /* @__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" })
16777
+ ] }) : headerFormat === "DOCUMENT" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16778
+ /* @__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" }) }),
16779
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "overflow-hidden", children: [
16780
+ /* @__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)" }),
16781
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-[10px] text-slate-500 font-mono block truncate", title: docFilename, children: docFilename })
16732
16782
  ] })
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" })
16783
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16784
+ /* @__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" }) }),
16785
+ /* @__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
16786
  ] }) }),
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" })
16787
+ 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
16788
  ] });
16739
16789
  })(),
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: [
16790
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-1.5", children: [
16791
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "text-xs font-semibold text-slate-700 block", children: [
16742
16792
  "\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: "*" })
16793
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-rose-500", children: "*" })
16744
16794
  ] }),
16745
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", children: [
16746
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16795
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative", children: [
16796
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16747
16797
  "input",
16748
16798
  {
16749
16799
  type: "tel",
@@ -16765,17 +16815,17 @@ function WhatsAppComponent(props) {
16765
16815
  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
16816
  }
16767
16817
  ),
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" })
16818
+ /* @__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
16819
  ] }),
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." })
16820
+ /* @__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
16821
  ] }),
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 })
16822
+ 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: [
16823
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.AlertCircle, { className: "w-4 h-4 text-rose-500 shrink-0" }),
16824
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: state.testFeedback })
16775
16825
  ] })
16776
16826
  ] }),
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)(
16827
+ /* @__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: [
16828
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16779
16829
  "button",
16780
16830
  {
16781
16831
  type: "button",
@@ -16789,7 +16839,7 @@ function WhatsAppComponent(props) {
16789
16839
  children: "\u05D1\u05D9\u05D8\u05D5\u05DC"
16790
16840
  }
16791
16841
  ),
16792
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
16842
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
16793
16843
  "button",
16794
16844
  {
16795
16845
  type: "button",
@@ -16797,12 +16847,12 @@ function WhatsAppComponent(props) {
16797
16847
  onClick: state.handleSendTest,
16798
16848
  title: state.testButtonTitle,
16799
16849
  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" })
16850
+ children: state.isSendingTest ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16851
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Loader2, { className: "w-3.5 h-3.5 animate-spin" }),
16852
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05E9\u05D5\u05DC\u05D7..." })
16853
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
16854
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react17.Send, { className: "w-3.5 h-3.5" }),
16855
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "\u05E9\u05DC\u05D7 \u05E2\u05DB\u05E9\u05D9\u05D5" })
16806
16856
  ] })
16807
16857
  }
16808
16858
  )
@@ -16821,7 +16871,7 @@ function WhatsAppComponent(props) {
16821
16871
  // src/components/FormBlock/FormBlock.tsx
16822
16872
  var import_react35 = require("react");
16823
16873
  var import_lucide_react18 = require("lucide-react");
16824
- var import_jsx_runtime38 = require("react/jsx-runtime");
16874
+ var import_jsx_runtime39 = require("react/jsx-runtime");
16825
16875
 
16826
16876
  // src/components/FormBlock/StyledFormBlock.tsx
16827
16877
  var import_react36 = require("react");
@@ -17066,7 +17116,7 @@ function applyFieldOrder(cols, design) {
17066
17116
  }
17067
17117
 
17068
17118
  // src/components/FormBlock/StyledFormBlock.tsx
17069
- var import_jsx_runtime39 = require("react/jsx-runtime");
17119
+ var import_jsx_runtime40 = require("react/jsx-runtime");
17070
17120
  var SYSTEM_FIELDS = ["_id", "id", "createdAt", "updatedAt", "orgId", "tableId"];
17071
17121
  function StyledFormBlock({
17072
17122
  settings: schema,
@@ -17435,30 +17485,30 @@ function StyledFormBlock({
17435
17485
  }
17436
17486
  `;
17437
17487
  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..." })
17488
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "p-8 flex items-center justify-center gap-2 text-slate-500", dir: "rtl", children: [
17489
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.Loader2, { className: "w-5 h-5 animate-spin", style: { color: d.primary } }),
17490
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "text-sm", children: "\u05D8\u05D5\u05E2\u05DF \u05E9\u05D3\u05D5\u05EA \u05D8\u05D5\u05E4\u05E1..." })
17441
17491
  ] });
17442
17492
  }
17443
17493
  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." });
17494
+ 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
17495
  }
17446
17496
  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)(
17497
+ const headerBlock = (schema == null ? void 0 : schema.title) || d.subtitle || d.logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17448
17498
  "div",
17449
17499
  {
17450
17500
  style: t.headerBand ? { background: d.primary, color: "#ffffff", padding: `${t.padding * 0.8}px ${t.padding}px` } : { marginBottom: t.gap + 4 },
17451
17501
  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 })
17502
+ 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" } }) }),
17503
+ (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 }),
17504
+ 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
17505
  ]
17456
17506
  }
17457
17507
  ) : null;
17458
17508
  if (isSubmitted) {
17459
17509
  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)(
17510
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { id: componentId, dir: "rtl", className, style: __spreadProps(__spreadValues({}, cardStyle), { padding: t.padding || 24, textAlign: "center" }), children: [
17511
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17462
17512
  "div",
17463
17513
  {
17464
17514
  style: {
@@ -17472,12 +17522,12 @@ function StyledFormBlock({
17472
17522
  background: t.invertText ? "rgba(255,255,255,0.2)" : "#ecfdf5",
17473
17523
  color: t.invertText ? "#ffffff" : "#059669"
17474
17524
  },
17475
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.CheckCircle2, { className: "w-8 h-8" })
17525
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.CheckCircle2, { className: "w-8 h-8" })
17476
17526
  }
17477
17527
  ),
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)(
17528
+ /* @__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" }),
17529
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { style: { fontSize: 16, color: muted, maxWidth: 420, margin: "0 auto", whiteSpace: "pre-wrap" }, children: customMessage }),
17530
+ submitMode !== "update" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17481
17531
  "button",
17482
17532
  {
17483
17533
  type: "button",
@@ -17489,11 +17539,11 @@ function StyledFormBlock({
17489
17539
  ] });
17490
17540
  }
17491
17541
  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 }),
17542
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { id: componentId, dir: "rtl", className: `${uid} ${className}`, style: cardStyle, children: [
17543
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("style", { children: css }),
17494
17544
  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: (() => {
17545
+ /* @__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: [
17546
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "fdz-grid", ref: gridRef, children: (() => {
17497
17547
  const spanOf = (col) => {
17498
17548
  var _a;
17499
17549
  if (resizing && resizing.name === col.name) return resizing.span;
@@ -17511,7 +17561,7 @@ function StyledFormBlock({
17511
17561
  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
17562
  const useTextarea = !!fieldHeight && fieldHeight > 56 && InputComponent === FORM_INPUTS.DEFAULT;
17513
17563
  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)(
17564
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17515
17565
  "div",
17516
17566
  {
17517
17567
  "data-fdz-field": col.name,
@@ -17535,13 +17585,13 @@ function StyledFormBlock({
17535
17585
  borderRadius: 6
17536
17586
  } : {}),
17537
17587
  children: [
17538
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17588
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("label", { style: { fontSize: t.labelSize, fontWeight: 600, color: d.text }, children: [
17539
17589
  col.name,
17540
17590
  " ",
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)" })
17591
+ isFieldRequired(col, design) && !locked && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { style: { color: t.invertText ? "#fecdd3" : "#f43f5e" }, children: "*" }),
17592
+ 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
17593
  ] }),
17544
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17594
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { "data-fdz-box": true, style: boxStyle, children: useTextarea ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17545
17595
  "textarea",
17546
17596
  {
17547
17597
  value: shownValue,
@@ -17561,7 +17611,7 @@ function StyledFormBlock({
17561
17611
  boxSizing: "border-box"
17562
17612
  }
17563
17613
  }
17564
- ) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17614
+ ) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17565
17615
  InputComponent,
17566
17616
  {
17567
17617
  column: col,
@@ -17572,7 +17622,7 @@ function StyledFormBlock({
17572
17622
  context: { executeAction: previewMode ? void 0 : executeAction, tableId: targetTableId, relationDictionaryRef: relationDictRef, orgId: schema == null ? void 0 : schema.orgId }
17573
17623
  }
17574
17624
  ) }),
17575
- canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17625
+ canReorder && dragName && drop && drop.name === col.name && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17576
17626
  "div",
17577
17627
  {
17578
17628
  style: __spreadValues({
@@ -17587,7 +17637,7 @@ function StyledFormBlock({
17587
17637
  }, drop.side === "before" ? { insetInlineStart: -(t.gap / 2) - 2 } : { insetInlineEnd: -(t.gap / 2) - 2 })
17588
17638
  }
17589
17639
  ),
17590
- onFieldResize && !isBoolean && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17640
+ onFieldResize && !isBoolean && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17591
17641
  "div",
17592
17642
  {
17593
17643
  onMouseDown: (e) => e.stopPropagation(),
@@ -17617,7 +17667,7 @@ function StyledFormBlock({
17617
17667
  };
17618
17668
  return formColumns.map((col) => renderField(col));
17619
17669
  })() }),
17620
- formError && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17670
+ formError && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17621
17671
  "div",
17622
17672
  {
17623
17673
  ref: errorRef,
@@ -17636,7 +17686,7 @@ function StyledFormBlock({
17636
17686
  children: formError
17637
17687
  }
17638
17688
  ),
17639
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
17689
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
17640
17690
  "div",
17641
17691
  {
17642
17692
  style: {
@@ -17646,7 +17696,7 @@ function StyledFormBlock({
17646
17696
  display: "flex",
17647
17697
  justifyContent: justify
17648
17698
  },
17649
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
17699
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
17650
17700
  "button",
17651
17701
  {
17652
17702
  type: "submit",
@@ -17669,8 +17719,8 @@ function StyledFormBlock({
17669
17719
  opacity: isSubmitting ? 0.5 : 1
17670
17720
  },
17671
17721
  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 })
17722
+ isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react19.Loader2, { className: "w-4 h-4 animate-spin" }),
17723
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: isSubmitting ? "\u05E9\u05D5\u05DE\u05E8..." : d.buttonText })
17674
17724
  ]
17675
17725
  }
17676
17726
  )
@@ -17682,7 +17732,7 @@ function StyledFormBlock({
17682
17732
 
17683
17733
  // src/themes/ThemeScope.tsx
17684
17734
  var React29 = __toESM(require("react"));
17685
- var import_jsx_runtime40 = require("react/jsx-runtime");
17735
+ var import_jsx_runtime41 = require("react/jsx-runtime");
17686
17736
  var UNIVERSE_THEME_IDS = ["classic", "clean", "ocean", "warm"];
17687
17737
  function resolveUniverseTheme(value) {
17688
17738
  return typeof value === "string" && UNIVERSE_THEME_IDS.includes(value) ? value : "classic";
@@ -17692,7 +17742,7 @@ function withThemeScope(Component) {
17692
17742
  var _a, _b, _c;
17693
17743
  const p = props;
17694
17744
  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) });
17745
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { "data-theme": theme, style: { display: "contents" }, children: React29.createElement(Component, props) });
17696
17746
  }
17697
17747
  ThemeScoped.displayName = `ThemeScoped(${Component.displayName || Component.name || "Component"})`;
17698
17748
  return ThemeScoped;