1import{j as y}from"./chunk-FWPKSWCA.js";import{a as _}from"./chunk-V42YWAY2.js";import{da as g}from"./chunk-XBYGHBCF.js";import{e as v,f as k}from"./chunk-TSRGIXR5.js";var I=v(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.regionAPIs=void 0;h.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])});var C=v(c=>{"use strict";var M=c&&c.__awaiter||function(t,s,o,n){function r(a){return a instanceof o?a:new o(function(w){w(a)})}return new(o||(o=Promise))(function(a,w){function O(d){try{p(n.next(d))}catch(f){w(f)}}function U(d){try{p(n.throw(d))}catch(f){w(f)}}function p(d){d.done?a(d.value):r(d.value).then(O,U)}p((n=n.apply(t,s||[])).next())})};Object.defineProperty(c,"__esModule",{value:!0});c.ref=c.init=void 0;var S="_intercom_npm_loader",u=function(){u.loaderQueue(arguments)};u.q=[];u.loaderQueue=function(t){u.q.push(t)};var l=function(t){var s,o,n=document;if(!n.getElementById(S)){var r=n.createElement("script");r.type="text/javascript",r.async=!0,r.id=S,r.src=t||"https://widget.intercom.io/widget/"+((s=window.intercomSettings)===null||s===void 0?void 0:s.app_id);var a=n.getElementsByTagName("script")[0];(o=a.parentNode)===null||o===void 0||o.insertBefore(r,a)}},b=()=>document.readyState==="complete"||document.readyState==="interactive",T=(...t)=>M(void 0,[...t],void 0,function*(s={}){var o=window,n=o.Intercom;o.intercomSettings&&(o.intercomSettings.installation_type="npm-package"),typeof n=="function"?(n("reattach_activator"),n("update",o.intercomSettings)):(o.Intercom=u,b()?l(s.widgetUrl):(document.addEventListener("readystatechange",function(){b()&&l(s.widgetUrl)}),o.attachEvent?o.attachEvent("onload",()=>l(s.widgetUrl)):o.addEventListener("load",()=>l(s.widgetUrl),!1)))});c.init=T;c.ref=void 0});var N=v(e=>{"use strict";var j=e&&e.__rest||function(t,s){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&s.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)s.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(o[n[r]]=t[n[r]]);return o};Object.defineProperty(e,"__esModule",{value:!0});e.hideNotifications=e.onUserEmailSupplied=e.showConversation=e.showTicket=e.startChecklist=e.startSurvey=e.showNews=e.showArticle=e.startTour=e.whoami=e.getVisitorId=e.trackEvent=e.onUnreadCountChange=e.onShow=e.onHide=e.showNewMessage=e.showMessages=e.showSpace=e.show=e.hide=e.update=e.shutdown=e.boot=e.Intercom=void 0;var P=I(),E=C(),i=(t,...s)=>{if(typeof window!==void 0&&window.Intercom)return window.Intercom(t,...s);console.warn("Please ensure Intercom is setup and running on client-side!")},A=t=>{if(typeof t!="object"){console.warn("Intercom initialiser called with invalid parameters.");return}let{region:s="us",widgetUrl:o}=t,n=j(t,["region","widgetUrl"]);typeof window<"u"&&!E.ref&&(window.intercomSettings=Object.assign(Object.assign({},n),{api_base:P.regionAPIs.get(s)}),(0,E.init)({widgetUrl:o}))};e.Intercom=A;e.default=e.Intercom;var q=t=>i("boot",t);e.boot=q;var H=()=>i("shutdown");e.shutdown=H;var V=t=>i("update",t);e.update=V;var x=()=>i("hide");e.hide=x;var B=()=>i("show");e.show=B;var L=t=>i("showSpace",t);e.showSpace=L;var Q=()=>i("showMessages");e.showMessages=Q;var D=t=>i("showNewMessage",t);e.showNewMessage=D;var F=t=>i("onHide",t);e.onHide=F;var R=t=>i("onShow",t);e.onShow=R;var W=t=>i("onUnreadCountChange",t);e.onUnreadCountChange=W;var Y=(...t)=>i("trackEvent",...t);e.trackEvent=Y;var z=()=>i("getVisitorId");e.getVisitorId=z;var G=()=>i("whoami");e.whoami=G;var J=t=>i("startTour",t);e.startTour=J;var K=t=>i("showArticle",t);e.showArticle=K;var X=t=>i("showNews",t);e.showNews=X;var Z=t=>i("startSurvey",t);e.startSurvey=Z;var $=t=>i("startChecklist",t);e.startChecklist=$;var tt=t=>i("showTicket",t);e.showTicket=tt;var et=t=>i("showConversation",t);e.showConversation=et;var ot=t=>i("onUserEmailSupplied",t);e.onUserEmailSupplied=ot;var nt=t=>i("hideNotifications",t);e.hideNotifications=nt});var m=k(N());var ut=(()=>{class t{constructor(){}initIntercom(){(0,m.default)({app_id:_.intercom_app_id})}updateIntercomInfo(o){(0,m.update)({name:o.name,email:o.email,phone:o.contactNumber,accountType:y[o.accountType]||void 0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{ut as a};
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.