@riab/cpm-archiving 1.0.23-beta → 1.0.24-beta
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
|
@@ -509,7 +509,7 @@ Sentry.init({...});
|
|
|
509
509
|
Licensed under the MIT License (MIT), see
|
|
510
510
|
http://jedwatson.github.io/classnames
|
|
511
511
|
*/var gR;function Kn(){return gR||(gR=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(i=a(i,r(u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var u in i)t.call(i,u)&&i[u]&&(s=a(s,u));return s}function a(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(aS)),aS.exports}var lue=Kn();const K3=Dc(lue);var pR={};const uue="react-tooltip-core-styles",cue="react-tooltip-base-styles",vR={core:!1,base:!1};function yR({css:e,id:t=cue,type:n="base",ref:r}){var a,i;if(!e||typeof document>"u"||vR[n]||n==="core"&&typeof process<"u"&&(!((a=process==null?void 0:pR)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:pR)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=uue),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",s==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),vR[n]=!0}const bR=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:a=10,strategy:i="absolute",middlewares:s=[aue(Number(a)),oue({fallbackAxisSideDirection:"start"}),iue({padding:5})],border:u,arrowSize:c=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const d=s;return n?(d.push(sue({element:n,padding:5})),mR(e,t,{placement:r,strategy:i,middleware:d}).then(({x:p,y:g,placement:b,middlewareData:y})=>{var A,F;const w={left:`${p}px`,top:`${g}px`,border:u},{x:E,y:k}=(A=y.arrow)!==null&&A!==void 0?A:{x:0,y:0},T=(F={top:"bottom",right:"left",bottom:"top",left:"right"}[b.split("-")[0]])!==null&&F!==void 0?F:"bottom",R=u&&{borderBottom:u,borderRight:u};let x=0;if(u){const D=`${u}`.match(/(\d+)px/);x=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:w,tooltipArrowStyles:{left:E!=null?`${E}px`:"",top:k!=null?`${k}px`:"",right:"",bottom:"",...R,[T]:`-${c/2+x}px`},place:b}})):mR(e,t,{placement:"bottom",strategy:i,middleware:d}).then(({x:p,y:g,placement:b})=>({tooltipStyles:{left:`${p}px`,top:`${g}px`},tooltipArrowStyles:{},place:b}))},AR=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),FR=(e,t,n)=>{let r=null;const a=function(...i){const s=()=>{r=null};!r&&(e.apply(this,i),r=setTimeout(s,t))};return a.cancel=()=>{r&&(clearTimeout(r),r=null)},a},SR=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",U3=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((a,i)=>U3(a,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!SR(e)||!SR(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>U3(e[a],t[a]))},due=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},wR=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(due(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},fue=typeof window<"u"?O.useLayoutEffect:O.useEffect,Va=e=>{e.current&&(clearTimeout(e.current),e.current=null)},hue="DEFAULT_TOOLTIP_ID",mue={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},gue=O.createContext({getTooltipData:()=>mue});function EJ(e=hue){return O.useContext(gue).getTooltipData(e)}var Kd={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},iS={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const pue=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:a="dark",anchorId:i,anchorSelect:s,place:u="top",offset:c=10,events:d=["hover"],openOnClick:p=!1,positionStrategy:g="absolute",middlewares:b,wrapper:y,delayShow:A=0,delayHide:F=0,float:w=!1,hidden:E=!1,noArrow:k=!1,clickable:T=!1,closeOnEsc:R=!1,closeOnScroll:x=!1,closeOnResize:D=!1,openEvents:P,closeEvents:M,globalCloseEvents:B,imperativeModeOnly:I,style:L,position:H,afterShow:z,afterHide:W,disableTooltip:U,content:Q,contentWrapperRef:_,isOpen:te,defaultIsOpen:fe=!1,setIsOpen:J,activeAnchor:Y,setActiveAnchor:q,border:V,opacity:X,arrowColor:G,arrowSize:K=8,role:he="tooltip"})=>{var ie;const le=O.useRef(null),me=O.useRef(null),Fe=O.useRef(null),Se=O.useRef(null),we=O.useRef(null),[ge,Te]=O.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[De,Me]=O.useState(!1),[xe,Pe]=O.useState(!1),[ke,Ie]=O.useState(null),Be=O.useRef(!1),gt=O.useRef(null),{anchorRefs:It,setActiveAnchor:Tt}=EJ(t),en=O.useRef(!1),[Wt,zn]=O.useState([]),Xt=O.useRef(!1),Ba=p||d.includes("click"),po=Ba||(P==null?void 0:P.click)||(P==null?void 0:P.dblclick)||(P==null?void 0:P.mousedown),Ra=P?{...P}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!P&&Ba&&Object.assign(Ra,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const wr=M?{...M}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!M&&Ba&&Object.assign(wr,{mouseleave:!1,blur:!1,mouseout:!1});const Jn=B?{...B}:{escape:R||!1,scroll:x||!1,resize:D||!1,clickOutsideAnchor:po||!1};I&&(Object.assign(Ra,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(wr,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Jn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),fue(()=>(Xt.current=!0,()=>{Xt.current=!1}),[]);const jt=Ce=>{Xt.current&&(Ce&&Pe(!0),setTimeout(()=>{Xt.current&&(J==null||J(Ce),te===void 0&&Me(Ce))},10))};O.useEffect(()=>{if(te===void 0)return()=>null;te&&Pe(!0);const Ce=setTimeout(()=>{Me(te)},10);return()=>{clearTimeout(Ce)}},[te]),O.useEffect(()=>{if(De!==Be.current)if(Va(we),Be.current=De,De)z==null||z();else{const Ce=(Ne=>{const Xe=Ne.match(/^([\d.]+)(ms|s)$/);if(!Xe)return 0;const[,sn,xn]=Xe;return Number(sn)*(xn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));we.current=setTimeout(()=>{Pe(!1),Ie(null),W==null||W()},Ce+25)}},[De]);const ga=Ce=>{Te(Ne=>U3(Ne,Ce)?Ne:Ce)},Nr=(Ce=A)=>{Va(Fe),xe?jt(!0):Fe.current=setTimeout(()=>{jt(!0)},Ce)},Ia=(Ce=F)=>{Va(Se),Se.current=setTimeout(()=>{en.current||jt(!1)},Ce)},ja=Ce=>{var Ne;if(!Ce)return;const Xe=(Ne=Ce.currentTarget)!==null&&Ne!==void 0?Ne:Ce.target;if(!(Xe!=null&&Xe.isConnected))return q(null),void Tt({current:null});A?Nr():jt(!0),q(Xe),Tt({current:Xe}),Va(Se)},pa=()=>{T?Ia(F||100):F?Ia():jt(!1),Va(Fe)},ta=({x:Ce,y:Ne})=>{var Xe;const sn={getBoundingClientRect:()=>({x:Ce,y:Ne,width:0,height:0,top:Ne,left:Ce,right:Ce,bottom:Ne})};bR({place:(Xe=ke==null?void 0:ke.place)!==null&&Xe!==void 0?Xe:u,offset:c,elementReference:sn,tooltipReference:le.current,tooltipArrowReference:me.current,strategy:g,middlewares:b,border:V,arrowSize:K}).then(xn=>{ga(xn)})},Er=Ce=>{if(!Ce)return;const Ne=Ce,Xe={x:Ne.clientX,y:Ne.clientY};ta(Xe),gt.current=Xe},ii=Ce=>{var Ne;if(!De)return;const Xe=Ce.target;Xe.isConnected&&(!((Ne=le.current)===null||Ne===void 0)&&Ne.contains(Xe)||[document.querySelector(`[id='${i}']`),...Wt].some(sn=>sn==null?void 0:sn.contains(Xe))||(jt(!1),Va(Fe)))},oi=FR(ja,50),fn=FR(pa,50),Gn=Ce=>{fn.cancel(),oi(Ce)},Ye=()=>{oi.cancel(),fn()},ft=O.useCallback(()=>{var Ce,Ne;const Xe=(Ce=ke==null?void 0:ke.position)!==null&&Ce!==void 0?Ce:H;Xe?ta(Xe):w?gt.current&&ta(gt.current):Y!=null&&Y.isConnected&&bR({place:(Ne=ke==null?void 0:ke.place)!==null&&Ne!==void 0?Ne:u,offset:c,elementReference:Y,tooltipReference:le.current,tooltipArrowReference:me.current,strategy:g,middlewares:b,border:V,arrowSize:K}).then(sn=>{Xt.current&&ga(sn)})},[De,Y,Q,L,u,ke==null?void 0:ke.place,c,g,H,ke==null?void 0:ke.position,w,K]);O.useEffect(()=>{var Ce,Ne;const Xe=new Set(It);Wt.forEach(Dt=>{U!=null&&U(Dt)||Xe.add({current:Dt})});const sn=document.querySelector(`[id='${i}']`);sn&&!(U!=null&&U(sn))&&Xe.add({current:sn});const xn=()=>{jt(!1)},xr=wR(Y),fr=wR(le.current);Jn.scroll&&(window.addEventListener("scroll",xn),xr==null||xr.addEventListener("scroll",xn),fr==null||fr.addEventListener("scroll",xn));let hn=null;Jn.resize?window.addEventListener("resize",xn):Y&&le.current&&(hn=wJ(Y,le.current,ft,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Wn=Dt=>{Dt.key==="Escape"&&jt(!1)};Jn.escape&&window.addEventListener("keydown",Wn),Jn.clickOutsideAnchor&&window.addEventListener("click",ii);const Ct=[],hr=Dt=>!!(Dt!=null&&Dt.target&&(Y!=null&&Y.contains(Dt.target))),si=Dt=>{De&&hr(Dt)||ja(Dt)},La=Dt=>{De&&hr(Dt)&&pa()},mn=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],vo=["click","dblclick","mousedown","mouseup"];Object.entries(Ra).forEach(([Dt,Cr])=>{Cr&&(mn.includes(Dt)?Ct.push({event:Dt,listener:Gn}):vo.includes(Dt)&&Ct.push({event:Dt,listener:si}))}),Object.entries(wr).forEach(([Dt,Cr])=>{Cr&&(mn.includes(Dt)?Ct.push({event:Dt,listener:Ye}):vo.includes(Dt)&&Ct.push({event:Dt,listener:La}))}),w&&Ct.push({event:"pointermove",listener:Er});const yo=()=>{en.current=!0},na=()=>{en.current=!1,pa()},va=T&&(wr.mouseout||wr.mouseleave);return va&&((Ce=le.current)===null||Ce===void 0||Ce.addEventListener("mouseover",yo),(Ne=le.current)===null||Ne===void 0||Ne.addEventListener("mouseout",na)),Ct.forEach(({event:Dt,listener:Cr})=>{Xe.forEach(ki=>{var li;(li=ki.current)===null||li===void 0||li.addEventListener(Dt,Cr)})}),()=>{var Dt,Cr;Jn.scroll&&(window.removeEventListener("scroll",xn),xr==null||xr.removeEventListener("scroll",xn),fr==null||fr.removeEventListener("scroll",xn)),Jn.resize?window.removeEventListener("resize",xn):hn==null||hn(),Jn.clickOutsideAnchor&&window.removeEventListener("click",ii),Jn.escape&&window.removeEventListener("keydown",Wn),va&&((Dt=le.current)===null||Dt===void 0||Dt.removeEventListener("mouseover",yo),(Cr=le.current)===null||Cr===void 0||Cr.removeEventListener("mouseout",na)),Ct.forEach(({event:ki,listener:li})=>{Xe.forEach(Bi=>{var Na;(Na=Bi.current)===null||Na===void 0||Na.removeEventListener(ki,li)})})}},[Y,ft,xe,It,Wt,P,M,B,Ba,A,F]),O.useEffect(()=>{var Ce,Ne;let Xe=(Ne=(Ce=ke==null?void 0:ke.anchorSelect)!==null&&Ce!==void 0?Ce:s)!==null&&Ne!==void 0?Ne:"";!Xe&&t&&(Xe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const sn=new MutationObserver(xn=>{const xr=[],fr=[];xn.forEach(hn=>{if(hn.type==="attributes"&&hn.attributeName==="data-tooltip-id"&&(hn.target.getAttribute("data-tooltip-id")===t?xr.push(hn.target):hn.oldValue===t&&fr.push(hn.target)),hn.type==="childList"){if(Y){const Wn=[...hn.removedNodes].filter(Ct=>Ct.nodeType===1);if(Xe)try{fr.push(...Wn.filter(Ct=>Ct.matches(Xe))),fr.push(...Wn.flatMap(Ct=>[...Ct.querySelectorAll(Xe)]))}catch{}Wn.some(Ct=>{var hr;return!!(!((hr=Ct==null?void 0:Ct.contains)===null||hr===void 0)&&hr.call(Ct,Y))&&(Pe(!1),jt(!1),q(null),Va(Fe),Va(Se),!0)})}if(Xe)try{const Wn=[...hn.addedNodes].filter(Ct=>Ct.nodeType===1);xr.push(...Wn.filter(Ct=>Ct.matches(Xe))),xr.push(...Wn.flatMap(Ct=>[...Ct.querySelectorAll(Xe)]))}catch{}}}),(xr.length||fr.length)&&zn(hn=>[...hn.filter(Wn=>!fr.includes(Wn)),...xr])});return sn.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{sn.disconnect()}},[t,s,ke==null?void 0:ke.anchorSelect,Y]),O.useEffect(()=>{ft()},[ft]),O.useEffect(()=>{if(!(_!=null&&_.current))return()=>null;const Ce=new ResizeObserver(()=>{setTimeout(()=>ft())});return Ce.observe(_.current),()=>{Ce.disconnect()}},[Q,_==null?void 0:_.current]),O.useEffect(()=>{var Ce;const Ne=document.querySelector(`[id='${i}']`),Xe=[...Wt,Ne];Y&&Xe.includes(Y)||q((Ce=Wt[0])!==null&&Ce!==void 0?Ce:Ne)},[i,Wt,Y]),O.useEffect(()=>(fe&&jt(!0),()=>{Va(Fe),Va(Se)}),[]),O.useEffect(()=>{var Ce;let Ne=(Ce=ke==null?void 0:ke.anchorSelect)!==null&&Ce!==void 0?Ce:s;if(!Ne&&t&&(Ne=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Ne)try{const Xe=Array.from(document.querySelectorAll(Ne));zn(Xe)}catch{zn([])}},[t,s,ke==null?void 0:ke.anchorSelect]),O.useEffect(()=>{Fe.current&&(Va(Fe),Nr(A))},[A]);const Un=(ie=ke==null?void 0:ke.content)!==null&&ie!==void 0?ie:Q,Qn=De&&Object.keys(ge.tooltipStyles).length>0;return O.useImperativeHandle(e,()=>({open:Ce=>{if(Ce!=null&&Ce.anchorSelect)try{document.querySelector(Ce.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Ce.anchorSelect}" is not a valid CSS selector`)}Ie(Ce??null),Ce!=null&&Ce.delay?Nr(Ce.delay):jt(!0)},close:Ce=>{Ce!=null&&Ce.delay?Ia(Ce.delay):jt(!1)},activeAnchor:Y,place:ge.place,isOpen:!!(xe&&!E&&Un&&Qn)})),xe&&!E&&Un?Ee.createElement(y,{id:t,role:he,className:K3("react-tooltip",Kd.tooltip,iS.tooltip,iS[a],n,`react-tooltip__place-${ge.place}`,Kd[Qn?"show":"closing"],Qn?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&Kd.fixed,T&&Kd.clickable),onTransitionEnd:Ce=>{Va(we),De||Ce.propertyName!=="opacity"||(Pe(!1),Ie(null),W==null||W())},style:{...L,...ge.tooltipStyles,opacity:X!==void 0&&Qn?X:void 0},ref:le},Un,Ee.createElement(y,{className:K3("react-tooltip-arrow",Kd.arrow,iS.arrow,r,k&&Kd.noArrow),style:{...ge.tooltipArrowStyles,background:G?`linear-gradient(to right bottom, transparent 50%, ${G} 50%)`:void 0,"--rt-arrow-size":`${K}px`},ref:me})):null},vue=({content:e})=>Ee.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),yue=Ee.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:a,render:i,className:s,classNameArrow:u,variant:c="dark",place:d="top",offset:p=10,wrapper:g="div",children:b=null,events:y=["hover"],openOnClick:A=!1,positionStrategy:F="absolute",middlewares:w,delayShow:E=0,delayHide:k=0,float:T=!1,hidden:R=!1,noArrow:x=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:M=!1,closeOnResize:B=!1,openEvents:I,closeEvents:L,globalCloseEvents:H,imperativeModeOnly:z=!1,style:W,position:U,isOpen:Q,defaultIsOpen:_=!1,disableStyleInjection:te=!1,border:fe,opacity:J,arrowColor:Y,arrowSize:q,setIsOpen:V,afterShow:X,afterHide:G,disableTooltip:K,role:he="tooltip"},ie)=>{const[le,me]=O.useState(r),[Fe,Se]=O.useState(a),[we,ge]=O.useState(d),[Te,De]=O.useState(c),[Me,xe]=O.useState(p),[Pe,ke]=O.useState(E),[Ie,Be]=O.useState(k),[gt,It]=O.useState(T),[Tt,en]=O.useState(R),[Wt,zn]=O.useState(g),[Xt,Ba]=O.useState(y),[po,Ra]=O.useState(F),[wr,Jn]=O.useState(null),[jt,ga]=O.useState(null),Nr=O.useRef(te),{anchorRefs:Ia,activeAnchor:ja}=EJ(e),pa=fn=>fn==null?void 0:fn.getAttributeNames().reduce((Gn,Ye)=>{var ft;return Ye.startsWith("data-tooltip-")&&(Gn[Ye.replace(/^data-tooltip-/,"")]=(ft=fn==null?void 0:fn.getAttribute(Ye))!==null&&ft!==void 0?ft:null),Gn},{}),ta=fn=>{const Gn={place:Ye=>{var ft;ge((ft=Ye)!==null&&ft!==void 0?ft:d)},content:Ye=>{me(Ye??r)},html:Ye=>{Se(Ye??a)},variant:Ye=>{var ft;De((ft=Ye)!==null&&ft!==void 0?ft:c)},offset:Ye=>{xe(Ye===null?p:Number(Ye))},wrapper:Ye=>{var ft;zn((ft=Ye)!==null&&ft!==void 0?ft:g)},events:Ye=>{const ft=Ye==null?void 0:Ye.split(" ");Ba(ft??y)},"position-strategy":Ye=>{var ft;Ra((ft=Ye)!==null&&ft!==void 0?ft:F)},"delay-show":Ye=>{ke(Ye===null?E:Number(Ye))},"delay-hide":Ye=>{Be(Ye===null?k:Number(Ye))},float:Ye=>{It(Ye===null?T:Ye==="true")},hidden:Ye=>{en(Ye===null?R:Ye==="true")},"class-name":Ye=>{Jn(Ye)}};Object.values(Gn).forEach(Ye=>Ye(null)),Object.entries(fn).forEach(([Ye,ft])=>{var Un;(Un=Gn[Ye])===null||Un===void 0||Un.call(Gn,ft)})};O.useEffect(()=>{me(r)},[r]),O.useEffect(()=>{Se(a)},[a]),O.useEffect(()=>{ge(d)},[d]),O.useEffect(()=>{De(c)},[c]),O.useEffect(()=>{xe(p)},[p]),O.useEffect(()=>{ke(E)},[E]),O.useEffect(()=>{Be(k)},[k]),O.useEffect(()=>{It(T)},[T]),O.useEffect(()=>{en(R)},[R]),O.useEffect(()=>{Ra(F)},[F]),O.useEffect(()=>{Nr.current!==te&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[te]),O.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:te==="core",disableBase:te}}))},[]),O.useEffect(()=>{var fn;const Gn=new Set(Ia);let Ye=n;if(!Ye&&e&&(Ye=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ye)try{document.querySelectorAll(Ye).forEach(Ne=>{Gn.add({current:Ne})})}catch{console.warn(`[react-tooltip] "${Ye}" is not a valid CSS selector`)}const ft=document.querySelector(`[id='${t}']`);if(ft&&Gn.add({current:ft}),!Gn.size)return()=>null;const Un=(fn=jt??ft)!==null&&fn!==void 0?fn:ja.current,Qn=new MutationObserver(Ne=>{Ne.forEach(Xe=>{var sn;if(!Un||Xe.type!=="attributes"||!(!((sn=Xe.attributeName)===null||sn===void 0)&&sn.startsWith("data-tooltip-")))return;const xn=pa(Un);ta(xn)})}),Ce={attributes:!0,childList:!1,subtree:!1};if(Un){const Ne=pa(Un);ta(Ne),Qn.observe(Un,Ce)}return()=>{Qn.disconnect()}},[Ia,ja,jt,t,n]),O.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),fe&&!AR("border",`${fe}`)&&console.warn(`[react-tooltip] "${fe}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),J&&!AR("opacity",`${J}`)&&console.warn(`[react-tooltip] "${J}" is not a valid \`opacity\`.`)},[]);let Er=b;const ii=O.useRef(null);if(i){const fn=i({content:(jt==null?void 0:jt.getAttribute("data-tooltip-content"))||le||null,activeAnchor:jt});Er=fn?Ee.createElement("div",{ref:ii,className:"react-tooltip-content-wrapper"},fn):null}else le&&(Er=le);Fe&&(Er=Ee.createElement(vue,{content:Fe}));const oi={forwardRef:ie,id:e,anchorId:t,anchorSelect:n,className:K3(s,wr),classNameArrow:u,content:Er,contentWrapperRef:ii,place:we,variant:Te,offset:Me,wrapper:Wt,events:Xt,openOnClick:A,positionStrategy:po,middlewares:w,delayShow:Pe,delayHide:Ie,float:gt,hidden:Tt,noArrow:x,clickable:D,closeOnEsc:P,closeOnScroll:M,closeOnResize:B,openEvents:I,closeEvents:L,globalCloseEvents:H,imperativeModeOnly:z,style:W,position:U,isOpen:Q,defaultIsOpen:_,border:fe,opacity:J,arrowColor:Y,arrowSize:q,setIsOpen:V,afterShow:X,afterHide:G,disableTooltip:K,activeAnchor:jt,setActiveAnchor:fn=>ga(fn),role:he};return Ee.createElement(pue,{...oi})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||yR({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||yR({css:`
|
|
512
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const qM=({onFurtherReview:e,onReviewed:t,addNotes:n,isFurtherReview:r,isReviewedLoading:a,isFurtherReviewLoading:i})=>m.jsxs("div",{className:"sticky bottom-0 z-
|
|
512
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const qM=({onFurtherReview:e,onReviewed:t,addNotes:n,isFurtherReview:r,isReviewedLoading:a,isFurtherReviewLoading:i})=>m.jsxs("div",{className:"sticky bottom-0 z-1 flex justify-center -mx-5 -mb-8 bg-review py-4",children:[m.jsx("div",{className:"w-20 flex flex-col items-center gap-2",children:m.jsx("button",{"data-tooltip-id":"review-actions-tooltip","data-tooltip-content":r?"Marked for Futher Review":"Needs Further Review","data-tooltip-place":"top",className:`text-4xl font-extrabold cursor-${r?"default":"pointer"} shadow-review rounded-full bg-white border border-[#9f362f] p-2 h-16 w-16 text-[#9F362E] flex items-center justify-center`,onClick:r||i?()=>{}:e,children:i?m.jsx(lt,{}):m.jsx("img",{src:yp,className:"w-[20px]"})})}),m.jsx("div",{className:"w-20 flex flex-col items-center gap-2",children:m.jsx("button",{"data-tooltip-id":"review-actions-tooltip","data-tooltip-content":"Add Notes","data-tooltip-place":"top",className:"cursor-pointer shadow-review rounded-full bg-white border border-[#0051CA] p-4 h-16 w-16 text-[#0051CA]",children:m.jsx(ue,{icon:pp,className:"fill-current",size:"large",onClick:n})})}),m.jsx("div",{className:"w-20 flex flex-col items-center gap-2",children:m.jsx("button",{"data-tooltip-id":"review-actions-tooltip","data-tooltip-content":"Reviewed","data-tooltip-place":"top",className:"cursor-pointer shadow-review rounded-full bg-white border border-[#5D9E53] p-3 h-16 w-16 text-[#46763E]",children:a?m.jsx(lt,{}):m.jsx(ue,{icon:yn,className:"fill-current",size:"large",onClick:t})})}),m.jsx(yue,{id:"review-actions-tooltip"})]}),VM=({onNext:e,onPrev:t})=>m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsxs("button",{onClick:t,className:"uppercase flex items-center gap-2 cursor-pointer font-semibold",children:[m.jsx(ue,{className:"mt-[-2px]",icon:uh})," Previous"]}),m.jsxs("button",{onClick:e,className:"uppercase flex items-center gap-2 cursor-pointer font-semibold",children:["Next ",m.jsx(ue,{className:"mt-[-2px]",icon:lh})]})]}),XM=({reviewPeriod:e,reviewPeriods:t,isReviewLoading:n,isReviewSuccess:r})=>{const[a,i]=O.useState([]);return O.useEffect(()=>{!t||t.length<1||i(t==null?void 0:t.filter(s=>s.id==e).map(s=>{let u=`${Fr(s.start,"MMM dd, yyyy")} - ${Fr(s.end,"MMM dd, yyyy")}`;return s!=null&&s.isCompleted&&(u+=" (Completed)"),{value:s.id,label:u}}))},[r]),m.jsxs("div",{className:"self-baseline flex items-center gap-7",children:[m.jsx("h6",{className:"font-semibold text-lg text-blue-700",children:"Selected Review Period:"}),m.jsx(OM,{disabled:!0,value:e,options:a})]})};/**
|
|
513
513
|
* @license
|
|
514
514
|
*-------------------------------------------------------------------------------------------
|
|
515
515
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|