vue-intergrall-plugins 0.0.141 → 0.0.145

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.
@@ -7481,12 +7481,16 @@ var script$3 = {
7481
7481
  AnexoMensagem,
7482
7482
  InteratividadeBotoes
7483
7483
  },
7484
- props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply"],
7484
+ props: ["smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao"],
7485
7485
 
7486
7486
  data() {
7487
7487
  return {
7488
7488
  strTooltipAux: "",
7489
7489
  linkAux: "",
7490
+ urlSticker: "",
7491
+ urlFileName: "",
7492
+ message: "",
7493
+ reply: "reply",
7490
7494
  center: {},
7491
7495
  marker: {},
7492
7496
  infos: [],
@@ -7531,15 +7535,73 @@ var script$3 = {
7531
7535
  return this.contentTooltip = msg;
7532
7536
  }
7533
7537
 
7538
+ },
7539
+
7540
+ contentTooltipStar() {
7541
+ let tooltipStar = "";
7542
+
7543
+ if (this.iniDialogo == 1) {
7544
+ tooltipStar += this.dictionary['ini_sessao'] + "<br/>";
7545
+ tooltipStar += this.dictionary['id_conversa'] + " - " + this.dialogoId + "<br/>";
7546
+ tooltipStar += this.dictionary['origem_conversa'] + " - " + this.dialogoOrigem + "<br/>";
7547
+ tooltipStar += this.dictionary['expiracao_sessao'] + " - " + formataTimezoneData(this.expSessao) + "<br/>";
7548
+ return tooltipStar;
7549
+ }
7550
+
7551
+ return tooltipStar;
7534
7552
  }
7553
+
7535
7554
  },
7536
7555
 
7537
7556
  mounted() {
7538
7557
  if (this.mapa) this.setMap();
7539
7558
  if (this.corMsg) this.setCorMsg();
7559
+ this.setClasses();
7560
+ this.validadeUrlToMsg();
7540
7561
  },
7541
7562
 
7542
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(`STICKER ${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("STICKER https://smarters") === 0) {
7593
+ return true;
7594
+ }
7595
+
7596
+ return false;
7597
+ },
7598
+
7599
+ setClasses() {
7600
+ if (this.hasReply && (this.status == "C" || this.status == "T") && this.iniDialogo == 0) {
7601
+ this.reply = "reply reply-with-2-icons";
7602
+ }
7603
+ },
7604
+
7543
7605
  setCorMsg() {
7544
7606
  try {
7545
7607
  const root = document.documentElement;
@@ -7629,6 +7691,12 @@ var __vue_render__$3 = function () {
7629
7691
  "abrir-imagem": _vm.abrirImagem
7630
7692
  }
7631
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
+ }
7632
7700
  }) : _vm._e(), _vm._v(" "), _vm.mapa ? _c('div', {
7633
7701
  staticClass: "mensagem-div-mapa"
7634
7702
  }, [_c('GmapMap', {
@@ -7666,7 +7734,7 @@ var __vue_render__$3 = function () {
7666
7734
  })], 1)], 2);
7667
7735
  }), 0) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('p', {
7668
7736
  domProps: {
7669
- "innerHTML": _vm._s(_vm.formatMsg(_vm.msg))
7737
+ "innerHTML": _vm._s(_vm.formatMsg(_vm.message))
7670
7738
  }
7671
7739
  }), _vm._v(" "), _vm.interatividade ? _c('InteratividadeBotoes', {
7672
7740
  attrs: {
@@ -7687,7 +7755,7 @@ var __vue_render__$3 = function () {
7687
7755
  name: "tippy",
7688
7756
  rawName: "v-tippy"
7689
7757
  }],
7690
- staticClass: "reply",
7758
+ class: _vm.reply,
7691
7759
  attrs: {
7692
7760
  "content": _vm.msgReply ? _vm.msgReply : 'Fazer reenvio da mensagem'
7693
7761
  },
@@ -7705,6 +7773,25 @@ var __vue_render__$3 = function () {
7705
7773
  "name": "fade",
7706
7774
  "mode": "out-in"
7707
7775
  }
7776
+ }, [_vm.iniDialogo == 1 ? _c('span', {
7777
+ directives: [{
7778
+ name: "tippy",
7779
+ rawName: "v-tippy"
7780
+ }],
7781
+ key: "star-padrao",
7782
+ staticClass: "star dourado",
7783
+ attrs: {
7784
+ "content": _vm.contentTooltipStar
7785
+ }
7786
+ }, [_c('fa-icon', {
7787
+ attrs: {
7788
+ "icon": ['fas', 'star']
7789
+ }
7790
+ })], 1) : _vm._e()]), _vm._v(" "), _c('transition', {
7791
+ attrs: {
7792
+ "name": "fade",
7793
+ "mode": "out-in"
7794
+ }
7708
7795
  }, [_vm.status == 'D' ? _c('span', {
7709
7796
  directives: [{
7710
7797
  name: "tippy",
@@ -7816,8 +7903,8 @@ var __vue_staticRenderFns__$3 = [];
7816
7903
 
7817
7904
  const __vue_inject_styles__$3 = function (inject) {
7818
7905
  if (!inject) return;
7819
- inject("data-v-8155b550_0", {
7820
- 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:30px;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}.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}.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-12c3ee62_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}",
7821
7908
  map: undefined,
7822
7909
  media: undefined
7823
7910
  });