import{h as m}from"./app-core.339dde72.js";import{C as p}from"./Button.59242335.js";import{C as x}from"./Tooltip.70f44574.js";import{_ as S}from"./IndexStatusResult.4d3c7776.js";import{S as g}from"./CheckSolid.c388096e.js";import{S as h}from"./CloseSolid.4dc1d72d.js";import{S as v}from"./ExclamationSolid.6444ad4e.js";import{f as a,i as y,Q as o,v as e,M as u,R as l,j as _,a0 as C,P as k,u as c}from"./vendor-vue-ui.33864987.js";import{a as w,_ as d}from"./vendor-other.35999c47.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(),y("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(()=>[_("div",null,[i.value==="check"?(a(),o(e(g),{key:0})):i.value==="close"?(a(),o(e(h),{key:1})):(a(),o(e(v),{key:2}))])]),_:1},8,["offset"]))],2))}};export{T as _};
