1"use strict";(self.webpackChunkjamef=self.webpackChunkjamef||[]).push([[6629],{6629:(t,e,o)=>{o.r(e),o.d(e,{Popup:()=>s,default:()=>p});var n=o(5538),r=o(7119);function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},i.apply(this,arguments)}var a="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,u={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},l=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],c=function(t,e,o,n,r){var i=r.offsetX,a=r.offsetY,u=n?8:0,l=o.split(" "),c=t.top+t.height/2,f=t.left+t.width/2,d=e.height,s=e.width,p=c-d/2,v=f-s/2,m="",h="0%",y="0%";switch(l[0]){case"top":p-=d/2+t.height/2+u,m="rotate(180deg) translateX(50%)",h="100%",y="50%";break;case"bottom":p+=d/2+t.height/2+u,m="rotate(0deg) translateY(-100%) translateX(-50%)",y="50%";break;case"left":v-=s/2+t.width/2+u,m=" rotate(90deg) translateY(50%) translateX(-25%)",y="100%",h="50%";break;case"right":v+=s/2+t.width/2+u,m="rotate(-90deg) translateY(-150%) translateX(25%)",h="50%"}switch(l[1]){case"top":p=t.top,h=t.height/2+"px";break;case"bottom":p=t.top-d+t.height,h=d-t.height/2+"px";break;case"left":v=t.left,y=t.width/2+"px";break;case"right":v=t.left-s+t.width,y=s-t.width/2+"px"}return{top:p="top"===l[0]?p-a:p+a,left:v="left"===l[0]?v-i:v+i,transform:m,arrowLeft:y,arrowTop:h}},f=function(t,e,o,n,r,i){var a=r.offsetX,u=r.offsetY,f={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},d=0,s=function(t){var e={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"===typeof t){var o=document.querySelector(t);null!==o&&(e=o.getBoundingClientRect())}return e}(i),p=Array.isArray(o)?o:[o];for((i||Array.isArray(o))&&(p=[].concat(p,l));d<p.length;){var v={top:(f=c(t,e,p[d],n,{offsetX:a,offsetY:u})).top,left:f.left,width:e.width,height:e.height};if(!(v.top<=s.top||v.left<=s.left||v.top+v.height>=s.top+s.height||v.left+v.width>=s.left+s.width))break;d++}return f},d=0,s=(0,n.forwardRef)(function(t,e){var o=t.trigger,l=void 0===o?null:o,c=t.onOpen,s=void 0===c?function(){}:c,p=t.onClose,v=void 0===p?function(){}:p,m=t.defaultOpen,h=void 0!==m&&m,y=t.open,g=void 0===y?void 0:y,w=t.disabled,b=void 0!==w&&w,E=t.nested,k=void 0!==E&&E,x=t.closeOnDocumentClick,C=void 0===x||x,L=t.repositionOnResize,A=void 0===L||L,T=t.closeOnEscape,O=void 0===T||T,R=t.on,S=void 0===R?["click"]:R,X=t.contentStyle,Y=void 0===X?{}:X,j=t.arrowStyle,z=void 0===j?{}:j,B=t.overlayStyle,I=void 0===B?{}:B,P=t.className,D=void 0===P?"":P,M=t.position,N=void 0===M?"bottom center"
1:M,F=t.modal,q=void 0!==F&&F,H=t.lockScroll,K=void 0!==H&&H,W=t.arrow,G=void 0===W||W,J=t.offsetX,Q=void 0===J?0:J,U=t.offsetY,V=void 0===U?0:U,Z=t.mouseEnterDelay,$=void 0===Z?100:Z,_=t.mouseLeaveDelay,tt=void 0===_?100:_,et=t.keepTooltipInside,ot=void 0!==et&&et,nt=t.children,rt=(0,n.useState)(g||h),it=rt[0],at=rt[1],ut=(0,n.useRef)(null),lt=(0,n.useRef)(null),ct=(0,n.useRef)(null),ft=(0,n.useRef)(null),dt=(0,n.useRef)("popup-"+ ++d),st=!!q||!l,pt=(0,n.useRef)(0);a(function(){return it?(ft.current=document.activeElement,Lt(),kt(),bt()):Et(),function(){clearTimeout(pt.current)}},[it]),(0,n.useEffect)(function(){"boolean"===typeof g&&(g?vt():mt())},[g,b]);var vt=function(t){it||b||(at(!0),setTimeout(function(){return s(t)},0))},mt=function(t){var e;it&&!b&&(at(!1),st&&(null===(e=ft.current)||void 0===e||e.focus()),setTimeout(function(){return v(t)},0))},ht=function(t){null===t||void 0===t||t.stopPropagation(),it?mt(t):vt(t)},yt=function(t){clearTimeout(pt.current),pt.current=setTimeout(function(){return vt(t)},$)},gt=function(t){null===t||void 0===t||t.preventDefault(),ht()},wt=function(t){clearTimeout(pt.current),pt.current=setTimeout(function(){return mt(t)},tt)},bt=function(){st&&K&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},Et=function(){st&&K&&(document.getElementsByTagName("body")[0].style.overflow="auto")},kt=function(){var t,e=null===lt||void 0===lt||null===(t=lt.current)||void 0===t?void 0:t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(e)[0];null===o||void 0===o||o.focus()};(0,n.useImperativeHandle)(e,function(){return{open:function(){vt()},close:function(){mt()},toggle:function(){ht()}}});var xt,Ct,Lt=function(){if(!st&&it&&(null===ut||void 0===ut?void 0:ut.current)&&(null===ut||void 0===ut?void 0:ut.current)&&(null===lt||void 0===lt?void 0:lt.current)){var t,e,o=ut.current.getBoundingClientRect(),n=lt.current.getBoundingClientRect(),r=f(o,n,N,G,{offsetX:Q,offsetY:V},ot);if(lt.current.style.top=r.top+window.scrollY+"px",lt.current.style.left=r.left+window.scrollX+"px",G&&ct.current)ct.current.style.transform=r.transform,ct.current.style.setProperty("-ms-transform",r.transform),ct.current.style.setProperty("-webkit-transform",r.transform),ct.current.style.top=(null===(t=z.top)||void 0===t?void 0:t.toString())||r.arrowTop,ct.current.style.left=(null===(e=z.left)||void 0===e?void 0:e.toString())||r.arrowLeft}};xt=mt,void 0===(Ct=O)&&(Ct=!0),(0,n.useEffect)(function(){if(Ct){var t=function(t){"Escape"===t.key&&xt(t)};return document.addEventListener("keyup",t),function(){Ct&&document.removeEventListener("keyup",t)}}},[xt,Ct]),function(t,e){void 0===e&&(e=!0),(0,n.useEffect)(function(){if(e){var o=function(e){if(9===e.keyCode){var o,n=null===t||void 0===t||null===(o=t.current)||void 0===o?void 0:o.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),r=Array.prototype.slice.call(n);if(1===r.length)return void e.preventDefault();var i=r[0],a=r[r.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),i.focus())}};return document.addEventListener("keydown",o),function(){e&&document.removeEventListener("keydown",o)}}},[t,e])}(lt,it&&st),function(t,e){void 0===e&&(e=!0),(0,n.useEffect)(function(){if(e){var o=function(){t()};return window.addEventListener("resize",o),function(){e&&window.removeEventListener("resize",o)}}},[t,e])}(Lt,A),function(t,e,o){void 0===o&&(o=!0),(0,n.useEffect)(function(){if(o){var n=function(o){var n=Array.isArray(t)?t:[t],r=!1;n.forEach(function(t){t.current&&!t.current.contains(o.target)||(r=!0)}),o.stopPropagation(),r||e(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){o&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}},[t,e,o])}(l?[lt,ut]:[lt],mt,C&&!k);var At=function(){return n.default.createElement("div",Object.assign({},function(){var t=st?u.popupContent.modal:u.popupContent.tooltip,e={className:"popup-content "+(""!==D?D.split(" ").map(function(t){return t+"-content"}).join(" "):""),style:i({},t,Y,{pointerEvents:"auto"}),ref:lt,onClick:function(t){t.stopPropagation()}};return!q&&S.indexOf("hover")>=0&&(e.onMouseEnter=yt,e.onMouseLeave=wt),e}(),{key:"C",role:st?"dialog":"tooltip",id:dt.current}),G&&!st&&n.default.createElement("div",{ref:ct,style:u.popupArrow},n.default.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==D?D.split(" ").map(function(t){return t+"-arrow"}).join(" "):""),viewBox:"0 0 32 16",style:i({position:"absolute"},z)}
1,n.default.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),nt&&"function"===typeof nt?nt(mt,it):nt)},Tt=!(S.indexOf("hover")>=0),Ot=st?u.overlay.modal:u.overlay.tooltip,Rt=[Tt&&n.default.createElement("div",{key:"O","data-testid":"overlay","data-popup":st?"modal":"tooltip",className:"popup-overlay "+(""!==D?D.split(" ").map(function(t){return t+"-overlay"}).join(" "):""),style:i({},Ot,I,{pointerEvents:C&&k||st?"auto":"none"}),onClick:C&&k?mt:void 0,tabIndex:-1},st&&At()),!st&&At()];return n.default.createElement(n.default.Fragment,null,function(){for(var t={key:"T",ref:ut,"aria-describedby":dt.current},e=Array.isArray(S)?S:[S],o=0,r=e.length;o<r;o++)switch(e[o]){case"click":t.onClick=ht;break;case"right-click":t.onContextMenu=gt;break;case"hover":t.onMouseEnter=yt,t.onMouseLeave=wt;break;case"focus":t.onFocus=yt,t.onBlur=wt}if("function"===typeof l){var i=l(it);return!!l&&n.default.cloneElement(i,t)}return!!l&&n.default.cloneElement(l,t)}(),it&&r.createPortal(Rt,function(){var t=document.getElementById("popup-root");return null===t&&((t=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(t)),t}()))});const p=s}}]);
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.