���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.output
/
server
/
chunks
/
build
/
Viewing: start-D3Neo3CQ.mjs
import { u as useFormGroup, _ as __nuxt_component_3 } from './Input-B3b5x64j.mjs'; import { _ as __nuxt_component_1 } from './Select-P-6alWOg.mjs'; import { defineComponent, toRef, ref, watch, nextTick, computed, useSSRContext, reactive, mergeProps, unref, isRef, withCtx, createVNode, toDisplayString } from 'vue'; import { twMerge, twJoin } from 'tailwind-merge'; import { o as defu } from '../runtime.mjs'; import { m as mergeConfig, t as textarea, d as appConfig, e as useUI, b as useI18n, u as useHead, v as useRouter, i as useToast, c as useLocalePath, n as navigateTo, l as __nuxt_component_3$1, s as looseToNumber, _ as _export_sfc } from './server.mjs'; import { ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrRenderComponent, ssrRenderClass, ssrRenderSlot } from 'vue/server-renderer'; import { _ as __nuxt_component_2$1 } from './Modal-y43pxt07.mjs'; import { _ as __nuxt_component_3$2 } from './Card-D80rh2TF.mjs'; import { u as useLocalForage } from './composables-C_0rrRVB.mjs'; import '@vueuse/core'; import 'node:http'; import 'node:https'; import 'fs'; import 'path'; import 'node:fs'; import 'node:url'; import '@iconify/utils'; import 'consola/core'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'devalue'; import '@unhead/ssr'; import 'unhead'; import '@unhead/shared'; import 'vue-router'; import '@iconify/vue'; import '@iconify/utils/lib/css/icon'; import './id-DOoFjeHa.mjs'; import './keyboard-DxZwAodF.mjs'; const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.textarea, textarea); const _sfc_main$1 = defineComponent({ inheritAttrs: false, props: { modelValue: { type: [String, Number], default: "" }, id: { type: String, default: null }, name: { type: String, default: null }, placeholder: { type: String, default: null }, required: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, rows: { type: Number, default: 3 }, maxrows: { type: Number, default: 0 }, autoresize: { type: Boolean, default: false }, autofocus: { type: Boolean, default: false }, autofocusDelay: { type: Number, default: 100 }, resize: { type: Boolean, default: false }, padded: { type: Boolean, default: true }, size: { type: String, default: null, validator(value) { return Object.keys(config.size).includes(value); } }, color: { type: String, default: () => config.default.color, validator(value) { return [...appConfig.ui.colors, ...Object.keys(config.color)].includes(value); } }, variant: { type: String, default: () => config.default.variant, validator(value) { return [ ...Object.keys(config.variant), ...Object.values(config.color).flatMap((value2) => Object.keys(value2)) ].includes(value); } }, textareaClass: { type: String, default: null }, class: { type: [String, Object, Array], default: () => "" }, ui: { type: Object, default: () => ({}) }, modelModifiers: { type: Object, default: () => ({}) } }, emits: ["update:modelValue", "blur", "change"], setup(props, { emit }) { const { ui, attrs } = useUI("textarea", toRef(props, "ui"), config, toRef(props, "class")); const { emitFormBlur, emitFormInput, inputId, color, size, name } = useFormGroup(props, config); const modelModifiers = ref(defu({}, props.modelModifiers, { trim: false, lazy: false, number: false })); const textarea2 = ref(null); const autoResize = () => { if (props.autoresize) { if (!textarea2.value) { return; } textarea2.value.rows = props.rows; const styles = (void 0).getComputedStyle(textarea2.value); const paddingTop = parseInt(styles.paddingTop); const paddingBottom = parseInt(styles.paddingBottom); const padding = paddingTop + paddingBottom; const lineHeight = parseInt(styles.lineHeight); const { scrollHeight } = textarea2.value; const newRows = (scrollHeight - padding) / lineHeight; if (newRows > props.rows) { textarea2.value.rows = props.maxrows ? Math.min(newRows, props.maxrows) : newRows; } } }; const updateInput = (value) => { if (modelModifiers.value.trim) { value = value.trim(); } if (modelModifiers.value.number) { value = looseToNumber(value); } emit("update:modelValue", value); emitFormInput(); }; const onInput = (event) => { autoResize(); if (!modelModifiers.value.lazy) { updateInput(event.target.value); } }; const onChange = (event) => { const value = event.target.value; emit("change", value); if (modelModifiers.value.lazy) { updateInput(value); } if (modelModifiers.value.trim) { event.target.value = value.trim(); } }; const onBlur = (event) => { emit("blur", event); emitFormBlur(); }; watch(() => props.modelValue, () => { nextTick(autoResize); }); const textareaClass = computed(() => { var _a, _b; const variant = ((_b = (_a = ui.value.color) == null ? void 0 : _a[color.value]) == null ? void 0 : _b[props.variant]) || ui.value.variant[props.variant]; return twMerge(twJoin( ui.value.base, ui.value.form, ui.value.rounded, ui.value.placeholder, ui.value.size[size.value], props.padded ? ui.value.padding[size.value] : "p-0", variant == null ? void 0 : variant.replaceAll("{color}", color.value), !props.resize && "resize-none" ), props.textareaClass); }); return { // eslint-disable-next-line vue/no-dupe-keys ui, attrs, // eslint-disable-next-line vue/no-dupe-keys name, inputId, textarea: textarea2, // eslint-disable-next-line vue/no-dupe-keys textareaClass, onInput, onChange, onBlur }; } }); function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) { let _temp0; _push(`<div${ssrRenderAttrs(mergeProps({ class: _ctx.ui.wrapper }, _attrs))}><textarea${ssrRenderAttrs(_temp0 = mergeProps({ id: _ctx.inputId, ref: "textarea", value: _ctx.modelValue, name: _ctx.name, rows: _ctx.rows, required: _ctx.required, disabled: _ctx.disabled, placeholder: _ctx.placeholder, class: _ctx.textareaClass }, _ctx.attrs), "textarea")}>${ssrInterpolate("value" in _temp0 ? _temp0.value : "")}</textarea>`); ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent); _push(`</div>`); } const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/@nuxt/ui/dist/runtime/components/forms/Textarea.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const __nuxt_component_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender]]); const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "start", __ssrInlineRender: true, setup(__props) { const { t, locale } = useI18n(); useHead({ title: t("Start") }); const router = useRouter(); const direction = locale.value === "en" ? "ltr" : "rtl"; let isChooseUnitModalOpen = ref(false); const projectsDB = useLocalForage("projects"); const sheetsDB = useLocalForage("sheets"); const toast = useToast(); const localePath = useLocalePath(); const height_strip = [ { name: t("Single"), value: "single" }, { name: t("Double"), value: "double" } ]; const width_strip = [{ name: t("1 Mile"), value: "1" }, { name: t("2 Mile"), value: "2" }]; const state = reactive({ loading_category: false, loading_settings: false, loading_dimensions: false, name: "", width_strip: "1", height_strip: "single", description: "" }); const handleCloseModalAndRedirect = () => { isChooseUnitModalOpen.value = false; router.push("/analyze/dimensions"); }; const handleClick = async (type) => { if (!state.name) { return toast.add({ title: t("Project name feild is required"), color: "orange" }); } await projectsDB.setItem("new", JSON.stringify({ name: state.name, description: state.description, width_strip: state.width_strip, height_strip: state.height_strip })); if (type == "category") { const sheet = await sheetsDB.getItem("new"); if (!sheet) { return toast.add({ title: t("First, complete the section on the dimensions of the sheets to be used"), color: "orange" }); } state.loading_category = true; return navigateTo(localePath("/analyze/category")); } else if (type == "settings") { state.loading_settings = true; return navigateTo(localePath("/setting")); } else if (type == "dimensions") { state.loading_dimensions = true; return navigateTo(localePath("/analyze/dimensions")); } }; return (_ctx, _push, _parent, _attrs) => { const _component_UInput = __nuxt_component_3; const _component_USelect = __nuxt_component_1; const _component_UTextarea = __nuxt_component_2; const _component_UButton = __nuxt_component_3$1; const _component_UModal = __nuxt_component_2$1; const _component_UCard = __nuxt_component_3$2; _push(`<div${ssrRenderAttrs(mergeProps({ class: "w-[95%] mx-auto lg:w-10/12 min-h-[60vh] flex justify-center items-center" }, _attrs))}><div${ssrRenderAttr("dir", _ctx.$i18n.locale == "en" ? "ltr" : "rtl")} class="w-full border rounded-xl gap-5 flex justify-start !pt-4 items-center flex-col border-black p-2 h-[35rem]"><div class="w-full flex flex-col justify-start items-start"><label class="block text-sm text-right bold text-black mb-3">${ssrInterpolate(unref(t)("project name"))} : </label>`); _push(ssrRenderComponent(_component_UInput, { modelValue: unref(state).name, "onUpdate:modelValue": ($event) => unref(state).name = $event, variant: "outline", class: "w-full", inputClass: " w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs" }, null, _parent)); _push(`</div><div class="w-full flex flex-col justify-start items-start"><label class="block text-sm text-right bold text-black mb-3">${ssrInterpolate(unref(t)("Width Strip"))} : </label>`); _push(ssrRenderComponent(_component_USelect, { options: width_strip, "option-attribute": "name", class: "w-full", selectClass: " w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs", modelValue: unref(state).width_strip, "onUpdate:modelValue": ($event) => unref(state).width_strip = $event }, null, _parent)); _push(`</div><div class="w-full flex flex-col justify-start items-start"><label class="block text-sm text-right bold text-black mb-3">${ssrInterpolate(unref(t)("Thickness Strip"))} : </label>`); _push(ssrRenderComponent(_component_USelect, { options: height_strip, "option-attribute": "name", class: "w-full", selectClass: " w-full !h-10 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 py-0 text-xs", modelValue: unref(state).height_strip, "onUpdate:modelValue": ($event) => unref(state).height_strip = $event }, null, _parent)); _push(`</div><div class="w-full flex flex-col justify-start items-start"><label class="block text-sm text-right bold text-black mb-3">${ssrInterpolate(unref(t)("description"))} : </label>`); _push(ssrRenderComponent(_component_UTextarea, { modelValue: unref(state).description, "onUpdate:modelValue": ($event) => unref(state).description = $event, variant: "outline", rows: 4, class: "w-full", textareaClass: "py-2 bg-gray-50 !shadow-none focus:ring-1 rounded-lg focus:ring-orange-600 text-xs" }, null, _parent)); _push(`</div><div class="w-full">`); _push(ssrRenderComponent(_component_UButton, { square: "", loading: unref(state).loading_category, onClick: ($event) => isRef(isChooseUnitModalOpen) ? isChooseUnitModalOpen.value = true : isChooseUnitModalOpen = true, class: "w-full flex px-2 h-10 text-black rounded-lg hover:bg-yellow-500 bg-[#f7941d] items-center justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block px-2 text-sm"${_scopeId}>${ssrInterpolate(unref(t)("ChooseUnit"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-sm" }, toDisplayString(unref(t)("ChooseUnit")), 1) ]; } }), _: 1 }, _parent)); _push(ssrRenderComponent(_component_UModal, { modelValue: unref(isChooseUnitModalOpen), "onUpdate:modelValue": ($event) => isRef(isChooseUnitModalOpen) ? isChooseUnitModalOpen.value = $event : isChooseUnitModalOpen = $event, dir: unref(direction) }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_UCard, { ui: { ring: "", divide: "divide-y divide-gray-100 dark:divide-gray-800" } }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`<div class="modal-content-container p-2 px-4"${_scopeId2}><div class="w-full mb-8"${_scopeId2}><div class="mb-8 relative mx-auto w-full"${_scopeId2}><h3${_scopeId2}>${ssrInterpolate(unref(t)("are_you_sure_of_the_dimensions_of_your_used_sheets"))}</h3></div><div class="w-full px-3 flex justify-between"${_scopeId2}>`); _push3(ssrRenderComponent(_component_UButton, { color: "green", variant: "solid", label: unref(t)("yes"), icon: "i-heroicons-check", onClick: ($event) => handleClick("category") }, null, _parent3, _scopeId2)); _push3(ssrRenderComponent(_component_UButton, { color: "red", variant: "solid", label: unref(t)("no"), icon: "i-heroicons-x-mark-20-solid", onClick: handleCloseModalAndRedirect }, null, _parent3, _scopeId2)); _push3(`</div></div></div>`); } else { return [ createVNode("div", { class: "modal-content-container p-2 px-4" }, [ createVNode("div", { class: "w-full mb-8" }, [ createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ createVNode("h3", null, toDisplayString(unref(t)("are_you_sure_of_the_dimensions_of_your_used_sheets")), 1) ]), createVNode("div", { class: "w-full px-3 flex justify-between" }, [ createVNode(_component_UButton, { color: "green", variant: "solid", label: unref(t)("yes"), icon: "i-heroicons-check", onClick: ($event) => handleClick("category") }, null, 8, ["label", "onClick"]), createVNode(_component_UButton, { color: "red", variant: "solid", label: unref(t)("no"), icon: "i-heroicons-x-mark-20-solid", onClick: handleCloseModalAndRedirect }, null, 8, ["label"]) ]) ]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(_component_UCard, { ui: { ring: "", divide: "divide-y divide-gray-100 dark:divide-gray-800" } }, { default: withCtx(() => [ createVNode("div", { class: "modal-content-container p-2 px-4" }, [ createVNode("div", { class: "w-full mb-8" }, [ createVNode("div", { class: "mb-8 relative mx-auto w-full" }, [ createVNode("h3", null, toDisplayString(unref(t)("are_you_sure_of_the_dimensions_of_your_used_sheets")), 1) ]), createVNode("div", { class: "w-full px-3 flex justify-between" }, [ createVNode(_component_UButton, { color: "green", variant: "solid", label: unref(t)("yes"), icon: "i-heroicons-check", onClick: ($event) => handleClick("category") }, null, 8, ["label", "onClick"]), createVNode(_component_UButton, { color: "red", variant: "solid", label: unref(t)("no"), icon: "i-heroicons-x-mark-20-solid", onClick: handleCloseModalAndRedirect }, null, 8, ["label"]) ]) ]) ]) ]), _: 1 }) ]; } }), _: 1 }, _parent)); _push(`</div><div class="w-full flex flex-wrap justify-start items-center"><div class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "pr-2" : "pl-2", "w-6/12"])}">`); _push(ssrRenderComponent(_component_UButton, { square: "", loading: unref(state).loading_settings, onClick: ($event) => handleClick("settings"), class: "w-full flex px-2 h-9 text-black rounded-lg hover:bg-gray-300 bg-gray-200 items-center justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block px-2 text-sm"${_scopeId}>${ssrInterpolate(unref(t)("SettingsStart"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-sm" }, toDisplayString(unref(t)("SettingsStart")), 1) ]; } }), _: 1 }, _parent)); _push(`</div><div class="${ssrRenderClass([_ctx.$i18n.locale == "en" ? "pl-2" : "pr-2", "w-6/12"])}">`); _push(ssrRenderComponent(_component_UButton, { square: "", loading: unref(state).loading_dimensions, onClick: ($event) => handleClick("dimensions"), class: "w-full flex px-2 h-9 text-black rounded-lg hover:bg-gray-300 bg-gray-200 items-center justify-center" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`<span class="block px-2 text-sm"${_scopeId}>${ssrInterpolate(unref(t)("Dimensions"))}</span>`); } else { return [ createVNode("span", { class: "block px-2 text-sm" }, toDisplayString(unref(t)("Dimensions")), 1) ]; } }), _: 1 }, _parent)); _push(`</div></div></div></div>`); }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/analyze/start.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=start-D3Neo3CQ.mjs.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa