@riab/cpm-archiving 1.0.13-beta.21 → 1.0.13-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cpm-archiving.js +1 -1
- package/package.json +1 -1
package/dist/cpm-archiving.js
CHANGED
|
@@ -646,4 +646,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
646
646
|
<br/>
|
|
647
647
|
<p>
|
|
648
648
|
The limit you choose will apply to <strong>all items in a review period</strong>, including those flagged for keywords or appearing from employees on the Heightened Supervision List.
|
|
649
|
-
</p>`}),d.jsx(rn,{prevLink:"/setup/mobile/firm-accounts",prevProgress:7,nextLink:"/setup/mobile/flagging-keywords",nextProgress:8})]}),$Se=a$(),Mi=$Se({component:()=>{const{data:e,isLoading:t,isSuccess:n,isError:r}=lt(kD),{data:a,isLoading:i,isSuccess:o}=lt(she()),l=Re(A=>A.setAccountSettings),c=Re(A=>A.setIsSetupCompleted),m=Re(A=>A.setPlatforms),v=_a(),{pathname:p}=ns();T.useEffect(()=>{n&&(l(e),c((e==null?void 0:e.progress)>=mu),(e==null?void 0:e.progress)<mu&&!p.includes("/setup/")&&v({to:"/setup"}))},[e,n]),T.useEffect(()=>{r&&(c(!1),v({to:"/setup"}))},[r]),T.useEffect(()=>{if(o&&a.length>0){const A={};a.map(b=>{A[b.name]=b.id}),m(A)}},[a,o]);const y=ns();return T.useEffect(()=>{y.pathname.includes("/hierarchy")&&((e==null?void 0:e.progress)<5&&He.executeRequest("/Archiving/set_setup_progress","POST",{setupProgress:5}),v({to:"/setup/
|
|
649
|
+
</p>`}),d.jsx(rn,{prevLink:"/setup/mobile/firm-accounts",prevProgress:7,nextLink:"/setup/mobile/flagging-keywords",nextProgress:8})]}),$Se=a$(),Mi=$Se({component:()=>{const{data:e,isLoading:t,isSuccess:n,isError:r}=lt(kD),{data:a,isLoading:i,isSuccess:o}=lt(she()),l=Re(A=>A.setAccountSettings),c=Re(A=>A.setIsSetupCompleted),m=Re(A=>A.setPlatforms),v=_a(),{pathname:p}=ns();T.useEffect(()=>{n&&(l(e),c((e==null?void 0:e.progress)>=mu),(e==null?void 0:e.progress)<mu&&!p.includes("/setup/")&&v({to:"/setup"}))},[e,n]),T.useEffect(()=>{r&&(c(!1),v({to:"/setup"}))},[r]),T.useEffect(()=>{if(o&&a.length>0){const A={};a.map(b=>{A[b.name]=b.id}),m(A)}},[a,o]);const y=ns();return T.useEffect(()=>{y.pathname.includes("/hierarchy")&&((e==null?void 0:e.progress)<5&&He.executeRequest("/Archiving/set_setup_progress","POST",{setupProgress:5}),v({to:"/setup/mobile"})),y.pathname.includes("/my-archive")&&(ce.error("My Archive is not available for now!",{id:"my-archive-page"}),v({to:"/email"}))},[y]),d.jsxs(d.Fragment,{children:[t?d.jsx("div",{className:"mt-20",children:d.jsx(ot,{size:"xl"})}):d.jsx(Tne,{}),d.jsx(d$,{}),d.jsx(Oee,{})]})}}),ewe=Ze({getParentRoute:()=>Mi,path:"/",beforeLoad:()=>{throw Cu({to:"/email"})},component:zfe}),Cn=Ze({getParentRoute:()=>Mi,path:"/setup",component:Ehe}),twe=Ze({getParentRoute:()=>Cn,path:"/",component:oSe}),nwe=Ze({getParentRoute:()=>Cn,path:"/email/review-frequency",component:Ahe}),rwe=Ze({getParentRoute:()=>Cn,path:"/website/review-frequency",component:Ohe}),awe=Ze({getParentRoute:()=>Cn,path:"/email",component:vhe}),iwe=Ze({getParentRoute:()=>Cn,path:"/email/text-message",component:dle}),swe=Ze({getParentRoute:()=>Cn,path:"/email/review-sample-size",component:She}),owe=Ze({getParentRoute:()=>Cn,path:"/email/heightened-supervision",component:Fhe}),uwe=Ze({getParentRoute:()=>Cn,path:"/email/flagging-keywords",component:bhe}),lwe=Ze({getParentRoute:()=>Cn,path:"/website",component:Rhe}),cwe=Ze({getParentRoute:()=>Cn,path:"/social-media",component:The}),dwe=Ze({getParentRoute:()=>Cn,path:"/social-media/user-accounts",component:Phe}),fwe=Ze({getParentRoute:()=>Cn,path:"/social-media/employee-accounts",component:xhe}),hwe=Ze({getParentRoute:()=>Cn,path:"/social-media/pre-approval",component:Dhe}),mwe=Ze({getParentRoute:()=>Cn,path:"/social-media/review-frequency",component:Mhe}),pwe=Ze({getParentRoute:()=>Cn,path:"/social-media/keywords",component:Che}),gwe=Ze({getParentRoute:()=>Cn,path:"/mobile",component:JSe}),vwe=Ze({getParentRoute:()=>Cn,path:"/mobile/firm-accounts",component:GSe}),ywe=Ze({getParentRoute:()=>Cn,path:"/mobile/review-frequency-and-size",component:WSe}),Awe=Ze({getParentRoute:()=>Cn,path:"/mobile/flagging-keywords",component:YSe}),bwe=Ze({getParentRoute:()=>Cn,path:"/mobile/heightened-supervision",component:VSe}),Fwe=Ze({getParentRoute:()=>Mi,path:"/social_media",component:Nhe}),Swe=Ze({getParentRoute:()=>Mi,path:"/social_media/$postId",loader:({params:e})=>{if(!Re.getState().reviewPeriod)throw Cu({to:"/social_media"});return{params:e}},component:kge}),wwe=Ze({getParentRoute:()=>Mi,path:"/my-archive",component:sSe}),Ewe=Ze({getParentRoute:()=>Mi,path:"/website",component:Rge}),xwe=Ze({getParentRoute:()=>Mi,path:"/website/$entryId",loader:({params:e})=>{if(!Re.getState().reviewPeriod)throw Cu({to:"/website"});return{params:e}},component:Ige}),Cwe=Ze({getParentRoute:()=>Mi,path:"/email",component:yce}),Dwe=Ze({getParentRoute:()=>Mi,path:"/email/$entryId",loader:({params:e})=>{if(!Re.getState().reviewPeriod)throw Cu({to:"/email"});return{params:e}},component:Hfe}),Gn=Ze({getParentRoute:()=>Mi,path:"/settings",component:$fe,loader:({context:{queryClient:e}})=>{e.ensureQueryData(kD)}}),Mwe=Ze({getParentRoute:()=>Gn,path:"/",component:Jfe,beforeLoad:()=>{throw Cu({to:"/settings/email"})}}),kwe=Ze({getParentRoute:()=>Gn,path:"/email",beforeLoad:({location:e})=>{if(e.pathname.endsWith("/settings/email"))throw Cu({to:"/settings/email/accounts-and-domains"})}}),Twe=Ze({getParentRoute:()=>Gn,path:"/social-media",beforeLoad:({location:e})=>{if(e.pathname.endsWith("/settings/social-media"))throw Cu({to:"/settings/social-media/archived-accounts"})}}),Bwe=Ze({getParentRoute:()=>Gn,path:"/email/accounts-and-domains",component:Wfe}),Pwe=Ze({getParentRoute:()=>Gn,path:"/email/keywords",component:Vfe}),Rwe=Ze({getParentRoute:()=>Gn,path:"/email/supervision",component:Yfe}),Owe=Ze({getParentRoute:()=>Gn,path:"/email/excluded-emails",component:SSe}),Iwe=Ze({getParentRoute:()=>Gn,path:"/email/sample-size",component:Ufe}),jwe=Ze({getParentRoute:()=>Gn,path:"/email/frequency",component:Zfe}),Lwe=Ze({getParentRoute:()=>Gn,path:"/social-media/review-frequency",component:hhe}),Nwe=Ze({getParentRoute:()=>Gn,path:"/social-media/keywords",component:fhe}),Hwe=Ze({getParentRoute:()=>Gn,path:"/social-media/archived-accounts",component:uhe}),zwe=Ze({getParentRoute:()=>Gn,path:"/website",component:ghe}),Jwe=Ze({getParentRoute:()=>Gn,path:"/text",component:mhe}),Gwe=Ze({getParentRoute:()=>Gn,path:"/mobile",beforeLoad:({location:e})=>{if(e.pathname.endsWith("/settings/mobile")||e.pathname.endsWith("/settings/mobile/"))throw Cu({to:"/settings/mobile/user-accounts"})}}),Qwe=Ze({getParentRoute:()=>Gn,path:"/mobile/user-accounts",component:XSe}),Wwe=Ze({getParentRoute:()=>Gn,path:"/mobile/firm-accounts",component:KSe}),Ywe=Ze({getParentRoute:()=>Gn,path:"/mobile/flagged-keywords",component:ZSe}),Vwe=Ze({getParentRoute:()=>Gn,path:"/mobile/heightened-supervision",component:USe}),qwe=Ze({getParentRoute:()=>Gn,path:"/mobile/review-frequency-and-size",component:_Se}),Xwe=Ze({getParentRoute:()=>Cn,path:"/messaging",component:yhe}),Kwe=Ze({getParentRoute:()=>Cn,path:"/finish",component:fle}),Zwe=Ze({getParentRoute:()=>Cn,path:"/hierarchy/employee",component:uSe}),Uwe=Mi.addChildren([ewe,Cwe,Ewe,Fwe,Dwe,xwe,Swe,wwe,Cn.addChildren([twe,awe,nwe,iwe,swe,owe,uwe,lwe,rwe,cwe,dwe,fwe,pwe,hwe,mwe,Xwe,Kwe,Zwe,gwe,vwe,ywe,Awe,bwe]),Gn.addChildren([Mwe,kwe,Twe,Bwe,Pwe,jwe,Rwe,Owe,Iwe,Lwe,Nwe,Hwe,Jwe,zwe,Gwe,Qwe,Wwe,Ywe,Vwe,qwe])]),R5=o$({routeTree:Uwe,defaultPreload:"intent",context:{...Iee()},scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),_we=({route:e,user:t,environment:n})=>{n!=="local"&&n!=="development"&&UU({dsn:"https://26ed528c0727a1a2adb22c381ca4111a@o414861.ingest.sentry.io/4506220268355584",integrations:[t_(R5)],tracesSampleRate:1});const r=new Y8(n,t);return d.jsx(T.StrictMode,{children:d.jsx(mH.Provider,{value:r,children:d.jsxs(jee,{children:[d.jsx(c$,{router:R5,basepath:e}),d.jsx(eee,{position:"top-right",children:a=>d.jsx(ZN,{toast:a,style:{background:a.type==="success"?"#22c55e":"#ef4444",color:"#fff",padding:"8px",borderRadius:"8px",border:"1px solid #fff"}})})]})})})};class $we extends IW(_we,{props:{route:"string",user:"string",environment:"string"},shadow:"open"}){connectedCallback(){var n;super.connectedCallback(),He.init(this.environment,this.user);const t=document.getElementById("complyArchiveStyles");t&&((n=this.shadowRoot)==null||n.appendChild(t.cloneNode(!0)))}}customElements.define("cpm-archiving",$we);
|