vue-intergrall-plugins 0.0.264 → 0.0.266

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.
@@ -1857,6 +1857,46 @@ var createPopper = /*#__PURE__*/popperGenerator({
1857
1857
  //
1858
1858
  //
1859
1859
  //
1860
+ //
1861
+ //
1862
+ //
1863
+ //
1864
+ //
1865
+ //
1866
+ //
1867
+ //
1868
+ //
1869
+ //
1870
+ //
1871
+ //
1872
+ //
1873
+ //
1874
+ //
1875
+ //
1876
+ //
1877
+ //
1878
+ //
1879
+ //
1880
+ //
1881
+ //
1882
+ //
1883
+ //
1884
+ //
1885
+ //
1886
+ //
1887
+ //
1888
+ //
1889
+ //
1890
+ //
1891
+ //
1892
+ //
1893
+ //
1894
+ //
1895
+ //
1896
+ //
1897
+ //
1898
+ //
1899
+ //
1860
1900
  var script$y = {
1861
1901
  data() {
1862
1902
  return {
@@ -1864,7 +1904,9 @@ var script$y = {
1864
1904
  regexVars: /{{var_\d}}/g,
1865
1905
  lastVar: 0,
1866
1906
  htmlInputString: `<input type='text' class='input-var input-var-${this.identifier}' autocomplete='off' />`,
1867
- varListValues: ""
1907
+ varListValues: "",
1908
+ acceptedExtensions: "audio/aac, audio/mp4, audio/mpeg, audio/amr, audio/ogg, text/plain, application/pdf, application/vnd.ms-powerpoint, application/msword, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreasheetml.sheet, image/jpeg, image/png, video/mp4, video/3gp, image/webp",
1909
+ headerFiles: []
1868
1910
  };
1869
1911
  },
1870
1912
 
@@ -1897,6 +1939,28 @@ var script$y = {
1897
1939
  required: true
1898
1940
  }
1899
1941
  },
1942
+ computed: {
1943
+ hasFooterComponent() {
1944
+ if (!this.template.components || !this.template.components.length) return false;
1945
+ const types = [];
1946
+ this.template.components.forEach(({
1947
+ type
1948
+ }) => types.push(type));
1949
+ if (types.includes('footer')) return true;
1950
+ return false;
1951
+ },
1952
+
1953
+ hasButtonOrFooterComponent() {
1954
+ if (!this.template.components || !this.template.components.length) return false;
1955
+ const types = [];
1956
+ this.template.components.forEach(({
1957
+ type
1958
+ }) => types.push(type));
1959
+ if (types.includes('button')) return true;
1960
+ return this.hasFooterComponent;
1961
+ }
1962
+
1963
+ },
1900
1964
 
1901
1965
  created() {
1902
1966
  this.$root.$refs[`template-single-${this.identifier}`] = this;
@@ -1905,6 +1969,7 @@ var script$y = {
1905
1969
  mounted() {
1906
1970
  if (this.allVariables) this.getListOpts();
1907
1971
  this.setInputs();
1972
+ this.setImageVar(false);
1908
1973
  },
1909
1974
 
1910
1975
  updated() {
@@ -1933,6 +1998,7 @@ var script$y = {
1933
1998
  target: input
1934
1999
  }, input.id.replace(/[{}]+/g, ''));
1935
2000
  });
2001
+ this.setImageVar(false);
1936
2002
  },
1937
2003
 
1938
2004
  getListOpts() {
@@ -1942,17 +2008,133 @@ var script$y = {
1942
2008
  </ul>`;
1943
2009
  },
1944
2010
 
2011
+ fileUpload(event) {
2012
+ try {
2013
+ const allFiles = event.target.files ? event.target.files : event.dataTransfer.files ? event.dataTransfer.files : false;
2014
+ if (!allFiles || !allFiles.length) return this.setImageVar(false);
2015
+
2016
+ if (allFiles.length > 1) {
2017
+ this.$toasted.global.defaultInfo({
2018
+ msg: `Limite de 1 arquivo por vez`
2019
+ });
2020
+ return this.setImageVar(false);
2021
+ }
2022
+
2023
+ const file = allFiles[0];
2024
+ const {
2025
+ type,
2026
+ name
2027
+ } = file;
2028
+ const validTypes = ['audio/aac', 'audio/mp4', 'audio/mpeg', 'audio/amr', 'audio/ogg', 'text/plain', 'application/pdf', 'application/vnd.ms-powerpoint', 'application/msword', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.spreasheetml.sheet', 'image/jpeg', 'image/png', 'video/mp4', 'video/3gp', 'image/webp'];
2029
+
2030
+ if (!validTypes.includes(type)) {
2031
+ this.$toasted.global.defaultInfo({
2032
+ msg: `(${type}) ${this.dictionary.msg_arquivo_invalido}`
2033
+ });
2034
+ return this.setImageVar(false);
2035
+ }
2036
+
2037
+ const returnArrType = str => {
2038
+ const arr = [];
2039
+ validTypes.forEach(currentType => {
2040
+ if (currentType.indexOf(str) > -1) arr.push(currentType);
2041
+ });
2042
+ return arr;
2043
+ };
2044
+
2045
+ const imageTypes = returnArrType('image/');
2046
+ const docTypes = returnArrType('application/');
2047
+ const audioTypes = returnArrType('audio/');
2048
+ const videoTypes = returnArrType('video/');
2049
+ const isPdf = type.indexOf('application/pdf') > -1;
2050
+ let sizeInBytes = 0;
2051
+ Array.from(allFiles).forEach(file => sizeInBytes += file.size);
2052
+ const sizeInMb = parseFloat((sizeInBytes / (1024 * 1024)).toFixed(2));
2053
+
2054
+ if (sizeInMb == 0 && sizeInBytes == 0) {
2055
+ this.$toasted.global.defaultInfo({
2056
+ msg: this.dictionary.msg_arquivo_invalido
2057
+ });
2058
+ return this.setImageVar(false);
2059
+ }
2060
+
2061
+ const max = imageTypes.includes(type) ? 5 : 15;
2062
+
2063
+ if (sizeInMb >= max) {
2064
+ this.$toasted.global.defaultInfo({
2065
+ msg: `Limite de ${max} MB por arquivo`
2066
+ });
2067
+ return this.setImageVar(false);
2068
+ }
2069
+
2070
+ const fileReader = new FileReader();
2071
+ let current_icon = 'file-alt',
2072
+ current_color = 'blue',
2073
+ setValues = true;
2074
+
2075
+ if (imageTypes.includes(type)) {
2076
+ setValues = false;
2077
+ fileReader.readAsDataURL(file);
2078
+
2079
+ fileReader.onload = () => {
2080
+ const image_preview = fileReader.result;
2081
+ current_icon = 'image';
2082
+ current_color = 'purple';
2083
+ this.headerFiles[0] = {
2084
+ file,
2085
+ image_preview,
2086
+ current_icon,
2087
+ current_color,
2088
+ name
2089
+ };
2090
+ this.$forceUpdate();
2091
+ this.setImageVar(file);
2092
+ };
2093
+ } else if (docTypes.includes(type) && isPdf) {
2094
+ current_icon = 'file-pdf';
2095
+ current_color = 'red';
2096
+ } else if (audioTypes.includes(type)) {
2097
+ current_icon = 'microphone';
2098
+ current_color = 'black';
2099
+ } else if (videoTypes.includes(type)) {
2100
+ current_icon = 'video', current_color = 'black';
2101
+ }
2102
+
2103
+ if (setValues) {
2104
+ this.headerFiles[0] = {
2105
+ file,
2106
+ current_icon,
2107
+ current_color,
2108
+ name
2109
+ };
2110
+ this.$forceUpdate();
2111
+ this.setImageVar(file);
2112
+ }
2113
+ } catch (error) {
2114
+ console.error("Erro file upload: ", error);
2115
+ }
2116
+ },
2117
+
2118
+ triggerInputFile(origin) {
2119
+ if (this.$refs[`ts-input-${origin}`]) {
2120
+ const elem = this.$refs[`ts-input-${origin}`][0] ? this.$refs[`ts-input-${origin}`][0] : this.$refs[`ts-input-${origin}`];
2121
+ elem && elem.click();
2122
+ }
2123
+ },
2124
+
1945
2125
  setInputs() {
1946
2126
  let qtdInputs = 0;
1947
2127
  const header = document.querySelector("#template_header");
1948
2128
  const body = document.querySelector("#template_body");
1949
2129
  const footer = document.querySelector("#template_footer");
2130
+ let hasText = false;
1950
2131
 
1951
2132
  if (header !== null) {
1952
2133
  header.querySelectorAll(`.input-var-${this.identifier}`).forEach(input => {
1953
2134
  this.setEvent(input);
1954
2135
  });
1955
2136
  qtdInputs += header.querySelectorAll(`.input-var-${this.identifier}`).length;
2137
+ if (qtdInputs > 0 && header.innerText) hasText = true;
1956
2138
  }
1957
2139
 
1958
2140
  if (this.lastVar === 0) this.lastVar += 1;
@@ -1962,6 +2144,7 @@ var script$y = {
1962
2144
  this.setEvent(input);
1963
2145
  });
1964
2146
  qtdInputs += body.querySelectorAll(`.input-var-${this.identifier}`).length;
2147
+ if (qtdInputs > 0 && body.innerText) hasText = true;
1965
2148
  }
1966
2149
 
1967
2150
  if (footer !== null) {
@@ -1969,9 +2152,10 @@ var script$y = {
1969
2152
  this.setEvent(input);
1970
2153
  });
1971
2154
  qtdInputs += footer.querySelectorAll(`.input-var-${this.identifier}`).length;
2155
+ if (qtdInputs > 0 && footer.innerText) hasText = true;
1972
2156
  }
1973
2157
 
1974
- if (qtdInputs === 1) {
2158
+ if (qtdInputs === 1 && !hasText) {
1975
2159
  document.querySelector(`.input-var-${this.identifier}`).parentElement.style.width = "100%";
1976
2160
  document.querySelector(`.input-var-${this.identifier}`).style.width = "100%";
1977
2161
  } else if (qtdInputs === 0) {
@@ -2079,6 +2263,19 @@ var script$y = {
2079
2263
  return isValueValid;
2080
2264
  },
2081
2265
 
2266
+ setImageVar(file) {
2267
+ this.$emit("set-file-var", file);
2268
+
2269
+ if (!file) {
2270
+ this.headerFiles = [];
2271
+ return this.$forceUpdate();
2272
+ } else {
2273
+ if (this.lastVar == 0) return this.$emit("set-vars", this.template);
2274
+ if (Object.keys(this.varValues).length) return this.$emit("set-vars", this.varValues);
2275
+ this.$nextTick(() => this.handleInitialFocus());
2276
+ }
2277
+ },
2278
+
2082
2279
  setVar(event, key, notificar) {
2083
2280
  if (event && event.target) {
2084
2281
  key = event.target.id.replace(/[{}]+/g, '');
@@ -2192,8 +2389,10 @@ var __vue_render__$y = function () {
2192
2389
  staticClass: "ts-content"
2193
2390
  }, _vm._l(_vm.template.components, function (component, cIndex) {
2194
2391
  return _c('div', {
2195
- key: cIndex
2392
+ key: cIndex,
2393
+ class: "" + (component.type == 'footer' ? 'order-1 custom-box-shadow-bottom' : '') + (_vm.template.components.length == 1 ? 'custom-box-shadow-bottom' : '')
2196
2394
  }, [component.type === 'header' ? _c('header', {
2395
+ class: "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : ''),
2197
2396
  attrs: {
2198
2397
  "id": "template_header"
2199
2398
  }
@@ -2208,11 +2407,62 @@ var __vue_render__$y = function () {
2208
2407
  domProps: {
2209
2408
  "innerHTML": _vm._s(param.text)
2210
2409
  }
2211
- })] : _vm._e()], 2);
2410
+ })] : param.type == 'image' ? _c('div', {
2411
+ staticClass: "ts-image-type"
2412
+ }, [_c('input', {
2413
+ ref: "ts-input-header-" + pIndex,
2414
+ refInFor: true,
2415
+ staticClass: "d-none",
2416
+ attrs: {
2417
+ "type": "file",
2418
+ "accept": _vm.acceptedExtensions
2419
+ },
2420
+ on: {
2421
+ "change": function ($event) {
2422
+ return _vm.fileUpload($event);
2423
+ }
2424
+ }
2425
+ }), _vm._v(" "), _vm.headerFiles[0] ? [_c('fa-icon', {
2426
+ directives: [{
2427
+ name: "tippy",
2428
+ rawName: "v-tippy",
2429
+ value: {
2430
+ placement: 'right'
2431
+ },
2432
+ expression: "{placement: 'right'}"
2433
+ }],
2434
+ class: "color-" + _vm.headerFiles[0].current_color,
2435
+ attrs: {
2436
+ "icon": ['fas', _vm.headerFiles[0].current_icon],
2437
+ "content": _vm.headerFiles[0].image_preview ? "<div class='custom-tooltip-image'>\n <img src='" + _vm.headerFiles[0].image_preview + "' alt='" + _vm.headerFiles[0].name + "' />\n </div>" : _vm.headerFiles[0].name
2438
+ },
2439
+ on: {
2440
+ "click": function ($event) {
2441
+ return _vm.triggerInputFile("header-" + pIndex);
2442
+ }
2443
+ }
2444
+ })] : _c('fa-icon', {
2445
+ directives: [{
2446
+ name: "tippy",
2447
+ rawName: "v-tippy",
2448
+ value: {
2449
+ placement: 'right'
2450
+ },
2451
+ expression: "{placement: 'right'}"
2452
+ }],
2453
+ staticClass: "select-image",
2454
+ attrs: {
2455
+ "icon": ['fas', 'image'],
2456
+ "content": "Selecionar anexo"
2457
+ },
2458
+ on: {
2459
+ "click": function ($event) {
2460
+ return _vm.triggerInputFile("header-" + pIndex);
2461
+ }
2462
+ }
2463
+ })], 2) : _vm._e()], 2);
2212
2464
  }), 0) : _vm._e(), _vm._v(" "), component.type === 'body' ? _c('section', {
2213
- class: {
2214
- 'margin-bottom': _vm.template.components.length === 2
2215
- },
2465
+ class: (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasButtonOrFooterComponent ? 'custom-footer-style custom-box-shadow-bottom custom-border-gray' : ''),
2216
2466
  attrs: {
2217
2467
  "id": "template_body"
2218
2468
  }
@@ -2228,7 +2478,22 @@ var __vue_render__$y = function () {
2228
2478
  "innerHTML": _vm._s(param.text)
2229
2479
  }
2230
2480
  })] : _vm._e()], 2);
2481
+ }), 0) : _vm._e(), _vm._v(" "), component.type == 'button' ? _c('section', {
2482
+ class: (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : '') + " " + (!_vm.hasFooterComponent ? 'custom-footer-style custom-box-shadow-bottom' : ''),
2483
+ attrs: {
2484
+ "id": "template_buttons"
2485
+ }
2486
+ }, _vm._l(component.parameters, function (param, pIndex) {
2487
+ return _c('div', {
2488
+ key: pIndex,
2489
+ staticClass: "ts-button"
2490
+ }, [param.text ? _c('p', {
2491
+ domProps: {
2492
+ "innerHTML": _vm._s(param.text)
2493
+ }
2494
+ }) : _vm._e()]);
2231
2495
  }), 0) : _vm._e(), _vm._v(" "), component.type == 'footer' ? _c('footer', {
2496
+ class: "" + (_vm.template.components.length == 1 ? 'border-radius-5 custom-border-gray' : ''),
2232
2497
  attrs: {
2233
2498
  "id": "template_footer"
2234
2499
  }
@@ -9984,7 +10249,7 @@ var __vue_render__$i = function () {
9984
10249
  staticClass: "ts-content"
9985
10250
  }, [_c('section', {
9986
10251
  class: {
9987
- 'tm-container': _vm.hasButton
10252
+ 'tm-container custom-box-shadow-bottom': _vm.hasButton
9988
10253
  }
9989
10254
  }, [_c('TextFooter', {
9990
10255
  ref: "text-footer-template-message",
@@ -10098,7 +10363,8 @@ var script$h = {
10098
10363
  return {
10099
10364
  templateOptions: [],
10100
10365
  codTemplate: {},
10101
- selectedTemplate: null
10366
+ selectedTemplate: null,
10367
+ hasFile: false
10102
10368
  };
10103
10369
  },
10104
10370
 
@@ -10169,7 +10435,8 @@ var script$h = {
10169
10435
  });
10170
10436
  } else {
10171
10437
  this.selectedTemplate = null;
10172
- }
10438
+ } // if(this.hasFile) this.setFileVar(false)
10439
+
10173
10440
 
10174
10441
  this.adjustOnSelect();
10175
10442
  },
@@ -10225,8 +10492,8 @@ var script$h = {
10225
10492
 
10226
10493
  if (message.text.indexOf(varName) != -1) {
10227
10494
  /**Gerando os obejetos de parametros da notificacao para o component */
10228
- if (component.type === "header") {
10229
- this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
10495
+ if (component.type === "header" && !this.selectedTemplate['parameters'][component.type]) {
10496
+ this.selectedTemplate['parameters'][component.type] = {}; //Header so pode ter uma vari?vel
10230
10497
 
10231
10498
  this.selectedTemplate['parameters'][component.type] = {
10232
10499
  tipo: "text",
@@ -10247,6 +10514,17 @@ var script$h = {
10247
10514
  keyIndex++;
10248
10515
  }
10249
10516
  });
10517
+ } else if (component.type == 'header' && component.parameters.seq) {
10518
+ if (this.hasFile) {
10519
+ if (!this.selectedTemplate['parameters'][component.type]) this.selectedTemplate['parameters'][component.type] = new Array();
10520
+ this.selectedTemplate['parameters'][component.type].push({
10521
+ tipo: 'image',
10522
+ template: component.parameters.seq,
10523
+ link: ''
10524
+ });
10525
+ } else {
10526
+ delete this.selectedTemplate['parameters'][component.type];
10527
+ }
10250
10528
  }
10251
10529
  });
10252
10530
  }
@@ -10256,6 +10534,12 @@ var script$h = {
10256
10534
  this.$emit("template-data", this.selectedTemplate);
10257
10535
  },
10258
10536
 
10537
+ setFileVar(file) {
10538
+ this.hasFile = file ? true : false;
10539
+ this.$emit("set-file-var", file);
10540
+ if (file) this.$emit("template-data", this.selectedTemplate);
10541
+ },
10542
+
10259
10543
  setMessage(message) {
10260
10544
  this.$emit("static-message", message);
10261
10545
  }
@@ -10311,6 +10595,7 @@ var __vue_render__$h = function () {
10311
10595
  })])], 1), _vm._v(" "), _vm.selectedTemplate ? [_vm.selectedTemplate.components ? _c('div', {
10312
10596
  staticClass: "tg-component"
10313
10597
  }, [_c('TemplateSingle', {
10598
+ key: _vm.codTemplate,
10314
10599
  attrs: {
10315
10600
  "template": _vm.selectedTemplate,
10316
10601
  "hasButton": _vm.hasButton,
@@ -10321,6 +10606,7 @@ var __vue_render__$h = function () {
10321
10606
  },
10322
10607
  on: {
10323
10608
  "set-vars": _vm.setFinalMessage,
10609
+ "set-file-var": _vm.setFileVar,
10324
10610
  "click-trigger": function ($event) {
10325
10611
  return _vm.$emit('click-trigger');
10326
10612
  }
@@ -10347,8 +10633,8 @@ var __vue_staticRenderFns__$h = [];
10347
10633
 
10348
10634
  const __vue_inject_styles__$h = function (inject) {
10349
10635
  if (!inject) return;
10350
- inject("data-v-37a18a28_0", {
10351
- 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}.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}.tg-select .vs__selected-options>input{flex-grow:0}.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;flex:2;font-size:.7rem;padding:10px 0}.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:2.5px;border-top-right-radius:2.5px;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:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.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:2.5px;display:flex}",
10636
+ inject("data-v-5b32f202_0", {
10637
+ 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}",
10352
10638
  map: undefined,
10353
10639
  media: undefined
10354
10640
  });