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

2 lines
23 KiB
JavaScript
Raw Normal View History

2026-09-16 14:07:27 +03:30
import{_ as xe}from"./BasicMainCard-2b216dd4.js";import{_ as Se}from"./BasicModal.vue_vue_type_style_index_0_lang-39ca2ebd.js";import{_ as Ae}from"./button.vue_vue_type_style_index_0_lang-307c41e8.js";import{_ as Ie}from"./BaseSwitch.vue_vue_type_script_setup_true_lang-9966573e.js";import{_ as Ce}from"./BasicTextArea.vue_vue_type_style_index_0_lang-4a3d3a2c.js";import{_ as Te}from"./BasicInput.vue_vue_type_style_index_0_lang-2d1bf661.js";import{_ as Re,u as Ue}from"./useBaseTable-4f4d8248.js";import{I as $e}from"./Icon-daa4ada2.js";import{t as z}from"./useDataTime-e3db50db.js";import{_ as Be,Y as ee,I as te,d as Ee,i as h,h as Ne,j as q,x as Le,o as i,c as o,e as v,w as k,l as m,b as e,K as Oe,f as Q,t as p,n as S,s as K,F as C,q as T,G as R,T as je,U as De,k as Pe}from"./index-f44a958f.js";import{g as Fe}from"./convert-2ad76038.js";import{T as Z}from"./index-a485cd3f.js";import{S as Ge}from"./index-00d02541.js";import{A as Ve,a as qe}from"./index-42bc0cea.js";import{_ as N}from"./index-2a7e74b5.js";import{T as Ke}from"./isSymbol-9ca68d9f.js";import{_ as ze}from"./_plugin-vue_export-helper-9644f77d.js";import"./Grid-dfc25885.js";import"./index-ae092da9.js";import"./Col-4af7c3cd.js";import"./styleChecker-d7256a22.js";import"./isPlainObject-f85be752.js";import"./vnode-bcebd00a.js";import"./index-234c79ba.js";import"./DialogWrap-ed1e42ab.js";import"./shallowequal-30316885.js";import"./omit-555d0220.js";import"./pickAttrs-6cecdc2a.js";import"./index-6f0218fe.js";import"./FormItemContext-801d31a4.js";import"./index-17909d47.js";import"./SearchOutlined-bf31e51b.js";import"./index-120ad211.js";import"./usePrice-bc935b83.js";import"./updateLocale-4abe3bd4.js";import"./useState-7cfb31a4.js";import"./useMemo-3af68d99.js";import"./lodash-ba2547f0.js";import"./index-5f6600aa.js";import"./Badge-daa269e5.js";import"./isNumeric-3f69e2aa.js";import"./index-432f8768.js";import"./index-7722f326.js";import"./index-5bb4f02b.js";import"./index-1399904b.js";import"./css-aae66f86.js";import"./toArray-c3886d9c.js";import"./index-a5608fae.js";import"./useRefs-b0f27066.js";import"./_flatRest-e4351155.js";import"./isMobile-e2e89480.js";const j={new:"جدید",reviewing:"در حال بررسی",accepted:"پذیرفته",rejected:"رد شده",archived:"بایگانی"};async function Je(){return await ee("local_guide_call_config",1)}async function Me(u){return await te("local_guide_call_config",1,{...u,updated_at:new Date().toISOString()})}async function We(u){const{TableEngineRequest:d}=await Be(()=>import("./buildSupabaseQuery-cbaa4453.js"),["assets/buildSupabaseQuery-cbaa4453.js","assets/index-f44a958f.js","assets/index-f80d3475.css"]),x={...u};!x.sort&&!x.order&&(x.order="-created_at");const w=await d(x,"local_guide_call_submissions");try{if(Array.isArray(w==null?void 0:w.rows)){const A=x.page||1,I=x.limit||20,J=(A-1)*I,D=w.rows.map((y,P)=>({...y,photo_urls:Array.isArray(y.photo_urls)?y.photo_urls:[],tags:Array.isArray(y.tags)?y.tags:[],answers:y.answers&&typeof y.answers=="object"?y.answers:{},status_label:y.status==="submitted"?"ارسال‌شده":"پیش‌نویس",review_status_label:j[y.review_status]||y.review_status,index:J+P}));return{...w,rows:D}}}catch(A){console.error("[getLocalGuideCallSubmissionsTable]",A)}return w}async function Ye(u,d){return await te("local_guide_call_submissions",u,{...d,updated_at:new Date().toISOString()})}async function He(u){const d=await ee("local_guide_call_submissions",u);return{...d,photo_urls:Array.isArray(d==null?void 0:d.photo_urls)?d.photo_urls:[],tags:Array.isArray(d==null?void 0:d.tags)?d.tags:[],answers:d!=null&&d.answers&&typeof d.answers=="object"?d.answers:{}}}const Xe=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:u=>u.record.index+1},{title:"نام",dataIndex:"full_name",key:"full_name"},{title:"موبایل",dataIndex:"phone",key:"phone"},{title:"استان",dataIndex:"province",key:"province"},{title:"شهر",dataIndex:"city",key:"city",filterable:!1},{title:"وضعیت",dataIndex:"status",key:"status",width:110,customRender:u=>u.record.st