/
home
/
maktab
/
pwa
/
assets
/
File Upload :
llllll
Current File: //home/maktab/pwa/assets/tempSms-D50Rjoxf.js
import{_ as z}from"./danger-Cx2UsI8P.js";import{_ as $}from"./NavBar.vue_vue_type_script_setup_true_lang-CfRC2K8f.js";import{r as a,m as T,f as p,c as r,b as e,e as t,w as o,h as f,q as M,F as y,t as N,I as i,z as k,g as V,o as d}from"./index-YpH5r7J3.js";import{c as B,h as I}from"./service-DlBgRbIP.js";import"./date-dXvzWSEE.js";import"./jalaliday.esm-_IxfRfMT.js";const L={class:"fixed top-0 w-full pb-2 z-20 max-w-3xl bg-white"},U={class:"mt-20"},q={key:0},A={class:"flex flex-row justify-center gap-2 p-4 mx-4 mt-2 border-gray-300 border rounded-lg"},D={class:"flex flex-row justify-center gap-2 p-4 mx-4 mt-2 border-gray-300 border rounded-lg"},E={class:"flex flex-row justify-center gap-2 p-4 mx-4 mt-2 border-gray-300 border rounded-lg"},F={class:"flex flex-col justify-center p-4 mx-4 mt-2 border-gray-300 border rounded-lg"},O={class:"flex flex-row justify-between pb-4"},G={key:0,class:"rounded-sm text-blue-600 bg-blue-100 px-1"},H={key:1,class:"text-gray-600 rounded-sm bg-gray-100 px-1"},J=["onClick"],K={class:"flex flex-row justify-between"},P=["onClick"],Q=e("div",{class:"text-sm text-gray-500"},"جزئیات",-1),R={class:"flex flex-col gap-4"},W={class:"flex items-center gap-4"},X=e("div",null,"ویرایش",-1),Y={class:"flex items-center gap-4"},Z=e("div",null,"حذف",-1),ee={class:"flex items-center flex-row-reverse justify-end gap-2"},se=e("span",null,[e("img",{src:z})],-1),te=e("p",null,"آیااز حذف این پیام اطمینان دارید؟",-1),ce={__name:"tempSms",setup(le){const x=a(!1),m=a(0),_=a(""),u=a(!1),v=a(!1),g=a(!1),C=async()=>{await I(m.value),V.push({name:"tempSms"})},b=a();return T(async()=>{try{x.value=!0;let{data:c}=await B();b.value=c}catch(c){console.log(c)}finally{x.value=!1}}),(c,l)=>{const n=p("ASkeleton"),S=p("a-divider"),w=p("a-button"),h=p("a-drawer"),j=p("a-modal");return d(),r(y,null,[e("div",L,[t($,{dir:"rtl"},{Title:o(()=>[f(" پیام های پیشفرض ")]),IconLeft:o(()=>[]),_:1})]),e("div",U,[x.value?(d(),r("div",q,[e("div",A,[t(n,{active:"",paragraph:{rows:1,width:"150px"}}),t(n,{active:"",dir:"ltr",paragraph:{rows:2,width:"50"}})]),e("div",D,[t(n,{active:"",paragraph:{rows:1,width:150}}),t(n,{active:"",dir:"ltr",paragraph:{rows:2,width:"50"}})]),e("div",E,[t(n,{active:"",paragraph:{rows:1,width:"150"}}),t(n,{active:"",dir:"ltr",paragraph:{rows:2,width:"50"}})])])):M("",!0),(d(!0),r(y,null,N(b.value,(s,oe)=>(d(),r("div",F,[e("div",O,[(s==null?void 0:s.status_template)==2?(d(),r("div",G," پیام مدیریتی ")):(d(),r("div",H," پیام شخصی ")),e("div",{class:"text-gray-500 rotate-90",onClick:ae=>{g.value=!0,m.value=s.id,_.value=s.message}},[t(i,{icon:"vuesax-linear:more",size:"20"})],8,J)]),e("div",K,[e("div",null,k(s==null?void 0:s.message),1)]),t(S),e("div",{class:"flex justify-end items-center",onClick:()=>{_.value=s.message,v.value=!0}},[Q,e("div",null,[t(i,{icon:"vuesax-linear:arrow-left",size:"10"})])],8,P)]))),256))]),t(h,{"header-style":"text-align: center ",closable:!1,width:250,title:"پیش نمایش پیام",placement:"bottom",visible:v.value,"onUpdate:visible":l[1]||(l[1]=s=>v.value=s),onClose:l[2]||(l[2]=s=>v.value=!1)},{footer:o(()=>[t(w,{class:"w-full",size:"large",onClick:l[0]||(l[0]=s=>v.value=!1)},{default:o(()=>[f(" تایید ")]),_:1})]),default:o(()=>[e("div",null,k(_.value),1)]),_:1},8,["visible"]),t(h,{"header-style":"text-align: center ",closable:!1,height:"150",placement:"bottom",visible:g.value,"onUpdate:visible":l[5]||(l[5]=s=>g.value=s),onClose:l[6]||(l[6]=s=>m.value=null)},{default:o(()=>[e("div",R,[e("div",{class:"flex justify-between items-center",onClick:l[3]||(l[3]=s=>c.$router.push({name:"tempSmsEdit",params:{id:m.value},query:{msg:_.value}}))},[e("div",W,[e("div",null,[t(i,{color:"",icon:"vuesax-linear:edit",size:"15"})]),X]),e("div",null,[t(i,{icon:"vuesax-linear:arrow-left",size:"15"})])]),e("div",{class:"flex justify-between items-center",onClick:l[4]||(l[4]=()=>{u.value=!0})},[e("div",Y,[e("div",null,[t(i,{color:"red",icon:"vuesax-linear:trash",size:"15"})]),Z]),e("div",null,[t(i,{icon:"vuesax-linear:arrow-left",size:"15"})])])])]),_:1},8,["visible"]),t(j,{visible:u.value,"onUpdate:visible":l[8]||(l[8]=s=>u.value=s),centered:"",onOk:l[9]||(l[9]=s=>u.value=!1),closable:!1},{title:o(()=>[e("div",ee,[e("span",null,[t(i,{icon:"vuesax-linear:danger"}),f("حذف پیام پیش فرض")]),se])]),footer:o(()=>[t(w,{onClick:l[7]||(l[7]=s=>u.value=!1)},{default:o(()=>[f("انصراف")]),_:1}),t(w,{type:"primary",onClick:C},{default:o(()=>[f("حذف")]),_:1})]),default:o(()=>[te]),_:1},8,["visible"])],64)}}};export{ce as default};
Copyright ©2k19 -
Hexid
|
Tex7ure