1import{a as h}from"./chunk-RYZZHX5M.js";import{A as u}from"./chunk-BI27YA3Y.js";import{Ca as l,Z as o,da as r,n as p,na as n,ra as d}from"./chunk-ZN33ZYYU.js";var y=[{src:"https://static.axept.io/sdk.js",id:"axeptio-sdk"}],f=(()=>{class e{document=r(n);init(){y.forEach(t=>{this.load(t.src,t.id)})}load(t,s){if(s!==void 0&&this.document.getElementById(s)!==null)return;let i=this.document.createElement("script");i.type="text/javascript",i.src=t,i.async=!0,s!==void 0&&(i.id=s),this.document.getElementsByTagName("head")[0].appendChild(i)}static \u0275fac=function(s){return new(s||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var w="https://client.crisp.chat/l.js",I="crisp-sdk",B="crisp-client",R=(()=>{class e{platformId=r(l);document=r(n);asyncScript=r(f);isBrowser;display$=new p;loaded=d(!1);tokenData=null;isLoaded=this.loaded.asReadonly();constructor(){let t=this.platformId;this.isBrowser=u(t)}load(){if(!this.isBrowser||this.loaded())return;let t=this.window();t&&(t.$crisp=[],t.CRISP_WEBSITE_ID=h.crisp.websiteId,this.asyncScript.load(w,I),this.loaded.set(!0),this.push(["safe",!0]),this.tokenData!==null&&this.connect(this.tokenData))}isDisplay(){return this.display$.asObservable()}display(t){this.display$.next(t)}connect(t){this.tokenData=t;let s=typeof t.username=="string"?t.username.trim():"";s&&this.push(["set","user:email",s]);let i=typeof t.speciality=="string"?t.speciality.trim():"";i&&this.push(["set","session:segments",[[i]]]);let c=typeof t.country=="string"?t.country.trim():"";c&&this.push(["set","session:data",["Country",c]]);let a=typeof t.createdAt=="string"?t.createdAt.trim():"";a&&this.push(["set","session:data",["RegistrationDate",a]])}open(){if(this.isBrowser){if(!this.loaded()){this.window()?.openAxeptioCookies?.();return}this.push(["do","chat:open"])}}push(t){!this.isBrowser||!this.loaded()||this.window()?.$crisp?.push(t)}window(){return this.document.defaultView}static \u0275fac=function(s){return new(s||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{f as a,B as b,R as c};
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.