vue-intergrall-plugins 0.0.142 → 0.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7487,6 +7487,9 @@ var script$3 = {
7487
7487
  return {
7488
7488
  strTooltipAux: "",
7489
7489
  linkAux: "",
7490
+ urlSticker: "",
7491
+ urlFileName: "",
7492
+ message: "",
7490
7493
  reply: "reply",
7491
7494
  center: {},
7492
7495
  marker: {},
@@ -7554,9 +7557,45 @@ var script$3 = {
7554
7557
  if (this.mapa) this.setMap();
7555
7558
  if (this.corMsg) this.setCorMsg();
7556
7559
  this.setClasses();
7560
+ this.validadeUrlToMsg();
7557
7561
  },
7558
7562
 
7559
7563
  methods: {
7564
+ validadeUrlToMsg() {
7565
+ this.message = this.msg;
7566
+
7567
+ if (this.validadeIfExistsSticker()) {
7568
+ this.urlSticker = this.getUrlSticker();
7569
+ this.urlFileName = this.getUrlFileName();
7570
+ this.message = this.removeUrlStickerByString(this.urlSticker);
7571
+ }
7572
+ },
7573
+
7574
+ getUrlFileName() {
7575
+ let urlRegex = /(?<=\/)[^\/\?#]+(?=[^\/]*$)/;
7576
+ let urlName = this.urlSticker.match(urlRegex)[0];
7577
+ return urlName;
7578
+ },
7579
+
7580
+ removeUrlStickerByString(url) {
7581
+ let msg = this.message.replace(`KSTICKERK ${url}`, '');
7582
+ return msg;
7583
+ },
7584
+
7585
+ getUrlSticker() {
7586
+ let urlRegex = /(https?:\/\/[^ ]*)/;
7587
+ let url = this.message.match(urlRegex)[1];
7588
+ return url;
7589
+ },
7590
+
7591
+ validadeIfExistsSticker() {
7592
+ if (this.message && this.message.indexOf("KSTICKERK https://smarters") === 0) {
7593
+ return true;
7594
+ }
7595
+
7596
+ return false;
7597
+ },
7598
+
7560
7599
  setClasses() {
7561
7600
  if (this.hasReply && (this.status == "C" || this.status == "T") && this.iniDialogo == 0) {
7562
7601
  this.reply = "reply reply-with-2-icons";
@@ -7652,6 +7691,12 @@ var __vue_render__$3 = function () {
7652
7691
  "abrir-imagem": _vm.abrirImagem
7653
7692
  }
7654
7693
  })], 1);
7694
+ }) : _vm._e(), _vm._v(" "), _vm.urlSticker ? _c('img', {
7695
+ staticClass: "default-stick-size",
7696
+ attrs: {
7697
+ "src": _vm.urlSticker,
7698
+ "title": _vm.urlFileName
7699
+ }
7655
7700
  }) : _vm._e(), _vm._v(" "), _vm.mapa ? _c('div', {
7656
7701
  staticClass: "mensagem-div-mapa"
7657
7702
  }, [_c('GmapMap', {
@@ -7689,7 +7734,7 @@ var __vue_render__$3 = function () {
7689
7734
  })], 1)], 2);
7690
7735
  }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
7691
7736
  domProps: {
7692
- "innerHTML": _vm._s(_vm.formatMsg(_vm.msg))
7737
+ "innerHTML": _vm._s(_vm.formatMsg(_vm.message))
7693
7738
  }
7694
7739
  }), _vm._v(" "), _vm.interatividade ? _c('InteratividadeBotoes', {
7695
7740
  attrs: {
@@ -7858,8 +7903,8 @@ var __vue_staticRenderFns__$3 = [];
7858
7903
 
7859
7904
  const __vue_inject_styles__$3 = function (inject) {
7860
7905
  if (!inject) return;
7861
- inject("data-v-c1e72e34_0", {
7862
- source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:3px;font-size:.7rem}.star.dourado svg{color:gold}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros .check{display:none}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
7906
+ inject("data-v-6c90394f_0", {
7907
+ source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:3px;font-size:.7rem}.star.dourado svg{color:gold}.default-stick-size{width:250px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros .check{display:none}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
7863
7908
  map: undefined,
7864
7909
  media: undefined
7865
7910
  });