import{v as m}from"./app-core.a6d808ce.js";import{C as p}from"./Button.a549093d.js";import{C as x}from"./Tooltip.ae7a1028.js";import{_ as S}from"./IndexStatusResult.14004eec.js";import{S as v}from"./CheckSolid.7f805a48.js";import{S as g}from"./CloseSolid.d4b55dea.js";import{S as y}from"./ExclamationSolid.ddc28e8f.js";import{f as a,i as _,Q as o,v as e,M as u,R as l,j as h,a0 as C,P as k,u as c}from"./vendor-vue-ui.de3ab35f.js";import{a as w,_ as d}from"./vendor-other.7b559694.js";const T={__name:"IndexStatus",props:{loading:{type:Boolean,default:!1},result:{type:Object,default(){return{}}},tooltipOffset:{type:String,default(){return"0,0"}},viewable:{type:Boolean,default:!0}},setup(t){const r=m(),n="all-in-one-seo-pack",s=t,i=c(()=>{if(!s.viewable||!s.result?.indexStatusResult?.verdict&&r.quotaExceeded.urlInspection)return"exclamation";switch(s.result?.indexStatusResult?.verdict){case"PASS":return"check";case"PARTIAL":case"FAIL":case"NEUTRAL":return"close";default:return"exclamation"}}),f=c(()=>s.viewable?r.quotaExceeded.urlInspection?d("Your site ran out of URL inspection quota. Please try again after 24 hours when the quota is renewed.",n):"":w(d("This page is not published so its index status cannot be determined. %1$s will determine the index status as soon as the page is published.",n),"AIOSEO"));return(E,b)=>(a(),_("div",{class:k(["aioseo-index-status",[t.viewable?"aioseo-index-status--viewable":"aioseo-index-status--not-viewable",e(r).quotaExceeded.urlInspection?"aioseo-index-status--quota-exceeded":""]])},[t.loading?(a(),o(e(p),{key:0,dark:""})):u("",!0),t.loading?u("",!0):(a(),o(e(x),{key:1,flip:"",offset:t.tooltipOffset},{tooltip:l(()=>[C(e(S),{result:t.result,"error-message":f.value},null,8,["result","error-message"])]),default:l(()=>[h("div",null,[i.value==="check"?(a(),o(e(v),{key:0})):i.value==="close"?(a(),o(e(g),{key:1})):(a(),o(e(y),{key:2}))])]),_:1},8,["offset"]))],2))}};export{T as _};
