2026-06-17 17:10:18 +03:30
|
|
|
|
import{_ as be}from"./BasicMainCard-360e79a0.js";import{_ as xe}from"./BasicModal.vue_vue_type_style_index_0_lang-c8095186.js";import{u as V,_ as ge}from"./useBaseTable-b212fb56.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-8983d227.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-195b8d9a.js";import{I as N}from"./Icon-2a8c3e41.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-9cd51911.js";import{t as Se,a as ke}from"./useDataTime-6a09e5c0.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-a50096a0.js";import{c as Re,d as Ne,e as Ue,f as Ce}from"./supabaseTableQuery-48420152.js";import{T as G}from"./index-3153a98e.js";import{M as X}from"./index-7a74fc9f.js";import{S as Y}from"./fa_IR-6cf6636d.js";import{T as $}from"./shallowequal-fd828cab.js";import"./index-c72e91b1.js";import"./index-61a9aeb2.js";import"./Col-ebc8e0ff.js";import"./vnode-83d05633.js";import"./_plugin-vue_export-helper-ad575245.js";import"./isPlainObject-2043fc31.js";import"./index-7828d717.js";import"./useState-615e93e3.js";import"./FormItemContext-9eb80cb7.js";import"./lodash-ce2aea52.js";import"./index-53e1df7d.js";import"./index-e70e3e7c.js";import"./pickAttrs-e8ddf09f.js";import"./toArray-1fa725d3.js";import"./usePrice-bc935b83.js";import"./useRefs-9c493973.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"
|