1import{a as Xe}from"./chunk-JBGKERLZ.js";import{a as We,b as Ke}from"./chunk-NYLXLOGF.js";import{a as $e}from"./chunk-6SFSIBQQ.js";import{a as Ye}from"./chunk-XPSZZWQI.js";import{a as Ge}from"./chunk-KHSMGY5N.js";import{a as qe}from"./chunk-7RYKVQ4H.js";import"./chunk-7KXLENPZ.js";import"./chunk-5HOVJ5GY.js";import{a as je}from"./chunk-WALOIJWM.js";import{f as Ue}from"./chunk-MQJ6EIJR.js";import"./chunk-477SBMCO.js";import"./chunk-Y3WOQFTR.js";import{$ as Ve,F as ze,_ as te}from"./chunk-2NPFRSNI.js";import"./chunk-RDFOVEV7.js";import{a as ee,c as _e,d as De}from"./chunk-DP4SNF3D.js";import"./chunk-YWDCS3B6.js";import{a as Qe}from"./chunk-WKOOE2PM.js";import"./chunk-KULUFPLZ.js";import{u as Ae}from"./chunk-SPD6AKCQ.js";import"./chunk-IDP7DQ5A.js";import"./chunk-E66YEBR4.js";import{G as I}from"./chunk-5XXHSLJ7.js";import{Aa as Ie,C as we,Ea as o,I as ue,Jb as Ne,Kb as He,Lb as H,Na as S,Ob as u,Pb as C,Qb as E,Sa as Me,T as Se,Wb as q,Xb as V,Yb as R,Z as G,ba as d,bb as P,cc as ce,cd as de,dc as F,ea as j,eb as h,ec as Oe,fa as Q,gb as m,hb as Le,jb as W,jd as Pe,ka as Ee,kb as K,kd as Re,lb as _,lc as g,m as Ce,mb as c,mc as k,md as Be,na as w,nb as s,nc as fe,nd as J,oa as N,ob as b,od as Fe,q as re,qc as se,ra as Te,rc as y,tc as A,ud as Z,vb as X,vd as T,w as ye,xb as B,zb as p}from"./chunk-IAX6J4QD.js";import"./chunk-K4Z47AX6.js";import{a as ke,b as ve}from"./chunk-NCEQPEJE.js";var $="root",D="help-home";function ae(){return{navDisplayRoots:[],parentIdByChildId:{},entryById:{},childrenByParent:{}}}var L=class t{constructor(e){this.idx=e}static fromContentfulItems(e){return new t(t.buildIndexFromItems(e))}static fromIndex(e){return new t(e)}static entryIdForSlug(e,r){let n=`${r}`.trim();if(n.length===0)return null;for(let[i,a]of Object.entries(e.entryById))if(a?.fields?.slug===n)return i;return null}toIndex(){return this.idx}static ancestorEntryIdsRootToParent(e,r){let n=[],i=e,a=new Set;for(;i&&r[i]&&!a.has(i);){a.add(i);let l=r[i];n.unshift(l),i=l}return n}static descendantEntryIds(e,r){let n=[],i=new Set([e]),a=[...r[e]??[]];for(;a.length>0;){let f=a.pop()?.sys?.id;if(!f||i.has(f))continue;i.add(f),n.push(f);let v=r[f];v?.length&&a.push(...v)}return n}childLinksFor(e){let r=e!=null&&e!==""?`${e}`:"";if(r.length===0)return[];let n=this.idx.childrenByParent[r]??[],i=[];for(let a of n){let l=`${a?.fields?.slug??""}`.trim(),f=`${a?.fields?.title??""}`.trim();l.length===0||f.length===0||l===$||i.push({title:f,slug:l})}return i}breadcrumbsFor(e){let r=[],n=e?.sys?.id,i=this.idx.parentIdByChildId,a=this.idx.entryById;if(n)for(let f of t.ancestorEntryIdsRootToParent(n,i)){let v=a[f],x=v?.fields?.slug;if(!v||x===$)continue;let O=`${v.fields?.title??""}`;!O&&!x||r.push({title:O,slug:x?`${x}`:void 0})}let l=`${e?.fields?.title??""}`;return l&&e?.fields?.slug!==$&&r.push({title:l}),r}static childEntriesForParent(e,r){let n=t.linkEntryIdsFromSubSectionsField(e.fields),i=[];for(let a of n){let l=r[a];l&&i.push(l)}return i}static visibleNavRowsFromSectionIndex(e,r){let{navDisplayRoots:n,childrenByParent:i}=e,a=[],l=(f,v)=>{for(let x of f){let O=x?.sys?.id;if(O&&(a.push({entry:x,entryId:O,depth:v}),r.has(O))){let le=i[O];le?.length&&l(le,v+1)}}};return l(n,0),a}static buildIndexFromItems(e){let r={},n={},i=new Set;for(let x of e)r[x.sys.id]=x;for(let x of e){let O=x.sys.id,le=t.linkEntryIdsFromSubSectionsField(x.fields);for(let me of le)i.add(me),n[me]===void 0&&(n[me]=O)}let a=e.filter(x=>!i.has(x.sys.id));a.length===0&&e.length>0&&(a=e.slice());let l=null;for(let x of e)if(x.fields?.slug===$){l=x;break}let f=l!==null?t.childEntriesForParent(l,r):a;f=t.tcHelpNavRootsWithHomeFirst(f);let v=t.childrenByParentFromEntryById(r);return{navDisplayRoots:f,parentIdByChildId:n,entryById:r,childrenByParent:v}}static childrenByParentFromEntryById(e){let r={};for(let n of Object.keys(e)){let i=e[n];i&&(r[n]=t.childEntriesForParent(i,e))}return r}static linkEntryIdsFromSubSectionsField(e){let r=e?.subSections;return Array.isArray(r)?r.map(n=>n.sys.id):[]}static tcHelpNavRootsWithHomeFirst(e){if(e.length<2)return e;let r=e.findIndex(a=>a?.fields?.slug===D);if(r<=0)return e;let n=e.slice(),[i]=n.splice(r,1);return[i,...n]}};function Je(t){if(t===!0||t===!1)return t;if(t==="true")return!0;
1if(t==="false")return!1;if(t!=null&&typeof t=="object"){let e=t;for(let r of Object.keys(e)){let n=Je(e[r]);if(n!==void 0)return n}}}function Ze(t){return Je(t?.showArticleFeedback)===!0}function ge(t){if(t.isLoading||!t.article?.sys?.id)return!1;let e=t.routeSlug;return e===D||e===$?!1:Ze(t.article.fields)}var oe=class t{constructor(e){this.entry=e}static fromUnknown(e){return t.fromEntry(e!=null&&typeof e=="object"?e:void 0)}static fromEntry(e){return e!=null&&typeof e=="object"?new t(e):new t({})}asEntry(){return this.entry}get sysId(){let e=this.entry?.sys?.id;return e!=null&&e!==""?`${e}`:void 0}get hasContentfulId(){return this.sysId!==void 0}get fieldsTitle(){return String(this.entry?.fields?.title??"")}get showTableOfContents(){return this.entry?.fields?.showTableOfContents===!0}get showArticleFeedback(){return Ze(this.entry?.fields)}},Y=class t{constructor(e,r){this.articleView=e,this.sectionEntryModel=r}static fromArticleView(e){return new t(e,oe.fromEntry(e.article))}sectionEntryForBreadcrumbs(){return this.sectionEntryModel.asEntry()}topicBreadcrumbs(e){if(this.articleView.routeSlug===D||!this.sectionEntryModel.hasContentfulId)return[];let r=e??ae();return L.fromIndex(r).breadcrumbsFor(this.sectionEntryForBreadcrumbs())}childSectionLinks(e){return this.articleView.isLoading||!this.sectionEntryModel.hasContentfulId||!this.sectionEntryModel.showTableOfContents||e==null?[]:L.fromIndex(e).childLinksFor(this.sectionEntryModel.sysId)}get showsFeedbackPrompt(){return ge(this.articleView)}};var M=(()=>{let e=class e{constructor(){this.destroyRef=d(Ee),this.viewport=d(De),this.mobileNavOpen=w(!1),this.isNarrowLayout=y(()=>this.viewport.isWithinMaxWidth(899)),this.sidebarAriaHidden=y(()=>this.isNarrowLayout()&&!this.mobileNavOpen()||null),N(()=>{this.isNarrowLayout()||this.mobileNavOpen.set(!1)}),ye(document,"keydown").pipe(ee(this.destroyRef)).subscribe(n=>{this.handleDocumentKeydown(n)})}handleDocumentKeydown(n){!(n instanceof KeyboardEvent)||n.key!=="Escape"||this.isNarrowLayout()&&this.mobileNavOpen()&&this.closeMobileNav()}toggleMobileNav(){this.mobileNavOpen.update(n=>!n)}closeMobileNav(){this.mobileNavOpen.set(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac});let t=e;return t})();function st(t,e){t&1&&(c(0,"span",2),u(1),g(2,"translate"),s()),t&2&&(o(),C(k(2,1,"help_center.sidebar_aria")))}var ie=(()=>{let e=class e{constructor(){this.showLabel=A(!1),this.iconSize=A(24),this.shell=d(M)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-nav-open-button"]],inputs:{showLabel:[1,"showLabel"],iconSize:[1,"iconSize"]},decls:4,vars:9,consts:[["type","button","aria-controls","help-center-topics-nav",1,"tk-help-center__nav-open-btn",3,"click"],[3,"width","height"],[1,"tk-help-center__nav-open-label"]],template:function(i,a){i&1&&(c(0,"button",0),g(1,"translate"),B("click",function(){return a.shell.toggleMobileNav()}),b(2,"tk-icon-list",1),h(3,st,3,3,"span",2),s()),i&2&&(H("tk-help-center__nav-open-btn--labeled",a.showLabel()),P("aria-expanded",a.shell.mobileNavOpen())("aria-label",k(1,7,a.shell.mobileNavOpen()?"help_center.close_help_topics":"help_center.open_help_topics")),o(2),_("width",a.iconSize())("height",a.iconSize()),o(),m(a.showLabel()?3:-1))},dependencies:[I,Ye,T],encapsulation:2,changeDetection:0});let t=e;return t})();var U=(()=>{let e=class e{constructor(){this.loading=w(!1),this.error=w(null),this.index=w(void 0),this.sidebarTree=y(()=>this.index()??ae())}startIndexFetch(){this.loading.set(!0),this.error.set(null)}setIndexLoadResult(n){if(this.loading.set(!1),"error"in n){this.index.set(ae());let i=n.error,a="Failed to load help topics.";i instanceof Error?a=i.message:typeof i=="string"&&(a=i),this.error.set(a)}else this.index.set(L.fromContentfulItems(n.items).toIndex()),this.error.set(null)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var et=t=>["/help-center",t];function dt(t,e){t&1&&b(0,"tk-help-center-nav-open-button")}function pt(t,e){if(t&1&&(c(0,"a",3),u(1),s()),t&2){let r=p().$implicit;_("routerLink",F(2,et,e)),o(),C(r.title)}}function ht(t,e){if(t&1&&(c(0,"span"),u(1),s()),t&2){let r=p().$implicit;o(),C(r.title)}}function mt(t,e){if(t&1&&(c(0,"li"),h(1,pt,2,4,"a",3)(2,ht,2,1,"span"),s()),t&2){let r,n=e.$implicit;o(),m((r=n.slug)?1:2,r)}}function ut(t,e){if(t&1&&(c(0,"div",0),h(1,dt,1,0,"tk-help-center-nav-open-button"),c(2,"div",1)(3,"nav",2)(4,"ol")(5,"li")(6,"a",3),u(7),g(8,"translate"),s()(),W(9,mt,3,1,"li",null,Le),s()()()()),t&2){p();let r=R(0),n=p();o(),m(n.isNarrowLayout()?1:-1),o(5),_("routerLink",F(5,et,n.breadcrumbHomeSlug)),o(),C(k(8,3,"help_center.breadcrumb_home")),o(2),K(r)}}function ft(t,e){if(t&1&&(q(0),h(1,ut,11,7,"div",0)),t&2){let r=V(p().resolvedBreadcrumbs());o(),m(r.length>0?1:-1)}}var tt=(()=>{let e=class e{constructor(){this.articleView=A(),this.sectionIndex=d(U),this.shell=d(M),this.isMobileNavOpen=this.shell.mobileNavOpen,this.isNarrowLayout=this.shell.isNarrowLayout,this.breadcrumbHomeSlug=D,this.resolvedBreadcrumbs=y(()=>{let n=this.articleView();return n==null||n.isLoading?[]:Y.fromArticleView(n).topicBreadcrumbs(this.sectionIndex.index())})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-breadcrumbs"]],hostAttrs:[1,"tk-help-center-breadcrumbs"],hostVars:2,hostBindings:function(i,a){i&2&&H("tk-help-center-breadcrumbs--drawer-open",a.isMobileNavOpen()&&a.isNarrowLayout()
1)},inputs:{articleView:[1,"articleView"]},decls:1,vars:1,consts:[[1,"tk-help-center__breadcrumb-bar"],[1,"tk-help-center__breadcrumb-trail"],["aria-label","Breadcrumb",1,"breadcrumbs"],[3,"routerLink"]],template:function(i,a){if(i&1&&h(0,ft,2,2),i&2){let l=a.articleView();m(l==null||!l.isLoading?0:-1)}},dependencies:[I,J,ie,T],styles:[`@charset "UTF-8";@keyframes shine{to{background-position-x:-200%}}.tk-help-center__breadcrumb-bar{display:flex;flex-direction:row;align-items:center;gap:12px}@media(max-width:899px){.tk-help-center__breadcrumb-bar{position:sticky;top:var(--hc-sticky-top);z-index:2;box-sizing:border-box;background-color:var(--white);padding-top:var(--hc-article-pad-top);align-items:flex-start}.tk-help-center__breadcrumb-bar:has(.breadcrumbs){padding-bottom:24px}.tk-help-center__breadcrumb-bar .tk-help-center__nav-open-btn:not(.tk-help-center__nav-open-btn--labeled){width:24px;height:26px;align-items:center;justify-content:center}.tk-help-center__breadcrumb-bar .tk-help-center__nav-open-btn:not(.tk-help-center__nav-open-btn--labeled) tk-icon-list{display:flex}}@media(min-width:900px){.tk-help-center__breadcrumb-bar:has(.breadcrumbs){position:sticky;top:var(--hc-sticky-top);z-index:2;box-sizing:border-box;padding-top:var(--hc-article-pad-top);padding-bottom:24px;background-color:var(--white)}}.tk-help-center__breadcrumb-trail{flex:1;min-width:0}.tk-help-center__nav-open-btn,.tk-help-center__mobile-nav-row{display:none}@media(max-width:899px){.tk-help-center__mobile-nav-row{display:block;position:sticky;top:var(--hc-sticky-top);z-index:2;box-sizing:border-box;background-color:var(--white);padding-top:var(--hc-article-pad-top);padding-bottom:16px}.tk-help-center__nav-open-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin:0;padding:0;border:none;background:transparent;border-radius:4px;cursor:pointer;color:var(--neutral-600)}.tk-help-center__nav-open-btn--labeled{width:auto;height:auto;gap:8px;justify-content:flex-start;padding:0;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-800)}.tk-help-center__nav-open-label{line-height:26px}.tk-help-center__nav-open-btn:hover,.tk-help-center__nav-open-btn:focus-visible{background:var(--neutral-25)}.tk-help-center__nav-open-btn--labeled:hover,.tk-help-center__nav-open-btn--labeled:focus-visible{color:var(--neutral-800)}}.tk-help-center-breadcrumbs .tk-help-center__breadcrumb-trail .breadcrumbs{padding:0}.tk-help-center-breadcrumbs .breadcrumbs ol{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:16px;line-height:26px;color:var(--neutral-800)}.tk-help-center-breadcrumbs .breadcrumbs li:last-child{font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);color:var(--neutral-800);font-weight:var(--font-weight-ui-bold);font-size:var(--font-size-h5);line-height:var(--line-height-h5)}.tk-help-center-breadcrumbs .breadcrumbs li:not(:last-child):after{content:"\\2192";margin-left:4px}.tk-help-center-breadcrumbs .breadcrumbs a{color:var(--neutral-800);text-decoration:none}.tk-help-center-breadcrumbs .breadcrumbs a:hover,.tk-help-center-breadcrumbs .breadcrumbs a:focus-visible{text-decoration:underline} 2`],encapsulation:2,changeDetection:0});let t=e;return t})();var nt="hc_feedback",_t=720*60*60*1e3,it=(()=>{let e=class e{hasVoted(n){if(!n)return!1;let i=this.loadPrunedRecord();return Object.prototype.hasOwnProperty.call(i,n)}recordVote(n,i){if(!n)return;let a=this.loadPrunedRecord();a[n]={vote:i,ts:Date.now()},this.persist(a)}loadPrunedRecord(){try{let n=localStorage.getItem(nt);if(!n)return{};let i=JSON.parse(n);return typeof i!="object"||i===null||Array.isArray(i)?{}:this.pruneRecord(i)}catch(n){return{}}}pruneRecord(n){let i=Date.now(),a={};for(let[l,f]of Object.entries(n)){if(!l||!f||typeof f!="object")continue;let v=f.vote,x=f.ts;v!=="yes"&&v!=="no"||typeof x!="number"||!Number.isFinite(x)||i-x>=_t||(a[l]={vote:v,ts:x})}return a}persist(n){try{localStorage.setItem(nt,JSON.stringify(n))}catch(i){}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gt(t,e){t&1&&(c(0,"p",1),b(1,"tk-icon-checkbox",4),u(2),g(3,"translate"),s()),t&2&&(o(),_("checked",!0)("size",20)("width",20)("height",20),o(),E(" ",k(3,5,"help_center.feedback_thanks")," "))}function bt(t,e){t&1&&(c(0,"p",2),u(1),g(2,"translate"),s()),t&2&&(o(),E(" ",k(2,1,"help_center.feedback_question")," "))}function xt(t,e){if(t&1){let r=X();c(0,"button",5),B("click",function(){j(r);let i=p(2);return Q(i.vote("yes"))}),u(1),g(2,"translate"),s(),c(3,"button",5),B("click",function(){j(r);let i=p(2);return Q(i.vote("no"))}),u(4),g(5,"translate"),s()}t&2&&(o(),E(" ",k(2,2,"help_center.feedback_yes")," "),o(3),E(" ",k(5,4,"help_center.feedback_no")," "))}function kt(t,e){if(t&1&&(c(0,"section",0),h(1,gt,4,7,"p",1)(2,bt,3,3,"p",2),c(3,"div",3),h(4,xt,6,6),s()()),t&2){let r=p();o(),m(r.showThankYou()?1:2),o(2),H("tk-help-center-article-feedback__actions--reserved",r.showThankYou()),P("aria-hidden",r.showThankYou()?!0:null),o(),m(r.showThankYou()?-1:4)}}var vt="HelpCenter-ArticleHelpful",Ct="HelpCenter-ArticleNotHelpful",rt=(()=>{let e=class e{constructor(){this.articleSlug=A.required(),this.showThankYou=w(!1),this.hideBecauseRemembered=w(!1),this.storage=d(it),this.umami=d(Ve),this.translate=d(Z),N(()=>{let n=this.articleSlug();this.showThankYou.set(!1),this.hideBecauseRemembered.set(n?this.storage.hasVoted(n):!1)})}vote(n){if(this.showThankYou()||this.hideBecauseRemembered())return;let i=this.articleSlug();if(!i)return;this.showThankYou.set(!0),this.storage.recordVote(i,n);let a=n==="yes"?vt:Ct;this.umami.track(a,{slug:i,locale:this.translate.currentLang||this.translate.defaultLang||"en"})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-article-feedback"]],inputs:{articleSlug:[1,"articleSlug"]}
2,decls:1,vars:1,consts:[["data-testid","help-center-feedback-prompt","aria-labelledby","hc-feedback-question",1,"tk-help-center-article-feedback"],["id","hc-feedback-question","role","status","aria-live","assertive",1,"tk-help-center-article-feedback__thanks","tk-help-center-article-feedback__thanks--revealed"],["id","hc-feedback-question",1,"tk-help-center-article-feedback__question"],[1,"tk-help-center-article-feedback__actions"],["aria-hidden","true",1,"tk-help-center-article-feedback__thanks-icon",3,"checked","size","width","height"],["type","button",1,"button-lg","button-compact","button-inverted",3,"click"]],template:function(i,a){i&1&&h(0,kt,5,5,"section",0),i&2&&m(a.hideBecauseRemembered()?-1:0)},dependencies:[I,qe,T],styles:["@keyframes _ngcontent-%COMP%_shine{to{background-position-x:-200%}}[_nghost-%COMP%]{display:block}.tk-help-center-article-feedback[_ngcontent-%COMP%]{max-width:700px;margin:8px 0 0}.tk-help-center-article-feedback__question[_ngcontent-%COMP%], .tk-help-center-article-feedback__thanks[_ngcontent-%COMP%]{font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);margin:0 0 6px;color:var(--neutral-800)}.tk-help-center-article-feedback__thanks[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-bottom:6px}.tk-help-center-article-feedback__thanks--revealed[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_hc-feedback-thanks-in .22s ease-out both}.tk-help-center-article-feedback__thanks-icon[_ngcontent-%COMP%]{flex-shrink:0}.tk-help-center-article-feedback__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;min-height:30px}.tk-help-center-article-feedback__actions--reserved[_ngcontent-%COMP%]{visibility:hidden;pointer-events:none}.tk-help-center-article-feedback__actions[_ngcontent-%COMP%] .button-lg.button-compact.button-inverted[_ngcontent-%COMP%]{min-width:80px;padding-left:12px;padding-right:12px;justify-content:center}@media(max-width:899px){.tk-help-center-article-feedback__actions[_ngcontent-%COMP%]{min-height:44px}.tk-help-center-article-feedback__actions[_ngcontent-%COMP%] .button-lg.button-compact.button-inverted[_ngcontent-%COMP%]{min-width:80px;min-height:44px}}@keyframes _ngcontent-%COMP%_hc-feedback-thanks-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.tk-help-center-article-feedback__thanks--revealed[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0});let t=e;return t})();var yt=t=>["/help-center",t],wt=()=>({exact:!0}),St=(t,e)=>e.entryId;function Et(t,e){if(t&1){let r=X();c(0,"div",5),B("click",function(){j(r);let i=p();return Q(i.shell.closeMobileNav())}),s()}}function Tt(t,e){t&1&&(c(0,"p",3),u(1),g(2,"translate"),s()),t&2&&(o(),C(k(2,1,"help_center.nav_topics_loading")))}function It(t,e){if(t&1&&(c(0,"p",3),u(1),s()),t&2){let r=p();o(),C(r.sectionIndex.error())}}function Mt(t,e){if(t&1){let r=X();c(0,"button",11),g(1,"translate"),B("click",function(){j(r),p();let i=R(0),a=p(2);return Q(a.toggleExpand(i))}),b(2,"tk-icon-chevron",12),s()}if(t&2){p();let r=R(1);H("tk-help-center__expand--open",r),P("aria-expanded",r)("aria-label",k(1,7,r?"help_center.collapse_section":"help_center.expand_section")),o(2),_("direction",r?"down":"right")("width",16)("height",16)}}function Lt(t,e){t&1&&b(0,"span",9)}function Nt(t,e){if(t&1){let r=X();q(0)(1),c(2,"li",7),h(3,Mt,3,9,"button",8)(4,Lt,1,0,"span",9),c(5,"a",10,0),B("click",function(){j(r);let i=p(2);return Q(i.onTopicLinkClick())}),u(7),s()()}if(t&2){let r=e.$implicit,n=Ne(6),i=p(2),a=V(r.entryId),l=(r.entry.fields==null?null:r.entry.fields.slug)??"";o(),V(i.isExpanded(a)),o(),He("padding-left",8+r.depth*18,"px"),o(),m(i.isNavExpandable(a)?3:4),o(2),_("routerLink",F(9,yt,l))("routerLinkActiveOptions",ce(11,wt)),P("aria-current",n.isActive?"page":null),o(2),E(" ",(r.entry.fields==null?null:r.entry.fields.title)??""," ")}}function Ht(t,e){if(t&1&&(c(0,"ul",4),W(1,Nt,8,12,"li",6,St),s()),t&2){let r=p();o(),K(r.visibleNavRows())}}var pe=(()=>{let e=class e{constructor(){this.articleRouteSlug=A(null),this.shell=d(M),this.sectionIndex=d(U),this.expandedIds=w(new Set),this.activeTopicEntryId=y(()=>{let n=this.sectionIndex.index();return n===void 0?null:L.entryIdForSlug(n,this.articleRouteSlug()??"")}),this.visibleNavRows=y(()=>L.visibleNavRowsFromSectionIndex(this.sectionIndex.sidebarTree(),this.expandedIds())),this.activePathIds=y(()=>{let n=this.activeTopicEntryId();if(!n)return new Set;let{parentIdByChildId:i}=this.sectionIndex.sidebarTree();return new Set([...L.ancestorEntryIdsRootToParent(n,i),n])}),N(()=>{let n=this.activePathIds();n.size!==0&&se(()=>{this.expandedIds.update(i=>{let a=new Set(i);for(let l of n)a.add(l);return a})})})}isNavExpandable(n){return(this.sectionIndex.sidebarTree().childrenByParent[n]?.length??0)>0}isExpanded(n){return this.expandedIds().has(n)}toggleExpand(n){this.expandedIds.update(i=>{let a=new Set(i);if(a.has(n)){a.delete(n);let{childrenByParent:l}=this.sectionIndex.sidebarTree(),f=this.activePathIds();for(let v of L.descendantEntryIds(n,l))f.has(v)||a.delete(v)}else a.add(n);return a})}onTopicLinkClick(){this.shell.isNarrowLayout()&&this.shell.closeMobileNav()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-topics-nav"]],hostAttrs:[1,"tk-help-center-sidebar"],hostVars:2,hostBindings:function(i,a){i&2&&H("tk-help-center-sidebar--drawer-open",a.shell.mobileNavOpen()&&a.shell.isNarrowLayout()
2)},inputs:{articleRouteSlug:[1,"articleRouteSlug"]},decls:6,vars:6,consts:[["rla","routerLinkActive"],["role","presentation",1,"tk-help-center__nav-backdrop"],["id","help-center-topics-nav",1,"tk-help-center__sidebar"],[1,"tk-help-center__nav-status"],["role","list",1,"tk-help-center__nav-list"],["role","presentation",1,"tk-help-center__nav-backdrop",3,"click"],[1,"tk-help-center__nav-row",3,"padding-left"],[1,"tk-help-center__nav-row"],["type","button",1,"tk-help-center__expand",3,"tk-help-center__expand--open"],["aria-hidden","true",1,"tk-help-center__expand","tk-help-center__expand--placeholder"],["routerLinkActive","tk-help-center__sidebar-item--active",1,"tk-help-center__sidebar-item",3,"click","routerLink","routerLinkActiveOptions"],["type","button",1,"tk-help-center__expand",3,"click"],["aria-hidden","true",1,"tk-help-center__expand-icon",3,"direction","width","height"]],template:function(i,a){i&1&&(h(0,Et,1,0,"div",1),c(1,"nav",2),g(2,"translate"),h(3,Tt,3,3,"p",3)(4,It,2,1,"p",3)(5,Ht,3,0,"ul",4),s()),i&2&&(m(a.shell.mobileNavOpen()&&a.shell.isNarrowLayout()?0:-1),o(),P("aria-label",k(2,4,"help_center.sidebar_aria"))("aria-hidden",a.shell.sidebarAriaHidden()),o(2),m(a.sectionIndex.loading()?3:a.sectionIndex.error()?4:5))},dependencies:[I,J,Fe,je,T],encapsulation:2,changeDetection:0});let t=e;return t})();var Ot=t=>["/help-center",t],Pt=(t,e)=>e.slug;function Rt(t,e){t&1&&(c(0,"div",4),b(1,"tk-help-center-nav-open-button",10),s()),t&2&&(o(),_("showLabel",!0))}function Bt(t,e){if(t&1&&(c(0,"a",11)(1,"span"),u(2),g(3,"translate"),s(),b(4,"tk-icon-open-external",12),s()),t&2){let r=p(2),n=R(3);_("href",r.contentfulEntryEditUrl(n.article.sys.id),Ie),o(2),C(k(3,4,"help_center.edit_in_contentful")),o(2),_("width",16)("height",16)}}function Ft(t,e){if(t&1&&(c(0,"div",6)(1,"h1"),u(2),s(),h(3,Bt,5,6,"a",11),s()),t&2){let r=p(),n=R(3);o(2),C(n.article.fields.title),o(),m(!(n.article==null||n.article.sys==null)&&n.article.sys.id&&r.isAdmin()?3:-1)}}function At(t,e){if(t&1&&b(0,"tk-help-center-article-feedback",8),t&2){p();let r=R(3);_("articleSlug",r.routeSlug)}}function Dt(t,e){if(t&1&&(c(0,"li")(1,"a",13),u(2),s()()),t&2){let r=e.$implicit;o(),_("routerLink",F(2,Ot,r.slug)),o(),C(r.title)}}function zt(t,e){if(t&1&&(c(0,"nav",9),g(1,"translate"),c(2,"h2"),u(3),g(4,"translate"),s(),c(5,"ul"),W(6,Dt,3,4,"li",null,Pt),s()()),t&2){p();let r=R(10);P("aria-label",k(1,2,"help_center.in_this_section")),o(3),C(k(4,4,"help_center.in_this_section")),o(3),K(r)}}var at=(()=>{let e=class e{constructor(){this.translate=d(Z),this.title=d(de),this.route=d(Pe),this.auth=d(Ae),this.sectionIndex=d(U),this.contentful=d(te),this.shell=d(M),this.hasTopicBreadcrumbs=y(()=>{let i=this.article();return i.isLoading?!1:Y.fromArticleView(i).topicBreadcrumbs(this.sectionIndex.index()).length>0}),this.childSectionLinks=y(()=>Y.fromArticleView(this.article()).childSectionLinks(this.sectionIndex.index())),this.isHelpCenterArticleFeedbackEnabled=ge,this.isAdmin=_e(this.auth.getUserObserver().pipe(re(i=>i?.isAdmin===!0)),{initialValue:this.auth.getUser()?.isAdmin===!0}),this.articleRouteSlug=_e(this.route.paramMap.pipe(re(i=>(i.get("slug")??"").trim()||null),ue()),{initialValue:(this.route.snapshot.paramMap.get("slug")??"").trim()||null}),this.article=w(e.initialArticleView(""));let n=()=>{let i=this.article(),a;if(i.isLoading)a=String(this.translate.instant("meta.site.help_center.article_untitled")??"");else{let l=i.article?.fields?.title??"";a=l.length>0?String(this.translate.instant("meta.site.help_center.article",{".title":l})??""):String(this.translate.instant("meta.site.help_center.article_untitled")??"")}this.title.setTitle(a)};N(()=>{this.article(),n()}),this.translate.onLangChange.pipe(ee()).subscribe(()=>n())}ngOnInit(){this.route.paramMap.pipe(re(n=>(n.get("slug")??"").trim()),ue(),Se(n=>(this.article.set(e.initialArticleView(n)),this.contentful.getTcHelpSectionBySlug(n).pipe(re(i=>({slug:n,item:i.items?.[0]})),we(()=>Ce({slug:n,item:void 0})))))).subscribe(({slug:n,item:i})=>{let a=oe.fromUnknown(i);this.article.set({isLoading:!1,article:a.asEntry(),routeSlug:n})})}contentfulEntryEditUrl(n){return this.contentful.getContentfulWebAppEntryUrl(n)}
2static initialArticleView(n){return{isLoading:!0,article:{},routeSlug:n}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-article"]],decls:12,vars:11,consts:[[1,"tk-help-center__main"],[3,"articleRouteSlug"],[1,"tk-help-center__article"],[3,"articleView"],[1,"tk-help-center__mobile-nav-row"],[1,"article-wrapper"],[1,"tk-help-center__title-row"],[3,"title","body","isLoading"],[3,"articleSlug"],[1,"tk-help-center__child-list"],[3,"showLabel"],["target","_blank","rel","noopener noreferrer",1,"tk-help-center__edit-link",3,"href"],[3,"width","height"],[3,"routerLink"]],template:function(i,a){if(i&1&&(c(0,"div",0),b(1,"tk-help-center-topics-nav",1),c(2,"div",2),q(3),b(4,"tk-help-center-breadcrumbs",3),h(5,Rt,2,1,"div",4),c(6,"div",5),h(7,Ft,4,2,"div",6),b(8,"tk-article",7),h(9,At,1,1,"tk-help-center-article-feedback",8),q(10),h(11,zt,8,6,"nav",9),s()()()),i&2){o(),_("articleRouteSlug",a.articleRouteSlug()),o(2);let l=V(a.article());o(),_("articleView",l),o(),m(a.shell.isNarrowLayout()&&!l.isLoading&&!a.hasTopicBreadcrumbs()?5:-1),o(2),m(!l.isLoading&&((l.article==null||l.article.fields==null?null:l.article.fields.title)??"").length>0?7:-1),o(),_("title","")("body",(l.article==null||l.article.fields==null?null:l.article.fields.body)??"")("isLoading",l.isLoading),o(),m(a.isHelpCenterArticleFeedbackEnabled(l)?9:-1),o();let f=V(a.childSectionLinks());o(),m(!l.isLoading&&f.length>0?11:-1)}},dependencies:[I,J,We,tt,ie,pe,rt,Xe,T],styles:["@keyframes _ngcontent-%COMP%_shine{to{background-position-x:-200%}}.tk-help-center__title-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;max-width:700px;margin:0 0 24px}.tk-help-center__title-row[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:var(--font-family-legend);font-weight:var(--font-weight-heading-bold);letter-spacing:var(--letter-spacing-default);color:var(--neutral-800);font-size:var(--font-size-h2);line-height:var(--line-height-h2)}@media(max-width:980px){.tk-help-center__title-row[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:var(--font-size-h3);line-height:var(--line-height-h3)}}.tk-help-center__title-row[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;flex:1 1 auto;min-width:0}.tk-help-center__edit-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:16px;line-height:16px;color:var(--blue-600);text-decoration:none;white-space:nowrap}.tk-help-center__edit-link[_ngcontent-%COMP%] tk-icon-open-external[_ngcontent-%COMP%]{display:flex}.tk-help-center__edit-link[_ngcontent-%COMP%]:hover, .tk-help-center__edit-link[_ngcontent-%COMP%]:focus-visible{color:var(--blue-800)}.tk-help-center__edit-link[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .tk-help-center__edit-link[_ngcontent-%COMP%]:focus-visible span[_ngcontent-%COMP%]{text-decoration:underline}tk-help-center-article-feedback[_ngcontent-%COMP%]:has(.tk-help-center-article-feedback) + .tk-help-center__child-list[_ngcontent-%COMP%]{margin-top:0}.tk-help-center__child-list[_ngcontent-%COMP%]{max-width:700px;margin:32px 0 0}.tk-help-center__child-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:var(--font-family-legend);font-weight:var(--font-weight-heading-bold);letter-spacing:var(--letter-spacing-default);color:var(--neutral-800);font-size:var(--font-size-h3);line-height:var(--line-height-h3)}@media(max-width:980px){.tk-help-center__child-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:var(--font-size-h4);line-height:var(--line-height-h4)}}.tk-help-center__child-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 16px}.tk-help-center__child-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:disc outside;margin:0;padding-left:1.25em}.tk-help-center__child-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:list-item;margin:0}.tk-help-center__child-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);color:var(--blue-800);text-decoration:underline}"],changeDetection:0});let t=e;return t})();var Vt=()=>["/help-center","search"],ot=(()=>{let e=class e extends Qe{constructor(){super(...arguments),this.contentful=d(te),this.sectionIndex=d(U),this.shell=d(M),this.minSearchQueryLength=3}ngOnInit(){this.sectionIndex.index()===void 0&&!this.sectionIndex.loading()&&(this.sectionIndex.startIndexFetch(),this.contentful.getTcHelpSectionEntriesForNavIndex().subscribe({next:n=>this.sectionIndex.setIndexLoadResult({items:n}),error:n=>this.sectionIndex.setIndexLoadResult({error:n})})),this.appReady()}};e.\u0275fac=(()=>{let n;return function(a){return(n||(n=Te(e)))(a||e)}})(),e.\u0275cmp=S({type:e,selectors:[["tk-help-center-layout"]],hostAttrs:[1,"tk-help-center","tk-help-center__shell"],hostVars:2,hostBindings:function(i,a){i&2&&H("tk-help-center__shell--nav-open",a.shell.mobileNavOpen())},features:[Me],decls:9,vars:8,consts:[["aria-label","Help center",1,"tk-help-center-header"],[1,"tk-help-center-header__inner"],[1,"tk-help-center-header__title"],[1,"tk-help-center-header__search"],[3,"placeholderKey","searchNavigateCommands","mergeQueryParamsWithPage","minQueryLength"],[1,"tk-help-center__inner"]],template:function(i,a){i&1&&(c(0,"header",0)(1,"div",1)(2,"p",2),u(3),g(4,"translate"),s(),c(5,"div",3),b(6,"tk-dashboard-search-input",4),s()()(),c(7,"div",5),b(8,"router-outlet"),s()),i&2&&(o(3),E(" ",k(4,5,"help_center.subheader_title")," "),o(3),_("placeholderKey","help_center.search_placeholder")("searchNavigateCommands",ce(7,Vt))("mergeQueryParamsWithPage",!1)("minQueryLength",a.minSearchQueryLength))},dependencies:[I,Re,$e,T],styles:[`@charset "UTF-8";@keyframes shine{to{background-position-x:-200%}}.tk-help-center{--hc-nav-width: 300px;--hc-article-column-max: 1084px;--hc-main-row-max: calc(var(--hc-nav-width) + var(--hc-article-column-max));--hc-article-pad-left: 32px;--hc-article-pad-right: 52px;--hc-article-pad-top: 24px;--hc-sticky-top: 7rem}@media(max-width:899px){.tk-help-center{--hc-sticky-top: 60px}}.tk-help-center{display:flex;flex-direction:column;flex:1 1 auto;width:100%;background-color:var(--white);box-sizing:border-box}.tk-help-center__shell{flex:1 1 auto;display:flex;flex-direction:column;width:100%;box-sizing:border-box}@media screen and (min-width:992px){.main-content-wrapper:has(.tk-help-center)>main{display:flex;flex-direction:column;min-height:calc(100vh - 242px);min-height:calc(100dvh - 242px)}}.tk-help-center__shell>.tk-help-center-header{flex-shrink:0;display:block}.tk-help-center-header{box-sizing:border-box;width:100%;background:var(--neutral-25);border-bottom:1px solid var(--neutral-200)}.tk-help-center-header__inner{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;box-sizing:border-box;width:100%;padding:16px 24px}@media(max-width:899px){.tk-help-center-header__inner{flex-direction:column;align-items:stretch;flex-wrap:nowrap;justify-content:flex-start;gap:12px}.tk-help-center-header__title{text-align:center;width:100%}.tk-help-center-header__search{width:100%;min-width:0;box-sizing:border-box}.tk-help-center-header__search tk-dashboard-search-input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}}.tk-help-center-header__title{margin:0;font-family:var(--font-family-legend);letter-spacing:var(--letter-spacing-default);font-weight:var(--font-weight-heading-bold);color:var(--neutral-800);font-size:var(--font-size-h4);line-height:var(--line-height-h4)}.tk-help-center__inner{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;box-sizing:border-box;width:100%;gap:0}.tk-help-center__inner>tk-help-center-article,.tk-help-center__inner>tk-help-center-search{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%}@media(max-width:720px){.tk-help-center__inner:has(tk-help-center-search){padding:1em 1em 3em}.tk-help-center__inner:has(tk-help-center-search):has(.tk-help-center__breadcrumb-bar){padding-top:0}.tk-help-center__inner:has(tk-help-center-search):has(.tk-help-center__mobile-nav-row){padding-top:0}}@media(max-width:899px){.tk-help-center__inner:not(:has(tk-help-center-search)){padding-left:24px;padding-right:24px}}@media(max-width:720px){.tk-help-center__inner:not(:has(tk-help-center-search)){padding:1em 24px 3em}.tk-help-center__inner:not(:has(tk-help-center-search)):has(.tk-help-center__breadcrumb-bar){padding-top:0}.tk-help-center__inner:not(:has(tk-help-center-search)):has(.tk-help-center__mobile-nav-row){padding-top:0}}.tk-help-center__main{flex:1 1 auto;display:flex;flex-direction:row;align-items:flex-start;min-height:0;width:100%;background:var(--white)}
2@media(min-width:900px){.tk-help-center__main{max-width:var(--hc-main-row-max);margin-left:auto;margin-right:auto;align-items:stretch}.tk-help-center__main>.tk-help-center-sidebar{display:block;flex:0 0 var(--hc-nav-width);width:var(--hc-nav-width);max-width:var(--hc-nav-width)}}.tk-help-center__nav-backdrop{display:none}@media(max-width:899px){html:has(.tk-help-center__shell--nav-open),body:has(.tk-help-center__shell--nav-open){overflow:hidden}.tk-help-center__nav-backdrop{display:block;position:fixed;inset:0;z-index:1000;margin:0;padding:0;border:none;background:#00000073;cursor:pointer}}.tk-help-center__article{flex:1 1 auto;min-width:0;max-width:var(--hc-article-column-max);padding:var(--hc-article-pad-top) var(--hc-article-pad-right) 40px var(--hc-article-pad-left);box-sizing:border-box}@media(min-width:900px){.tk-help-center__article{border-left:2px solid var(--neutral-100)}.tk-help-center__article:has(.breadcrumbs){padding-top:0}}@media(max-width:899px){.tk-help-center__article{max-width:none;width:100%}.tk-help-center__article:has(.tk-help-center__breadcrumb-bar),.tk-help-center__article:has(.tk-help-center__mobile-nav-row){padding-top:0}}@media(max-width:720px){.tk-help-center__article{padding:var(--hc-article-pad-top) 20px 32px}.tk-help-center__article:has(.tk-help-center__breadcrumb-bar),.tk-help-center__article:has(.tk-help-center__mobile-nav-row){padding-top:0}}@media(max-width:899px){.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article{padding:var(--hc-article-pad-top) 0 40px}.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article:has(.tk-help-center__breadcrumb-bar),.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article:has(.tk-help-center__mobile-nav-row){padding-top:0}}@media(max-width:720px){.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article{padding:var(--hc-article-pad-top) 0 32px}.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article:has(.tk-help-center__breadcrumb-bar),.tk-help-center__inner:not(:has(tk-help-center-search)) .tk-help-center__article:has(.tk-help-center__mobile-nav-row){padding-top:0}}@media(max-width:899px){.tk-help-center-sidebar{display:contents}}@media(min-width:900px){.tk-help-center-sidebar{display:block;min-width:0}}.tk-help-center-sidebar .tk-help-center__nav-status{margin:0;padding:8px 12px;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-700)}.tk-help-center-sidebar .tk-help-center__nav-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}@media(min-width:900px){.tk-help-center-sidebar .tk-help-center__nav-list{min-height:0;max-height:100%;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.tk-help-center-sidebar .tk-help-center__nav-list::-webkit-scrollbar{display:none}}.tk-help-center-sidebar .tk-help-center__sidebar{display:flex;flex-direction:column;box-sizing:border-box;min-width:0;padding:16px 0 16px 8px}@media(min-width:900px){.tk-help-center-sidebar .tk-help-center__sidebar{position:sticky;z-index:1;top:var(--hc-sticky-top);min-height:0;max-height:calc(100dvh - var(--hc-sticky-top) - 1rem);overflow:hidden;padding:var(--hc-article-pad-top) 0 40px 8px}}@media(max-width:899px){.tk-help-center-sidebar .tk-help-center__sidebar{position:fixed;z-index:1001;top:0;left:0;bottom:0;width:min(var(--hc-nav-width),86vw);max-height:100dvh;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;background:var(--white);box-shadow:4px 0 16px #0000001f;transform:translate(-100%);transition:transform .25s ease}.tk-help-center-sidebar .tk-help-center__sidebar::-webkit-scrollbar{display:none}}@media(max-width:899px){.tk-help-center-sidebar.tk-help-center-sidebar--drawer-open .tk-help-center__sidebar{transform:translate(0)}}.tk-help-center-sidebar .tk-help-center__nav-row{display:flex;align-items:center;gap:2px;min-width:0;min-height:40px;margin-right:8px;border-radius:4px;flex-shrink:0;box-sizing:border-box}.tk-help-center-sidebar .tk-help-center__nav-row:hover:not(:has(.tk-help-center__sidebar-item--active)){background:var(--neutral-25)}.tk-help-center-sidebar .tk-help-center__nav-row:has(.tk-help-center__sidebar-item--active){background:#e7f0ff}.tk-help-center-sidebar .tk-help-center__expand{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;box-sizing:border-box;padding:0;border:none;background:transparent;border-radius:50%;flex-shrink:0;cursor:pointer}.tk-help-center-sidebar .tk-help-center__expand--placeholder{pointer-events:none;cursor:default}.tk-help-center-sidebar .tk-help-center__expand:not(.tk-help-center__expand--placeholder){transition:background .12s ease}.tk-help-center-sidebar .tk-help-center__expand:not(.tk-help-center__expand--placeholder):hover,.tk-help-center-sidebar .tk-help-center__expand:not(.tk-help-center__expand--placeholder):focus-visible{background:var(--neutral-50)}.tk-help-center-sidebar .tk-help-center__expand-icon{display:flex;align-items:center;justify-content:center}.tk-help-center-sidebar .tk-help-center__sidebar-item{min-width:0;flex:1;padding:6px 12px 6px 4px;border-radius:4px;box-sizing:border-box;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-800);line-height:20px;text-decoration:none;overflow-wrap:anywhere}.tk-help-center-sidebar .tk-help-center__sidebar-item--active{color:var(--blue-800)} 3`],encapsulation:2,changeDetection:0});let t=e;return t})();var he=class{constructor(e){this.raw=e}toSearchRow(e=250){let r=this.raw,n=String(r?.fields?.slug??"").trim();if(n.length===0)return null;let i=String(r?.fields?.title??""),a=Ue(r?.fields?.body??"").slice(0,e);return ve(ke({},this.raw),{routerLink:["/help-center",n],title:i,blurb:a.length>0?`${a}...`:""})}};var jt=t=>({".query":t}),Qt=(t,e)=>({".count":t,".query":e});function qt(t,e){t&1&&(c(0,"div",3),b(1,"tk-help-center-nav-open-button",5),s()),t&2&&(o(),_("showLabel",!0))}function $t(t,e){t&1&&b(0,"tk-article-loading")}function Yt(t,e){if(t&1&&(u(0),g(1,"translate")),t&2){let r=p(4);E(" ",fe(1,1,"help_center.search_results_line_one",F(4,jt,r.searchQuery()))," ")}}function Gt(t,e){if(t&1&&(u(0),g(1,"translate")),t&2){let r=p(2),n=p(2);E(" ",fe(1,1,"help_center.search_results_line_other",Oe(4,Qt,r.articles.length,n.searchQuery()))," ")}}function Wt(t,e){if(t&1&&(c(0,"p",8),h(1,Yt,2,6)(2,Gt,2,7),s(),b(3,"tk-search-results",9)),t&2){let r=p(),n=p(2);o(),m(r.articles.length===1?1:2),o(2),_("results",r)("searchQuery",n.searchQuery())}}function Kt(t,e){if(t&1&&(h(0,$t,1,0,"tk-article-loading"),h(1,Wt,4,3)),t&2){let r=e;m(r.isLoading?0:-1),o(),m(r.isLoading?-1:1)}}function Xt(t,e){if(t&1&&(c(0,"div",6)(1,"h1",7),u(2),s()(),h(3,Kt,2,2)),t&2){let r,n=p();o(2),C(n.searchQuery()),o(),m((r=n.searchResults())?3:-1,r)}}function Jt(t,e){t&1&&(c(0,"div",6)(1,"h1",7),u(2),g(3,"translate"),s()(),c(4,"p",10),u(5),g(6,"translate"),s()),t&2&&(o(2),E(" ",k(3,2,"help_center.search_heading")," "),o(3),E(" ",k(6,4,"help_center.search_hint")," "))}var lt=(()=>{let e=class e{static searchView(n){return{isLoading:n,articles:[]}}constructor(){this.contentful=d(te),this.router=d(Be),this.translate=d(Z),this.title=d(de),this.shell=d(M),this.minQueryLength=3,this.searchResults=w(e.searchView(!1)),this.searchQuery=y(()=>{let i=this.router.lastSuccessfulNavigation(),a=i?.finalUrl??i?.extractedUrl;return String(a?.queryParams.q??"")});let n=()=>{let i=this.searchQuery().trim(),a=i.length>=this.minQueryLength?"meta.site.help_center.search_results":"meta.site.help_center.search_page",l=i.length>=this.minQueryLength?{".query":i}:void 0;this.title.setTitle(String(this.translate.instant(a,l)??""))};N(()=>{this.searchQuery(),n()}),this.translate.onLangChange.pipe(ee()).subscribe(()=>n()),N(()=>{let i=this.searchQuery();se(()=>{this.loadSearchForQuery(i)})})}loadSearchForQuery(n){let i=n.trim();if(i.length<this.minQueryLength){this.searchResults.set(e.searchView(!1));return}this.searchResults.set(e.searchView(!0)),this.contentful.getTcHelpSectionSearchResults(i).subscribe({next:a=>
3{this.searchResults.set({isLoading:!1,articles:a.items.map(l=>new he(l).toSearchRow()).filter(l=>l!==null)})},error:()=>{this.searchResults.set(e.searchView(!1))}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=S({type:e,selectors:[["tk-help-center-search"]],hostAttrs:[1,"tk-help-center--search-page"],decls:7,vars:3,consts:[[1,"tk-help-center__main"],[3,"articleRouteSlug"],[1,"tk-help-center__article"],[1,"tk-help-center__mobile-nav-row"],[1,"tk-help-center__search-panel"],[3,"showLabel"],[1,"tk-help-center__search-query-top"],[1,"tk-help-center__search-query-title"],[1,"tk-help-center__search-results-line"],[3,"results","searchQuery"],[1,"tk-help-center__search-hint"]],template:function(i,a){i&1&&(c(0,"div",0),b(1,"tk-help-center-topics-nav",1),c(2,"div",2),h(3,qt,2,1,"div",3),c(4,"div",4),h(5,Xt,4,2)(6,Jt,7,6),s()()()),i&2&&(o(),_("articleRouteSlug",null),o(2),m(a.shell.isNarrowLayout()?3:-1),o(2),m(a.searchQuery().trim().length>=a.minQueryLength?5:6))},dependencies:[I,Ge,ie,pe,Ke,T],styles:[`@keyframes shine{to{background-position-x:-200%}}.tk-help-center--search-page .tk-help-center__search-panel{max-width:100%}.tk-help-center__search-query-top{padding:0;box-sizing:border-box}.tk-help-center__search-query-title{margin:0;max-width:675px;font-family:var(--font-family-legend);font-weight:var(--font-weight-heading-bold);letter-spacing:var(--letter-spacing-default);color:var(--neutral-800);font-size:var(--font-size-h3);line-height:var(--line-height-h3)}@media(max-width:980px){.tk-help-center__search-query-title{font-size:var(--font-size-h4);line-height:var(--line-height-h4)}}.tk-help-center__search-query-title{word-break:break-word}.tk-help-center__search-results-line{margin:0;padding:0 0 8px;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-800)}.tk-help-center__search-hint{margin:8px 0 0;max-width:700px;font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-600)}@media(max-width:899px){.tk-help-center__search-query-title{font-family:var(--font-family-legend);font-weight:var(--font-weight-heading-bold);letter-spacing:var(--letter-spacing-default);color:var(--neutral-800);font-size:var(--font-size-h3);line-height:var(--line-height-h3);max-width:none}}@media(max-width:899px)and (max-width:980px){.tk-help-center__search-query-title{font-size:var(--font-size-h4);line-height:var(--line-height-h4)}}.tk-help-center--search-page .search-results{gap:0}.tk-help-center--search-page .search-results-item{padding:16px 0;gap:0}.tk-help-center--search-page .search-results-item a{font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);color:var(--blue-800);font-weight:var(--font-weight-ui-bold);font-size:var(--font-size-h5);line-height:var(--line-height-h5)}.tk-help-center--search-page .search-results-item a:hover,.tk-help-center--search-page .search-results-item a:focus-visible{text-decoration:underline}.tk-help-center--search-page .search-results-item .blurb{max-width:700px}.tk-help-center--search-page .search-results-item .search-results-item__blurb-text{font-family:var(--font-family-element);font-weight:var(--font-weight-body);letter-spacing:var(--letter-spacing-default);font-size:var(--font-size-ui-16);line-height:var(--line-height-ui-16);color:var(--neutral-600);-webkit-line-clamp:3}.tk-help-center--search-page .no-results{align-items:flex-start;max-width:700px;margin:24px 0 0}.tk-help-center--search-page .no-results p{text-align:left} 4`],encapsulation:2,changeDetection:0});let t=e;return t})();var Zt=[ze],en=[{path:"",component:ot,canActivate:Zt,providers:[M],children:[{path:"",pathMatch:"full",redirectTo:D},{path:"search",component:lt},{path:":slug",component:at}]}],tn=en;export{tn as default};
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.