PageSourceSearch

https://www.smartcruiser.com/wp-content/cache/min/1/api/v2/script/…/widget.js?ver=1782938407

js smartcruiser.com collected 2026-10-02 22:06:49 UTC 7,765 bytes, 5 lines download raw bytes

1(()=>{const LC_PLATFORM_CONFIG={"storeUUID":"f7c25fa4-e52a-4b6b-b4e4-c962d6ecd5bc","license":7196841,"integrationName":"Wordpress","lcTrackingCdnUrl":"https://cdn.livechatinc.com/tracking.js","options":{"hideForNotAuthorized":!1}};window.__lc=window.__lc||{};window.__lc.license||(window.__lc.license=parseInt(LC_PLATFORM_CONFIG.license),window.__lc.integration_name=LC_PLATFORM_CONFIG.integrationName,window.__lc.origin="livechat",function(a,b,c){function d(f){return e._h?e._h.apply(null,f):e._q.push(f)}const e={_q:[],_h:null,_v:"2.0",on:function(){d(["on",c.call(arguments)])},off:function(){d(["off",c.call(arguments)])},get:function(){if(!e._h)throw Error("[LiveChatWidget] You can't use getters before load.");return d(["get",c.call(arguments)])},call:function(){d(["call",c.call(arguments)])},init:function(){const f=b.createElement("script");f.async=!0;f.type="text/javascript";f.src=LC_PLATFORM_CONFIG.lcTrackingCdnUrl;b.head.appendChild(f)}};!a.__lc.asyncInit&&e.init();a.LiveChatWidget=a.LiveChatWidget||e}(window,document,[].slice));const LiveChatCustomerInsight={storeUUID:LC_PLATFORM_CONFIG.storeUUID,cart:null,getAjax:function(a,b,c=""){let d;try{d=new XMLHttpRequest}catch(e){return!1}d.open("GET",a);d.onreadystatechange=function(){3<d.readyState&&200===d.status&&b&&b(d.responseText)};d.setRequestHeader("X-Requested-With","XMLHttpRequest");d.send(c);return d},prepareVariables:function(){return{cca_platform:"wordpress",cca_store_id:this.storeUUID,cca_cart_content:JSON.stringify(this.cart)}},prepareLegacyVariables:function(){if(!this.cart||!this.cart.items||0===this.cart.items.length)return{};try{return{...this.cart.items.reduce((a,b)=>{let c=`${b.qty}x ${b.title}`;b.variantTitle&&(c+=` (${b.variantTitle})`);return{...a,[c]:b.productPreviewUrl}},{}),"Total count":this.cart.items.reduce((a,b)=>a+b.qty,0),"Total value":`${this.cart.total} ${this.cart.currency}`}}catch(a){return console.error(a),{}}},setCartVariables:function(a){let b;try{b=JSON.parse(a)}catch(c){return}b&&b?.data&&(this.cart=b.data)},setCart:function(){window?.__text_connect?.getCartContent&&window.__text_connect.getCartContent(a=>{this.setCartVariables(a);this.updateVariables()})},observeCartChanges:function(){window.PerformanceObserver&&(new window.PerformanceObserver(a=>{a.getEntries().forEach(b=>{const c=["xmlhttprequest","fetch"].includes(b.initiatorType),d=["/wc/store"].some(e=>b.name.includes(e));c&&d&&this.setCart()})})).observe({entryTypes:["resource"]})},updateVariables:function(){const a={...this.prepareLegacyVariables(),...this.prepareVariables()};window.LiveChatWidget?window.LiveChatWidget.call("set_session_variables",a):window.LC_API.set_custom_variables(Object.entries(a).map(([b,c])=>({name:b,value:c})))},init:function(){window.__text_connect?.addons?.includes("woocommerce")&&(this.setCart(),this.observeCartChanges())}};if(window.LiveChatWidget)window.LiveChatWidget.on("ready",function(){LiveChatCustomerInsight.init()});else if(window.LC_API||(window.LC_API={}),"function"===typeof window.LC_API.is_loaded&&window.LC_API.is_loaded())LiveChatCustomerInsight.init();else{const a=window.LC_API.on_after_load||function(){};window.LC_API.on_after_load=function(){a();LiveChatCustomerInsight.init()}}
2const LiveChatVisitorData={init:function(){this.setCustomerName();this.setCustomerEmail()},setCustomerName:function(){let a=window.__text_connect?.visitor?.name;a&&(a=this.removeHTMLTags(a))&&window.LiveChatWidget.call("set_customer_name",a)},setCustomerEmail:function(){let a=window.__text_connect?.visitor?.email;a&&(a=this.removeHTMLTags(a),this.validEmail(a)&&window.LiveChatWidget.call("set_customer_email",a))},removeHTMLTags:function(a){return a.replace(/<[^>]*>/g,"")},validEmail:function(a){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)}};if(window.LiveChatWidget)window.LiveChatWidget.on("ready",function(){LiveChatVisitorData.init()});else if(window.LC_API||(window.LC_API={}),"function"===typeof window.LC_API.is_loaded&&window.LC_API.is_loaded())LiveChatVisitorData.init();else{const a=window.LC_API.on_after_load||function(){};window.LC_API.on_after_load=function(){a();LiveChatVisitorData.init()}}
3const LiveChatQualityBadge={license:parseInt(LC_PLATFORM_CONFIG.license),badgeClass:"Eq6BfHWRg1skuOtE40gJT-text-quality-badge-container",hiddenClass:"Eq6BfHWRg1skuOtE40gJT-text-element-hidden",isPreviewModeActive:window.self!==window.top&&window.self.location.href.includes("elementor-preview"),appendQualityBadgeScript:function(a){a.innerHTML='<div id="lcqualitybadge"></div>';const b=a.getAttribute("data-theme"),c=parseInt(a.getAttribute("data-size"))||200,d=document.createElement("script");
3d.type="text/javascript";d.src=`//cdn.livechatinc.com/qb/qb-${this.license}-${b}-${c}.js`;d.async=!0;a.append(d);a.classList.remove(this.hiddenClass)},renderBadges:function(){const a=!(!window.self.LiveChatWidget&&!window.self.LC_API),b=document.querySelectorAll(`.${this.badgeClass}.${this.hiddenClass}`);1>b.length||(this.isPreviewModeActive||this.license||a)&&Array.from(b).forEach(c=>{this.appendQualityBadgeScript(c)})},init:function(){try{this.renderBadges()}catch(a){console.error(a)}}};if(LiveChatQualityBadge.isPreviewModeActive)window.self.addEventListener("load",()=>{elementorFrontend.elements.$window.on("elementor/frontend/init",()=>elementorFrontend.hooks.addAction("frontend/element_ready/text-quality-badge.default",function(){LiveChatQualityBadge.init()}))});else if(window.LiveChatWidget)window.LiveChatWidget.on("ready",function(){LiveChatQualityBadge.init()});else if(window.LC_API||(window.LC_API={}),"function"===typeof window.LC_API.is_loaded&&window.LC_API.is_loaded())LiveChatQualityBadge.init();else{const a=window.LC_API.on_after_load||function(){};window.LC_API.on_after_load=function(){a();LiveChatQualityBadge.init()}}
4const LiveChatContactButton={buttonClass:"rWzRuLNl84i5nH_IVqYFH-text-contact-button-container",hiddenClass:"rWzRuLNl84i5nH_IVqYFH-text-element-hidden",isPreviewModeActive:window.self!==window.top&&window.self.location.href.includes("elementor-preview"),handleContactButtonClick:function(){try{window.LiveChatWidget?window.LiveChatWidget.call("maximize"):window.LC_API&&"function"===typeof window.LC_API.is_loaded&&window.LC_API.is_loaded()&&window.LC_API.open_chat_window()}catch(a){console.error(a)}},renderButtons:function(){const a=!(!window.self.LiveChatWidget&&!window.self.LC_API),b=document.querySelectorAll(`.${this.buttonClass}.${this.hiddenClass}`);1>b.length||(this.isPreviewModeActive||a)&&Array.from(b).forEach(c=>{c.addEventListener("click",this.handleContactButtonClick,!1);c.classList.remove(this.hiddenClass)})},loadButtons:function(){try{this.renderButtons()}catch(a){console.error(a)}},init:function(){try{this.loadButtons()}catch(a){console.error(a)}}};LiveChatContactButton.isPreviewModeActive&&window.self.addEventListener("load",()=>{elementorFrontend.elements.$window.on("elementor/frontend/init",()=>elementorFrontend.hooks.addAction("frontend/element_ready/livechat-contact-button.default",LiveChatContactButton.loadButtons.bind(LiveChatContactButton)))});if(window.LiveChatWidget)window.LiveChatWidget.on("ready",function(){LiveChatContactButton.init()});else if(window.LC_API||(window.LC_API={}),"function"===typeof window.LC_API.is_loaded&&window.LC_API.is_loaded())LiveChatContactButton.init();else{const a=window.LC_API.on_after_load||function(){};window.LC_API.on_after_load=function(){a();LiveChatContactButton.init()}}
5const hideForNotAuthorized=()=>{LC_PLATFORM_CONFIG.options.hideForNotAuthorized&&!window.__text_connect?.visitor?.email&&(window.__lc=window.__lc||{},window.__lc.disable_minimized=!0)};hideForNotAuthorized()})()

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.