/home/u503560585/domains/mscm.me/public_html/resources/js/arcontactus.js
function arCuGetCookie(t) {
  return document.cookie.length > 0 &&
    ((c_start = document.cookie.indexOf(t + "=")), -1 != c_start)
    ? ((c_start = c_start + t.length + 1),
      (c_end = document.cookie.indexOf(";", c_start)),
      -1 == c_end && (c_end = document.cookie.length),
      unescape(document.cookie.substring(c_start, c_end)))
    : 0;
}
function arCuCreateCookie(t, e, s) {
  var n;
  if (s) {
    var i = new Date();
    i.setTime(i.getTime() + 24 * s * 60 * 60 * 1e3),
      (n = "; expires=" + i.toGMTString());
  } else n = "";
  document.cookie = t + "=" + e + n + "; path=/";
}
// function arCuShowMessage(t) {
//   if (arCuPromptClosed) return !1;
//   void 0 !== arCuMessages[t]
//     ? (jQuery("#arcontactus").contactUs("showPromptTyping"),
//       (_arCuTimeOut = setTimeout(function () {
//         if (arCuPromptClosed) return !1;
//         jQuery("#arcontactus").contactUs("showPrompt", {
//           content: arCuMessages[t],
//         }),
//           t++,
//           (_arCuTimeOut = setTimeout(function () {
//             if (arCuPromptClosed) return !1;
//             arCuShowMessage(t);
//           }, arCuMessageTime));
//       }, arCuTypingTime)))
//     : (arCuCloseLastMessage && jQuery("#arcontactus").contactUs("hidePrompt"),
//       arCuLoop && arCuShowMessage(0));
// }
// function arCuShowMessages() {
//   setTimeout(function () {
//     clearTimeout(_arCuTimeOut), arCuShowMessage(0);
//   }, arCuDelayFirst);
// }
!(function (t) {
  function e(s, n) {
    (this._initialized = !1),
      (this.settings = null),
      (this.options = t.extend({}, e.Defaults, n)),
      (this.$element = t(s)),
      this.init(),
      (this.x = 0),
      (this.y = 0),
      this._interval,
      (this._menuOpened = !1),
      (this._callbackOpened = !1),
      (this.countdown = null);
  }
  (e.Defaults = {
    align: "right",
    countdown: 0,
    drag: !1,
    buttonText: "Contact",
    buttonSize: "large",
    menuSize: "normal",
    items: [],
    iconsAnimationSpeed: 1200,
    theme: "#006b36",
    buttonIcon:
      '<svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Canvas" transform="translate(-825 -308)"><g id="Vector"><use xlink:href="#path0_fill0123" transform="translate(825 308)" fill="#FFFFFF"/></g></g><defs><path id="path0_fill0123" d="M 19 4L 17 4L 17 13L 4 13L 4 15C 4 15.55 4.45 16 5 16L 16 16L 20 20L 20 5C 20 4.45 19.55 4 19 4ZM 15 10L 15 1C 15 0.45 14.55 0 14 0L 1 0C 0.45 0 0 0.45 0 1L 0 15L 4 11L 14 11C 14.55 11 15 10.55 15 10Z"/></defs></svg>',
    closeIcon:
      '<svg width="12" height="13" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Canvas" transform="translate(-4087 108)"><g id="Vector"><use xlink:href="#path0_fill" transform="translate(4087 -108)" fill="currentColor"></use></g></g><defs><path id="path0_fill" d="M 14 1.41L 12.59 0L 7 5.59L 1.41 0L 0 1.41L 5.59 7L 0 12.59L 1.41 14L 7 8.41L 12.59 14L 14 12.59L 8.41 7L 14 1.41Z"></path></defs></svg>',
  }),
    (e.prototype.init = function () {
      this.destroy(),
        (this.settings = t.extend({}, this.options)),
        this.$element
          .addClass("arcontactus-widget")
          .addClass("arcontactus-message"),
        "left" === this.settings.align
          ? this.$element.addClass("left")
          : this.$element.addClass("right"),
        this.settings.items.length
          ? (this._initCallbackBlock(),
            this._initMessengersBlock(),
            this._initMessageButton(),
            this._initPrompt(),
            this._initEvents(),
            this.startAnimation(),
            this.$element.addClass("active"))
          : console.info("jquery.contactus:no items"),
        (this._initialized = !0),
        this.$element.trigger("arcontactus.init");
    }),
    (e.prototype.destroy = function () {
      if (!this._initialized) return !1;
      this.$element.html(""),
        (this._initialized = !1),
        this.$element.trigger("arcontactus.destroy");
    }),
    (e.prototype._initCallbackBlock = function () {}),
    (e.prototype._initMessengersBlock = function () {
      var e = t("<div>", { class: "messangers-block" });
      ("normal" !== this.settings.menuSize &&
        "large" !== this.settings.menuSize) ||
        e.addClass("lg"),
        "small" === this.settings.menuSize && e.addClass("sm"),
        this._appendMessengerIcons(e),
        this.$element.append(e);
    }),
    (e.prototype._appendMessengerIcons = function (e) {
      t.each(this.settings.items, function (s) {
        if ("callback" == this.href)
          var n = t("<div>", {
            class: "messanger call-back " + (this.class ? this.class : ""),
          });
        else if (
          ((n = t("<a>", {
            class: "messanger " + (this.class ? this.class : ""),
            id: this.id ? this.id : null,
            href: this.href,
            target: this.target ? this.target : "_blank",
          })),
          this.onClick)
        ) {
          var i = this;
          n.on("click", function (t) {
            i.onClick(t);
          });
        }
        var a = t("<span>", {
          style: this.color ? "background-color:" + this.color : null,
        });
        a.append(this.icon),
          n.append(a),
          n.append("<p>" + this.title + "</p>"),
          e.append(n);
      });
    }),
    (e.prototype._initMessageButton = function () {
      var e = this,
        s = t("<div>", {
          class: "arcontactus-message-button",
          style: this._backgroundStyle(),
        });
      "large" === this.settings.buttonSize && this.$element.addClass("lg"),
        "medium" === this.settings.buttonSize && this.$element.addClass("md"),
        "small" === this.settings.buttonSize && this.$element.addClass("sm");
      var n = t("<div>", { class: "static" });
      n.append(this.settings.buttonIcon),
        !1 !== this.settings.buttonText
          ? n.append("<p>" + this.settings.buttonText + "</p>")
          : s.addClass("no-text");
      var i = t("<div>", { class: "callback-state", style: e._colorStyle() });
      i.append(this.settings.callbackStateIcon);
      var a = t("<div>", { class: "icons hide" }),
        o = t("<div>", { class: "icons-line" });
      t.each(this.settings.items, function (s) {
        var n = t("<span>", { style: e._colorStyle() });
        n.append(this.icon), o.append(n);
      }),
        a.append(o);
      var r = t("<div>", { class: "arcontactus-close" });
      r.append(this.settings.closeIcon);
      var c = t("<div>", { class: "pulsation", style: e._backgroundStyle() }),
        l = t("<div>", { class: "pulsation", style: e._backgroundStyle() });
      s.append(n).append(i).append(a).append(r).append(c).append(l),
        this.$element.append(s);
    }),
    (e.prototype._initPrompt = function () {
      var e = t("<div>", { class: "arcontactus-prompt" }),
        s = t("<div>", {
          class: "arcontactus-prompt-close",
          style: this._colorStyle(),
        });
      s.append(this.settings.closeIcon);
      var n = t("<div>", { class: "arcontactus-prompt-inner" });
      e.append(s).append(n), this.$element.append(e);
    }),
    (e.prototype._initEvents = function () {
      var e = this.$element,
        s = this;
      e
        .find(".arcontactus-message-button")
        .on("mousedown", function (t) {
          (s.x = t.pageX), (s.y = t.pageY);
        })
        .on("mouseup", function (t) {
          t.pageX === s.x &&
            t.pageY === s.y &&
            (s.toggleMenu(), t.preventDefault());
        }),
        this.settings.drag &&
          (e.draggable(),
          e.get(0).addEventListener(
            "touchmove",
            function (t) {
              var s = t.targetTouches[0];
              (e.get(0).style.left = s.pageX - 25 + "px"),
                (e.get(0).style.top = s.pageY - 25 + "px"),
                t.preventDefault();
            },
            !1
          )),
        t(document).on("click", function (t) {
          s.closeMenu();
        }),
        e.on("click", function (t) {
          t.stopPropagation();
        }),
        e.find(".call-back").on("click", function () {
          s.openCallbackPopup();
        }),
        e.find(".callback-countdown-block-close").on("click", function () {
          null != s.countdown &&
            (clearInterval(s.countdown), (s.countdown = null)),
            s.closeCallbackPopup();
        }),
        e.find(".arcontactus-prompt-close").on("click", function () {
          s.hidePrompt();
        });
    }),
    (e.prototype.show = function () {
      this.$element.addClass("active"),
        this.$element.trigger("arcontactus.show");
    }),
    (e.prototype.hide = function () {
      this.$element.removeClass("active"),
        this.$element.trigger("arcontactus.hide");
    }),
    (e.prototype.openMenu = function () {
      var t = this.$element;
      t.find(".messangers-block").hasClass("show-messageners-block") ||
        (this.stopAnimation(),
        t
          .find(".messangers-block, .arcontactus-close")
          .addClass("show-messageners-block"),
        t.find(".icons, .static").addClass("hide"),
        t.find(".pulsation").addClass("stop"),
        (this._menuOpened = !0),
        this.$element.trigger("arcontactus.openMenu"));
    }),
    (e.prototype.closeMenu = function () {
      var t = this.$element;
      t.find(".messangers-block").hasClass("show-messageners-block") &&
        (t
          .find(".messangers-block, .arcontactus-close")
          .removeClass("show-messageners-block"),
        t.find(".icons, .static").removeClass("hide"),
        t.find(".pulsation").removeClass("stop"),
        this.startAnimation(),
        (this._menuOpened = !1),
        this.$element.trigger("arcontactus.closeMenu"));
    }),
    (e.prototype.toggleMenu = function () {
      var t = this.$element;
      if (
        (this.hidePrompt(),
        t.find(".callback-countdown-block").hasClass("display-flex"))
      )
        return !1;
      t.find(".messangers-block").hasClass("show-messageners-block")
        ? this.closeMenu()
        : this.openMenu(),
        this.$element.trigger("arcontactus.toggleMenu");
    }),
    (e.prototype.openCallbackPopup = function () {
      var t = this.$element;
      t.addClass("opened"),
        this.closeMenu(),
        this.stopAnimation(),
        t.find(".icons, .static").addClass("hide"),
        t.find(".pulsation").addClass("stop"),
        t.find(".callback-countdown-block").addClass("display-flex"),
        (this._callbackOpened = !0),
        this.$element.trigger("arcontactus.openCallbackPopup");
    }),
    (e.prototype.closeCallbackPopup = function () {
      var t = this.$element;
      t.removeClass("opened"),
        t.find(".messangers-block").removeClass("show-messageners-block"),
        t.find(".arcontactus-close").removeClass("show-messageners-block"),
        t.find(".icons, .static").removeClass("hide"),
        this.startAnimation(),
        (this._callbackOpened = !1),
        this.$element.trigger("arcontactus.closeCallbackPopup");
    }),
    (e.prototype.startAnimation = function () {
      var t = this.$element,
        e = t.find(".icons-line"),
        s = t.find(".static"),
        n = t.find(".icons-line>span:first-child").width() + 40;
      if ("large" === this.settings.buttonSize)
        var i = 2,
          a = 0;
      "medium" === this.settings.buttonSize && ((i = 4), (a = -2)),
        "small" === this.settings.buttonSize && ((i = 4), (a = -2));
      var o = t.find(".icons-line>span").length,
        r = 0;
      if ((this.stopAnimation(), 0 === this.settings.iconsAnimationSpeed))
        return !1;
      this._interval = setInterval(function () {
        0 === r && (e.parent().removeClass("hide"), s.addClass("hide"));
        var t = "translate(" + -(n * r + i) + "px, " + a + "px)";
        e.css({ "-webkit-transform": t, "-ms-transform": t, transform: t }),
          ++r > o &&
            (r > o + 1 && (r = 0),
            e.parent().addClass("hide"),
            s.removeClass("hide"),
            (t = "translate(" + -i + "px, " + a + "px)"),
            e.css({
              "-webkit-transform": t,
              "-ms-transform": t,
              transform: t,
            }));
      }, this.settings.iconsAnimationSpeed);
    }),
    (e.prototype.stopAnimation = function () {
      clearInterval(this._interval);
      var t = this.$element,
        e = t.find(".icons-line"),
        s = t.find(".static");
      e.parent().addClass("hide"), s.removeClass("hide");
      var n = "translate(-2px, 0px)";
      e.css({ "-webkit-transform": n, "-ms-transform": n, transform: n });
    }),
    (e.prototype.showPrompt = function (t) {
      var e = this.$element.find(".arcontactus-prompt");
      t && t.content && e.find(".arcontactus-prompt-inner").html(t.content),
        e.addClass("active"),
        this.$element.trigger("arcontactus.showPrompt");
    }),
    (e.prototype.hidePrompt = function () {
      this.$element.find(".arcontactus-prompt").removeClass("active"),
        this.$element.trigger("arcontactus.hidePrompt");
    }),
    (e.prototype.showPromptTyping = function () {
      this.$element
        .find(".arcontactus-prompt")
        .find(".arcontactus-prompt-inner")
        .html(""),
        this._insertPromptTyping(),
        this.showPrompt({}),
        this.$element.trigger("arcontactus.showPromptTyping");
    }),
    (e.prototype._insertPromptTyping = function () {
      var e = this.$element.find(".arcontactus-prompt-inner"),
        s = t("<div>", { class: "arcontactus-prompt-typing" }),
        n = t("<div>");
      s.append(n), s.append(n.clone()), s.append(n.clone()), e.append(s);
    }),
    (e.prototype.hidePromptTyping = function () {
      this.$element.find(".arcontactus-prompt").removeClass("active"),
        this.$element.trigger("arcontactus.hidePromptTyping");
    }),
    (e.prototype._backgroundStyle = function () {
      return "background-color: " + this.settings.theme;
    }),
    (e.prototype._colorStyle = function () {
      return "color: " + this.settings.theme;
    }),
    (t.fn.contactUs = function (s) {
      var n = Array.prototype.slice.call(arguments, 1);
      return this.each(function () {
        var i = t(this),
          a = i.data("ar.contactus");
        a ||
          ((a = new e(this, "object" == typeof s && s)),
          i.data("ar.contactus", a)),
          "string" == typeof s && "_" !== s.charAt(0) && a[s].apply(a, n);
      });
    }),
    (t.fn.contactUs.Constructor = e);
})(jQuery);
var arCuMessages = ["Xin chào", "Tôi giúp được gì?"];
var arCuLoop = false;
var arCuCloseLastMessage = false;
var arCuPromptClosed = false;
var _arCuTimeOut = null;
var arCuDelayFirst = 2000;
var arCuTypingTime = 2000;
var arCuMessageTime = 4000;
var arCuClosedCookie = 0;
var arcItems = [];
window.addEventListener("load", function () {
  arCuClosedCookie = arCuGetCookie("arcu-closed");
  jQuery("#arcontactus").on("arcontactus.init", function () {
    if (arCuClosedCookie) {
      return false;
    }
    // arCuShowMessages();
  });
  jQuery("#arcontactus").on("arcontactus.openMenu", function () {
    clearTimeout(_arCuTimeOut);
    arCuPromptClosed = true;
    jQuery("#contact").contactUs("hidePrompt");
    arCuCreateCookie("arcu-closed", 1, 30);
  });
  jQuery("#arcontactus").on("arcontactus.hidePrompt", function () {
    clearTimeout(_arCuTimeOut);
    arCuPromptClosed = true;
    arCuCreateCookie("arcu-closed", 1, 30);
  });
  var arcItem = {};
  arcItem.id = "msg-item-1";
  arcItem.class = "msg-item-facebook-messenger";
  arcItem.title = "Messenger";
  arcItem.icon =
    '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 32C15.9 32-77.5 278 84.6 400.6V480l75.7-42c142.2 39.8 285.4-59.9 285.4-198.7C445.8 124.8 346.5 32 224 32zm23.4 278.1L190 250.5 79.6 311.6l121.1-128.5 57.4 59.6 110.4-61.1-121.1 128.5z"></path></svg>';
  arcItem.href = "https://www.facebook.com/profile.php?id=100008869470140";
  arcItem.color = "#567AFF";
  arcItems.push(arcItem);
  var arcItem = {};
  arcItem.id = "msg-item-9";
  arcItem.class = "msg-item-telegram-plane";
  arcItem.title = "Zalo Chat";
  arcItem.icon =
  '<svg width="448" height="512" viewBox="0 0 448 512" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M130.136 32.1618C114.679 31.815 99.1223 31.8294 83.8248 34.243C62.0559 37.2781 41.3561 48.0021 26.7376 64.4928C8.27672 83.9607 1.32863 111.421 1.01083 137.668C0.99639 216.19 0.99639 294.712 1.01083 373.248C1.58864 390.259 3.81319 407.617 11.2524 423.139C23.5308 449.993 49.2432 470.082 78.2056 475.704C98.4813 479.538 119.183 479.152 139.748 478.769C142.522 478.717 145.295 478.665 148.063 478.624C156.151 479.048 164.267 478.981 172.386 478.914C177.563 478.871 182.742 478.828 187.917 478.913C211.022 478.905 234.127 478.906 257.232 478.906C280.336 478.906 303.441 478.906 326.546 478.898C341.57 479.086 356.693 478.407 371.442 475.358C397.732 469.75 421.104 452.233 433.99 428.646C445.069 408.542 447.51 384.97 446.918 362.38L445.777 363.623C425.193 386.661 397.515 402.255 368.582 412.343C329.595 425.64 287.833 429.918 246.852 426.796C205.872 423.269 164.573 412.56 129.818 389.898C112.051 397.804 92.4487 401.677 72.9909 400.073C72.6558 399.724 72.324 399.374 71.9923 399.025C71.6379 398.651 71.2835 398.278 70.9255 397.905C81.4992 386.603 89.3138 371.702 88.6927 355.891C88.6307 350.608 85.7714 346.357 82.933 342.138C81.811 340.47 80.6923 338.807 79.751 337.087C59.9039 303.167 50.5432 263.927 48.5498 224.905C46.5419 176.979 55.3968 127.536 79.6935 85.724C91.8131 64.8396 108.584 46.6435 128.807 33.3903L130.136 32.1618Z" fill="currentColor"/> <path d="M314.514 178.453H295.909C295.96 192.212 295.937 205.975 295.913 219.736V219.737C295.877 240.624 295.841 261.509 296.067 282.384C297.709 288.193 303.39 287.815 308.709 287.461L308.721 287.46C310.795 287.322 312.812 287.189 314.514 287.428C314.413 251.108 314.413 214.773 314.514 178.453Z" fill="currentColor"/> <path d="M131.383 179.688C123.034 179.71 114.683 179.732 106.33 179.74L106.323 181.283V181.285C106.296 186.9 106.269 192.526 106.388 198.138C119.691 197.994 133 198.016 146.308 198.039H146.313C152.93 198.05 159.547 198.061 166.162 198.052C154.997 212.161 143.728 226.193 132.457 240.226L132.453 240.23V240.231L132.444 240.242C124.149 250.569 115.855 260.896 107.602 271.255C103.752 275.639 103.673 281.724 103.601 287.236L103.6 287.327C118.448 287.482 133.3 287.462 148.154 287.441H148.156C159.487 287.425 170.82 287.409 182.153 287.471C182.405 287.469 182.662 287.468 182.922 287.468H182.925C185.743 287.462 188.923 287.455 190.748 284.942C192.972 281.968 192.798 278.28 192.626 274.654L192.625 274.641C192.553 273.091 192.48 271.551 192.597 270.084C186.608 270.084 180.618 270.091 174.629 270.098C159.687 270.116 144.746 270.134 129.804 270.041C139.544 257.9 149.186 245.681 158.828 233.462L158.829 233.46C168.677 220.98 178.525 208.5 188.48 196.1C192.265 191.533 192.582 185.376 192.785 179.725C172.32 179.582 151.862 179.635 131.395 179.688H131.383Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M409.563 233.216C403.886 212.779 381.381 199.15 360.637 203.79C348.301 206.405 337.251 214.658 331.53 225.946C324.784 238.737 325.232 255.01 332.657 267.44C342.119 284.263 363.96 292.66 382.204 286.228C403.684 279.753 416.684 254.475 409.563 233.216ZM345.759 254.519C340.818 242.075 347.637 226.668 360.291 222.202C372.916 217.028 388.589 224.514 392.633 237.493C397.472 250.602 389.224 266.601 375.574 269.868C363.613 273.481 349.847 266.283 345.759 254.519Z" fill="currentColor"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M249.829 204.859C234.43 200.451 216.952 206.55 206.97 218.921C193.781 234.56 194.518 259.649 208.747 274.377C222.094 289.582 247.329 292.414 263.393 279.927C263.568 280.321 263.738 280.728 263.909 281.14C264.881 283.477 265.914 285.96 268.42 286.98C271.313 287.577 274.275 287.523 277.234 287.469C278.574 287.445 279.914 287.421 281.247 287.457C281.174 260.271 281.203 233.1 281.232 205.929C278.604 205.942 275.979 205.945 273.354 205.949L272.623 205.95H272.611L271.929 205.951C269.214 205.954 266.499 205.958 263.782 205.972C263.804 206.65 263.84 207.662 263.876 208.675C263.913 209.693 263.949 210.711 263.971 211.392C259.522 208.689 254.913 206.145 249.829 204.859ZM217.399 256.947C210.624 244.517 217.11 227.275 230.487 222.564C242.563 217.418 257.716 224.269 262.208 236.496C266.845 247.741 261.861 261.803 251.071 267.469C239.443 274.146 223.177 269.058 217.399 256.947Z" fill="currentColor"/> </svg>'
  arcItem.href = "https://zalo.me/0937018559";
  arcItem.color = "#0068FF";
  arcItems.push(arcItem);
  var arcItem = {};
  arcItem.id = "msg-item-6";
  arcItem.class = "msg-item-skype";
  arcItem.title = "LinkedIn";
  arcItem.icon =
    '<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M207.415 208.418H173.78V155.745C173.78 143.184 173.556 127.015 156.287 127.015C138.769 127.015 136.089 140.7 136.089 154.83V208.415H102.455V100.096H134.744V114.899H135.196C141.779 103.642 154.021 96.918 167.054 97.4017C201.143 97.4017 207.429 119.825 207.429 148.996L207.415 208.418ZM64.504 85.2896C53.7243 85.2916 44.984 76.5543 44.9821 65.7743C44.9802 54.9943 53.7173 46.2539 64.497 46.252C75.2767 46.25 84.017 54.9873 84.0189 65.7673C84.0198 70.944 81.9643 75.9091 78.3046 79.5702C74.6448 83.2314 69.6806 85.2887 64.504 85.2896ZM81.3212 208.418H47.6518V100.096H81.3212V208.418ZM224.183 15.0169H30.7506C21.6086 14.9138 14.1116 22.2369 14 31.379V225.618C14.1078 234.764 21.6042 242.095 30.7506 241.999H224.183C233.347 242.112 240.873 234.782 241 225.618V31.365C240.869 22.2048 233.343 14.8821 224.183 15.0014" fill="currentColor"/> </svg>';
  arcItem.href = "https://www.linkedin.com/in/nguyenvancuong-supplychainmanagement/";
  arcItem.color = "#1C9CC5";
  arcItems.push(arcItem);
  jQuery("#arcontactus").contactUs({
    items: arcItems,
  });
});
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File