import{_ as g}from"./DynamicIcon.js?ver=1.3.21";import{e as p,d as a,c as b,b as v,m as k,t as r,w as c,n as S,r as l,o as u,a as _,i as y,K as x,h as T,f as L}from"./vue.esm-bundler.js?ver=1.3.21";import{_ as q}from"./_plugin-vue_export-helper.js?ver=1.3.21";import{A as B}from"./Asset.js?ver=1.3.21";import{t as f}from"./Translator.js?ver=1.3.21";import{a as N,u as w}from"./vue-router.js?ver=1.3.21";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:g}},D={class:"label"},I=["innerHTML"];function A(n,o,e,t,i,d){const m=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(()=>[_(m,{name:"InformationFill"})]),_:1},8,["placement","hide-after"])):v("",!0),k(n.$slots,"default")],2)}const z=q(C,[["render",A]]);function O(){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"},K={class:"fct-not-found-page-inner"},V=["src"],P={__name:"NotFound",props:{buttonText:{type:String,default:f("Back to Dashboard")},route:{type:String,default:"/"},message:{type:String,default:f("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(m,s)=>{const h=l("el-button");return u(),p("div",H,[a("div",K,[a("img",{src:d(),alt:"404"},null,8,V),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)),_(h,{tag:"router-link",type:"primary",to:e.value.route},{default:c(()=>[L(r(e.value.buttonText),1)]),_:1},8,["to"])])])])}}};export{z as L,P as _,O as u};
