import{_ as h}from"./BXyDg5m4.js";import{d as v,v as C,J as S,a5 as w,c as p,o as t,w as m,ag 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"./Dk4AzF7j.js";import{_ as N}from"./D5F0NbWF.js";import V from"./BCgY6BW7.js";import{_ as D}from"./C_tXuDKt.js";import"./BnFHREeV.js";import"./88opOQSr.js";import"./CV5HOlK-.js";import"./COToM3cV.js";import"./DXyvFCCy.js";import"./BTe-eGo6.js";import"./CR2z6V-x.js";import"./D7D5X_-3.js";import"./DgCXB7yu.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};
