Files
machartaa_admin_dist/dist/assets/index-e66fdf01.js
T

2 lines
19 KiB
JavaScript
Raw Normal View History

2026-06-15 11:54:19 +03:30
import{_ as be}from"./BasicMainCard-7db5d4e3.js";import{_ as xe}from"./BasicModal.vue_vue_type_style_index_0_lang-4e57697d.js";import{u as V,_ as ge}from"./useBaseTable-6972e018.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-fac93654.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-9d5d26a1.js";import{I as N}from"./Icon-10f11b08.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-52413cc4.js";import{t as Se,a as ke}from"./useDataTime-5817feb9.js";import{H as b,_ as Te,d as qe,g as x,K as C,L as Ie,h as K,v as Ee,o as J,c as W,b as l,w as d,a as s,e as U,j as f,E as z,t as Oe,k as Pe,C as p}from"./index-96107119.js";import{a as Re,b as Ne,c as Ce,f as Ue}from"./supabaseTableQuery-8ee1dd3b.js";import{T as X}from"./index-32cbef66.js";import{M as G}from"./index-bda114dd.js";import{S as H}from"./fa_IR-c1033d89.js";import{T as $}from"./shallowequal-7fda91ae.js";import"./_plugin-vue_export-helper-081dcfd4.js";import"./index-d8bab9ba.js";import"./Col-5c28624e.js";import"./vnode-e147c015.js";import"./isPlainObject-4f3f1958.js";import"./index-3de84383.js";import"./useState-00a24a9a.js";import"./FormItemContext-dc7be399.js";import"./lodash-2d5bb56c.js";import"./index-6f043c51.js";import"./index-96d195aa.js";import"./pickAttrs-a0853987.js";import"./toArray-b1390e28.js";import"./usePrice-7afab779.js";import"./useRefs-e24ee44c.js";const $e=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"ارسال‌کننده",dataIndex:"submitter_name",key:"submitter_name",filterField:"submitter_name",width:120},{title:"سوال",dataIndex:"question_text",key:"question_text",filterField:"question_text",customRender:e=>{var o;const i=e.record;return(o=i.question_text)!=null&&o.trim()?i.question_text:i.template_source?`${i.template_source} ...؟`:"-"}},{title:"گزینه ۱",dataIndex:"option1_text",key:"option1_text",filterField:"option1_text",width:120},{title:"گزینه ۲",dataIndex:"option2_text",key:"option2_text",filterField:"option2_text",width:120},{title:"تاریخ ارسال",dataIndex:"created_at",key:"created_at",type:"DateTime",filterField:"created_at",width:130,customRender:e=>Se(e.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center",width:120}],Ae=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"سوال",dataIndex:"question_text",key:"question_text",filterField:"question_text"},{title:"گزینه ۱",dataIndex:"option1_text",key:"option1_text",filterField:"option1_text",width:110},{title:"گزینه ۲",dataIndex:"option2_text",key:"option2_text",filterField:"option2_text",width:110},{title:"پاسخ صحیح",dataIndex:"correct_option",key:"correct_option",type:"Number",filterField:"correct_option",width:90,align:"center",customRender:e=>`گزینه ${e.record.correct_option}`},{title:"ترتیب",dataIndex:"sort_order",key:"sort_order",type:"Number",filterField:"sort_order",width:70,align:"center",customRender:e=>(e.record.sort_order??0)+1},{title:"تاریخ انتشار",dataIndex:"publish_date",key:"publish_date",type:"Date",filterField:"publish_date",width:120,customRender:e=>ke(e.record.publish_date)},{title:"طراح",dataIndex:"designer_name",key:"designer_name",filterField:"designer_name",width:110,customRender:e=>e.record.designer_user_id?e.record.designer_name||"کاربر":"-"},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center",width:100}];function Y(e){var a;if(console.log(e,"error"),!e)return"خطا در ذخیره سوال";const i=e;return String(i.message??((a=i.error)==null?void 0:a.message)??"")||"خطا در ذخیره سوال"}function M(e){throw new Error(Y(e))}const g={BASE_POINTS:"daily_question_base_points",SUBSCRIPTION_BONUS:"daily_question_subscription_bonus",SUBMISSION_REWARD:"daily_question_submission_reward",TEMPLATE_PREFIX:"daily_question_template_prefix",TEMPLATE_SOURCES:"daily_que