vue-intergrall-plugins 0.0.270 → 0.0.272

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.
@@ -1908,6 +1908,26 @@ var createPopper = /*#__PURE__*/popperGenerator({
1908
1908
  //
1909
1909
  //
1910
1910
  //
1911
+ //
1912
+ //
1913
+ //
1914
+ //
1915
+ //
1916
+ //
1917
+ //
1918
+ //
1919
+ //
1920
+ //
1921
+ //
1922
+ //
1923
+ //
1924
+ //
1925
+ //
1926
+ //
1927
+ //
1928
+ //
1929
+ //
1930
+ //
1911
1931
  var script$y = {
1912
1932
  data: function data() {
1913
1933
  return {
@@ -1930,6 +1950,11 @@ var script$y = {
1930
1950
  required: false,
1931
1951
  default: true
1932
1952
  },
1953
+ hasSecondaryButton: {
1954
+ type: Boolean,
1955
+ required: false,
1956
+ default: false
1957
+ },
1933
1958
  allVariables: {
1934
1959
  type: Boolean,
1935
1960
  required: false,
@@ -2378,6 +2403,46 @@ var script$y = {
2378
2403
  }
2379
2404
  }
2380
2405
  return script;
2406
+ }function createInjectorSSR(context) {
2407
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2408
+ context = __VUE_SSR_CONTEXT__;
2409
+ }
2410
+ if (!context)
2411
+ return () => { };
2412
+ if (!('styles' in context)) {
2413
+ context._styles = context._styles || {};
2414
+ Object.defineProperty(context, 'styles', {
2415
+ enumerable: true,
2416
+ get: () => context._renderStyles(context._styles)
2417
+ });
2418
+ context._renderStyles = context._renderStyles || renderStyles;
2419
+ }
2420
+ return (id, style) => addStyle(id, style, context);
2421
+ }
2422
+ function addStyle(id, css, context) {
2423
+ const group = css.media || 'default' ;
2424
+ const style = context._styles[group] || (context._styles[group] = { ids: [], css: '' });
2425
+ if (!style.ids.includes(id)) {
2426
+ style.media = css.media;
2427
+ style.ids.push(id);
2428
+ let code = css.source;
2429
+ style.css += code + '\n';
2430
+ }
2431
+ }
2432
+ function renderStyles(styles) {
2433
+ let css = '';
2434
+ for (const key in styles) {
2435
+ const style = styles[key];
2436
+ css +=
2437
+ '<style data-vue-ssr-id="' +
2438
+ Array.from(style.ids).join(' ') +
2439
+ '"' +
2440
+ (style.media ? ' media="' + style.media + '"' : '') +
2441
+ '>' +
2442
+ style.css +
2443
+ '</style>';
2444
+ }
2445
+ return css;
2381
2446
  }/* script */
2382
2447
  var __vue_script__$y = script$y;
2383
2448
  /* template */
@@ -2391,9 +2456,9 @@ var __vue_render__$y = function __vue_render__() {
2391
2456
 
2392
2457
  return _c('div', {
2393
2458
  staticClass: "ts-container"
2394
- }, [_vm._ssrNode("<div class=\"ts-content\">", "</div>", _vm._l(_vm.template.components, function (component, cIndex) {
2395
- return _vm._ssrNode("<div" + _vm._ssrClass(null, "" + (component.type == 'footer' ? 'order-1 custom-box-shadow-bottom' : '') + (_vm.template.components.length == 1 ? 'custom-box-shadow-bottom' : '')) + ">", "</div>", [component.type === 'header' ? _vm._ssrNode("<header id=\"template_header\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + ">", "</header>", _vm._l(component.parameters, function (param, pIndex) {
2396
- return _vm._ssrNode("<div>", "</div>", [param.type === 'text' ? [_vm._ssrNode(_vm.regexVars.test(param.text) ? "<div>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p>" + _vm._s(param.text) + "</p>")] : param.type == 'image' ? _vm._ssrNode("<div class=\"ts-image-type\">", "</div>", [_vm._ssrNode("<input type=\"file\"" + _vm._ssrAttr("accept", _vm.acceptedExtensions) + " class=\"d-none\"> "), _vm.headerFiles[0] ? [_c('fa-icon', {
2459
+ }, [_vm._ssrNode("<div class=\"ts-content\" data-v-ff9d2a84>", "</div>", _vm._l(_vm.template.components, function (component, cIndex) {
2460
+ return _vm._ssrNode("<div" + _vm._ssrClass(null, "" + (component.type == 'footer' ? 'order-1 custom-box-shadow-bottom' : '') + (_vm.template.components.length == 1 ? 'custom-box-shadow-bottom' : '')) + " data-v-ff9d2a84>", "</div>", [component.type === 'header' ? _vm._ssrNode("<header id=\"template_header\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + " data-v-ff9d2a84>", "</header>", _vm._l(component.parameters, function (param, pIndex) {
2461
+ return _vm._ssrNode("<div data-v-ff9d2a84>", "</div>", [param.type === 'text' ? [_vm._ssrNode(_vm.regexVars.test(param.text) ? "<div data-v-ff9d2a84>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p data-v-ff9d2a84>" + _vm._s(param.text) + "</p>")] : param.type == 'image' ? _vm._ssrNode("<div class=\"ts-image-type\" data-v-ff9d2a84>", "</div>", [_vm._ssrNode("<input type=\"file\"" + _vm._ssrAttr("accept", _vm.acceptedExtensions) + " class=\"d-none\" data-v-ff9d2a84> "), _vm.headerFiles[0] ? [_c('fa-icon', {
2397
2462
  directives: [{
2398
2463
  name: "tippy",
2399
2464
  rawName: "v-tippy",
@@ -2432,16 +2497,16 @@ var __vue_render__$y = function __vue_render__() {
2432
2497
  }
2433
2498
  }
2434
2499
  })], 2) : _vm._e()], 2);
2435
- }), 0) : _vm._e(), _vm._ssrNode(" " + (component.type === 'body' ? "<section id=\"template_body\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasButtonOrFooterComponent ? 'custom-footer-style custom-box-shadow-bottom custom-border-gray' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2436
- return "<div>" + (param.type === 'text' ? _vm.regexVars.test(param.text) ? "<div>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2437
- }) + "</section>" : "<!---->") + " " + (component.type == 'button' ? "<section id=\"template_buttons\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasFooterComponent ? 'custom-footer-style custom-box-shadow-bottom' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2438
- return "<div class=\"ts-button\">" + (param.text ? "<p>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2439
- }) + "</section>" : "<!---->") + " " + (component.type == 'footer' ? "<footer id=\"template_footer\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + ">" + _vm._ssrList(component.parameters, function (param, pIndex) {
2440
- return "<div>" + (param.type == 'text' ? "<small>" + _vm._s(param.text) + "</small>" : "<!---->") + "</div>";
2500
+ }), 0) : _vm._e(), _vm._ssrNode(" " + (component.type === 'body' ? "<section id=\"template_body\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasButtonOrFooterComponent ? 'custom-footer-style custom-box-shadow-bottom custom-border-gray' : '')) + " data-v-ff9d2a84>" + _vm._ssrList(component.parameters, function (param, pIndex) {
2501
+ return "<div data-v-ff9d2a84>" + (param.type === 'text' ? _vm.regexVars.test(param.text) ? "<div data-v-ff9d2a84>" + _vm._s(param.text.replace(_vm.regexVars, "<div class='ts-content__var'>" + _vm.htmlInputString + _vm.varListValues + "</div>")) + "</div>" : "<p data-v-ff9d2a84>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2502
+ }) + "</section>" : "<!---->") + " " + (component.type == 'button' ? "<section id=\"template_buttons\"" + _vm._ssrClass(null, (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasFooterComponent ? 'custom-footer-style custom-box-shadow-bottom' : '')) + " data-v-ff9d2a84>" + _vm._ssrList(component.parameters, function (param, pIndex) {
2503
+ return "<div class=\"ts-button\" data-v-ff9d2a84>" + (param.text ? "<p data-v-ff9d2a84>" + _vm._s(param.text) + "</p>" : "<!---->") + "</div>";
2504
+ }) + "</section>" : "<!---->") + " " + (component.type == 'footer' ? "<footer id=\"template_footer\"" + _vm._ssrClass(null, "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '')) + " data-v-ff9d2a84>" + _vm._ssrList(component.parameters, function (param, pIndex) {
2505
+ return "<div data-v-ff9d2a84>" + (param.type == 'text' ? "<small data-v-ff9d2a84>" + _vm._s(param.text) + "</small>" : "<!---->") + "</div>";
2441
2506
  }) + "</footer>" : "<!---->"))], 2);
2442
2507
  }), 0), _vm._ssrNode(" "), _vm.hasButton ? _vm._ssrNode("<div" + _vm._ssrClass("tg-btn", {
2443
2508
  'small-btn': _vm.iconButton
2444
- }) + ">", "</div>", [_vm._ssrNode("<button>", "</button>", [!_vm.iconButton ? [_c('fa-icon', {
2509
+ }) + " data-v-ff9d2a84>", "</div>", [_vm._ssrNode("<button data-v-ff9d2a84>", "</button>", [!_vm.iconButton ? [_c('fa-icon', {
2445
2510
  attrs: {
2446
2511
  "icon": ['fas', 'paper-plane']
2447
2512
  }
@@ -2449,32 +2514,46 @@ var __vue_render__$y = function __vue_render__() {
2449
2514
  attrs: {
2450
2515
  "icon": ['fas', 'paper-plane']
2451
2516
  }
2452
- })], 2)]) : _vm._e()], 2);
2517
+ })], 2)]) : _vm._e(), _vm._ssrNode(" "), _vm.hasSecondaryButton ? _vm._ssrNode("<div" + _vm._ssrClass("tg-btn btn-red", {
2518
+ 'small-btn': _vm.iconButton
2519
+ }) + " data-v-ff9d2a84>", "</div>", [_vm.hasSecondaryButton ? _vm._ssrNode("<button data-v-ff9d2a84>", "</button>", [!_vm.iconButton ? [_c('fa-icon', {
2520
+ attrs: {
2521
+ "icon": ['fas', 'paper-plane']
2522
+ }
2523
+ }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.dictionary.btn_contatar_clientes_com_bot) + " \n "))] : _c('fa-icon', {
2524
+ attrs: {
2525
+ "icon": ['fas', 'paper-plane']
2526
+ }
2527
+ })], 2) : _vm._e()]) : _vm._e()], 2);
2453
2528
  };
2454
2529
 
2455
2530
  var __vue_staticRenderFns__$y = [];
2456
2531
  /* style */
2457
2532
 
2458
- var __vue_inject_styles__$y = undefined;
2533
+ var __vue_inject_styles__$y = function __vue_inject_styles__(inject) {
2534
+ if (!inject) return;
2535
+ inject("data-v-ff9d2a84_0", {
2536
+ source: ".btn-red button[data-v-ff9d2a84]{background-color:red}.btn-red svg[data-v-ff9d2a84]{color:#b60000}",
2537
+ map: undefined,
2538
+ media: undefined
2539
+ });
2540
+ };
2459
2541
  /* scoped */
2460
2542
 
2461
- var __vue_scope_id__$y = undefined;
2543
+
2544
+ var __vue_scope_id__$y = "data-v-ff9d2a84";
2462
2545
  /* module identifier */
2463
2546
 
2464
- var __vue_module_identifier__$y = "data-v-c988759e";
2547
+ var __vue_module_identifier__$y = "data-v-ff9d2a84";
2465
2548
  /* functional template */
2466
2549
 
2467
2550
  var __vue_is_functional_template__$y = false;
2468
- /* style inject */
2469
-
2470
- /* style inject SSR */
2471
-
2472
2551
  /* style inject shadow dom */
2473
2552
 
2474
2553
  var __vue_component__$G = /*#__PURE__*/normalizeComponent({
2475
2554
  render: __vue_render__$y,
2476
2555
  staticRenderFns: __vue_staticRenderFns__$y
2477
- }, __vue_inject_styles__$y, __vue_script__$y, __vue_scope_id__$y, __vue_is_functional_template__$y, __vue_module_identifier__$y, false, undefined, undefined, undefined);
2556
+ }, __vue_inject_styles__$y, __vue_script__$y, __vue_scope_id__$y, __vue_is_functional_template__$y, __vue_module_identifier__$y, false, undefined, createInjectorSSR, undefined);
2478
2557
 
2479
2558
  var TemplateSingle = __vue_component__$G;var setResizeListeners = function setResizeListeners($el, inputClass, parentClass) {
2480
2559
  var inputTargets = $el.querySelectorAll(inputClass);
@@ -2663,47 +2742,7 @@ var categories=[{id:"people",name:"Smileys & People",emojis:["grinning","grin","
2663
2742
  //
2664
2743
  //
2665
2744
  //
2666
- var script$x = {};function createInjectorSSR(context) {
2667
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2668
- context = __VUE_SSR_CONTEXT__;
2669
- }
2670
- if (!context)
2671
- return () => { };
2672
- if (!('styles' in context)) {
2673
- context._styles = context._styles || {};
2674
- Object.defineProperty(context, 'styles', {
2675
- enumerable: true,
2676
- get: () => context._renderStyles(context._styles)
2677
- });
2678
- context._renderStyles = context._renderStyles || renderStyles;
2679
- }
2680
- return (id, style) => addStyle(id, style, context);
2681
- }
2682
- function addStyle(id, css, context) {
2683
- const group = css.media || 'default' ;
2684
- const style = context._styles[group] || (context._styles[group] = { ids: [], css: '' });
2685
- if (!style.ids.includes(id)) {
2686
- style.media = css.media;
2687
- style.ids.push(id);
2688
- let code = css.source;
2689
- style.css += code + '\n';
2690
- }
2691
- }
2692
- function renderStyles(styles) {
2693
- let css = '';
2694
- for (const key in styles) {
2695
- const style = styles[key];
2696
- css +=
2697
- '<style data-vue-ssr-id="' +
2698
- Array.from(style.ids).join(' ') +
2699
- '"' +
2700
- (style.media ? ' media="' + style.media + '"' : '') +
2701
- '>' +
2702
- style.css +
2703
- '</style>';
2704
- }
2705
- return css;
2706
- }/* script */
2745
+ var script$x = {};/* script */
2707
2746
  var __vue_script__$x = script$x;
2708
2747
  /* template */
2709
2748
 
@@ -9648,6 +9687,11 @@ var script$h = {
9648
9687
  type: Object,
9649
9688
  required: true
9650
9689
  },
9690
+ hasSecondaryButton: {
9691
+ type: Boolean,
9692
+ required: false,
9693
+ default: true
9694
+ },
9651
9695
  hasButton: {
9652
9696
  type: Boolean,
9653
9697
  required: false,
@@ -9915,13 +9959,17 @@ var __vue_render__$h = function __vue_render__() {
9915
9959
  "iconButton": _vm.iconButton,
9916
9960
  "identifier": _vm.identifier,
9917
9961
  "allVariables": _vm.allVariables,
9918
- "dictionary": _vm.dictionary
9962
+ "dictionary": _vm.dictionary,
9963
+ "hasSecondaryButton": _vm.hasSecondaryButton
9919
9964
  },
9920
9965
  on: {
9921
9966
  "set-vars": _vm.setFinalMessage,
9922
9967
  "set-file-var": _vm.setFileVar,
9923
9968
  "click-trigger": function clickTrigger($event) {
9924
9969
  return _vm.$emit('click-trigger');
9970
+ },
9971
+ "dispatch-clients-with-bot": function dispatchClientsWithBot($event) {
9972
+ return _vm.$emit('dispatch-clients-with-bot');
9925
9973
  }
9926
9974
  }
9927
9975
  })], 1) : _vm._ssrNode("<div class=\"tg-component\">", "</div>", [_c('TemplateMessage', {
@@ -9944,7 +9992,7 @@ var __vue_staticRenderFns__$h = [];
9944
9992
 
9945
9993
  var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
9946
9994
  if (!inject) return;
9947
- inject("data-v-5b32f202_0", {
9995
+ inject("data-v-2135e54a_0", {
9948
9996
  source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.ts-image-type{display:flex;align-items:center}.ts-image-type img{cursor:pointer}.ts-image-type svg{font-size:25px;cursor:pointer}.ts-image-type .select-image{color:#838383}.color-red{color:#e74c3c}.color-blue{color:#007bff}.color-black{color:#333}.color-purple{color:#a312a3}.custom-tooltip-image{display:flex;justify-content:center;align-items:center;overflow:visible;padding:5px}.custom-tooltip-image img{max-width:75px;max-height:75px}.ts-button{background-color:#fff;border-radius:10px;display:flex;justify-content:center;align-items:center;padding:3px 15px;transition:background-color 150ms ease-in-out}.ts-button:hover{background-color:#fdfdfd}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.vs__dropdown-option.vs__dropdown-option--selected{background-color:#1a5fad!important;color:#fff}.vs__dropdown-menu li{padding:10px 15px}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;--border-radius:5px;flex:2;font-size:.7rem;padding:10px 0;display:flex;flex-direction:column}.order-1{order:1}.custom-box-shadow-bottom{box-shadow:0 3px 4px -3px rgba(0,0,0,.3)}.custom-border-gray{border:1px solid var(--border-color)!important}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom:1px solid var(--border-color)}.custom-footer-style,.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 3px;font-size:.8rem;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition:transform .3s ease-in-out;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active,.tg-btn button:focus{outline:2px solid #000}.tg-btn.small-btn{width:auto;margin:0 5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:5px;display:flex}",
9949
9997
  map: undefined,
9950
9998
  media: undefined
@@ -9956,7 +10004,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
9956
10004
  var __vue_scope_id__$h = undefined;
9957
10005
  /* module identifier */
9958
10006
 
9959
- var __vue_module_identifier__$h = "data-v-5b32f202";
10007
+ var __vue_module_identifier__$h = "data-v-2135e54a";
9960
10008
  /* functional template */
9961
10009
 
9962
10010
  var __vue_is_functional_template__$h = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.270",
3
+ "version": "0.0.272",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -30,6 +30,8 @@
30
30
  :identifier="identifier"
31
31
  :allVariables="allVariables"
32
32
  :dictionary="dictionary"
33
+ :hasSecondaryButton="hasSecondaryButton"
34
+ @dispatch-clients-with-bot="$emit('dispatch-clients-with-bot')"
33
35
  />
34
36
  </div>
35
37
  <div class="tg-component" v-else>
@@ -51,6 +53,11 @@
51
53
  type: Object,
52
54
  required: true
53
55
  },
56
+ hasSecondaryButton: {
57
+ type: Boolean,
58
+ required: false,
59
+ default: false
60
+ },
54
61
  hasButton: {
55
62
  type: Boolean,
56
63
  required: false,
@@ -385,6 +392,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
385
392
  width: 100%;
386
393
  display: flex;
387
394
  justify-content: space-between;
395
+ gap: 10px;
388
396
  }
389
397
 
390
398
  .ts-content {
@@ -495,7 +503,7 @@ h1, h2, h3, h4, p { margin: 0; padding: 0 }
495
503
  opacity: 1;
496
504
  }
497
505
  .tg-btn {
498
- width: 40%;
506
+ width: auto;
499
507
  display: flex;
500
508
  justify-content: center;
501
509
  align-items: center;
@@ -91,18 +91,51 @@
91
91
  </footer>
92
92
  </div>
93
93
  </div>
94
- <div class="tg-btn" :class="{'small-btn' : iconButton}" v-if="hasButton">
95
- <button @click="$emit('click-trigger')" ref="template-single-button">
96
- <template v-if="!iconButton">
97
- <fa-icon :icon="['fas', 'paper-plane']" />
98
- {{ dictionary.btn_contatar_clientes }}
99
- </template>
100
- <fa-icon v-else :icon="['fas', 'paper-plane']" />
101
- </button>
94
+
95
+ <div class="container-btns">
96
+ <div class="tg-btn" :class="{'small-btn' : iconButton}" v-if="hasButton">
97
+ <button @click="$emit('click-trigger')" ref="template-single-button">
98
+ <template v-if="!iconButton">
99
+ <fa-icon :icon="['fas', 'paper-plane']" />
100
+ {{ dictionary.btn_contatar_clientes }}
101
+ </template>
102
+ <fa-icon v-else :icon="['fas', 'paper-plane']" />
103
+ </button>
104
+
105
+ </div>
106
+
107
+ <div class="tg-btn btn-red" :class="{'small-btn' : iconButton}" v-if="hasSecondaryButton">
108
+ <button v-if="hasSecondaryButton" @click="$emit('dispatch-clients-with-bot')" ref="template-single-button-secondary">
109
+ <template v-if="!iconButton">
110
+ <fa-icon :icon="['fas', 'paper-plane']" />
111
+ {{ dictionary.btn_contatar_clientes_com_bot }}
112
+ </template>
113
+ <fa-icon v-else :icon="['fas', 'paper-plane']" />
114
+ </button>
115
+ </div>
102
116
  </div>
117
+
103
118
  </div>
104
119
  </template>
105
120
 
121
+ <style scoped>
122
+ .btn-red button {
123
+ background-color: red;
124
+ }
125
+
126
+ .btn-red svg {
127
+ color: rgb(182, 0, 0);
128
+ }
129
+
130
+ .container-btns {
131
+ display: flex;
132
+ flex-direction: column;
133
+ justify-content: center;
134
+ align-items: center;
135
+ gap: 10px;
136
+ }
137
+ </style>
138
+
106
139
  <script>
107
140
  export default {
108
141
  data() {
@@ -126,6 +159,11 @@ export default {
126
159
  required: false,
127
160
  default: true,
128
161
  },
162
+ hasSecondaryButton: {
163
+ type: Boolean,
164
+ required: false,
165
+ default: false
166
+ },
129
167
  allVariables: {
130
168
  type: Boolean,
131
169
  required: false,