|
|
var qn=Object.defineProperty;var Wn=(n,r,e)=>r in n?qn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var A=(n,r,e)=>Wn(n,typeof r!="symbol"?r+"":r,e);import{r as Nt,b as Dt,d as It,f as Ft,w as Un,g as ne,R as ye,h as P,x as Hn,y as zn,z as Gn,A as Yn,D as Zn,E as Kn,F as Xn,G as Jn,H as Qn,v as te,q as Z,k as l,I as er,J as tr,l as Y,_ as at,o as st,i as Fe,M as be,K as $t,U as Oe,j as ze,C as Ge,L as Ze,N as Lt,O as nr,B as Ne,s as De,p as Bt,Q as mn,m as ee,S as Kt,T as gn,P as Se,t as yn,V as At,X as qe,Y as Vt,Z as rr,$ as ir,a0 as or,a1 as ar,W as sr,n as lr,a2 as cr}from"./entry_page.js";import{a as ur,b as dr,c as pr,d as fr,P as ge,e as hr,f as mr,g as gr,h as yr,i as vr,j as br,k as xr,l as Cr,m as Sr,n as Er,o as wr,p as Tr,q as kr,s as Or,t as Ar,u as Pr,v as Rr,w as _r,x as jr}from"./Search.2zpefYaQ.js";import{r as Mr,a as Nr,b as Dr,L as Ue,p as qt,C as vn,c as Ir,H as Fr}from"./ErrorBoundary.Dbz8NJG8.js";import{S as $r}from"./Search.BL7tlW1M.js";var yt={exports:{}},Xt;function Lr(){return Xt||(Xt=1,(()=>{var n={};n.n=h=>{var k=h&&h.__esModule?()=>h.default:()=>h;return n.d(k,{a:k}),k},n.d=(h,k)=>{for(var T in k)n.o(k,T)&&!n.o(h,T)&&Object.defineProperty(h,T,{enumerable:!0,get:k[T]})},n.o=(h,k)=>Object.prototype.hasOwnProperty.call(h,k),n.r=h=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Column:()=>M,Row:()=>$,default:()=>_});const e=Nt();var t=n.n(e);const i=Dt();var o=n.n(i);const a=It;var s=n.n(a);const c=Ft();var f=s().div.withConfig({displayName:"ColumnStyles__Styled",componentId:"sc-1pchz98-0"})([""," flex:",";",""],c.mixins.reset("block"),(function(h){var k=h.$span;return"".concat(k," ").concat(k," auto")}),(function(h){var k=h.$gutter,T=h.$span;if(k===0)return(0,a.css)(["width:","%;"],100/12*T);var x=k!==void 0?"".concat(k,"px"):c.variables.spacingXLarge;return(0,a.css)(["width:calc( (100% - 11 * ",") * "," + ("," * ",") );"],x,T/12,x,T-1)}));function d(){return d=Object.assign?Object.assign.bind():function(h){for(var k=1;k<arguments.length;k++){var T=arguments[k];for(var x in T)({}).hasOwnProperty.call(T,x)&&(h[x]=T[x])}return h},d.apply(null,arguments)}function p(h,k){if(h==null)return{};var T,x,I=C(h,k);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(h);for(x=0;x<V.length;x++)T=V[x],k.indexOf(T)===-1&&{}.propertyIsEnumerable.call(h,T)&&(I[T]=h[T])}return I}function C(h,k){if(h==null)return{};var T={};for(var x in h)if({}.hasOwnProperty.call(h,x)){if(k.indexOf(x)!==-1)continue;T[x]=h[x]}return T}var v={children:o().node,elementRef:o().oneOfType([o().func,o().object]),gutter:o().number,span:o().number};function R(h){var k=h.children,T=h.elementRef,x=h.gutter,I=h.span,V=I===void 0?1:I,j=p(h,["children","elementRef","gutter","span"]);return t().createElement(f,d({"data-test":"column",ref:T,$gutter:x,$span:V},j),k)}R.propTypes=v;const M=R,O=Un();var q=n.n(O),z=s().div.withConfig({displayName:"ColumnLayoutStyles__Styled",componentId:"sc-3eatxz-0"})(["",";flex-direction:column;",";"],c.mixins.reset("flex"),(function(h){var k=h.$hasDivider,T=h.$gutter,x=T!==void 0?"".concat(T,"px"):c.variables.spacingXLarge;return k?(0,a.css)(["gap:calc("," / 2);"],x):(0,a.css)(["gap:",";"],x)})),W=s()(q()).withConfig({displayName:"ColumnLayoutStyles__StyledDivider",componentId:"sc-3eatxz-1"})(["border-color:",";height:0;"],c.variables.borderColorWeak),N=s().div.withConfig({displayName:"RowStyles__Styled",componentId:"sc-121ntds-0"})(["",";flex-flow:row nowrap;",";&[data-align-items='start']{align-items:flex-start;}&[data-align-items='end']{align-items:flex-end;}&[data-align-items='center']{align-items:center;}&[data-align-items='stretch']{align-items:stretch;}"],c.mixins.reset("flex"),(function(h){var k=h.$hasDivider,T=h.$gutter,x=T!==void 0?"".concat(T,"px"):c.variables.spacingXLarge;return k?(0,a.css)(["gap:calc("," / 2);"],x):(0,a.css)(["gap:",";"],x)})),B=s()(q()).withConfig({displayName:"RowStyles__StyledDivider",componentId:"sc-121ntds-1"})(["border-color:",";flex:0 0 1;"],c.variables.borderColorWeak);function G(){return G=Object.assign?Object.assign.bind():function(h){for(var k=1;k<arguments.length;k++){var T=arguments[k];for(var x in T)({}).hasOwnProperty.call(T,x)&&(h[x]=T[x])}return h},G.apply(null,arguments)}function g(h,k){if(h==null)return{};var T,x,I=b(h,k);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(h);for(x=0;x<V.length;x++)T=V[x],k.indexOf(T)===-1&&{}.propertyIsEnumerable.call(h,T)&&(I[T]=h[T])}return I}function b(h,k){if(h==null)return{};var T={};for(var x in h)if({}.hasOwnProperty.call(h,x)){if(k.indexOf(x)!==-1)continue;T[x]=h[x]}return T}var D={alignItems:o().oneOf(["start","end","center","stretch"]),children:o().node,divider:o().bool,elementRef:o().oneOfType([o().func,o().object]),gutter:o().number};function L(h){var k=h.alignItems,T=k===void 0?"stretch":k,x=h.children,I=h.divider,V=h.elementRef,j=h.gutter,J=g(h,["alignItems","children","divider","elementRef","gutter"]),ie=(0,e.useCallback)((function(le){return(0,e.cloneElement)(le,{gutter:j})}),[j]),oe=(0,e.useCallback)((function(le,ce,xe,we){return le.push(ce),I&&xe<we.length-1&&le.push(t().createElement(B,{orientation:"vertical",decorative:!0,key:"".concat(xe,"-divider")})),le}),[I]),fe=e.Children.toArray(x).filter(e.isValidElement).map(ie).reduce(oe,[]);return t().createElement(N,G({"data-align-items":T,"data-test":"row",$hasDivider:I,$gutter:j,ref:V},J),fe)}L.propTypes=D;const $=L;function U(){return U=Object.assign?Object.assign.bind():function(h){for(var k=1;k<arguments.length;k++){var T=arguments[k];for(var x in T)({}).hasOwnProperty.call(T,x)&&(h[x]=T[x])}return h},U.apply(null,arguments)}function H(h,k){if(h==null)return{};var T,x,I=K(h,k);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(h);for(x=0;x<V.length;x++)T=V[x],k.indexOf(T)===-1&&{}.propertyIsEnumerable.call(h,T)&&(I[T]=h[T])}return I}function K(h,k){if(h==null)return{};var T={};for(var x in h)if({}.hasOwnProperty.call(h,x)){if(k.indexOf(x)!==-1)continue;T[x]=h[x]}return T}var S={children:o().node,divider:o().oneOf(["none","vertical","horizontal"]),elementRef:o().oneOfType([o().func,o().object]),gutter:o().number};function E(h){var k=h.children,T=h.divider,x=T===void 0?"none":T,I=h.elementRef,V=h.gutter,j=H(h,["children","divider","elementRef","gutter"]),J=(0,e.useCallback)((function(fe){return(0,e.cloneElement)(fe,{divider:x==="vertical",gutter:V})}),[x,V]),ie=(0,e.useCallback)((function(fe,le,ce,xe){return fe.push(le),x==="horizontal"&&ce<xe.length-1&&fe.push(t().createElement(W,{decorative:!0,key:"".concat(ce,"-divider")})),fe}),[x]),oe=e.Children.toArray(k).filter(e.isValidElement).map(J).reduce(ie,[]);return t().createElement(z,U({"data-test":"column-layout",$gutter:V,$hasDivider:x==="horizontal",ref:I},j),oe)}E.propTypes=S,E.Row=$,E.Column=M;const _=E;yt.exports=r})()),yt.exports}var Br=Lr();const pe=ne(Br);var vt={exports:{}};function bn(n){var r=!1;return function(){r||(console.warn(n),r=!0)}}var Vr=bn(`
|
|
|
>> Warning, via react-flip-move <<
|
|
|
|
|
|
When using "wrapperless" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default "static" position.
|
|
|
|
|
|
FlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.
|
|
|
|
|
|
To avoid seeing this warning, simply apply a non-static position to that parent node.
|
|
|
`),qr=bn(`
|
|
|
>> Warning, via react-flip-move <<
|
|
|
|
|
|
One or more of Flip Move's child elements have the html attribute 'disabled' set to true.
|
|
|
|
|
|
Please note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.
|
|
|
`),xn={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},Wr={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},Ur=xn,Ke="elevator",Hr="none",Pt=function(r,e){for(var t=0;t<e.length;t++)if(r(e[t],t,e))return e[t]},zr=function(r,e){for(var t=0;t<e.length;t++)if(!r(e[t],t,e))return!1;return!0},nt=function(r){return nt=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},nt(r)};function Gr(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e={};return Object.keys(n).forEach(function(t){r.indexOf(t)===-1&&(e[t]=n[t])}),e}function Yr(n,r){var e=n===r;if(e)return!0;var t=!nt(n)||!nt(r),i=n.length!==r.length;return t||i?!1:zr(function(o,a){return o===r[a]},n)}function Zr(n){var r={};return function(e){return r[e]||(r[e]=n(e)),r[e]}}var Kr=Zr(function(n){return n.replace(/([A-Z])/g,"-$1").toLowerCase()}),Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cn=function(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")},me=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},Sn=function(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)},Rt=function(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:n};function Jr(n){var r,e;return e=r=(function(t){Sn(i,t);function i(){return Cn(this,i),Rt(this,t.apply(this,arguments))}return i.prototype.checkChildren=function(a){},i.prototype.convertProps=function(a){var s={children:a.children,easing:a.easing,onStart:a.onStart,onFinish:a.onFinish,onStartAll:a.onStartAll,onFinishAll:a.onFinishAll,typeName:a.typeName,disableAllAnimations:a.disableAllAnimations,getPosition:a.getPosition,maintainContainerHeight:a.maintainContainerHeight,verticalAlignment:a.verticalAlignment,duration:this.convertTimingProp("duration"),delay:this.convertTimingProp("delay"),staggerDurationBy:this.convertTimingProp("staggerDurationBy"),staggerDelayBy:this.convertTimingProp("staggerDelayBy"),appearAnimation:this.convertAnimationProp(a.appearAnimation,Ur),enterAnimation:this.convertAnimationProp(a.enterAnimation,xn),leaveAnimation:this.convertAnimationProp(a.leaveAnimation,Wr),delegated:{}};this.checkChildren(s.children);var c=Object.keys(s),f=Gr(this.props,c);return f.style=me({position:"relative"},f.style),s.delegated=f,s},i.prototype.convertTimingProp=function(a){var s=this.props[a],c=typeof s=="number"?s:parseInt(s,10);if(isNaN(c)){var f=i.defaultProps[a];return f}return c},i.prototype.convertAnimationProp=function(a,s){switch(typeof a>"u"?"undefined":Xr(a)){case"boolean":return s[a?Ke:Hr];case"string":{var c=Object.keys(s);return c.indexOf(a)===-1?s[Ke]:s[a]}default:return a}},i.prototype.render=function(){return ye.createElement(n,this.convertProps(this.props))},i})(P.Component),r.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:Ke,leaveAnimation:Ke,disableAllAnimations:!1,getPosition:function(i){return i.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},e}function Me(n){var r=n.domNode,e=n.styles;Object.keys(e).forEach(function(t){r.style.setProperty(Kr(t),e[t])})}function Qr(){var n={transition:"transitionend","-o-transition":"oTransitionEnd","-moz-transition":"transitionend","-webkit-transition":"webkitTransitionEnd"};if(typeof document>"u")return"";var r=document.createElement("fakeelement"),e=Pt(function(t){return r.style.getPropertyValue(t)!==void 0},Object.keys(n));return e?n[e]:""}var ei=function(r){var e=r.childDomNode,t=r.parentDomNode,i=r.getPosition,o=i(t),a=i(e),s=a.top,c=a.left,f=a.right,d=a.bottom,p=a.width,C=a.height;return{top:s-o.top,left:c-o.left,right:o.right-f,bottom:o.bottom-d,width:p,height:C}},Jt=function(r){var e=r.childDomNode,t=r.childBoundingBox,i=r.parentBoundingBox,o=r.getPosition,a={top:0,left:0},s=t||a,c=i||a,f=o(e),d={top:f.top-c.top,left:f.left-c.left};return[s.left-d.left,s.top-d.top]},ti=function(r,e){var t=r.domNode,i=r.boundingBox;if(!(!t||!i)){var o=window.getComputedStyle(t),a=["margin-top","margin-left","margin-right"],s=a.reduce(function(d,p){var C,v=o.getPropertyValue(p);return me({},d,(C={},C[p]=Number(v.replace("px","")),C))},{}),c=e==="bottom"?i.top-i.height:i.top,f={position:"absolute",top:c-s["margin-top"]+"px",left:i.left-s["margin-left"]+"px",right:i.right-s["margin-right"]+"px"};Me({domNode:t,styles:f})}},ni=function(r){var e=r.domNode,t=r.parentData,i=r.getPosition,o=t.domNode,a=t.boundingBox;if(!(!o||!a)){Me({domNode:e,styles:{height:"0"}});var s=a.height,c=i(o).height,f=s-c,d={height:f>0?f+"px":"0"};Me({domNode:e,styles:d})}},ri=function(r){if(typeof HTMLElement>"u")return null;if(r instanceof HTMLElement)return r;var e=zn.findDOMNode(r);return e&&e.nodeType===Node.TEXT_NODE?null:e},ii=function(r,e){var t=e.delay,i=e.duration,o=e.staggerDurationBy,a=e.staggerDelayBy,s=e.easing;t+=r*a,i+=r*o;var c=["transform","opacity"];return c.map(function(f){return f+" "+i+"ms "+s+" "+t+"ms"}).join(", ")},_t=Qr(),oi=!_t;function he(n){return n.key||""}function Xe(n){return P.Children.toArray(n)}var ai=(function(n){Sn(r,n);function r(){var e,t,i;Cn(this,r);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=(e=(t=Rt(this,n.call.apply(n,[this].concat(a))),t),t.state={children:Xe(t.props?t.props.children:[]).map(function(c){return me({},c,{element:c,appearing:!0})})},t.childrenData={},t.parentData={domNode:null,boundingBox:null},t.heightPlaceholderData={domNode:null},t.remainingAnimations=0,t.childrenToAnimate=[],t.findDOMContainer=function(){var c=Hn.findDOMNode(t),f=c&&c.parentNode;!f||!(f instanceof HTMLElement)||(window.getComputedStyle(f).position==="static"&&(f.style.position="relative",Vr()),t.parentData.domNode=f)},t.runAnimation=function(){var c=t.state.children.filter(t.doesChildNeedToBeAnimated),f=c.map(function(d){return t.computeInitialStyles(d)});c.forEach(function(d,p){t.remainingAnimations+=1,t.childrenToAnimate.push(he(d)),t.animateChild(d,p,f[p])}),typeof t.props.onStartAll=="function"&&t.callChildrenHook(t.props.onStartAll)},t.doesChildNeedToBeAnimated=function(c){if(!he(c))return!1;var f=t.getChildData(he(c)),d=f.domNode,p=f.boundingBox,C=t.parentData.boundingBox;if(!d)return!1;var v=t.props,R=v.appearAnimation,M=v.enterAnimation,O=v.leaveAnimation,q=v.getPosition,z=c.appearing&&R,W=c.entering&&M,N=c.leaving&&O;if(z||W||N)return!0;var B=Jt({childDomNode:d,childBoundingBox:p,parentBoundingBox:C,getPosition:q}),G=B[0],g=B[1];return G!==0||g!==0},e),Rt(t,i)}return r.prototype.componentDidMount=function(){this.props.typeName===null&&this.findDOMContainer();var t=this.props.appearAnimation&&!this.isAnimationDisabled(this.props);t&&(this.prepForAnimation(),this.runAnimation())},r.prototype.componentDidUpdate=function(t){this.props.typeName===null&&this.findDOMContainer();var i=Xe(this.props.children).map(function(s){return s.key}),o=Xe(t.children).map(function(s){return s.key}),a=!Yr(i,o)&&!this.isAnimationDisabled(this.props);a&&(this.prepForAnimation(),this.runAnimation())},r.prototype.calculateNextSetOfChildren=function(t){var i=this,o=t.map(function(s){var c=i.findChildByKey(s.key),f=!c||c.leaving;return me({},s,{element:s,entering:f})}),a=0;return this.state.children.forEach(function(s,c){var f=!Pt(function(C){var v=C.key;return v===he(s)},t);if(!(!f||!i.props.leaveAnimation)){var d=me({},s,{leaving:!0}),p=c+a;o.splice(p,0,d),a+=1}}),o},r.prototype.prepForAnimation=function(){var t=this,i=this.props,o=i.leaveAnimation,a=i.maintainContainerHeight,s=i.getPosition;if(o){var c=this.state.children.filter(function(f){return f.leaving});c.forEach(function(f){var d=t.getChildData(he(f));!t.isAnimationDisabled(t.props)&&d.domNode&&d.domNode.disabled&&qr(),d.boundingBox&&ti(d,t.props.verticalAlignment)}),a&&this.heightPlaceholderData.domNode&&ni({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:s})}this.state.children.forEach(function(f){var d=t.getChildData(he(f)),p=d.domNode;p&&!f.entering&&!f.leaving&&Me({domNode:p,styles:{transition:""}})})},r.prototype.UNSAFE_componentWillReceiveProps=function(t){this.updateBoundingBoxCaches();var i=Xe(t.children);this.setState({children:this.isAnimationDisabled(t)?i.map(function(o){return me({},o,{element:o})}):this.calculateNextSetOfChildren(i)})},r.prototype.animateChild=function(t,i,o){var a=this,s=this.getChildData(he(t)),c=s.domNode;c&&(Me({domNode:c,styles:o}),this.props.onStart&&this.props.onStart(t,c),requestAnimationFrame(function(){requestAnimationFrame(function(){var f={transition:ii(i,a.props),transform:"",opacity:""};t.appearing&&a.props.appearAnimation?f=me({},f,a.props.appearAnimation.to):t.entering&&a.props.enterAnimation?f=me({},f,a.props.enterAnimation.to):t.leaving&&a.props.leaveAnimation&&(f=me({},f,a.props.leaveAnimation.to)),Me({domNode:c,styles:f})})}),this.bindTransitionEndHandler(t))},r.prototype.bindTransitionEndHandler=function(t){var i=this,o=this.getChildData(he(t)),a=o.domNode;if(a){var s=function c(f){f.target===a&&(a.style.transition="",i.triggerFinishHooks(t,a),a.removeEventListener(_t,c),t.leaving&&i.removeChildData(he(t)))};a.addEventListener(_t,s)}},r.prototype.triggerFinishHooks=function(t,i){var o=this;if(this.props.onFinish&&this.props.onFinish(t,i),this.remainingAnimations-=1,this.remainingAnimations===0){var a=this.state.children.filter(function(s){var c=s.leaving;return!c}).map(function(s){return me({},s,{element:s.element,appearing:!1,entering:!1})});this.setState({children:a},function(){typeof o.props.onFinishAll=="function"&&o.callChildrenHook(o.props.onFinishAll),o.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},r.prototype.callChildrenHook=function(t){var i=this,o=[],a=[];this.childrenToAnimate.forEach(function(s){var c=i.findChildByKey(s);c&&(o.push(c),i.hasChildData(s)&&a.push(i.getChildData(s).domNode))}),t(o,a)},r.prototype.updateBoundingBoxCaches=function(){var t=this,i=this.parentData.domNode;if(i){this.parentData.boundingBox=this.props.getPosition(i);var o=[];this.state.children.forEach(function(a){var s=he(a);if(!s){o.push(null);return}if(!t.hasChildData(s)){o.push(null);return}var c=t.getChildData(s);if(!c.domNode||!a){o.push(null);return}o.push(ei({childDomNode:c.domNode,parentDomNode:i,getPosition:t.props.getPosition}))}),this.state.children.forEach(function(a,s){var c=he(a),f=o[s];c&&t.setChildData(c,{boundingBox:f})})}},r.prototype.computeInitialStyles=function(t){if(t.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(t.entering)return this.props.enterAnimation?me({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(t.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var i=this.getChildData(he(t)),o=i.domNode,a=i.boundingBox,s=this.parentData.boundingBox;if(!o)return{};var c=Jt({childDomNode:o,childBoundingBox:a,parentBoundingBox:s,getPosition:this.props.getPosition}),f=c[0],d=c[1];return{transform:"translate("+f+"px, "+d+"px)"}},r.prototype.isAnimationDisabled=function(t){return oi||t.disableAllAnimations||t.duration===0&&t.delay===0&&t.staggerDurationBy===0&&t.staggerDelayBy===0},r.prototype.findChildByKey=function(t){return Pt(function(i){return he(i)===t},this.state.children)},r.prototype.hasChildData=function(t){return Object.prototype.hasOwnProperty.call(this.childrenData,t)},r.prototype.getChildData=function(t){return this.hasChildData(t)?this.childrenData[t]:{}},r.prototype.setChildData=function(t,i){this.childrenData[t]=me({},this.getChildData(t),i)},r.prototype.removeChildData=function(t){delete this.childrenData[t],this.setState(function(i){return me({},i,{children:i.children.filter(function(o){return o.element.key!==t})})})},r.prototype.createHeightPlaceholder=function(){var t=this,i=this.props.typeName,o=i==="ul"||i==="ol",a=o?"li":"div";return P.createElement(a,{key:"height-placeholder",ref:function(c){t.heightPlaceholderData.domNode=c},style:{visibility:"hidden",height:0}})},r.prototype.childrenWithRefs=function(){var t=this;return this.state.children.map(function(i){return P.cloneElement(i.element,{ref:function(a){if(a){var s=ri(a);t.setChildData(he(i),{domNode:s})}}})})},r.prototype.render=function(){var t=this,i=this.props,o=i.typeName,a=i.delegated,s=i.leaveAnimation,c=i.maintainContainerHeight,f=this.childrenWithRefs();if(s&&c&&f.push(this.createHeightPlaceholder()),!o)return f;var d=me({},a,{children:f,ref:function(C){t.parentData.domNode=C}});return P.createElement(o,d)},r})(P.Component),si=Jr(ai);const li=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),ci=Gn(li);var bt,Qt;function ui(){if(Qt)return bt;Qt=1;function n(r){return r==null}return bt=n,bt}var en;function di(){return en||(en=1,(()=>{var n={729:(i,o,a)=>{a.d(o,{default:()=>Ve});var s=a(497),c=a.n(s),f=a(23),d=a.n(f);const p=ur();var C=a.n(p);const v=dr();var R=a.n(v);const M=pr();var O=a.n(M);const q=fr();var z=a.n(q);const W=Mr();var N=a.n(W);const B=Qn();var G=a.n(B),g=a(535),b=a(874),D="24px",L="26px",$=function(u){switch(u){case g.TOAST_TYPES.SUCCESS:return c().createElement(O(),{size:D});case g.TOAST_TYPES.INFO:return c().createElement(R(),{size:D});case g.TOAST_TYPES.ERROR:return c().createElement(z(),{size:L});case g.TOAST_TYPES.WARNING:return c().createElement(N(),{size:D});default:return c().createElement(R(),{size:D})}},U=function(u){var y=u.children;return c().createElement("svg",{viewBox:"0 0 24 24",width:D,height:D,xmlns:"http://www.w3.org/2000/svg"},y)};U.propTypes={children:d().node.isRequired};var H=function(u){switch(u){case g.TOAST_TYPES.SUCCESS:return c().createElement(U,null,c().createElement("path",{fillRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.8738 8.62627C17.2643 9.01679 17.2643 9.64996 16.8738 10.0405L11.5853 15.329C10.9996 15.9147 10.0499 15.9148 9.46414 15.3291L7.12637 12.9921C6.73579 12.6016 6.7357 11.9684 7.12616 11.5779C7.51663 11.1873 8.1498 11.1872 8.54038 11.5776L10.5246 13.5613L15.4596 8.62627C15.8501 8.23574 16.4833 8.23574 16.8738 8.62627Z",fill:"currentColor"}));case g.TOAST_TYPES.INFO:return c().createElement(U,null,c().createElement("path",{fillRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.0001 16.0094V11.9999C11.0001 11.4476 11.4478 10.9999 12.0001 10.9999C12.5524 10.9999 13.0001 11.4476 13.0001 11.9999V16.0094C13.0001 16.5617 12.5524 17.0094 12.0001 17.0094C11.4478 17.0094 11.0001 16.5617 11.0001 16.0094ZM12 6.9999C12.6628 6.9999 13.2 7.53716 13.2 8.1999C13.2 8.86264 12.6628 9.3999 12 9.3999C11.3373 9.3999 10.8 8.86264 10.8 8.1999C10.8 7.53716 11.3373 6.9999 12 6.9999Z",fill:"currentColor"}));case g.TOAST_TYPES.ERROR:return c().createElement(U,null,c().createElement("path",{fillRule:"evenodd",d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12ZM11.0001 7.9906V12.0001C11.0001 12.5524 11.4478 13.0001 12.0001 13.0001C12.5524 13.0001 13.0001 12.5524 13.0001 12.0001V7.9906C13.0001 7.43832 12.5524 6.9906 12.0001 6.9906C11.4478 6.9906 11.0001 7.43832 11.0001 7.9906ZM12.0001 17.0001C12.6628 17.0001 13.2001 16.4628 13.2001 15.8001C13.2001 15.1374 12.6628 14.6001 12.0001 14.6001C11.3373 14.6001 10.8001 15.1374 10.8001 15.8001C10.8001 16.4628 11.3373 17.0001 12.0001 17.0001Z",fill:"currentColor"}));case g.TOAST_TYPES.WARNING:return c().createElement(U,null,c().createElement("path",{fillRule:"evenodd",d:"M10.6827 2.82369C11.2341 1.72544 12.7659 1.72544 13.3173 2.82369L21.8338 19.7867C22.3412 20.7973 21.6254 22 20.5165 22H3.48349C2.37462 22 1.65878 20.7973 2.16616 19.7867L10.6827 2.82369ZM11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618ZM13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z",fill:"currentColor"}));default:return c().createElement(U,null,c().createElement("path",{fillRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.0001 16.0094V11.9999C11.0001 11.4476 11.4478 10.9999 12.0001 10.9999C12.5524 10.9999 13.0001 11.4476 13.0001 11.9999V16.0094C13.0001 16.5617 12.5524 17.0094 12.0001 17.0094C11.4478 17.0094 11.0001 16.5617 11.0001 16.0094ZM12 6.9999C12.6628 6.9999 13.2 7.53716 13.2 8.1999C13.2 8.86264 12.6628 9.3999 12 9.3999C11.3373 9.3999 10.8 8.86264 10.8 8.1999C10.8 7.53716 11.3373 6.9999 12 6.9999Z",fill:"currentColor"}))}},K=function(u){var y=u.type,w=G()(),F=w.family,X=F==="prisma"?H(y):$(y);return c().createElement(b.xL,{role:"img","data-test":y,"aria-label":"".concat(y," toast icon"),$type:y},X)};K.propTypes={type:d().string.isRequired};const S=K;function E(m){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},E(m)}function _(){return _=Object.assign?Object.assign.bind():function(m){for(var u=1;u<arguments.length;u++){var y=arguments[u];for(var w in y)({}).hasOwnProperty.call(y,w)&&(m[w]=y[w])}return m},_.apply(null,arguments)}function h(m,u){if(m==null)return{};var y,w,F=k(m,u);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(m);for(w=0;w<X.length;w++)y=X[w],u.includes(y)||{}.propertyIsEnumerable.call(m,y)&&(F[y]=m[y])}return F}function k(m,u){if(m==null)return{};var y={};for(var w in m)if({}.hasOwnProperty.call(m,w)){if(u.includes(w))continue;y[w]=m[w]}return y}function T(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function x(m,u){for(var y=0;y<u.length;y++){var w=u[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,xe(w.key),w)}}function I(m,u,y){return u&&x(m.prototype,u),Object.defineProperty(m,"prototype",{writable:!1}),m}function V(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),u&&j(m,u)}function j(m,u){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,w){return y.__proto__=w,y},j(m,u)}function J(m){var u=fe();return function(){var y,w=le(m);if(u){var F=le(this).constructor;y=Reflect.construct(w,arguments,F)}else y=w.apply(this,arguments);return ie(this,y)}}function ie(m,u){if(u&&(E(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(m)}function oe(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function fe(){try{var m=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(fe=function(){return!!m})()}function le(m){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},le(m)}function ce(m,u,y){return(u=xe(u))in m?Object.defineProperty(m,u,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[u]=y,m}function xe(m){var u=we(m,"string");return E(u)=="symbol"?u:u+""}function we(m,u){if(E(m)!="object"||!m)return m;var y=m[Symbol.toPrimitive];if(y!==void 0){var w=y.call(m,u);if(E(w)!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(m)}var Be=5e3,Ae=(function(m){V(y,m);var u=J(y);function y(){var w;T(this,y);for(var F=arguments.length,X=new Array(F),re=0;re<F;re++)X[re]=arguments[re];return w=u.call.apply(u,[this].concat(X)),ce(oe(w),"onMouseEnter",(function(){w.props.autoDismiss&&w.pause()})),ce(oe(w),"onMouseLeave",(function(){w.props.autoDismiss&&w.resume()})),ce(oe(w),"onActionClick",(function(Q){w.fulfillActionCallback(Q)})),ce(oe(w),"handleCloseKeyDown",(function(Q){Q.key==="Enter"&&w.requestHide()})),ce(oe(w),"handleActionButtonKeyDown",(function(Q){Q.key==="Enter"&&w.fulfillActionCallback(Q)})),ce(oe(w),"isValidToastType",(function(Q){switch(Q){case g.TOAST_TYPES.SUCCESS:case g.TOAST_TYPES.INFO:case g.TOAST_TYPES.ERROR:case g.TOAST_TYPES.WARNING:return!0;default:return!1}})),ce(oe(w),"Timer",(function(Q,ae){var Te=ae,de=ae;return w.pause=function(){window.clearTimeout(w.timerId),de-=new Date-Te},w.resume=function(){return Te=new Date,window.setTimeout((function(){Q()}),de)},w.resume()})),ce(oe(w),"requestHide",(function(){var Q=w.props.onRequestHide;Q()})),w}return I(y,[{key:"componentDidMount",value:function(){if(this.props.autoDismiss){var F=this.props.timeout||Be;this.timerId=this.Timer(this.requestHide,F)}}},{key:"componentWillUnmount",value:function(){this.props.autoDismiss&&this.timerId&&window.clearTimeout(this.timerId)}},{key:"fulfillActionCallback",value:function(F){var X=this.props,re=X.dismissOnActionClick,Q=X.action;Q.callback(F),re&&this.requestHide()}},{key:"render",value:function(){var F=this.props,X=F.title,re=F.type,Q=F.action,ae=F.message,Te=F.onFocus,de=F.onBlur;F.onRequestHide;var Ye=h(F,["title","type","action","message","onFocus","onBlur","onRequestHide"]),dt=c().createElement(S,{type:re}),pt=c().createElement(b.g5,{"data-test":"toast-message","aria-label":ae,lang:navigator.language||navigator.userLanguage,title:ae},ae),ft=Q?c().createElement(b.lj,_({"data-test":"toast-action",tabIndex:0,onClick:this.onActionClick,onFocus:Te,onBlur:de,onKeyDown:this.handleActionButtonKeyDown,type:"button"},Q.props),Q.label):null,ht=c().createElement("div",{role:"button","data-test":"toast-dismiss",style:{position:"absolute",top:"13px",right:"12px",color:"#818d99",cursor:"pointer"},tabIndex:0,onClick:this.requestHide,onFocus:Te,onBlur:de,onKeyDown:this.handleCloseKeyDown},c().createElement(C(),{size:"12px"})),mt=c().createElement("div",{style:X?{position:"absolute",top:"13px",right:"12px",color:"#818d99",cursor:"pointer"}:{display:"inline-block",marginTop:"5px",marginRight:"12px",float:"right",color:"#818d99",cursor:"pointer"}},c().createElement(C(),{size:"12px"})),gt=c().createElement(b.OF,{role:"group","aria-label":"Toast content"},X&&c().createElement(b.TL,{"data-test":"toast-message-title",$type:re},X),pt," ",mt," ",ft," ",ht);return c().createElement(b.f5,_({role:"group","data-test":"toast","aria-label":"Toast container",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,$type:re},Ye),dt,gt)}}]),y})(c().Component);Ae.propTypes={message:d().string.isRequired,type:d().string.isRequired,autoDismiss:d().bool,dismissOnActionClick:d().bool,action:d().shape({label:d().oneOfType([d().string,d().node]).isRequired,callback:d().func.isRequired,props:d().object}),title:d().string,timeout:d().number,onRequestHide:d().func,onFocus:d().func,onBlur:d().func},Ae.defaultProps={title:"",autoDismiss:!0,dismissOnActionClick:!0,onRequestHide:function(){},onFocus:function(){},onBlur:function(){}};const Ve=Ae},535:(i,o,a)=>{a.d(o,{TOAST_POSITIONS:()=>c,TOAST_TYPES:()=>s});var s={INFO:"info",WARNING:"warning",SUCCESS:"success",ERROR:"error"},c={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"}},874:(i,o,a)=>{a.d(o,{lj:()=>oe,ye:()=>fe,xL:()=>J,ZW:()=>Ve,g5:()=>j,TL:()=>m,f5:()=>V,OF:()=>ie});const s=It;var c=a.n(s);const f=ci;var d=a.n(f);const p=Ft();var C=a(535);function v(u){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},v(u)}var R,M,O;function q(){var u=x([`
|
|
|
color: `,`;
|
|
|
`]);return q=function(){return u},u}function z(){var u=x([`
|
|
|
`,`;
|
|
|
`,`;
|
|
|
font-size: 14px;
|
|
|
margin-left: 12px;
|
|
|
margin-right: 12px;
|
|
|
`,`
|
|
|
box-sizing: content-box;
|
|
|
`]);return z=function(){return u},u}function W(){var u=x([`
|
|
|
`,`
|
|
|
position: fixed;
|
|
|
z-index: `,`;
|
|
|
`,`;
|
|
|
`]);return W=function(){return u},u}function N(){var u=x([`
|
|
|
bottom: 16px;
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * `,` / 2);
|
|
|
`]);return N=function(){return u},u}function B(){var u=x([`
|
|
|
bottom: 16px;
|
|
|
right: 16px;
|
|
|
`]);return B=function(){return u},u}function G(){var u=x([`
|
|
|
bottom: 16px;
|
|
|
left: 16px;
|
|
|
`]);return G=function(){return u},u}function g(){var u=x([`
|
|
|
top: 16px;
|
|
|
left: 16px;
|
|
|
`]);return g=function(){return u},u}function b(){var u=x([`
|
|
|
top: 16px;
|
|
|
right: 16px;
|
|
|
`]);return b=function(){return u},u}function D(){var u=x([`
|
|
|
top: 16px;
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * `,` / 2);
|
|
|
`]);return D=function(){return u},u}function L(){var u=x([`
|
|
|
width: `,`;
|
|
|
|
|
|
& > div:not(:nth-last-child(1)) {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
`]);return L=function(){return u},u}function $(){var u=x([`
|
|
|
display: block;
|
|
|
position: relative;
|
|
|
float: right;
|
|
|
margin: 3px 12px 12px 0;
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
width: auto;
|
|
|
color: `,`;
|
|
|
padding: 1px 0 2px;
|
|
|
border: none;
|
|
|
font-size: 14px;
|
|
|
line-height: 20px;
|
|
|
cursor: pointer;
|
|
|
max-width: calc(100% - 24px);
|
|
|
background-color: `,`;
|
|
|
box-sizing: content-box;
|
|
|
`]);return $=function(){return u},u}function U(){var u=x([`
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|
|
|
margin-left: 47px;
|
|
|
width: 453px;
|
|
|
padding-top: 8px;
|
|
|
box-sizing: content-box;
|
|
|
`]);return U=function(){return u},u}function H(){var u=x([`
|
|
|
border-radius: `," 0 0 ",`;
|
|
|
`]);return H=function(){return u},u}function K(){var u=x([`
|
|
|
width: 36px;
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
position: absolute;
|
|
|
align-items: center;
|
|
|
padding-left: 11px;
|
|
|
background: `,`;
|
|
|
color: `,`;
|
|
|
`,`
|
|
|
box-sizing: content-box;
|
|
|
`]);return K=function(){return u},u}function S(){var u=x([`
|
|
|
display: inline-block;
|
|
|
height: 100%;
|
|
|
padding-top: 5px;
|
|
|
margin-left: 12px;
|
|
|
margin-right: 12px;
|
|
|
max-width: 404px;
|
|
|
hyphens: auto;
|
|
|
text-overflow: ellipsis;
|
|
|
padding-bottom: `,`;
|
|
|
box-sizing: content-box;
|
|
|
`]);return S=function(){return u},u}function E(u,y,w){return(y=_(y))in u?Object.defineProperty(u,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):u[y]=w,u}function _(u){var y=h(u,"string");return v(y)=="symbol"?y:y+""}function h(u,y){if(v(u)!="object"||!u)return u;var w=u[Symbol.toPrimitive];if(w!==void 0){var F=w.call(u,y);if(v(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(u)}function k(){var u=x([`
|
|
|
border: 1px solid
|
|
|
`,`;
|
|
|
`]);return k=function(){return u},u}function T(){var u=x([`
|
|
|
width: `,`;
|
|
|
min-height: 46px;
|
|
|
position: relative;
|
|
|
background-color: `,`;
|
|
|
box-shadow: `,`;
|
|
|
`,`;
|
|
|
border-radius: `,`;
|
|
|
box-sizing: content-box;
|
|
|
`]);return T=function(){return u},u}function x(u,y){return y||(y=u.slice(0)),Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(y)}}))}var I="500px",V=c().div(T(),I,(0,p.pick)({enterprise:p.variables.backgroundColor,prisma:p.variables.backgroundColorPopup}),(0,p.pick)({enterprise:p.variables.overlayShadow,prisma:p.variables.embossShadow}),(0,p.pick)({enterprise:(0,s.css)(k(),(0,p.pickVariant)("$type",(R={},E(R,C.TOAST_TYPES.INFO,p.variables.cat1Color),E(R,C.TOAST_TYPES.WARNING,p.variables.warningColor),E(R,C.TOAST_TYPES.SUCCESS,p.variables.successColor),E(R,C.TOAST_TYPES.ERROR,p.variables.errorColor),R)))}),p.variables.borderRadius),j=c().div(S(),(function(u){return u.action?null:"13px"})),J=c().div(K(),(0,p.pick)({enterprise:(0,p.pickVariant)("$type",(M={},E(M,C.TOAST_TYPES.INFO,p.variables.cat1Color),E(M,C.TOAST_TYPES.WARNING,p.variables.warningColor),E(M,C.TOAST_TYPES.SUCCESS,p.variables.successColor),E(M,C.TOAST_TYPES.ERROR,p.variables.errorColor),M)),prisma:(0,p.pickVariant)("$type",(O={},E(O,C.TOAST_TYPES.INFO,p.variables.contentColorActive),E(O,C.TOAST_TYPES.WARNING,p.variables.accentColorWarning),E(O,C.TOAST_TYPES.SUCCESS,p.variables.accentColorPositive),E(O,C.TOAST_TYPES.ERROR,p.variables.accentColorNegative),O))}),(0,p.pick)({enterprise:p.variables.white,prisma:p.variables.contentColorInverted}),(0,p.pick)({prisma:(0,s.css)(H(),p.variables.borderRadius,p.variables.borderRadius)})),ie=c().div(U()),oe=c().button($(),p.variables.linkColor,(0,p.pick)({enterprise:p.variables.backgroundColor,prisma:"transparent"})),fe=c()(d())(L(),I),le=(0,s.css)(D(),I),ce=(0,s.css)(b()),xe=(0,s.css)(g()),we=(0,s.css)(G()),Be=(0,s.css)(B()),Ae=(0,s.css)(N(),I),Ve=c().div(W(),p.mixins.reset("block"),p.variables.zindexToastMessages,(function(u){switch(u.position){case C.TOAST_POSITIONS.TOP_LEFT:return xe;case C.TOAST_POSITIONS.TOP_CENTER:return le;case C.TOAST_POSITIONS.TOP_RIGHT:return ce;case C.TOAST_POSITIONS.BOTTOM_LEFT:return we;case C.TOAST_POSITIONS.BOTTOM_CENTER:return Ae;case C.TOAST_POSITIONS.BOTTOM_RIGHT:return Be;default:return le}})),m=c().p(z(),p.mixins.reset("block"),p.mixins.typography("title5"),(0,p.pick)({prisma:(0,s.css)(q(),(0,p.pickVariant)("$type",{info:p.variables.contentColorActive,warning:p.variables.accentColorWarning,error:p.variables.accentColorNegative,success:p.variables.accentColorPositive}))}))},23:i=>{i.exports=Dt()},497:i=>{i.exports=Nt()}},r={};function e(i){var o=r[i];if(o!==void 0)return o.exports;var a=r[i]={exports:{}};return n[i](a,a.exports,e),a.exports}e.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return e.d(o,{a:o}),o},e.d=(i,o)=>{for(var a in o)e.o(o,a)&&!e.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},e.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),e.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var t={};(()=>{e.r(t),e.d(t,{default:()=>Ve});var i=e(497),o=e.n(i),a=e(23),s=e.n(a);const c=Yn();var f=e.n(c);const d=ui();var p=e.n(d);const C=Zn();var v=e.n(C);const R=Kn();var M=e.n(R);const O=Xn();var q=e.n(O);const z=Jn();var W=e(729),N=e(874),B=e(535);function G(m){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},G(m)}function g(){return g=Object.assign?Object.assign.bind():function(m){for(var u=1;u<arguments.length;u++){var y=arguments[u];for(var w in y)({}).hasOwnProperty.call(y,w)&&(m[w]=y[w])}return m},g.apply(null,arguments)}function b(m,u){if(m==null)return{};var y,w,F=D(m,u);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(m);for(w=0;w<X.length;w++)y=X[w],u.includes(y)||{}.propertyIsEnumerable.call(m,y)&&(F[y]=m[y])}return F}function D(m,u){if(m==null)return{};var y={};for(var w in m)if({}.hasOwnProperty.call(m,w)){if(u.includes(w))continue;y[w]=m[w]}return y}function L(m){return K(m)||H(m)||U(m)||$()}function $(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(m,u){if(m){if(typeof m=="string")return S(m,u);var y={}.toString.call(m).slice(8,-1);return y==="Object"&&m.constructor&&(y=m.constructor.name),y==="Map"||y==="Set"?Array.from(m):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?S(m,u):void 0}}function H(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function K(m){if(Array.isArray(m))return S(m)}function S(m,u){(u==null||u>m.length)&&(u=m.length);for(var y=0,w=Array(u);y<u;y++)w[y]=m[y];return w}function E(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function _(m,u){for(var y=0;y<u.length;y++){var w=u[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,oe(w.key),w)}}function h(m,u,y){return u&&_(m.prototype,u),Object.defineProperty(m,"prototype",{writable:!1}),m}function k(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),u&&T(m,u)}function T(m,u){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,w){return y.__proto__=w,y},T(m,u)}function x(m){var u=j();return function(){var y,w=J(m);if(u){var F=J(this).constructor;y=Reflect.construct(w,arguments,F)}else y=w.apply(this,arguments);return I(this,y)}}function I(m,u){if(u&&(G(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(m)}function V(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function j(){try{var m=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(j=function(){return!!m})()}function J(m){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},J(m)}function ie(m,u,y){return(u=oe(u))in m?Object.defineProperty(m,u,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[u]=y,m}function oe(m){var u=fe(m,"string");return G(u)=="symbol"?u:u+""}function fe(m,u){if(G(m)!="object"||!m)return m;var y=m[Symbol.toPrimitive];if(y!==void 0){var w=y.call(m,u);if(G(w)!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(m)}var le=200,ce={from:{transform:"translateY(-100%)",opacity:"0"},to:{transform:"translateY(0)",opacity:""}},xe={from:{transform:"translateY(100%)",opacity:"0"},to:{transform:"translateY(0)",opacity:""}},we=(function(m){k(y,m);var u=x(y);function y(w){var F;return E(this,y),F=u.call(this,w),ie(V(F),"handleModalMount",(function(X){F.el=X,X&&f()(z.takeFocus,X,"container")})),ie(V(F),"handleModalKeyDown",(function(X){(0,z.handleTab)(F.el,X)})),ie(V(F),"handleToastCreate",(function(X){var re=F.props.position,Q=re.indexOf("top")!==-1;F.setState((function(ae){return Q?{toasts:[X].concat(L(ae.toasts))}:{toasts:[].concat(L(ae.toasts),[X])}}))})),ie(V(F),"handleToastFocus",(function(X){F.setState((function(re){var Q=re.toasts.filter((function(ae){return ae.id===X}));return Q.length>0&&re.focusedToast!==Q[0]?{focusedToast:Q[0]}:null}))})),ie(V(F),"handleRequestHide",(function(X){F.setState((function(re){var Q=re.focusedToast||X;return{toasts:re.toasts.filter((function(ae){return Q.id!==ae.id})),focusedToast:null}}))})),ie(V(F),"renderLayer",(function(){var X=F.props,re=X.position,Q=X.animationDuration,ae=re.indexOf("top")!==-1,Te=ae?ce:xe;return o().createElement(N.ZW,{ref:F.handleModalMount,position:re,"data-test":"toast-messages",role:"group","aria-label":"Toast messages container",tabIndex:-1,onKeyDown:F.handleModalKeyDown},o().createElement(N.ye,{enterAnimation:Te,appearAnimation:Te,leaveAnimation:"fade",duration:p()(Q)?le:Q,easing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",verticalAlignment:ae?"top":"bottom"},F.state.toasts.map((function(de){var Ye=de.id,dt=de.title,pt=de.message,ft=de.type,ht=de.autoDismiss,mt=de.dismissOnActionClick,gt=de.action,Bn=de.timeOut,Vn=b(de,["id","title","message","type","autoDismiss","dismissOnActionClick","action","timeOut"]);return o().createElement(W.default,g({key:Ye,title:dt,message:pt,type:ft,autoDismiss:ht,dismissOnActionClick:mt,action:gt,timeout:Bn,onRequestHide:function(){return F.handleRequestHide(de)},onFocus:function(){return F.handleToastFocus(Ye)},onBlur:function(){return F.handleToastBlur()}},Vn))}))))})),F.state={toasts:w.toasts||[],focusedToast:null},F}return h(y,[{key:"componentDidMount",value:function(){q().addCreateListener(this.handleToastCreate)}},{key:"componentWillUnmount",value:function(){this.setState({toasts:[],focusedToast:null}),q().removeCreateListener(this.handleToastCreate)}},{key:"handleToastBlur",value:function(){this.state.focusedToast&&this.setState({focusedToast:null})}},{key:"render",value:function(){var F=this,X=this.props.position,re=X.indexOf("top")!==-1,Q=re?0:Math.max(this.state.toasts.length-1,0),ae=this.state.toasts.length>0;return this.props.escapeToCloseToasts?o().createElement(M(),{closeReasons:["escapeKey"],onRequestClose:function(){return F.handleRequestHide(F.state.toasts[Q])},open:ae},ae&&this.renderLayer()):this.renderLayer()}}]),y})(o().Component);we.propTypes={position:s().oneOf(v()(B.TOAST_POSITIONS)).isRequired,animationDuration:s().number,toasts:s().arrayOf(s().object),escapeToCloseToasts:s().bool},we.defaultProps={escapeToCloseToasts:!0};const Be=we;var Ae=function(u){var y=u.position,w=y===void 0?"top-center":y;return o().createElement(Be,{position:w})};Ae.propTypes={position:s().oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"])};const Ve=Ae})(),vt.exports=t})()),vt.exports}var pi=di();const ds=ne(pi);var fi=Nr();const ps=ne(fi),fs=Z.div.attrs({className:"pageTitle"})`
|
|
|
font-size: ${te.fontSizeXXLarge};
|
|
|
margin-bottom: 20px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
`,hi=Z.div.attrs({className:"pageSubtitle"})`
|
|
|
font-size: ${te.fontSize};
|
|
|
margin-bottom: 10px;
|
|
|
`;Z.div`
|
|
|
.table-caption-inner {
|
|
|
text-align: left;
|
|
|
}
|
|
|
`;const lt=P.createContext(null);function mi({children:n}){const[r,e]=P.useState({}),[t,i]=P.useState(""),[o,a]=P.useState("all"),[s,c]=P.useState(10),[f,d]=P.useState(0),p=P.useMemo(()=>({rowData:r,setRowData:e,searchText:t,setSearchText:i,searchType:o,setSearchType:a,pageSize:s,setPageSize:c,currentPage:f,setCurrentPage:d}),[r,t,o,s,f]);return l.jsx(lt.Provider,{value:p,children:n})}mi.propTypes={children:ge.oneOfType([ge.arrayOf(ge.node),ge.node]).isRequired};const ke="clone",$e="create",ve="edit",_e="config",je="page",tn="modal",Wt=P.createContext(void 0);function hs({children:n,platform:r}){const e=P.useMemo(()=>({platform:r}),[r]);return l.jsx(Wt.Provider,{value:e,children:n})}const Je=(n,r)=>!!(r&&n===r||!r&&n);var Qe={exports:{}},nn;function gi(){return nn||(nn=1,(function(n,r){Object.defineProperty(r,"__esModule",{value:!0});function e(g){return typeof g=="object"&&!("toString"in g)?Object.prototype.toString.call(g).slice(8,-1):g}var t=typeof er=="object"&&!0;function i(g,b){if(!g)throw t?new Error("Invariant failed"):new Error(b())}r.invariant=i;var o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function c(g){return s.call(g).slice(8,-1)}var f=Object.assign||(function(g,b){return d(b).forEach(function(D){o.call(b,D)&&(g[D]=b[D])}),g}),d=typeof Object.getOwnPropertySymbols=="function"?function(g){return Object.keys(g).concat(Object.getOwnPropertySymbols(g))}:function(g){return Object.keys(g)};function p(g){return Array.isArray(g)?f(g.constructor(g.length),g):c(g)==="Map"?new Map(g):c(g)==="Set"?new Set(g):g&&typeof g=="object"?f(Object.create(Object.getPrototypeOf(g)),g):g}var C=(function(){function g(){this.commands=f({},v),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(b,D){return b===D},this.update.newContext=function(){return new g().update}}return Object.defineProperty(g.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(b){this.update.isEquals=b},enumerable:!0,configurable:!0}),g.prototype.extend=function(b,D){this.commands[b]=D},g.prototype.update=function(b,D){var L=this,$=typeof D=="function"?{$apply:D}:D;Array.isArray(b)&&Array.isArray($)||i(!Array.isArray($),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),i(typeof $=="object"&&$!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(L.commands).join(", ")+".")});var U=b;return d($).forEach(function(H){if(o.call(L.commands,H)){var K=b===U;U=L.commands[H]($[H],U,$,b),K&&L.isEquals(U,b)&&(U=b)}else{var S=c(b)==="Map"?L.update(b.get(H),$[H]):L.update(b[H],$[H]),E=c(U)==="Map"?U.get(H):U[H];(!L.isEquals(S,E)||typeof S>"u"&&!o.call(b,H))&&(U===b&&(U=p(b)),c(U)==="Map"?U.set(H,S):U[H]=S)}}),U},g})();r.Context=C;var v={$push:function(g,b,D){return M(b,D,"$push"),g.length?b.concat(g):b},$unshift:function(g,b,D){return M(b,D,"$unshift"),g.length?g.concat(b):b},$splice:function(g,b,D,L){return q(b,D),g.forEach(function($){z($),b===L&&$.length&&(b=p(L)),a.apply(b,$)}),b},$set:function(g,b,D){return N(D),g},$toggle:function(g,b){O(g,"$toggle");var D=g.length?p(b):b;return g.forEach(function(L){D[L]=!b[L]}),D},$unset:function(g,b,D,L){return O(g,"$unset"),g.forEach(function($){Object.hasOwnProperty.call(b,$)&&(b===L&&(b=p(L)),delete b[$])}),b},$add:function(g,b,D,L){return G(b,"$add"),O(g,"$add"),c(b)==="Map"?g.forEach(function($){var U=$[0],H=$[1];b===L&&b.get(U)!==H&&(b=p(L)),b.set(U,H)}):g.forEach(function($){b===L&&!b.has($)&&(b=p(L)),b.add($)}),b},$remove:function(g,b,D,L){return G(b,"$remove"),O(g,"$remove"),g.forEach(function($){b===L&&b.has($)&&(b=p(L)),b.delete($)}),b},$merge:function(g,b,D,L){return B(b,g),d(g).forEach(function($){g[$]!==b[$]&&(b===L&&(b=p(L)),b[$]=g[$])}),b},$apply:function(g,b){return W(g),g(b)}},R=new C;r.isEquals=R.update.isEquals,r.extend=R.extend,r.default=R.update,r.default.default=n.exports=f(r.default,r);function M(g,b,D){i(Array.isArray(g),function(){return"update(): expected target of "+e(D)+" to be an array; got "+e(g)+"."}),O(b[D],D)}function O(g,b){i(Array.isArray(g),function(){return"update(): expected spec of "+e(b)+" to be an array; got "+e(g)+". Did you forget to wrap your parameter in an array?"})}function q(g,b){i(Array.isArray(g),function(){return"Expected $splice target to be an array; got "+e(g)}),z(b.$splice)}function z(g){i(Array.isArray(g),function(){return"update(): expected spec of $splice to be an array of arrays; got "+e(g)+". Did you forget to wrap your parameters in an array?"})}function W(g){i(typeof g=="function",function(){return"update(): expected spec of $apply to be a function; got "+e(g)+"."})}function N(g){i(Object.keys(g).length===1,function(){return"Cannot have more than one key in an object with $set"})}function B(g,b){i(b&&typeof b=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+e(b)}),i(g&&typeof g=="object",function(){return"update(): $merge expects a target of type 'object'; got "+e(g)})}function G(g,b){var D=c(g);i(D==="Map"||D==="Set",function(){return"update(): "+e(b)+" expects a target of type Set or Map; got "+e(D)})}})(Qe,Qe.exports)),Qe.exports}var yi=gi();const Re=ne(yi);var vi=hr();const Ce=ne(vi);var xt={exports:{}},rn;function bi(){return rn||(rn=1,(()=>{var n={};n.n=S=>{var E=S&&S.__esModule?()=>S.default:()=>S;return n.d(E,{a:E}),E},n.d=(S,E)=>{for(var _ in E)n.o(E,_)&&!n.o(S,_)&&Object.defineProperty(S,_,{enumerable:!0,get:E[_]})},n.o=(S,E)=>Object.prototype.hasOwnProperty.call(S,E),n.r=S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Description:()=>z,Term:()=>b,default:()=>K});const e=Nt();var t=n.n(e);const i=Dt();var o=n.n(i),a=(0,e.createContext)({layout:"fixed"});const s=It;var c=n.n(s);const f=Ft();var d=c().dt.withConfig({displayName:"DefinitionListStyles__StyledTerm",componentId:"sc-1pqfrgm-0"})(["",""],(function(S){var E=S.$separatorCharacter,_=S.$termWidth;return(0,f.pickVariant)("$layout",{fixed:(0,s.css)(["",";",";float:left;overflow:hidden;white-space:nowrap;word-wrap:normal;width:",";",""],f.mixins.reset("block"),f.mixins.typography("body",{color:"muted"}),_,E&&(0,s.css)(["&::after{content:'","';}"]," ".concat(E.repeat(100)))),auto:(0,s.css)(["",";",";grid-template-columns:[term] auto [separator] 1fr;grid-column:term;overflow:hidden;white-space:normal;word-break:break-word;width:",";",""],f.mixins.reset("grid"),f.mixins.typography("body",{color:"muted"}),_,E&&(0,s.css)(["&::after{grid-column:separator;content:'","';margin-inline-start:",";min-width:",";overflow:hidden;white-space:nowrap;}"]," ".concat(E.repeat(100)),f.variables.spacingXSmall,f.variables.spacingLarge))})})),p=c().dd.withConfig({displayName:"DefinitionListStyles__StyledDescription",componentId:"sc-1pqfrgm-1"})(["",""],(function(S){var E=S.$descriptionWidth,_=S.$termWidth;return(0,f.pickVariant)("$layout",{fixed:(0,s.css)(["",";",";padding-inline-start:",";margin-inline-start:",";white-space:normal;word-break:break-word;width:",";"],f.mixins.reset("block"),f.mixins.typography("body",{color:"active"}),f.variables.spacingSmall,_,E),auto:(0,s.css)(["",";",";grid-column:description;white-space:normal;word-break:break-word;width:",";"],f.mixins.reset("grid"),f.mixins.typography("body",{color:"active"}),E)})})),C=c().dl.withConfig({displayName:"DefinitionListStyles__Styled",componentId:"sc-1pqfrgm-2"})(["",""],(0,f.pickVariant)("$layout",{fixed:(0,s.css)(["",";",";"],f.mixins.reset("block"),f.mixins.typography("body")),auto:(0,s.css)(["",";grid-template-columns:[term] fit-content(",") [description] fit-content( "," );column-gap:",";row-gap:",";"],f.mixins.reset("grid"),f.variables.lineLength,f.variables.lineLength,f.variables.spacingXLarge,f.variables.spacingMedium)}));function v(){return v=Object.assign?Object.assign.bind():function(S){for(var E=1;E<arguments.length;E++){var _=arguments[E];for(var h in _)({}).hasOwnProperty.call(_,h)&&(S[h]=_[h])}return S},v.apply(null,arguments)}function R(S,E){if(S==null)return{};var _,h,k=M(S,E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);for(h=0;h<T.length;h++)_=T[h],E.indexOf(_)===-1&&{}.propertyIsEnumerable.call(S,_)&&(k[_]=S[_])}return k}function M(S,E){if(S==null)return{};var _={};for(var h in S)if({}.hasOwnProperty.call(S,h)){if(E.indexOf(h)!==-1)continue;_[h]=S[h]}return _}var O={children:o().node.isRequired,elementRef:o().oneOfType([o().func,o().object])};function q(S){var E=S.children,_=S.elementRef,h=R(S,["children","elementRef"]),k=(0,e.useContext)(a),T=k.descriptionWidth,x=k.layout,I=k.termWidth;return t().createElement(p,v({"data-test":"description",ref:_,$descriptionWidth:T,$layout:x,$termWidth:I},h),E)}q.propTypes=O;const z=q;function W(){return W=Object.assign?Object.assign.bind():function(S){for(var E=1;E<arguments.length;E++){var _=arguments[E];for(var h in _)({}).hasOwnProperty.call(_,h)&&(S[h]=_[h])}return S},W.apply(null,arguments)}function N(S,E){if(S==null)return{};var _,h,k=B(S,E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);for(h=0;h<T.length;h++)_=T[h],E.indexOf(_)===-1&&{}.propertyIsEnumerable.call(S,_)&&(k[_]=S[_])}return k}function B(S,E){if(S==null)return{};var _={};for(var h in S)if({}.hasOwnProperty.call(S,h)){if(E.indexOf(h)!==-1)continue;_[h]=S[h]}return _}var G={children:o().node.isRequired,elementRef:o().oneOfType([o().func,o().object])};function g(S){var E=S.children,_=S.elementRef,h=N(S,["children","elementRef"]),k=(0,e.useContext)(a),T=k.layout,x=k.separatorCharacter,I=k.termWidth;return t().createElement(d,W({"data-test":"term",ref:_,$layout:T,$separatorCharacter:x,$termWidth:I},h),E)}g.propTypes=G;const b=g;function D(){return D=Object.assign?Object.assign.bind():function(S){for(var E=1;E<arguments.length;E++){var _=arguments[E];for(var h in _)({}).hasOwnProperty.call(_,h)&&(S[h]=_[h])}return S},D.apply(null,arguments)}function L(S,E){if(S==null)return{};var _,h,k=$(S,E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);for(h=0;h<T.length;h++)_=T[h],E.indexOf(_)===-1&&{}.propertyIsEnumerable.call(S,_)&&(k[_]=S[_])}return k}function $(S,E){if(S==null)return{};var _={};for(var h in S)if({}.hasOwnProperty.call(S,h)){if(E.indexOf(h)!==-1)continue;_[h]=S[h]}return _}var U={children:o().node,descriptionWidth:o().string,elementRef:o().oneOfType([o().func,o().object]),layout:o().oneOf(["fixed","auto"]),separatorCharacter:o().string,termWidth:o().string};function H(S){var E=S.children,_=S.descriptionWidth,h=S.elementRef,k=S.layout,T=k===void 0?"fixed":k,x=S.separatorCharacter,I=S.termWidth,V=I===void 0?"120px":I,j=L(S,["children","descriptionWidth","elementRef","layout","separatorCharacter","termWidth"]),J=T!=="fixed"&&V==="120px"?void 0:V,ie=(0,e.useMemo)((function(){return{descriptionWidth:_,layout:T,separatorCharacter:x,termWidth:J}}),[_,T,x,J]);return t().createElement(C,D({"data-test":"definition-list",ref:h,$layout:T},j),t().createElement(a.Provider,{value:ie},E))}H.propTypes=U,H.Description=z,H.Term=b;const K=H;xt.exports=r})()),xt.exports}var jt=bi();const Ut=ne(jt);var xi=tr();const En=ne(xi);function rt(n){return n==null||["0","FALSE","F","N","NO","NONE",""].includes(n.toString().toUpperCase())}function Ht(n){return n!=null&&["1","TRUE","T","Y","YES"].includes(n.toString().toUpperCase())}function Ie(n,r){return r==="configuration"&&(rt(n)&&"0"||Ht(n)&&"1")||n}const Ci="[[default]]";function wn(n,r){return!!(n&&n in r&&Ht(r[n]))}function Si(n){if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")return n.toString();if(ye.isValidElement(n))return n;try{return JSON.stringify(n)}catch{return String(n)}}function Tn(n,r,e){const t=n[r];if(!(t==null||t==="")){const a=e?.[String(t)];return typeof a<"u"?a:Si(t)}return e?.[Ci]||t}function kn(n,r){const e=r?.reduce((t,i)=>{const o=Y._(i.label),a=Tn(n,i.field,i.mapping);return a!=null&&a!==""&&(t.push(l.jsx(jt.Term,{children:o},i.field)),t.push(l.jsx(jt.Description,{children:String(a)},`${i.field}_decr`))),t},[])||[];return e.length>0?l.jsx(Ut,{children:e}):[]}function Ct(n){console.error(`[Custom Control] Something went wrong while calling ${n.methodName}. Error: ${n.error?.name} ${n.error?.message}`)}class Ei extends P.Component{constructor(e){super(e);A(this,"customComponentContext");A(this,"customControl");A(this,"el",null);A(this,"shouldRender");A(this,"loadCustomControl",()=>new Promise((e,t)=>{const{type:i,fileName:o}=this.props,a=this.customComponentContext?.[this.props.fileName];if(a?.type==="row"){const s=a.component;e(s)}else i==="external"&&at(()=>import(`${st()}/custom/${o}.js`),[],import.meta.url).then(s=>e(s.default)).catch(s=>t(s))}));A(this,"callCustomMethod",async e=>{try{return typeof this?.customControl?.[e]=="function"?this.customControl[e]():null}catch(t){return Ct({methodName:e,error:t}),null}});A(this,"handleNoGetDLRows",()=>{(!this.customControl||typeof this.customControl.render!="function")&&this.setState(e=>({...e,methodNotPresentError:'At least "render" either "getDLRows" method should be present.'})),this.setState(e=>({...e,loading:!1}))});this.state={loading:!0,row:{...e.row},checkMethodIsPresent:!1,methodNotPresentError:"",rowUpdatedByControl:!1},this.shouldRender=!0,this.customComponentContext=e.customComponentContext}static getDerivedStateFromProps(e,t){return!t.rowUpdatedByControl&&e.row!==t.row?{row:{...e.row},loading:!1}:null}componentDidMount(){this.initializeCustomControl()}shouldComponentUpdate(e,t){return this.props.row!==e.row||this.state.row!==t.row?!0:!t.loading&&this.shouldRender?(this.shouldRender=!1,!0):!1}componentDidUpdate(e){e.row!==this.props.row&&(this.initializeCustomControl(),this.setState({rowUpdatedByControl:!1}))}async initializeCustomControl(){const e=Fe();this.loadCustomControl().then(async t=>{if(typeof t!="function"){this.setState({loading:!1,methodNotPresentError:"Loaded module is not a constructor function"});return}this.customControl=new t(e,this.props.serviceName,this.el,this.state.row);const i=await this.callCustomMethod("getDLRows");try{i&&typeof i=="object"&&!Array.isArray(i)?this.setState({row:{...i},checkMethodIsPresent:!0,loading:!1,rowUpdatedByControl:!0}):i!==null?this.setState({loading:!1,checkMethodIsPresent:!0,methodNotPresentError:"getDLRows method did not return a valid object"}):this.handleNoGetDLRows()}catch(o){Ct({methodName:"getDLRows",error:o}),this.handleNoGetDLRows()}}).catch(t=>{this.setState({loading:!1,methodNotPresentError:"Error loading custom control"}),console.error(`[Custom Control] Error loading custom control ${t}`)})}render(){const{row:e,loading:t,checkMethodIsPresent:i,methodNotPresentError:o}=this.state,{moreInfo:a}=this.props;if(!t&&!i&&this.customControl&&typeof this.customControl.render=="function")try{this.customControl.render(e,a)}catch(c){Ct({methodName:"render",error:c})}let s;return o?s=l.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[l.jsx(En,{style:{color:"red",marginRight:"4px"}}),o]}):i?s=l.jsx(Ut,{termWidth:"250",children:kn(e,a)}):s=l.jsx("span",{ref:c=>{this.el=c},style:{visibility:t?"hidden":"visible"}}),l.jsxs(l.Fragment,{children:[t&&Y._("Loading..."),s]})}}const wi=Z(Ce.Cell)`
|
|
|
border-top: none;
|
|
|
`;function Ti(n,r,e,t,i){return l.jsx(Ce.Row,{style:{wordBreak:"break-word"},children:l.jsx(wi,{colSpan:n,children:t&&t.src?l.jsx(l.Fragment,{children:ye.createElement(Ei,{serviceName:r.serviceName,row:r,fileName:t.src,type:t.type,moreInfo:e,customComponentContext:i})}):l.jsx(Ut,{termWidth:250,children:kn(r,e)})})},`${r.id}-expansion`)}var ki=mr();const ct=ne(ki);var Oi=gr();const Ai=ne(Oi);var Pi=Dr();const et=ne(Pi);var Ri=yr();const _i=ne(Ri);var ji=vr();const Mi=ne(ji);var Ni=br();const Di=ne(Ni);var Ii=xr();const Fi=ne(Ii),$i=Z(be)`
|
|
|
width: 600px;
|
|
|
`;function On(n){return l.jsxs($i,{returnFocus:n.returnFocus,open:n.open,onRequestClose:()=>n.handleRequestClose(!1),children:[l.jsx(be.Header,{title:n.title}),l.jsx(be.Body,{children:l.jsx($t,{appearance:"fill",type:"warning",children:n.message})}),l.jsxs(be.Footer,{children:[l.jsx(Oe,{onClick:()=>n.handleRequestClose(!1),label:n.declineBtnLabel||"Cancel"}),l.jsx(Oe,{onClick:()=>n.handleRequestClose(!0),label:n.acceptBtnLabel||"OK"})]})]})}function Li(n){console.error(`[Custom Cell] Something went wrong while calling ${n.methodName}. Error: ${n.error?.name} ${n.error?.message}`)}class Bi extends P.Component{constructor(e){super(e);A(this,"customComponentContext");A(this,"customCell");A(this,"el",null);A(this,"loadCustomCell",()=>new Promise((e,t)=>{const{type:i,fileName:o}=this.props,a=this.customComponentContext?.[this.props.fileName];if(a?.type==="cell"){const s=a.component;e(s)}else i==="external"&&at(()=>import(`${st()}/custom/${o}.js`),[],import.meta.url).then(s=>e(s.default)).catch(s=>t(s))}));A(this,"handleNoRender",()=>{(!this.customCell||typeof this.customCell.render!="function")&&this.setState(e=>({...e,methodNotPresentError:'"Render" method should be present.'})),this.setState(e=>({...e,loading:!1}))});this.state={loading:!0,row:{...e.row},methodNotPresentError:"",rowUpdatedByControl:!1},this.customComponentContext=e.customComponentContext}static getDerivedStateFromProps(e,t){return!t.rowUpdatedByControl&&e.row!==t.row?{row:{...e.row},loading:!1}:null}componentDidMount(){this.initializeCustomCell()}componentDidUpdate(e){e.row!==this.props.row&&(this.initializeCustomCell(),this.setState({rowUpdatedByControl:!1}))}async initializeCustomCell(){const e=Fe();this.loadCustomCell().then(async t=>{if(typeof t!="function"){this.setState({loading:!1,methodNotPresentError:"Loaded module is not a constructor function"});return}ze(this.el,"Element reference is not set"),this.customCell=new t(e,this.props.serviceName,this.el,this.state.row,this.props.field),this.handleNoRender()}).catch(t=>{this.setState({loading:!1,methodNotPresentError:"Error loading custom Cell module"}),console.error(`[Custom Cell] Error loading custom control ${t}`)})}render(){const{loading:e,methodNotPresentError:t}=this.state;if(!e&&this.customCell&&typeof this.customCell.render=="function")try{this.customCell.render()}catch(o){Li({methodName:"render",error:o})}let i;return t?i=l.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[l.jsx(En,{style:{color:"red",marginRight:"4px"}}),t]}):i=l.jsx("span",{ref:o=>{this.el=o},style:{visibility:e?"hidden":"visible"}}),l.jsxs(l.Fragment,{children:[e&&Y._("Loading..."),i]})}}const Vi=Z(Ce.Cell)`
|
|
|
padding: 2px;
|
|
|
`,qi=Z.div`
|
|
|
display: flex;
|
|
|
|
|
|
.toggle_switch {
|
|
|
padding: 0;
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
`;function Wi(n){const{row:r,columns:e,rowActions:t,headerMapping:i,handleToggleActionClick:o,handleEditActionClick:a,handleCloneActionClick:s,handleDeleteActionClick:c,useInputToggleConfirmation:f}=n,[d,p]=P.useState(!1),C=P.useContext(Ge),v=ye.createRef(),R=(N,B)=>B.customCell?.src&&ye.createElement(Bi,{serviceName:r.serviceName,field:B.field,row:N,fileName:B.customCell.src,type:B.customCell.type,customComponentContext:C}),M=P.useCallback((N,B)=>l.jsx(Vi,{"data-column":"actions",children:l.jsxs(Ai,{children:[!n.readonly&&t.includes("edit")&&l.jsx(et,{content:Y._("Edit"),children:l.jsx(Ze,{id:"edit-btn","aria-label":Y._("Edit"),icon:l.jsx(_i,{}),"data-testid":"edit-button",onClick:()=>a(N),className:"editBtn"})}),t.includes("clone")&&l.jsx(et,{content:Y._("Clone"),children:l.jsx(Ze,{id:"clone-btn","aria-label":Y._("Clone"),icon:l.jsx(Di,{size:1}),"data-testid":"clone-button",onClick:()=>s(N),className:"cloneBtn"})}),t.includes("search")&&l.jsx(et,{content:Y._(`Go to search for events associated with ${N.name}`),children:l.jsx(Ze,{id:"search-btn","aria-label":Y._(`Go to search for events associated with ${N.name}`),icon:l.jsx(Mi,{}),"data-testid":"search-button",to:`/app/search/search?q=search%20index%3D_internal%20source%3D*${N.name}*`,className:"searchBtn",inline:!1,target:"_blank"})}),!n.readonly&&t.includes("delete")&&l.jsx(et,{content:Y._("Delete"),children:l.jsx(Ze,{id:"delete-btn","aria-label":Y._("Delete"),icon:l.jsx(Fi,{size:1}),"data-testid":"delete-button",onClick:()=>c(N),className:"deleteBtn"})})]})},B.field),[a,s,c]),O=N=>{N&&o(r),p(!1)},q=()=>{p(!0)};let z=r.disabled?"Inactive":"Active";r.__toggleShowSpinner?z=l.jsx(Lt,{}):i.disabled?.[String(r.disabled)]&&(z=i.disabled[String(r.disabled)]);const W=()=>{v.current?.firstChild instanceof HTMLButtonElement&&v.current.firstChild.focus()};return l.jsx(Ce.Row,{...n,"aria-label":`row-${r.name||r.id}`,children:e&&e.length&&e.map(N=>{let B="";if(N.customCell&&N.customCell.src)B=l.jsx(Ce.Cell,{"data-column":N.field,children:N.customCell&&R(r,N)},N.field);else if(N.field==="disabled"){const G=i?.disabled?.false?i.disabled.false:"Active",g=i?.disabled?.true?i.disabled.true:"Inactive";B=l.jsx(Ce.Cell,{"data-column":N.field,children:l.jsxs(qi,{children:[l.jsx(ct,{elementRef:v,value:r.disabled,onClick:()=>f?q():o(r),selected:!r.disabled,disabled:!!r.__toggleShowSpinner||n.readonly,appearance:"toggle",className:"toggle_switch",selectedLabel:Y._(i?.disabled?.false?i.disabled.false:"Active"),unselectedLabel:Y._(i?.disabled?.true?i.disabled.true:"Inactive")},r.name),l.jsx("span",{"data-test":"status",children:z}),f&&l.jsx(On,{returnFocus:W,message:`Do you want to make ${r.name} input ${r.disabled?G:g}?`,open:d,handleRequestClose:O,title:`Make input ${r.disabled?G:g}?`,declineBtnLabel:"No",acceptBtnLabel:"Yes"})]})},N.field)}else N.field==="actions"?B=M(r,N):B=l.jsx(Ce.Cell,{style:{wordBreak:"break-word"},"data-column":N.field,children:Tn(r,N.field,i[N.field])},N.field);return B})},r.name||r.id)}const Ui=ye.memo(Wi),ue=[];for(let n=0;n<256;++n)ue.push((n+256).toString(16).slice(1));function Hi(n,r=0){return(ue[n[r+0]]+ue[n[r+1]]+ue[n[r+2]]+ue[n[r+3]]+"-"+ue[n[r+4]]+ue[n[r+5]]+"-"+ue[n[r+6]]+ue[n[r+7]]+"-"+ue[n[r+8]]+ue[n[r+9]]+"-"+ue[n[r+10]]+ue[n[r+11]]+ue[n[r+12]]+ue[n[r+13]]+ue[n[r+14]]+ue[n[r+15]]).toLowerCase()}let St;const zi=new Uint8Array(16);function Gi(){if(!St){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");St=crypto.getRandomValues.bind(crypto)}return St(zi)}const Yi=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),on={randomUUID:Yi};function Zi(n,r,e){if(on.randomUUID&&!n)return on.randomUUID();n=n||{};const t=n.random??n.rng?.()??Gi();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Hi(t)}var Ki=Cr();const Xi=ne(Ki),Ji=Z.span`
|
|
|
color: ${n=>n.color};
|
|
|
`;function Qi(n){function r(t,i){let o=[];for(let a=0;a<t.length;a+=1){const s=i(t[a]);o=o.concat(s)}return o}function e(){let t=n.text;return n.markdownType==="link"?t=l.jsx(Ue,{to:n.link,children:n.text}):n.markdownType==="hybrid"?(t=r(t.split(n.token),i=>[i,l.jsx(Ue,{to:n.link,children:n.linkText},i)]),t.pop()):n.markdownType==="text"&&(t=l.jsx(Ji,{color:n.color,children:n.text})),t}return l.jsx("div",{"data-test":"msg-markdown",children:e()})}const eo=ye.memo(Qi);function to(n){return"label"in n}function no({groups:n,rows:r}){const e=new Map;return r.reduce((t,i)=>{const o=n?.find(s=>s.fields.includes(i.field));if(!o)return t.push(i),t;let a=e.get(o.label);return a?a.rows.push(i):(a={...o,rows:[i]},e.set(o.label,a),t.push(a)),t},[])}function Et(n,r){const e=new Map(n),t="allRows"in r&&r.allRows||"groupFields"in r&&r.groupFields||"field"in r&&[r.field]||[];let i=!1;return t.forEach(o=>{n.get(o)?.checkbox!==r.checkbox&&(i=!0,e.set(o,{checkbox:r.checkbox}))}),i?e:n}function ro(n,r){let e=0;return n.rows.forEach(t=>{r.get(t.field)?.checkbox&&(e+=1)}),e}function io(n){const r=new Map;return n.forEach(e=>{const t=e.checkbox?.defaultValue;typeof t=="boolean"&&r.set(e.field,{checkbox:t})}),r}const oo=nr`
|
|
|
align-self: center;
|
|
|
background-color: ${qt({enterprise:te.neutral100})};
|
|
|
`,ao=Z.div`
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
flex: 1;
|
|
|
`,so=Z(vn)`
|
|
|
// For collapsible toggle button
|
|
|
& > div > button[data-test='toggle'][aria-controls] {
|
|
|
border: 0;
|
|
|
margin-right: ${te.spacingSmall} !important;
|
|
|
cursor: pointer;
|
|
|
background-color: transparent;
|
|
|
box-shadow: none;
|
|
|
|
|
|
&:hover:not([disabled]),
|
|
|
&:focus:not([disabled]),
|
|
|
&:active:not([disabled]) {
|
|
|
background-color: transparent;
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > *:not(:last-child) {
|
|
|
// for parent checkbox
|
|
|
button[data-test='toggle'][data-selected='false'] {
|
|
|
background-color: ${te.neutral100};
|
|
|
}
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
// for prisma styling
|
|
|
& > span {
|
|
|
align-content: center;
|
|
|
}
|
|
|
background-color: ${te.neutral200};
|
|
|
&:hover:not([disabled]) {
|
|
|
background-color: ${te.neutral300};
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
gap: 0;
|
|
|
}
|
|
|
background-color: transparent;
|
|
|
`,lo=Z.div`
|
|
|
padding: ${te.spacingSmall} 0;
|
|
|
margin: 0 0 0
|
|
|
${qt({enterprise:"30px",prisma:"45px"})};
|
|
|
`,co=Z.div`
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
padding: 6px ${te.spacingSmall};
|
|
|
background-color: ${te.neutral200};
|
|
|
&:hover:not([disabled]) {
|
|
|
background-color: ${te.neutral300};
|
|
|
}
|
|
|
button {
|
|
|
${oo}
|
|
|
}
|
|
|
`,An=qt({enterprise:te.textColor,prisma:te.contentColorActive}),uo=Z.div`
|
|
|
font-size: ${te.fontSizeSmall};
|
|
|
text-align: right;
|
|
|
align-content: center;
|
|
|
flex-shrink: 0;
|
|
|
color: ${An};
|
|
|
`,Pn=Z(ct)`
|
|
|
color: ${An};
|
|
|
flex-shrink: 1;
|
|
|
`;function po(n){const{field:r,label:e,checkbox:t,disabled:i,handleChange:o}=n,a=(s,c)=>{o({field:r,checkbox:!c.selected})};return l.jsx(Pn,{"aria-label":`${e} checkbox`,"data-test-field":r,selected:t,onClick:a,appearance:"checkbox",disabled:i,children:e})}function Rn({row:n,values:r,handleRowChange:e,disabled:t}){const i=r.get(n.field);return l.jsx(po,{field:n.field,label:n.checkbox?.label||n.field,checkbox:!!i?.checkbox,handleChange:e,disabled:t})}const fo=({group:n,values:r,handleRowChange:e,disabled:t,handleParentCheckboxForGroup:i})=>{const[o,a]=P.useState(n.options?.expand),s=P.useMemo(()=>n.rows.every(v=>r.get(v.field)?.checkbox),[n.rows,r]),c=P.useMemo(()=>ro(n,r),[n,r]);P.useEffect(()=>{a(n.options?.expand)},[n.options?.expand,n.rows]);const f=()=>a(v=>!v),d=l.jsx(Pn,{"aria-label":`Toggle for ${n.label}`,selected:s,onClick:()=>i(n.label,!s),appearance:"checkbox",disabled:t,children:n.label}),p=l.jsx(lo,{children:n.rows.map(v=>l.jsx(Rn,{disabled:t,row:v,values:r,handleRowChange:e},`row_${v.field}`))}),C=l.jsxs(uo,{children:[c," of ",n.rows.length]});return l.jsx(ao,{children:n.options?.isExpandable?l.jsx(so,{open:o,onChange:f,title:d,actions:C,inset:!1,children:p}):l.jsxs(l.Fragment,{children:[l.jsxs(co,{children:[d,C]}),p]})})};function ho(n,r=","){return n?new Map(n.split(r).map(e=>[e.trim(),{checkbox:!0}])):new Map}function tt(n,r=","){return Array.from(n.entries()).filter(([,e])=>e.checkbox).map(([e])=>`${e}`).join(r)}const mo=Z.div`
|
|
|
width: 100%;
|
|
|
`;function go(n){const{field:r,handleChange:e,controlOptions:t,disabled:i}=n,o=P.useMemo(()=>no(t),[t]),a=P.useMemo(()=>n.mode===$e&&(n.value===null||n.value===void 0),[n.mode,n.value]),s=P.useMemo(()=>a?io(t.rows):ho(n.value,t?.delimiter),[a,t.rows,n.value]),[c,f]=P.useState(s);P.useEffect(()=>{a&&e(r,tt(s,t?.delimiter),"checkboxTree")},[r,e,a,s,t?.delimiter]);const d=P.useCallback(v=>{f(R=>{const M=Et(R,v);return e(r,tt(M,t?.delimiter),"checkboxTree"),M})},[t?.delimiter,r,e]),p=P.useCallback((v,R)=>{if(!t?.groups)return;const M=t.groups.find(O=>O.label===v);M&&f(O=>{const q=Et(O,{groupFields:M.fields,checkbox:R});return e(r,tt(q,t?.delimiter),"checkboxTree"),q})},[t?.delimiter,t.groups,r,e]),C=P.useCallback(v=>{i!==!0&&f(R=>{const M=Et(R,{allRows:t.rows.map(O=>O.field),checkbox:v});return e(r,tt(M,t?.delimiter),"checkboxTree"),M})},[t?.delimiter,t.rows,i,r,e]);return l.jsxs(mo,{children:[l.jsxs(pe,{gutter:5,children:[o.map(v=>v&&to(v)?l.jsx(pe.Row,{children:l.jsx(fo,{group:v,values:c,handleRowChange:d,disabled:i,handleParentCheckboxForGroup:p})},`group_${v.label}`):v&&l.jsx(pe.Row,{children:l.jsx(Rn,{row:v,values:c,handleRowChange:d,disabled:i})},`row_${v.field}`)),l.jsx(pe.Row,{})]}),l.jsxs("div",{children:[l.jsx(Ne,{label:"Select All",appearance:"subtle",onClick:()=>C(!0)}),l.jsx(Ne,{label:"Clear All",appearance:"subtle",onClick:()=>C(!1)})]})]})}const yo=(n,r,e)=>{const t=r.links?.find(i=>`[[${i.slug}]]`===n);return t?l.jsx(Ue,{to:t.link,openInNewContext:!0,children:t.linkText},`Link${t.slug}${e}`):n},vo=(n,r)=>n.includes(r)?n.split(r).flatMap((e,t,i)=>t<i.length-1?[e,r]:[e]):[n],bo=(n,r)=>{let e=[n];return r.links?.forEach(t=>{e=e.map(i=>vo(i,`[[${t.slug}]]`)).flat()}),e},_n=(n,r)=>bo(n,r).map((t,i)=>yo(t,r,i)),xo=(n,r)=>n.filter(Boolean).map((e,t)=>{const i=_n(e,r);return l.jsxs("span",{children:[t!==0&&l.jsx("br",{}),i]},`TextWithLinks${e}`)}),zt=n=>{if(!n.text)return null;const r=n.text.split(`
|
|
|
`),e=r.length>1?xo(r,n):_n(n.text,n);return n.link?l.jsx(Ue,{to:n.link,openInNewContext:!0,children:e}):l.jsx("span",{children:e})};function Co(n){return zt(n.controlOptions)}var So=Sr();const Eo=ne(So),wo=(n,r)=>{const e={...n};return r.forEach(t=>{t in e&&delete e[t]}),e},Le=n=>wo(n,["addCustomValidator","defaultValue","dependencyValues","encrypted","fileNameToDisplay","handleChange","mode","options","page","type"]);class To extends P.Component{constructor(){super(...arguments);A(this,"handleChange",(e,{value:t})=>{this.props.handleChange(this.props.field,t)})}render(){const{id:e,field:t,disabled:i,value:o,encrypted:a,...s}=this.props,c=Le(s);return l.jsx(Eo,{...c,inputId:e,className:t,disabled:i&&"dimmed",value:o===null||typeof o>"u"?"":o.toString(),onChange:this.handleChange,type:a?"password":"text"})}}var ko=Er();const jn=ne(ko),Oo=Z(jn)`
|
|
|
textarea {
|
|
|
-webkit-text-security: disc;
|
|
|
}
|
|
|
`;function Ao({id:n,value:r,handleChange:e,field:t,controlOptions:i,encrypted:o,...a}){const s=(p,C)=>{e(t,C.value)},f={...Le(a),inputId:n,className:t,value:r?.toString()||"",onChange:s,rowsMax:i?.rowsMax??12,rowsMin:i?.rowsMin??8},d=o?Oo:jn;return l.jsx(d,{...f})}var Po=wr();const Ee=ne(Po);var Ro=Tr();const wt=ne(Ro);var _o=kr();const jo=ne(_o),Mo=Z(Lt)`
|
|
|
margin-left: ${te.spacingSmall};
|
|
|
`,No=Z(({...n})=>l.jsx(Ne,{...n}))`
|
|
|
margin-left: ${te.spacingSmall};
|
|
|
`;function Do(n){const{id:r,field:e,disabled:t=!1,controlOptions:i,dependencyValues:o,...a}=n,{endpointUrl:s,denyList:c,allowList:f,dependencies:d,createSearchChoice:p,referenceName:C,disableSearch:v,labelField:R,valueField:M,autoCompleteFields:O,hideClearBtn:q}=i,z=(K,S)=>{n.handleChange(e,String(S.value))},W=p?wt.Option:Ee.Option,N=p?wt.Heading:Ee.Heading;function B(K){const S=[];return K.forEach(E=>{if("value"in E&&E.value!==null&&E.value!==void 0&&E.value!==""&&E.label){const _=String(Ie(E.value,n.page));S.push(l.jsx(W,{label:E.label,value:_},E.value))}"children"in E&&E.children&&E.label&&(S.push(l.jsx(N,{children:E.label},E.label)),E.children.forEach(_=>{const h=String(Ie(_.value,n.page));S.push(l.jsx(W,{label:_.label,value:h},h))}))}),S}const[G,g]=P.useState(!1),[b,D]=P.useState([]);P.useEffect(()=>{if(!s&&!C&&O){D(B(O));return}const K=C?De(encodeURIComponent(C)):s;if(d&&!o||!K){D([]);return}let S=!0;const E=new AbortController,_={signal:E.signal,endpointUrl:K,handleError:!0,params:{count:-1}};return o&&(_.params={..._.params,...o}),g(!0),Bt(_).then(h=>{S&&(D(B(mn(h.entry,R,M,f,c))),g(!1))}).catch(()=>{S&&(g(!1),D([]))}),()=>{S=!1,E.abort()}},[o]);const L=G?!0:t,$=G?l.jsx(Mo,{}):null,U=!(L||n.required||q),H=Le(a);return p?l.jsxs(l.Fragment,{children:[l.jsx(wt,{...H,inputId:r,value:n.value===null||typeof n.value>"u"?"":String(n.value),name:e,disabled:L,onChange:z,children:b&&b.length>0&&b}),$]}):l.jsxs(l.Fragment,{children:[l.jsx(Ee,{...H,menuStyle:{width:"100%"},inputId:n.id,"data-test-loading":G,value:n.value===null||typeof n.value>"u"?"":String(n.value),name:e,disabled:L,onChange:z,filter:!v,inline:!1,children:b&&b.length>0&&b})," ",$,U?l.jsx(No,{"data-test":"clear",appearance:"secondary",icon:l.jsx(jo,{}),onClick:()=>n.handleChange(e,"")}):null]})}var Io=Or();const an=ne(Io),Fo=Z(Lt)`
|
|
|
margin-left: 5px;
|
|
|
`;function $o(n){const{id:r,field:e,disabled:t=!1,value:i,controlOptions:o,dependencyValues:a,handleChange:s,...c}=n,{endpointUrl:f,denyList:d,allowList:p,items:C,dependencies:v,referenceName:R,createSearchChoice:M,labelField:O,valueField:q,delimiter:z=","}=o,W=(H,{values:K})=>{(typeof K[0]=="string"||K.length===0)&&s(e,K.join(z))};function N(H){return H.map(K=>l.jsx(an.Option,{label:K.label,value:String(K.value)},typeof K.value=="boolean"?String(K.value):K.value))}const[B,G]=P.useState(!1),[g,b]=P.useState();P.useEffect(()=>{if(!f&&C){b(N(C));return}let H=!0;const K=new AbortController,S=R?De(encodeURIComponent(R)):f;ze(S,"[MultiInputComponent] referenceName or endpointUrl or items must be provided");const E={signal:K.signal,handleError:!0,params:{count:-1},endpointUrl:S};return a&&(E.params={...E.params,...a}),(!v||a)&&(G(!0),Bt(E).then(_=>{H&&b(N(mn(_.entry,O,q,p,d)))}).finally(()=>{H&&G(!1)})),()=>{H=!1,K.abort()}},[a]);const D=B?!0:t,L=B?l.jsx(Fo,{}):null,$=i?String(i).split(z):[],U=Le(c);return l.jsxs(l.Fragment,{children:[l.jsx(an,{...U,inputId:r,style:{width:"100%"},values:$,name:e,disabled:D,allowNewValues:M,onChange:W,children:g&&g.length>0&&g}),L]})}class Lo extends ye.Component{constructor(){super(...arguments);A(this,"handleChange",()=>{this.props.value&&!rt(this.props.value)?this.props.handleChange(this.props.field,0):this.props.handleChange(this.props.field,1)})}render(){const{field:e,value:t,...i}=this.props,o=Le(i);return l.jsx(ct,{...o,value:e,onClick:this.handleChange,selected:!(!t||rt(t)),appearance:"checkbox"})}}var Bo=Ar();const Mn=ne(Bo),Vo=Z(Mn.Option)`
|
|
|
margin-left: 0px !important;
|
|
|
`;class qo extends P.Component{constructor(){super(...arguments);A(this,"handleChange",(e,{value:t})=>{this.props.handleChange(this.props.field,t)})}render(){const{value:e,controlOptions:t,disabled:i,page:o,...a}=this.props,s=Le(a);return l.jsx(Mn,{...s,onChange:this.handleChange,value:e&&Ie(e,o),children:t.items.map(c=>l.jsx(Vo,{value:Ie(c.value,o),label:c.label,disabled:i},c.value))})}}var Wo=Pr();const Uo=ne(Wo),Ho=n=>{const r=(e,{value:t})=>{n.handleChange(n.field,t)};return l.jsx(Uo,{highlightToday:!0,value:n.value,onChange:r,disabled:n.disabled})},We=class We extends ye.Component{constructor(e){super(e);A(this,"shouldRender");A(this,"el");A(this,"setValue",e=>{this.props.handleChange(this.props.field,e)});this.state={loading:!0},this.shouldRender=!0}componentDidMount(){const e=Fe(),t=e.meta.name;We.loadCustomControl(this.props.controlOptions.src,this.props.controlOptions.type,t,this.context).then(i=>{ze(this.el!==void 0,"Element should be defined");const o=new i(e,this.el,this.props.data,this.setValue,this.props.utilCustomFunctions);o?.render(),typeof o.validation=="function"&&this.props.addCustomValidator(this.props.field,o.validation),this.setState({loading:!1})})}shouldComponentUpdate(e,t){return!t.loading&&this.shouldRender?(this.shouldRender=!1,!0):!1}render(){return l.jsxs(l.Fragment,{children:[this.state.loading&&Y._("Loading..."),l.jsx("span",{ref:e=>{e&&(this.el=e)},style:{visibility:this.state.loading?"hidden":"visible"}})]})}};A(We,"contextType",Ge),A(We,"loadCustomControl",(e,t,i,o)=>new Promise(a=>{const s=o?.[e];if(s?.type==="control"){const c=s.component;a(c)}else t==="external"&&at(()=>import(`${st()}/custom/${e}.js`),[],import.meta.url).then(async c=>{const f=c.default;a(f)})}));let Mt=We;var zo=Rr();const Nn=ne(zo),Tt={FILE_MAX_SIZE:500,REUPLOAD_MESSAGE:"Please reupload this file",INVALID_FILE_MESSAGE:"##INVALID_FILE##"},Go=Z(Nn)`
|
|
|
width: 100%;
|
|
|
> div[class*='FileStyles__StyledHelp-'] {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
`;function Yo(n,r,e,t){return!n||!e.includes(n)?l.jsx("span",{style:{color:"red"},children:ee(e.length===1?28:24,[e.join(", ")])}):r>t?l.jsx("span",{style:{color:"red"},children:ee(25,[t])}):!0}function Zo(n){const{field:r,disabled:e,controlOptions:t,handleChange:i,fileNameToDisplay:o,encrypted:a}=n,{fileSupportMessage:s,supportedFileTypes:c,maxFileSize:f=Tt.FILE_MAX_SIZE,useBase64Encoding:d=!1}=t,p=new FileReader,C=new TextDecoder,[v,R]=P.useState(o||""),[M,O]=P.useState(o&&a?Tt.REUPLOAD_MESSAGE:""),q=W=>{if(W.length){const N=W[0];p.readyState===1&&p.abort(),d?p.readAsDataURL(N):p.readAsArrayBuffer(N),p.onload=()=>{const B=Yo(N.name.split(".").pop(),N.size/1024,c,f);if(B===!0){O("");try{if(p.result&&typeof p.result!="string")i(r,C.decode(p.result));else if(p.result&&typeof p.result=="string"&&p.result.includes("base64,")){const G=p.result.indexOf("base64,"),g=p.result.slice(G+7);i(r,g)}else console.log("File could not be processed as it's format isn't recognized")}catch(G){console.log(G)}}else O(B),i(r,Tt.INVALID_FILE_MESSAGE);R(N.name)}}},z=()=>{p.readyState===1&&p.abort(),R(null),i(r,""),O("")};return l.jsx(Go,{onRequestAdd:q,onRequestRemove:z,supportsMessage:l.jsxs(l.Fragment,{children:[" ",s," "]}),disabled:e,help:M,error:!!M,children:v&&l.jsx(Nn.Item,{name:v})},r)}function Dn(n,r=","){const e=new Map;return n&&n.split(r).forEach(i=>{const[o,a]=i.trim().split("/"),s=a===""?void 0:Number(a);if(!o||Number.isNaN(s))throw new Error(`Value is not parsable: ${n}`);e.set(o,{checkbox:!0,inputValue:s})}),e}function kt(n,r=","){return Array.from(n.entries()).filter(([,e])=>e.checkbox).map(([e,{inputValue:t=""}])=>`${e}/${t}`).join(r)}function Gt(n){return"label"in n}function Ko({groups:n,rows:r}){const e=[];return r.forEach(t=>{const i=n?.find(o=>o.fields.includes(t.field));if(i){const o=e.find(s=>Gt(s)&&s.label===i.label),a=o||{...i,rows:[]};a.rows.push(t),o||e.push(a);return}e.push(t)}),e}function Xo(n,r){const e=new Map(n);return e.set(r.field,{checkbox:r.checkbox,inputValue:r.inputValue}),e}function Jo(n,r){let e=0;return n.rows.forEach(t=>{r.get(t.field)?.checkbox&&(e+=1)}),e}function Qo(n){const r=new Map;return n.forEach(e=>{if(!Gt(e)){const t=e.checkbox?.defaultValue;typeof t=="boolean"&&r.set(e.field,{checkbox:t,inputValue:e.input?.defaultValue})}}),r}const ea=Z.div`
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
flex: 1;
|
|
|
`,ta=Z(vn)`
|
|
|
span {
|
|
|
button {
|
|
|
background-color: ${te.neutral200};
|
|
|
font-size: 14px;
|
|
|
|
|
|
&:hover:not([disabled]),
|
|
|
&:focus:not([disabled]),
|
|
|
&:active:not([disabled]) {
|
|
|
background-color: ${te.neutral300};
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
div[data-test='body'] > div {
|
|
|
padding: ${te.spacingMedium} 0px;
|
|
|
}
|
|
|
background-color: transparent;
|
|
|
`,na=Z.div`
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
padding: 6px 10px;
|
|
|
background-color: ${te.neutral200};
|
|
|
&:hover:not([disabled]) {
|
|
|
background-color: ${te.neutral300};
|
|
|
}
|
|
|
font-size: 14px;
|
|
|
margin-bottom: 10px;
|
|
|
`,ra=Z.span`
|
|
|
padding-right: 20px;
|
|
|
margin-left: 10px;
|
|
|
font-size: 12px;
|
|
|
min-width: 35px;
|
|
|
`;function In({isExpandable:n,defaultOpen:r,children:e,title:t,description:i}){return l.jsx(ea,{children:n?l.jsx(ta,{title:t,defaultOpen:r,description:i,children:e}):l.jsxs(l.Fragment,{children:[l.jsxs(na,{children:[l.jsx("span",{children:t}),l.jsx(ra,{children:i})]}),l.jsx("div",{children:e})]})})}var ia=_r();const oa=ne(ia),aa=Z(ct)`
|
|
|
padding: 0 3px;
|
|
|
flex: min-content;
|
|
|
align-items: baseline;
|
|
|
`,sa=Z.div`
|
|
|
width: 80px;
|
|
|
`,la=Z.div`
|
|
|
display: flex;
|
|
|
align-items: baseline;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
`;function ca(n){const{field:r,label:e,checkbox:t,input:i,disabled:o,handleChange:a}=n,[s,c]=P.useState(!t||o);P.useEffect(()=>{c(!t||o)},[t,o]);const f=(v,{value:R})=>{a({field:r,inputValue:R,checkbox:t})},d=(v,R)=>{const M=R.selected;a({field:r,inputValue:i,checkbox:!M})},p=`${e} value`,C=`${e} checkbox`;return l.jsxs(la,{children:[l.jsx(aa,{"aria-label":C,"data-test-field":r,selected:t,onClick:d,appearance:"checkbox",disabled:o,children:e}),l.jsx(sa,{children:l.jsx(oa,{"aria-label":p,"data-test-field":r,title:p,inline:!0,disabled:s,defaultValue:i,onChange:f})})]})}function Fn({row:n,values:r,handleRowChange:e,disabled:t}){const i=r.get(n.field);return l.jsx(ca,{field:n.field,label:n.checkbox?.label||n.field,checkbox:!!i?.checkbox,input:i?i.inputValue:n.input?.defaultValue,handleChange:e,disabled:t})}const ua=Z.div`
|
|
|
& > *:not(:last-child) {
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
background-color: transparent;
|
|
|
`;function da({group:n,values:r,handleRowChange:e,disabled:t}){const i=Jo(n,r);return l.jsx(In,{title:n.label,description:`${i} of ${n.fields.length}`,isExpandable:n.options?.isExpandable,defaultOpen:n.options?.expand,children:l.jsx(ua,{children:n.rows.map(o=>l.jsx(Fn,{disabled:t,row:o,values:r,handleRowChange:e},`row_${o.field}`))})})}const pa=/^(?:(?:[0-1]?\d{1,2}|2[0-4]\d|25[0-5])(?:\.|$)){4}$/,fa=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ha=/^(?:(?:https?|ftp|opc\.tcp):\/\/)?(?:\S+(?::\S*)?@)?(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?_?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?)(?::\d{2,5})?(?:\/[^\s]*)?$/,ma=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pe={url:{regex:ha,inputValueType:ee(111)},email:{regex:fa,inputValueType:ee(112)},ipv4:{regex:pa,inputValueType:ee(113)},date:{regex:ma,inputValueType:ee(114)}},ga=n=>{let r,e;try{e=new Function(`return (${n});`)()}catch{r=ee(11,[n])}return{error:r,result:e}};function ya(n,r){const{error:e,result:t}=ga(n);if(e)return{errorMsg:e};const i=t&&t(r);if(typeof i=="string")return{errorMsg:i}}const va=n=>({error:n.length===2&&Kt.isNumber(n[0])&&Kt.isNumber(n[1])&&n[0]<=n[1]?void 0:ee(13,[JSON.stringify(n)])}),sn=n=>{let r,e;try{e=new RegExp(n)}catch{r=ee(12,[String(n)])}return{error:r,result:e}},se=class se{constructor(r){A(this,"entities");A(this,"isName");this.entities=r||[],this.isName=r?.find(e=>e.field==="name")}static RequiredValidator(r,e,t){return se.checkIsFieldHasInput(t)?!1:{errorField:r,errorMsg:ee(6,[e])}}static StringValidator(r,e,t,i){return se.checkIsFieldHasInput(i)&&typeof i=="string"&&i.length>t.maxLength?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(18,[e,t.maxLength])}:se.checkIsFieldHasInput(i)&&typeof i=="string"&&i.length<t.minLength?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(17,[e,t.minLength])}:!1}static RegexValidator(r,e,t,i){const{error:o,result:a}=sn(t.pattern);return o||a===void 0?{errorField:r,errorMsg:o}:se.checkIsFieldHasInput(i)&&typeof i=="string"&&!a.test(i)?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(15,[e,t.pattern])}:!1}static CustomValidator(r,e,t){const i=r(e,t);return typeof i=="string"?{errorField:e,errorMsg:i}:!1}static PreDefinedRegexValidator(r,e,t,i,o,a){const{error:s,result:c}=sn(o);return s||c===void 0?{errorField:r,errorMsg:s}:se.checkIsFieldHasInput(i)&&typeof i=="string"&&!c.test(i)?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(19,[e,a])}:!1}static NumberValidator(r,e,t,i){if(i==null)return!1;const{error:o}=va(t.range);if(o)return{errorField:r,errorMsg:o};const a=Number(i);return Number.isNaN(a)?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(16,[e])}:t?.isInteger&&!Number.isInteger(a)?{errorField:r,errorMsg:ee(29,[e])}:se.checkIsFieldHasInput(i)&&a>t.range[1]||a<t.range[0]?{errorField:r,errorMsg:t.errorMsg?t.errorMsg:ee(8,[e,t.range[0],t.range[1]])}:!1}doValidation(r){if(this.isName){const t=r.name,i=this.isName.label||"";if(typeof t>"u"||t===""||t==null)return{errorField:"name",errorMsg:ee(0,[i])};if(!(typeof t=="string"||t instanceof String))return{errorField:"name",errorMsg:ee(1,[i])};if(t.startsWith("_")||t==="."||t===".."||t.toLowerCase()==="default")return{errorField:"name",errorMsg:ee(3,[i])};if(["*","\\","[","]","(",")","?",":"].some(a=>t.indexOf(a)>-1))return{errorField:"name",errorMsg:ee(3,[i])};if(t.length>=1024)return{errorField:"name",errorMsg:ee(22,[i])}}let e;for(let t=0;this.entities&&t<this.entities.length;t+=1){if(this.entities[t].required===!0&&(e=se.RequiredValidator(this.entities[t].field,this.entities[t].label||"",r[this.entities[t].field]),e))return e;if(r[this.entities[t].field]===""||r[this.entities[t].field]===null)continue;if(this.entities[t].type==="file"&&r[this.entities[t].field]==="##INVALID_FILE##")return{errorField:this.entities[t].field,errorMsg:ee(26)};const i={...this.entities[t]};if(i.validators)for(let o=0;o<i.validators.length;o+=1){const a=i.validators[o];switch(a.type){case"string":if(e=se.StringValidator(i.field,i.label??"",a,r[i.field]),e)return e;break;case"regex":if(e=se.RegexValidator(i.field,i.label??"",a,r[i.field]),e)return e;break;case"number":if(e=se.NumberValidator(i.field,i.label??"",a,r[this.entities[t].field]),e)return e;break;case"url":if(e=se.PreDefinedRegexValidator(i.field,i.label??"",a,r[i.field],Pe.url.regex,Pe.url.inputValueType),e)return e;break;case"date":if(e=se.PreDefinedRegexValidator(i.field,i.label??"",a,r[i.field],Pe.date.regex,Pe.date.inputValueType),e)return e;break;case"email":if(e=se.PreDefinedRegexValidator(i.field,i.label??"",a,r[this.entities[t].field],Pe.email.regex,Pe.email.inputValueType),e)return e;break;case"ipv4":if(e=se.PreDefinedRegexValidator(i.field,i.label??"",a,r[i.field],Pe.ipv4.regex,Pe.ipv4.inputValueType),e)return e;break;case"custom":if(e=se.CustomValidator(a.validatorFunc,i.field,r[i.field]),e)return e;break}}}return!1}};A(se,"checkIsFieldHasInput",r=>r!=null&&(typeof r=="string"?r!=="":!0));let He=se;function ba(n,r,e){ze(typeof r=="string"||typeof r>"u",`Error occurred while validating CheckboxGroup value for the field "${n}", value should be a string or undefined. Got: "${r}"`);let t=!1;const i=Dn(r,e?.delimiter);return e.rows.some(o=>{const a=i.get(o.field);if(a){if(o.input?.required)return t=He.RequiredValidator(n,o.checkbox?.label||o.field,a.inputValue),t;if(o.input?.validators?.length)return o.input?.validators.some(s=>{const{type:c}=s;switch(c){case"number":return t=He.NumberValidator(n,o.checkbox?.label||o.field,s,a.inputValue),t;default:throw new Error(`[CheckboxGroup] Unsupported validator ${c} for field ${n}`)}})}return!1}),t}function xa(n,r,e){P.useEffect(()=>{n?.(r,(t,i)=>{const o=ba(t,i,e);return o!==!1?o.errorMsg:o})},[r,n,e])}const Ca=Z.div`
|
|
|
width: 100%;
|
|
|
`;function Sa(n){const{field:r,handleChange:e,controlOptions:t,addCustomValidator:i,disabled:o}=n,a=Ko(t),s=n.mode===$e&&(n.value===null||n.value===void 0),c=s?Qo(t.rows):Dn(n.value,t?.delimiter);P.useEffect(()=>{s&&e(r,kt(c,t?.delimiter),"checkboxGroup")},[t?.delimiter,r,e,s,c]);const[f,d]=P.useState(c);xa(i,r,t);const p=v=>{const R=Xo(f,v);d(R),e(r,kt(R,t?.delimiter),"checkboxGroup")},C=v=>{if(o===!0)return;const R=new Map(f);t.rows.forEach(M=>{const O=f.get(M.field);!!O?.checkbox!==v&&R.set(M.field,{checkbox:v,inputValue:O?.inputValue||M.input?.defaultValue})}),d(R),e(r,kt(R,t?.delimiter),"checkboxGroup")};return l.jsxs(Ca,{children:[l.jsxs(pe,{gutter:5,children:[a.map(v=>Gt(v)?l.jsx(pe.Row,{children:l.jsx(da,{group:v,values:f,handleRowChange:p,disabled:o})},`group_${v.label}`):l.jsx(pe.Row,{children:l.jsx(Fn,{row:v,values:f,handleRowChange:p,disabled:o})},`row_${v.field}`)),l.jsx(pe.Row,{})]}),l.jsxs("div",{children:[l.jsx(Ne,{label:"Select All",appearance:"subtle",onClick:()=>C(!0)}),l.jsx(Ne,{label:"Clear All",appearance:"subtle",onClick:()=>C(!1)})]})]})}const Ea={checkbox:Lo,checkboxGroup:Sa,checkboxTree:go,custom:Mt,date:Ho,file:Zo,helpLink:Co,multipleSelect:$o,radio:qo,singleSelect:Do,text:To,textarea:Ao},wa=Z(Xi).attrs(n=>({"data-name":n.dataName}))`
|
|
|
// label width + control width
|
|
|
width: calc(280px + 320px);
|
|
|
span[class*='ControlGroupStyles__StyledAsterisk-'] {
|
|
|
color: red;
|
|
|
}
|
|
|
> *:first-child {
|
|
|
justify-content: flex-end;
|
|
|
padding-right: ${gn.variables.spacingSmall};
|
|
|
}
|
|
|
`,ot=class ot extends ye.PureComponent{constructor(e){super(e);A(this,"controlType");this.controlType=ot.isString(e.entity?.type)?Ea[String(e.entity?.type)]:null}render(){const{handleChange:e,addCustomValidator:t,utilCustomFunctions:i}=this.props.utilityFuncts,{text:o,link:a,color:s,markdownType:c,token:f,linkText:d}=this.props.markdownMessage||{};let p;if(this.props?.entity?.type==="custom"){const q={value:this.props.value,mode:this.props.mode,serviceName:this.props.serviceName};p=this.controlType?ye.createElement(this.controlType,{data:q,handleChange:e,addCustomValidator:t,utilCustomFunctions:i,controlOptions:this.props.entity.options,...this?.props?.entity,...this.props?.modifiedEntitiesData}):`No View Found for ${this?.props?.entity?.type} type`}else p=this.controlType?ye.createElement(this.controlType,{handleChange:e,value:this.props.value,controlOptions:this.props.entity?.options,error:this.props.error,disabled:this.props.disabled,dependencyValues:this.props.dependencyValues,addCustomValidator:t,fileNameToDisplay:this.props.fileNameToDisplay,mode:this.props.mode,...this?.props?.entity,...this.props?.modifiedEntitiesData,page:this.props.page}):`No View Found for ${this?.props?.entity?.type} type`;const C=this.props?.modifiedEntitiesData?.help||this?.props?.entity?.help||"",v=zt(typeof C=="object"?C:{text:C}),R=l.jsxs(l.Fragment,{children:[l.jsx(eo,{text:o||"",link:a||"",color:s||"",markdownType:c,token:f||"",linkText:d||""}),v]}),M=typeof this.props?.modifiedEntitiesData?.required=="boolean"?this.props?.modifiedEntitiesData?.required:this.props.entity?.required,O=this.props?.modifiedEntitiesData?.label||this?.props?.entity?.label||"";return this.props.display&&l.jsx(wa,{labelPosition:"left",...this?.props?.entity,...this.props?.modifiedEntitiesData,help:R,error:this.props.error,dataName:this?.props?.entity.field,labelWidth:240,required:M,label:O,children:p})}};A(ot,"isString",e=>typeof e=="string"||e instanceof String);let it=ot;const Ta="Request time out while authenticating. Please try again.",ka="Request time out while getting accesstoken. Please try again.",ln="Error occurred while trying to authenticate. Please try Again.",Oa="Authentication process interrupted. Please try again.",Aa="Response not received from the expected sender. Please try again.",Pa="[[any_other_value]]",Ra=(n,r,e,t)=>{const i={...t};return i.data?(i.data[e][n]=r,{changesOccured:!0,data:i}):{changesOccured:!1,data:i}},_a=(n,r,e,t)=>{const i={...t};return i?.data?.[e]?(i.data[e].modifiedEntitiesData={...i.data[e].modifiedEntitiesData,[n]:r},{changesOccured:!0,data:i}):{changesOccured:!1,data:i}},ja=n=>!!((n.type==="text"||n.type==="textarea"||n.type==="singleSelect"||n.type==="multipleSelect"||n.type==="checkbox"||n.type==="radio"||n.type==="file")&&n?.modifyFieldsOnValue);function Ma(n){return n.filter(e=>ja(e))}const Na=(n,r)=>{if(n==null||typeof r!="object"||!("pattern"in r))return!1;try{return new RegExp(r.pattern).test(n.toString())}catch(e){return console.error(`Invalid regex pattern: ${r.pattern}`,e),!1}},Da=(n,r,e,t)=>{let i=n.modifyFieldsOnValue?.find(o=>{const a=r.data?.[n.field]?.value;return a!=null&&(a===o.fieldValue||Ie(a,t)===Ie(o.fieldValue,t)||Na(a,o.fieldValue))&&(!o.mode||o.mode===e)});return i||(i=n.modifyFieldsOnValue?.find(o=>o.fieldValue===Pa&&(!o.mode||o.mode===e))),i},Ia=n=>n==="display"||n==="value"||n==="disabled"||n==="markdownMessage",Fa=n=>n==="help"||n==="label"||n==="required",$a=(n,r,e,t)=>Ia(n)?Ra(n,r,e,t):Fa(n)&&(typeof r=="string"||typeof r=="boolean")?_a(n,r,e,t):{changesOccured:!1,data:t},cn=(n,r,e,t)=>{let i={...n},o=!1;return e.forEach(a=>{Da(a,i,r,t)?.fieldsToModify.forEach(c=>{const{fieldId:f,...d}=c;Object.entries(d).forEach(([p,C])=>{const{data:v,changesOccured:R}=$a(p,C,f,i);R&&(i=v,o=!0)})})}),{newState:i,shouldUpdateState:o}},un=(n,r,e,t,i)=>{const o={disabled:!1,error:!1,display:!0};if(n.type!=="helpLink"&&n.type!=="custom"){if(n.encrypted=n?.encrypted||!1,n.type==="file"&&r?.[n.field]&&(o.fileNameToDisplay="Previous File"),e.mode===$e)return o.value=typeof n.defaultValue<"u"?n?.defaultValue:null,o.display=typeof n?.options?.display<"u"?n.options.display:!0,i&&(o.display=typeof n?.options?.display<"u"?n.options.display:i===t),o.display=Je(n.options?.hideForPlatform,e.pageContext?.platform)?!1:o.display,o.error=!1,o.disabled=n?.options?.enable===!1,o;if(e.mode===ve)return o.value=typeof r?.[n.field]<"u"?r?.[n.field]:null,o.value=n.encrypted?"":o.value,o.display=typeof n?.options?.display<"u"?n.options.display:!0,i&&(o.display=typeof n?.options?.display<"u"?n.options.display:i===t),o.display=Je(n.options?.hideForPlatform,e.pageContext?.platform)?!1:o.display,o.error=!1,o.disabled=n?.options?.enable===!1,n.field==="name"?o.disabled=!0:typeof n?.options?.disableonEdit<"u"&&(o.disabled=n.options.disableonEdit),o;if(e.mode===ke)return o.value=n.field==="name"||n.encrypted?"":r?.[n.field],o.display=typeof n?.options?.display<"u"?n.options.display:!0,i&&(o.display=typeof n?.options?.display<"u"?n.options.display:i===t),o.display=Je(n.options?.hideForPlatform,e.pageContext?.platform)?!1:o.display,o.error=!1,o.disabled=n?.options?.enable===!1,o;if(e.mode===_e)return n.defaultValue=typeof n.defaultValue<"u"?n.defaultValue:void 0,o.value=typeof r?.[n.field]<"u"?r?.[n.field]:n.defaultValue,o.value=n.encrypted?"":o.value,o.display=typeof n?.options?.display<"u"?n.options.display:!0,i&&(o.display=typeof n?.options?.display<"u"?n.options.display:i===t),o.display=Je(n.options?.hideForPlatform,e.pageContext?.platform)?!1:o.display,o.error=!1,o.disabled=n?.options?.enable===!1,n.field==="name"?o.disabled=!0:typeof n?.options?.disableonEdit<"u"&&(o.disabled=n.options.disableonEdit),o;throw new Error(`Invalid mode : ${e.mode}`)}else return n.type==="custom"&&(o.value=r?.[n.field]),o},dn=Z($t)`
|
|
|
margin-bottom: ${gn.variables.spacingLarge};
|
|
|
`;function Ot(n){console.error(`[Custom Hook] Something went wrong while calling ${n.methodName}. Error: ${n.error?.name} ${n.error?.message}`)}class Yt extends P.PureComponent{constructor(e,t){super(e);A(this,"context");A(this,"flag");A(this,"currentInput");A(this,"appName");A(this,"restRoot");A(this,"groupEntities");A(this,"endpoint");A(this,"util");A(this,"onSavePromise");A(this,"utilControlWrapper");A(this,"groups");A(this,"entities");A(this,"options");A(this,"hookDeferred");A(this,"mode_config_title");A(this,"dependencyMap");A(this,"isOAuth");A(this,"isAuthVal");A(this,"authMap");A(this,"isoauthState");A(this,"isSingleOauth");A(this,"oauthConf");A(this,"datadict");A(this,"hook");A(this,"state_enabled");A(this,"oauth_state");A(this,"isCalled");A(this,"isError");A(this,"isResponse");A(this,"childWin");A(this,"customWarningMessage");A(this,"fieldsWithModifications");A(this,"inputsUniqueAcrossSingleService");A(this,"customComponentContext");A(this,"updateGroupEntities",()=>{this.groups&&this.groups.forEach(e=>{e.fields.forEach(t=>this.groupEntities.push(t))})});A(this,"handleSubmit",async e=>{if(e.preventDefault(),this.clearErrorMsg(),this.props.handleFormSubmit(!0,!1),this.datadict={},Object.keys(this.state.data||{}).forEach(i=>{this.datadict&&(this.datadict[i]=this.state?.data?.[i].value)}),this.hook&&typeof this.hook.onSave=="function"&&!await this.hook.onSave(this.datadict)){this.props.handleFormSubmit(!1,!1);return}const t=()=>{if(Object.keys(this.state.data||{}).forEach(s=>{this.datadict[s]=this.state?.data?.[s].value}),[$e,ke].includes(this.props.mode)){const s=()=>Object.keys(this.context?.rowData[this.props.serviceName]||{}).some(d=>d===this.datadict.name),c=()=>Object.values(this.context?.rowData||{}).some(d=>Object.keys(d).some(p=>p===this.datadict.name));if((this.inputsUniqueAcrossSingleService?s():c())&&this.entities){const d=this.entities.findIndex(p=>p.field==="name");if(d!==-1){const p=this.entities?.[d].label,C=this.datadict.name;p&&C&&typeof C!="object"&&this.setErrorFieldMsg("name",ee(2,[p,String(C)]))}this.props.handleFormSubmit(!1,!1);return}}let i;if(this.isOAuth){let s=[];const c=[];Object.keys(this.authMap).forEach(f=>{f===this.datadict.auth_type||!this.isAuthVal?s=[...s,...this.authMap[f]]:c.push(...this.authMap[f])}),i=this.entities?.map(f=>f.type!=="helpLink"&&s.includes(f.field)?{required:!0,...f}:c.includes(f.field)?{...f,required:!1}:f)}else i=this.entities;i=i?.map(s=>{if(s.type==="helpLink")return s;const c=this.state?.data?.[s.field].modifiedEntitiesData?.required;return s?.type!=="oauth"&&s?.type!=="custom"&&s?.options?.requiredWhenVisible&&this?.state?.data?.[s.field].display?{...s,required:c??!0}:{...s,required:c??s.required}});let a=new He(i).doValidation(this.datadict);if(a){const s=a;this.setErrorFieldMsg(s?.errorField||"",s?.errorMsg||"")}else this.options&&this.options.saveValidator&&(a=ya(this.options.saveValidator,this.datadict),a&&this.setErrorMsg(a.errorMsg||""));if(a)this.props.handleFormSubmit(!1,!1);else if(this.isOAuth&&(this.isSingleOauth||this.isAuthVal&&this.datadict.auth_type==="oauth")){let s=`?response_type=code&client_id=${this.datadict.client_id}&redirect_uri=${this.datadict.redirect_url}`;(this.isoauthState!=null?this.isoauthState:!1)===!0&&(this.state_enabled=!0,this.oauth_state=Zi().replace(/-/g,""),s=`${s}&state=${this.oauth_state}`),this.datadict.scope&&(s=`${s}&scope=${this.datadict.scope}`),this.oauthConf?.authEndpointAccessTokenType&&(s=`${s}&token_access_type=${this.oauthConf.authEndpointAccessTokenType}`);let f=encodeURI(`https://${this.datadict.endpoint||this.datadict.endpoint_authorize}${this.oauthConf?.authCodeEndpoint}${s}`);const d=new URLSearchParams(f).get("redirect_uri");d&&(f=f.replace(d,encodeURIComponent(d))),(async()=>(this.isCalled=!1,this.isError=!1,this.isResponse=!1,this.childWin=window.open(f,`${this.appName} OAuth`,`width=${this.oauthConf?.popupWidth}, height=${this.oauthConf?.popupHeight}`),window.getMessage=p=>{this.isCalled=!0,this.handleOauthToken(p)},await this.waitForAuthentication(this.oauthConf?.authTimeout||0),!this.isCalled&&this.childWin?.closed?(this.setErrorMsg(Oa),this.props.handleFormSubmit(!1,!1),!1):this.isCalled?(await this.waitForBackendResponse(30),!this.isResponse&&!this.isError?(this.isError=!0,this.setErrorMsg(ka),this.props.handleFormSubmit(!1,!1),!1):!0):(this.setErrorMsg(Ta),this.props.handleFormSubmit(!1,!1),!1)))().then(()=>{this.isError?this.props.handleFormSubmit(!1,!1):this.saveData()})}else this.saveData()};this.hook&&typeof this.hook.onSave=="function"&&typeof this.onSavePromise<"u"?this.onSavePromise.then(()=>{t()}):t()});A(this,"saveData",()=>{const e=new URLSearchParams;Object.keys(this.datadict).forEach(t=>{if(this.datadict[t]!=null)if(typeof this.datadict[t]=="object"&&this.entities?.find(i=>i?.field===t)?.type==="file"){const{fileContent:i}=this.datadict?.[t];e.append(t,i)}else this.datadict&&e.append(t,String(this.datadict[t]))}),this.isAuthVal&&Object.keys(this.authMap).forEach(t=>{this.datadict.auth_type!==t&&this.authMap[t].forEach(i=>{e.set(i,"")})}),this.isOAuth&&e.delete("redirect_url"),this.props.mode===ve&&e.delete("name"),At({endpointUrl:De(this.endpoint),body:e,handleError:!1}).then(t=>{const i=t?.entry[0];if(this.props.mode!==_e){const o={};o[i.name]={...this.datadict,...i.content,id:i.id,name:i.name,serviceName:this.props.serviceName},this.context?.setRowData(Re(this.context?.rowData,{[this.props.serviceName]:{$merge:o}}))}typeof this.hook?.onSaveSuccess=="function"&&this.hook.onSaveSuccess(),this.props.mode===ve?qe(`Updated "${i.name}"`,"success"):this.props.mode===_e?qe(`Updated "${this.mode_config_title?this.mode_config_title:i.name}"`,"success"):qe(`Created "${i.name}"`,"success"),this.props.handleFormSubmit(!1,!0)}).catch(t=>{const i=Vt(t);this.setState({errorMsg:i}),this.hook&&typeof this.hook.onSaveFail=="function"&&this.hook.onSaveFail(),this.props.handleFormSubmit(!1,!1)})});A(this,"handleChange",(e,t)=>{this.setState(i=>{const o={};if(e==="auth_type"&&Object.keys(this.authMap).forEach(f=>{f===t?this.authMap[f].forEach(d=>{o[d]={display:{$set:!0}}}):this.authMap[f].forEach(d=>{o[d]={display:{$set:!1}}})}),this.dependencyMap.has(e)){const f=this.dependencyMap.get(e);Object.keys(f||{}).forEach(d=>{const p={};let C=!0;f?.[d].forEach(v=>{const R=!!this.entities?.find(O=>O.field===v)?.required,M=v===e?t:i?.data?.[v]?.value;R&&!M?(C=!1,p[v]=null):p[v]=M}),C&&(o[d]={dependencyValues:{$set:p},value:{$set:null}})})}o[e]={value:{$set:t}};const a=Re(i,{data:o}),s=this.clearAllErrorMsg(a),{newState:c}=cn(s,this.props.mode,this.fieldsWithModifications.filter(f=>f.field===e),this.props.page);return this.hookDeferred&&this.hookDeferred.then(()=>{typeof this.hook?.onChange=="function"&&this.hook.onChange(e,t,c)}),c})});A(this,"addCustomValidator",(e,t)=>{const i=this.entities?.findIndex(a=>a.field===e),o=[{type:"custom",validatorFunc:t}];i!==void 0&&this.entities?.[i]&&(this.entities[i].validators=o)});A(this,"setErrorFieldMsg",(e,t)=>{this.setState(i=>({...Re(i,{data:{[e]:{error:{$set:!0}}}}),errorMsg:t}))});A(this,"clearErrorMsg",()=>{this.state.errorMsg&&this.setState(e=>({...e,errorMsg:""}))});A(this,"setErrorMsg",e=>{this.setState(t=>({...t,errorMsg:e}))});A(this,"clearAllErrorMsg",e=>{const t=e?{...e}:{...this.state};t.errorMsg="",t.warningMsg=this.customWarningMessage?.alwaysDisplay&&this.customWarningMessage?.message||"";const i=e?{...e.data}:{...this.state.data},o={};return Object.keys(i).forEach(a=>{i[a].error?o[a]={...i[a],error:!1}:o[a]=i[a]}),t.data=o,t});A(this,"generateErrorMessage",()=>this.state.errorMsg?l.jsx(dn,{appearance:"fill",type:"error",children:this.state.errorMsg}):null);A(this,"generateWarningMessage",()=>this.state.warningMsg?l.jsx(dn,{appearance:"fill",type:"warning",children:this.state.warningMsg}):null);A(this,"loadHook",(e,t,i)=>new Promise(a=>{const s=this.customComponentContext?.[e];if(s?.type==="hook"){const c=s.component;this.hook=new c(i,this.props.serviceName,this.state,this.props.mode,this.util,this.props.groupName),a(c)}else t==="external"&&at(()=>import(`${st()}/custom/${e}.js`),[],import.meta.url).then(c=>{const f=c.default;this.hook=new f(i,this.props.serviceName,this.state,this.props.mode,this.util,this.props.groupName),a(f)})}));A(this,"handleOauthToken",e=>{if(!e||e&&e.error||e.code===void 0)return this.setErrorMsg(ln),this.isError=!0,this.isResponse=!0,!1;const t=e.state;if(this.state_enabled===!0&&this.oauth_state!==t)return this.setErrorMsg(Aa),this.isError=!0,this.isResponse=!0,!1;const i=new URL(`https://${this.datadict.endpoint||this.datadict.endpoint_token}`);i.pathname=this.oauthConf?.accessTokenEndpoint||"";const o=i.toString(),a=decodeURIComponent(e.code),s={method:"POST",url:o,grant_type:"authorization_code",client_id:this.datadict.client_id,client_secret:this.datadict.client_secret,code:a,redirect_uri:this.datadict.redirect_url};this.datadict.scope&&(s.scope=this.datadict.scope);const c=new URLSearchParams;Object.keys(s).forEach(d=>{const p=s[d];p&&c.append(d,String(p))});const f=`${encodeURIComponent(this.restRoot)}_oauth/oauth`;At({endpointUrl:f,body:c,handleError:!1}).then(d=>{if(d.entry[0].content.error===void 0){const p=d.entry[0].content.access_token,C=d.entry[0].content.instance_url,v=d.entry[0].content.refresh_token;return this.datadict.instance_url=C,this.datadict.refresh_token=v,this.datadict.access_token=p,this.isResponse=!0,!0}return this.setErrorMsg(d.entry[0].content.error),this.isError=!0,this.isResponse=!0,!1}).catch(()=>(this.setErrorMsg(ln),this.isError=!0,this.isResponse=!0,!1))});A(this,"waitForAuthentication",async e=>{if(e-=1,this.isCalled===!0)return!0;if(e===0||this.childWin?.closed)return this.isError=!0,!1;await this.sleep(this.waitForAuthentication,e)});A(this,"waitForBackendResponse",async e=>{if(e+=1,this.isResponse===!0)return!0;if(e===60)return!1;await this.sleep(this.waitForBackendResponse,e)});A(this,"sleep",async(e,...t)=>(await this.timeout(1e3),e(...t)));A(this,"timeout",e=>new Promise(t=>setTimeout(t,e)));A(this,"renderGroupElements",()=>{let e=null;return this.groups&&this.groups.length&&(e=this.groups.map(t=>{const i=t.fields?.length&&t.fields.map(o=>this.entities?.map(a=>{if(a.field===o){const s=this.state?.data?.[a.field];return l.jsx(it,{utilityFuncts:this.utilControlWrapper,value:s?.value,display:typeof s?.display<"u"?s.display:!0,error:s?.error||!1,entity:a,serviceName:this.props.serviceName,mode:this.props.mode,disabled:s?.disabled||!1,markdownMessage:s?.markdownMessage,dependencyValues:s?.dependencyValues||null,page:this.props.page,fileNameToDisplay:s.fileNameToDisplay,modifiedEntitiesData:s.modifiedEntitiesData},a.field)}return null}));return l.jsx(In,{isExpandable:t.options?.isExpandable,defaultOpen:t.options?.expand,title:t.label,children:i},t.label)})),e});this.flag=!0,this.state={data:{}},this.datadict={},this.currentInput={};const i=Fe();this.appName=i.meta.name,this.restRoot=i.meta.restRoot,this.groupEntities=[],this.endpoint=e.mode===ve||e.mode===_e?`${encodeURIComponent(this.props.serviceName)}/${encodeURIComponent(this.props.stanzaName)}`:`${encodeURIComponent(this.props.serviceName)}`,this.util={setState:d=>{this.onSavePromise=new Promise(p=>{this.setState(C=>d(C),()=>p(!0))})},setErrorFieldMsg:this.setErrorFieldMsg,clearAllErrorMsg:this.clearAllErrorMsg,setErrorMsg:this.setErrorMsg},this.utilControlWrapper={handleChange:this.handleChange,addCustomValidator:this.addCustomValidator,utilCustomFunctions:this.util},this.customWarningMessage={message:""},this.customComponentContext=this.props.customComponentContext,e.page===Se?(this.inputsUniqueAcrossSingleService=i.pages?.inputs?.inputsUniqueAcrossSingleService,i.pages?.inputs?.services.forEach(d=>{d.name===e.serviceName&&(this.groups=d.groups,this.entities=d.entity,this.updateGroupEntities(),this.options=d.options,d.hook&&(this.hookDeferred=this.loadHook(d.hook.src,d.hook.type,i)),(e.mode===ve||e.mode===ke)&&t&&(this.currentInput=t?.rowData?.[e.serviceName]?.[e.stanzaName]),e.mode!=="delete"&&(this.customWarningMessage=d?.warning?.[e.mode]||{message:""}))})):(i.pages.configuration?.tabs??[]).forEach(d=>{(d.table?d.name===e.serviceName:d.name===e.stanzaName&&e.serviceName==="settings")&&(this.groups=d.groups,this.updateGroupEntities(),this.entities=d.entity,this.options=d.options,e.mode!=="delete"&&(this.customWarningMessage=d?.warning?.[e.mode]||{message:""}),d.hook&&(this.hookDeferred=this.loadHook(d.hook.src,d.hook.type,i)),d.table&&(e.mode===ve||e.mode===ke)?t&&(this.currentInput=t?.rowData?.[e.serviceName]?.[e.stanzaName]):e.mode===_e?(e.currentServiceState&&(this.currentInput=e.currentServiceState),this.mode_config_title=d.title):t&&(this.currentInput=t?.rowData?.[e.serviceName]))}),this.dependencyMap=new Map,this.isOAuth=!1,this.isAuthVal=!1,this.authMap={};let o={};const a=[];this.entities?.forEach(d=>{if(d.type==="oauth"){if(this.isOAuth=!0,e.page===yn){const p=d?.options?.auth_type;if(this.isoauthState=typeof d?.options?.oauth_state_enabled<"u"?d?.options?.oauth_state_enabled:null,p.length>1){this.isAuthVal=!0;const v={disabled:!1,error:!1,display:!0,value:p.find(O=>O===this.currentInput?.auth_type)||p[0]};o.auth_type=v;const R={basic:"Basic Authentication",oauth:"OAuth 2.0 - Authorization Code Grant Type",oauth_client_credentials:"OAuth 2.0 - Client Credentials Grant Type"},M={field:"auth_type",type:"singleSelect",label:"Auth Type",options:{hideClearBtn:!0,autoCompleteFields:p.map(O=>typeof O=="object"?O:{label:d?.options?.oauth_type_labels?.[O]||R[O]||O,value:O})}};a.push(M)}else this.isSingleOauth=p.includes("oauth");if(p?.forEach(C=>{const v=[],R=C,M=d?.options[R];M&&(M.forEach(O=>{if(!O)return;const q=un(O,this.currentInput,this.props,p.length>1?o?.auth_type?.value:p[0],C);o[O.field]=q,O.type=O?.type||"text",O.required=typeof O?.required<"u"?O?.required:!0,O.field==="redirect_url"&&(q.value=window.location.href.split("?")[0].replace("configuration",`${this.appName.toLowerCase()}_redirect`),q.disabled=!0),a.push(O),v?.push(O.field)}),this.authMap[R]=v)}),p.includes("oauth")){const C={popupWidth:d?.options?.oauth_popup_width||600,popupHeight:d?.options?.oauth_popup_height||600,authTimeout:d?.options?.oauth_timeout||180,authCodeEndpoint:d?.options?.auth_code_endpoint||null,accessTokenEndpoint:d?.options?.access_token_endpoint||null,authEndpointAccessTokenType:d?.options?.auth_endpoint_token_access_type||null};this.oauthConf=C}}}else{if(o[d.field]=un(d,this.currentInput,this.props),d.type==="singleSelect"||d.type==="multipleSelect"){const p=d.options?.dependencies;p&&p.forEach(C=>{const v=this.dependencyMap.get(C);v&&typeof d.field=="string"?v[d.field]=p:this.dependencyMap.set(C,{[d.field]:p})})}a.push(d)}}),this.entities=a;let s={};this.dependencyMap.forEach(d=>{s={...s,...d}});const c={};Object.keys(s).forEach(d=>{const p=s[d],C={};let v=!0;p.forEach(R=>{const M=!!this.entities?.find(q=>q.field===R)?.required,O=o[R]?.value;M&&!O?(v=!1,C[R]=null):C[R]=O}),v&&(c[d]={dependencyValues:{$set:C}})}),o=Re(o,c),this.fieldsWithModifications=Ma(this.entities);const f=cn({data:o},this.props.mode,this.fieldsWithModifications,this.props.page);f.shouldUpdateState&&(o={...f.newState.data}),this.state={data:o,errorMsg:"",warningMsg:this.customWarningMessage?.message||""},this.hookDeferred&&this.hookDeferred.then(()=>{if(typeof this.hook?.onCreate=="function")try{this.hook.onCreate()}catch(d){Ot({methodName:"onCreate",error:d})}})}render(){return this.flag&&(this.hookDeferred&&this.hookDeferred.then(()=>{if(typeof this.hook?.onRender=="function")try{this.hook.onRender()}catch(e){Ot({methodName:"onRender",error:e})}}),this.props.mode===ve&&this.hookDeferred&&this.hookDeferred.then(()=>{if(typeof this.hook?.onEditLoad=="function")try{this.hook.onEditLoad()}catch(e){Ot({methodName:"onEditLoad",error:e})}}),this.flag=!1),l.jsx("div",{children:l.jsxs("form",{onSubmit:this.handleSubmit,style:this.props.mode===_e?{marginTop:"25px"}:{},children:[this.generateWarningMessage(),this.generateErrorMessage(),this.entities?.map(e=>{if(this.groupEntities.includes(e.field))return null;const t=this.state?.data?.[e.field];return t?l.jsx(it,{utilityFuncts:this.utilControlWrapper,value:t.value,display:t.display,error:t.error,entity:e,serviceName:this.props.serviceName,mode:this.props.mode,disabled:t.disabled,markdownMessage:t.markdownMessage,dependencyValues:t.dependencyValues||null,fileNameToDisplay:t.fileNameToDisplay,modifiedEntitiesData:t.modifiedEntitiesData,page:this.props.page},e.field):null}),this.renderGroupElements()]})})}}A(Yt,"contextType",lt);const La=Z(be)`
|
|
|
width: 800px;
|
|
|
`;class Ba extends P.Component{constructor(e){super(e);A(this,"form");A(this,"buttonText");A(this,"handleRequestClose",()=>{this.props.handleRequestClose()});A(this,"handleSubmit",async e=>{await this.form.current?.handleSubmit(e)&&this.handleRequestClose()});A(this,"handleFormSubmit",(e,t)=>{this.setState({isSubmititng:e}),t&&this.handleRequestClose()});this.form=ye.createRef(),this.state={isSubmititng:!1},e.mode===$e?this.buttonText=Y._("Add"):e.mode===ke?this.buttonText=Y._("Save"):e.mode===ve?this.buttonText=Y._("Update"):this.buttonText=Y._("Submit")}render(){return l.jsxs(La,{returnFocus:this.props.returnFocus,open:this.props.open,onRequestClose:this.handleRequestClose,children:[l.jsx(be.Header,{title:this.props.formLabel}),l.jsx(be.Body,{children:l.jsx(Ge.Consumer,{children:e=>l.jsx(Wt.Consumer,{children:t=>l.jsx(Yt,{ref:this.form,page:this.props.page,serviceName:this.props.serviceName,mode:this.props.mode,stanzaName:this.props.stanzaName||"unknownStanza",handleFormSubmit:this.handleFormSubmit,groupName:this.props.groupName,pageContext:t,customComponentContext:e})})})}),l.jsxs(be.Footer,{children:[l.jsx(Oe,{appearance:"secondary",onClick:this.handleRequestClose,label:Y._("Cancel"),disabled:this.state.isSubmititng}),l.jsx(Oe,{className:"saveBtn",label:this.buttonText,loading:this.state.isSubmititng,onClick:this.handleSubmit})]})]})}}const Va=({page:n,handleRequestClose:r,returnFocus:e,serviceName:t,stanzaName:i,open:o=!1,formTitle:a})=>{const[s,c]=P.useState(!1),[f,d]=P.useState(null),p=P.useContext(lt),C=()=>{d(null),r()},v=()=>{c(!0),d(null),rr({endpointUrl:De(`${encodeURIComponent(t)}/${encodeURIComponent(i)}`),handleError:!1}).then(()=>{p?.setRowData(Re(p.rowData,{[t]:{$unset:[i]}})),c(!1),C(),qe(`Deleted "${i}"`,"success")}).catch(M=>{const O=Vt(M);d(O),c(!1)})},R=n===Se?ee(103,[i]):ee(102,[i]);return l.jsxs(be,{returnFocus:e,open:o,style:{width:"800px"},onRequestClose:C,children:[l.jsx(be.Header,{title:a?`Delete ${a}`:ee(101)}),l.jsxs(be.Body,{className:"deletePrompt",children:[f&&l.jsx("div",{children:l.jsx($t,{appearance:"fill",type:"error",children:f})}),l.jsx("p",{children:R})]}),l.jsxs(be.Footer,{children:[l.jsx(Oe,{appearance:"secondary",onClick:C,label:Y._("Cancel"),disabled:s}),l.jsx(Oe,{label:Y._("Delete"),onClick:v,loading:s})]})]})};function ut(){const n=P.useContext(lt);if(!n)throw new Error("useTableContext must be used within <TableContextProvider />");return n}const qa=(n,r)=>{const e={};return n===Se?r.pages.inputs?.services.forEach(i=>{e[i.name]=i.style===je?je:tn}):r.pages.configuration?.tabs.forEach(t=>{e[t.name]=t.style===je?je:tn}),e},Wa=({page:n,serviceName:r,data:e,handleToggleActionClick:t,handleOpenPageStyleDialog:i,handleSort:o,sortDir:a,sortKey:s,tableConfig:c,useInputToggleConfirmation:f})=>{const d=Fe(),[p,C]=P.useState({open:!1}),[v,R]=P.useState({open:!1}),M=P.useContext(Ge),{rowData:O}=ut(),q=d.pages.inputs,z=n===Se&&q&&"table"in q&&q.readonlyFieldId?q.readonlyFieldId:void 0,{moreInfo:W,header:N,actions:B}=c,G={};N.forEach(j=>{G[j.field]=j.mapping});const g=P.useMemo(()=>qa(n,d),[n,d]),[b,D]=ir(),L=b.get("tab"),$=b.get("record");P.useEffect(()=>{if((L===r||!r)&&$&&!p.open){const j=Object.keys(O).find(J=>O[J][$]);if(j){const J=O[j][$];C({...p,open:!0,serviceName:J.serviceName,stanzaName:J.name,mode:ve})}}},[L,$,p,O,r]);const U=()=>{if(b.has("record")){const j=new URLSearchParams(b);j.delete("record"),D(j)}C({...p,open:!1})},H=P.useCallback(j=>{g[j.serviceName]===je?i(j,ve):C({...p,open:!0,serviceName:j.serviceName,stanzaName:j.name,mode:ve})},[p]),K=()=>{R({...v,open:!1})},S=P.useCallback(j=>{g[j.serviceName]===je?i(j,ke):C({...p,open:!0,serviceName:j.serviceName,stanzaName:j.name,mode:ke})},[p,i,g]),E=P.useCallback((j,J)=>{if(!(!J||!d)){if(n===Se){const ie=d.pages.inputs?.services.find(oe=>oe.name===J);return ie?.formTitle||(j?ie?.title:"")}if(n===yn){ze(d.pages.configuration,"Configuration page not found in global config");const ie=d.pages.configuration.tabs.find(oe=>oe.name===J);return ie?.formTitle||(j?ie?.title:"")}}},[d,n]),_=P.useCallback(j=>{R({...v,open:!0,stanzaName:j.name,serviceName:j.serviceName,formTitle:E(!1,j.serviceName)})},[v,E]),h=()=>{if(p.open){const j=E(!0,p.serviceName);return p.serviceName&&p.mode?l.jsx(Ba,{page:n,open:p.open,handleRequestClose:U,returnFocus:()=>{},serviceName:p.serviceName,stanzaName:p.stanzaName,mode:p.mode,formLabel:p.mode===ke?Y._("Clone ")+j:Y._("Update ")+j}):null}return null},k=()=>v.serviceName&&v.stanzaName?l.jsx(Va,{page:n,open:v.open,returnFocus:()=>{},handleRequestClose:K,serviceName:v.serviceName,stanzaName:v.stanzaName,formTitle:v.formTitle}):null,x=(()=>{const j=[];return N&&N.length&&N.forEach(J=>{j.push({...J,sortKey:J.field||null})}),B&&B.length&&j.push({label:"Actions",field:"actions",sortKey:""}),j})(),I=P.useCallback(()=>l.jsx(Ce.Head,{children:x&&x.length&&x.map(j=>l.jsx(Ce.HeadCell,{onSort:j.sortKey?o:void 0,sortKey:j.sortKey??void 0,sortDir:j.sortKey&&j.sortKey===s?a:"none",children:j.label},j.field))}),[x,o,a,s]),V=()=>l.jsx(Ce.Body,{children:e&&e.length&&e.map(j=>l.jsx(Ui,{row:j,columns:x,rowActions:B,headerMapping:G,readonly:wn(z,j),useInputToggleConfirmation:f,handleEditActionClick:H,handleCloneActionClick:S,handleDeleteActionClick:_,handleToggleActionClick:t,...W?{expansionRow:Ti(x.length,j,W,c?.customRow,M)}:{}},`${j.serviceName}-${j.name}-row`))});return l.jsxs(l.Fragment,{children:[x&&x.length&&l.jsxs(Ce,{stripeRows:!0,headType:"docked",...W?{rowExpansion:"single"}:{},children:[I(),V()]}),e.length?null:l.jsx(or,{children:"No records found"}),h(),k()]})},Ua=P.memo(Wa);var Ha=jr();const za=ne(Ha);var Ga=Ir();function $n(n){const{searchText:r}=ut();return l.jsx($r,{onChange:n.handleChange,value:r})}$n.propTypes={handleChange:ge.func};const pn=Z(({...n})=>l.jsx(Ne,{...n}))`
|
|
|
max-width: fit-content;
|
|
|
font-size: ${te.fontSize};
|
|
|
`;function Ya(n){const[r,e]=P.useState(!1),[t,i]=P.useState(!1),o=P.useRef(null),a=P.useRef(null),s=f=>{f.forEach(d=>{d.disabled!==t&&n.changeToggleStatus(d)})},c=f=>{e(!1),f&&s(n.dataRows)};return n.displayActionBtnAllRows?l.jsxs("div",{children:[l.jsx(pn,{"data-testid":"enableAllBtn",onClick:()=>{e(!0),i(!1)},role:"button",disabled:n.dataRows.length<1,elementRef:o,children:"Activate all"}),l.jsx(pn,{"data-testid":"disableAllBtn",onClick:()=>{e(!0),i(!0)},role:"button",disabled:n.dataRows.length<1,elementRef:a,children:"Deactivate all"}),l.jsx(On,{message:`Do you want to ${t?"deactivate":"activate"} all? It may take a while.`,open:r,handleRequestClose:c,returnFocus:t?a:o,title:t?"Deactivate all":"Activate all",declineBtnLabel:"No",acceptBtnLabel:"Yes"})]}):null}const Za=Z.div`
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
border-top: 1px solid #ccc;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
`,Ka=Z.div`
|
|
|
max-width: 300px;
|
|
|
width: 100%;
|
|
|
`;function Ln({page:n,isTabs:r,services:e,totalElement:t,handleRequestModalOpen:i,allFilteredData:o,changeToggleStatus:a,displayActionBtnAllRows:s}){const{pageSize:c,currentPage:f,setCurrentPage:d,setPageSize:p,searchType:C,setSearchType:v,setSearchText:R}=ut(),M=n===Se?"Input":"Item",O=()=>{if(e.length<2)return null;let z=[];return z=e.map(W=>l.jsx(Ee.Option,{label:W.title,value:W.name},W.name)),z.unshift(l.jsx(Ee.Option,{label:Y._("All"),value:"all"},"all")),l.jsx(Ee,{value:C,className:"dropdownInput",onChange:(W,{value:N})=>{d(0),v(N)},children:z})},q=()=>{const W=`(${o.filter(N=>!N.disabled).length} of ${t} enabled)`;return l.jsxs(Ga.Typography,{as:"span",className:"inputNumber",children:[t,t>1?Y._(` ${M}s`):Y._(` ${M}`)," ",n===Se&&t>=c?W:null]})};return l.jsxs(Za,{children:[l.jsxs("div",{children:[q(),n===Se?l.jsxs(ar,{children:[l.jsxs(Ee,{value:c,className:"dropdownPage",onChange:(z,{value:W})=>{d(0),p(W)},children:[l.jsx(Ee.Option,{label:Y._("10 Per Page"),value:10},"10"),l.jsx(Ee.Option,{label:Y._("25 Per Page"),value:25},"25"),l.jsx(Ee.Option,{label:Y._("50 Per Page"),value:50},"50")]}),!r&&O()]}):null]}),l.jsx(Ka,{children:l.jsx($n,{handleChange:(z,{value:W})=>{d(0),R(W)}})}),l.jsxs("div",{children:[l.jsx(za,{onChange:(z,{page:W})=>d(W-1),current:f+1,alwaysShowLastPageLink:!0,totalPages:Math.ceil(t/c)}),r&&l.jsx(Oe,{label:Y._("Add"),onClick:i})]}),l.jsx(Ya,{displayActionBtnAllRows:s,dataRows:o,changeToggleStatus:a})]})}Ln.propTypes={page:ge.string,services:ge.array,totalElement:ge.number,isTabs:ge.bool,handleRequestModalOpen:ge.func,displayActionBtnAllRows:ge.bool,changeToggleStatus:ge.func,allFilteredData:ge.array};const Xa=(n="name")=>{const[r,e]=P.useState(n),[t,i]=P.useState("asc"),o=P.useCallback((a,s)=>{const d=(r===s.sortKey?t:"none")==="asc"?"desc":"asc";i(d),s.sortKey&&e(s.sortKey)},[r,t]);return{sortKey:r,sortDir:t,handleSort:o}},fn={header:[],actions:[],moreInfo:[]},Ja=(n,r,e)=>{const t=n===Se?r.pages.inputs?.services:r.pages.configuration?.tabs.filter(o=>o.name===e);if(n===Se){if(r.pages.inputs&&"table"in r.pages.inputs)return{services:t,tableConfig:r.pages.inputs.table,readonlyFieldId:r.pages.inputs.readonlyFieldId,hideFieldId:r.pages.inputs.hideFieldId,useInputToggleConfirmation:r.pages.inputs.useInputToggleConfirmation};const o=t?.find(s=>s.name===e),a=o&&"table"in o&&o.table;return{services:t,tableConfig:{...a||fn},readonlyFieldId:void 0,hideFieldId:void 0,useInputToggleConfirmation:o&&"useInputToggleConfirmation"in o&&!!o.useInputToggleConfirmation}}const i=r.pages.configuration?.tabs.find(o=>o.name===e)?.table;return{services:t,tableConfig:{...i||fn},readonlyFieldId:void 0,hideFieldId:void 0}},Qa=(n,r)=>{const e={};return n?.forEach((t,i)=>{if(t&&t.name&&r){const o={};r[i].forEach(a=>{o[a.name]={...a.content,id:a.id,name:a.name,serviceName:t.name,serviceTitle:t.title||""}}),e[t.name]=o}}),e},es=({page:n,serviceName:r,handleRequestModalOpen:e,handleOpenPageStyleDialog:t,displayActionBtnAllRows:i})=>{const{sortKey:o,sortDir:a,handleSort:s}=Xa(),[c,f]=P.useState(!0),[d,p]=P.useState(null),C=P.useRef(!1),{rowData:v,setRowData:R,pageSize:M,currentPage:O,searchText:q,searchType:z}=ut(),W=Fe(),{services:N,tableConfig:B,readonlyFieldId:G,hideFieldId:g,useInputToggleConfirmation:b}=P.useMemo(()=>Ja(n,W,r),[n,W,r]),D=B&&"moreInfo"in B?B?.moreInfo:null,L=B&&"header"in B?B?.header:null,$=!!r;P.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]),P.useEffect(()=>{const h=new AbortController;function k(){const T=N?.map(x=>Bt({endpointUrl:De(encodeURIComponent(x.name)),params:{count:-1},signal:h.signal,handleError:!1}))||[];Promise.all(T).catch(x=>{if(h.signal.aborted)return;const I=Vt(x);qe(I,"error"),p(x)}).then(x=>{if(!x)return;const I=Qa(N,x.map(V=>V.entry));R(I)}).finally(()=>{C.current&&f(!1)})}return k(),()=>{h.abort()}},[N,R]);const U=h=>{if(wn(G,h))return;R(T=>Re(T,{[h.serviceName]:{[h.name]:{__toggleShowSpinner:{$set:!0}}}}));const k=new URLSearchParams;k.append("disabled",String(!h.disabled)),At({endpointUrl:De(`${encodeURIComponent(h.serviceName)}/${encodeURIComponent(h.name)}`),body:k,handleError:!0,callbackOnError:()=>{R(T=>Re(T,{[h.serviceName]:{[h.name]:{__toggleShowSpinner:{$set:!1}}}}))}}).then(T=>{R(x=>Re(x,{[h.serviceName]:{[h.name]:{disabled:{$set:Ht(T.entry[0].content.disabled)},__toggleShowSpinner:{$set:!1}}}}))})},H=P.useCallback(h=>{const k=[],T=[...L?.map(x=>x.field)||[],...D?.map(x=>x.field)||[]];return Object.values(h).forEach(x=>{Object.entries(x).some(([V,j])=>T.includes(V)&&typeof j=="string"&&j.toLowerCase().includes(q.toLowerCase().trim()))&&k.push(x)}),k},[L,D,q]),K=()=>{let h=[];N?.forEach(I=>{const V=I?.name;!V||!v?.[V]||(v[V]=Object.fromEntries(Object.entries(v[V]).map(([j,J])=>[j,{...J,serviceTitle:I.title||""}])))}),z==="all"?Object.keys(v).forEach(I=>{const V=q?H(v[I]):Object.keys(v[I]).map(j=>v[I][j]);h=h.concat(V)}):h=H(v[z]),$&&(h=h.filter(I=>I.serviceName===r)),g&&(h=h.filter(I=>rt(I[g])));const k=L?.find(I=>I.field===o)?.mapping||{},T=h.sort((I,V)=>{const j=I[o]===void 0||I[o]===null?"":k[String(I[o])]||I[o],J=V[o]===void 0||V[o]===null?"":k[String(V[o])]||V[o];return a==="asc"?j>J?1:-1:a==="desc"?J>j?1:-1:0});let x=T.slice(O*M,(O+1)*M);return O>0&&!x.length&&(x=T.slice((O-1)*M,M)),{filteredData:x,totalElement:h.length,allFilteredData:h}};if(d)throw d;if(c)return l.jsx(sr,{size:"medium"});const{filteredData:S,totalElement:E,allFilteredData:_}=K();return l.jsxs(l.Fragment,{children:[l.jsx(Ln,{page:n,services:N,totalElement:E,handleRequestModalOpen:e,changeToggleStatus:U,isTabs:$,allFilteredData:_,displayActionBtnAllRows:i}),l.jsx(Ua,{page:n,serviceName:r,data:S,handleToggleActionClick:h=>U(h),handleSort:s,sortDir:a,sortKey:o,handleOpenPageStyleDialog:t,tableConfig:B,useInputToggleConfirmation:b})]})},ms=P.memo(es),ts=Z.div`
|
|
|
box-shadow: ${te.embossShadow};
|
|
|
padding: ${te.spacing};
|
|
|
`,ns=Z.div`
|
|
|
margin-top: ${te.spacingHalf};
|
|
|
text-align: right;
|
|
|
`;function rs({handleRequestClose:n,serviceName:r,mode:e,stanzaName:t,formLabel:i,page:o,groupName:a}){const s=P.useRef(null),[c,f]=P.useState(!1);let d=Y._("Submit");e===$e?d=Y._("Add"):e===ke?d=Y._("Clone Input"):e===ve&&(d=Y._("Update"));const p=async v=>{await s.current?.handleSubmit(v)&&n()},C=(v,R)=>{f(v),R&&n()};return l.jsxs(pe,{gutter:8,children:[l.jsx(pe.Row,{style:{padding:"5px 0px"},children:l.jsx(pe.Column,{children:l.jsxs(hi,{children:[l.jsx(Ue,{onClick:n,children:o===Se?Y._("Inputs"):Y._("Configuration")})," > ",Y._(i)]})})}),l.jsxs(pe.Row,{children:[l.jsx(pe.Column,{span:2}),l.jsxs(pe.Column,{span:8,style:{maxWidth:"800px"},children:[l.jsxs(ts,{children:[l.jsx(Fr,{style:{padding:"10px 30px"},level:3,children:Y._(i)}),l.jsx(Ge.Consumer,{children:v=>l.jsx(Wt.Consumer,{children:R=>l.jsx(Yt,{ref:s,page:o,serviceName:r,mode:e,stanzaName:t||"",handleFormSubmit:C,groupName:a,pageContext:R,customComponentContext:v})})})]}),l.jsxs(ns,{children:[l.jsx(Oe,{appearance:"secondary",onClick:n,label:Y._("Cancel"),disabled:c,style:{width:"80px"}}),l.jsx(Oe,{type:"Submit",label:d,onClick:p,loading:c,style:{width:"80px"}})]})]}),l.jsx(pe.Column,{span:2})]})]})}const gs=P.memo(rs),is=Z.p`
|
|
|
& {
|
|
|
font-size: ${te.fontSize};
|
|
|
margin-bottom: 10px;
|
|
|
white-space: pre-line;
|
|
|
}
|
|
|
`;function ys(n){if(!n?.text)return null;const r=zt(n);return l.jsx(is,{children:r})}function vs(){return new URLSearchParams(lr().search)}const hn=n=>!!n.find(e=>!!("hideForPlatform"in e&&e?.options?.hideForPlatform))||!1,os=(n,r)=>!!((!r||r==="configuration")&&n.pages.configuration?.tabs.find(t=>t.hideForPlatform||hn(t.entity||[])||!1)||(!r||r==="inputs")&&n.pages.inputs?.services.find(t=>t.hideForPlatform||hn(t.entity||[])||!1)),bs=(n,r)=>{const[e,t]=P.useState();return P.useEffect(()=>{if(!os(n,r))return()=>{};const o=cr.create({search:"| rest/services/server/info splunk_server=local",earliest_time:"-15m",latest_time:"now"},{cache:!0,cancelOnUnload:!0}).getResults().subscribe(a=>{a.results?.[0]?.instance_type==="cloud"?t("cloud"):t("enterprise")});return()=>{o.unsubscribe()}},[n,r]),e};export{Yt as B,pe as C,gs as E,ke as M,Wt as P,hi as S,mi as T,vs as a,$e as b,ve as c,hs as d,fs as e,ys as f,ps as g,ms as h,ds as i,Ba as j,je as k,_e as l,Ga as m,Je as s,bs as u};
|