import{d as P,h as U,x as b,r as h,i as j,f as c,a as m,u,b as r,q as d,A as B,w as o,e as s,t as n,c as y,v as S,n as A}from"./B2UyoCas.js";import{_ as C}from"./C9KnTrrC.js";import{_ as T}from"./DmViyvlQ.js";import{u as V}from"./C7qbYC45.js";const x={key:0,class:"grid-projectDetails__role self-center"},z={class:"text-center text-sm capitalize o_px-2 rounded-sm outline-1 outline-uiBorder self-center bg-uiBg max-w-28"},D={class:"o_p-2 text-sm text-uiText-toned max-w-[280px]"},E={key:0},G={class:"o_mb-3 text-pretty"},O={class:"flex justify-center"},q="pro",H=P({__name:"PlanTag",props:{skuName:{},wannaUpsell:{type:Boolean,default:!0},ownerProject:{}},setup(_){const a=_,f=U(),l=b(),{checkGeneralAccess:i}=V(),g=()=>{i("upgrade.possible")&&(a.ownerProject&&(l.currentPid=a.ownerProject.pid,l.currentSid=a.ownerProject.sid),f.setActiveSlideover("showUpgradeCurrentProject"),t.value=!1)},t=h(!1),k=j(()=>i("upgrade.possible"));return(e,p)=>{const N=S,$=C,v=T;return u(k)?(r(),c("div",x,[d(v,{open:u(t),"onUpdate:open":p[0]||(p[0]=w=>B(t)?t.value=w:null),arrow:"",content:{align:"end",side:"bottom"}},{content:o(()=>[s("div",D,[e.skuName==="pro"||!e.wannaUpsell?(r(),c("p",E,n(e.$t("plantags.description",{name:e.$t(`planNames.${e.skuName}.name`)})),1)):e.wannaUpsell?(r(),y($,{key:1,ui:{root:"p-00 o_p-2"},variant:"subtle",color:"info"},{description:o(()=>[s("div",null,[s("p",G,n(e.$t("plantags.upsell",{name:e.$t(`planNames.${e.skuName}.name`)})),1),s("div",O,[d(N,{variant:"solid",color:"primary",size:"sm",onClick:g},{default:o(()=>[A(n(e.$t("plantags.upsellButton",{name:e.$t(`planNames.${q}.name`)})),1)]),_:1})])])]),_:1})):m("",!0)])]),default:o(()=>[s("div",z,n(e.$t(`planNames.${e.skuName}.name`)),1)]),_:1},8,["open"])])):m("",!0)}}}),K=Object.assign(H,{__name:"PlanTag"});export{K as P};
