import{w as o,o as c,j as a,ap as l,al as u,aq as h,ar as m}from"./index-DeGnraec.js";import{r as f}from"./vendor-animations-CsoOZIH8.js";const d=e=>{const n="/instructions",i=[{title:e.t("instructions:general"),path:`${n}`,regex:new RegExp("(^"+n+"$)|(^"+n+"\\/main)")},{title:e.t("instructions:account"),path:`${n}/account`},{title:e.t("instructions:technical"),path:`${n}/technical`},{title:e.t("instructions:finance"),path:`${n}/finance`}];return a.jsx(l,{isSecondary:!0,navItems:i})},p=o()(c(d)),g=()=>{const e=u();return f.useEffect(()=>{const i=`https://ihaqdonate.com${e.pathname.replace(/\/$/,"")||"/"}`;let t=document.querySelector("link[rel='canonical']"),r=!1,s=null;return t?s=t.getAttribute("href"):(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t),r=!0),t.setAttribute("href",i),()=>{r&&t?document.head.removeChild(t):t&&s!==null?t.setAttribute("href",s):t&&t.removeAttribute("href")}},[e.pathname]),a.jsxs(h,{children:[a.jsx(p,{}),a.jsx(m,{})]})};export{g as InstructionsPage};