stockbot-buyvm/tests/data/stock_files/twk-chunk-2c776523.js

1 line
7.7 KiB
JavaScript
Raw Normal View History

2023-12-02 19:49:13 +00:00
(window.tawkJsonp=window.tawkJsonp||[]).push([["chunk-2c776523"],{"5a60":function(t,e,n){"use strict";var o=n("bd42").a,r=n("2877"),a=Object(r.a)(o,void 0,void 0,!1,null,null,null);e.a=a.exports},bd42:function(t,e,n){"use strict";(function(t){var o=n("2b0e"),r=n("f0b0");function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=a.call(n)).done)&&(s.push(o.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}e.a=o.a.component("i-frame",{props:{width:{type:String,default:null},height:{type:String,default:null},cssLink:{type:String,default:null},styleObject:{type:[Object,Array]},classString:{type:String,default:""}},data:function(){return{id:r.Helper.generateUUID()}},render:function(t){return t("iframe",{on:{load:this.renderChildren},attrs:{src:"about:blank",frameborder:"0",scrolling:"no",width:this.width,height:this.height,style:Object.entries(this.styleObject).map((function(t){var e=a(t,2);return e[0]+e[1]})).join(" "),id:this.id,class:this.classString,title:"chat widget"}})},beforeUpdate:function(){this.iApp&&(this.iApp.children=Object.freeze(this.$slots.default))},methods:{renderChildren:function(){var e=this.$slots.default,n=this.$el.contentDocument.documentElement,r=this.$el.contentDocument.body,a=this.$el.contentDocument.head,i=document.createElement("div"),s=document.createElement("link"),l=document.createElement("link"),c=new o.a({name:"iApp",data:{children:Object.freeze(e)},render:function(t){return t("div",{attrs:{style:"width: 100%; height: 100%;"}},this.children)},store:this.$store,mounted:function(){this.children.length&&this.children[0]&&this.children[0].context&&"function"==typeof this.children[0].context.loaded&&this.children[0].context.loaded()}});s.href=this.cssLink,s.rel="stylesheet",l.href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&subset=latin-ext",r.appendChild(i),r.classList.add("font-lato");var d="1rem",h="0";if(this.$store.getters["widget/isRTL"]&&r.classList.add("tawk-rtl"),this.$store.getters["browserData/mobileBrowserName"]){var m;n.classList.add("tawk-mobile"),r.classList.add("tawk-mobile");var u=null===(m=t.Tawk_Window.jsApi)||void 0===m||null===(m=m.local_API)||void 0===m||null===(m=m.customStyle)||void 0===m?void 0:m.visibility;u&&u.mobile&&u.mobile.maximized&&(u.mobile.maximized.paddingTop&&(d="".concat(u.mobile.maximized.paddingTop,"px")),u.mobile.maximized.paddingBottom&&(h="".concat(u.mobile.maximized.paddingBottom,"px")))}this.$store.getters["widget/language"]&&n.setAttribute("lang",this.$store.getters["widget/language"]);var g=document.createElement("meta");g["http-equiv"]="Content-Type",g.content="text/html; charset=utf-8";var p=document.createElement("meta");p.name="viewport",p.content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no",a.appendChild(g),a.appendChild(p);var w=document.createElement("style"),f=":root {\n\t\t\t\t\t--tawk-header-background-color: ".concat(this.$store.getters["widget/headerBgColor"]," !important;\n\t\t\t\t\t--tawk-header-background-color-alpha: ").concat(this.$store.getters["widget/headerBgColor"],"50 !important;\n\t\t\t\t\t--tawk-header-text-color: ").concat(this.$store.getters["widget/headerTxtColor