Files
machartaa_admin_dist/dist/assets/index-29f6c2bf.js
T

2 lines
19 KiB
JavaScript
Raw Normal View History

2026-07-08 13:26:38 +03:30
import{_ as xe}from"./BasicMainCard-47a0a2da.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-8927c0a8.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-180a57eb.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-08cdb61a.js";import{u as V,_ as Se}from"./useBaseTable-9961a393.js";import{I as P}from"./Icon-b73f0ccd.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-ad2a20c7.js";import{t as Te,a as qe}from"./useDataTime-024ee901.js";import{H as v,_ as Ie,d as ke,g as x,E as U,N as Ee,h as J,v as Oe,o as K,c as W,b as l,w as d,j as b,G as z,a as i,e as C,t as Re,k as Ne,D as f}from"./index-229ba0a3.js";import{f as G,a as Pe,b as Ue,c as Ce,d as Ae,e as Be}from"./supabaseTableQuery-95762ff3.js";import{T as X}from"./index-a7c49db8.js";import{M as H}from"./index-e82d9954.js";import{S as Y}from"./fa_IR-3a494b17.js";import{T as A}from"./shallowequal-e16473e7.js";import"./index-50c9f2fc.js";import"./index-52c15dd9.js";import"./Col-f578b6a7.js";import"./styleChecker-4d6469c9.js";import"./vnode-29431c52.js";import"./_plugin-vue_export-helper-5c7e4561.js";import"./isPlainObject-17ad1cae.js";import"./index-939f3031.js";import"./usePrice-bc935b83.js";import"./index-83597ea6.js";import"./FormItemContext-d2efc581.js";import"./useState-5d84a598.js";import"./lodash-6658ee3b.js";import"./css-ddfc5c90.js";import"./DialogWrap-81e16685.js";import"./pickAttrs-a633b394.js";import"./index-fbe56609.js";import"./toArray-2b8ac8d2.js";import"./useRefs-97fcf834.js";import"./_flatRest-fbf51dda.js";const De=[{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 s=e.record;return(o=s.question_text)!=null&&o.trim()?s.question_text:s.template_source?`${s.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=>Te(e.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center",width:120}],Fe=[{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=>qe(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 Z(e){var a;if(console.log(e,"error"),!e)return"خطا در ذخیره سوال";const s=e;return String(s.message??((a=s.error)==null?void 0:a.message)??"")||"خطا در ذخیره سوال"}function $(e){throw new Error(Z(e))}const g={BASE_POINTS:"daily_question_base_points",SUBSCRIPTION_BO