2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
import{_ as K}from"./BasicMainCard-4e5b70c4.js";import{M as Z,_ as ee}from"./BasicModal.vue_vue_type_style_index_0_lang-7fe5902c.js";import{_ as te}from"./BasicTextArea.vue_vue_type_style_index_0_lang-34df07e5.js";import{_ as oe}from"./BasicInput.vue_vue_type_style_index_0_lang-3237e636.js";import{_ as ae}from"./BaseTable.vue_vue_type_style_index_0_lang-1772e74f.js";import{_ as le}from"./button.vue_vue_type_style_index_0_lang-720928c4.js";import{b as ie,u as se,c as ne,d as re,e as ue}from"./competition-4b1da384.js";import{t as de}from"./useDataTime-a9e84b2b.js";import{I as S}from"./Icon-d8714ef2.js";import{u as ce}from"./useBaseTable-3aeb2499.js";import{d as pe,r as v,Y as me,i as ve,o as y,c as b,b as s,w as m,a as t,e as _e,a2 as fe,L as D,N as L,X as ge,O as he,F as xe,S as ye,a0 as _,a4 as Q}from"./index-860fa59f.js";import{_ as be}from"./TextPreview.vue_vue_type_script_setup_true_lang-6f2e38d1.js";import{S as we}from"./index-26e2d4f8.js";import{U as Ue}from"./index-7eb6877f.js";import{T as W}from"./styleChecker-d72667fe.js";import"./_plugin-vue_export-helper-483988fe.js";import"./index-f2ed3e06.js";import"./useState-5bd6c786.js";import"./vnode-1c666eb2.js";import"./Col-3da990c2.js";import"./index-6052676c.js";import"./usePrice-7afab779.js";import"./index-17679713.js";const ke=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:w=>w.record.index+1},{title:"عنوان",dataIndex:"title",key:"title"},{title:"شرح",dataIndex:"description",key:"description",slot:"description"},{title:"سوالات",dataIndex:"questions",key:"questions",customRender:w=>"سوالات مسابقه"},{title:"زمان ایجاد",dataIndex:"created_at",key:"created_at",customRender:w=>de(w.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center"}],Me={class:"flex justify-between items-center mb-4"},Ce=t("h2",null,"مسابقات",-1),$e={class:"gap-2 flex justify-center"},Ie=t("span",null,"حذف",-1),Be=t("span",null,"ویرایش",-1),Se={class:"space-y-4 relative"},De={key:0,class:"absolute inset-0 bg-white/60 z-10 flex items-center justify-center"},Le=t("div",{class:"mb-1 text-sm text-gray-600"},"عنوان مسابقه",-1),Te=t("div",{class:"mb-1 text-sm text-gray-600"},"شرح مسابقه",-1),Re=t("div",{class:"mb-1 text-sm text-gray-600"},"عنوان ویدئو قرعه کشی",-1),Ae=t("div",{class:"mb-1 text-sm text-gray-600"},"حداقل امتیاز شرکت در قرعه کشی",-1),Ne=t("div",{class:"mb-1 text-sm text-gray-600"},"آدرس ویدئو",-1),Qe={class:"flex justify-center gap-10 pb-4"},We=t("div",{class:"mb-1 text-sm text-gray-600"},"آپلود تصویر",-1),je={key:0},ze=t("div",null,"آپلود تصویر",-1),Ee={key:0,class:"text-xs text-gray-500 mt-1 text-center"},Oe={class:"h-2 rounded bg-gray-200 overflow-hidden"},Pe={class:"text-xs text-gray-700 font-semibold text-center mt-1"},Fe=t("div",{class:"section-divider"},null,-1),Ve={class:"pt-4"},qe=t("div",{class:"mb-1 text-sm text-gray-600"},"سوالات مسابقه",-1),He={class:"space-y-3"},Je={class:"space-y-3"},Xe=t("div",{class:"mb-1 text-xs text-gray-500"},"سوال",-1),Ye={class:"grid grid-cols-2 gap-3"},Ge=t("div",{class:"mb-1 text-xs text-gray-500"},"گزینه 1",-1),Ke=t("div",{class:"mb-1 text-xs text-gray-500"},"گزینه 2",-1),Ze=t("div",{class:"mb-1 text-xs text-gray-500"},"گزینه 3",-1),et=t("div",{class:"mb-1 text-xs text-gray-500"},"گزینه 4",-1),tt=t("div",{class:"mb-1 text-xs text-gray-500"},"جواب صحیح (شماره گزینه)",-1),ot={class:"flex justify-end"},at=t("span",{class:"text-[#DC2626]"},"حذف سوال",-1),lt=t("span",{class:"text-gray-500"},"+ افزودن سوال",-1),It=pe({__name:"index",setup(w){v([]),v(!1);const j=v(null),[z,T]=ce();me();const f=v([]),x=v(0),g=v(0);function E(r){return r.type.startsWith("image/")?r.size/1024/1024<5?!0:(_.error("حجم تصویر باید کمتر از 5MB باشد!"),!1):(_.error("فقط فایلهای تصویری قابل آپلود هستند!"),!1)}async
|