"use strict";/* @notice * Portions of this code are licensed under the following license: * Gainsight PX Agent Wrapper Agent Version: 0.46.0 Installed: 2022-08-25 08:07 * https://www.gainsight.com/policy/gainsight-px-license-agreement/ */ /* eslint-disable prettier/prettier,no-var,eqeqeq,new-cap,no-nested-ternary,no-use-before-define,no-sequences,block-scoped-var,one-var, dot-notation,no-script-url,no-restricted-globals,no-unused-vars,guard-for-in,no-proto,camelcase,no-empty,no-redeclare,no-caller, strict,no-extend-native,no-undef,no-loop-func */!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports;}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r});},t.n=function(e){var n=e&&e.__esModule?function(){return e.default;}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},t.p="/",t(t.s=284);}([function(e,t,n){var r=n(4),o=n(31),i=n(19),a=n(20),s=n(27),u=function(e,t,n){var c,l,f,p,d=e&u.F,h=e&u.G,g=e&u.S,v=e&u.P,b=e&u.B,m=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?o:o[t]||(o[t]={}),_=y.prototype||(y.prototype={});h&&(n=t);for(c in n)l=!d&&m&&void 0!==m[c],f=(l?m:n)[c],p=b&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,m&&a(m,c,f,e&u.U),y[c]!=f&&i(y,c,p),v&&_[c]!=f&&(_[c]=f);};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u;},function(e,t,n){"use strict";e.exports=n(488);},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e;};},function(e,t,n){e.exports=n(500)();},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n);},function(e,t){e.exports=function(e){try{return!!e();}catch(e){return!0;}};},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e;};},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={URLS:{GET_KC_ENTRIES:'https://esp.aptrinsic.com'+"/rte/v1/kc",GET_KC_CONFIG:'https://esp.aptrinsic.com'+"/rte/v1/kc/config",GET_KC_CONFIG_PREVIEW:'https://app-be.aptrinsic.com'+"/api/knowledge",CONTENT_BASE_URL:'https://web-sdk.aptrinsic.com'},URL_PARAMS:{GUIDE_ID:"aptGuideId"},ENUMS:{ENGAGEMENT_VIEW_STATE:{IN_PROGRESS:{value:"IN_PROGRESS",icon:"check-1.svg",editableIcon:"check-1-editable.svg",className:"in-progress"},COMPLETED:{value:"COMPLETED",icon:"check-5.svg",editableIcon:"check-5-editable.svg",className:"completed"},NOT_VIEWED:{value:"NOT_VIEWED",icon:"check-4.svg",editableIcon:"check-4-editable.svg",className:"not-viewed"}},ENGAGEMENT_ENTRY_TYPE:{GUIDE:{value:"GUIDE",icon:"guide-6.svg",editableIcon:"guide-editable.svg",whiteIcon:"guide-6-white.svg"},ANNOUNCEMENT:{value:"ANNOUNCEMENT",icon:"announce-6.svg",editableIcon:"announce-editable.svg",whiteIcon:"announce-6-white.svg"},SLIDER:{value:"SLIDER",icon:"slider-6.svg",editableIcon:"slider-editable.svg",whiteIcon:"slider-6-white.svg"},LINK:{value:"LINK",icon:"kc-link/link-black.svg",whiteIcon:"kc-link/link-white.svg",editableIcon:"kc-link/link-editable.svg"},FUNC_CALL:{value:"FUNC_CALL",icon:"kc-link/func-black.svg",whiteIcon:"kc-link/func-white.svg",editableIcon:"kc-link/func-editable.svg"},BOOLEAN_SURVEY:{value:"BOOLEAN_SURVEY",icon:"nps-6.svg",editableIcon:"nps-editable.svg",whiteIcon:"nps-6-white.svg"},RATING_SURVEY:{value:"RATING_SURVEY",icon:"nps-6.svg",editableIcon:"nps-editable.svg",whiteIcon:"nps-6-white.svg"},NPS_SURVEY:{value:"NPS_SURVEY",icon:"nps-6.svg",editableIcon:"nps-editable.svg",whiteIcon:"nps-6-white.svg"},CES_SURVEY:{value:"CES_SURVEY",icon:"nps-6.svg",editableIcon:"nps-editable.svg",whiteIcon:"nps-6-white.svg"},MULTIPLE_QUESTION_SURVEY:{value:"MULTIPLE_QUESTION_SURVEY",icon:"nps-6.svg",editableIcon:"nps-editable.svg",whiteIcon:"nps-6-white.svg"},ARTICLE:{value:"ARTICLE",icon:"article-black.svg",whiteIcon:"article-white.svg",editableIcon:"article-editable.svg"},KNOWLEDGE_BASE_ARTICLE:{value:"KNOWLEDGE_BASE_ARTICLE",icon:"article-black.svg",whiteIcon:"article-white.svg",editableIcon:"article-editable.svg"},CATEGORY:{value:"CATEGORY",icon:"tiles-black.svg",editableIcon:"tiles-editable.svg",whiteIcon:"tiles-black.svg"}},DEFAULT_ENG_ICON:"dialog-1.svg",STATIC_ARTICLE_VIEW_TYPES:{DEFAULT_VIEW:"DEFAULT_VIEW",CARD_VIEW:"CARD_VIEW"}},TAB_INDEXES:{WIDGET:0,MAIN_FRAME:30769,SPEECH_BUBBLE:{CLOSE_BUTTON:30768},ON_BOARDING:{TAB:30769,CATEGORY_HEADER:30775,ENTRY_START:30777,TAKE_ME_THEIR:30778,CANCEL:30779},FEEDBACK:{TAB:30769,CATEGORY_DROPDOWN:30775,LABELS_DROPDOWN:30776,SUBJECT:30777,DESCRIPTION:30778,SUBMIT:30779},DOCS:{ARTICLE_HEADER:30777,ARTICLE:30777,SEARCH_BOX_CLEAR_BUTTON:30776,SEARCH_BOX:30775,TAB:30769},EXPAND:31767,CLOSE:31766},KC_SIZE_LS_KEY:"px.kc.size"};t.default=r;},function(e,t,n){var r=n(78)("wks"),o=n(48),i=n(4).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e));}).store=r;},function(e,t,n){e.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7;}}).a;});},function(e,t,n){var r=n(2),o=n(178),i=n(32),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n);}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e;};},function(e,t,n){var r=n(34),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0;};},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e};}function o(e,t){return"
"+(t||"")+"";}function i(e,t){var n=g(e,U.default.URL_PARAMS.GUIDE_ID,t);window.parent.document.location.href=n;}function a(e,t,n){h({engId:e,absoluteTargetUrl:t,name:"apt_get_engagement",categoryId:n});}function s(e,t,n){h({name:"apt_search_articles",searchTerms:e,labels:t,url:n});}function u(e){h({name:"apt_track_internal_article",articleId:e.id,articleUrl:e.url||"",categoryId:e.category.id,articleLink:e.linkUrl||""});}function c(e){h({name:"apt_track_external_article",articleId:e.id,articleUrl:e.url,articleProvider:e.provider,articleTitle:e.title,propertyGroupId:e.propertyGroupId});}function l(e,t,n){h({name:"apt_get_article",id:e,propertyGroupId:t,title:n});}function f(e){h({name:"apt_send_feedback",feedbackObj:e});}function p(e){h({name:"apt_kc_func_click",funcName:e});}function d(e){h({name:"apt_kc_link_click",linkObj:e});}function h(e){e.messageId=$(),window.parent.postMessage(e,window.parent.location.href);}function g(e,t,n){var r=document.createElement("a");r.href=e;var o=v(r.search)?"?":"";return o+=b(t,n,r.search?r.search.split("&"):null).join("&"),[(0,z.getOriginFromAnchorElement)(r),r.pathname,o,r.hash].join("");}function v(e){return!e||"string"!=typeof e||""==e.trim();}function b(e,t,n){return n||(n=[]),n.push(e+(""!==t?"="+encodeURIComponent(t):"")),n;}function m(e,t){fetch('https://esp.aptrinsic.com'+"/rte/v1/error/log",{method:"post",body:JSON.stringify({url:window.parent.document.location.href,apiKey:e,message:t,sdkVersion:"widget-0.1.0"})});}function y(e){var t=e.replace("#","");return(parseInt(t.substring(0,2),16)+parseInt(t.substring(2,4),16)+parseInt(t.substring(4,6),16))/3<128;}function _(e){"true"===H.default.get("apt.debug")&&console.log(e);}function w(e,t){h({name:"apt_tracking_toggle_widget",isOpen:e,shouldTrack:t});}function E(){w(!1),w(!1);}function x(e){h({name:"apt_log",message:e});}function S(e){var t=e||window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10);}var o=t.indexOf("Edge/");return o>0&&parseInt(t.substring(o+5,t.indexOf(".",o)),10);}function C(){var e=document.documentElement,t=S();if(t){e=t<=X?document.documentElement:document.body;}return e;}function k(){var e=S(),t=!1;return e&&(t=e<79),t;}function O(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{if(e){var n=C(),r=n.scrollTop,o=n.scrollLeft;e.focus({preventScroll:t}),t&&k()&&(n.scrollLeft=o,n.scrollTop=r);}}catch(e){_(new Error("FocusElement - could not focus on element "+e));}}function T(e){var t=[];return e.forEach(function(e){return t=t.concat(e.entries);}),t;}function A(e){return L(e)&&e.engagementViewStatus===K;}function I(e){return L(e)&&e.engagementViewStatus===Y;}function R(e){return I(e)&&e.category.showBadge;}function P(e){return I(e)&&e.enabled;}function N(e){return!!D(e)&&e.engagementViewStatus!==K;}function D(e){var t="CATEGORY"===e.entryType,n="ARTICLE"===e.entryType,r="KNOWLEDGE_BASE_ARTICLE"===e.entryType;return!t&&!r&&!n;}function L(e){return-1===["CATEGORY","LINK","FUNC_CALL"].indexOf(e.entryType);}function j(e,t){return t.some(function(t){return t.value.some(function(n){var r=n.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp(r.replace(/\*/g,"[^ ]*")),i=o.test(e);return"is"===t.operator?i:"isNot"===t.operator?!i:void 0;});});}function M(e,t,n,r){var o=void 0;return"function"==typeof CustomEvent?o=new CustomEvent(e,{detail:t,cancelable:r||!1,bubbles:n||!1}):(o=document.createEvent("CustomEvent"),o.initCustomEvent(e,n||!1,r||!1,t)),o;}function F(e,t,n,r){document.dispatchEvent(M(e,t,n,r));}Object.defineProperty(t,"__esModule",{value:!0}),t.creatCustomEvent=t.dispatchCustomEvent=t.linkClicked=t.kcFunctionClicked=t.isBlank=t.getParentWindow=t.isIframe=t.getGoogleFontLink=t.stripHtml=t.checkisLegacyBrowser=t.focusElement=t.trackInternalArticle=t.hexRgba=t.getArticle=t.sendFeedback=t.logDebug=t.checkDarkColor=t.logInternalError=t.activateEngagement=t.searchArticles=t.redirectToEngagement=t.getIFameHeaderWithStyle=t.isExternalFont=t.findFirstFeedbackCategory=t.getRecommendedContent=void 0,t.trackExternalArticleClick=c,t.trackToggleWidget=w,t.trackCloseWidget=E,t.postLogToSdk=x,t.getEntriesFromCategories=T,t.filterCompleted=A,t.filterBadgeCountQualifiedForCategory=R,t.filterBadgeCountQualified=P,t.filterInCompleted=N,t.filterEngagements=D,t.filterEngagementsAndArticles=L;var B=n(7),U=r(B),V=n(529),H=r(V),z=n(64),W=n(94),G=n(530),q=r(G),K=(n(71),U.default.ENUMS.ENGAGEMENT_VIEW_STATE.COMPLETED.value),Y=U.default.ENUMS.ENGAGEMENT_VIEW_STATE.NOT_VIEWED.value,X=11,$=n(145),Z=function(e,t){return t=t||0===t?t:100,e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+", "+parseInt(e.substring(2,4),16)+" ,"+parseInt(e.substring(4,6),16)+", "+t/100+")";},Q=function(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||"";},J=function(e){return e&&!W.BROWSER_DEFAULT_FONTS.includes(e);},ee=function(e){var t={font:e,weights:W.FONTS_WEIGHTS},n=W.FONTS_SUBSETS,r=[t].reduce(function(e,t){var n=t.font.replace(/ +/g,"+"),r=(t.weights||[]).join(",");return e.push(n+(r&&":"+r)),e;},[]).join("|"),o="https://fonts.googleapis.com/css?family="+r;return n&&Array.isArray(n)&&n.length>0&&(o+="&subset="+n.join(",")),'';},te=function(){return window.self!==window.top.parent&&!window.runVue;},ne=function(){return te()?window.parent:window.top;},re=function(e){var t=null,n=null,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value,c=u.sequence;null===t&&null===n?(t=c,n=u):c0&&c.default.createElement(d.default,{items:t,maxResults:0===this.state.tabIndex&&2,showMoreButton:!0,title:"engagements",showTitle:0===this.state.tabIndex,config:this.props.config,onKbArticleClick:this.props.onKbArticleClick,unifiedSearchConfig:this.props.unifiedSearchConfig,onLinkClick:this.props.onLinkClick,setCardArticleRef:this.props.setCardArticleRef,parentHeight:this.props.parentHeight,checkAndTrackCardArticle:this.props.checkAndTrackCardArticle})),(0===this.state.tabIndex||2===this.state.tabIndex)&&c.default.createElement("div",null,u>0&&c.default.createElement(d.default,{items:n.concat(r),showMoreButton:!1,title:"Articles",showTitle:0===this.state.tabIndex,setArticle:this.props.setInternalArticle,config:this.props.config,onKbArticleClick:this.props.onKbArticleClick,onExtKbArticleClick:this.props.onExternalArticleClick,unifiedSearchConfig:this.props.unifiedSearchConfig,onLinkClick:this.props.onLinkClick,setCardArticleRef:this.props.setCardArticleRef,parentHeight:this.props.parentHeight,checkAndTrackCardArticle:this.props.checkAndTrackCardArticle})),(0===this.state.tabIndex||3===this.state.tabIndex)&&c.default.createElement("div",null,l>0&&c.default.createElement(d.default,{items:i,showMoreButton:!1,title:"Links",showTitle:0===this.state.tabIndex,config:this.props.config,unifiedSearchConfig:this.props.unifiedSearchConfig,onLinkClick:this.props.onLinkClick,setCardArticleRef:this.props.setCardArticleRef,parentHeight:this.props.parentHeight,checkAndTrackCardArticle:this.props.checkAndTrackCardArticle})),v&&c.default.createElement(g.default,{unifiedSearchConfig:this.props.unifiedSearchConfig})));}}]),t;}(u.Component);t.default=v;},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e};}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t;}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t);}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*Math.sqrt(i);}});},function(e,t,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(5)(function(){return-5!=o(4294967295,5)||2!=o.length;}),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0);}});},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E;}});},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(190)});},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2;}});},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(122)});},function(e,t,n){var r=n(0),o=n(123),i=Math.exp;r(r.S+r.F*n(5)(function(){return-2e-17!=!Math.sinh(-2e-17);}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2);}});},function(e,t,n){var r=n(0),o=n(123),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e));}});},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e);}});},function(e,t,n){var r=n(0),o=n(51),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320));}return n.join("");}});},function(e,t,n){var r=n(0),o=n(23),i=n(11);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s_e&&r("185"),null===o.nextScheduledRoot)o.remainingExpirationTime=i,null===ue?(se=ue=o,o.nextScheduledRoot=o):(ue=ue.nextScheduledRoot=o,ue.nextScheduledRoot=se);else{var a=o.remainingExpirationTime;(0===a||ice)return;H(le);}var t=U()-q;ce=e,le=V(y,{timeout:10*(e-2)-t});}function m(){var e=0,t=null;if(null!==ue)for(var n=ue,o=se;null!==o;){var i=o.remainingExpirationTime;if(0===i){if((null===n||null===ue)&&r("244"),o===o.nextScheduledRoot){se=ue=o.nextScheduledRoot=null;break;}if(o===se)se=i=o.nextScheduledRoot,ue.nextScheduledRoot=i,o.nextScheduledRoot=null;else{if(o===ue){ue=n,ue.nextScheduledRoot=se,o.nextScheduledRoot=null;break;}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null;}o=n.nextScheduledRoot;}else{if((0===e||i
r.charCodeAt(0)&&(r=r.trim()),M=r,r=[M],0