1import{_ as V}from"./B3tnJOkC.js";import{b7 as T,bf as R,bg as B,b0 as _,aU as g,aW as b,aX as $,bd as l,a_ as C,a$ as A,bh as U,be as S,aV as e,bi as x,aZ as w,b2 as O,bj as L,bk as W,ba as q,b4 as z,b8 as H,bl as Y,bm as F,bn as G,bc as J,b3 as N,bo as K,aS as X}from"./DYBTgLkI.js";import{u as I}from"./RtmtVNsb.js";import{n as Z,b as Q,I as tt}from"./BvDUcxcD.js";import{A as j}from"./BTqSRHhv.js";import{u as et}from"./D8p4cuYL.js";import{_ as D}from"./BmMlb7_4.js";import at from"./Dg3QJlZt.js";import st from"./DjIVIsRE.js";import{q as E}from"./_mNU19YW.js";import"./CYHqxiHG.js";import"./CCrdls34.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"21d65892bd111201050523545cdffacb41539f37"};var o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="54b00ac4-cbea-49ad-a0ca-ac2e31a439c1",n._sentryDebugIdIdentifier="sentry-dbid-54b00ac4-cbea-49ad-a0ca-ac2e31a439c1")}catch{}})();const ot={class:"articles-nav","aria-label":"Knowledge base navigation"},nt=["aria-expanded","onClick"],it={class:"articles-nav__list"},rt={name:"ArticlesNav"},ct=Object.assign(rt,{props:{activeCategory:{type:String,default:""},activeSlug:{type:String,default:""}},async setup(n){let o,m;const p=n,d=T(),{localePrefix:f}=I(),i=["start","payments","communications","staff","loyalty","operations","partner_program","updates"],{data:t}=([o,m]=R(()=>et(d.locale)),o=await o,m(),o),r=S(()=>{const a=t.value||[];return i.map(c=>({code:c,articles:a.filter(u=>(u.tags||"").split(/\s+/).includes(c)).sort((u,s)=>(u.order??0)-(s.order??0))})).filter(c=>c.articles.length>0)}),h=S(()=>{const a=new Set;if(p.activeCategory&&a.add(p.activeCategory),p.activeSlug){const u=(t.value||[]).find(s=>s.slug===p.activeSlug);if(u)for(const s of(u.tags||"").split(/\s+/))s&&a.add(s)}return a}),v=q({});function k(a){return Object.prototype.hasOwnProperty.call(v.value,a)?v.value[a]:h.value.has(a)}function M(a){v.value={...v.value,[a]:!k(a)}}return B(()=>[p.activeCategory,p.activeSlug],()=>{v.value={}}),(a,c)=>{const u=U;return _(),g("nav",ot,[b(u,{to:`/${l(f)}/articles/`,class:"articles-nav__home"},{default:$(()=>[c[0]||(c[0]=e("span",{class:"articles-nav__home-icon","aria-hidden":"true"},[e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9z"}),e("path",{d:"M9 22V12h6v10"})])],-1)),x(" "+w(a.$t("articles.title")),1)]),_:1},8,["to"]),(_(!0),g(C,null,A(r.value,s=>(_(),g("div",{key:s.code,class:"articles-nav__group"},[e("button",{type:"button",class:O(["articles-nav__heading",{"is-active":s.code===n.activeCategory,"is-open":k(s.code)}]),"aria-expanded":k(s.code)?"true":"false",onClick:y=>M(s.code)},[c[1]||(c[1]=e("span",{class:"articles-nav__chevron","aria-hidden":"true"},[e("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},[e("path",{d:"M3 1l4 4-4 4",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("span",null,w(a.$t(`articles.${s.code}.title`)),1)],10,nt),L(e("ul",it,[(_(!0),g(C,null,A(s.articles,y=>(_(),g("li",{key:y.slug},[b(u,{to:`/${l(f)}/articles/article/${y.slug}/`,class:O(["articles-nav__link",{"is-active":y.slug===n.activeSlug}])},{default:$(()=>[x(w(y.title),1)]),_:2},1032,["to","class"])]))),128))],512),[[W,k(s.code)]])]))),128))])}}}),P=Object.assign(ct,{__name:"ArticlesNav"}),lt={key:0,class:"article"},dt={class:"bg-light block-offset relative articles-content-wrap"},ut={class:"articles-shell"},pt={class:"articles-shell__nav"},_t={class:"articles-shell__main"},gt={class:"articles-shell__title bg-light"},mt={class:"sub-title"},ft={key:0,class:"lead"},ht={class:"articles-shell__toc"},bt={name:"ArticleSlug",components:{ArticlesContent:j,ArticlesNav:P,ArticlesToc:D,ArticlesPic:at,ArticlesRelated:st}},Tt=Object.assign(bt,{async setup(n){let o,m;T();const p=X(),d=z();I(),H(),Y(async()=>{const t=d.hash;if(t){await F();const r=document.querySelector(decodeURIComponent(t));r&&r.scrollIntoView({behavior:"smooth"})}});const{locale:f}=G(d.params.lang),{data:i}=([o,m]=R(async()=>K(`article-${f}-${d.params.slug}`,async()=>{const t=await E("articles").path(`/${f}/articles/${d.params.slug}`).first();return Z(t)&&Q(t,await E("articles").path(`/uk/articles/${d.params.slug}`).first(),f),t&&(t.slug=t.stem.split("/").pop()),t})),o=await o,m(),o);return J(()=>{const t=i.value||{},r=p.public.baseUrl,h=r+"/pic/articles/"+((t.pic?t.pic:t.slug)||"")+"/300x150.jpg";return{title:`${t.title||""} - Wlaunch`,meta:[{property:"og:url",content:r+d.path},{itemprop:"name",content:`${t.title||""} - Wlaunch`},{property:"og:title",content:`${t.title||""} - Wlaunch`},{name:"description",content:t.description||""},{itemprop:"description",content:t.description||""},{property:"og:description",content:t.description||""},{property:"og:image",content:h},{property:"og:image:height",content:150},{property:"og:image:width",content:300}],script:[{type:"application/ld+json",innerHTML:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:t.title||"",description:t.description||"",image:h,datePublished:t.createdAt,dateModified:t.updatedAt||t.createdAt,publisher:{"@type":"Organization",name:"Wlaunch",logo:{"@type":"ImageObject",url:r+"/android-chrome-512x512.png"}},mainEntityOfPage:{"@type":"WebPage","@id":r+d.path}})}]}}),(t,r)=>{const h=V;return l(i)?(_(),g("article",lt,[e("div",dt,[e("div",ut,[e("aside",pt,[b(P,{"active-slug":l(i).slug},null,8,["active-slug"])]),e("div",_t,[e("header",gt,[e("h1",mt,w(l(i).title),1),l(i).description?(_(),g("p",ft,w(l(i).description),1)):N("",!0)]),b(j,null,{default:$(()=>[b(h,{value:l(i),components:l(tt)},null,8,["value","components"])]),_:1})]),e("aside",ht,[b(D,{body:l(i).body||{}},null,8,["body"])])])])])):N("",!0)}}});
1export{Tt 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.