import{u as m,a as c,b as x,s as o,S as f}from"./index-BxIwIJfy.js";import{o as g,h as v,b as _,c as h,d as t,v as l,l as i,f as w,t as y,a7 as b,E as k}from"./vue-core-Di3IuVqe.js";import"./primevue-CfIk0_DY.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";const j={class:"max-w-[50rem] flex flex-col mx-auto size-full"},C={class:"mb-auto flex justify-center z-50 w-full py-4"},z={class:"px-4 sm:px-6 lg:px-8","aria-label":"Global"},D={id:"content"},B={class:"text-center py-10 px-4 sm:px-6 lg:px-8"},O={class:"mt-5 flex flex-col justify-center items-center gap-2 sm:flex-row sm:gap-3"},T={class:"mt-auto text-center py-5"},V={class:"max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8"},A={class:"text-sm text-gray-500"},$={__name:"404",setup(E){const{showError:n,showWarn:p}=m(),d=new Date().getFullYear(),s=k({lecture:!1,ajout:!1,modif:!1,supp:!1,devalidation:!1,validation:!1}),u=async()=>{try{const e=(await x.post(`${o.lienApi}/verifierDroit/${o.state.dbCommun6}`,{id_utilisateur:o.userId,id_page:402,mail:o.state.userCloud.mail},{headers:{"Content-Type":"application/json"}})).data;e&&Object.keys(e).length>0&&(s.lecture=e.lecture,s.ajout=e.ajout,s.modif=e.modif,s.supp=e.supp,s.devalidation=e.devalidation,s.validation=e.validation),s.lecture||(p("Vous n'avez pas le droit, veuillez consulter l'administrateur"),f("404"))}catch(a){n("Une erreur est survenue : "+(a.response?.data?.message||a.message))}finally{o.state.afficher_in_progress=!1}};return g(async()=>{await u()}),(a,e)=>{const r=v("router-link");return _(),h("div",j,[t("header",C,[t("nav",z,[l(r,{class:"flex-none text-xl font-semibold sm:text-3xl",to:"/","aria-label":"OMAG"},{default:i(()=>[...e[0]||(e[0]=[t("img",{src:c,class:"max-h-12 logo-omag",alt:"Omag"},null,-1)])]),_:1})])]),t("main",D,[t("div",B,[e[2]||(e[2]=t("h1",{class:"block text-7xl font-bold text-gray-800 sm:text-9xl"},"404",-1)),e[3]||(e[3]=t("p",{class:"mt-3 text-gray-600"},"Oops, quelque chose s'est mal passé.",-1)),e[4]||(e[4]=t("p",null,"Désolé, nous n'avons pas pu trouver votre page.",-1)),t("div",O,[l(r,{class:"w-full sm:w-auto py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-omag text-white hover:opacity-85 disabled:opacity-50 disabled:pointer-events-none",to:"/"},{default:i(()=>[...e[1]||(e[1]=[t("svg",{class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"m15 18-6-6 6-6"})],-1),w(" Home ",-1)])]),_:1})])])]),t("footer",T,[t("div",V,[t("p",A,"© Tous droits réservés. "+y(b(d))+".",1)])])])}}};export{$ as default};
