1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8448],{48448:(e,t,a)=>{a.d(t,{Ay:()=>U,Er:()=>v,Gm:()=>R,I8:()=>f,Ky:()=>g,LC:()=>h,R2:()=>l,Tf:()=>b,Wr:()=>k,a5:()=>d,bS:()=>u,i_:()=>m,qv:()=>$,ro:()=>I,v8:()=>C,zB:()=>y,zj:()=>w});var n=a(84106),i=a(60275),r=a(91002),o=a(83116);let s=n.A.create({baseURL:"",withCredentials:!0,headers:{"Content-Type":"application/json"}}),p=()=>{let e=new URLSearchParams(window.location.search).get("ref")?.trim().toUpperCase();return e&&/^AP-[A-Z2-9]{8}$/.test(e)?e:void 0};s.interceptors.request.use(e=>{{let t=localStorage.getItem("token");t&&(e.headers.Authorization=`Bearer ${t}`);try{let t=localStorage.getItem(i.gl);t&&"all"===JSON.parse(t).choice&&(e.headers["X-Auras-Marketing-Consent"]="all")}catch{}}return e});let c=["/api/auth/me","/api/auth/login","/api/auth/register","/api/auth/google","/api/auth/facebook","/api/auth/verify-2fa","/api/auth/resend-2fa","/api/auth/forgot-password","/api/auth/reset-password","/api/agentic-commerce/v1/checkout-sessions"];s.interceptors.response.use(e=>e,e=>{if(e.response?.status===401){let t=e.config?.url??"",a=c.some(e=>
1t.startsWith(e)),n=/\/(login|register|forgot-password|reset-password|verify-email)(\/|$)/.test(window.location.pathname);a||n||(localStorage.removeItem("token"),window.location.href=(0,o.gz)(window.location.pathname,window.location.search))}if((0,r.vT)()){let t=e.config?.url??"",a=e.response?.status;if(!t.startsWith("/api/ai-support/")&&(!a||a>=500)){let n=/payment|solana|ethereum|tron|bnb/i.test(t),i=/wallet|auras-connect/i.test(t);(0,r.Zi)({eventType:n?"PAYMENT_FLOW_FAILURE":i?"WALLET_CONNECTION_FAILURE":"API_FAILURE",errorCode:a?`HTTP_${a}`:"NETWORK_ERROR",metadata:{action:String(e.config?.method||"GET").toUpperCase(),httpStatus:a||0,component:"api-client"}})}}return Promise.reject(e)});let l={enrollWhiteLabel:e=>s.post("/api/auth/white-label/enroll",e),registerWhiteLabel:e=>s.post("/api/auth/register/white-label",{...e,marketingConsentVersion:"auraspay-email-v1-20260930"}),login:(e,t,a)=>s.post("/api/auth/login",{email:e,password:t,recaptchaToken:a}),register:(e,t,a,n,i,r,o=!1,c="en")=>s.post("/api/auth/register",{email:e,password:t,turnstileToken:a,name:n,...i?{merchantOwnerId:i}:{},...i&&r?{merchantLocale:r}:{},referralCode:p(),marketingConsent:o,marketingConsentVersion:"auraspay-email-v1-20260930",consentLocale:c}),googleAuth:e=>s.post("/api/auth/google",{credential:e,referralCode:p(),eventSourceUrl:window.location.href}),facebookAuth:(e,t)=>s.post("/api/auth/facebook",{accessToken:e,userID:t,referralCode:p(),eventSourceUrl:window.location.href}),getProfile:()=>s.get("/api/auth/me"),logout:()=>s.post("/api/auth/logout"),updateProfile:e=>s.put("/api/auth/profile",e),getPreferences:()=>s.get("/api/auth/preferences"),updatePreferences:e=>s.put("/api/auth/preferences",{...e,...void 0!==e.marketingEmails?{marketingConsentVersion:"auraspay-email-v1-20260930",consentLocale:window.location.pathname.startsWith("/ar/")?"ar":"en"}:{}}),completeOnboarding:e=>s.post("/api/auth/onboarding",{...e,eventSourceUrl:window.location.href}),forgotPassword:e=>s.post("/api/auth/forgot-password",{email:e}),resetPassword:(e,t)=>s.post("/api/auth/reset-password",{token:e,password:t}),verifyEmailByToken:e=>s.post("/api/auth/verify-email",{token:e,eventSourceUrl:window.location.href}),verifyEmailByCode:(e,t)=>s.post("/api/auth/verify-email",{code:t,email:e,eventSourceUrl:window.location.href}),resendVerification:(e,t,a,n)=>s.post("/api/auth/resend-verification",{email:e,...t?{audience:t}:{},...a?{merchantOwnerId:a,...n?{merchantLocale:n}:{}}:{}}),verifyTwoFactor:(e,t)=>s.post("/api/auth/verify-2fa",{twoFactorToken:e,code:t}),resendTwoFactor:e=>s.post("/api/auth/resend-2fa",{twoFactorToken:e}),listApiKeys:()=>s.get("/api/auth/api-keys"),createApiKey:e=>s.post("/api/auth/api-keys",{name:e}),revokeApiKeyById:e=>s.delete(`/api/auth/api-keys/${e}`),generateApiKey:()=>s.post("/api/auth/generate-api-key"),getApiKeyInfo:()=>s.get("/api/auth/api-key-info"),revokeApiKey:()=>s.delete("/api/auth/revoke-api-key"),generateWebhookSecret:()=>s.post("/api/auth/generate-webhook-secret"),getWebhookSecretInfo:()=>s.get("/api/auth/webhook-secret-info"),revokeWebhookSecret:()=>s.delete("/api/auth/revoke-webhook-secret"),listWebhooks:()=>s.get("/api/auth/webhooks"),createWebhook:(e,t)=>s.post("/api/auth/webhooks",{name:e,url:t}),revokeWebhookById:e=>s.delete(`/api/auth/webhooks/${e}`),testWebhook:e=>s.post(`/api/auth/webhooks/${e}/test`),changePassword:(e,t)=>s.post("/api/auth/change-password",{currentPassword:e,newPassword:t}),requestWalletChange:e=>s.post("/api/auth/wallets/request-change",e),updateWallets:e=>s.put("/api/auth/wallets",e),createWalletOwnershipChallenge:e=>s.post("/api/auth/wallets/ownership-challenge",e),verifyWalletOwnership:e=>s.post("/api/auth/wallets/verify-ownership",e),cancelSubscription:()=>s.post("/api/auth/cancel-subscription")},m={getOwnerKybStatus:()=>s.get("/api/enterprise/workspace/kyb"),startOwnerKyb:e=>s.post("/api/enterprise/workspace/kyb/start",{consentGiven:e,consentVersion:"didit-kyb-2026-09-25-v1"}),recoverOwnerKyb:()=>s.post("/api/enterprise/workspace/kyb/recover",{}),refreshOwnerKyb:()=>s.post("/api/enterprise/workspace/kyb/refresh",{}),getCustomDomain:()=>s.get("/api/enterprise/workspace/domain"),configureCustomDomain:e=>s.put("/api/enterprise/workspace/domain",{hostname:e}),verifyCustomDomain:()=>s.post("/api/enterprise/workspace/domain/verify"),getBillingInvoices:()=>s.get("/api/enterprise/workspace/billing/invoices"),getBillingQuote:()=>
1s.get("/api/enterprise/workspace/billing/quote"),prepareBillingCheckout:e=>s.post("/api/enterprise/workspace/billing/checkout",{expectedRevision:e}),getBillingCryptoOptions:()=>s.get("/api/enterprise/workspace/billing/crypto-options"),prepareBillingCrypto:(e,t)=>s.post(`/api/enterprise/workspace/billing/invoices/${encodeURIComponent(e)}/crypto`,t),selectBillingMethod:(e,t)=>s.post(`/api/enterprise/workspace/billing/invoices/${encodeURIComponent(e)}/method`,{method:t}),reportBillingTransfer:(e,t)=>s.post(`/api/enterprise/workspace/billing/invoices/${encodeURIComponent(e)}/bank-transfer`,{transferReference:t}),getCryptoLaunchStatus:()=>s.get("/api/enterprise/workspace/crypto/launch-status"),requestCryptoLaunch:()=>s.post("/api/enterprise/workspace/crypto/launch-request",{}),getWorkspace:()=>s.get("/api/enterprise/workspace"),getCheckout:()=>s.get("/api/enterprise/workspace/checkout"),updateCheckout:e=>s.patch("/api/enterprise/workspace/checkout",e),uploadBrandAsset:(e,t)=>{let a=new FormData;return a.append("file",t),s.post(`/api/enterprise/workspace/brand-assets/${e}`,a,{headers:{"Content-Type":"multipart/form-data"}})},requestContract:e=>s.post("/api/enterprise/workspace/contracts",e),requestContractFeeChange:(e,t)=>
1s.post(`/api/enterprise/workspace/contracts/${encodeURIComponent(e)}/fee-changes`,t),getMerchants:()=>s.get("/api/enterprise/workspace/merchants"),updateMerchantOnboarding:e=>s.patch("/api/enterprise/workspace/merchant-onboarding",e),createMerchant:e=>s.post("/api/enterprise/workspace/merchants",e),updateMerchant:(e,t)=>s.patch(`/api/enterprise/workspace/merchants/${e}`,t),createMerchantInvitation:e=>s.post(`/api/enterprise/workspace/merchants/${e}/invitations`)},g={getRegistrationConfig:e=>s.get(`/api/white-label-merchant/registrations/${encodeURIComponent(e)}`),selfRegister:(e,t)=>s.post(`/api/white-label-merchant/registrations/${encodeURIComponent(e)}`,t),getWorkspace:()=>s.get("/api/white-label-merchant/workspace"),getTeam:()=>s.get("/api/white-label-merchant/team"),inviteTeamMember:(e,t)=>s.post("/api/white-label-merchant/team/invitations",{email:e,role:t}),acceptTeamInvitation:(e,t)=>s.post(`/api/white-label-merchant/team-invitations/${encodeURIComponent(e)}/accept`,{token:t}),removeTeamMember:e=>s.delete(`/api/white-label-merchant/team/members/${encodeURIComponent(e)}`),getCryptoNetworks:()=>s.get("/api/white-label-merchant/crypto/networks"),getCryptoOptions:()=>s.get("/api/white-label-merchant/crypto/options"),listCryptoPaymentLinks:e=>s.get("/api/white-label-merchant/crypto/payment-links",{params:{after:e,limit:20}}),listPayments:(e,t=20)=>s.get("/api/white-label-merchant/payments",{params:{after:e,limit:t}}),getPaymentStats:()=>s.get("/api/white-label-merchant/payments/stats"),getPaymentSeries:e=>s.get("/api/white-label-merchant/payments/series",{params:{days:e}}),getPayment:e=>s.get(`/api/white-label-merchant/payments/${encodeURIComponent(e)}`),createCryptoPaymentLink:(e,t)=>s.post("/api/white-label-merchant/crypto/payment-links",e,{headers:{"Idempotency-Key":t}}),submitWallet:(e,t)=>s.put(`/api/white-label-merchant/wallets/${e}`,{address:t}),createWalletOwnershipChallenge:(e,t)=>s.post("/api/white-label-merchant/wallets/ownership-challenge",{networkId:e,address:t}),verifyWalletOwnership:(e,t,a)=>s.post("/api/white-label-merchant/wallets/verify-ownership",{challengeId:e,signature:t,...a?{signatureEncoding:a}:{}}),getPayByBankOverview:()=>s.get("/api/white-label-merchant/pay-by-bank/overview"),createPayByBankSession:(e,t)=>s.post("/api/white-label-merchant/pay-by-bank/payment-sessions",e,{headers:{"Idempotency-Key":t}}),acceptInvitation:(e,t)=>s.post(`/api/white-label-merchant/invitations/${encodeURIComponent(e)}/accept`,{token:t})},u={capture:e=>s.post("/api/referrals/capture",{code:e}),getMine:()=>s.get("/api/referrals/me")},h={listStores:()=>s.get("/api/agentic-commerce/v1/merchant/stores"),createStore:e=>s.post("/api/agentic-commerce/v1/merchant/stores",e),addWallet:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/wallets`,t),createProduct:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/products`,t),importCatalog:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-imports`,t),listCatalogImports:e=>s.get(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-imports`),listCatalogProviders:()=>s.get("/api/agentic-commerce/v1/merchant/catalog-connectors/providers"),listCatalogConnections:e=>s.get(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-connectors`),startShopifyConnection:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-connectors/shopify/start`,t),startWooCommerceConnection:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-connectors/woocommerce/start`,t),syncCatalogConnection:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/catalog-connectors/${encodeURIComponent(t)}/sync`,{}),publishProduct:e=>s.post(`/api/agentic-commerce/v1/merchant/products/${encodeURIComponent(e)}/publish`),publishStore:e=>s.post(`/api/agentic-commerce/v1/merchant/stores/${encodeURIComponent(e)}/publish`),reconcileWooOrder:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/orders/${encodeURIComponent(e)}
1/woocommerce/reconcile`,{wooOrderId:t}),listOrders:e=>s.get("/api/agentic-commerce/v1/merchant/orders",{params:e?{storeId:e}:void 0}),createFulfillment:(e,t)=>s.post(`/api/agentic-commerce/v1/merchant/orders/${encodeURIComponent(e)}/fulfillments`,t),getCatalog:e=>s.get(`/api/agentic-commerce/v1/stores/${encodeURIComponent(e)}/catalog`),createCheckout:e=>s.post("/api/agentic-commerce/v1/checkout-sessions",e),getCheckout:(e,t)=>s.get(`/api/agentic-commerce/v1/checkout-sessions/${encodeURIComponent(e)}`,{headers:{"X-Checkout-Token":t}}),selectRoute:(e,t,a)=>s.post(`/api/agentic-commerce/v1/checkout-sessions/${encodeURIComponent(e)}/select-route`,{routeKey:a},{headers:{"X-Checkout-Token":t}}),cancelCheckout:(e,t)=>s.post(`/api/agentic-commerce/v1/checkout-sessions/${encodeURIComponent(e)}/cancel`,{},{headers:{"X-Checkout-Token":t}})},d={createPaymentLink:e=>s.post("/api/payments/payment-link",e),getPayments:(e={})=>s.get("/api/payments",{params:e}),getPayment:e=>s.get(`/api/payments/${e}`),getStats:()=>s.get("/api/payments/stats"),getBalance:()=>s.get("/api/payments/balance"),getSupportedTokens:()=>s.get("/api/payments/supported-tokens"),getPlatformInvoiceSettings:()=>s.get("/api/payments/platform-invoice-settings"),getPublicPayment:e=>s.get(`/api/payments/public/${e}`),trackPublicCheckout:(e,t)=>s.post(`/api/payments/public/${e}/meta-checkout`,{eventSourceUrl:t})},w={qualify:e=>s.post("/api/merchant-lifecycle/qualify",e),recordPluginDownload:e=>s.post("/api/merchant-lifecycle/plugin-download",{platform:e}),getStatus:()=>s.get("/api/merchant-lifecycle/status")},y={getOverview:()=>s.get("/api/ecosystem/overview")},k={getOverview:()=>s.get("/api/pay-by-bank/overview"),getInfrastructure:()=>s.get("/api/pay-by-bank/infrastructure"),createPaymentSession:(e,t)=>s.post("/api/pay-by-bank/payment-sessions",e,{headers:{"Idempotency-Key":t}}),simulateTransition:(e,t)=>s.post(`/api/pay-by-bank/sandbox/payment-sessions/${e}/transition`,{state:t})},f={getConfig:()=>s.get("/api/ai-support/config"),getConversation:()=>s.get("/api/ai-support/conversation"),sendMessage:e=>s.post("/api/ai-support/messages",e),uploadErrorScreenshot:(e,t)=>{let a=new FormData;return a.append("image",e),a.append("locale",t.locale),t.conversationId&&a.append("conversationId",t.conversationId),t.route&&a.append("route",t.route),s.post("/api/ai-support/attachments",a,{headers:{"Content-Type":void 0}})},getPublicConfig:()=>s.get("/api/ai-support/public/config"),sendPublicMessage:e=>s.post("/api/ai-support/public/messages",e),uploadPublicErrorScreenshot:(e,t)=>{let a=new FormData;return a.append("image",e),a.append("locale",t.locale),a.append("sessionId",t.sessionId),t.route&&a.append("route",t.route),s.post("/api/ai-support/public/attachments",a,{headers:{"Content-Type":void 0}})}},b={createSession:()=>s.post("/api/auras-connect/sessions",{allowedWalletIds:["auraspay","tronlink"]}),approveSession:e=>s.post("/api/auras-connect/sessions/approve",e),disconnectSession:e=>s.delete("/api/auras-connect/sessions/current",{params:e?{walletId:e}:void 0})},v={getWhiteLabelPaymentIntegrations:()=>s.get("/api/admin/enterprise/payment-integrations"),updateWhiteLabelStripe:e=>s.put("/api/admin/enterprise/payment-integrations/stripe",e),confirmWhiteLabelBankTransfer:(e,t,a)=>s.post(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/billing/invoices/${encodeURIComponent(t)}/confirm-bank-transfer`,a),getWhiteLabelPricing:(e="FULL_PLATFORM")=>s.get("/api/admin/enterprise/pricing",{params:{mode:e}}),updateWhiteLabelPricing:e=>s.put("/api/admin/enterprise/pricing",e),prepareContractTransaction:(e,t,a)=>s.post(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}${a?`/fee-changes/${encodeURIComponent(a)}`:""}/prepare`),verifyContractTransaction:(e,t,a)=>s.post(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}/verify-transaction`,a),reviewContract:(e,t,a)=>s.patch(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}`,a),reviewContractFeeChange:(e,t,a,n)=>
1s.patch(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}/fee-changes/${encodeURIComponent(a)}`,n),trackWhiteLabelContract:(e,t,a)=>s.post(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}/track-transaction`,{transactionHash:a}),activateWhiteLabelContract:(e,t)=>s.post(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/contracts/${encodeURIComponent(t)}/activate`,{}),getWhiteLabelWorkspaces:()=>s.get("/api/admin/enterprise/workspaces"),provisionWhiteLabelWorkspace:e=>s.post("/api/admin/enterprise/workspaces",e),updateWhiteLabelLifecycle:(e,t)=>s.patch(`/api/admin/enterprise/workspaces/${encodeURIComponent(e)}/lifecycle`,t),getMonitoringSummary:(e=24)=>s.get("/api/admin/monitoring/summary",{params:{hours:e}}),getWhiteLabelKybMonitoring:()=>s.get("/api/admin/monitoring/white-label-kyb"),getReferrals:()=>s.get("/api/admin/referrals"),downloadReferralReport:()=>s.get("/api/admin/referrals/report.csv",{responseType:"blob"}),updateReferralCode:(e,t)=>s.patch(`/api/admin/referrals/codes/${e}`,{status:t}),reviewReferralEarning:(e,t,a)=>s.patch(`/api/admin/referrals/earnings/${e}`,{status:t,reason:a}),recordReferralPayout:e=>s.post("/api/admin/referrals/payouts",e),getAiSupportSettings:()=>s.get("/api/admin/ai-support/settings"),updateAiSupportSettings:e=>s.put("/api/admin/ai-support/settings",e),getAiSupportIncidents:(e={})=>s.get("/api/admin/ai-support/incidents",{params:e}),getAiSupportConversations:(e={})=>s.get("/api/admin/ai-support/conversations",{params:e}),getAiSupportConversation:e=>s.get(`/api/admin/ai-support/conversations/${e}`),updateAiSupportConversation:(e,t)=>s.put(`/api/admin/ai-support/conversations/${e}`,t),updateAiSupportIncident:(e,t)=>s.put(`/api/admin/ai-support/incidents/${e}`,{status:t}),runAiSupportWorkspaceAgent:(e,t)=>s.post(`/api/admin/ai-support/incidents/${e}/workspace-agent`,{action:t}),getPlatformInvoiceSettings:()=>s.get("/api/admin/platform-invoice-settings"),updatePlatformInvoiceSettings:e=>s.put("/api/admin/platform-invoice-settings",e),getUsers:(e={})=>s.get("/api/admin/users",{params:e}),getAgentPaymentLinks:()=>s.get("/api/admin/agent-payment-links"),getUser:e=>s.get(`/api/admin/users/${e}`),getMerchantCrm:e=>s.get(`/api/admin/users/${e}/crm`),updateMerchantCrm:(e,t)=>s.put(`/api/admin/users/${e}/crm`,t),createUser:e=>s.post("/api/admin/users",e),updateUser:(e,t)=>s.put(`/api/admin/users/${e}`,t),deleteUser:e=>s.delete(`/api/admin/users/${e}`),getAnalytics:()=>s.get("/api/admin/analytics"),getRecentActivity:()=>s.get("/api/admin/recent-activity"),getTickets:(e={})=>s.get("/api/admin/tickets",{params:e}),getTicket:e=>s.get(`/api/admin/tickets/${e}`),replyTicket:(e,t)=>s.post(`/api/admin/tickets/${e}/reply`,{message:t}),updateTicketStatus:(e,t)=>s.put(`/api/admin/tickets/${e}`,{status:t}),updateTicketPriority:(e,t)=>s.put(`/api/admin/tickets/${e}`,{priority:t}),getTicketStats:()=>s.get("/api/admin/tickets/stats"),getWalletTickets:(e={})=>s.get("/api/admin/wallet-tickets",{params:e}),getWalletTicket:e=>s.get(`/api/admin/wallet-tickets/${e}`),replyWalletTicket:(e,t)=>s.post(`/api/admin/wallet-tickets/${e}/reply`,{message:t}),updateWalletTicket:(e,t)=>s.put(`/api/admin/wallet-tickets/${e}`,t),getWalletTicketStats:()=>s.get("/api/admin/wallet-tickets/stats")},C={buildTransaction:(e,t)=>s.post(`/api/solana-pay/${e}`,{account:t})},$={buildTransaction:(e,t)=>s.post(`/api/ethereum-pay/${e}`,{account:t})},I={buildTransaction:(e,t)=>s.post(`/api/bnb-pay/${e}`,{account:t}),confirmTransaction:(e,t)=>s.post(`/api/bnb-pay/${e}/confirm`,{txHash:t})},R={buildTransaction:(e,t)=>s.post(`/api/tron-pay/${e}`,{account:t}),confirmTransaction:(e,t)=>s.post(`/api/tron-pay/${e}/confirm`,{txId:t})},U=s},60275:(e,t,a)=>{a.d(t,{RW:()=>r,Zk:()=>n,gl:()=>i});let n=a(51116).env.NEXT_PUBLIC_META_PIXEL_ID||"1256956503133514",i="auraspay_cookie_consent_v1";function r(){try{let e=window.localStorage.getItem(i);return!!(e&&"all"===JSON.parse(e).choice)}catch{return!1}}},83116:(e,t,a)=>{a.d(t,{Ck:()=>h,EO:()=>m,Hy:()=>o,O0:()=>w,Yq:()=>l,gz:()=>g,hd:()=>c,n_:()=>p,v8:()=>r,vA:()=>d,y1:()=>u});let n=["/dashboard","/admin","/enterprise","/white-label-merchant"],i=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function r(e){return i.test(e)?`/white-label-merchant/register/${e.toLowerCase()}`:null}function o(e){let t=s(e);if(!t)return null;
1let a=new URL(t,"https://auraspay.local").pathname,n=/^\/white-label-merchant\/register\/([^/]+)$/.exec(a);return n?r(n[1]):null}function s(e){if(!e||!e.startsWith("/")||e.startsWith("//")||e.includes("\\")||/[\u0000-\u001f\u007f]/.test(e))return null;try{let t=e.split(/[?#]/)[0];for(let e=0;e<2;e+=1)if(t=decodeURIComponent(t),/(^|\/)\.{1,2}(?=\/|$)/.test(t))return null;let a=new URL(e,"https://auraspay.local");if("https://auraspay.local"!==a.origin)return null;return"/register/white-label/existing"===a.pathname||n.some(e=>a.pathname===e||a.pathname.startsWith(`${e}/`))?`${a.pathname}${a.search}${a.hash}`:null}catch{return null}}function p(e,t=window.location.search,a=window.location?.pathname??""){if(/^\/(?:en\/|ar\/)?login\/enterprise$/.test(a)){let e=new URLSearchParams(t).get("next");return l(e)?s(e):"/enterprise/crypto"}let n=new URLSearchParams(t).get("next"),i=s(n),r=i?.split(/[?#]/)[0],c=o(n);return c||("/white-label-merchant"===r||i&&("/register/white-label/existing"===r||"/enterprise"===r||r?.startsWith("/enterprise/"))||"/admin"===r?i:e?i??"/dashboard":"/onboarding")}function c(e,t=""){let a=e.replace(/^\/(?:en|ar)(?=\/|$)/,"")||"/dashboard",n=o(`${a}${t}`);return n||(s(`${a}${t}`)??"/dashboard")}function l(e){let t=s(e)?.split(/[?#]/)[0];return"/register/white-label/existing"===t||"/enterprise"===t||!!t?.startsWith("/enterprise/")}function m(e="/enterprise/crypto"){let t=l(e)?s(e):"/enterprise/crypto";return`/login/enterprise?next=${encodeURIComponent(t)}`}function g(e,t=""){let a=c(e,t);if(l(a))return m(a);let n=a.split(/[?#]/)[0];return"/white-label-merchant"===n||n.startsWith("/white-label-merchant/")?`/login?next=${encodeURIComponent(a)}`:"/login"}function u(e){let t=new URLSearchParams(e),a=t.get("next");return l(a)||["white-label","enterprise"].includes(t.get("source")??"")?m(a??void 0):null}function h(e="/register/white-label/existing"){let t=l(e)?s(e):"/register/white-label/existing";return`/verify-email?source=enterprise&next=${encodeURIComponent(t)}`}function d(e){let t=o(e);if(!t)return null;let a=t.split("/").at(-1);return`/verify-email?source=merchant-registration&ownerId=${encodeURIComponent(a)}`}function w(e,t){let a=new URLSearchParams(t);if("merchant-registration"===a.get("source"))return r(a.get("ownerId")??"")??"/dashboard";let n=["enterprise","white-label"].includes(a.get("source")??"");if("/enterprise"===e){let e=a.get("next");return l(e)?s(e):"/enterprise/crypto"}return n?"/register/white-label/existing":"/dashboard"}},91002:(e,t,a)=>{a.d(t,{Nk:()=>n,Zi:()=>o,vT:()=>i,xk:()=>r});let n="auraspay-ai-diagnostics-consent";function i(){return"granted"===window.localStorage.getItem(n)}function r(e){window.localStorage.setItem(n,e?"granted":"declined")}async function o(e){if(i())try{await fetch("/api/ai-support/diagnostics",{method:"POST",keepalive:!0,credentials:"same-origin",headers:{"Content-Type":"application/json","X-Auras-Diagnostics-Consent":"granted"},body:JSON.stringify({eventType:e.eventType,route:e.route||window.location.pathname,errorCode:e.errorCode,metadata:e.metadata})})}catch{}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.