{"version":3,"file":"DGge9x4J.js","sources":["../../../../node_modules/.pnpm/@unhead+vue@1.11.7_vue@3.5.12_typescript@5.5.4_/node_modules/@unhead/vue/dist/shared/vue.8fc199ce.mjs"],"sourcesContent":["import { ref, watchEffect, watch, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';\nimport { i as injectHead, r as resolveUnrefHeadInput } from './vue.f49591ad.mjs';\n\nfunction useHead(input, options = {}) {\n const head = options.head || injectHead();\n if (head) {\n if (!head.ssr)\n return clientUseHead(head, input, options);\n return head.push(input, options);\n }\n}\nfunction clientUseHead(head, input, options = {}) {\n const deactivated = ref(false);\n const resolvedInput = ref({});\n watchEffect(() => {\n resolvedInput.value = deactivated.value ? {} : resolveUnrefHeadInput(input);\n });\n const entry = head.push(resolvedInput.value, options);\n watch(resolvedInput, (e) => {\n entry.patch(e);\n });\n const vm = getCurrentInstance();\n if (vm) {\n onBeforeUnmount(() => {\n entry.dispose();\n });\n onDeactivated(() => {\n deactivated.value = true;\n });\n onActivated(() => {\n deactivated.value = false;\n });\n }\n return entry;\n}\n\nexport { useHead as u };\n"],"names":["useHead","input","options","head","injectHead","clientUseHead","deactivated","ref","resolvedInput","watchEffect","resolveUnrefHeadInput","entry","watch","e","getCurrentInstance","onBeforeUnmount","onDeactivated","onActivated"],"mappings":"0FAGA,SAASA,EAAQC,EAAOC,EAAU,GAAI,CACpC,MAAMC,EAAOD,EAAQ,MAAQE,EAAU,EACvC,GAAID,EACF,OAAKA,EAAK,IAEHA,EAAK,KAAKF,EAAOC,CAAO,EADtBG,EAAcF,EAAMF,EAAOC,CAAO,CAG/C,CACA,SAASG,EAAcF,EAAMF,EAAOC,EAAU,CAAA,EAAI,CAChD,MAAMI,EAAcC,EAAI,EAAK,EACvBC,EAAgBD,EAAI,CAAA,CAAE,EAC5BE,EAAY,IAAM,CAChBD,EAAc,MAAQF,EAAY,MAAQ,CAAA,EAAKI,EAAsBT,CAAK,CAC9E,CAAG,EACD,MAAMU,EAAQR,EAAK,KAAKK,EAAc,MAAON,CAAO,EACpD,OAAAU,EAAMJ,EAAgBK,GAAM,CAC1BF,EAAM,MAAME,CAAC,CACjB,CAAG,EACUC,MAETC,EAAgB,IAAM,CACpBJ,EAAM,QAAO,CACnB,CAAK,EACDK,EAAc,IAAM,CAClBV,EAAY,MAAQ,EAC1B,CAAK,EACDW,EAAY,IAAM,CAChBX,EAAY,MAAQ,EAC1B,CAAK,GAEIK,CACT","x_google_ignoreList":[0]}