import{_ as h}from"./DynamicIcon-D-LZibaK.js";import{c as p,f as a,b,e as v,r as k,t as r,w as c,n as S,a as l,o as u,d as _,j as y,I as x,i as T,g as L}from"./vue.esm-bundler-DZdE0M9V.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{A as B}from"./Asset-DDfERlE5.js";import{t as m}from"./Translator-Bios5QX5.js";import{a as N,u as w}from"./Str-Ckn63bs5.js";const C={name:"LabelHint",props:{title:String,content:{type:String,default:null},placement:String,required:{type:Boolean,default:!1},hideAfter:{type:Number,default:0}},components:{DynamicIcon:h}},D={class:"label"},I=["innerHTML"];function A(n,o,e,t,i,d){const f=l("DynamicIcon"),s=l("el-tooltip");return u(),p("span",{class:S(`fct-label-hint ${e.required?"is-required":""}`)},[a("span",D,r(e.title),1),e.content?(u(),b(s,{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,I)]),default:c(()=>[_(f,{name:"InformationFill"})]),_:1},8,["placement","hide-after"])):v("",!0),k(n.$slots,"default")],2)}const j=q(C,[["render",A]]);function z(){y(()=>{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 H={class:"fct-not-found-page"},V={class:"fct-not-found-page-inner"},E=["src"],O={__name:"NotFound",props:{buttonText:{type:String,default:m("Back to Dashboard")},route:{type:String,default:"/"},message:{type:String,default:m("Oops! That page can't be found.")}},setup(n){const o=n,e=T({}),t=N(),i=w();y(()=>{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=()=>B.getUrl("images/404.svg");return(f,s)=>{const g=l("el-button");return u(),p("div",H,[a("div",V,[a("img",{src:d(),alt:"404"},null,8,E),a("div",null,[a("h5",null,r(e.value.message),1),s[0]||(s[0]=a("p",null,"Please check the URL and try again, or use the search bar to find what you need.",-1)),_(g,{tag:"router-link",type:"primary",to:e.value.route},{default:c(()=>[L(r(e.value.buttonText),1)]),_:1},8,["to"])])])])}}};export{j as L,O as _,z as u};
