PageSourceSearch

https://dashboard.y.uno/assets/index-DhnEjq3D.js

js y.uno collected 2026-10-01 10:25:50 UTC 63,611 bytes, 45 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C-NS9XZe.js","assets/vendor-radix-6dBKxLfn.js","assets/vendor-query-jnzAvHUk.js","assets/index-CZxwBdsI.js","assets/vendor-datadog-D3gwQpHA.js","assets/vendor-date-CemE0fj8.js","assets/vendor-i18n-B-AdlurK.js","assets/vendor-shared-D7qeTqf-.js","assets/vendor-charts-CmjbgAhh.js","assets/index-BH9o6zyZ.css","assets/channel-tile-p9Pc-NP_.js","assets/current-member-B8bZoRIa.js","assets/markdown-editor-LFyFapit.js","assets/data-table-NVPW0QOM.js","assets/vendor-table-szJPgfvF.js","assets/dropdown-menu-DVG6nqLs.js","assets/empty-CkTzGOSe.js","assets/pagination-lTmIrTix.js","assets/data-table-text-cell-LhIF7i4K.js","assets/sheet-iUxI9TVJ.js","assets/field-CiM0_sXs.js","assets/textarea-DaVSFYgM.js","assets/field-DrQNaCOk.js","assets/field-label-row-BxLZOzy4.js","assets/select-CGLiJPH5.js","assets/dots-menu-H-3h_0m8.js","assets/concierge-card-x4-vfJic.js","assets/confirmation-dialog-CUuzcOYm.js","assets/vendor-pdf-C26JiEgy.js","assets/password-field-BnwAtrIy.js","assets/data-table-badge-cell-Bq3t7NUv.js","assets/use-verify-permission.hook-DJsx5DnT.js","assets/use-dismissible-alert-CO1Y6BeF.js","assets/date-picker-CTwZ8HMm.js","assets/access-denied-alert-i46RS9pO.js","assets/index-ul2_eu5v.js","assets/index-LKYiQ1hX.js","assets/index-Bs31qh8Y.js","assets/loading-BOl8v60v.js","assets/progress-DrwhSjLc.js"])))=>i.map(i=>d[i]);
2var ut=Object.defineProperty;var dt=(e,t,n)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>dt(e,typeof t!="symbol"?t+"":t,n);import{_ as T}from"./vendor-datadog-D3gwQpHA.js";import{j as r}from"./vendor-radix-6dBKxLfn.js";import{u as Ee,j as b,g as Se,r as d,d as q}from"./vendor-query-jnzAvHUk.js";import{o as g,x,O as we,V as _,a2 as mt,ak as K,e as ht,c as ft,q as S,D as _e,I as ee,B as V,b1 as pt,t as Ne,_ as gt,ar as yt,as as P,N as De,cL as bt}from"./index-CZxwBdsI.js";import{u as w,a as O}from"./vendor-i18n-B-AdlurK.js";import{u as se}from"./use-verify-permission.hook-DJsx5DnT.js";import"./vendor-date-CemE0fj8.js";import{u as xt}from"./use-dismissible-alert-CO1Y6BeF.js";import{S as vt}from"./select-CGLiJPH5.js";import{D as Ct}from"./date-picker-CTwZ8HMm.js";import{A as Tt}from"./access-denied-alert-i46RS9pO.js";const v="GET/concierge/access",Xe="GET/concierge/access-requests/me",At="GET/concierge-ms/organizations/me/analytics";function Et(){return Ee({queryKey:[v],queryFn:()=>g.getInstance().getConciergeAccess().then(({data:t})=>t),useErrorBoundary:!1,retry:!1,refetchOnWindowFocus:!1,staleTime:0,refetchOnMount:"always"})}function St(){return Ee({queryKey:[Xe],queryFn:()=>g.getInstance().getConciergeAccessRequestStatus().then(({data:t})=>t),useErrorBoundary:!1,retry:!1,refetchOnWindowFocus:!1})}function Gr(e){return Ee({queryKey:[At,e],queryFn:()=>g.getInstance().getConciergeAnalytics(e).then(({data:n})=>n),useErrorBoundary:!1,retry:!1,refetchOnWindowFocus:!1,keepPreviousData:!0})}function Vr(){return b(["POST/concierge/briefs"],e=>g.getInstance().createConciergeBrief(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function Wr(){return b(["PUT/concierge/access"],e=>g.getInstance().updateConciergeAccess(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function Qr(){return b(["PUT/concierge/briefs"],({briefId:e,payload:t})=>g.getInstance().updateConciergeBrief(e,t).then(({data:s})=>s).catch(s=>{throw s}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function wt(){return b(["POST/concierge/access-requests"],e=>g.getInstance().createConciergeAccessRequest(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[Xe]})},useErrorBoundary:!1})}function Xr(){return b(["PUT/concierge-ms/api/v1/organizations/me/allowlists"],e=>g.getInstance().replaceConciergeAllowlists(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function Zr(){return b(["PUT/concierge-ms/organizations/me/slack/channels"],e=>g.getInstance().replaceSlackChannels(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function Jr(){return b(["POST/concierge-ms/organizations/me/channels/teams/connect"],e=>g.getInstance().connectMicrosoftTeams(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function es(){return b(["DELETE/concierge-ms/organizations/me/channels/teams"],()=>g.getInstance().disconnectMicrosoftTeams().then(({data:t})=>t).catch(t=>{throw t}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function ts(){return b(["POST/concierge-ms/organizations/me/channels/teams/disable"],()=>g.getInstance().disableMicrosoftTeams().then(({data:t})=>t).catch(t=>{throw t}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function ns(){return b(["POST/concierge-ms/organizations/me/channels/teams/enable"],()=>g.getInstance().enableMicrosoftTeams().then(({data:t})=>t).catch(t=>{throw t}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function rs(){return b(["DELETE/concierge-ms/organizations/me/channels"],e=>g.getInstance().disableConciergeChannel(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function ss(){return b(["POST/concierge-ms/organizations/me/channels/enable"],e=>g.getInstance().enableConciergeChannel(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function as(){return b(["PUT/concierge-ms/organizations/me/teams/channels"],e=>g.getInstance().replaceTeamsChannels(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function os(){return b(["DELETE/concierge/briefs"],e=>g.getInstance().deleteConciergeBrief(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function is(){return b(["POST/concierge/my-briefs"],e=>g.getInstance().createMyConciergeBrief(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function cs(){return b(["PUT/concierge/my-briefs"],({briefId:e,payload:t})=>g.getInstance().updateMyConciergeBrief(e,t).then(({data:s})=>s).catch(s=>{throw s}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}function ls(){return b(["DELETE/concierge/my-briefs"],e=>g.getInstance().deleteMyConciergeBrief(e).then(({data:n})=>n).catch(n=>{throw n}),{onSuccess:()=>{x.invalidateQueries({queryKey:[v]})},useErrorBoundary:!1})}var ae,Pe;
2function _t(){if(Pe)return ae;Pe=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var o,c,u;if(Array.isArray(a)){if(o=a.length,o!=l.length)return!1;for(c=o;c--!==0;)if(!i(a[c],l[c]))return!1;return!0}var m;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(m=a.entries();!(c=m.next()).done;)if(!l.has(c.value[0]))return!1;for(m=a.entries();!(c=m.next()).done;)if(!i(c.value[1],l.get(c.value[0])))return!1;return!0}if(n&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(m=a.entries();!(c=m.next()).done;)if(!l.has(c.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(o=a.length,o!=l.length)return!1;for(c=o;c--!==0;)if(a[c]!==l[c])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(u=Object.keys(a),o=u.length,o!==Object.keys(l).length)return!1;for(c=o;c--!==0;)if(!Object.prototype.hasOwnProperty.call(l,u[c]))return!1;if(e&&a instanceof Element)return!1;for(c=o;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&a.$$typeof)&&!i(a[u[c]],l[u[c]]))return!1;return!0}return a!==a&&l!==l}return ae=function(l,o){try{return i(l,o)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},ae}var jt=_t();const It=Se(jt);var oe,Re;function Ot(){if(Re)return oe;Re=1;var e=function(t,n,s,i,a,l,o,c){if(!t){var u;if(n===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[s,i,a,l,o,c],h=0;u=new Error(n.replace(/%s/g,function(){return m[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return oe=e,oe}var Nt=Ot();const Le=Se(Nt);var ie,ke;function Dt(){return ke||(ke=1,ie=function(t,n,s,i){var a=s?s.call(i,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var l=Object.keys(t),o=Object.keys(n);if(l.length!==o.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<l.length;u++){var m=l[u];if(!c(m))return!1;var h=t[m],f=n[m];if(a=s?s.call(i,h,f,m):void 0,a===!1||a===void 0&&h!==f)return!1}return!0}),ie}var Pt=Dt();const Rt=Se(Pt);var Ze=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Ze||{}),ce={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},qe=Object.values(Ze),je={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Lt=Object.entries(je).reduce((e,[t,n])=>(e[n]=t,e),{}),j="data-rh",F={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},H=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const s=e[n];if(Object.prototype.hasOwnProperty.call(s,t))return s[t]}return null},kt=e=>{let t=H(e,"title");const n=H(e,F.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const s=H(e,F.DEFAULT_TITLE);return t||s||void 0},qt=e=>H(e,F.ON_CHANGE_CLIENT_STATE)||(()=>{}),le=(e,t)=>
2t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,s)=>({...n,...s}),{}),Mt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,s)=>{if(!n.length){const i=Object.keys(s);for(let a=0;a<i.length;a+=1){const o=i[a].toLowerCase();if(e.indexOf(o)!==-1&&s[o])return n.concat(s)}}return n},[]),Bt=e=>console&&typeof console.warn=="function"&&console.warn(e),Y=(e,t,n)=>{const s={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&Bt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,a)=>{const l={};a.filter(c=>{let u;const m=Object.keys(c);for(let f=0;f<m.length;f+=1){const p=m[f],C=p.toLowerCase();t.indexOf(C)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(C==="rel"&&c[C].toLowerCase()==="stylesheet")&&(u=C),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return s[u]||(s[u]={}),l[u]||(l[u]={}),s[u][h]?!1:(l[u][h]=!0,!0)}).reverse().forEach(c=>i.push(c));const o=Object.keys(l);for(let c=0;c<o.length;c+=1){const u=o[c],m={...s[u],...l[u]};s[u]=m}return i},[]).reverse()},$t=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Kt=e=>({baseTag:Mt(["href"],e),bodyAttributes:le("bodyAttributes",e),defer:H(e,F.DEFER),encode:H(e,F.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:le("htmlAttributes",e),linkTags:Y("link",["rel","href"],e),metaTags:Y("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Y("noscript",["innerHTML"],e),onChangeClientState:qt(e),scriptTags:Y("script",["src","innerHTML"],e),styleTags:Y("style",["cssText"],e),title:kt(e),titleAttributes:le("titleAttributes",e),prioritizeSeoTags:$t(e,F.PRIORITIZE_SEO_TAGS)}),Je=e=>Array.isArray(e)?e.join(""):e,Ut=(e,t)=>{const n=Object.keys(e);for(let s=0;s<n.length;s+=1)if(t[n[s]]&&t[n[s]].includes(e[n[s]]))return!0;return!1},ue=(e,t)=>Array.isArray(e)?e.reduce((n,s)=>(Ut(s,t)?n.priority.push(s):n.default.push(s),n),{priority:[],default:[]}):{default:e,priority:[]},Me=(e,t)=>({...e,[t]:void 0}),Ft=["noscript","script","style"],be=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),et=e=>Object.keys(e).reduce((t,n)=>{const s=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${s}`:s},""),Ht=(e,t,n,s)=>{const i=et(n),a=Je(t);return i?`<${e} ${j}="true" ${i}>${be(a,s)}</${e}>`:`<${e} ${j}="true">${be(a,s)}</${e}>`},zt=(e,t,n=!0)=>t.reduce((s,i)=>{const a=i,l=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,m)=>{const h=typeof a[m]>"u"?m:`${m}="${be(a[m],n)}"`;return u?`${u} ${h}`:h},""),o=a.innerHTML||a.cssText||"",c=Ft.indexOf(e)===-1;return`${s}<${e} ${j}="true" ${l}${c?"/>":`>${o}</${e}>`}`},""),tt=(e,t={})=>Object.keys(e).reduce((n,s)=>{const i=je[s];return n[i||s]=e[s],n},t),Yt=(e,t,n)=>{const s={key:t,[j]:!0},i=tt(n,s);return[q.createElement("title",i,t)]},J=(e,t)=>t.map((n,s)=>{const i={key:s,[j]:!0};return Object.keys(n).forEach(a=>{const o=je[a]||a;if(o==="innerHTML"||o==="cssText"){const c=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[o]=n[a]}),q.createElement(e,i)}),E=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>Yt(e,t.title,t.titleAttributes),toString:()=>Ht(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>tt(t),toString:()=>et(t)};default:return{toComponent:()=>J(e,t),toString:()=>zt(e,t,n)}}},Gt=({metaTags:e,linkTags:t,scriptTags:n,encode:s})=>{const i=ue(e,ce.meta),a=ue(t,ce.link),l=ue(n,ce.script);return{priorityMethods:{toComponent:()=>[...J("meta",i.priority),...J("link",a.priority),...J("script",l.priority)],toString:()=>`${E("meta",i.priority,s)} ${E("link",a.priority,s)} ${E("script",l.priority,s)}`},metaTags:i.default,linkTags:a.default,scriptTags:l.default}},Vt=e=>{const{baseTag:t,bodyAttributes:n,encode:s=!0,htmlAttributes:i,noscriptTags:a,styleTags:l,title:o="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:m,metaTags:h,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:m,metaTags:h,scriptTags:f}=Gt(e)),{priority:p,base:E("base",t,s),bodyAttributes:E("bodyAttributes",n,s),htmlAttributes:E("htmlAttributes",i,s),link:E("link",m,s),meta:E("meta",h,s),noscript:E("noscript",a,s),script:E("script",f,s),style:E("style",l,s),title:E("title",{title:o,titleAttributes:c},s)}},xe=Vt,X=[],nt=!!(typeof window<"u"&&window.document&&window.document.createElement),ve=class{constructor(e,t){D(this,"instances",[]);D(this,"canUseDOM",nt);D(this,"context");D(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?X:this.instances,add:e=>{(this.canUseDOM?X:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?X:this.instances).indexOf(e);(this.canUseDOM?X:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=xe({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Wt={},rt=q.createContext(Wt),$,st=($=class extends d.Component{constructor(n){super(n);D(this,"helmetData");this.helmetData=new ve(this.props.context||{},$.canUseDOM)}render(){return q.createElement(rt.Provider,{value:this.helmetData.value},this.props.children)}},D($,"canUseDOM",nt),$),U=(e,t)=>{const n=document.head||document.querySelector("head"),s=n.querySelectorAll(`${e}[${j}]`),i=[].slice.call(s),a=[];let l;return t&&t.length&&t.forEach(o=>{const c=document.createElement(e);for(const u in o)if(Object.prototype.hasOwnProperty.call(o,u))if(u==="innerHTML")c.innerHTML=o.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=o.cssText:c.appendChild(document.createTextNode(o.cssText));else{const m=u,h=typeof o[m]>"u"?"":o[m];c.setAttribute(u,h)}c.setAttribute(j,"true"),i.some((u,m)=>(l=m,c.isEqualNode(u)))?i.splice(l,1):a.push(c)}
2),i.forEach(o=>o.parentNode?.removeChild(o)),a.forEach(o=>n.appendChild(o)),{oldTags:i,newTags:a}},Ce=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const s=n.getAttribute(j),i=s?s.split(","):[],a=[...i],l=Object.keys(t);for(const o of l){const c=t[o]||"";n.getAttribute(o)!==c&&n.setAttribute(o,c),i.indexOf(o)===-1&&i.push(o);const u=a.indexOf(o);u!==-1&&a.splice(u,1)}for(let o=a.length-1;o>=0;o-=1)n.removeAttribute(a[o]);i.length===a.length?n.removeAttribute(j):n.getAttribute(j)!==l.join(",")&&n.setAttribute(j,l.join(","))},Qt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Je(e)),Ce("title",t)},Be=(e,t)=>{const{baseTag:n,bodyAttributes:s,htmlAttributes:i,linkTags:a,metaTags:l,noscriptTags:o,onChangeClientState:c,scriptTags:u,styleTags:m,title:h,titleAttributes:f}=e;Ce("body",s),Ce("html",i),Qt(h,f);const p={baseTag:U("base",n),linkTags:U("link",a),metaTags:U("meta",l),noscriptTags:U("noscript",o),scriptTags:U("script",u),styleTags:U("style",m)},C={},I={};Object.keys(p).forEach(y=>{const{newTags:N,oldTags:L}=p[y];N.length&&(C[y]=N),L.length&&(I[y]=p[y].oldTags)}),t&&t(),c(e,C,I)},G=null,Xt=e=>{G&&cancelAnimationFrame(G),e.defer?G=requestAnimationFrame(()=>{Be(e,()=>{G=null})}):(Be(e),G=null)},Zt=Xt,$e=class extends d.Component{constructor(){super(...arguments);D(this,"rendered",!1)}shouldComponentUpdate(t){return!Rt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let s=null;const i=Kt(t.get().map(a=>{const l={...a.props};return delete l.context,l}));st.canUseDOM?Zt(i):xe&&(s=xe(i)),n(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ye,Jt=(ye=class extends d.Component{shouldComponentUpdate(e){return!It(Me(this.props,"helmetData"),Me(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,s){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,s)}]}}mapObjectTypeChildren(e,t,n,s){switch(e.type){case"title":return{...t,[e.type]:s,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(s=>{n={...n,[s]:e[s]}}),n}warnOnInvalidChildren(e,t){return Le(qe.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${qe.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Le(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return q.Children.forEach(e,s=>{if(!s||!s.props)return;const{children:i,...a}=s.props,l=Object.keys(a).reduce((c,u)=>(c[Lt[u]||u]=a[u],c),{});let{type:o}=s;
2switch(typeof o=="symbol"?o=o.toString():this.warnOnInvalidChildren(s,i),o){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(s,n,l,i);break;default:t=this.mapObjectTypeChildren(s,t,l,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:s}=t;if(e&&(n=this.mapChildrenToProps(e,n)),s&&!(s instanceof ve)){const i=s;s=new ve(i.context,!0),delete n.helmetData}return s?q.createElement($e,{...n,context:s.value}):q.createElement(rt.Consumer,null,i=>q.createElement($e,{...n,context:i}))}},D(ye,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),ye);const en=()=>r.jsx(we,{}),tn=({titleKey:e,titleDefault:t,code:n})=>{const{t:s}=w(),i=s(e,t),a=n?`${n} | ${i}`:i;return r.jsx(Jt,{children:r.jsx("title",{children:a})})},nn=8,te=()=>{const{t:e}=w();return r.jsxs("div",{"data-testid":"structure-page-loading",className:"px-6 py-8 space-y-6 animate-in fade-in duration-300",role:"status","aria-live":"polite",children:[r.jsx("span",{className:"sr-only",children:e("a11y.loadingPage","Loading page content")}),r.jsx(_,{className:"h-5 w-48"}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx(_,{className:"h-9 w-64"}),r.jsx(_,{className:"h-9 w-28"})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(_,{className:"h-10 w-[180px]"}),r.jsx(_,{className:"h-10 flex-1 max-w-md"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(_,{className:"h-8 w-24"}),r.jsx(_,{className:"h-8 w-24"}),r.jsx(_,{className:"h-8 w-24"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(_,{className:"h-10 w-full"}),Array.from({length:nn},(t,n)=>`row-${n}`).map(t=>r.jsx(_,{className:"h-14 w-full"},t))]}),r.jsx("div",{className:"flex justify-end",children:r.jsx(_,{className:"h-8 w-64"})})]})},de={MANAGE_ADMIN:"manage_payment_concierge",MANAGE_MEMBER:"manage_member_payment_concierge",VIEW_ADMIN:"view_payment_concierge"},Ie=()=>{const{statusPermission:e}=se(de.MANAGE_ADMIN),{statusPermission:t}=se(de.MANAGE_MEMBER),{statusPermission:n}=se(de.VIEW_ADMIN),{impersonationStorage:s}=mt(),i=s?.active===!0,a=e===K.ALLOWED,l=t===K.ALLOWED,o=n===K.ALLOWED,c=a||i&&o,u=!c&&(l||o);return{canView:c||u,isAdmin:c,canEdit:a,isMember:u,isLoading:e===K.LOADING||t===K.LOADING||n===K.LOADING}},at=d.createContext(null),rn=({children:e})=>{const{isAdmin:t,canEdit:n,isMember:s,isLoading:i}=Ie(),a=d.useMemo(()=>({isAdmin:t,canEdit:n,isMember:s,readOnly:t&&!n,isLoading:i}),[t,n,s,i]);return r.jsx(at.Provider,{value:a,children:e})},sn=()=>{const e=d.useContext(at);if(!e)throw new Error("useConciergeView must be used inside <ConciergeViewProvider>.");return e},an="box-border flex items-center justify-center px-2.5 py-3.5 h-12 text-sm font-normal border-b-2 cursor-pointer bg-transparent",on="border-primary text-foreground",cn="border-transparent text-muted-foreground hover:text-foreground",ln="flex w-full flex-col items-center pb-12 pt-10",Ke="payment-concierge-tabpanel",Ue=e=>`pc-tab-${e.replace(/[^a-z0-9]+/gi,"-").replace(/(^-|-$)/g,"")||"root"}`,Fe=[{path:"/concierge",labelKey:"nav.access",defaultLabel:"Access",adminOnly:!0},{path:"/concierge/scheduled-tasks",labelKey:"nav.scheduledTasks",defaultLabel:"Scheduled tasks"},{path:"/concierge/knowledge",labelKey:"nav.knowledge",defaultLabel:"Concierge knowledge",adminOnly:!0},{path:"/concierge/analytics",labelKey:"nav.analytics",defaultLabel:"Concierge analytics",adminOnly:!0}],un=({label:e,active:t,onClick:n,id:s,panelId:i,"data-testid":a})=>{const l=d.useCallback(c=>{c.preventDefault(),n()},[n]),o=d.useCallback(c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),n())},[n]);return r.jsx("button",{type:"button",role:"tab",id:s,"aria-selected":t,"aria-controls":i,"data-testid":a,onClick:l,onKeyDown:o,className:S(an,t&&on,!t&&cn),children:e})},dn=e=>`tab-link-${e.replace(/^\/concierge\/?/,"")||"concierge"}`,mn=()=>{const{t:e}=w(),t=ht(),n=ft(),{isLoading:s,isAdmin:i}=sn(),a=d.useMemo(()=>Fe.filter(o=>i||!o.adminOnly),[i]),l=a.find(o=>t.pathname===o.path);return d.useEffect(()=>{if(s)return;Fe.find(c=>c.path===t.pathname)?.adminOnly&&!i&&n("/concierge/scheduled-tasks",{replace:!0})},[i,s,t.pathname,n]),r.jsxs(r.Fragment,{children:[r.jsx(tn,{titleKey:"pageTitle.paymentConcierge",titleDefault:"Payments Concierge"}),r.jsxs("div",{className:"flex w-full flex-col gap-6",children:[r.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:r.jsx("p",{className:"animate-cascade text-3xl font-semibold text-foreground [animation-delay:80ms]","data-testid":"payment-concierge-title",children:e("concierge.title","Payments Concierge")})}),a.length>1&&r.jsx("nav",{className:"animate-cascade flex w-full items-start [animation-delay:160m
2s]",role:"tablist","aria-label":e("nav.paymentConciergeTabs","Payments Concierge navigation tabs"),"data-testid":"tabbed-layout-tablist",children:a.map(o=>r.jsx(un,{id:Ue(o.path),panelId:Ke,label:e(o.labelKey,o.defaultLabel),active:t.pathname===o.path,onClick:()=>n(o.path),"data-testid":dn(o.path)},o.path))})]}),r.jsx("div",{role:"tabpanel",id:Ke,"aria-labelledby":a.length>1&&l?Ue(l.path):void 0,tabIndex:0,className:ln,children:s?r.jsx(te,{}):r.jsx(we,{})})]})},hn=()=>r.jsx(rn,{children:r.jsx(mn,{})}),fn=7,pn=()=>{const e=new Date;return e.setHours(0,0,0,0),e.setDate(e.getDate()+fn),e},gn=e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${s}`},yn=e=>({channel:e.channel,slack_setup:null,group_name:"",activation_date:gn(new Date(e.desiredActivationDate))}),ot=(e={})=>{const{data:t,isLoading:n}=Et(),{data:s,isLoading:i}=St(),a=wt(),{mutate:l}=a,o=d.useRef(e);d.useEffect(()=>{o.current=e});const[c,u]=d.useState(null),[m,h]=d.useState(!1),f=s,p=f?.id?f:f?.data??null,C=p?.status==="enabled"&&!!p?.organization_code,I=p?.id,y=!C&&(!!I||m),N=d.useCallback(M=>{u(M),h(!0),l(yn(M),{onSuccess:()=>{o.current.onSuccess?.()},onError:k=>{u(null),h(!1);const A=k instanceof Error?k:new Error(String(k));o.current.onError?.(A)}})},[l]),L=d.useCallback(()=>{u(null),h(!1)},[]);return{isLoading:n||i,hasAccess:C,hasRequested:y,requestPayload:c,isSubmitting:a.isPending,submitRequest:N,resetRequest:L}},bn="concierge-onboarding",xn=e=>{const{isDismissed:t,dismiss:n}=xt(bn),[s,i]=d.useState(!1),a=d.useRef(!1);d.useEffect(()=>{e&&!t&&!a.current&&(a.current=!0,i(!0),n())},[e,t,n]);const l=d.useCallback(()=>i(!1),[]);return{shouldShow:s,markSeen:l}},vn="/assets/onboarding-slide-1-CKO_uTry.png",Cn="/assets/onboarding-slide-2-B_ywWyft.png",Tn="/assets/onboarding-slide-3-CjWNirPB.png",An=800,Te=[{imageSrc:vn,eyebrowKey:"onboarding.eyebrow",eyebrowDefault:"PAYMENTS CONCIERGE",titleKey:"onboarding.slide1.title",titleDefault:"Your Payments Concierge is ready!",bodyKey:"onboarding.slide1.body",bodyDefault:"Welcome to your new AI-powered agent. From now on, you'll receive automated monitoring, real-time alerts, and performance summaries 24/7 to keep your operations optimized."},{imageSrc:Cn,eyebrowKey:"onboarding.eyebrow",eyebrowDefault:"PAYMENTS CONCIERGE",titleKey:"onboarding.slide2.title",titleDefault:"Tailor your briefings",bodyKey:"onboarding.slide2.body",bodyDefault:'Go to the "Briefing configuration" tab to create one or more briefings — each with its own frequency (daily, weekly, or monthly), language, time, and the specific insights you want to see. Tell the AI exactly what matters most to your business.'},{imageSrc:Tn,eyebrowKey:"onboarding.eyebrow",eyebrowDefault:"PAYMENTS CONCIERGE",titleKey:"onboarding.slide3.title",titleDefault:"Connect your favorite apps",bodyKey:"onboarding.slide3.body",bodyDefault:'Finally, head over to "Communication channels" to authorize your Slack, WhatsApp, or Telegram groups. Remember to invite the agent to the channel first so it can start delivering your data.'}],He=Te.length-1,En=({open:e,onClose:t})=>{const{t:n}=w(),[s,i]=d.useState(0);d.useEffect(()=>{e&&i(0)},[e]);const a=d.useMemo(()=>Te[s],[s]),l=s===0,o=s===He,c=d.useCallback(()=>{if(s>=He){t();return}i(h=>h+1)},[s,t]),u=d.useCallback(()=>{i(h=>h>0?h-1:h)},[]),m=o?n("onboarding.actions.checkItOut","Check it out"):n("onboarding.actions.next","Next");return r.jsx(_e,{open:e,closeIcon:t,withHeader:!1,"aria-label":n("onboarding.dialogAria","Payment Concierge onboarding"),showActions:!1,widthContainer:An,contentClassName:"!p-0 !overflow-hidden","data-testid":"concierge-onboarding-dialog",children:r.jsxs("div",{className:"flex flex-col",children:[r.jsxs("div",{className:"flex items-stretch",children:[r.jsx("div",{className:"size-[400px] shrink-0 overflow-hidden bg-muted max-sm:hidden",children:r.jsx("img",{src:a.imageSrc,alt:"",className:"size-full object-cover","data-testid":`concierge-onboarding-image-${s+1}`})}),r.jsxs("div",{className:"flex flex-1 flex-col gap-6 p-6",children:[r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{type:"button",onClick:t,"aria-label":n("onboarding.actions.close","Close"),"data-testid":"concierge-onboarding-close",className:"text-foreground opacity-70 transition-opacity hover:opacity-100",children:r.jsx(ee,{name:"X",size:"sm"})})}),r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("span",{className:"text-xs font-bold leading-none text-primary","data-testid":"concierge-onboarding-eyebrow",children:n(a.eyebrowKey,a.eyebrowDefault)}),r.jsx("h2",{className:"text-lg font-semibold leading-none tracking-tight text-foreground","data-testid":"concierge-onboarding-title",children:n(a.titleKey,a.titleDefault)}),r.jsx("p",{className:"text-sm leading-5 text-muted-foreground","data-testid":"concierge-onboarding-body",children:n(a.bodyKey,a.bodyDefault)})]})]})]}),r.jsxs("div",{className:"relative flex items-center justify-between border-t border-border p-6",children:[r.jsx("div",{children:!l&&r.jsx(V,{variant:"outline",onClick:u,"data-testid":"concierge-onboarding-back",children:n("onboarding.actions.back","Back")})}),r.jsx("span",{className:S("absolute left-1/2 -translate-x-1/2 text-sm text-muted-foreground"),"data-testid":"concierge-onboarding-pagination",children:n("onboarding.pagination","{{current}} of {{total}}",{current:s+1,total:Te.length})}),r.jsxs(V,{onClick:c,"data-testid":"concierge-onboarding-next",children:[m,!o&&r.jsx(ee,{name:"ArrowRight",size:"sm"})]})]})]})})},it=[{value:"slack",labelKey:"requestAccess.channels.slack.label",defaultLabel:"Slack"},{value:"whatsapp",labelKey:"requestAccess.channels.whatsapp.label",defaultLabel:"WhatsApp"},{value:"telegram",labelKey:"requestAccess.channels.telegram.label",defaultLabel:"Telegram"},{value:"microsoft_teams",labelKey:"requestAccess.channels.microsoftTeams.label",defaultLabel:"Microsoft Teams"}],Sn={channel:it[0].value,activationDate:void 0,acceptedTerms:!1},wn=()=>{const{t:e}
2=w(),[t,n]=d.useState(Sn),s=d.useCallback((o,c)=>{n(u=>({...u,[o]:c}))},[]),i=d.useMemo(()=>it.map(o=>{const c=e(o.labelKey,o.defaultLabel),u=o.hintKey&&o.defaultHint?e(o.hintKey,o.defaultHint):null;return{value:o.value,label:u?`${c} (${u})`:c}}),[e]),a=pn(),l=t.activationDate!==void 0&&t.activationDate.getTime()>=a.getTime()&&t.acceptedTerms;return{form:t,update:s,channelOptions:i,minActivationDate:a,canSubmit:l}},ze="https://y.uno/terms-and-conditions",_n=r.jsxs(r.Fragment,{children:["This Annex forms an integral part of the Agreement and governs Company’s activation and use of AI Concierge, a conversational artificial-intelligence feature that enables Company to query, monitor, and analyze its payment operations through third-party messaging channels (the “Concierge”). Capitalized terms used but not defined herein have the meaning given to them in the Terms and Conditions, available at"," ",r.jsx("a",{href:ze,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline underline-offset-2",children:ze})," ","and the corresponding Purchase Order. In the event of a conflict between this Annex and the Terms and Conditions with respect to the Concierge, this Annex shall prevail; in all other matters, the Terms and Conditions and the Data Processing Agreement shall govern."]}),jn="Definitions specific to this Annex.",In=["“Authorized Administrator” means a User granted administrator-level permissions by Company and duly authorized to activate, configure, and operate the Concierge on Company’s behalf.","“Channel Provider” means each independent third-party operator of a Messaging Channel.","“Concierge Inputs” means the materials Company elects to upload for processing by the Concierge, including payment service provider rate sheets, commercial agreements, and fee schedules.","“Concierge Outputs” means any analysis, comparison, summary, alert, report, chart, or other content generated by the Concierge.","“Messaging Channels” means the third-party messaging services through which the Concierge is made available, which may include Slack, WhatsApp, and Telegram."],On=[{number:"1",title:"Activation",clauses:[{number:"1.1",title:"Opt-In.",content:"The Concierge is an optional, opt-in feature. Activation requires Company’s affirmative acceptance of this Annex through the mechanism made available by Yuno."},{number:"1.2",title:"Authorized Administrator.",content:"Only an Authorized Administrator may activate, configure, or deactivate the Concierge and designate the Messaging Channels through which it operates. Company is solely responsible for ensuring that each Authorized Administrator is duly authorized to bind Company under this Annex. Yuno may rely on the actions of any Authorized Administrator as actions of Company."}]},{number:"2",title:"Functional Scope and Informational Character",clauses:[{number:"2.1",title:"Scope.",content:"The Concierge enables Company to (i) query its transaction and operational data; (ii) obtain comparative analyses of payment service provider performance based on Company’s own data and the Concierge Inputs; (iii) receive scheduled summaries and anomaly alerts; (iv) generate on-demand reports; and (v) access additional functionalities Yuno may release. Yuno may modify available functionalities upon reasonable notice."},{number:"2.2",title:"Informational Tool; No Advice.",content:"The Concierge is a comparative and informational tool. Concierge Outputs do not constitute financial, legal, tax, accounting, commercial, investment, or other professional advice, and Yuno does not act as Company’s advisor, broker, or consultant. The Concierge does not direct, recommend, or instruct Company to engage, terminate, prefer, or avoid any particular payment service provider, payment method, or commercial term. Company retains exclusive control over all routing, contracting, pricing, and operational decisions and is solely responsible for verifying the accuracy and currency of underlying information directly with each payment service provider before acting on any Concierge Output."},{number:"2.3",title:"As-Available.",content:"The Concierge is provided on an as-available basis. Yuno does not warrant that it will be uninterrupted, error-free, or sufficient as the sole basis for any decision."}]},{number:"3",title:"Concierge Inputs",clauses:[{number:"3.1",title:"Accuracy and Authority.",content:"Company represents and warrants that all Concierge Inputs are accurate, current, and lawfully held, and that Company has obtained all rights, consents, and authorizations necessary to disclose them to Yuno. Yuno has no obligation to verify the accuracy or currency of any Concierge Input."},{number:"3.2",title:"No Cross-Company Use.",content:"Yuno shall not disclose Concierge Inputs, Concierge Outputs, or Company-specific transactional data to any other Yuno customer, nor use Concierge Inputs to generate outputs for any third party. Any cross-merchant benchmarking functionality shall require Company’s separate, express opt-in."}]},{number:"4",title:"Messaging Channels and Data Delivery",clauses:[{number:"4.1",title:"Third-Party Channels.",content:"Company acknowledges that Messaging Channels are operated by independent Channel Providers under their own terms of service and privacy policies, and that the use of any Messaging Channel involves processing by the applicable Channel Provider on its own infrastru
2cture."},{number:"4.2",title:"OTP-Protected Delivery.",content:"To preserve the confidentiality of Company’s data, granular transactional information, full reports, and bulk extractions shall not be transmitted as plain content or open attachments through the Messaging Channels. Such content shall be made available solely through an encrypted file or a download link, in either case protected by a one-time password (“OTP”) issued by Yuno and delivered separately to the verified contact of the requesting Authorized Administrator or User. The OTP shall be required to access the underlying content. The download link or encrypted file shall expire after a limited period defined by Yuno, and Yuno may invalidate any link, file, or OTP at any time. Summarized highlights, alerts, and conversational responses transmitted through the Messaging Channels are limited in scope for that purpose."},{number:"4.3",title:"Recipient-Side Risk.",content:"Company acknowledges that messages, alerts, links, and OTPs delivered through the Messaging Channels are received on devices and accounts controlled by Company’s personnel and that Yuno cannot prevent forwarding, screen capture, export, or other recipient-side actions. Company assumes responsibility for the access controls applicable to such devices and accounts and for the conduct of its Users."}]},{number:"5",title:"Concierge-Specific Use Restrictions",body:"Without limiting Section 10 (Use Restrictions and Prohibited Activities) of the Terms and Conditions, Company shall not, and shall not permit any User or third party to: (i) submit as Concierge Inputs any materials Company is contractually or legally prohibited from disclosing to Yuno; (ii) use the Concierge or any Concierge Output to engage in any practice prohibited under applicable competition or antitrust laws, including the exchange of competitively sensitive information with any third party; or (iii) represent any Concierge Output to a third party as financial, legal, tax, or commercial advice issued by Yuno."},{number:"6",title:"Deactivation and Suspension",clauses:[{number:"6.1",title:"Deactivation by Company.",content:"Company may deactivate the Concierge at any time through the mechanism made available by Yuno or by written notice. Deactivation shall halt the generation of new Concierge Outputs and the transmission of new content through the Messaging Channels."},{number:"6.2",title:"Suspension or Termination by Yuno.",content:"Yuno may suspend or terminate Company’s access to the Concierge, with reasonable notice where practicable, in the event of (i) a breach of this Annex or the Terms and Conditions; (ii) a requirement under applicable law; (iii) a material change in any Channel Provider’s terms or availability; (iv) the discontinuation of the Concierge; or (v) at Yuno’s sole discretion, with thirty (30) days’ prior written notice."},{number:"6.3",title:"Effects.",content:"Upon deactivation or termination, Company’s right to access and use the Concierge ceases. Yuno may retain logs and prior Concierge Outputs solely as necessary to comply with applicable law and the Data Processing Agreement. Sections 3.2, 4, 5, and any other provision that by its nature should survive shall remain in effect."}]}],Nn="mt-6 text-base font-semibold text-foreground",Dn="mt-4 text-sm font-semibold text-foreground",Oe="mt-2 text-sm leading-relaxed text-justify text-muted-foreground",Pn="mt-2 ml-5 list-disc text-sm leading-relaxed text-justify text-muted-foreground",Rn="italic",Ln=({clause:e})=>r.jsxs("p",{className:Oe,children:[e.number," ",r.jsx("span",{className:Rn,children:e.title})," ",e.content]}),kn=({section:e})=>r.jsxs(r.Fragment,{children:[r.jsxs("h3",{className:Nn,children:[e.number,". ",e.title]}),e.clauses?e.clauses.map(t=>r.jsx(Ln,{clause:t},t.number)):r.jsx("p",{className:Oe,children:e.body})]}),qn=({open:e,onClose:t,onAccept:n})=>{const{t:s}=w(),i=()=>{n(),t()};return r.jsx(_e,{open:e,closeIcon:t,title:s("requestAccess.terms.title","AI Concierge Terms and Conditions"),widthContainer:820,heightContainer:720,contentClassName:"overflow-y-auto","data-testid":"terms-and-conditions-dialog",buttons:[{children:s("commons.cancel","Cancel"),variant:"outline",onClick:t},{children:s("requestAccess.terms.accept","Accept"),onClick:i}],children:r.jsxs("div",{className:"flex flex-col text-sm text-foreground",children:[r.jsx("p",{className:Oe,children:_n}),r.jsx("h3",{className:Dn,children:jn}),r.jsx("ul",{className:Pn,children:In.map(a=>r.jsx("li",{children:a},a))}),On.map(a=>r.jsx(kn,{section:a},a.number))]})})},me="block text-sm font-medium leading-none text-foreground",Mn=({open:e,onClose:t,onSubmit:n})=>{const{t:s}
2=w(),i=d.useId(),a=d.useId(),l=d.useId(),[o,c]=d.useState(!1);d.useEffect(()=>{e||c(!1)},[e]);const{form:u,update:m,channelOptions:h,minActivationDate:f,canSubmit:p}=wn(),{channel:C,activationDate:I,acceptedTerms:y}=u,N=z=>{m("channel",z)},L=z=>{m("activationDate",z)},M=z=>{m("acceptedTerms",z.target.checked)},k=()=>{!p||!I||n({channel:C,desiredActivationDate:I.toISOString()})},A={onChange:M},W={onChange:L},Q=()=>c(!0),re=()=>c(!1),lt=()=>m("acceptedTerms",!0);return r.jsxs(r.Fragment,{children:[r.jsx(_e,{open:e,closeIcon:t,title:s("requestAccess.dialog.title","Request access"),widthContainer:768,"data-testid":"request-access-dialog",buttons:[{children:s("commons.cancel","Cancel"),variant:"outline",onClick:t},{children:s("requestAccess.hero.requestAccess","Request access"),onClick:k,disabled:!p}],children:r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2",children:[r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx("label",{htmlFor:i,className:me,children:s("requestAccess.dialog.channelLabel","Primary communication channel")}),r.jsx(vt,{id:i,value:C,options:h,onChange:N,"data-testid":"request-access-channel-select"})]}),r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx("label",{htmlFor:a,className:me,children:s("requestAccess.dialog.activationDateLabel","Desired activation date")}),r.jsx(Ct,{id:a,placeholder:s("requestAccess.dialog.pickDate","Pick a date"),date:I,minDate:f,...W,"data-testid":"request-access-activation-date"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:s("requestAccess.dialog.activationDateMinHint","Pick a date at least 7 days from today")})]})]}),r.jsx("hr",{className:"w-full border-t border-border"}),r.jsxs("div",{className:"flex items-start gap-2",children:[r.jsx(pt,{id:l,checked:y,...A,"data-testid":"request-access-terms"}),r.jsxs("div",{className:S(me,"flex flex-wrap items-center gap-x-1"),children:[r.jsx("label",{htmlFor:l,className:"cursor-pointer",children:s("requestAccess.dialog.termsLabelPrefix","I have read and agree to the ")}),r.jsx("button",{type:"button",onClick:Q,className:"cursor-pointer bg-transparent p-0 text-sm font-medium leading-none text-foreground underline underline-offset-2","data-testid":"request-access-terms-link",children:s("requestAccess.dialog.termsLabelLink","Terms and Conditions.")})]})]})]})}),r.jsx(qn,{open:o,onClose:re,onAccept:lt})]})},Bn="/assets/hero-bg-dark-B0P1iFwm.png",$n="/assets/hero-bg-light-oDUjh_tC.png",Kn="/assets/highlight_4-DzRybSpW.png",Un="dark",he=()=>typeof document>"u"?!1:document.documentElement.classList.contains(Un),Fn=()=>{const[e,t]=d.useState(he);return d.useEffect(()=>{if(typeof document>"u")return;t(he());const n=new MutationObserver(()=>{t(he())});return n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()},[]),e},Hn="https://ai.y.uno/payments-concierge",zn="text-[clamp(64px,6.6vw,168px)] font-semibold leading-none tracking-tight text-foreground",Yn=({onRequestAccess:e})=>{const{t}=w(),{canEdit:n}=Ie(),s=Fn();return r.jsxs("section",{"data-testid":"request-access-hero",className:"relative w-full overflow-hidden rounded-lg border border-border bg-card p-12",children:[r.jsx("img",{src:s?Bn:$n,alt:"","aria-hidden":"true","data-testid":"request-access-hero-bg",className:"pointer-events-none absolute inset-0 h-full w-full object-cover object-bottom"}),r.jsxs("div",{className:"relative flex flex-col items-start gap-8 pr-0 lg:pr-[36%]",children:[r.jsxs("div",{className:"flex flex-col gap-8",children:[r.jsxs("h2",{className:zn,children:[t("requestAccess.hero.titleLineOne","Your intelligent"),r.jsx("br",{}),r.jsx("span",{className:"text-primary",children:t("requestAccess.hero.titleLineTwo","payments agent.")})]}),r.jsxs("p",{className:"text-muted-foreground max-w-[760px] text-base leading-6",children:[t("requestAccess.hero.descriptionLineOne","AI-powered agent to monitor your payment stack, deliver real-time alerts and recommendations."),r.jsx("br",{}),t("requestAccess.hero.descriptionLineTwo","Recover more revenue, route smarter, and never get caught off guard again.")]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[n&&r.jsx(V,{onClick:e,"data-testid":"request-access-hero-cta",children:t("requestAccess.hero.requestAccess","Request access")}),r.jsx(V,{variant:"ghost",asChild:!0,"data-testid":"request-access-hero-learn-more",children:r.jsxs("a",{href:Hn,target:"_blank",rel:"noopener noreferrer",children:[t("requestAccess.hero.learnMore","Learn more"),r.jsx(ee,{name:"ArrowRight",size:"sm",weight:"light"})]})})]}),!n&&r.jsx("p",{className:"max-w-[760px] text-base font-semibold leading-6 text-foreground","data-testid":"request-access-hero-admin-contact",children:t("requestAccess.hero.adminContact","Contact your account admin to request Payment Concierge access for your team.")}),r.jsx("hr",{className:"w-full border-t border-border"}),r.jsxs("p",{className:"text-muted-foreground text-base leading-6",children:[t("requestAccess.hero.compatiblePrefix","Compatible with")," ",r.jsx("span",{className:"font-semibold text-foreground",children:t("requestAccess.channels.whatsapp.label","WhatsApp")}),", ",r.jsx("span",{className:"font-semibold text-foreground",children:t("requestAccess.channels.slack.label","Slack")})," ",t("requestAccess.hero.and","and")," ",r.jsx("span",{className:"font-semibold text-foreground",children:t("requestAccess.channels.telegram.label","Telegram")}),t("requestAccess.hero.compatibleSuffix",", or in the interface of your choice.")]})]}),r.jsx("div",{className:"pointer-events-none absolute bottom-0 right-12 top-12 w-[33%] overflow-hidden max-lg:hidden",children:r.jsx("img",{src:Kn,alt:t("requestAccess.hero.silhouetteAlt","Yuno Payments Concierge"),className:"h-full w-full object-contain object-bottom"})})]})},Gn=e=>e<=1?fe.ring0:e===2?fe.ring2:fe.ring3,Ye=10,Vn=80,Wn="var(--foreground)",Qn="color-mix(in srgb, var(--primary) 30%, transparent)",Xn=1.5,Zn=3,Jn=3,er=6,tr=.3,nr=.25,rr=.15,sr=1.2,Ge=.4,ar=40,or=80,ir=120,Ve=200,fe={ring0:1,ring2:.7,ring3:.45},cr=6,lr=3,ur=1,dr=[{cx:10.1,cy:6.5,r:8.8,ring:0},{cx:13.2,cy:11.8,r:8.8,ring:0},{cx:15.9,cy:6.7,r:8.8,ring:0},{cx:10.1,cy:16.7,r:8.8,ring:0},{cx:4.3,cy:6.7,r:8.8,ring:0},{cx:7.1,cy:11.8,r:8.8,ring:0},{cx:15.9,cy:13.4,r:8,ring:1},{cx:4.6,cy:13.2,r:8,ring:1},{cx:10.1,cy:3.3,r:7,ring:1},{cx:19.7,cy:10,r:5,ring:2},{cx:14.7,cy:1.7,r:4.8,ring:2},{cx:.5,cy:10,r:4.6,ring:2},{cx:14.8,cy:18.4,r:4.5,ring:2},{cx:5.3,cy:1.8,r:4.7,ring:2},{cx:5.4,cy:18.4,r:4.8,ring:2},{cx:3.5,cy:9.9,r:4.4,ring:2},{cx:16.8,cy:10,r:4.5,ring:2},{cx:2,cy:5.1,r:3.5,ring:3},{cx:6.9,cy:4,r:3.5,ring:3},{cx:7,cy:15.7,r:3.5,ring:3},{cx:10.1,cy:19.7,r:3.5,ring:3},{cx:13.3,cy:4.1,r:3.5,ring:3},{cx:10.1,cy:.5,r:3.5,ring:3},{cx:18.5,cy:5.1,r:3.5,ring:3},{cx:18.3,cy:14.9,r:3.5,ring:3},{cx:13.2,cy:15.9,r:3.5,ring:3},{cx:2,cy:14.8,r:3.5,ring:3}],mr="M12.9171 6.70587C13.0027 6.69438 13.1247 6.69701 13.2107 6.70648C14.0396 6.79778 14.5882 7.52503 14.4968 8.33908C14.456 8.71198 14.2684 9.05318 13.9755 9.28682C13.54 9.63441 12.9712 9.71337 12.4501 9.49006C12.3052 9.42797 12.1305 9.27005 11.9635 9.25806C11.8197 9.24775 11.6866 9.31372 11.5796 9.40605C11.4062 9.55571 11.4487 9.77448 11.4348 9.99135C11.4125 10.4233 11.2104 10.8309 10.8585 11.0888C10.6469 11.2438 10.3354 11.3524 10.3263 11.6708C10.3131 12.1212 10.735 12.1567 10.9926 12.4213C11.2705 12.7069 11.4437 13.0819 11.4392 13.4879C11.4351 13.8629 11.2604 14.2553 10.9915 14.5185C10.7078 14.7961 10.3363 14.9337 9.93927 14.926C9.54855 14.9194 9.1772 14.7542 8.91018 14.4682C8.65069 14.1891 8.51051 13.8193 8.51964 13.4379C8.53244 13.0007 8.74257 12.5757 9.09419 12.3111C9.2178 12.2181 9.39492 12.1347 9.50053 12.0361C9.58871 11.9421 9.64777 11.8201 9.63873 11.6892C9.61345 11.3228 9.24992 11.2267 9.0101 11.014C8.63064 10.6775 8.5304 10.3135 8.51236 9.81968C8.50719 9.67859 8.44989 9.49214 8.33288 9.41047C7.99876 9.16329 7.7818 9.40804 7.4924 9.53338C6.58219 9.9275 5.50307 9.31286 5.46173 8.29854C5.4444 7.87279 5.55339 7.51521 5.83417 7.20389C6.08142 6.92818 6.42867 6.76336 6.79813 6.74631C7.22841 6.72596 7.58645 6.83844 7.90796 7.13053C8.1194 7.32834 8.29279 7.62965 8.34144 7.91531C8.38856 8.19175 8.28713 8.48384 8.52829 8.69202C8.84754 8.9676 9.10818 8.72801 9.4112 8.59198C9.54736 8.53071 9.69272 8.49245 9.84133 8.47872C10.0859 8.45399 10.3327 8.49366 10.5573 8.5938C10.8489 8.72484 11.1138 8.98359 11.4438 8.6963C11.6746 8.49536 11.575 8.17604 11.62 7.89896C11.6606 7.66074 11.7614 7.43689 11.9128 7.24878C12.1775 6.92454 12.5032 6.74944 12.9171 6.70587Z",B=(e,t)=>e+Math.random()*(t-e),hr=({size:e=Vn,className:t,color:n=Wn,glow:s=Qn,"data-testid":i})=>{const a=d.useRef(null),l=d.useRef(null),o=d.useRef(null),c=d.useRef(!1);return d.useEffect(()=>{const u=a.current;u&&(u.style.cssText=`width:${e}px;height:${e}px;`)},[e]),d.useEffect(()=>{const u=l.current;if(!u||c.current)return;c.current=!0;const m=e/20,h=e/Ve;dr.forEach(f=>{const p=f.r*h,C=f.cx*m-p/2,I=f.cy*m-p/2,y=document.createElement("div");y.className="alogo-orbit",y.style.cssText=`position:absolute;
2left:${C}px;top:${I}px;width:${p}px;height:${p}px;will-change:transform;`;const N=B(Xn,Zn)*(e/Ve),L=B(0,Math.PI*2),M=tr+f.ring*nr+B(0,rr),k=M+sr;y.style.setProperty("--orbit-x",`${Math.cos(L)*N}px`),y.style.setProperty("--orbit-y",`${Math.sin(L)*N}px`),y.style.setProperty("--orbit-dur",`${B(Jn,er)}s`),y.style.setProperty("--orbit-delay",`${k}s`);const A=document.createElement("div");A.className="alogo-dot",A.style.cssText=`width:100%;height:100%;border-radius:50%;background:${n};will-change:transform,opacity,filter;`;const W=Math.atan2(f.cy-Ye,f.cx-Ye)+B(-Ge,Ge),Q=B(ar,or)*(e/ir),re=Gn(f.ring);A.style.setProperty("--scatter-x",`${Math.cos(W)*Q}px`),A.style.setProperty("--scatter-y",`${Math.sin(W)*Q}px`),A.style.setProperty("--assemble-delay",`${M}s`),A.style.setProperty("--final-opacity",`${re}`),A.style.setProperty("--glow-size",f.ring<=1?`${cr}px`:`${lr}px`),A.style.setProperty("--pulse-delay",`${k+B(0,ur)}s`),y.appendChild(A),u.appendChild(y)})},[e,n]),r.jsxs("div",{ref:a,className:S("relative",t),"data-testid":i??"animated-logo",children:[r.jsx("div",{ref:l,className:"relative w-full h-full"}),r.jsx("svg",{ref:o,viewBox:"0 0 20 20",className:"absolute inset-0 w-full h-full opacity-0 alogo-central",children:r.jsx("path",{d:mr,fill:n})}),r.jsx("style",{children:`
3        .alogo-orbit {
4          animation: alogo-orbit-kf var(--orbit-dur) var(--orbit-delay) ease-in-out infinite alternate;
5        }
6        @keyframes alogo-orbit-kf {
7          0%   { transform: translate(0, 0); }
8          100% { transform: translate(var(--orbit-x), var(--orbit-y)); }
9        }
10        .alogo-dot {
11          opacity: 0;
12          transform: translate(var(--scatter-x), var(--scatter-y)) scale(0);
13          filter: blur(4px);
14          animation:
15            alogo-assemble 1.2s var(--assemble-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards,
16            alogo-pulse var(--pulse-dur, 3s) var(--pulse-delay) ease-in-out infinite alternate;
17        }
18        @keyframes alogo-assemble {
19          0% {
20            opacity: 0;
21            transform: translate(var(--scatter-x), var(--scatter-y)) scale(0);
22            filter: blur(4px);
23          }
24          50% { opacity: 0.8; filter: blur(1px); }
25          80% { opacity: var(--final-opacity, 1); filter: blur(0px); }
26          100% {
27            opacity: var(--final-opacity, 1);
28            transform: translate(0, 0) scale(1);
29            filter: blur(0px);
30          }
31        }
32        @keyframes alogo-pulse {
33          0%   { box-shadow: 0 0 0px 0px rgba(62, 79, 224, 0); }
34          100% { box-shadow: 0 0 var(--glow-size, 4px) 1px ${s}; }
35        }
36        .alogo-central {
37          animation: alogo-central 1.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
38        }
39        @keyframes alogo-central {
40          0%   { opacity: 0; transform: scale(0.3) rotate(-20deg); filter: blur(6px); }
41          40%  { opacity: 0.7; filter: blur(2px); }
42          70%  { opacity: 1; filter: blur(0px); }
43          100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0px); }
44        }
45      `})]})},fr=450,pr=1150,gr="(prefers-reduced-motion: reduce)",R=[{number:1,labelKey:"requestAccess.stepper.requestSent",defaultLabel:"Request sent"},{number:2,labelKey:"requestAccess.stepper.processing",defaultLabel:"Processing"},{number:3,labelKey:"requestAccess.stepper.accessGranted",defaultLabel:"Access granted"}],yr=()=>{const{t:e}=w(),[t,n]=d.useState(0);d.useEffect(()=>{if(typeof window<"u"&&window.matchMedia(gr).matches){n(2);return}const l=setTimeout(()=>n(1),fr),o=setTimeout(()=>n(2),pr);return()=>{clearTimeout(l),clearTimeout(o)}},[]);const s=t>=1,i=t>=2;return r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 pt-6","data-testid":"request-access-stepper",role:"status","aria-live":"polite",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"relative block size-5",children:[r.jsx("span",{className:S("absolute inset-0 flex items-center justify-center rounded-full bg-primary text-xs font-semibold leading-4 text-primary-foreground transition-opacity duration-300",s?"opacity-0":"opacity-100"),children:R[0].number}),r.jsx(ee,{name:"CheckCircle",weight:"fill",size:"md",className:S("absolute inset-0 text-primary transition-all duration-300",s?"scale-100 opacity-100":"scale-75 opacity-0")})]}),r.jsx("p",{className:S("text-sm font-medium leading-none",S("whitespace-nowrap text-foreground transition-all duration-300",s?"font-normal":"font-bold")),children:e(R[0].labelKey,R[0].defaultLabel)})]}),r.jsx("span",{className:"relative block h-[2px] w-10 overflow-hidden rounded-full bg-border",children:r.jsx("span",{className:S("absolute inset-y-0 left-0 origin-left bg-primary transition-transform duration-700 ease-in-out w-full",s?"scale-x-100":"scale-x-0")})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:S("flex h-5 min-w-5 items-center justify-center rounded-full px-1 text-xs leading-4 transition-colors duration-300",i?"bg-primary font-semibold text-primary-foreground":"bg-secondary font-normal text-secondary-foreground"),children:R[1].number}),r.jsx("p",{className:S("text-sm font-medium leading-none",S("whitespace-nowrap text-foreground transition-all duration-300",i?"font-bold":"font-normal")),children:e(R[1].labelKey,R[1].defaultLabel)})]}),r.jsx("span",{className:"block h-[2px] w-10 rounded-full bg-border"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"flex h-5 min-w-5 items-center justify-center rounded-full bg-secondary px-1 text-xs font-normal leading-4 text-secondary-foreground",children:R[2].number}),r.jsx("p",{className:"text-sm font-medium leading-none whitespace-nowrap text-foreground",children:e(R[2].labelKey,R[2].defaultLabel)})]})]})},br=()=>{const{t:e}=w();return r.jsxs("section",{"data-testid":"request-submitted",className:"flex w-full flex-col items-center justify-center gap-10 rounded-lg border border-border bg-card px-6 py-10 sm:px-14",children:[r.jsxs("div",{className:"flex w-full flex-col items-center gap-6",children:[r.jsx(hr,{size:80}),r.jsxs("div",{className:"flex w-full max-w-[768px] flex-col items-center gap-2.5 text-center",children:[r.jsx("h2",{className:"text-2xl font-bold leading-8 text-foreground",children:e("requestAccess.submitted.title","Request received! We're on it.")}),r.jsx("p",{className:"text-muted-foreground text-base leading-6",children:e("requestAccess.submitted.description","Thank you for your interest in Payments Concierge. Our team has received your details and we are already working on setting up your dedicated agent.")})]})]}),r.jsx(yr,{}),r.jsxs("div",{className:"flex w-full flex-col items-start gap-6",children:[r.jsx("hr",{className:"w-full border-t border-border"}),r.jsx("p",{className:"text-muted-foreground w-full text-center text-sm leading-5",children:e("requestAccess.submitted.followUp","We will validate your requirements and contact you as soon as possible to confirm your activation.")})]})]})},xr=()=>{const{t:e}
45=w(),[t,n]=d.useState(!1),s=d.useCallback(()=>{Ne.success(e("requestAccess.dialog.submitSuccess","Request submitted. We will be in touch."))},[e]),i=d.useCallback(()=>{Ne.error(e("requestAccess.dialog.submitError","We couldn't submit your request. Please try again."))},[e]),{hasRequested:a,submitRequest:l}=ot({onSuccess:s,onError:i}),o=c=>{l(c),n(!1)};return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex w-full flex-col gap-6","data-testid":"request-access",children:[r.jsx("h1",{className:"text-3xl font-semibold tracking-tight text-foreground","data-testid":"request-access-title",children:e("commons.paymentConcierge","Payment Concierge")}),a?r.jsx(br,{}):r.jsx(Yn,{onRequestAccess:()=>n(!0)})]}),r.jsx(Mn,{open:t,onClose:()=>n(!1),onSubmit:o})]})},vr="access-gate-no-access",Cr="access-gate-no-permission",Tr=()=>{const{isLoading:e,hasAccess:t}=ot(),{shouldShow:n,markSeen:s}=xn(t);return e?r.jsx(te,{}):t?r.jsxs(r.Fragment,{children:[r.jsx(we,{}),r.jsx(En,{open:n,onClose:s})]}):r.jsx("div",{className:"flex w-full flex-col items-center px-6 pb-12 pt-0","data-testid":vr,children:r.jsx(xr,{})})},Ar=()=>{const{t:e}=w(),{canView:t,isLoading:n}=Ie();return n?r.jsx(te,{}):t?r.jsx(Tr,{}):r.jsx("div",{className:"flex w-full flex-col items-center px-6 pb-12 pt-0","data-testid":Cr,children:r.jsx(Tt,{text:e("permissions.accessDeniedDescription","You don't have permission to view Payment Concierge. Please contact your administrator for access.")})})},Er=3,Sr=1500;function ct(e,t=Er){return e().catch(n=>{if(t<=0)throw n;return new Promise(s=>setTimeout(()=>s(ct(e,t-1)),Sr))})}function ne(e){return d.lazy(()=>ct(e))}function pe(e){return e instanceof Error?e.message.includes("Loading chunk")||e.message.includes("Failed to fetch dynamically imported module")||e.name==="ChunkLoadError":!1}function wr(){window.location.reload()}class _r extends d.Component{constructor(t){super(t),this.handleRetry=()=>{this.setState({hasError:!1,error:null}),this.state.error&&pe(this.state.error)&&wr()},this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ChunkErrorBoundary caught an error:",t,n)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:r.jsxs("div",{"data-testid":"chunk-error-boundary-fallback",className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",role:"alert","aria-live":"assertive",children:[r.jsx("h3",{className:"scroll-m-20 text-2xl tracking-tight font-semibold text-foreground",children:O.t("errors.somethingWentWrong","Something went wrong")}),r.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:pe(this.state.error)?O.t("errors.newVersionAvailable","A new version is available. Please reload the page."):O.t("errors.unexpectedError","An unexpected error occurred. Please try again.")}),r.jsx(V,{"data-testid":"chunk-error-boundary-retry-button",onClick:this.handleRetry,variant:"outline",children:pe(this.state.error)?O.t("errors.reloadPage","Reload page"):O.t("errors.tryAgain","Try again")})]}):this.props.children}}const Ae="en",We=["en","es","pt","fr","ja","tr","zh","ru","ar","de"];function Qe(e){const t=(e??"").trim();if(!t)return Ae;if(We.includes(t))return t;const n=t.split("-")[0];return n&&We.includes(n)?n:Ae}function ge(e){return gt(Object.assign({
45"./lang/ar.json":()=>T(()=>import("./ar-CqG7gsGC.js"),[]),
45"./lang/de.json":()=>T(()=>import("./de-Eq0YbVRe.js"),[]),
45"./lang/en.json":()=>T(()=>import("./en-BXmAC3zY.js"),[]),
45"./lang/es.json":()=>T(()=>import("./es-BbDh2tFA.js"),[]),
45"./lang/fr.json":()=>T(()=>import("./fr-DhCTa9wS.js"),[]),
45"./lang/ja.json":()=>T(()=>import("./ja-6EWax2FW.js"),[]),
45"./lang/pt.json":()=>T(()=>import("./pt-BjswVuoA.js"),[]),
45"./lang/ru.json":()=>T(()=>import("./ru-D83Aj-39.js"),[]),
45"./lang/tr.json":()=>T(()=>import("./tr-Dnu6ZH57.js"),[]),
45"./lang/zh.json":()=>T(()=>import("./zh-J78azuYz.js"),[])
45}),`./lang/${e}.json`,3).then(t=>{O.addResourceBundle(e,"translation",t.default??t,!0,!0)})}function jr({children:e}){const[t,n]=d.useState(!1);return d.useEffect(()=>{const s=Qe(O.language||localStorage.getItem("lang"));ge(s).catch(()=>ge(Ae)).finally(()=>n(!0))},[]),d.useEffect(()=>{const s=()=>{ge(Qe(O.language)).catch(()=>{})};return O.on("languageChanged",s),()=>{O.off("languageChanged",s)}},[]),t?r.jsx(r.Fragment,{children:e}):null}const Ir="bottom-center",Or=ne(()=>T(()=>import("./index-C-NS9XZe.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))),Nr=ne(()=>T(()=>import("./index-ul2_eu5v.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,11,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,31,32,33,34]))),Dr=ne(()=>T(()=>import("./index-LKYiQ1hX.js"),__vite__mapDeps([36,1,2,3,4,5,6,7,8,9,26,12,31,32,24,23,33,22,34]))),Pr=ne(()=>T(()=>import("./index-Bs31qh8Y.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,26,38,16,13,14,15,18,39,31,32,24,23,33,22,34]))),Z=e=>r.jsx(_r,{children:r.jsx(d.Suspense,{fallback:r.jsx(te,{}),children:r.jsx(e,{})})}),Rr=()=>r.jsx(jr,{children:r.jsxs(st,{children:[r.jsx(yt,{children:r.jsx(P,{element:r.jsx(en,{}),children:r.jsx(P,{element:r.jsx(Ar,{}),children:r.jsxs(P,{element:r.jsx(hn,{}),children:[r.jsx(P,{index:!0,element:Z(Or)}),r.jsx(P,{path:"scheduled-tasks",element:Z(Nr)}),r.jsx(P,{path:"knowledge",element:Z(Dr)}),r.jsx(P,{path:"analytics",element:Z(Pr)}),r.jsx(P,{path:"allowlists",element:r.jsx(De,{to:"/concierge",replace:!0})}),r.jsx(P,{path:"concierge-access",element:r.jsx(De,{to:"/concierge",replace:!0})})]})})})}),r.jsx(bt,{position:Ir})]})}),us=Object.freeze(Object.defineProperty({__proto__:null,default:Rr},Symbol.toStringTag,{value:"Module"}));export{v as C,Et as a,Xr as b,Zr as c,as as d,Jr as e,es as f,rs as g,ts as h,ss as i,ns as j,Vr as k,is as l,Qr as m,cs as n,os as o,ls as p,Wr as q,Gr as r,us as s,sn as u};

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.