build 23.11 lang fx2
This commit is contained in:
parent
da5eb85e19
commit
fa971196f4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{y as k,q as N,K as S,J as c,N as V,D as M,ad as O,r as I,e as n,f as e,t as r,g as U,w as T,c as l,M as C,l as i,O as h,P as x,h as s,n as _,F as g,i as v,j as u,E as Q,L as q,k as F}from"./index.b5f1eb06.js";import{c as f,r as $,e as B,i as R,m as P,u as J}from"./index.esm.4ebf7a0e.js";const j={class:"intro-y flex items-center mt-8"},z={class:"text-lg font-medium mr-auto"},G={class:"grid grid-cols-12 gap-6 mt-5"},H={class:"intro-y col-span-12 lg:col-span-6"},K={class:"flex flex-col sm:flex-row items-center p-5 border-b border-slate-200/60 dark:border-darkmode-400"},W={class:"font-medium text-base mr-auto"},X={class:"p-5"},Y=["onSubmit"],Z={class:"input-form"},ee={for:"validation-form-6",class:"form-label w-full flex flex-col sm:flex-row"},te={class:"sm:ml-auto mt-1 sm:mt-0 text-xs text-slate-500"},se=e("span",{class:"text-red-600"},"*",-1),oe=["placeholder"],ae={class:"input-form mt-3"},re={for:"validation-form-2",class:"form-label w-full flex flex-col sm:flex-row"},le={class:"sm:ml-auto mt-1 sm:mt-0 text-xs text-slate-500"},ne=e("span",{class:"text-red-600"},"*",-1),ie=["placeholder"],de={class:"input-form mt-3"},me={for:"validation-form-4",class:"form-label w-full flex flex-col sm:flex-row"},ce={class:"sm:ml-auto mt-1 sm:mt-0 text-xs text-slate-500"},ue=e("span",{class:"text-red-600"},"*",-1),fe={class:"input-form mt-3"},pe={for:"validation-form-4",class:"form-label w-full flex flex-col sm:flex-row"},he={class:"sm:ml-auto mt-1 sm:mt-0 text-xs text-slate-500"},xe=e("span",{class:"text-red-600"},"*",-1),_e={type:"submit",class:"btn btn-primary mt-5"},be={__name:"Contacts",setup(ge){const w="https://panel.exchange.gov.tm/api",E=k(),p=N(!1),b=S({address:"",email:"",phone:"",fax:""}),y={email:{required:f.withMessage(c.global.t("REQUIRED_VALIDATION"),$),email:f.withMessage(c.global.t("EMAIL_VALIDATION"),B)},phone:{required:f.withMessage(c.global.t("REQUIRED_VALIDATION"),$),integer:R},fax:{required:f.withMessage(c.global.t("REQUIRED_VALIDATION"),$),integer:R},address:{required:f.withMessage(c.global.t("REQUIRED_VALIDATION"),$),minLength:P(10)}},t=J(y,V(b)),D=async()=>{if(t.value.$touch(),!t.value.$invalid)try{p.value=!0;const o=await q.put(`${w}/account/contacts`,b);p.value=!1,F.push({name:"profile",params:{loadFromLS:!0}})}catch{p.value=!1}};return M(()=>{const o=O.isEmpty(E.params)?JSON.parse(localStorage.getItem("contacts")):E.params;o&&(localStorage.setItem("contacts",JSON.stringify(o)),Object.assign(b,o))}),(o,d)=>{const A=I("LoadingIcon"),L=I("PreviewComponent");return l(),n("div",null,[e("div",j,[e("h2",z,r(o.$t("CONTACTS")),1)]),e("div",G,[e("div",H,[U(L,{class:"intro-y box"},{default:T(()=>[e("div",K,[e("h2",W,r(o.$t("CONTACTS_FORM")),1)]),e("div",X,[e("form",{class:"validate-form",onSubmit:C(D,["prevent"])},[e("div",Z,[e("label",ee,[i(r(o.$t("ADDRESS"))+" ",1),e("span",te,[se,i(" "+r(o.$t("REQUIRED")),1)])]),h(e("textarea",{id:"validation-form-6","onUpdate:modelValue":d[0]||(d[0]=a=>s(t).address.$model=a),class:_(["form-control",{"border-danger":s(t).address.$error}]),name:"address",placeholder:o.$t("ADDRESS")},null,10,oe),[[x,s(t).address.$model,void 0,{trim:!0}]]),s(t).address.$error?(l(!0),n(g,{key:0},v(s(t).address.$errors,(a,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)]),e("div",ae,[e("label",re,[i(r(o.$t("EMAIL"))+" ",1),e("span",le,[ne,i(" "+r(o.$t("REQUIRED")),1)])]),h(e("input",{id:"validation-form-2","onUpdate:modelValue":d[1]||(d[1]=a=>s(t).email.$model=a),type:"email",name:"email",class:_(["form-control",{"border-danger":s(t).email.$error}]),placeholder:o.$t("EMAIL")},null,10,ie),[[x,s(t).email.$model,void 0,{trim:!0}]]),s(t).email.$error?(l(!0),n(g,{key:0},v(s(t).email.$errors,(a,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)]),e("div",de,[e("label",me,[i(r(o.$t("PHONE"))+" ",1),e("span",ce,[ue,i(" "+r(o.$t("REQUIRED")),1)])]),h(e("input",{id:"validation-form-4","onUpdate:modelValue":d[2]||(d[2]=a=>s(t).phone.$model=a),type:"number",name:"phone",class:_(["form-control",{"border-danger":s(t).phone.$error}]),placeholder:"9936xxxxxxx"},null,2),[[x,s(t).phone.$model,void 0,{trim:!0}]]),s(t).phone.$error?(l(!0),n(g,{key:0},v(s(t).phone.$errors,(a,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)]),e("div",fe,[e("label",pe,[i(r(o.$t("FAX"))+" ",1),e("span",he,[xe,i(" "+r(o.$t("REQUIRED")),1)])]),h(e("input",{id:"validation-form-4","onUpdate:modelValue":d[3]||(d[3]=a=>s(t).fax.$model=a),type:"number",name:"fax",class:_(["form-control",{"border-danger":s(t).fax.$error}]),placeholder:"99312xxxxxx"},null,2),[[x,s(t).fax.$model,void 0,{trim:!0}]]),s(t).fax.$error?(l(!0),n(g,{key:0},v(s(t).fax.$errors,(a,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)]),e("button",_e,[i(r(o.$t("REGISTER"))+" ",1),p.value?(l(),Q(A,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):u("",!0)])],40,Y)])]),_:1})])])])}}};export{be as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{ab as N,u as S,s as V,q as D,K as L,J as p,N as M,b as R,r as y,e as n,f as e,t as a,g as A,w as K,F as c,c as l,M as O,O as v,P as E,h as o,n as T,i as _,j as m,ac as U,l as q,E as B}from"./index.b5f1eb06.js";import{c as h,r as b,u as P}from"./index.esm.4ebf7a0e.js";const F={class:"intro-y flex items-center mt-8"},Q={class:"text-lg font-medium mr-auto"},Y={class:"grid grid-cols-12 gap-6 mt-5"},j={class:"intro-y col-span-12 lg:col-span-6"},z={class:"flex flex-col sm:flex-row items-center p-5 border-b border-slate-200/60 dark:border-darkmode-400"},G={class:"font-medium text-base mr-auto"},J={class:"p-5"},W=["onSubmit"],H={class:"input-form"},X={class:"form-label w-full flex flex-col sm:flex-row"},Z=["placeholder"],ee={class:"input-form mt-3"},te={class:"form-label w-full flex flex-col sm:flex-row"},oe=e("option",{value:"",disabled:""},"Select the category",-1),se=["value"],re={class:"input-form mt-3"},ae={class:"form-label w-full flex flex-col sm:flex-row"},le=["placeholder"],ne=["disabled"],me={__name:"CreateTicket",setup(ie){const $=N(),I=S(),{categories:f}=V($),u=D(!1),g=L({title:"",content:"",category_id:""}),w={title:{required:h.withMessage(p.global.t("REQUIRED_VALIDATION"),b)},content:{required:h.withMessage(p.global.t("REQUIRED_VALIDATION"),b)},category_id:{required:h.withMessage(p.global.t("REQUIRED_VALIDATION"),b)}},t=P(w,M(g)),x=async()=>{t.value.$touch(),t.value.$invalid||(u.value=!0,I.createTicket(g),u.value=!1)};return R(async()=>{await $.getAll();const r=f.value.find(i=>i.code==="TM");r!==void 0&&(g.country=r.id)}),(r,i)=>{const k=y("LoadingIcon"),C=y("PreviewComponent");return l(),n(c,null,[e("div",F,[e("h2",Q,a(r.$t("TICKET_LIST")),1)]),e("div",Y,[e("div",j,[A(C,{class:"intro-y box"},{default:K(()=>[e("div",z,[e("h2",G,a(r.$t("NEW_TICKET_FORM")),1)]),e("div",J,[e("form",{class:"validate-form",onSubmit:O(x,["prevent"])},[e("div",H,[e("label",X,a(r.$t("TICKET_TITLE")),1),v(e("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=s=>o(t).title.$model=s),class:T(["form-control",{"border-danger":o(t).title.$error}]),name:"title",placeholder:r.$t("TYPE_TICKET_TITLE")},null,10,Z),[[E,o(t).title.$model,void 0,{trim:!0}]]),o(t).title.$error?(l(!0),n(c,{key:0},_(o(t).title.$errors,(s,d)=>(l(),n("div",{key:d,class:"text-danger mt-2"},a(s.$message),1))),128)):m("",!0)]),e("div",ee,[e("label",te,a(r.$t("TICKET_CATEGORIES")),1),v(e("select",{class:T(["form-select px-4 block sm:mr-2",{"border-danger":o(t).category_id.$error}]),"aria-label":"Default select example","onUpdate:modelValue":i[1]||(i[1]=s=>o(t).category_id.$model=s),name:"category"},[oe,o(f).length?(l(!0),n(c,{key:0},_(o(f),s=>(l(),n("option",{key:s.id,value:s.id},a(s.name),9,se))),128)):m("",!0)],2),[[U,o(t).category_id.$model]]),o(t).category_id.$error?(l(!0),n(c,{key:0},_(o(t).category_id.$errors,(s,d)=>(l(),n("div",{key:d,class:"text-danger mt-2"},a(s.$message),1))),128)):m("",!0)]),e("div",re,[e("label",ae,a(r.$t("TICKET_CONTENT")),1),v(e("textarea",{"onUpdate:modelValue":i[2]||(i[2]=s=>o(t).content.$model=s),class:T(["form-control",{"border-danger":o(t).content.$error}]),name:"content",placeholder:r.$t("TYPE_TICKET_CONTENT"),rows:"5"},null,10,le),[[E,o(t).content.$model,void 0,{trim:!0}]]),o(t).content.$error?(l(!0),n(c,{key:0},_(o(t).content.$errors,(s,d)=>(l(),n("div",{key:d,class:"text-danger mt-2"},a(s.$message),1))),128)):m("",!0)]),e("button",{type:"submit",class:"btn btn-primary mt-5",disabled:u.value},[q(a(r.$t("SAVE"))+" ",1),u.value?(l(),B(k,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):m("",!0)],8,ne)],40,W)])]),_:1})])])],64)}}};export{me as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{q as w,K as I,N as L,D as N,v as C,r as E,e as r,f as e,g as V,t as l,O as p,P as x,h as o,n as _,F as h,i as v,j as u,M as g,l as M,E as S,a as B,k as O,c as n}from"./index.b5f1eb06.js";import{_ as T}from"./Main.03ca701c.js";import{u as A,r as k,e as D,m as F,a as G,n as U}from"./index.esm.4ebf7a0e.js";import"./Main.4fb4243e.js";const q={class:"container"},K={class:"block xl:grid grid-cols-2 gap-4"},P={class:"h-screen xl:h-auto flex py-5 xl:py-0 my-10 xl:my-0"},R={class:"my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto"},j={class:"intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left"},z={class:"intro-x mt-2 text-slate-400 dark:text-slate-400 xl:hidden text-center"},Y={class:"intro-x mt-8"},H=["placeholder"],J={class:"relative"},Q=["placeholder"],W={class:"intro-x mt-5 xl:mt-8 text-center xl:text-left"},X=["onClick","disabled"],Z=["onClick"],le={__name:"EmailVerify",setup(ee){const i=w(!1),m=I({email:"",token:""}),f={email:{required:k,email:D},token:{required:k,minLength:F(5),maxLength:G(5),numeric:U}},t=A(f,L(m)),y=async()=>{const s=B();t.value.$touch(),t.value.$invalid||(i.value=!0,await s.verifyEmail(m.email,m.token),i.value=!1)},$=()=>O.push({path:"/login"});return N(()=>{C("body").removeClass("main").removeClass("error-page").addClass("login")}),(s,d)=>{const b=E("LoadingIcon");return n(),r("div",null,[e("div",q,[e("div",K,[V(T),e("div",P,[e("div",R,[e("h2",j,l(s.$t("VERIFY_EMAIL")),1),e("div",z,l(s.$t("SING_IN_MOTIVATION_MOBILE")),1),e("div",Y,[p(e("input",{type:"text","onUpdate:modelValue":d[0]||(d[0]=a=>o(t).email.$model=a),class:_(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":o(t).email.$error}]),placeholder:s.$t("EMAIL")},null,10,H),[[x,o(t).email.$model,void 0,{trim:!0}]]),o(t).email.$error?(n(!0),r(h,{key:0},v(o(t).email.$errors,(a,c)=>(n(),r("div",{key:c,class:"text-danger mt-2"},l(a.$message),1))),128)):u("",!0),e("div",J,[p(e("input",{type:"text","onUpdate:modelValue":d[1]||(d[1]=a=>o(t).token.$model=a),class:_(["login__input form-control py-3 px-4 block mt-4",{"border-danger":o(t).token.$error}]),placeholder:s.$t("TOKEN"),name:"token"},null,10,Q),[[x,o(t).token.$model,void 0,{trim:!0}]])]),o(t).token.$error?(n(!0),r(h,{key:1},v(o(t).token.$errors,(a,c)=>(n(),r("div",{key:c,class:"text-danger mt-2"},l(a.$message),1))),128)):u("",!0)]),e("div",W,[e("button",{class:"btn btn-primary py-3 px-4 xl:mr-3 align-top w-full xl:w-auto custom-btns",onClick:g(y,["prevent"]),disabled:i.value},[M(l(s.$t("SIGN_UP"))+" ",1),i.value?(n(),S(b,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):u("",!0)],8,X),e("button",{class:"btn btn-outline-secondary py-3 px-4 mt-3 xl:mt-0 align-top w-full xl:w-auto custom-btns",onClick:g($,["prevent"])},l(s.$t("SIGN_IN")),9,Z)])])])])])])}}};export{le as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{L as o}from"./Main.4fb4243e.js";import{c as i,e as a,f as t,g as n,t as s}from"./index.b5f1eb06.js";var _="/assets/illustration.73ed9678.svg";const l={class:"hidden xl:flex flex-col min-h-screen"},c={href:"",class:"-intro-x flex items-center pt-5"},r={class:"text-white text-lg ml-3 w-[50%]"},d={class:"my-auto"},m=t("img",{alt:"Midone Tailwind HTML Admin Template",class:"-intro-x w-1/2 -mt-16",src:_},null,-1),x={class:"-intro-x text-white font-medium text-4xl leading-tight mt-10 w-[80%]"},h={class:"-intro-x mt-5 text-lg text-white text-opacity-70 dark:text-slate-400 w-[70%]"},E={__name:"Main",setup(p){return(e,T)=>(i(),a("div",l,[t("a",c,[n(o),t("span",r,s(e.$t("APP_TITLE")),1)]),t("div",d,[m,t("div",x,s(e.$t("UNDER_APP_TITLE_DESC_ONE")),1),t("div",h,s(e.$t("UNDER_APP_TITLE_DESC_TWO")),1)])]))}};export{E as _};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as t,c as a,e as o,I as i}from"./index.b5f1eb06.js";const l={},e={class:"header_img"},n=i('<svg id="Group_14" data-name="Group 14" xmlns="http://www.w3.org/2000/svg" width="100" height="100.001" viewBox="0 0 100 100.001"><path id="logo_left" data-name="Path 2130" d="M12613.869,7717.147l20.387-20.38v-9.209h9.2l3.371-3.372-16.276-16.277h-15.936v20.717l-14.645,14.635Z" transform="translate(-12599.973 -7653.263)" fill="#003197" fill-rule="evenodd"></path><path id="logo_top" data-name="Path 2131" d="M14257.869,7055.751l16.273-16.274v-15.936h-20.728l-14.622-14.645-13.891,13.886,20.389,20.4h9.215v9.209Z" transform="translate(-14188.795 -7008.896)" fill="#aba17d" fill-rule="evenodd"></path><path id="logo_bottom" data-name="Path 2132" d="M13308.307,9433.256l-20.394-20.391h-9.2v-9.215l-3.371-3.357-16.274,16.274V9432.5h20.706l14.647,14.644Z" transform="translate(-13244.428 -9347.147)" fill="#0056ff" fill-rule="evenodd"></path><path id="logo_right" data-name="Path 2133" d="M15007.646,8683.345h15.934v-20.727l14.643-14.622-13.891-13.883-20.393,20.382v9.213h-9.207l-3.361,3.371Z" transform="translate(-14938.223 -8597.992)" fill="#003197" fill-rule="evenodd"></path></svg>',1),d=[n];function r(f,s,h,_,p,g){return a(),o("div",e,d)}var c=t(l,[["render",r]]);export{c as L};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{q as f,b as w,S as r,r as t,c as d,E as h,w as s,g as l,f as o,e as v,i as D,t as C,n as b,F as x,J as L}from"./index.b5f1eb06.js";const T=["src"],k=["onClick"],E={class:"w-5 h-5 flex-none image-fit mr-1"},B=["src"],M={class:"ml-2 overflow-hidden"},S={class:"flex items-center"},N={href:"javascript:;",class:"font-medium truncate mr-5"},F={__name:"Main",setup(A){const n=f(""),i=[{code:"tm",label:"T\xFCrkmen dili"},{code:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{code:"en",label:"English"}],_=e=>{n.value=e,L.global.locale=e,localStorage.setItem(r,e)};return w(()=>{const e=localStorage.getItem(r);console.log("LANG: "+e),e?n.value=e:n.value="tm"}),(e,I)=>{const m=t("DropdownToggle"),g=t("DropdownContent"),u=t("DropdownMenu"),p=t("Dropdown");return d(),h(p,{class:"intro-x w-8"},{default:s(()=>[l(m,{tag:"div",role:"button",class:"w-6 h-6 rounded-full overflow-hidden shadow-lg image-fit zoom-in scale-110"},{default:s(()=>[o("img",{alt:"flag",src:`/flags/${n.value}.png`},null,8,T)]),_:1}),l(u,{class:"pt-2"},{default:s(()=>[l(g,{tag:"div"},{default:s(()=>[(d(),v(x,null,D(i,(a,c)=>o("div",{key:c,class:b(["cursor-pointer relative flex items-center",{"mt-5":c}]),onClick:$=>_(a.code)},[o("div",E,[o("img",{alt:"Icewall Tailwind HTML Admin Template",class:"rounded-full",src:`/flags/${a.code}.png`},null,8,B)]),o("div",M,[o("div",S,[o("a",N,C(a.label),1)])])],10,k)),64))]),_:1})]),_:1})]),_:1})}}};export{F as _};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{a as V,s as D,q as O,K as U,J as p,N as P,r as b,e as d,f as e,t as r,g as I,h as s,j as u,O as h,P as v,n as w,F as g,i as E,M as q,l as C,E as F,c as n}from"./index.b5f1eb06.js";import{c as _,r as N,m as $,u as B}from"./index.esm.4ebf7a0e.js";const G={class:"intro-y flex items-center mt-8"},H={class:"text-lg font-medium mr-auto"},j={class:"grid grid-cols-12 gap-6"},Q={class:"col-span-12 lg:col-span-4 2xl:col-span-3 flex lg:block flex-col-reverse"},W={class:"intro-y box mt-5"},z={class:"relative flex items-center p-5"},J={class:"w-12 h-12"},K={class:"ml-4 mr-auto"},X={key:0,class:"font-medium text-base"},Y={class:"col-span-12 lg:col-span-8 2xl:col-span-9"},Z={class:"intro-y box mt-5"},ee={class:"flex items-center p-5 border-b border-slate-200/60 dark:border-darkmode-400"},se={class:"font-medium text-base mr-auto"},te={class:"p-5"},oe={class:"grid grid-cols-12 gap-x-5"},ae={class:"col-span-12 xl:col-span-6"},re={for:"update-profile-form-1",class:"form-label"},le=["placeholder"],ne={class:"mt-3"},ie={for:"update-profile-form-2",class:"form-label"},de=["placeholder"],ce={class:"col-span-12 xl:col-span-6"},me={for:"update-profile-form-3",class:"form-label"},pe=["placeholder"],ue={class:"mt-3 xl:mt-3"},_e={for:"update-profile-form-4",class:"form-label"},fe={class:"relative"},he=["placeholder"],ve={class:"flex justify-end mt-4"},ge=["onClick","disabled"],$e={__name:"Main",setup(be){const y=V(),{user:c}=D(y);console.log("user state: ",c.value);const f=O(!1),i=U({firstname:c.value.firstname,lastname:c.value.lastname,email:c.value.email,password:""}),A={firstname:{required:_.withMessage(p.global.t("REQUIRED_VALIDATION"),N),minLength:_.withMessage(p.global.t("MIN_LENGTH_VALIDATION",{min:2}),$(2))},lastname:{required:_.withMessage(p.global.t("REQUIRED_VALIDATION"),N),minLength:_.withMessage(p.global.t("MIN_LENGTH_VALIDATION",{min:2}),$(2))},password:{minLength:_.withMessage(p.global.t("MIN_LENGTH_VALIDATION",{min:8}),$(8))}},t=B(A,P(i)),L=()=>{document.querySelector("input[name='password']").type="text"},x=()=>{document.querySelector("input[name='password']").type="password"},M=()=>i.password==="",T=async()=>{if(t.value.$touch(),!t.value.$invalid){let o={firstname:i.firstname,lastname:i.lastname},l=M()?{}:{password:i.password};f.value=!0,await y.updateClient({...o,...l}),f.value=!1,i.password=""}};return(o,l)=>{const k=b("UserIcon"),R=b("EyeIcon"),S=b("LoadingIcon");return n(),d(g,null,[e("div",G,[e("h2",H,r(o.$t("UPDATE_PROFILE")),1)]),e("div",j,[e("div",Q,[e("div",W,[e("div",z,[e("div",J,[I(k,{class:"text-dark w-12 h-12"})]),e("div",K,[s(c)?(n(),d("div",X,r(s(c).firstname)+" "+r(s(c).lastname),1)):u("",!0)])])])]),e("div",Y,[e("div",Z,[e("div",ee,[e("h2",se,r(o.$t("PERSONAL_INFO")),1)]),e("div",te,[e("div",oe,[e("div",ae,[e("div",null,[e("label",re,r(o.$t("FIRSTNAME")),1),h(e("input",{id:"update-profile-form-1",type:"text","onUpdate:modelValue":l[0]||(l[0]=a=>s(t).firstname.$model=a),class:w([{"border-danger":s(t).firstname.$error},"form-control"]),placeholder:o.$t("ENTER_FIRSTNAME")},null,10,le),[[v,s(t).firstname.$model,void 0,{trim:!0}]]),s(t).firstname.$error?(n(!0),d(g,{key:0},E(s(t).firstname.$errors,(a,m)=>(n(),d("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)]),e("div",ne,[e("label",ie,r(o.$t("LASTNAME")),1),h(e("input",{id:"update-profile-form-2",type:"text","onUpdate:modelValue":l[1]||(l[1]=a=>s(t).lastname.$model=a),class:w([{"border-danger":s(t).lastname.$error},"form-control"]),placeholder:o.$t("ENTER_LASTNAME")},null,10,de),[[v,s(t).lastname.$model,void 0,{trim:!0}]]),s(t).lastname.$error?(n(!0),d(g,{key:0},E(s(t).lastname.$errors,(a,m)=>(n(),d("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)])]),e("div",ce,[e("div",null,[e("label",me,r(o.$t("EMAIL")),1),h(e("input",{id:"update-profile-form-3",type:"text","onUpdate:modelValue":l[2]||(l[2]=a=>i.email=a),class:"form-control",placeholder:o.$t("ENTER_EMAIL"),disabled:""},null,8,pe),[[v,i.email,void 0,{trim:!0}]])]),e("div",ue,[e("label",_e,r(o.$t("PASSWORD")),1),e("div",fe,[h(e("input",{id:"update-profile-form-4",type:"password","onUpdate:modelValue":l[3]||(l[3]=a=>s(t).password.$model=a),class:w([{"border-danger":s(t).password.$error},"form-control"]),name:"password",placeholder:o.$t("ENTER_PASSWORD")},null,10,he),[[v,s(t).password.$model,void 0,{trim:!0}]]),I(R,{class:"block mx-auto absolute top-1/2 transform -translate-y-1/2 right-3 text-slate-400 cursor-pointer",onMousedown:L,onMouseup:x})]),s(t).password.$error?(n(!0),d(g,{key:0},E(s(t).password.$errors,(a,m)=>(n(),d("div",{key:m,class:"text-danger mt-2"},r(a.$message),1))),128)):u("",!0)])])]),e("div",ve,[e("button",{type:"button",class:"btn btn-primary w-20 mr-auto",onClick:q(T,["prevent"]),disabled:f.value},[C(r(o.$t("SAVE"))+" ",1),f.value?(n(),F(S,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):u("",!0)],8,ge)])])])])])],64)}}};export{$e as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{K as E,q as M,J as i,N as T,D as V,v as O,r as U,e as n,f as o,g as y,t as p,O as g,P as _,h as t,n as h,F as x,i as w,j as c,M as b,l as R,E as C,k,ah as S,L as P,c as l}from"./index.b5f1eb06.js";import{c as d,r as f,e as q,m as v,u as W}from"./index.esm.4ebf7a0e.js";import{L as B}from"./Main.4fb4243e.js";import{_ as G}from"./Main.03ca701c.js";const Q={class:"container sm:px-10"},H={class:"block xl:grid grid-cols-2 gap-4"},F={class:"h-screen xl:h-auto md:flex py-5 xl:py-0 my-10 xl:my-0"},K={class:"md:hidden mb-6"},j=o("div",{class:"text-center text-white text-lg ml-3"}," T\xFCrkmenistany\u0148 D\xF6wlet haryt-\xE7ig mal bir\u017Easy ",-1),z={class:"my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto"},J={class:"intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left"},Y={class:"intro-x mt-8"},X=["placeholder"],Z=["placeholder"],ee=["placeholder"],te=["placeholder"],oe={class:"intro-x mt-5 xl:mt-8 text-center xl:text-left"},se=["onClick"],re=["onClick"],me={__name:"Main",setup(ae){const I="https://panel.exchange.gov.tm/api",$=E({email:"",token:"",password:"",confirm_password:""}),u=M(!1),L={email:{required:d.withMessage(i.global.t("REQUIRED_VALIDATION"),f),email:d.withMessage(i.global.t("EMAIL_VALIDATION"),q)},password:{required:d.withMessage(i.global.t("REQUIRED_VALIDATION"),f),minLength:d.withMessage(i.global.t("MIN_LENGTH_VALIDATION",{min:8}),v(8))},confirm_password:{required:d.withMessage(i.global.t("REQUIRED_VALIDATION"),f),minLength:d.withMessage(i.global.t("MIN_LENGTH_VALIDATION",{min:8}),v(8))},token:{required:d.withMessage(i.global.t("REQUIRED_VALIDATION"),f),minLength:d.withMessage(i.global.t("MIN_LENGTH_VALIDATION",{min:4}),v(4))}},e=W(L,T($)),A=()=>k.push({path:"/"}),N=async()=>{if(e.value.$touch(),!e.value.$invalid)try{const r=S();u.value=!0;const a=await P.post(`${I}/reset-password`,{formData:$});u.value=!1,r.success(a.message),k.push({path:"/"})}catch{u.value=!1}};return V(()=>{O("body").removeClass("main").removeClass("error-page").addClass("login")}),(r,a)=>{const D=U("LoadingIcon");return l(),n("div",null,[o("div",Q,[o("div",H,[y(G),o("div",F,[o("div",K,[o("a",null,[y(B,{class:"mx-auto mb-2"}),j])]),o("div",z,[o("h2",J,p(r.$t("UPDATE_PWD")),1),o("div",Y,[g(o("input",{type:"text","onUpdate:modelValue":a[0]||(a[0]=s=>t(e).email.$model=s),class:h(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":t(e).email.$error}]),placeholder:r.$t("EMAIL")},null,10,X),[[_,t(e).email.$model,void 0,{trim:!0}]]),t(e).email.$error?(l(!0),n(x,{key:0},w(t(e).email.$errors,(s,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},p(s.$message),1))),128)):c("",!0),g(o("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=s=>t(e).token.$model=s),class:h(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":t(e).token.$error}]),placeholder:r.$t("TYPE_TOKEN")},null,10,Z),[[_,t(e).token.$model,void 0,{trim:!0}]]),t(e).token.$error?(l(!0),n(x,{key:1},w(t(e).token.$errors,(s,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},p(s.$message),1))),128)):c("",!0),g(o("input",{type:"password","onUpdate:modelValue":a[2]||(a[2]=s=>t(e).password.$model=s),class:h(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":t(e).password.$error}]),placeholder:r.$t("PASSWORD")},null,10,ee),[[_,t(e).password.$model,void 0,{trim:!0}]]),t(e).password.$error?(l(!0),n(x,{key:2},w(t(e).password.$errors,(s,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},p(s.$message),1))),128)):c("",!0),g(o("input",{type:"password","onUpdate:modelValue":a[3]||(a[3]=s=>t(e).confirm_password.$model=s),class:h(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":t(e).confirm_password.$error}]),placeholder:r.$t("NEW_PASSWORD")},null,10,te),[[_,t(e).confirm_password.$model,void 0,{trim:!0}]]),t(e).confirm_password.$error?(l(!0),n(x,{key:3},w(t(e).confirm_password.$errors,(s,m)=>(l(),n("div",{key:m,class:"text-danger mt-2"},p(s.$message),1))),128)):c("",!0)]),o("div",oe,[o("button",{class:"btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top",onClick:b(N,["prevent"])},[R(p(r.$t("UPDATE"))+" ",1),u.value?(l(),C(D,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):c("",!0)],8,se),o("button",{class:"btn btn-outline-secondary py-3 px-4 w-full xl:w-32 mt-3 xl:mt-0 align-top",onClick:b(A,["prevent"])},p(r.$t("SIGN_IN")),9,re)])])])])])])}}};export{me as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as D,K as S,q as f,J as u,N as V,D as C,v as R,r as P,e as n,f as e,g as h,t as a,O as w,P as y,h as o,n as b,F as I,i as $,j as p,af as G,l as k,E as L,M as N,a as M,k as B,c as l}from"./index.b5f1eb06.js";import{c as _,r as A,e as F,m as q,u as K}from"./index.esm.4ebf7a0e.js";import{L as U}from"./Main.4fb4243e.js";import{_ as j}from"./Main.03ca701c.js";import{_ as Q}from"./Main.a0bbcc2f.js";const W={class:"container"},z={class:"block xl:grid grid-cols-2 gap-4"},H={class:"h-screen xl:h-auto md:flex py-5 xl:py-0 my-10 xl:my-0"},J={class:"md:hidden mb-6"},X={class:"text-center text-white text-lg ml-3"},Y={class:"my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto"},Z={class:"flex items-center justify-between"},ee={class:"intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left"},te={class:"intro-x mt-2 text-slate-400 xl:hidden text-center"},se={class:"intro-x mt-8"},oe=["placeholder"],ae=["placeholder","onKeyup"],re={class:"intro-x flex text-slate-600 dark:text-slate-500 text-xs sm:text-sm mt-4"},le={class:"intro-x mt-5 xl:mt-8 text-center xl:text-left"},ne=["onClick"],ie=["onClick"],de={__name:"Main",setup(me){const i=S({email:"",password:""}),d=f(!1),m=f(!1),E={email:{required:_.withMessage(u.global.t("REQUIRED_VALIDATION"),A),email:_.withMessage(u.global.t("EMAIL_VALIDATION"),F)},password:{required:_.withMessage(u.global.t("REQUIRED_VALIDATION"),A),minLength:_.withMessage(u.global.t("MIN_LENGTH_VALIDATION",{min:8}),q(8))}},t=K(E,V(i)),v=async()=>{if(d.value)return;const s=M();t.value.$touch(),!t.value.$invalid&&(d.value=!0,await s.login(i.email,i.password),d.value=!1)},O=async()=>{if(m.value||(t.value.email.$touch(),t.value.email.$invalid))return;m.value=!0,await M().forgotPassword(i.email),m.value=!1},T=()=>B.push({path:"/register"});return C(()=>{R("body").removeClass("main").removeClass("error-page").addClass("login")}),(s,c)=>{const g=P("LoadingIcon");return l(),n("div",null,[e("div",W,[e("div",z,[h(j),e("div",H,[e("div",J,[e("a",null,[h(U,{class:"mx-auto mb-2"}),e("div",X,a(s.$t("APP_TITLE")),1)])]),e("div",Y,[e("div",Z,[e("h2",ee,a(s.$t("SIGN_IN")),1),h(Q)]),e("div",te,a(s.$t("SING_IN_MOTIVATION_MOBILE")),1),e("div",se,[w(e("input",{type:"text","onUpdate:modelValue":c[0]||(c[0]=r=>o(t).email.$model=r),class:b(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":o(t).email.$error}]),placeholder:s.$t("EMAIL")},null,10,oe),[[y,o(t).email.$model,void 0,{trim:!0}]]),o(t).email.$error?(l(!0),n(I,{key:0},$(o(t).email.$errors,(r,x)=>(l(),n("div",{key:x,class:"text-danger mt-2"},a(r.$message),1))),128)):p("",!0),w(e("input",{type:"password","onUpdate:modelValue":c[1]||(c[1]=r=>o(t).password.$model=r),class:b(["intro-x login__input form-control py-3 px-4 block mt-4",{"border-danger":o(t).password.$error}]),placeholder:s.$t("PASSWORD"),onKeyup:G(v,["enter"])},null,42,ae),[[y,o(t).password.$model,void 0,{trim:!0}]]),o(t).password.$error?(l(!0),n(I,{key:1},$(o(t).password.$errors,(r,x)=>(l(),n("div",{key:x,class:"text-danger mt-2"},a(r.$message),1))),128)):p("",!0)]),e("div",re,[e("a",{type:"button",class:"flex items-center ml-auto cursor-pointer",onClick:O},[k(a(s.$t("FORGOT_PASSWORD"))+" ",1),m.value?(l(),L(g,{key:0,icon:"oval",class:"w-4 h-4 ml-2 primary"})):p("",!0)])]),e("div",le,[e("button",{class:"btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top custom-btns",onClick:N(v,["prevent"])},[k(a(s.$t("LOGIN"))+" ",1),d.value?(l(),L(g,{key:0,icon:"oval",color:"white",class:"w-4 h-4 ml-2"})):p("",!0)],8,ne),e("button",{class:"btn btn-outline-secondary py-3 px-4 w-full mt-3 xl:mt-0 align-top xl:w-auto custom-btns",onClick:N(T,["prevent"])},a(s.$t("REGISTER")),9,ie)])])])])])])}}};var he=D(de,[["__scopeId","data-v-ba851574"]]);export{he as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{D as e,v as t,e as s,c as a,I as o}from"./index.b5f1eb06.js";var i="/assets/error-illustration.086ce2c4.svg";const r=o('<div class="container"><div class="error-page flex flex-col lg:flex-row items-center justify-center h-screen text-center lg:text-left"><div class="-intro-x lg:mr-20"><img alt="Midone Tailwind HTML Admin Template" class="h-48 lg:h-auto" src="'+i+'"></div><div class="text-white mt-10 lg:mt-0"><div class="intro-x text-8xl font-medium">404</div><div class="intro-x text-xl lg:text-3xl font-medium mt-5"> Oops. This page has gone missing. </div><div class="intro-x text-lg mt-3"> You may have mistyped the address or the page may have moved. </div><button class="intro-x btn py-3 px-4 text-white border-white dark:border-darkmode-400 dark:text-slate-200 mt-10"> Back to Home </button></div></div></div>',1),l=[r],v={__name:"Main",setup(d){return e(()=>{t("body").removeClass("main").removeClass("login").addClass("error-page")}),(n,c)=>(a(),s("div",null,l))}};export{v as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{q as d,b as U,r as n,e as _,f as e,t as s,M as k,F as u,i as A,g as a,w as m,k as S,L as $,c as p,l as r,n as E}from"./index.b5f1eb06.js";const I={class:"intro-y text-lg font-medium mt-10"},N={class:"grid grid-cols-12 gap-6 mt-5"},B={class:"intro-y col-span-12 flex flex-wrap sm:flex-nowrap items-center mt-2"},T=["onClick"],L={class:"intro-y col-span-12 overflow-auto lg:overflow-visible max-w-screen-lg"},R={class:"table table-report -mt-2"},q={class:"whitespace-nowrap"},D={class:"whitespace-nowrap"},V={class:"text-center whitespace-nowrap"},j={href:"",class:"font-medium whitespace-nowrap"},F={class:"text-slate-500 flex items-center mr-3",href:"javascript:;"},X={class:"w-40"},z={class:"p-5 text-center"},H=e("div",{class:"text-3xl mt-5"},"Are you sure?",-1),W=e("div",{class:"text-slate-500 mt-2"},[r(" Do you really want to delete these records? "),e("br"),r("This process cannot be undone. ")],-1),G={class:"px-5 pb-8 text-center"},J=e("button",{type:"button",class:"btn btn-danger w-24"},"Delete",-1),P={__name:"Main",setup(K){const f="https://panel.exchange.gov.tm/api",i=d(!1),h=d(!1),l=d([]),v=()=>{console.log("onAddNewUser"),S.push({path:"/create-user"})},w=async()=>{try{l.value.splice(0);const t=await $.get(`${f}/account/clients`);l.value=[...t.data],console.log("response fetchUsers: ",l.value)}catch(t){console.log("error fetchUsers: ",t)}};return U(async()=>{h.value=!0,await w(),h.value=!1}),(t,c)=>{const b=n("MailIcon"),x=n("CheckSquareIcon"),g=n("XCircleIcon"),y=n("ModalBody"),M=n("Modal");return p(),_(u,null,[e("h2",I,s(t.$t("USERS")),1),e("div",N,[e("div",B,[e("button",{class:"btn btn-primary shadow-md mr-2",onClick:k(v,["prevent"])},s(t.$t("CREATE_USER")),9,T)]),e("div",L,[e("table",R,[e("thead",null,[e("tr",null,[e("th",q,s(t.$t("NAME_SURNAME")),1),e("th",D,s(t.$t("EMAIL")),1),e("th",V,s(t.$t("STATUS")),1)])]),e("tbody",null,[(p(!0),_(u,null,A(l.value,(o,C)=>(p(),_("tr",{key:C,class:"intro-x"},[e("td",null,[e("a",j,s(o.firstname)+" "+s(o.lastname),1)]),e("td",null,[e("a",F,[a(b,{class:"w-4 h-4 mr-2"}),r(" "+s(o.email),1)])]),e("td",X,[e("div",{class:E(["flex items-center justify-center",{"text-success":o.is_verified,"text-danger":!o.is_verified}])},[a(x,{class:"w-4 h-4 mr-2"}),r(" "+s(o.is_verified?"Active":"Inactive"),1)],2)])]))),128))])])])]),a(M,{show:i.value,onHidden:c[1]||(c[1]=o=>i.value=!1)},{default:m(()=>[a(y,{class:"p-0"},{default:m(()=>[e("div",z,[a(g,{class:"w-16 h-16 text-danger mx-auto mt-3"}),H,W]),e("div",G,[e("button",{type:"button",onClick:c[0]||(c[0]=o=>i.value=!1),class:"btn btn-outline-secondary w-24 mr-1"}," Cancel "),J])]),_:1})]),_:1},8,["show"])],64)}}};export{P as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
|||
<link rel="icon" href="/fav_icon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TMEX</title>
|
||||
<script type="module" crossorigin src="/assets/index.b5f1eb06.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index.09b8e57c.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.b66ec728.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Reference in New Issue