modules-23cf2274.js

https://tkclub3.com/assets/js/modules-23cf2274.js

Analyzed: 3/6/2026, 12:48:53 AM

View Scan Result

Script Analysis Summary

Summary: modules-23cf2274.js is a 1.25 MB external identified as pinia v2.1.7. Contains 6965 functions with complexity score of 3673. SHA-256: 432626c86d413278...

external1.25 MBpinia v2.1.7ML Embeddings Available

Code Metrics

File Size
1.25 MB
Functions
6,965*
Complexity
3,673
AST Nodes
406,146
AST Depth
52
Function Calls
0
Normalized Size
236.3 KB

Obfuscation Analysis

No obfuscation data available

Library Detection

piniav2.1.7

Bundle Analysis

Not a bundled file

Copyright & License

License
MIT, property is required for initialization");typeof n<"u"&&(window.__lc.group=Number(n)),typeof r<"u"&&(window.__lc.chat_between_groups=!!r),i instanceof Object&&(window.__lc.params=Object.entries(i).map(function(s){var a=fZ(s,2),o=a[0],l=a[1];return{name:o,value:l}})),typeof A=="function"&&(window.__lc.custom_identity_provider=A)}function t2(e,t){e==="off"&&typeof window.LiveChatWidget>"u"||(typeof t.onReady=="function"&&window.LiveChatWidget[e]("ready",t.onReady),typeof t.onAvailabilityChanged=="function"&&window.LiveChatWidget[e]("availability_changed",t.onAvailabilityChanged),typeof t.onVisibilityChanged=="function"&&window.LiveChatWidget[e]("visibility_changed",t.onVisibilityChanged),typeof t.onCustomerStatusChanged=="function"&&window.LiveChatWidget[e]("customer_status_changed",t.onCustomerStatusChanged),typeof t.onNewEvent=="function"&&window.LiveChatWidget[e]("new_event",t.onNewEvent),typeof t.onFormSubmitted=="function"&&window.LiveChatWidget[e]("form_submitted",t.onFormSubmitted),typeof t.onRatingSubmitted=="function"&&window.LiveChatWidget[e]("rating_submitted",t.onRatingSubmitted),typeof t.onGreetingDisplayed=="function"&&window.LiveChatWidget[e]("greeting_displayed",t.onGreetingDisplayed),typeof t.onGreetingHidden=="function"&&window.LiveChatWidget[e]("greeting_hidden",t.onGreetingHidden),typeof t.onRichMessageButtonClicked=="function"&&window.LiveChatWidget[e]("rich_message_button_clicked",t.onRichMessageButtonClicked))}function p7(e){typeof e.name=="string"&&window.LiveChatWidget.call("set_customer_name",e.name),typeof e.email=="string"&&window.LiveChatWidget.call("set_customer_email",e.email)}function g7(e){e==="hidden"&&window.LiveChatWidget.call("hide"),e==="maximized"&&window.LiveChatWidget.call("maximize"),e==="minimized"&&window.LiveChatWidget.call("minimize")}var BZ=lZ(),v7=BZ.emit.bind(null);function yZ(e){var t={isLoading:!1,desiredState:"unknown",currentEventHandlers:{onReady:e.onReady,onNewEvent:e.onNewEvent,onFormSubmitted:e.onFormSubmitted,onGreetingHidden:e.onGreetingHidden,onRatingSubmitted:e.onRatingSubmitted,onGreetingDisplayed:e.onGreetingDisplayed,onVisibilityChanged:e.onVisibilityChanged,onAvailabilityChanged:e.onAvailabilityChanged,onCustomerStatusChanged:e.onCustomerStatusChanged,onRichMessageButtonClicked:e.onRichMessageButtonClicked}},n=vZ();return mZ(e),g7(e.visibility),t2("on",t.currentEventHandlers),p7({name:e.customerName,email:e.customerEmail}),window.__lc.integration_name="@livechat/widget-core",{init:function(){var i=this;t.desiredState="loaded",!t.isLoading&&(window.LC_API=window.LC_API||{},window.LC_API.on_after_load=function(){t.isLoading=!1,t.desiredState==="destroyed"&&i.destroy(),t.desiredState="unknown"},v7("init"),t.isLoading=!0,window.LiveChatWidget.init())},destroy:function(){var i;t.desiredState="destroyed",!t.isLoading&&(v7("destroy"),(i=n.current)===null||i===void 0||i.remove(),window.LiveChatWidget.call("destroy"))},updateVisibility:function(i){g7(i)},updateEventHandlers:function(i){t2("off",t.currentEventHandlers),t2("on",i),t.currentEventHandlers=uZ({},i)},updateSessionVariables:function(i){i&&window.LiveChatWidget.call("update_session_variables",i)},hideGreeting:function(){window.LiveChatWidget.call("hide_greeting")},updateCustomerData:function(i){p7(i)}}}var Jde=et({props:{license:{type:String,required:!0},group:{type:String,required:!1,default:void 0},visibility:{type:String,required:!1,default:void 0},customerName:{type:String,required:!1,default:void 0},customerEmail:{type:String,required:!1,default:void 0},sessionVariables:{type:Object,required:!1,default:void 0},chatBetweenGroups:{type:Boolean,required:!1,default:void 0},customIdentityProvider:{type:Function,required:!1,default:void 0}},emits:["ready","new-event","form-submitted","rating-submitted","greeting-hidden","greeting-displayed","visibility-changed","customer-status-changed","rich-message-button-clicked","availability-changed"],data:function(){return{widget:null}},watch:{license:"reinitialize",group:"reinitialize",chatBetweenGroups:"reinitialize",visibility:function(t){var n;(n=this.widget)===null||n===void 0||n.updateVisibility(t)},customerName:function(t){var n;(n=this.widget)===null||n===void 0||n.updateCustomerData({name:t})},customerEmail:function(t){var n;(n=this.widget)===null||n===void 0||n.updateCustomerData({email:t})},sessionVariables:function(t){var n;(n=this.widget)===null||n===void 0||n.updateSessionVariables(t)}},mounted:function(){this.setupWidget()},unmounted:function(){var t;(t=this.widget)===null||t===void 0||t.destroy()},methods:{setupWidget:function(){var t=this;this.widget=yZ({group:this.group,license:this.license,customerName:this.customerName,customerEmail:this.customerEmail,sessionVariables:this.sessionVariables,chatBetweenGroups:this.chatBetweenGroups,visibility:this.visibility,customIdentityProvider:this.customIdentityProvider,onReady:function(r){return t.$emit("ready",r)},onNewEvent:function(r){return t.$emit("new-event",r)},onFormSubmitted:function(r){return t.$emit("form-submitted",r)},onRatingSubmitted:function(r){return t.$emit("rating-submitted",r)},onGreetingHidden:function(r){return t.$emit("greeting-hidden",r)},onGreetingDisplayed:function(r){return t.$emit("greeting-displayed",r)},onVisibilityChanged:function(r){return t.$emit("visibility-changed",r)},onCustomerStatusChanged:function(r){return t.$emit("customer-status-changed",r)},onRichMessageButtonClicked:function(r){return t.$emit("rich-message-button-clicked",r)},onAvailabilityChanged:function(r){return t.$emit("availability-changed",r)}}),window.__lc.integration_name="@livechat/widget-vue",this.widget.init()},reinitialize:function(){var t;(t=this.widget)===null||t===void 0||t.destroy(),this.setupWidget()}},render:function(){return null}});const rx={isNative:!1,platform:"",init(){this.setNative(!0),this.detectDevice()},setNative:e=>{globalThis.isNative=e},setPlatform:e=>{globalThis.platform=e},detectDevice(){const e=window.navigator.userAgent;let t="unknown";return e.match(/Android/i)?t="Android":e.match(/iPhone|iPad|iPod/i)?t="iOS":e.match(/Windows/i)?t="Desktop":t="Mobile",this.setPlatform(t),t},getDeviceInformation:()=>globalThis.isNative?{appName:BuildInfo.name,appNativeVersion:BuildInfo.version,appPackageName:BuildInfo.packageName,appInstallDate:BuildInfo.installDate,appBuildDate:BuildInfo.buildDate,platform:globalThis.platform,systemModel:device.model,systemPlatform:device.platform,systemUuid:device.uuid,systemVersion:device.version,systemManufacturer:device.manufacturer,systemSerial:device.serial}:{},getBuildInfo:()=>globalThis.isNative?BuildInfo:{},showAlert(e){window.navigator.notification?window.navigator.notification.alert(e,()=>{},"Alert","OK"):alert(e)},lockOrientation:(e="portrait-primary")=>{window.screen&&(window.screen.orientation.unlock(),window.screen.orientation.lock(e))},copy:e=>{cordova.plugins.clipboard.copy(e)},paste:e=>{cordova.plugins.clipboard.paste(t=>{e(t)})},setAndroidFullScreen(){AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN|AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE,()=>{},()=>{})},resetAndroidFullScreen:()=>{AndroidFullScreen.resetScreen()},Browser:{system:e=>{cordova.InAppBrowser.open(e,"_system","")},webview:async(e,t)=>{try{return{status:1,msg:await new Promise((r,i)=>{window.NativeApi.openWebview(e,t,A=>{console.log("window.NativeApi.openWebview.success => ",A),r(A)},A=>{console.log("window.NativeApi.openWebview.fail => ",A),i(A)})})}}catch(n){let r="An unknown error occurred while checking for updates";return n instanceof Error?r=n.message:typeof n=="string"&&(r=n),{status:0,msg:`Error while opening webview: ${r}`,data:null}}},closeWebview:()=>{window.NativeApi.closeWebview()}},File:{saveImageFromUrl:async(e,t)=>{try{const r=await(await fetch(e)).blob(),i=await new Promise((a,o)=>{window.resolveLocalFileSystemURL(cordova.file.dataDirectory,a,o)}),A=await new Promise((a,o)=>{i.getFile(t,{create:!0},a,o)}),s=await new Promise((a,o)=>{A.createWriter(a,o)});return await new Promise((a,o)=>{s.onwriteend=a,s.onerror=o,s.write(r)}),await new Promise((a,o)=>{window.cordova.plugins.imagesaver.saveImageToGallery(A.nativeURL,()=>{a()},l=>{console.error("Failed to save:",JSON.stringify(l,null,2)),o(l)})}),{status:1,msg:"Image saved successfully"}}catch(n){let r="An unknown error occurred while checking for updates";return n instanceof Error?r=n.message:typeof n=="string"&&(r=n),{status:0,msg:`Error during image saving process: ${r}`,data:null}}},saveImageFromBase64:async(e,t="downloadedImage.png")=>{const n="image/png",r=cordova.file.dataDirectory;try{const u=e.split(",")[1],f=i(u,n),d=await A(r),p=await s(d,t);return await a(p,f),globalThis.platform==="Android"?await l(p):await o(p.toURL()),{status:1,msg:"Image saved successfully"}}catch(u){let f="An unknown error occurred while checking for updates";return u instanceof Error?f=u.message:typeof u=="string"&&(f=u),{status:0,msg:`Error saving the base64 image: ${f}`,data:null}}function i(u,f){const d=window.atob(u),p=d.length,g=new Uint8Array(p);for(let B=0;B<p;B++)g[B]=d.charCodeAt(B);return new Blob([g],{type:f})}async function A(u){return new Promise((f,d)=>{window.resolveLocalFileSystemURL(u,f,d)})}async function s(u,f){return new Promise((d,p)=>{u.getFile(f,{create:!0},d,p)})}async function a(u,f){return new Promise((d,p)=>{u.createWriter(g=>{g.onwriteend=d,g.onerror=p,g.write(f)})})}async function o(u){return new Promise((f,d)=>{window.cordova.plugins.imagesaver.saveImageToGallery(u,()=>{f()},p=>{console.error("Failed to save image:",JSON.stringify(p,null,2)),d(p)})})}async function l(u){return new Promise((f,d)=>{u.file(p=>{const g=new FileReader;g.onloadend=()=>{window.cordova.plugins.imagesaver.saveImageToGallery(g.result,()=>{f()},B=>{console.error("Failed to save image:",JSON.stringify(B,null,2)),d(B)})},g.readAsDataURL(p)},p=>{console.error("Error reading file:",JSON.stringify(p,null,2)),d(p)})})}}},Notification:{showLocalNotification:(e,t)=>{cordova.plugins.notification.local.schedule({title:e,text:t,foreground:!0})},setBadge:e=>{globalThis.isNative&&cordova.plugins.notification.badge.set(e)},firebaseGetToken:async()=>{try{const e=await cordova.plugins.firebase.messaging.getToken();return console.log("Device token: ",e),{status:1,msg:"Success",data:e}}catch(e){let t="An unknown error occurred while checking for updates";return e instanceof Error?t=e.message:typeof e=="string"&&(t=e),{status:0,msg:`Error getting token: ${t}`,data:null}}},registerFirebaseListener:()=>{cordova.plugins.firebase.messaging.onTokenRefresh(function(e){console.log("Device token refreshed: ",e),document.dispatchEvent(new CustomEvent("",{token:e}))}),cordova.plugins.firebase.messaging.onMessage(function(e){console.log("New foreground FCM message: ",e),this.Notification.showLocalNotification(e.notification.title,e.notification.body)}),cordova.plugins.firebase.messaging.onBackgroundMessage(function(e){console.log("New background FCM message: ",e),this.Notification.showLocalNotification(e.notification.title,e.notification.body)})}},SocialShare:{appShare:(e,t)=>{e=e.replace("{APPNAME}",BuildInfo.name),window.plugins.socialsharing.shareWithOptions({message:e,url:t},n=>{},n=>{})},fb:(e,t)=>{e=e.replace("{APPNAME}",BuildInfo.name);let n=globalThis.platform==="Android"?"com.facebook.katana":"com.apple.social.facebook";window.plugins.socialsharing.canShareVia(n,e,null,null,t,r=>{window.plugins.socialsharing.shareViaFacebook(e,null,t,i=>{},i=>{console.log("Failed to share via facebook",i),globalThis.Browser.system(`https://www.facebook.com/sharer/sharer.php?u=${encodeURI(t)}`)})},r=>{console.log("Failed to share via facebook",r),globalThis.Browser.system(`https://www.facebook.com/sharer/sharer.php?u=${encodeURI(t)}`)})},ig:(e,t)=>{e=e.replace("{APPNAME}",BuildInfo.name),window.plugins.socialsharing.canShareVia("instagram",e,null,null,t,n=>{window.plugins.socialsharing.shareViaInstagram(e,null,t,r=>{},r=>{if(console.log("Failed to share via instagram",r),r!=="cancelled"){alert("Instagram not installed!");return}alert("Failed to share via instagram")})},n=>{if(console.log("Failed to share via instagram",n),n==="not available"){alert("Instagram not installed!");return}})},whatsapp:(e,t)=>{e=e.replace("{APPNAME}",BuildInfo.name),window.plugins.socialsharing.canShareVia("whatsapp",e,null,null,t,n=>{window.plugins.socialsharing.shareViaWhatsApp(e,null,t,r=>{},r=>{console.log("Failed to share via whatsapp",r),globalThis.Browser.system(`https://wa.me/?text=${encodeURI(t+`, MIT, header required
Authors
DISCLAIMS ALL WARRANTIES WITH, BE LIABLE FOR ANY SPECIAL, DIRECT,
Version (from header)
2.1.7
Copyright Notice
Eduardo San Martin Morote

ML Analysis

CodeBERT (768d)GraphCodeBERT (768d)AST Features (128d)Handcrafted (64d)
Composite Vector1728 dimensions

Used for semantic similarity search across the database

Module Information

Module Pattern
script
Is Module
No