import { o as vue_exports } from "../ssr.js";
import { n as server_renderer_exports, t } from "./i18n-CXLOYfyq.js";
//#region resources/js/Components/UploadButton.vue?vue&type=script&setup=true&lang.ts
var UploadButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue_exports.defineComponent)({
	__name: "UploadButton",
	__ssrInlineRender: true,
	props: {
		label: {},
		accept: {},
		uploading: { type: Boolean }
	},
	emits: ["file"],
	setup(__props, { emit: __emit }) {
		return (_ctx, _push, _parent, _attrs) => {
			_push(`<label${(0, server_renderer_exports.ssrRenderAttrs)((0, vue_exports.mergeProps)({ class: ["inline-flex cursor-pointer items-center gap-2 rounded-lg border border-line bg-surface-2 px-3.5 py-2 text-sm font-semibold text-ink-2 transition hover:border-primary/50 hover:bg-appbg hover:text-ink", __props.uploading ? "pointer-events-none opacity-70" : ""] }, _attrs))}>`);
			if (__props.uploading) _push(`<svg class="animate-spin" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M21 12a9 9 0 1 1-6.2-8.5"></path></svg>`);
			else _push(`<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"></path></svg>`);
			_push(`<span>${(0, server_renderer_exports.ssrInterpolate)(__props.uploading ? (0, vue_exports.unref)(t)("Uploading…") : __props.label || (0, vue_exports.unref)(t)("Choose image"))}</span><input type="file"${(0, server_renderer_exports.ssrRenderAttr)("accept", __props.accept || "image/png,image/jpeg,image/webp")} class="sr-only"></label>`);
		};
	}
});
//#endregion
//#region resources/js/Components/UploadButton.vue
var _sfc_setup = UploadButton_vue_vue_type_script_setup_true_lang_default.setup;
UploadButton_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
	const ssrContext = (0, vue_exports.useSSRContext)();
	(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("resources/js/Components/UploadButton.vue");
	return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
var UploadButton_default = UploadButton_vue_vue_type_script_setup_true_lang_default;
//#endregion
export { UploadButton_default as t };
