vue-intergrall-plugins 0.0.186 → 0.0.189
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var vue=require('vue'),http=require('http'),https=require('https'),url=require('url'),stream=require('stream'),assert=require('assert'),tty=require('tty'),util=require('util'),os=require('os'),zlib=require('zlib')
|
|
1
|
+
'use strict';var vue=require('vue'),http=require('http'),https=require('https'),url=require('url'),stream=require('stream'),assert=require('assert'),tty=require('tty'),util=require('util'),os=require('os'),zlib=require('zlib');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var vue__default=/*#__PURE__*/_interopDefaultLegacy(vue);var http__default=/*#__PURE__*/_interopDefaultLegacy(http);var https__default=/*#__PURE__*/_interopDefaultLegacy(https);var url__default=/*#__PURE__*/_interopDefaultLegacy(url);var stream__default=/*#__PURE__*/_interopDefaultLegacy(stream);var assert__default=/*#__PURE__*/_interopDefaultLegacy(assert);var tty__default=/*#__PURE__*/_interopDefaultLegacy(tty);var util__default=/*#__PURE__*/_interopDefaultLegacy(util);var os__default=/*#__PURE__*/_interopDefaultLegacy(os);var zlib__default=/*#__PURE__*/_interopDefaultLegacy(zlib);function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
2
|
try {
|
|
3
3
|
var info = gen[key](arg);
|
|
4
4
|
var value = info.value;
|
|
@@ -4929,9 +4929,7 @@ var Cancel_1 = Cancel;var defaults$1 = defaults_1;var xhr = function xhrAdapter(
|
|
|
4929
4929
|
// Send the request
|
|
4930
4930
|
request.send(requestData);
|
|
4931
4931
|
});
|
|
4932
|
-
};
|
|
4933
|
-
|
|
4934
|
-
function createCommonjsModule(fn, basedir, module) {
|
|
4932
|
+
};function createCommonjsModule(fn, basedir, module) {
|
|
4935
4933
|
return module = {
|
|
4936
4934
|
path: basedir,
|
|
4937
4935
|
exports: {},
|
|
@@ -5139,7 +5137,7 @@ function setup(env) {
|
|
|
5139
5137
|
|
|
5140
5138
|
/**
|
|
5141
5139
|
* Selects a color for a debug namespace
|
|
5142
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
5140
|
+
* @param {String} namespace The namespace string for the for the debug instance to be colored
|
|
5143
5141
|
* @return {Number|String} An ANSI color code for the given namespace
|
|
5144
5142
|
* @api private
|
|
5145
5143
|
*/
|
|
@@ -11128,37 +11126,12 @@ var __vue_component__$7 = /*#__PURE__*/normalizeComponent({
|
|
|
11128
11126
|
staticRenderFns: __vue_staticRenderFns__$4
|
|
11129
11127
|
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, createInjectorSSR, undefined);
|
|
11130
11128
|
|
|
11131
|
-
var InteratividadeBotoes = __vue_component__$7
|
|
11132
|
-
try {
|
|
11133
|
-
var url = '';
|
|
11134
|
-
console.log(link);
|
|
11135
|
-
linkPreviewJs.getLinkPreview(link, {
|
|
11136
|
-
headers: {
|
|
11137
|
-
"Access-Control-Allow-Origin": "*"
|
|
11138
|
-
}
|
|
11139
|
-
}).then(function (data) {
|
|
11140
|
-
console.log(data);
|
|
11141
|
-
|
|
11142
|
-
if (data.images && data.images.length > 0) {
|
|
11143
|
-
url = data.images;
|
|
11144
|
-
return url;
|
|
11145
|
-
}
|
|
11146
|
-
|
|
11147
|
-
return false;
|
|
11148
|
-
});
|
|
11149
|
-
} catch (error) {
|
|
11150
|
-
console.log(error);
|
|
11151
|
-
}
|
|
11152
|
-
}var linkPrevue_umd_min = createCommonjsModule(function (module, exports) {
|
|
11153
|
-
(function(t,e){module.exports=e();})("undefined"!==typeof self?self:commonjsGlobal,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n});},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"0cfc":function(t,e,r){var n=r("81e7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("499e").default;i("4bf9c9d1",n,!0,{sourceMap:!1,shadowMode:!1});},"24fb":function(t,e,r){function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var o=i(n),a=n.sources.map((function(t){return "/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return [r].concat(a).concat([o]).join("\n")}return [r].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return "/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0);}for(var s=0;s<t.length;s++){var d=[].concat(t[s]);n&&i[d[0]]||(r&&(d[2]?d[2]="".concat(r," and ").concat(d[2]):d[2]=r),e.push(d));}},e};},"499e":function(t,e,r){function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],a=o[0],s=o[1],d=o[2],c=o[3],u={id:t+":"+i,css:s,media:d,sourceMap:c};n[a]?n[a].parts.push(u):r.push(n[a]={id:a,parts:[u]});}return r}r.r(e),r.d(e,"default",(function(){return v}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,d=0,c=!1,u=function(){},l=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,r,i){c=r,l=i||{};var a=n(t,e);return h(a),function(e){for(var r=[],i=0;i<a.length;i++){var s=a[i],d=o[s.id];d.refs--,r.push(d);}e?(a=n(t,e),h(a)):a=[];for(i=0;i<r.length;i++){d=r[i];if(0===d.refs){for(var c=0;c<d.parts.length;c++)d.parts[c]();delete o[d.id];}}}}function h(t){for(var e=0;e<t.length;e++){var r=t[e],n=o[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(g(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length);}else {var a=[];for(i=0;i<r.parts.length;i++)a.push(g(r.parts[i]));o[r.id]={id:r.id,refs:1,parts:a};}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,r,n=document.querySelector("style["+f+'~="'+t.id+'"]');if(n){if(c)return u;n.parentNode.removeChild(n);}if(p){var i=d++;n=s||(s=m()),e=y.bind(null,n,i,!1),r=y.bind(null,n,i,!0);}else n=m(),e=x.bind(null,n),r=function(){n.parentNode.removeChild(n);};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n);}else r();}}var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function y(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else {var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o);}}function x(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),l.ssrId&&t.setAttribute(f,e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else {while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r));}}},"57d8":function(t,e,r){var n=r("0cfc"),i=r.n(n);i.a;},"81e7":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Hind+Siliguri:400,600);"]),e.push([t.i,".wrapper[data-v-b618d680]{overflow:auto;border-radius:7px 7px 7px 7px;background-color:#fff;box-shadow:0 14px 32px 0 rgba(0,0,0,.15)}.card-img[data-v-b618d680]{width:100%}.card-img img[data-v-b618d680]{width:100%;border-radius:7px 7px 0 0}img[data-v-b618d680]{vertical-align:middle;border-style:none}.card-info[data-v-b618d680]{border-radius:0 0 7px 7px;background-color:#fff}.card-text[data-v-b618d680]{width:80%;margin:0 auto;text-align:justify}.card-text h1[data-v-b618d680]{font-size:24px;color:#474747;margin:5px 0 5px 0}.card-text h1[data-v-b618d680],.card-text p[data-v-b618d680]{text-align:center;font-family:Hind Siliguri,sans-serif}.card-text p[data-v-b618d680]{color:#8d8d8d;font-size:15px;overflow:hidden;margin:0}.card-btn[data-v-b618d680]{margin:1em 0 1em 0;position:relative;text-align:center}.card-btn a[data-v-b618d680]{border-radius:2em;font-family:Hind Siliguri,sans-serif;font-size:14px;letter-spacing:.1em;color:#fff;background-color:#ffa9be;padding:10px 20px 10px 20px;text-align:center;display:inline-block;text-decoration:none!important;transition:all .2s ease-in-out}.card-btn a[data-v-b618d680]:hover{background-color:#ff8fab}.spinner[data-v-b618d680]{margin-top:40%;margin-left:45%;height:28px;width:28px;-webkit-animation:rotate-data-v-b618d680 .8s linear infinite;animation:rotate-data-v-b618d680 .8s linear infinite;border:5px solid #868686;border-right-color:transparent;border-radius:50%}@-webkit-keyframes rotate-data-v-b618d680{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rotate-data-v-b618d680{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]),t.exports=e;},8875:function(t,e,r){var n,i,o;(function(r,a){i=[],n=a,o="function"===typeof n?n.apply(e,i):n,void 0===o||(t.exports=o);})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(p.stack)||a.exec(p.stack),d=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===u&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(n,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===d)return l[f];if(d===u&&l[f].innerHTML&&l[f].innerHTML.trim()===i)return l[f]}return null}}return t}));},fb15:function(t,e,r){if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,i=r("8875");n=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1]);}var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[!t.response&&t.validUrl?r("div",{style:{width:t.cardWidth},attrs:{id:"loader-container"}},[t._t("loading",[r("div",{staticClass:"spinner"})])],2):t._e(),t.response?r("div",[t._t("default",[r("div",{staticClass:"wrapper",style:{width:t.cardWidth}},[r("div",{staticClass:"card-img"},[r("img",{attrs:{src:t.response.image}})]),r("div",{staticClass:"card-info"},[r("div",{staticClass:"card-text"},[r("h1",[t._v(t._s(t.response.title))]),r("p",[t._v(t._s(t.response.description))])]),r("div",{staticClass:"card-btn"},[t.showButton?r("a",{attrs:{href:"javascript:;"},on:{click:t.viewMore}},[t._v("View More")]):t._e()])])])],{img:t.response.image,title:t.response.title,description:t.response.description,url:t.url})],2):t._e()])},s=[],d={name:"link-prevue",props:{url:{type:String,default:""},cardWidth:{type:String,default:"400px"},onButtonClick:{type:Function,default:void 0},showButton:{type:Boolean,default:!0},apiUrl:{type:String,default:"https://link-prevue-api-v2.herokuapp.com/preview/"}},watch:{url:function(){this.response=null,this.getLinkPreview();}},created:function(){this.getLinkPreview();},data:function(){return {response:null,validUrl:!1}},methods:{viewMore:function(){if(void 0!==this.onButtonClick)this.onButtonClick(this.response);else {var t=window.open(this.url,"_blank");t.focus();}},isValidUrl:function(t){var e=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/;return this.validUrl=e.test(t),this.validUrl},getLinkPreview:function(){var t=this;this.isValidUrl(this.url)&&this.httpRequest((function(e){t.response=JSON.parse(e);}),(function(){t.response=null,t.validUrl=!1;}));},httpRequest:function(t,e){var r=new XMLHttpRequest,n="url="+this.url;r.open("POST",this.apiUrl,!0),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&t(r.responseText),4===r.readyState&&500===r.status&&e();},r.send(n);}}},c=d;r("57d8");function u(t,e,r,n,i,o,a,s){var d,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a);},c._ssrRegister=d):i&&(d=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot);}:i),d)if(c.functional){c._injectStyles=d;var u=c.render;c.render=function(t,e){return d.call(e),u(t,e)};}else {var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,d):[d];}return {exports:t,options:c}}var l=u(c,a,s,!1,null,"b618d680",null),f=l.exports,p=f;e["default"]=p;}})}));
|
|
11154
|
-
|
|
11155
|
-
});//
|
|
11129
|
+
var InteratividadeBotoes = __vue_component__$7;//
|
|
11156
11130
|
var script$3 = {
|
|
11157
11131
|
components: {
|
|
11158
11132
|
AnexoMensagem: AnexoMensagem,
|
|
11159
11133
|
InteratividadeBotoes: InteratividadeBotoes,
|
|
11160
|
-
InteratividadeFormulario: InteratividadeFormulario
|
|
11161
|
-
LinkPrevue: linkPrevue_umd_min
|
|
11134
|
+
InteratividadeFormulario: InteratividadeFormulario
|
|
11162
11135
|
},
|
|
11163
11136
|
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"],
|
|
11164
11137
|
data: function data() {
|
|
@@ -11180,8 +11153,7 @@ var script$3 = {
|
|
|
11180
11153
|
rotateControl: false,
|
|
11181
11154
|
fullscreenControl: false,
|
|
11182
11155
|
disableDefaultUI: false
|
|
11183
|
-
}
|
|
11184
|
-
linkPreview: ""
|
|
11156
|
+
}
|
|
11185
11157
|
};
|
|
11186
11158
|
},
|
|
11187
11159
|
computed: {
|
|
@@ -11259,23 +11231,9 @@ var script$3 = {
|
|
|
11259
11231
|
this.urlFileName = this.getUrlFileName();
|
|
11260
11232
|
this.message = this.removeUrlStickerByString(this.urlSticker);
|
|
11261
11233
|
}
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
var link = [];
|
|
11266
|
-
link = this.message.match(linkRegex);
|
|
11267
|
-
|
|
11268
|
-
if (!link || link.length == 0) {
|
|
11269
|
-
return;
|
|
11270
|
-
}
|
|
11271
|
-
|
|
11272
|
-
var urlImage = getPreview(link[0]);
|
|
11273
|
-
|
|
11274
|
-
if (urlImage) {
|
|
11275
|
-
this.urlSticker = urlImage;
|
|
11276
|
-
}
|
|
11277
|
-
}
|
|
11278
|
-
} catch (error) {}
|
|
11234
|
+
} catch (error) {
|
|
11235
|
+
console.error("Error validating url to msg: ", error);
|
|
11236
|
+
}
|
|
11279
11237
|
},
|
|
11280
11238
|
getUrlFileName: function getUrlFileName() {
|
|
11281
11239
|
var urlRegex = /(?<=\/)[^\/\?#]+(?=[^\/]*$)/;
|
|
@@ -11291,18 +11249,8 @@ var script$3 = {
|
|
|
11291
11249
|
var url = this.message.match(urlRegex)[1];
|
|
11292
11250
|
return url;
|
|
11293
11251
|
},
|
|
11294
|
-
validadeIfExistsUrl: function validadeIfExistsUrl() {
|
|
11295
|
-
if (this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false) {
|
|
11296
|
-
return true;
|
|
11297
|
-
}
|
|
11298
|
-
|
|
11299
|
-
return false;
|
|
11300
|
-
},
|
|
11301
11252
|
validadeIfExistsSticker: function validadeIfExistsSticker() {
|
|
11302
|
-
if (this.message && this.message.indexOf("KSTICKERK https://
|
|
11303
|
-
return true;
|
|
11304
|
-
}
|
|
11305
|
-
|
|
11253
|
+
if (this.message && this.message.indexOf("KSTICKERK https://") === 0) return true;
|
|
11306
11254
|
return false;
|
|
11307
11255
|
},
|
|
11308
11256
|
setCorMsg: function setCorMsg() {
|
|
@@ -11346,8 +11294,7 @@ var script$3 = {
|
|
|
11346
11294
|
},
|
|
11347
11295
|
formatMsg: function formatMsg(msg) {
|
|
11348
11296
|
var regex = /(\n| )/g;
|
|
11349
|
-
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
11350
|
-
|
|
11297
|
+
if (regex.test(msg)) msg = msg.replace(regex, "<br>");
|
|
11351
11298
|
return msg;
|
|
11352
11299
|
}
|
|
11353
11300
|
}
|
|
@@ -11621,7 +11568,7 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
11621
11568
|
})], 1) : _vm._e()]), _vm._v(" "), _c('span', {
|
|
11622
11569
|
staticClass: "autor-mensagem",
|
|
11623
11570
|
domProps: {
|
|
11624
|
-
"
|
|
11571
|
+
"innerHTML": _vm._s(_vm.autor)
|
|
11625
11572
|
}
|
|
11626
11573
|
})], 2)], 1) : _vm._e();
|
|
11627
11574
|
};
|
|
@@ -11631,8 +11578,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11631
11578
|
|
|
11632
11579
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11633
11580
|
if (!inject) return;
|
|
11634
|
-
inject("data-v-
|
|
11635
|
-
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:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;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
|
|
11581
|
+
inject("data-v-9a8addf6_0", {
|
|
11582
|
+
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:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;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>.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}",
|
|
11636
11583
|
map: undefined,
|
|
11637
11584
|
media: undefined
|
|
11638
11585
|
});
|
|
@@ -11643,7 +11590,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11643
11590
|
var __vue_scope_id__$3 = undefined;
|
|
11644
11591
|
/* module identifier */
|
|
11645
11592
|
|
|
11646
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11593
|
+
var __vue_module_identifier__$3 = "data-v-9a8addf6";
|
|
11647
11594
|
/* functional template */
|
|
11648
11595
|
|
|
11649
11596
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intergrall-plugins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.189",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/vue-intergrall-plugins.ssr.js",
|
|
6
6
|
"browser": "dist/vue-intergrall-plugins.esm.js",
|
|
@@ -61,9 +61,6 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"axios": "^0.26.0",
|
|
64
|
-
"kind-of": "^6.0.3"
|
|
65
|
-
"link-preview-generator": "^1.1.0",
|
|
66
|
-
"link-preview-js": "^2.1.13",
|
|
67
|
-
"link-prevue": "^1.2.0"
|
|
64
|
+
"kind-of": "^6.0.3"
|
|
68
65
|
}
|
|
69
66
|
}
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
</li>
|
|
30
30
|
</ul>
|
|
31
31
|
</div>
|
|
32
|
-
<!-- <LinkPrevue v-if="linkPreview && link" :url="linkPreview" /> -->
|
|
33
32
|
<p v-html="validateInterativity() ? '' : formatMsg(message)"></p>
|
|
34
33
|
<InteratividadeBotoes
|
|
35
34
|
v-if="interatividade"
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
<span class="check vermelho" v-else-if="status == 'T'" :content="contentTooltip" v-tippy key="hourglass"> <fa-icon :icon="['fas', 'hourglass']" /> </span> <!-- Status finalizador -->
|
|
62
61
|
</transition>
|
|
63
62
|
|
|
64
|
-
<span class="autor-mensagem" v-
|
|
63
|
+
<span class="autor-mensagem" v-html="autor"></span>
|
|
65
64
|
</div>
|
|
66
65
|
</div>
|
|
67
66
|
</template>
|
|
@@ -71,11 +70,9 @@ import AnexoMensagem from "./AnexoMensagem"
|
|
|
71
70
|
import InteratividadeBotoes from "./InteratividadeBotoes"
|
|
72
71
|
import InteratividadeFormulario from "./InteratividadeFormulario"
|
|
73
72
|
import { formataTimezoneData } from "../../services/textFormatting"
|
|
74
|
-
import { getPreview } from "../../services/previewImage"
|
|
75
|
-
import LinkPrevue from "link-prevue"
|
|
76
73
|
|
|
77
74
|
export default {
|
|
78
|
-
components: { AnexoMensagem, InteratividadeBotoes, InteratividadeFormulario
|
|
75
|
+
components: { AnexoMensagem, InteratividadeBotoes, InteratividadeFormulario },
|
|
79
76
|
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"],
|
|
80
77
|
data(){
|
|
81
78
|
return{
|
|
@@ -96,8 +93,7 @@ export default {
|
|
|
96
93
|
rotateControl: false,
|
|
97
94
|
fullscreenControl: false,
|
|
98
95
|
disableDefaultUI: false
|
|
99
|
-
}
|
|
100
|
-
linkPreview: ""
|
|
96
|
+
}
|
|
101
97
|
}
|
|
102
98
|
},
|
|
103
99
|
computed: {
|
|
@@ -171,20 +167,8 @@ export default {
|
|
|
171
167
|
this.urlFileName = this.getUrlFileName()
|
|
172
168
|
this.message = this.removeUrlStickerByString(this.urlSticker)
|
|
173
169
|
}
|
|
174
|
-
if(this.validadeIfExistsUrl()){
|
|
175
|
-
const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
|
|
176
|
-
let link = [];
|
|
177
|
-
link = this.message.match(linkRegex);
|
|
178
|
-
if(!link || link.length == 0){
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
let urlImage = getPreview(link[0]);
|
|
182
|
-
if(urlImage){
|
|
183
|
-
this.urlSticker = urlImage;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
170
|
} catch (error) {
|
|
187
|
-
|
|
171
|
+
console.error("Error validating url to msg: ", error)
|
|
188
172
|
}
|
|
189
173
|
},
|
|
190
174
|
getUrlFileName(){
|
|
@@ -201,17 +185,9 @@ export default {
|
|
|
201
185
|
let url = this.message.match(urlRegex)[1];
|
|
202
186
|
return url;
|
|
203
187
|
},
|
|
204
|
-
validadeIfExistsUrl(){
|
|
205
|
-
if(this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false){
|
|
206
|
-
return true;
|
|
207
|
-
}
|
|
208
|
-
return false;
|
|
209
|
-
},
|
|
210
188
|
validadeIfExistsSticker(){
|
|
211
|
-
if(this.message && this.message.indexOf("KSTICKERK https://
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
return false;
|
|
189
|
+
if(this.message && this.message.indexOf("KSTICKERK https://") === 0) return true
|
|
190
|
+
return false
|
|
215
191
|
},
|
|
216
192
|
setCorMsg() {
|
|
217
193
|
try {
|
|
@@ -250,7 +226,6 @@ export default {
|
|
|
250
226
|
formatMsg(msg) {
|
|
251
227
|
const regex = /(\n| )/g
|
|
252
228
|
if(regex.test(msg)) msg = msg.replace(regex, "<br>")
|
|
253
|
-
// if(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(msg) && this.link) this.setLinkPreview(msg)
|
|
254
229
|
return msg
|
|
255
230
|
},
|
|
256
231
|
}
|
|
@@ -434,9 +409,9 @@ export default {
|
|
|
434
409
|
left: -10px;
|
|
435
410
|
transform: rotate(90deg);
|
|
436
411
|
}
|
|
437
|
-
.mensagem__outros .check{
|
|
412
|
+
/* .mensagem__outros .check{
|
|
438
413
|
display: none
|
|
439
|
-
}
|
|
414
|
+
} */
|
|
440
415
|
.mensagem__outros > .autor-mensagem{
|
|
441
416
|
left: 5px;
|
|
442
417
|
color: #333;
|