Files
tehran_tala/apps/user-app/dist/assets/IamCallback-DaclEl8A.js
T
s.esmaeiliandClaude Haiku 5.5 6ccdbc06f0 build: release build of admin, user apps and api
Rebuilt dist/ and api release bundle, with the migration for catalog paging indexes.

Fix Less build error: fade(@token, N%) on theme tokens failed in both user-app
and user-app-v2 CustomerChoiceView; use alpha(), the project's token-aware helper.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-12 15:37:03 +03:30

2 lines
963 B
JavaScript

import{d as c,U as i,o as m,x as r,c as l,E as _,b as p}from"./index-VWrANxEJ.js";const g={style:{"min-height":"100vh",display:"grid","place-items":"center"}},h=c({__name:"IamCallback",setup(u){const a=_(),s=i();function o(){sessionStorage.setItem("gb_iam_sso_skip","1");const e=sessionStorage.getItem("gb_iam_return");sessionStorage.removeItem("gb_iam_return");const t=e&&e.startsWith("/")&&!e.startsWith("//")?e:"/";return a.replace(t)}return m(async()=>{const e=new URLSearchParams(window.location.search);if(sessionStorage.removeItem("gb_iam_sso_checked"),e.get("error")||!e.get("code")||!e.get("state")){await o();return}try{const t=await r.ssoCallback(e.get("code"),e.get("state"));s.login(t.token,t.customer.id,t.customer.mobile);try{const n=await r.getExpertIdentity();s.setSalesExpert(n.isSalesExpert)}catch{s.setSalesExpert(!1)}await a.replace({name:"home"})}catch{await o()}}),(e,t)=>(p(),l("div",g,"در حال ورود..."))}});export{h as default};