{"version":3,"file":"static/js/3771.6d82ee45.chunk.js","mappings":"kKAwBA,QAtBA,SAAqBA,GAAuC,IAAtC,MAAEC,EAAK,iBAAEC,GAAmB,GAAOF,EACvD,MAAMG,GAAeC,EAAAA,EAAAA,QAAOC,SAASJ,OAkBrC,OAhBAK,EAAAA,EAAAA,YAAU,KACRD,SAASJ,MAAQA,EACdM,QAAQ,KAAM,KACdC,MAAM,KACNC,KAAKC,GAASA,EAAKC,OAAO,GAAGC,cAAgBF,EAAKG,MAAM,KACxDC,KAAK,IAAI,GACX,CAACb,KAEJK,EAAAA,EAAAA,YAAU,IACD,KACAJ,IACHG,SAASJ,MAAQE,EAAaY,QAChC,GAED,CAACb,IAEG,IACT,C","sources":["utils/DefaultTitle.jsx"],"sourcesContent":["import { useRef, useEffect } from \"react\";\n\nfunction DefaultTitle({ title, prevailOnUnmount = false }) {\n const defaultTitle = useRef(document.title);\n\n useEffect(() => {\n document.title = title\n .replace(/-/g, \" \")\n .split(\" \")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \") ;\n }, [title]);\n\n useEffect(() => {\n return () => {\n if (!prevailOnUnmount) {\n document.title = defaultTitle.current;\n }\n };\n }, [prevailOnUnmount]);\n\n return null;\n}\n\nexport default DefaultTitle;\n"],"names":["_ref","title","prevailOnUnmount","defaultTitle","useRef","document","useEffect","replace","split","map","word","charAt","toUpperCase","slice","join","current"],"sourceRoot":""}