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

2 lines
19 KiB
JavaScript
Raw Normal View History

2026-06-17 14:02:02 +03:30
import{_ as be}from"./BasicMainCard-5c0935a0.js";import{_ as xe}from"./BasicModal.vue_vue_type_style_index_0_lang-0a56944e.js";import{u as V,_ as ge}from"./useBaseTable-733b78fc.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-f55e9984.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-251932bc.js";import{I as N}from"./Icon-417849dc.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-d91211c6.js";import{t as Se,a as ke}from"./useDataTime-c57a768a.js";import{I as b,_ as Te,d as qe,g as x,E as U,L as Ie,h as J,v as Ee,o as K,c as W,b as l,w as d,a as s,e as C,j as f,G as z,t as Oe,k as Pe,D as p}from"./index-a788bd53.js";import{c as Re,d as Ne,e as Ue,f as Ce}from"./supabaseTableQuery-48420152.js";import{T as G}from"./index-d8ab383c.js";import{M as X}from"./index-0cdee960.js";import{S as Y}from"./fa_IR-d5b5c457.js";import{T as $}from"./shallowequal-f5e87a5a.js";import"./index-8174d632.js";import"./index-bdb5a596.js";import"./Col-c7805dec.js";import"./vnode-cf6f01a4.js";import"./_plugin-vue_export-helper-dc00b431.js";import"./isPlainObject-91b090bb.js";import"./index-eb51b631.js";import"./useState-01af796f.js";import"./FormItemContext-b811304e.js";import"./lodash-315d8ef5.js";import"./index-c82b54d0.js";import"./index-619be9cd.js";import"./pickAttrs-81a356a6.js";import"./toArray-16bbe0cf.js";import"./usePrice-bc935b83.js";import"./useRefs-7f6d723f.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 H(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(H(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"