PageSourceSearch

https://sac.funtechnology.net/packs/js/sdk.js

js funtechnology.net collected 2026-10-08 17:30:07 UTC 21,995 bytes, 1 lines download raw bytes

vendor: 4,167 bytes, line 1
1(function(){"use strict";/*! js-cookie v3.0.5 | MIT */function m(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)e[s]=o[s]}return e}var P={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function x(e,t){function o(i,n,r){if(!(typeof document>"u")){r=m({},t,r),typeof r.expires=="number"&&(r.expires=new Date(Date.now()+r.expires*864e5)),r.expires&&(r.expires=r.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var d in r)r[d]&&(l+="; "+d,r[d]!==!0&&(l+="="+r[d].split(";")[0]));return document.cookie=i+"="+e.write(n,i)+l}}function s(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var n=document.cookie?document.cookie.split("; "):[],r={},l=0;l<n.length;l++){var d=n[l].split("="),h=d.slice(1).join("=");try{var M=decodeURIComponent(d[0]);if(r[M]=e.read(h,M),i===M)break}catch{}}return i?r[i]:r}}return Object.create({set:o,get:s,remove:function(i,n){o(i,"",m({},n,{expires:-1}))},withAttributes:function(i){return x(this.converter,m({},this.attributes,i))},withConverter:function(i){return x(m({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var c=x(P,{path:"/"});const W=':root{--b-100: #f2f3f7;--s-700: #37546d}.woot-widget-holder{box-shadow:0 5px 40px #00000029;opacity:1;will-change:transform,opacity;transform:translateY(0);overflow:hidden!important;position:fixed!important;transition:opacity .2s linear,transform .25s linear;z-index:2147483000!important}.woot-widget-holder.woot-widget-holder--flat{box-shadow:none;border-radius:0;border:1px solid #f2f3f7;border:1px solid var(--b-100)}.woot-widget-holder iframe{border:0;color-scheme:normal;height:100%!important;width:100%!important;max-height:100vh!important}.woot-widget-holder.has-unread-view{border-radius:0!important;min-height:80px!important;height:auto;bottom:94px;box-shadow:none!important;border:0}.woot-widget-bubble{background:#1f93ff;border-radius:100px;border-width:0px;bottom:20px;box-shadow:0 8px 24px #00000029!important;cursor:pointer;height:64px;padding:0;position:fixed;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:64px;z-index:2147483000!important}.woot-widget-bubble:focus-visible{outline:2px solid AccentColor!important;outline:2px solid -webkit-focus-ring-color!important;outline-offset:2px!important}.woot-widget-bubble.woot-widget-bubble--flat{border-radius:0}.woot-widget-holder.woot-widget-holder--flat{bottom:90px}.woot-widget-bubble.woot-widget-bubble--flat{height:56px;width:56px}.woot-widget-bubble.woot-widget-bubble--flat svg{margin:16px!important}.woot-widget-bubble.woot-widget-bubble--flat.woot--close:before,.woot-widget-bubble.woot-widget-bubble--flat.woot--close:after{left:28px;top:16px}.woot-widget-bubble.unread-notification:after{content:"";position:absolute;width:12px;height:12px;background:#ff4040;border-radius:100%;top:0;right:0;border:2px solid #ffffff;transition:background .2s ease}.woot-widget-bubble.woot-widget--expanded{bottom:24px;display:flex;height:48px!important;width:auto!important;align-items:center}.woot-widget-bubble.woot-widget--expanded div{align-items:center;color:#fff;display:flex;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif;font-size:16px;font-weight:500;justify-content:center;padding-right:20px;width:auto!important}.woot-widget-bubble.woot-widget--expanded.woot-widget-bubble-color--lighter div{color:#37546d;color:var(--s-700)}.woot-widget-bubble.woot-widget--expanded svg{height:20px!important;margin:14px 8px 14px 16px!important;width:20px!important}.woot-widget-bubble.woot-elements--left{left:20px}.woot-widget-bubble.woot-elements--right{right:20px}.woot-widget-bubble:hover{background:#1f93ff;box-shadow:0 8px 32px #0006!important}.woot-widget-bubble svg{all:revert;height:24px!important;margin:20px!important;padding:0!important;width:24px!important}
1.woot-widget-bubble.woot-widget-bubble-color--lighter path{fill:#37546d;fill:var(--s-700)}@media only screen and (min-width:667px){.woot-widget-holder.woot-elements--left{left:20px}.woot-widget-holder.woot-elements--right{right:20px}}.woot--close:hover{opacity:1}.woot--close:before,.woot--close:after{background-color:#fff;content:" ";display:inline;height:24px;left:32px;position:absolute;top:20px;width:2px}.woot-widget-bubble-color--lighter.woot--close:before,.woot-widget-bubble-color--lighter.woot--close:after{background-color:#37546d;background-color:var(--s-700)}.woot--close:before{transform:rotate(45deg)}.woot--close:after{transform:rotate(-45deg)}.woot--hide{bottom:-100vh!important;top:auto!important;top:initial!important;opacity:0;visibility:hidden!important;z-index:-1!important}.woot-widget--without-bubble{bottom:20px!important}.woot-widget-holder.woot--hide{transform:translateY(40px)}.woot-widget-bubble.woot--close{transform:translate(0) scale(1) rotate(0);transition:transform .3s ease,opacity .1s ease,visibility 0ms linear 0ms,bottom 0ms linear 0ms}.woot-widget-bubble.woot--close.woot--hide{transform:translate(8px) scale(.75) rotate(45deg);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear .5s,bottom 0ms ease .2s}.woot-widget-bubble{transform-origin:center;will-change:transform,opacity;transform:translate(0) scale(1) rotate(0);transition:transform .3s ease,opacity .1s ease,visibility 0ms linear 0ms,bottom 0ms linear 0ms}.woot-widget-bubble.woot--hide{transform:translate(8px) scale(.75) rotate(-30deg);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear .5s,bottom 0ms ease .2s}.woot-widget-bubble.woot-widget--expanded{transform:translate(0);transition:transform .3s ease,opacity .1s ease,visibility 0ms linear 0ms,bottom 0ms linear 0ms}.woot-widget-bubble.woot-widget--expanded.woot--hide{transform:translate(8px);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear .5s,bottom 0ms ease .2s}.woot-widget-bubble.woot-widget-bubble--flat.woot--close{transform:translate(0);transition:transform .3s ease,opacity 10ms ease,visibility 0ms linear 0ms,bottom 0ms linear 0ms}.woot-widget-bubble.woot-widget-bubble--flat.woot--close.woot--hide{transform:translate(8px);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear .5s,bottom 0ms ease .2s}.woot-widget-bubble.woot-widget--expanded.woot-widget-bubble--flat{transform:translate(0);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear 0ms,bottom 0ms linear 0ms}.woot-widget-bubble.woot-widget--expanded.woot-widget-bubble--flat.woot--hide{transform:translate(8px);transition:transform .3s ease,opacity .2s ease,visibility 0ms linear .5s,bottom 0ms ease .2s}@media only screen and (max-width:667px){.woot-widget-holder{height:100%;right:0;top:0;width:100%}.woot-widget-holder iframe{min-height:100%!important}.woot-widget-holder.has-unread-view{height:auto;right:0;width:auto;bottom:0;top:auto;max-height:100vh;padding:0 8px}.woot-widget-holder.has-unread-view iframe{min-height:0!important;min-height:initial!important}.woot-widget-holder.has-unread-view.woot-elements--left{left:0}.woot-widget-bubble.woot--close{bottom:60px;opacity:0;visibility:hidden!important;z-index:-1!important}}@media only screen and (min-width:667px){.woot-widget-holder{border-radius:16px;bottom:104px;height:calc(90% - 84px);max-height:640px!important;min-height:250px!important;width:400px!important}}.woot-hidden{display:none!important}',j=()=>{const e=document.createElement("style");e.innerHTML=`${W}`,e.id="cw-widget-styles",e.dataset.turboPermanent=!0,document.body.appendChild(e)},y=(e,t)=>{const o=document.getElementById(e),s=t.querySelector(`#${e}`);o&&!s&&t.appendChild(o)},C=e=>{y("cw-bubble-holder",e),y("cw-widget-holder",e),y("cw-widget-styles",e)},b=(e,t)=>{e.classList.add(...t.split(" "))},E=(e,t)=>{e.classList.toggle(t)},f=(e,t)=>{e.classList.remove(...t.split(" "))},T=({referrerURL:e,referrerHost:t})=>{a.events.onLocationChange({referrerURL:e,referrerHost:t})},z=()=>{let e=document.location.href;const t=document.location.host,o={childList:!0,subtree:!0};T({referrerURL:e,referrerHost:t});const s=document.querySelector("body");new MutationObserver(n=>
1{n.forEach(()=>{e!==document.location.href&&(e=document.location.href,T({referrerURL:e,referrerHost:t}))})}).observe(s,o)},S=["standard","expanded_bubble"],k=["standard","flat"],A=["light","auto","dark"],U=e=>S.includes(e)?e:S[0],L=e=>U(e)===S[1],V=e=>k.includes(e)?e:k[0],O=e=>e==="flat",D=e=>A.includes(e)?e:A[0],q="chatwoot:error",K="chatwoot:postback",Y="chatwoot:ready",G="chatwoot:opened",J="chatwoot:closed",Q=({eventName:e,data:t=null})=>{let o;return typeof window.CustomEvent=="function"?o=new CustomEvent(e,{detail:t}):(o=document.createEvent("CustomEvent"),o.initCustomEvent(e,!1,!1,t)),o},g=({eventName:e,data:t})=>{const o=Q({eventName:e,data:t});window.dispatchEvent(o)},X="M240.808 240.808H122.123C56.6994 240.808 3.45695 187.562 3.45695 122.122C3.45695 56.7031 56.6994 3.45697 122.124 3.45697C187.566 3.45697 240.808 56.7031 240.808 122.122V240.808Z",I=document.getElementsByTagName("body")[0],w=document.createElement("div"),u=document.createElement("div"),_=document.createElement("button"),v=document.createElement("button");document.createElement("span");const Z=e=>{if(L(window.$chatwoot.type)){const t=document.getElementById("woot-widget--expanded__text");t.innerText=e}},ee=({className:e,path:t,target:o})=>{let s=`${e} woot-elements--${window.$chatwoot.position}`;const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"id","woot-widget-bubble-icon"),i.setAttributeNS(null,"width","24"),i.setAttributeNS(null,"height","24"),i.setAttributeNS(null,"viewBox","0 0 240 240"),i.setAttributeNS(null,"fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg");const n=document.createElementNS("http://www.w3.org/2000/svg","path");if(n.setAttributeNS(null,"d",t),n.setAttributeNS(null,"fill","#FFFFFF"),i.appendChild(n),o.appendChild(i),L(window.$chatwoot.type)){const r=document.createElement("div");r.id="woot-widget--expanded__text",r.innerText="",o.appendChild(r),s+=" woot-widget--expanded"}return o.className=s,o.title="Open chat window",o},te=e=>{e&&b(u,"woot-hidden"),b(u,"woot--bubble-holder"),u.id="cw-bubble-holder",u.dataset.turboPermanent=!0,I.appendChild(u)},oe=e=>{a.events.onBubbleToggle(e),e?g({eventName:G}):(g({eventName:J}),_.focus())},p=(e={})=>{const{toggleValue:t}=e,{isOpen:o}=window.$chatwoot;if(o===t)return;const s=t===void 0?!o:t;window.$chatwoot.isOpen=s,E(_,"woot--hide"),E(v,"woot--hide"),E(w,"woot--hide"),oe(s)},ne=()=>{u.addEventListener("click",p)},ie=()=>{const e=document.querySelector(".woot-widget-holder");b(e,"has-unread-view")},R=()=>{const e=document.querySelector(".woot-widget-holder");f(e,"has-unread-view")},se=e=>{const t=e.replace("#",""),o=parseInt(t.substr(0,2),16),s=parseInt(t.substr(2,2),16),i=parseInt(t.substr(4,2),16);return(o*299+s*587+i*114)/1e3>225},ae="SET_USER_ERROR",N=["avatar_url","email","name"],re=[...N,"identifier_hash"],le=0x6c62272e07bb014262b821756295c58dn,de=0x1000000000000000000013bn,we=["phone_number","company_name","city","country_code","description","social_profiles"],ce=e=>!e||typeof e!="object"?e||"":Object.keys(e).sort().map(t=>[t,e[t]]),$=()=>{const e="cw_user_",{websiteToken:t}=window.$chatwoot;return`${e}${t}`},be=({identifier:e="",user:t})=>{const o=[...re.map(s=>[s,t[s]||""]),...we.filter(s=>t[s]!==void 0).map(s=>[s,ce(t[s])]),["identifier",String(e)]];return JSON.stringify(o)},ue=e=>{const t=new TextEncoder().encode(e);let o=le;return t.forEach(s=>{o^=BigInt(s),o=BigInt.asUintN(128,o*de)}),o.toString(16).padStart(32,"0")},ge=(...e)=>ue(be(...e)),he=e=>N.reduce((t,o)=>t||!!e[o],!1),B=(e,t,{expires:o=365,baseDomain:s=void 0}={})=>{const i={expires:o,sameSite:"Lax",domain:s};typeof t=="object"&&(t=JSON.stringify(t)),c.set(e,t,i)},F=["click","touchstart","keypress","keydown"],pe=()=>{let e;try{e=new(window.AudioContext||window.webkitAudioContext)}catch{}return e},me=async(e="",t)=>{const o=pe(),s=i=>{window.playAudioAlert=()=>{if(o){const n=o.createBufferSource();n.buffer=i,n.connect(o.destination),n.loop=!1,n.start()}}};if(o){const{type:i="dashboard",alertTone:n="ding"}=t||{},r=`${e}/audio/${i}/${n}.mp3`,l=new Request(r);fetch(l).then(d=>d.arrayBuffer()).then(d=>(o.decodeAudioData(d).then(s),new Promise(h=>h()))).catch(()=>{})}},fe=({origin:e,conversationCookie:t,websiteToken:o,locale:s})=>{const i=new URL("/widget",e);return i.searchParams.append("cw_conversation",t),i.searchParams.append("website_token",o),i.searchParams.append("locale",s),i.toString()},ve=(e,t,o,s)=>{try{const i=fe({origin:e,websiteToken:t,locale:o,conversationCookie:s});
1window.open(i,`webwidget_session_${t}`,"resizable=off,width=400,height=600").focus()}catch(i){console.log(i)}},H=(e,t="")=>B("cw_conversation",e,{baseDomain:t}),xe=e=>{const t=new Date(Date.now()+36e5);B("cw_snooze_campaigns_till",Number(t),{expires:t,baseDomain:e})},a={getUrl({baseUrl:e,websiteToken:t}){return`${e}/widget?website_token=${t}`},createFrame:({baseUrl:e,websiteToken:t})=>{if(a.getAppFrame())return;j();const o=document.createElement("iframe"),s=c.get("cw_conversation");let i=a.getUrl({baseUrl:e,websiteToken:t});s&&(i=`${i}&cw_conversation=${s}`),o.src=i,o.allow="camera;microphone;fullscreen;display-capture;picture-in-picture;clipboard-write;",o.id="chatwoot_live_chat_widget",o.style.visibility="hidden";let n=`woot-widget-holder woot--hide woot-elements--${window.$chatwoot.position}`;window.$chatwoot.hideMessageBubble&&(n+=" woot-widget--without-bubble"),O(window.$chatwoot.widgetStyle)&&(n+=" woot-widget-holder--flat"),b(w,n),w.id="cw-widget-holder",w.dataset.turboPermanent=!0,w.appendChild(o),I.appendChild(w),a.initPostMessageCommunication(),a.initWindowSizeListener(),a.preventDefaultScroll()},getAppFrame:()=>document.getElementById("chatwoot_live_chat_widget"),getBubbleHolder:()=>document.getElementsByClassName("woot--bubble-holder"),sendMessage:(e,t)=>{a.getAppFrame().contentWindow.postMessage(`chatwoot-widget:${JSON.stringify({event:e,...t})}`,"*")},initPostMessageCommunication:()=>{window.onmessage=e=>{if(typeof e.data!="string"||e.data.indexOf("chatwoot-widget:")!==0)return;const t=JSON.parse(e.data.replace("chatwoot-widget:",""));typeof a.events[t.event]=="function"&&a.events[t.event](t)}},initWindowSizeListener:()=>{window.addEventListener("resize",()=>a.toggleCloseButton())},preventDefaultScroll:()=>{w.addEventListener("wheel",e=>{const t=e.deltaY,o=w.scrollHeight,s=w.offsetHeight,i=w.scrollTop;(i===0&&t<0||s+i===o&&t>0)&&e.preventDefault()})},setFrameHeightToFitContent:(e,t)=>{const o=a.getAppFrame(),s=t?`${e}px`:"100%";o&&o.setAttribute("style",`height: ${s} !important`)},setupAudioListeners:()=>{const{baseUrl:e=""}=window.$chatwoot;me(e,{type:"widget",alertTone:"ding"}).then(()=>F.forEach(t=>{document.removeEventListener(t,a.setupAudioListeners,!1)}))},events:{loaded:e=>{H(e.config.authToken,window.$chatwoot.baseDomain),window.$chatwoot.hasLoaded=!0;const t=c.get("cw_snooze_campaigns_till");a.sendMessage("config-set",{locale:window.$chatwoot.locale,position:window.$chatwoot.position,hideMessageBubble:window.$chatwoot.hideMessageBubble,showPopoutButton:window.$chatwoot.showPopoutButton,widgetStyle:window.$chatwoot.widgetStyle,dar
1kMode:window.$chatwoot.darkMode,showUnreadMessagesDialog:window.$chatwoot.showUnreadMessagesDialog,campaignsSnoozedTill:t,welcomeTitle:window.$chatwoot.welcomeTitle,welcomeDescription:window.$chatwoot.welcomeDescription,availableMessage:window.$chatwoot.availableMessage,unavailableMessage:window.$chatwoot.unavailableMessage,enableFileUpload:window.$chatwoot.enableFileUpload,enableEmojiPicker:window.$chatwoot.enableEmojiPicker,enableEndConversation:window.$chatwoot.enableEndConversation}),a.onLoad({widgetColor:e.config.channelConfig.widgetColor}),a.toggleCloseButton(),window.$chatwoot.user&&a.sendMessage("set-user",window.$chatwoot.user),window.playAudioAlert=()=>{},F.forEach(o=>{document.addEventListener(o,a.setupAudioListeners,!1)}),window.$chatwoot.resetTriggered||g({eventName:Y})},error:({errorType:e,data:t})=>{g({eventName:q,data:t}),e===ae&&c.remove($())},onEvent({eventIdentifier:e,data:t}){g({eventName:e,data:t})},setBubbleLabel(e){Z(window.$chatwoot.launcherTitle||e.label)},setAuthCookie({data:{widgetAuthToken:e}}){H(e,window.$chatwoot.baseDomain)},setCampaignReadOn(){xe(window.$chatwoot.baseDomain)},postback(e){g({eventName:K,data:e})},toggleBubble:e=>{let t={};e==="open"?t.toggleValue=!0:e==="close"&&(t.toggleValue=!1),p(t)},popoutChatWindow:({baseUrl:e,websiteToken:t,locale:o})=>{const s=c.get("cw_conversation");window.$chatwoot.toggle("close"),ve(e,t,o,s)},closeWindow:()=>{p({toggleValue:!1}),R()},onBubbleToggle:e=>{a.sendMessage("toggle-open",{isOpen:e}),e&&a.pushEvent("webwidget.triggered")},onLocationChange:({referrerURL:e,referrerHost:t})=>{a.sendMessage("change-url",{referrerURL:e,referrerHost:t})},updateIframeHeight:e=>{const{extraHeight:t=0,isFixedHeight:o}=e;a.setFrameHeightToFitContent(t,o)},setUnreadMode:()=>{ie(),p({toggleValue:!0})},resetUnreadMode:()=>R(),handleNotificationDot:e=>{if(window.$chatwoot.hideMessageBubble)return;const t=document.querySelector(".woot-widget-bubble");e.unreadMessageCount>0&&!t.classList.contains("unread-notification")?b(t,"unread-notification"):e.unreadMessageCount===0&&f(t,"unread-notification")},closeChat:()=>{p({toggleValue:!1})},playAudio:()=>{window.playAudioAlert()}},pushEvent:e=>{a.sendMessage("push-event",{eventName:e})},onLoad:({widgetColor:e})=>{const t=a.getAppFrame();if(t.style.visibility="",t.setAttribute("id","chatwoot_live_chat_widget"),a.getBubbleHolder().length)return;te(window.$chatwoot.hideMessageBubble),z();let o="woot-widget-bubble",s=`woot-elements--${window.$chatwoot.position} woot-widget-bubble woot--close woot--hide`;O(window.$chatwoot.widgetStyle)&&(o+=" woot-widget-bubble--flat",s+=" woot-widget-bubble--flat"),se(e)&&(o+=" woot-widget-bubble-color--lighter",s+=" woot-widget-bubble-color--lighter");const i=ee({className:o,path:X,target:_});b(v,s),i.style.background=e,v.style.background=e,u.appendChild(i),u.appendChild(v),ne()},toggleCloseButton:()=>{let e=!1;window.matchMedia("(max-width: 668px)").matches&&(e=!0),a.sendMessage("toggle-close-button",{isMobile:e})}},ye="sdk-set-bubble-visibility",Ce=({baseUrl:e,websiteToken:t})=>{if(window.$chatwoot)return;document.addEventListener("turbo:before-render",n=>{n.detail.renderMethod!=="morph"&&C(n.detail.newBody)}),window.Turbolinks&&document.addEventListener("turbolinks:before-render",n=>{C(n.data.newBody)}),document.addEventListener("astro:before-swap",n=>C(n.newDocument.body));const o=window.chatwootSettings||{};let s=o.locale,i=o.baseDomain;o.useBrowserLanguage&&(s=window.navigator.language.replace("-","_")),window.$chatwoot={baseUrl:e,baseDomain:i,hasLoaded:!1,hideMessageBubble:o.hideMessageBubble||!1,isOpen:!1,position:o.position==="left"?"left":"right",websiteToken:t,locale:s,useBrowserLanguage:o.useBrowserLanguage||!1,type:U(o.type),launcherTitle:o.launcherTitle||"",showPopoutButton:o.showPopoutButton||!1,showUnreadMessagesDialog:o.showUnreadMessagesDialog??!0,widgetStyle:V(o.widgetStyle)||"standard",resetTriggered:!1,darkMode:D(o.darkMode),welcomeTitle:o.welcomeTitle||"",welcomeDescription:o.welcomeDescription||"",availableMessage:o.availableMessage||"",unavailableMessage:o.unavailableMessage||"",enableFileUpload:o.enableFileUpload,enableEmojiPicker:o.enableEmojiPicker??!0,enableEndConversation:o.enableEndConversation??!0,toggle(n){a.events.toggleBubble(n)},toggleBubbleVisibility(n){let r=document.querySelector(".woot--bubble-holder"),l=document.querySelector(".woot-widget-holder");n==="hide"?(b(l,"woot-widget--without-bubble"),b(r,"woot-hidden"),window.$chatwoot.hideMessageBubble=!0):n==="show"&&(f(r,"woot-hidden"),f(l,"woot-widget--without-bubble"),window.$chatwoot.hideMessageBubble=!1),a.sendMessage(ye,{hideMessageBubble:window.$chatwoot.hideMessageBubble})},popoutChatWindow(){a.events.popoutChatWindow({baseUrl:window.$chatwoot.baseUrl,websiteToken:window.$chatwoot.websiteToken,locale:s})}
1,setUser(n,r){if(typeof n!="string"&&typeof n!="number")throw new Error("Identifier should be a string or a number");if(!he(r))throw new Error("User object should have one of the keys [avatar_url, email, name]");const l=$(),d=c.get(l),h=ge({identifier:n,user:r});h!==d&&(window.$chatwoot.identifier=n,window.$chatwoot.user=r,a.sendMessage("set-user",{identifier:n,user:r}),B(l,h,{baseDomain:i}))},setCustomAttributes(n={}){if(!n||!Object.keys(n).length)throw new Error("Custom attributes should have atleast one key");a.sendMessage("set-custom-attributes",{customAttributes:n})},deleteCustomAttribute(n=""){if(n)a.sendMessage("delete-custom-attribute",{customAttribute:n});else throw new Error("Custom attribute is required")},setConversationCustomAttributes(n={}){if(!n||!Object.keys(n).length)throw new Error("Custom attributes should have atleast one key");a.sendMessage("set-conversation-custom-attributes",{customAttributes:n})},deleteConversationCustomAttribute(n=""){if(n)a.sendMessage("delete-conversation-custom-attribute",{customAttribute:n});else throw new Error("Custom attribute is required")},setLabel(n=""){a.sendMessage("set-label",{label:n})},removeLabel(n=""){a.sendMessage("remove-label",{label:n})},setLocale(n="en"){a.sendMessage("set-locale",{locale:n})},setColorScheme(n="light"){a.sendMessage("set-color-scheme",{darkMode:D(n)})},reset(){window.$chatwoot.isOpen&&a.events.toggleBubble(),c.remove("cw_conversation"),c.remove($());const n=a.getAppFrame();n.src=a.getUrl({baseUrl:window.$chatwoot.baseUrl,websiteToken:window.$chatwoot.websiteToken}),window.$chatwoot.resetTriggered=!0}},a.createFrame({baseUrl:e,websiteToken:t})};window.chatwootSDK={run:Ce}})();

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.