PageSourceSearch

https://app.scriptsure.com/static/js/2710.f5001cde.chunk.js

js scriptsure.com collected 2026-10-04 04:05:40 UTC 30,558 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkscriptsure_react=self.webpackChunkscriptsure_react||[]).push([[2710],{2129:(t,e,n)=>{n.d(e,{F:()=>o});var i=n(65043),r=n(70347);const o=(t,e)=>{const n=(0,i.useMemo)((()=>t()),null!==e&&void 0!==e?e:[]);return(0,r.v)(n),n}},2919:(t,e,n)=>{n.d(e,{A:()=>u});var i=n(65043),r=n(68703),o=n(53536),s=n(62656),a=n(51687),l=n(70579);const d=(0,r.PA)((({loading:t,focusScopeContain:e})=>{const n=(0,o.isBoolean)(t)?t:(null===t||void 0===t?void 0:t.isLoading)instanceof a.E?null===t||void 0===t?void 0:t.isLoading.value:Boolean(null===t||void 0===t?void 0:t.isLoading),[r,d]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(n){const t=setTimeout((()=>{d(!0)}),200);return()=>clearTimeout(t)}const t=setTimeout((()=>{d(!1)}),300);return()=>clearTimeout(t)}),[n]),r?(0,l.jsx)(s.A.Loader,{isLoading:r,focusScopeContain:e}):null}));d.displayName="ModalLoader";const u=d},4791:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(53536);class r extends Error{constructor(t,e=(0,i.stubString)()){super(e),this.name=void 0,this.message=void 0,this.stack=void 0,this.source=void 0,this.name="IntlException",this.source=t,this.message=e,Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}}},7910:(t,e,n)=>{n.d(e,{s:()=>s});var i=n(59504),r=n(94619),o=n(98847);function s(t){return t<=0?function(){return i.w}:(0,r.N)((function(e,n){var i=0;e.subscribe((0,o._)(n,(function(e){++i<=t&&(n.next(e),t<=i&&n.complete())})))}))}},16354:(t,e,n)=>{n.d(e,{UR:()=>P,D9:()=>_,n8:()=>L,QW:()=>b,eb:()=>m,Qi:()=>c,lC:()=>O,hO:()=>x,OE:()=>p,No:()=>$,Tq:()=>C,SA:()=>s,rZ:()=>u,aJ:()=>I,N_:()=>S,ab:()=>z,F3:()=>E,$z:()=>w,yD:()=>g,H8:()=>f,Jy:()=>N,Dq:()=>v,jj:()=>A,L_:()=>a,E6:()=>h,fV:()=>d,dY:()=>l,fg:()=>T,nU:()=>y});var i=n(13665),r=n(16082),o=n(62401);const s=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/${t}`,method:"GET"}),a=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/organization/${t}`,method:"PUT",body:e}),l=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/organization/status/${t}`,method:"POST",body:e}),d=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/organization/permissions/${t}`,method:"POST",body:e}),u=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/notify/${t}`,method:"GET"}),c=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/notify`,method:"POST",body:t}),h=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/notify`,method:"PUT",body:t}),v=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/notify/${t}`,method:"DELETE"}),g=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/organization/search`,method:"POST",body:t,createXHR:e}),y=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/organization/search/users`,method:"POST",body:t,createXHR:e}),f=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/search/organizations`,method:"POST",body:t}),m=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/organization/invite/${t}`,method:"POST",body:e}),p=()=>(0,r.Ay)({url:`${i.dK}/v3/organization/download/excel`,responseType:"arraybuffer",method:"GET"}),A=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/upload/excel`,responseType:"arraybuffer",body:t,method:"POST"}),T=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/validate/excel`,method:"POST",contentType:"multipart/form-data",body:t}),E=(t,e,n,o)=>(0,r.Ay)({url:`${i.dK}/v3/organization/users/list/${t}`,method:"GET",queryParams:e||n||o?{...null!==e&&void 0!==e?e:{},...null!==n&&void 0!==n?n:{},...null!==o&&void 0!==o?o:{}}:void 0}),w=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/users/active-count/${t}`,method:"GET"}),z=(t,e,n,o)=>(0,r.Ay)({url:`${i.dK}/v3/organization/user-invites/list/${t}`,method:"GET",queryParams:e||n||o?{...null!==e&&void 0!==e?e:{},...null!==n&&void 0!==n?n:{},...null!==o&&void 0!==o?o:{}}:void 0}),I=(t,e)=>{var n,s;return(0,r.Ay)({url:`${i.dK}/v3/organization/practice/list/${t}`,method:"GET",...e?{queryParams:{limit:null!==(n=e.limit)&&void 0!==n?n:o.yU,offset:null!==(s=e.offset)&&void 0!==s?s:0,...e.sortedBy?{sortedBy:e.sortedBy}:{},...void 0!==e.desc?{desc:e.desc}:{},...e.searchText?{searchText:e.searchText}:{}}}:{}})},x=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/organization/deactivate/${t}`,method:"POST",body:e}),b=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/organization/activate/${t}`,method:"POST",body:e}),O=t=>(0,r.Ay)({url:`${i.dK}/v3/organization/favorite/vendor`,method:"POST",body:t}),S=()=>(0,r.Ay)({url:`${i.dK}/v3/organization/types`,method:"GET"}),C=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/organization/users/${t}/export/${e}`,method:"GET",responseType:"blob"}),$=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/organization/practices/${t}/export`,method:"GET",responseType:"blob"}),N=t=>(0,r.Ay)({method:"POST",url:`${i.dK}/v3/entitynotification/organization`,body:{organizationId:t}}
1);let _=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t}({}),P=function(t){return t[t.ORGANIZATION=1]="ORGANIZATION",t[t.BUSINESS_UNIT=2]="BUSINESS_UNIT",t[t.PRACTICE=3]="PRACTICE",t[t.USER=4]="USER",t}({}),L=function(t){return t[t.AMBULATORY=1]="AMBULATORY",t[t.DENTAL=2]="DENTAL",t[t.VETERINARIAN_APPROVAL=3]="VETERINARIAN_APPROVAL",t[t.HOSPICE=4]="HOSPICE",t[t.VETERINARIAN_E_PRESCRIBING=5]="VETERINARIAN_E_PRESCRIBING",t}({})},19586:(t,e,n)=>{n.d(e,{L:()=>i});const i=async(t,e=300)=>{const n=[];let i=0,r=0;do{var o,s;const a=await t({offset:i,limit:e}),l=null!==(o=a.data)&&void 0!==o?o:[];if(n.push(...l),r=null!==(s=a.totalCount)&&void 0!==s?s:n.length,i+=e,0===l.length)break}while(n.length<r);return n}},21220:(t,e,n)=>{n.d(e,{Q:()=>a});var i=n(94619),r=n(98847),o=n(63661),s=n(31478);function a(t){return(0,i.N)((function(e,n){(0,o.Tg)(t).subscribe((0,r._)(n,(function(){return n.complete()}),s.l)),!n.closed&&e.subscribe(n)}))}},28643:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(65043),r=n(70579);const o=(0,i.forwardRef)(((t,e)=>{const{as:n="svg",...i}=t;return(0,r.jsx)(n,{ref:e,"aria-hidden":!0,focusable:!1,...i})}));o.displayName="Icon";const s=o},51198:(t,e,n)=>{n.d(e,{Z:()=>d});var i=n(43879),r=n(63661),o=n(94619),s=n(31054),a=n(98847);var l=n(65314);function d(t,e,n){return void 0===n&&(n=1/0),(0,l.T)(e)?d((function(n,o){return(0,i.T)((function(t,i){return e(n,t,o,i)}))((0,r.Tg)(t(n,o)))}),n):("number"===typeof e&&(n=e),(0,o.N)((function(e,i){return function(t,e,n,i,o,l,d,u){var c=[],h=0,v=0,g=!1,y=function(){!g||c.length||h||e.complete()},f=function(t){return h<i?m(t):c.push(t)},m=function(t){l&&e.next(t),h++;var u=!1;(0,r.Tg)(n(t,v++)).subscribe((0,a._)(e,(function(t){null===o||void 0===o||o(t),l?f(t):e.next(t)}),(function(){u=!0}),void 0,(function(){if(u)try{h--;for(var t=function(){var t=c.shift();d?(0,s.N)(e,d,(function(){return m(t)})):m(t)};c.length&&h<i;)t();y()}catch(n){e.error(n)}})))};return t.subscribe((0,a._)(e,f,(function(){g=!0,y()}))),function(){null===u||void 0===u||u()}}(e,i,t,n)})))}},51687:(t,e,n)=>{n.d(e,{E:()=>r});var i=n(64812);class r{get value(){return this._value}constructor(t){this._value=void 0,this._value=t,(0,i.l_)(this,void 0,{autoBind:!0})}setTrue(){this._value=!0}setFalse(){this._value=!1}toggle(){this._value=!this._value}setValue(t){this._value=Boolean(t)}}},52066:(t,e,n)=>{n.d(e,{A:()=>l});n(65043);var i=n(68703),r=n(95788),o=n(70347),s=n(70579);const a=(0,i.PA)((({dialogCreator:t})=>((0,o.v)(t),(0,s.jsx)(s.Fragment,{children:t.activeDialogs.map((t=>(0,s.jsx)(r.A,{dialog:t},t.key)))}))));a.displayName="DialogCreatorRender";const l=a},55361:(t,e,n)=>{n.d(e,{P:()=>g});var i=n(64812),r=n(72582),o=n(92373),s=n(16354),a=n(92325),l=n(13665),d=n(38717),u=n(19586),c=n(77545);const h={offset:0,limit:20},v={sortedBy:"lastName",desc:!1};class g{static instance(){return o.y.instance.get("organizationService")}get organizationTypes(){var t;return null!==(t=this.organizationTypesDC.data)&&void 0!==t?t:[]}async loadOrganizationTypes(){try{await this.organizationTypesDC.init()}catch(t){console.error(t)}}constructor(){this.organizationTypesDC=new c.c((()=>this.getOrganizationTypes())),(0,i.l_)(this,void 0,{autoBind:!0})}async getOrganization(t){const{response:e}=await(0,r.s)((0,s.SA)(t));return e}async getBusinessUnits(t){const{response:e}=await(0,r.s)((0,a.Ko)(t));return e}async updateOrganization(t,e){const{response:n}=await(0,r.s)((0,s.L_)(t,e));return n}async updateOrganizationStatus(t,e){const{response:n}=await(0,r.s)((0,s.dY)(t,e));return n}async updateOrganizationPermissions(t,e){return(0,d.In)((0,s.fV)(t,e))}async getOrganizationUserList(t,e=!1){const n=await(0,u.L)((e=>this.getOrganizationUserListPaginated(t,e,v)));return e?n.filter((t=>t.id)):n}async getOrganizationUserInviteList(t){return(0,u.L)((e=>this.getOrganizationUserInviteListPaginated(t,e,v)))}async getOrganizationUserListPaginated(t,e=h,n=v,i){const{response:o}=await(0,r.s)((0,s.F3)(t,e,n,i));return o}async getOrganizationUserInviteListPaginated(t,e=h,n=v,i){const{response:o}=await(0,r.s)((0,s.ab)(t,e,n,i));return o}async getOrganizationUsersActiveCount(t){const{response:e}=await(0,r.s)((0,s.$z)(t));return e}async getOrganizationPracticeList(t,e){var n;const{response:i}=await(0,r.s)((0,s.aJ)(t,e));return Array.isArray(i)?i:null!==(n=null===i||void 0===i?void 0:i.results)&&void 0!==n?n:[]}async getOrganizationPracticeListPaginated(t,e,n,i){var o,a;const{response:l}=await(0,r.s)((0,s.aJ)(t,{offset:e.offset,limit:e.limit,sortedBy:n.sortedBy,desc:n.desc,searchText:i}));return Array.isArray(l)?{data:l,totalCount:l.length}:{data:null!==(o=null===l||void 0===l?void 0:l.results)&&void 0!==o?o:[],totalCount:null!==(a=null===l||void 0===l?void 0:l.totalCount)&&void 0!==a?a:0}}async deactivateOrganizationExtended(t,e){if(l.F5&&null!==e&&void 0!==e&&e.deactivateToken&&t<500)throw new Error("DEMO \u2013 Only organizations with id >= 500 can be deactivated like that");return(0,d.In)((0,s.hO)(t,e))}async activateOrganizationExtended(t,e){if(l.F5&&null!==e&&void 0!==e&&e.activateToken&&t<500)throw new Error("DEMO \u2013 Only organizations with id >= 500 can be activated like that");return(0,d.In)((0,s.QW)(t,e))}async getOrganizationNotify(t){const{response:e}=await(0,r.s)((0,s.rZ)(t));return e}async deleteOrganizationNotify(t){const{response:e}=await(0,r.s)((0,s.Dq)(t));return e}async addOrganizationNotify(t){const{response:e}=await(0,r.s)((0,s.Qi)(t));return e}async updateOrganizationNotify(t){const{response:e}=await(0,r.s)((0,s.E6)(t));return e}async searchOrganization(t){const{response:e}=await(0,r.s)((0,s.H8)(t));return e}async addOrganizationInvite(t,e){const{response:n}=await(0,r.s)((0,s.eb)(t,e));return n}async getOrganizationTypes(){return(0,d.In)((0,s.N_)())}async pushOrganizationNotification(t){return(0,d.In)((0,s.Jy)(t))}}o.y.setSetupFn("organizationService",(()=>new g))},59504:(t,e,n)=>{n.d(e,{w:()=>i});var i=new(n(58989).c)((function(t){return t.complete()}
1))},61871:(t,e,n)=>{n.d(e,{y:()=>u});var i=n(64812),r=n(53536),o=n(83364),s=n(97459),a=n(34734),l=n(13665),d=n(23246);class u{get config(){return(0,o.z)(this._config,"Config")}get isOpen(){return this._isOpen}get isActive(){const t=this._isActive;return t&&this.activate(),t}get key(){return this._key}get componentLoader(){return()=>d.h.loadComponent(this.name)}constructor(t,e){this.name=t,this._scope=e,this.TRANSITION_DURATION=300,this._config=null,this._isOpen=!1,this._key="",this.isActivated=!1,this._isActive=!1,this.closeHandler=null,this.errorHandler=null,this.closeTimeout=void 0,(0,i.l_)(this,{_model:i.sH,_clearModel:i.XI,_showInternal:i.XI,activate:i.XI},{autoBind:!0})}show(t){if(this.isActive)throw new Error("Dialog already open");return this._showInternal(t)}async _showInternal(t){return l.Xv&&console.debug("Dialog Open",this.name,"Config:",(0,s.d4)(t)),this._config={...(0,s.d4)(t),dialog:this,scope:this._scope},(0,i.h5)((()=>{this._key=(0,r.uniqueId)("modal.dialog."),this._isActive=!0,this._isOpen=!0,u.stack.add(this)})),new Promise(((t,e)=>{const n=()=>(0,i.h5)((()=>{this._isActive=!1,this.closeHandler=null,this.errorHandler=null,u.stack.delete(this)}));this.closeHandler=e=>{l.Xv&&console.debug("Dialog Close",this.name,"Answer:",e),n(),t(e)},this.errorHandler=t=>{l.Xv&&console.debug("Dialog Error",this.name,"Error:",t),n(),e(t)},setTimeout((()=>{this.isActivated||console.error("Modal Dialog not assigned to any Component")}),500)}))}close(t){this._isOpen=!1,this.closeTimeout=setTimeout((()=>{var e;const n=(0,r.cloneDeep)(t);this._clearModel(),null===(e=this.closeHandler)||void 0===e||e.call(this,n)}),this.TRANSITION_DURATION)}error(t){var e;this._isOpen=!1,this._isActive=!1,null===(e=this.errorHandler)||void 0===e||e.call(this,t),this._clearModel(),clearTimeout(this.closeTimeout)}purge(){this.error(new a.N)}_clearModel(){this._config=null}activate(){this.isActivated=!0}static purgeStack(){try{[...u.stack.values()].reverse().forEach((t=>{t.purge()})),u.stack.clear()}catch(t){console.error(t)}}static closeAllOpenModals(){try{[...u.stack.values()].reverse().forEach((t=>{t.close(null)})),u.stack.clear()}catch(t){console.error(t)}}}u.stack=new Set},62401:(t,e,n)=>{n.d(e,{LA:()=>r,tO:()=>o,vw:()=>i,yU:()=>s});const i=25,r=30,o=2,s=300},62656:(t,e,n)=>{n.d(e,{A:()=>i.A});var i=n(78510)},63632:(t,e,n)=>{n.d(e,{Md:()=>a,tH:()=>s});var i=n(65043);const r=(0,i.createContext)(null),o={didCatch:!1,error:null};class s extends i.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:r,reason:"imperative-api"}),this.setState(o)}}componentDidCatch(t,e){var n,i;null===(n=(i=this.props).onError)||void 0===n||n.call(i,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:i}=this.props;var r,s;n&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}(t.resetKeys,i)&&(null===(r=(s=this.props).onReset)||void 0===r||r.call(s,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(o))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:o}=this.props,{didCatch:s,error:a}=this.state;let l=t;if(s){const t={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof e)l=e(t);else if(n)l=(0,i.createElement)(n,t);else{if(void 0===o)throw a;l=o}}return(0,i.createElement)(r.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}}function a(){const t=(0,i.useContext)(r);!function(t){if(null==t||"boolean"!==typeof t.didCatch||"function"!==typeof t.resetErrorBoundary)throw new Error("ErrorBoundaryContext not found")}(t);const[e,n]=(0,i.useState)({error:null,hasError:!1}),o=(0,i.useMemo)((()=>({resetBoundary:()=>{t.resetErrorBoundary(),n({error:null,hasError:!1})},showBoundary:t=>n({error:t,hasError:!0})}
1)),[t.resetErrorBoundary]);if(e.hasError)throw e.error;return o}},64266:(t,e,n)=>{n.d(e,{A:()=>i.A});var i=n(28643)},68154:(t,e,n)=>{n.d(e,{X:()=>i.A,o:()=>r.A});var i=n(52066),r=n(95788)},71471:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(65043);const r=i.forwardRef((function(t,e){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:e},t),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}))},72455:(t,e,n)=>{n.d(e,{t:()=>o});var i=n(58989),r=n(31478),o=new i.c(r.l)},72582:(t,e,n)=>{n.d(e,{s:()=>r});var i=n(90143);function r(t,e){var n="object"===typeof e;return new Promise((function(r,o){var s,a=!1;t.subscribe({next:function(t){s=t,a=!0},error:o,complete:function(){a?r(s):n?r(e.defaultValue):o(new i.G)}})}))}},74071:(t,e,n)=>{n.d(e,{V:()=>i.A});var i=n(2919)},81225:(t,e,n)=>{n.r(e),n.d(e,{default:()=>w});var i=n(65043),r=n(68703),o=n(62656),s=n(6764),a=n(64266),l=n(1684),d=n(67524),u=n(23246),c=n(74071),h=n(68154),v=n(2129),g=n(64812),y=n(16354),f=n(59667),m=n(55361),p=n(83160);class A{get organization(){return this._organization}get mode(){return this._mode}get isInitialized(){return this._isInitialized}get isLoading(){return this._isLoading}get organizationService(){return m.P.instance()}get errorService(){return f.I.instance()}constructor({dialog:t,organizationId:e,mode:n}){this.organizationId=void 0,this._organization=null,this._mode=void 0,this._isInitialized=!1,this._isLoading=!1,this.dialog=void 0,this.dialogs=new p.l,this.organizationId=e,this._mode=n,this.dialog=t,(0,g.l_)(this,{},{autoBind:!0})}*init(){try{var t,e;if(yield this.fetchOrganization(),"ACTIVATE"===this.mode&&(null===(t=this.organization)||void 0===t?void 0:t.organizationStatus)===y.D9.ACTIVE)throw new Error("Organization already Active");if("DEACTIVATE"===this.mode&&(null===(e=this.organization)||void 0===e?void 0:e.organizationStatus)===y.D9.INACTIVE)throw new Error("Organization already Inactive");this._isInitialized=!0}catch(i){var n;this.errorService.handleError(i),null===(n=this.dialog)||void 0===n||n.close(!1)}}cancel(){var t;return null===(t=this.dialog)||void 0===t?void 0:t.close(!1)}async changeStatus(){try{var t;this._isLoading=!0;const e="ACTIVATE"===this.mode?y.D9.ACTIVE:y.D9.INACTIVE;await this.organizationService.updateOrganizationStatus(this.organizationId,{statusId:e}),null===(t=this.dialog)||void 0===t||t.close(!0)}catch(e){this.errorService.handleError(e)}finally{this._isLoading=!1}}async changeStatusExtended(){try{var t;if(!await this.dialogs.organizationChangeStatusExtended.show({organizationId:this.organizationId,mode:this.mode}))return;null===(t=this.dialog)||void 0===t||t.close(!0)}catch(e){this.errorService.handleError(e)}}*fetchOrganization(){this._organization=yield this.organizationService.getOrganization(this.organizationId)}}var T=n(70579);u.h.preload(["organizationChangeStatusExtended"]);const E=(0,r.PA)((({dialog:t})=>{const e=(0,v.F)((()=>new A(t.config)),[t.config]),{t:n}=(0,l.U4)(),r=(0,i.useRef)(null),{isInitialized:u,organization:g,mode:y,changeStatus:f,changeStatusExtended:m,cancel:p,dialogs:E}=e,w={ACTIVATE:(0,T.jsx)(a.A,{as:d.lR,className:"flex-none w-6 h-6 text-green-100 dark:text-opacity-20 dark:text-green-500"}),DEACTIVATE:(0,T.jsx)(a.A,{as:d.A,className:"flex-none w-6 h-6 text-red-100 dark:text-opacity-20 dark:text-red-500"})},z={ACTIVATE:n("organization.activate"),DEACTIVATE:n("organization.modal.title.inactivate.short")},I={ACTIVATE:n("organization.activate.content"),DEACTIVATE:n("organization.modal.inactivate.content")},x={ACTIVATE:n("organization.activate.org.only"),DEACTIVATE:n("organization.inactivate.org.only")},b={ACTIVATE:n("organization.activate.org.subgroups"),DEACTIVATE:n("organization.inactivate.org.subgroups")},O="ACTIVATE"===y?"green":"red";return(0,T.jsxs)(o.A,{open:t.isOpen,isInitialized:u,className:"!w-[30rem]",initialFocus:r,children:[(0,T.jsx)(o.A.Header,{isGray:!1,children:(0,T.jsxs)("div",{className:"flex gap-4 items-center",children:[w[y],(0,T.jsxs)("div",{className:"text-2u font-bold text-gray-900 dark:text-white",children:[z[y]," ",null===g||void 0===g?void 0:g.name]})]})}),(0,T.jsx)(o.A.Body,{children:(0,T.jsx)("div",{className:"text-sm font-medium text-gray-500 text-justify dark:text-gray-100",children:I[y]})}),(0,T.jsx)(o.A.Actions,{shownOk:!1,shownCancel:!1,classes:{root:"!justify-end"},children:(0,T.jsxs)("div",{className:"flex flex-col xs:flex-row xs:justify-end w-full sm:w-max gap-2",children:[(0,T.jsx)(s.Ay,{size:"sm",variant:"outlined",onClick:p,children:n("dialog.button.cancel")}),(0,T.jsx)(s.Ay,{size:"sm",color:O,onClick:m,children:b[y]}),(0,T.jsx)(s.Ay,{size:"sm",color:O,onClick:f,children:x[y]})]})}),(0,T.jsx)(c.V,{loading:e}),(0,T.jsx)(h.X,{dialogCreator:E})]})}));E.displayName="OrganizationChangeStatusModal";const w=E},83160:(t,e,n)=>{n.d(e,{l:()=>a});var i=n(64812),r=n(34734),o=n(61871),s=n(23246);class a{get isAnyDialogOpen(){return this.activeDialogs.some((t=>t.isOpen))}get isAnyDialogActive(){return this.activeDialogs.some((t=>t.isActive))}get activeDialogs(){return[...this.dialogSet].filter((t=>t.isActive))}constructor(t){this.isInitialized=!1,this.dialogSet=new Set;const e=new Proxy(this,{get(e,n){if(n in this||!s.h.getIsValidDialogName(n))return e[n];if(s.h.getIsComponentLoading(n))throw console.warn("Dialog Twice call prevent"),new r.N("Same Dialog is Loading");const a=new o.y(n,null===t||void 0===t?void 0:t.scope);return(0,i.h5)((()=>{e.dialogSet.forEach((t=>{t.isActive||e.dialogSet.delete(t)})),e.dialogSet.add(a)})),a}});return(0,i.l_)(e,void 0,{autoBind:!0}),e}init(){this.isInitialized?console.error("DialogCreator already initialized"):this.isInitialized=!0}purge(){this.isInitialized=!1}}},90143:(t,e,n)=>{n.d(e,{G:()=>i});var i=(0,n(8344).L)((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}))},92325:(t,e,n)=>{n.d(e,{mj:()=>z,tu:()=>h,F_:()=>y,Kx:()=>g,M9:()=>E,CP:()=>f,Zn:()=>s,t9:()=>v,ux:()=>a,dj:()=>u,vt:()=>A,EB:()=>m,gy:()=>p,Q1:()=>l,Ko:()=>d,OD:()=>w,Co:()=>c,s2:()=>T});var i=n(13665),r=n(16082),o=n(62401);const s=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/${t}`,method:"GET"}),a=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/detail/${t}`,method:"GET"}),l=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/businessunits/${t}`,method:"GET"}),d=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/organization/${t}`,method:"GET"}),u=(t,e)=>{var n,s;return(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/practices/${t}`,method:"GET",queryParams:{limit:null!==(n=null===e||void 0===e?void 0:e.limit)&&void 0!==n?n:o.yU,offset:null!==(s=null===e||void 0===e?void 0:e.offset)&&void 0!==s?s:0,...null!==e&&void 0!==e&&e.sortedBy?{sortedBy:e.sortedBy}
1:{},...void 0!==(null===e||void 0===e?void 0:e.desc)?{desc:e.desc}:{},...null!==e&&void 0!==e&&e.searchText?{searchText:e.searchText}:{}}})},c=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/${t.id}`,method:"PUT",body:{...t}}),h=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit`,method:"POST",body:{...t}}),v=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/administrators/${t}`,method:"GET"}),g=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/administrator/${t}/${e}`,method:"DELETE"}),y=t=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/administrator`,method:"POST",body:{...t}}),f=(t,e)=>{var n,o;return(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/practices/${t}/export`,method:"GET",queryParams:{limit:null!==(n=null===e||void 0===e?void 0:e.limit)&&void 0!==n?n:2500,offset:null!==(o=null===e||void 0===e?void 0:e.offset)&&void 0!==o?o:0,...null!==e&&void 0!==e&&e.sortedBy?{sortedBy:e.sortedBy}:{},...void 0!==(null===e||void 0===e?void 0:e.desc)?{desc:e.desc}:{}},responseType:"blob"})},m=(t,e,n,o)=>(0,r.Ay)({url:`${i.dK}/v3/businessUnit/users/list/${t}`,method:"GET",queryParams:e||n||o?{...e?{limit:e.limit,offset:e.offset}:{},...n?{sortedBy:n.sortedBy,desc:String(n.desc)}:{},...null!==o&&void 0!==o?o:{}}:void 0}),p=t=>(0,r.Ay)({url:`${i.dK}/v3/businessUnit/users/active-count/${t}`,method:"GET"}),A=(t,e,n,o)=>(0,r.Ay)({url:`${i.dK}/v3/businessUnit/user-invites/list/${t}`,method:"GET",queryParams:e||n||o?{...null!==e&&void 0!==e?e:{},...null!==n&&void 0!==n?n:{},...null!==o&&void 0!==o?o:{}}:void 0}),T=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/status/${t}`,method:"POST",body:e}),E=(t,e)=>(0,r.Ay)({url:`${i.dK}/v3/admin/businessUnit/users/${t}/export/${e}`,method:"GET",responseType:"blob"}),w=t=>(0,r.Ay)({url:`${i.dK}/v3/entitynotification/businessUnit`,method:"POST",body:{businessUnitId:t}});let z=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t[t.INACTIVE_BY_ORG=99]="INACTIVE_BY_ORG",t}({})},95788:(t,e,n)=>{n.d(e,{A:()=>d});var i=n(65043),r=n(68703),o=n(63632),s=n(40966),a=n(70579);const l=(0,r.PA)((({dialog:t})=>{const[e,n]=(0,i.useState)(null);return(0,i.useEffect)((()=>{let e=!0;return n(null),(0,s.pW)(t.componentLoader).then((({default:t})=>{e&&n((()=>t))})).catch((n=>{e&&t.error(n)})),()=>{e=!1}}),[t]),t.isActive&&null!==e?(0,a.jsx)(o.tH,{fallbackRender:()=>null,onError:e=>t.error(e),children:(0,a.jsx)(i.Suspense,{fallback:null,children:(0,a.jsx)(e,{dialog:t})})}):null}));l.displayName="DialogRender";const d=l},97459:(t,e,n)=>{n.d(e,{Dr:()=>a,Hc:()=>y,I5:()=>_,L0:()=>T,LH:()=>u,OY:()=>$,Os:()=>N,P4:()=>f,PZ:()=>v,Ps:()=>z,VT:()=>m,WO:()=>C,WU:()=>w,ZS:()=>p,_E:()=>h,d4:()=>c,eC:()=>S,jL:()=>I,jR:()=>d,jo:()=>E,lk:()=>s,m6:()=>o,oG:()=>x,om:()=>O,pS:()=>b,qF:()=>r,qH:()=>l,td:()=>A,xp:()=>g});var i=n(53536);function r(t){if(!t)return{};try{return JSON.parse(t)}catch(e){return console.error(e),{}}}const o=t=>(0,i.cloneDeepWith)(t,(t=>{if((0,i.isNil)(t))return""})),s=(t,e)=>(0,i.cloneDeepWith)(t,(t=>{let n=t;if(null!==e&&void 0!==e&&e.trim&&(0,i.isString)(n)&&n.length>0&&(n=n.trim()),null!==e&&void 0!==e&&e.parseNumberLike&&(0,i.isString)(n)&&n.length>0){const t=n.trim(),e=Number(t);String(e)===t&&(n=e)}return""===n?null:n!==t?n:void 0})),a=t=>{if("boolean"===typeof t)return t;if("string"===typeof t){const e=t.toLowerCase().trim();if("true"===e)return!0;if("false"===e)return!1;if(""===e)return!1}return Boolean(t)},l=t=>{if(!t)return"";return((0,i.isArray)(t)?t[0]:t).replace(/\D/,"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")},d=t=>{if(!t)return"";const e=String(t);return e.length<=5?e:e.replace(/\D/,"").replace(/(\d{5})(\d{0,4})/,"$1-$2")},u=(t,e)=>{(0,i.forOwn)(e,((e,n)=>{if(!e)return;const r=t[n],o=((t,e)=>{switch(e){case"string":return(0,i.isNil)(t)||(0,i.isString)(t)?t:String(t);case"!string":return(0,i.isString)(t)?t:String(t);case"number":return(0,i.isNil)(t)||(0,i.isNumber)(t)?t:Number(t);case"!number":return(0,i.isNumber)(t)?t:Number(t);default:return t}})(r,e);r!==o&&(t[n]=o)}))},c=t=>(0,i.cloneDeepWith)(t,(t=>{if((0,i.isFunction)(t))return t})),h=(t,e)=>(t&e)===e,v=(t,e,n,i)=>{const{userAgent:r}=navigator,o=()=>/\b(iPhone|iP[ao]d)/.test(r)||/\b(iP[ao]d)/.test(r)||/Android/i.test(r)||/Mobile/i.test(r),s="undefined"!==typeof window.screenX?window.screenX:window.screenLeft,a="undefined"!==typeof window.screenY?window.screenY:window.screenTop,l="undefined"!==typeof window.outerWidth?window.outerWidth:document.documentElement.clientWidth,d="undefined"!==typeof window.outerHeight?window.outerHeight:document.documentElement.clientHeight-22,u=o()?null:n,
1c=o()?null:i,h=s<0?window.screen.width+s:s,v=parseInt(String(h+(l-(null!==u&&void 0!==u?u:0))/2),10),g=parseInt(String(a+(d-(null!==c&&void 0!==c?c:0))/2.5),10),y=[];null!==u&&y.push(`width=${u}`),null!==c&&y.push(`height=${c}`),y.push(`left=${v}`),y.push(`top=${g}`),y.push("scrollbars=1");const f=window.open(t,e,y.join(","));return window.focus&&(null===f||void 0===f||f.focus()),f},g=(t,e=20,n=500)=>{var i;if(!t)return;if(null===(i=t.close)||void 0===i||i.call(t),!e)return;let r=0;const o=setInterval((()=>{var n;r+=1,null===(n=t.close)||void 0===n||n.call(t),r>=e&&clearInterval(o)}),n)};const y=(t,e,n="")=>{const r={},o=(...t)=>t.filter((t=>!(0,i.isNil)(t)&&""!==t)).join("."),s=(a,l="")=>{if((0,i.isArray)(a))(0,i.forEach)(a,((t,e)=>{s(t,o(l,e))}));else if(!(0,i.isDate)(a)&&(0,i.isObject)(a))(0,i.forOwn)(a,((t,e)=>{s(t,o(l,e))}));else{const s=(0,i.get)(t,l),a=(0,i.get)(e,l);(0,i.has)(t,l)&&(0,i.isEqual)(s,a)||(r[o(n,l)]=a)}};return s(e),(0,i.isEmpty)(r)?null:r},f=(t,e,...n)=>{const i=setTimeout(t,e,n);return()=>clearTimeout(i)},m=(t,e,...n)=>{const i=setInterval(t,e,n);return()=>clearInterval(i)},p=t=>!(0,i.isString)(t)||0===t.trim().length,A=(t,e)=>{if(!e)return null!==e&&void 0!==e?e:"";let n=e;return t.forEach((([t,e])=>{n=n.replace(t,e)})),n},T=(t,e)=>n=>n?(null===t||void 0===t||t(n),()=>{null===e||void 0===e||e(n)}):(console.error("RefCallback cannot receive null"),()=>{}),E=t=>{const e=new Set;return n=>{var i,r;(e.add(n),null===(i=t.onMount)||void 0===i||i.call(t,n,e.size),1===e.size)&&(null===(r=t.onMountFirst)||void 0===r||r.call(t));return()=>{var i,r;(null===(i=t.onUnmount)||void 0===i||i.call(t,n,e.size),e.delete(n),0===e.size)&&(null===(r=t.onUnmountLast)||void 0===r||r.call(t))}}},w=(t,e)=>e.reduce(((e,n)=>({...e,[n]:t.reduce(((t,e)=>t+(Number.isFinite(Number(e[n]))?Number(e[n]):0)),0)})),{}),z=async(t,e,n)=>new Promise(((r,o)=>{(async()=>{const r=[];for(const o of(0,i.chunk)(t,n)){const t=await Promise.all(o.map(e));r.push(...t)}return r})().then(r).catch(o)})),I=(t,e,n)=>{const r=t=>(0,i.isString)(t)||(0,i.isNumber)(t)?String(t).toLowerCase().trim():"",o=r(t),s=r(e);return o?s?n?(null===o||void 0===o?void 0:o.localeCompare(s))>0?1:-1:(null===s||void 0===s?void 0:s.localeCompare(o))>0?-1:1:n?1:-1:n?-1:1},x=t=>{const e=[],n=[];return t.forEach((t=>{t.underRug?n.push(t):e.push(t)})),{onRug:e.length>0?e:null,underRug:n.length>0?n:null}},b=(t,e)=>{if((0,i.isNil)(t))return t;const n={};return Object.keys(t).forEach((i=>{i in e&&(n[e[i]]=t[i])})),n},O=(t,e,n)=>{if(!n)return[...t];const r=/\s{2,}/g,o=String(null!==n&&void 0!==n?n:"").toLowerCase().replace(r," "),s=t=>!(!(0,i.isString)(t)&&!(0,i.isNumber)(t)||(0,i.isNumber)(t)&&!(0,i.isFinite)(t))&&String(t).toLowerCase().replace(r," ").includes(o);return t.filter((t=>(0,i.isFunction)(e)?e(t).some((t=>s(t))):e.some((e=>s((0,i.get)(t,e))))))},S=t=>(0,i.isArray)(t)?[...t]:(0,i.isNil)(t)?[]:[t],C=(t,e,n)=>{let r=t.get(e);return(0,i.isUndefined)(r)&&(r=n(),t.set(e,r)),r},$=(t,e)=>((0,i.isArray)(t)?t:[t]).includes(e),N=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})),_=(t,e,n)=>(0,i.sortBy)(e,(e=>(0,i.indexOf)(t,e[n])))},99645:(t,e,n)=>{n.d(e,{R:()=>y});var i=n(6326),r=n(63661),o=n(58989),s=n(51198),a=n(96726),l=n(65314),d=n(43879),u=Array.isArray;function c(t){return(0,d.T)((function(e){return function(t,e){return u(e)?t.apply(void 0,(0,i.fX)([],(0,i.zs)(e))):t(e)}(t,e)}))}var h=["addListener","removeListener"],v=["addEventListener","removeEventListener"],g=["on","off"];function y(t,e,n,d){if((0,l.T)(n)&&(d=n,n=void 0),d)return y(t,e,n).pipe(c(d));var u=(0,i.zs)(function(t){return(0,l.T)(t.addEventListener)&&(0,l.T)(t.removeEventListener)}(t)?v.map((function(i){return function(r){return t[i](e,r,n)}})):function(t){return(0,l.T)(t.addListener)&&(0,l.T)(t.removeListener)}(t)?h.map(f(t,e)):function(t){return(0,l.T)(t.on)&&(0,l.T)(t.off)}(t)?g.map(f(t,e)):[],2),m=u[0],p=u[1];if(!m&&(0,a.X)(t))return(0,s.Z)((function(t){return y(t,e,n)}))((0,r.Tg)(t));if(!m)throw new TypeError("Invalid event target");return new o.c((function(t){var e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1<e.length?e:e[0])};return m(e),function(){return p(e)}}))}function f(t,e){return function(n){return function(i){return t[n](e,i)}}}}}]);
2//# sourceMappingURL=2710.f5001cde.chunk.js.map

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.