{"version":3,"file":"CdUUHio-.js","sources":["../../../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.js","../../../../node_modules/.pnpm/@nuxt+ui@2.20.0_axios@1.7.7_magicast@0.3.5_rollup@4.24.0_sortablejs@1.14.0_typescript@5.6.3_v_mfllii6etumfxz3e2rqnt3xxey/node_modules/@nuxt/ui/dist/runtime/composables/usePopper.js"],"sourcesContent":["import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };","import { ref, onMounted, watchEffect } from \"vue\";\nimport { popperGenerator, defaultModifiers } from \"@popperjs/core/lib/popper-lite\";\nimport flip from \"@popperjs/core/lib/modifiers/flip\";\nimport offset from \"@popperjs/core/lib/modifiers/offset\";\nimport preventOverflow from \"@popperjs/core/lib/modifiers/preventOverflow\";\nimport computeStyles from \"@popperjs/core/lib/modifiers/computeStyles\";\nimport eventListeners from \"@popperjs/core/lib/modifiers/eventListeners\";\nimport arrowModifier from \"@popperjs/core/lib/modifiers/arrow\";\nimport { unrefElement } from \"@vueuse/core\";\nexport const createPopper = popperGenerator({\n defaultModifiers: [...defaultModifiers, offset, flip, preventOverflow, computeStyles, eventListeners, arrowModifier]\n});\nexport function usePopper({\n locked = false,\n overflowPadding = 8,\n offsetDistance = 8,\n offsetSkid = 0,\n gpuAcceleration = true,\n adaptive = true,\n scroll = true,\n resize = true,\n arrow = false,\n placement,\n strategy\n}, virtualReference) {\n const reference = ref(null);\n const popper = ref(null);\n const instance = ref(null);\n onMounted(() => {\n watchEffect((onInvalidate) => {\n if (!popper.value) {\n return;\n }\n if (!reference.value && !virtualReference?.value) {\n return;\n }\n const popperEl = unrefElement(popper);\n const referenceEl = virtualReference?.value || unrefElement(reference);\n if (!(popperEl instanceof HTMLElement)) {\n return;\n }\n if (!referenceEl) {\n return;\n }\n const config = {\n modifiers: [\n {\n name: \"flip\",\n enabled: !locked\n },\n {\n name: \"preventOverflow\",\n options: {\n padding: overflowPadding\n }\n },\n {\n name: \"offset\",\n options: {\n offset: [offsetSkid, offsetDistance]\n }\n },\n {\n name: \"computeStyles\",\n options: {\n adaptive,\n gpuAcceleration\n }\n },\n {\n name: \"eventListeners\",\n options: {\n scroll,\n resize\n }\n },\n {\n name: \"arrow\",\n enabled: arrow\n }\n ]\n };\n if (placement) {\n config.placement = placement;\n }\n if (strategy) {\n config.strategy = strategy;\n }\n instance.value = createPopper(referenceEl, popperEl, config);\n onInvalidate(instance.value.destroy);\n });\n });\n return [reference, popper, instance];\n}\n"],"names":["defaultModifiers","eventListeners","popperOffsets","computeStyles","applyStyles","createPopper","popperGenerator","offset","flip","preventOverflow","arrowModifier","usePopper","locked","overflowPadding","offsetDistance","offsetSkid","gpuAcceleration","adaptive","scroll","resize","arrow","placement","strategy","virtualReference","reference","ref","popper","instance","onMounted","watchEffect","onInvalidate","popperEl","unrefElement","referenceEl","config"],"mappings":"iIAKA,IAAIA,EAAmB,CAACC,EAAgBC,EAAeC,EAAeC,CAAW,ECI1E,MAAMC,EAAeC,EAAgB,CAC1C,iBAAkB,CAAC,GAAGN,EAAkBO,EAAQC,EAAMC,EAAiBN,EAAeF,EAAgBS,CAAa,CACrH,CAAC,EACM,SAASC,EAAU,CACxB,OAAAC,EAAS,GACT,gBAAAC,EAAkB,EAClB,eAAAC,EAAiB,EACjB,WAAAC,EAAa,EACb,gBAAAC,EAAkB,GAClB,SAAAC,EAAW,GACX,OAAAC,EAAS,GACT,OAAAC,EAAS,GACT,MAAAC,EAAQ,GACR,UAAAC,EACA,SAAAC,C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