import { _ as _sfc_main$1 } from './index-m9AqQ9dr.mjs';
import { defineComponent, ref, unref, mergeProps, withCtx, createVNode, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
import { _ as __nuxt_component_2 } from './ArrowUpIcon-CPulX-6W.mjs';
import { a as _export_sfc } from './server.mjs';
import 'reka-ui';
import './utils-H80jjgLf.mjs';
import 'clsx';
import 'tailwind-merge';
import 'class-variance-authority';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'nitropack/dist/runtime/plugin';
import 'packrup';
import 'consola';
import 'node:fs';
import 'node:url';
import '@iconify/utils';
import 'node:crypto';
import 'ipx';
import 'node:path';
import 'pinia';
import '@pinia/colada';
import 'vue-router';
import '@unhead/schema-org/vue';
import 'deep-pick-omit';
import '@iconify/vue';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'unhead/server';
import 'devalue';
import 'unhead/plugins';
import 'unhead/utils';

const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "ScrollToTop",
  __ssrInlineRender: true,
  setup(__props) {
    const scrollToTop = () => {
      (void 0).scrollTo({
        top: 0,
        behavior: "smooth"
      });
    };
    const bottomOffset = ref("1rem");
    const showArrow = ref(false);
    return (_ctx, _push, _parent, _attrs) => {
      const _component_Button = _sfc_main$1;
      if (unref(showArrow)) {
        _push(`<div${ssrRenderAttrs(mergeProps({
          class: "fixed right-4 z-50 cursor-pointer transition-all duration-300",
          style: { bottom: unref(bottomOffset) }
        }, _attrs))} data-v-b37fcf76>`);
        _push(ssrRenderComponent(_component_Button, {
          "aria-label": _ctx.$t("ariaLabels.scrollToTop"),
          size: "wsIcon",
          class: "hover:bg-accent/90 !text-primary ws-gradient-border-animated cursor-pointer transition-colors",
          onClick: scrollToTop
        }, {
          default: withCtx((_, _push2, _parent2, _scopeId) => {
            if (_push2) {
              _push2(ssrRenderComponent(__nuxt_component_2, { "aria-hidden": "true" }, null, _parent2, _scopeId));
            } else {
              return [
                createVNode(__nuxt_component_2, { "aria-hidden": "true" })
              ];
            }
          }),
          _: 1
        }, _parent));
        _push(`</div>`);
      } else {
        _push(`<!---->`);
      }
    };
  }
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/global/ScrollToTop.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const ScrollToTop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b37fcf76"]]);

export { ScrollToTop as default };
//# sourceMappingURL=ScrollToTop-f92Wcp6u.mjs.map
