import{_ as h}from"./BY0xeA_q.js";import{d as v,v as C,J as S,a4 as w,c as p,o as t,w as m,ae as U,e as _,l,m as e,b as F,a as n,n as T,_ as $,t as A,F as B,A as I}from"./B08CJtNn.js";import{_ as N}from"./fTZc3uM5.js";import V from"./0Eg4zsCq.js";import{_ as D}from"./laKVya4-.js";import"./DbksU3dH.js";import"./88opOQSr.js";import"./CDkv4hyj.js";import"./mKWOHCA7.js";import"./xjUEazAQ.js";import"./CRXJzjwR.js";import"./MxJSE5eV.js";import"./BTwP6ady.js";import"./BXavTXDM.js";const E={key:1,class:"transition-discrete delay-700 duration-1000 ease-in-out starting:opacity-0 ending:opacity-100"},L={class:"text-sm text-uiText-toned flex items-center gap-2"},R=v({__name:"UpgradeFSC",setup(j){const o=C(!1),{t:d}=S(),{data:a,error:s,status:r,refresh:u}=w("fscInfo",async()=>await $fetch("https://api.koalityguide.com/?identifier=marketing.upsell.advancedcrawler&language=en&format=md&fallbackLanguage=en"));return(i,c)=>{const f=h,g=$,x=N,y=V,k=D;return t(),p(k,{open:e(o),"onUpdate:open":c[0]||(c[0]=b=>I(o)?o.value=b:null),title:e(d)("InfosAboutFSC"),ui:{content:"max-w-[640px]"}},{body:m(()=>[e(s)?(t(),p(f,{key:0,error:e(s),refresh:e(u)},null,8,["error","refresh"])):e(r)==="pending"?(t(),_("div",E,[F("p",L,[n(g,{name:"svg-spinners:90-ring-with-bg",class:"size-4"}),T(" "+A(i.$t("Loading advisor content...")),1)])])):l("",!0),e(r)==="success"&&e(a)?.content?(t(),_(B,{key:2},[n(x,{text:e(a).content,markdown:"","big-typo":!0,class:"o_mb-10 text-uiText-muted transition-discrete duration-300 ease-in-out opacity-100 starting:opacity-0"},null,8,["text"]),n(y,{type:"upgrade",skeleton:!1})],64)):l("",!0)]),default:m(()=>[U(i.$slots,"default")]),_:3},8,["open","title"])}}}),ee=Object.assign(R,{__name:"UpgradeFSC"});export{ee as default};
