vue-intergrall-plugins 1.0.71 → 1.0.73

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.
@@ -10958,7 +10958,9 @@ var script$1 = {
10958
10958
  openMessage: false,
10959
10959
  actionsOpen: false,
10960
10960
  showInfos: false,
10961
- isIframeLoading: true
10961
+ isIframeLoading: true,
10962
+ hasError: false,
10963
+ errorCount: 0
10962
10964
  };
10963
10965
  },
10964
10966
  computed: {
@@ -11020,6 +11022,12 @@ var script$1 = {
11020
11022
  }, 15000);
11021
11023
  },
11022
11024
  methods: {
11025
+ handleTryAgain() {
11026
+ this.isOpen = true;
11027
+ this.isIframeLoading = true;
11028
+ this.hasError = false;
11029
+ this.$nextTick(this.updateIframeContent());
11030
+ },
11023
11031
  returnAuthorName() {
11024
11032
  if (!this.from || !this.from.length) return this.autor || '';
11025
11033
  const {
@@ -11073,6 +11081,21 @@ var script$1 = {
11073
11081
  const doc = iframe.contentDocument || iframe.contentWindow.document;
11074
11082
  const margin = 20;
11075
11083
  const value = doc.documentElement.offsetHeight > 400 ? doc.documentElement.offsetHeight + margin : doc.documentElement.offsetHeight;
11084
+ if (value === 0 || doc.documentElement.querySelector('body').innerHTML === '') {
11085
+ this.errorCount++;
11086
+ if (this.errorCount > 3) {
11087
+ this.hasError = true;
11088
+ if (this.isIframeLoading) this.isIframeLoading = false;
11089
+ return;
11090
+ }
11091
+ this.isIframeLoading = true;
11092
+ this.updateIframeContent();
11093
+ return;
11094
+ }
11095
+ if (this.hasError || this.errorCount > 0) {
11096
+ this.hasError = false;
11097
+ this.errorCount = 0;
11098
+ }
11076
11099
  iframe.style.height = `${value}px`;
11077
11100
  emailParent.style.minHeight = `${value}px`;
11078
11101
  }, 10);
@@ -11405,7 +11428,22 @@ var __vue_render__$1 = function () {
11405
11428
  }],
11406
11429
  ref: "emailIframeParent",
11407
11430
  staticClass: "email-content"
11408
- }, [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._v(" "), _c('iframe', {
11431
+ }, [_vm.isIframeLoading ? _c('VueLoader') : _vm._e(), _vm._v(" "), _vm.hasError ? _c('div', {
11432
+ staticClass: "email-error-content"
11433
+ }, [_c('p', [_vm._v("Erro ao carregar o e-mail")]), _vm._v(" "), _c('button', {
11434
+ staticClass: "box-shadow",
11435
+ on: {
11436
+ "click": function ($event) {
11437
+ return _vm.handleTryAgain();
11438
+ }
11439
+ }
11440
+ }, [_vm._v("Tentar novamente")])]) : _vm._e(), _vm._v(" "), _c('iframe', {
11441
+ directives: [{
11442
+ name: "show",
11443
+ rawName: "v-show",
11444
+ value: !_vm.hasError,
11445
+ expression: "!hasError"
11446
+ }],
11409
11447
  ref: "emailIframe",
11410
11448
  class: "email-html " + (_vm.isIframeLoading ? 'visibility-hidden' : '')
11411
11449
  }), _vm._v(" "), _vm.openMessage ? _c('span', {
@@ -11433,18 +11471,18 @@ var __vue_staticRenderFns__$1 = [];
11433
11471
  /* style */
11434
11472
  const __vue_inject_styles__$1 = function (inject) {
11435
11473
  if (!inject) return;
11436
- inject("data-v-ed28e152_0", {
11437
- source: ".show-y-top-enter-active[data-v-ed28e152],.show-y-top-leave-enter[data-v-ed28e152]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-ed28e152],.show-y-top-leave-to[data-v-ed28e152]{opacity:0;transform:translateY(-2%)}",
11474
+ inject("data-v-31b6e56a_0", {
11475
+ source: ".show-y-top-enter-active[data-v-31b6e56a],.show-y-top-leave-enter[data-v-31b6e56a]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-31b6e56a],.show-y-top-leave-to[data-v-31b6e56a]{opacity:0;transform:translateY(-2%)}",
11438
11476
  map: undefined,
11439
11477
  media: undefined
11440
- }), inject("data-v-ed28e152_1", {
11441
- source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-author.main{font-size:1.025rem}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:5px 0 0 0;font-size:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:0;top:30px;z-index:1}.email-actions.main{top:10px}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:.8rem}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}",
11478
+ }), inject("data-v-31b6e56a_1", {
11479
+ source: "@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.visibility-hidden{visibility:hidden}.box-shadow-active{box-shadow:0 0 4px 2px rgba(0,0,0,.25)}.bg-dark-white-2{background-color:#f7f7f7}.bg-white{background-color:#fff}.cursor-pointer{cursor:pointer}.email-overlay{width:100%;height:100%;background-color:transparent;z-index:1;position:absolute;top:0;left:0}.email-item{font-family:Roboto,sans-serif;flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%;overflow:hidden;position:relative}.email-item.outros{border-left:3px solid #33b8df}.email-author-name{margin:0 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-author.outros{color:#33b8df}.email-author.outros>svg:nth-child(1){transform:rotate(180deg)}.email-author.principal{color:#ebb552}.email-author.main{font-size:1.025rem}.email-item.principal{border-left:3px solid #ebb552}.email-item.info-open{overflow:visible}.email-header{width:100%;display:flex;flex-direction:column;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:visible}.header-container{display:flex;overflow:hidden;position:relative}.email-header-content{display:flex;align-items:center;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:5px 0 0 0;font-size:1.025rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:absolute;right:0;top:0;min-width:var(--width);width:var(--width);max-width:var(--width);display:flex;justify-content:flex-end;gap:3px;align-items:center}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:0;top:30px;z-index:1}.email-actions.main{top:10px}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;min-width:4px;min-height:4px;max-width:4px;max-height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%;margin-top:5px}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:5px;max-width:100%;min-width:250px;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap;flex:1;gap:5px}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-325px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-right:3px}.email-author{display:flex;align-items:center;height:5px;font-size:.75rem;font-weight:700;transform:translateY(-2px);width:100%;cursor:pointer}.email-subject-secondary{margin-top:-5px}.email-subject-span{font-size:.7rem;color:gray}.email-to-svg{font-size:.85rem}.email-custom-buttons{display:flex;gap:7px;position:absolute;top:5px;right:5px;z-index:1;font-size:.8rem}.menu-mensagem{cursor:pointer;padding:1px;opacity:.7;transition:opacity .1s ease-in-out}.menu-mensagem:active,.menu-mensagem:focus,.menu-mensagem:hover{opacity:1}.email-error-content{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:5px;padding:10px}.email-error-content p{margin:0;color:#e74c3c}.email-error-content button{border:1px solid #ccc;border-radius:3px;padding:5px 10px;background-color:#fff;cursor:pointer;transition:background-color 150ms ease-in-out}.email-error-content button:hover{background-color:#eee}",
11442
11480
  map: undefined,
11443
11481
  media: undefined
11444
11482
  });
11445
11483
  };
11446
11484
  /* scoped */
11447
- const __vue_scope_id__$1 = "data-v-ed28e152";
11485
+ const __vue_scope_id__$1 = "data-v-31b6e56a";
11448
11486
  /* module identifier */
11449
11487
  const __vue_module_identifier__$1 = undefined;
11450
11488
  /* functional template */