import{_ as g}from"./DynamicIcon.js?ver=1.6.0";import{e as p,d as a,c as b,b as v,m as k,t as s,w as c,n as S,r as l,o as u,a as _,i as h,K as x,h as T,u as L,f as q}from"./vue.esm-bundler.js?ver=1.6.0";import{_ as B}from"./_plugin-vue_export-helper.js?ver=1.6.0";import{A as N}from"./Asset.js?ver=1.6.0";import{t as r}from"./Translator.js?ver=1.6.0";import{a as w,u as C}from"./vue-router.js?ver=1.6.0";const D={name:"LabelHint",components:{DynamicIcon:g},props:{title:String,content:{type:String,default:null},placement:String,required:{type:Boolean,default:!1},hideAfter:{type:Number,default:0}}},I={class:"label"},A=["innerHTML"];function H(n,o,e,t,i,d){const f=l("DynamicIcon"),m=l("el-tooltip");return u(),p("span",{class:S(`fct-label-hint ${e.required?"is-required":""}`)},[a("span",I,s(e.title),1),e.content?(u(),b(m,{key:0,effect:"dark",placement:e.placement?e.placement:"top","popper-class":"fct-label-hint-popover fct-tooltip","show-after":400,"hide-after":e.hideAfter},{content:c(()=>[a("div",{innerHTML:e.content},null,8,A)]),default:c(()=>[_(f,{name:"InformationFill"})]),_:1},8,["placement","hide-after"])):v("",!0),k(n.$slots,"default")],2)}const O=B(D,[["render",H]]);function P(){h(()=>{document.addEventListener("keydown",o)}),x(()=>{document.removeEventListener("keydown",o)});let n;function o(t){(t.ctrlKey||t.metaKey)&&!t.shiftKey&&t.keyCode===83&&(t.preventDefault(),typeof n=="function"&&n())}function e(t){n=t}return{onSave:e}}const K={class:"fct-not-found-page"},V={class:"fct-not-found-page-inner"},E=["src"],j={__name:"NotFound",props:{buttonText:{type:String,default:r("Back to Dashboard")},route:{type:String,default:"/"},message:{type:String,default:r("Oops! That page can't be found.")}},setup(n){const o=n,e=T({}),t=w(),i=C();h(()=>{e.value={buttonText:t.query.buttonText||o.buttonText,route:t.query.route||o.route,message:t.query.message||o.message},i.replace({query:{}})});const d=()=>N.getUrl("images/404.svg");return(f,m)=>{const y=l("el-button");return u(),p("div",K,[a("div",V,[a("img",{src:d(),alt:"404"},null,8,E),a("div",null,[a("h5",null,s(e.value.message),1),a("p",null,s(L(r)("Please check the URL and try again, or use the search bar to find what you need.")),1),_(y,{tag:"router-link",type:"primary",to:e.value.route},{default:c(()=>[q(s(e.value.buttonText),1)]),_:1},8,["to"])])])])}}};export{O as L,j as _,P as u};
