1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="665142ad-44e4-50b9-a110-16eb8d3412e0")}catch(e){}}(); 3import{a as ae}from"./chunk-ZN3PVEIW.js";import{b as h,c as re}from"./chunk-I664YVIA.js";import"./chunk-YSTTJCSR.js";import{b as oe}from"./chunk-Z5M2FKAZ.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import{a as le}from"./chunk-5CMUHLSG.js";import"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-56LBQIQP.js";import"./chunk-IKWIL4NU.js";import"./chunk-5K5PYV5V.js";import"./chunk-TDGVUJZJ.js";import{d as L}from"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import{a as ne,b as ie}from"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import"./chunk-BUOPWRDV.js";import{d as ee,e as te}from"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import"./chunk-CNRKNNWP.js";import"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import{a as Z}from"./chunk-5SJALNJN.js";import{a as X,i as Y}from"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import{H as Q,b as G,g as R,n as J}from"./chunk-MF7VZYLI.js";import{b as j,c as q,e as K}from"./chunk-NFMDOWTR.js";import"./chunk-QE6DXY66.js";import"./chunk-B5YZVWIB.js";import"./chunk-HCSN2NMS.js";import"./chunk-FDIRDMLL.js";import"./chunk-XQLUXGKM.js";import"./chunk-3JHJJCIF.js";import"./chunk-J4X36CU5.js";import"./chunk-X3ZU2Z3D.js";import"./chunk-QZXCI4ZV.js";import"./chunk-VO633UWN.js";import{f as U}from"./chunk-XIKGSSI2.js";import"./chunk-MNZQGPDO.js";import"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-KRFZY2QT.js";import"./chunk-DFSGG2NH.js";import"./chunk-MREDPIUE.js";import"./chunk-BWICLBYB.js";import"./chunk-TYTNPDEC.js";import"./chunk-WAPZ5LEW.js";import"./chunk-746D4QTP.js";import{Ac as g,Dc as a,Ib as A,M as E,Pc as H,R as T,Sc as _,Tc as O,Uc as V,Yc as F,Zc as W,_c as I,a as P,bc as v,cc as u,cd as z,dc as C,ed as $,f as y,fc as b,gc as w,hc as M,ic as S,jc as n,kb as B,kc as i,lb as k,lc as s,nd as D,pd as N,qa as x,qb as l,uc as f,va as d,wa as m}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";function ce(t,c){t&1&&(n(0,"span"),s(1,"i",10),i())}function pe(t,c){t&1&&(n(0,"span"),s(1,"i",11),i())}function se(t,c){t&1&&(n(0,"p",20),_(1,"Suggested articles"),i())}function _e(t,c){if(t&1){let e=f();n(0,"li")(1,"span",22),g("click",function(){let o=d(e).$implicit,p=a(3);return m(p.openArticle(o,!0))})("keydown.enter",function(){let o=d(e).$implicit,p=a(3);return m(p.openArticle(o,!0))}),_(2),i()()}if(t&2){let e=c.$implicit;l(),v("aria-label",e.title),l(),O(e.title)}}function de(t,c){if(t&1&&(n(0,"div",18),u(1,se,2,0,"p",20),n(2,"ul",21),w(3,_e,3,2,"li",null,b),i()()),t&2){let e=a(2);l(),C(e.suggestedArticles&&e.suggestedArticles.length>0?1:-1),l(2),M(e.suggestedArticles)}}function me(t,c){if(t&1){let e=f();n(0,"li")(1,"span",22),g("click",function(){let o=d(e).$implicit,p=a(4);return m(p.openArticle(o,!1))})("keydown.enter",function(){let o=d(e).$implicit,p=a(4);return m(p.openArticle(o,!1))}),_(2),i()()}if(t&2){let e=c.$implicit;l(),v("aria-label",e.title),l(),O(e.title)}}function ue(t,c){if(t&1){let e=f();n(0,"a",25),g("click",function(){d(e);let o=a(4);return m(o.trackExternalClick("View More on Support Site"))}),n(1,"span",8),s(2,"i",26),i(),n(3,"span"),_(4,"View more"),i()()}if(t&2){let e=a(4);S("href",$("",e.brand.support_forum,"/search?utf8=%E2%9C%93&query=",e.browseText),k)}}function Ce(t,c){if(t&1&&(n(0,"div")(1,"p",20),_(2),i(),n(3,"ul",21),w(4,me,3,2,"li",null,b),i(),u(6,ue,5,3,"a",24),i()),t&2){let e=a(3);l(2),V("Top ",e.articles.length," results"),l(2),M(e.articles),l(2),C(e.articles.length===5?6:-1)}}function ge(t,c){t&1&&(n(0,"p",28),_(1,"Suggested articles"),i())}function he(t,c){if(t&1){let e=f();n(0,"li")(1,"span",22),g("click",function(){let o=d(e).$implicit,p=a(4);return m(p.openArticle(o,!0))})("keydown.enter",function(){let o=d(e).$implicit,p=a(4);return m(p.openArticle(o,!0))}),_(2),i()()}if(t&2){let e=c.$implicit;
3l(),v("aria-label",e.title),l(),O(e.title)}}function fe(t,c){if(t&1&&(n(0,"div")(1,"p",27),_(2,"No results match the input above"),i(),u(3,ge,2,0,"p",28),n(4,"ul",21),w(5,he,3,2,"li",null,b),i()()),t&2){let e=a(3);l(3),C(e.suggestedArticles&&e.suggestedArticles.length>0?3:-1),l(2),M(e.suggestedArticles)}}function xe(t,c){t&1&&(n(0,"div",23)(1,"div",29),s(2,"mat-spinner",30),i()())}function ve(t,c){if(t&1&&(n(0,"div",19),u(1,Ce,7,2,"div"),u(2,fe,7,1,"div"),u(3,xe,3,0,"div",23),i()),t&2){let e=a(2);l(),C(!e.spinner&&e.articles&&e.articles.length>0?1:-1),l(),C(!e.spinner&&e.articles&&e.articles.length===0?2:-1),l(),C(e.spinner?3:-1)}}function be(t,c){if(t&1){let e=f();n(0,"div",4)(1,"div",12)(2,"span",13),s(3,"i",14),i(),n(4,"h3",15),_(5,"How can we help?"),i()(),n(6,"div",16)(7,"mat-form-field")(8,"mat-label"),_(9,"Browse help topics"),i(),n(10,"input",17),I("ngModelChange",function(o){d(e);let p=a();return W(p.browseText,o)||(p.browseText=o),m(o)}),g("ngModelChange",function(o){d(e);let p=a();return m(p.browseKwUpdate.next(o))}),i()()(),u(11,de,5,1,"div",18)(12,ve,4,3,"div",19),i()}if(t&2){let e=a();l(10),F("ngModel",e.browseText),l(),C(e.browseText.length===0?11:12)}}function we(t,c){t&1&&(n(0,"div",23)(1,"div",29),s(2,"mat-spinner",30),i()())}function Me(t,c){if(t&1){let e=f();n(0,"div",5)(1,"div",12)(2,"h3",31),_(3,"Help articles"),i(),n(4,"button",32),g("click",function(){d(e);let o=a();return m(o.article.view=!1)}),n(5,"span",8),s(6,"i",33),i(),s(7,"span"),i(),n(8,"a",34),g("click",function(){d(e);let o=a();return m(o.trackExternalClick("Open Article in New Tab"))}),n(9,"span",8),s(10,"i",35),i(),s(11,"span"),i()(),n(12,"div",36)(13,"div",37),s(14,"div",38),D(15,"safe"),i(),u(16,we,3,0,"div",23),i()()}if(t&2){let e=a();l(8),S("href",z(e.article.url),k),l(6),S("innerHTML",N(15,4,e.article.body,"html"),B),l(2),C(e.spinner?16:-1)}}var je=(()=>{class t{appService=x(U);suggestedArticlesService=x(ae);dialog=x(L);webAnalyticsService=x(re);browseKwUpdate=new y;brand;isOpen=!1;browseText="";articles;suggestedArticles;spinner=!1;article={view:!1,body:null,url:null};subscription=new P;constructor(){this.brand=this.appService.currentBrand,this.subscription.add(this.suggestedArticlesService.articlesChange.subscribe(e=>{this.suggestedArticles=e})),this.subscription.add(this.browseKwUpdate.pipe(E(500),T()).subscribe(e=>{e&&(this.spinner=!0,this.suggestedArticlesService.getArticles(e).subscribe({next:r=>{this.articles=r.results,this.spinner=!1,r.results.length===0?this.webAnalyticsService.trackEvent(h.supportSearch,{event_action:"Article Search - No Results",event_category:"Support Widget",search_term:e}):this.webAnalyticsService.trackEvent(h.supportSearch,{event_action:"Article Search",event_category:"Support Widget",search_term:e})},error:()=>{this.spinner=!1}}))}))}ngOnDestroy(){this.subscription.unsubscribe()}toggleOpen(){this.isOpen?(this.isOpen=!1,this.webAnalyticsService.trackEvent(h.click,{event_action:"Support Widget Close",event_category:"Support Widget Click",support_widget_active:!1})):(this.isOpen=!0,this.webAnalyticsService.trackEvent(h.click,{event_action:"Support Widget Open",event_category:"Support Widget Click",support_widget_active:!0}),this.suggestedArticlesService.getSuggestedArticles())}openContactSupport(){this.dialog.open(oe,{}),this.webAnalyticsService.trackEvent(h.click,{event_action:"Open Contact Support",event_category:"Support Widget Click",support_widget_active:!0})}openArticle(e,r){this.webAnalyticsService.trackEvent(h.click,{event_action:`Open Article ${r?"Suggested":"Search"} `,event_category:"Support Widget Click",article_title:e.title,support_widget_active:!0}),this.article.view=!0,e.body?(this.article.body=e.body,this.article.url=e.html_url):(this.spinner=!0,this.suggestedArticlesService.getArticle(e.id).subscribe({next:o=>{this.article.body=o.article.body,this.article.url=o.article.html_url,this.spinner=!1},error:()=>{this.spinner=!1}}))}trackExternalClick(e){this.webAnalyticsService.trackEvent(h.click,{event_action:e,event_category:"Support Widget"})}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=A({type:t,selectors:[["app-help-button"]],decls:14,vars:4,consts:[["id","mc-help-button"],["mat-fab","","aria-label","help button",1,"custom","secondary",3,"click"],[1,"help-menu-container","shadow"],[1,"help-menu"],[1,"help-topic"],[1,"help-articles"],[1,"footer","p-1","bg-light","d-flex","justify-content-between"],["mat-button","","color","accent",1,"custom",3,"click"],[1,"left-icon"],[1,"fas","fa-paper-plane"],[1,"fas","fa-question"],[1,"fas","fa-angle-up"],[1,"title","p-2","bg-light"],[1,"chat-icon"],[1,"fas","fa-user-headset"],[1,"mb-0"],[1,"px-2"],["type","text","matInput","","autocomplete","off",3,"ngModelChange","ngModel"],[1,"suggested-articles","px-2","pb-3"],[1,"top-results","px-2","pb-3","position-relative"],[1,"overline","mb-2"],[1,"list-unstyled","mb-0","articles"],["tabindex","0",1,"curs
3or-pointer",3,"click","keydown.enter"],[1,"update-overlay"],["mat-button","","color","accent","target","_blank","aria-label","View More (opens in new window)",1,"custom","mt-1",3,"href"],["mat-button","","color","accent","target","_blank","aria-label","View More (opens in new window)",1,"custom","mt-1",3,"click","href"],[1,"fas","fa-external-link-alt"],[1,"sm","mb-2"],[1,"overline","mb-2","mt-3"],[1,"spinner"],["diameter","50"],[1,"mb-0","text-center"],["mat-button","","color","accent",1,"custom","back",3,"click"],[1,"fal","fa-arrow-square-left"],["mat-button","","color","accent","target","_blank","aria-label","External link (opens article in new window)",1,"custom","new-tab",3,"click","href"],[1,"fal","fa-external-link-alt"],[1,"position-relative"],[1,"article"],[1,"body",3,"innerHTML"]],template:function(r,o){r&1&&(n(0,"div",0)(1,"button",1),g("click",function(){return o.toggleOpen()}),u(2,ce,2,0,"span")(3,pe,2,0,"span"),i(),n(4,"div",2)(5,"div",3),u(6,be,13,2,"div",4)(7,Me,17,7,"div",5),n(8,"div",6)(9,"button",7),g("click",function(){return o.openContactSupport()}),n(10,"span",8),s(11,"i",9),i(),n(12,"span"),_(13,"Contact"),i()()()()()()),r&2&&(l(2),C(o.isOpen?3:2),l(2),H("d-none",!o.isOpen),l(2),C(o.article.view?7:6))},dependencies:[Q,G,R,J,K,j,q,Z,Y,X,te,ee,ie,ne,le],styles:["#mc-help-button[_ngcontent-%COMP%]{position:fixed;bottom:1rem;right:1rem;z-index:1030;transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:right}.help-menu-container[_ngcontent-%COMP%]{position:absolute;bottom:65px;right:0;width:344px;background:var(--mc-neutral-min)}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%], .help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-topic[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:relative}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-topic[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .chat-icon[_ngcontent-%COMP%]{font-size:30px;position:absolute;bottom:-6px;right:1rem;color:#e1e2e5}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-topic[_ngcontent-%COMP%] .articles[_ngcontent-%COMP%]{font-size:14px;min-height:200px}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-topic[_ngcontent-%COMP%] .articles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{text-decoration:underline}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-topic[_ngcontent-%COMP%] .top-results[_ngcontent-%COMP%]{min-height:300px}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-articles[_ngcontent-%COMP%]{position:relative}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-articles[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{position:absolute;left:0;top:18px}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-articles[_ngcontent-%COMP%] .new-tab[_ngcontent-%COMP%]{position:absolute;right:0;top:18px}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-articles[_ngcontent-%COMP%] .article[_ngcontent-%COMP%]{height:350px;margin:0 15px;overflow:hidden;overflow-y:scroll}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .help-articles[_ngcontent-%COMP%] .article[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-width:100%}.help-menu-container[_ngcontent-%COMP%] .help-menu[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px}.help-menu-container[_ngcontent-%COMP%] .chat[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:relative}.help-menu-container[_ngcontent-%COMP%] .chat[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{position:absolute;left:0;top:18px}"]})}return t})();export{je as HelpButtonComponent}; 4 5//# debugId=665142ad-44e4-50b9-a110-16eb8d3412e0
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.