vue-intergrall-plugins 0.0.255 → 0.0.256

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.
@@ -4073,10 +4073,10 @@ var script$p = {
4073
4073
  });
4074
4074
  }
4075
4075
 
4076
- if (sizeInMb >= 9.5) {
4076
+ if (sizeInMb >= 15) {
4077
4077
  this.file = [];
4078
4078
  return this.$toasted.global.defaultInfo({
4079
- msg: `Limite de 9.5 MB por arquivo`
4079
+ msg: `Limite de 15 MB por arquivo`
4080
4080
  });
4081
4081
  }
4082
4082
 
@@ -4466,7 +4466,7 @@ var __vue_staticRenderFns__$p = [];
4466
4466
 
4467
4467
  const __vue_inject_styles__$p = function (inject) {
4468
4468
  if (!inject) return;
4469
- inject("data-v-0a31a0c7_0", {
4469
+ inject("data-v-0a2392ca_0", {
4470
4470
  source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
4471
4471
  map: undefined,
4472
4472
  media: undefined
@@ -10851,15 +10851,21 @@ function gerarVariaveisAnexo(anexos, storeObj) {
10851
10851
  mku,
10852
10852
  name
10853
10853
  } = anexos;
10854
- if (!type || !mku || !name) return anexos.tipoDoc || anexos.imgAnexo || anexos.docAnexo ? anexos : {
10855
- anexo: false,
10856
- imgAnexo: "",
10857
- tipoDoc: "",
10858
- docAnexo: "",
10859
- nomeArquivo: "",
10860
- audio: false,
10861
- video: false
10862
- };
10854
+ let ignoreMku = false;
10855
+
10856
+ if (!type || !mku || !name) {
10857
+ if (anexos.anexo) {
10858
+ ignoreMku = true;
10859
+ imgAnexo = anexos.imgAnexo ? anexos.imgAnexo : '';
10860
+ tipoDoc = anexos.tipoDoc ? anexos.tipoDoc : '';
10861
+ docAnexo = anexos.docAnexo ? anexos.docAnexo : '';
10862
+ nomeArquivo = anexos.nomeArquivo ? anexos.nomeArquivo : '';
10863
+ audio = anexos.audio ? anexos.audio : false;
10864
+ } else {
10865
+ return anexos;
10866
+ }
10867
+ }
10868
+
10863
10869
  let tipoAnexo = regexAnexos.exec(type);
10864
10870
  tipoAnexo = !tipoAnexo ? type : tipoAnexo[1];
10865
10871
  if (type === "application/octet-stream") audio = true;
@@ -10869,8 +10875,11 @@ function gerarVariaveisAnexo(anexos, storeObj) {
10869
10875
  case "jpg":
10870
10876
  case "png":
10871
10877
  case "jpeg":
10872
- imgAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10873
- nomeArquivo = name;
10878
+ if (!ignoreMku) {
10879
+ imgAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10880
+ nomeArquivo = name;
10881
+ }
10882
+
10874
10883
  break;
10875
10884
 
10876
10885
  case "audio/ogg":
@@ -10891,8 +10900,11 @@ function gerarVariaveisAnexo(anexos, storeObj) {
10891
10900
  tipoDoc = `audio/mpeg`;
10892
10901
  }
10893
10902
 
10894
- docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10895
- nomeArquivo = name;
10903
+ if (!ignoreMku) {
10904
+ docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10905
+ nomeArquivo = name;
10906
+ }
10907
+
10896
10908
  audio = true;
10897
10909
  break;
10898
10910
 
@@ -10907,15 +10919,22 @@ function gerarVariaveisAnexo(anexos, storeObj) {
10907
10919
  tipoDoc = "video/webm";
10908
10920
  }
10909
10921
 
10910
- docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10911
- nomeArquivo = name;
10922
+ if (!ignoreMku) {
10923
+ docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10924
+ nomeArquivo = name;
10925
+ }
10926
+
10912
10927
  video = true;
10913
10928
  break;
10914
10929
 
10915
10930
  default:
10916
10931
  tipoDoc = type;
10917
- docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10918
- nomeArquivo = name;
10932
+
10933
+ if (!ignoreMku) {
10934
+ docAnexo = `${dominio}/callcenter/docs.php?mku=${mku}`;
10935
+ nomeArquivo = name;
10936
+ }
10937
+
10919
10938
  break;
10920
10939
  }
10921
10940