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

2 lines
19 KiB
JavaScript
Raw Normal View History

2026-06-14 14:05:58 +03:30
import{_ as be}from"./BasicMainCard-84b6a59f.js";import{_ as xe}from"./BasicModal.vue_vue_type_style_index_0_lang-c3ae10a6.js";import{u as V,_ as ge}from"./useBaseTable-40588527.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-edef22fe.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-ffd7bdde.js";import{I as N}from"./Icon-61889149.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-cf72a1e2.js";import{t as Se,a as ke}from"./useDataTime-58f0c0c0.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-4dc7c6f6.js";import{a as Re,b as Ne,c as Ce,f as Ue}from"./supabaseTableQuery-8ee1dd3b.js";import{T as X}from"./index-2fcf178b.js";import{M as G}from"./index-4573c903.js";import{S as H}from"./fa_IR-06db085c.js";import{T as $}from"./shallowequal-c81602d9.js";import"./_plugin-vue_export-helper-a5e52605.js";import"./index-b0faa00c.js";import"./Col-21efcdc2.js";import"./vnode-88405440.js";import"./isPlainObject-8aaa3401.js";import"./index-286adeb4.js";import"./useState-4068a96b.js";import"./FormItemContext-4baae48b.js";import"./lodash-746af23f.js";import"./index-177aaded.js";import"./index-ebdb1487.js";import"./pickAttrs-10867317.js";import"./toArray-48ad4c5b.js";import"./usePrice-7afab779.js";import"./useRefs-262e2b68.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