Rebuilds apps/api/release and apps/admin-panel/dist so the deployed images
carry 0156a97 (X-Debug counts block on the wholesale lists, console output in
the panel). No source change.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
import{c as r,I as N,d as H,b as $,al as j,p as t,F as T,e as F,t as B,h as i,j as _,f as b,w as u,H as I,r as f,o as x,A as U,a as J,am as R,i as W,m as v,s as O,G as q,l as Q,_ as X}from"./index-CUVhAJ_v.js";import{_ as E}from"./brand-icon-CrDwHrcf.js";import{u as Y}from"./auth-BT2lQXaZ.js";import{T as Z,S as K}from"./TeamOutlined-WcRX8BrZ.js";import{S as ee}from"./SafetyCertificateOutlined-DMuz_0ZB.js";import{L as te}from"./LockOutlined-DPU8U4Me.js";var ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};function G(s){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?Object(arguments[a]):{},l=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(o).filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),l.forEach(function(n){oe(s,n,o[n])})}return s}function oe(s,a,o){return a in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,s}var w=function(a,o){var l=G({},a,o.attrs);return r(N,G({},l,{icon:ae}),null)};w.displayName="LineChartOutlined";w.inheritAttrs=!1;var se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};function V(s){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?Object(arguments[a]):{},l=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(o).filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable}))),l.forEach(function(n){le(s,n,o[n])})}return s}function le(s,a,o){return a in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,s}var S=function(a,o){var l=V({},a,o.attrs);return r(N,V({},l,{icon:se}),null)};S.displayName="MobileOutlined";S.inheritAttrs=!1;const ne={id:"page-login"},re={class:"sparkles","aria-hidden":"true"},ie={class:"login-layout"},de={class:"hero","aria-hidden":"true"},ce={class:"brand-row"},ue={class:"brand-name"},pe={class:"chips"},fe={class:"form-side"},ve={class:"glass-card"},be={class:"card-head"},ge={class:"logo-chip logo-chip--sm"},me=["alt"],he={class:"secure-note"},ye={class:"page-footer"},_e=H({__name:"Login",setup(s){const a=Q(),o=Y(),l=v(""),n=v(""),p=v(!1),P=v(!1),L=v(!1);function k(c){const e=c*37%100,y=c*53%100;return{left:`${e}%`,top:`${y}%`,animationDelay:`${c*.7%6}s`,transform:`scale(${.6+c*13%10/15})`}}const g=O(()=>P.value?l.value?l.value.length<8?"مقدار ورودی صحیح نیست":"":"وارد کردن موبایل الزامی است":""),m=O(()=>L.value?n.value?n.value.length<5?"مقدار ورودی صحیح نیست":"":"وارد کردن رمز عبور الزامی است":""),C=O(()=>!g.value&&!m.value&&l.value!==""&&n.value!=="");async function h(){if(!(!C.value||p.value)){p.value=!0;try{await o.login({phone:l.value,password:n.value}),await a.push("/dashboard/ecommerce")}catch(c){console.log(c),q.error("خطا در ورود")}finally{p.value=!1}}}return(c,e)=>{const y=f("a-input"),M=f("a-form-item"),z=f("a-input-password"),A=f("a-button"),D=f("a-form");return x(),$("div",ne,[e[14]||(e[14]=j('<div class="aurora" aria-hidden="true" data-v-1eb36c3e><span class="blob blob--gold" data-v-1eb36c3e></span><span class="blob blob--teal" data-v-1eb36c3e></span><span class="blob blob--navy" data-v-1eb36c3e></span></div><div class="grid-bg" aria-hidden="true" data-v-1eb36c3e></div>',2)),t("div",re,[(x(),$(T,null,F(14,d=>t("i",{key:d,style:U(k(d))},null,4)),64))]),t("main",ie,[t("section",de,[t("div",ce,[e[4]||(e[4]=t("div",{class:"logo-chip"},[t("img",{src:E,alt:""})],-1)),t("span",ue,B(i(_).nameEn),1)]),e[8]||(e[8]=j('<h2 class="hero-title" data-v-1eb36c3e> مدیریت هوشمند <span class="gold-text" data-v-1eb36c3e>کسبوکار طلا</span></h2><p class="hero-sub" data-v-1eb36c3e>سفارشها، مشتریان، محصولات و حسابداری؛ همه در یک پنل.</p><div class="ingots" data-v-1eb36c3e><div class="ingot-glow" data-v-1eb36c3e></div><svg viewBox="0 0 400 240" class="ingot-svg" data-v-1eb36c3e><defs data-v-1eb36c3e><linearGradient id="ig-front" x1="0" y1="0" x2="0" y2="1" data-v-1eb36c3e><stop offset="0" stop-color="#ffe7a3" data-v-1eb36c3e></stop><stop offset="0.45" stop-color="#e9b949" data-v-1eb36c3e></stop><stop offset="1" stop-color="#b07a1e" data-v-1eb36c3e></stop></linearGradient><linearGradient id="ig-top" x1="0" y1="0" x2="1" y2="0" data-v-1eb36c3e><stop offset="0" stop-color="#fff6d6" data-v-1eb36c3e></stop><stop offset="1" stop-color="#f4cf6a" data-v-1eb36c3e></stop></linearGradient><linearGradient id="ig-side" x1="0" y1="0" x2="0" y2="1" data-v-1eb36c3e><stop offset="0" stop-color="#c58f2a" data-v-1eb36c3e></stop><stop offset="1" stop-color="#7d5313" data-v-1eb36c3e></stop></linearGradient><linearGradient id="ig-shine" x1="0" y1="0" x2="1" y2="0" data-v-1eb36c3e><stop offset="0" stop-color="#fff" stop-opacity="0" data-v-1eb36c3e></stop><stop offset="0.5" stop-color="#fff" stop-opacity="0.75" data-v-1eb36c3e></stop><stop offset="1" stop-color="#fff" stop-opacity="0" data-v-1eb36c3e></stop></linearGradient><clipPath id="ig-clip" data-v-1eb36c3e><polygon points="0,64 176,64 156,20 20,20" data-v-1eb36c3e></polygon></clipPath><g id="ingot" data-v-1eb36c3e><polygon points="20,20 156,20 172,6 36,6" fill="url(#ig-top)" data-v-1eb36c3e></polygon><polygon points="156,20 172,6 196,50 176,64" fill="url(#ig-side)" data-v-1eb36c3e></polygon><polygon points="0,64 176,64 156,20 20,20" fill="url(#ig-front)" data-v-1eb36c3e></polygon><g clip-path="url(#ig-clip)" data-v-1eb36c3e><rect class="shine" x="-80" y="0" width="60" height="70" fill="url(#ig-shine)" data-v-1eb36c3e></rect></g><text x="88" y="49" text-anchor="middle" class="ingot-label" data-v-1eb36c3e>999.9</text></g></defs><use href="#ingot" x="0" y="160" data-v-1eb36c3e></use><use href="#ingot" x="196" y="160" data-v-1eb36c3e></use><use href="#ingot" x="98" y="104" data-v-1eb36c3e></use></svg></div>',3)),t("ul",pe,[t("li",null,[r(i(w)),e[5]||(e[5]=b(" گزارش لحظهای",-1))]),t("li",null,[r(i(Z)),e[6]||(e[6]=b(" مدیریت مشتریان",-1))]),t("li",null,[r(i(K)),e[7]||(e[7]=b(" پیگیری سفارش",-1))])])]),t("section",fe,[t("div",ve,[t("div",be,[t("div",ge,[t("img",{src:E,alt:i(_).nameEn},null,8,me)]),e[9]||(e[9]=t("span",{class:"eyebrow"},[t("span",{class:"dot"}),b("پنل مدیریت")],-1))]),e[12]||(e[12]=t("h1",{class:"title"},"ورود به محیط مدیریت",-1)),e[13]||(e[13]=t("p",{class:"subtitle"},"لطفا شماره تلفن همراه خود به همراه رمز عبور وارد کنید.",-1)),r(D,{layout:"vertical",class:"login-form",onSubmit:I(h,["prevent"])},{default:u(()=>[r(M,{label:"موبایل","validate-status":g.value?"error":"",help:g.value},{default:u(()=>[r(y,{value:l.value,"onUpdate:value":e[0]||(e[0]=d=>l.value=d),autocomplete:"off",inputmode:"numeric",placeholder:"09xxxxxxxxx",class:"ltr-input",onBlur:e[1]||(e[1]=d=>P.value=!0)},{prefix:u(()=>[r(i(S),{class:"field-icon"})]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r(M,{label:"رمز عبور","validate-status":m.value?"error":"",help:m.value},{default:u(()=>[r(z,{value:n.value,"onUpdate:value":e[2]||(e[2]=d=>n.value=d),placeholder:"••••••",class:"ltr-input",onBlur:e[3]||(e[3]=d=>L.value=!0),onPressEnter:h},{prefix:u(()=>[r(i(te),{class:"field-icon"})]),_:1},8,["value"])]),_:1},8,["validate-status","help"]),r(A,{type:"primary",block:"",class:"submit-btn",disabled:!C.value,loading:p.value,onClick:h},{default:u(()=>[e[10]||(e[10]=t("span",null,"ورود",-1)),p.value?W("",!0):(x(),J(i(R),{key:0,class:"btn-arrow"}))]),_:1},8,["disabled","loading"])]),_:1}),t("p",he,[r(i(ee)),e[11]||(e[11]=t("span",null,"اتصال شما رمزنگاری شده و امن است",-1))])])])]),t("footer",ye,"© "+B(i(_).nameEn),1)])}}}),Ce=X(_e,[["__scopeId","data-v-1eb36c3e"]]);export{Ce as default};
|