1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="30505499-49cf-4a16-9a13-4970d1895cf4",e._sentryDebugIdIdentifier="sentry-dbid-30505499-49cf-4a16-9a13-4970d1895cf4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6238],{5499:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(95155);function r(e){let{text:t,subText:n,className:r,imageClass:s,renderCustomCom:a,textClass:c}=e;return(0,l.jsxs)("div",{className:"flex flex-col items-center w-[400px] ".concat(r),children:[(0,l.jsx)("img",{className:"mb-2 ".concat(s),src:"/assets/empty.svg"}),t?(0,l.jsx)("div",{className:"w-100 text-center text-[20px] font-bold mb-1 ".concat(c),children:t}):null,n?(0,l.jsx)("div",{className:"w-100 text-center text-[16px] text-center mb-3",children:n}):null,a?null==a?void 0:a():null]})}n(12115)},6874:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return h},useLinkStatus:function(){return b}});let l=n(6966),r=n(95155),s=l._(n(12115)),a=n(82757),c=n(95227),d=n(69818),o=n(6654),i=n(69991),u=n(85929);n(43230);let f=n(24930),x=n(92664),m=n(6634);function p(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function h(e){let t,n,l,[a,h]=(0,s.useOptimistic)(f.IDLE_LINK_STATUS),b=(0,s.useRef)(null),{href:v,as:N,children:g,prefetch:y=null,passHref:A,replace:w,shallow:C,scroll:T,onClick:_,onMouseEnter:E,onTouchStart:I,legacyBehavior:k=!1,onNavigate:M,ref:O,unstable_dynamicOnHover:S,...R}=e;t=g,k&&("string"==typeof t||"number"==typeof t)&&(t=(0,r.jsx)("a",{children:t}));let F=s.default.useContext(c.AppRouterContext),L=!1!==y,P=null===y?d.PrefetchKind.AUTO:d.PrefetchKind.FULL,{href:D,as:U}=s.default.useMemo(()=>{let e=p(v);return{href:e,as:N?p(N):e}},[v,N]);k&&(n=s.default.Children.only(t));let K=k?n&&"object"==typeof n&&n.ref:O,H=s.default.useCallback(e=>(null!==F&&(b.current=(0,f.mountLinkInstance)(e,D,F,P,L,h)),()=>{b.current&&((0,f.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,f.unmountPrefetchableInstance)(e)}),[L,D,F,P,h]),B={ref:(0,o.useMergedRef)(H,K),onClick(e){k||"function"!=typeof _||_(e),k&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),F&&(e.defaultPrevented||function(e,t,n,l,r,a,c){let{nodeName:d}=e.currentTarget;if(!("A"===d.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,x.isLocalURL)(t)){r&&(e.preventDefault(),location.replace(t));return}e.preventDefault(),s.default.startTransition(()=>{if(c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}(0,m.dispatchNavigateAction)(n||t,r?"replace":"push",null==a||a,l.current)})}}(e,D,U,b,w,T,M))},onMouseEnter(e){k||"function"!=typeof E||E(e),k&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),F&&L&&(0,f.onNavigationIntent)(e.currentTarget,!0===S)},onTouchStart:function(e){k||"function"!=typeof I||I(e),k&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),F&&L&&(0,f.onNavigationIntent)(e.currentTarget,!0===S)}};return(0,i.isAbsoluteUrl)(U)?B.href=U:k&&!A&&("a"!==n.type||"href"in n.props)||(B.href=(0,u.addBasePath)(U)),l=k?s.default.cloneElement(n,B):(0,r.jsx)("a",{...R,...B,children:t}),(0,r.jsx)(j.Provider,{value:a,children:l})}n(73180);let j=(0,s.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(j);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36238:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var l=n(95155),r=n(98196),s=n(97168),a=n(99840),c=n(76037),d=n(8328),o=n(12115),i=n(60493),u=n(34853),f=n(66766),x=n(18734),m=n(70435),p=n(88524),h=n(5499),j=n(31815),b=n(22231),v=n(6874),N=n.n(v);let g=e=>{let{phoneNumers:t,getAvailablePhoneNumbers:n,loading:r}=e;(0,d.GV)(e=>e.account.selectedOrgId)||localStorage.getItem("orgId");let{subOrgList:a}=(0,d.GV)(e=>e.agency),c=e=>(0,l.jsxs)("div",{className:"flex items-center justify-center rounded-md py-1 px-2 font-bold \n ".concat("Accepted"===e?"bg-[#E1F7E7] text-[#509b64]":"bg-[#FFF7E1] text-[#FFC237]"),children:[(0,l.jsx)("span",{className:"mr-1 text-lg ".concat("Accepted"===e?"text-[#509b64]":"text-[#FFC237]"," "),children:"â¢"}),e]});return(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"",children:a.length?(0,l.jsx)("div",{className:"mt-5 px-3 rounded-md border-solid border-[1px] border-[#e1e1e1]",children:(0,l.jsx)(p.XI,{className:"w-full",children:(0,l.jsx)(p.BF,{children:a.map((e,t)=>{var n,r;let a=null==(n=b.c9.fromISO(null==e?void 0:e.updatedAt))?void 0:n.toFormat("MM/dd/yyyy HH:mm");return(0,l.jsxs)(p.Hj,{children:[(0,l.jsx)(p.nA,{className:"font-medium",colSpan:6,children:null==e?void 0:e.name}),(0,l.jsx)(p.nA,{className:"w-[100px] text-center",colSpan:6,children:(null==e||null==(r=e.AccountsInOrganization)?void 0:r.length)>0?c("Accepted"):c("Pending")}),(0,l.jsx)(p.nA,{className:"text-center",colSpan:6,children:a}),(0,l.jsxs)(p.nA,{className:"text-center",colSpan:5,children:[(null==e?void 0:e.subAccountCostPerMinute)||0,"/",(null==e?void 0:e.subAccountTrialMinutes)||0," minutes used"]}),(0,l.jsx)(p.nA,{className:"ml-auto",children:(0,l.jsxs)(N(),{className:"flex justify-center",href:"/agency/clients/".concat(e.id),children:[(0,l.jsx)(s.$,{variant:"secondary",className:"mr-4 border border-solid border-[#
1E1E1E1]",children:"Manage Account"}),(0,l.jsx)(f.default,{src:"/assets/rightChevron.svg",width:20,height:20,alt:"text"})]})})]},e.id)})})})}):r?(0,l.jsx)("div",{className:"flex items-center justify-center h-[50vh]",children:(0,l.jsx)(j.A,{})}):(0,l.jsx)("div",{className:"flex justify-center items-center max-w-max mx-auto mt-24",children:(0,l.jsx)(h.A,{text:"No Organization found."})})})})},y=()=>{let e,t=(0,d.jL)(),n=(0,d.GV)(e=>e.account.selectedOrgId)||localStorage.getItem("orgId"),{subOrgList:p}=(0,d.GV)(e=>e.agency),{orgData:h}=(0,d.GV)(e=>e.common);return(0,o.useEffect)(()=>{n&&t((0,m.K2)({orgId:n}))},[n]),h?(null==h?void 0:h.hasAgencyAccess)?(0,l.jsx)("div",{className:"w-full bg-[#f5f5f5] py-4 px-3 h-[92.5vh] ",children:(0,l.jsxs)("div",{className:"w-full bg-white border-[1px] border-[#e1e1e1] rounded-md border-solid h-full overflow-scroll",children:[(0,l.jsxs)("div",{className:"flex flex-col px-4 py-3",children:[(0,l.jsxs)("div",{className:"flex flex-col space-y-2 w-full",children:[(0,l.jsxs)("div",{className:"flex text-[#adadad] text-xs font-medium",children:[(0,l.jsx)("div",{children:"Agency"}),(0,l.jsx)(f.default,{src:"/assets/link.svg",alt:"text",width:15,height:15,className:"mx-1"}),(0,l.jsx)("div",{children:"Clients"})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-[#03062B] text-xl font-semibold",children:"Agency Profile"}),(0,l.jsxs)("div",{className:"mt-2 text-xs text-[#ADADAD]",children:[(null==p?void 0:p.length)||0," accounts"]})]}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{children:(0,l.jsx)(r.A,{className:"",modalName:u.Cv.CREATE_CLIENT_ACCOUNT,children:(0,l.jsx)(a.zM,{className:"w-full",children:(0,l.jsxs)(s.$,{className:"".concat(void 0),onClick:()=>{t((0,i.qf)({name:u.Cv.CREATE_CLIENT_ACCOUNT,open:!0}))},children:[(0,l.jsx)("span",{children:(0,l.jsx)(x.f5,{})}),(0,l.jsx)("span",{className:"ml-1",children:"Add New Client Account"})]})})})})})]})]}),(0,l.jsx)(c.w,{className:"my-3"})]}),(0,l.jsx)("div",{className:"px-2",children:(0,l.jsx)(g,{})})]})}):(0,l.jsx)("div",{className:"p-5",children:"Access denied"}):(0,l.jsx)(j.A,{})}},73180:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},88524:(e,t,n)=>{n.d(t,{A0:()=>c,BF:()=>d,Hj:()=>o,XI:()=>a,nA:()=>u,nd:()=>i});var l=n(95155),r=n(12115),s=n(53999);let a=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("div",{className:"relative w-full overflow-auto flex-1",children:(0,l.jsx)("table",{ref:t,className:(0,s.cn)("w-full caption-bottom text-sm",n),...r})})});a.displayName="Table";let c=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("thead",{ref:t,className:(0,s.cn)("[&_tr]:border-b",n),...r})});c.displayName="TableHeader";let d=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("tbody",{ref:t,className:(0,s.cn)("[&_tr:last-child]:border-0",n),...r})});d.displayName="TableBody",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("tfoot",{ref:t,className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n),...r})}).displayName="TableFooter";let o=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("tr",{ref:t,className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...r})});o.displayName="TableRow";let i=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("th",{ref:t,className:(0,s.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n),...r})});i.displayName="TableHead";let u=r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("td",{ref:t,className:(0,s.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...r})});u.displayName="TableCell",r.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,l.jsx)("caption",{ref:t,className:(0,s.cn)("mt-4 text-sm text-muted-foreground",n),...r})}).displayName="TableCaption"}}]);
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.