aiware-js 1.0.0-master.1321 → 1.0.0-master.1322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js-core.umd.js CHANGED
@@ -1177,13 +1177,13 @@ createScheduledJob(input:{
1177
1177
  getUrl
1178
1178
  }
1179
1179
  }
1180
- `,operationName:"getUrl",variables:e},r)),t=e.getSignedWritableUrl.url,n={method:"PUT",headers:{"Content-Type":i.type,"X-Veritone-Application":"aiware-sdk"},body:i};try{return yield fetch(t,n),e.getSignedWritableUrl}catch(e){throw console.log(e),e}})}var iFe,m4e=Object.freeze({__proto__:null,getImageURL:rFe}),o4e=Object.freeze({__proto__:null,ImageUpload:({handleChange:i,getUrl:t,image:e,fileTypes:n="image/*",maxFileSize:o=5,maxImageSize:r,disabled:a=!1,testId:s,outerHeight:l="160px",outerWidth:c="160px",outerBorder:d="1px dashed #D5DFE9",outerRadius:u="5px",innerHeight:p="150px",innerWidth:g="150px",innerBorder:f="none",innerRadius:h="5px",innerBackground:m="rgba(247, 247, 247, 0.8)",uploadIconBackground:C,uploadBackgroundRadius:x,uploadBackgroundWidthHeight:v,uploadIconColor:b="#555F7C",uploadIconWidthHeight:y="30px",uploadCustomIcon:A,deleteBackgroundWidthHeight:I="42px",deleteIconBackground:R="rgba(0, 0, 0, 0.25)",deleteIconBackgroundRadius:F="50%",deleteIconColor:V="#FFF",deleteIconWidthHeight:w="24px"})=>{let j=Le.exports.useRef(null),[S,O]=Le.exports.useState(e),[k,T]=Le.exports.useState(!1),[E,N]=Le.exports.useState(void 0),B=Ae(YG),{maxWidth:M,maxHeight:P}=(Le.exports.useEffect(()=>{O(e)},[e]),r||{}),H=e=>{let t=n.split(", ");return(t=t.includes("image/*")?t.concat(["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/tiff"]):t).includes(e.type)};let L=n=>{if(n)if(H(n))if(n.size>1048576*o)r=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-filesize",defaultMessage:"Exceeds the file size limit of {maxFileSize}MB",values:{maxFileSize:o},description:"Error message file size"}),N(r);else{if(M&&P){var r=new Image;let t=URL.createObjectURL(n);r.src=t,r.onload=function(){var e;this.naturalWidth>M&&this.naturalHeight>P?(e=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-imagesize",defaultMessage:"Image size exceeds the limit",description:"Error message image size"}),N(e),URL.revokeObjectURL(t),D()):URL.revokeObjectURL(t)}}let e=new FileReader;e.onloadend=()=>$Re(void 0,void 0,void 0,function*(){O(e.result),N(void 0),t?yield U(n):i(n)}),e.readAsDataURL(n)}else r=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-filetype",defaultMessage:"Filetype not accepted",description:"Error message file size"}),N(r)},U=e=>$Re(void 0,void 0,void 0,function*(){try{var t=yield rFe(B,e);i(t)}catch(e){t=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message",defaultMessage:"Error getting the Image Url",description:"Error message Image Url"});N(t),O(void 0),console.error("Error getting URL:",e)}}),D=()=>{O(void 0),i("");var e=document.getElementById("reusable-fileinput");e&&(e.value="")};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(be,Object.assign({className:"image-uploader-"+(S?"active":"inactive"),onClick:()=>!S&&!a&&void(j.current&&j.current.click()),sx:{display:"flex",justifyContent:"center",alignItems:"center",height:l,width:c,border:d,borderRadius:u,transition:"border-color 0.25s ease","&.image-uploader-inactive:hover":{cursor:"pointer",borderColor:"#0C53B0"},"&.image-uploader-inactive:hover .image-uploader-inner-box":{backgroundColor:"rgba(228, 240, 252, 0.8)"},"&.image-uploader-inactive:hover svg.svg-upload-icon path":{fill:"#0C53B0"}}},{children:nt.exports.jsxs(be,Object.assign({"data-test":"resusable-image-uploader-inner-box-"+s,className:"image-uploader-inner-box",onDrop:e=>{e.preventDefault(),T(!1),a||(e=e.dataTransfer.files[0],L(e))},onDragLeave:e=>{e.preventDefault(),T(!1)},onDragOver:e=>{e.preventDefault(),T(!0)},sx:{position:"relative",backgroundColor:m,height:p,width:g,border:k?"2px solid #1871E8":f,borderRadius:h,display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.25s ease"}},{children:[nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-error-"+s,style:{position:"absolute",top:"5%",left:"50%",width:"95%",transform:"translate(-50%, -5%)",textAlign:"center",pointerEvents:"none"}},{children:nt.exports.jsx(Ty,Object.assign({in:!!E},{children:nt.exports.jsx(e8,{sx:{background:"white",pointerEvents:"none"},label:nt.exports.jsx(pe,Object.assign({sx:{color:"inherit",fontWeight:"bold"},variant:"caption"},{children:E})),variant:"outlined",color:"error",icon:nt.exports.jsx(eue,{})})}))})),S&&nt.exports.jsx("img",{"data-test":"resusable-image-uploader-image-"+s,style:{maxWidth:"100%",maxHeight:"100%",borderRadius:h},alt:"uploader",src:S}),!S&&nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-upload-image-background-"+s,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",backgroundColor:C,borderRadius:x,width:v,height:v,minWidth:y,minHeight:y}},{children:A||nt.exports.jsx("svg",Object.assign({className:"svg-upload-icon","data-test":"resusable-image-uploader-upload-image-icon-"+s,version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:y,height:y},{children:nt.exports.jsx("path",{fill:k?"#1871E8":b,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))})),S&&!a&&nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-delete-background-"+s,onClick:()=>!a&&D(),sx:{position:"absolute",bottom:"0px",right:"0px",height:I,width:I,minWidth:w,minHeight:w,backgroundColor:R,borderRadius:F,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer","&:hover":{opacity:.8}}},{children:nt.exports.jsx(Lue,{"data-test":"resusable-image-uploader-delete-"+s,sx:{color:V,fontSize:w}})}))]}))})),nt.exports.jsx("input",{id:"reusable-fileinput",disabled:a,type:"file",accept:n,ref:j,style:{display:"none"},onChange:e=>{e.target.files&&0<e.target.files.length&&(e=e.target.files[0],L(e))}})]})}});let oFe=je()(e=>({backButton:{background:"none",color:"black",marginRight:"20px",":hover":{background:"#D3D3D3"}},root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%"},expand:{marginTop:"-20px"},fullScreen:{position:"fixed",width:"100%",height:"100vh",overflow:"auto",top:0,left:0,right:0,bottom:0},fullScreenButton:{marginTop:"-50px !important"},tabs:{"& .MuiTabs-indicator":{backgroundColor:"black",color:"black"},"& .Mui-selected":{color:"black"}},bottomButtons:{marginTop:"20px"},markdown:{height:"100% !important",background:"#303841"},previewMarkdown:{height:"100% !important",position:"relative",padding:"20px !important",background:"#303841"},previewMarkdownContent:{background:"white",padding:"15px",borderRadius:"3px"}})),aFe=je()(e=>({checked:{color:"#6098D1"},rootSelectedForm:{padding:"0px !important"},rootSelectForm:{padding:"10px !important","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},itemIconsRow:{position:"absolute",top:"0px"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},optionNameRow:{marginLeft:"50px"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px !important",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"},ul:{listStyle:"none"},selectedDescription:{fontSize:"12px",marginBottom:"10px"},classSelectedBox:{padding:"20px 32px",textOverflow:"wrap",fontSize:"12px",whiteSpace:"initial",wordWrap:"break-word",border:"1px solid "+e.palette.divider,borderTop:"none",lineHeight:"16px"},inputSelectCaption:{fontSize:"12px",fontWeight:600,marginTop:"16px",marginBottom:"11px"},inputSelect:{width:"228px",fontWeight:400,fontSize:"14px"},textInput:{paddingLeft:"15px",paddingTop:"12px",paddingBottom:"12px",fontWeight:400,fontSize:"14px"},selectionName:{marginLeft:"20px"},selectionDescription:{paddingLeft:"60px",marginTop:"-10px",fontSize:"12px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),sFe=({className:e,helpLink:t,sx:n})=>{let r=Ie();var i=Ae(AG);let o=XW(i);return nt.exports.jsx(Z6e,{className:e,onClick:()=>{Y6e(window,"aiware.helpCenter.openDocsPanel")?(window.aiware.helpCenter.openDocsPanel(t,!1),setTimeout(()=>{window.aiware.helpCenter.openDocsPanel(t,!1)},0)):r(F({content:o({id:"os-engine-center-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:R.Warning}))},sx:n,style:{cursor:"pointer"},color:"secondary"})},lFe=({testName:e,title:t,description:n,helpLink:r})=>{var i=aFe().classes;return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(pe,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!Lhe(r)&&nt.exports.jsx(sFe,{className:i.icon,helpLink:r})]})),nt.exports.jsx(pe,Object.assign({"data-test":e+"-description",className:i.helperDescription},{children:n}))]})};(s4e=iFe=iFe||{})[s4e.CAPTURING_MODE=0]="CAPTURING_MODE",s4e[s4e.NON_CAPTURE_MODE=1]="NON_CAPTURE_MODE";let cFe={margin:"0",padding:"10px 0 !important",borderRadius:"0",resize:"none",fontSize:"1em !important",fontFamily:"Nunito, lucida console, courier new, courier, monospace",lineHeight:"1.6em !important",outline:"none",boxSizing:"border-box",whiteSpace:"nowrap","&:focus-visible":{outline:"none"},"& textarea":{lineHeight:"2em !important",whiteSpace:"pre"}},dFe=je()(e=>({codeEditor:we.exports.merge(we.exports.cloneDeep(cFe),{paddingLeft:"calc(3rem + 10px) !important",width:"100%",backgroundColor:"#303841",borderColor:"#303841",color:"#ffffff !important",caretColor:"#FFBB0A"}),lineCounter:we.exports.merge(we.exports.cloneDeep(cFe),{display:"block",borderColor:"#4F565E",overflowY:"hidden",boxShadow:"none",color:"#9CA8B4 !important",backgroundColor:"#4F565E",position:"absolute !important",width:"3rem !important",paddingRight:".625rem !important",top:0,left:0,bottom:0,minHeight:"100%",pointerEvents:"none","& textarea":{textAlign:"right",fontWeight:"600 !important"}})})),uFe=({value:e,name:t,onChange:n})=>{let r=Le.exports.useRef();var i,o=Le.exports.useRef(),a=Le.exports.useRef(null),s=dFe().classes,l=(i=e,Le.exports.useMemo(()=>{var e=we.exports.size(we.exports.split(i,"\n"));return we.exports.map(new Array(e),(e,t)=>t+1).join("\n")},[i])),[c,d]=(({inputRef:o,onChange:a})=>{let[s,l]=Le.exports.useState(iFe.NON_CAPTURE_MODE);return[e=>{var t=e.key;if(o&&!we.exports.isNil(o.current)){var{value:n,selectionStart:r,selectionEnd:i}=o.current;switch(t){case"Tab":return void(s===iFe.CAPTURING_MODE&&(e.preventDefault(),we.exports.isNil(r)||we.exports.isNil(i)||(o.current.value=n.slice(0,r)+"\t"+n.slice(i),o.current.setSelectionRange(r+1,r+1)),a(e)));case"Escape":return void l(iFe.NON_CAPTURE_MODE);case"m":return void(e.ctrlKey&&l(s===iFe.CAPTURING_MODE?iFe.NON_CAPTURE_MODE:iFe.CAPTURING_MODE));case"Shift":return;default:l(iFe.CAPTURING_MODE)}}},e=>{l(iFe.CAPTURING_MODE)}]})({inputRef:a,onChange:n});return nt.exports.jsxs(be,Object.assign({position:"relative",padding:0,margin:0,width:"100%"},{children:[nt.exports.jsx(f8,{"data-test":"input-type-markdown-code-editor",name:t,ref:o,inputRef:a,className:s.codeEditor,onScroll:e=>{we.exports.isNil(r.current)||(r.current.scrollTop=e.currentTarget.scrollTop,r.current.scrollLeft=e.currentTarget.scrollLeft)},onKeyDown:c,onChange:e=>{n(e)},onClick:d,spellCheck:!1,value:e,multiline:!0}),nt.exports.jsx(f8,{"data-test":"input-type-markdown-line-numbers",ref:r,className:s.lineCounter,spellCheck:!1,value:l,multiline:!0,readOnly:!0})]}))};var pFe,l4e=Object.freeze({__proto__:null,Markdown:({onValidate:e,data:t,idPrefix:n,title:r,description:i,handleChange:o})=>{let a=oFe().classes,[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState(!1),u=(Le.exports.useEffect(()=>{e&&e(!0)},[]),(e,t)=>{l(Number(t))}),p=()=>{d(!c)};return nt.exports.jsx("div",Object.assign({"data-test":n+".use-cases-step-parent-container",className:c?Zhe(a.root,a.panel,a.fullScreen):"",style:{height:"100%"}},{children:nt.exports.jsxs("div",Object.assign({className:a.container,"data-test":n+".use-cases-container"},{children:[nt.exports.jsx(be,Object.assign({padding:5,paddingBottom:0},{children:nt.exports.jsx(lFe,{title:nt.exports.jsx(Ce,{id:"markdown.use-cases-title",defaultMessage:"{title}",description:"label for use case title",values:{title:r}}),description:nt.exports.jsx(Ce,{id:"markdown.use-cases-description",defaultMessage:"{description}",description:"label for use case description",values:{description:i}}),testName:n+".use-cases"})})),nt.exports.jsxs(be,Object.assign({"data-test":n+"-tabs-list",padding:4,paddingTop:0,paddingBottom:1},{children:[nt.exports.jsxs(lw,Object.assign({className:a.tabs,value:s,onChange:u,"aria-label":"icon label tabs example"},{children:[nt.exports.jsx(NA,{"data-test":n+".use-cases-step-markdown-tab",label:nt.exports.jsx(Ce,{id:"markdown.use-cases-step-markdown-tab-label",defaultMessage:"Markdown",description:"tab label: Markdown"})}),nt.exports.jsx(NA,{"data-test":n+".use-cases-step-preview-tab",label:nt.exports.jsx(Ce,{id:"markdown.use-cases-step-preview-tab-label",defaultMessage:"Preview",description:"tab label: Preview"})})]})),nt.exports.jsx(be,Object.assign({display:"flex",justifyContent:"flex-end"},{children:nt.exports.jsx(he,Object.assign({title:c?nt.exports.jsx(Ce,{id:"markdown-use-cases-exit-fullscreen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):nt.exports.jsx(Ce,{id:"markdown-use-cases-enter-fullscreen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:nt.exports.jsx(ue,Object.assign({onClick:p,className:a.fullScreenButton,"data-test":n+".use-cases-step-fullscreen-toggle",size:"large"},{children:c?nt.exports.jsx(Cpe,{}):nt.exports.jsx(mpe,{})}))}))}))]})),nt.exports.jsxs(be,Object.assign({flexGrow:1},{children:[nt.exports.jsx(x6e,Object.assign({value:s,index:0},{children:nt.exports.jsx("div",Object.assign({className:a.markdown},{children:nt.exports.jsx(uFe,{value:t,onChange:o})}))})),nt.exports.jsx(x6e,Object.assign({value:s,index:1},{children:nt.exports.jsx("div",Object.assign({className:a.previewMarkdown},{children:nt.exports.jsx("div",Object.assign({className:!t||t.length<=0?"":a.previewMarkdownContent},{children:nt.exports.jsx(fCe,{children:t})}))}))}))]}))]}))}))}});let gFe=je()(e=>({rootSelectedForm:{padding:"0 4px 0 0 !important"},rootSelectForm:{padding:"10px","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"}})),fFe=({message:e})=>{let t="This field is required";return U5e(e)||(t=e),nt.exports.jsx(Ce,{id:"os-engine-center-new.errorMessage",defaultMessage:"{errorMessage}",description:"Error message",values:{errorMessage:t}})},hFe=e=>{var{disabled:n,name:t,rules:r,variant:i="outlined",children:o,className:a,callFieldOnChange:s=!0,onChange:l,fullWidth:c=!1}=e,d=XRe(e,["disabled","name","rules","variant","children","className","callFieldOnChange","onChange","fullWidth"]),e=LCe().control;return nt.exports.jsx(JCe,{control:e,name:t,rules:r,render:({field:t,fieldState:{error:e}})=>nt.exports.jsxs(pC,Object.assign({disabled:n,className:a,variant:i,error:!Lhe(e),fullWidth:c},{children:[nt.exports.jsx(Gb,Object.assign({},t,d,{onChange:e=>{s&&t.onChange(e),null!=l&&l(e)}},{children:o})),e&&r&&nt.exports.jsx(kC,{children:fFe(e)})]}))})},mFe=({dataTestPrefix:e,handleSelectFormValue:t,selectionItems:n,iconType:r,selectPlaceholder:i,selectIcon:o,selectedItem:a,selectFormName:s})=>{let l=gFe().classes,c=LCe();return nt.exports.jsx("div",Object.assign({className:a?l.selectedForm:l.selectForm},{children:nt.exports.jsx(pC,Object.assign({fullWidth:!0,variant:"outlined"},{children:nt.exports.jsx(hFe,Object.assign({name:s,rules:{required:!0},displayEmpty:!0,"data-test":e+"-select-form",IconComponent:()=>nt.exports.jsx($3e,{className:l.iconStyle}),classes:a?{select:l.rootSelectedForm,icon:l.iconComponent}:{select:l.rootSelectForm},defaultValue:(e=U5e(a)?"":a,c.setValue(s,e),e),onChange:e=>{e=null==e?void 0:e.target.value,e=n[e];c.setValue(s,e),c.trigger(s),null!=t&&t(e)},onClick:()=>c.trigger(s),renderValue:e=>e?nt.exports.jsxs("div",Object.assign({className:l.selectedName},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackgroundSelected},className:l.itemIcons,component:(null==a?void 0:a.selectedIconName)&&(null==r?void 0:r[a.selectedIconName])||"span"}),Gfe(a,"formattedName")||Gfe(a,"name")]})):nt.exports.jsxs(pe,Object.assign({variant:"h6"},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackground},className:l.itemIcons,component:o}),i]}))},{children:n&&Phe(WP(n),e=>{var t;return nt.exports.jsxs(fe,Object.assign({disabled:"marketplace"===e,className:l.menuItem,"data-test":(null==(t=n[e])?void 0:t.value)||e,value:(null==(t=n[e])?void 0:t.value)||e},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackground},className:l.itemIcons,component:(null==(t=null==n?void 0:n[e])?void 0:t.iconName)&&r[(null==(t=n[e])?void 0:t.iconName)||""]||"span"}),nt.exports.jsxs(W,Object.assign({className:l.optionName,xs:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:(null==(t=n[e])?void 0:t.formattedName)||(null==(t=n[e])?void 0:t.name)})),nt.exports.jsx(pe,Object.assign({className:l.summary},{children:null==(t=n[e])?void 0:t.description}))]}))]}),(null==(t=n[e])?void 0:t.value)||e)})}))}))}))};(i4e=pFe=pFe||{}).Private="private",i4e.OrgLocked="org_locked",i4e.Sharable="sharable",i4e.Public="public",i4e.Marketplace="marketplace",i4e.InstanceLocked="instance_locked";a4e=Object.freeze({__proto__:null,DistributionTypes:({handleSelectType:e,selectedType:t,description:n,idPrefix:r,inputName:i,commonName:o="engine"})=>{var a=gFe().classes;let s={private:{formName:"distributionType",name:"Private",formattedName:"Private",iconName:"Private",selectedIconName:"PrivateWhite",shortDescription:`Your ${o} will not be distributed and is private to your instance.`,description:`Your ${o} will not be distributed and is private to your instance.`,value:pFe.Private,link:""},org_locked:{formName:"distributionType",name:"Org Locked",formattedName:"Org Locked",iconName:"OrgLocked",selectedIconName:"OrgLockedWhite",shortDescription:`Your ${o} will only be distributed to instances within your organization.`,description:`Your ${o} will only be distributed to instances within your organization.`,value:pFe.OrgLocked,link:""},sharable:{formName:"distributionType",name:"Sharable",formattedName:"Sharable",iconName:"Sharable",selectedIconName:"SharableWhite",shortDescription:`Your ${o} can be distributed to other organizations on any instance.`,description:`Your ${o} can be distributed to other organizations on any instance.`,value:pFe.Sharable,link:""},public:{formName:"distributionType",name:"Public",formattedName:"Public",iconName:"Public",selectedIconName:"PublicWhite",shortDescription:`Your ${o} will be distributed to all instances in and outside of your organization.`,description:`Your ${o} will be distributed to all instances in and outside of your organization.`,value:pFe.Public,link:""},instance_locked:{formName:"distributionType",name:"Instance locked",formattedName:"Instance locked",iconName:"InstanceLocked",selectedIconName:"InstanceLockedWhite",shortDescription:`Your ${o} will be sharable to other organizations on your instance only.`,description:`Your ${o} will be sharable to other organizations on your instance only.`,value:"instance_locked",link:""},marketplace:{formName:"distributionType",name:"Marketplace",formattedName:"Marketplace",iconName:"Marketplace",selectedIconName:"MarketplaceWhite",shortDescription:"Coming soon...",description:"Coming soon...",value:pFe.Marketplace,link:""}};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({"data-test":r+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-title",defaultMessage:"Distribution Types",description:"Form label for distribution types",values:{idPrefix:r}})})),nt.exports.jsx(pe,Object.assign({"data-test":r+"-description",className:a.helperDescription},{children:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-description",defaultMessage:"{description}",description:"Add Distribution Types for Engines | Hub",values:{idPrefix:r,description:n||"Add Distribution Types for Engines | Hub."}})})),nt.exports.jsx(mFe,{selectFormName:i||"engineFlag",selectionItems:s,iconType:y4e,selectIcon:Xue,selectPlaceholder:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-placeholder",defaultMessage:"Instance Locked",description:"Placeholder for distribution type",values:{idPrefix:r}}),dataTestPrefix:r+".distribution-type",handleSelectFormValue:e,selectedItem:U5e(t)?null:eve(s,{value:t})})]})}});let CFe=(e,t)=>({clearButtonLabel:e.formatMessage({id:"reusable-utils.filters.clear-button-label",defaultMessage:[{type:0,value:"Clear"}]}),statusFilterLabel:e.formatMessage({id:"reusable-utils.filters.status-label",defaultMessage:[{type:0,value:"Status"}]}),allLabel:e.formatMessage({id:"reusable-utils.filters.all-placeholder",defaultMessage:[{type:0,value:"All"}]}),okButtonLabel:e.formatMessage({id:"reusable-utils.filters.ok-button-label",defaultMessage:[{type:0,value:"OK"}]}),dateRangeFilterDefaultValueLabel:e.formatMessage({id:"reusable-utils.filters.any-time-label",defaultMessage:[{type:1,value:"days"},{type:0,value:" days"}]},{days:t||void 0}),userFilterLabel:e.formatMessage({id:"reusable-utils.filters.jobs.user-label",defaultMessage:[{type:0,value:"Email"}]})});p4e=Object.freeze({__proto__:null,StatusFilter:({entity:t,status:n,setFilterValue:e,filterLabel:r,defaultPlaceholder:i,clearBtnLabel:o,clearAndApply:a})=>{var s="job"===t?["pending","running","complete","cancelled"]:["pending","running","complete","queued","accepted","failed","cancelled","standby_pending","waiting","resuming","aborted","paused"];let[l,c]=Le.exports.useState([]),d=tFe().classes;var u=lW();let p=Ie(),{statusFilterLabel:g,allLabel:f,clearButtonLabel:h}=CFe(u);Le.exports.useEffect(()=>{c(e=>0===e.length&&null===n||e.length===(null==n?void 0:n.length)?e:n||[])},[n]);return nt.exports.jsxs(pC,Object.assign({size:"small",className:d.formControl},{children:[nt.exports.jsxs(be,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx("label",Object.assign({className:d.label},{children:r||g})),0<l.length&&nt.exports.jsx("span",Object.assign({onClick:()=>{c([]),p(e({filter:"status",value:[]})),a&&a()},className:d.clearButton},{children:o||h}))]})),nt.exports.jsx(Gb,Object.assign({multiple:!0,displayEmpty:!0,value:l,onChange:e=>{c(e.target.value)},onClose:()=>{p(e({filter:"status",value:l}))},variant:"outlined",renderValue:e=>{var t;return 0===e.length?nt.exports.jsx("div",{children:i||f}):(t=e.length,nt.exports.jsx(he,Object.assign({title:e.join(", "),className:d.title},{children:nt.exports.jsx("span",Object.assign({className:d.title},{children:1===t?e[0]:t+" Statuses"}))})))},className:d.selectField,"data-test":t+"s-filter-status-input"},{children:s.map(e=>nt.exports.jsx(fe,Object.assign({value:e,"data-test":t+"s-filter-status-input-option","data-value":e},{children:e.replace("_"," ")}),e))}))]}))}});function xFe(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}function vFe(i){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&i.formattingValues?(r=i.defaultFormattingWidth||i.defaultWidth,n=null!=t&&t.width?String(t.width):r,i.formattingValues[n]||i.formattingValues[r]):(n=i.defaultWidth,r=null!=t&&t.width?String(t.width):i.defaultWidth,i.values[r]||i.values[n]);var n,r=i.argumentCallback?i.argumentCallback(e):e;return t[r]}}function bFe(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],i=e.match(i);return i?(t=i[0],i=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(i)?((e,t)=>{for(var n=0;n<e.length;n++)if(t(e[n]))return n})(i,function(e){return e.test(t)}):((e,t)=>{for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n})(i,function(e){return e.test(t)}),i=o.valueCallback?o.valueCallback(r):r,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(t.length)}):null}}function yFe(i){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(i.matchPattern);return r&&(r=r[0],t=e.match(i.parsePattern))?(t=i.valueCallback?i.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var AFe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u4e={date:xFe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:xFe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},IFe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f4e={ordinalNumber:function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:vFe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:vFe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},VU={ordinalNumber:yFe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:bFe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},wFe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},HU={date:xFe({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:xFe({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jFe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},SFe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},uX={ordinalNumber:function(e,t){return Number(e)+"º"},era:vFe({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:vFe({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},J$={ordinalNumber:yFe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:bFe({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},OFe={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Xee={date:xFe({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:xFe({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kFe={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"};let TFe={en:{code:"en-US",formatDistance:function(e,t,n){e=AFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatLong:u4e,formatRelative:function(e,t,n,r){return IFe[e]},localize:f4e,match:VU,options:{weekStartsOn:0,firstWeekContainsDate:1}},fr:{code:"fr",formatDistance:function(e,t,n){e=OFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",String(t));return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"dans "+e:"il y a "+e:e},formatLong:Xee,formatRelative:function(e,t,n,r){return kFe[e]},localize:{ordinalNumber:function(e,t){e=Number(e),t=null==t?void 0:t.unit;return 0===e?"0":e+(1===e?t&&["year","week","hour","minute","second"].includes(t)?"ère":"er":"ème")},era:vFe({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:vFe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:yFe({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:bFe({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},es:{code:"es",formatDistance:function(e,t,n){e=wFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"en "+e:"hace "+e:e},formatLong:HU,formatRelative:function(e,t,n,r){return(1!==t.getUTCHours()?SFe:jFe)[e]},localize:uX,match:J$,options:{weekStartsOn:1,firstWeekContainsDate:1}}},EFe=e=>void 0===e?e:new Date(e);MQ=Object.freeze({__proto__:null,DateRangeFilter:({entity:e="jobs",dateTimeFilter:t,setFilterValue:n,locale:r="en",dateRangeLimit:i=90,clearAndApply:o,shouldDispatchActions:a=!0})=>{let[s,l]=Le.exports.useState(!1),[c,d]=Le.exports.useState({startDate:EFe(t.fromDateTime),endDate:EFe(t.toDateTime)});var u=lW();let p=Ie();var g=tFe().classes;let f=Math.floor(i);var{okButtonLabel:i,clearButtonLabel:h,dateRangeFilterDefaultValueLabel:m}=CFe(u,f),C=()=>{var e=n({filter:"dateTimeFilter",value:{fromDateTime:null==(e=c.startDate)?void 0:e.toISOString(),toDateTime:null==(e=c.endDate)?void 0:e.toISOString(),field:"createdDateTime"}});a&&p(e),l(!1)},x=()=>{var e=n({filter:"dateTimeFilter",value:{field:"createdDateTime"}});a&&p(e),o&&o(),d({}),l(!1)},u=t.fromDateTime||t.toDateTime?u.formatDate(t.fromDateTime)+" - "+u.formatDate(t.toDateTime):m;return nt.exports.jsxs(pC,Object.assign({size:"small",className:g.formControl},{children:[nt.exports.jsxs(be,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx("label",Object.assign({htmlFor:e+"-filter-date-range",className:g.label},{children:nt.exports.jsx(Ce,{id:"reusable-utils.filter-range-label",defaultMessage:"Date/time",description:"label for the jobs filter date range picker"})})),(t.fromDateTime||t.toDateTime)&&nt.exports.jsx("span",Object.assign({className:g.clearButton,onClick:x,"data-testid":"date-time-filter.clear-btn"},{children:h}))]})),nt.exports.jsx("div",Object.assign({id:e+"-filter-date-range","data-test":e+"-filter-date-range-display",className:g.dateRangeDisplay,onClick:()=>{d({startDate:EFe(t.fromDateTime),endDate:EFe(t.toDateTime)}),l(!0)}},{children:u})),nt.exports.jsxs(Lm,Object.assign({open:s,disableEscapeKeyDown:!0,onClose:C,maxWidth:"md"},{children:[nt.exports.jsx(qm,Object.assign({"data-test":e+"-filter-date-range-dialog-content"},{children:nt.exports.jsx(pC,Object.assign({variant:"standard"},{children:nt.exports.jsx(gbe,Object.assign({dateAdapter:mwe,adapterLocale:TFe[r]},{children:nt.exports.jsxs(W,Object.assign({container:!0,spacing:3},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-start-calendar"},{children:nt.exports.jsx(Tye,{date:c.startDate||null,onChange:e=>{let t=e;null!=t&&t.setHours(0,0,0,0),d(({endDate:e})=>{e=e||new Date;return t&&e.getTime()>t.getTime()+864e5*f&&e.setTime(t.getTime()+864e5*f),{startDate:t||void 0,endDate:e}})},maxDate:c.endDate||new Date,defaultCalendarMonth:c.startDate})})),nt.exports.jsx(W,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-end-calendar"},{children:nt.exports.jsx(Tye,{date:c.endDate||null,onChange:e=>{let t=e;null!=t&&t.setHours(23,59,59),d(e=>Object.assign(Object.assign({},e),{endDate:t||void 0}))},maxDate:new Date,disabled:!c.startDate,defaultCalendarMonth:c.endDate})}))]}))}))}))})),nt.exports.jsxs(Vm,Object.assign({"data-test":e+"-filter-date-range-dialog-actions"},{children:[nt.exports.jsx(ge,Object.assign({"data-test":e+"-filter-date-range-dialog-clear-button",onClick:x},{children:h})),nt.exports.jsx(ge,Object.assign({"data-test":e+"-filter-date-range-dialog-ok-button",onClick:C},{children:i}))]}))]}))]}))}});let NFe=e=>{let[t,n]=Le.exports.useState(!0);var r=e=>nt.exports.jsxs(_,Object.assign({direction:"row",spacing:1,justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({sx:{width:"50%"}},{children:[nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold"}},{children:null==e?void 0:e.label})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:null==e?void 0:e.description}))]})),nt.exports.jsx(be,Object.assign({sx:{display:"grid",placeItems:"center",fontSize:"20px",fontWeight:"bold",color:"#0c53b0"}},{children:null==e?void 0:e.value}))]}));return nt.exports.jsx(be,Object.assign({sx:{position:"absolute",bottom:"0",right:"0",border:"2px solid #d7d7d7",margin:"25px",marginTop:"0",marginRight:"50px",boxSizing:"border-box",background:"#fff",borderRadius:"10px",boxShadow:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",display:"flex",flexDirection:"column",padding:"10px 30px"}},{children:nt.exports.jsxs(_,Object.assign({width:"100%",spacing:2,divider:nt.exports.jsx(se,{})},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",sx:{gap:"10px"},pt:"10px",pb:"10px",justifyContent:"space-between"},{children:[nt.exports.jsx(()=>nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",background:"#e9f3fd",padding:"5px",borderRadius:"7px",color:"#0b53b0",gap:"5px",paddingRight:"10px"},direction:"row"},{children:[nt.exports.jsx(Eue,{}),nt.exports.jsx(pe,Object.assign({align:"center",variant:"h2"},{children:"TableInfiniteScroll"}))]})),{}),nt.exports.jsx(ije,Object.assign({variant:"outlined",onClick:null==e?void 0:e.fetchMore,loading:null==e?void 0:e.isLoading},{children:"Fetch More Items"})),nt.exports.jsx(()=>nt.exports.jsxs(be,Object.assign({onClick:()=>n(e=>!e),sx:{width:"40px",display:"grid",placeItems:"center",color:"gray","&:hover":{background:"#f7f7f7",cursor:"pointer",borderRadius:"5px",color:"black"}}},{children:[!t&&nt.exports.jsx(rue,{}),t&&nt.exports.jsx(iue,{})]})),{})]})),t&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(r,{label:"isLoading",value:null!=e&&e.isLoading?nt.exports.jsx(pe,Object.assign({color:"green"},{children:"Loading More"})):"false"}),nt.exports.jsx(r,{label:"hasMore",description:"Are there more items to fetch from the server?",value:null!=e&&e.hasMore?"true":"false"}),nt.exports.jsx(r,{label:"offset",description:"This is the next GraphQL page starting offset",value:null==e?void 0:e.offset}),nt.exports.jsx(r,{label:"items.length",description:"Total amount of items fetched",value:null==e?void 0:e.items.length}),nt.exports.jsx(r,{label:"itemHeight",description:"This is the Pixel height of each row",value:`${null==e?void 0:e.itemHeight}px`}),nt.exports.jsx(r,{label:"Header Component",description:"Is a component passed as a header?",value:null!=e&&e.hasHeader?"true":"false"}),(null==e?void 0:e.hasHeader)&&nt.exports.jsx(r,{label:"adjustTableHeight",description:"If including a header, you need to adjust the container height with this prop.",value:`${null==e?void 0:e.adjustTableHeight}px`}),!(null==e||!e.adjustTableWidth)&&nt.exports.jsx(r,{label:"adjustTableWidth",description:"You can adjust the container width with this prop.",value:`${null==e?void 0:e.adjustTableWidth}px`})]})]}))}))},MFe=({itemHeight:n,LoadingComponent:r})=>{let t={overflow:"hidden",width:"100%"},i=({containerHeight:e})=>{e=Math.ceil(e/n);return nt.exports.jsx(nt.exports.Fragment,{children:new Array(e).fill(null).map((e,t)=>nt.exports.jsx(PFe,{LoadingComponent:r,height:n},t))})};return nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(jwe,Object.assign({style:{height:"auto",width:"auto"}},{children:({height:e})=>nt.exports.jsx(be,Object.assign({sx:Object.assign(Object.assign({},t),{height:e})},{children:nt.exports.jsx(i,{containerHeight:e})}))}))}))},PFe=({height:e,LoadingComponent:t})=>nt.exports.jsxs(be,Object.assign({sx:{height:e,display:"grid",placeItems:"center",overflow:"hidden"}},{children:[!t&&nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},width:"99.5%",height:"90%"}),t&&nt.exports.jsx(t,{})]}));var LFe="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e";let DFe=({EmptyStateComponent:e,CustomMessage:t,CustomDescription:n,CustomEmptyStateImage:r})=>e?nt.exports.jsx(nt.exports.Fragment,{children:e}):nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"flex",justifyContent:"center",marginTop:"80px"})},{children:nt.exports.jsx(()=>{var e=t?nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.empty-state-message",defaultMessage:"No items found",description:"Table empty state, nothing found message"});return nt.exports.jsxs(_,Object.assign({spacing:2,display:"flex",alignItems:"center","data-testid":"shared-reusable-utils-empty-state"},{children:[nt.exports.jsx("img",{width:"270px",draggable:"false",src:r||LFe,alt:"empty state"}),nt.exports.jsx(pe,Object.assign({component:"div",fontWeight:"strong","data-testid":"shared-reusable-utils-empty-state-message"},{children:e})),n&&nt.exports.jsx(pe,Object.assign({sx:{opacity:.5},variant:"caption","data-testid":"shared-reusable-utils-empty-state-description"},{children:n}))]}))},{})}))})),RFe=({ErrorStateComponent:e,CustomMessage:t,CustomDescription:n,onRetry:r=()=>{},hideRetryButton:i=!1})=>e?nt.exports.jsx(nt.exports.Fragment,{children:e}):nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"grid",placeItems:"center",marginTop:"80px"})},{children:nt.exports.jsx(()=>{var e=t?nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.error-state-message",defaultMessage:"Error Loading Items",description:"Table error state, unable to load items message"});return nt.exports.jsxs(_,Object.assign({spacing:2,display:"flex",alignItems:"center","data-testid":"shared-reusable-utils-error-state"},{children:[nt.exports.jsx(zue,{fontSize:"large"}),nt.exports.jsx(pe,Object.assign({fontWeight:"strong","data-testid":"shared-reusable-utils-error-state-message"},{children:e})),n&&nt.exports.jsx(pe,Object.assign({sx:{opacity:.5},variant:"caption","data-testid":"shared-reusable-utils-error-state-description"},{children:n})),!i&&nt.exports.jsx(ge,Object.assign({onClick:r,variant:"contained","data-testid":"shared-reusable-utils-error-state-retry-button"},{children:nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.error-state-button",defaultMessage:"Retry",description:"Table error state, retry button"})}))]}))},{})}))})),FFe=32,VFe=({items:e,height:t=FFe,testId:n})=>{e=e.sort((e,t)=>e.order-t.order);return nt.exports.jsx(W,Object.assign({"data-testid":n+"-table-header",sx:{height:t,pl:3,borderBottom:"0.5px solid #D5DFE9"},alignItems:"center",display:"flex",container:!0},{children:e.map((e,t)=>nt.exports.jsx(W,Object.assign({item:!0,xs:e.size,"data-testid":"table-header-item-"+(t+1)},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",fontWeight:"bold",sx:{cursor:"default"},"data-testid":"table-header-item-"+e.id},{children:e.label}))}),e.id+"_"+t))}))};TQ=Object.freeze({__proto__:null,TableInfiniteScroll:function({hasMore:t,fetchMore:e,fetchOnMount:n=!1,offset:r,adjustTableHeight:i=0,adjustTableWidth:o=0,items:a,itemHeight:s,isLoading:l,error:c,onRetry:d,headerItems:u,headerHeight:p=0,TableHeaderComponent:g,TableRowComponent:f,TableEmptyStateComponent:h,TableErrorStateComponent:m,TableRowLoadingComponent:C,sx:x={},testId:v="",showDebug:b=!1,FixedSizeListProps:y={},AutoSizerProps:A={},InfiniteLoaderProps:I={},ContainerProps:w={},RowContainerProps:j={},threshold:S=15,className:O="",MessageEmptyState:k,MessageErrorState:T,DescriptionEmptyState:R,DescriptionErrorState:F,CustomEmptyStateImage:V,listRef:E}){let N,M=Le.exports.useRef(null),[B,H]=Le.exports.useState(null!=y&&y.initialScrollOffset?null==y?void 0:y.initialScrollOffset:0),U=t?a.length+1:a.length,P=e=>!t||e<a.length,z=()=>{l||e()},_=Ide(e=>{H(e)},500),q=({index:e,style:t,isScrolling:n})=>{var r=a[e];return P(e)?nt.exports.jsx(be,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-"+(e+1),style:t},j,{children:nt.exports.jsx(f,{item:r,index:e,isScrolling:n})}),e):nt.exports.jsx(be,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-loading-"+(e+1),style:t},j,{children:nt.exports.jsx(PFe,{height:s,LoadingComponent:C})}))},L=(Le.exports.useEffect(()=>{n&&e()},[]),Le.exports.useEffect(()=>{let t=B;setTimeout(()=>{var e;return M&&(null==(e=M.current)?void 0:e._listRef.scrollToItem(t,"start"))},0)},[s]),Le.exports.useEffect(()=>{var e;E&&(E.current=null==(e=M.current)?void 0:e._listRef)},[null==(N=M.current)?void 0:N._listRef,E]),u?nt.exports.jsx(VFe,{items:u,testId:v,height:0===p?void 0:p}):g),D=((e,t,n)=>{let r=t?-1*t:e?e:0;return r=n&&!t?-1*FFe:r})(i,p,!!u);return g=()=>nt.exports.jsx(NFe,{adjustTableHeight:D,adjustTableWidth:o,hasMore:t,hasHeader:!!L,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r}),c?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(RFe,{ErrorStateComponent:m,onRetry:()=>{(d||e)()},CustomMessage:T,CustomDescription:F}),b&&nt.exports.jsx(g,{})]}):l&&!c&&0===a.length?nt.exports.jsx(MFe,{itemHeight:s,LoadingComponent:C}):l||c||0!==a.length?nt.exports.jsxs(W,Object.assign({"data-testid":v||"sdk-table-infinite-scroll-container",sx:Object.assign({position:"relative",height:"100%",overflow:"hidden"},x),className:O},w,{children:[L&&nt.exports.jsx(nt.exports.Fragment,{children:L}),nt.exports.jsx(jwe,Object.assign({},A,{children:({height:n,width:r})=>nt.exports.jsx(Qwe,Object.assign({ref:M,isItemLoaded:P,itemCount:U,loadMoreItems:z,threshold:S},I,{children:({onItemsRendered:t,ref:e})=>nt.exports.jsx(_we,Object.assign({ref:e,height:n+D,width:r+o,itemCount:a.length,itemSize:s,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,l||_(e)},initialScrollOffset:0},y,{children:q}))}))})),b&&nt.exports.jsx(g,{})]})):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(DFe,{EmptyStateComponent:h,CustomMessage:k,CustomDescription:R,CustomEmptyStateImage:V}),b&&nt.exports.jsx(g,{})]})}}),EQ={};function BFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HFe(e,t,n){t&&BFe(e.prototype,t),n&&BFe(e,n)}function UFe(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function zFe(e){return(zFe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _Fe(e,t){return(_Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qFe(e,t,n){return(qFe=(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){}}})()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_Fe(t,n.prototype),t}).apply(null,arguments)}function WFe(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return qFe(e,arguments,zFe(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_Fe(t,e)}(e)}function ZFe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GFe(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=((e,t)=>{var n;if(e)return"string"==typeof e?ZFe(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZFe(e,t):void 0})(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(EQ,"__esModule",{value:!0});var $U=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})(WFe(Error)),JFe=(t=>{function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return UFe(e,t),e})($U),KFe=(t=>{function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return UFe(e,t),e})($U),YFe=(t=>{function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return UFe(e,t),e})($U),QFe=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})($U),XFe=(t=>{function e(e){return t.call(this,"Invalid unit "+e)||this}return UFe(e,t),e})($U),$Fe=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})($U),eVe=(e=>{function t(){return e.call(this,"Zone is an abstract class")||this}return UFe(t,e),t})($U),e="numeric",g4e="short",xg="long",tVe={year:e,month:e,day:e},nVe={year:e,month:g4e,day:e},rVe={year:e,month:g4e,day:e,weekday:g4e},iVe={year:e,month:xg,day:e},oVe={year:e,month:xg,day:e,weekday:xg},aVe={hour:e,minute:e},sVe={hour:e,minute:e,second:e},lVe={hour:e,minute:e,second:e,timeZoneName:g4e},cVe={hour:e,minute:e,second:e,timeZoneName:xg},dVe={hour:e,minute:e,hour12:!1},uVe={hour:e,minute:e,second:e,hour12:!1},pVe={hour:e,minute:e,second:e,hour12:!1,timeZoneName:g4e},gVe={hour:e,minute:e,second:e,hour12:!1,timeZoneName:xg},fVe={year:e,month:e,day:e,hour:e,minute:e},hVe={year:e,month:e,day:e,hour:e,minute:e,second:e},mVe={year:e,month:g4e,day:e,hour:e,minute:e},CVe={year:e,month:g4e,day:e,hour:e,minute:e,second:e},xVe={year:e,month:g4e,day:e,weekday:g4e,hour:e,minute:e},vVe={year:e,month:xg,day:e,hour:e,minute:e,timeZoneName:g4e},bVe={year:e,month:xg,day:e,hour:e,minute:e,second:e,timeZoneName:g4e},yVe={year:e,month:xg,day:e,weekday:xg,hour:e,minute:e,timeZoneName:xg},AVe={year:e,month:xg,day:e,weekday:xg,hour:e,minute:e,second:e,timeZoneName:xg};function IVe(e){return void 0===e}function wVe(e){return"number"==typeof e}function jVe(e){return"number"==typeof e&&e%1==0}function SVe(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function OVe(){return!IVe(Intl.DateTimeFormat.prototype.formatToParts)}function kVe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function TVe(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function EVe(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function NVe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function MVe(e,t,n){return jVe(e)&&t<=e&&e<=n}function PVe(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function LVe(e){if(null!=e&&""!==e)return parseInt(e,10)}function DVe(e){if(null!=e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function RVe(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function FVe(e){return e%4==0&&(e%100!=0||e%400==0)}function VVe(e){return FVe(e)?366:365}function BVe(e,t){var n,r=(r=t-1)-(n=12)*Math.floor(r/n)+1;return 2==r?FVe(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function HVe(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function UVe(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function zVe(e){return 99<e?e:60<e?1900+e:2e3+e}function _Ve(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=SVe();return t&&OVe()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function qVe(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function WVe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new $Fe("Invalid unit value "+e);return t}function ZVe(e,t,n){var r,i,o={};for(r in e)!NVe(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=WVe(i));return o}function GVe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+PVe(n,2)+":"+PVe(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+PVe(n,2)+PVe(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function JVe(e){return EVe(e,["hour","minute","second","millisecond"])}Hee=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function KVe(e){return JSON.stringify(e,Object.keys(e).sort())}var YVe=["January","February","March","April","May","June","July","August","September","October","November","December"],QVe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],XVe=["J","F","M","A","M","J","J","A","S","O","N","D"];function $Ve(e){switch(e){case"narrow":return[].concat(XVe);case"short":return[].concat(QVe);case"long":return[].concat(YVe);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var eBe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tBe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nBe=["M","T","W","T","F","S","S"];function rBe(e){switch(e){case"narrow":return[].concat(nBe);case"short":return[].concat(tBe);case"long":return[].concat(eBe);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var iBe=["AM","PM"],oBe=["Before Christ","Anno Domini"],aBe=["BC","AD"],sBe=["B","A"];function lBe(e){switch(e){case"narrow":return[].concat(sBe);case"short":return[].concat(aBe);case"long":return[].concat(oBe);default:return null}}function cBe(e,t){for(var n="",r=GFe(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var dBe={D:tVe,DD:nVe,DDD:iVe,DDDD:oVe,t:aVe,tt:sVe,ttt:lVe,tttt:cVe,T:dVe,TT:uVe,TTT:pVe,TTTT:gVe,f:fVe,ff:mVe,fff:vVe,ffff:yVe,F:hVe,FF:CVe,FFF:bVe,FFFF:AVe},uBe=(()=>{function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return dBe[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){var n;return void 0===t&&(t=0),this.opts.forceSimple?PVe(e,t):(n=Object.assign({},this.opts),0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e))},e.formatDateTimeFromString=function(r,e){var n=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&OVe(),o=function(e,t){return n.loc.extract(r,e,t)},a=function(e){return r.isOffsetFixed&&0===r.offset&&e.allowZ?"Z":r.isValid?r.zone.formatOffset(r.ts,e.format):""},s=function(){return i?iBe[r.hour<12?0:1]:o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?(n=r,$Ve(e)[n.month-1]):o(t?{month:e}:{month:e,day:"numeric"},"month");var n},c=function(e,t){return i?(n=r,rBe(e)[n.weekday-1]):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday");var n},d=function(e){var t=p.macroTokenToFormatOpts(e);return t?n.formatWithSystemDefault(r,t):e},u=function(e){return i?(t=r,lBe(e)[t.year<0?0:1]):o({era:e},"era");var t};return cBe(p.parseFormat(e),function(e){switch(e){case"S":return n.num(r.millisecond);case"u":case"SSS":return n.num(r.millisecond,3);case"s":return n.num(r.second);case"ss":return n.num(r.second,2);case"m":return n.num(r.minute);case"mm":return n.num(r.minute,2);case"h":return n.num(r.hour%12==0?12:r.hour%12);case"hh":return n.num(r.hour%12==0?12:r.hour%12,2);case"H":return n.num(r.hour);case"HH":return n.num(r.hour,2);case"Z":return a({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return a({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return r.zone.offsetName(r.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return r.zone.offsetName(r.ts,{format:"long",locale:n.loc.locale});case"z":return r.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):n.num(r.day);case"dd":return t?o({day:"2-digit"},"day"):n.num(r.day,2);case"c":return n.num(r.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return n.num(r.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):n.num(r.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):n.num(r.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):n.num(r.month);case"MM":return t?o({month:"2-digit"},"month"):n.num(r.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):n.num(r.year);case"yy":return t?o({year:"2-digit"},"year"):n.num(r.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):n.num(r.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):n.num(r.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return n.num(r.weekYear.toString().slice(-2),2);case"kkkk":return n.num(r.weekYear,4);case"W":return n.num(r.weekNumber);case"WW":return n.num(r.weekNumber,2);case"o":return n.num(r.ordinal);case"ooo":return n.num(r.ordinal,3);case"q":return n.num(r.quarter);case"qq":return n.num(r.quarter,2);case"X":return n.num(Math.floor(r.ts/1e3));case"x":return n.num(r.ts);default:return d(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){return t.literal?e:e.concat(t.val)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return cBe(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p})(),pBe=(()=>{function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e})(),gBe=(()=>{function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new eVe},t.formatOffset=function(e,t){throw new eVe},t.offset=function(e){throw new eVe},t.equals=function(e){throw new eVe},HFe(e,[{key:"type",get:function(){throw new eVe}},{key:"name",get:function(){throw new eVe}},{key:"universal",get:function(){throw new eVe}},{key:"isValid",get:function(){throw new eVe}}]),e})(),fBe=null,hBe=(e=>{function t(){return e.apply(this,arguments)||this}UFe(t,e);var n=t.prototype;return n.offsetName=function(e,t){return _Ve(e,t.format,t.locale)},n.formatOffset=function(e,t){return GVe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},HFe(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return SVe()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return fBe=null===fBe?new t:fBe}}]),t})(gBe),mBe=RegExp("^"+Hee.source+"$"),CBe={};var xBe={year:0,month:1,day:2,hour:3,minute:4,second:5};var vBe={},bBe=(n=>{function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}UFe(r,n),r.create=function(e){return vBe[e]||(vBe[e]=new r(e)),vBe[e]},r.resetCache=function(){vBe={},CBe={}},r.isValidSpecifier=function(e){return!(!e||!e.match(mBe))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return _Ve(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return GVe(this.offset(e),t)},e.offset=function(e){var t,n,r,e=new Date(e);return isNaN(e)?NaN:(t=this.name,CBe[t]||(CBe[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),r=(n=+e)%1e3,(HVe({year:(t=(t=CBe[t]).formatToParts?((e,t)=>{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,a=xBe[a];IVe(a)||(r[a]=parseInt(o.value,10))}return r})(t,e):(e=e,t=(t=t).format(e).replace(/\u200E/g,""),e=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t),t=e[1],[e[3],t,e[2],e[4],e[5],e[6]]))[0],month:t[1],day:t[2],hour:24===(e=t[3])?0:e,minute:t[4],second:t[5],millisecond:0})-(n-=0<=r?r:1e3+r))/6e4)},e.equals=function(e){return"iana"===e.type&&e.name===this.name},HFe(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r})(gBe),yBe=null,ABe=(n=>{function t(e){var t=n.call(this)||this;return t.fixed=e,t}UFe(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(qVe(e[1],e[2]))}return null},HFe(t,null,[{key:"utcInstance",get:function(){return yBe=null===yBe?new t(0):yBe}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return GVe(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},HFe(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+GVe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t})(gBe),IBe=(n=>{function e(e){var t=n.call(this)||this;return t.zoneName=e,t}UFe(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},HFe(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e})(gBe);function wBe(e,t){var n;return null==e?t:e instanceof gBe?e:"string"==typeof e?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?ABe.utcInstance:null!=(t=bBe.parseGMTOffset(e))?ABe.instance(t):bBe.isValidSpecifier(n)?bBe.create(e):ABe.parseSpecifier(n)||new IBe(e):wVe(e)?ABe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new IBe(e)}var jBe=function(){return Date.now()},SBe=null,OBe=null,kBe=null,TBe=null,EBe=!1,NBe=(()=>{function e(){}return e.resetCaches=function(){zBe.resetCache(),bBe.resetCache()},HFe(e,null,[{key:"now",get:function(){return jBe},set:function(e){jBe=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){SBe=e?wBe(e):null}},{key:"defaultZone",get:function(){return SBe||hBe.instance}},{key:"defaultLocale",get:function(){return OBe},set:function(e){OBe=e}},{key:"defaultNumberingSystem",get:function(){return kBe},set:function(e){kBe=e}},{key:"defaultOutputCalendar",get:function(){return TBe},set:function(e){TBe=e}},{key:"throwOnInvalid",get:function(){return EBe},set:function(e){EBe=e}}]),e})(),MBe={};function PBe(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=MBe[n];return r||(r=new Intl.DateTimeFormat(e,t),MBe[n]=r),r}var LBe={};var DBe={};function RBe(e,t){var n=t=void 0===t?{}:t,n=(n.base,((e,t)=>{if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r})(n,["base"])),n=JSON.stringify([e,n]),r=DBe[n];return r||(r=new Intl.RelativeTimeFormat(e,t),DBe[n]=r),r}var FBe=null;function VBe(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}var BBe=(()=>{function e(e,t,n){var r;this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&SVe()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=(n=e,void 0===(e=t)&&(e={}),t=JSON.stringify([n,e]),(r=LBe[t])||(r=new Intl.NumberFormat(n,e),LBe[t]=r),r))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):PVe(this.floor?Math.floor(e):RVe(e,3),this.padTo)},e})(),HBe=(()=>{function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=SVe(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=bBe.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:PUe.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=PBe(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=(e=>{var t="EEEE, LLLL d, yyyy, h:mm a";switch(KVe(EVe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case KVe(tVe):return"M/d/yyyy";case KVe(nVe):return"LLL d, yyyy";case KVe(rVe):return"EEE, LLL d, yyyy";case KVe(iVe):return"LLLL d, yyyy";case KVe(oVe):return"EEEE, LLLL d, yyyy";case KVe(aVe):return"h:mm a";case KVe(sVe):return"h:mm:ss a";case KVe(lVe):case KVe(cVe):return"h:mm a";case KVe(dVe):return"HH:mm";case KVe(uVe):return"HH:mm:ss";case KVe(pVe):case KVe(gVe):return"HH:mm";case KVe(fVe):return"M/d/yyyy, h:mm a";case KVe(mVe):return"LLL d, yyyy, h:mm a";case KVe(vVe):return"LLLL d, yyyy, h:mm a";case KVe(yVe):return t;case KVe(hVe):return"M/d/yyyy, h:mm:ss a";case KVe(CVe):return"LLL d, yyyy, h:mm:ss a";case KVe(xVe):return"EEE, d LLL yyyy, h:mm a";case KVe(bVe):return"LLLL d, yyyy, h:mm:ss a";case KVe(AVe):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}})(this.opts),t=zBe.create("en-US"),uBe.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&OVe()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e})(),UBe=(()=>{function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&kVe()&&(this.rtf=RBe(e,n))}var t=e.prototype;return t.format=function(e,t){if(this.rtf)return this.rtf.format(e,t);var n=t,t=e,e=this.opts.numeric,r="long"!==this.opts.style,i=(void 0===e&&(e="always"),void 0===r&&(r=!1),{years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]}),o=-1===["hours","minutes","seconds"].indexOf(n);if("auto"===e&&o){var a="days"===n;switch(t){case 1:return a?"tomorrow":"next "+i[n][0];case-1:return a?"yesterday":"last "+i[n][0];case 0:return a?"today":"this "+i[n][0]}}var e=Object.is(t,-0)||t<0,t=1===(o=Math.abs(t)),s=i[n],r=r?!t&&s[2]||s[1]:t?i[n][0]:n;return e?o+" "+r+" ago":"in "+o+" "+r},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e})(),zBe=(()=>{function i(e,t,n,r){var e=(e=>{if(-1===(n=e.indexOf("-u-")))return[e];var t,n=e.substring(0,n);try{t=PBe(e).resolvedOptions()}catch(e){t=PBe(n).resolvedOptions()}return[n,(e=t).numberingSystem,e.calendar]})(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=(i=this.locale,t=this.numberingSystem,o=this.outputCalendar,SVe()?((o||t)&&(i+="-u",o&&(i+="-ca-"+o),t)&&(i+="-nu-"+t),i):[]),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||NBe.defaultLocale;return new i(e||(r?"en-US":FBe=FBe||(SVe()&&(r=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==r?r:"en-US")),t||NBe.defaultNumberingSystem,n||NBe.defaultOutputCalendar,e)},i.resetCache=function(){FBe=null,MBe={},LBe={},DBe={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale;return i.create(t,e.numberingSystem,e.outputCalendar)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=SVe()&&OVe(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),VBe(this,n,e=void 0===e?!0:e,$Ve,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=(e=>{for(var t=[],n=1;n<=12;n++){var r=PUe.utc(2016,n,1);t.push(e(r))}return t})(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),VBe(this,n,e=void 0===e?!0:e,rBe,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=(e=>{for(var t=[],n=1;n<=7;n++){var r=PUe.utc(2016,11,13+n);t.push(e(r))}return t})(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return VBe(this,void 0,e=void 0===e?!0:e,function(){return iBe},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[PUe.utc(2016,11,13,9),PUe.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return VBe(this,e,t=void 0===t?!0:t,lBe,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[PUe.utc(-40,1,1),PUe.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new BBe(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new HBe(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new UBe(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||SVe()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},HFe(i,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||SVe()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),i})();function _Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function qBe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],t=t(o,e[2]),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function WBe(e){if(null!=e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}}return[null,null]}function ZBe(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=LVe(e[t+r]);return[n,null,t+r]}}BU=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,r=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ig=RegExp(""+r.source+BU.source+"?"),QX=RegExp("(?:T"+Ig.source+")?"),Yee=ZBe("weekYear","weekNumber","weekDay"),Cg=ZBe("year","ordinal"),a$=RegExp(r.source+" ?(?:"+BU.source+"|("+Hee.source+"))?"),e2e=RegExp("(?: "+a$.source+")?");function GBe(e,t,n){e=e[t];return IVe(e)?n:LVe(e)}function JBe(e,t){return[{year:GBe(e,t),month:GBe(e,t+1,1),day:GBe(e,t+2,1)},null,t+3]}function KBe(e,t){return[{hours:GBe(e,t,0),minutes:GBe(e,t+1,0),seconds:GBe(e,t+2,0),milliseconds:DVe(e[t+3])},null,t+4]}function YBe(e,t){var n=!e[t]&&!e[t+1],e=qVe(e[t+1],e[t+2]);return[{},n?null:ABe.instance(e),t+3]}function QBe(e,t){return[{},e[t]?bBe.create(e[t]):null,t+1]}var XBe=RegExp("^T?"+r.source+"$"),$Be=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function eHe(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&d)?-e:e}var n=e[0],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],d="-"===n[0],n=l&&"-"===l[0];return[{years:t(LVe(e[1])),months:t(LVe(r)),weeks:t(LVe(i)),days:t(LVe(o)),hours:t(LVe(a)),minutes:t(LVe(s)),seconds:t(LVe(l),"-0"===l),milliseconds:t(DVe(c),n)}]}var tHe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nHe(e,t,n,r,i,o,a){t={year:2===t.length?zVe(LVe(t)):LVe(t),month:QVe.indexOf(n)+1,day:LVe(r),hour:LVe(i),minute:LVe(o)};return a&&(t.second=LVe(a)),e&&(t.weekday=3<e.length?eBe.indexOf(e)+1:tBe.indexOf(e)+1),t}var rHe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function iHe(e){var t=e[1],n=e[8],r=e[9],i=e[10],o=e[11],t=nHe(t,e[4],e[3],e[2],e[5],e[6],e[7]),e=n?tHe[n]:r?0:qVe(i,o);return[t,new ABe(e)]}var oHe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,aHe=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sHe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function lHe(e){return[nHe(e[1],e[4],e[3],e[2],e[5],e[6],e[7]),ABe.utcInstance]}function cHe(e){return[nHe(e[1],e[7],e[2],e[3],e[4],e[5],e[6]),ABe.utcInstance]}var dHe=_Be(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,QX),uHe=_Be(/(\d{4})-?W(\d\d)(?:-?(\d))?/,QX),pHe=_Be(/(\d{4})-?(\d{3})/,QX),gHe=_Be(Ig),fHe=qBe(JBe,KBe,YBe),hHe=qBe(Yee,KBe,YBe),mHe=qBe(Cg,KBe,YBe),CHe=qBe(KBe,YBe);var xHe=qBe(KBe);var vHe=_Be(/(\d{4})-(\d\d)-(\d\d)/,e2e),bHe=_Be(a$),yHe=qBe(JBe,KBe,YBe,QBe),AHe=qBe(KBe,YBe,QBe);var g2e={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},IHe=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},g2e),o2e=365.2425,n=30.436875,wHe=Object.assign({years:{quarters:4,months:12,weeks:o2e/7,days:o2e,hours:24*o2e,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:o2e/28,days:o2e/4,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:n/7,days:n,hours:24*n,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},g2e),jHe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],SHe=jHe.slice(0).reverse();function OHe(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new THe(n)}function kHe(e,t,n,r,i){var e=e[i][n],o=t[n]/e,a=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?(a=o)<0?Math.floor(a):Math.ceil(a):Math.trunc(o);r[i]+=a,t[n]-=a*e}var THe=(()=>{function f(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||zBe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?wHe:IHe,this.isLuxonDuration=!0}f.fromMillis=function(e,t){return f.fromObject(Object.assign({milliseconds:e},t))},f.fromObject=function(e){if(null==e||"object"!=typeof e)throw new $Fe("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new f({values:ZVe(e,f.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:zBe.fromObject(e),conversionAccuracy:e.conversionAccuracy})},f.fromISO=function(e,t){var n=WBe(e,[$Be,eHe])[0];return n?(n=Object.assign(n,t),f.fromObject(n)):f.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},f.fromISOTime=function(e,t){var n=WBe(e,[XBe,xHe])[0];return n?(n=Object.assign(n,t),f.fromObject(n)):f.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},f.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the Duration is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new YFe(e);return new f({invalid:e})},f.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new XFe(e)},f.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=f.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?uBe.create(this.loc,t).formatDurationFromString(this,e):"Invalid Duration"},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.values),e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toISO=function(){var e;return this.isValid?(e="P",0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=RVe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e):null},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds)||(n+=".SSS"),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=EHe(e),n={},r=GFe(jHe);!(i=r()).done;){var i=i.value;(NVe(t.values,i)||NVe(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return OHe(this,{values:n},!0)},e.minus=function(e){return this.isValid?(e=EHe(e),this.plus(e.negate())):this},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=WVe(e(this.values[i],i))}return OHe(this,{values:t},!0)},e.get=function(e){return this[f.normalizeUnit(e)]},e.set=function(e){return this.isValid?OHe(this,{values:Object.assign(this.values,ZVe(e,f.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:e.numberingSystem})};return n&&(t.conversionAccuracy=n),OHe(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){var e,n,r;return this.isValid?(e=this.toObject(),n=this.matrix,r=e,SHe.reduce(function(e,t){return IVe(r[t])?e:(e&&kHe(n,r,e,r,t),t)},null),OHe(this,{values:e},!0)):this},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return f.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=GFe(jHe);!(g=s()).done;){var l=g.value;if(0<=t.indexOf(l)){var c,d=l,u=0;for(c in o)u+=this.matrix[c][l]*o[c],o[c]=0;wVe(a[l])&&(u+=a[l]);var p,g=Math.trunc(u);for(p in o[l]=u-(i[l]=g),a)jHe.indexOf(p)>jHe.indexOf(l)&&kHe(this.matrix,a,p,i,l)}else wVe(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[d]+=r===d?o[r]:o[r]/this.matrix[d][r]);return OHe(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return OHe(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=GFe(jHe);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},HFe(f,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),f})();function EHe(e){if(wVe(e))return THe.fromMillis(e);if(THe.isDuration(e))return e;if("object"==typeof e)return THe.fromObject(e);throw new $Fe("Unknown duration argument "+e+" of type "+typeof e)}var NHe="Invalid Interval";var MHe=(()=>{function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the Interval is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new KFe(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var n,e=LUe(e),t=LUe(t),r=(n=t,(r=e)&&r.isValid?n&&n.isValid?n<r?MHe.invalid("end before start","The end of an interval must be after its start, but you had start="+r.toISO()+" and end="+n.toISO()):null:MHe.invalid("missing or invalid end"):MHe.invalid("missing or invalid start"));return null==r?new c({start:e,end:t}):r},c.after=function(e,t){t=EHe(t),e=LUe(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=EHe(t),e=LUe(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=PUe.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=PUe.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=THe.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=THe.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){var t,n;return void 0===e&&(e="milliseconds"),this.isValid?(t=this.start.startOf(e),n=this.end.startOf(e),Math.floor(n.diff(t,e).get(e))+1):NaN},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},e.set=function(e){var e=void 0===e?{}:e,t=e.start;return this.isValid?c.fromDateTimes(t||this.s,e.end||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(LUe).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=EHe(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},e.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},e.intersection=function(e){var t;return this.isValid?(t=(this.s>e.s?this:e).s,(e=(this.e<e.e?this:e).e)<=t?null:c.fromDateTimes(t,e)):this},e.union=function(e){var t;return this.isValid?(t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e,c.fromDateTimes(t,e)):this},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=GFe((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":NHe},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):NHe},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():NHe},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):NHe},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):NHe},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):THe.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},HFe(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c})(),PHe=(()=>{function e(){}return e.hasDST=function(e){void 0===e&&(e=NBe.defaultZone);var t=PUe.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return bBe.isValidSpecifier(e)&&bBe.isValidZone(e)},e.normalizeZone=function(e){return wBe(e,NBe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||zBe.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||zBe.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||zBe.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||zBe.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return zBe.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return zBe.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(SVe()){e=!0,t=OVe(),r=kVe();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e})();function LHe(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(THe.fromMillis(t).as("days"))}function DHe(e,t,n,r){var e=((e,t,n)=>{for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=LHe(e,t);return(e-e%7)/7}],["days",LHe]];i<o.length;i++){var a,s,l,c=o[i],d=c[0],c=c[1];0<=n.indexOf(d)&&(a=d,c=c(e,t),t<(l=e.plus(((s={})[d]=c,s)))?(e=e.plus(((s={})[d]=c-1,s)),--c):e=l,r[d]=c)}return[e,r,l,a]})(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),THe.fromObject(Object.assign(o,r)));return 0<n.length?(e=THe.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var RHe={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},FHe={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},VHe=RHe.hanidec.replace(/[\[|\]]/g,"").split("");function BHe(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+RHe[e||"latn"]+t)}var HHe="missing Intl.DateTimeFormat.formatToParts support";function UHe(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t((e=>{var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(RHe.hanidec))t+=VHe.indexOf(e[n]);else for(var i in FHe){var i=FHe[i],o=i[0];o<=r&&r<=i[1]&&(t+=r-o)}}return parseInt(t,10)}return t})(e))}}}var zHe="( |"+String.fromCharCode(160)+")",_He=new RegExp(zHe,"g");function qHe(e){return e.replace(/\./g,"\\.?").replace(_He,zHe)}function WHe(e){return e.replace(/\./g,"").replace(_He," ").toLowerCase()}function ZHe(n,r){return null===n?null:{regex:RegExp(n.map(qHe).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return WHe(t)===WHe(e)})+r}}}function GHe(e,t){return{regex:e,deser:function(e){return qVe(e[1],e[2])},groups:t}}function JHe(e){return{regex:e,deser:function(e){return e[0]}}}function KHe(t,n){function r(e){return{regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:function(e){return e[0]},literal:!0}}var i=BHe(n),o=BHe(n,"{2}"),a=BHe(n,"{3}"),s=BHe(n,"{4}"),l=BHe(n,"{6}"),c=BHe(n,"{1,2}"),d=BHe(n,"{1,3}"),u=BHe(n,"{1,6}"),p=BHe(n,"{1,9}"),g=BHe(n,"{2,4}"),f=BHe(n,"{4,6}"),e=(e=>{if(t.literal)return r(e);switch(e.val){case"G":return ZHe(n.eras("short",!1),0);case"GG":return ZHe(n.eras("long",!1),0);case"y":return UHe(u);case"yy":return UHe(g,zVe);case"yyyy":return UHe(s);case"yyyyy":return UHe(f);case"yyyyyy":return UHe(l);case"M":return UHe(c);case"MM":return UHe(o);case"MMM":return ZHe(n.months("short",!0,!1),1);case"MMMM":return ZHe(n.months("long",!0,!1),1);case"L":return UHe(c);case"LL":return UHe(o);case"LLL":return ZHe(n.months("short",!1,!1),1);case"LLLL":return ZHe(n.months("long",!1,!1),1);case"d":return UHe(c);case"dd":return UHe(o);case"o":return UHe(d);case"ooo":return UHe(a);case"HH":return UHe(o);case"H":return UHe(c);case"hh":return UHe(o);case"h":return UHe(c);case"mm":return UHe(o);case"m":case"q":return UHe(c);case"qq":return UHe(o);case"s":return UHe(c);case"ss":return UHe(o);case"S":return UHe(d);case"SSS":return UHe(a);case"u":return JHe(p);case"a":return ZHe(n.meridiems(),0);case"kkkk":return UHe(s);case"kk":return UHe(g,zVe);case"W":return UHe(c);case"WW":return UHe(o);case"E":case"c":return UHe(i);case"EEE":return ZHe(n.weekdays("short",!1,!1),1);case"EEEE":return ZHe(n.weekdays("long",!1,!1),1);case"ccc":return ZHe(n.weekdays("short",!0,!1),1);case"cccc":return ZHe(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return GHe(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return GHe(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return JHe(/[a-z_+-/]{1,256}?/i);default:return r(e)}})(t)||{invalidReason:HHe};return e.token=t,e}var YHe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function QHe(r){var e=IVe(r.Z)?IVe(r.z)?null:bBe.create(r.z):new ABe(r.Z);return IVe(r.q)||(r.M=3*(r.q-1)+1),IVe(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),IVe(r.u)||(r.S=DVe(r.u)),[Object.keys(r).reduce(function(e,t){var n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(t);return n&&(e[n]=r[t]),e},{}),e]}var XHe=null;function $He(e,t){var r;return e.literal||!(r=uBe.macroTokenToFormatOpts(e.val))||(t=uBe.create(t,r).formatDateTimeParts(XHe=XHe||PUe.fromMillis(1555555555555)).map(function(e){return t=r,"literal"===(n=(e=e).type)?{literal:!0,val:e.value}:(e=t[n],(t="object"==typeof(t=YHe[n])?t[e]:t)?{literal:!1,val:t}:void 0);var t,n})).includes(void 0)?e:t}function eUe(t,e,n){n=uBe.parseFormat(n),r=t;var r,i=(i=Array.prototype).concat.apply(i,n.map(function(e){return $He(e,r)})),n=i.map(function(e){return KHe(e,t)}),o=n.find(function(e){return e.invalidReason});if(o)return{input:e,tokens:i,invalidReason:o.invalidReason};var n=["^"+(o=n).map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",o],o=n[1],n=RegExp(n[0],"i"),o=((e,t,n)=>{var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)NVe(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]})(e,n,o),a=o[0],o=o[1],s=o?QHe(o):[null,null],l=s[0],s=s[1];if(NVe(o,"a")&&NVe(o,"H"))throw new QFe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:n,rawMatches:a,matches:o,result:l,zone:s}}var tUe=[0,31,59,90,120,151,181,212,243,273,304,334],nUe=[0,31,60,91,121,152,182,213,244,274,305,335];function rUe(e,t){return new pBe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function iUe(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function oUe(e,t,n){return n+(FVe(e)?nUe:tUe)[t-1]}function aUe(e,t){var e=FVe(e)?nUe:tUe,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function sUe(e){var t,n=e.year,r=e.month,i=e.day,o=oUe(n,r,i),r=iUe(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=UVe(t=n-1):i>UVe(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},JVe(e))}function lUe(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=iUe(n,1,4),a=VVe(n),r=7*r+i-o-3,i=(r<1?r+=VVe(t=n-1):a<r?(t=n+1,r-=VVe(n)):t=n,aUe(t,r)),o=i.month;return Object.assign({year:t,month:o,day:i.day},JVe(e))}function cUe(e){var t=e.year,n=oUe(t,e.month,e.day);return Object.assign({year:t,ordinal:n},JVe(e))}function dUe(e){var t=e.year,n=aUe(t,e.ordinal),r=n.month;return Object.assign({year:t,month:r,day:n.day},JVe(e))}function uUe(e){var t=jVe(e.year),n=MVe(e.month,1,12),r=MVe(e.day,1,BVe(e.year,e.month));return t?n?!r&&rUe("day",e.day):rUe("month",e.month):rUe("year",e.year)}function pUe(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=MVe(t,0,23)||24===t&&0===n&&0===r&&0===e,o=MVe(n,0,59),a=MVe(r,0,59),s=MVe(e,0,999);return i?o?a?!s&&rUe("millisecond",e):rUe("second",r):rUe("minute",n):rUe("hour",t)}var gUe="Invalid DateTime";function fUe(e){return new pBe("unsupported zone",'the zone "'+e.name+'" is not supported')}function hUe(e){return null===e.weekData&&(e.weekData=sUe(e.c)),e.weekData}function mUe(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new PUe(Object.assign({},e,t,{old:e}))}function CUe(e,t,n){var r=e-60*t*1e3,i=n.offset(r);return t===i?[r,t]:i===(n=n.offset(r-=60*(i-t)*1e3))?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function xUe(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function vUe(e,t,n){return CUe(HVe(e),t,n)}function bUe(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,BVe(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=THe.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=CUe(HVe(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function yUe(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=PUe.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):PUe.invalid(new pBe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function AUe(e,t,n){return void 0===n&&(n=!0),e.isValid?uBe.create(zBe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function IUe(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond)||(l+=".SSS"),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),AUe(e,l));return n=o?"T"+n:n}var wUe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},jUe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SUe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},OUe=["year","month","day","hour","minute","second","millisecond"],kUe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],TUe=["year","ordinal","hour","minute","second","millisecond"];function EUe(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new XFe(e)}function NUe(e,t){for(var n=GFe(OUe);!(r=n()).done;){var r=r.value;IVe(e[r])&&(e[r]=wUe[r])}var i,o=uUe(e)||pUe(e);return o?PUe.invalid(o):(o=NBe.now(),i=(o=vUe(e,t.offset(o),t))[0],new PUe({ts:i,zone:t,o:o[1]}))}function MUe(t,n,r){function e(e,t){return e=RVe(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!IVe(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=GFe(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var PUe=(()=>{function C(e){var t,n=e.zone||NBe.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new pBe("invalid input"):null)||(n.isValid?null:fUe(n)),i=(this.ts=IVe(e.ts)?NBe.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=xUe(this.ts,t),i=(r=Number.isNaN(i.year)?new pBe("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||zBe.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}C.now=function(){return new C({})},C.local=function(e,t,n,r,i,o,a){return IVe(e)?C.now():NUe({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},NBe.defaultZone)},C.utc=function(e,t,n,r,i,o,a){return IVe(e)?new C({ts:NBe.now(),zone:ABe.utcInstance}):NUe({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},ABe.utcInstance)},C.fromJSDate=function(e,t){void 0===t&&(t={});var n,e="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;return Number.isNaN(e)?C.invalid("invalid input"):(n=wBe(t.zone,NBe.defaultZone)).isValid?new C({ts:e,zone:n,loc:zBe.fromObject(t)}):C.invalid(fUe(n))},C.fromMillis=function(e,t){if(void 0===t&&(t={}),wVe(e))return e<-864e13||864e13<e?C.invalid("Timestamp out of range"):new C({ts:e,zone:wBe(t.zone,NBe.defaultZone),loc:zBe.fromObject(t)});throw new $Fe("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},C.fromSeconds=function(e,t){if(void 0===t&&(t={}),wVe(e))return new C({ts:1e3*e,zone:wBe(t.zone,NBe.defaultZone),loc:zBe.fromObject(t)});throw new $Fe("fromSeconds requires a numerical input")},C.fromObject=function(e){var t=wBe(e.zone,NBe.defaultZone);if(!t.isValid)return C.invalid(fUe(t));var n=NBe.now(),r=t.offset(n),i=ZVe(e,EUe,["zone","locale","outputCalendar","numberingSystem"]),o=!IVe(i.ordinal),a=!IVe(i.year),s=!IVe(i.month)||!IVe(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=zBe.fromObject(e);if((a||o)&&l)throw new QFe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new QFe("Can't mix ordinal dates with month/day");for(var d,s=l||i.weekday&&!a,u=xUe(n,r),p=(s?(m=kUe,d=jUe,u=sUe(u)):o?(m=TUe,d=SUe,u=cUe(u)):(m=OUe,d=wUe),!1),g=GFe(m);!(f=g()).done;){var f=f.value;IVe(i[f])?i[f]=(p?d:u)[f]:p=!0}var h,m,l=(s?(n=jVe((l=i).weekYear),m=MVe(l.weekNumber,1,UVe(l.weekYear)),h=MVe(l.weekday,1,7),n?m?!h&&rUe("weekday",l.weekday):rUe("week",l.week):rUe("weekYear",l.weekYear)):o?(m=jVe((n=i).year),h=MVe(n.ordinal,1,VVe(n.year)),m?!h&&rUe("ordinal",n.ordinal):rUe("year",n.year)):uUe(i))||pUe(i);return l?C.invalid(l):(n=new C({ts:(m=vUe(s?lUe(i):o?dUe(i):i,r,t))[0],zone:t,o:m[1],loc:c}),i.weekday&&a&&e.weekday!==n.weekday?C.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+n.toISO()):n)},C.fromISO=function(e,t){void 0===t&&(t={});var n=WBe(e,[dHe,fHe],[uHe,hHe],[pHe,mHe],[gHe,CHe]);return yUe(n[0],n[1],t,"ISO 8601",e)},C.fromRFC2822=function(e,t){void 0===t&&(t={});var n=WBe(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[rHe,iHe]);return yUe(n[0],n[1],t,"RFC 2822",e)},C.fromHTTP=function(e,t){void 0===t&&(t={});e=WBe(e,[oHe,lHe],[aHe,lHe],[sHe,cHe]);return yUe(e[0],e[1],t,"HTTP",t)},C.fromFormat=function(e,t,n){if(void 0===n&&(n={}),IVe(e)||IVe(t))throw new $Fe("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=zBe.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),i=[(r=eUe(r=i,e,t)).result,r.zone,r.invalidReason],r=i[0],o=i[1],i=i[2];return i?C.invalid(i):yUe(r,o,n,"format "+t,e)},C.fromString=function(e,t,n){return C.fromFormat(e,t,n=void 0===n?{}:n)},C.fromSQL=function(e,t){void 0===t&&(t={});var n=WBe(e,[vHe,yHe],[bHe,AHe]);return yUe(n[0],n[1],t,"SQL",e)},C.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the DateTime is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new JFe(e);return new C({invalid:e})},C.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=C.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=uBe.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(ABe.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(NBe.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=wBe(e,NBe.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=vUe(this.toObject(),r,e)[0]),mUe(this,{ts:n,zone:e})):C.invalid(fUe(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,t=this.loc.clone({locale:t,numberingSystem:e.numberingSystem,outputCalendar:e.outputCalendar});return mUe(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=ZVe(e,EUe,[]),n=!IVe(e.weekYear)||!IVe(e.weekNumber)||!IVe(e.weekday),r=!IVe(e.ordinal),i=!IVe(e.year),o=!IVe(e.month)||!IVe(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new QFe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new QFe("Can't mix ordinal dates with month/day");n?t=lUe(Object.assign(sUe(this.c),e)):IVe(e.ordinal)?(t=Object.assign(this.toObject(),e),IVe(e.day)&&(t.day=Math.min(BVe(t.year,t.month),t.day))):t=dUe(Object.assign(cUe(this.c),e));i=vUe(t,this.o,this.zone);return mUe(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?mUe(this,bUe(this,EHe(e))):this},e.minus=function(e){return this.isValid?mUe(this,bUe(this,EHe(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=THe.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?uBe.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):gUe},e.toLocaleString=function(e){return void 0===e&&(e=tVe),this.isValid?uBe.create(this.loc.clone(e),e).formatDateTime(this):gUe},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?uBe.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return AUe(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return AUe(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return IUe(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return AUe(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return AUe(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return AUe(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return IUe(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():gUe},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.c),e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){var r;return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.isValid&&e.isValid?(n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=t,t=(Array.isArray(t)?t:[t]).map(THe.normalizeUnit),t=DHe((r=e.valueOf()>this.valueOf())?this:e,r?e:this,t,n),r?t.negate():t):THe.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime")},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(C.now(),e,t)},e.until=function(e){return this.isValid?MHe.fromDateTimes(this,e):this},e.hasSame=function(e,t){var n;return!!this.isValid&&(n=e.valueOf(),(e=this.setZone(e.zone,{keepLocalTime:!0})).startOf(t)<=n)&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){var t,n,r,i;return this.isValid?(t=(e=void 0===e?{}:e).base||C.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit,Array.isArray(e.unit)&&(r=e.unit,i=void 0),MUe(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))):null},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?MUe(e.base||C.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},C.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(C.isDateTime))return TVe(t,function(e){return e.valueOf()},Math.min);throw new $Fe("min requires all arguments be DateTimes")},C.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(C.isDateTime))return TVe(t,function(e){return e.valueOf()},Math.max);throw new $Fe("max requires all arguments be DateTimes")},C.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return eUe(zBe.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},C.fromStringExplain=function(e,t,n){return C.fromFormatExplain(e,t,n=void 0===n?{}:n)},HFe(C,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?hUe(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?hUe(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?hUe(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?cUe(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?PHe.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?PHe.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?PHe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?PHe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return FVe(this.year)}},{key:"daysInMonth",get:function(){return BVe(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?VVe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?UVe(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return tVe}},{key:"DATE_MED",get:function(){return nVe}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return rVe}},{key:"DATE_FULL",get:function(){return iVe}},{key:"DATE_HUGE",get:function(){return oVe}},{key:"TIME_SIMPLE",get:function(){return aVe}},{key:"TIME_WITH_SECONDS",get:function(){return sVe}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return lVe}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return cVe}},{key:"TIME_24_SIMPLE",get:function(){return dVe}},{key:"TIME_24_WITH_SECONDS",get:function(){return uVe}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return pVe}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return gVe}},{key:"DATETIME_SHORT",get:function(){return fVe}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return hVe}},{key:"DATETIME_MED",get:function(){return mVe}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return CVe}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return xVe}},{key:"DATETIME_FULL",get:function(){return vVe}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return bVe}},{key:"DATETIME_HUGE",get:function(){return yVe}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return AVe}}]),C})();function LUe(e){if(PUe.isDateTime(e))return e;if(e&&e.valueOf&&wVe(e.valueOf()))return PUe.fromJSDate(e);if(e&&"object"==typeof e)return PUe.fromObject(e);throw new $Fe("Unknown datetime argument: "+e+", of type "+typeof e)}var DUe=EQ.DateTime=PUe;EQ.Duration=THe,EQ.FixedOffsetZone=ABe,EQ.IANAZone=bBe,EQ.Info=PHe,EQ.Interval=MHe,EQ.InvalidZone=IBe,EQ.LocalZone=hBe,EQ.Settings=NBe,EQ.VERSION="1.28.1",EQ.Zone=gBe;let RUe=(e,t)=>e.length>t?nt.exports.jsx(he,Object.assign({title:e,arrow:!0},{children:nt.exports.jsxs("span",{children:[e.slice(0,t).trim(),"..."]})})):nt.exports.jsx(nt.exports.Fragment,{children:e});let FUe=e=>{var t,n={day:"N/A",time:"N/A",full:"N/A"};return void 0!==e&&(t=(e=DUe.fromISO(e.split(" ").join(""))).toFormat("LL/dd/yyyy"),e=e.toFormat("t"),"Invalid DateTime"!==t&&(n.day=t),"Invalid DateTime"!==e&&(n.time=e),n.full=n.day+" "+n.time),n},VUe=({value:e,removeTime:t,className:n,testIdDate:r="date",testIdTime:i="time",rawDateValue:o="",rawTimeValue:a="",orientation:s="vertical"})=>{e=FUe(e);let l="N/A"===e.time?"":e.time,c=e.day;e=()=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({sx:{mt:1},"data-test":"day",variant:"body2",color:"textPrimary",className:n,"data-testid":r},{children:o||c})),!t&&nt.exports.jsx(pe,Object.assign({"data-test":"time",variant:"caption",color:"textSecondary","data-testid":i},{children:a||l}))]});return"horizontal"===s?nt.exports.jsx(_,Object.assign({direction:"row",gap:"10px",sx:{alignItems:"center","& > p":{margin:0}}},{children:nt.exports.jsx(e,{})})):nt.exports.jsx(e,{})},BUe=je()(e=>({root:{display:"flex",flexDirection:"column",height:"100%"},header:{height:60,display:"flex",justifyContent:"space-between",padding:e.spacing(2),borderBottom:"0.5px solid "+e.palette.divider},tableWrapper:{padding:e.spacing(2),flexGrow:1,overflowY:"hidden"},toolbar:{display:"flex",justifyContent:"center",alignItems:"center"}})),HUe=({breadcrumbs:e,actions:t,table:n,tableWrapperStyles:r={}})=>{var i=BUe().classes;return nt.exports.jsxs("section",Object.assign({className:i.root},{children:[nt.exports.jsxs("header",Object.assign({className:i.header},{children:[nt.exports.jsx("div",Object.assign({className:i.toolbar},{children:e})),nt.exports.jsx("div",Object.assign({className:i.toolbar},{children:t}))]})),nt.exports.jsx("div",Object.assign({className:i.tableWrapper,style:r},{children:n}))]}))},UUe={getRandom:(e="")=>e?(e=(t=>{let n=0;for(let e=0;e<t.length;e++){var r=t.charCodeAt(e);n=(n<<5)-n+r,n&=n}return n})(e)/4294967295)<0?-e:e:Math.random(),randomFromArr:(e,t="")=>{var n;return null!=e&&e.length?(n=e.length-1,e[Math.floor(UUe.getRandom(t)*(1+n))]):null},wait:t=>$Re(void 0,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))}),getId:()=>uje(),getProfileImageURL:(e="")=>`https://api.dicebear.com/7.x/${UUe.randomFromArr(["miniavs","open-peeps","pixel-art","icons","adventurer","big-smile"],e)}/svg`+(e?`?seed="${e}"`:""),getImageURL:(e="")=>{var t=["300","350","400","450","500","550","600","650","700","750","800","850"];return`https://source.unsplash.com/random/${UUe.randomFromArr(t,e)}x${UUe.randomFromArr(t)}/?`+UUe.randomFromArr(["city","nature","sunrise","beach","landscape","car","food","sky","architecture"],e)},getDate:(e=2018,t=(new Date).getFullYear(),n="")=>{function r(e,t){t=Math.floor(UUe.getRandom(n)*(t-e+1)+e);return(1===t.toString().length?"0":"")+t}var i=r(1,28),o=r(1,12),e=r(e,t),t=r(0,23),a=r(0,59);return new Date(e+`-${o}-${i} ${t}:${a}:00`)}};var zUe=Object.freeze({__proto__:null,formatTime:e=>{e=e.toLocaleTimeString().split(" ");return e[0]=e[0].split(":"),e[0].pop(),e[0]=e[0].join(":"),e[0]?e[0]+" "+(e[1]||""):""},truncatedString:RUe,usePrevious:function(e){let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current},getTimeDifference:e=>{var t=(new Date).getTime();return(new Date(e).getTime()-t)/1e3/60},totalRunTime:(e,t,n)=>{e=new Date(e).getTime();let r=(new Date(t).getTime()-e)/1e3,i="";var t=n.formatMessage({id:"processing-center-overview-tab.total-run-time-day",defaultMessage:[{type:0,value:"day"}]}),e=n.formatMessage({id:"processing-center-overview-tab.total-run-time.days",defaultMessage:[{type:0,value:"days"}]}),o=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hour",defaultMessage:[{type:0,value:"hour"}]}),a=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hours",defaultMessage:[{type:0,value:"hours"}]}),s=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minute",defaultMessage:[{type:0,value:"minute"}]}),l=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minutes",defaultMessage:[{type:0,value:"minutes"}]}),n=n.formatMessage({id:"processing-center-overview-tab.total-run-time.just-now",defaultMessage:[{type:0,value:"Just Now"}]}),c=Math.floor(r/86400),c=(c&&(r-=3600*c*24,i+=c+` ${1===c?t:e} `),Math.floor(r/3600)),t=(c&&(r-=3600*c,i+=c+` ${1===c?o:a} `),Math.floor(r/60));return t&&(i+=t+" "+(1===t?s:l)),i=i||n},dateHelper:FUe,DateFormatter:VUe,DataCenterSharedContentLayout:HUe,mockHelper:UUe});class _Ue extends Le.exports.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary - Uncaught error:",e,t);var n=this.props.onDidCatchError;n&&n(e,t)}render(){var{fallbackUI:e,children:t}=this.props;return this.state.hasError?e||qUe():t}}let qUe=()=>nt.exports.jsxs(_,Object.assign({sx:{padding:"30px",alignItems:"center",justifyContent:"center",gap:"10px"}},{children:[nt.exports.jsx(tue,{sx:{color:"#55607c",fontSize:"30px"}}),nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:nt.exports.jsx(Ce,{id:"shared-reusable-utils.error-boundary.title",defaultMessage:"Something went wrong loading this content.",description:"Error message title"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"shared-reusable-utils.error-boundary.subtitle",defaultMessage:"Please try again later.",description:"Error message subtitle"})}))]}));let WUe=()=>nt.exports.jsx(_,Object.assign({sx:{padding:"30px 30px 0px 30px",gap:"20px"}},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"}}),nt.exports.jsxs(_,Object.assign({gap:"5px",sx:{marginTop:"35px"}},{children:[nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},width:"80px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"})]}))]}))})),ZUe=({onRetry:e})=>nt.exports.jsxs(_,Object.assign({sx:{display:"grid",placeItems:"center",padding:"30px",gap:"10px"}},{children:[nt.exports.jsx(pe,Object.assign({fontWeight:"bold"},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.title",defaultMessage:"Something went wrong",description:"Panel Component, error state, title"})})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.subtitle",defaultMessage:"Please refresh or try again later.",description:"Panel Component, error state, subtitle"})})),e&&nt.exports.jsx(ge,Object.assign({variant:"contained",onClick:e},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.retry-btn",defaultMessage:"Retry",description:"Panel Component, error state, retry button"})}))]}));var GUe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};let JUe={closePanel:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.close-panel",defaultMessage:"Close",description:"Close panel icon for a panel header"}),enterFullScreen:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.enter-fullscreen",defaultMessage:"Enter Full Screen",description:"Enter Full Screen panel icon for a panel header"}),exitFullScreen:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.leave-fullscreen",defaultMessage:"Exit Full Screen",description:"Exit Full Screen panel icon for a panel header"})},KUe={ENTER:"sdk-ui-toggle-fullscreen-enter",EXIT:"sdk-ui-toggle-fullscreen-exit"},YUe={["& ."+KUe.EXIT]:{display:"none"}},QUe={["& ."+KUe.ENTER]:{display:"none"}},XUe=({onClick:e,testId:t=""})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,className:KUe.ENTER,id:"panel-header-enter-fullscreen-"+t},{children:JUe.enterFullScreen()})),nt.exports.jsx(he,Object.assign({title:JUe.enterFullScreen()},{children:nt.exports.jsx(ue,Object.assign({className:KUe.ENTER,onClick:e,"aria-labelledby":"panel-header-enter-fullscreen-"+t,"data-testid":"panel-header-enter-fullscreen-"+t,size:"medium"},{children:nt.exports.jsx(mpe,{})}))}))]}),$Ue=({onClick:e,testId:t=""})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,className:KUe.EXIT,id:"panel-header-exit-fullscreen-"+t},{children:JUe.exitFullScreen()})),nt.exports.jsx(he,Object.assign({title:JUe.exitFullScreen()},{children:nt.exports.jsx(ue,Object.assign({className:KUe.EXIT,onClick:e,"aria-labelledby":"panel-header-exit-fullscreen-"+t,"data-testid":"panel-header-exit-fullscreen-"+t,size:"medium"},{children:nt.exports.jsx(Cpe,{})}))}))]});let eze={"& .MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .MuiTabs-indicator":{backgroundColor:"#2A323C"}};let tze=je()(e=>({step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"& svg":{borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"#F2F5F9!important",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),nze={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"600px",maxHeight:"50vh",bgcolor:"background.paper",boxShadow:24,p:0,borderRadius:"15px"},rze=({isOpen:e,onClose:t,title:n="--",content:r="--",sx:i={},testId:o="shared-panel-modal",labeledBy:a="shared-reusable-modal-title",describedBy:s="shared-reusable-modal-description",ContainerProps:l={}})=>nt.exports.jsx(jm,Object.assign({open:e,onClose:t,"aria-labelledby":a,"aria-describedby":s},{children:nt.exports.jsxs(_,Object.assign({gap:"10px",sx:Object.assign(Object.assign({},nze),i)},{children:[nt.exports.jsxs(_,Object.assign({sx:{borderBottom:"1px solid #d5dfe9",padding:"8px 30px",paddingRight:"10px"},direction:"row",alignItems:"center",justifyContent:"space-between"},{children:[nt.exports.jsx(pe,Object.assign({sx:{margin:"0",fontSize:"18px",fontFamily:"Dosis",fontStyle:"normal",lineHeight:"22px",letterSpacing:"-1.30385e-09px",fontWeight:"600",cursor:"default",textTransform:"uppercase",userSelect:"none",color:"#5C6269"},id:a,variant:"h1",component:"h2","data-testid":o+"-title"},{children:n})),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"shared-reusable-utils.panel-modal.close-modal",defaultMessage:"Close",description:"Close modal tooltip"}),disableInteractive:!0},{children:nt.exports.jsx(ue,Object.assign({onClick:t,"data-testid":o+"-header-close"},{children:nt.exports.jsx(zde,{})}))}))]})),nt.exports.jsx(_,Object.assign({sx:{width:"100%",padding:"30px",boxSizing:"border-box",overflow:"hidden"}},l,{"data-testid":o+"-content"},{children:r}))]}))})),ize=je()(e=>({root:{width:1280,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0},overlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"}})),oze=({dataTest:e,panelId:t,dimmed:n,children:r})=>{var i=ize().classes,o=(Ae(Cse)||[]).find(e=>e.panelId===t),o=(null==o?void 0:o.panelConfig.zIndex)||(null==o?void 0:o.panelConfig.autoZIndex)||1099;return nt.exports.jsx(Ch,{children:nt.exports.jsxs("div",Object.assign({role:"presentation","data-test":e,className:Zhe(i.panel,i.fullScreen),style:{zIndex:o}},{children:[n&&nt.exports.jsx("div",{className:i.overlay}),r]}))})};a2e={PanelLoadingState:WUe,TableLoadingState:()=>nt.exports.jsx(_,Object.assign({sx:{padding:"30px 30px 0px 30px",gap:"10px"}},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsxs(_,Object.assign({width:"100%",gap:"10px",direction:"row"},{children:[nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}})]})),nt.exports.jsx(_,Object.assign({gap:"5px"},{children:new Array(16).fill(null).map((e,t)=>nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"24px"},t))}))]}))}))};(h2e=QQe=QQe||{}).engine="engine",h2e.engineBuild="engineBuild",h2e.schema="schema",h2e.application="application",h2e.library="library",h2e.flow="flow",h2e.applicationContentMenuExtension="applicationContentMenuExtension",h2e.applicationView="applicationView",h2e.package="package",h2e.sdo="sdo",h2e.tdo="tdo",h2e.scheduledJob="scheduledJob",h2e.dagTemplate="dagTemplate",h2e.nodeRedPalette="nodeRedPalette",h2e.enabledStatus="enabledStatus",h2e.orgStatus="orgStatus";let aze={[QQe.orgStatus]:{active:{text:"rgba(56, 142, 60, 1)",background:"rgba(27, 94, 32, 0.2)"},deleted:{text:"rgba(33, 33, 33, 1)",background:"rgba(33, 33, 33, 0.1)"}},[QQe.enabledStatus]:{enabled:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.engine]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.engineBuild]:{fetching:{},invalid:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},available:{text:"#388E3C",background:"rgba(96, 125, 180, 0.3)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},disapproved:{text:"#212121",background:"rgba(255, 161, 104, 0.4)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},deploying:{text:"#F57C00",background:"rgba(20, 96, 121, 0.2)"},deployed:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.schema]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},inactive:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.application]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},rejected:{text:"#388E3C",background:"rgba(183, 28, 28, 0.2)"},approved:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#B71C1C",background:"rgba(33, 33, 33, 0.1)"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.flow]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.applicationContentMenuExtension]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.package]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deactivated:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#F7F7F7"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.applicationView]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.scheduledJob]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.dagTemplate]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.nodeRedPalette]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.library]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.tdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.sdo]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#4F5863",background:"#FFFFFF"}}},sze={text:"#4F5863",background:"#FFFFFF"},lze=({statusType:e,status:t,testId:n="shared-status-pill",ContainerProps:r={},TypographyProps:i={}})=>{var{background:e,text:o}=aze[e][null==t?void 0:t.toLowerCase()]||(null==(e=aze[e])?void 0:e._default)||sze;return nt.exports.jsx(be,Object.assign({},r,{sx:Object.assign(Object.assign({},null!=(r=null==r?void 0:r.sx)?r:{}),{width:"fit-content",height:"18px",left:"264px",top:"244px",borderRadius:"30px",textAlign:"center",letterSpacing:"-1.30385e-09px",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"3px 10px",gap:"10px",background:e}),"data-testid":n},{children:nt.exports.jsx(pe,Object.assign({"data-test":"status-pill",variant:"caption",sx:{color:o,fontFamily:"'Nunito'",fontStyle:"normal",fontWeight:800,fontSize:"9px",lineHeight:"12px",textTransform:"uppercase"}},i,{children:t}))}))};let cze=je()(e=>({searchInput:{opacity:0,width:"0px",MozTransition:"all 300ms ease",WebkitTransition:"all 300ms ease","&.is-visible":{width:"400px",opacity:1,marginRight:"5px"},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}}));var dze;let uze=(e,t)=>nt.exports.jsx(Ce,{id:"{dataTestPrefix}-permission-set-{lowerCaseType}-all-message","data-test":`${t}-permission-set-${e.toLowerCase()}-all-message`,defaultMessage:"{type} All",description:"{type} All button message",values:{type:e,lowerCaseType:e.toLowerCase(),dataTestPrefix:t}}),pze=je()(e=>({titleContainer:{backgroundColor:"#F2F7FE",borderRadius:"4px",height:"41px",display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"10px"},mainTitle:{fontWeight:600},selectBtn:{fontSize:"12px",color:"#0C53B0"},permissionsRow:{backgroundColor:"#FFFFFF",display:"flex",alignItems:"center",borderBottom:"0.5px solid #D5DFE9","&:last-child":{marginBottom:"10px"}},formLabelStyle:{height:"46px",width:"100%",display:"flex",justifyContent:"space-between",marginRight:0,marginLeft:"10px"},checkboxLabel:{fontWeight:600}})),gze=({onPermissionChange:e,funcPermissions:t,permissionSetExistingPerm:n,isPermissionProtected:r,setUpdatePermissionChange:o,dataTestPrefix:a,isUsedForApiTokens:s=!1})=>{let i,l,c=pze().classes;let d=(null!=(l=null==(i=Ae(uG))?void 0:i.myRights)?l:[]).map(e=>(e.charAt(0).toUpperCase()+e.slice(1)).replace(/\./g,":")),u=Object.values(t).reduce((e,t)=>{var n=e.length?e[e.length-1]:[];return e.length&&n[0].slice(0,n[0].lastIndexOf(":"))===t.slice(0,t.lastIndexOf(":"))?n.push(t):e.push([t]),e},[]),[p,g]=Le.exports.useState(()=>u.map(e=>e.map(()=>!1))),[f,h]=Le.exports.useState([]),[m,C]=Le.exports.useState(()=>u.map(()=>!1));Le.exports.useEffect(()=>{p.length<=0&&g(()=>u.map(e=>e.map(()=>!1))),m.length<=0&&C(()=>u.map(()=>!1))},[t]),Le.exports.useEffect(()=>{if(n){let r=[];if(Object.entries(t).forEach(t=>{null!=n&&n.find(e=>e===t[0])&&r.push(t[1])}),!(r.length<=0)){h(we.exports.uniq(r));let n=[...m];g(u.map((e,t)=>{e=e.map(e=>-1!==r.indexOf(e));return void 0===e.find(e=>!1===e)&&(n[t]=!0),C(n),e}))}}},[n]);return Le.exports.useEffect(()=>{e(f)},[f]),nt.exports.jsx(nt.exports.Fragment,{children:u.map((e,i)=>{var t;return nt.exports.jsxs(pC,Object.assign({sx:{m:0,width:"100%"},component:"fieldset",variant:"standard",disabled:r},{children:[nt.exports.jsx(LC,Object.assign({component:"legend",sx:{width:"100%"}},{children:nt.exports.jsxs(be,Object.assign({className:c.titleContainer},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:c.mainTitle,"data-testid":a+"-permissions.functional-permissions.group-title","data-test":a+"-permissions.functional-permissions.group-title"},{children:null!=(t=e[0])&&t.includes(":")?e[0].slice(0,e[0].lastIndexOf(":")):e[0]})),!r&&nt.exports.jsx(ge,Object.assign({className:c.selectBtn,onClick:()=>{return r=i,n=e,C(n=>n.map((e,t)=>t!==r?e:!n[t])),g(e=>e.map((e,t)=>t!==r?e:m[r]?(h(e=>we.exports.uniq(e.filter(e=>!n.includes(e)))),e.map(()=>!1)):(s?(t=n.filter(e=>!f.includes(e)&&d.includes(e)),h([...f,...t])):h(we.exports.uniq([...f,...n])),e.map(()=>!0)))),void(o&&o(!0));var r,n},color:"primary",variant:"text","data-test":a+"-permissions.functional-permissions.save-btn"},{children:m[i]?uze("Clear",a):uze("Select",a)}))]}))})),e.length&&e.map((t,n)=>{var e;return nt.exports.jsx(AC,Object.assign({className:c.permissionsRow,"data-testid":a+"-permission-form-control-checkbox","data-test":a+"-permission-form-control-checkbox"},{children:nt.exports.jsx(xC,{className:c.formLabelStyle,labelPlacement:"start","data-testid":a+"-permission-form-control-label","data-test":a+"-permission-form-control-label",control:nt.exports.jsx(he,Object.assign({className:"aiware-el",title:s&&!d.some(e=>new RegExp(`^${e}$`,"i").test(t))&&nt.exports.jsx(Ce,{id:"admin-center-new-permission-permission-not-available-message",defaultMessage:"This permission is not {br} available in your Organization",description:"Permission not available message",values:{br:nt.exports.jsx("br",{})}}),arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"12px",fontFamily:"Nunito",fontStyle:"Normal",lineHeight:"16px",letterSpacing:"-1.30385e-09px",fontWeight:400}}},"data-testid":"admin-center-new-permission-permission-not-available-message-tool-tip","data-test":"admin-center-new-permission-permission-not-available-message-tool-tip"},{children:nt.exports.jsx(om,{name:t,value:t,id:t,size:"small",checked:Boolean(null==(e=null==p?void 0:p[i])?void 0:e[n]),color:"primary",onChange:e=>((r,n,e)=>{let i=e.target.checked,t=e.target.value;i?h(we.exports.uniq([...f,t])):h(e=>we.exports.uniq(e.filter(e=>e!==t))),g(e=>e.map((e,t)=>t!==r?e:((void 0===(t=e.map((e,t)=>t===n?i:e)).find(e=>!e)||void 0===t.find(e=>e)&&m[r])&&C(n=>n.map((e,t)=>t===r?!n[t]:e)),t))),null!=o&&o(!0)})(i,n,e),"data-testid":a+"-permissions.functional-permissions.checkbox","data-test":a+"-permissions.functional-permissions.checkbox",disabled:s&&!d.some(e=>new RegExp(`^${e}$`,"i").test(t))||r})})),label:nt.exports.jsx(pe,Object.assign({variant:"body2",className:c.checkboxLabel,"data-testid":a+"-permissions.functional-permissions.checkbox-label","data-test":a+"-permissions.functional-permissions.checkbox-label"},{children:t}))})}),t)})]}),e[0])})})},fze=((c2e=dze=dze||{}).STRING="STRING",c2e.NUMBER="NUMBER",c2e.BOOLEAN="BOOLEAN",c2e.DATE="DATE",c2e.URL="URL",c2e.JSON="JSON",c2e.UUID="UUID",c2e.OBJECT="OBJECT",c2e.DEFAULT="DEFAULT",c2e.NULL="NULL",e=>e&&e[0]?e.map((e,t)=>({index:t,values:Object.values(e)})):[]),hze=e=>e&&e[0]?Object.keys(e[0]):[],mze=(e,t)=>{if(!t)return e;var{currentPage:t,pageSize:n}=t,t=(t-1)*n;let r=t+n;return r>=e.length&&(r=e.length),e.slice(t,r)},Cze={isValidURL:e=>{try{return new URL(e),!0}catch(e){return!1}},isUUID:e=>lje(e),isBoolean:e=>"boolean"==typeof e,isNumber:e=>!1===isNaN(Number(e)),isObject:e=>e&&"object"==typeof e&&e.constructor===Object,isDate:e=>e instanceof Date&&!isNaN(null==e?void 0:e.getTime()),isDateString:e=>{e=new Date(e);return!isNaN(e.getTime())}},xze=e=>null==e||""===e?dze.NULL:Cze.isObject(e)?dze.OBJECT:Cze.isBoolean(e)?dze.BOOLEAN:Cze.isNumber(e)&&5<(""+e).length?dze.NUMBER:Cze.isDateString(e)?dze.DATE:Cze.isValidURL(e)?dze.URL:Cze.isUUID(e)?dze.UUID:dze.STRING,vze=[20,50,100],bze={pagination:{first:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.first",defaultMessage:"First",description:"JSON Table Pagination - First"}),prev:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.prev",defaultMessage:"Prev",description:"JSON Table Pagination - Prev"}),next:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.next",defaultMessage:"Next",description:"JSON Table Pagination - Next"}),rows:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.rows",defaultMessage:"Rows",description:"JSON Table Pagination - Rows"}),of:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.of",defaultMessage:"of",description:"JSON Table Pagination - of"}),many:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.many",defaultMessage:"Many",description:"JSON Table Pagination - Many"})},errors:{tableErrorTitle:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.tableTitleError",defaultMessage:"An Error occurred when displaying this data.",description:"JSON Table Error Title Message"}),tableErrorSubTitle:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.tableTitleSubError",defaultMessage:"Please try again later",description:"JSON Table Error Sub Title Message"}),headerError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.headerError",defaultMessage:"A data error occurred when attempting to display this table header.",description:"JSON Table Header Error Message"}),cellError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.cellError",defaultMessage:"Error loading cell data.",description:"JSON Table Cell Error Message"}),paginationError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.paginationError",defaultMessage:"Error displaying table pagination.",description:"JSON Table Pagination Error Message"})}},yze=()=>nt.exports.jsx(tI,Object.assign({"data-testid":"error-table-header"},{children:nt.exports.jsx(LI,{children:nt.exports.jsx(_,Object.assign({sx:{width:"100%",justifyContent:"center",alignItems:"center"}},{children:nt.exports.jsx(pe,Object.assign({noWrap:!0},{children:bze.errors.headerError}))}))})})),Aze=e=>{var t,{data:e,testId:n}=e.tableProps;return e&&e[0]?(t=e&&e[0],e=hze(e),nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(yze,{})},{children:nt.exports.jsx(tI,Object.assign({"data-testid":n+"-table-header"},{children:nt.exports.jsxs(LI,{children:[!t&&nt.exports.jsx(wze,{testId:n}),t&&nt.exports.jsx(Ize,{headerCellLabels:e,testId:n})]})}))}))):nt.exports.jsx(nt.exports.Fragment,{})},Ize=({headerCellLabels:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(me,Object.assign({sx:{userSelect:"none",pointerEvents:"none"},"data-testid":n+"-table-header-cell-"+(t+1),align:"left"},{children:e}),t))}),wze=({testId:e})=>nt.exports.jsx(me,Object.assign({"data-testid":e+"-table-header-row-loader",align:"left",colSpan:1e3},{children:nt.exports.jsx(ye,{sx:{transform:"none",height:"25px"}})})),jze=({value:e,testId:t="shared-copy-chip",ChipProps:n={},sx:r={}})=>{let[i,o]=Le.exports.useState(!1);var a={copied:nt.exports.jsx(Ce,{id:"shared-reusable-utils.copy-chip.chip-title-copied",defaultMessage:"Copied!",description:"Copy Chip tooltip label - copied"}),clickToCopy:nt.exports.jsx(Ce,{id:"shared-reusable-utils.copy-chip.chip-title-click-to-copy",defaultMessage:"Click to Copy",description:"Copy Chip tooltip label - click to copy"})};return nt.exports.jsx(he,Object.assign({disableInteractive:!0,title:i?a.copied:a.clickToCopy},{children:nt.exports.jsx(e8,Object.assign({sx:r,icon:i?nt.exports.jsx(Vde,{sx:{color:"inherit"}}):nt.exports.jsx(qde,{sx:{color:"inherit"}}),onClick:()=>{try{navigator.clipboard.writeText(e.toString()).then(()=>{o(!0),setTimeout(()=>{o(!1)},1e3)})}catch(e){}},label:e},n,{"data-testid":t}))}))},Sze={button:{"&.Mui-disabled":{backgroundColor:"transparent!important"}},chip:{color:"inherit",backgroundColor:"rgb(0 0 0 / 4%)","& svg":{opacity:.5},"&:hover svg":{opacity:1}},paper:{overflow:"hidden",boxShadow:"none!important",border:"1px solid #f2f2f2"},tableStyles:{container:e=>({"&:hover":{overflow:"auto"},"&::-webkit-scrollbar":{width:"8px !important",height:"8px !important"},"& .MuiTableHead-root":{borderBottom:"1px solid #D5DFE9",position:"sticky",top:"0",background:"#fff",boxShadow:e?"0px -5px 20px rgb(0 0 0 / 45%)":"0px -5px 20px transparent",transition:"all 0.35s ease-in-out"},"& tr .MuiChip-icon":{color:"inherit"}}),body:{"& tr:nth-child(even)":{backgroundColor:"#F8F8F8"}},row:{"&:last-child td, &:last-child th":{border:0},"&:hover td":{color:"#0a0a0a!important"},"& td":{color:"#404040",transition:"color 0.2s ease-in-out"}},cell:{border:"1px solid rgb(0 0 0 / 5%)"}}},Oze=e=>{try{return new URL(e),!0}catch(e){return!1}},kze=({value:e,testId:t="shared-url-chip",ChipProps:n={},sx:r={}})=>{n=Object.assign(Object.assign({target:"_blank"},n),{component:"a",href:e});let i=e;return Oze(e)&&(e=new URL(e),i=e.hostname),nt.exports.jsx(he,Object.assign({disableInteractive:!0,title:nt.exports.jsxs(_,Object.assign({direction:"row",alignItems:"center",gap:"5px"},{children:[nt.exports.jsx(Ce,{id:"shared-reusable-utils.url-chip.chip-title",defaultMessage:"Visit Link ",description:"URL Chip tooltip label"}),nt.exports.jsx(hue,{sx:{fontSize:"14px"}})]}))},{children:nt.exports.jsx(e8,Object.assign({sx:r,label:i,icon:nt.exports.jsx(mue,{sx:{color:"inherit"},fontSize:"small"}),clickable:!0},n,{"data-testid":t}))}))},Tze=({value:e,testId:t="shared-json-chip",ChipProps:n={},sx:r={}})=>{let[i,o]=Le.exports.useState(!1);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(e8,Object.assign({sx:r,onClick:()=>o(!0),label:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-chip.chip-title",defaultMessage:"View JSON",description:"JSON Chip label"}),icon:nt.exports.jsx(Zde,{sx:{color:"inherit"},fontSize:"small"}),clickable:!0},n,{"data-testid":t})),nt.exports.jsx(rze,{isOpen:i,onClose:()=>o(!1),title:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-chip.modal-title",defaultMessage:"JSON OBJECT",description:"JSON Chip Modal Title - JSON OBJECT"}),content:nt.exports.jsx("code",Object.assign({style:{whiteSpace:"break-spaces",background:"rgb(247, 247, 247)",display:"flex",padding:"10px 15px",boxSizing:"border-box",borderRadius:"5px",maxHeight:"100%",overflow:"auto",boxShadow:"0px 4px 5px #e4e4e4",border:"1px solid #e1e1e1"}},{children:""+JSON.stringify(e,null,4)})),labeledBy:"json-table-view-json-obj-modal-modal-title",describedBy:"json-table-view-json-obj-modal-modal-description"})]})},Eze=({value:n})=>nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(pe,Object.assign({noWrap:!0},{children:bze.errors.cellError})),onDidCatchError:(e,t)=>{console.warn("Error occurred when attempting to render cell data:",e,t),console.log("Value to render: ",n),console.log("Error: ",e),console.log("Error Info: ",t)}},{children:nt.exports.jsx(Nze,{value:n})})),Nze=({value:e})=>{let t=e;switch(xze(e)){case dze.NULL:return t="--",nt.exports.jsx(pe,Object.assign({align:"center",width:"100%"},{children:t}));case dze.OBJECT:return nt.exports.jsx(Tze,{value:t,sx:Sze.chip,ChipProps:{size:"small"}});case dze.BOOLEAN:return nt.exports.jsx(pe,Object.assign({align:"center",sx:{fontFamily:"monospace",letterSpacing:"1px",width:"100%"},fontSize:"small",noWrap:!0},{children:t?"true":"false"}));case dze.NUMBER:case dze.UUID:return nt.exports.jsx(jze,{value:t.toString(),ChipProps:{size:"small"},sx:Sze.chip});case dze.URL:return nt.exports.jsx(kze,{value:e,ChipProps:{size:"small"},sx:Sze.chip});case dze.DATE:case dze.STRING:default:return"string"!=typeof t&&(t=JSON.stringify(t)),nt.exports.jsx(pe,Object.assign({fontSize:"small",noWrap:!0},{children:t}))}},Mze=e=>{var{tableProps:e,paginationProps:t}=e,{data:n,testId:r,isLoading:i,withPagination:o}=e,a=(null==t?void 0:t.pageSize)||20,n=fze(n),t=o?mze(n,t):n,n=i||0===t.length?0:a-t.length;return nt.exports.jsxs(RA,Object.assign({size:"small","data-testid":r+"-table"},{children:[nt.exports.jsx(Aze,{tableProps:e}),nt.exports.jsxs(zA,Object.assign({"data-testid":r+"-table-body",sx:Sze.tableStyles.body},{children:[i&&nt.exports.jsx(Dze,{pageSize:a,testId:r}),!i&&nt.exports.jsx(Lze,{rows:t,testId:r}),o&&nt.exports.jsx(Rze,{rowsToGenerate:n,cellsToGenerate:(null==(e=t[0])?void 0:e.values.length)||1,testId:r})]}))]}))},Pze=({cells:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(me,Object.assign({sx:Sze.tableStyles.cell,"data-testid":n+"-table-cell-"+(t+1)},{children:nt.exports.jsx(Eze,{value:e})}),t))}),Lze=({rows:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({sx:Sze.tableStyles.row,"data-testid":n+"-table-row-"+(t+1)},{children:nt.exports.jsx(Pze,{cells:(null==e?void 0:e.values)||[],testId:n})}),t))}),Dze=({pageSize:e,testId:n})=>{e=new Array(e).fill(0);return nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({"data-testid":n+"-table-row-loader-"+(t+1)},{children:nt.exports.jsx(me,Object.assign({sx:{border:"1px solid rgb(0 0 0 / 5%)"},colSpan:1e3,"data-testid":n+"-table-column-"+(t+1)},{children:nt.exports.jsx(ye,{sx:{transform:"none",height:"25px"}})}),t)}),t))})},Rze=({rowsToGenerate:e,cellsToGenerate:t,testId:n})=>{if(e<0)return null;e=new Array(e).fill(0);let r=new Array(t).fill(0);return nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({sx:{height:33},"data-testid":n+"-table-row-spacer-"+(t+1)},{children:r.map((e,t)=>nt.exports.jsx(me,{sx:{border:"1px solid rgb(0 0 0 / 5%)"},"data-testid":n+"-table-column-spacer-"+(t+1)},t))}),t))})},Fze=e=>nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(pe,{children:bze.errors.paginationError})},{children:nt.exports.jsx(Vze,Object.assign({},e))})),Vze=e=>{let{goToPage:t,pageSize:n,currentPage:r,tableProps:i,isOnLastPage:o,totalRows:a,isNextLastPage:s,isLastPageItemCountOffset:l}=e,{isLoading:c,hasMore:d,fetchMore:u,testId:p}=i;var e=1===r?1:n*(r-1)+1,g=1!==r||d?1===r?n:n*r:(null!=a?a:0)>n?n:a,f=1===r||c,h=1===r||c,m=!d&&o||c;return nt.exports.jsxs(_,Object.assign({gap:"10px",direction:"row",alignItems:"center"},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>t(1),sx:Sze.button,variant:"text",disabled:f,"data-testid":p+"-pagination-control-first"},{children:bze.pagination.first})),nt.exports.jsx(ge,Object.assign({onClick:()=>{1!==r&&t(r-1)},sx:Sze.button,startIcon:nt.exports.jsx(Bde,{}),variant:"text",disabled:h,"data-testid":p+"-pagination-control-prev"},{children:bze.pagination.prev})),nt.exports.jsx(pe,Object.assign({variant:"caption",fontWeight:"bold","data-testid":p+"-pagination-control-page-summary"},{children:nt.exports.jsx(Bze,{isLoading:c,endRow:g,startRow:e,totalRows:a})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{d&&s&&l||d&&o?(u(),t(r+1)):(d&&!o||!d&&!o)&&t(r+1)},sx:Sze.button,variant:"text",endIcon:nt.exports.jsx(Hde,{}),disabled:m,"data-testid":p+"-pagination-control-next"},{children:bze.pagination.next}))]}))},Bze=({isLoading:e,startRow:t,endRow:n,totalRows:r})=>e?nt.exports.jsx(ye,{variant:"text",width:100}):nt.exports.jsxs(nt.exports.Fragment,{children:[bze.pagination.rows," ",t," - ",n," ",bze.pagination.of," ",r||bze.pagination.many]}),Hze=e=>{let t,n=Le.exports.useRef(null),{testId:r,data:i,withPagination:o,pageSizes:a=vze,fetchOnMount:s,fetchMore:l,hasMore:c,isLoading:d,isErrored:u,TableErrorStateProps:p={},TableEmptyStateProps:g={}}=e;var f=!d&&!c&&0===i.length;let[h,m]=Le.exports.useState(0);var[C,,]=Le.exports.useState(null!=(t=a[0])?t:0);let[x,v]=Le.exports.useState(1);let b=()=>{n.current&&m(n.current.scrollTop)};var y=c||null==i?void 0:i.length,A=Math.ceil((null==i?void 0:i.length)/C),y={currentPage:x,goToPage:e=>{v(e)},pageSize:C,tableProps:e,totalRows:y,isOnLastPage:x===A,isNextLastPage:x===A-1,isLastPageItemCountOffset:(null==i?void 0:i.length)%C!=0,lastPage:A};return Le.exports.useEffect(()=>(s&&l(),n.current&&n.current.addEventListener("scroll",b),()=>{n.current&&n.current.removeEventListener("scroll",b)}),[]),u?nt.exports.jsx(RFe,Object.assign({onRetry:l},p)):f?nt.exports.jsx(DFe,Object.assign({},g)):nt.exports.jsxs(nt.exports.Fragment,{children:[o&&nt.exports.jsx(Fze,Object.assign({},y)),nt.exports.jsx(YA,Object.assign({sx:Object.assign(Object.assign({},Sze.tableStyles.container(10<h)),Sze.paper),component:_6,ref:n,"data-testid":r+"-table-container"},{children:nt.exports.jsx(Mze,{tableProps:e,paginationProps:o?y:void 0})})),o&&nt.exports.jsx(Fze,Object.assign({},y))]})},Uze=()=>nt.exports.jsxs(_,Object.assign({sx:{width:"100%",alignItems:"center",justifyContent:"center"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:bze.errors.tableErrorTitle})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:bze.errors.tableErrorSubTitle}))]}));i2e={ColorSwatchChip:({color:t,tooltipLabel:e,TooltipProps:n,testId:r="shared-color-swatch-chip"})=>{let[i,o]=Le.exports.useState(!1);return nt.exports.jsx(he,Object.assign({placement:"right"},n||{},{title:i?nt.exports.jsx(Ce,{id:"shared-util-color-swatch-chip-copied",defaultMessage:"Copied!",description:"Shared Util Color Swatch Chip Click to copied tooltip label"}):e||nt.exports.jsx(Ce,{id:"shared-util-color-swatch-chip-click-to-copy",defaultMessage:"Click to copy",description:"Shared Util Color Swatch Chip Click to copy tooltip label"})},{children:nt.exports.jsx(l9,Object.assign({onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(t.toUpperCase()).then(e=>{o(!0),setTimeout(()=>{o(!1)},2e3)})},sx:{backgroundColor:"#ededed",borderRadius:"5px",padding:"2px 5px",width:"fit-content","&:hover":{backgroundColor:"#d2d2d2"}},"data-testid":r},{children:nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"5px"},direction:"row"},{children:[nt.exports.jsx(be,{sx:{width:"15px",height:"15px",borderRadius:"3px",border:"2px solid rgb(85, 95, 124)",backgroundColor:t}}),nt.exports.jsx(pe,Object.assign({sx:{color:"rgb(85, 95, 124)",lineHeight:"10px",fontSize:"12px",fontWeight:600}},{children:t.toUpperCase()}))]}))}))}))},URLChip:kze,JSONChip:Tze,CopyChip:jze};let zze=je()(e=>({menuItemDivider:{marginBottom:e.spacing(.5),marginTop:e.spacing(.5)}})),_ze=({menuItems:e,testId:f,disabled:t=!1,disableDividers:h,tooltipMessage:n="",AnchorElement:r,Icon:i,TooltipProps:o={},MenuProps:a={}})=>{let m=zze().classes,[s,l]=Le.exports.useState(null);var c=s?"contextMenuId-"+f:void 0,d=!!s,u=e=>{e.stopPropagation(),l(e.currentTarget)};let C=()=>{l(null)};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(he,Object.assign({},o,{title:n},{children:nt.exports.jsx("span",{children:r?nt.exports.jsx("span",Object.assign({onClick:u},{children:r})):nt.exports.jsx(ue,Object.assign({disabled:t,onClick:u,"data-testid":f+"-context-menu-button"},{children:i||nt.exports.jsx(i0e,{fontSize:"small"})}))})})),nt.exports.jsx(Pv,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"}},a,{role:"menu","data-testid":f+"-context-menu",id:c,open:d,anchorEl:s,onClose:C,onClick:e=>e.stopPropagation()},{children:e.map((e,t)=>{let{label:n,testId:r,onClick:i,icon:o,tooltipMessage:a,isDisabled:s,disabledMessage:l,divider:c,keepMenuOpenOnClick:d,MenuItemProps:u={},TooltipProps:p={}}=e;e=s||!1;let g=a||"";e&&l&&(g=l);return nt.exports.jsxs(_,{children:[0===t||h||!c?null:nt.exports.jsx(se,{className:m.menuItemDivider}),nt.exports.jsx(he,Object.assign({title:g,placement:"left"},p,{children:nt.exports.jsxs(fe,Object.assign({"data-testid":f+"-context-menu-list-item-"+r},u,{disabled:e,onClick:()=>{d||C(),i()}},{children:[o?nt.exports.jsx(rv,{children:o}):null,nt.exports.jsx(pe,Object.assign({variant:"inherit",noWrap:!0,"data-testid":f+"-context-menu-list-item-label-"+r},{children:n}))]}))}))]},f+"-menu-item-"+t)})}))]})},qze=({isOpen:e,onClose:t,logoUrl:n,buttonColor:r,buttonTextColor:i})=>{var o=()=>{t()};return nt.exports.jsx(rze,{sx:{maxHeight:"95vh"},ContainerProps:{sx:{width:"100%",padding:"15px 30px",boxSizing:"border-box",overflow:"hidden"}},isOpen:e,onClose:o,title:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-title",defaultMessage:"PREVIEW",description:"Custom Login preview modal title"}),content:nt.exports.jsxs(_,Object.assign({sx:{gap:"10px"}},{children:[nt.exports.jsxs(_,Object.assign({sx:{paddingBottom:"30px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:0}},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-description",defaultMessage:"This is how your login page will look.",description:"Custom Login preview modal description"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.text",defaultMessage:"Your custom logo will be placed here.",description:"Custom Login preview modal text"})}))]})),nt.exports.jsx(se,{sx:{marginBottom:"20px"}}),n&&nt.exports.jsx(_,Object.assign({sx:{height:"200px",width:"300px",alignItems:"center",justifyContent:"center",margin:"0 auto",border:"2px dashed rgb(213 223 233 / 69%)",borderRadius:"10px","& img":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"10px"}}},{children:nt.exports.jsx("img",{"data-testid":"shared-custom-login-preview-login-modal-logo-preview",style:{pointerEvents:"none"},draggable:!1,src:n,alt:"logo-preview"})})),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"10px",paddingBottom:"50px"}},{children:[nt.exports.jsx(be,{sx:{width:"300px",height:"40px",background:"#e4e4e4",borderRadius:"10px"}}),nt.exports.jsx(ge,Object.assign({onClick:o,"data-testid":"shared-custom-login-preview-login-modal-button-preview",variant:"contained",sx:{width:"300px",height:"40px",borderRadius:"10px",background:r+"!important",backgroundColor:r+"!important",color:i+"!important","&.MuiButton-root:not(:disabled):not(:hover)":{background:r+"!important",backgroundColor:r+"!important",color:i+"!important"}}},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-continue-button",defaultMessage:"Continue",description:"Custom Login preview modal continue button"})}))]}))]})),labeledBy:"shared-custom-login-preview-login.show-me.modal-title",describedBy:"shared-custom-login-preview-login.show-me.modal-description"})},Wze=60,Zze=i2e.ColorSwatchChip,Gze=({index:e,onEdit:t,onPreview:n,onDelete:r,buttonColor:i,buttonTextColor:o,logoUrl:a,name:s,slug:l,enabled:c,testId:d})=>{var u=Wze-1+"px",l="/"+l;return nt.exports.jsx(be,Object.assign({sx:{width:"100%",minHeight:u,borderBottom:"1px solid #D5DFE9"},"data-testid":d+"-table-row-"+e},{children:nt.exports.jsxs(W,Object.assign({"data-testid":d+"-custom-login-item",sx:{width:"100%",height:"100%",paddingLeft:"15px"},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({"data-testid":"shared-utils-custom-login-table-row-name"},{children:s}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold",padding:"2px 5px",fontSize:"small",wordBreak:"break-all"}},{children:nt.exports.jsx("span",Object.assign({"data-testid":"shared-utils-custom-login-table-row-slug"},{children:l}))}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsx(Zze,{color:i,tooltipLabel:"Button Color",testId:"shared-utils-custom-login-table-row-button-color"}),nt.exports.jsx(Zze,{color:o,tooltipLabel:"Button Text Color",testId:"shared-utils-custom-login-table-row-button-text-color"})]}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(Jze,{src:a})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(lze,{statusType:"enabledStatus",status:c?"enabled":"disabled"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(Kze,{onEdit:t,onPreview:n,onDelete:r,testId:d})}))]}))}))},Jze=({src:e})=>nt.exports.jsx(be,Object.assign({sx:{width:"80px",height:e?"50px":"",overflow:"hidden"},"data-testid":"login-table-row-logo-container"},{children:e?nt.exports.jsx("img",{draggable:!1,style:{width:"100%",height:"100%",objectFit:"contain"},src:e,alt:"logo","data-testid":"login-table-row-logo-thumbnail"}):"--"})),Kze=({onEdit:e,onPreview:t,onDelete:n,testId:r})=>{e=[{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Custom Login table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-preview",defaultMessage:"Preview",description:"Admin Center Custom Login table row context menu preview"}),onClick:t,testId:"preview",icon:nt.exports.jsx(Mue,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Custom Login table row context menu delete"}),onClick:n,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}];return nt.exports.jsx(_ze,{menuItems:e,testId:r+"-custom-login-menu"})},Yze=({title:e,description:t,onClick:n,image:r,buttonLabel:i,buttonStyle:o,ButtonProps:a={},ContainerProps:s={}})=>{i=i||nt.exports.jsx(Ce,{id:"shared-reusable-utils.emptyState.create-button",defaultMessage:"Create",description:"Shared Reusable Utils Empty State Create Button Label"});return nt.exports.jsxs(_,Object.assign({},s,{sx:Object.assign({marginTop:"50px",alignItems:"center",justifyContent:"center",gap:"10px"},null!=(s=null==s?void 0:s.sx)?s:{}),alignItems:"center"},{children:["string"==typeof r?nt.exports.jsx("img",{src:r,alt:"empty-state"}):r||nt.exports.jsx(Qze,{}),nt.exports.jsx(pe,Object.assign({variant:"h4",fontWeight:"bold","data-testid":"shared-reusable-utils-empty-state-title"},{children:e})),nt.exports.jsx(pe,Object.assign({variant:"body1","data-testid":"shared-reusable-utils-empty-state-description"},{children:t})),n&&nt.exports.jsx(ge,Object.assign({},a,{variant:o?"outlined":"contained","data-testid":"shared-reusable-utils-login-create-button",onClick:n},{children:i}))]}))};function Qze(){return nt.exports.jsxs("svg",Object.assign({width:"164",height:"144",viewBox:"0 0 164 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[nt.exports.jsx("path",{d:"M81.9533 128.571C117.531 128.571 146.372 99.7897 146.372 64.2857C146.372 28.7817 117.531 0 81.9533 0C46.3756 0 17.5342 28.7817 17.5342 64.2857C17.5342 99.7897 46.3756 128.571 81.9533 128.571Z",fill:"#EAEEF9"}),nt.exports.jsx("g",Object.assign({filter:"url(#filter0_d_62587_13624)"},{children:nt.exports.jsx("path",{d:"M141.051 26.3796V104.557C141.051 107.313 138.776 109.583 136.014 109.583H28.5639C25.8019 109.583 23.5273 107.313 23.5273 104.557V26.3796C23.5273 23.6234 25.8019 21.3535 28.5639 21.3535H136.014C138.776 21.3535 141.051 23.6234 141.051 26.3796Z",fill:"url(#paint0_linear_62587_13624)"})})),nt.exports.jsx("path",{d:"M141.051 26.3796V30.0277H23.5273V26.3796C23.5273 23.6234 25.8019 21.3535 28.5639 21.3535H136.014C138.776 21.3535 141.051 23.6234 141.051 26.3796Z",fill:"url(#paint1_linear_62587_13624)"}),nt.exports.jsx("path",{d:"M28.4722 27.2719C29.3247 27.2719 30.0156 26.5823 30.0156 25.7316C30.0156 24.881 29.3247 24.1914 28.4722 24.1914C27.6198 24.1914 26.9287 24.881 26.9287 25.7316C26.9287 26.5823 27.6198 27.2719 28.4722 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{opacity:"0.6",d:"M33.2642 27.2719C34.1165 27.2719 34.8076 26.5823 34.8076 25.7316C34.8076 24.881 34.1165 24.1914 33.2642 24.1914C32.4118 24.1914 31.7207 24.881 31.7207 25.7316C31.7207 26.5823 32.4118 27.2719 33.2642 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{opacity:"0.4",d:"M38.1382 27.2719C38.9906 27.2719 39.6816 26.5823 39.6816 25.7316C39.6816 24.881 38.9906 24.1914 38.1382 24.1914C37.2858 24.1914 36.5947 24.881 36.5947 25.7316C36.5947 26.5823 37.2858 27.2719 38.1382 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M54.093 37.874H35.1672C34.5975 37.874 34.1357 38.3345 34.1357 38.9026V41.8288C34.1357 42.3969 34.5975 42.8574 35.1672 42.8574H54.093C54.6626 42.8574 55.1244 42.3969 55.1244 41.8288V38.9026C55.1244 38.3345 54.6626 37.874 54.093 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M114.061 37.874H104.13C103.56 37.874 103.099 38.3345 103.099 38.9026V39.8355C103.099 40.4036 103.56 40.8641 104.13 40.8641H114.061C114.63 40.8641 115.092 40.4036 115.092 39.8355V38.9026C115.092 38.3345 114.63 37.874 114.061 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M130.052 37.874H120.121C119.552 37.874 119.09 38.3345 119.09 38.9026V39.8355C119.09 40.4036 119.552 40.8641 120.121 40.8641H130.052C130.622 40.8641 131.083 40.4036 131.083 39.8355V38.9026C131.083 38.3345 130.622 37.874 130.052 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M129.021 49.834H36.1986C35.0593 49.834 34.1357 50.755 34.1357 51.8911V73.6905C34.1357 74.8266 35.0593 75.7476 36.1986 75.7476H129.021C130.16 75.7476 131.084 74.8266 131.084 73.6905V51.8911C131.084 50.755 130.16 49.834 129.021 49.834Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M85.0005 59.8456C85.5891 59.8456 86.0664 59.3428 86.0664 58.7226C86.0664 58.1024 85.5891 57.5996 85.0005 57.5996C84.4117 57.5996 83.9346 58.1024 83.9346 58.7226C83.9346 59.3428 84.4117 59.8456 85.0005 59.8456Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M85.0636 67.1376H76.9315C76.407 67.1376 76.1009 66.4961 76.407 66.0837L80.4729 60.1275C80.7352 59.7609 81.2599 59.7609 81.5222 60.1275L85.5883 66.0837C85.8943 66.542 85.5883 67.1376 85.0636 67.1376Z",fill:"#989FB0"}),nt.exports.jsx("path",{opacity:"0.7",d:"M87.8944 67.0156H83.8922C83.2843 67.0156 82.9803 66.3496 83.2843 65.8886L85.2601 63.071C85.5641 62.6612 86.1214 62.6612 86.4253 63.071L88.4011 65.8886C88.8571 66.3496 88.5024 67.0156 87.8944 67.0156Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M62.0568 80.7305H36.1986C35.0593 80.7305 34.1357 81.6515 34.1357 82.7876V97.6102C34.1357 98.7464 35.0593 99.6674 36.1986 99.6674H62.0568C63.1961 99.6674 64.1197 98.7464 64.1197 97.6102V82.7876C64.1197 81.6515 63.1961 80.7305 62.0568 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M95.0388 80.7305H70.1801C69.0408 80.7305 68.1172 81.6515 68.1172 82.7876V97.6102C68.1172 98.7464 69.0408 99.6674 70.1801 99.6674H95.0388C96.1781 99.6674 97.1017 98.7464 97.1017 97.6102V82.7876C97.1017 81.6515 96.1781 80.7305 95.0388 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M129.021 80.7305H103.163C102.023 80.7305 101.1 81.6515 101.1 82.7876V97.6102C101.1 98.7464 102.023 99.6674 103.163 99.6674H129.021C130.16 99.6674 131.084 98.7464 131.084 97.6102V82.7876C131.084 81.6515 130.16 80.7305 129.021 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M117.027 22.9238H48.1918C47.0525 22.9238 46.1289 23.8448 46.1289 24.981V25.8501C46.1289 26.9862 47.0525 27.9072 48.1918 27.9072H117.027C118.166 27.9072 119.09 26.9862 119.09 25.8501V24.981C119.09 23.8448 118.166 22.9238 117.027 22.9238Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M143.296 105.089C143.098 105.385 142.999 105.581 142.604 105.777L138.06 107.646C137.369 107.941 136.678 108.334 136.183 108.826C135.689 109.318 135.294 109.809 135.195 110.498L133.318 115.021C133.121 115.709 132.33 116.005 131.837 115.709C131.639 115.513 131.343 115.414 131.343 115.218L122.551 95.9438C122.353 95.6488 122.353 95.2555 122.551 95.0587C122.748 94.7637 123.242 94.5671 123.736 94.7637L143.098 103.516C143.296 103.91 143.493 104.598 143.296 105.089Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M146.655 116.889C146.458 116.889 146.359 116.889 146.162 116.693L139.839 110.301C139.543 110.006 139.543 109.416 139.839 109.318C140.135 109.023 140.728 109.023 140.827 109.318L147.149 115.612C147.446 115.906 147.446 116.496 147.149 116.595C147.149 116.889 146.853 116.889 146.655 116.889Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M140.235 116.889C140.037 116.889 139.938 116.889 139.741 116.693L136.875 113.841C136.579 113.546 136.579 112.956 136.875 112.858C137.172 112.563 137.764 112.563 137.863 112.858L140.729 115.709C141.025 116.005 141.025 116.595 140.729 116.693C140.729 116.889 140.63 116.889 140.235 116.889Z",fill:"#989FB0"}),nt.exports.jsxs("defs",{children:[nt.exports.jsxs("filter",Object.assign({id:"filter0_d_62587_13624",x:"1.52734",y:"10.3535",width:"161.523",height:"132.229",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},{children:[nt.exports.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),nt.exports.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),nt.exports.jsx("feOffset",{dy:"11"}),nt.exports.jsx("feGaussianBlur",{stdDeviation:"11"}),nt.exports.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),nt.exports.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_62587_13624"}),nt.exports.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_62587_13624",result:"shape"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint0_linear_62587_13624",x1:"82.2506",y1:"19.3127",x2:"82.2506",y2:"110.534",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{stopColor:"#FDFEFF"}),nt.exports.jsx("stop",{offset:"0.9964",stopColor:"#ECF0F5"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint1_linear_62587_13624",x1:"136.389",y1:"21.3535",x2:"27.3523",y2:"26.497",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{stopColor:"#B0BACC"}),nt.exports.jsx("stop",{offset:"1",stopColor:"#969EAE"})]}))]})]}))}let Xze=({title:e,description:t,onConfirm:n,isOpen:r,onClose:i,testId:o,DialogActions:a,cancelLabel:s,confirmLabel:l,DialogProps:c={},DialogTitleProps:d={}})=>{s=s||nt.exports.jsx(Ce,{id:"confirm-dialog-button-cancel",defaultMessage:"Cancel",description:"Confirm Dialog button cancel"}),l=l||nt.exports.jsx(Ce,{id:"confirm-dialog-button-confirm",defaultMessage:"Confirm",description:"Confirm dialog button confirm"}),a=a||nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ge,Object.assign({onClick:i,"data-testid":o+"-confirm-dialog-button-go-back"},{children:s})),nt.exports.jsx(ge,Object.assign({autoFocus:!0,variant:"contained",onClick:()=>{i(),n()},"data-testid":o+"-confirm-dialog-button-confirm-delete"},{children:l}))]});return nt.exports.jsxs(Lm,Object.assign({},c,{open:r,onClose:i,"aria-labelledby":o+"-confirm-dialog-title","aria-describedby":o+"-confirm-dialog-description","data-testid":o+"-confirm-dialog"},{children:[nt.exports.jsx(Qm,Object.assign({},d,{id:o+"-confirm-dialog-title"},{children:e})),nt.exports.jsx(qm,{children:nt.exports.jsx(Jm,Object.assign({id:o+"-confirm-dialog-description"},{children:t}))}),nt.exports.jsx(Vm,{children:a})]}))},$ze=()=>nt.exports.jsxs(W,Object.assign({"data-testid":"custom-login-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-name",defaultMessage:"Name",description:"Shared Custom Login Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-slug",defaultMessage:"Slug",description:"Shared Custom Login Table header column slug"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-colors",defaultMessage:"Colors",description:"Shared Custom Login Table header column colors"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-logo",defaultMessage:"Logo",description:"Shared Custom Login Table header column logo"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-status",defaultMessage:"Status",description:"Shared Custom Login Table header column status"})}))})),nt.exports.jsx(W,{item:!0,xs:2})]})),e_e=je()((e,t,n)=>({engineIconContainer:{background:"#EEF3F9",padding:"3px",borderRadius:"5px",marginRight:"3px",maxWidth:"20px",maxHeight:"20px",verticalAlign:"middle",display:"flex"},iconWrapper:{position:"relative",["&:hover > ."+n.enginesList]:{display:"block !important"},display:"flex",alignItems:"center"},tooltipCatName:{color:"white",paddingLeft:"5px",fontWeight:"900"},engineIcon:{width:"14px",height:"14px"},enginesList:{background:"rgba(0,0,0,.75)",padding:e.spacing(.6),borderRadius:"5px",marginRight:e.spacing(.6),position:"absolute",top:20,left:0,display:"none"},tooltipDivider:{marginTop:"3px"},enginesUL:{padding:"0 7px 0 20px",margin:"3px 0 !important",color:"white",overflow:"hidden",whiteSpace:"nowrap","& *":{color:"white"}},tooltipIcon:{fill:"white",width:"12px",height:"12px"},tooltipCatIconWrapper:{display:"flex",alignItems:"center",paddingLeft:"3px"},moreDivider:{borderTop:"2px solid white",marginBottom:"9px",marginTop:"6px"},moreIcon:{width:"12px",height:"12px"}})),t_e=e=>void 0!==e&&e?C4e[e]:null,n_e=e=>null==(e=null==(e=null==(e=null==e?void 0:e.engine)?void 0:e.category)?void 0:e.name)?void 0:e.replace(/[^a-zA-Z]/g,""),r_e=(e,t,n)=>t.length?nt.exports.jsxs(be,{children:[nt.exports.jsxs(be,Object.assign({className:n.tooltipCatIconWrapper},{children:[nt.exports.jsx(ex,{component:t_e(e),className:n.tooltipIcon}),nt.exports.jsx(pe,Object.assign({variant:"caption",className:n.tooltipCatName},{children:e}))]})),nt.exports.jsx(se,{className:n.tooltipDivider}),nt.exports.jsx("ul",Object.assign({className:n.enginesUL},{children:t.map(e=>nt.exports.jsx("li",{children:nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:e}))},e))}))]}):null,i_e=({tasks:e,iconsToRender:r=3,showMore:i=!1})=>{let n=e_e().classes;if(!e||!e.length||e.find(e=>!e.engine))return nt.exports.jsx(pe,Object.assign({variant:"caption",sx:{color:"black"}},{children:"N/A"}));e=e.filter(e=>{e=n_e(e);return t_e(e)});let o={},a={};return e&&e.forEach(e=>{var t,n=n_e(e);Object.keys(o).length<r?(n&&!o[n]&&(o[n]=[]),n&&null!=(t=null==e?void 0:e.engine)&&t.name&&o[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)):i&&(n&&!a[n]&&(a[n]=[]),n)&&null!=(t=null==e?void 0:e.engine)&&t.name&&a[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)}),nt.exports.jsxs(nt.exports.Fragment,{children:[Object.keys(o).map(e=>nt.exports.jsx(be,Object.assign({className:n.engineIconContainer},{children:nt.exports.jsxs(be,Object.assign({className:n.iconWrapper},{children:[nt.exports.jsx(ex,{component:t_e(e),className:n.engineIcon},e),nt.exports.jsx(be,Object.assign({className:n.enginesList},{children:r_e(e,o[e],n)}))]}))}),e)),0<Object.keys(a).length&&nt.exports.jsxs(be,Object.assign({className:n.iconWrapper},{children:[nt.exports.jsx(r0e,{className:n.moreIcon}),nt.exports.jsx(be,Object.assign({className:n.enginesList},{children:Object.keys(a).map((e,t)=>nt.exports.jsxs(be,{children:[r_e(e,a[e],n),t<Object.keys(a).length-1&&nt.exports.jsx(se,{className:n.moreDivider})]},e+"-"+t))}))]}))]})},o_e=e=>{function*t(e){if(!g.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{};for(t of Object.keys(r)){var i=yield D(r[t]);t,i}var o=yield L(g.create,{apiConfigs:n,itemToCreate:e.payload});yield P(u.actions.createSucceeded(o)),s&&(yield P(F({content:s.create.success,severity:R.Success})))}catch(e){yield P(u.actions.createFailed(null)),s&&(yield P(F({content:s.create.error,severity:R.Error})))}}function*n(e){if(!g.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var t,n=e.payload,r=yield D(YG),i=yield D(p.selectOffset),o=yield D(p.selectSearchValue),a={},s=yield D(p.selectFilters),l=(a.filters=s,g.getAdditionalSelectors?g.getAdditionalSelectors():{});for(t of Object.keys(l)){var c=yield D(l[t]);a[t]=c}var d=yield L(g.read,{apiConfigs:r,offset:i,limit:f,payload:n,searchValue:o,additionalSelectors:a});yield P(u.actions.readSucceeded(d.filter(e=>null!==e))),d.length>=f?yield P(u.actions.setHasMore(!0)):yield P(u.actions.setHasMore(!1)),yield P(u.actions.setOffset(i+f))}catch(e){yield P(u.actions.readFailed(null))}}function*r(e){if(!g.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(g.update,{apiConfigs:n,itemToUpdate:e.payload,additionalSelectors:i});yield P(u.actions.updateSucceeded(a)),s&&(yield P(F({content:s.update.success,severity:R.Success})))}catch(e){yield P(u.actions.updateFailed(null)),s&&(yield P(F({content:s.update.error,severity:R.Error})))}}function*i(e){if(!g.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(g.delete,{apiConfigs:n,itemToDelete:e.payload,additionalSelectors:i});yield P(u.actions.deleteSucceeded(a)),yield P(u.actions.resetList(null)),yield P(u.actions.readStart(null)),s&&(yield P(F({content:s.delete.success,severity:R.Success})))}catch(e){yield P(u.actions.deleteFailed(null)),s&&(yield P(F({content:s.delete.error,severity:R.Error})))}}let o,{slice:u,selectors:p,apiCalls:g}=e,f=g.pageSize||30,s=null!=(o=null==e?void 0:e.toast)&&o;return{watchCreate:function*(){yield $u(u.actions.createStart,t)},watchRead:function*(){yield $u(u.actions.readStart,n)},watchUpdate:function*(){yield $u(u.actions.updateStart,r)},watchDelete:function*(){yield $u(u.actions.deleteStart,i)}}},a_e=e=>{function*t(e){if(!c.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{};for(t of Object.keys(r)){var i=yield D(r[t]);t,i}var o=yield L(c.create,{apiConfigs:n,item:e.payload});yield P(l.actions.createSucceeded(o)),s&&(yield P(F({content:s.create.success,severity:R.Success})))}catch(e){yield P(l.actions.createFailed()),s&&(yield P(F({content:s.create.error,severity:R.Error})))}}function*n(e){if(!c.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var t,n=e.payload,r=yield D(YG),i=c.getAdditionalSelectors?c.getAdditionalSelectors():{},o={};for(t of Object.keys(i)){var a=yield D(i[t]);o[t]=a}var s=yield L(c.read,{apiConfigs:r,payload:n,additionalSelectors:o});yield P(l.actions.readSucceeded(s))}catch(e){yield P(l.actions.readFailed())}}function*r(e){if(!c.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(c.update,{apiConfigs:n,item:e.payload,additionalSelectors:i});yield P(l.actions.updateSucceeded(a)),s&&(yield P(F({content:s.update.success,severity:R.Success})))}catch(e){yield P(l.actions.updateFailed()),s&&(yield P(F({content:s.update.error,severity:R.Error})))}}function*i(e){if(!c.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(c.delete,{apiConfigs:n,item:e.payload,additionalSelectors:i});yield P(l.actions.deleteSucceeded(a)),s&&(yield P(F({content:s.delete.success,severity:R.Success})))}catch(e){yield P(l.actions.deleteFailed(null)),s&&(yield P(F({content:s.delete.error,severity:R.Error})))}}let{slice:l,apiCalls:c}=e,s=(null==e?void 0:e.toast)||!1;return{watchCreate:function*(){yield o(l.actions.createStart,t)},watchRead:function*(){yield o(l.actions.readStart,n)},watchUpdate:function*(){yield o(l.actions.updateStart,r)},watchDelete:function*(){yield o(l.actions.deleteStart,i)}}},s_e=({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i})=>{let o=e=>i?i(e):r?e[r]:e[n][t];return{selectHasMore:e=>o(e).hasMore,selectItems:e=>o(e).items,selectOffset:e=>o(e).currentOffset,selectCreateStatus:e=>o(e).createStatus,selectReadStatus:e=>o(e).readStatus,selectUpdateStatus:e=>o(e).updateStatus,selectDeleteStatus:e=>o(e).deleteStatus,selectSearchValue:e=>o(e).searchValue,selectFilters:e=>o(e).filters}},l_e=e=>{let{sliceName:t,namespace:n,dedupeResponse:r,customReduxNamespace:i}=e,o=e.dedupeIdProp||"id";e={createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",currentOffset:0,hasMore:!0,items:[],filters:[],searchValue:""};return{slice:LT({name:i||t+"/"+n,initialState:e,reducers:{createStart(e,t){e.createStatus="pending"},createSucceeded(e,t){e.items.push(t.payload),e.createStatus="idle"},createFailed(e){e.createStatus="failure"},readStart(e){e.readStatus="pending"},readSucceeded(n,e){e.payload.forEach(t=>{var e;!r||-1===(e=n.items.findIndex(e=>t[o]===e[o]))?n.items.push(t):n.items[e]=t}),n.readStatus="idle"},readFailed(e){e.readStatus="failure"},updateStart(e,t){e.updateStatus="pending"},updateSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items[n]=Object.assign(Object.assign({},e.items[n]),t.payload):console.warn("Couldn't replace existing item with updated version in redux state",t.payload),e.updateStatus="success"},updateFailed(e){e.updateStatus="failure"},updateResetStatus(e){e.updateStatus="idle"},deleteStart(e,t){e.deleteStatus="pending"},deleteSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items.splice(n,1):console.warn("Couldn't remove deleted item from redux state",t.payload),e.deleteStatus="success"},deleteFailed(e){e.deleteStatus="failure"},deleteResetStatus(e){e.deleteStatus="idle"},setHasMore(e,t){e.hasMore=t.payload},setOffset(e,t){e.currentOffset=t.payload},resetList(e){e.items=[],e.currentOffset=0,e.hasMore=!0},setFilter(e,t){var n=e.filters.findIndex(e=>e.type===t.payload.type);-1===n?e.filters.push(t.payload):0===t.payload.values.length?e.filters.splice(n,1):e.filters[n].values=t.payload.values},clearFilters(e){e.filters=[]},setSearchValue(e,t){e.searchValue=t.payload},clearSearchValue(e){e.searchValue=""}}}),initialState:e}},c_e=e=>Object.assign(Object.assign({},e),{createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",item:{}}),d_e={delete:{success:"Successfully deleted",error:"Failed to delete"},create:{success:"Successfully created",error:"Failed to create"},update:{success:"Successfully updated",error:"Failed to update"}},u_e=e=>{var{sliceName:t,namespace:n,dedupeResponse:r,dedupeIdProp:i,apiCalls:o,customReduxNamespace:a,overrideSelectorBase:s}=e,l="boolean"==typeof e.toast?d_e:"object"==typeof e.toast?{delete:Object.assign(Object.assign({},d_e.delete),null!=(l=null==(l=e.toast)?void 0:l.delete)?l:{}),create:Object.assign(Object.assign({},d_e.create),null!=(l=null==(l=e.toast)?void 0:l.create)?l:{}),update:Object.assign(Object.assign({},d_e.update),null!=(e=null==(l=e.toast)?void 0:l.update)?e:{})}:void 0,{slice:e,initialState:r}=l_e({sliceName:t,namespace:n,dedupeResponse:r,dedupeIdProp:i,customReduxNamespace:a}),i=s_e({namespace:n,sliceName:t,customReduxNamespace:a,overrideSelectorBase:s});return{slice:e,selectors:i,sagas:o_e({slice:e,selectors:i,apiCalls:o,toast:l}),initialState:r}};var p_e,g_e,f_e,n2e=e=>{var{sliceName:t,namespace:n,apiCalls:r,customReduxNamespace:i,overrideSelectorBase:o,additionalState:a={}}=e,s="boolean"==typeof e.toast?d_e:"object"==typeof e.toast?{delete:Object.assign(Object.assign({},d_e.delete),null!=(s=null==(s=e.toast)?void 0:s.delete)?s:{}),create:Object.assign(Object.assign({},d_e.create),null!=(s=null==(s=e.toast)?void 0:s.create)?s:{}),update:Object.assign(Object.assign({},d_e.update),null!=(e=null==(s=e.toast)?void 0:s.update)?e:{})}:void 0,{slice:e,initialState:l}=(({sliceName:e,namespace:t,customReduxNamespace:n,additionalState:o})=>{var r=c_e(o);let a=(e,i="")=>Object.entries(e).reduce((e,[t,n])=>{let r=i?i+"."+t:t;"object"==typeof n&&null!==n&&Object.assign(e,a(n,r));t=r.split(".").map((e,t)=>0===t?e.charAt(0).toUpperCase()+e.slice(1):e).join(".");return e["set"+t]=(e,t)=>{s(e,r,t.payload)},e["reset"+t]=e=>{s(e,r,o[r])},e},{}),s=(e,t,n)=>{var r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++)i[r[e]]||(i[r[e]]={}),i=i[r[e]];t=r[r.length-1];i[t]="object"==typeof n&&null!==n?Object.assign(Object.assign({},i[t]),n):n};var i=a(o);return{slice:LT({name:n||e+"/"+t,initialState:r,reducers:Object.assign({createStart:e=>{e.createStatus="pending"},createSucceeded:(e,t)=>{e.item=t.payload,e.createStatus="idle"},createFailed:e=>{e.createStatus="failure"},readStart:e=>{e.readStatus="pending"},readSucceeded:(e,t)=>{e.item=t.payload,e.readStatus="idle"},readFailed:e=>{e.readStatus="failure"},updateStart:e=>{e.updateStatus="pending"},updateSucceeded:(e,t)=>{e.item=Object.assign(Object.assign({},e.item),t.payload),e.updateStatus="success"},updateFailed:e=>{e.updateStatus="failure"},updateResetStatus:e=>{e.updateStatus="idle"},deleteStart:e=>{e.deleteStatus="pending"},deleteSucceeded:e=>{e.item={},e.deleteStatus="success"},deleteFailed:e=>{e.deleteStatus="failure"},deleteResetStatus:e=>{e.deleteStatus="idle"},resetItem:e=>{e.item={}}},i)}),initialState:r}})({sliceName:t,namespace:n,customReduxNamespace:i,additionalState:a}),n=(({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i,additionalState:e})=>{let a=e=>i?i(e):r?e[r]:e[n][t];var o={selectItem:e=>a(e).item,selectCreateStatus:e=>a(e).createStatus,selectReadStatus:e=>a(e).readStatus,selectUpdateStatus:e=>a(e).updateStatus,selectDeleteStatus:e=>a(e).deleteStatus};let s=(e,o="")=>Object.entries(e).reduce((e,[t,n])=>{var r=t.charAt(0).toUpperCase()+t.slice(1);let i=o?o+"."+t:t;return e["select"+r]=e=>{e=a(e);return i.split(".").reduce((e,t)=>e[t],e)},"object"!=typeof n||null===n||Array.isArray(n)||(t=s(n,i),e=Object.assign(Object.assign({},e),t)),e},{});e=e?s(e):{};return Object.assign(Object.assign({},o),e)})({namespace:n,sliceName:t,customReduxNamespace:i,overrideSelectorBase:o,additionalState:a});return{slice:e,selectors:n,sagas:a_e({slice:e,selectors:n,apiCalls:r,toast:s}),initialState:l}};let h_e=e=>{TL("production","development")&&console.log(e)},m_e=({id:e,required:t,type:n,value:r,onChange:i,error:o=!1})=>nt.exports.jsx(gw,{id:e,sx:{width:"100%"},InputLabelProps:{shrink:!0},autoComplete:"off",required:t,value:r,type:n||"",onChange:i,size:"small",error:o}),C_e=({id:e,value:t,required:n,options:r,onChange:i,error:o=!1})=>nt.exports.jsx(Gb,Object.assign({id:e,required:n,value:null!=t?t:null,onChange:i,variant:"outlined",style:{width:"100%"},error:o,inputProps:{name:e,id:e},sx:{width:"100%"}},{children:null==r?void 0:r.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.value))})),x_e=({id:e,values:t,required:n,options:r,onChange:i,error:o=!1})=>{var a={PaperProps:{style:{maxHeight:224,width:250}}};return nt.exports.jsx(Gb,Object.assign({id:e,required:n,value:t,multiple:!0,onChange:i,variant:"outlined",error:o,input:nt.exports.jsx(ix,{id:"select-multiple-chip-"+e}),renderValue:e=>nt.exports.jsx("div",{children:null==e?void 0:e.map(e=>nt.exports.jsx(e8,{style:{marginRight:6},label:e},e))}),MenuProps:a},{children:null==r?void 0:r.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.key))}))},v_e=((r2e=p_e=p_e||{}).Number="Number",r2e.Picklist="Picklist",r2e.MultiPicklist="MultiPicklist",r2e.Text="Text",r2e.SchemaSelection="SchemaSelection",(e="")=>E5e(e)),b_e=e=>{var{required:e,value:t,min:n,max:r,type:i,values:o}=e;if(U5e(i===p_e.MultiPicklist?o:t))return e?"This field can't be blank!":"";if(i===p_e.Number){if(fje(n)&&Number(t)<n)return"The value can't be lower than "+n.toFixed(2);if(fje(r)&&Number(t)>r)return"The value can't be higher than "+r.toFixed(2)}return""},y_e=je()(e=>({formControlWrapper:{marginTop:15},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},inputLabelError:{color:e.palette.error.main}})),A_e=({fields:e,onChange:s,showErrors:l=!1})=>{let c=y_e().classes;return nt.exports.jsx(nt.exports.Fragment,{children:null==(e=e)?void 0:e.map((t,e)=>{var n=v_e((null==t?void 0:t.name)||""),r=`engine-configuration-input--${null==t?void 0:t.name}-idx-`+e,i=e=>{s({fieldName:null==t?void 0:t.name,fieldValue:e.target.value})};let o;var a=!!b_e(t)&&l;switch(null==t?void 0:t.type){case p_e.Picklist:o=nt.exports.jsx(C_e,{id:r,label:n,required:null==t?void 0:t.required,options:null==t?void 0:t.options,value:null==t?void 0:t.value,onChange:i,error:a});break;case p_e.Text:o=nt.exports.jsx(m_e,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",onChange:i,error:a});break;case p_e.Number:o=nt.exports.jsx(m_e,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",type:"number",onChange:i,error:a});break;case p_e.MultiPicklist:o=nt.exports.jsx(x_e,{id:r,label:null==t?void 0:t.name,required:null==t?void 0:t.required,options:null==t?void 0:t.options,values:(null==t?void 0:t.values)||[],onChange:i,error:a});break;default:return null}return nt.exports.jsxs(pC,Object.assign({error:a,size:"small",className:c.formControlWrapper},{children:[nt.exports.jsx("label",Object.assign({htmlFor:r,className:c.inputLabel+" "+(a&&c.inputLabelError)},{children:n})),o,a&&nt.exports.jsx(kC,{children:b_e(t)})]}),r)})})},I_e=({ticketId:e,boxProps:t={},height:n=void 0,width:r=void 0,label:i})=>{var o=e=>{if(e)return"number"==typeof e?e+"px":e};return nt.exports.jsx(be,Object.assign({style:{background:"#f7f7f7",border:"1px solid #ebebeb",borderRadius:"10px",margin:"5px",padding:"5px 0px",height:o(n),width:o(r)}},t,{children:nt.exports.jsxs(_,Object.assign({height:"100%",gap:"2px",alignItems:"center",justifyContent:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:"5px",alignItems:"center",justifyContent:"center",direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({sx:{color:"#0052cc",fontWeight:"500",fontFamily:"system-ui"},align:"center",variant:"subtitle2"},{children:i})),nt.exports.jsx(w_e,{})]})),nt.exports.jsx(he,Object.assign({title:"Open Ticket in JIRA"},{children:nt.exports.jsx(ge,Object.assign({target:"_blank",href:"https://veritone.atlassian.net/browse/AWT-"+e,size:"small"},{children:nt.exports.jsxs(_,Object.assign({gap:"5px",alignItems:"center",justifyContent:"center",direction:"row"},{children:[nt.exports.jsx(j_e,{}),nt.exports.jsxs(pe,Object.assign({sx:{fontFamily:"system-ui",fontWeight:"500"},variant:"caption",align:"center"},{children:["AWT-",e]}))]}))}))}))]}))}))},w_e=()=>nt.exports.jsx("div",{children:nt.exports.jsx("span",Object.assign({style:{fontSize:"10px",fontWeight:"bold",background:"#dfe1e6",color:"#42526e",borderRadius:"3px",padding:"0px 5px",pointerEvents:"none",userSelect:"none",fontFamily:"system-ui"}},{children:"TODO"}))}),j_e=()=>nt.exports.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1"},{children:[nt.exports.jsx("defs",{}),nt.exports.jsx("g",Object.assign({stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},{children:nt.exports.jsx("g",{children:nt.exports.jsxs("g",Object.assign({transform:"translate(1.000000, 1.000000)"},{children:[nt.exports.jsx("rect",{fill:"#63BA3C",x:"0",y:"0",width:"14",height:"14",rx:"2"}),nt.exports.jsx("path",{d:"M9,3 L5,3 C4.448,3 4,3.448 4,4 L4,10.5 C4,10.776 4.224,11 4.5,11 C4.675,11 4.821,10.905 4.91,10.769 L4.914,10.77 L6.84,8.54 C6.92,8.434 7.08,8.434 7.16,8.54 L9.086,10.77 L9.09,10.769 C9.179,10.905 9.325,11 9.5,11 C9.776,11 10,10.776 10,10.5 L10,4 C10,3.448 9.552,3 9,3",id:"Page-1",fill:"#FFFFFF"})]}))})}))]})),S_e={customColorInput:{colorPickerTitle:()=>nt.exports.jsx(Ce,{id:"customize-button-title",defaultMessage:"Customize Colors",description:"Customize Colors title"}),colorPickerDescription:()=>nt.exports.jsx(Ce,{id:"customize-button-description",defaultMessage:"Change the primary and secondary color of the login and sign up pages to match your brand.",description:"Customize Colors description"}),resetToDefault:()=>nt.exports.jsx(Ce,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"})}},O_e=["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"],k_e=({buttonColor:r,buttonTextColor:i,isButtonColorRequired:o=!1,onChangeButtonColor:t,onChangeTextColor:n,onValidationCheck:a,onReset:e})=>{let[s,l]=Le.exports.useState(""),[c,d]=Le.exports.useState(""),u=(Le.exports.useEffect(()=>{var e=/^#([0-9A-Fa-f]{3}){1,2}$/.test(r),t=/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(i),n=(l(e||0===r.length?"":"Invalid hex color format"),d(t||0===i.length?"":"Invalid hex color format"),t&&e);a&&a(n&&(!o||e&&t))},[i,r]),Le.exports.useCallback(e=>{t(e)},[t]));return nt.exports.jsxs(_,Object.assign({sx:{position:"relative"}},{children:[nt.exports.jsx(_,Object.assign({direction:"row",spacing:2,sx:{marginTop:"22px"}},{children:O_e.map(e=>nt.exports.jsx(T_e,{id:e,color:e,isActive:r===e,onClick:()=>u(e)},e))})),nt.exports.jsxs(_,Object.assign({direction:"row",spacing:2,sx:{marginTop:"18px"}},{children:[nt.exports.jsx(gw,{required:!0,id:"shared-reusable-utils-login-btnColor","data-testid":"shared-reusable-utils-login-btnColor",autoComplete:"off",label:"Button Color",variant:"outlined",value:r,onChange:e=>{e=e.target.value;t(e)},error:0<s.length,helperText:s,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}}),nt.exports.jsx(gw,{required:!0,id:"shared-reusable-utils-login-login-btnTextColor","data-testid":"shared-reusable-utils-login-input-btnTextColor",autoComplete:"off",label:"Button Text Color",variant:"outlined",value:i,onChange:e=>{e=e.target.value;n(e)},error:0<c.length,helperText:c,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}})]})),nt.exports.jsx(ge,Object.assign({"data-testid":"shared-reusable-utils-login-reset-color-button",variant:"text",size:"small",sx:{marginLeft:0,marginTop:"5px",width:"130px"},onClick:()=>{e()}},{children:nt.exports.jsx(pe,Object.assign({sx:{fontWeight:600,fontSize:"14px"}},{children:S_e.customColorInput.resetToDefault()}))}))]}))},T_e=({id:e,color:t,isActive:n,onClick:r})=>nt.exports.jsx(he,Object.assign({TransitionComponent:t7,title:t,placement:"top"},{children:nt.exports.jsx(l9,Object.assign({id:e,"data-testid":t,sx:{"&:hover":{transform:n?"scale(1)":"scale(0.9)"},transition:"transform 0.2s ease-in-out",backgroundColor:t,width:"30px",height:"30px",borderRadius:"4px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:r},{children:n&&nt.exports.jsx(Fde,{sx:{color:"white"}})}))})),E_e={buttonPreview:{buttonPreview:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.button-preview-heading",defaultMessage:"Button Preview",description:"Button Preview heading"}),buttonPreviewDescription:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.button-preview-text",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Preview text description"}),resetToDefault:()=>nt.exports.jsx(Ce,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"}),continueButton:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.show-me.modal-continue-button",defaultMessage:"Continue",description:"Instance Login show me modal continue button"})}},N_e=({buttonColor:e,buttonTextColor:t})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(ibe,{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:E_e.buttonPreview.buttonPreview()})),nt.exports.jsx(pe,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:E_e.buttonPreview.buttonPreviewDescription()}))]}),nt.exports.jsx(ge,Object.assign({fullWidth:!0,variant:"contained",color:"primary",disableTouchRipple:!0,sx:{background:e+"!important",backgroundColor:e+"!important",color:t+"!important","&.MuiButton-root:not(:disabled):not(:hover)":{background:e+"!important",backgroundColor:e+"!important",color:t+"!important"},border:"1px solid "+e,height:"56px",width:"368px",fontSize:"18px",fontWeight:600,flexShrink:0,marginTop:"20px"}},{children:E_e.buttonPreview.continueButton()}))]});function M_e(){let[p,e]=Le.exports.useState(!1);var t=Le.exports.useCallback(()=>{e(!p)},[p]),n=Le.exports.useCallback(()=>{e(!0)},[]);let g=Le.exports.useCallback(()=>{e(!1)},[]);var r=Le.exports.useMemo(()=>{let l={vertical:"bottom",horizontal:"center"},c={vertical:"top",horizontal:"center"},d={vertical:"top",horizontal:"right"},u={vertical:"top",horizontal:"left"};return Me.forwardRef((e,t)=>{var{children:n,anchorRef:r,anchorPosition:i,anchorOrigin:o,transformOrigin:a,submenu:s}=e,e=XRe(e,["children","anchorRef","anchorPosition","anchorOrigin","transformOrigin","submenu"]),o=s?null!=o?o:d:null!=o?o:l,s=s?null!=a?a:u:null!=a?a:c;return nt.exports.jsx(Pv,Object.assign({},e,{ref:t,anchorEl:r.current,open:p,onClose:g,anchorPosition:i,anchorOrigin:o,transformOrigin:s,style:{pointerEvents:p?"auto":"none"}},{children:n}))})},[p,g]);return[{toggleMenu:t,openMenu:n,closeMenu:g},p,r]}let P_e=e=>{let t=Ie();return Le.exports.useEffect(()=>(t(OY(!0)),e&&t(kY(e)),()=>{t(OY(!1))}),[]),null},L_e='"_POTENTIAL_PAIR_KEY_": "_POTENTIAL_PAIR_VALUE_"',D_e='"_POTENTIAL_ITEM_"',R_e=e=>{try{return JSON.parse(e)}catch(e){return null}},F_e=e=>!(0<e.length)||null!==R_e(e),V_e=(e,t)=>{t=t?e.replace(/,\s*([\]}])/g,"$1"):e;try{return JSON.stringify(JSON.parse(t),null,2)}catch(e){return null}},B_e=(e,t,n)=>V_e(""+e+n+t,!1)||V_e(""+e+n+t,!0),H_e=(e,t)=>{let n=t.reduce((e,t)=>-1===e?t:e,-1);-1!==n&&setTimeout(()=>{e.focus(),e.selectionStart=n,e.selectionEnd=n,e.setSelectionRange(n,n)},0)},U_e=(e,t)=>({pre:t.substring(0,e.selectionStart),post:t.substring(e.selectionStart)}),z_e=(e,t,n,r)=>{var i=e.split("\n");return 0!==i.length&&n.test(i=i[i.length-1])?B_e(e.substring(0,e.length-i.length),t,i.replace(n,r)):null},__e=(e,t)=>{var n=/^\s*([{]?)([a-z0-9_-]+)(.*)$/,r=/^\s*([a-z0-9_-]+)\s*:\s*([a-z0-9_-]+[,]?)$/,i=/^\s*([a-z0-9_-]+)([,]?)$/;return B_e(e,t,`
1180
+ `,operationName:"getUrl",variables:e},r)),t=e.getSignedWritableUrl.url,n={method:"PUT",headers:{"Content-Type":i.type,"X-Veritone-Application":"aiware-sdk"},body:i};try{return yield fetch(t,n),e.getSignedWritableUrl}catch(e){throw console.log(e),e}})}var iFe,m4e=Object.freeze({__proto__:null,getImageURL:rFe}),o4e=Object.freeze({__proto__:null,ImageUpload:({handleChange:i,getUrl:t,image:e,fileTypes:n="image/*",maxFileSize:o=5,maxImageSize:r,disabled:a=!1,testId:s,outerHeight:l="160px",outerWidth:c="160px",outerBorder:d="1px dashed #D5DFE9",outerRadius:u="5px",innerHeight:p="150px",innerWidth:g="150px",innerBorder:f="none",innerRadius:h="5px",innerBackground:m="rgba(247, 247, 247, 0.8)",uploadIconBackground:C,uploadBackgroundRadius:x,uploadBackgroundWidthHeight:v,uploadIconColor:b="#555F7C",uploadIconWidthHeight:y="30px",uploadCustomIcon:A,deleteBackgroundWidthHeight:I="42px",deleteIconBackground:R="rgba(0, 0, 0, 0.25)",deleteIconBackgroundRadius:F="50%",deleteIconColor:V="#FFF",deleteIconWidthHeight:w="24px"})=>{let j=Le.exports.useRef(null),[S,O]=Le.exports.useState(e),[k,T]=Le.exports.useState(!1),[E,N]=Le.exports.useState(void 0),B=Ae(YG),{maxWidth:M,maxHeight:P}=(Le.exports.useEffect(()=>{O(e)},[e]),r||{}),H=e=>{let t=n.split(", ");return(t=t.includes("image/*")?t.concat(["image/png","image/jpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/tiff"]):t).includes(e.type)};let L=n=>{if(n)if(H(n))if(n.size>1048576*o)r=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-filesize",defaultMessage:"Exceeds the file size limit of {maxFileSize}MB",values:{maxFileSize:o},description:"Error message file size"}),N(r);else{if(M&&P){var r=new Image;let t=URL.createObjectURL(n);r.src=t,r.onload=function(){var e;this.naturalWidth>M&&this.naturalHeight>P?(e=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-imagesize",defaultMessage:"Image size exceeds the limit",description:"Error message image size"}),N(e),URL.revokeObjectURL(t),D()):URL.revokeObjectURL(t)}}let e=new FileReader;e.onloadend=()=>$Re(void 0,void 0,void 0,function*(){O(e.result),N(void 0),t?yield U(n):i(n)}),e.readAsDataURL(n)}else r=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message-filetype",defaultMessage:"Filetype not accepted",description:"Error message file size"}),N(r)},U=e=>$Re(void 0,void 0,void 0,function*(){try{var t=yield rFe(B,e);i(t)}catch(e){t=nt.exports.jsx(Ce,{id:"reusable-image-uploader-error-message",defaultMessage:"Error getting the Image Url",description:"Error message Image Url"});N(t),O(void 0),console.error("Error getting URL:",e)}}),D=()=>{O(void 0),i("");var e=document.getElementById("reusable-fileinput");e&&(e.value="")};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(be,Object.assign({className:"image-uploader-"+(S?"active":"inactive"),onClick:()=>!S&&!a&&void(j.current&&j.current.click()),sx:{display:"flex",justifyContent:"center",alignItems:"center",height:l,width:c,border:d,borderRadius:u,transition:"border-color 0.25s ease","&.image-uploader-inactive:hover":{cursor:"pointer",borderColor:"#0C53B0"},"&.image-uploader-inactive:hover .image-uploader-inner-box":{backgroundColor:"rgba(228, 240, 252, 0.8)"},"&.image-uploader-inactive:hover svg.svg-upload-icon path":{fill:"#0C53B0"}}},{children:nt.exports.jsxs(be,Object.assign({"data-test":"resusable-image-uploader-inner-box-"+s,className:"image-uploader-inner-box",onDrop:e=>{e.preventDefault(),T(!1),a||(e=e.dataTransfer.files[0],L(e))},onDragLeave:e=>{e.preventDefault(),T(!1)},onDragOver:e=>{e.preventDefault(),T(!0)},sx:{position:"relative",backgroundColor:m,height:p,width:g,border:k?"2px solid #1871E8":f,borderRadius:h,display:"flex",justifyContent:"center",alignItems:"center",transition:"background-color 0.25s ease"}},{children:[nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-error-"+s,style:{position:"absolute",top:"5%",left:"50%",width:"95%",transform:"translate(-50%, -5%)",textAlign:"center",pointerEvents:"none"}},{children:nt.exports.jsx(Ty,Object.assign({in:!!E},{children:nt.exports.jsx(e8,{sx:{background:"white",pointerEvents:"none"},label:nt.exports.jsx(pe,Object.assign({sx:{color:"inherit",fontWeight:"bold"},variant:"caption"},{children:E})),variant:"outlined",color:"error",icon:nt.exports.jsx(eue,{})})}))})),S&&nt.exports.jsx("img",{"data-test":"resusable-image-uploader-image-"+s,style:{maxWidth:"100%",maxHeight:"100%",borderRadius:h},alt:"uploader",src:S}),!S&&nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-upload-image-background-"+s,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",backgroundColor:C,borderRadius:x,width:v,height:v,minWidth:y,minHeight:y}},{children:A||nt.exports.jsx("svg",Object.assign({className:"svg-upload-icon","data-test":"resusable-image-uploader-upload-image-icon-"+s,version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:y,height:y},{children:nt.exports.jsx("path",{fill:k?"#1871E8":b,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))})),S&&!a&&nt.exports.jsx(be,Object.assign({"data-test":"resusable-image-uploader-delete-background-"+s,onClick:()=>!a&&D(),sx:{position:"absolute",bottom:"0px",right:"0px",height:I,width:I,minWidth:w,minHeight:w,backgroundColor:R,borderRadius:F,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer","&:hover":{opacity:.8}}},{children:nt.exports.jsx(Lue,{"data-test":"resusable-image-uploader-delete-"+s,sx:{color:V,fontSize:w}})}))]}))})),nt.exports.jsx("input",{id:"reusable-fileinput",disabled:a,type:"file",accept:n,ref:j,style:{display:"none"},onChange:e=>{e.target.files&&0<e.target.files.length&&(e=e.target.files[0],L(e))}})]})}});let oFe=je()(e=>({backButton:{background:"none",color:"black",marginRight:"20px",":hover":{background:"#D3D3D3"}},root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%"},expand:{marginTop:"-20px"},fullScreen:{position:"fixed",width:"100%",height:"100vh",overflow:"auto",top:0,left:0,right:0,bottom:0},fullScreenButton:{marginTop:"-50px !important"},tabs:{"& .MuiTabs-indicator":{backgroundColor:"black",color:"black"},"& .Mui-selected":{color:"black"}},bottomButtons:{marginTop:"20px"},markdown:{height:"100% !important",background:"#303841"},previewMarkdown:{height:"100% !important",position:"relative",padding:"20px !important",background:"#303841"},previewMarkdownContent:{background:"white",padding:"15px",borderRadius:"3px"}})),aFe=je()(e=>({checked:{color:"#6098D1"},rootSelectedForm:{padding:"0px !important"},rootSelectForm:{padding:"10px !important","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},itemIconsRow:{position:"absolute",top:"0px"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},optionNameRow:{marginLeft:"50px"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px !important",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"},ul:{listStyle:"none"},selectedDescription:{fontSize:"12px",marginBottom:"10px"},classSelectedBox:{padding:"20px 32px",textOverflow:"wrap",fontSize:"12px",whiteSpace:"initial",wordWrap:"break-word",border:"1px solid "+e.palette.divider,borderTop:"none",lineHeight:"16px"},inputSelectCaption:{fontSize:"12px",fontWeight:600,marginTop:"16px",marginBottom:"11px"},inputSelect:{width:"228px",fontWeight:400,fontSize:"14px"},textInput:{paddingLeft:"15px",paddingTop:"12px",paddingBottom:"12px",fontWeight:400,fontSize:"14px"},selectionName:{marginLeft:"20px"},selectionDescription:{paddingLeft:"60px",marginTop:"-10px",fontSize:"12px"},icon:{textAlign:"center",height:"1rem !important",margin:"0 3px"}})),sFe=({className:e,helpLink:t,sx:n})=>{let r=Ie();var i=Ae(AG);let o=XW(i);return nt.exports.jsx(Z6e,{className:e,onClick:()=>{Y6e(window,"aiware.helpCenter.openDocsPanel")?(window.aiware.helpCenter.openDocsPanel(t,!1),setTimeout(()=>{window.aiware.helpCenter.openDocsPanel(t,!1)},0)):r(F({content:o({id:"os-engine-center-new.snackbar.helpCenterUnavailable",defaultMessage:[{type:0,value:"Help Center is not currently available."}]}),severity:R.Warning}))},sx:n,style:{cursor:"pointer"},color:"secondary"})},lFe=({testName:e,title:t,description:n,helpLink:r})=>{var i=aFe().classes;return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(pe,Object.assign({"data-test":e+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:[t,!Lhe(r)&&nt.exports.jsx(sFe,{className:i.icon,helpLink:r})]})),nt.exports.jsx(pe,Object.assign({"data-test":e+"-description",className:i.helperDescription},{children:n}))]})};(s4e=iFe=iFe||{})[s4e.CAPTURING_MODE=0]="CAPTURING_MODE",s4e[s4e.NON_CAPTURE_MODE=1]="NON_CAPTURE_MODE";let cFe={margin:"0",padding:"10px 0 !important",borderRadius:"0",resize:"none",fontSize:"1em !important",fontFamily:"Nunito, lucida console, courier new, courier, monospace",lineHeight:"1.6em !important",outline:"none",boxSizing:"border-box",whiteSpace:"nowrap","&:focus-visible":{outline:"none"},"& textarea":{lineHeight:"2em !important",whiteSpace:"pre"}},dFe=je()(e=>({codeEditor:we.exports.merge(we.exports.cloneDeep(cFe),{paddingLeft:"calc(3rem + 10px) !important",width:"100%",backgroundColor:"#303841",borderColor:"#303841",color:"#ffffff !important",caretColor:"#FFBB0A"}),lineCounter:we.exports.merge(we.exports.cloneDeep(cFe),{display:"block",borderColor:"#4F565E",overflowY:"hidden",boxShadow:"none",color:"#9CA8B4 !important",backgroundColor:"#4F565E",position:"absolute !important",width:"3rem !important",paddingRight:".625rem !important",top:0,left:0,bottom:0,minHeight:"100%",pointerEvents:"none","& textarea":{textAlign:"right",fontWeight:"600 !important"}})})),uFe=({value:e,name:t,onChange:n})=>{let r=Le.exports.useRef();var i,o=Le.exports.useRef(),a=Le.exports.useRef(null),s=dFe().classes,l=(i=e,Le.exports.useMemo(()=>{var e=we.exports.size(we.exports.split(i,"\n"));return we.exports.map(new Array(e),(e,t)=>t+1).join("\n")},[i])),[c,d]=(({inputRef:o,onChange:a})=>{let[s,l]=Le.exports.useState(iFe.NON_CAPTURE_MODE);return[e=>{var t=e.key;if(o&&!we.exports.isNil(o.current)){var{value:n,selectionStart:r,selectionEnd:i}=o.current;switch(t){case"Tab":return void(s===iFe.CAPTURING_MODE&&(e.preventDefault(),we.exports.isNil(r)||we.exports.isNil(i)||(o.current.value=n.slice(0,r)+"\t"+n.slice(i),o.current.setSelectionRange(r+1,r+1)),a(e)));case"Escape":return void l(iFe.NON_CAPTURE_MODE);case"m":return void(e.ctrlKey&&l(s===iFe.CAPTURING_MODE?iFe.NON_CAPTURE_MODE:iFe.CAPTURING_MODE));case"Shift":return;default:l(iFe.CAPTURING_MODE)}}},e=>{l(iFe.CAPTURING_MODE)}]})({inputRef:a,onChange:n});return nt.exports.jsxs(be,Object.assign({position:"relative",padding:0,margin:0,width:"100%"},{children:[nt.exports.jsx(f8,{"data-test":"input-type-markdown-code-editor",name:t,ref:o,inputRef:a,className:s.codeEditor,onScroll:e=>{we.exports.isNil(r.current)||(r.current.scrollTop=e.currentTarget.scrollTop,r.current.scrollLeft=e.currentTarget.scrollLeft)},onKeyDown:c,onChange:e=>{n(e)},onClick:d,spellCheck:!1,value:e,multiline:!0}),nt.exports.jsx(f8,{"data-test":"input-type-markdown-line-numbers",ref:r,className:s.lineCounter,spellCheck:!1,value:l,multiline:!0,readOnly:!0})]}))};var pFe,l4e=Object.freeze({__proto__:null,Markdown:({onValidate:e,data:t,idPrefix:n,title:r,description:i,handleChange:o})=>{let a=oFe().classes,[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState(!1),u=(Le.exports.useEffect(()=>{e&&e(!0)},[]),(e,t)=>{l(Number(t))}),p=()=>{d(!c)};return nt.exports.jsx("div",Object.assign({"data-test":n+".use-cases-step-parent-container",className:c?Zhe(a.root,a.panel,a.fullScreen):"",style:{height:"100%"}},{children:nt.exports.jsxs("div",Object.assign({className:a.container,"data-test":n+".use-cases-container"},{children:[nt.exports.jsx(be,Object.assign({padding:5,paddingBottom:0},{children:nt.exports.jsx(lFe,{title:nt.exports.jsx(Ce,{id:"markdown.use-cases-title",defaultMessage:"{title}",description:"label for use case title",values:{title:r}}),description:nt.exports.jsx(Ce,{id:"markdown.use-cases-description",defaultMessage:"{description}",description:"label for use case description",values:{description:i}}),testName:n+".use-cases"})})),nt.exports.jsxs(be,Object.assign({"data-test":n+"-tabs-list",padding:4,paddingTop:0,paddingBottom:1},{children:[nt.exports.jsxs(lw,Object.assign({className:a.tabs,value:s,onChange:u,"aria-label":"icon label tabs example"},{children:[nt.exports.jsx(NA,{"data-test":n+".use-cases-step-markdown-tab",label:nt.exports.jsx(Ce,{id:"markdown.use-cases-step-markdown-tab-label",defaultMessage:"Markdown",description:"tab label: Markdown"})}),nt.exports.jsx(NA,{"data-test":n+".use-cases-step-preview-tab",label:nt.exports.jsx(Ce,{id:"markdown.use-cases-step-preview-tab-label",defaultMessage:"Preview",description:"tab label: Preview"})})]})),nt.exports.jsx(be,Object.assign({display:"flex",justifyContent:"flex-end"},{children:nt.exports.jsx(he,Object.assign({title:c?nt.exports.jsx(Ce,{id:"markdown-use-cases-exit-fullscreen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):nt.exports.jsx(Ce,{id:"markdown-use-cases-enter-fullscreen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:nt.exports.jsx(ue,Object.assign({onClick:p,className:a.fullScreenButton,"data-test":n+".use-cases-step-fullscreen-toggle",size:"large"},{children:c?nt.exports.jsx(Cpe,{}):nt.exports.jsx(mpe,{})}))}))}))]})),nt.exports.jsxs(be,Object.assign({flexGrow:1},{children:[nt.exports.jsx(x6e,Object.assign({value:s,index:0},{children:nt.exports.jsx("div",Object.assign({className:a.markdown},{children:nt.exports.jsx(uFe,{value:t,onChange:o})}))})),nt.exports.jsx(x6e,Object.assign({value:s,index:1},{children:nt.exports.jsx("div",Object.assign({className:a.previewMarkdown},{children:nt.exports.jsx("div",Object.assign({className:!t||t.length<=0?"":a.previewMarkdownContent},{children:nt.exports.jsx(fCe,{children:t})}))}))}))]}))]}))}))}});let gFe=je()(e=>({rootSelectedForm:{padding:"0 4px 0 0 !important"},rootSelectForm:{padding:"10px","&:hover":{background:"#F7F7F7"}},iconStyle:{marginRight:"5px"},iconComponent:{top:"20px"},iconBackground:{display:"inline-block",height:"32px",borderRadius:"32px",width:"32px",background:"#F2F5F9",marginRight:"15px",paddingLeft:"8px",paddingTop:"6px",marginLeft:"5px"},itemIcons:{verticalAlign:"middle"},iconBackgroundSelected:{display:"inline-block",height:"25px",borderRadius:"25px",width:"25px",minHeight:"25px",minWidth:"25px",background:e.palette.primary.main,marginRight:"15px",paddingLeft:"7px",paddingTop:"7px",marginLeft:"15px"},helperDescription:{fontSize:"14px",marginBottom:"20px"},menuItem:{width:"958px",padding:"10px",whiteSpace:"initial",height:"fit-content",borderBottom:"0.5px solid "+e.palette.divider,borderRadius:"0px"},optionName:{marginLeft:"0px",textAlign:"left",verticalAlign:"top"},summary:{fontSize:11,textTransform:"none",width:"900px"},selectForm:{width:"250px",fontWeight:"bold",fontSize:"18px"},selectedForm:{background:"#FAFAFA",width:"960px",fontWeight:"bold",fontSize:"18px"},selectedName:{textTransform:"capitalize",background:"#EEF3F9",width:"auto",height:"56px",lineHeight:"56px",fontWeight:"bold"}})),fFe=({message:e})=>{let t="This field is required";return U5e(e)||(t=e),nt.exports.jsx(Ce,{id:"os-engine-center-new.errorMessage",defaultMessage:"{errorMessage}",description:"Error message",values:{errorMessage:t}})},hFe=e=>{var{disabled:n,name:t,rules:r,variant:i="outlined",children:o,className:a,callFieldOnChange:s=!0,onChange:l,fullWidth:c=!1}=e,d=XRe(e,["disabled","name","rules","variant","children","className","callFieldOnChange","onChange","fullWidth"]),e=LCe().control;return nt.exports.jsx(JCe,{control:e,name:t,rules:r,render:({field:t,fieldState:{error:e}})=>nt.exports.jsxs(pC,Object.assign({disabled:n,className:a,variant:i,error:!Lhe(e),fullWidth:c},{children:[nt.exports.jsx(Gb,Object.assign({},t,d,{onChange:e=>{s&&t.onChange(e),null!=l&&l(e)}},{children:o})),e&&r&&nt.exports.jsx(kC,{children:fFe(e)})]}))})},mFe=({dataTestPrefix:e,handleSelectFormValue:t,selectionItems:n,iconType:r,selectPlaceholder:i,selectIcon:o,selectedItem:a,selectFormName:s})=>{let l=gFe().classes,c=LCe();return nt.exports.jsx("div",Object.assign({className:a?l.selectedForm:l.selectForm},{children:nt.exports.jsx(pC,Object.assign({fullWidth:!0,variant:"outlined"},{children:nt.exports.jsx(hFe,Object.assign({name:s,rules:{required:!0},displayEmpty:!0,"data-test":e+"-select-form",IconComponent:()=>nt.exports.jsx($3e,{className:l.iconStyle}),classes:a?{select:l.rootSelectedForm,icon:l.iconComponent}:{select:l.rootSelectForm},defaultValue:(e=U5e(a)?"":a,c.setValue(s,e),e),onChange:e=>{e=null==e?void 0:e.target.value,e=n[e];c.setValue(s,e),c.trigger(s),null!=t&&t(e)},onClick:()=>c.trigger(s),renderValue:e=>e?nt.exports.jsxs("div",Object.assign({className:l.selectedName},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackgroundSelected},className:l.itemIcons,component:(null==a?void 0:a.selectedIconName)&&(null==r?void 0:r[a.selectedIconName])||"span"}),Gfe(a,"formattedName")||Gfe(a,"name")]})):nt.exports.jsxs(pe,Object.assign({variant:"h6"},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackground},className:l.itemIcons,component:o}),i]}))},{children:n&&Phe(WP(n),e=>{var t;return nt.exports.jsxs(fe,Object.assign({disabled:"marketplace"===e,className:l.menuItem,"data-test":(null==(t=n[e])?void 0:t.value)||e,value:(null==(t=n[e])?void 0:t.value)||e},{children:[nt.exports.jsx(ex,{classes:{root:l.iconBackground},className:l.itemIcons,component:(null==(t=null==n?void 0:n[e])?void 0:t.iconName)&&r[(null==(t=n[e])?void 0:t.iconName)||""]||"span"}),nt.exports.jsxs(W,Object.assign({className:l.optionName,xs:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:(null==(t=n[e])?void 0:t.formattedName)||(null==(t=n[e])?void 0:t.name)})),nt.exports.jsx(pe,Object.assign({className:l.summary},{children:null==(t=n[e])?void 0:t.description}))]}))]}),(null==(t=n[e])?void 0:t.value)||e)})}))}))}))};(i4e=pFe=pFe||{}).Private="private",i4e.OrgLocked="org_locked",i4e.Sharable="sharable",i4e.Public="public",i4e.Marketplace="marketplace",i4e.InstanceLocked="instance_locked";a4e=Object.freeze({__proto__:null,DistributionTypes:({handleSelectType:e,selectedType:t,description:n,idPrefix:r,inputName:i,commonName:o="engine"})=>{var a=gFe().classes;let s={private:{formName:"distributionType",name:"Private",formattedName:"Private",iconName:"Private",selectedIconName:"PrivateWhite",shortDescription:`Your ${o} will not be distributed and is private to your instance.`,description:`Your ${o} will not be distributed and is private to your instance.`,value:pFe.Private,link:""},org_locked:{formName:"distributionType",name:"Org Locked",formattedName:"Org Locked",iconName:"OrgLocked",selectedIconName:"OrgLockedWhite",shortDescription:`Your ${o} will only be distributed to instances within your organization.`,description:`Your ${o} will only be distributed to instances within your organization.`,value:pFe.OrgLocked,link:""},sharable:{formName:"distributionType",name:"Sharable",formattedName:"Sharable",iconName:"Sharable",selectedIconName:"SharableWhite",shortDescription:`Your ${o} can be distributed to other organizations on any instance.`,description:`Your ${o} can be distributed to other organizations on any instance.`,value:pFe.Sharable,link:""},public:{formName:"distributionType",name:"Public",formattedName:"Public",iconName:"Public",selectedIconName:"PublicWhite",shortDescription:`Your ${o} will be distributed to all instances in and outside of your organization.`,description:`Your ${o} will be distributed to all instances in and outside of your organization.`,value:pFe.Public,link:""},instance_locked:{formName:"distributionType",name:"Instance locked",formattedName:"Instance locked",iconName:"InstanceLocked",selectedIconName:"InstanceLockedWhite",shortDescription:`Your ${o} will be sharable to other organizations on your instance only.`,description:`Your ${o} will be sharable to other organizations on your instance only.`,value:"instance_locked",link:""},marketplace:{formName:"distributionType",name:"Marketplace",formattedName:"Marketplace",iconName:"Marketplace",selectedIconName:"MarketplaceWhite",shortDescription:"Coming soon...",description:"Coming soon...",value:pFe.Marketplace,link:""}};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({"data-test":r+"-title",style:{fontWeight:"bold"},variant:"h5"},{children:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-title",defaultMessage:"Distribution Types",description:"Form label for distribution types",values:{idPrefix:r}})})),nt.exports.jsx(pe,Object.assign({"data-test":r+"-description",className:a.helperDescription},{children:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-description",defaultMessage:"{description}",description:"Add Distribution Types for Engines | Hub",values:{idPrefix:r,description:n||"Add Distribution Types for Engines | Hub."}})})),nt.exports.jsx(mFe,{selectFormName:i||"engineFlag",selectionItems:s,iconType:y4e,selectIcon:Xue,selectPlaceholder:nt.exports.jsx(Ce,{id:"{idPrefix}.distribution-type-generic-select-placeholder",defaultMessage:"Instance Locked",description:"Placeholder for distribution type",values:{idPrefix:r}}),dataTestPrefix:r+".distribution-type",handleSelectFormValue:e,selectedItem:U5e(t)?null:eve(s,{value:t})})]})}});let CFe=(e,t)=>({clearButtonLabel:e.formatMessage({id:"reusable-utils.filters.clear-button-label",defaultMessage:[{type:0,value:"Clear"}]}),statusFilterLabel:e.formatMessage({id:"reusable-utils.filters.status-label",defaultMessage:[{type:0,value:"Status"}]}),allLabel:e.formatMessage({id:"reusable-utils.filters.all-placeholder",defaultMessage:[{type:0,value:"All"}]}),okButtonLabel:e.formatMessage({id:"reusable-utils.filters.ok-button-label",defaultMessage:[{type:0,value:"OK"}]}),dateRangeFilterDefaultValueLabel:e.formatMessage({id:"reusable-utils.filters.any-time-label",defaultMessage:[{type:1,value:"days"},{type:0,value:" days"}]},{days:t||void 0}),userFilterLabel:e.formatMessage({id:"reusable-utils.filters.jobs.user-label",defaultMessage:[{type:0,value:"Email"}]})});p4e=Object.freeze({__proto__:null,StatusFilter:({entity:t,status:n,setFilterValue:e,filterLabel:r,defaultPlaceholder:i,clearBtnLabel:o,clearAndApply:a})=>{var s="job"===t?["pending","running","complete","cancelled"]:["pending","running","complete","queued","accepted","failed","cancelled","standby_pending","waiting","resuming","aborted","paused"];let[l,c]=Le.exports.useState([]),d=tFe().classes;var u=lW();let p=Ie(),{statusFilterLabel:g,allLabel:f,clearButtonLabel:h}=CFe(u);Le.exports.useEffect(()=>{c(e=>0===e.length&&null===n||e.length===(null==n?void 0:n.length)?e:n||[])},[n]);return nt.exports.jsxs(pC,Object.assign({size:"small",className:d.formControl},{children:[nt.exports.jsxs(be,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx("label",Object.assign({className:d.label},{children:r||g})),0<l.length&&nt.exports.jsx("span",Object.assign({onClick:()=>{c([]),p(e({filter:"status",value:[]})),a&&a()},className:d.clearButton},{children:o||h}))]})),nt.exports.jsx(Gb,Object.assign({multiple:!0,displayEmpty:!0,value:l,onChange:e=>{c(e.target.value)},onClose:()=>{p(e({filter:"status",value:l}))},variant:"outlined",renderValue:e=>{var t;return 0===e.length?nt.exports.jsx("div",{children:i||f}):(t=e.length,nt.exports.jsx(he,Object.assign({title:e.join(", "),className:d.title},{children:nt.exports.jsx("span",Object.assign({className:d.title},{children:1===t?e[0]:t+" Statuses"}))})))},className:d.selectField,"data-test":t+"s-filter-status-input"},{children:s.map(e=>nt.exports.jsx(fe,Object.assign({value:e,"data-test":t+"s-filter-status-input-option","data-value":e},{children:e.replace("_"," ")}),e))}))]}))}});function xFe(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}function vFe(i){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&i.formattingValues?(r=i.defaultFormattingWidth||i.defaultWidth,n=null!=t&&t.width?String(t.width):r,i.formattingValues[n]||i.formattingValues[r]):(n=i.defaultWidth,r=null!=t&&t.width?String(t.width):i.defaultWidth,i.values[r]||i.values[n]);var n,r=i.argumentCallback?i.argumentCallback(e):e;return t[r]}}function bFe(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],i=e.match(i);return i?(t=i[0],i=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(i)?((e,t)=>{for(var n=0;n<e.length;n++)if(t(e[n]))return n})(i,function(e){return e.test(t)}):((e,t)=>{for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n})(i,function(e){return e.test(t)}),i=o.valueCallback?o.valueCallback(r):r,{value:i=n.valueCallback?n.valueCallback(i):i,rest:e.slice(t.length)}):null}}function yFe(i){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(i.matchPattern);return r&&(r=r[0],t=e.match(i.parsePattern))?(t=i.valueCallback?i.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var AFe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u4e={date:xFe({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:xFe({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},IFe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f4e={ordinalNumber:function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:vFe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:vFe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},VU={ordinalNumber:yFe({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:bFe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},wFe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},HU={date:xFe({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:xFe({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jFe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},SFe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},uX={ordinalNumber:function(e,t){return Number(e)+"º"},era:vFe({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:vFe({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},J$={ordinalNumber:yFe({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:bFe({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},OFe={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Xee={date:xFe({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:xFe({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:xFe({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kFe={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"};let TFe={en:{code:"en-US",formatDistance:function(e,t,n){e=AFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatLong:u4e,formatRelative:function(e,t,n,r){return IFe[e]},localize:f4e,match:VU,options:{weekStartsOn:0,firstWeekContainsDate:1}},fr:{code:"fr",formatDistance:function(e,t,n){e=OFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",String(t));return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"dans "+e:"il y a "+e:e},formatLong:Xee,formatRelative:function(e,t,n,r){return kFe[e]},localize:{ordinalNumber:function(e,t){e=Number(e),t=null==t?void 0:t.unit;return 0===e?"0":e+(1===e?t&&["year","week","hour","minute","second"].includes(t)?"ère":"er":"ème")},era:vFe({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:vFe({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:vFe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:vFe({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:vFe({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:yFe({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:bFe({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:bFe({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:bFe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:bFe({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:bFe({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},es:{code:"es",formatDistance:function(e,t,n){e=wFe[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"en "+e:"hace "+e:e},formatLong:HU,formatRelative:function(e,t,n,r){return(1!==t.getUTCHours()?SFe:jFe)[e]},localize:uX,match:J$,options:{weekStartsOn:1,firstWeekContainsDate:1}}},EFe=e=>void 0===e?e:new Date(e);MQ=Object.freeze({__proto__:null,DateRangeFilter:({entity:e="jobs",dateTimeFilter:t,setFilterValue:n,locale:r="en",dateRangeLimit:i=90,clearAndApply:o,shouldDispatchActions:a=!0})=>{let[s,l]=Le.exports.useState(!1),[c,d]=Le.exports.useState({startDate:EFe(t.fromDateTime),endDate:EFe(t.toDateTime)});var u=lW();let p=Ie();var g=tFe().classes;let f=Math.floor(i);var{okButtonLabel:i,clearButtonLabel:h,dateRangeFilterDefaultValueLabel:m}=CFe(u,f),C=()=>{var e=n({filter:"dateTimeFilter",value:{fromDateTime:null==(e=c.startDate)?void 0:e.toISOString(),toDateTime:null==(e=c.endDate)?void 0:e.toISOString(),field:"createdDateTime"}});a&&p(e),l(!1)},x=()=>{var e=n({filter:"dateTimeFilter",value:{field:"createdDateTime"}});a&&p(e),o&&o(),d({}),l(!1)},u=t.fromDateTime||t.toDateTime?u.formatDate(t.fromDateTime)+" - "+u.formatDate(t.toDateTime):m;return nt.exports.jsxs(pC,Object.assign({size:"small",className:g.formControl},{children:[nt.exports.jsxs(be,Object.assign({sx:{display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx("label",Object.assign({htmlFor:e+"-filter-date-range",className:g.label},{children:nt.exports.jsx(Ce,{id:"reusable-utils.filter-range-label",defaultMessage:"Date/time",description:"label for the jobs filter date range picker"})})),(t.fromDateTime||t.toDateTime)&&nt.exports.jsx("span",Object.assign({className:g.clearButton,onClick:x,"data-testid":"date-time-filter.clear-btn"},{children:h}))]})),nt.exports.jsx("div",Object.assign({id:e+"-filter-date-range","data-test":e+"-filter-date-range-display",className:g.dateRangeDisplay,onClick:()=>{d({startDate:EFe(t.fromDateTime),endDate:EFe(t.toDateTime)}),l(!0)}},{children:u})),nt.exports.jsxs(Lm,Object.assign({open:s,disableEscapeKeyDown:!0,onClose:C,maxWidth:"md"},{children:[nt.exports.jsx(qm,Object.assign({"data-test":e+"-filter-date-range-dialog-content"},{children:nt.exports.jsx(pC,Object.assign({variant:"standard"},{children:nt.exports.jsx(gbe,Object.assign({dateAdapter:mwe,adapterLocale:TFe[r]},{children:nt.exports.jsxs(W,Object.assign({container:!0,spacing:3},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-start-calendar"},{children:nt.exports.jsx(Tye,{date:c.startDate||null,onChange:e=>{let t=e;null!=t&&t.setHours(0,0,0,0),d(({endDate:e})=>{e=e||new Date;return t&&e.getTime()>t.getTime()+864e5*f&&e.setTime(t.getTime()+864e5*f),{startDate:t||void 0,endDate:e}})},maxDate:c.endDate||new Date,defaultCalendarMonth:c.startDate})})),nt.exports.jsx(W,Object.assign({item:!0,xs:12,md:6,"data-test":e+"-filter-date-range-end-calendar"},{children:nt.exports.jsx(Tye,{date:c.endDate||null,onChange:e=>{let t=e;null!=t&&t.setHours(23,59,59),d(e=>Object.assign(Object.assign({},e),{endDate:t||void 0}))},maxDate:new Date,disabled:!c.startDate,defaultCalendarMonth:c.endDate})}))]}))}))}))})),nt.exports.jsxs(Vm,Object.assign({"data-test":e+"-filter-date-range-dialog-actions"},{children:[nt.exports.jsx(ge,Object.assign({"data-test":e+"-filter-date-range-dialog-clear-button",onClick:x},{children:h})),nt.exports.jsx(ge,Object.assign({"data-test":e+"-filter-date-range-dialog-ok-button",onClick:C},{children:i}))]}))]}))]}))}});let NFe=e=>{let[t,n]=Le.exports.useState(!0);var r=e=>nt.exports.jsxs(_,Object.assign({direction:"row",spacing:1,justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({sx:{width:"50%"}},{children:[nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold"}},{children:null==e?void 0:e.label})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:null==e?void 0:e.description}))]})),nt.exports.jsx(be,Object.assign({sx:{display:"grid",placeItems:"center",fontSize:"20px",fontWeight:"bold",color:"#0c53b0"}},{children:null==e?void 0:e.value}))]}));return nt.exports.jsx(be,Object.assign({sx:{position:"absolute",bottom:"0",right:"0",border:"2px solid #d7d7d7",margin:"25px",marginTop:"0",marginRight:"50px",boxSizing:"border-box",background:"#fff",borderRadius:"10px",boxShadow:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",display:"flex",flexDirection:"column",padding:"10px 30px"}},{children:nt.exports.jsxs(_,Object.assign({width:"100%",spacing:2,divider:nt.exports.jsx(se,{})},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",sx:{gap:"10px"},pt:"10px",pb:"10px",justifyContent:"space-between"},{children:[nt.exports.jsx(()=>nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",background:"#e9f3fd",padding:"5px",borderRadius:"7px",color:"#0b53b0",gap:"5px",paddingRight:"10px"},direction:"row"},{children:[nt.exports.jsx(Eue,{}),nt.exports.jsx(pe,Object.assign({align:"center",variant:"h2"},{children:"TableInfiniteScroll"}))]})),{}),nt.exports.jsx(ije,Object.assign({variant:"outlined",onClick:null==e?void 0:e.fetchMore,loading:null==e?void 0:e.isLoading},{children:"Fetch More Items"})),nt.exports.jsx(()=>nt.exports.jsxs(be,Object.assign({onClick:()=>n(e=>!e),sx:{width:"40px",display:"grid",placeItems:"center",color:"gray","&:hover":{background:"#f7f7f7",cursor:"pointer",borderRadius:"5px",color:"black"}}},{children:[!t&&nt.exports.jsx(rue,{}),t&&nt.exports.jsx(iue,{})]})),{})]})),t&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(r,{label:"isLoading",value:null!=e&&e.isLoading?nt.exports.jsx(pe,Object.assign({color:"green"},{children:"Loading More"})):"false"}),nt.exports.jsx(r,{label:"hasMore",description:"Are there more items to fetch from the server?",value:null!=e&&e.hasMore?"true":"false"}),nt.exports.jsx(r,{label:"offset",description:"This is the next GraphQL page starting offset",value:null==e?void 0:e.offset}),nt.exports.jsx(r,{label:"items.length",description:"Total amount of items fetched",value:null==e?void 0:e.items.length}),nt.exports.jsx(r,{label:"itemHeight",description:"This is the Pixel height of each row",value:`${null==e?void 0:e.itemHeight}px`}),nt.exports.jsx(r,{label:"Header Component",description:"Is a component passed as a header?",value:null!=e&&e.hasHeader?"true":"false"}),(null==e?void 0:e.hasHeader)&&nt.exports.jsx(r,{label:"adjustTableHeight",description:"If including a header, you need to adjust the container height with this prop.",value:`${null==e?void 0:e.adjustTableHeight}px`}),!(null==e||!e.adjustTableWidth)&&nt.exports.jsx(r,{label:"adjustTableWidth",description:"You can adjust the container width with this prop.",value:`${null==e?void 0:e.adjustTableWidth}px`})]})]}))}))},MFe=({itemHeight:n,LoadingComponent:r})=>{let t={overflow:"hidden",width:"100%"},i=({containerHeight:e})=>{e=Math.ceil(e/n);return nt.exports.jsx(nt.exports.Fragment,{children:new Array(e).fill(null).map((e,t)=>nt.exports.jsx(PFe,{LoadingComponent:r,height:n},t))})};return nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(jwe,Object.assign({style:{height:"auto",width:"auto"}},{children:({height:e})=>nt.exports.jsx(be,Object.assign({sx:Object.assign(Object.assign({},t),{height:e})},{children:nt.exports.jsx(i,{containerHeight:e})}))}))}))},PFe=({height:e,LoadingComponent:t})=>nt.exports.jsxs(be,Object.assign({sx:{height:e,display:"grid",placeItems:"center",overflow:"hidden"}},{children:[!t&&nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},width:"99.5%",height:"90%"}),t&&nt.exports.jsx(t,{})]}));var LFe="data:image/svg+xml,%3csvg width='275' height='275' viewBox='0 0 275 275' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='137.5' cy='137.5' r='127.5' fill='white' stroke='%23F9F9F9' stroke-width='20'/%3e %3cpath d='M181 134.5L138.5 120.5V170L181 134.5Z' fill='%23FE8D00'/%3e %3cpath d='M138.5 120.5L94.5 135L138.5 170.5V120.5Z' fill='%23FD9F00'/%3e %3cpath d='M137.5 204V149L181.5 134.5V188.5L137.5 204Z' fill='%23FDC000'/%3e %3cpath d='M137.5 149L94.5 134.5V188.5L137.5 204V149Z' fill='%23FDB200'/%3e %3cpath d='M121.5 171L137 149L94.5 146V167L121.5 171Z' fill='%23FE8D00'/%3e %3cpath d='M159.5 163L137.5 149L181 134.5L200.5 148.5L159.5 163Z' fill='%23FEECB2'/%3e %3cpath d='M116 162.5L137.5 149L94.5 135L74 148L116 162.5Z' fill='%23FED966'/%3e %3cpath d='M159 107L138.5 120.5L181 134.5L202.5 122L159 107Z' fill='%23FDC000'/%3e %3cpath d='M75 121.5L94.5 135L138.5 120.5L118 107L75 121.5Z' fill='%23FEECB2'/%3e %3cpath d='M136.598 140.5C129.265 137.5 117.398 129.4 128.598 121C142.598 110.5 146.598 105.5 143.598 99.5C140.598 93.5 131.098 96 132.598 104C134.098 112 144.598 119 155.598 111.5C166.598 104 166.598 81 148.598 73' stroke='%23B9D1E1' stroke-dasharray='2 2'/%3e %3cpath d='M152.5 72.5C152.5 72.7215 152.381 72.9602 152.114 73.1607C151.847 73.3612 151.455 73.5 151 73.5C150.545 73.5 150.153 73.3612 149.886 73.1607C149.619 72.9602 149.5 72.7215 149.5 72.5C149.5 72.2785 149.619 72.0398 149.886 71.8393C150.153 71.6388 150.545 71.5 151 71.5C151.455 71.5 151.847 71.6388 152.114 71.8393C152.381 72.0398 152.5 72.2785 152.5 72.5Z' stroke='%23839DAE'/%3e %3ccircle cx='148.5' cy='72.5' r='1.5' fill='%23B9D1E1'/%3e%3cpath d='M150.5 75C150.5 75.4546 150.361 75.8468 150.161 76.1142C149.96 76.3814 149.722 76.5 149.5 76.5C149.278 76.5 149.04 76.3814 148.839 76.1142C148.639 75.8468 148.5 75.4546 148.5 75C148.5 74.5454 148.639 74.1532 148.839 73.8858C149.04 73.6186 149.278 73.5 149.5 73.5C149.722 73.5 149.96 73.6186 150.161 73.8858C150.361 74.1532 150.5 74.5454 150.5 75Z' stroke='%23839DAE'/%3e%3c/svg%3e";let DFe=({EmptyStateComponent:e,CustomMessage:t,CustomDescription:n,CustomEmptyStateImage:r})=>e?nt.exports.jsx(nt.exports.Fragment,{children:e}):nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"flex",justifyContent:"center",marginTop:"80px"})},{children:nt.exports.jsx(()=>{var e=t?nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.empty-state-message",defaultMessage:"No items found",description:"Table empty state, nothing found message"});return nt.exports.jsxs(_,Object.assign({spacing:2,display:"flex",alignItems:"center","data-testid":"shared-reusable-utils-empty-state"},{children:[nt.exports.jsx("img",{width:"270px",draggable:"false",src:r||LFe,alt:"empty state"}),nt.exports.jsx(pe,Object.assign({component:"div",fontWeight:"strong","data-testid":"shared-reusable-utils-empty-state-message"},{children:e})),n&&nt.exports.jsx(pe,Object.assign({sx:{opacity:.5},variant:"caption","data-testid":"shared-reusable-utils-empty-state-description"},{children:n}))]}))},{})}))})),RFe=({ErrorStateComponent:e,CustomMessage:t,CustomDescription:n,onRetry:r=()=>{},hideRetryButton:i=!1})=>e?nt.exports.jsx(nt.exports.Fragment,{children:e}):nt.exports.jsx(W,Object.assign({sx:{position:"relative",height:"99%",overflow:"hidden"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},{overflow:"hidden",width:"100%",display:"grid",placeItems:"center",marginTop:"80px"})},{children:nt.exports.jsx(()=>{var e=t?nt.exports.jsx(nt.exports.Fragment,{children:t}):nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.error-state-message",defaultMessage:"Error Loading Items",description:"Table error state, unable to load items message"});return nt.exports.jsxs(_,Object.assign({spacing:2,display:"flex",alignItems:"center","data-testid":"shared-reusable-utils-error-state"},{children:[nt.exports.jsx(zue,{fontSize:"large"}),nt.exports.jsx(pe,Object.assign({fontWeight:"strong","data-testid":"shared-reusable-utils-error-state-message"},{children:e})),n&&nt.exports.jsx(pe,Object.assign({sx:{opacity:.5},variant:"caption","data-testid":"shared-reusable-utils-error-state-description"},{children:n})),!i&&nt.exports.jsx(ge,Object.assign({onClick:r,variant:"contained","data-testid":"shared-reusable-utils-error-state-retry-button"},{children:nt.exports.jsx(Ce,{id:"shared-utils.table-infinite-scroll.error-state-button",defaultMessage:"Retry",description:"Table error state, retry button"})}))]}))},{})}))})),FFe=32,VFe=({items:e,height:t=FFe,testId:n})=>{e=e.sort((e,t)=>e.order-t.order);return nt.exports.jsx(W,Object.assign({"data-testid":n+"-table-header",sx:{height:t,pl:3,borderBottom:"0.5px solid #D5DFE9"},alignItems:"center",display:"flex",container:!0},{children:e.map((e,t)=>nt.exports.jsx(W,Object.assign({item:!0,xs:e.size,"data-testid":"table-header-item-"+(t+1)},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",fontWeight:"bold",sx:{cursor:"default"},"data-testid":"table-header-item-"+e.id},{children:e.label}))}),e.id+"_"+t))}))};TQ=Object.freeze({__proto__:null,TableInfiniteScroll:function({hasMore:t,fetchMore:e,fetchOnMount:n=!1,offset:r,adjustTableHeight:i=0,adjustTableWidth:o=0,items:a,itemHeight:s,isLoading:l,error:c,onRetry:d,headerItems:u,headerHeight:p=0,TableHeaderComponent:g,TableRowComponent:f,TableEmptyStateComponent:h,TableErrorStateComponent:m,TableRowLoadingComponent:C,sx:x={},testId:v="",showDebug:b=!1,FixedSizeListProps:y={},AutoSizerProps:A={},InfiniteLoaderProps:I={},ContainerProps:w={},RowContainerProps:j={},threshold:S=15,className:O="",MessageEmptyState:k,MessageErrorState:T,DescriptionEmptyState:R,DescriptionErrorState:F,CustomEmptyStateImage:V,listRef:E}){let N,M=Le.exports.useRef(null),[B,H]=Le.exports.useState(null!=y&&y.initialScrollOffset?null==y?void 0:y.initialScrollOffset:0),U=t?a.length+1:a.length,P=e=>!t||e<a.length,z=()=>{l||e()},_=Ide(e=>{H(e)},500),q=({index:e,style:t,isScrolling:n})=>{var r=a[e];return P(e)?nt.exports.jsx(be,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-"+(e+1),style:t},j,{children:nt.exports.jsx(f,{item:r,index:e,isScrolling:n})}),e):nt.exports.jsx(be,Object.assign({"data-testid":"sdk-table-infinite-scroller-row-loading-"+(e+1),style:t},j,{children:nt.exports.jsx(PFe,{height:s,LoadingComponent:C})}))},L=(Le.exports.useEffect(()=>{n&&e()},[]),Le.exports.useEffect(()=>{let t=B;setTimeout(()=>{var e;return M&&(null==(e=M.current)?void 0:e._listRef.scrollToItem(t,"start"))},0)},[s]),Le.exports.useEffect(()=>{var e;E&&(E.current=null==(e=M.current)?void 0:e._listRef)},[null==(N=M.current)?void 0:N._listRef,E]),u?nt.exports.jsx(VFe,{items:u,testId:v,height:0===p?void 0:p}):g),D=((e,t,n)=>{let r=t?-1*t:e?e:0;return r=n&&!t?-1*FFe:r})(i,p,!!u);return g=()=>nt.exports.jsx(NFe,{adjustTableHeight:D,adjustTableWidth:o,hasMore:t,hasHeader:!!L,isLoading:l,items:a,itemHeight:s,fetchMore:e,offset:r}),c?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(RFe,{ErrorStateComponent:m,onRetry:()=>{(d||e)()},CustomMessage:T,CustomDescription:F}),b&&nt.exports.jsx(g,{})]}):l&&!c&&0===a.length?nt.exports.jsx(MFe,{itemHeight:s,LoadingComponent:C}):l||c||0!==a.length?nt.exports.jsxs(W,Object.assign({"data-testid":v||"sdk-table-infinite-scroll-container",sx:Object.assign({position:"relative",height:"100%",overflow:"hidden"},x),className:O},w,{children:[L&&nt.exports.jsx(nt.exports.Fragment,{children:L}),nt.exports.jsx(jwe,Object.assign({},A,{children:({height:n,width:r})=>nt.exports.jsx(Qwe,Object.assign({ref:M,isItemLoaded:P,itemCount:U,loadMoreItems:z,threshold:S},I,{children:({onItemsRendered:t,ref:e})=>nt.exports.jsx(_we,Object.assign({ref:e,height:n+D,width:r+o,itemCount:a.length,itemSize:s,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,l||_(e)},initialScrollOffset:0},y,{children:q}))}))})),b&&nt.exports.jsx(g,{})]})):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(DFe,{EmptyStateComponent:h,CustomMessage:k,CustomDescription:R,CustomEmptyStateImage:V}),b&&nt.exports.jsx(g,{})]})}}),EQ={};function BFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function HFe(e,t,n){t&&BFe(e.prototype,t),n&&BFe(e,n)}function UFe(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function zFe(e){return(zFe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _Fe(e,t){return(_Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qFe(e,t,n){return(qFe=(()=>{if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){}}})()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&_Fe(t,n.prototype),t}).apply(null,arguments)}function WFe(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return qFe(e,arguments,zFe(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_Fe(t,e)}(e)}function ZFe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GFe(e){var t=0;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(t=e[Symbol.iterator]()).next.bind(t);if(Array.isArray(e)||(e=((e,t)=>{var n;if(e)return"string"==typeof e?ZFe(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZFe(e,t):void 0})(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(EQ,"__esModule",{value:!0});var $U=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})(WFe(Error)),JFe=(t=>{function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return UFe(e,t),e})($U),KFe=(t=>{function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return UFe(e,t),e})($U),YFe=(t=>{function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return UFe(e,t),e})($U),QFe=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})($U),XFe=(t=>{function e(e){return t.call(this,"Invalid unit "+e)||this}return UFe(e,t),e})($U),$Fe=(e=>{function t(){return e.apply(this,arguments)||this}return UFe(t,e),t})($U),eVe=(e=>{function t(){return e.call(this,"Zone is an abstract class")||this}return UFe(t,e),t})($U),e="numeric",g4e="short",xg="long",tVe={year:e,month:e,day:e},nVe={year:e,month:g4e,day:e},rVe={year:e,month:g4e,day:e,weekday:g4e},iVe={year:e,month:xg,day:e},oVe={year:e,month:xg,day:e,weekday:xg},aVe={hour:e,minute:e},sVe={hour:e,minute:e,second:e},lVe={hour:e,minute:e,second:e,timeZoneName:g4e},cVe={hour:e,minute:e,second:e,timeZoneName:xg},dVe={hour:e,minute:e,hour12:!1},uVe={hour:e,minute:e,second:e,hour12:!1},pVe={hour:e,minute:e,second:e,hour12:!1,timeZoneName:g4e},gVe={hour:e,minute:e,second:e,hour12:!1,timeZoneName:xg},fVe={year:e,month:e,day:e,hour:e,minute:e},hVe={year:e,month:e,day:e,hour:e,minute:e,second:e},mVe={year:e,month:g4e,day:e,hour:e,minute:e},CVe={year:e,month:g4e,day:e,hour:e,minute:e,second:e},xVe={year:e,month:g4e,day:e,weekday:g4e,hour:e,minute:e},vVe={year:e,month:xg,day:e,hour:e,minute:e,timeZoneName:g4e},bVe={year:e,month:xg,day:e,hour:e,minute:e,second:e,timeZoneName:g4e},yVe={year:e,month:xg,day:e,weekday:xg,hour:e,minute:e,timeZoneName:xg},AVe={year:e,month:xg,day:e,weekday:xg,hour:e,minute:e,second:e,timeZoneName:xg};function IVe(e){return void 0===e}function wVe(e){return"number"==typeof e}function jVe(e){return"number"==typeof e&&e%1==0}function SVe(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function OVe(){return!IVe(Intl.DateTimeFormat.prototype.formatToParts)}function kVe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function TVe(e,n,r){if(0!==e.length)return e.reduce(function(e,t){t=[n(t),t];return e&&r(e[0],t[0])===e[0]?e:t},null)[1]}function EVe(n,e){return e.reduce(function(e,t){return e[t]=n[t],e},{})}function NVe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function MVe(e,t,n){return jVe(e)&&t<=e&&e<=n}function PVe(e,t){void 0===t&&(t=2);var n=e<0?"-":"",e=n?-1*e:e,t=e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString();return n+t}function LVe(e){if(null!=e&&""!==e)return parseInt(e,10)}function DVe(e){if(null!=e&&""!==e)return e=1e3*parseFloat("0."+e),Math.floor(e)}function RVe(e,t,n){void 0===n&&(n=!1);t=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*t)/t}function FVe(e){return e%4==0&&(e%100!=0||e%400==0)}function VVe(e){return FVe(e)?366:365}function BVe(e,t){var n,r=(r=t-1)-(n=12)*Math.floor(r/n)+1;return 2==r?FVe(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function HVe(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&0<=e.year&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function UVe(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,e=e-1,e=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4==t||3==e?53:52}function zVe(e){return 99<e?e:60<e?1900+e:2e3+e}function _Ve(e,t,n,r){void 0===r&&(r=null);var i,e=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},r=(r&&(o.timeZone=r),Object.assign({timeZoneName:t},o)),t=SVe();return t&&OVe()?(i=new Intl.DateTimeFormat(n,r).formatToParts(e).find(function(e){return"timezonename"===e.type.toLowerCase()}))?i.value:null:t?(i=new Intl.DateTimeFormat(n,o).format(e),new Intl.DateTimeFormat(n,r).format(e).substring(i.length).replace(/^[, \u200e]+/,"")):null}function qVe(e,t){e=parseInt(e,10),Number.isNaN(e)&&(e=0),t=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-t:t)}function WVe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new $Fe("Invalid unit value "+e);return t}function ZVe(e,t,n){var r,i,o={};for(r in e)!NVe(e,r)||0<=n.indexOf(r)||null!=(i=e[r])&&(o[t(r)]=WVe(i));return o}function GVe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=0<=e?"+":"-";switch(t){case"short":return i+PVe(n,2)+":"+PVe(r,2);case"narrow":return i+n+(0<r?":"+r:"");case"techie":return i+PVe(n,2)+PVe(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function JVe(e){return EVe(e,["hour","minute","second","millisecond"])}Hee=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function KVe(e){return JSON.stringify(e,Object.keys(e).sort())}var YVe=["January","February","March","April","May","June","July","August","September","October","November","December"],QVe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],XVe=["J","F","M","A","M","J","J","A","S","O","N","D"];function $Ve(e){switch(e){case"narrow":return[].concat(XVe);case"short":return[].concat(QVe);case"long":return[].concat(YVe);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var eBe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tBe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nBe=["M","T","W","T","F","S","S"];function rBe(e){switch(e){case"narrow":return[].concat(nBe);case"short":return[].concat(tBe);case"long":return[].concat(eBe);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var iBe=["AM","PM"],oBe=["Before Christ","Anno Domini"],aBe=["BC","AD"],sBe=["B","A"];function lBe(e){switch(e){case"narrow":return[].concat(sBe);case"short":return[].concat(aBe);case"long":return[].concat(oBe);default:return null}}function cBe(e,t){for(var n="",r=GFe(e);!(i=r()).done;){var i=i.value;i.literal?n+=i.val:n+=t(i.val)}return n}var dBe={D:tVe,DD:nVe,DDD:iVe,DDDD:oVe,t:aVe,tt:sVe,ttt:lVe,tttt:cVe,T:dVe,TT:uVe,TTT:pVe,TTTT:gVe,f:fVe,ff:mVe,fff:vVe,ffff:yVe,F:hVe,FF:CVe,FFF:bVe,FFFF:AVe},uBe=(()=>{function p(e,t){this.opts=t,this.loc=e,this.systemLoc=null}p.create=function(e,t){return new p(e,t=void 0===t?{}:t)},p.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(0<n.length&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(0<n.length&&i.push({literal:!1,val:n}),t=n=a)}return 0<n.length&&i.push({literal:r,val:n}),i},p.macroTokenToFormatOpts=function(e){return dBe[e]};var e=p.prototype;return e.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},e.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},e.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},e.num=function(e,t){var n;return void 0===t&&(t=0),this.opts.forceSimple?PVe(e,t):(n=Object.assign({},this.opts),0<t&&(n.padTo=t),this.loc.numberFormatter(n).format(e))},e.formatDateTimeFromString=function(r,e){var n=this,i="en"===this.loc.listingMode(),t=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&OVe(),o=function(e,t){return n.loc.extract(r,e,t)},a=function(e){return r.isOffsetFixed&&0===r.offset&&e.allowZ?"Z":r.isValid?r.zone.formatOffset(r.ts,e.format):""},s=function(){return i?iBe[r.hour<12?0:1]:o({hour:"numeric",hour12:!0},"dayperiod")},l=function(e,t){return i?(n=r,$Ve(e)[n.month-1]):o(t?{month:e}:{month:e,day:"numeric"},"month");var n},c=function(e,t){return i?(n=r,rBe(e)[n.weekday-1]):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday");var n},d=function(e){var t=p.macroTokenToFormatOpts(e);return t?n.formatWithSystemDefault(r,t):e},u=function(e){return i?(t=r,lBe(e)[t.year<0?0:1]):o({era:e},"era");var t};return cBe(p.parseFormat(e),function(e){switch(e){case"S":return n.num(r.millisecond);case"u":case"SSS":return n.num(r.millisecond,3);case"s":return n.num(r.second);case"ss":return n.num(r.second,2);case"m":return n.num(r.minute);case"mm":return n.num(r.minute,2);case"h":return n.num(r.hour%12==0?12:r.hour%12);case"hh":return n.num(r.hour%12==0?12:r.hour%12,2);case"H":return n.num(r.hour);case"HH":return n.num(r.hour,2);case"Z":return a({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return a({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return r.zone.offsetName(r.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return r.zone.offsetName(r.ts,{format:"long",locale:n.loc.locale});case"z":return r.zoneName;case"a":return s();case"d":return t?o({day:"numeric"},"day"):n.num(r.day);case"dd":return t?o({day:"2-digit"},"day"):n.num(r.day,2);case"c":return n.num(r.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return n.num(r.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?o({month:"numeric",day:"numeric"},"month"):n.num(r.month);case"LL":return t?o({month:"2-digit",day:"numeric"},"month"):n.num(r.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?o({month:"numeric"},"month"):n.num(r.month);case"MM":return t?o({month:"2-digit"},"month"):n.num(r.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?o({year:"numeric"},"year"):n.num(r.year);case"yy":return t?o({year:"2-digit"},"year"):n.num(r.year.toString().slice(-2),2);case"yyyy":return t?o({year:"numeric"},"year"):n.num(r.year,4);case"yyyyyy":return t?o({year:"numeric"},"year"):n.num(r.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return n.num(r.weekYear.toString().slice(-2),2);case"kkkk":return n.num(r.weekYear,4);case"W":return n.num(r.weekNumber);case"WW":return n.num(r.weekNumber,2);case"o":return n.num(r.ordinal);case"ooo":return n.num(r.ordinal,3);case"q":return n.num(r.quarter);case"qq":return n.num(r.quarter,2);case"X":return n.num(Math.floor(r.ts/1e3));case"x":return n.num(r.ts);default:return d(e)}})},e.formatDurationFromString=function(e,t){var n,r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},t=p.parseFormat(t),o=t.reduce(function(e,t){return t.literal?e:e.concat(t.val)},[]),e=e.shiftTo.apply(e,o.map(i).filter(function(e){return e}));return cBe(t,(n=e,function(e){var t=i(e);return t?r.num(n.get(t),e.length):e}))},p})(),pBe=(()=>{function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e})(),gBe=(()=>{function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new eVe},t.formatOffset=function(e,t){throw new eVe},t.offset=function(e){throw new eVe},t.equals=function(e){throw new eVe},HFe(e,[{key:"type",get:function(){throw new eVe}},{key:"name",get:function(){throw new eVe}},{key:"universal",get:function(){throw new eVe}},{key:"isValid",get:function(){throw new eVe}}]),e})(),fBe=null,hBe=(e=>{function t(){return e.apply(this,arguments)||this}UFe(t,e);var n=t.prototype;return n.offsetName=function(e,t){return _Ve(e,t.format,t.locale)},n.formatOffset=function(e,t){return GVe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},HFe(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return SVe()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return fBe=null===fBe?new t:fBe}}]),t})(gBe),mBe=RegExp("^"+Hee.source+"$"),CBe={};var xBe={year:0,month:1,day:2,hour:3,minute:4,second:5};var vBe={},bBe=(n=>{function r(e){var t=n.call(this)||this;return t.zoneName=e,t.valid=r.isValidZone(e),t}UFe(r,n),r.create=function(e){return vBe[e]||(vBe[e]=new r(e)),vBe[e]},r.resetCache=function(){vBe={},CBe={}},r.isValidSpecifier=function(e){return!(!e||!e.match(mBe))},r.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},r.parseGMTOffset=function(e){if(e){e=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var e=r.prototype;return e.offsetName=function(e,t){return _Ve(e,t.format,t.locale,this.name)},e.formatOffset=function(e,t){return GVe(this.offset(e),t)},e.offset=function(e){var t,n,r,e=new Date(e);return isNaN(e)?NaN:(t=this.name,CBe[t]||(CBe[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),r=(n=+e)%1e3,(HVe({year:(t=(t=CBe[t]).formatToParts?((e,t)=>{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,a=xBe[a];IVe(a)||(r[a]=parseInt(o.value,10))}return r})(t,e):(e=e,t=(t=t).format(e).replace(/\u200E/g,""),e=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t),t=e[1],[e[3],t,e[2],e[4],e[5],e[6]]))[0],month:t[1],day:t[2],hour:24===(e=t[3])?0:e,minute:t[4],second:t[5],millisecond:0})-(n-=0<=r?r:1e3+r))/6e4)},e.equals=function(e){return"iana"===e.type&&e.name===this.name},HFe(r,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),r})(gBe),yBe=null,ABe=(n=>{function t(e){var t=n.call(this)||this;return t.fixed=e,t}UFe(t,n),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){e=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new t(qVe(e[1],e[2]))}return null},HFe(t,null,[{key:"utcInstance",get:function(){return yBe=null===yBe?new t(0):yBe}}]);var e=t.prototype;return e.offsetName=function(){return this.name},e.formatOffset=function(e,t){return GVe(this.fixed,t)},e.offset=function(){return this.fixed},e.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},HFe(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+GVe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t})(gBe),IBe=(n=>{function e(e){var t=n.call(this)||this;return t.zoneName=e,t}UFe(e,n);var t=e.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},HFe(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e})(gBe);function wBe(e,t){var n;return null==e?t:e instanceof gBe?e:"string"==typeof e?"local"===(n=e.toLowerCase())?t:"utc"===n||"gmt"===n?ABe.utcInstance:null!=(t=bBe.parseGMTOffset(e))?ABe.instance(t):bBe.isValidSpecifier(n)?bBe.create(e):ABe.parseSpecifier(n)||new IBe(e):wVe(e)?ABe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new IBe(e)}var jBe=function(){return Date.now()},SBe=null,OBe=null,kBe=null,TBe=null,EBe=!1,NBe=(()=>{function e(){}return e.resetCaches=function(){zBe.resetCache(),bBe.resetCache()},HFe(e,null,[{key:"now",get:function(){return jBe},set:function(e){jBe=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){SBe=e?wBe(e):null}},{key:"defaultZone",get:function(){return SBe||hBe.instance}},{key:"defaultLocale",get:function(){return OBe},set:function(e){OBe=e}},{key:"defaultNumberingSystem",get:function(){return kBe},set:function(e){kBe=e}},{key:"defaultOutputCalendar",get:function(){return TBe},set:function(e){TBe=e}},{key:"throwOnInvalid",get:function(){return EBe},set:function(e){EBe=e}}]),e})(),MBe={};function PBe(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=MBe[n];return r||(r=new Intl.DateTimeFormat(e,t),MBe[n]=r),r}var LBe={};var DBe={};function RBe(e,t){var n=t=void 0===t?{}:t,n=(n.base,((e,t)=>{if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r})(n,["base"])),n=JSON.stringify([e,n]),r=DBe[n];return r||(r=new Intl.RelativeTimeFormat(e,t),DBe[n]=r),r}var FBe=null;function VBe(e,t,n,r,i){e=e.listingMode(n);return"error"===e?null:("en"===e?r:i)(t)}var BBe=(()=>{function e(e,t,n){var r;this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&SVe()&&(t={useGrouping:!1},0<n.padTo&&(t.minimumIntegerDigits=n.padTo),this.inf=(n=e,void 0===(e=t)&&(e={}),t=JSON.stringify([n,e]),(r=LBe[t])||(r=new Intl.NumberFormat(n,e),LBe[t]=r),r))}return e.prototype.format=function(e){var t;return this.inf?(t=this.floor?Math.floor(e):e,this.inf.format(t)):PVe(this.floor?Math.floor(e):RVe(e,3),this.padTo)},e})(),HBe=(()=>{function e(e,t,n){var r,i,o;this.opts=n,this.hasIntl=SVe(),e.zone.universal&&this.hasIntl?(i=e.offset/60*-1,o=bBe.isValidZone(i=0<=i?"Etc/GMT+"+i:"Etc/GMT"+i),0!==e.offset&&o?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:PUe.fromMillis(e.ts+60*e.offset*1e3))):"local"===e.zone.type?this.dt=e:r=(this.dt=e).zone.name,this.hasIntl&&(o=Object.assign({},this.opts),r&&(o.timeZone=r),this.dtf=PBe(t,o))}var t=e.prototype;return t.format=function(){var e,t;return this.hasIntl?this.dtf.format(this.dt.toJSDate()):(e=(e=>{var t="EEEE, LLLL d, yyyy, h:mm a";switch(KVe(EVe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case KVe(tVe):return"M/d/yyyy";case KVe(nVe):return"LLL d, yyyy";case KVe(rVe):return"EEE, LLL d, yyyy";case KVe(iVe):return"LLLL d, yyyy";case KVe(oVe):return"EEEE, LLLL d, yyyy";case KVe(aVe):return"h:mm a";case KVe(sVe):return"h:mm:ss a";case KVe(lVe):case KVe(cVe):return"h:mm a";case KVe(dVe):return"HH:mm";case KVe(uVe):return"HH:mm:ss";case KVe(pVe):case KVe(gVe):return"HH:mm";case KVe(fVe):return"M/d/yyyy, h:mm a";case KVe(mVe):return"LLL d, yyyy, h:mm a";case KVe(vVe):return"LLLL d, yyyy, h:mm a";case KVe(yVe):return t;case KVe(hVe):return"M/d/yyyy, h:mm:ss a";case KVe(CVe):return"LLL d, yyyy, h:mm:ss a";case KVe(xVe):return"EEE, d LLL yyyy, h:mm a";case KVe(bVe):return"LLLL d, yyyy, h:mm:ss a";case KVe(AVe):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}})(this.opts),t=zBe.create("en-US"),uBe.create(t).formatDateTimeFromString(this.dt,e))},t.formatToParts=function(){return this.hasIntl&&OVe()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e})(),UBe=(()=>{function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&kVe()&&(this.rtf=RBe(e,n))}var t=e.prototype;return t.format=function(e,t){if(this.rtf)return this.rtf.format(e,t);var n=t,t=e,e=this.opts.numeric,r="long"!==this.opts.style,i=(void 0===e&&(e="always"),void 0===r&&(r=!1),{years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]}),o=-1===["hours","minutes","seconds"].indexOf(n);if("auto"===e&&o){var a="days"===n;switch(t){case 1:return a?"tomorrow":"next "+i[n][0];case-1:return a?"yesterday":"last "+i[n][0];case 0:return a?"today":"this "+i[n][0]}}var e=Object.is(t,-0)||t<0,t=1===(o=Math.abs(t)),s=i[n],r=r?!t&&s[2]||s[1]:t?i[n][0]:n;return e?o+" "+r+" ago":"in "+o+" "+r},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e})(),zBe=(()=>{function i(e,t,n,r){var e=(e=>{if(-1===(n=e.indexOf("-u-")))return[e];var t,n=e.substring(0,n);try{t=PBe(e).resolvedOptions()}catch(e){t=PBe(n).resolvedOptions()}return[n,(e=t).numberingSystem,e.calendar]})(e),i=e[0],o=e[1],e=e[2];this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||e||null,this.intl=(i=this.locale,t=this.numberingSystem,o=this.outputCalendar,SVe()?((o||t)&&(i+="-u",o&&(i+="-ca-"+o),t)&&(i+="-nu-"+t),i):[]),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}i.fromOpts=function(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},i.create=function(e,t,n,r){void 0===r&&(r=!1);e=e||NBe.defaultLocale;return new i(e||(r?"en-US":FBe=FBe||(SVe()&&(r=(new Intl.DateTimeFormat).resolvedOptions().locale)&&"und"!==r?r:"en-US")),t||NBe.defaultNumberingSystem,n||NBe.defaultOutputCalendar,e)},i.resetCache=function(){FBe=null,MBe={},LBe={},DBe={}},i.fromObject=function(e){var e=void 0===e?{}:e,t=e.locale;return i.create(t,e.numberingSystem,e.outputCalendar)};var e=i.prototype;return e.listingMode=function(e){void 0===e&&(e=!0);var t=SVe()&&OVe(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},e.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},e.months=function(n,r,e){var i=this;return void 0===r&&(r=!1),VBe(this,n,e=void 0===e?!0:e,$Ve,function(){var t=r?{month:n,day:"numeric"}:{month:n},e=r?"format":"standalone";return i.monthsCache[e][n]||(i.monthsCache[e][n]=(e=>{for(var t=[],n=1;n<=12;n++){var r=PUe.utc(2016,n,1);t.push(e(r))}return t})(function(e){return i.extract(e,t,"month")})),i.monthsCache[e][n]})},e.weekdays=function(n,r,e){var i=this;return void 0===r&&(r=!1),VBe(this,n,e=void 0===e?!0:e,rBe,function(){var t=r?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},e=r?"format":"standalone";return i.weekdaysCache[e][n]||(i.weekdaysCache[e][n]=(e=>{for(var t=[],n=1;n<=7;n++){var r=PUe.utc(2016,11,13+n);t.push(e(r))}return t})(function(e){return i.extract(e,t,"weekday")})),i.weekdaysCache[e][n]})},e.meridiems=function(e){var n=this;return VBe(this,void 0,e=void 0===e?!0:e,function(){return iBe},function(){var t;return n.meridiemCache||(t={hour:"numeric",hour12:!0},n.meridiemCache=[PUe.utc(2016,11,13,9),PUe.utc(2016,11,13,19)].map(function(e){return n.extract(e,t,"dayperiod")})),n.meridiemCache})},e.eras=function(e,t){var n=this;return VBe(this,e,t=void 0===t?!0:t,lBe,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[PUe.utc(-40,1,1),PUe.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},e.extract=function(e,t,n){e=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return e?e.value:null},e.numberFormatter=function(e){return new BBe(this.intl,(e=void 0===e?{}:e).forceSimple||this.fastNumbers,e)},e.dtFormatter=function(e,t){return new HBe(e,this.intl,t=void 0===t?{}:t)},e.relFormatter=function(e){return void 0===e&&(e={}),new UBe(this.intl,this.isEnglish(),e)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||SVe()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},HFe(i,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||SVe()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),i})();function _Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce(function(e,t){return e+t.source},"");return RegExp("^"+r+"$")}function qBe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){return t.reduce(function(e,t){var n=e[0],r=e[1],t=t(o,e[2]),e=t[0],i=t[1],t=t[2];return[Object.assign(n,e),r||i,t]},[{},null,1]).slice(0,2)}}function WBe(e){if(null!=e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],a=a[1],s=s.exec(e);if(s)return a(s)}}return[null,null]}function ZBe(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(e,t){for(var n={},r=0;r<i.length;r++)n[i[r]]=LVe(e[t+r]);return[n,null,t+r]}}BU=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,r=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ig=RegExp(""+r.source+BU.source+"?"),QX=RegExp("(?:T"+Ig.source+")?"),Yee=ZBe("weekYear","weekNumber","weekDay"),Cg=ZBe("year","ordinal"),a$=RegExp(r.source+" ?(?:"+BU.source+"|("+Hee.source+"))?"),e2e=RegExp("(?: "+a$.source+")?");function GBe(e,t,n){e=e[t];return IVe(e)?n:LVe(e)}function JBe(e,t){return[{year:GBe(e,t),month:GBe(e,t+1,1),day:GBe(e,t+2,1)},null,t+3]}function KBe(e,t){return[{hours:GBe(e,t,0),minutes:GBe(e,t+1,0),seconds:GBe(e,t+2,0),milliseconds:DVe(e[t+3])},null,t+4]}function YBe(e,t){var n=!e[t]&&!e[t+1],e=qVe(e[t+1],e[t+2]);return[{},n?null:ABe.instance(e),t+3]}function QBe(e,t){return[{},e[t]?bBe.create(e[t]):null,t+1]}var XBe=RegExp("^T?"+r.source+"$"),$Be=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function eHe(e){function t(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&d)?-e:e}var n=e[0],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],d="-"===n[0],n=l&&"-"===l[0];return[{years:t(LVe(e[1])),months:t(LVe(r)),weeks:t(LVe(i)),days:t(LVe(o)),hours:t(LVe(a)),minutes:t(LVe(s)),seconds:t(LVe(l),"-0"===l),milliseconds:t(DVe(c),n)}]}var tHe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nHe(e,t,n,r,i,o,a){t={year:2===t.length?zVe(LVe(t)):LVe(t),month:QVe.indexOf(n)+1,day:LVe(r),hour:LVe(i),minute:LVe(o)};return a&&(t.second=LVe(a)),e&&(t.weekday=3<e.length?eBe.indexOf(e)+1:tBe.indexOf(e)+1),t}var rHe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function iHe(e){var t=e[1],n=e[8],r=e[9],i=e[10],o=e[11],t=nHe(t,e[4],e[3],e[2],e[5],e[6],e[7]),e=n?tHe[n]:r?0:qVe(i,o);return[t,new ABe(e)]}var oHe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,aHe=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,sHe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function lHe(e){return[nHe(e[1],e[4],e[3],e[2],e[5],e[6],e[7]),ABe.utcInstance]}function cHe(e){return[nHe(e[1],e[7],e[2],e[3],e[4],e[5],e[6]),ABe.utcInstance]}var dHe=_Be(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,QX),uHe=_Be(/(\d{4})-?W(\d\d)(?:-?(\d))?/,QX),pHe=_Be(/(\d{4})-?(\d{3})/,QX),gHe=_Be(Ig),fHe=qBe(JBe,KBe,YBe),hHe=qBe(Yee,KBe,YBe),mHe=qBe(Cg,KBe,YBe),CHe=qBe(KBe,YBe);var xHe=qBe(KBe);var vHe=_Be(/(\d{4})-(\d\d)-(\d\d)/,e2e),bHe=_Be(a$),yHe=qBe(JBe,KBe,YBe,QBe),AHe=qBe(KBe,YBe,QBe);var g2e={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},IHe=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},g2e),o2e=365.2425,n=30.436875,wHe=Object.assign({years:{quarters:4,months:12,weeks:o2e/7,days:o2e,hours:24*o2e,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:o2e/28,days:o2e/4,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:n/7,days:n,hours:24*n,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},g2e),jHe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],SHe=jHe.slice(0).reverse();function OHe(e,t,n){n={values:(n=void 0===n?!1:n)?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new THe(n)}function kHe(e,t,n,r,i){var e=e[i][n],o=t[n]/e,a=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?(a=o)<0?Math.floor(a):Math.ceil(a):Math.trunc(o);r[i]+=a,t[n]-=a*e}var THe=(()=>{function f(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||zBe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?wHe:IHe,this.isLuxonDuration=!0}f.fromMillis=function(e,t){return f.fromObject(Object.assign({milliseconds:e},t))},f.fromObject=function(e){if(null==e||"object"!=typeof e)throw new $Fe("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new f({values:ZVe(e,f.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:zBe.fromObject(e),conversionAccuracy:e.conversionAccuracy})},f.fromISO=function(e,t){var n=WBe(e,[$Be,eHe])[0];return n?(n=Object.assign(n,t),f.fromObject(n)):f.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},f.fromISOTime=function(e,t){var n=WBe(e,[XBe,xHe])[0];return n?(n=Object.assign(n,t),f.fromObject(n)):f.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},f.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the Duration is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new YFe(e);return new f({invalid:e})},f.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(t)return t;throw new XFe(e)},f.isDuration=function(e){return e&&e.isLuxonDuration||!1};var e=f.prototype;return e.toFormat=function(e,t){void 0===t&&(t={});t=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?uBe.create(this.loc,t).formatDurationFromString(this,e):"Invalid Duration"},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.values),e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toISO=function(){var e;return this.isValid?(e="P",0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=RVe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e):null},e.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||864e5<=t)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm",t=(e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds)||(n+=".SSS"),t.toFormat(n));return t=e.includePrefix?"T"+t:t},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(e){if(!this.isValid)return this;for(var t=EHe(e),n={},r=GFe(jHe);!(i=r()).done;){var i=i.value;(NVe(t.values,i)||NVe(this.values,i))&&(n[i]=t.get(i)+this.get(i))}return OHe(this,{values:n},!0)},e.minus=function(e){return this.isValid?(e=EHe(e),this.plus(e.negate())):this},e.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];t[i]=WVe(e(this.values[i],i))}return OHe(this,{values:t},!0)},e.get=function(e){return this[f.normalizeUnit(e)]},e.set=function(e){return this.isValid?OHe(this,{values:Object.assign(this.values,ZVe(e,f.normalizeUnit,[]))}):this},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,n=e.conversionAccuracy,t={loc:this.loc.clone({locale:t,numberingSystem:e.numberingSystem})};return n&&(t.conversionAccuracy=n),OHe(this,t)},e.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},e.normalize=function(){var e,n,r;return this.isValid?(e=this.toObject(),n=this.matrix,r=e,SHe.reduce(function(e,t){return IVe(r[t])?e:(e&&kHe(n,r,e,r,t),t)},null),OHe(this,{values:e},!0)):this},e.shiftTo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.isValid)return this;if(0===t.length)return this;for(var r,t=t.map(function(e){return f.normalizeUnit(e)}),i={},o={},a=this.toObject(),s=GFe(jHe);!(g=s()).done;){var l=g.value;if(0<=t.indexOf(l)){var c,d=l,u=0;for(c in o)u+=this.matrix[c][l]*o[c],o[c]=0;wVe(a[l])&&(u+=a[l]);var p,g=Math.trunc(u);for(p in o[l]=u-(i[l]=g),a)jHe.indexOf(p)>jHe.indexOf(l)&&kHe(this.matrix,a,p,i,l)}else wVe(a[l])&&(o[l]=a[l])}for(r in o)0!==o[r]&&(i[d]+=r===d?o[r]:o[r]/this.matrix[d][r]);return OHe(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);t<n.length;t++){var r=n[t];e[r]=-this.values[r]}return OHe(this,{values:e},!0)},e.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,n=GFe(jHe);!(r=n()).done;){var r=r.value;if(t=this.values[r],r=e.values[r],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1}return!0},HFe(f,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),f})();function EHe(e){if(wVe(e))return THe.fromMillis(e);if(THe.isDuration(e))return e;if("object"==typeof e)return THe.fromObject(e);throw new $Fe("Unknown duration argument "+e+" of type "+typeof e)}var NHe="Invalid Interval";var MHe=(()=>{function c(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}c.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the Interval is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new KFe(e);return new c({invalid:e})},c.fromDateTimes=function(e,t){var n,e=LUe(e),t=LUe(t),r=(n=t,(r=e)&&r.isValid?n&&n.isValid?n<r?MHe.invalid("end before start","The end of an interval must be after its start, but you had start="+r.toISO()+" and end="+n.toISO()):null:MHe.invalid("missing or invalid end"):MHe.invalid("missing or invalid start"));return null==r?new c({start:e,end:t}):r},c.after=function(e,t){t=EHe(t),e=LUe(e);return c.fromDateTimes(e,e.plus(t))},c.before=function(e,t){t=EHe(t),e=LUe(e);return c.fromDateTimes(e.minus(t),e)},c.fromISO=function(e,t){var n,r,i,o=(e||"").split("/",2),a=o[0],s=o[1];if(a&&s){try{l=(n=PUe.fromISO(a,t)).isValid}catch(s){l=!1}try{i=(r=PUe.fromISO(s,t)).isValid}catch(s){i=!1}if(l&&i)return c.fromDateTimes(n,r);if(l){o=THe.fromISO(s,t);if(o.isValid)return c.after(n,o)}else if(i){var l=THe.fromISO(a,t);if(l.isValid)return c.before(r,l)}}return c.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},c.isInterval=function(e){return e&&e.isLuxonInterval||!1};var e=c.prototype;return e.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},e.count=function(e){var t,n;return void 0===e&&(e="milliseconds"),this.isValid?(t=this.start.startOf(e),n=this.end.startOf(e),Math.floor(n.diff(t,e).get(e))+1):NaN},e.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(e){return!!this.isValid&&this.s>e},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},e.set=function(e){var e=void 0===e?{}:e,t=e.start;return this.isValid?c.fromDateTimes(t||this.s,e.end||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=n.map(LUe).filter(function(e){return t.contains(e)}).sort(),o=[],a=this.s,s=0;a<this.e;){var l=i[s]||this.e,l=+l>+this.e?this.e:l;o.push(c.fromDateTimes(a,l)),a=l,s+=1}return o},e.splitBy=function(e){var t=EHe(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n=this.s,r=1,i=[];n<this.e;){var o=this.start.plus(t.mapUnits(function(e){return e*r})),o=+o>+this.e?this.e:o;i.push(c.fromDateTimes(n,o)),n=o,r+=1}return i},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s<e.e},e.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},e.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},e.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},e.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},e.intersection=function(e){var t;return this.isValid?(t=(this.s>e.s?this:e).s,(e=(this.e<e.e?this:e).e)<=t?null:c.fromDateTimes(t,e)):this},e.union=function(e){var t;return this.isValid?(t=(this.s<e.s?this:e).s,e=(this.e>e.e?this:e).e,c.fromDateTimes(t,e)):this},c.merge=function(e){var e=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],e=e[1];return e?e.overlaps(t)||e.abutsStart(t)?[n,e.union(t)]:[n.concat([e]),t]:[n,t]},[[],null]),t=e[0],e=e[1];return e&&t.push(e),t},c.xor=function(e){for(var t,n=null,r=0,i=[],e=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),o=GFe((t=Array.prototype).concat.apply(t,e).sort(function(e,t){return e.time-t.time}));!(a=o()).done;)var a=a.value,n=1===(r+="s"===a.type?1:-1)?a.time:(n&&+n!=+a.time&&i.push(c.fromDateTimes(n,a.time)),null);return c.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c.xor([this].concat(n)).map(function(e){return t.intersection(e)}).filter(function(e){return e&&!e.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":NHe},e.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):NHe},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():NHe},e.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):NHe},e.toFormat=function(e,t){t=(void 0===t?{}:t).separator,t=void 0===t?" – ":t;return this.isValid?""+this.s.toFormat(e)+t+this.e.toFormat(e):NHe},e.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):THe.invalid(this.invalidReason)},e.mapEndpoints=function(e){return c.fromDateTimes(e(this.s),e(this.e))},HFe(c,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),c})(),PHe=(()=>{function e(){}return e.hasDST=function(e){void 0===e&&(e=NBe.defaultZone);var t=PUe.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return bBe.isValidSpecifier(e)&&bBe.isValidZone(e)},e.normalizeZone=function(e){return wBe(e,NBe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||zBe.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,i=t.locObj,i=void 0===i?null:i,t=t.outputCalendar;return(i||zBe.create(void 0===n?null:n,void 0===r?null:r,void 0===t?"gregory":t)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||zBe.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var t=void 0===t?{}:t,n=t.locale,r=t.numberingSystem,t=t.locObj;return((void 0===t?null:t)||zBe.create(void 0===n?null:n,void 0===r?null:r,null)).weekdays(e,!0)},e.meridiems=function(e){e=(void 0===e?{}:e).locale;return zBe.create(void 0===e?null:e).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");t=(void 0===t?{}:t).locale;return zBe.create(void 0===t?null:t,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,n=!1,r=!1;if(SVe()){e=!0,t=OVe(),r=kVe();try{n="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){n=!1}}return{intl:e,intlTokens:t,zones:n,relative:r}},e})();function LHe(e,t){function n(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()}t=n(t)-n(e);return Math.floor(THe.fromMillis(t).as("days"))}function DHe(e,t,n,r){var e=((e,t,n)=>{for(var r={},i=0,o=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){e=LHe(e,t);return(e-e%7)/7}],["days",LHe]];i<o.length;i++){var a,s,l,c=o[i],d=c[0],c=c[1];0<=n.indexOf(d)&&(a=d,c=c(e,t),t<(l=e.plus(((s={})[d]=c,s)))?(e=e.plus(((s={})[d]=c-1,s)),--c):e=l,r[d]=c)}return[e,r,l,a]})(e,t,n),i=e[0],o=e[1],a=e[2],e=e[3],s=t-i,n=n.filter(function(e){return 0<=["hours","minutes","seconds","milliseconds"].indexOf(e)}),t=(0===n.length&&(a=a<t?i.plus(((t={})[e]=1,t)):a)!==i&&(o[e]=(o[e]||0)+s/(a-i)),THe.fromObject(Object.assign(o,r)));return 0<n.length?(e=THe.fromMillis(s,r)).shiftTo.apply(e,n).plus(t):t}var RHe={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},FHe={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},VHe=RHe.hanidec.replace(/[\[|\]]/g,"").split("");function BHe(e,t){e=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+RHe[e||"latn"]+t)}var HHe="missing Intl.DateTimeFormat.formatToParts support";function UHe(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){e=e[0];return t((e=>{var t=parseInt(e,10);if(isNaN(t)){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(-1!==e[n].search(RHe.hanidec))t+=VHe.indexOf(e[n]);else for(var i in FHe){var i=FHe[i],o=i[0];o<=r&&r<=i[1]&&(t+=r-o)}}return parseInt(t,10)}return t})(e))}}}var zHe="( |"+String.fromCharCode(160)+")",_He=new RegExp(zHe,"g");function qHe(e){return e.replace(/\./g,"\\.?").replace(_He,zHe)}function WHe(e){return e.replace(/\./g,"").replace(_He," ").toLowerCase()}function ZHe(n,r){return null===n?null:{regex:RegExp(n.map(qHe).join("|")),deser:function(e){var t=e[0];return n.findIndex(function(e){return WHe(t)===WHe(e)})+r}}}function GHe(e,t){return{regex:e,deser:function(e){return qVe(e[1],e[2])},groups:t}}function JHe(e){return{regex:e,deser:function(e){return e[0]}}}function KHe(t,n){function r(e){return{regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:function(e){return e[0]},literal:!0}}var i=BHe(n),o=BHe(n,"{2}"),a=BHe(n,"{3}"),s=BHe(n,"{4}"),l=BHe(n,"{6}"),c=BHe(n,"{1,2}"),d=BHe(n,"{1,3}"),u=BHe(n,"{1,6}"),p=BHe(n,"{1,9}"),g=BHe(n,"{2,4}"),f=BHe(n,"{4,6}"),e=(e=>{if(t.literal)return r(e);switch(e.val){case"G":return ZHe(n.eras("short",!1),0);case"GG":return ZHe(n.eras("long",!1),0);case"y":return UHe(u);case"yy":return UHe(g,zVe);case"yyyy":return UHe(s);case"yyyyy":return UHe(f);case"yyyyyy":return UHe(l);case"M":return UHe(c);case"MM":return UHe(o);case"MMM":return ZHe(n.months("short",!0,!1),1);case"MMMM":return ZHe(n.months("long",!0,!1),1);case"L":return UHe(c);case"LL":return UHe(o);case"LLL":return ZHe(n.months("short",!1,!1),1);case"LLLL":return ZHe(n.months("long",!1,!1),1);case"d":return UHe(c);case"dd":return UHe(o);case"o":return UHe(d);case"ooo":return UHe(a);case"HH":return UHe(o);case"H":return UHe(c);case"hh":return UHe(o);case"h":return UHe(c);case"mm":return UHe(o);case"m":case"q":return UHe(c);case"qq":return UHe(o);case"s":return UHe(c);case"ss":return UHe(o);case"S":return UHe(d);case"SSS":return UHe(a);case"u":return JHe(p);case"a":return ZHe(n.meridiems(),0);case"kkkk":return UHe(s);case"kk":return UHe(g,zVe);case"W":return UHe(c);case"WW":return UHe(o);case"E":case"c":return UHe(i);case"EEE":return ZHe(n.weekdays("short",!1,!1),1);case"EEEE":return ZHe(n.weekdays("long",!1,!1),1);case"ccc":return ZHe(n.weekdays("short",!0,!1),1);case"cccc":return ZHe(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return GHe(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return GHe(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return JHe(/[a-z_+-/]{1,256}?/i);default:return r(e)}})(t)||{invalidReason:HHe};return e.token=t,e}var YHe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function QHe(r){var e=IVe(r.Z)?IVe(r.z)?null:bBe.create(r.z):new ABe(r.Z);return IVe(r.q)||(r.M=3*(r.q-1)+1),IVe(r.h)||(r.h<12&&1===r.a?r.h+=12:12===r.h&&0===r.a&&(r.h=0)),0===r.G&&r.y&&(r.y=-r.y),IVe(r.u)||(r.S=DVe(r.u)),[Object.keys(r).reduce(function(e,t){var n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(t);return n&&(e[n]=r[t]),e},{}),e]}var XHe=null;function $He(e,t){var r;return e.literal||!(r=uBe.macroTokenToFormatOpts(e.val))||(t=uBe.create(t,r).formatDateTimeParts(XHe=XHe||PUe.fromMillis(1555555555555)).map(function(e){return t=r,"literal"===(n=(e=e).type)?{literal:!0,val:e.value}:(e=t[n],(t="object"==typeof(t=YHe[n])?t[e]:t)?{literal:!1,val:t}:void 0);var t,n})).includes(void 0)?e:t}function eUe(t,e,n){n=uBe.parseFormat(n),r=t;var r,i=(i=Array.prototype).concat.apply(i,n.map(function(e){return $He(e,r)})),n=i.map(function(e){return KHe(e,t)}),o=n.find(function(e){return e.invalidReason});if(o)return{input:e,tokens:i,invalidReason:o.invalidReason};var n=["^"+(o=n).map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",o],o=n[1],n=RegExp(n[0],"i"),o=((e,t,n)=>{var r=e.match(t);if(r){var i,o,a,s={},l=1;for(i in n)NVe(n,i)&&(a=(o=n[i]).groups?o.groups+1:1,!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(l,l+a))),l+=a);return[r,s]}return[r,{}]})(e,n,o),a=o[0],o=o[1],s=o?QHe(o):[null,null],l=s[0],s=s[1];if(NVe(o,"a")&&NVe(o,"H"))throw new QFe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:i,regex:n,rawMatches:a,matches:o,result:l,zone:s}}var tUe=[0,31,59,90,120,151,181,212,243,273,304,334],nUe=[0,31,60,91,121,152,182,213,244,274,305,335];function rUe(e,t){return new pBe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function iUe(e,t,n){e=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===e?7:e}function oUe(e,t,n){return n+(FVe(e)?nUe:tUe)[t-1]}function aUe(e,t){var e=FVe(e)?nUe:tUe,n=e.findIndex(function(e){return e<t});return{month:n+1,day:t-e[n]}}function sUe(e){var t,n=e.year,r=e.month,i=e.day,o=oUe(n,r,i),r=iUe(n,r,i),i=Math.floor((o-r+10)/7);return i<1?i=UVe(t=n-1):i>UVe(n)?(t=n+1,i=1):t=n,Object.assign({weekYear:t,weekNumber:i,weekday:r},JVe(e))}function lUe(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=iUe(n,1,4),a=VVe(n),r=7*r+i-o-3,i=(r<1?r+=VVe(t=n-1):a<r?(t=n+1,r-=VVe(n)):t=n,aUe(t,r)),o=i.month;return Object.assign({year:t,month:o,day:i.day},JVe(e))}function cUe(e){var t=e.year,n=oUe(t,e.month,e.day);return Object.assign({year:t,ordinal:n},JVe(e))}function dUe(e){var t=e.year,n=aUe(t,e.ordinal),r=n.month;return Object.assign({year:t,month:r,day:n.day},JVe(e))}function uUe(e){var t=jVe(e.year),n=MVe(e.month,1,12),r=MVe(e.day,1,BVe(e.year,e.month));return t?n?!r&&rUe("day",e.day):rUe("month",e.month):rUe("year",e.year)}function pUe(e){var t=e.hour,n=e.minute,r=e.second,e=e.millisecond,i=MVe(t,0,23)||24===t&&0===n&&0===r&&0===e,o=MVe(n,0,59),a=MVe(r,0,59),s=MVe(e,0,999);return i?o?a?!s&&rUe("millisecond",e):rUe("second",r):rUe("minute",n):rUe("hour",t)}var gUe="Invalid DateTime";function fUe(e){return new pBe("unsupported zone",'the zone "'+e.name+'" is not supported')}function hUe(e){return null===e.weekData&&(e.weekData=sUe(e.c)),e.weekData}function mUe(e,t){e={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new PUe(Object.assign({},e,t,{old:e}))}function CUe(e,t,n){var r=e-60*t*1e3,i=n.offset(r);return t===i?[r,t]:i===(n=n.offset(r-=60*(i-t)*1e3))?[r,i]:[e-60*Math.min(i,n)*1e3,Math.max(i,n)]}function xUe(e,t){e+=60*t*1e3;t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function vUe(e,t,n){return CUe(HVe(e),t,n)}function bUe(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,BVe(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=THe.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),t=CUe(HVe(r),n,e.zone),r=t[0],n=t[1];return 0!==i&&(n=e.zone.offset(r+=i)),{ts:r,o:n}}function yUe(e,t,n,r,i){var o=n.setZone,a=n.zone;return e&&0!==Object.keys(e).length?(e=PUe.fromObject(Object.assign(e,n,{zone:t||a,setZone:void 0})),o?e:e.setZone(a)):PUe.invalid(new pBe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function AUe(e,t,n){return void 0===n&&(n=!0),e.isValid?uBe.create(zBe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function IUe(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,o=t.includePrefix,o=void 0!==o&&o,a=t.includeZone,a=void 0!==a&&a,s=t.spaceZone,t=t.format,t=void 0===t?"extended":t,l="basic"===t?"HHmm":"HH:mm",n=(void 0!==n&&n&&0===e.second&&0===e.millisecond||(l+="basic"===t?"ss":":ss",void 0!==r&&r&&0===e.millisecond)||(l+=".SSS"),(a||i)&&(void 0!==s&&s)&&(l+=" "),a?l+="z":i&&(l+="basic"===t?"ZZZ":"ZZ"),AUe(e,l));return n=o?"T"+n:n}var wUe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},jUe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},SUe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},OUe=["year","month","day","hour","minute","second","millisecond"],kUe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],TUe=["year","ordinal","hour","minute","second","millisecond"];function EUe(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(t)return t;throw new XFe(e)}function NUe(e,t){for(var n=GFe(OUe);!(r=n()).done;){var r=r.value;IVe(e[r])&&(e[r]=wUe[r])}var i,o=uUe(e)||pUe(e);return o?PUe.invalid(o):(o=NBe.now(),i=(o=vUe(e,t.offset(o),t))[0],new PUe({ts:i,zone:t,o:o[1]}))}function MUe(t,n,r){function e(e,t){return e=RVe(e,o||r.calendary?0:2,!0),n.loc.clone(r).relFormatter(r).format(e,t)}function i(e){return r.calendary?n.hasSame(t,e)?0:n.startOf(e).diff(t.startOf(e),e).get(e):n.diff(t,e).get(e)}var o=!!IVe(r.round)||r.round;if(r.unit)return e(i(r.unit),r.unit);for(var a=GFe(r.units);!(s=a()).done;){var s=s.value,l=i(s);if(1<=Math.abs(l))return e(l,s)}return e(n<t?-0:0,r.units[r.units.length-1])}var PUe=(()=>{function C(e){var t,n=e.zone||NBe.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new pBe("invalid input"):null)||(n.isValid?null:fUe(n)),i=(this.ts=IVe(e.ts)?NBe.now():e.ts,null),o=null;r||(o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)?(i=(t=[e.old.c,e.old.o])[0],t[1]):(t=n.offset(this.ts),i=xUe(this.ts,t),i=(r=Number.isNaN(i.year)?new pBe("invalid input"):null)?null:i,r?null:t)),this._zone=n,this.loc=e.loc||zBe.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}C.now=function(){return new C({})},C.local=function(e,t,n,r,i,o,a){return IVe(e)?C.now():NUe({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},NBe.defaultZone)},C.utc=function(e,t,n,r,i,o,a){return IVe(e)?new C({ts:NBe.now(),zone:ABe.utcInstance}):NUe({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},ABe.utcInstance)},C.fromJSDate=function(e,t){void 0===t&&(t={});var n,e="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;return Number.isNaN(e)?C.invalid("invalid input"):(n=wBe(t.zone,NBe.defaultZone)).isValid?new C({ts:e,zone:n,loc:zBe.fromObject(t)}):C.invalid(fUe(n))},C.fromMillis=function(e,t){if(void 0===t&&(t={}),wVe(e))return e<-864e13||864e13<e?C.invalid("Timestamp out of range"):new C({ts:e,zone:wBe(t.zone,NBe.defaultZone),loc:zBe.fromObject(t)});throw new $Fe("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},C.fromSeconds=function(e,t){if(void 0===t&&(t={}),wVe(e))return new C({ts:1e3*e,zone:wBe(t.zone,NBe.defaultZone),loc:zBe.fromObject(t)});throw new $Fe("fromSeconds requires a numerical input")},C.fromObject=function(e){var t=wBe(e.zone,NBe.defaultZone);if(!t.isValid)return C.invalid(fUe(t));var n=NBe.now(),r=t.offset(n),i=ZVe(e,EUe,["zone","locale","outputCalendar","numberingSystem"]),o=!IVe(i.ordinal),a=!IVe(i.year),s=!IVe(i.month)||!IVe(i.day),a=a||s,l=i.weekYear||i.weekNumber,c=zBe.fromObject(e);if((a||o)&&l)throw new QFe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new QFe("Can't mix ordinal dates with month/day");for(var d,s=l||i.weekday&&!a,u=xUe(n,r),p=(s?(m=kUe,d=jUe,u=sUe(u)):o?(m=TUe,d=SUe,u=cUe(u)):(m=OUe,d=wUe),!1),g=GFe(m);!(f=g()).done;){var f=f.value;IVe(i[f])?i[f]=(p?d:u)[f]:p=!0}var h,m,l=(s?(n=jVe((l=i).weekYear),m=MVe(l.weekNumber,1,UVe(l.weekYear)),h=MVe(l.weekday,1,7),n?m?!h&&rUe("weekday",l.weekday):rUe("week",l.week):rUe("weekYear",l.weekYear)):o?(m=jVe((n=i).year),h=MVe(n.ordinal,1,VVe(n.year)),m?!h&&rUe("ordinal",n.ordinal):rUe("year",n.year)):uUe(i))||pUe(i);return l?C.invalid(l):(n=new C({ts:(m=vUe(s?lUe(i):o?dUe(i):i,r,t))[0],zone:t,o:m[1],loc:c}),i.weekday&&a&&e.weekday!==n.weekday?C.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+n.toISO()):n)},C.fromISO=function(e,t){void 0===t&&(t={});var n=WBe(e,[dHe,fHe],[uHe,hHe],[pHe,mHe],[gHe,CHe]);return yUe(n[0],n[1],t,"ISO 8601",e)},C.fromRFC2822=function(e,t){void 0===t&&(t={});var n=WBe(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[rHe,iHe]);return yUe(n[0],n[1],t,"RFC 2822",e)},C.fromHTTP=function(e,t){void 0===t&&(t={});e=WBe(e,[oHe,lHe],[aHe,lHe],[sHe,cHe]);return yUe(e[0],e[1],t,"HTTP",t)},C.fromFormat=function(e,t,n){if(void 0===n&&(n={}),IVe(e)||IVe(t))throw new $Fe("fromFormat requires an input string and a format");var r=n,i=r.locale,r=r.numberingSystem,i=zBe.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===r?null:r,defaultToEN:!0}),i=[(r=eUe(r=i,e,t)).result,r.zone,r.invalidReason],r=i[0],o=i[1],i=i[2];return i?C.invalid(i):yUe(r,o,n,"format "+t,e)},C.fromString=function(e,t,n){return C.fromFormat(e,t,n=void 0===n?{}:n)},C.fromSQL=function(e,t){void 0===t&&(t={});var n=WBe(e,[vHe,yHe],[bHe,AHe]);return yUe(n[0],n[1],t,"SQL",e)},C.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new $Fe("need to specify a reason the DateTime is invalid");e=e instanceof pBe?e:new pBe(e,t);if(NBe.throwOnInvalid)throw new JFe(e);return new C({invalid:e})},C.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=C.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){e=uBe.create(this.loc.clone(e=void 0===e?{}:e),e).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}},e.toUTC=function(e,t){return void 0===t&&(t={}),this.setZone(ABe.instance(e=void 0===e?0:e),t)},e.toLocal=function(){return this.setZone(NBe.defaultZone)},e.setZone=function(e,t){var n,t=void 0===t?{}:t,r=t.keepLocalTime,r=void 0!==r&&r,t=t.keepCalendarTime,t=void 0!==t&&t;return(e=wBe(e,NBe.defaultZone)).equals(this.zone)?this:e.isValid?(n=this.ts,(r||t)&&(r=e.offset(this.ts),n=vUe(this.toObject(),r,e)[0]),mUe(this,{ts:n,zone:e})):C.invalid(fUe(e))},e.reconfigure=function(e){var e=void 0===e?{}:e,t=e.locale,t=this.loc.clone({locale:t,numberingSystem:e.numberingSystem,outputCalendar:e.outputCalendar});return mUe(this,{loc:t})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,e=ZVe(e,EUe,[]),n=!IVe(e.weekYear)||!IVe(e.weekNumber)||!IVe(e.weekday),r=!IVe(e.ordinal),i=!IVe(e.year),o=!IVe(e.month)||!IVe(e.day),a=e.weekYear||e.weekNumber;if((i||o||r)&&a)throw new QFe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new QFe("Can't mix ordinal dates with month/day");n?t=lUe(Object.assign(sUe(this.c),e)):IVe(e.ordinal)?(t=Object.assign(this.toObject(),e),IVe(e.day)&&(t.day=Math.min(BVe(t.year,t.month),t.day))):t=dUe(Object.assign(cUe(this.c),e));i=vUe(t,this.o,this.zone);return mUe(this,{ts:i[0],o:i[1]})},e.plus=function(e){return this.isValid?mUe(this,bUe(this,EHe(e))):this},e.minus=function(e){return this.isValid?mUe(this,bUe(this,EHe(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},e=THe.normalizeUnit(e);switch(e){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}return"weeks"===e&&(t.weekday=1),"quarters"===e&&(e=Math.ceil(this.month/3),t.month=3*(e-1)+1),this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?uBe.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):gUe},e.toLocaleString=function(e){return void 0===e&&(e=tVe),this.isValid?uBe.create(this.loc.clone(e),e).formatDateTime(this):gUe},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?uBe.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},e.toISODate=function(e){e=(void 0===e?{}:e).format,e="basic"===(void 0===e?"extended":e)?"yyyyMMdd":"yyyy-MM-dd";return AUe(this,e=9999<this.year?"+"+e:e)},e.toISOWeekDate=function(){return AUe(this,"kkkk-'W'WW-c")},e.toISOTime=function(e){var e=void 0===e?{}:e,t=e.suppressMilliseconds,n=e.suppressSeconds,r=e.includeOffset,i=e.includePrefix,e=e.format;return IUe(this,{suppressSeconds:void 0!==n&&n,suppressMilliseconds:void 0!==t&&t,includeOffset:void 0===r||r,includePrefix:void 0!==i&&i,format:void 0===e?"extended":e})},e.toRFC2822=function(){return AUe(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return AUe(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return AUe(this,"yyyy-MM-dd")},e.toSQLTime=function(e){var e=void 0===e?{}:e,t=e.includeOffset,e=e.includeZone;return IUe(this,{includeOffset:void 0===t||t,includeZone:void 0!==e&&e,spaceZone:!0})},e.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},e.toString=function(){return this.isValid?this.toISO():gUe},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(e){var t;return void 0===e&&(e={}),this.isValid?(t=Object.assign({},this.c),e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t):{}},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(e,t,n){var r;return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.isValid&&e.isValid?(n=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),t=t,t=(Array.isArray(t)?t:[t]).map(THe.normalizeUnit),t=DHe((r=e.valueOf()>this.valueOf())?this:e,r?e:this,t,n),r?t.negate():t):THe.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime")},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(C.now(),e,t)},e.until=function(e){return this.isValid?MHe.fromDateTimes(this,e):this},e.hasSame=function(e,t){var n;return!!this.isValid&&(n=e.valueOf(),(e=this.setZone(e.zone,{keepLocalTime:!0})).startOf(t)<=n)&&n<=e.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){var t,n,r,i;return this.isValid?(t=(e=void 0===e?{}:e).base||C.fromObject({zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],i=e.unit,Array.isArray(e.unit)&&(r=e.unit,i=void 0),MUe(t,this.plus(n),Object.assign(e,{numeric:"always",units:r,unit:i}))):null},e.toRelativeCalendar=function(e){return void 0===e&&(e={}),this.isValid?MUe(e.base||C.fromObject({zone:this.zone}),this,Object.assign(e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},C.min=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(C.isDateTime))return TVe(t,function(e){return e.valueOf()},Math.min);throw new $Fe("min requires all arguments be DateTimes")},C.max=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.every(C.isDateTime))return TVe(t,function(e){return e.valueOf()},Math.max);throw new $Fe("max requires all arguments be DateTimes")},C.fromFormatExplain=function(e,t,n){var n=n=void 0===n?{}:n,r=n.locale,n=n.numberingSystem;return eUe(zBe.fromOpts({locale:void 0===r?null:r,numberingSystem:void 0===n?null:n,defaultToEN:!0}),e,t)},C.fromStringExplain=function(e,t,n){return C.fromFormatExplain(e,t,n=void 0===n?{}:n)},HFe(C,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?hUe(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?hUe(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?hUe(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?cUe(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?PHe.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?PHe.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?PHe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?PHe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return FVe(this.year)}},{key:"daysInMonth",get:function(){return BVe(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?VVe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?UVe(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return tVe}},{key:"DATE_MED",get:function(){return nVe}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return rVe}},{key:"DATE_FULL",get:function(){return iVe}},{key:"DATE_HUGE",get:function(){return oVe}},{key:"TIME_SIMPLE",get:function(){return aVe}},{key:"TIME_WITH_SECONDS",get:function(){return sVe}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return lVe}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return cVe}},{key:"TIME_24_SIMPLE",get:function(){return dVe}},{key:"TIME_24_WITH_SECONDS",get:function(){return uVe}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return pVe}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return gVe}},{key:"DATETIME_SHORT",get:function(){return fVe}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return hVe}},{key:"DATETIME_MED",get:function(){return mVe}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return CVe}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return xVe}},{key:"DATETIME_FULL",get:function(){return vVe}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return bVe}},{key:"DATETIME_HUGE",get:function(){return yVe}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return AVe}}]),C})();function LUe(e){if(PUe.isDateTime(e))return e;if(e&&e.valueOf&&wVe(e.valueOf()))return PUe.fromJSDate(e);if(e&&"object"==typeof e)return PUe.fromObject(e);throw new $Fe("Unknown datetime argument: "+e+", of type "+typeof e)}var DUe=EQ.DateTime=PUe;EQ.Duration=THe,EQ.FixedOffsetZone=ABe,EQ.IANAZone=bBe,EQ.Info=PHe,EQ.Interval=MHe,EQ.InvalidZone=IBe,EQ.LocalZone=hBe,EQ.Settings=NBe,EQ.VERSION="1.28.1",EQ.Zone=gBe;let RUe=(e,t)=>e.length>t?nt.exports.jsx(he,Object.assign({title:e,arrow:!0},{children:nt.exports.jsxs("span",{children:[e.slice(0,t).trim(),"..."]})})):nt.exports.jsx(nt.exports.Fragment,{children:e});let FUe=e=>{var t,n={day:"N/A",time:"N/A",full:"N/A"};return void 0!==e&&(t=(e=DUe.fromISO(e.split(" ").join(""))).toFormat("LL/dd/yyyy"),e=e.toFormat("t"),"Invalid DateTime"!==t&&(n.day=t),"Invalid DateTime"!==e&&(n.time=e),n.full=n.day+" "+n.time),n},VUe=({value:e,removeTime:t,className:n,testIdDate:r="date",testIdTime:i="time",rawDateValue:o="",rawTimeValue:a="",orientation:s="vertical"})=>{e=FUe(e);let l="N/A"===e.time?"":e.time,c=e.day;e=()=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({sx:{mt:1},"data-test":"day",variant:"body2",color:"textPrimary",className:n,"data-testid":r},{children:o||c})),!t&&nt.exports.jsx(pe,Object.assign({"data-test":"time",variant:"caption",color:"textSecondary","data-testid":i},{children:a||l}))]});return"horizontal"===s?nt.exports.jsx(_,Object.assign({direction:"row",gap:"10px",sx:{alignItems:"center","& > p":{margin:0}}},{children:nt.exports.jsx(e,{})})):nt.exports.jsx(e,{})},BUe=je()(e=>({root:{display:"flex",flexDirection:"column",height:"100%"},header:{height:60,display:"flex",justifyContent:"space-between",padding:e.spacing(2),borderBottom:"0.5px solid "+e.palette.divider},tableWrapper:{padding:e.spacing(2),flexGrow:1,overflowY:"hidden"},toolbar:{display:"flex",justifyContent:"center",alignItems:"center"}})),HUe=({breadcrumbs:e,actions:t,table:n,tableWrapperStyles:r={}})=>{var i=BUe().classes;return nt.exports.jsxs("section",Object.assign({className:i.root},{children:[nt.exports.jsxs("header",Object.assign({className:i.header},{children:[nt.exports.jsx("div",Object.assign({className:i.toolbar},{children:e})),nt.exports.jsx("div",Object.assign({className:i.toolbar},{children:t}))]})),nt.exports.jsx("div",Object.assign({className:i.tableWrapper,style:r},{children:n}))]}))},UUe={getRandom:(e="")=>e?(e=(t=>{let n=0;for(let e=0;e<t.length;e++){var r=t.charCodeAt(e);n=(n<<5)-n+r,n&=n}return n})(e)/4294967295)<0?-e:e:Math.random(),randomFromArr:(e,t="")=>{var n;return null!=e&&e.length?(n=e.length-1,e[Math.floor(UUe.getRandom(t)*(1+n))]):null},wait:t=>$Re(void 0,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))}),getId:()=>uje(),getProfileImageURL:(e="")=>`https://api.dicebear.com/7.x/${UUe.randomFromArr(["miniavs","open-peeps","pixel-art","icons","adventurer","big-smile"],e)}/svg`+(e?`?seed="${e}"`:""),getImageURL:(e="")=>{var t=["300","350","400","450","500","550","600","650","700","750","800","850"];return`https://source.unsplash.com/random/${UUe.randomFromArr(t,e)}x${UUe.randomFromArr(t)}/?`+UUe.randomFromArr(["city","nature","sunrise","beach","landscape","car","food","sky","architecture"],e)},getDate:(e=2018,t=(new Date).getFullYear(),n="")=>{function r(e,t){t=Math.floor(UUe.getRandom(n)*(t-e+1)+e);return(1===t.toString().length?"0":"")+t}var i=r(1,28),o=r(1,12),e=r(e,t),t=r(0,23),a=r(0,59);return new Date(e+`-${o}-${i} ${t}:${a}:00`)}};var zUe=Object.freeze({__proto__:null,formatTime:e=>{e=e.toLocaleTimeString().split(" ");return e[0]=e[0].split(":"),e[0].pop(),e[0]=e[0].join(":"),e[0]?e[0]+" "+(e[1]||""):""},truncatedString:RUe,usePrevious:function(e){let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current},getTimeDifference:e=>{var t=(new Date).getTime();return(new Date(e).getTime()-t)/1e3/60},totalRunTime:(e,t,n)=>{e=new Date(e).getTime();let r=(new Date(t).getTime()-e)/1e3,i="";var t=n.formatMessage({id:"processing-center-overview-tab.total-run-time-day",defaultMessage:[{type:0,value:"day"}]}),e=n.formatMessage({id:"processing-center-overview-tab.total-run-time.days",defaultMessage:[{type:0,value:"days"}]}),o=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hour",defaultMessage:[{type:0,value:"hour"}]}),a=n.formatMessage({id:"processing-center-overview-tab.total-run-time.hours",defaultMessage:[{type:0,value:"hours"}]}),s=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minute",defaultMessage:[{type:0,value:"minute"}]}),l=n.formatMessage({id:"processing-center-overview-tab.total-run-time.minutes",defaultMessage:[{type:0,value:"minutes"}]}),n=n.formatMessage({id:"processing-center-overview-tab.total-run-time.just-now",defaultMessage:[{type:0,value:"Just Now"}]}),c=Math.floor(r/86400),c=(c&&(r-=3600*c*24,i+=c+` ${1===c?t:e} `),Math.floor(r/3600)),t=(c&&(r-=3600*c,i+=c+` ${1===c?o:a} `),Math.floor(r/60));return t&&(i+=t+" "+(1===t?s:l)),i=i||n},dateHelper:FUe,DateFormatter:VUe,DataCenterSharedContentLayout:HUe,mockHelper:UUe});class _Ue extends Le.exports.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary - Uncaught error:",e,t);var n=this.props.onDidCatchError;n&&n(e,t)}render(){var{fallbackUI:e,children:t}=this.props;return this.state.hasError?e||qUe():t}}let qUe=()=>nt.exports.jsxs(_,Object.assign({sx:{padding:"30px",alignItems:"center",justifyContent:"center",gap:"10px"}},{children:[nt.exports.jsx(tue,{sx:{color:"#55607c",fontSize:"30px"}}),nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:nt.exports.jsx(Ce,{id:"shared-reusable-utils.error-boundary.title",defaultMessage:"Something went wrong loading this content.",description:"Error message title"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"shared-reusable-utils.error-boundary.subtitle",defaultMessage:"Please try again later.",description:"Error message subtitle"})}))]}));let WUe=()=>nt.exports.jsx(_,Object.assign({sx:{padding:"30px 30px 0px 30px",gap:"20px"}},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"}}),nt.exports.jsxs(_,Object.assign({gap:"5px",sx:{marginTop:"35px"}},{children:[nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},width:"80px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"}),nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"60px"})]}))]}))})),ZUe=({onRetry:e})=>nt.exports.jsxs(_,Object.assign({sx:{display:"grid",placeItems:"center",padding:"30px",gap:"10px"}},{children:[nt.exports.jsx(pe,Object.assign({fontWeight:"bold"},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.title",defaultMessage:"Something went wrong",description:"Panel Component, error state, title"})})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.subtitle",defaultMessage:"Please refresh or try again later.",description:"Panel Component, error state, subtitle"})})),e&&nt.exports.jsx(ge,Object.assign({variant:"contained",onClick:e},{children:nt.exports.jsx(Ce,{id:"shared-panel-components.error-state.retry-btn",defaultMessage:"Retry",description:"Panel Component, error state, retry button"})}))]}));var GUe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};let JUe={closePanel:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.close-panel",defaultMessage:"Close",description:"Close panel icon for a panel header"}),enterFullScreen:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.enter-fullscreen",defaultMessage:"Enter Full Screen",description:"Enter Full Screen panel icon for a panel header"}),exitFullScreen:()=>nt.exports.jsx(Ce,{id:"reusable-utils.panel-components.header.leave-fullscreen",defaultMessage:"Exit Full Screen",description:"Exit Full Screen panel icon for a panel header"})},KUe={ENTER:"sdk-ui-toggle-fullscreen-enter",EXIT:"sdk-ui-toggle-fullscreen-exit"},YUe={["& ."+KUe.EXIT]:{display:"none"}},QUe={["& ."+KUe.ENTER]:{display:"none"}},XUe=({onClick:e,testId:t=""})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,className:KUe.ENTER,id:"panel-header-enter-fullscreen-"+t},{children:JUe.enterFullScreen()})),nt.exports.jsx(he,Object.assign({title:JUe.enterFullScreen()},{children:nt.exports.jsx(ue,Object.assign({className:KUe.ENTER,onClick:e,"aria-labelledby":"panel-header-enter-fullscreen-"+t,"data-testid":"panel-header-enter-fullscreen-"+t,size:"medium"},{children:nt.exports.jsx(mpe,{})}))}))]}),$Ue=({onClick:e,testId:t=""})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,className:KUe.EXIT,id:"panel-header-exit-fullscreen-"+t},{children:JUe.exitFullScreen()})),nt.exports.jsx(he,Object.assign({title:JUe.exitFullScreen()},{children:nt.exports.jsx(ue,Object.assign({className:KUe.EXIT,onClick:e,"aria-labelledby":"panel-header-exit-fullscreen-"+t,"data-testid":"panel-header-exit-fullscreen-"+t,size:"medium"},{children:nt.exports.jsx(Cpe,{})}))}))]});let eze={"& .MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .MuiTabs-indicator":{backgroundColor:"#2A323C"}};let tze=je()(e=>({step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"& svg":{borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"#F2F5F9!important",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),nze={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"600px",maxHeight:"50vh",bgcolor:"background.paper",boxShadow:24,p:0,borderRadius:"15px"},rze=({isOpen:e,onClose:t,title:n="--",content:r="--",sx:i={},testId:o="shared-panel-modal",labeledBy:a="shared-reusable-modal-title",describedBy:s="shared-reusable-modal-description",ContainerProps:l={}})=>nt.exports.jsx(jm,Object.assign({open:e,onClose:t,"aria-labelledby":a,"aria-describedby":s},{children:nt.exports.jsxs(_,Object.assign({gap:"10px",sx:Object.assign(Object.assign({},nze),i)},{children:[nt.exports.jsxs(_,Object.assign({sx:{borderBottom:"1px solid #d5dfe9",padding:"8px 30px",paddingRight:"10px"},direction:"row",alignItems:"center",justifyContent:"space-between"},{children:[nt.exports.jsx(pe,Object.assign({sx:{margin:"0",fontSize:"18px",fontFamily:"Dosis",fontStyle:"normal",lineHeight:"22px",letterSpacing:"-1.30385e-09px",fontWeight:"600",cursor:"default",textTransform:"uppercase",userSelect:"none",color:"#5C6269"},id:a,variant:"h1",component:"h2","data-testid":o+"-title"},{children:n})),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"shared-reusable-utils.panel-modal.close-modal",defaultMessage:"Close",description:"Close modal tooltip"}),disableInteractive:!0},{children:nt.exports.jsx(ue,Object.assign({onClick:t,"data-testid":o+"-header-close"},{children:nt.exports.jsx(zde,{})}))}))]})),nt.exports.jsx(_,Object.assign({sx:{width:"100%",padding:"30px",boxSizing:"border-box",overflow:"hidden"}},l,{"data-testid":o+"-content"},{children:r}))]}))})),ize=je()(e=>({root:{width:1280,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0},overlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"}})),oze=({dataTest:e,panelId:t,dimmed:n,children:r})=>{var i=ize().classes,o=(Ae(Cse)||[]).find(e=>e.panelId===t),o=(null==o?void 0:o.panelConfig.zIndex)||(null==o?void 0:o.panelConfig.autoZIndex)||1099;return nt.exports.jsx(Ch,{children:nt.exports.jsxs("div",Object.assign({role:"presentation","data-test":e,className:Zhe(i.panel,i.fullScreen),style:{zIndex:o}},{children:[n&&nt.exports.jsx("div",{className:i.overlay}),r]}))})};a2e={PanelLoadingState:WUe,TableLoadingState:()=>nt.exports.jsx(_,Object.assign({sx:{padding:"30px 30px 0px 30px",gap:"10px"}},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsxs(_,Object.assign({width:"100%",gap:"10px",direction:"row"},{children:[nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}}),nt.exports.jsx(ye,{animation:"wave",width:"24%",sx:{transform:"none"}})]})),nt.exports.jsx(_,Object.assign({gap:"5px"},{children:new Array(16).fill(null).map((e,t)=>nt.exports.jsx(ye,{animation:"wave",sx:{transform:"none"},height:"24px"},t))}))]}))}))};(h2e=QQe=QQe||{}).engine="engine",h2e.engineBuild="engineBuild",h2e.schema="schema",h2e.application="application",h2e.library="library",h2e.flow="flow",h2e.applicationContentMenuExtension="applicationContentMenuExtension",h2e.applicationView="applicationView",h2e.package="package",h2e.sdo="sdo",h2e.tdo="tdo",h2e.scheduledJob="scheduledJob",h2e.dagTemplate="dagTemplate",h2e.nodeRedPalette="nodeRedPalette",h2e.enabledStatus="enabledStatus",h2e.orgStatus="orgStatus";let aze={[QQe.orgStatus]:{active:{text:"rgba(56, 142, 60, 1)",background:"rgba(27, 94, 32, 0.2)"},deleted:{text:"rgba(33, 33, 33, 1)",background:"rgba(33, 33, 33, 0.1)"}},[QQe.enabledStatus]:{enabled:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.engine]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.engineBuild]:{fetching:{},invalid:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},available:{text:"#388E3C",background:"rgba(96, 125, 180, 0.3)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},disapproved:{text:"#212121",background:"rgba(255, 161, 104, 0.4)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},deploying:{text:"#F57C00",background:"rgba(20, 96, 121, 0.2)"},deployed:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.schema]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},inactive:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.application]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},rejected:{text:"#388E3C",background:"rgba(183, 28, 28, 0.2)"},approved:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#B71C1C",background:"rgba(33, 33, 33, 0.1)"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.flow]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},disabled:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deleted:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},ready:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.applicationContentMenuExtension]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.package]:{active:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},approved:{text:"#0D62D2",background:"rgba(13, 98, 210, 0.2)"},published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},pending:{text:"#F57C00",background:"rgba(249, 168, 37, 0.2)"},deactivated:{text:"#B71C1C",background:"rgba(183, 28, 28, 0.2)"},draft:{text:"#4F5863",background:"#F7F7F7"},_default:{text:"#212121",background:"rgba(33, 33, 33, 0.1)"}},[QQe.applicationView]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.scheduledJob]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.dagTemplate]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.nodeRedPalette]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.library]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.tdo]:{_default:{text:"#4F5863",background:"#FFFFFF"}},[QQe.sdo]:{published:{text:"#388E3C",background:"rgba(27, 94, 32, 0.2)"},draft:{text:"#4F5863",background:"#FFFFFF"},_default:{text:"#4F5863",background:"#FFFFFF"}}},sze={text:"#4F5863",background:"#FFFFFF"},lze=({statusType:e,status:t,testId:n="shared-status-pill",ContainerProps:r={},TypographyProps:i={}})=>{var{background:e,text:o}=aze[e][null==t?void 0:t.toLowerCase()]||(null==(e=aze[e])?void 0:e._default)||sze;return nt.exports.jsx(be,Object.assign({},r,{sx:Object.assign(Object.assign({},null!=(r=null==r?void 0:r.sx)?r:{}),{width:"fit-content",height:"18px",left:"264px",top:"244px",borderRadius:"30px",textAlign:"center",letterSpacing:"-1.30385e-09px",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"3px 10px",gap:"10px",background:e}),"data-testid":n},{children:nt.exports.jsx(pe,Object.assign({"data-test":"status-pill",variant:"caption",sx:{color:o,fontFamily:"'Nunito'",fontStyle:"normal",fontWeight:800,fontSize:"9px",lineHeight:"12px",textTransform:"uppercase"}},i,{children:t}))}))};let cze=je()(e=>({searchInput:{opacity:0,width:"0px",MozTransition:"all 300ms ease",WebkitTransition:"all 300ms ease","&.is-visible":{width:"400px",opacity:1,marginRight:"5px"},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}}));var dze;let uze=(e,t)=>nt.exports.jsx(Ce,{id:"{dataTestPrefix}-permission-set-{lowerCaseType}-all-message","data-test":`${t}-permission-set-${e.toLowerCase()}-all-message`,defaultMessage:"{type} All",description:"{type} All button message",values:{type:e,lowerCaseType:e.toLowerCase(),dataTestPrefix:t}}),pze=je()(e=>({titleContainer:{backgroundColor:"#F2F7FE",borderRadius:"4px",height:"41px",display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"10px"},mainTitle:{fontWeight:600},selectBtn:{fontSize:"12px",color:"#0C53B0"},permissionsRow:{backgroundColor:"#FFFFFF",display:"flex",alignItems:"center",borderBottom:"0.5px solid #D5DFE9","&:last-child":{marginBottom:"10px"}},formLabelStyle:{height:"46px",width:"100%",display:"flex",justifyContent:"space-between",marginRight:0,marginLeft:"10px"},checkboxLabel:{fontWeight:600}})),gze=({onPermissionChange:e,funcPermissions:t,permissionSetExistingPerm:n,isPermissionProtected:r,setUpdatePermissionChange:o,dataTestPrefix:a,isUsedForApiTokens:s=!1})=>{let i,l,c=pze().classes;let d=(null!=(l=null==(i=Ae(uG))?void 0:i.myRights)?l:[]).map(e=>(e.charAt(0).toUpperCase()+e.slice(1)).replace(/\./g,":")),u=Object.values(t).reduce((e,t)=>{var n=e.length?e[e.length-1]:[];return e.length&&n[0].slice(0,n[0].lastIndexOf(":"))===t.slice(0,t.lastIndexOf(":"))?n.push(t):e.push([t]),e},[]),[p,g]=Le.exports.useState(()=>u.map(e=>e.map(()=>!1))),[f,h]=Le.exports.useState([]),[m,C]=Le.exports.useState(()=>u.map(()=>!1));Le.exports.useEffect(()=>{p.length<=0&&g(()=>u.map(e=>e.map(()=>!1))),m.length<=0&&C(()=>u.map(()=>!1))},[t]),Le.exports.useEffect(()=>{if(n){let r=[];if(Object.entries(t).forEach(t=>{null!=n&&n.find(e=>e===t[0])&&r.push(t[1])}),!(r.length<=0)){h(we.exports.uniq(r));let n=[...m];g(u.map((e,t)=>{e=e.map(e=>-1!==r.indexOf(e));return void 0===e.find(e=>!1===e)&&(n[t]=!0),C(n),e}))}}},[n]);return Le.exports.useEffect(()=>{e(f)},[f]),nt.exports.jsx(nt.exports.Fragment,{children:u.map((e,i)=>{var t;return nt.exports.jsxs(pC,Object.assign({sx:{m:0,width:"100%"},component:"fieldset",variant:"standard",disabled:r},{children:[nt.exports.jsx(LC,Object.assign({component:"legend",sx:{width:"100%"}},{children:nt.exports.jsxs(be,Object.assign({className:c.titleContainer},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:c.mainTitle,"data-testid":a+"-permissions.functional-permissions.group-title","data-test":a+"-permissions.functional-permissions.group-title"},{children:null!=(t=e[0])&&t.includes(":")?e[0].slice(0,e[0].lastIndexOf(":")):e[0]})),!r&&nt.exports.jsx(ge,Object.assign({className:c.selectBtn,onClick:()=>{return r=i,n=e,C(n=>n.map((e,t)=>t!==r?e:!n[t])),g(e=>e.map((e,t)=>t!==r?e:m[r]?(h(e=>we.exports.uniq(e.filter(e=>!n.includes(e)))),e.map(()=>!1)):(s?(t=n.filter(e=>!f.includes(e)&&d.includes(e)),h([...f,...t])):h(we.exports.uniq([...f,...n])),e.map(()=>!0)))),void(o&&o(!0));var r,n},color:"primary",variant:"text","data-test":a+"-permissions.functional-permissions.save-btn"},{children:m[i]?uze("Clear",a):uze("Select",a)}))]}))})),e.length&&e.map((t,n)=>{var e;return nt.exports.jsx(AC,Object.assign({className:c.permissionsRow,"data-testid":a+"-permission-form-control-checkbox","data-test":a+"-permission-form-control-checkbox"},{children:nt.exports.jsx(xC,{className:c.formLabelStyle,labelPlacement:"start","data-testid":a+"-permission-form-control-label","data-test":a+"-permission-form-control-label",control:nt.exports.jsx(he,Object.assign({className:"aiware-el",title:s&&!d.some(e=>new RegExp(`^${e}$`,"i").test(t))&&nt.exports.jsx(Ce,{id:"admin-center-new-permission-permission-not-available-message",defaultMessage:"This permission is not {br} available in your Organization",description:"Permission not available message",values:{br:nt.exports.jsx("br",{})}}),arrow:!0,componentsProps:{tooltip:{sx:{fontSize:"12px",fontFamily:"Nunito",fontStyle:"Normal",lineHeight:"16px",letterSpacing:"-1.30385e-09px",fontWeight:400}}},"data-testid":"admin-center-new-permission-permission-not-available-message-tool-tip","data-test":"admin-center-new-permission-permission-not-available-message-tool-tip"},{children:nt.exports.jsx(om,{name:t,value:t,id:t,size:"small",checked:Boolean(null==(e=null==p?void 0:p[i])?void 0:e[n]),color:"primary",onChange:e=>((r,n,e)=>{let i=e.target.checked,t=e.target.value;i?h(we.exports.uniq([...f,t])):h(e=>we.exports.uniq(e.filter(e=>e!==t))),g(e=>e.map((e,t)=>t!==r?e:((void 0===(t=e.map((e,t)=>t===n?i:e)).find(e=>!e)||void 0===t.find(e=>e)&&m[r])&&C(n=>n.map((e,t)=>t===r?!n[t]:e)),t))),null!=o&&o(!0)})(i,n,e),"data-testid":a+"-permissions.functional-permissions.checkbox","data-test":a+"-permissions.functional-permissions.checkbox",disabled:s&&!d.some(e=>new RegExp(`^${e}$`,"i").test(t))||r})})),label:nt.exports.jsx(pe,Object.assign({variant:"body2",className:c.checkboxLabel,"data-testid":a+"-permissions.functional-permissions.checkbox-label","data-test":a+"-permissions.functional-permissions.checkbox-label"},{children:t}))})}),t)})]}),e[0])})})},fze=((c2e=dze=dze||{}).STRING="STRING",c2e.NUMBER="NUMBER",c2e.BOOLEAN="BOOLEAN",c2e.DATE="DATE",c2e.URL="URL",c2e.JSON="JSON",c2e.UUID="UUID",c2e.OBJECT="OBJECT",c2e.DEFAULT="DEFAULT",c2e.NULL="NULL",e=>e&&e[0]?e.map((e,t)=>({index:t,values:Object.values(e)})):[]),hze=e=>e&&e[0]?Object.keys(e[0]):[],mze=(e,t)=>{if(!t)return e;var{currentPage:t,pageSize:n}=t,t=(t-1)*n;let r=t+n;return r>=e.length&&(r=e.length),e.slice(t,r)},Cze={isValidURL:e=>{try{return new URL(e),!0}catch(e){return!1}},isUUID:e=>lje(e),isBoolean:e=>"boolean"==typeof e,isNumber:e=>!1===isNaN(Number(e)),isObject:e=>e&&"object"==typeof e&&e.constructor===Object,isDate:e=>e instanceof Date&&!isNaN(null==e?void 0:e.getTime()),isDateString:e=>{e=new Date(e);return!isNaN(e.getTime())}},xze=e=>null==e||""===e?dze.NULL:Cze.isObject(e)?dze.OBJECT:Cze.isBoolean(e)?dze.BOOLEAN:Cze.isNumber(e)&&5<(""+e).length?dze.NUMBER:Cze.isDateString(e)?dze.DATE:Cze.isValidURL(e)?dze.URL:Cze.isUUID(e)?dze.UUID:dze.STRING,vze=[20,50,100],bze={pagination:{first:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.first",defaultMessage:"First",description:"JSON Table Pagination - First"}),prev:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.prev",defaultMessage:"Prev",description:"JSON Table Pagination - Prev"}),next:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.next",defaultMessage:"Next",description:"JSON Table Pagination - Next"}),rows:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.rows",defaultMessage:"Rows",description:"JSON Table Pagination - Rows"}),of:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.of",defaultMessage:"of",description:"JSON Table Pagination - of"}),many:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.pagination.many",defaultMessage:"Many",description:"JSON Table Pagination - Many"})},errors:{tableErrorTitle:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.tableTitleError",defaultMessage:"An Error occurred when displaying this data.",description:"JSON Table Error Title Message"}),tableErrorSubTitle:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.tableTitleSubError",defaultMessage:"Please try again later",description:"JSON Table Error Sub Title Message"}),headerError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.headerError",defaultMessage:"A data error occurred when attempting to display this table header.",description:"JSON Table Header Error Message"}),cellError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.cellError",defaultMessage:"Error loading cell data.",description:"JSON Table Cell Error Message"}),paginationError:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-table.errors.paginationError",defaultMessage:"Error displaying table pagination.",description:"JSON Table Pagination Error Message"})}},yze=()=>nt.exports.jsx(tI,Object.assign({"data-testid":"error-table-header"},{children:nt.exports.jsx(LI,{children:nt.exports.jsx(_,Object.assign({sx:{width:"100%",justifyContent:"center",alignItems:"center"}},{children:nt.exports.jsx(pe,Object.assign({noWrap:!0},{children:bze.errors.headerError}))}))})})),Aze=e=>{var t,{data:e,testId:n}=e.tableProps;return e&&e[0]?(t=e&&e[0],e=hze(e),nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(yze,{})},{children:nt.exports.jsx(tI,Object.assign({"data-testid":n+"-table-header"},{children:nt.exports.jsxs(LI,{children:[!t&&nt.exports.jsx(wze,{testId:n}),t&&nt.exports.jsx(Ize,{headerCellLabels:e,testId:n})]})}))}))):nt.exports.jsx(nt.exports.Fragment,{})},Ize=({headerCellLabels:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(me,Object.assign({sx:{userSelect:"none",pointerEvents:"none"},"data-testid":n+"-table-header-cell-"+(t+1),align:"left"},{children:e}),t))}),wze=({testId:e})=>nt.exports.jsx(me,Object.assign({"data-testid":e+"-table-header-row-loader",align:"left",colSpan:1e3},{children:nt.exports.jsx(ye,{sx:{transform:"none",height:"25px"}})})),jze=({value:e,testId:t="shared-copy-chip",ChipProps:n={},sx:r={}})=>{let[i,o]=Le.exports.useState(!1);var a={copied:nt.exports.jsx(Ce,{id:"shared-reusable-utils.copy-chip.chip-title-copied",defaultMessage:"Copied!",description:"Copy Chip tooltip label - copied"}),clickToCopy:nt.exports.jsx(Ce,{id:"shared-reusable-utils.copy-chip.chip-title-click-to-copy",defaultMessage:"Click to Copy",description:"Copy Chip tooltip label - click to copy"})};return nt.exports.jsx(he,Object.assign({disableInteractive:!0,title:i?a.copied:a.clickToCopy},{children:nt.exports.jsx(e8,Object.assign({sx:r,icon:i?nt.exports.jsx(Vde,{sx:{color:"inherit"}}):nt.exports.jsx(qde,{sx:{color:"inherit"}}),onClick:()=>{try{navigator.clipboard.writeText(e.toString()).then(()=>{o(!0),setTimeout(()=>{o(!1)},1e3)})}catch(e){}},label:e},n,{"data-testid":t}))}))},Sze={button:{"&.Mui-disabled":{backgroundColor:"transparent!important"}},chip:{color:"inherit",backgroundColor:"rgb(0 0 0 / 4%)","& svg":{opacity:.5},"&:hover svg":{opacity:1}},paper:{overflow:"hidden",boxShadow:"none!important",border:"1px solid #f2f2f2"},tableStyles:{container:e=>({"&:hover":{overflow:"auto"},"&::-webkit-scrollbar":{width:"8px !important",height:"8px !important"},"& .MuiTableHead-root":{borderBottom:"1px solid #D5DFE9",position:"sticky",top:"0",background:"#fff",boxShadow:e?"0px -5px 20px rgb(0 0 0 / 45%)":"0px -5px 20px transparent",transition:"all 0.35s ease-in-out"},"& tr .MuiChip-icon":{color:"inherit"}}),body:{"& tr:nth-child(even)":{backgroundColor:"#F8F8F8"}},row:{"&:last-child td, &:last-child th":{border:0},"&:hover td":{color:"#0a0a0a!important"},"& td":{color:"#404040",transition:"color 0.2s ease-in-out"}},cell:{border:"1px solid rgb(0 0 0 / 5%)"}}},Oze=e=>{try{return new URL(e),!0}catch(e){return!1}},kze=({value:e,testId:t="shared-url-chip",ChipProps:n={},sx:r={}})=>{n=Object.assign(Object.assign({target:"_blank"},n),{component:"a",href:e});let i=e;return Oze(e)&&(e=new URL(e),i=e.hostname),nt.exports.jsx(he,Object.assign({disableInteractive:!0,title:nt.exports.jsxs(_,Object.assign({direction:"row",alignItems:"center",gap:"5px"},{children:[nt.exports.jsx(Ce,{id:"shared-reusable-utils.url-chip.chip-title",defaultMessage:"Visit Link ",description:"URL Chip tooltip label"}),nt.exports.jsx(hue,{sx:{fontSize:"14px"}})]}))},{children:nt.exports.jsx(e8,Object.assign({sx:r,label:i,icon:nt.exports.jsx(mue,{sx:{color:"inherit"},fontSize:"small"}),clickable:!0},n,{"data-testid":t}))}))},Tze=({value:e,testId:t="shared-json-chip",ChipProps:n={},sx:r={}})=>{let[i,o]=Le.exports.useState(!1);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(e8,Object.assign({sx:r,onClick:()=>o(!0),label:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-chip.chip-title",defaultMessage:"View JSON",description:"JSON Chip label"}),icon:nt.exports.jsx(Zde,{sx:{color:"inherit"},fontSize:"small"}),clickable:!0},n,{"data-testid":t})),nt.exports.jsx(rze,{isOpen:i,onClose:()=>o(!1),title:nt.exports.jsx(Ce,{id:"shared-reusable-utils.json-chip.modal-title",defaultMessage:"JSON OBJECT",description:"JSON Chip Modal Title - JSON OBJECT"}),content:nt.exports.jsx("code",Object.assign({style:{whiteSpace:"break-spaces",background:"rgb(247, 247, 247)",display:"flex",padding:"10px 15px",boxSizing:"border-box",borderRadius:"5px",maxHeight:"100%",overflow:"auto",boxShadow:"0px 4px 5px #e4e4e4",border:"1px solid #e1e1e1"}},{children:""+JSON.stringify(e,null,4)})),labeledBy:"json-table-view-json-obj-modal-modal-title",describedBy:"json-table-view-json-obj-modal-modal-description"})]})},Eze=({value:n})=>nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(pe,Object.assign({noWrap:!0},{children:bze.errors.cellError})),onDidCatchError:(e,t)=>{console.warn("Error occurred when attempting to render cell data:",e,t),console.log("Value to render: ",n),console.log("Error: ",e),console.log("Error Info: ",t)}},{children:nt.exports.jsx(Nze,{value:n})})),Nze=({value:e})=>{let t=e;switch(xze(e)){case dze.NULL:return t="--",nt.exports.jsx(pe,Object.assign({align:"center",width:"100%"},{children:t}));case dze.OBJECT:return nt.exports.jsx(Tze,{value:t,sx:Sze.chip,ChipProps:{size:"small"}});case dze.BOOLEAN:return nt.exports.jsx(pe,Object.assign({align:"center",sx:{fontFamily:"monospace",letterSpacing:"1px",width:"100%"},fontSize:"small",noWrap:!0},{children:t?"true":"false"}));case dze.NUMBER:case dze.UUID:return nt.exports.jsx(jze,{value:t.toString(),ChipProps:{size:"small"},sx:Sze.chip});case dze.URL:return nt.exports.jsx(kze,{value:e,ChipProps:{size:"small"},sx:Sze.chip});case dze.DATE:case dze.STRING:default:return"string"!=typeof t&&(t=JSON.stringify(t)),nt.exports.jsx(pe,Object.assign({fontSize:"small",noWrap:!0},{children:t}))}},Mze=e=>{var{tableProps:e,paginationProps:t}=e,{data:n,testId:r,isLoading:i,withPagination:o}=e,a=(null==t?void 0:t.pageSize)||20,n=fze(n),t=o?mze(n,t):n,n=i||0===t.length?0:a-t.length;return nt.exports.jsxs(RA,Object.assign({size:"small","data-testid":r+"-table"},{children:[nt.exports.jsx(Aze,{tableProps:e}),nt.exports.jsxs(zA,Object.assign({"data-testid":r+"-table-body",sx:Sze.tableStyles.body},{children:[i&&nt.exports.jsx(Dze,{pageSize:a,testId:r}),!i&&nt.exports.jsx(Lze,{rows:t,testId:r}),o&&nt.exports.jsx(Rze,{rowsToGenerate:n,cellsToGenerate:(null==(e=t[0])?void 0:e.values.length)||1,testId:r})]}))]}))},Pze=({cells:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(me,Object.assign({sx:Sze.tableStyles.cell,"data-testid":n+"-table-cell-"+(t+1)},{children:nt.exports.jsx(Eze,{value:e})}),t))}),Lze=({rows:e,testId:n})=>nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({sx:Sze.tableStyles.row,"data-testid":n+"-table-row-"+(t+1)},{children:nt.exports.jsx(Pze,{cells:(null==e?void 0:e.values)||[],testId:n})}),t))}),Dze=({pageSize:e,testId:n})=>{e=new Array(e).fill(0);return nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({"data-testid":n+"-table-row-loader-"+(t+1)},{children:nt.exports.jsx(me,Object.assign({sx:{border:"1px solid rgb(0 0 0 / 5%)"},colSpan:1e3,"data-testid":n+"-table-column-"+(t+1)},{children:nt.exports.jsx(ye,{sx:{transform:"none",height:"25px"}})}),t)}),t))})},Rze=({rowsToGenerate:e,cellsToGenerate:t,testId:n})=>{if(e<0)return null;e=new Array(e).fill(0);let r=new Array(t).fill(0);return nt.exports.jsx(nt.exports.Fragment,{children:e.map((e,t)=>nt.exports.jsx(LI,Object.assign({sx:{height:33},"data-testid":n+"-table-row-spacer-"+(t+1)},{children:r.map((e,t)=>nt.exports.jsx(me,{sx:{border:"1px solid rgb(0 0 0 / 5%)"},"data-testid":n+"-table-column-spacer-"+(t+1)},t))}),t))})},Fze=e=>nt.exports.jsx(_Ue,Object.assign({fallbackUI:nt.exports.jsx(pe,{children:bze.errors.paginationError})},{children:nt.exports.jsx(Vze,Object.assign({},e))})),Vze=e=>{let{goToPage:t,pageSize:n,currentPage:r,tableProps:i,isOnLastPage:o,totalRows:a,isNextLastPage:s,isLastPageItemCountOffset:l}=e,{isLoading:c,hasMore:d,fetchMore:u,testId:p}=i;var e=1===r?1:n*(r-1)+1,g=1!==r||d?1===r?n:n*r:(null!=a?a:0)>n?n:a,f=1===r||c,h=1===r||c,m=!d&&o||c;return nt.exports.jsxs(_,Object.assign({gap:"10px",direction:"row",alignItems:"center"},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>t(1),sx:Sze.button,variant:"text",disabled:f,"data-testid":p+"-pagination-control-first"},{children:bze.pagination.first})),nt.exports.jsx(ge,Object.assign({onClick:()=>{1!==r&&t(r-1)},sx:Sze.button,startIcon:nt.exports.jsx(Bde,{}),variant:"text",disabled:h,"data-testid":p+"-pagination-control-prev"},{children:bze.pagination.prev})),nt.exports.jsx(pe,Object.assign({variant:"caption",fontWeight:"bold","data-testid":p+"-pagination-control-page-summary"},{children:nt.exports.jsx(Bze,{isLoading:c,endRow:g,startRow:e,totalRows:a})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{d&&s&&l||d&&o?(u(),t(r+1)):(d&&!o||!d&&!o)&&t(r+1)},sx:Sze.button,variant:"text",endIcon:nt.exports.jsx(Hde,{}),disabled:m,"data-testid":p+"-pagination-control-next"},{children:bze.pagination.next}))]}))},Bze=({isLoading:e,startRow:t,endRow:n,totalRows:r})=>e?nt.exports.jsx(ye,{variant:"text",width:100}):nt.exports.jsxs(nt.exports.Fragment,{children:[bze.pagination.rows," ",t," - ",n," ",bze.pagination.of," ",r||bze.pagination.many]}),Hze=e=>{let t,n=Le.exports.useRef(null),{testId:r,data:i,withPagination:o,pageSizes:a=vze,fetchOnMount:s,fetchMore:l,hasMore:c,isLoading:d,isErrored:u,TableErrorStateProps:p={},TableEmptyStateProps:g={}}=e;var f=!d&&!c&&0===i.length;let[h,m]=Le.exports.useState(0);var[C,,]=Le.exports.useState(null!=(t=a[0])?t:0);let[x,v]=Le.exports.useState(1);let b=()=>{n.current&&m(n.current.scrollTop)};var y=c||null==i?void 0:i.length,A=Math.ceil((null==i?void 0:i.length)/C),y={currentPage:x,goToPage:e=>{v(e)},pageSize:C,tableProps:e,totalRows:y,isOnLastPage:x===A,isNextLastPage:x===A-1,isLastPageItemCountOffset:(null==i?void 0:i.length)%C!=0,lastPage:A};return Le.exports.useEffect(()=>(s&&l(),n.current&&n.current.addEventListener("scroll",b),()=>{n.current&&n.current.removeEventListener("scroll",b)}),[]),u?nt.exports.jsx(RFe,Object.assign({onRetry:l},p)):f?nt.exports.jsx(DFe,Object.assign({},g)):nt.exports.jsxs(nt.exports.Fragment,{children:[o&&nt.exports.jsx(Fze,Object.assign({},y)),nt.exports.jsx(YA,Object.assign({sx:Object.assign(Object.assign({},Sze.tableStyles.container(10<h)),Sze.paper),component:_6,ref:n,"data-testid":r+"-table-container"},{children:nt.exports.jsx(Mze,{tableProps:e,paginationProps:o?y:void 0})})),o&&nt.exports.jsx(Fze,Object.assign({},y))]})},Uze=()=>nt.exports.jsxs(_,Object.assign({sx:{width:"100%",alignItems:"center",justifyContent:"center"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:bze.errors.tableErrorTitle})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:bze.errors.tableErrorSubTitle}))]}));i2e={ColorSwatchChip:({color:t,tooltipLabel:e,TooltipProps:n,testId:r="shared-color-swatch-chip"})=>{let[i,o]=Le.exports.useState(!1);return nt.exports.jsx(he,Object.assign({placement:"right"},n||{},{title:i?nt.exports.jsx(Ce,{id:"shared-util-color-swatch-chip-copied",defaultMessage:"Copied!",description:"Shared Util Color Swatch Chip Click to copied tooltip label"}):e||nt.exports.jsx(Ce,{id:"shared-util-color-swatch-chip-click-to-copy",defaultMessage:"Click to copy",description:"Shared Util Color Swatch Chip Click to copy tooltip label"})},{children:nt.exports.jsx(l9,Object.assign({onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(t.toUpperCase()).then(e=>{o(!0),setTimeout(()=>{o(!1)},2e3)})},sx:{backgroundColor:"#ededed",borderRadius:"5px",padding:"2px 5px",width:"fit-content","&:hover":{backgroundColor:"#d2d2d2"}},"data-testid":r},{children:nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"5px"},direction:"row"},{children:[nt.exports.jsx(be,{sx:{width:"15px",height:"15px",borderRadius:"3px",border:"2px solid rgb(85, 95, 124)",backgroundColor:t}}),nt.exports.jsx(pe,Object.assign({sx:{color:"rgb(85, 95, 124)",lineHeight:"10px",fontSize:"12px",fontWeight:600}},{children:t.toUpperCase()}))]}))}))}))},URLChip:kze,JSONChip:Tze,CopyChip:jze};let zze=je()(e=>({menuItemDivider:{marginBottom:e.spacing(.5),marginTop:e.spacing(.5)}})),_ze=({menuItems:e,testId:f,disabled:t=!1,disableDividers:h,tooltipMessage:n="",AnchorElement:r,Icon:i,TooltipProps:o={},MenuProps:a={}})=>{let m=zze().classes,[s,l]=Le.exports.useState(null);var c=s?"contextMenuId-"+f:void 0,d=!!s,u=e=>{e.stopPropagation(),l(e.currentTarget)};let C=()=>{l(null)};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(he,Object.assign({},o,{title:n},{children:nt.exports.jsx("span",{children:r?nt.exports.jsx("span",Object.assign({onClick:u},{children:r})):nt.exports.jsx(ue,Object.assign({disabled:t,onClick:u,"data-testid":f+"-context-menu-button"},{children:i||nt.exports.jsx(i0e,{fontSize:"small"})}))})})),nt.exports.jsx(Pv,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"}},a,{role:"menu","data-testid":f+"-context-menu",id:c,open:d,anchorEl:s,onClose:C,onClick:e=>e.stopPropagation()},{children:e.map((e,t)=>{let{label:n,testId:r,onClick:i,icon:o,tooltipMessage:a,isDisabled:s,disabledMessage:l,divider:c,keepMenuOpenOnClick:d,MenuItemProps:u={},TooltipProps:p={}}=e;e=s||!1;let g=a||"";e&&l&&(g=l);return nt.exports.jsxs(_,{children:[0===t||h||!c?null:nt.exports.jsx(se,{className:m.menuItemDivider}),nt.exports.jsx(he,Object.assign({title:g,placement:"left"},p,{children:nt.exports.jsxs(fe,Object.assign({"data-testid":f+"-context-menu-list-item-"+r},u,{disabled:e,onClick:()=>{d||C(),i()}},{children:[o?nt.exports.jsx(rv,{children:o}):null,nt.exports.jsx(pe,Object.assign({variant:"inherit",noWrap:!0,"data-testid":f+"-context-menu-list-item-label-"+r},{children:n}))]}))}))]},f+"-menu-item-"+t)})}))]})},qze=({isOpen:e,onClose:t,logoUrl:n,buttonColor:r,buttonTextColor:i})=>{var o=()=>{t()};return nt.exports.jsx(rze,{sx:{maxHeight:"95vh"},ContainerProps:{sx:{width:"100%",padding:"15px 30px",boxSizing:"border-box",overflow:"hidden"}},isOpen:e,onClose:o,title:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-title",defaultMessage:"PREVIEW",description:"Custom Login preview modal title"}),content:nt.exports.jsxs(_,Object.assign({sx:{gap:"10px"}},{children:[nt.exports.jsxs(_,Object.assign({sx:{paddingBottom:"30px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:0}},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-description",defaultMessage:"This is how your login page will look.",description:"Custom Login preview modal description"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.text",defaultMessage:"Your custom logo will be placed here.",description:"Custom Login preview modal text"})}))]})),nt.exports.jsx(se,{sx:{marginBottom:"20px"}}),n&&nt.exports.jsx(_,Object.assign({sx:{height:"200px",width:"300px",alignItems:"center",justifyContent:"center",margin:"0 auto",border:"2px dashed rgb(213 223 233 / 69%)",borderRadius:"10px","& img":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"10px"}}},{children:nt.exports.jsx("img",{"data-testid":"shared-custom-login-preview-login-modal-logo-preview",style:{pointerEvents:"none"},draggable:!1,src:n,alt:"logo-preview"})})),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"10px",paddingBottom:"50px"}},{children:[nt.exports.jsx(be,{sx:{width:"300px",height:"40px",background:"#e4e4e4",borderRadius:"10px"}}),nt.exports.jsx(ge,Object.assign({onClick:o,"data-testid":"shared-custom-login-preview-login-modal-button-preview",variant:"contained",sx:{width:"300px",height:"40px",borderRadius:"10px",background:r+"!important",backgroundColor:r+"!important",color:i+"!important","&.MuiButton-root:not(:disabled):not(:hover)":{background:r+"!important",backgroundColor:r+"!important",color:i+"!important"}}},{children:nt.exports.jsx(Ce,{id:"shared.custom-login.preview.modal-continue-button",defaultMessage:"Continue",description:"Custom Login preview modal continue button"})}))]}))]})),labeledBy:"shared-custom-login-preview-login.show-me.modal-title",describedBy:"shared-custom-login-preview-login.show-me.modal-description"})},Wze=60,Zze=i2e.ColorSwatchChip,Gze=({index:e,onEdit:t,onPreview:n,onDelete:r,buttonColor:i,buttonTextColor:o,logoUrl:a,name:s,slug:l,enabled:c,testId:d})=>{var u=Wze-1+"px",l="/"+l;return nt.exports.jsx(be,Object.assign({sx:{width:"100%",minHeight:u,borderBottom:"1px solid #D5DFE9"},"data-testid":d+"-table-row-"+e},{children:nt.exports.jsxs(W,Object.assign({"data-testid":d+"-custom-login-item",sx:{width:"100%",height:"100%",paddingLeft:"15px"},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({"data-testid":"shared-utils-custom-login-table-row-name"},{children:s}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold",padding:"2px 5px",fontSize:"small",wordBreak:"break-all"}},{children:nt.exports.jsx("span",Object.assign({"data-testid":"shared-utils-custom-login-table-row-slug"},{children:l}))}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsxs(_,Object.assign({gap:"5px"},{children:[nt.exports.jsx(Zze,{color:i,tooltipLabel:"Button Color",testId:"shared-utils-custom-login-table-row-button-color"}),nt.exports.jsx(Zze,{color:o,tooltipLabel:"Button Text Color",testId:"shared-utils-custom-login-table-row-button-text-color"})]}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(Jze,{src:a})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(lze,{statusType:"enabledStatus",status:c?"enabled":"disabled"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(Kze,{onEdit:t,onPreview:n,onDelete:r,testId:d})}))]}))}))},Jze=({src:e})=>nt.exports.jsx(be,Object.assign({sx:{width:"80px",height:e?"50px":"",overflow:"hidden"},"data-testid":"login-table-row-logo-container"},{children:e?nt.exports.jsx("img",{draggable:!1,style:{width:"100%",height:"100%",objectFit:"contain"},src:e,alt:"logo","data-testid":"login-table-row-logo-thumbnail"}):"--"})),Kze=({onEdit:e,onPreview:t,onDelete:n,testId:r})=>{e=[{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Custom Login table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-preview",defaultMessage:"Preview",description:"Admin Center Custom Login table row context menu preview"}),onClick:t,testId:"preview",icon:nt.exports.jsx(Mue,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"shared-utils-custom-login-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Custom Login table row context menu delete"}),onClick:n,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}];return nt.exports.jsx(_ze,{menuItems:e,testId:r+"-custom-login-menu"})},Yze=({title:e,description:t,onClick:n,image:r,buttonLabel:i,buttonStyle:o,ButtonProps:a={},ContainerProps:s={}})=>{i=i||nt.exports.jsx(Ce,{id:"shared-reusable-utils.emptyState.create-button",defaultMessage:"Create",description:"Shared Reusable Utils Empty State Create Button Label"});return nt.exports.jsxs(_,Object.assign({},s,{sx:Object.assign({marginTop:"50px",alignItems:"center",justifyContent:"center",gap:"10px"},null!=(s=null==s?void 0:s.sx)?s:{}),alignItems:"center"},{children:["string"==typeof r?nt.exports.jsx("img",{src:r,alt:"empty-state"}):r||nt.exports.jsx(Qze,{}),nt.exports.jsx(pe,Object.assign({variant:"h4",fontWeight:"bold","data-testid":"shared-reusable-utils-empty-state-title"},{children:e})),nt.exports.jsx(pe,Object.assign({variant:"body1","data-testid":"shared-reusable-utils-empty-state-description"},{children:t})),n&&nt.exports.jsx(ge,Object.assign({},a,{variant:o?"outlined":"contained","data-testid":"shared-reusable-utils-login-create-button",onClick:n},{children:i}))]}))};function Qze(){return nt.exports.jsxs("svg",Object.assign({width:"164",height:"144",viewBox:"0 0 164 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[nt.exports.jsx("path",{d:"M81.9533 128.571C117.531 128.571 146.372 99.7897 146.372 64.2857C146.372 28.7817 117.531 0 81.9533 0C46.3756 0 17.5342 28.7817 17.5342 64.2857C17.5342 99.7897 46.3756 128.571 81.9533 128.571Z",fill:"#EAEEF9"}),nt.exports.jsx("g",Object.assign({filter:"url(#filter0_d_62587_13624)"},{children:nt.exports.jsx("path",{d:"M141.051 26.3796V104.557C141.051 107.313 138.776 109.583 136.014 109.583H28.5639C25.8019 109.583 23.5273 107.313 23.5273 104.557V26.3796C23.5273 23.6234 25.8019 21.3535 28.5639 21.3535H136.014C138.776 21.3535 141.051 23.6234 141.051 26.3796Z",fill:"url(#paint0_linear_62587_13624)"})})),nt.exports.jsx("path",{d:"M141.051 26.3796V30.0277H23.5273V26.3796C23.5273 23.6234 25.8019 21.3535 28.5639 21.3535H136.014C138.776 21.3535 141.051 23.6234 141.051 26.3796Z",fill:"url(#paint1_linear_62587_13624)"}),nt.exports.jsx("path",{d:"M28.4722 27.2719C29.3247 27.2719 30.0156 26.5823 30.0156 25.7316C30.0156 24.881 29.3247 24.1914 28.4722 24.1914C27.6198 24.1914 26.9287 24.881 26.9287 25.7316C26.9287 26.5823 27.6198 27.2719 28.4722 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{opacity:"0.6",d:"M33.2642 27.2719C34.1165 27.2719 34.8076 26.5823 34.8076 25.7316C34.8076 24.881 34.1165 24.1914 33.2642 24.1914C32.4118 24.1914 31.7207 24.881 31.7207 25.7316C31.7207 26.5823 32.4118 27.2719 33.2642 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{opacity:"0.4",d:"M38.1382 27.2719C38.9906 27.2719 39.6816 26.5823 39.6816 25.7316C39.6816 24.881 38.9906 24.1914 38.1382 24.1914C37.2858 24.1914 36.5947 24.881 36.5947 25.7316C36.5947 26.5823 37.2858 27.2719 38.1382 27.2719Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M54.093 37.874H35.1672C34.5975 37.874 34.1357 38.3345 34.1357 38.9026V41.8288C34.1357 42.3969 34.5975 42.8574 35.1672 42.8574H54.093C54.6626 42.8574 55.1244 42.3969 55.1244 41.8288V38.9026C55.1244 38.3345 54.6626 37.874 54.093 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M114.061 37.874H104.13C103.56 37.874 103.099 38.3345 103.099 38.9026V39.8355C103.099 40.4036 103.56 40.8641 104.13 40.8641H114.061C114.63 40.8641 115.092 40.4036 115.092 39.8355V38.9026C115.092 38.3345 114.63 37.874 114.061 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M130.052 37.874H120.121C119.552 37.874 119.09 38.3345 119.09 38.9026V39.8355C119.09 40.4036 119.552 40.8641 120.121 40.8641H130.052C130.622 40.8641 131.083 40.4036 131.083 39.8355V38.9026C131.083 38.3345 130.622 37.874 130.052 37.874Z",fill:"#C2C8D6"}),nt.exports.jsx("path",{d:"M129.021 49.834H36.1986C35.0593 49.834 34.1357 50.755 34.1357 51.8911V73.6905C34.1357 74.8266 35.0593 75.7476 36.1986 75.7476H129.021C130.16 75.7476 131.084 74.8266 131.084 73.6905V51.8911C131.084 50.755 130.16 49.834 129.021 49.834Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M85.0005 59.8456C85.5891 59.8456 86.0664 59.3428 86.0664 58.7226C86.0664 58.1024 85.5891 57.5996 85.0005 57.5996C84.4117 57.5996 83.9346 58.1024 83.9346 58.7226C83.9346 59.3428 84.4117 59.8456 85.0005 59.8456Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M85.0636 67.1376H76.9315C76.407 67.1376 76.1009 66.4961 76.407 66.0837L80.4729 60.1275C80.7352 59.7609 81.2599 59.7609 81.5222 60.1275L85.5883 66.0837C85.8943 66.542 85.5883 67.1376 85.0636 67.1376Z",fill:"#989FB0"}),nt.exports.jsx("path",{opacity:"0.7",d:"M87.8944 67.0156H83.8922C83.2843 67.0156 82.9803 66.3496 83.2843 65.8886L85.2601 63.071C85.5641 62.6612 86.1214 62.6612 86.4253 63.071L88.4011 65.8886C88.8571 66.3496 88.5024 67.0156 87.8944 67.0156Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M62.0568 80.7305H36.1986C35.0593 80.7305 34.1357 81.6515 34.1357 82.7876V97.6102C34.1357 98.7464 35.0593 99.6674 36.1986 99.6674H62.0568C63.1961 99.6674 64.1197 98.7464 64.1197 97.6102V82.7876C64.1197 81.6515 63.1961 80.7305 62.0568 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M95.0388 80.7305H70.1801C69.0408 80.7305 68.1172 81.6515 68.1172 82.7876V97.6102C68.1172 98.7464 69.0408 99.6674 70.1801 99.6674H95.0388C96.1781 99.6674 97.1017 98.7464 97.1017 97.6102V82.7876C97.1017 81.6515 96.1781 80.7305 95.0388 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M129.021 80.7305H103.163C102.023 80.7305 101.1 81.6515 101.1 82.7876V97.6102C101.1 98.7464 102.023 99.6674 103.163 99.6674H129.021C130.16 99.6674 131.084 98.7464 131.084 97.6102V82.7876C131.084 81.6515 130.16 80.7305 129.021 80.7305Z",fill:"#D5DDEA"}),nt.exports.jsx("path",{d:"M117.027 22.9238H48.1918C47.0525 22.9238 46.1289 23.8448 46.1289 24.981V25.8501C46.1289 26.9862 47.0525 27.9072 48.1918 27.9072H117.027C118.166 27.9072 119.09 26.9862 119.09 25.8501V24.981C119.09 23.8448 118.166 22.9238 117.027 22.9238Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M143.296 105.089C143.098 105.385 142.999 105.581 142.604 105.777L138.06 107.646C137.369 107.941 136.678 108.334 136.183 108.826C135.689 109.318 135.294 109.809 135.195 110.498L133.318 115.021C133.121 115.709 132.33 116.005 131.837 115.709C131.639 115.513 131.343 115.414 131.343 115.218L122.551 95.9438C122.353 95.6488 122.353 95.2555 122.551 95.0587C122.748 94.7637 123.242 94.5671 123.736 94.7637L143.098 103.516C143.296 103.91 143.493 104.598 143.296 105.089Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M146.655 116.889C146.458 116.889 146.359 116.889 146.162 116.693L139.839 110.301C139.543 110.006 139.543 109.416 139.839 109.318C140.135 109.023 140.728 109.023 140.827 109.318L147.149 115.612C147.446 115.906 147.446 116.496 147.149 116.595C147.149 116.889 146.853 116.889 146.655 116.889Z",fill:"#989FB0"}),nt.exports.jsx("path",{d:"M140.235 116.889C140.037 116.889 139.938 116.889 139.741 116.693L136.875 113.841C136.579 113.546 136.579 112.956 136.875 112.858C137.172 112.563 137.764 112.563 137.863 112.858L140.729 115.709C141.025 116.005 141.025 116.595 140.729 116.693C140.729 116.889 140.63 116.889 140.235 116.889Z",fill:"#989FB0"}),nt.exports.jsxs("defs",{children:[nt.exports.jsxs("filter",Object.assign({id:"filter0_d_62587_13624",x:"1.52734",y:"10.3535",width:"161.523",height:"132.229",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},{children:[nt.exports.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),nt.exports.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),nt.exports.jsx("feOffset",{dy:"11"}),nt.exports.jsx("feGaussianBlur",{stdDeviation:"11"}),nt.exports.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),nt.exports.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_62587_13624"}),nt.exports.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_62587_13624",result:"shape"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint0_linear_62587_13624",x1:"82.2506",y1:"19.3127",x2:"82.2506",y2:"110.534",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{stopColor:"#FDFEFF"}),nt.exports.jsx("stop",{offset:"0.9964",stopColor:"#ECF0F5"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint1_linear_62587_13624",x1:"136.389",y1:"21.3535",x2:"27.3523",y2:"26.497",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{stopColor:"#B0BACC"}),nt.exports.jsx("stop",{offset:"1",stopColor:"#969EAE"})]}))]})]}))}let Xze=({title:e,description:t,onConfirm:n,isOpen:r,onClose:i,testId:o,DialogActions:a,cancelLabel:s,confirmLabel:l,DialogProps:c={},DialogTitleProps:d={}})=>{s=s||nt.exports.jsx(Ce,{id:"confirm-dialog-button-cancel",defaultMessage:"Cancel",description:"Confirm Dialog button cancel"}),l=l||nt.exports.jsx(Ce,{id:"confirm-dialog-button-confirm",defaultMessage:"Confirm",description:"Confirm dialog button confirm"}),a=a||nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ge,Object.assign({onClick:i,"data-testid":o+"-confirm-dialog-button-go-back"},{children:s})),nt.exports.jsx(ge,Object.assign({autoFocus:!0,variant:"contained",onClick:()=>{i(),n()},"data-testid":o+"-confirm-dialog-button-confirm-delete"},{children:l}))]});return nt.exports.jsxs(Lm,Object.assign({},c,{open:r,onClose:i,"aria-labelledby":o+"-confirm-dialog-title","aria-describedby":o+"-confirm-dialog-description","data-testid":o+"-confirm-dialog"},{children:[nt.exports.jsx(Qm,Object.assign({},d,{id:o+"-confirm-dialog-title"},{children:e})),nt.exports.jsx(qm,{children:nt.exports.jsx(Jm,Object.assign({id:o+"-confirm-dialog-description"},{children:t}))}),nt.exports.jsx(Vm,{children:a})]}))},$ze=()=>nt.exports.jsxs(W,Object.assign({"data-testid":"custom-login-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-name",defaultMessage:"Name",description:"Shared Custom Login Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-slug",defaultMessage:"Slug",description:"Shared Custom Login Table header column slug"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-colors",defaultMessage:"Colors",description:"Shared Custom Login Table header column colors"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-logo",defaultMessage:"Logo",description:"Shared Custom Login Table header column logo"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-login-table-header-column-status",defaultMessage:"Status",description:"Shared Custom Login Table header column status"})}))})),nt.exports.jsx(W,{item:!0,xs:2})]})),e_e=je()((e,t,n)=>({engineIconContainer:{background:"#EEF3F9",padding:"3px",borderRadius:"5px",marginRight:"3px",maxWidth:"20px",maxHeight:"20px",verticalAlign:"middle",display:"flex"},iconWrapper:{position:"relative",["&:hover > ."+n.enginesList]:{display:"block !important"},display:"flex",alignItems:"center"},tooltipCatName:{color:"white",paddingLeft:"5px",fontWeight:"900"},engineIcon:{width:"14px",height:"14px"},enginesList:{background:"rgba(0,0,0,.75)",padding:e.spacing(.6),borderRadius:"5px",marginRight:e.spacing(.6),position:"absolute",top:20,left:0,display:"none"},tooltipDivider:{marginTop:"3px"},enginesUL:{padding:"0 7px 0 20px",margin:"3px 0 !important",color:"white",overflow:"hidden",whiteSpace:"nowrap","& *":{color:"white"}},tooltipIcon:{fill:"white",width:"12px",height:"12px"},tooltipCatIconWrapper:{display:"flex",alignItems:"center",paddingLeft:"3px"},moreDivider:{borderTop:"2px solid white",marginBottom:"9px",marginTop:"6px"},moreIcon:{width:"12px",height:"12px"}})),t_e=e=>void 0!==e&&e?C4e[e]:null,n_e=e=>null==(e=null==(e=null==(e=null==e?void 0:e.engine)?void 0:e.category)?void 0:e.name)?void 0:e.replace(/[^a-zA-Z]/g,""),r_e=(e,t,n)=>t.length?nt.exports.jsxs(be,{children:[nt.exports.jsxs(be,Object.assign({className:n.tooltipCatIconWrapper},{children:[nt.exports.jsx(ex,{component:t_e(e),className:n.tooltipIcon}),nt.exports.jsx(pe,Object.assign({variant:"caption",className:n.tooltipCatName},{children:e}))]})),nt.exports.jsx(se,{className:n.tooltipDivider}),nt.exports.jsx("ul",Object.assign({className:n.enginesUL},{children:t.map(e=>nt.exports.jsx("li",{children:nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:e}))},e))}))]}):null,i_e=({tasks:e,iconsToRender:r=3,showMore:i=!1})=>{let n=e_e().classes;if(!e||!e.length||e.find(e=>!e.engine))return nt.exports.jsx(pe,Object.assign({variant:"caption",sx:{color:"black"}},{children:"N/A"}));e=e.filter(e=>{e=n_e(e);return t_e(e)});let o={},a={};return e&&e.forEach(e=>{var t,n=n_e(e);Object.keys(o).length<r?(n&&!o[n]&&(o[n]=[]),n&&null!=(t=null==e?void 0:e.engine)&&t.name&&o[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)):i&&(n&&!a[n]&&(a[n]=[]),n)&&null!=(t=null==e?void 0:e.engine)&&t.name&&a[n].push(null==(t=null==e?void 0:e.engine)?void 0:t.name)}),nt.exports.jsxs(nt.exports.Fragment,{children:[Object.keys(o).map(e=>nt.exports.jsx(be,Object.assign({className:n.engineIconContainer},{children:nt.exports.jsxs(be,Object.assign({className:n.iconWrapper},{children:[nt.exports.jsx(ex,{component:t_e(e),className:n.engineIcon},e),nt.exports.jsx(be,Object.assign({className:n.enginesList},{children:r_e(e,o[e],n)}))]}))}),e)),0<Object.keys(a).length&&nt.exports.jsxs(be,Object.assign({className:n.iconWrapper},{children:[nt.exports.jsx(r0e,{className:n.moreIcon}),nt.exports.jsx(be,Object.assign({className:n.enginesList},{children:Object.keys(a).map((e,t)=>nt.exports.jsxs(be,{children:[r_e(e,a[e],n),t<Object.keys(a).length-1&&nt.exports.jsx(se,{className:n.moreDivider})]},e+"-"+t))}))]}))]})},o_e=e=>{function*t(e){if(!g.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{};for(t of Object.keys(r)){var i=yield D(r[t]);t,i}var o=yield L(g.create,{apiConfigs:n,itemToCreate:e.payload});yield P(u.actions.createSucceeded(o)),s&&(yield P(F({content:s.create.success,severity:R.Success})))}catch(e){yield P(u.actions.createFailed(null)),s&&(yield P(F({content:s.create.error,severity:R.Error})))}}function*n(e){if(!g.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var t,n=e.payload,r=yield D(YG),i=yield D(p.selectOffset),o=yield D(p.selectSearchValue),a={},s=yield D(p.selectFilters),l=(a.filters=s,g.getAdditionalSelectors?g.getAdditionalSelectors():{});for(t of Object.keys(l)){var c=yield D(l[t]);a[t]=c}var d=yield L(g.read,{apiConfigs:r,offset:i,limit:f,payload:n,searchValue:o,additionalSelectors:a});yield P(u.actions.readSucceeded(d.filter(e=>null!==e))),d.length>=f?yield P(u.actions.setHasMore(!0)):yield P(u.actions.setHasMore(!1)),yield P(u.actions.setOffset(i+f))}catch(e){yield P(u.actions.readFailed(null))}}function*r(e){if(!g.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(g.update,{apiConfigs:n,itemToUpdate:e.payload,additionalSelectors:i});yield P(u.actions.updateSucceeded(a)),s&&(yield P(F({content:s.update.success,severity:R.Success})))}catch(e){yield P(u.actions.updateFailed(null)),s&&(yield P(F({content:s.update.error,severity:R.Error})))}}function*i(e){if(!g.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t,n=yield D(YG),r=g.getAdditionalSelectors?g.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(g.delete,{apiConfigs:n,itemToDelete:e.payload,additionalSelectors:i});yield P(u.actions.deleteSucceeded(a)),yield P(u.actions.resetList(null)),yield P(u.actions.readStart(null)),s&&(yield P(F({content:s.delete.success,severity:R.Success})))}catch(e){yield P(u.actions.deleteFailed(null)),s&&(yield P(F({content:s.delete.error,severity:R.Error})))}}let o,{slice:u,selectors:p,apiCalls:g}=e,f=g.pageSize||30,s=null!=(o=null==e?void 0:e.toast)&&o;return{watchCreate:function*(){yield $u(u.actions.createStart,t)},watchRead:function*(){yield $u(u.actions.readStart,n)},watchUpdate:function*(){yield $u(u.actions.updateStart,r)},watchDelete:function*(){yield $u(u.actions.deleteStart,i)}}},a_e=e=>{function*t(e){if(!c.create)throw new Error("No apiCalls.create was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{};for(t of Object.keys(r)){var i=yield D(r[t]);t,i}var o=yield L(c.create,{apiConfigs:n,item:e.payload});yield P(l.actions.createSucceeded(o)),s&&(yield P(F({content:s.create.success,severity:R.Success})))}catch(e){yield P(l.actions.createFailed()),s&&(yield P(F({content:s.create.error,severity:R.Error})))}}function*n(e){if(!c.read)throw new Error("No apiCalls.read was defined for this redux saga");try{var t,n=e.payload,r=yield D(YG),i=c.getAdditionalSelectors?c.getAdditionalSelectors():{},o={};for(t of Object.keys(i)){var a=yield D(i[t]);o[t]=a}var s=yield L(c.read,{apiConfigs:r,payload:n,additionalSelectors:o});yield P(l.actions.readSucceeded(s))}catch(e){yield P(l.actions.readFailed())}}function*r(e){if(!c.update)throw new Error("No apiCalls.update was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(c.update,{apiConfigs:n,item:e.payload,additionalSelectors:i});yield P(l.actions.updateSucceeded(a)),s&&(yield P(F({content:s.update.success,severity:R.Success})))}catch(e){yield P(l.actions.updateFailed()),s&&(yield P(F({content:s.update.error,severity:R.Error})))}}function*i(e){if(!c.delete)throw new Error("No apiCalls.delete was defined for this redux saga");try{var t,n=yield D(YG),r=c.getAdditionalSelectors?c.getAdditionalSelectors():{},i={};for(t of Object.keys(r)){var o=yield D(r[t]);i[t]=o}var a=yield L(c.delete,{apiConfigs:n,item:e.payload,additionalSelectors:i});yield P(l.actions.deleteSucceeded(a)),s&&(yield P(F({content:s.delete.success,severity:R.Success})))}catch(e){yield P(l.actions.deleteFailed(null)),s&&(yield P(F({content:s.delete.error,severity:R.Error})))}}let{slice:l,apiCalls:c}=e,s=(null==e?void 0:e.toast)||!1;return{watchCreate:function*(){yield o(l.actions.createStart,t)},watchRead:function*(){yield o(l.actions.readStart,n)},watchUpdate:function*(){yield o(l.actions.updateStart,r)},watchDelete:function*(){yield o(l.actions.deleteStart,i)}}},s_e=({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i})=>{let o=e=>i?i(e):r?e[r]:e[n][t];return{selectHasMore:e=>o(e).hasMore,selectItems:e=>o(e).items,selectOffset:e=>o(e).currentOffset,selectCreateStatus:e=>o(e).createStatus,selectReadStatus:e=>o(e).readStatus,selectUpdateStatus:e=>o(e).updateStatus,selectDeleteStatus:e=>o(e).deleteStatus,selectSearchValue:e=>o(e).searchValue,selectFilters:e=>o(e).filters}},l_e=e=>{let{sliceName:t,namespace:n,dedupeResponse:r,customReduxNamespace:i}=e,o=e.dedupeIdProp||"id";e={createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",currentOffset:0,hasMore:!0,items:[],filters:[],searchValue:""};return{slice:LT({name:i||t+"/"+n,initialState:e,reducers:{createStart(e,t){e.createStatus="pending"},createSucceeded(e,t){e.items.push(t.payload),e.createStatus="idle"},createFailed(e){e.createStatus="failure"},readStart(e){e.readStatus="pending"},readSucceeded(n,e){e.payload.forEach(t=>{var e;!r||-1===(e=n.items.findIndex(e=>t[o]===e[o]))?n.items.push(t):n.items[e]=t}),n.readStatus="idle"},readFailed(e){e.readStatus="failure"},updateStart(e,t){e.updateStatus="pending"},updateSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items[n]=Object.assign(Object.assign({},e.items[n]),t.payload):console.warn("Couldn't replace existing item with updated version in redux state",t.payload),e.updateStatus="success"},updateFailed(e){e.updateStatus="failure"},updateResetStatus(e){e.updateStatus="idle"},deleteStart(e,t){e.deleteStatus="pending"},deleteSucceeded(e,t){var n=e.items.findIndex(e=>t.payload[o]===e[o]);-1!==n?e.items.splice(n,1):console.warn("Couldn't remove deleted item from redux state",t.payload),e.deleteStatus="success"},deleteFailed(e){e.deleteStatus="failure"},deleteResetStatus(e){e.deleteStatus="idle"},setHasMore(e,t){e.hasMore=t.payload},setOffset(e,t){e.currentOffset=t.payload},resetList(e){e.items=[],e.currentOffset=0,e.hasMore=!0},setFilter(e,t){var n=e.filters.findIndex(e=>e.type===t.payload.type);-1===n?e.filters.push(t.payload):0===t.payload.values.length?e.filters.splice(n,1):e.filters[n].values=t.payload.values},clearFilters(e){e.filters=[]},setSearchValue(e,t){e.searchValue=t.payload},clearSearchValue(e){e.searchValue=""}}}),initialState:e}},c_e=e=>Object.assign(Object.assign({},e),{createStatus:"idle",readStatus:"idle",updateStatus:"idle",deleteStatus:"idle",item:{}}),d_e={delete:{success:"Successfully deleted",error:"Failed to delete"},create:{success:"Successfully created",error:"Failed to create"},update:{success:"Successfully updated",error:"Failed to update"}},u_e=e=>{var{sliceName:t,namespace:n,dedupeResponse:r,dedupeIdProp:i,apiCalls:o,customReduxNamespace:a,overrideSelectorBase:s}=e,l="boolean"==typeof e.toast?d_e:"object"==typeof e.toast?{delete:Object.assign(Object.assign({},d_e.delete),null!=(l=null==(l=e.toast)?void 0:l.delete)?l:{}),create:Object.assign(Object.assign({},d_e.create),null!=(l=null==(l=e.toast)?void 0:l.create)?l:{}),update:Object.assign(Object.assign({},d_e.update),null!=(e=null==(l=e.toast)?void 0:l.update)?e:{})}:void 0,{slice:e,initialState:r}=l_e({sliceName:t,namespace:n,dedupeResponse:r,dedupeIdProp:i,customReduxNamespace:a}),i=s_e({namespace:n,sliceName:t,customReduxNamespace:a,overrideSelectorBase:s});return{slice:e,selectors:i,sagas:o_e({slice:e,selectors:i,apiCalls:o,toast:l}),initialState:r}};var p_e,g_e,f_e,n2e=e=>{var{sliceName:t,namespace:n,apiCalls:r,customReduxNamespace:i,overrideSelectorBase:o,additionalState:a={}}=e,s="boolean"==typeof e.toast?d_e:"object"==typeof e.toast?{delete:Object.assign(Object.assign({},d_e.delete),null!=(s=null==(s=e.toast)?void 0:s.delete)?s:{}),create:Object.assign(Object.assign({},d_e.create),null!=(s=null==(s=e.toast)?void 0:s.create)?s:{}),update:Object.assign(Object.assign({},d_e.update),null!=(e=null==(s=e.toast)?void 0:s.update)?e:{})}:void 0,{slice:e,initialState:l}=(({sliceName:e,namespace:t,customReduxNamespace:n,additionalState:o})=>{var r=c_e(o);let a=(e,i="")=>Object.entries(e).reduce((e,[t,n])=>{let r=i?i+"."+t:t;"object"==typeof n&&null!==n&&Object.assign(e,a(n,r));t=r.split(".").map((e,t)=>0===t?e.charAt(0).toUpperCase()+e.slice(1):e).join(".");return e["set"+t]=(e,t)=>{s(e,r,t.payload)},e["reset"+t]=e=>{s(e,r,o[r])},e},{}),s=(e,t,n)=>{var r=t.split(".");let i=e;for(let e=0;e<r.length-1;e++)i[r[e]]||(i[r[e]]={}),i=i[r[e]];t=r[r.length-1];i[t]="object"==typeof n&&null!==n?Object.assign(Object.assign({},i[t]),n):n};var i=a(o);return{slice:LT({name:n||e+"/"+t,initialState:r,reducers:Object.assign({createStart:e=>{e.createStatus="pending"},createSucceeded:(e,t)=>{e.item=t.payload,e.createStatus="idle"},createFailed:e=>{e.createStatus="failure"},readStart:e=>{e.readStatus="pending"},readSucceeded:(e,t)=>{e.item=t.payload,e.readStatus="success"},readFailed:e=>{e.readStatus="failure"},readResetStatus:e=>{e.readStatus="idle"},updateStart:e=>{e.updateStatus="pending"},updateSucceeded:(e,t)=>{e.item=Object.assign(Object.assign({},e.item),t.payload),e.updateStatus="success"},updateFailed:e=>{e.updateStatus="failure"},updateResetStatus:e=>{e.updateStatus="idle"},deleteStart:e=>{e.deleteStatus="pending"},deleteSucceeded:e=>{e.item={},e.deleteStatus="success"},deleteFailed:e=>{e.deleteStatus="failure"},deleteResetStatus:e=>{e.deleteStatus="idle"},resetItem:e=>{e.item={}}},i)}),initialState:r}})({sliceName:t,namespace:n,customReduxNamespace:i,additionalState:a}),n=(({namespace:t,sliceName:n,customReduxNamespace:r,overrideSelectorBase:i,additionalState:e})=>{let a=e=>i?i(e):r?e[r]:e[n][t];var o={selectItem:e=>a(e).item,selectCreateStatus:e=>a(e).createStatus,selectReadStatus:e=>a(e).readStatus,selectUpdateStatus:e=>a(e).updateStatus,selectDeleteStatus:e=>a(e).deleteStatus};let s=(e,o="")=>Object.entries(e).reduce((e,[t,n])=>{var r=t.charAt(0).toUpperCase()+t.slice(1);let i=o?o+"."+t:t;return e["select"+r]=e=>{e=a(e);return i.split(".").reduce((e,t)=>e[t],e)},"object"!=typeof n||null===n||Array.isArray(n)||(t=s(n,i),e=Object.assign(Object.assign({},e),t)),e},{});e=e?s(e):{};return Object.assign(Object.assign({},o),e)})({namespace:n,sliceName:t,customReduxNamespace:i,overrideSelectorBase:o,additionalState:a});return{slice:e,selectors:n,sagas:a_e({slice:e,selectors:n,apiCalls:r,toast:s}),initialState:l}};let h_e=e=>{TL("production","development")&&console.log(e)},m_e=({id:e,required:t,type:n,value:r,onChange:i,error:o=!1})=>nt.exports.jsx(gw,{id:e,sx:{width:"100%"},InputLabelProps:{shrink:!0},autoComplete:"off",required:t,value:r,type:n||"",onChange:i,size:"small",error:o}),C_e=({id:e,value:t,required:n,options:r,onChange:i,error:o=!1})=>nt.exports.jsx(Gb,Object.assign({id:e,required:n,value:null!=t?t:null,onChange:i,variant:"outlined",style:{width:"100%"},error:o,inputProps:{name:e,id:e},sx:{width:"100%"}},{children:null==r?void 0:r.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.value))})),x_e=({id:e,values:t,required:n,options:r,onChange:i,error:o=!1})=>{var a={PaperProps:{style:{maxHeight:224,width:250}}};return nt.exports.jsx(Gb,Object.assign({id:e,required:n,value:t,multiple:!0,onChange:i,variant:"outlined",error:o,input:nt.exports.jsx(ix,{id:"select-multiple-chip-"+e}),renderValue:e=>nt.exports.jsx("div",{children:null==e?void 0:e.map(e=>nt.exports.jsx(e8,{style:{marginRight:6},label:e},e))}),MenuProps:a},{children:null==r?void 0:r.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.key}),null==e?void 0:e.key))}))},v_e=((r2e=p_e=p_e||{}).Number="Number",r2e.Picklist="Picklist",r2e.MultiPicklist="MultiPicklist",r2e.Text="Text",r2e.SchemaSelection="SchemaSelection",(e="")=>E5e(e)),b_e=e=>{var{required:e,value:t,min:n,max:r,type:i,values:o}=e;if(U5e(i===p_e.MultiPicklist?o:t))return e?"This field can't be blank!":"";if(i===p_e.Number){if(fje(n)&&Number(t)<n)return"The value can't be lower than "+n.toFixed(2);if(fje(r)&&Number(t)>r)return"The value can't be higher than "+r.toFixed(2)}return""},y_e=je()(e=>({formControlWrapper:{marginTop:15},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},inputLabelError:{color:e.palette.error.main}})),A_e=({fields:e,onChange:s,showErrors:l=!1})=>{let c=y_e().classes;return nt.exports.jsx(nt.exports.Fragment,{children:null==(e=e)?void 0:e.map((t,e)=>{var n=v_e((null==t?void 0:t.name)||""),r=`engine-configuration-input--${null==t?void 0:t.name}-idx-`+e,i=e=>{s({fieldName:null==t?void 0:t.name,fieldValue:e.target.value})};let o;var a=!!b_e(t)&&l;switch(null==t?void 0:t.type){case p_e.Picklist:o=nt.exports.jsx(C_e,{id:r,label:n,required:null==t?void 0:t.required,options:null==t?void 0:t.options,value:null==t?void 0:t.value,onChange:i,error:a});break;case p_e.Text:o=nt.exports.jsx(m_e,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",onChange:i,error:a});break;case p_e.Number:o=nt.exports.jsx(m_e,{id:r,label:n,required:null==t?void 0:t.required,value:(null==t?void 0:t.value)||"",type:"number",onChange:i,error:a});break;case p_e.MultiPicklist:o=nt.exports.jsx(x_e,{id:r,label:null==t?void 0:t.name,required:null==t?void 0:t.required,options:null==t?void 0:t.options,values:(null==t?void 0:t.values)||[],onChange:i,error:a});break;default:return null}return nt.exports.jsxs(pC,Object.assign({error:a,size:"small",className:c.formControlWrapper},{children:[nt.exports.jsx("label",Object.assign({htmlFor:r,className:c.inputLabel+" "+(a&&c.inputLabelError)},{children:n})),o,a&&nt.exports.jsx(kC,{children:b_e(t)})]}),r)})})},I_e=({ticketId:e,boxProps:t={},height:n=void 0,width:r=void 0,label:i})=>{var o=e=>{if(e)return"number"==typeof e?e+"px":e};return nt.exports.jsx(be,Object.assign({style:{background:"#f7f7f7",border:"1px solid #ebebeb",borderRadius:"10px",margin:"5px",padding:"5px 0px",height:o(n),width:o(r)}},t,{children:nt.exports.jsxs(_,Object.assign({height:"100%",gap:"2px",alignItems:"center",justifyContent:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:"5px",alignItems:"center",justifyContent:"center",direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({sx:{color:"#0052cc",fontWeight:"500",fontFamily:"system-ui"},align:"center",variant:"subtitle2"},{children:i})),nt.exports.jsx(w_e,{})]})),nt.exports.jsx(he,Object.assign({title:"Open Ticket in JIRA"},{children:nt.exports.jsx(ge,Object.assign({target:"_blank",href:"https://veritone.atlassian.net/browse/AWT-"+e,size:"small"},{children:nt.exports.jsxs(_,Object.assign({gap:"5px",alignItems:"center",justifyContent:"center",direction:"row"},{children:[nt.exports.jsx(j_e,{}),nt.exports.jsxs(pe,Object.assign({sx:{fontFamily:"system-ui",fontWeight:"500"},variant:"caption",align:"center"},{children:["AWT-",e]}))]}))}))}))]}))}))},w_e=()=>nt.exports.jsx("div",{children:nt.exports.jsx("span",Object.assign({style:{fontSize:"10px",fontWeight:"bold",background:"#dfe1e6",color:"#42526e",borderRadius:"3px",padding:"0px 5px",pointerEvents:"none",userSelect:"none",fontFamily:"system-ui"}},{children:"TODO"}))}),j_e=()=>nt.exports.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1"},{children:[nt.exports.jsx("defs",{}),nt.exports.jsx("g",Object.assign({stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},{children:nt.exports.jsx("g",{children:nt.exports.jsxs("g",Object.assign({transform:"translate(1.000000, 1.000000)"},{children:[nt.exports.jsx("rect",{fill:"#63BA3C",x:"0",y:"0",width:"14",height:"14",rx:"2"}),nt.exports.jsx("path",{d:"M9,3 L5,3 C4.448,3 4,3.448 4,4 L4,10.5 C4,10.776 4.224,11 4.5,11 C4.675,11 4.821,10.905 4.91,10.769 L4.914,10.77 L6.84,8.54 C6.92,8.434 7.08,8.434 7.16,8.54 L9.086,10.77 L9.09,10.769 C9.179,10.905 9.325,11 9.5,11 C9.776,11 10,10.776 10,10.5 L10,4 C10,3.448 9.552,3 9,3",id:"Page-1",fill:"#FFFFFF"})]}))})}))]})),S_e={customColorInput:{colorPickerTitle:()=>nt.exports.jsx(Ce,{id:"customize-button-title",defaultMessage:"Customize Colors",description:"Customize Colors title"}),colorPickerDescription:()=>nt.exports.jsx(Ce,{id:"customize-button-description",defaultMessage:"Change the primary and secondary color of the login and sign up pages to match your brand.",description:"Customize Colors description"}),resetToDefault:()=>nt.exports.jsx(Ce,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"})}},O_e=["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"],k_e=({buttonColor:r,buttonTextColor:i,isButtonColorRequired:o=!1,onChangeButtonColor:t,onChangeTextColor:n,onValidationCheck:a,onReset:e})=>{let[s,l]=Le.exports.useState(""),[c,d]=Le.exports.useState(""),u=(Le.exports.useEffect(()=>{var e=/^#([0-9A-Fa-f]{3}){1,2}$/.test(r),t=/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(i),n=(l(e||0===r.length?"":"Invalid hex color format"),d(t||0===i.length?"":"Invalid hex color format"),t&&e);a&&a(n&&(!o||e&&t))},[i,r]),Le.exports.useCallback(e=>{t(e)},[t]));return nt.exports.jsxs(_,Object.assign({sx:{position:"relative"}},{children:[nt.exports.jsx(_,Object.assign({direction:"row",spacing:2,sx:{marginTop:"22px"}},{children:O_e.map(e=>nt.exports.jsx(T_e,{id:e,color:e,isActive:r===e,onClick:()=>u(e)},e))})),nt.exports.jsxs(_,Object.assign({direction:"row",spacing:2,sx:{marginTop:"18px"}},{children:[nt.exports.jsx(gw,{required:!0,id:"shared-reusable-utils-login-btnColor","data-testid":"shared-reusable-utils-login-btnColor",autoComplete:"off",label:"Button Color",variant:"outlined",value:r,onChange:e=>{e=e.target.value;t(e)},error:0<s.length,helperText:s,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}}),nt.exports.jsx(gw,{required:!0,id:"shared-reusable-utils-login-login-btnTextColor","data-testid":"shared-reusable-utils-login-input-btnTextColor",autoComplete:"off",label:"Button Text Color",variant:"outlined",value:i,onChange:e=>{e=e.target.value;n(e)},error:0<c.length,helperText:c,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}})]})),nt.exports.jsx(ge,Object.assign({"data-testid":"shared-reusable-utils-login-reset-color-button",variant:"text",size:"small",sx:{marginLeft:0,marginTop:"5px",width:"130px"},onClick:()=>{e()}},{children:nt.exports.jsx(pe,Object.assign({sx:{fontWeight:600,fontSize:"14px"}},{children:S_e.customColorInput.resetToDefault()}))}))]}))},T_e=({id:e,color:t,isActive:n,onClick:r})=>nt.exports.jsx(he,Object.assign({TransitionComponent:t7,title:t,placement:"top"},{children:nt.exports.jsx(l9,Object.assign({id:e,"data-testid":t,sx:{"&:hover":{transform:n?"scale(1)":"scale(0.9)"},transition:"transform 0.2s ease-in-out",backgroundColor:t,width:"30px",height:"30px",borderRadius:"4px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:r},{children:n&&nt.exports.jsx(Fde,{sx:{color:"white"}})}))})),E_e={buttonPreview:{buttonPreview:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.button-preview-heading",defaultMessage:"Button Preview",description:"Button Preview heading"}),buttonPreviewDescription:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.button-preview-text",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Preview text description"}),resetToDefault:()=>nt.exports.jsx(Ce,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"}),continueButton:()=>nt.exports.jsx(Ce,{id:"instance-admin-center.instance-login.show-me.modal-continue-button",defaultMessage:"Continue",description:"Instance Login show me modal continue button"})}},N_e=({buttonColor:e,buttonTextColor:t})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(ibe,{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:E_e.buttonPreview.buttonPreview()})),nt.exports.jsx(pe,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:E_e.buttonPreview.buttonPreviewDescription()}))]}),nt.exports.jsx(ge,Object.assign({fullWidth:!0,variant:"contained",color:"primary",disableTouchRipple:!0,sx:{background:e+"!important",backgroundColor:e+"!important",color:t+"!important","&.MuiButton-root:not(:disabled):not(:hover)":{background:e+"!important",backgroundColor:e+"!important",color:t+"!important"},border:"1px solid "+e,height:"56px",width:"368px",fontSize:"18px",fontWeight:600,flexShrink:0,marginTop:"20px"}},{children:E_e.buttonPreview.continueButton()}))]});function M_e(){let[p,e]=Le.exports.useState(!1);var t=Le.exports.useCallback(()=>{e(!p)},[p]),n=Le.exports.useCallback(()=>{e(!0)},[]);let g=Le.exports.useCallback(()=>{e(!1)},[]);var r=Le.exports.useMemo(()=>{let l={vertical:"bottom",horizontal:"center"},c={vertical:"top",horizontal:"center"},d={vertical:"top",horizontal:"right"},u={vertical:"top",horizontal:"left"};return Me.forwardRef((e,t)=>{var{children:n,anchorRef:r,anchorPosition:i,anchorOrigin:o,transformOrigin:a,submenu:s}=e,e=XRe(e,["children","anchorRef","anchorPosition","anchorOrigin","transformOrigin","submenu"]),o=s?null!=o?o:d:null!=o?o:l,s=s?null!=a?a:u:null!=a?a:c;return nt.exports.jsx(Pv,Object.assign({},e,{ref:t,anchorEl:r.current,open:p,onClose:g,anchorPosition:i,anchorOrigin:o,transformOrigin:s,style:{pointerEvents:p?"auto":"none"}},{children:n}))})},[p,g]);return[{toggleMenu:t,openMenu:n,closeMenu:g},p,r]}let P_e=e=>{let t=Ie();return Le.exports.useEffect(()=>(t(OY(!0)),e&&t(kY(e)),()=>{t(OY(!1))}),[]),null},L_e='"_POTENTIAL_PAIR_KEY_": "_POTENTIAL_PAIR_VALUE_"',D_e='"_POTENTIAL_ITEM_"',R_e=e=>{try{return JSON.parse(e)}catch(e){return null}},F_e=e=>!(0<e.length)||null!==R_e(e),V_e=(e,t)=>{t=t?e.replace(/,\s*([\]}])/g,"$1"):e;try{return JSON.stringify(JSON.parse(t),null,2)}catch(e){return null}},B_e=(e,t,n)=>V_e(""+e+n+t,!1)||V_e(""+e+n+t,!0),H_e=(e,t)=>{let n=t.reduce((e,t)=>-1===e?t:e,-1);-1!==n&&setTimeout(()=>{e.focus(),e.selectionStart=n,e.selectionEnd=n,e.setSelectionRange(n,n)},0)},U_e=(e,t)=>({pre:t.substring(0,e.selectionStart),post:t.substring(e.selectionStart)}),z_e=(e,t,n,r)=>{var i=e.split("\n");return 0!==i.length&&n.test(i=i[i.length-1])?B_e(e.substring(0,e.length-i.length),t,i.replace(n,r)):null},__e=(e,t)=>{var n=/^\s*([{]?)([a-z0-9_-]+)(.*)$/,r=/^\s*([a-z0-9_-]+)\s*:\s*([a-z0-9_-]+[,]?)$/,i=/^\s*([a-z0-9_-]+)([,]?)$/;return B_e(e,t,`
1181
1181
  ${L_e}}`)||B_e(e,t,`
1182
1182
  ${D_e}]`)||B_e(e,t,`
1183
1183
  `+L_e)||B_e(e,t,`
1184
1184
  `+D_e)||B_e(e,t,"\n}")||B_e(e,t,"\n]")||B_e(e,t,`
1185
1185
  ,`+D_e)||B_e(e,t,","+L_e)||z_e(e,t,n,'$1"$2"$3,'+L_e)||z_e(e,t,n,'$1"$2"$3'+L_e)||z_e(e,t,n,`$1"$2"$3${L_e}}`)||z_e(e,t,n,`$1"$2"$3{${L_e}}`)||z_e(e,t,n,`$1"$2"$3: {${L_e}}`)||z_e(e,t,n,`$1"$2"$3${D_e}]`)||z_e(e,t,r,'"$1": $2,'+L_e)||z_e(e,t,r,'"$1": $2'+L_e)||z_e(e,t,r,'"$1": "$2",'+L_e)||z_e(e,t,r,'"$1": "$2"'+L_e)||z_e(e,t,i,'"$1"$2,'+D_e)||z_e(e,t,i,'"$1"$2'+D_e)||z_e(e,t,i,'"$1"$2')||z_e(e,t,n,'$1"$2"$3')||B_e(e,t,"\n")},q_e=e=>e.replace(L_e,"").replace(D_e,""),W_e=((e,t={})=>{let{name:f,classNamePrefix:n,Component:a,defaultTheme:s=AOe}=t,l=_2(t,wOe),h=IOe(e);return t=f||n||"makeStyles",h.options={index:vOe+=1,name:f,meta:t,classNamePrefix:t},(d={})=>{r=f4();let t=(null!=(n=null==r?void 0:r.$$material)?n:r)||s;let u=De({},Le.exports.useContext(xOe),l),p=Le.exports.useRef(),g=Le.exports.useRef();{var n=()=>{let a={name:f,state:{},stylesCreator:h,stylesOptions:u,theme:t};var[{state:e,theme:n,stylesOptions:r,stylesCreator:i,name:o},s]=[a,d];if(!r.disableGeneration){let t=COe.get(r.sheetsManager,i,n);t||(t={refs:0,staticSheet:null,dynamicStyles:null},COe.set(r.sheetsManager,i,n,t));var l=De({},i.options,r,{theme:n,flip:"boolean"==typeof r.flip?r.flip:"rtl"===n.direction}),c=(l.generateId=l.serverGenerateClassName||l.generateClassName,r.sheetsRegistry);if(0===t.refs){let e;r.sheetsCache&&(e=COe.get(r.sheetsCache,i,n));o=i.create(n,o);e||((e=r.jss.createStyleSheet(o,De({link:!1},l))).attach(),r.sheetsCache&&COe.set(r.sheetsCache,i,n,e)),c&&c.add(e),t.staticSheet=e,t.dynamicStyles=hSe(o)}t.dynamicStyles?((i=r.jss.createStyleSheet(t.dynamicStyles,De({link:!0},l))).update(s),i.attach(),e.dynamicSheet=i,e.classes=mOe({baseClasses:t.staticSheet.classes,newClasses:i.classes}),c&&c.add(i)):e.classes=t.staticSheet.classes,t.refs+=1}return g.current=!1,p.current=a,()=>{var e,t,n,r,i,o;({state:e,theme:t,stylesOptions:n,stylesCreator:r}=a),n.disableGeneration||(--(i=COe.get(n.sheetsManager,r,t)).refs,o=n.sheetsRegistry,0===i.refs&&(COe.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o)&&o.remove(i.staticSheet),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o)&&o.remove(e.dynamicSheet))}},r=[t,h],i=Le.exports.useRef([]);let e;r=Le.exports.useMemo(()=>({}),r),i.current!==r&&(i.current=r,e=n()),Le.exports.useEffect(()=>()=>{e&&e()},[r])}Le.exports.useEffect(()=>{var e,t;g.current&&([e,t]=[p.current.state,d],e.dynamicSheet)&&e.dynamicSheet.update(t),g.current=!0});{var[{state:i,stylesOptions:n},r,o]=[p.current,d.classes,a];if(n.disableGeneration)return r||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});let e=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,e=!0),r!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=r,e=!0),e&&(i.cacheClasses.value=mOe({baseClasses:i.cacheClasses.lastJSS,newClasses:r,Component:o})),i.cacheClasses.value}}})(()=>({textField:{"& .MuiInput-underline::before":{borderBottom:"none"},"& .MuiInput-underline::after":{borderBottom:"none"},"& .MuiInput-underline.Mui-focused::before":{borderBottom:"none"},"& .MuiInput-underline.Mui-focused::after":{borderBottom:"none"},"&.MuiButtonBase-root:hover":{borderColor:"red"}}})),Z_e=({jsonData:i,onChange:o,height:e,variant:t,label:n,dataTestId:r,required:a=!1,autoFocus:s=!0})=>{var l=W_e();let[c,d]=Le.exports.useState(!1);Le.exports.useEffect(()=>{d(F_e(i))},[i]);let u=Le.exports.useRef(!1);return nt.exports.jsx(gw,{fullWidth:!0,multiline:!0,autoFocus:s,variant:null!=t?t:"standard",value:i||"",onChange:e=>{u.current||o(e.target.value)},onKeyDown:e=>{var t,n,r;"Enter"!==e.key||u.current||(u.current=!0,e=e.target,{pre:t,post:n}=U_e(e,i),(r=__e(t,n))?(H_e(e,[r.indexOf(L_e),r.indexOf(D_e),e.selectionStart]),u.current=!1,o(q_e(r)||i)):(H_e(e,[t.length+1,e.selectionStart]),u.current=!1,o(t+`
1186
- `+n)))},onBlur:()=>{var e=V_e(i,!0);e&&o(e)},error:!c,label:n,required:a,InputLabelProps:{shrink:!0},helperText:c?"":"Invalid JSON",sx:{"& .MuiOutlinedInput-root":{padding:"0 !important"}},inputProps:{"data-testid":r||"json-editor",sx:{overflowY:"auto !important"},style:{padding:"20px",fontFamily:"Courier New",backgroundColor:"outlined"===t?"none":"#F7F7F7",fontSize:"14px",lineHeight:"20px",height:e||"100%"}},className:l.textField})};function G_e(e){var{testId:t,items:i,itemSize:o,children:r,divider:n=!1,memoized:a=!1,InfiniteLoaderProps:s=!1}=e,e=XRe(e,["testId","items","itemSize","children","divider","memoized","InfiniteLoaderProps"]);let l=t||"virtual-list",c=Le.exports.useRef(null),[d,u]=Le.exports.useState(0),p=e=>s&&(!s.hasMore||e<i.length);t=null!=(t=null==e?void 0:e.AutoSizerProps)?t:{};let g=null!=(e=null==e?void 0:e.ListProps)?e:{},f="object"==typeof n?n:{},h="boolean"!=typeof n||n,m=Ide(u,500),C=({index:e,data:t,style:n})=>nt.exports.jsxs("div",Object.assign({"data-test":l+"-row-"+(e+1),"data-testid":l+"-row-"+(e+1),style:Object.assign({},n)},{children:[s&&!p(e)?nt.exports.jsx(mm,{color:"inherit",size:20}):r({index:e,item:t[e],isLast:e===t.length-1}),h&&e!==t.length-1&&nt.exports.jsx(se,Object.assign({},f))]}));return nt.exports.jsx(jwe,Object.assign({"data-test":l,"data-testid":l},t,{onScroll:()=>{var e;return c&&(null==(e=c.current)?void 0:e._listRef.scrollToItem(d,"start"))}},{children:({width:n,height:r})=>{var e;return s?nt.exports.jsx(Qwe,Object.assign({},s,{ref:c,isItemLoaded:p,itemCount:s.hasMore?i.length+1:i.length,threshold:null!=(e=null==s?void 0:s.threshold)?e:15,loadMoreItems:()=>{s.hasMore&&!s.loading&&s.loadMoreItems()}},{children:({onItemsRendered:t,ref:e})=>nt.exports.jsx(_we,Object.assign({},g,{ref:e,height:r,width:n,itemData:i,itemSize:o,itemCount:i.length,initialScrollOffset:0,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,s&&!s.loading&&m(e)}},{children:a?Le.exports.memo(C,Gwe):C}))})):nt.exports.jsx(()=>nt.exports.jsx(_we,Object.assign({},g,{height:r,width:n,itemData:i,itemSize:o,itemCount:i.length},{children:a?Le.exports.memo(C,Gwe):C})),{})}}))}(s2e=g_e=g_e||{}).Left="left",s2e.Right="right";let J_e=({id:e,value:t,displayValue:n,description:r="Copy text",sx:i={},variant:o="body2",iconSx:a={},iconPosition:s=g_e.Right,TypographyProps:l={}})=>{var c=T5();let[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1);c=Object.assign({marginLeft:s===g_e.Right?"5px":0,marginRight:s===g_e.Left?"5px":0,fontSize:"18px!important",verticalAlign:"middle","&:active":{color:c.palette.action.active},"&:hover":{color:c.palette.action.active,cursor:"pointer"}},a),a=nt.exports.jsx(he,Object.assign({title:t},{children:nt.exports.jsx(pe,Object.assign({},l,{"data-test":e+".text",noWrap:!0,variant:o,sx:i},{children:n||t}))}));return nt.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",overflow:"hidden"}},{children:[s===g_e.Right&&a,t&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"copy-text-tooltip",defaultMessage:"{description}",description:"Tooltip message for copy text button",values:{description:d?"Copied":r}}),disableInteractive:!0},{children:nt.exports.jsxs("div",Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{u(!0)}).catch(e=>{g(!0),h_e("Error writing text to clipboard: "+JSON.stringify(e))}).finally(()=>{p?setTimeout(()=>g(!1),500):setTimeout(()=>u(!1),500)})}},{children:[!d&&nt.exports.jsx(qde,{sx:c}),d&&nt.exports.jsx(Vde,{sx:c})]}))})),s===g_e.Left&&a]}))};function K_e({field:t,FormControlProps:e={},isFormValid:n,onChange:r,label:i=!1,disabled:o=!1}){let a,s,l,c=null,d=!!Y_e(t),u=e=>{"Boolean"===t.configType?r({name:t.configKey,value:String(e.target.checked)}):r({name:t.configKey,value:e.target.value})},p={id:`app-configuration-input-${t.configType}-`+t.applicationId,"data-test":"app-configuration-input","data-test-id":`app-configuration-input-${t.configType}-`+t.applicationId,required:(null==t?void 0:t.required)||!1,onChange:u,disabled:o};c="Boolean"===t.configType?("enabled"===(null==t?void 0:t.value)?p.checked=!0:"disabled"===(null==t?void 0:t.value)?p.checked=!1:"boolean"==typeof(null==t?void 0:t.value)?p.checked=t.value:"string"==typeof(null==t?void 0:t.value)&&(p.checked="true"===(null==(a=null==t?void 0:t.value)?void 0:a.toLowerCase())),nt.exports.jsx(SA,Object.assign({},p))):(p.type="text",p.value=null!=(s=null==t?void 0:t.value)?s:"",p.variant="outlined",p.error=d,p.placeholder=E5e(""+(null==t?void 0:t.configKey)||""),i&&(p.label=E5e(""+(null==t?void 0:t.configKey)||"")),"Date"===t.configType&&(p.type="date",p.value=(null==(l=null==p?void 0:p.value)?void 0:l.substring(0,10))||""),"Integer"!==t.configType&&"Float"!==t.configType||(p.type="number"),"JSON"===t.configType?nt.exports.jsx(Z_e,{height:"200px",jsonData:p.value,onChange:e=>{u({target:{value:e}})}}):nt.exports.jsx(gw,Object.assign({size:"small",fullWidth:!0},p))),Le.exports.useEffect(()=>{n(d)},[d]);return nt.exports.jsxs(pC,Object.assign({},e,{error:d},{children:[(o=i&&(null==p?void 0:p.label),e=""+String(p.label)+(null!=t&&t.required?" (Required)":""),i=p.id,o?nt.exports.jsx(LC,Object.assign({htmlFor:i},{children:e})):null),c,d&&nt.exports.jsx(kC,Object.assign({sx:{ml:0}},{children:Y_e(t)}))]}))}(t2e=f_e=f_e||{}).String="String",t2e.Boolean="Boolean",t2e.Date="Date",t2e.Integer="Integer",t2e.JSON="JSON",t2e.Float="Float";let Y_e=e=>{var{value:e,required:t,configType:n}=e;return t&&U5e(e)?nt.exports.jsx(Ce,{id:"os-admin-center-user-application-settings-empty-error-message",defaultMessage:"Required please enter value",description:"Empty error message"}):n===f_e.Integer&&Number(e)-Math.floor(Number(e))!=0?nt.exports.jsx(Ce,{id:"os-admin-center-user-application-settings-integer-vaue-error-message",defaultMessage:"The value has to to be Integer'",description:"Integer value error message"}):""},Q_e=()=>nt.exports.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"147",height:"159",viewBox:"0 0 147 159",fill:"none"},{children:[nt.exports.jsxs("g",Object.assign({"clip-path":"url(#clip0_64202_17714)"},{children:[nt.exports.jsx("path",{d:"M73 131C107.493 131 135.455 103.018 135.455 68.5C135.455 33.9822 107.493 6 73 6C38.507 6 10.5449 33.9822 10.5449 68.5C10.5449 103.018 38.507 131 73 131Z",fill:"#EAEEF9"}),nt.exports.jsx("g",Object.assign({filter:"url(#filter0_d_64202_17714)"},{children:nt.exports.jsx("path",{d:"M119.659 125.562H27.3544C24.5191 125.562 22.1562 123.276 22.1562 120.36V16.6395C22.1562 13.8022 24.4403 11.5166 27.3544 11.5166H119.659C122.494 11.5166 124.857 13.8022 124.857 16.7183V120.36C124.857 123.197 122.573 125.562 119.659 125.562Z",fill:"url(#paint0_linear_64202_17714)"})})),nt.exports.jsx("path",{d:"M113.909 42.8061H32.4729C31.5278 42.8061 30.7402 42.0179 30.7402 41.0722V25.6245C30.7402 24.6787 31.5278 23.8906 32.4729 23.8906H113.909C114.854 23.8906 115.641 24.6787 115.641 25.6245V40.9933C115.72 42.0179 114.932 42.8061 113.909 42.8061Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 35.7132C40.5524 35.7132 41.6102 34.6546 41.6102 33.3488C41.6102 32.0429 40.5524 30.9844 39.2475 30.9844C37.9426 30.9844 36.8848 32.0429 36.8848 33.3488C36.8848 34.6546 37.9426 35.7132 39.2475 35.7132Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 34.9248H49.5643C49.1705 34.9248 48.8555 34.6095 48.8555 34.2155V32.4027C48.8555 32.0086 49.1705 31.6934 49.5643 31.6934H97.3704C97.7642 31.6934 98.0792 32.0086 98.0792 32.4027V34.2155C98.0792 34.6095 97.7642 34.9248 97.3704 34.9248Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M113.909 67.0808H32.4729C31.5278 67.0808 30.7402 66.2927 30.7402 65.3469V49.978C30.7402 49.0323 31.5278 48.2441 32.4729 48.2441H113.909C114.854 48.2441 115.641 49.0323 115.641 49.978V65.3469C115.72 66.2927 114.932 67.0808 113.909 67.0808Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 59.9877C40.5524 59.9877 41.6102 58.9291 41.6102 57.6233C41.6102 56.3174 40.5524 55.2588 39.2475 55.2588C37.9426 55.2588 36.8848 56.3174 36.8848 57.6233C36.8848 58.9291 37.9426 59.9877 39.2475 59.9877Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 59.2783H49.5643C49.1705 59.2783 48.8555 58.9631 48.8555 58.569V56.7563C48.8555 56.3622 49.1705 56.0469 49.5643 56.0469H97.3704C97.7642 56.0469 98.0792 56.3622 98.0792 56.7563V58.569C98.0792 58.9631 97.7642 59.2783 97.3704 59.2783Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M113.909 115.71H32.4729C31.5278 115.71 30.7402 114.922 30.7402 113.976V98.6069C30.7402 97.6611 31.5278 96.873 32.4729 96.873H113.909C114.854 96.873 115.641 97.6611 115.641 98.6069V113.976C115.72 114.922 114.932 115.71 113.909 115.71Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 108.616C40.5524 108.616 41.6102 107.558 41.6102 106.252C41.6102 104.946 40.5524 103.888 39.2475 103.888C37.9426 103.888 36.8848 104.946 36.8848 106.252C36.8848 107.558 37.9426 108.616 39.2475 108.616Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 107.828H49.5643C49.1705 107.828 48.8555 107.513 48.8555 107.119V105.306C48.8555 104.912 49.1705 104.597 49.5643 104.597H97.3704C97.7642 104.597 98.0792 104.912 98.0792 105.306V107.119C98.0792 107.513 97.7642 107.828 97.3704 107.828Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M132.102 90.3562H50.6663C50.2741 90.3562 49.9336 90.0165 49.9336 89.6223V74.2535C49.9336 73.8593 50.2741 73.5195 50.6663 73.5195H132.102C132.494 73.5195 132.835 73.8593 132.835 74.2535V89.6223C132.835 90.0165 132.494 90.3562 132.102 90.3562Z",fill:"#D6DCE8",stroke:"#AAB2C5","stroke-width":"2","stroke-miterlimit":"10"}),nt.exports.jsx("path",{d:"M57.4409 84.3422C58.7458 84.3422 59.8036 83.2836 59.8036 81.9777C59.8036 80.6719 58.7458 79.6133 57.4409 79.6133C56.136 79.6133 55.0781 80.6719 55.0781 81.9777C55.0781 83.2836 56.136 84.3422 57.4409 84.3422Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M115.564 83.5537H67.7577C67.3639 83.5537 67.0488 83.2384 67.0488 82.8443V81.0316C67.0488 80.6375 67.3639 80.3223 67.7577 80.3223H115.564C115.958 80.3223 116.273 80.6375 116.273 81.0316V82.8443C116.273 83.2384 115.958 83.5537 115.564 83.5537Z",fill:"#AAB2C5"})]})),nt.exports.jsxs("defs",{children:[nt.exports.jsxs("filter",Object.assign({id:"filter0_d_64202_17714",x:"0.15625",y:"0.516602",width:"146.701",height:"158.045",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},{children:[nt.exports.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),nt.exports.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),nt.exports.jsx("feOffset",{dy:"11"}),nt.exports.jsx("feGaussianBlur",{stdDeviation:"11"}),nt.exports.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),nt.exports.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_64202_17714"}),nt.exports.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_64202_17714",result:"shape"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint0_linear_64202_17714",x1:"73.473",y1:"8.8786",x2:"73.473",y2:"126.791",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{"stop-color":"#FDFEFF"}),nt.exports.jsx("stop",{offset:"0.9964","stop-color":"#ECF0F5"})]})),nt.exports.jsx("clipPath",Object.assign({id:"clip0_64202_17714"},{children:nt.exports.jsx("rect",{width:"147",height:"159",fill:"white"})}))]})]})),X_e={basic_fields:["text","number","date","select","email"]},$_e={fontSize:"18px"},eqe={text:nt.exports.jsx(Pge,{sx:$_e}),number:nt.exports.jsx(Pge,{sx:$_e}),date:nt.exports.jsx(UQ,{sx:$_e}),email:nt.exports.jsx(B2e,{sx:$_e}),select:nt.exports.jsx(J2e,{sx:$_e}),default:nt.exports.jsx(Pge,{sx:$_e})},tqe=({type:n,index:e})=>nt.exports.jsx(zRe,Object.assign({draggableId:"type-"+n,index:e},{children:(e,t)=>nt.exports.jsx("div",Object.assign({ref:e.innerRef},e.draggableProps,e.dragHandleProps,{children:nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:1,bgcolor:t.isDragging?"#FAFAFA":"white",border:"1px solid #BDBDBD",borderRadius:"4px"}},{children:[nt.exports.jsxs(_,Object.assign({gap:1,direction:"row",alignItems:"center"},{children:[eqe[n]||eqe.default,nt.exports.jsx(pe,Object.assign({textTransform:"capitalize",fontSize:"12px"},{children:n}))]})),nt.exports.jsx(Yde,{sx:$_e})]}))}))})),nqe=({field:t,index:n,onFieldChange:r})=>nt.exports.jsx(gw,{fullWidth:!0,size:"small",label:"Placeholder",value:t.placeholder||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{placeholder:e.target.value}))}}),rqe=({field:t,index:n,onFieldChange:r})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(gw,{fullWidth:!0,size:"small",type:"number",label:"Minimum Value",value:t.min||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{min:Number(e.target.value)}))}}),nt.exports.jsx(gw,{fullWidth:!0,size:"small",type:"number",label:"Maximum Value",value:t.max||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{max:Number(e.target.value)}))}})]}),iqe=({field:r,index:i,onFieldChange:o})=>{var e;return nt.exports.jsxs(be,{children:[nt.exports.jsx(gw,{fullWidth:!0,size:"small",label:"Add select options",onKeyDown:e=>{var t;"Enter"===e.key&&(e.preventDefault(),t=e.target.value.trim())&&(o(i,Object.assign(Object.assign({},r),{options:[...r.options||[],t]})),e.target.value="")}}),nt.exports.jsx(be,Object.assign({sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1}},{children:null==(e=r.options)?void 0:e.map((e,n)=>nt.exports.jsx(e8,{label:e,onDelete:()=>{var e;o(i,Object.assign(Object.assign({},r),{options:null==(e=r.options)?void 0:e.filter((e,t)=>t!==n)}))},size:"small"},n))}))]})},oqe=({field:t,index:n,onDelete:r,onFieldChange:i})=>{let[o,a]=Le.exports.useState(!1),s=()=>{var e={text:nt.exports.jsx(nqe,{field:t,index:n,onFieldChange:i}),number:nt.exports.jsx(rqe,{field:t,index:n,onFieldChange:i}),select:nt.exports.jsx(iqe,{field:t,index:n,onFieldChange:i})};return null!=(e=null===e?void 0:e[t.type])?e:null};return nt.exports.jsx(zRe,Object.assign({draggableId:t.id,index:n},{children:e=>nt.exports.jsx("div",Object.assign({ref:e.innerRef},e.draggableProps,e.dragHandleProps,{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[nt.exports.jsxs(_,Object.assign({gap:1,sx:{p:2,position:"relative",width:"100%",bgcolor:"#EAEAEA",border:"1px solid #BDBDBD",borderRadius:"4px",height:"auto",transition:"height 0.3s ease"}},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:1,alignItems:"center"},{children:[eqe[t.type],nt.exports.jsxs(pe,Object.assign({variant:"h5",textTransform:"capitalize"},{children:[t.type," Field"]}))]})),nt.exports.jsx(xC,{sx:{mr:0},labelPlacement:"start",control:nt.exports.jsx(om,{size:"small",checked:t.required,onChange:e=>{e=Object.assign(Object.assign({},t),{required:e.target.checked});null!=i&&i(n,e)}}),label:"Required"})]})),nt.exports.jsx(gw,{fullWidth:!0,label:"Default Title",value:t.label,onChange:e=>{e=Object.assign(Object.assign({},t),{label:e.target.value});null!=i&&i(n,e)},variant:"outlined",sx:{bgcolor:"white"}}),o&&(null===s||(s,0)?void 0:s())&&nt.exports.jsxs(_,Object.assign({gap:4,sx:{mt:2,bgcolor:"white",p:2,borderRadius:"4px",border:"1px solid #BDBDBD"}},{children:[nt.exports.jsx(_,Object.assign({direction:"row",gap:1,alignItems:"center"},{children:nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:"Settings"}))})),s()]}))]})),nt.exports.jsxs(_,Object.assign({gap:2,alignItems:"center"},{children:[nt.exports.jsx(ue,Object.assign({disabled:!(null!==s&&(s,1)&&s()),onClick:()=>a(!o),sx:{bgcolor:o?"primary.main":"transparent",color:o?"white":"inherit","&:hover":{bgcolor:o?"primary.dark":"rgba(0, 0, 0, 0.04)",color:o?"white":"inherit"}}},{children:nt.exports.jsx(kue,{sx:$_e})})),nt.exports.jsx(Yde,{sx:Object.assign(Object.assign({},$_e),{transform:"rotate(90deg)"})}),nt.exports.jsx(ue,Object.assign({onClick:()=>r(n)},{children:nt.exports.jsx(Jde,{sx:$_e})}))]}))]}))}))}))},aqe=r=>r.properties?Object.entries(r.properties).map(([e,t])=>{var n;return{id:e,type:t.type,label:t.title,required:(null==(n=r.required)?void 0:n.includes(e))||!1,options:"select"===t.type?t.enum:void 0,min:"number"===t.type?t.min:void 0,max:"number"===t.type?t.max:void 0}}):[],sqe=e=>{let n={};return e.forEach((e,t)=>{n[e.id]={type:e.type,title:e.label,sequence:t+1},"select"===e.type&&e.options?n[e.id].enum=e.options:"number"===e.type&&(e.min||e.max)?(e.min&&(n[e.id].min=e.min),e.max&&(n[e.id].max=e.max)):"text"===e.type&&e.placeholder&&(n[e.id].placeholder=e.placeholder)}),{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:n,required:e.filter(e=>e.required).map(e=>e.id)}},lqe={width:"170px",height:"100%",display:"flex",flexDirection:"column"},cqe={p:3,bgcolor:"#F5F5F5",borderRadius:"4px",height:"100%",display:"flex",flexDirection:"column",overflowY:"auto"},dqe={flex:1,display:"flex",flexDirection:"column",p:2,bgcolor:"#F5F5F5",border:"1px dashed #BDBDBD",borderRadius:"4px"},uqe=()=>nt.exports.jsx(nt.exports.Fragment,{children:Object.entries(X_e).map(([e,n],r)=>nt.exports.jsxs(K6,Object.assign({defaultExpanded:!0,disableGutters:!0,sx:{bgcolor:"transparent",boxShadow:"none",border:"none"}},{children:[nt.exports.jsx(h9,Object.assign({expandIcon:nt.exports.jsx(J2e,{}),sx:{p:0,flexDirection:"row-reverse"}},{children:nt.exports.jsx(pe,Object.assign({textTransform:"capitalize",variant:"h5",fontSize:"14px",ml:1,noWrap:!0},{children:e.replace("_"," ")}))})),nt.exports.jsx($6,Object.assign({sx:{p:0}},{children:nt.exports.jsx(WRe,Object.assign({droppableId:"field-types-"+e,isDropDisabled:!0},{children:e=>nt.exports.jsxs(_,Object.assign({ref:e.innerRef},e.droppableProps,{gap:1},{children:[n.map((e,t)=>nt.exports.jsx(tqe,{type:e,index:r*n.length+t},e)),e.placeholder]}))}))}))]}),e))}),pqe=e=>{var t,{initialSchema:i,onSchemaChange:o,EmptyState:n}=e,e=XRe(e,["initialSchema","onSchemaChange","EmptyState"]),r=lW(),e=null!=(e=null==e?void 0:e.testId)?e:"form-builder";let[a,s]=Le.exports.useState(i?aqe(i):[]),l=r.formatMessage({id:"{testId}.empty-state-title",defaultMessage:[{type:1,value:"title"}]},{title:null!=(t=null==n?void 0:n.title)?t:"Let's get started!",testId:e}),c=r.formatMessage({id:"{testId}.empty-state-desc",defaultMessage:[{type:1,value:"desc"}]},{desc:null!=(t=null==n?void 0:n.description)?t:"Drag in Building Blocks from the left to craft your form.",testId:e});let d=(e,t)=>{var n=[...a];n[e]=t,s(n),o(rTe(null!=i?i:{},sqe(n)))},u=e=>{var t=[...a];t.splice(e,1),s(t),o(rTe(null!=i?i:{},sqe(t)))};return nt.exports.jsx($De,Object.assign({onDragEnd:e=>{var t,n,r;e.destination&&({source:e,destination:t}=e,"form-fields"===e.droppableId&&"form-fields"===t.droppableId?([r]=(n=Array.from(a)).splice(e.index,1),n.splice(t.index,0,r),s(n),o(rTe(null!=i?i:{},sqe(n)))):e.droppableId.startsWith("field-types-")&&"form-fields"===t.droppableId&&(r=e.droppableId.replace("field-types-",""),n=X_e[r][e.index],r={id:"field-"+Date.now(),type:n,label:""+n.charAt(0).toUpperCase()+n.slice(1)+" Field",required:!1},(e=[...a]).splice(t.index,0,r),s(e),o(rTe(null!=i?i:{},sqe(e)))))}},{children:nt.exports.jsxs(_,Object.assign({gap:2,direction:"row",sx:{height:"100%",minHeight:"600px",flex:1,display:"flex"}},{children:[nt.exports.jsx(_,Object.assign({sx:Object.assign({},lqe)},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},cqe)},{children:nt.exports.jsx(uqe,{})}))})),nt.exports.jsx(_,Object.assign({sx:{flex:1,height:"100%"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},dqe)},{children:nt.exports.jsx(WRe,Object.assign({droppableId:"form-fields"},{children:(e,t)=>nt.exports.jsxs(_,Object.assign({ref:e.innerRef},e.droppableProps,{gap:2,style:{overflowY:"auto",backgroundColor:t.isDraggingOver?"#e0e0e0":"#f5f5f5",padding:"8px",borderRadius:"4px",minHeight:"100%"}},{children:[a.map((e,t)=>nt.exports.jsx(oqe,{field:e,index:t,onDelete:u,onFieldChange:d},e.id)),e.placeholder,0===a.length&&!t.isDraggingOver&&nt.exports.jsx(Yze,{title:l,description:c,image:nt.exports.jsx(Q_e,{}),ContainerProps:{sx:{textAlign:"center"}}})]}))}))}))}))]}))}))},gqe=(e,t)=>{var n={required:!!(null!=(t=null==(t=null==t?void 0:t.required)?void 0:t.includes(e.fieldKey))&&t)&&e.title+" is required"};switch(e.type){case"email":n.pattern={value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"};break;case"number":n.valueAsNumber=!0,void 0!==e.min&&(n.min={value:e.min,message:"Minimum value is "+e.min}),void 0!==e.max&&(n.max={value:e.max,message:"Maximum value is "+e.max})}return n},fqe=e=>{var{name:e,field:t,schema:n,errors:r}=e;return{fullWidth:!0,label:t.title,error:!!r[e],helperText:null==(r=r[e])?void 0:r.message,required:null!=(r=null==(e=null==n?void 0:n.required)?void 0:e.includes(t.fieldKey))&&r,placeholder:t.placeholder}},hqe=e=>{let{name:t,field:n,control:r}=e,i=fqe(e);return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsx(gw,Object.assign({},i,{type:n.type,value:null!=t?t:"",onChange:e}))})},mqe=e=>{var{name:t,field:n,control:r}=e;let i=fqe(e),o=n;return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsxs(gw,Object.assign({},i,{select:!0,value:null!=t?t:"",onChange:e},{children:[nt.exports.jsx(fe,Object.assign({value:""},{children:nt.exports.jsx("em",{children:"None"})})),o.enum.map(e=>nt.exports.jsx(fe,Object.assign({value:e},{children:e}),e))]}))})},Cqe=e=>{var{name:t,field:n,control:r}=e;let i=fqe(e);return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsx(gw,Object.assign({},i,{type:"date",value:null!=t?t:"",onChange:e,InputLabelProps:{shrink:!0}}))})},xqe=({isSubmitting:e,loading:t,isDirty:n,isValid:r,submitText:i})=>nt.exports.jsx(ije,Object.assign({type:"submit",variant:"contained",color:"primary",fullWidth:!0,size:"large",loading:e||t,disabled:!n||!r},{children:i})),vqe=(e,t)=>{let n=[],r=[],i=!0;return e.forEach(e=>{n.push(e);e=i?t:1;n.length===e&&(r.push([...n]),n=[],i=!i)}),0<n.length&&r.push(n),r},bqe=({formOptions:e={},defaultValues:t}={})=>{let n=qxe(Object.assign(Object.assign({mode:"onChange"},e),t&&{defaultValues:t}));return Object.assign(Object.assign({},n),{handleSubmit:t=>n.handleSubmit(e=>{t(e)})})},yqe=({schema:i,fieldsPerRow:o=2,onSubmit:e,loading:t=!1,submitText:n="Submit",renderSubmitButton:r,defaultValues:a,formOptions:s})=>{let{control:l,handleSubmit:c,formState:{errors:d,isSubmitting:u,isDirty:p,isValid:g}}=bqe({formOptions:s,defaultValues:a}),f=Le.exports.useMemo(()=>{var e;return Object.entries(null!=(e=null==i?void 0:i.properties)?e:{}).map(([e,t])=>Object.assign({fieldKey:e},t)).sort((e,t)=>e.sequence-t.sequence)},[null==i?void 0:i.properties]);s=Le.exports.useMemo(()=>vqe(f,o),[f,o]);return nt.exports.jsxs(be,Object.assign({component:"form",onSubmit:c(e),noValidate:!0},{children:[s.map((r,e)=>nt.exports.jsx(W,Object.assign({container:!0,spacing:2,sx:{mb:3}},{children:r.map(e=>{return nt.exports.jsx(W,Object.assign({item:!0,xs:12,sm:1===r.length?12:12/o},{children:(n={name:YRe((t=e).title),field:t,schema:i,control:l,errors:d},(t={text:hqe,email:hqe,number:hqe,select:mqe,date:Cqe}[t.type])?nt.exports.jsx(t,Object.assign({},n)):null)}),e.fieldKey);var t,n})}),e)),r?r({isSubmitting:u,isDirty:p,isValid:g}):nt.exports.jsx(xqe,{isSubmitting:u,loading:t,isDirty:p,isValid:g,submitText:n})]}))};f2e={jsx:r4e},v2e={api:m4e,jsx:o4e};let Aqe={api:eFe,jsx:d4e,helpers:c4e},Iqe={jsx:p4e},wqe={jsx:MQ},jqe={jsx:(e,t,n,r,i)=>{let o=tFe().classes;return nt.exports.jsxs(pC,Object.assign({"data-test":""+t,size:"small",className:o.formControl},{children:[nt.exports.jsx("label",Object.assign({className:o.label},{children:n})),nt.exports.jsx(Gb,Object.assign({variant:"outlined",className:o.selectField,disabled:r.length<=1,value:e,"data-test":"select.dropdown-filter-"+t,onChange:e=>i(e.target.value,t),MenuProps:{classes:{paper:o.menuPaper}}},{children:r.map((e,t)=>nt.exports.jsx(fe,Object.assign({value:e,className:o.selectField,"data-test":"menu-item.dropdown-filter-"+e},{children:e}),t))}))]}),t)}};x2e={jsx:TQ},C2e={header:({title:e,description:t,height:n=64,PanelActions:r,testId:i,onPanelClose:o,disableBorder:a,onSetFullScreen:s,PanelCloseIconType:l="close"})=>{var c=!!s,d={close:nt.exports.jsx(m2e,{}),hide:nt.exports.jsx(Spe,{})};return nt.exports.jsxs(be,Object.assign({sx:{alignItems:"center",borderBottom:a?void 0:e=>"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:n,padding:e=>e.spacing(2,2,2,6),flexShrink:0}},{children:[nt.exports.jsxs(_,Object.assign({direction:"column",spacing:0},{children:[nt.exports.jsx(pe,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e=>e.palette.text.secondary},variant:"h1","data-testid":"panel-header-"+i},{children:e})),t&&nt.exports.jsx(pe,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"14px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",color:e=>e.palette.text.secondary},variant:"h2"},{children:t}))]})),nt.exports.jsxs(_,Object.assign({sx:r?{gap:0}:{},direction:"row",alignItems:"center"},{children:[r,c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(XUe,{onClick:()=>s&&s(!0),testId:i}),nt.exports.jsx($Ue,{onClick:()=>s&&s(!1),testId:i})]}),o&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,id:"panel-header-close-"+i},{children:JUe.closePanel()})),nt.exports.jsx(he,Object.assign({title:JUe.closePanel()},{children:nt.exports.jsx(ue,Object.assign({onClick:o,"aria-labelledby":"panel-header-close-"+i,"data-testid":"panel-header-close-"+i,size:"medium"},{children:d[l]}))}))]})]}))]}))},container:t=>{var e=Ae(Cse)||[];let{isRenderedFullScreen:n=!1,withRenderFullScreenControl:r=!1,preventFullScreenRerender:i=!1,fallbackUI:o,onDidCatchError:a}=t,s=n&&r;l=s;var l=r?l?QUe:YUe:{},e=e.find(e=>e.panelId===t.panelId)||{panelConfig:{dimmed:0}},e=0<(null==(e=null===e?void 0:e.panelConfig)?void 0:e.dimmed);return Le.exports.useEffect(()=>{i&&((e,t)=>{e=document.querySelector(`#${e}-root #`+e);if(e){var n=`
1186
+ `+n)))},onBlur:()=>{var e=V_e(i,!0);e&&o(e)},error:!c,label:n,required:a,InputLabelProps:{shrink:!0},helperText:c?"":"Invalid JSON",sx:{"& .MuiOutlinedInput-root":{padding:"0 !important"}},inputProps:{"data-testid":r||"json-editor",sx:{overflowY:"auto !important"},style:{padding:"20px",fontFamily:"Courier New",backgroundColor:"outlined"===t?"none":"#F7F7F7",fontSize:"14px",lineHeight:"20px",height:e||"100%"}},className:l.textField})};function G_e(e){var{testId:t,items:i,itemSize:o,children:r,divider:n=!1,memoized:a=!1,InfiniteLoaderProps:s=!1}=e,e=XRe(e,["testId","items","itemSize","children","divider","memoized","InfiniteLoaderProps"]);let l=t||"virtual-list",c=Le.exports.useRef(null),[d,u]=Le.exports.useState(0),p=e=>s&&(!s.hasMore||e<i.length);t=null!=(t=null==e?void 0:e.AutoSizerProps)?t:{};let g=null!=(e=null==e?void 0:e.ListProps)?e:{},f="object"==typeof n?n:{},h="boolean"!=typeof n||n,m=Ide(u,500),C=({index:e,data:t,style:n})=>nt.exports.jsxs("div",Object.assign({"data-test":l+"-row-"+(e+1),"data-testid":l+"-row-"+(e+1),style:Object.assign({},n)},{children:[s&&!p(e)?nt.exports.jsx(mm,{color:"inherit",size:20}):r({index:e,item:t[e],isLast:e===t.length-1}),h&&e!==t.length-1&&nt.exports.jsx(se,Object.assign({},f))]}));return nt.exports.jsx(jwe,Object.assign({"data-test":l,"data-testid":l},t,{onScroll:()=>{var e;return c&&(null==(e=c.current)?void 0:e._listRef.scrollToItem(d,"start"))}},{children:({width:n,height:r})=>{var e;return s?nt.exports.jsx(Qwe,Object.assign({},s,{ref:c,isItemLoaded:p,itemCount:s.hasMore?i.length+1:i.length,threshold:null!=(e=null==s?void 0:s.threshold)?e:15,loadMoreItems:()=>{s.hasMore&&!s.loading&&s.loadMoreItems()}},{children:({onItemsRendered:t,ref:e})=>nt.exports.jsx(_we,Object.assign({},g,{ref:e,height:r,width:n,itemData:i,itemSize:o,itemCount:i.length,initialScrollOffset:0,onItemsRendered:e=>{t(e),e=e.visibleStartIndex,s&&!s.loading&&m(e)}},{children:a?Le.exports.memo(C,Gwe):C}))})):nt.exports.jsx(()=>nt.exports.jsx(_we,Object.assign({},g,{height:r,width:n,itemData:i,itemSize:o,itemCount:i.length},{children:a?Le.exports.memo(C,Gwe):C})),{})}}))}(s2e=g_e=g_e||{}).Left="left",s2e.Right="right";let J_e=({id:e,value:t,displayValue:n,description:r="Copy text",sx:i={},variant:o="body2",iconSx:a={},iconPosition:s=g_e.Right,TypographyProps:l={}})=>{var c=T5();let[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1);c=Object.assign({marginLeft:s===g_e.Right?"5px":0,marginRight:s===g_e.Left?"5px":0,fontSize:"18px!important",verticalAlign:"middle","&:active":{color:c.palette.action.active},"&:hover":{color:c.palette.action.active,cursor:"pointer"}},a),a=nt.exports.jsx(he,Object.assign({title:t},{children:nt.exports.jsx(pe,Object.assign({},l,{"data-test":e+".text",noWrap:!0,variant:o,sx:i},{children:n||t}))}));return nt.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",overflow:"hidden"}},{children:[s===g_e.Right&&a,t&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"copy-text-tooltip",defaultMessage:"{description}",description:"Tooltip message for copy text button",values:{description:d?"Copied":r}}),disableInteractive:!0},{children:nt.exports.jsxs("div",Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{u(!0)}).catch(e=>{g(!0),h_e("Error writing text to clipboard: "+JSON.stringify(e))}).finally(()=>{p?setTimeout(()=>g(!1),500):setTimeout(()=>u(!1),500)})}},{children:[!d&&nt.exports.jsx(qde,{sx:c}),d&&nt.exports.jsx(Vde,{sx:c})]}))})),s===g_e.Left&&a]}))};function K_e({field:t,FormControlProps:e={},isFormValid:n,onChange:r,label:i=!1,disabled:o=!1}){let a,s=null,l=!!Y_e(t),c=e=>{"Boolean"===t.configType?r({name:t.configKey,value:String(e.target.checked)}):r({name:t.configKey,value:e.target.value})},d={id:`app-configuration-input-${t.configType}-`+t.applicationId,"data-test":"app-configuration-input","data-test-id":`app-configuration-input-${t.configType}-`+t.applicationId,required:(null==t?void 0:t.required)||!1,onChange:c,disabled:o};var o=(null==t?void 0:t.value)||(null==t?void 0:t.defaultValue);s="Boolean"===t.configType?("enabled"===o?d.checked=!0:"disabled"===o?d.checked=!1:"boolean"==typeof o?d.checked=t.value:"string"==typeof o&&(d.checked="true"===(null==(a=null==t?void 0:t.value)?void 0:a.toLowerCase())),nt.exports.jsx(SA,Object.assign({},d))):(d.type="text",d.value=o||"",d.variant="outlined",d.error=l,d.placeholder=E5e(""+(null==t?void 0:t.configKey)||""),i&&(d.label=E5e(""+(null==t?void 0:t.configKey)||"")),"Date"===t.configType&&(d.type="date",d.value=(null==o?void 0:o.substring(0,10))||""),"JSON"===t.configType?nt.exports.jsx(Z_e,{height:"200px",jsonData:d.value,onChange:e=>{c({target:{value:e}})}}):nt.exports.jsx(gw,Object.assign({size:"small",fullWidth:!0},d))),Le.exports.useEffect(()=>{n(l)},[l]);return nt.exports.jsxs(pC,Object.assign({},e,{error:l},{children:[(o=i&&(null==d?void 0:d.label),e=""+String(d.label)+(null!=t&&t.required?" (Required)":""),i=d.id,o?nt.exports.jsx(LC,Object.assign({htmlFor:i},{children:e})):null),s,l&&nt.exports.jsx(kC,Object.assign({sx:{ml:0}},{children:Y_e(t)}))]}))}(t2e=f_e=f_e||{}).String="String",t2e.Boolean="Boolean",t2e.Date="Date",t2e.Integer="Integer",t2e.JSON="JSON",t2e.Float="Float";let Y_e=e=>{var{value:e,required:t,configType:n}=e;return t&&U5e(e)?nt.exports.jsx(Ce,{id:"os-admin-center-user-application-settings-empty-error-message",defaultMessage:"Required please enter value",description:"Empty error message"}):n===f_e.Integer&&Number(e)-Math.floor(Number(e))!=0?nt.exports.jsx(Ce,{id:"os-admin-center-user-application-settings-integer-vaue-error-message",defaultMessage:"The value has to to be Integer'",description:"Integer value error message"}):""},Q_e=()=>nt.exports.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"147",height:"159",viewBox:"0 0 147 159",fill:"none"},{children:[nt.exports.jsxs("g",Object.assign({"clip-path":"url(#clip0_64202_17714)"},{children:[nt.exports.jsx("path",{d:"M73 131C107.493 131 135.455 103.018 135.455 68.5C135.455 33.9822 107.493 6 73 6C38.507 6 10.5449 33.9822 10.5449 68.5C10.5449 103.018 38.507 131 73 131Z",fill:"#EAEEF9"}),nt.exports.jsx("g",Object.assign({filter:"url(#filter0_d_64202_17714)"},{children:nt.exports.jsx("path",{d:"M119.659 125.562H27.3544C24.5191 125.562 22.1562 123.276 22.1562 120.36V16.6395C22.1562 13.8022 24.4403 11.5166 27.3544 11.5166H119.659C122.494 11.5166 124.857 13.8022 124.857 16.7183V120.36C124.857 123.197 122.573 125.562 119.659 125.562Z",fill:"url(#paint0_linear_64202_17714)"})})),nt.exports.jsx("path",{d:"M113.909 42.8061H32.4729C31.5278 42.8061 30.7402 42.0179 30.7402 41.0722V25.6245C30.7402 24.6787 31.5278 23.8906 32.4729 23.8906H113.909C114.854 23.8906 115.641 24.6787 115.641 25.6245V40.9933C115.72 42.0179 114.932 42.8061 113.909 42.8061Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 35.7132C40.5524 35.7132 41.6102 34.6546 41.6102 33.3488C41.6102 32.0429 40.5524 30.9844 39.2475 30.9844C37.9426 30.9844 36.8848 32.0429 36.8848 33.3488C36.8848 34.6546 37.9426 35.7132 39.2475 35.7132Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 34.9248H49.5643C49.1705 34.9248 48.8555 34.6095 48.8555 34.2155V32.4027C48.8555 32.0086 49.1705 31.6934 49.5643 31.6934H97.3704C97.7642 31.6934 98.0792 32.0086 98.0792 32.4027V34.2155C98.0792 34.6095 97.7642 34.9248 97.3704 34.9248Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M113.909 67.0808H32.4729C31.5278 67.0808 30.7402 66.2927 30.7402 65.3469V49.978C30.7402 49.0323 31.5278 48.2441 32.4729 48.2441H113.909C114.854 48.2441 115.641 49.0323 115.641 49.978V65.3469C115.72 66.2927 114.932 67.0808 113.909 67.0808Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 59.9877C40.5524 59.9877 41.6102 58.9291 41.6102 57.6233C41.6102 56.3174 40.5524 55.2588 39.2475 55.2588C37.9426 55.2588 36.8848 56.3174 36.8848 57.6233C36.8848 58.9291 37.9426 59.9877 39.2475 59.9877Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 59.2783H49.5643C49.1705 59.2783 48.8555 58.9631 48.8555 58.569V56.7563C48.8555 56.3622 49.1705 56.0469 49.5643 56.0469H97.3704C97.7642 56.0469 98.0792 56.3622 98.0792 56.7563V58.569C98.0792 58.9631 97.7642 59.2783 97.3704 59.2783Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M113.909 115.71H32.4729C31.5278 115.71 30.7402 114.922 30.7402 113.976V98.6069C30.7402 97.6611 31.5278 96.873 32.4729 96.873H113.909C114.854 96.873 115.641 97.6611 115.641 98.6069V113.976C115.72 114.922 114.932 115.71 113.909 115.71Z",fill:"#EAEEF9"}),nt.exports.jsx("path",{d:"M39.2475 108.616C40.5524 108.616 41.6102 107.558 41.6102 106.252C41.6102 104.946 40.5524 103.888 39.2475 103.888C37.9426 103.888 36.8848 104.946 36.8848 106.252C36.8848 107.558 37.9426 108.616 39.2475 108.616Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M97.3704 107.828H49.5643C49.1705 107.828 48.8555 107.513 48.8555 107.119V105.306C48.8555 104.912 49.1705 104.597 49.5643 104.597H97.3704C97.7642 104.597 98.0792 104.912 98.0792 105.306V107.119C98.0792 107.513 97.7642 107.828 97.3704 107.828Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M132.102 90.3562H50.6663C50.2741 90.3562 49.9336 90.0165 49.9336 89.6223V74.2535C49.9336 73.8593 50.2741 73.5195 50.6663 73.5195H132.102C132.494 73.5195 132.835 73.8593 132.835 74.2535V89.6223C132.835 90.0165 132.494 90.3562 132.102 90.3562Z",fill:"#D6DCE8",stroke:"#AAB2C5","stroke-width":"2","stroke-miterlimit":"10"}),nt.exports.jsx("path",{d:"M57.4409 84.3422C58.7458 84.3422 59.8036 83.2836 59.8036 81.9777C59.8036 80.6719 58.7458 79.6133 57.4409 79.6133C56.136 79.6133 55.0781 80.6719 55.0781 81.9777C55.0781 83.2836 56.136 84.3422 57.4409 84.3422Z",fill:"#AAB2C5"}),nt.exports.jsx("path",{d:"M115.564 83.5537H67.7577C67.3639 83.5537 67.0488 83.2384 67.0488 82.8443V81.0316C67.0488 80.6375 67.3639 80.3223 67.7577 80.3223H115.564C115.958 80.3223 116.273 80.6375 116.273 81.0316V82.8443C116.273 83.2384 115.958 83.5537 115.564 83.5537Z",fill:"#AAB2C5"})]})),nt.exports.jsxs("defs",{children:[nt.exports.jsxs("filter",Object.assign({id:"filter0_d_64202_17714",x:"0.15625",y:"0.516602",width:"146.701",height:"158.045",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},{children:[nt.exports.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),nt.exports.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),nt.exports.jsx("feOffset",{dy:"11"}),nt.exports.jsx("feGaussianBlur",{stdDeviation:"11"}),nt.exports.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),nt.exports.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_64202_17714"}),nt.exports.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_64202_17714",result:"shape"})]})),nt.exports.jsxs("linearGradient",Object.assign({id:"paint0_linear_64202_17714",x1:"73.473",y1:"8.8786",x2:"73.473",y2:"126.791",gradientUnits:"userSpaceOnUse"},{children:[nt.exports.jsx("stop",{"stop-color":"#FDFEFF"}),nt.exports.jsx("stop",{offset:"0.9964","stop-color":"#ECF0F5"})]})),nt.exports.jsx("clipPath",Object.assign({id:"clip0_64202_17714"},{children:nt.exports.jsx("rect",{width:"147",height:"159",fill:"white"})}))]})]})),X_e={basic_fields:["text","number","date","select","email"]},$_e={fontSize:"18px"},eqe={text:nt.exports.jsx(Pge,{sx:$_e}),number:nt.exports.jsx(Pge,{sx:$_e}),date:nt.exports.jsx(UQ,{sx:$_e}),email:nt.exports.jsx(B2e,{sx:$_e}),select:nt.exports.jsx(J2e,{sx:$_e}),default:nt.exports.jsx(Pge,{sx:$_e})},tqe=({type:n,index:e})=>nt.exports.jsx(zRe,Object.assign({draggableId:"type-"+n,index:e},{children:(e,t)=>nt.exports.jsx("div",Object.assign({ref:e.innerRef},e.draggableProps,e.dragHandleProps,{children:nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",sx:{p:1,bgcolor:t.isDragging?"#FAFAFA":"white",border:"1px solid #BDBDBD",borderRadius:"4px"}},{children:[nt.exports.jsxs(_,Object.assign({gap:1,direction:"row",alignItems:"center"},{children:[eqe[n]||eqe.default,nt.exports.jsx(pe,Object.assign({textTransform:"capitalize",fontSize:"12px"},{children:n}))]})),nt.exports.jsx(Yde,{sx:$_e})]}))}))})),nqe=({field:t,index:n,onFieldChange:r})=>nt.exports.jsx(gw,{fullWidth:!0,size:"small",label:"Placeholder",value:t.placeholder||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{placeholder:e.target.value}))}}),rqe=({field:t,index:n,onFieldChange:r})=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(gw,{fullWidth:!0,size:"small",type:"number",label:"Minimum Value",value:t.min||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{min:Number(e.target.value)}))}}),nt.exports.jsx(gw,{fullWidth:!0,size:"small",type:"number",label:"Maximum Value",value:t.max||"",onChange:e=>{r(n,Object.assign(Object.assign({},t),{max:Number(e.target.value)}))}})]}),iqe=({field:r,index:i,onFieldChange:o})=>{var e;return nt.exports.jsxs(be,{children:[nt.exports.jsx(gw,{fullWidth:!0,size:"small",label:"Add select options",onKeyDown:e=>{var t;"Enter"===e.key&&(e.preventDefault(),t=e.target.value.trim())&&(o(i,Object.assign(Object.assign({},r),{options:[...r.options||[],t]})),e.target.value="")}}),nt.exports.jsx(be,Object.assign({sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1}},{children:null==(e=r.options)?void 0:e.map((e,n)=>nt.exports.jsx(e8,{label:e,onDelete:()=>{var e;o(i,Object.assign(Object.assign({},r),{options:null==(e=r.options)?void 0:e.filter((e,t)=>t!==n)}))},size:"small"},n))}))]})},oqe=({field:t,index:n,onDelete:r,onFieldChange:i})=>{let[o,a]=Le.exports.useState(!1),s=()=>{var e={text:nt.exports.jsx(nqe,{field:t,index:n,onFieldChange:i}),number:nt.exports.jsx(rqe,{field:t,index:n,onFieldChange:i}),select:nt.exports.jsx(iqe,{field:t,index:n,onFieldChange:i})};return null!=(e=null===e?void 0:e[t.type])?e:null};return nt.exports.jsx(zRe,Object.assign({draggableId:t.id,index:n},{children:e=>nt.exports.jsx("div",Object.assign({ref:e.innerRef},e.draggableProps,e.dragHandleProps,{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[nt.exports.jsxs(_,Object.assign({gap:1,sx:{p:2,position:"relative",width:"100%",bgcolor:"#EAEAEA",border:"1px solid #BDBDBD",borderRadius:"4px",height:"auto",transition:"height 0.3s ease"}},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:1,alignItems:"center"},{children:[eqe[t.type],nt.exports.jsxs(pe,Object.assign({variant:"h5",textTransform:"capitalize"},{children:[t.type," Field"]}))]})),nt.exports.jsx(xC,{sx:{mr:0},labelPlacement:"start",control:nt.exports.jsx(om,{size:"small",checked:t.required,onChange:e=>{e=Object.assign(Object.assign({},t),{required:e.target.checked});null!=i&&i(n,e)}}),label:"Required"})]})),nt.exports.jsx(gw,{fullWidth:!0,label:"Default Title",value:t.label,onChange:e=>{e=Object.assign(Object.assign({},t),{label:e.target.value});null!=i&&i(n,e)},variant:"outlined",sx:{bgcolor:"white"}}),o&&(null===s||(s,0)?void 0:s())&&nt.exports.jsxs(_,Object.assign({gap:4,sx:{mt:2,bgcolor:"white",p:2,borderRadius:"4px",border:"1px solid #BDBDBD"}},{children:[nt.exports.jsx(_,Object.assign({direction:"row",gap:1,alignItems:"center"},{children:nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:"Settings"}))})),s()]}))]})),nt.exports.jsxs(_,Object.assign({gap:2,alignItems:"center"},{children:[nt.exports.jsx(ue,Object.assign({disabled:!(null!==s&&(s,1)&&s()),onClick:()=>a(!o),sx:{bgcolor:o?"primary.main":"transparent",color:o?"white":"inherit","&:hover":{bgcolor:o?"primary.dark":"rgba(0, 0, 0, 0.04)",color:o?"white":"inherit"}}},{children:nt.exports.jsx(kue,{sx:$_e})})),nt.exports.jsx(Yde,{sx:Object.assign(Object.assign({},$_e),{transform:"rotate(90deg)"})}),nt.exports.jsx(ue,Object.assign({onClick:()=>r(n)},{children:nt.exports.jsx(Jde,{sx:$_e})}))]}))]}))}))}))},aqe=r=>r.properties?Object.entries(r.properties).map(([e,t])=>{var n;return{id:e,type:t.type,label:t.title,required:(null==(n=r.required)?void 0:n.includes(e))||!1,options:"select"===t.type?t.enum:void 0,min:"number"===t.type?t.min:void 0,max:"number"===t.type?t.max:void 0}}):[],sqe=e=>{let n={};return e.forEach((e,t)=>{n[e.id]={type:e.type,title:e.label,sequence:t+1},"select"===e.type&&e.options?n[e.id].enum=e.options:"number"===e.type&&(e.min||e.max)?(e.min&&(n[e.id].min=e.min),e.max&&(n[e.id].max=e.max)):"text"===e.type&&e.placeholder&&(n[e.id].placeholder=e.placeholder)}),{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:n,required:e.filter(e=>e.required).map(e=>e.id)}},lqe={width:"170px",height:"100%",display:"flex",flexDirection:"column"},cqe={p:3,bgcolor:"#F5F5F5",borderRadius:"4px",height:"100%",display:"flex",flexDirection:"column",overflowY:"auto"},dqe={flex:1,display:"flex",flexDirection:"column",p:2,bgcolor:"#F5F5F5",border:"1px dashed #BDBDBD",borderRadius:"4px"},uqe=()=>nt.exports.jsx(nt.exports.Fragment,{children:Object.entries(X_e).map(([e,n],r)=>nt.exports.jsxs(K6,Object.assign({defaultExpanded:!0,disableGutters:!0,sx:{bgcolor:"transparent",boxShadow:"none",border:"none"}},{children:[nt.exports.jsx(h9,Object.assign({expandIcon:nt.exports.jsx(J2e,{}),sx:{p:0,flexDirection:"row-reverse"}},{children:nt.exports.jsx(pe,Object.assign({textTransform:"capitalize",variant:"h5",fontSize:"14px",ml:1,noWrap:!0},{children:e.replace("_"," ")}))})),nt.exports.jsx($6,Object.assign({sx:{p:0}},{children:nt.exports.jsx(WRe,Object.assign({droppableId:"field-types-"+e,isDropDisabled:!0},{children:e=>nt.exports.jsxs(_,Object.assign({ref:e.innerRef},e.droppableProps,{gap:1},{children:[n.map((e,t)=>nt.exports.jsx(tqe,{type:e,index:r*n.length+t},e)),e.placeholder]}))}))}))]}),e))}),pqe=e=>{var t,{initialSchema:i,onSchemaChange:o,EmptyState:n}=e,e=XRe(e,["initialSchema","onSchemaChange","EmptyState"]),r=lW(),e=null!=(e=null==e?void 0:e.testId)?e:"form-builder";let[a,s]=Le.exports.useState(i?aqe(i):[]),l=r.formatMessage({id:"{testId}.empty-state-title",defaultMessage:[{type:1,value:"title"}]},{title:null!=(t=null==n?void 0:n.title)?t:"Let's get started!",testId:e}),c=r.formatMessage({id:"{testId}.empty-state-desc",defaultMessage:[{type:1,value:"desc"}]},{desc:null!=(t=null==n?void 0:n.description)?t:"Drag in Building Blocks from the left to craft your form.",testId:e});let d=(e,t)=>{var n=[...a];n[e]=t,s(n),o(rTe(null!=i?i:{},sqe(n)))},u=e=>{var t=[...a];t.splice(e,1),s(t),o(rTe(null!=i?i:{},sqe(t)))};return nt.exports.jsx($De,Object.assign({onDragEnd:e=>{var t,n,r;e.destination&&({source:e,destination:t}=e,"form-fields"===e.droppableId&&"form-fields"===t.droppableId?([r]=(n=Array.from(a)).splice(e.index,1),n.splice(t.index,0,r),s(n),o(rTe(null!=i?i:{},sqe(n)))):e.droppableId.startsWith("field-types-")&&"form-fields"===t.droppableId&&(r=e.droppableId.replace("field-types-",""),n=X_e[r][e.index],r={id:"field-"+Date.now(),type:n,label:""+n.charAt(0).toUpperCase()+n.slice(1)+" Field",required:!1},(e=[...a]).splice(t.index,0,r),s(e),o(rTe(null!=i?i:{},sqe(e)))))}},{children:nt.exports.jsxs(_,Object.assign({gap:2,direction:"row",sx:{height:"100%",minHeight:"600px",flex:1,display:"flex"}},{children:[nt.exports.jsx(_,Object.assign({sx:Object.assign({},lqe)},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},cqe)},{children:nt.exports.jsx(uqe,{})}))})),nt.exports.jsx(_,Object.assign({sx:{flex:1,height:"100%"}},{children:nt.exports.jsx(be,Object.assign({sx:Object.assign({},dqe)},{children:nt.exports.jsx(WRe,Object.assign({droppableId:"form-fields"},{children:(e,t)=>nt.exports.jsxs(_,Object.assign({ref:e.innerRef},e.droppableProps,{gap:2,style:{overflowY:"auto",backgroundColor:t.isDraggingOver?"#e0e0e0":"#f5f5f5",padding:"8px",borderRadius:"4px",minHeight:"100%"}},{children:[a.map((e,t)=>nt.exports.jsx(oqe,{field:e,index:t,onDelete:u,onFieldChange:d},e.id)),e.placeholder,0===a.length&&!t.isDraggingOver&&nt.exports.jsx(Yze,{title:l,description:c,image:nt.exports.jsx(Q_e,{}),ContainerProps:{sx:{textAlign:"center"}}})]}))}))}))}))]}))}))},gqe=(e,t)=>{var n={required:!!(null!=(t=null==(t=null==t?void 0:t.required)?void 0:t.includes(e.fieldKey))&&t)&&e.title+" is required"};switch(e.type){case"email":n.pattern={value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"};break;case"number":n.valueAsNumber=!0,void 0!==e.min&&(n.min={value:e.min,message:"Minimum value is "+e.min}),void 0!==e.max&&(n.max={value:e.max,message:"Maximum value is "+e.max})}return n},fqe=e=>{var{name:e,field:t,schema:n,errors:r}=e;return{fullWidth:!0,label:t.title,error:!!r[e],helperText:null==(r=r[e])?void 0:r.message,required:null!=(r=null==(e=null==n?void 0:n.required)?void 0:e.includes(t.fieldKey))&&r,placeholder:t.placeholder}},hqe=e=>{let{name:t,field:n,control:r}=e,i=fqe(e);return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsx(gw,Object.assign({},i,{type:n.type,value:null!=t?t:"",onChange:e}))})},mqe=e=>{var{name:t,field:n,control:r}=e;let i=fqe(e),o=n;return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsxs(gw,Object.assign({},i,{select:!0,value:null!=t?t:"",onChange:e},{children:[nt.exports.jsx(fe,Object.assign({value:""},{children:nt.exports.jsx("em",{children:"None"})})),o.enum.map(e=>nt.exports.jsx(fe,Object.assign({value:e},{children:e}),e))]}))})},Cqe=e=>{var{name:t,field:n,control:r}=e;let i=fqe(e);return nt.exports.jsx(JCe,{name:t,control:r,rules:gqe(n,e.schema),render:({field:{onChange:e,value:t}})=>nt.exports.jsx(gw,Object.assign({},i,{type:"date",value:null!=t?t:"",onChange:e,InputLabelProps:{shrink:!0}}))})},xqe=({isSubmitting:e,loading:t,isDirty:n,isValid:r,submitText:i})=>nt.exports.jsx(ije,Object.assign({type:"submit",variant:"contained",color:"primary",fullWidth:!0,size:"large",loading:e||t,disabled:!n||!r},{children:i})),vqe=(e,t)=>{let n=[],r=[],i=!0;return e.forEach(e=>{n.push(e);e=i?t:1;n.length===e&&(r.push([...n]),n=[],i=!i)}),0<n.length&&r.push(n),r},bqe=({formOptions:e={},defaultValues:t}={})=>{let n=qxe(Object.assign(Object.assign({mode:"onChange"},e),t&&{defaultValues:t}));return Object.assign(Object.assign({},n),{handleSubmit:t=>n.handleSubmit(e=>{t(e)})})},yqe=({schema:i,fieldsPerRow:o=2,onSubmit:e,loading:t=!1,submitText:n="Submit",renderSubmitButton:r,defaultValues:a,formOptions:s})=>{let{control:l,handleSubmit:c,formState:{errors:d,isSubmitting:u,isDirty:p,isValid:g}}=bqe({formOptions:s,defaultValues:a}),f=Le.exports.useMemo(()=>{var e;return Object.entries(null!=(e=null==i?void 0:i.properties)?e:{}).map(([e,t])=>Object.assign({fieldKey:e},t)).sort((e,t)=>e.sequence-t.sequence)},[null==i?void 0:i.properties]);s=Le.exports.useMemo(()=>vqe(f,o),[f,o]);return nt.exports.jsxs(be,Object.assign({component:"form",onSubmit:c(e),noValidate:!0},{children:[s.map((r,e)=>nt.exports.jsx(W,Object.assign({container:!0,spacing:2,sx:{mb:3}},{children:r.map(e=>{return nt.exports.jsx(W,Object.assign({item:!0,xs:12,sm:1===r.length?12:12/o},{children:(n={name:YRe((t=e).title),field:t,schema:i,control:l,errors:d},(t={text:hqe,email:hqe,number:hqe,select:mqe,date:Cqe}[t.type])?nt.exports.jsx(t,Object.assign({},n)):null)}),e.fieldKey);var t,n})}),e)),r?r({isSubmitting:u,isDirty:p,isValid:g}):nt.exports.jsx(xqe,{isSubmitting:u,loading:t,isDirty:p,isValid:g,submitText:n})]}))};f2e={jsx:r4e},v2e={api:m4e,jsx:o4e};let Aqe={api:eFe,jsx:d4e,helpers:c4e},Iqe={jsx:p4e},wqe={jsx:MQ},jqe={jsx:(e,t,n,r,i)=>{let o=tFe().classes;return nt.exports.jsxs(pC,Object.assign({"data-test":""+t,size:"small",className:o.formControl},{children:[nt.exports.jsx("label",Object.assign({className:o.label},{children:n})),nt.exports.jsx(Gb,Object.assign({variant:"outlined",className:o.selectField,disabled:r.length<=1,value:e,"data-test":"select.dropdown-filter-"+t,onChange:e=>i(e.target.value,t),MenuProps:{classes:{paper:o.menuPaper}}},{children:r.map((e,t)=>nt.exports.jsx(fe,Object.assign({value:e,className:o.selectField,"data-test":"menu-item.dropdown-filter-"+e},{children:e}),t))}))]}),t)}};x2e={jsx:TQ},C2e={header:({title:e,description:t,height:n=64,PanelActions:r,testId:i,onPanelClose:o,disableBorder:a,onSetFullScreen:s,PanelCloseIconType:l="close"})=>{var c=!!s,d={close:nt.exports.jsx(m2e,{}),hide:nt.exports.jsx(Spe,{})};return nt.exports.jsxs(be,Object.assign({sx:{alignItems:"center",borderBottom:a?void 0:e=>"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:n,padding:e=>e.spacing(2,2,2,6),flexShrink:0}},{children:[nt.exports.jsxs(_,Object.assign({direction:"column",spacing:0},{children:[nt.exports.jsx(pe,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e=>e.palette.text.secondary},variant:"h1","data-testid":"panel-header-"+i},{children:e})),t&&nt.exports.jsx(pe,Object.assign({sx:{userSelect:"none",fontStyle:"normal",fontSize:"14px",lineHeight:e=>e.spacing(5),letterSpacing:"0.25px",color:e=>e.palette.text.secondary},variant:"h2"},{children:t}))]})),nt.exports.jsxs(_,Object.assign({sx:r?{gap:0}:{},direction:"row",alignItems:"center"},{children:[r,c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(XUe,{onClick:()=>s&&s(!0),testId:i}),nt.exports.jsx($Ue,{onClick:()=>s&&s(!1),testId:i})]}),o&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({style:GUe,id:"panel-header-close-"+i},{children:JUe.closePanel()})),nt.exports.jsx(he,Object.assign({title:JUe.closePanel()},{children:nt.exports.jsx(ue,Object.assign({onClick:o,"aria-labelledby":"panel-header-close-"+i,"data-testid":"panel-header-close-"+i,size:"medium"},{children:d[l]}))}))]})]}))]}))},container:t=>{var e=Ae(Cse)||[];let{isRenderedFullScreen:n=!1,withRenderFullScreenControl:r=!1,preventFullScreenRerender:i=!1,fallbackUI:o,onDidCatchError:a}=t,s=n&&r;l=s;var l=r?l?QUe:YUe:{},e=e.find(e=>e.panelId===t.panelId)||{panelConfig:{dimmed:0}},e=0<(null==(e=null===e?void 0:e.panelConfig)?void 0:e.dimmed);return Le.exports.useEffect(()=>{i&&((e,t)=>{e=document.querySelector(`#${e}-root #`+e);if(e){var n=`
1187
1187
  transform: none;
1188
1188
  transition: transform 225ms cubic-bezier(0, 0, 0.2, 1) 0ms;`;try{t?e.setAttribute("style",n+`
1189
1189
  top: 0;
@@ -1916,7 +1916,7 @@ ${D_e}]`)||B_e(e,t,`
1916
1916
  id
1917
1917
  }
1918
1918
  }
1919
- `,operationName:e,token:n,graphQLEndpoint:r}))[t])?void 0:e.id}),nCt=e=>(null==(e=e[Pmt])?void 0:e.appGroups)||[],rCt=e=>(null==(e=e[Pmt])?void 0:e.appGroupsRootFolderId)||"",iCt=e=>null==(e=e[Pmt])?void 0:e.uiStatus,oCt=e=>!!((null==(e=null==(e=e[Pmt])?void 0:e.user)?void 0:e.appGroups)||[]).find(e=>e.isEdited);function*aCt(){var t,n,r,i;try{var o=yield D(PG),a=yield D(cG);let e=yield D(rCt);if(!e){var s=yield L(Jmt,a,o);if(!s||s.length<2||null==(t=s[1])||!t.id)return yield P(qmt()),void h_e("Something went wrong while creating root folder for applications");e=null==(n=s[1])?void 0:n.id}var l=yield L(Kmt,a,o,e),c=(null==(i=null==(r=null==l?void 0:l.childFolders)?void 0:r.records)?void 0:i.map(e=>{var t;return{groupName:e.name,id:e.id,treeObjectId:e.treeObjectId,apps:null==(t=null==e?void 0:e.childApplications)?void 0:t.records.map(e=>e.id),priority:null==e?void 0:e.orderIndex,parentTreeObjectId:null==(t=null==e?void 0:e.parent)?void 0:t.treeObjectId,isNew:!1,expanded:!1,isEdited:!1,isExpanded:!0}}))||[];c.sort((e,t)=>(null==e?void 0:e.priority)-(null==t?void 0:t.priority)),yield P(Wmt(e)),yield P(_mt(c))}catch(e){yield P(qmt()),h_e("Something went wrong while creating root folder for applications: "+JSON.stringify(e))}}function*sCt(i){var t=yield D(AG),t=XW(t);try{let t=yield D(PG),n=yield D(cG);var e=yield D(rCt),o=i.payload,a=(yield D(nCt)).find(e=>!0===e.isNew),s=(null==a?void 0:a.apps)||[];let r=yield L(Ymt,n,t,o,e);r&&0<s.length&&(yield Uu(s.map(e=>L(Qmt,n,t,e,r)))),yield P(zmt())}catch(e){h_e("Something went wrong while creating application group: "+JSON.stringify(e));i={content:TL("production","development")?"Something went wrong while creating your application group":t({id:"user-app-groups.create-app-error-dsa123",defaultMessage:[{type:0,value:"Something went wrong while creating your application group"}]}),severity:R.Error};yield P(F(i))}}function*lCt(t){var n=yield D(AG),n=XW(n);try{var e,r,i=t.payload.destination,o=t.payload.appId;lje(i)&&lje(o)&&(e=yield D(PG),r=yield D(cG),yield L(Qmt,r,e,o,i))}catch(e){h_e("Something went wrong while adding app to application group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while adding application to group":n({id:"user-app-groups.add-app-error-ada534",defaultMessage:[{type:0,value:"Something went wrong while adding application to group"}]}),severity:R.Error};yield P(F(t))}}function*cCt(t){var n=yield D(AG),n=XW(n);try{var e=t.payload.source,r=t.payload.appId,i=yield D(PG),o=yield D(cG);yield L(Xmt,o,i,r,e)}catch(e){h_e("Something went wrong while removing application from group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while removing application from group":n({id:"user-app-groups.remove-app-error-fsa817",defaultMessage:[{type:0,value:"Something went wrong while removing application from group"}]}),severity:R.Error};yield P(F(t))}}function*dCt(n){var t=yield D(AG),t=XW(t);try{let t=n.payload;var e=yield D(PG),r=yield D(cG),i=(yield D(nCt)||[]).find(e=>e.id===t);i&&i.treeObjectId&&(yield L($mt,r,e,i.treeObjectId,i.priority),yield P(zmt()))}catch(e){h_e("Something went wrong while deleting application group: "+JSON.stringify(e));n={content:TL("production","development")?"Something went wrong while deleting application group":t({id:"user-app-groups.delete-app-group-error-kio912",defaultMessage:[{type:0,value:"Something went wrong while deleting application group"}]}),severity:R.Error};yield P(F(n))}}function*uCt(t){var n=yield D(AG),n=XW(n);try{var e=t.payload.groupId,r=t.payload.newGroupName,i=yield D(PG),o=yield D(cG);e&&r&&(yield L(eCt,o,i,e,r))}catch(e){h_e("Something went wrong while editing application group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while editing application group":n({id:"user-app-groups.edit-app-group-error-ias109",defaultMessage:[{type:0,value:"Something went wrong while editing application group"}]}),severity:R.Error};yield P(F(t))}}function*pCt(n){var t=yield D(AG),t=XW(t);try{let t=n.payload.groupId;var e=n.payload.newPriority,r=n.payload.prevPriority,i=yield D(nCt)||[],o=yield D(PG),a=yield D(cG),s=i.find(e=>e.id===t);s&&void 0!==e&&void 0!==r&&(yield L(tCt,a,o,e,r,s))}catch(e){h_e("Something went wrong while updating application group order: "+JSON.stringify(e));n={content:TL("production","development")?"Something went wrong while updating application group order":t({id:"user-app-groups.reoder-app-group-error-uas989",defaultMessage:[{type:0,value:"Something went wrong while updating application group order"}]}),severity:R.Error};yield P(F(n))}}function*gCt(){yield Uu([o(zmt.type,aCt),o(Vmt.type,sCt),o(Lmt.type,lCt),o(Dmt.type,cCt),o(Hmt.type,dCt),o(Bmt.type,uCt),o(Rmt.type,pCt)])}let fCt={title:{my:2},content:{minWidth:360,px:0,pt:3,pb:0},button:{fontSize:"12px"},actions:{px:4,pt:4,pb:2},cancelButton:{color:"black",py:2},deleteButton:{py:2}},hCt={CMS:"data:image/svg+xml,%3csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.89984 17.9131C3.19783 17.9131 1 15.8699 1 13.3593C1 11.0619 2.83988 9.15717 5.22364 8.84904C5.55861 4.46881 9.5023 1 14.2998 1C17.9816 1 21.2874 3.07115 22.6927 6.20387C26.1733 6.20387 29 8.83083 29 12.0585C29 15.2861 27.1057 17.9131 23.6328 17.9131' stroke='%2393930C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.0526 18.1812C20.0526 20.8188 17.7533 22.9652 14.9278 22.9652C13.004 22.9652 11.238 21.946 10.3652 20.3559H12.8316C12.9599 20.3559 13.0645 20.2583 13.0645 20.1385C13.0645 20.0182 12.9599 19.9206 12.8316 19.9206H9.8029C9.67464 19.9206 9.57007 20.0182 9.57007 20.1385V22.9652C9.57007 23.0849 9.67464 23.1826 9.8029 23.1826C9.93181 23.1826 10.0364 23.0849 10.0364 22.9652V20.7089C11.0151 22.3556 12.8915 23.3999 14.9278 23.3999C18.0104 23.3999 20.5183 21.0589 20.5183 18.1812C20.5183 18.0609 20.4143 17.9639 20.2854 17.9639C20.1565 17.9639 20.0526 18.0609 20.0526 18.1812Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.57047 18.3989C9.69873 18.3989 9.8033 18.3019 9.8033 18.1816C9.8033 15.544 12.1026 13.3976 14.9282 13.3976C16.8513 13.3976 18.6186 14.4168 19.49 16.0069H17.0243C16.896 16.0069 16.7914 16.1045 16.7914 16.2243C16.7914 16.3446 16.896 16.4422 17.0243 16.4422H20.053C20.1813 16.4422 20.2852 16.3446 20.2852 16.2243V13.3976C20.2852 13.2779 20.1813 13.1802 20.053 13.1802C19.9234 13.1802 19.8195 13.2779 19.8195 13.3976V15.6539C18.8409 14.0073 16.9638 12.9629 14.9282 12.9629C11.8455 12.9629 9.33765 15.3039 9.33765 18.1816C9.33765 18.3019 9.44156 18.3989 9.57047 18.3989Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3c/svg%3e",Discovery:"data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.6629 11.3035C25.5391 10.8067 25.2913 10.4348 25.1674 10.0614C25.4167 9.68808 26.6554 8.1976 26.9047 7.82574C27.0286 7.70229 27.1539 7.45237 27.1539 7.0805C27.1539 6.58368 26.9047 5.96189 23.6825 2.98095C23.187 2.60758 22.4422 2.60758 22.0706 2.98095L19.7155 4.72134C19.3439 4.59789 18.9707 4.34797 18.5991 4.22451L18.1036 1.11861C17.9798 0.496825 17.4828 0 16.8634 0H12.771C12.1502 0 11.6547 0.373371 11.5308 0.995155C11.2815 2.11376 11.1592 3.23087 11.0353 4.22602C10.6637 4.34947 10.2905 4.59939 9.91893 4.72284L7.68619 2.859C7.43693 2.73555 7.19069 2.61059 6.81908 2.61059C5.7027 2.61059 2.8506 6.21332 2.8506 6.21332C2.60134 6.46173 2.47898 6.71014 2.47898 6.95855C2.47898 7.33193 2.60285 7.58034 2.8506 7.82724C3.34609 8.44903 3.96697 9.19426 4.58784 10.063C4.33859 10.4363 4.21623 10.8082 4.09235 11.1816L0.992497 11.6784C0.37162 11.8018 0 12.3002 0 12.9204V17.02C0 17.6418 0.495493 18.1386 0.992497 18.2621L4.09235 18.7589C4.21623 19.1323 4.46397 19.5041 4.58784 20.0009C4.33859 20.3743 3.09985 21.8648 2.8506 22.2367C2.72672 22.3601 2.60134 22.61 2.60134 22.9819C2.60134 23.4787 2.8506 24.1005 5.82507 26.958L5.94894 27.0815C6.44443 27.4548 7.31306 27.4548 7.5608 27.0815L9.42041 25.591V24.1005L6.93993 26.2128H6.81605L6.69218 26.0893C4.21169 23.7301 3.84007 23.1084 3.84007 22.9834C4.08933 22.61 5.45194 20.9961 5.82356 20.3743C5.94743 20.2509 5.94743 20.0009 5.82356 19.7525C5.45194 19.1308 5.20268 18.5105 5.07881 18.0121C4.95493 17.7637 4.82955 17.6388 4.58331 17.6388L1.23571 17.142V12.9189L4.70719 12.4221C4.95644 12.4221 5.07881 12.1737 5.20268 12.0487C5.45194 11.5519 5.5743 11.0536 5.82356 10.4348C5.94743 10.1864 5.94743 9.938 5.82356 9.81304C5.07881 8.69443 4.33557 7.82574 3.71469 7.0805V6.83209C4.33557 6.21031 6.44292 3.9746 6.81454 3.85114H6.93842L9.54278 5.83844C9.66665 5.96189 9.9144 5.96189 10.1637 5.83844C10.6591 5.71499 11.1562 5.46507 11.7755 5.21666C12.0248 5.0932 12.1471 4.96825 12.1471 4.59487C12.1471 4.59487 12.3964 2.35916 12.6426 1.36401C12.6426 1.36401 12.6426 1.24056 12.7665 1.24056H16.9827L17.4782 4.71833C17.4782 4.96674 17.7275 5.0917 17.8498 5.21515C18.3453 5.33861 18.8423 5.58852 19.4617 5.83694C19.711 5.96039 19.9572 5.96039 20.0826 5.83694L22.9347 3.84964C22.9347 3.84964 26.0345 6.95554 26.0345 7.0805C25.7853 7.45387 25.5391 7.82574 25.1674 8.19911C24.7958 8.69593 24.4227 9.19427 24.0511 9.68958C23.9272 9.81304 23.9272 10.063 24.0511 10.3114C24.3003 10.8082 24.5466 11.43 24.7958 12.0518C24.9197 12.3002 25.0451 12.4251 25.2913 12.4251L28.7628 13.0469V17.2699L25.2913 17.7667C25.042 17.7667 24.9197 18.0152 24.7958 18.1401C24.6719 18.6369 24.4242 19.1353 24.1749 19.754C24.0511 20.0025 24.0511 20.2509 24.1749 20.3758C24.7958 21.371 25.5391 22.2397 26.1584 22.9849V23.2333C25.6629 23.9786 23.5541 26.2143 23.0586 26.3392H22.9347L20.4542 24.3519V25.8424L22.3138 27.3329C22.5631 27.4563 22.8093 27.5813 23.0586 27.5813C24.1749 27.5813 27.027 24.1035 27.027 24.1035C27.2763 23.8551 27.3987 23.6067 27.3987 23.2348C27.3987 22.863 27.2748 22.613 27.1494 22.3661C26.5285 21.6209 25.9092 20.9991 25.4122 20.1304C25.6614 19.7571 25.7838 19.3852 25.9077 19.0118L29.0075 18.515C29.6284 18.3915 30 17.7698 30 17.2729V13.1734C29.7507 12.4281 29.3791 11.9313 28.7598 11.8064L25.6599 11.305L25.6629 11.3035Z' fill='%233F479E'/%3e%3cpath d='M12.1879 20.4815C10.2948 18.5845 9.39819 16.8973 9.39819 14.9617C9.39819 12.0535 11.8214 9.75037 14.8651 9.75037H14.9995C18.0424 9.75037 20.4665 12.0544 20.4665 14.9617L20.4662 15.0984C20.4174 16.9066 19.4092 18.7476 17.6784 20.4815L17.5076 20.6526V21.8816C17.5076 22.2047 17.2442 22.4667 16.9192 22.4667H12.9471C12.6221 22.4667 12.3587 22.2047 12.3587 21.8816V20.6526L12.1879 20.4815ZM16.3307 20.4116C16.3307 20.2572 16.3921 20.1091 16.5015 19.9995L16.843 19.6573C18.382 18.1155 19.2502 16.5302 19.2896 15.0827V14.9617C19.2896 12.7127 17.404 10.9204 14.9995 10.9204H14.8651C12.4599 10.9204 10.5751 12.7118 10.5751 14.9617C10.5751 16.5408 11.3291 17.9597 13.0234 19.6574L13.3648 19.9996C13.4742 20.1092 13.5356 20.2573 13.5356 20.4116V21.2966H16.3307V20.4116Z' fill='%233F479E'/%3e%3cpath d='M17.6214 24.1705H12.5215V25.4469H17.6214V24.1705Z' fill='%233F479E'/%3e%3cpath d='M16.3464 26.7236H13.7965V28H16.3464V26.7236Z' fill='%233F479E'/%3e%3c/svg%3e",Collection:"data:image/svg+xml,%3csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M28.5 7.5V28.5H7.5V7.5H28.5ZM28.5 4.5H7.5C5.85 4.5 4.5 5.85 4.5 7.5V28.5C4.5 30.15 5.85 31.5 7.5 31.5H28.5C30.15 31.5 31.5 30.15 31.5 28.5V7.5C31.5 5.85 30.15 4.5 28.5 4.5Z' fill='%23555F7C'/%3e%3cpath d='M21 25.5H10.5V22.5H21V25.5ZM25.5 19.5H10.5V16.5H25.5V19.5ZM25.5 13.5H10.5V10.5H25.5V13.5Z' fill='%23555F7C'/%3e%3c/svg%3e",Library:"data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.48781 1.18445L7.56868 26.9511L1.08087 27.045L1 1.27836L7.48781 1.18445Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M16.8352 1.19299H10.2701V27.0367H16.8352V1.19299Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M25.5244 1L29.0001 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M20.8901 1L24.3658 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.51196 4.66443H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 4.66443H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M3.51196 6.97864H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 6.97864H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3c/svg%3e",Admin:tX,Developer:$se};function mCt({id:t,icon:e,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1,isAppGroup:s,appGroupId:l}){a=Mmt({appListV2:a,type:n}).classes;let[c,d]=Le.exports.useState(e||r||i&&hCt[i]||$se),[u,p]=Le.exports.useState(!1);let[g,f]=Le.exports.useState(null);e=Boolean(g);let h=Ie();let m=e=>{e.stopPropagation(),f(null),p(!1)};return nt.exports.jsx(he,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:nt.exports.jsxs("div",Object.assign({onClick:function(){o&&o(t)},className:Zhe({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon",onContextMenu:s?e=>{e.preventDefault(),f(e.currentTarget)}:void 0},{children:[nt.exports.jsx("div",Object.assign({className:a.image},{children:nt.exports.jsx("img",{alt:"app-icon",onError:function(){d($se)},src:c,draggable:"false",className:a.img})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i})),nt.exports.jsxs(Pv,Object.assign({id:"basic-menu",anchorEl:g,open:e,onClose:m,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(60px, -60px)"}},{children:[nt.exports.jsx(fe,Object.assign({sx:{display:"none"},onClick:e=>{e.stopPropagation(),yse({panelId:"APPLICATION_DETAILS_PANEL",microFrontend:{name:"APPLICATION_DETAILS_PANEL",config:{applicationId:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge"}}),m(e)},"data-testid":`os-app-bar-panel.app-switcher.options-app-detail.${l}.`+t},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.application-details",defaultMessage:"Application Details",description:"Dropdown menu item that opens application details panel"})})),nt.exports.jsx(fe,Object.assign({onClick:e=>{e.stopPropagation(),f(null),p(!0)},"data-testid":`os-app-bar-panel.app-switcher.options-remove-app.${l}.`+t},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.remove-from-group",defaultMessage:"Remove from Group",description:"Dropdown menu item that removes application from group"})}))]})),nt.exports.jsx(Lm,Object.assign({open:u,maxWidth:"xs",onClose:m,"data-testid":"os-app-bar-panel.delete-app-from-group.confirmation-dialog"},{children:nt.exports.jsxs(Qm,{children:[nt.exports.jsx("div",Object.assign({className:a.dialogTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirmation-title",defaultMessage:"Delete Application",description:"Delete App from Group confirmation title"})})),nt.exports.jsxs(qm,Object.assign({sx:fCt.content},{children:[nt.exports.jsx(Jm,{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirmation-message",defaultMessage:"Are you sure you want to delete this application from the group?",description:"Delete Ap from Group confirmation message"})}),nt.exports.jsxs(Vm,Object.assign({sx:fCt.actions},{children:[nt.exports.jsx(ge,Object.assign({sx:fCt.cancelButton,onClick:m,"data-testid":"app-switcher.delete-app.cancel-btn"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.cancel-button",defaultMessage:"Cancel",description:"Delete App from Group cancel button"})})),nt.exports.jsx(ge,Object.assign({color:"primary",variant:"contained",sx:fCt.deleteButton,onClick:e=>{e.stopPropagation(),h(Dmt({source:l,appId:t.toString()})),m(e)},"data-testid":"app-switcher.delete-app.confirm-btn"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirm-button",defaultMessage:"Yes, Delete",description:"Delete App from Group confirmation button"})}))]}))]}))]})}))]}))}))}let CCt=je()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},header:{height:"60px",position:"sticky"},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}}},searchField:{borderRadius:"1em",height:"30px"},searchOutline:{borderColor:"#D5DFE9"},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"},airborne:{position:"absolute",background:"rgba(26, 140, 255, 0.9)",transform:"rotate(3.02deg)",color:"white","& *":{fontWeight:"900 !important"},"& img":{background:"white",borderRadius:"50%"}},applicationList:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 60px - 5px)",overflowY:"scroll"}})),xCt={buttonLink:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),activityTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.profile-activity",defaultMessage:"Activity",description:"Profile Activity"}),accountLinkingLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of your account.",description:"account settings sub header"})};var vCt=sW(function({intl:e,selectedAppId:t,onSelectApplication:n,applications:r=[],showAppGroups:i=!1}){let[o,a]=Le.exports.useState(t),[s,l]=Le.exports.useState({}),[c,d]=Le.exports.useState(""),[u,p]=Le.exports.useState("asc");var g=0!==r.length;function f(e){a(e),n(e)}function h(e,t){return e.name.toLowerCase()>t.name.toLowerCase()?1:e.name.toLowerCase()<t.name.toLowerCase()?-1:0}Le.exports.useEffect(()=>{if(0<r.length){var e,t={};for(e of[...r].sort(h)){var n=e.name.charAt(0).toUpperCase();t[n]=t[n]?[...t[n],e]:[e]}l(t)}},[r]),Le.exports.useEffect(()=>{t!==o&&a(t)},[t,o]),e=e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]});let[m,C]=Le.exports.useState(null);var x=Boolean(m);let v=e=>{(e=>{if(e!==u){p(e);e=Object.keys(s).reverse();let t={};e.forEach(e=>t[e]=s[e].reverse()),l(t)}})(e),C(null)},b=CCt({sortOrder:u,hasApps:g,menuIsOpen:x}).classes,y=(g=nt.exports.jsxs(Pv,Object.assign({id:"app-switcher.sort-menu",anchorEl:m,open:x,onClose:v},{children:[nt.exports.jsx(fe,Object.assign({onClick:()=>v("asc"),className:b.sortMenu},{children:"A - Z"})),nt.exports.jsx(fe,Object.assign({onClick:()=>v("desc"),className:b.sortMenu},{children:"Z - A"}))]})),(e,t,n)=>nt.exports.jsx(mCt,{type:"list",selected:e===o,onClick:f,iconUrl:t,id:e,appName:n,appListV2:!0}));return nt.exports.jsxs("div",Object.assign({className:b.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[nt.exports.jsx("div",Object.assign({className:b.header},{children:nt.exports.jsxs(W,Object.assign({container:!0,spacing:2},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:5},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:b.title},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:5,className:b.searchBox},{children:nt.exports.jsx(gw,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{d(e.target.value)},placeholder:e,InputProps:{classes:{root:b.searchField,input:b.searchInput,notchedOutline:b.searchOutline},startAdornment:nt.exports.jsx(dx,Object.assign({position:"start"},{children:nt.exports.jsx(ue,{children:nt.exports.jsx(IXe,{})})}))}})})),nt.exports.jsxs(W,Object.assign({item:!0,xs:2,className:b.filterIcon},{children:[nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:nt.exports.jsx("div",Object.assign({className:b.filterIconWrapper,onClick:e=>{r.length&&C(e.currentTarget)}},{children:nt.exports.jsx("div",Object.assign({className:b.filterIcon},{children:nt.exports.jsx(A3e,{"data-testid":"os-app-bar-panel.app-switcher.sort"})}))}))})),g]}))]}))})),nt.exports.jsx("div",Object.assign({className:b.applicationList},{children:0===r.length?nt.exports.jsx("div",{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):nt.exports.jsx(WRe,Object.assign({droppableId:"app-list"},{children:e=>nt.exports.jsx("div",Object.assign({className:b.groupContainer},e.droppableProps,{ref:e.innerRef},{children:0<Object.keys(s).length&&Object.entries(s).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).length?nt.exports.jsxs("div",{children:[nt.exports.jsx("div",Object.assign({className:b.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:nt.exports.jsx(pe,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).map((e,t)=>{let{id:l=t,iconUrl:c,name:d}=e;return nt.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[i?nt.exports.jsx(zRe,Object.assign({draggableId:l.toString(),index:t},{children:(a,s)=>nt.exports.jsx(R2t,Object.assign({style:a.draggableProps.style,snapshot:s},{children:e=>{return t=a,n=s,e=e,r=l,i=c,o=d,nt.exports.jsx("div",Object.assign({},t.draggableProps,t.dragHandleProps,{ref:t.innerRef,className:n.isDragging?b.airborne:"",style:e},{children:y(r,i,o)}));var t,n,r,i,o}}))}),t):y(l,c,d),nt.exports.jsx(se,{})]}),l)})]},e):null)}))}))}))]}))});let bCt=je()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",backgroundColor:"white"}})),yCt=je()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7","&::-webkit-scrollbar":{display:"none"}},appTile:{overflow:"hidden"},title:{fontWeight:700,padding:"15px 15px 0 15px"},groupTitle:{fontWeight:700,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"},marginBottom:"20px"},appGroup:{borderTop:"1px solid #D5DFE9"},currentLanding:{position:"relative",minHeight:"155px !important"},idleLanding:{minHeight:"10px"},runway:{minHeight:"110px",position:"absolute",background:"rgba(255, 255, 255, 0.8)",width:"94%",height:"100%",border:"1px dashed #CAD7E3",borderRadius:"4px",display:"flex",textAlign:"center",flexDirection:"column",justifyContent:"center"},landingText:{fontSize:"16px !important",fontWeight:"600 !important",color:"rgba(124, 132, 141, 1)"},airborneGroup:{height:"50px !important",background:"rgba(26, 140, 255, 0.9)",color:"white","& div":{display:"none"}},groupHandler:{display:"flex",justifyContent:"space-between","&:hover":{background:"rgba(242, 242, 242, 0.5)"}}})),ACt=je()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px","& svg":{height:"18px",cursor:"pointer"}},confirm:{height:"20px",cursor:"pointer"},newGroupApps:{marginBottom:"20px",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",height:"101px",background:"#FAFAFA",borderRadius:"4px"},landingText:{color:"rgba(156, 168, 180, 1)"},relativeContainer:{position:"relative"},fullWidthRunway:{top:0,width:"100%"}})),ICt=({apps:n,classes:r})=>{var e=Ae(AG),e=XW(e);let i=ACt().classes,t=Ie(),[o,a]=Le.exports.useState("");let s=TL("production","development")?"Please provide a name for your new App group":e({id:"os-app-bar-panel.new-app-group.missing-name",defaultMessage:[{type:0,value:"Please provide a name for your new App group"}]});return nt.exports.jsxs("div",Object.assign({className:i.root},{children:[nt.exports.jsx(gw,{value:o,onChange:e=>{a(e.target.value)},"data-testid":"os-app-bar.new-app-group.name-input-container",className:i.groupNameInput,InputProps:{endAdornment:nt.exports.jsxs(dx,Object.assign({position:"end"},{children:[nt.exports.jsx("div",Object.assign({className:i.confirm,onClick:()=>{var e;o?t(Vmt(o)):(e={content:s,severity:R.Error},t(F(e)))},"data-testid":"os-app-bar.new-app-group.save-btn"},{children:nt.exports.jsx(u2e,{})})),nt.exports.jsx("div",Object.assign({className:i.notInterested,onClick:()=>{t(Fmt())},"data-testid":"os-app-bar.new-app-group.cancel-btn"},{children:nt.exports.jsx(u0e,{})}))]}))},inputProps:{"data-testid":"os-app-bar.new-app-group.name-input"}}),nt.exports.jsx(WRe,Object.assign({droppableId:"new-group-placeholder"},{children:(e,t)=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:i.relativeContainer,style:{width:"100%"}},{children:[n.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{position:"relative",marginBottom:"15px"}},{children:n.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{padding:0,overflow:"hidden"},"data-testid":"app-switcher.new-app-group.app-tile"},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:!1,onClick:()=>{},iconUrl:t,id:e,appName:n,appListV2:!0})}),e)})})):nt.exports.jsx("div",Object.assign({className:i.newGroupApps},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:i.landingText},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.new-app-group.apps-landing",defaultMessage:"Drag Applications Here",description:"helper text to tell users where to drag apps for the new app group"})}))})),t.isDraggingOver&&n.length?nt.exports.jsx(TCt,{classes:r,rootClassName:i.fullWidthRunway}):null]}))}))]}))},wCt=({isDragging:e,className:t,groupName:n,dragHandleProps:r})=>e?nt.exports.jsx(pe,Object.assign({variant:"body2",className:t},r,{children:n})):null,jCt=je()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px",cursor:"pointer"},confirm:{cursor:"pointer"},groupHandler:{display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{background:"rgba(242, 242, 242, 0.5)"}},invisibleHandler:{display:"none"},groupTitle:{fontWeight:700,padding:"15px"},handlerMenu:{height:"40px",width:"40px",marginRight:"10px"}})),SCt=({dragHandleProps:e,groupName:t,groupId:n,isExpanded:r=!0})=>{let i=Ae(oCt),o=Ie(),[a,s]=Le.exports.useState(!1),[l,c]=Le.exports.useState(""),[d,u]=Le.exports.useState(null);var p=Boolean(d);let g=()=>{u(null)};var f=jCt().classes;Le.exports.useEffect(()=>{c(t)},[]);let h=()=>{o(Bmt({edit:!0,groupId:n})),s(!0)};return nt.exports.jsx("div",Object.assign({className:a?f.root:f.groupHandler},{children:a?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(gw,{value:l,onChange:e=>{c(e.target.value)},"data-testid":`os-app-bar.app-group.${n}.name-input-container`,className:f.groupNameInput,InputProps:{endAdornment:nt.exports.jsxs(dx,Object.assign({position:"end"},{children:[nt.exports.jsx(u2e,{className:f.confirm,onClick:()=>{g(),o(Bmt({edit:!1,groupId:n,newGroupName:l})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.save-btn`}),nt.exports.jsx(u0e,{className:f.notInterested,onClick:()=>{g(),o(Bmt({edit:!1,groupId:n})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.cancel-btn`})]}))},inputProps:{"data-testid":`os-app-bar.app-group.${n}.name-input`}}),nt.exports.jsx("div",Object.assign({},e))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:f.groupTitle},e,{onClick:e=>{2!==e.detail||i||h()},"data-testid":"os-app-bar-panel.app-switcher.group-name."+n},{children:t})),nt.exports.jsx(ue,Object.assign({onClick:e=>{e.preventDefault(),u(e.currentTarget)},size:"small",className:f.handlerMenu,"data-testid":"os-app-bar-panel.app-switcher.options-btn."+n},{children:nt.exports.jsx(r0e,{fontSize:"small"})})),nt.exports.jsxs(Pv,Object.assign({id:"basic-menu",anchorEl:d,open:p,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(-95px, 0)"}},{children:[nt.exports.jsx(fe,Object.assign({onClick:()=>{g(),setTimeout(()=>{o(Umt(n))},100)},"data-testid":"os-app-bar-panel.app-switcher.options-toggle."+n},{children:r?nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.hide",defaultMessage:"Hide Group",description:"Hide Group dropdown menu item"}):nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.expand",defaultMessage:"Expand",description:"Expand dropdown menu item"})})),nt.exports.jsx(fe,Object.assign({onClick:h,"data-testid":"os-app-bar-panel.app-switcher.options-rename."+n},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.rename",defaultMessage:"Rename",description:"Rename dropdown menu item"})})),nt.exports.jsx(fe,Object.assign({onClick:()=>{o(Hmt(n))},"data-testid":"os-app-bar-panel.app-switcher.options-delete."+n},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.delete",defaultMessage:"Delete",description:"Delete dropdown menu item"})}))]}))]})}))},OCt=({groupApps:e,appGroup:r,classes:i,snapshot:t,handleSelectApplication:o,currentSelected:a})=>nt.exports.jsxs(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"},"data-testid":"app-switcher.app-group."+r.id},{children:[t.isDraggingOver?nt.exports.jsx(TCt,{classes:i}):null,e.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.app-group.app-tile."+e},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:e===a,onClick:o,iconUrl:t,id:e,appName:n,appListV2:!0,isAppGroup:!0,appGroupId:r.id})}),e)})]})),kCt=()=>nt.exports.jsx(Le.exports.Fragment,{children:[1,2].map(e=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ye,{variant:"rectangular",width:345,height:50}),nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"}},{children:[1,2,3].map(e=>nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{padding:0}},{children:nt.exports.jsxs(_,Object.assign({sx:{justifyContent:"center",alignItems:"center",padding:"20px 0px"}},{children:[nt.exports.jsx(ye,{sx:{m:2},variant:"circular",width:40,height:40}),nt.exports.jsx(ye,{variant:"text",sx:{fontSize:"10px"},width:30})]}))}),e))}),e)]}))}),TCt=({classes:e,rootClassName:t})=>nt.exports.jsx("div",Object.assign({className:e.runway+" "+t},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.landingText},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.app-landing",defaultMessage:"Drop Application Here",description:"Helper text to tell users where apps should be dropped"})}))})),ECt=({apps:e=[],allApps:t,onSelectApplication:n,selectedAppId:r,showAppGroups:i})=>{let o=yCt().classes,[a,s]=Le.exports.useState(r),l=Ie();function c(e){s(e),n(e)}let d=Ae(iCt),u=Ae(nCt);return nt.exports.jsxs("div",Object.assign({className:o.root,"data-testid":"app-switcher.recent-apps.container"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:o.title},{children:nt.exports.jsx(Ce,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,className:o.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:t===a,onClick:c,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):nt.exports.jsxs("div",Object.assign({className:o.noApps},{children:[nt.exports.jsx(c0e,{fontSize:"large"}),nt.exports.jsx(pe,Object.assign({variant:"body2",className:o.helperText},{children:nt.exports.jsx(Ce,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]})),i&&(d===vZ.loading?nt.exports.jsx(kCt,{}):d===vZ.failure?nt.exports.jsx(_6e,{onRetry:()=>l(zmt()),errorMessage:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-groups.error-message",defaultMessage:"Something went wrong while loading your application groups.",description:"application groups error state"})}):d===vZ.success&&u.length?nt.exports.jsx(NCt,{apps:e,allApps:t,userAppGroups:u,handleSelectApplication:c,currentSelected:a}):null)]}))},NCt=({userAppGroups:t,allApps:n,apps:o,handleSelectApplication:a,currentSelected:s})=>{let l=yCt().classes;return nt.exports.jsx(WRe,Object.assign({droppableId:"group-list",direction:"vertical",type:"group-list"},{children:e=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{children:[t.map((r,e)=>{let i=[];return r.apps.forEach(t=>{var e=[...n,...o].find(e=>e.id===t);e&&i.push(e)}),r.isNew?nt.exports.jsx(ICt,{apps:i,classes:l},r.id):nt.exports.jsx(zRe,Object.assign({draggableId:r.id,index:e},{children:(n,e)=>nt.exports.jsxs("div",Object.assign({className:e.isDragging?l.airborneGroup:l.appGroup,ref:n.innerRef},n.draggableProps,{children:[nt.exports.jsx(wCt,{isDragging:e.isDragging,className:l.groupTitle,dragHandleProps:n.dragHandleProps,groupName:r.groupName}),nt.exports.jsx(WRe,Object.assign({droppableId:r.id},{children:(e,t)=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:t.isDraggingOver?l.currentLanding:l.idleLanding},{children:[nt.exports.jsx(SCt,{groupName:r.groupName,dragHandleProps:n.dragHandleProps,groupId:r.id,isExpanded:r.isExpanded}),t.isDraggingOver&&!i.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px",minHeight:"110px"}},{children:nt.exports.jsx(TCt,{classes:l})})):null,nt.exports.jsx(B6,Object.assign({in:(r.isExpanded||void 0===r.isExpanded)&&0<i.length,timeout:"auto",unmountOnExit:!0},{children:nt.exports.jsx(OCt,{groupApps:i,classes:l,snapshot:t,handleSelectApplication:a,currentSelected:s,appGroup:r})}))]}))}))]}),r.id)}),r.id)}),e.placeholder]}))}))};function MCt({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i,showAppGroups:o=!1}){var a=bCt().classes,s=Ae(AG);let l=Ae(nCt)||[];s=XW(s);let c=Ie(),[d,u]=Le.exports.useState(0===n.length?0:n.length<4?1:2),[p,g]=(Le.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;u(e)},[n]),Le.exports.useState(e));function f(e){g(e),null!=t&&t(e),null!=i&&i(e)}Le.exports.useEffect(()=>{e!==p&&g(e)},[e,p]);let h=TL("production","development")?"This application has already been added to the group":s({id:"os-app-bar-panel.user-app-groups.duplicate-app-error",defaultMessage:[{type:0,value:"This application has already been added to the group"}]});Le.exports.useEffect(()=>{o&&c(zmt())},[c]);return nt.exports.jsx(wXe,Object.assign({modules:[{id:"user-app-group",reducerMap:{[Pmt]:Zmt},sagas:[gCt],initialActions:[]}]},{children:nt.exports.jsx($De,Object.assign({onDragEnd:r=>{if(o){let{destination:t,draggableId:n,type:e}=r;"group-list"===e?(r=l.find(e=>e.id===n))&&t&&c(Rmt({groupId:n,newPriority:t.index,prevPriority:r.priority})):((null==(r=l.find(e=>e.id===(null==t?void 0:t.droppableId)))?void 0:r.apps)||[]).find(e=>e===n)?(r={content:h,severity:R.Error},c(F(r))):t&&c(Lmt({destination:null==t?void 0:t.droppableId,appId:n}))}}},{children:nt.exports.jsx("div",Object.assign({className:a.fullHeight},{children:nt.exports.jsxs(W,Object.assign({container:!0,className:a.fullHeight},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:nt.exports.jsx(ECt,{apps:n,allApps:r,onSelectApplication:f,selectedAppId:null,showAppGroups:o})})),nt.exports.jsx(W,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:nt.exports.jsx("div",{children:nt.exports.jsx(vCt,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:f,selectedAppId:null,row:d,showAppGroups:o})})}))]}))}))}))}))}let PCt=je()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),LCt=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function DCt(){var e=PCt().classes;let[t,n]=Le.exports.useState("all");return nt.exports.jsxs(be,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[nt.exports.jsxs(be,Object.assign({className:e.overviewHeader},{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),nt.exports.jsx(Khe,{data:LCt,filter:t,onFilter:e=>{n(e.target.value)}})]})),nt.exports.jsx(be,{className:e.overviewContent})]}))}let RCt=je()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function FCt({columns:t=[],data:e=[]}){let r=RCt().classes;return nt.exports.jsx("div",{children:nt.exports.jsxs(RA,Object.assign({className:r.table,"aria-label":"simple table"},{children:[nt.exports.jsx(tI,{children:nt.exports.jsx(LI,{children:t.map((e,t)=>nt.exports.jsx(me,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),nt.exports.jsx(zA,{children:e.map((n,e)=>nt.exports.jsx(LI,{children:t.map((e,t)=>"avatar"===e.value?nt.exports.jsx(me,Object.assign({padding:"checkbox",classes:{root:Zhe(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:nt.exports.jsx(W8,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?nt.exports.jsx(me,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:nt.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):nt.exports.jsx(me,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}let VCt=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),BCt=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],HCt=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function UCt(){var e=PCt().classes;let[t,n]=Le.exports.useState("all");return nt.exports.jsxs(be,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[nt.exports.jsxs(be,Object.assign({className:e.logHeader},{children:[nt.exports.jsx(Khe,{data:HCt,filter:t,onFilter:e=>{n(e.target.value)}}),nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),nt.exports.jsx(be,Object.assign({className:e.logContent},{children:nt.exports.jsx(FCt,{columns:BCt,data:VCt})}))]}))}let zCt=()=>nt.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function _Ct(){return nt.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}let qCt=[{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function WCt(){var e=PCt().classes;let[t,n]=Le.exports.useState(0);return nt.exports.jsxs(be,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[nt.exports.jsx(be,Object.assign({className:e.tabs},{children:nt.exports.jsx(C6e,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:qCt})})),nt.exports.jsxs(be,Object.assign({className:e.tabPanels},{children:[nt.exports.jsx(x6e,Object.assign({value:t,index:0},{children:nt.exports.jsx(DCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:1},{children:nt.exports.jsx(UCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:2},{children:nt.exports.jsx(zCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:3},{children:nt.exports.jsx(_Ct,{})}))]}))]}))}let ZCt=je()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),GCt=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=ZCt().classes;return nt.exports.jsx("div",{children:nt.exports.jsx("div",Object.assign({className:i.root},{children:nt.exports.jsx(u7,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:nt.exports.jsx(ue,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar",sx:{"& svg":{color:"#8b8b8b"},"&:hover svg":{color:"#0C53B0"}}},{children:nt.exports.jsx(Cue,{sx:{fontSize:"16px"}})}))},{children:"loading"===r?nt.exports.jsx(mm,{}):e?nt.exports.jsx(W8,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):nt.exports.jsx(W8,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},JCt=je()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),KCt=()=>{var e=JCt().classes;return nt.exports.jsxs("div",Object.assign({className:e.container},{children:[nt.exports.jsx(ex,Object.assign({className:e.icon},{children:nt.exports.jsx(d0e,{fontSize:"large"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.text},{children:xCt.nullState()})),nt.exports.jsx(be,{mb:9})]}))},YCt=({onRetry:e})=>{var t=JCt().classes;return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(ex,Object.assign({className:t.icon},{children:nt.exports.jsx(zue,{fontSize:"large"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:xCt.errorState()})),nt.exports.jsx(be,{mt:4}),nt.exports.jsx(ge,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:xCt.retry()}))]}))};var QCt=je()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));let XCt=({isConnected:e,onLink:t,onUnlink:n})=>{var r=QCt().classes;return nt.exports.jsx("div",{children:e?nt.exports.jsx(ge,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:xCt.buttonUnlink()})):nt.exports.jsxs(ge,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[nt.exports.jsx(F2t,{className:r.linkIcon}),xCt.buttonLink()]}))})};function $Ct({openIdItems:i,onOpenUnlinkModal:o,onClickOpenIdUrl:a,isOpenIdConnected:s}){let l=QCt().classes;return nt.exports.jsx(Mx,{children:i.map((e,t)=>{var{name:n,loginButtonStyle:r}=e,r=null==r?void 0:r.btnLogo;return nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsxs(Jx,Object.assign({className:l.openIdItem},{children:[nt.exports.jsx(Xx,Object.assign({className:l.listAvatar},{children:nt.exports.jsx(W8,Object.assign({className:l.openIdLogo,src:r},{children:nt.exports.jsx(v0e,{})}))})),nt.exports.jsx(lv,{primary:nt.exports.jsx(he,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:nt.exports.jsx(pe,Object.assign({variant:"body1",className:l.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),nt.exports.jsx(_x,Object.assign({className:l.secondaryAction},{children:nt.exports.jsx(XCt,{isConnected:s(e.connectId),onLink:()=>a(e),onUnlink:()=>o(e)})}))]})),t!==i.length-1&&nt.exports.jsx(se,{})]})})})}let ext=()=>{var e=QCt().classes;return nt.exports.jsxs(Jx,Object.assign({className:e.openIdItem},{children:[nt.exports.jsx(Xx,Object.assign({className:e.listAvatar},{children:nt.exports.jsx(ye,{variant:"circular",width:25,height:25})})),nt.exports.jsx(lv,{children:nt.exports.jsx(ye,{variant:"text",width:150,height:21})}),nt.exports.jsx(_x,Object.assign({className:e.secondaryAction},{children:nt.exports.jsx(ye,{variant:"rectangular",width:87,height:35})}))]}))},txt=()=>nt.exports.jsxs(Mx,{children:[nt.exports.jsx(ext,{}),nt.exports.jsx(se,{}),nt.exports.jsx(ext,{}),nt.exports.jsx(se,{}),nt.exports.jsx(ext,{})]}),nxt="openId",rxt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.openIdConnectors,ixt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.connectedOpenIds,oxt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.status,axt=`aiware/${nxt}/get open id connectors`,sxt=`aiware/${nxt}/get open id connectors success`,lxt=`aiware/${nxt}/get connected open id connectors success`,cxt=`aiware/${nxt}/get open id connectors error`;function dxt(){return{type:axt}}function uxt(e){return{type:cxt,payload:{message:e}}}let pxt=({openIdConnectors:e})=>{let t=Ie(),[n,r]=Le.exports.useState(!1),[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(null);let[l,c]=Le.exports.useState({}),[d,u]=Le.exports.useState(),p=Ae(oxt)||"",g=Ae(ixt)||[];var f=QCt().classes;let h=e=>{c(e),r(!0)};var m=()=>{r(!1)},C=()=>{o(!1)};let x=()=>{t(dxt())},v=(GO(()=>{t(dxt())},a),e=>{c(e);e=window.open(e.loginUrl);u(e),s(2e3)}),b=Le.exports.useCallback(t=>g.some(e=>e.connectId===t),[g]);Le.exports.useEffect(()=>{""!==l.connectId&&null!==a&&b(l.connectId)&&(s(null),null!=d&&d.close(),o(!0))},[b,t]);return nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:f.accountLinkingLabel,"data-test":"account-linking-label"},{children:xCt.accountLinkingLabel()})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:xCt.accountLinkingDescription()})),"pending"===p?nt.exports.jsx(txt,{}):"failure"===p?nt.exports.jsx(YCt,{onRetry:x}):0===e.length?nt.exports.jsx(KCt,{}):nt.exports.jsx($Ct,{openIdItems:e,onOpenUnlinkModal:h,onClickOpenIdUrl:v,isOpenIdConnected:b}),nt.exports.jsxs(Lm,Object.assign({open:n,maxWidth:"xs",onClose:m,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:f.dialogTitle},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:f.dialogTitleText},{children:xCt.unlinkDialogTitle()}))})),nt.exports.jsx(qm,Object.assign({className:f.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"unlink-dialog-description"},{children:xCt.unlinkDialogContent(l.name)}))})),nt.exports.jsxs(Vm,Object.assign({className:f.dialogAction},{children:[nt.exports.jsx(ge,Object.assign({onClick:m,variant:"text",size:"large",className:f.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:xCt.unlinkDialogCancel()})),nt.exports.jsx(ge,Object.assign({onClick:m,size:"large",variant:"contained",color:"primary",className:f.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:xCt.unlinkDialogConfirm()}))]}))]})),nt.exports.jsxs(Lm,Object.assign({open:i,maxWidth:"xs",onClose:C,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"success-dialog-title",className:f.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:f.dialogTitleText},{children:xCt.successDialogTitle()}))})),nt.exports.jsx(qm,Object.assign({className:f.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"success-dialog-description"},{children:xCt.successDialogContent(l.name)}))})),nt.exports.jsx(Vm,Object.assign({className:f.dialogAction},{children:nt.exports.jsx(ge,Object.assign({onClick:C,size:"large",variant:"contained",color:"primary",className:f.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:xCt.successDialogConfirm()}))}))]}))]})};var gxt=je()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& > div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),fxt=je()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));let hxt=({onPreferredLanguageChange:t,selectedLanguage:e})=>{let[n,r]=Le.exports.useState("");var i=fxt().classes,o=(Le.exports.useEffect(()=>{r(e)},[e]),GW.map(({locale:e,name:t})=>({value:e,name:t})));return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:i.settingsHeader},{children:xCt.settingsHeader()})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:xCt.settingsSubHeader()})),nt.exports.jsxs(pC,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[nt.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),nt.exports.jsx(Gb,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null==o?void 0:o.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),nt.exports.jsx(pe,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products may support your preferred language selection. If you choose a primary language that isn't available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},mxt=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{let c,d,u="EDIT_PROFILE_PICTURE";var p=gxt().classes;let g=Ie();var f=Ae(uG),f=null==f?void 0:f.scimConnectId,h=["us-fed-1","us-fed-2"].find(e=>window.location.href.includes(e)),m=Ae(rxt)||[],C=m.some(e=>e.required),h=Ae(RG)||h||f||C||!1,f=Ae(AG)||"en";let[x,v]=Le.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[b,y]=Le.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[A,I]=Le.exports.useState(!1),[w,j]=Le.exports.useState(null),[S,O]=Le.exports.useState(!1),[k,T]=Le.exports.useState(!1),[E,N]=Le.exports.useState(0);var C=Ae(n6t),M=XW(f),P=(Le.exports.useEffect(()=>{e&&L(e)},[e]),Le.exports.useEffect(()=>{g(dxt())},[g]),[{label:xCt.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:xCt.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:xCt.activityTabLabel(),disabled:!1,id:"Activity"},{label:xCt.settingsTabLabel(),disabled:!1,id:"Settings"}]);let L=e=>{var{firstName:e,lastName:t,imageUrl:n,userSettings:r}=e,r=null==r?void 0:r.find(e=>"phoneNumber"===e.key);v({firstName:e||"",lastName:t||"",phoneNumber:(null==r?void 0:r.value)||"",email:""}),n&&j(n)};var R=Le.exports.useCallback(()=>{null!=e&&e.email&&(O(!1),n(null==e?void 0:e.email))},[e,n]);var D=n=>e=>{let t=e.target.value;v(e=>Object.assign(Object.assign({},e),{[n]:t})),y(e=>Object.assign(Object.assign({},e),{[n]:""}))};let F=()=>{g(wse(u))},V=e=>{o(e),setTimeout(()=>{g(wse(u))},500)};C=[r6t.LOGGING_OUT,r6t.LOGGED_OUT].includes(C);return nt.exports.jsxs("div",Object.assign({className:p.personalProfileContainer},{children:[nt.exports.jsxs("div",Object.assign({className:p.firstBox},{children:[nt.exports.jsx(GCt,{avatar:w,sortName:""+((null==(c=x.firstName)?void 0:c.substr(0,1))||"")+((null==(d=x.lastName)?void 0:d.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:F,onSaveAvatar:V,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,siblingPanelId:"PERSONAL_PANEL",parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};g(yse({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),nt.exports.jsx("div",Object.assign({className:p.loggedBox},{children:nt.exports.jsxs(pe,Object.assign({variant:"body2",className:p.currentlyLoggedIn},{children:[nt.exports.jsx(Ce,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",nt.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:p.email},{children:null==e?void 0:e.email}))]}))})),nt.exports.jsx("div",Object.assign({className:p.logoutBox},{children:nt.exports.jsx(ije,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:p.btnLogin,loading:C},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),nt.exports.jsx("div",Object.assign({className:p.tabsParent},{children:nt.exports.jsx(C6e,{selectedId:E,onChangeTab:e=>{N(e)},tabsList:P})}))]})),nt.exports.jsxs("div",Object.assign({className:p.secondBox},{children:[nt.exports.jsx(x6e,Object.assign({value:E,index:0},{children:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.headerBox},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.manageBasicInfoLabel},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use in your account.",description:"description of manage basic infomation container"})}))]}),nt.exports.jsx("div",Object.assign({className:p.editIconBox},{children:!A&&nt.exports.jsx(ue,Object.assign({id:"button-edit",onClick:()=>{T(!1),O(!1),I(!0)},size:"large"},{children:nt.exports.jsx("img",{src:Qse,alt:""})}))}))]})),nt.exports.jsxs("div",Object.assign({className:p.formBox},{children:[A?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(gw,{id:"firstName",label:M({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.firstName,onChange:D("firstName"),margin:"normal",error:""!==b.firstName,helperText:b.firstName,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}}),nt.exports.jsx(gw,{id:"lastName",label:M({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.lastName,onChange:D("lastName"),margin:"normal",error:""!==b.lastName,helperText:b.lastName,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}}),nt.exports.jsx(gw,{id:"phoneNumber",label:M({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.phoneNumber,onChange:D("phoneNumber"),margin:"normal",error:""!==b.phoneNumber,helperText:b.phoneNumber,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}})]}),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{e&&L(e),I(!1)},color:"primary",id:"button-cancel-edit",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),nt.exports.jsx(ge,Object.assign({onClick:function(){(()=>{let e=!0;return x.firstName||(y(Object.assign(Object.assign({},b),{firstName:"This field is required."})),e=!1),x.lastName||(y(Object.assign(Object.assign({},b),{lastName:"This field is required."})),e=!1),x.phoneNumber&&!/^\+?(\d){6,}$/.test(x.phoneNumber.toLowerCase())&&(y(Object.assign(Object.assign({},b),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(x),I(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:p.valueItem},{children:`${(null==x?void 0:x.firstName)||""} `+((null==x?void 0:x.lastName)||"")}))]})),(null==x?void 0:x.phoneNumber)&&nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:p.valueItem},{children:null==x?void 0:x.phoneNumber}))]}))]}),nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:Zhe(p.valueItem,p.disabledText)},{children:null==e?void 0:e.email}))]})),S?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:p.pwResetTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.pwResetDes1},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{O(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({onClick:R,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[!h&&nt.exports.jsxs("div",Object.assign({className:Zhe(p.formItem,p.formItemPw)},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),nt.exports.jsxs("div",Object.assign({className:p.passwordBox},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.valueItem},{children:"********"})),!h&&nt.exports.jsx(ue,Object.assign({id:"btn-click-pw-reset",className:p.iconResetPw,onClick:()=>{T(!1),O(!0),I(!1)},size:"large"},{children:nt.exports.jsx("img",{src:Xse,alt:""})}))]}))]})),nt.exports.jsx("div",{children:nt.exports.jsxs(pe,Object.assign({variant:"subtitle1",className:p.lastUpdate},{children:[nt.exports.jsx(Ce,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?wmt.fromISO(null==e?void 0:e.lastUpdated):wmt.local()).toFormat("LLL dd, yyyy")]}))})]})]})),k?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.resetBiometric},{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:p.pwResetTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.pwResetDes1},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{T(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{T(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!S&&s&&nt.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{T(!0),O(!1),I(!1)}},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.reset},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),nt.exports.jsx(x6e,Object.assign({value:E,index:1},{children:nt.exports.jsx(pxt,{openIdConnectors:m})})),nt.exports.jsx(x6e,Object.assign({value:E,index:2},{children:nt.exports.jsx(_,Object.assign({sx:{height:"500px"}},{children:nt.exports.jsx(Yft,{isSingleUserMode:!0})}))})),nt.exports.jsx(x6e,Object.assign({value:E,index:3},{children:nt.exports.jsx(hxt,{selectedLanguage:f,onPreferredLanguageChange:e=>{g(RZ(e))}})}))]}))]}))};function Cxt({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:d,onClickApp:u,handleUploadAvatar:p,avatarHistory:g}){let f=Ae(e6t),[h,m]=Le.exports.useState("");var C=bCt().classes,x=(Le.exports.useEffect(()=>{m(f.loading||"")},[f]),Ae(gG)),x=bZ.isOperationValid("fileApplication","mutation")&&x;return nt.exports.jsxs("div",Object.assign({className:C.tabsBox},{children:[l===tk.PERSONAL_PANEL&&nt.exports.jsx(mxt,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:g,loadingStatus:h}),l===tk.APP_PANEL&&nt.exports.jsx(MCt,{recentApplist:c,applications:d,onClickApp:u,showAppGroups:x}),l===tk.ACTIVITY_PANEL&&nt.exports.jsx(Nmt,{filter:n,onChangeFilter:r,data:t||[]}),l===tk.PERFORMANCE_MONITOR&&nt.exports.jsx(WCt,{})]}))}let xxt="applications",vxt=e=>null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[xxt],bxt=dT([vxt,nz,IP,e=>null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[$ht])?void 0:e.hubRole],({application:e},t,n,r)=>(e||[]).filter(e=>!(t&&"cms"===e.key||n&&"admin"===e.key||"Hub Admin"!==(null==r?void 0:r.name)&&"hubcentral"===e.key)));let yxt=`aiware/${xxt}/get handle click app`,Axt=`aiware/${xxt}/request get app`,Ixt=`aiware/${xxt}/get app list start`,wxt=`aiware/${xxt}/get app list success`,jxt=`aiware/${xxt}/get app list error`,Sxt=`aiware/${xxt}/set application`;function Oxt(e){return{type:Sxt,payload:{data:e}}}function kxt(){return{type:Axt,payload:{}}}let Txt={application:[],message:"",status:"idle",selectedApp:null};function Ext(e,t){if(void 0===e)return Txt;switch(t.type){case Ixt:return Object.assign(Object.assign({},e),{status:"loading"});case wxt:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case jxt:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});case Sxt:return Object.assign(Object.assign({},e),{selectedApp:t.payload.data});default:return e}}let Nxt="activities",Mxt=e=>(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[Nxt])||[],Pxt=wmt.local().startOf("day"),Lxt=dT([Mxt],e=>{var{records:e,filter:t}=e;return"today"===t?e.filter(e=>wmt.fromISO(e.createdDateTime).hasSame(Pxt,"day")):e}),Dxt=`os-app-bar-panel/${Nxt}/get activity`,Rxt=`os-app-bar-panel/${Nxt}/get activity success`,Fxt=`os-app-bar-panel/${Nxt}/update activity filter`;function Vxt(){return{type:Dxt}}let Bxt={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function Hxt(e,t){if(void 0===e)return Bxt;switch(t.type){case Rxt:return Object.assign(Object.assign({},e),{records:t.payload});case Fxt:var n=t.payload.filter;return Object.assign(Object.assign({},e),{filter:n});default:return e}}Ow({[$ht]:O6t,[Nxt]:Hxt,[xxt]:Ext});let Uxt="aiWareHeaderBarPanel";function*zxt(e){yield L(qxt,e.payload)}function*_xt(){var r,i=yield D(EG),a=yield D(cG);if(i){yield P({type:Ixt});let e=0;let t={totalResults:999,results:[]},n={results:[{applicationId:"init value for while loop"}]};for(;((null==(r=null==t?void 0:t.results)?void 0:r.length)||0)<((null==t?void 0:t.totalResults)||0)&&null!=(r=null==n?void 0:n.results)&&r.length;)n=yield L(XG,i,a,e,200),null!=t&&t.to?null!=(r=null==t?void 0:t.results)&&r.length&&(t.results=t.results.concat(n.results||[])):t=n,e+=200;var s=yield D(PG),s=yield L($G,s,a);let o=((null==(s=null==(s=null==s?void 0:s.data)?void 0:s.applications)?void 0:s.records)||[]).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});t&&t.results?(s=((null==t?void 0:t.results)||[]).map(e=>{let t,n,r,i=null!=(t=o[e.applicationId])&&t.signedIconUrl?decodeURIComponent(decodeURI(null==(n=o[e.applicationId])?void 0:n.signedIconUrl)):"";return i=(i=i.replaceAll("&amp;","&")).replaceAll("host?","host&"),{id:e.applicationId,name:e.applicationName,key:e.applicationKey,iconUrl:i||(null==(r=o[e.applicationId])?void 0:r.signedIconSvg)||e.applicationIconUrl||e.applicationIconSvg||e.signedApplicationIconUrl,description:e.applicationDescription,headerbarEnabled:(null==e?void 0:e.headerbarEnabled)||!1,applicationUrl:(null==e?void 0:e.applicationUrl)||""}}),yield P((s=s,{type:wxt,payload:{data:s}}))):yield P({type:jxt,payload:{message:"something wrong"}})}else yield Hu(nG.type),yield P(kxt())}function*qxt(e){var t=yield D(e6t),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=WO(ZO([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield D(MG));window.open(r+"/"+e)}function*Wxt(){yield Uu([$u(yxt,zxt),o(Axt,_xt)])}function Zxt(t=1e3){return Gmt(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Gxt(e){window.location.href=e}let Jxt={LOADING:"loading",DONE:"done"};function*Kxt(){var e,t,n=yield D(PG),r=yield D(cG),n=yield L(MK,n,r);null!=n&&n.errors&&0<(null==n?void 0:n.errors.length)&&(null==(r=n.errors[0].path)||!r.includes("userSettings"))?(console.error("getCurrentUser error"),yield P({type:a6t})):(r=(null==(r=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:r.recentImageUrls)||[],t=(null==(t=null==(t=null==n?void 0:n.data)?void 0:t.myRights)?void 0:t.operations)||[],e=Object.assign(Object.assign({},(null==(e=null==n?void 0:n.data)?void 0:e.me)||{}),{organizationRole:{organizationId:UO(n,"data.me.organization.id",""),role:t.includes("veritone.superadmin")?"superadmin":t.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.organization)||{}),roles:((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:r}),yield P((t=e,{type:o6t,payload:t})),t=((null==(e=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:e.roles)||[]).find(e=>"hubcentral"===e.appName),yield P((n=t,{type:v6t,payload:n})))}function*Yxt(){var e=yield D(EG),t=yield D(cG);yield L(PK,e,t)}function*Qxt(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield D(PG),e=yield L(LK,e,t);!1===(null==e?void 0:e.success)?yield P({type:c6t}):(t={content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:R.Info},yield P(F(t)))}function*Xxt(e){let t=null==e?void 0:e.payload,n=yield D(PG),r=yield D(cG);var e=yield D(AG),i=yield L(()=>DK(t,n,r)),e=XW(e);!1===(null==i?void 0:i.success)?yield P(y6t()):(yield P(b6t()),i={content:e({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:R.Success},yield P(F(i)))}function*$xt(e){var e=null==e?void 0:e.payload,t=yield D(PG),n=yield D(cG),e=yield L(RK,e,t,n);yield P(j6t(Jxt.LOADING)),e&&(yield P((t=e,{type:g6t,payload:t})))}function*evt(e){var e=null==e?void 0:e.payload,t=yield D(PG),n=yield D(cG),r=yield D(AG),e=yield L(VK,e,t,n),t=XW(r);e.errors?yield P(y6t()):(n={content:t({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:R.Success},yield P(F(n)),yield P(b6t()),yield P(j6t(Jxt.DONE)))}function*tvt(){Gxt(yield D(DG))}function*nvt(){var e=yield D(AG),e={content:XW(e)({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:R.Error};yield P(F(e))}function*rvt(){var e=yield D(FG);e?Gxt(e):yield L(nvt)}function*ivt(){try{var e=yield D(PG),t=yield D(dG),n=yield D(cG);yield P(OZ({token:n})),yield P(vJ(!1)),yield L(dK,e,null==t?void 0:t.userId,{eventType:uK,command:cK.setCallResetIdleTimer,value:window.navigator.userAgent},!0,"json",uK,n),yield Zxt(500)}catch(e){console.log(e)}}function*ovt(){var e,t=yield D(PG),n=yield D(dG),r=yield D(cG),i=yield D(LG),o=yield D(FG);try{r?(window.__logout_requested=!0,yield L(dK,t,null==n?void 0:n.userId,{eventType:uK,command:null==cK?void 0:cK.goToLoginPage,value:window.navigator.userAgent},!0,"json",uK,r),yield Zxt(500),null!=(e=yield L(HK,r,t))&&e.errors||!1===(null==e?void 0:e.success)?(yield L(rvt),yield P(w6t())):(yield P(I6t()),Gxt(o||i))):(yield P(I6t()),yield L(tvt))}catch(e){yield L(nvt),yield P(w6t()),console.log(e)}}function*avt(){yield Uu([$u(i6t,Kxt),o(s6t,Yxt),o(l6t,Qxt),o(d6t,Xxt),o(p6t,$xt),o(g6t,evt),o(f6t,ovt),o(x6t,ivt)])}let svt=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o.userName,{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o.organizationName,{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*lvt(){var e=yield L(vY);e.success?(e=e.data.records,e=e.map(svt),yield P((e=e,{type:Rxt,payload:e}))):(e=yield D(AG),e={content:XW(e)({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:R.Error},yield P(F(e)))}function*cvt(){yield $u(Dxt,lvt)}let dvt="aiware-header-bar/booting",uvt="aiware-header-bar/booted";function*pvt(){yield Hu(uvt)}function*gvt(){yield $u(dvt,pvt)}function*fvt(){yield Uu([_u(Wxt),_u(avt),_u(gvt),_u(cvt)])}function hvt(){return{id:"os-appbar-panel",reducerMap:{[Uxt]:Ow({users:O6t,activities:Hxt,applications:Ext})},sagas:[fvt],initialActions:[Vxt(),b6t(),kxt()],retained:!0}}let mvt={openIdConnectors:[],connectedOpenIds:[],message:"",status:"idle"};function Cvt(e,t){if(void 0===e)return mvt;switch(t.type){case axt:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&"pending"});case sxt:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:"idle"});case lxt:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case cxt:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}let xvt=(e,t,n)=>Gmt(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/org/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}}),vvt=(e,t,n)=>Gmt(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/user/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}});function*bvt(){var n,r,i=yield D(cG),o=yield D(EG),a=(yield D(uG)).userName;if(i&&o&&a){let e={},t={};e.results=yield D(rxt);try{var s=L(xvt,o,a,i),l=L(vvt,o,a,i);0===(null==e?void 0:e.results.length)?[e,t]=yield Uu([s,l]):t=yield l,e&&t?(yield P((r=e.results,{type:sxt,payload:{data:r}})),yield P((n=t.results,{type:lxt,payload:{data:n}}))):yield P(uxt("error on loading open ids"))}catch(e){yield P(uxt("error on loading open ids"))}}else yield P(uxt("Missing token,base url or username"))}function*yvt(){yield $u(axt,bvt)}function Avt({tabId:e}){let r=Ie(),i=Ae(bxt);var t=Ae(t6t),{avatarHistory:n=[]}=t||{},o=Ae(Lxt)||[],a=Ae(Mxt).filter;let[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState([]),[u,p]=Le.exports.useState([]),g=Ae(OG);let f="e4739d44-53d2-4153-b55f-5e246fc989b1"===Ae(ZG),h=Ae(GG);function m(e){r(lZ(""+e)),r(JZ(""+e))}Le.exports.useEffect(()=>{p(g)},[g]),Le.exports.useEffect(()=>{r(kxt()),r(Vxt()),r(b6t())},[r]),Le.exports.useEffect(()=>{l(e||0)},[e]),Le.exports.useEffect(()=>{if(0<u.length&&0<i.length){var e=[];for(let t of u){var n=i.find(e=>e.id===t);n&&e.push(n)}d(e)}},[u,i]);let C={invalidUrl:TL("production","development")?"Selected Application does not have a valid destination URL":nt.exports.jsx(Ce,{id:"os-app-bar-panel.desktop-app.switcher-error.invalid-url",defaultMessage:"Selected Application does not have a valid destination URL. Application URL needs to be updated in Developer - Application Details",description:"Error message when onboarded app does not have a valid URL"}),urlValidationError:TL("production","development")?"Application loading has failed. Please try again later":nt.exports.jsx(Ce,{id:"os-app-bar-panel.desktop-app.switcher-error.url-validation-error",defaultMessage:"Application loading has failed. Please try again later",description:"Error message when onboarded app url validation does not pass"})};let x=Fht(),v=Ae(WG);function b(t,e){var{error:e,message:n}=(e=>{let t;try{t=new URL(e)}catch(e){return{error:!0,message:C.invalidUrl}}return"https:"===t.protocol||"http:"===t.protocol?{error:!1}:{error:!0,message:C.urlValidationError}})(e);e&&n?r(F({content:n,severity:R.Error})):(r(wse("APPLICATION_PANEL_ID")),e=i.find(e=>e.id===t),x("/ui/app/"+(null==e?void 0:e.key)),r(Oxt(e)))}return nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(wXe,Object.assign({modules:[hvt(),{id:"open-id",reducerMap:{[nxt]:Cvt},sagas:[yvt],initialActions:[]}]},{children:nt.exports.jsx(Cxt,{tabId:s,currentUser:t,activities:o,activityFilter:a,onChangeActivityFilter:function(e){r((e={filter:e},{type:Fxt,payload:e}))},handleResetBiometric:function(){r({type:s6t})},handleResetPassword:function(e){r((e={email:e},{type:l6t,payload:e}))},handleLogout:function(){r(rZ())},handleUpdateProfile:function(e){r((e=e,{type:d6t,payload:e}))},organizationRole:null==t?void 0:t.organizationRole,recentApp:c,applications:i,onClickApp:function(t){var{headerbarEnabled:e,applicationUrl:n=""}=i.find(e=>e.id===t)||{};if(f)e?b(t,n):m(t);else if(e&&h&&v){n=(i.find(e=>e.id===t)||{}).key;let e="";e=n?(h.endsWith("/")?"":"/")+"ui/app/"+n:(h.endsWith("/")?"":"/")+"ui/app/"+t,window.open(h+e)}else m(t)},handleUploadAvatar:function(e){r((e=e,{type:p6t,payload:e}))},avatarHistory:n})}))})})})}function Ivt(e){return nt.exports.jsx(Qht,{children:nt.exports.jsx(Avt,Object.assign({},e))})}let wvt=v2e.jsx.ImageUpload;let jvt=je()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function Svt({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){let a=jvt({row:o}).classes,[s,l]=Le.exports.useState(t),[c,d]=Le.exports.useState([]);function u(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return Le.exports.useEffect(()=>{var e;0<r.length&&(e=[...r].sort(p),d(e))},[r]),Le.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),nt.exports.jsxs("div",Object.assign({className:Zhe({[a.gridTitle]:i},a.tabsContainer)},{children:[nt.exports.jsx("div",Object.assign({className:Zhe({[a.padding]:!i},a.noSelect)},{children:nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&nt.exports.jsx("div",Object.assign({className:a.gridContainer},{children:nt.exports.jsx(W,Object.assign({container:!0},{children:0===r.length?nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4},{children:nt.exports.jsx("div",Object.assign({className:a.gridItem},{children:nt.exports.jsx(mCt,{type:"grid",selected:e===s,onClick:u,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&nt.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?nt.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):nt.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return nt.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[nt.exports.jsx(mCt,{type:"list",selected:e===s,onClick:u,iconUrl:n,id:e,appName:r}),nt.exports.jsx(se,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}var Ovt,kvt=Object.freeze({__proto__:null,AppList:Svt,EditProFilePicture:function({onClose:e,onSaveAvatar:t}){var n=gxt().classes;let[r,i]=Le.exports.useState(null);return nt.exports.jsx(D4e,{children:nt.exports.jsxs("div",Object.assign({className:n.editProfilePictureContainer},{children:[nt.exports.jsxs(be,Object.assign({className:n.contentUserView},{children:[nt.exports.jsx(be,Object.assign({className:n.headerDrawer},{children:nt.exports.jsx(pe,Object.assign({variant:"h1",className:n.mainTitleText,"data-test":"edit-profile-picture-header"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),nt.exports.jsx(_,Object.assign({sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"20px",height:"450px"}},{children:nt.exports.jsx(wvt,{outerWidth:"80%",outerHeight:"80%",innerWidth:"95%",innerHeight:"95%",uploadIconWidthHeight:"80px",handleChange:e=>{i(e)},testId:"profile-edit-profile-image"})}))]})),nt.exports.jsxs(be,Object.assign({className:n.actionButton+" "+n.editProfilePictureFooterButtons},{children:[nt.exports.jsx(ge,Object.assign({color:"primary",onClick:()=>{null!=e&&e()},className:Zhe(n.btnAction,n.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:Zhe(n.btnAction,n.btnSave),onClick:()=>{r&&t(r)},"data-test":"edit-profile-picture-save-button",disabled:!r},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})},VeritonePanel:Ivt,applicationSelector:vxt,getAppbarPanelModule:hvt,logoutUser:A6t,requestGetApplications:kxt,selectAppFromStore:e=>null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[xxt].selectedApp,setApplicationInStore:Oxt});(a0e=Ovt=Ovt||{}).DRAG_HANDLE_ID="sdk-impersonate-badge-handle",a0e.IS_BUTTON_ACTIVE="sdk-impersonate-badge-is-button-active",a0e.DRAG_HANDLE_INDICATOR_ICON="sdk-impersonate-handle-drag-indicator",a0e.TEST_ID="sdk-impersonation-active-banner";let Tvt=s3({"0%":{backgroundPosition:"-1000px 0"},"100%":{backgroundPosition:"1000px 0"}}),Evt=je()(e=>({box:{position:"fixed",bottom:0,left:0,margin:"10px",zIndex:999999},paper:{background:"linear-gradient(45deg, #D46600, #D46600 25%, #f19437 50%, #D46600 75%, #D46600)",backgroundSize:"200% 200%",color:"#FFF",padding:"10px",minWidth:"170px",transform:"scale(0.75)",transformOrigin:"left",transition:"transform 0.3s ease-in-out",animation:Tvt+" 16s infinite linear",border:"1px solid #9c4b00",overflow:"hidden","&:hover":{transform:"scale(1)",background:"#D46600",border:"1px solid #f19437"},cursor:"grab",[`&:active:not(.${Ovt.IS_BUTTON_ACTIVE})`]:{transform:"scale(1.05)",opacity:.75,cursor:"grabbing"},[`&:hover:not(.${Ovt.IS_BUTTON_ACTIVE}) .`+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:.25,transition:"all 0.3s ease-in-out"},[`&:active:not(.${Ovt.IS_BUTTON_ACTIVE}) .`+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:1}},button:{width:"100%",background:"#000!important",backgroundColor:"#000!important","&:not(:disabled):not(:hover)":{background:"#000!important",backgroundColor:"#000!important"}},dragHandle:{position:"relative",width:"100%",["& ."+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:0,transition:"all 0.3s ease-in-out",marginLeft:"auto",position:"absolute",top:0,right:0,transform:"translateX(12px) translateY(-5px) scale(0.9)",transformOrigin:"top"}}})),Nvt=jT("os-app-bar-panel/logout"),Mvt=e=>{let t="Unknown";var n=`${null==e?void 0:e.firstName} `+(null==e?void 0:e.lastName);return(null!=e&&e.firstName||null!=e&&e.lastName)&&(t=n),t=null!=e&&e.email?e.email:t},Pvt=()=>{var e=Evt().classes;let t=Ie(),[n,r]=Le.exports.useState(!1),[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(!1);var l=Ae(uG),c=Mvt(l),l=Boolean(null==l?void 0:l.impersonatorId);let[d,u]=Le.exports.useState({x:20,y:window.innerHeight-140}),[p,g]=Le.exports.useState(!1),[f,h]=Le.exports.useState({x:0,y:0}),m=Le.exports.useRef(null);Le.exports.useEffect(()=>{let e=e=>{var t;p&&(t=e.clientX-f.x,e=e.clientY-f.y,u({x:t,y:e}))},t=()=>{g(!1)};return p&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",t)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[p,f]);return l?nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(BO,{children:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Xze,{isOpen:a,testId:Ovt.TEST_ID+"-confirm-modal",title:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-title",defaultMessage:"End Impersonation Session",description:"User Detail impersonate user confirm title"}),description:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-description",defaultMessage:"Are you sure want to exit this impersonation session?",description:"User Detail impersonate banner user confirm description"}),cancelLabel:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-cancel",defaultMessage:"Cancel",description:"User Detail impersonate banner user confirm cancel"}),confirmLabel:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-btn",defaultMessage:"End Impersonation",description:"User Detail impersonate banner user confirm btn"}),onClose:()=>s(!1),onConfirm:()=>{t(Nvt())}}),nt.exports.jsx(be,Object.assign({ref:m,onMouseDown:e=>{var t;m.current&&m.current.contains(e.target)&&(t=m.current.getBoundingClientRect(),h({x:e.clientX-t.left,y:e.clientY-t.top}),g(!0))},sx:{position:"fixed",zIndex:999999,left:d.x,top:d.y,userSelect:"none",cursor:"move"}},{children:nt.exports.jsx(_6,Object.assign({"data-testId":Ovt.TEST_ID+"-paper",id:Ovt.DRAG_HANDLE_ID,onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},className:Zhe(e.paper,{[Ovt.IS_BUTTON_ACTIVE]:i}),elevation:1},{children:nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",width:"100%",height:n?110:20,transition:"height 0.3s ease-in-out",justifyContent:"space-between"},spacing:1},{children:[nt.exports.jsxs(_,Object.assign({"data-testId":Ovt.TEST_ID+"-drag-handle",className:e.dragHandle,direction:"row",spacing:2},{children:[nt.exports.jsx(M4e,{}),nt.exports.jsx(pe,Object.assign({sx:{color:"#FFF",transform:"translateX(-5px)"},fontWeight:"500",variant:"body2"},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-impersonating-user",defaultMessage:"Impersonating User",description:"User Detail impersonate banner label Impersonating User"})})),n&&nt.exports.jsx(Yde,{"data-testId":Ovt.TEST_ID+"-drag-indicator",className:Ovt.DRAG_HANDLE_INDICATOR_ICON})]})),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",width:"100%",opacity:n?1:0,transform:`scale(${n?"1":"0.6"})`,transformOrigin:"left",transition:"transform 0.2s ease-in-out, opacity 0.3s ease-in-out"},spacing:1},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{opacity:.5}},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-you-are-impersonating",defaultMessage:"You are impersonating",description:"User Detail impersonate banner label you are impersonating"})})),nt.exports.jsx(pe,Object.assign({"data-testId":Ovt.TEST_ID+"-user-label",fontWeight:"500",variant:"body2"},{children:c})),nt.exports.jsx(ge,Object.assign({"data-testId":Ovt.TEST_ID+"-exit-button",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:()=>s(!0),className:e.button,variant:"contained"},{children:nt.exports.jsx(pe,Object.assign({sx:{color:"#FFF"},variant:"caption"},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-end-impersonation",defaultMessage:"End Impersonation",description:"User Detail impersonate banner end impersonation"})}))}))]}))]}))}))}))]})})})}):null},Lvt=je()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),Dvt=()=>{let e,t,[n,r]=Le.exports.useState(null),[i,o]=Le.exports.useState(0);var a=Ae(uG),s=Lvt().classes;let l=Ae(_G),c=l.applicationId,d=Ae(vxt),u=Ae(MG);var p=(null==d?void 0:d.application)||[],g=null==d?void 0:d.status;let f=Ae(JG);var h=[...p].sort(function(e,t){return(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),m=p.findIndex(e=>e.id===c);GO(()=>{r(e=>e&&e-1)},n&&i<3?1e3:null),Le.exports.useEffect(()=>{"success"!==(null==d?void 0:d.status)||1!==(null==d?void 0:d.application.length)||(null==d?void 0:d.application[0].id)===l.applicationId||n||f||(0===n?window.open(u+"/"+(null==d?void 0:d.application[0].id),"_self"):r(10))},[l,d,u,n,f]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(c)&&!f&&m<0&&"success"===g?nt.exports.jsx(jm,Object.assign({className:s.dialog,open:!0},{children:nt.exports.jsxs("div",Object.assign({className:s.container},{children:[nt.exports.jsx(pe,Object.assign({"data-test":"application-dialog-title",className:s.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),nt.exports.jsxs(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[nt.exports.jsx(Ce,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",nt.exports.jsx("span",Object.assign({className:s.orgName},{children:null!=(e=null==a?void 0:a.organization)&&e.organizationName?a.organization.organizationName:""}))," ",nt.exports.jsx(Ce,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),n&&nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{o(e=>e+1)}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:n,appName:null==(t=p[0])?void 0:t.name}})})),nt.exports.jsx("div",Object.assign({className:s.appListContainer},{children:nt.exports.jsx(Svt,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(u+"/"+e,"_self")},applications:h,useGrid:!1,row:3})}))]}))})):null};function Rvt(){var e=Ae(dG);return null!=(e=null==e?void 0:e.user)&&e.token?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Pvt,{}),nt.exports.jsx(Dvt,{})]}):null}let Fvt=()=>(T5(),null),Vvt=({store:e,onLoad:t})=>{var n=Ae(dG);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([hvt()])},0),null},Bvt="openSupportChatButton",Hvt="open-support-chat-button";var Uvt=()=>nt.exports.jsx(Ch,{children:nt.exports.jsx("div",{id:Bvt,"data-veritone-element":Hvt,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})}),f3e=({store:e})=>{let[t,n]=Le.exports.useState(!1);return nt.exports.jsx(BO,{children:nt.exports.jsxs(ES,{children:[nt.exports.jsx(Uvt,{}),nt.exports.jsx(YE,Object.assign({store:e},{children:nt.exports.jsxs(D4e,{children:[t&&nt.exports.jsx(Rvt,{}),!t&&nt.exports.jsx(Vvt,{store:e,onLoad:()=>{n(!0)}}),nt.exports.jsx(Yut,{})]})})),!t&&nt.exports.jsx(Fvt,{})]})})},zvt=Object.freeze({__proto__:null,Preloader:f3e,default:f3e}),t3e="@helpPanel";let _vt=jT(t3e+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),qvt=jT(t3e+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),Wvt=jT(t3e+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}});let Zvt=PT({selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},e=>{e.addCase(_vt,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(qvt,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(Wvt,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*Gvt(){yield $u("OPEN_HELP_LINK",function*(){var e=yield D(e=>e.helpPanel.tabLink);yield P(Sse({url:e}))})}let Jvt="helpPanel",Kvt=e=>null!=e&&e[Jvt]?e[Jvt].selectedTabId:0,Yvt=e=>null!=e&&e[Jvt]?e[Jvt].customDocsUrl:"",Qvt=e=>null!=e&&e[Jvt]?e[Jvt].customKnowledgeBaseUrl:"";let Xvt={knowledgeBaseUrl:"https://docs.veritone.com/help/index.html",documentUrl:"https://docs.veritone.com"},$vt=je()(e=>({root:{height:"calc(100% - 60px)",textAlign:"left","& .MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 55px - 60px)",overflowY:"auto",overflowX:"hidden"}})),ebt=Xvt.documentUrl,tbt=({path:e=ebt})=>{var t=$vt().classes;let[n,r]=Le.exports.useState(!0);return nt.exports.jsxs("div",Object.assign({className:Zhe(t.dRoot,"hide-in-percy")},{children:[n&&nt.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:nt.exports.jsx(mm,{})})),nt.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},nbt=Xvt.knowledgeBaseUrl;function rbt({path:e=nbt}){var t=$vt().classes;let[n,r]=Le.exports.useState(!0);return nt.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&nt.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:nt.exports.jsx(mm,{})})),nt.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}nt.exports.jsx(Ce,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),nt.exports.jsx(Ce,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"});var ibt=Object.freeze({__proto__:null,HelpCenterPanel:function(){var e=Ae(_G),t=Ae(Qvt),n=Ae(Yvt),r=Ae(Kvt),i=Ae(e=>null==e?void 0:e.panels),o=$vt().classes,[a]=Le.exports.useState("en-us");Ie();t=(i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId))&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return nt.exports.jsx(wXe,Object.assign({modules:[{id:"help",reducerMap:{[Jvt]:Zvt},sagas:[Gvt],initialActions:[]}]},{children:nt.exports.jsx(D4e,Object.assign({locale:a},{children:nt.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:nt.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:nt.exports.jsx("div",Object.assign({className:o.tabContent},{children:nt.exports.jsx("div",Object.assign({className:o.root},{children:nt.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[nt.exports.jsxs(be,Object.assign({className:o.tabPanels},{children:[nt.exports.jsx(x6e,Object.assign({value:r,index:0},{children:nt.exports.jsx(rbt,{path:t})})),nt.exports.jsx(x6e,Object.assign({value:r,index:1},{children:nt.exports.jsx(tbt,{path:i})}))]})),nt.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:nt.exports.jsx("img",{src:ale,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))},customDocsUrlSelector:Yvt,customKnowledgeBaseUrlSelector:Qvt,helpCenterSelectedTabIdSelector:Kvt,setCustomDocsUrl:Wvt,setCustomKnowledgeBaseUrl:qvt,updateSelectedTab:_vt});let obt=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}},abt=t=>e=>(t.dispatch(Ise(e)),!0),sbt=t=>e=>(t.dispatch(wse(e)),!0);let lbt=s=>(e,t)=>{let n,r,i=e.panelId||YO();var{microFrontend:e,panelConfig:o}=e;s.dispatch(yse({microFrontend:e,panelId:i,panelConfig:o}));let a=[...(null==(n=null==o?void 0:o.header)?void 0:n.actions)||[],...(null==(r=null==o?void 0:o.footer)?void 0:r.actions)||[]].filter(e=>e.submit).map(e=>e.action);e={id:i,sagas:[function*(){yield $u(a.map(e=>e.type),function*(){var e=(yield D(e=>e.data.find(e=>e.id===i))).data;t&&t(e)})}]};return s.addModule(e),i};var cbt=Object.freeze({__proto__:null,attachSdkToWindow:e=>{var t,n,{init:e,store:r,aiwareEvents:i,bootstrapOptions:o}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:r,auth:(n=r,{updateToken(e){e?n.dispatch(PZ({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{n.dispatch(rZ())},1e3)):n.dispatch(rZ())},reportAppActivity(e){obt.checkIfCanCall(e)&&n.dispatch(aZ())}}),helpCenter:{openKnowledgeBasePanel:(e=new tce({actions:{setCustomKnowledgeBaseUrlAction:qvt,setCustomDocsUrlAction:Wvt,updateSelectedTabAction:_vt}})).openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)},dataCenter:{openImporterPanel:(e=new Kle).openImporterPanel.bind(e)},on:i.on,off:i.off,hidePanel:sbt(r),unmountPanel:abt(r),mountPanel:lbt(r),mountPanelForResponse:(t=r,e=>Ese(e,t)),registry:o.registry,registryLookup:o.registryLookup,AvailableWidgets:ik,mountPanelAction:yse,unmountPanelAction:Ise,hidePanelAction:wse,updatePanelMicroFrontendPropsAction:jse,setData:nZ,mountWidget:Cce,unmountWidget:xce,commit:"6fe30c255f"})},hidePanel:sbt,mountPanel:lbt,unmountAllPanel:e=>()=>{e.dispatch(Ose(""))},unmountPanel:abt});let dbt="mailbox",ubt=e=>null==(e=e[dbt])?void 0:e.mailBoxIds,pbt=e=>{e=null==(e=null==e?void 0:e[dbt])?void 0:e.mailbox;return null==e?void 0:e.reduce((e,t)=>e+t.unseenCount,0)},gbt=e=>e.panels||[];m3e=dbt+"/SUBSCRIBER_MAILBOX",v3e=dbt+"/SUBSCRIBER_MAILBOX_START",ont=dbt+"/UPDATE_MAILBOX_DATA",Q2e=dbt+"/SUBSCRIBING_MAILBOX",P3e=dbt+"/SUBSCRIBER_MAILBOX_SUCCESS",M3e=dbt+"/SUBSCRIBER_MAILBOX_ERROR",D3e=dbt+"/UPDATE_UNSEEN_COUNT";let fbt=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN";Fpe=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",B3e=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",g3e=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",a4e=dbt+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",hge=dbt+"/PUSH_NOTIFICATION",hpe=dbt+"/PUSH_DEFAULT_MAILBOX";let hbt=jT(m3e),mbt=jT(v3e),Cbt=jT(ont,function(e){return{payload:e}}),xbt=jT(P3e,function(e){return{payload:e}}),vbt=jT(M3e,function(e){return{payload:e}}),bbt=jT(Q2e),ybt=jT(hge,function(e){return{payload:e}}),Abt=jT(hpe,function(e){return{payload:e}}),Ibt=jT(D3e,function(e){return{payload:e}}),wbt=jT(Fpe),jbt=jT(B3e),Sbt=jT(g3e),Obt=jT(a4e);let kbt=PT({mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},e=>{e.addCase(mbt,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(xbt,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(Cbt,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(vbt,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(Ibt,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null!=(e=null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount)?e:0})})})).addCase(wbt,e=>Object.assign({},e)).addCase(jbt,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(Sbt,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function Tbt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}let Ebt=(e,t)=>Tbt(void 0,void 0,void 0,function*(){try{return yield fZ({query:`
1919
+ `,operationName:e,token:n,graphQLEndpoint:r}))[t])?void 0:e.id}),nCt=e=>(null==(e=e[Pmt])?void 0:e.appGroups)||[],rCt=e=>(null==(e=e[Pmt])?void 0:e.appGroupsRootFolderId)||"",iCt=e=>null==(e=e[Pmt])?void 0:e.uiStatus,oCt=e=>!!((null==(e=null==(e=e[Pmt])?void 0:e.user)?void 0:e.appGroups)||[]).find(e=>e.isEdited);function*aCt(){var t,n,r,i;try{var o=yield D(PG),a=yield D(cG);let e=yield D(rCt);if(!e){var s=yield L(Jmt,a,o);if(!s||s.length<2||null==(t=s[1])||!t.id)return yield P(qmt()),void h_e("Something went wrong while creating root folder for applications");e=null==(n=s[1])?void 0:n.id}var l=yield L(Kmt,a,o,e),c=(null==(i=null==(r=null==l?void 0:l.childFolders)?void 0:r.records)?void 0:i.map(e=>{var t;return{groupName:e.name,id:e.id,treeObjectId:e.treeObjectId,apps:null==(t=null==e?void 0:e.childApplications)?void 0:t.records.map(e=>e.id),priority:null==e?void 0:e.orderIndex,parentTreeObjectId:null==(t=null==e?void 0:e.parent)?void 0:t.treeObjectId,isNew:!1,expanded:!1,isEdited:!1,isExpanded:!0}}))||[];c.sort((e,t)=>(null==e?void 0:e.priority)-(null==t?void 0:t.priority)),yield P(Wmt(e)),yield P(_mt(c))}catch(e){yield P(qmt()),h_e("Something went wrong while creating root folder for applications: "+JSON.stringify(e))}}function*sCt(i){var t=yield D(AG),t=XW(t);try{let t=yield D(PG),n=yield D(cG);var e=yield D(rCt),o=i.payload,a=(yield D(nCt)).find(e=>!0===e.isNew),s=(null==a?void 0:a.apps)||[];let r=yield L(Ymt,n,t,o,e);r&&0<s.length&&(yield Uu(s.map(e=>L(Qmt,n,t,e,r)))),yield P(zmt())}catch(e){h_e("Something went wrong while creating application group: "+JSON.stringify(e));i={content:TL("production","development")?"Something went wrong while creating your application group":t({id:"user-app-groups.create-app-error-dsa123",defaultMessage:[{type:0,value:"Something went wrong while creating your application group"}]}),severity:R.Error};yield P(F(i))}}function*lCt(t){var n=yield D(AG),n=XW(n);try{var e,r,i=t.payload.destination,o=t.payload.appId;lje(i)&&lje(o)&&(e=yield D(PG),r=yield D(cG),yield L(Qmt,r,e,o,i))}catch(e){h_e("Something went wrong while adding app to application group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while adding application to group":n({id:"user-app-groups.add-app-error-ada534",defaultMessage:[{type:0,value:"Something went wrong while adding application to group"}]}),severity:R.Error};yield P(F(t))}}function*cCt(t){var n=yield D(AG),n=XW(n);try{var e=t.payload.source,r=t.payload.appId,i=yield D(PG),o=yield D(cG);yield L(Xmt,o,i,r,e)}catch(e){h_e("Something went wrong while removing application from group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while removing application from group":n({id:"user-app-groups.remove-app-error-fsa817",defaultMessage:[{type:0,value:"Something went wrong while removing application from group"}]}),severity:R.Error};yield P(F(t))}}function*dCt(n){var t=yield D(AG),t=XW(t);try{let t=n.payload;var e=yield D(PG),r=yield D(cG),i=(yield D(nCt)||[]).find(e=>e.id===t);i&&i.treeObjectId&&(yield L($mt,r,e,i.treeObjectId,i.priority),yield P(zmt()))}catch(e){h_e("Something went wrong while deleting application group: "+JSON.stringify(e));n={content:TL("production","development")?"Something went wrong while deleting application group":t({id:"user-app-groups.delete-app-group-error-kio912",defaultMessage:[{type:0,value:"Something went wrong while deleting application group"}]}),severity:R.Error};yield P(F(n))}}function*uCt(t){var n=yield D(AG),n=XW(n);try{var e=t.payload.groupId,r=t.payload.newGroupName,i=yield D(PG),o=yield D(cG);e&&r&&(yield L(eCt,o,i,e,r))}catch(e){h_e("Something went wrong while editing application group: "+JSON.stringify(e));t={content:TL("production","development")?"Something went wrong while editing application group":n({id:"user-app-groups.edit-app-group-error-ias109",defaultMessage:[{type:0,value:"Something went wrong while editing application group"}]}),severity:R.Error};yield P(F(t))}}function*pCt(n){var t=yield D(AG),t=XW(t);try{let t=n.payload.groupId;var e=n.payload.newPriority,r=n.payload.prevPriority,i=yield D(nCt)||[],o=yield D(PG),a=yield D(cG),s=i.find(e=>e.id===t);s&&void 0!==e&&void 0!==r&&(yield L(tCt,a,o,e,r,s))}catch(e){h_e("Something went wrong while updating application group order: "+JSON.stringify(e));n={content:TL("production","development")?"Something went wrong while updating application group order":t({id:"user-app-groups.reoder-app-group-error-uas989",defaultMessage:[{type:0,value:"Something went wrong while updating application group order"}]}),severity:R.Error};yield P(F(n))}}function*gCt(){yield Uu([o(zmt.type,aCt),o(Vmt.type,sCt),o(Lmt.type,lCt),o(Dmt.type,cCt),o(Hmt.type,dCt),o(Bmt.type,uCt),o(Rmt.type,pCt)])}let fCt={title:{my:2},content:{minWidth:360,px:0,pt:3,pb:0},button:{fontSize:"12px"},actions:{px:4,pt:4,pb:2},cancelButton:{color:"black",py:2},deleteButton:{py:2}},hCt={CMS:"data:image/svg+xml,%3csvg width='30' height='24' viewBox='0 0 30 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.89984 17.9131C3.19783 17.9131 1 15.8699 1 13.3593C1 11.0619 2.83988 9.15717 5.22364 8.84904C5.55861 4.46881 9.5023 1 14.2998 1C17.9816 1 21.2874 3.07115 22.6927 6.20387C26.1733 6.20387 29 8.83083 29 12.0585C29 15.2861 27.1057 17.9131 23.6328 17.9131' stroke='%2393930C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.0526 18.1812C20.0526 20.8188 17.7533 22.9652 14.9278 22.9652C13.004 22.9652 11.238 21.946 10.3652 20.3559H12.8316C12.9599 20.3559 13.0645 20.2583 13.0645 20.1385C13.0645 20.0182 12.9599 19.9206 12.8316 19.9206H9.8029C9.67464 19.9206 9.57007 20.0182 9.57007 20.1385V22.9652C9.57007 23.0849 9.67464 23.1826 9.8029 23.1826C9.93181 23.1826 10.0364 23.0849 10.0364 22.9652V20.7089C11.0151 22.3556 12.8915 23.3999 14.9278 23.3999C18.0104 23.3999 20.5183 21.0589 20.5183 18.1812C20.5183 18.0609 20.4143 17.9639 20.2854 17.9639C20.1565 17.9639 20.0526 18.0609 20.0526 18.1812Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.57047 18.3989C9.69873 18.3989 9.8033 18.3019 9.8033 18.1816C9.8033 15.544 12.1026 13.3976 14.9282 13.3976C16.8513 13.3976 18.6186 14.4168 19.49 16.0069H17.0243C16.896 16.0069 16.7914 16.1045 16.7914 16.2243C16.7914 16.3446 16.896 16.4422 17.0243 16.4422H20.053C20.1813 16.4422 20.2852 16.3446 20.2852 16.2243V13.3976C20.2852 13.2779 20.1813 13.1802 20.053 13.1802C19.9234 13.1802 19.8195 13.2779 19.8195 13.3976V15.6539C18.8409 14.0073 16.9638 12.9629 14.9282 12.9629C11.8455 12.9629 9.33765 15.3039 9.33765 18.1816C9.33765 18.3019 9.44156 18.3989 9.57047 18.3989Z' fill='%2393930C' stroke='%2393930C' stroke-width='0.6'/%3e%3c/svg%3e",Discovery:"data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.6629 11.3035C25.5391 10.8067 25.2913 10.4348 25.1674 10.0614C25.4167 9.68808 26.6554 8.1976 26.9047 7.82574C27.0286 7.70229 27.1539 7.45237 27.1539 7.0805C27.1539 6.58368 26.9047 5.96189 23.6825 2.98095C23.187 2.60758 22.4422 2.60758 22.0706 2.98095L19.7155 4.72134C19.3439 4.59789 18.9707 4.34797 18.5991 4.22451L18.1036 1.11861C17.9798 0.496825 17.4828 0 16.8634 0H12.771C12.1502 0 11.6547 0.373371 11.5308 0.995155C11.2815 2.11376 11.1592 3.23087 11.0353 4.22602C10.6637 4.34947 10.2905 4.59939 9.91893 4.72284L7.68619 2.859C7.43693 2.73555 7.19069 2.61059 6.81908 2.61059C5.7027 2.61059 2.8506 6.21332 2.8506 6.21332C2.60134 6.46173 2.47898 6.71014 2.47898 6.95855C2.47898 7.33193 2.60285 7.58034 2.8506 7.82724C3.34609 8.44903 3.96697 9.19426 4.58784 10.063C4.33859 10.4363 4.21623 10.8082 4.09235 11.1816L0.992497 11.6784C0.37162 11.8018 0 12.3002 0 12.9204V17.02C0 17.6418 0.495493 18.1386 0.992497 18.2621L4.09235 18.7589C4.21623 19.1323 4.46397 19.5041 4.58784 20.0009C4.33859 20.3743 3.09985 21.8648 2.8506 22.2367C2.72672 22.3601 2.60134 22.61 2.60134 22.9819C2.60134 23.4787 2.8506 24.1005 5.82507 26.958L5.94894 27.0815C6.44443 27.4548 7.31306 27.4548 7.5608 27.0815L9.42041 25.591V24.1005L6.93993 26.2128H6.81605L6.69218 26.0893C4.21169 23.7301 3.84007 23.1084 3.84007 22.9834C4.08933 22.61 5.45194 20.9961 5.82356 20.3743C5.94743 20.2509 5.94743 20.0009 5.82356 19.7525C5.45194 19.1308 5.20268 18.5105 5.07881 18.0121C4.95493 17.7637 4.82955 17.6388 4.58331 17.6388L1.23571 17.142V12.9189L4.70719 12.4221C4.95644 12.4221 5.07881 12.1737 5.20268 12.0487C5.45194 11.5519 5.5743 11.0536 5.82356 10.4348C5.94743 10.1864 5.94743 9.938 5.82356 9.81304C5.07881 8.69443 4.33557 7.82574 3.71469 7.0805V6.83209C4.33557 6.21031 6.44292 3.9746 6.81454 3.85114H6.93842L9.54278 5.83844C9.66665 5.96189 9.9144 5.96189 10.1637 5.83844C10.6591 5.71499 11.1562 5.46507 11.7755 5.21666C12.0248 5.0932 12.1471 4.96825 12.1471 4.59487C12.1471 4.59487 12.3964 2.35916 12.6426 1.36401C12.6426 1.36401 12.6426 1.24056 12.7665 1.24056H16.9827L17.4782 4.71833C17.4782 4.96674 17.7275 5.0917 17.8498 5.21515C18.3453 5.33861 18.8423 5.58852 19.4617 5.83694C19.711 5.96039 19.9572 5.96039 20.0826 5.83694L22.9347 3.84964C22.9347 3.84964 26.0345 6.95554 26.0345 7.0805C25.7853 7.45387 25.5391 7.82574 25.1674 8.19911C24.7958 8.69593 24.4227 9.19427 24.0511 9.68958C23.9272 9.81304 23.9272 10.063 24.0511 10.3114C24.3003 10.8082 24.5466 11.43 24.7958 12.0518C24.9197 12.3002 25.0451 12.4251 25.2913 12.4251L28.7628 13.0469V17.2699L25.2913 17.7667C25.042 17.7667 24.9197 18.0152 24.7958 18.1401C24.6719 18.6369 24.4242 19.1353 24.1749 19.754C24.0511 20.0025 24.0511 20.2509 24.1749 20.3758C24.7958 21.371 25.5391 22.2397 26.1584 22.9849V23.2333C25.6629 23.9786 23.5541 26.2143 23.0586 26.3392H22.9347L20.4542 24.3519V25.8424L22.3138 27.3329C22.5631 27.4563 22.8093 27.5813 23.0586 27.5813C24.1749 27.5813 27.027 24.1035 27.027 24.1035C27.2763 23.8551 27.3987 23.6067 27.3987 23.2348C27.3987 22.863 27.2748 22.613 27.1494 22.3661C26.5285 21.6209 25.9092 20.9991 25.4122 20.1304C25.6614 19.7571 25.7838 19.3852 25.9077 19.0118L29.0075 18.515C29.6284 18.3915 30 17.7698 30 17.2729V13.1734C29.7507 12.4281 29.3791 11.9313 28.7598 11.8064L25.6599 11.305L25.6629 11.3035Z' fill='%233F479E'/%3e%3cpath d='M12.1879 20.4815C10.2948 18.5845 9.39819 16.8973 9.39819 14.9617C9.39819 12.0535 11.8214 9.75037 14.8651 9.75037H14.9995C18.0424 9.75037 20.4665 12.0544 20.4665 14.9617L20.4662 15.0984C20.4174 16.9066 19.4092 18.7476 17.6784 20.4815L17.5076 20.6526V21.8816C17.5076 22.2047 17.2442 22.4667 16.9192 22.4667H12.9471C12.6221 22.4667 12.3587 22.2047 12.3587 21.8816V20.6526L12.1879 20.4815ZM16.3307 20.4116C16.3307 20.2572 16.3921 20.1091 16.5015 19.9995L16.843 19.6573C18.382 18.1155 19.2502 16.5302 19.2896 15.0827V14.9617C19.2896 12.7127 17.404 10.9204 14.9995 10.9204H14.8651C12.4599 10.9204 10.5751 12.7118 10.5751 14.9617C10.5751 16.5408 11.3291 17.9597 13.0234 19.6574L13.3648 19.9996C13.4742 20.1092 13.5356 20.2573 13.5356 20.4116V21.2966H16.3307V20.4116Z' fill='%233F479E'/%3e%3cpath d='M17.6214 24.1705H12.5215V25.4469H17.6214V24.1705Z' fill='%233F479E'/%3e%3cpath d='M16.3464 26.7236H13.7965V28H16.3464V26.7236Z' fill='%233F479E'/%3e%3c/svg%3e",Collection:"data:image/svg+xml,%3csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M28.5 7.5V28.5H7.5V7.5H28.5ZM28.5 4.5H7.5C5.85 4.5 4.5 5.85 4.5 7.5V28.5C4.5 30.15 5.85 31.5 7.5 31.5H28.5C30.15 31.5 31.5 30.15 31.5 28.5V7.5C31.5 5.85 30.15 4.5 28.5 4.5Z' fill='%23555F7C'/%3e%3cpath d='M21 25.5H10.5V22.5H21V25.5ZM25.5 19.5H10.5V16.5H25.5V19.5ZM25.5 13.5H10.5V10.5H25.5V13.5Z' fill='%23555F7C'/%3e%3c/svg%3e",Library:"data:image/svg+xml,%3csvg width='30' height='28' viewBox='0 0 30 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.48781 1.18445L7.56868 26.9511L1.08087 27.045L1 1.27836L7.48781 1.18445Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M16.8352 1.19299H10.2701V27.0367H16.8352V1.19299Z' stroke='%230D85CD' stroke-width='1.5'/%3e%3cpath d='M25.5244 1L29.0001 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M20.8901 1L24.3658 27.1333' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M3.51196 4.66443H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 4.66443H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M3.51196 6.97864H5.05669' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3cpath d='M12.7804 6.97864H14.3251' stroke='%230D85CD' stroke-width='1.5' stroke-linecap='square'/%3e%3c/svg%3e",Admin:tX,Developer:$se};function mCt({id:t,icon:e,type:n,iconUrl:r,appName:i,onClick:o,appListV2:a=!1,isAppGroup:s,appGroupId:l}){a=Mmt({appListV2:a,type:n}).classes;let[c,d]=Le.exports.useState(e||r||i&&hCt[i]||$se),[u,p]=Le.exports.useState(!1);let[g,f]=Le.exports.useState(null);e=Boolean(g);let h=Ie();let m=e=>{e.stopPropagation(),f(null),p(!1)};return nt.exports.jsx(he,Object.assign({title:i||"",PopperProps:{disablePortal:!0}},{children:nt.exports.jsxs("div",Object.assign({onClick:function(){o&&o(t)},className:Zhe({[a.iconButton]:"grid"===n,[a.listItem]:"list"===n,[a.switcherGrid]:"switcherGrid"===n}),"data-test":"dt-button-app-icon","data-testid":"dt-button-app-icon",onContextMenu:s?e=>{e.preventDefault(),f(e.currentTarget)}:void 0},{children:[nt.exports.jsx("div",Object.assign({className:a.image},{children:nt.exports.jsx("img",{alt:"app-icon",onError:function(){d($se)},src:c,draggable:"false",className:a.img})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:a.appName,"data-testid":"os-app-bar-panel.app-switcher.app-name"},{children:i})),nt.exports.jsxs(Pv,Object.assign({id:"basic-menu",anchorEl:g,open:e,onClose:m,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(60px, -60px)"}},{children:[nt.exports.jsx(fe,Object.assign({sx:{display:"none"},onClick:e=>{e.stopPropagation(),yse({panelId:"APPLICATION_DETAILS_PANEL",microFrontend:{name:"APPLICATION_DETAILS_PANEL",config:{applicationId:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"xlarge"}}),m(e)},"data-testid":`os-app-bar-panel.app-switcher.options-app-detail.${l}.`+t},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.application-details",defaultMessage:"Application Details",description:"Dropdown menu item that opens application details panel"})})),nt.exports.jsx(fe,Object.assign({onClick:e=>{e.stopPropagation(),f(null),p(!0)},"data-testid":`os-app-bar-panel.app-switcher.options-remove-app.${l}.`+t},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.remove-from-group",defaultMessage:"Remove from Group",description:"Dropdown menu item that removes application from group"})}))]})),nt.exports.jsx(Lm,Object.assign({open:u,maxWidth:"xs",onClose:m,"data-testid":"os-app-bar-panel.delete-app-from-group.confirmation-dialog"},{children:nt.exports.jsxs(Qm,{children:[nt.exports.jsx("div",Object.assign({className:a.dialogTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirmation-title",defaultMessage:"Delete Application",description:"Delete App from Group confirmation title"})})),nt.exports.jsxs(qm,Object.assign({sx:fCt.content},{children:[nt.exports.jsx(Jm,{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirmation-message",defaultMessage:"Are you sure you want to delete this application from the group?",description:"Delete Ap from Group confirmation message"})}),nt.exports.jsxs(Vm,Object.assign({sx:fCt.actions},{children:[nt.exports.jsx(ge,Object.assign({sx:fCt.cancelButton,onClick:m,"data-testid":"app-switcher.delete-app.cancel-btn"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.cancel-button",defaultMessage:"Cancel",description:"Delete App from Group cancel button"})})),nt.exports.jsx(ge,Object.assign({color:"primary",variant:"contained",sx:fCt.deleteButton,onClick:e=>{e.stopPropagation(),h(Dmt({source:l,appId:t.toString()})),m(e)},"data-testid":"app-switcher.delete-app.confirm-btn"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.delete-app-from-group.confirm-button",defaultMessage:"Yes, Delete",description:"Delete App from Group confirmation button"})}))]}))]}))]})}))]}))}))}let CCt=je()((e,{sortOrder:t,hasApps:n,menuIsOpen:r})=>({root:{},header:{height:"60px",position:"sticky"},groupContainer:{padding:"0 15px"},title:{fontWeight:700,padding:"15px"},groupTitle:{background:"#F9F9F9",paddingLeft:"5px",position:"relative",height:"16px","& .MuiTypography-root":{fontSize:"10px",fontWeight:700,lineHeight:"10px",position:"absolute",margin:"3px"}},filterIcon:{display:"flex",flexDirection:"column",justifyContent:"center","& svg":{transform:"asc"===t?"scaleY(-1)":"scaleY(1)",cursor:n?"pointer":"not-allowed"}},filterIconWrapper:{width:"24px",height:"24px",borderRadius:"24px",background:r?"rgba(228, 240, 252, 0.8)":"unset","& path":{fill:r?"#0C53B0":"#555F7C"},"&:hover":{background:"rgba(228, 240, 252, 0.8)","& path":{fill:"#0C53B0"}}},searchBox:{display:"flex",flexDirection:"column",justifyContent:"center","& .MuiButtonBase-root":{padding:0},"& svg":{width:"14px"},"& input":{"&::placeholder":{color:"#5C6269 !important",fontWeight:600,opacity:1}}},searchField:{borderRadius:"1em",height:"30px"},searchOutline:{borderColor:"#D5DFE9"},searchInput:{fontSize:"11px","&::placeholder":{color:"#5C6269 !important"}},sortMenu:{width:"143px"},airborne:{position:"absolute",background:"rgba(26, 140, 255, 0.9)",transform:"rotate(3.02deg)",color:"white","& *":{fontWeight:"900 !important"},"& img":{background:"white",borderRadius:"50%"}},applicationList:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 60px - 5px)",overflowY:"scroll"}})),xCt={buttonLink:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.aaaaa1",defaultMessage:"Link",description:"label of link open id connector button on profile panel"}),buttonUnlink:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.L4gr2p",defaultMessage:"Unlink",description:"label of unlink open id connector button on profile panel"}),basicInfoTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.lpZXMT",defaultMessage:"Basic Info",description:"Personal Profile: Basic info name, email etc"}),accountLinkingTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.AgbO9g",defaultMessage:"Account Linking",description:"Personal Profile: Open ID Connector Account Linking"}),settingsTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.oYYEos",defaultMessage:"Settings",description:"Profile Settings"}),activityTabLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.profile-activity",defaultMessage:"Activity",description:"Profile Activity"}),accountLinkingLabel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.JxMDBr",defaultMessage:"Link your Account",description:"label of manage basic infomation container"}),accountLinkingDescription:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.77MHtz",defaultMessage:"View your accounts from other identify providers that are linked with this account.",description:"description of manage account linking"}),unlinkDialogTitle:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.naysir",defaultMessage:"Unlink this Identity Provider?",description:"title for unlink identity provider"}),unlinkDialogContent:e=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.dwZfY7",defaultMessage:"Are you sure you want to unlink {name} from your account?",description:"content for unlink identity provider",values:{name:e||""}}),unlinkDialogCancel:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.SNjPPT",defaultMessage:"Cancel",description:"cancel for unlink identity provider"}),unlinkDialogConfirm:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.KJyVd9",defaultMessage:"Yes, Unlink",description:"confirm for unlink identity provider"}),successDialogTitle:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZaKL3e",defaultMessage:"Account Successfully linked!",description:"title for success identity provider"}),successDialogContent:e=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IP+fpM",defaultMessage:"You can now log into this account using {name}.",description:"content for success identity provider",values:{name:e||""}}),successDialogConfirm:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.1DTtvD",defaultMessage:"Okay",description:"confirm for success identity provider"}),nullState:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.u6gP99",defaultMessage:"Your account currently has no available account linking options",description:"account linking null state"}),errorState:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.KG2JIz",defaultMessage:"There was an error while loading the available account linking options",description:"account linking error state"}),retry:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IYUdD6",defaultMessage:"Retry",description:"account linking retry"}),settingsHeader:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.IIE3bM",defaultMessage:"Application Preferences",description:"account settings header"}),settingsSubHeader:()=>nt.exports.jsx(Ce,{id:"os-app-bar-panel.9xcAYc",defaultMessage:"Manage the settings of your account.",description:"account settings sub header"})};var vCt=sW(function({intl:e,selectedAppId:t,onSelectApplication:n,applications:r=[],showAppGroups:i=!1}){let[o,a]=Le.exports.useState(t),[s,l]=Le.exports.useState({}),[c,d]=Le.exports.useState(""),[u,p]=Le.exports.useState("asc");var g=0!==r.length;function f(e){a(e),n(e)}function h(e,t){return e.name.toLowerCase()>t.name.toLowerCase()?1:e.name.toLowerCase()<t.name.toLowerCase()?-1:0}Le.exports.useEffect(()=>{if(0<r.length){var e,t={};for(e of[...r].sort(h)){var n=e.name.charAt(0).toUpperCase();t[n]=t[n]?[...t[n],e]:[e]}l(t)}},[r]),Le.exports.useEffect(()=>{t!==o&&a(t)},[t,o]),e=e.formatMessage({id:"os-app-bar-panel.search.label",defaultMessage:[{type:0,value:"Search"}]});let[m,C]=Le.exports.useState(null);var x=Boolean(m);let v=e=>{(e=>{if(e!==u){p(e);e=Object.keys(s).reverse();let t={};e.forEach(e=>t[e]=s[e].reverse()),l(t)}})(e),C(null)},b=CCt({sortOrder:u,hasApps:g,menuIsOpen:x}).classes,y=(g=nt.exports.jsxs(Pv,Object.assign({id:"app-switcher.sort-menu",anchorEl:m,open:x,onClose:v},{children:[nt.exports.jsx(fe,Object.assign({onClick:()=>v("asc"),className:b.sortMenu},{children:"A - Z"})),nt.exports.jsx(fe,Object.assign({onClick:()=>v("desc"),className:b.sortMenu},{children:"Z - A"}))]})),(e,t,n)=>nt.exports.jsx(mCt,{type:"list",selected:e===o,onClick:f,iconUrl:t,id:e,appName:n,appListV2:!0}));return nt.exports.jsxs("div",Object.assign({className:b.root,"data-testid":"os-app-bar-panel.app-switcher.applications-container"},{children:[nt.exports.jsx("div",Object.assign({className:b.header},{children:nt.exports.jsxs(W,Object.assign({container:!0,spacing:2},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:5},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:b.title},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.applications-title",defaultMessage:"Applications",description:"Applications list title"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:5,className:b.searchBox},{children:nt.exports.jsx(gw,{"data-testid":"os-app-bar-panel.app-switcher.search",onChange:e=>{d(e.target.value)},placeholder:e,InputProps:{classes:{root:b.searchField,input:b.searchInput,notchedOutline:b.searchOutline},startAdornment:nt.exports.jsx(dx,Object.assign({position:"start"},{children:nt.exports.jsx(ue,{children:nt.exports.jsx(IXe,{})})}))}})})),nt.exports.jsxs(W,Object.assign({item:!0,xs:2,className:b.filterIcon},{children:[nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.sort-btn",defaultMessage:"Sort",description:"Application sort button"})},{children:nt.exports.jsx("div",Object.assign({className:b.filterIconWrapper,onClick:e=>{r.length&&C(e.currentTarget)}},{children:nt.exports.jsx("div",Object.assign({className:b.filterIcon},{children:nt.exports.jsx(A3e,{"data-testid":"os-app-bar-panel.app-switcher.sort"})}))}))})),g]}))]}))})),nt.exports.jsx("div",Object.assign({className:b.applicationList},{children:0===r.length?nt.exports.jsx("div",{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))}):nt.exports.jsx(WRe,Object.assign({droppableId:"app-list"},{children:e=>nt.exports.jsx("div",Object.assign({className:b.groupContainer},e.droppableProps,{ref:e.innerRef},{children:0<Object.keys(s).length&&Object.entries(s).map(([e,t])=>t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).length?nt.exports.jsxs("div",{children:[nt.exports.jsx("div",Object.assign({className:b.groupTitle,"data-testid":"os-app-bar-panel.app-switcher.group-title"},{children:nt.exports.jsx(pe,Object.assign({variant:"overline"},{children:e}))})),t.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())).map((e,t)=>{let{id:l=t,iconUrl:c,name:d}=e;return nt.exports.jsxs("div",Object.assign({"data-testid":"os-app-bar-panel.app-switcher.app-row"},{children:[i?nt.exports.jsx(zRe,Object.assign({draggableId:l.toString(),index:t},{children:(a,s)=>nt.exports.jsx(R2t,Object.assign({style:a.draggableProps.style,snapshot:s},{children:e=>{return t=a,n=s,e=e,r=l,i=c,o=d,nt.exports.jsx("div",Object.assign({},t.draggableProps,t.dragHandleProps,{ref:t.innerRef,className:n.isDragging?b.airborne:"",style:e},{children:y(r,i,o)}));var t,n,r,i,o}}))}),t):y(l,c,d),nt.exports.jsx(se,{})]}),l)})]},e):null)}))}))}))]}))});let bCt=je()(e=>({tabsBox:{height:"100%"},fullHeight:{height:"100%"},listContainer:{overflow:"hidden",height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll"},skeletonContainer:{position:"absolute",width:"100%",height:"100%",backgroundColor:"white"}})),yCt=je()(e=>({root:{height:"calc(100vh - 64px - 55px - 5px)",overflowY:"scroll",borderRight:"15px solid #F9F9F9",boxShadow:"0px 1px 1px #809cb7","&::-webkit-scrollbar":{display:"none"}},appTile:{overflow:"hidden"},title:{fontWeight:700,padding:"15px 15px 0 15px"},groupTitle:{fontWeight:700,padding:"15px"},helperText:{paddingLeft:"15px",fontSize:"12px",fontWeight:"bold"},noApps:{textAlign:"center",marginTop:"30px","& svg":{width:"160px",height:"160px",marginBottom:"20px"},marginBottom:"20px"},appGroup:{borderTop:"1px solid #D5DFE9"},currentLanding:{position:"relative",minHeight:"155px !important"},idleLanding:{minHeight:"10px"},runway:{minHeight:"110px",position:"absolute",background:"rgba(255, 255, 255, 0.8)",width:"94%",height:"100%",border:"1px dashed #CAD7E3",borderRadius:"4px",display:"flex",textAlign:"center",flexDirection:"column",justifyContent:"center"},landingText:{fontSize:"16px !important",fontWeight:"600 !important",color:"rgba(124, 132, 141, 1)"},airborneGroup:{height:"50px !important",background:"rgba(26, 140, 255, 0.9)",color:"white","& div":{display:"none"}},groupHandler:{display:"flex",justifyContent:"space-between","&:hover":{background:"rgba(242, 242, 242, 0.5)"}}})),ACt=je()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px","& svg":{height:"18px",cursor:"pointer"}},confirm:{height:"20px",cursor:"pointer"},newGroupApps:{marginBottom:"20px",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",height:"101px",background:"#FAFAFA",borderRadius:"4px"},landingText:{color:"rgba(156, 168, 180, 1)"},relativeContainer:{position:"relative"},fullWidthRunway:{top:0,width:"100%"}})),ICt=({apps:n,classes:r})=>{var e=Ae(AG),e=XW(e);let i=ACt().classes,t=Ie(),[o,a]=Le.exports.useState("");let s=TL("production","development")?"Please provide a name for your new App group":e({id:"os-app-bar-panel.new-app-group.missing-name",defaultMessage:[{type:0,value:"Please provide a name for your new App group"}]});return nt.exports.jsxs("div",Object.assign({className:i.root},{children:[nt.exports.jsx(gw,{value:o,onChange:e=>{a(e.target.value)},"data-testid":"os-app-bar.new-app-group.name-input-container",className:i.groupNameInput,InputProps:{endAdornment:nt.exports.jsxs(dx,Object.assign({position:"end"},{children:[nt.exports.jsx("div",Object.assign({className:i.confirm,onClick:()=>{var e;o?t(Vmt(o)):(e={content:s,severity:R.Error},t(F(e)))},"data-testid":"os-app-bar.new-app-group.save-btn"},{children:nt.exports.jsx(u2e,{})})),nt.exports.jsx("div",Object.assign({className:i.notInterested,onClick:()=>{t(Fmt())},"data-testid":"os-app-bar.new-app-group.cancel-btn"},{children:nt.exports.jsx(u0e,{})}))]}))},inputProps:{"data-testid":"os-app-bar.new-app-group.name-input"}}),nt.exports.jsx(WRe,Object.assign({droppableId:"new-group-placeholder"},{children:(e,t)=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:i.relativeContainer,style:{width:"100%"}},{children:[n.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{position:"relative",marginBottom:"15px"}},{children:n.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{padding:0,overflow:"hidden"},"data-testid":"app-switcher.new-app-group.app-tile"},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:!1,onClick:()=>{},iconUrl:t,id:e,appName:n,appListV2:!0})}),e)})})):nt.exports.jsx("div",Object.assign({className:i.newGroupApps},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:i.landingText},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.new-app-group.apps-landing",defaultMessage:"Drag Applications Here",description:"helper text to tell users where to drag apps for the new app group"})}))})),t.isDraggingOver&&n.length?nt.exports.jsx(TCt,{classes:r,rootClassName:i.fullWidthRunway}):null]}))}))]}))},wCt=({isDragging:e,className:t,groupName:n,dragHandleProps:r})=>e?nt.exports.jsx(pe,Object.assign({variant:"body2",className:t},r,{children:n})):null,jCt=je()(()=>({root:{padding:"15px"},groupNameInput:{height:"36px","& input":{width:"100% !important",height:"36px",padding:"0 0 0 15px",color:"rgba(92, 98, 105, 1)",borderRadius:"4px",border:"none"},marginBottom:"10px",width:"100% !important",background:"#F5FDFF"},notInterested:{height:"18px",cursor:"pointer"},confirm:{cursor:"pointer"},groupHandler:{display:"flex",justifyContent:"space-between",alignItems:"center","&:hover":{background:"rgba(242, 242, 242, 0.5)"}},invisibleHandler:{display:"none"},groupTitle:{fontWeight:700,padding:"15px"},handlerMenu:{height:"40px",width:"40px",marginRight:"10px"}})),SCt=({dragHandleProps:e,groupName:t,groupId:n,isExpanded:r=!0})=>{let i=Ae(oCt),o=Ie(),[a,s]=Le.exports.useState(!1),[l,c]=Le.exports.useState(""),[d,u]=Le.exports.useState(null);var p=Boolean(d);let g=()=>{u(null)};var f=jCt().classes;Le.exports.useEffect(()=>{c(t)},[]);let h=()=>{o(Bmt({edit:!0,groupId:n})),s(!0)};return nt.exports.jsx("div",Object.assign({className:a?f.root:f.groupHandler},{children:a?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(gw,{value:l,onChange:e=>{c(e.target.value)},"data-testid":`os-app-bar.app-group.${n}.name-input-container`,className:f.groupNameInput,InputProps:{endAdornment:nt.exports.jsxs(dx,Object.assign({position:"end"},{children:[nt.exports.jsx(u2e,{className:f.confirm,onClick:()=>{g(),o(Bmt({edit:!1,groupId:n,newGroupName:l})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.save-btn`}),nt.exports.jsx(u0e,{className:f.notInterested,onClick:()=>{g(),o(Bmt({edit:!1,groupId:n})),s(!1)},"data-testid":`os-app-bar.app-group.${n}.cancel-btn`})]}))},inputProps:{"data-testid":`os-app-bar.app-group.${n}.name-input`}}),nt.exports.jsx("div",Object.assign({},e))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:f.groupTitle},e,{onClick:e=>{2!==e.detail||i||h()},"data-testid":"os-app-bar-panel.app-switcher.group-name."+n},{children:t})),nt.exports.jsx(ue,Object.assign({onClick:e=>{e.preventDefault(),u(e.currentTarget)},size:"small",className:f.handlerMenu,"data-testid":"os-app-bar-panel.app-switcher.options-btn."+n},{children:nt.exports.jsx(r0e,{fontSize:"small"})})),nt.exports.jsxs(Pv,Object.assign({id:"basic-menu",anchorEl:d,open:p,onClose:g,MenuListProps:{"aria-labelledby":"basic-button"},sx:{transform:"translate(-95px, 0)"}},{children:[nt.exports.jsx(fe,Object.assign({onClick:()=>{g(),setTimeout(()=>{o(Umt(n))},100)},"data-testid":"os-app-bar-panel.app-switcher.options-toggle."+n},{children:r?nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.hide",defaultMessage:"Hide Group",description:"Hide Group dropdown menu item"}):nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.expand",defaultMessage:"Expand",description:"Expand dropdown menu item"})})),nt.exports.jsx(fe,Object.assign({onClick:h,"data-testid":"os-app-bar-panel.app-switcher.options-rename."+n},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.rename",defaultMessage:"Rename",description:"Rename dropdown menu item"})})),nt.exports.jsx(fe,Object.assign({onClick:()=>{o(Hmt(n))},"data-testid":"os-app-bar-panel.app-switcher.options-delete."+n},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-group.menu.delete",defaultMessage:"Delete",description:"Delete dropdown menu item"})}))]}))]})}))},OCt=({groupApps:e,appGroup:r,classes:i,snapshot:t,handleSelectApplication:o,currentSelected:a})=>nt.exports.jsxs(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"},"data-testid":"app-switcher.app-group."+r.id},{children:[t.isDraggingOver?nt.exports.jsx(TCt,{classes:i}):null,e.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,className:i.appTile,sx:{padding:0},"data-testid":"app-switcher.app-group.app-tile."+e},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:e===a,onClick:o,iconUrl:t,id:e,appName:n,appListV2:!0,isAppGroup:!0,appGroupId:r.id})}),e)})]})),kCt=()=>nt.exports.jsx(Le.exports.Fragment,{children:[1,2].map(e=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ye,{variant:"rectangular",width:345,height:50}),nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px"}},{children:[1,2,3].map(e=>nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{padding:0}},{children:nt.exports.jsxs(_,Object.assign({sx:{justifyContent:"center",alignItems:"center",padding:"20px 0px"}},{children:[nt.exports.jsx(ye,{sx:{m:2},variant:"circular",width:40,height:40}),nt.exports.jsx(ye,{variant:"text",sx:{fontSize:"10px"},width:30})]}))}),e))}),e)]}))}),TCt=({classes:e,rootClassName:t})=>nt.exports.jsx("div",Object.assign({className:e.runway+" "+t},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.landingText},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-switcher.app-landing",defaultMessage:"Drop Application Here",description:"Helper text to tell users where apps should be dropped"})}))})),ECt=({apps:e=[],allApps:t,onSelectApplication:n,selectedAppId:r,showAppGroups:i})=>{let o=yCt().classes,[a,s]=Le.exports.useState(r),l=Ie();function c(e){s(e),n(e)}let d=Ae(iCt),u=Ae(nCt);return nt.exports.jsxs("div",Object.assign({className:o.root,"data-testid":"app-switcher.recent-apps.container"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:o.title},{children:nt.exports.jsx(Ce,{id:"app-bar.app-switcher.recent-apps",defaultMessage:"Recent Applications",description:"Recent Application container title"})})),e.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px"}},{children:e.map((e,t)=>{var{id:t=t,iconUrl:n,name:r}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4,className:o.appTile,sx:{padding:0},"data-testid":"app-switcher.recent-apps.app-tile"},{children:nt.exports.jsx(mCt,{type:"switcherGrid",selected:t===a,onClick:c,iconUrl:n,id:t,appName:r,appListV2:!0})}),e.id)})})):nt.exports.jsxs("div",Object.assign({className:o.noApps},{children:[nt.exports.jsx(c0e,{fontSize:"large"}),nt.exports.jsx(pe,Object.assign({variant:"body2",className:o.helperText},{children:nt.exports.jsx(Ce,{id:"app-bar.app-switcher.no-recent-apps",defaultMessage:"You haven’t viewed any applications yet.",description:"No Recent Application title"})}))]})),i&&(d===vZ.loading?nt.exports.jsx(kCt,{}):d===vZ.failure?nt.exports.jsx(_6e,{onRetry:()=>l(zmt()),errorMessage:nt.exports.jsx(Ce,{id:"os-app-bar-panel.app-groups.error-message",defaultMessage:"Something went wrong while loading your application groups.",description:"application groups error state"})}):d===vZ.success&&u.length?nt.exports.jsx(NCt,{apps:e,allApps:t,userAppGroups:u,handleSelectApplication:c,currentSelected:a}):null)]}))},NCt=({userAppGroups:t,allApps:n,apps:o,handleSelectApplication:a,currentSelected:s})=>{let l=yCt().classes;return nt.exports.jsx(WRe,Object.assign({droppableId:"group-list",direction:"vertical",type:"group-list"},{children:e=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{children:[t.map((r,e)=>{let i=[];return r.apps.forEach(t=>{var e=[...n,...o].find(e=>e.id===t);e&&i.push(e)}),r.isNew?nt.exports.jsx(ICt,{apps:i,classes:l},r.id):nt.exports.jsx(zRe,Object.assign({draggableId:r.id,index:e},{children:(n,e)=>nt.exports.jsxs("div",Object.assign({className:e.isDragging?l.airborneGroup:l.appGroup,ref:n.innerRef},n.draggableProps,{children:[nt.exports.jsx(wCt,{isDragging:e.isDragging,className:l.groupTitle,dragHandleProps:n.dragHandleProps,groupName:r.groupName}),nt.exports.jsx(WRe,Object.assign({droppableId:r.id},{children:(e,t)=>nt.exports.jsxs("div",Object.assign({ref:e.innerRef},e.droppableProps,{className:t.isDraggingOver?l.currentLanding:l.idleLanding},{children:[nt.exports.jsx(SCt,{groupName:r.groupName,dragHandleProps:n.dragHandleProps,groupId:r.id,isExpanded:r.isExpanded}),t.isDraggingOver&&!i.length?nt.exports.jsx(W,Object.assign({container:!0,sx:{paddingLeft:"10px",position:"relative",marginBottom:"15px",minHeight:"110px"}},{children:nt.exports.jsx(TCt,{classes:l})})):null,nt.exports.jsx(B6,Object.assign({in:(r.isExpanded||void 0===r.isExpanded)&&0<i.length,timeout:"auto",unmountOnExit:!0},{children:nt.exports.jsx(OCt,{groupApps:i,classes:l,snapshot:t,handleSelectApplication:a,currentSelected:s,appGroup:r})}))]}))}))]}),r.id)}),r.id)}),e.placeholder]}))}))};function MCt({selectedAppId:e,onChangeTab:t,recentApplist:n=[],applications:r=[],onClickApp:i,showAppGroups:o=!1}){var a=bCt().classes,s=Ae(AG);let l=Ae(nCt)||[];s=XW(s);let c=Ie(),[d,u]=Le.exports.useState(0===n.length?0:n.length<4?1:2),[p,g]=(Le.exports.useEffect(()=>{var e=0===n.length?0:n.length<4?1:2;u(e)},[n]),Le.exports.useState(e));function f(e){g(e),null!=t&&t(e),null!=i&&i(e)}Le.exports.useEffect(()=>{e!==p&&g(e)},[e,p]);let h=TL("production","development")?"This application has already been added to the group":s({id:"os-app-bar-panel.user-app-groups.duplicate-app-error",defaultMessage:[{type:0,value:"This application has already been added to the group"}]});Le.exports.useEffect(()=>{o&&c(zmt())},[c]);return nt.exports.jsx(wXe,Object.assign({modules:[{id:"user-app-group",reducerMap:{[Pmt]:Zmt},sagas:[gCt],initialActions:[]}]},{children:nt.exports.jsx($De,Object.assign({onDragEnd:r=>{if(o){let{destination:t,draggableId:n,type:e}=r;"group-list"===e?(r=l.find(e=>e.id===n))&&t&&c(Rmt({groupId:n,newPriority:t.index,prevPriority:r.priority})):((null==(r=l.find(e=>e.id===(null==t?void 0:t.droppableId)))?void 0:r.apps)||[]).find(e=>e===n)?(r={content:h,severity:R.Error},c(F(r))):t&&c(Lmt({destination:null==t?void 0:t.droppableId,appId:n}))}}},{children:nt.exports.jsx("div",Object.assign({className:a.fullHeight},{children:nt.exports.jsxs(W,Object.assign({container:!0,className:a.fullHeight},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:nt.exports.jsx(ECt,{apps:n,allApps:r,onSelectApplication:f,selectedAppId:null,showAppGroups:o})})),nt.exports.jsx(W,Object.assign({item:!0,xs:6,className:a.fullHeight},{children:nt.exports.jsx("div",{children:nt.exports.jsx(vCt,{title:s({id:"os-app-bar-panel.name.moreApps",defaultMessage:[{type:0,value:"More Applications"}]}),type:"More",applications:r,onSelectApplication:f,selectedAppId:null,row:d,showAppGroups:o})})}))]}))}))}))}))}let PCt=je()(e=>({root:{width:"100%",height:"calc(100% - 30px)"},tabs:{margin:e.spacing(6)},tabPanels:{width:"100%",height:"calc(100% - 80px)"},logRoot:{padding:e.spacing(0,6)},logHeader:{display:"flex",justifyContent:"space-between"},logTitleText:{paddingTop:"4px"},logContent:{marginTop:"12px"},overviewRoot:{padding:e.spacing(0,6),height:"100%"},overviewHeader:{display:"flex",justifyContent:"space-between"},overviewTitleText:{fontWeight:600},overviewContent:{width:"100%",height:"calc(100% - 50px)",display:"flex",flexDirection:"column",overflowY:"auto"},overviewLineChart:{padding:e.spacing(6,0),flex:1},overviewPieChart:{marginTop:0}})),LCt=[{value:"all",title:"View Current Week"},{value:"no data",title:"View Current Month"}];function DCt(){var e=PCt().classes;let[t,n]=Le.exports.useState("all");return nt.exports.jsxs(be,Object.assign({className:e.overviewRoot,"data-testid":"performance-monitor-overview"},{children:[nt.exports.jsxs(be,Object.assign({className:e.overviewHeader},{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:e.overviewTitleText},{children:"CPU Load"})),nt.exports.jsx(Khe,{data:LCt,filter:t,onFilter:e=>{n(e.target.value)}})]})),nt.exports.jsx(be,{className:e.overviewContent})]}))}let RCt=je()(e=>({table:{minWidth:650},SdkTableCellData:{fontSize:12,color:"#000"},SdkTableCellHeader:{fontSize:12,color:"#9CA8B4",borderBottom:"none",paddingBottom:0},SdkTableCellAvatar:{width:"32px",padding:e.spacing(3,0,3,1)},smallAvatar:{width:32,height:32},SdkTableCellStatus:{color:"#219653",textTransform:"capitalize"},SdkTableCellStatusDeactived:{color:"#8D0707",textTransform:"capitalize"}}));function FCt({columns:t=[],data:e=[]}){let r=RCt().classes;return nt.exports.jsx("div",{children:nt.exports.jsxs(RA,Object.assign({className:r.table,"aria-label":"simple table"},{children:[nt.exports.jsx(tI,{children:nt.exports.jsx(LI,{children:t.map((e,t)=>nt.exports.jsx(me,Object.assign({classes:{root:r.SdkTableCellHeader},align:e.align},{children:e.label}),t))})}),nt.exports.jsx(zA,{children:e.map((n,e)=>nt.exports.jsx(LI,{children:t.map((e,t)=>"avatar"===e.value?nt.exports.jsx(me,Object.assign({padding:"checkbox",classes:{root:Zhe(r.SdkTableCellData,r.SdkTableCellAvatar)},align:"right"},{children:nt.exports.jsx(W8,{alt:"",src:n[e.value],className:r.smallAvatar})}),t):"status"===e.value?nt.exports.jsx(me,Object.assign({padding:"checkbox",classes:{root:r.SdkTableCellData},align:e.align},{children:nt.exports.jsx("span",Object.assign({className:"deactived"===n[e.value]||"failed"===n[e.value]?r.SdkTableCellStatusDeactived:r.SdkTableCellStatus},{children:n[e.value]}))}),t):nt.exports.jsx(me,Object.assign({classes:{root:r.SdkTableCellData},align:e.align},{children:n[e.value]}),t))},e))})]}))})}let VCt=[1,2,3,4,5,6,7,8].map(e=>[{name:"LogoGrab - V3F - "+e,engineId:"0006676754"+e,jobId:"20104106_6WnM4rGlXj",status:"Pending",duration:"1s",appName:"Attribute"}]),BCt=[{value:"name",label:"Engine Name",align:"left"},{value:"engineId",label:"Engine ID",align:"left"},{value:"jobId",label:"Job ID",align:"left"},{value:"status",label:"Status",align:"left"},{value:"duration",label:"Time",align:"left"},{value:"appName",label:"App Name",align:"left"}],HCt=[{value:"all",title:"View All Applications"},{value:"no data",title:"Active Applications"}];function UCt(){var e=PCt().classes;let[t,n]=Le.exports.useState("all");return nt.exports.jsxs(be,Object.assign({className:e.logRoot,"data-testid":"performance-monitor-logs"},{children:[nt.exports.jsxs(be,Object.assign({className:e.logHeader},{children:[nt.exports.jsx(Khe,{data:HCt,filter:t,onFilter:e=>{n(e.target.value)}}),nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.logTitleText},{children:"Last 24 Hours"}))]})),nt.exports.jsx(be,Object.assign({className:e.logContent},{children:nt.exports.jsx(FCt,{columns:BCt,data:VCt})}))]}))}let zCt=()=>nt.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-resources"},{children:"Resources"}));function _Ct(){return nt.exports.jsx("div",Object.assign({"data-testid":"performance-monitor-errors"},{children:"Performance Errors"}))}let qCt=[{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.xgDIjO",defaultMessage:"Overview",description:"tab label: Overview"}),disabled:!1},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.NXAxMt",defaultMessage:"Logs",description:"tab label: Logs"}),disabled:!1},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Mxysi8",defaultMessage:"Resources",description:"tab label: Resources"}),disabled:!0},{label:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Qj95LF",defaultMessage:"Errors",description:"tab label: Errors"}),disabled:!0}];function WCt(){var e=PCt().classes;let[t,n]=Le.exports.useState(0);return nt.exports.jsxs(be,Object.assign({className:e.root,"data-testid":"performance-monitor"},{children:[nt.exports.jsx(be,Object.assign({className:e.tabs},{children:nt.exports.jsx(C6e,{selectedId:t,onChangeTab:e=>{n(Number(e))},tabsList:qCt})})),nt.exports.jsxs(be,Object.assign({className:e.tabPanels},{children:[nt.exports.jsx(x6e,Object.assign({value:t,index:0},{children:nt.exports.jsx(DCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:1},{children:nt.exports.jsx(UCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:2},{children:nt.exports.jsx(zCt,{})})),nt.exports.jsx(x6e,Object.assign({value:t,index:3},{children:nt.exports.jsx(_Ct,{})}))]}))]}))}let ZCt=je()(e=>({root:{display:"flex",justifyContent:"center"},changeAvatarIcon:{color:"#121212 !important",backgroundColor:"#ffffff !important",padding:e.spacing(1.2)+" !important","&:hover":{backgroundColor:"#ffffff !important"}},avatarLarge:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"84px !important",height:"84px !important",border:"5px solid #E8E8E8"}})),GCt=({avatar:e,sortName:t,onEditAvatarClick:n,loadingStatus:r})=>{var i=ZCt().classes;return nt.exports.jsx("div",{children:nt.exports.jsx("div",Object.assign({className:i.root},{children:nt.exports.jsx(u7,Object.assign({"data-test":"dt-button-upload-avatar-icon",overlap:"circular","data-testid":"dt-button-upload-avatar-icon",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:nt.exports.jsx(ue,Object.assign({color:"primary","aria-label":"upload picture",className:i.changeAvatarIcon,onClick:()=>{n()},"data-test":"app-bar-update-avatar",size:"large","data-testid":"app-bar-update-avatar",sx:{"& svg":{color:"#8b8b8b"},"&:hover svg":{color:"#0C53B0"}}},{children:nt.exports.jsx(Cue,{sx:{fontSize:"16px"}})}))},{children:"loading"===r?nt.exports.jsx(mm,{}):e?nt.exports.jsx(W8,{"data-test":"dt-user-avatar-image",src:e,className:i.avatarLarge}):nt.exports.jsx(W8,Object.assign({className:i.avatarLarge},{children:null==t?void 0:t.toUpperCase()}))}))}))})},JCt=je()(e=>({container:{marginTop:e.spacing(4),padding:e.spacing(4,4),textAlign:"center",border:"0.5px solid #D5DFE9",borderRadius:e.spacing(2)},text:{marginTop:e.spacing(3)},icon:{display:"inline !important"}})),KCt=()=>{var e=JCt().classes;return nt.exports.jsxs("div",Object.assign({className:e.container},{children:[nt.exports.jsx(ex,Object.assign({className:e.icon},{children:nt.exports.jsx(d0e,{fontSize:"large"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:e.text},{children:xCt.nullState()})),nt.exports.jsx(be,{mb:9})]}))},YCt=({onRetry:e})=>{var t=JCt().classes;return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(ex,Object.assign({className:t.icon},{children:nt.exports.jsx(zue,{fontSize:"large"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:t.text,"data-test":"account-linking-error-message"},{children:xCt.errorState()})),nt.exports.jsx(be,{mt:4}),nt.exports.jsx(ge,Object.assign({variant:"text",size:"large","data-test":"account-linking-retry-btn",onClick:e},{children:xCt.retry()}))]}))};var QCt=je()(e=>({accountLinkingLabel:{fontWeight:"normal",userSelect:"none"},openIdLogo:{width:e.spacing(5),height:e.spacing(5),backgroundColor:"#ffffff",color:"#555F7C"},listAvatar:{minWidth:"45px"},openIdContainer:{marginTop:e.spacing(3)},openIdItem:{padding:e.spacing(3)+"px 0px"},openIdTextContainer:{marginLeft:e.spacing(3.5),display:"inline-block",verticalAlign:"top"},secondaryAction:{right:"0"},linkBtn:{textTransform:"capitalize"},linkIcon:{marginRight:e.spacing(1),color:e.palette.primary.main},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)},displayNone:{display:"none"},displayInlineBlock:{display:"inline-block"}}));let XCt=({isConnected:e,onLink:t,onUnlink:n})=>{var r=QCt().classes;return nt.exports.jsx("div",{children:e?nt.exports.jsx(ge,Object.assign({className:r.linkBtn+" "+r.displayNone,variant:"text","data-test":"account-linking-unlink-btn",onClick:n},{children:xCt.buttonUnlink()})):nt.exports.jsxs(ge,Object.assign({variant:"outlined",color:"primary",className:r.linkBtn,"data-test":"account-linking-link-btn",onClick:t},{children:[nt.exports.jsx(F2t,{className:r.linkIcon}),xCt.buttonLink()]}))})};function $Ct({openIdItems:i,onOpenUnlinkModal:o,onClickOpenIdUrl:a,isOpenIdConnected:s}){let l=QCt().classes;return nt.exports.jsx(Mx,{children:i.map((e,t)=>{var{name:n,loginButtonStyle:r}=e,r=null==r?void 0:r.btnLogo;return nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsxs(Jx,Object.assign({className:l.openIdItem},{children:[nt.exports.jsx(Xx,Object.assign({className:l.listAvatar},{children:nt.exports.jsx(W8,Object.assign({className:l.openIdLogo,src:r},{children:nt.exports.jsx(v0e,{})}))})),nt.exports.jsx(lv,{primary:nt.exports.jsx(he,Object.assign({title:25<n.length?n:"",placement:"bottom-end"},{children:nt.exports.jsx(pe,Object.assign({variant:"body1",className:l.accountLinkingLabel},{children:25<n.length?n.substring(0,25)+"...":n}))}))}),nt.exports.jsx(_x,Object.assign({className:l.secondaryAction},{children:nt.exports.jsx(XCt,{isConnected:s(e.connectId),onLink:()=>a(e),onUnlink:()=>o(e)})}))]})),t!==i.length-1&&nt.exports.jsx(se,{})]})})})}let ext=()=>{var e=QCt().classes;return nt.exports.jsxs(Jx,Object.assign({className:e.openIdItem},{children:[nt.exports.jsx(Xx,Object.assign({className:e.listAvatar},{children:nt.exports.jsx(ye,{variant:"circular",width:25,height:25})})),nt.exports.jsx(lv,{children:nt.exports.jsx(ye,{variant:"text",width:150,height:21})}),nt.exports.jsx(_x,Object.assign({className:e.secondaryAction},{children:nt.exports.jsx(ye,{variant:"rectangular",width:87,height:35})}))]}))},txt=()=>nt.exports.jsxs(Mx,{children:[nt.exports.jsx(ext,{}),nt.exports.jsx(se,{}),nt.exports.jsx(ext,{}),nt.exports.jsx(se,{}),nt.exports.jsx(ext,{})]}),nxt="openId",rxt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.openIdConnectors,ixt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.connectedOpenIds,oxt=e=>null==(e=null==e?void 0:e[nxt])?void 0:e.status,axt=`aiware/${nxt}/get open id connectors`,sxt=`aiware/${nxt}/get open id connectors success`,lxt=`aiware/${nxt}/get connected open id connectors success`,cxt=`aiware/${nxt}/get open id connectors error`;function dxt(){return{type:axt}}function uxt(e){return{type:cxt,payload:{message:e}}}let pxt=({openIdConnectors:e})=>{let t=Ie(),[n,r]=Le.exports.useState(!1),[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(null);let[l,c]=Le.exports.useState({}),[d,u]=Le.exports.useState(),p=Ae(oxt)||"",g=Ae(ixt)||[];var f=QCt().classes;let h=e=>{c(e),r(!0)};var m=()=>{r(!1)},C=()=>{o(!1)};let x=()=>{t(dxt())},v=(GO(()=>{t(dxt())},a),e=>{c(e);e=window.open(e.loginUrl);u(e),s(2e3)}),b=Le.exports.useCallback(t=>g.some(e=>e.connectId===t),[g]);Le.exports.useEffect(()=>{""!==l.connectId&&null!==a&&b(l.connectId)&&(s(null),null!=d&&d.close(),o(!0))},[b,t]);return nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:f.accountLinkingLabel,"data-test":"account-linking-label"},{children:xCt.accountLinkingLabel()})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:xCt.accountLinkingDescription()})),"pending"===p?nt.exports.jsx(txt,{}):"failure"===p?nt.exports.jsx(YCt,{onRetry:x}):0===e.length?nt.exports.jsx(KCt,{}):nt.exports.jsx($Ct,{openIdItems:e,onOpenUnlinkModal:h,onClickOpenIdUrl:v,isOpenIdConnected:b}),nt.exports.jsxs(Lm,Object.assign({open:n,maxWidth:"xs",onClose:m,"aria-labelledby":"unlink-dialog-title","aria-describedby":"unlink-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"unlink-dialog-title","data-test":"account-linking-unlink-dialog-title",className:f.dialogTitle},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:f.dialogTitleText},{children:xCt.unlinkDialogTitle()}))})),nt.exports.jsx(qm,Object.assign({className:f.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"unlink-dialog-description"},{children:xCt.unlinkDialogContent(l.name)}))})),nt.exports.jsxs(Vm,Object.assign({className:f.dialogAction},{children:[nt.exports.jsx(ge,Object.assign({onClick:m,variant:"text",size:"large",className:f.linkBtn,"data-test":"account-linking-unlink-dialog-cancel-btn"},{children:xCt.unlinkDialogCancel()})),nt.exports.jsx(ge,Object.assign({onClick:m,size:"large",variant:"contained",color:"primary",className:f.linkBtn,"data-test":"account-linking-unlink-dialog-confirm-btn"},{children:xCt.unlinkDialogConfirm()}))]}))]})),nt.exports.jsxs(Lm,Object.assign({open:i,maxWidth:"xs",onClose:C,"aria-labelledby":"success-dialog-title","aria-describedby":"success-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"success-dialog-title",className:f.dialogTitle,"data-test":"account-linking-success-dialog-title"},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:f.dialogTitleText},{children:xCt.successDialogTitle()}))})),nt.exports.jsx(qm,Object.assign({className:f.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"success-dialog-description"},{children:xCt.successDialogContent(l.name)}))})),nt.exports.jsx(Vm,Object.assign({className:f.dialogAction},{children:nt.exports.jsx(ge,Object.assign({onClick:C,size:"large",variant:"contained",color:"primary",className:f.linkBtn,"data-test":"account-linking-success-dialog-confirm-btn"},{children:xCt.successDialogConfirm()}))}))]}))]})};var gxt=je()(e=>({personalProfileContainer:{overflowY:"auto"},firstBox:{paddingTop:e.spacing(6),textAlign:"center",borderBottom:"0.5px solid "+e.palette.divider},loggedBox:{fontWeight:400,paddingTop:e.spacing(2),paddingBottom:e.spacing(5)},email:{color:e.palette.primary.main},logoutBox:{paddingBottom:e.spacing(8)},btnLogin:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px",padding:e.spacing(1,7)},secondBox:{padding:e.spacing(5,6),"& > div":{height:"auto !important"}},headerBox:{display:"flex"},editIconBox:{margin:e.spacing(0,-2.4,0,0)},descBox:{fontSize:"14px",color:e.palette.secondary.main},formBox:{marginTop:e.spacing(4)},formItem:{borderBottom:"0.5px solid "+e.palette.divider,marginBottom:e.spacing(4)},formItemPw:{marginBottom:e.spacing(4)+" !important"},titleItem:{color:e.palette.text.disabled,marginBottom:e.spacing(2),cursor:"default"},valueItem:{fontWeight:"normal",color:e.palette.text.secondary,marginBottom:e.spacing(2)},disabledText:{opacity:.6},lastUpdate:{color:"#9CA8B4"},reset:{color:e.palette.primary.main,opacity:.9,marginTop:"35px",cursor:"pointer"},passwordBox:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconResetPw:{margin:"-18px -12px 0 0"},textField:{marginLeft:0,marginRight:0,marginTop:0,marginBottom:"30px",width:"100%"},actionForm:{padding:0,marginBottom:e.spacing(4)},inputBase:{padding:e.spacing(3.4,2.8)},notchedOutline:{"& legend":{height:"16px"}},btnAction:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},btnSave:{marginLeft:e.spacing(1.6)},btnActionCancel:{color:e.palette.secondary.main},pwResetTitle:{color:"#D43060 !important"},pwResetDes1:{marginBottom:"20px"},mainTitleText:{color:e.palette.text.secondary,userSelect:"none",fontSize:"18px",lineHeight:"23px",letterSpacing:"0.25px",textTransform:"uppercase"},contentUserView:{height:"100%",textAlign:"left",position:"relative"},headerDrawer:{padding:e.spacing(3,6),display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider},contentEditAvatar:{padding:e.spacing(6)},areaUpload:{background:e.palette.background.default,textAlign:"center",height:"300px",border:"1px solid "+e.palette.divider,boxSizing:"border-box",borderRadius:"4px",padding:e.spacing(10)},descDrag:{fontSize:"16px",color:"#828282",marginBottom:e.spacing(4)},descDrag2:{color:"#828282",margin:e.spacing(4,0)},btnSelectPhoto:{textTransform:"capitalize",fontSize:"14px",lineHeight:"19px"},recentlyBox:{marginTop:e.spacing(4)},recentlyText:{margin:e.spacing(2,0)},imgRecently:{width:"113px",height:"113px",background:"#C4C4C4",borderRadius:"4px"},imgRecentlyRow:{display:"flex",justifyContent:"space-between",marginBottom:"20px"},resetBiometric:{marginTop:e.spacing(7)},actionButton:{},inputFile:{display:"none !important"},imageGrid:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(4)},dragging:{filter:"blur(2px)"},currentlyLoggedIn:{fontWeight:"normal",color:e.palette.info.main,lineHeight:e.spacing(3.8),display:"flex",flexDirection:"column",cursor:"default"},manageBasicInfoLabel:{fontWeight:"normal",cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& .MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},editProfilePictureContainer:{height:"calc(100vh - 60px)",display:"flex",flexDirection:"column",position:"relative"},editProfilePictureFooterButtons:{right:"30px",bottom:"30px",position:"absolute"}})),fxt=je()(e=>({settingsHeader:{fontWeight:"normal",cursor:"default"},topMargin:{marginTop:"30px"},fullWidth:{width:"100%"},inputLabel:{fontFamily:"Nunito",fontWeight:300,display:"block",fontSize:14,color:"#5C6269",marginBottom:6},disclaimerText:{fontWeight:400,display:"block",fontSize:12,color:"#9CA8B4",marginTop:12}}));let hxt=({onPreferredLanguageChange:t,selectedLanguage:e})=>{let[n,r]=Le.exports.useState("");var i=fxt().classes,o=(Le.exports.useEffect(()=>{r(e)},[e]),GW.map(({locale:e,name:t})=>({value:e,name:t})));return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:i.settingsHeader},{children:xCt.settingsHeader()})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:xCt.settingsSubHeader()})),nt.exports.jsxs(pC,Object.assign({className:i.fullWidth+" "+i.topMargin},{children:[nt.exports.jsx("label",Object.assign({className:i.inputLabel,htmlFor:"personal-profile-settings-preferred-language"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.preferredLanguage",defaultMessage:"Preferred Language",description:"Language selection label"})})),nt.exports.jsx(Gb,Object.assign({id:"personal-profile-settings-preferred-language",className:""+i.fullWidth,value:n,onChange:function(e){e=e.target.value,r(e),t(e)}},{children:null==o?void 0:o.map(e=>nt.exports.jsx(fe,Object.assign({value:null==e?void 0:e.value},{children:null==e?void 0:e.name})))})),nt.exports.jsx(pe,Object.assign({className:i.disclaimerText,variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.preferredLanguageDisclaimer",defaultMessage:"Not all products may support your preferred language selection. If you choose a primary language that isn't available, you may not see it reflected in the product you are currently viewing.",description:"Disclaimer text for preferred language"})}))]}))]})},mxt=({currentUser:e,handleResetBiometric:t,handleResetPassword:n,handleLogout:r,handleUpdateProfile:i,handleUploadAvatar:o,avatarHistory:a=[],enableResetBiometric:s=!1,loadingStatus:l})=>{let c,d,u="EDIT_PROFILE_PICTURE";var p=gxt().classes;let g=Ie();var f=Ae(uG),f=null==f?void 0:f.scimConnectId,h=["us-fed-1","us-fed-2"].find(e=>window.location.href.includes(e)),m=Ae(rxt)||[],C=m.some(e=>e.required),h=Ae(RG)||h||f||C||!1,f=Ae(AG)||"en";let[x,v]=Le.exports.useState({firstName:"",lastName:"",phoneNumber:"",email:""}),[b,y]=Le.exports.useState({firstName:"",lastName:"",phoneNumber:""}),[A,I]=Le.exports.useState(!1),[w,j]=Le.exports.useState(null),[S,O]=Le.exports.useState(!1),[k,T]=Le.exports.useState(!1),[E,N]=Le.exports.useState(0);var C=Ae(n6t),M=XW(f),P=(Le.exports.useEffect(()=>{e&&L(e)},[e]),Le.exports.useEffect(()=>{g(dxt())},[g]),[{label:xCt.basicInfoTabLabel(),disabled:!1,id:"Basic Info"},{label:xCt.accountLinkingTabLabel(),disabled:!1,id:"Account Linking"},{label:xCt.activityTabLabel(),disabled:!1,id:"Activity"},{label:xCt.settingsTabLabel(),disabled:!1,id:"Settings"}]);let L=e=>{var{firstName:e,lastName:t,imageUrl:n,userSettings:r}=e,r=null==r?void 0:r.find(e=>"phoneNumber"===e.key);v({firstName:e||"",lastName:t||"",phoneNumber:(null==r?void 0:r.value)||"",email:""}),n&&j(n)};var R=Le.exports.useCallback(()=>{null!=e&&e.email&&(O(!1),n(null==e?void 0:e.email))},[e,n]);var D=n=>e=>{let t=e.target.value;v(e=>Object.assign(Object.assign({},e),{[n]:t})),y(e=>Object.assign(Object.assign({},e),{[n]:""}))};let F=()=>{g(wse(u))},V=e=>{o(e),setTimeout(()=>{g(wse(u))},500)};C=[r6t.LOGGING_OUT,r6t.LOGGED_OUT].includes(C);return nt.exports.jsxs("div",Object.assign({className:p.personalProfileContainer},{children:[nt.exports.jsxs("div",Object.assign({className:p.firstBox},{children:[nt.exports.jsx(GCt,{avatar:w,sortName:""+((null==(c=x.firstName)?void 0:c.substr(0,1))||"")+((null==(d=x.lastName)?void 0:d.substr(0,1))||""),onEditAvatarClick:()=>{var e={name:"EDIT_PROFILE_PICTURE",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE",onClose:F,onSaveAvatar:V,avatarHistory:a}},t={panelId:u,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,withTab:!1,marginStart:490,width:450,siblingPanelId:"PERSONAL_PANEL",parentPanelId:"PERSONAL_PANEL",dimmed:0,dimmedStatus:"dimParent"};g(yse({panelId:u,microFrontend:e,panelConfig:t}))},loadingStatus:l}),nt.exports.jsx("div",Object.assign({className:p.loggedBox},{children:nt.exports.jsxs(pe,Object.assign({variant:"body2",className:p.currentlyLoggedIn},{children:[nt.exports.jsx(Ce,{id:"os-app-bar-panel.ch1heq",defaultMessage:"Currently logged in as:",description:"personal profile panel currently logged in label"})," ",nt.exports.jsx("span",Object.assign({"data-test":"Currently-logged-in-as-email",className:p.email},{children:null==e?void 0:e.email}))]}))})),nt.exports.jsx("div",Object.assign({className:p.logoutBox},{children:nt.exports.jsx(ije,Object.assign({onClick:r,variant:"outlined",color:"primary","data-test":"dt-button-logout",className:p.btnLogin,loading:C},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.bRcFCr",defaultMessage:"Logout",description:"label of logout button on profile panel"})}))})),nt.exports.jsx("div",Object.assign({className:p.tabsParent},{children:nt.exports.jsx(C6e,{selectedId:E,onChangeTab:e=>{N(e)},tabsList:P})}))]})),nt.exports.jsxs("div",Object.assign({className:p.secondBox},{children:[nt.exports.jsx(x6e,Object.assign({value:E,index:0},{children:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.headerBox},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.manageBasicInfoLabel},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.5oScQa",defaultMessage:"Manage Your Basic Information",description:"label of manage basic infomation container"})})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.DjVGBt",defaultMessage:"Basic info, like your name and photo, that you use in your account.",description:"description of manage basic infomation container"})}))]}),nt.exports.jsx("div",Object.assign({className:p.editIconBox},{children:!A&&nt.exports.jsx(ue,Object.assign({id:"button-edit",onClick:()=>{T(!1),O(!1),I(!0)},size:"large"},{children:nt.exports.jsx("img",{src:Qse,alt:""})}))}))]})),nt.exports.jsxs("div",Object.assign({className:p.formBox},{children:[A?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(gw,{id:"firstName",label:M({id:"os-app-bar-panel.firstName",defaultMessage:[{type:0,value:"First Name"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.firstName,onChange:D("firstName"),margin:"normal",error:""!==b.firstName,helperText:b.firstName,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}}),nt.exports.jsx(gw,{id:"lastName",label:M({id:"os-app-bar-panel.lastName",defaultMessage:[{type:0,value:"Last Name"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.lastName,onChange:D("lastName"),margin:"normal",error:""!==b.lastName,helperText:b.lastName,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}}),nt.exports.jsx(gw,{id:"phoneNumber",label:M({id:"os-app-bar-panel.phone",defaultMessage:[{type:0,value:"Phone"}]}),variant:"outlined",className:p.textField,value:null==x?void 0:x.phoneNumber,onChange:D("phoneNumber"),margin:"normal",error:""!==b.phoneNumber,helperText:b.phoneNumber,InputProps:{classes:{input:p.inputBase,notchedOutline:p.notchedOutline}}})]}),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{e&&L(e),I(!1)},color:"primary",id:"button-cancel-edit",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.qpPFGp",defaultMessage:"Cancel",description:"label of cancel button on profile panel"})})),nt.exports.jsx(ge,Object.assign({onClick:function(){(()=>{let e=!0;return x.firstName||(y(Object.assign(Object.assign({},b),{firstName:"This field is required."})),e=!1),x.lastName||(y(Object.assign(Object.assign({},b),{lastName:"This field is required."})),e=!1),x.phoneNumber&&!/^\+?(\d){6,}$/.test(x.phoneNumber.toLowerCase())&&(y(Object.assign(Object.assign({},b),{phoneNumber:"Invalid phone number."})),e=!1),e})()&&(i(x),I(!1))},"data-test":"button-save-edit","data-testid":"button-save-edit",color:"primary",variant:"contained",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.C1oyBr",defaultMessage:"Save",description:"label of save button on profile panel"})}))]}))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.a5aLpI",defaultMessage:"Name",description:"label of name field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-name",variant:"body1",className:p.valueItem},{children:`${(null==x?void 0:x.firstName)||""} `+((null==x?void 0:x.lastName)||"")}))]})),(null==x?void 0:x.phoneNumber)&&nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.73xPqY",defaultMessage:"Phone",description:"label of phone field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-phone",variant:"body1",className:p.valueItem},{children:null==x?void 0:x.phoneNumber}))]}))]}),nt.exports.jsxs("div",Object.assign({className:p.formItem},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.zieKdP",defaultMessage:"Email",description:"label of email field on profile panel"})})),nt.exports.jsx(pe,Object.assign({"data-test":"profile-panel-email",variant:"body1",className:Zhe(p.valueItem,p.disabledText)},{children:null==e?void 0:e.email}))]})),S?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:p.pwResetTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.I7feCi",defaultMessage:"Password Reset",description:"reset password label on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.pwResetDes1},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Zcj+4v",defaultMessage:"Veritone will send a reset password link via the email on your account.",description:"reset password description on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]}),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{O(!1)},color:"primary","data-test":"button-cancel-reset-password","data-testid":"button-cancel-reset-password",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({onClick:R,"data-test":"button-reset-password","data-testid":"button-reset-password",color:"primary",variant:"contained",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):nt.exports.jsxs(nt.exports.Fragment,{children:[!h&&nt.exports.jsxs("div",Object.assign({className:Zhe(p.formItem,p.formItemPw)},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.titleItem},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.uIEJAQ",defaultMessage:"Password",description:"label of pasword field on profile panel"})})),nt.exports.jsxs("div",Object.assign({className:p.passwordBox},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.valueItem},{children:"********"})),!h&&nt.exports.jsx(ue,Object.assign({id:"btn-click-pw-reset",className:p.iconResetPw,onClick:()=>{T(!1),O(!0),I(!1)},size:"large"},{children:nt.exports.jsx("img",{src:Xse,alt:""})}))]}))]})),nt.exports.jsx("div",{children:nt.exports.jsxs(pe,Object.assign({variant:"subtitle1",className:p.lastUpdate},{children:[nt.exports.jsx(Ce,{id:"os-app-bar-panel.qTqazR",defaultMessage:"Last updated",description:"last updated text label text on profile panel"})," ",(null!=e&&e.lastUpdated?wmt.fromISO(null==e?void 0:e.lastUpdated):wmt.local()).toFormat("LLL dd, yyyy")]}))})]})]})),k?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs("div",Object.assign({className:p.resetBiometric},{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:p.pwResetTitle},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.+DTt+G",defaultMessage:"Biometric Reset",description:"label of reset biometric container on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body1",className:p.pwResetDes1},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.nzzfrY",defaultMessage:"Your Biometric Profile will be reset.",description:"description of reset biometric container on profile panel"})})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.kk8TY8",defaultMessage:"Would you like to continue?",description:"confirm message of reset biometric on profile panel"})}))]})),nt.exports.jsxs(Vm,Object.assign({className:p.actionForm},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{T(!1)},"data-test":"button-cancel-reset-biometric",color:"primary",className:Zhe(p.btnAction,p.btnActionCancel)},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{T(!1),t()},color:"primary",variant:"contained","data-test":"button-reset-biometric",className:p.btnAction},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.ZXvsuR",defaultMessage:"Reset",description:"the label of reset button"})}))]}))]}):!S&&s&&nt.exports.jsx("div",Object.assign({id:"click-reset-biometric",onClick:()=>{T(!0),O(!1),I(!1)}},{children:nt.exports.jsx(pe,Object.assign({variant:"body2",className:p.reset},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.OlJtmF",defaultMessage:"Reset Biometric Profile",description:"label of Reset Biometric Profile on profile panel"})}))}))]})})),nt.exports.jsx(x6e,Object.assign({value:E,index:1},{children:nt.exports.jsx(pxt,{openIdConnectors:m})})),nt.exports.jsx(x6e,Object.assign({value:E,index:2},{children:nt.exports.jsx(_,Object.assign({sx:{height:"500px"}},{children:nt.exports.jsx(Yft,{isSingleUserMode:!0})}))})),nt.exports.jsx(x6e,Object.assign({value:E,index:3},{children:nt.exports.jsx(hxt,{selectedLanguage:f,onPreferredLanguageChange:e=>{g(RZ(e))}})}))]}))]}))};function Cxt({currentUser:e,activities:t,activityFilter:n,onChangeActivityFilter:r,handleResetBiometric:i,handleResetPassword:o,handleLogout:a,handleUpdateProfile:s,tabId:l,recentApp:c,applications:d,onClickApp:u,handleUploadAvatar:p,avatarHistory:g}){let f=Ae(e6t),[h,m]=Le.exports.useState("");var C=bCt().classes,x=(Le.exports.useEffect(()=>{m(f.loading||"")},[f]),Ae(gG)),x=bZ.isOperationValid("fileApplication","mutation")&&x;return nt.exports.jsxs("div",Object.assign({className:C.tabsBox},{children:[l===tk.PERSONAL_PANEL&&nt.exports.jsx(mxt,{currentUser:e,handleLogout:a,handleResetBiometric:i,handleResetPassword:o,handleUpdateProfile:s,handleUploadAvatar:p,avatarHistory:g,loadingStatus:h}),l===tk.APP_PANEL&&nt.exports.jsx(MCt,{recentApplist:c,applications:d,onClickApp:u,showAppGroups:x}),l===tk.ACTIVITY_PANEL&&nt.exports.jsx(Nmt,{filter:n,onChangeFilter:r,data:t||[]}),l===tk.PERFORMANCE_MONITOR&&nt.exports.jsx(WCt,{})]}))}let xxt="applications",vxt=e=>null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[xxt],bxt=dT([vxt,nz,IP,e=>null==(e=null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[$ht])?void 0:e.hubRole],({application:e},t,n,r)=>(e||[]).filter(e=>!(t&&"cms"===e.key||n&&"admin"===e.key||"Hub Admin"!==(null==r?void 0:r.name)&&"hubcentral"===e.key)));let yxt=`aiware/${xxt}/get handle click app`,Axt=`aiware/${xxt}/request get app`,Ixt=`aiware/${xxt}/get app list start`,wxt=`aiware/${xxt}/get app list success`,jxt=`aiware/${xxt}/get app list error`,Sxt=`aiware/${xxt}/set application`;function Oxt(e){return{type:Sxt,payload:{data:e}}}function kxt(){return{type:Axt,payload:{}}}let Txt={application:[],message:"",status:"idle",selectedApp:null};function Ext(e,t){if(void 0===e)return Txt;switch(t.type){case Ixt:return Object.assign(Object.assign({},e),{status:"loading"});case wxt:return Object.assign(Object.assign({},e),{application:t.payload.data,status:"success"});case jxt:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});case Sxt:return Object.assign(Object.assign({},e),{selectedApp:t.payload.data});default:return e}}let Nxt="activities",Mxt=e=>(null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[Nxt])||[],Pxt=wmt.local().startOf("day"),Lxt=dT([Mxt],e=>{var{records:e,filter:t}=e;return"today"===t?e.filter(e=>wmt.fromISO(e.createdDateTime).hasSame(Pxt,"day")):e}),Dxt=`os-app-bar-panel/${Nxt}/get activity`,Rxt=`os-app-bar-panel/${Nxt}/get activity success`,Fxt=`os-app-bar-panel/${Nxt}/update activity filter`;function Vxt(){return{type:Dxt}}let Bxt={records:[],filter:"all",fetched:!1,fetching:!1,processing:!1};function Hxt(e,t){if(void 0===e)return Bxt;switch(t.type){case Rxt:return Object.assign(Object.assign({},e),{records:t.payload});case Fxt:var n=t.payload.filter;return Object.assign(Object.assign({},e),{filter:n});default:return e}}Ow({[$ht]:O6t,[Nxt]:Hxt,[xxt]:Ext});let Uxt="aiWareHeaderBarPanel";function*zxt(e){yield L(qxt,e.payload)}function*_xt(){var r,i=yield D(EG),a=yield D(cG);if(i){yield P({type:Ixt});let e=0;let t={totalResults:999,results:[]},n={results:[{applicationId:"init value for while loop"}]};for(;((null==(r=null==t?void 0:t.results)?void 0:r.length)||0)<((null==t?void 0:t.totalResults)||0)&&null!=(r=null==n?void 0:n.results)&&r.length;)n=yield L(XG,i,a,e,200),null!=t&&t.to?null!=(r=null==t?void 0:t.results)&&r.length&&(t.results=t.results.concat(n.results||[])):t=n,e+=200;var s=yield D(PG),s=yield L($G,s,a);let o=((null==(s=null==(s=null==s?void 0:s.data)?void 0:s.applications)?void 0:s.records)||[]).reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});t&&t.results?(s=((null==t?void 0:t.results)||[]).map(e=>{let t,n,r,i=null!=(t=o[e.applicationId])&&t.signedIconUrl?decodeURIComponent(decodeURI(null==(n=o[e.applicationId])?void 0:n.signedIconUrl)):"";return i=(i=i.replaceAll("&amp;","&")).replaceAll("host?","host&"),{id:e.applicationId,name:e.applicationName,key:e.applicationKey,iconUrl:i||(null==(r=o[e.applicationId])?void 0:r.signedIconSvg)||e.applicationIconUrl||e.applicationIconSvg||e.signedApplicationIconUrl,description:e.applicationDescription,headerbarEnabled:(null==e?void 0:e.headerbarEnabled)||!1,applicationUrl:(null==e?void 0:e.applicationUrl)||""}}),yield P((s=s,{type:wxt,payload:{data:s}}))):yield P({type:jxt,payload:{message:"something wrong"}})}else yield Hu(nG.type),yield P(kxt())}function*qxt(e){var t=yield D(e6t),t=(null==(t=null==t?void 0:t.currentUser)?void 0:t.id)||"",n=JSON.parse(localStorage.getItem("recentApplicationWithUserId")||"{}"),r=(null==n?void 0:n[t])||[],r=(r?(r=WO(ZO([e,...r]),0,6),localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:r})))):localStorage.setItem("recentApplicationWithUserId",JSON.stringify(Object.assign(Object.assign({},n),{[t]:[e]}))),yield D(MG));window.open(r+"/"+e)}function*Wxt(){yield Uu([$u(yxt,zxt),o(Axt,_xt)])}function Zxt(t=1e3){return Gmt(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Gxt(e){window.location.href=e}let Jxt={LOADING:"loading",DONE:"done"};function*Kxt(){var e,t,n=yield D(PG),r=yield D(cG),n=yield L(MK,n,r);null!=n&&n.errors&&0<(null==n?void 0:n.errors.length)&&(null==(r=n.errors[0].path)||!r.includes("userSettings"))?(console.error("getCurrentUser error"),yield P({type:a6t})):(r=(null==(r=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:r.recentImageUrls)||[],t=(null==(t=null==(t=null==n?void 0:n.data)?void 0:t.myRights)?void 0:t.operations)||[],e=Object.assign(Object.assign({},(null==(e=null==n?void 0:n.data)?void 0:e.me)||{}),{organizationRole:{organizationId:UO(n,"data.me.organization.id",""),role:t.includes("veritone.superadmin")?"superadmin":t.includes("admin.access")?"admin":"user"},organization:Object.assign({},(null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.organization)||{}),roles:((null==(t=null==(e=null==n?void 0:n.data)?void 0:e.me)?void 0:t.roles)||[]).map(e=>e.appName),avatarHistory:r}),yield P((t=e,{type:o6t,payload:t})),t=((null==(e=null==(r=null==n?void 0:n.data)?void 0:r.me)?void 0:e.roles)||[]).find(e=>"hubcentral"===e.appName),yield P((n=t,{type:v6t,payload:n})))}function*Yxt(){var e=yield D(EG),t=yield D(cG);yield L(PK,e,t)}function*Qxt(e){var e=(null==(e=null==e?void 0:e.payload)?void 0:e.email)||"",t=yield D(PG),e=yield L(LK,e,t);!1===(null==e?void 0:e.success)?yield P({type:c6t}):(t={content:(null==(e=null==(t=null==e?void 0:e.data)?void 0:t.createPasswordResetRequest)?void 0:e.message)||"",severity:R.Info},yield P(F(t)))}function*Xxt(e){let t=null==e?void 0:e.payload,n=yield D(PG),r=yield D(cG);var e=yield D(AG),i=yield L(()=>DK(t,n,r)),e=XW(e);!1===(null==i?void 0:i.success)?yield P(y6t()):(yield P(b6t()),i={content:e({id:"os-app-bar-panel.snackbar.updateProfileSuccess",defaultMessage:[{type:0,value:"Success"}]}),severity:R.Success},yield P(F(i)))}function*$xt(e){var e=null==e?void 0:e.payload,t=yield D(PG),n=yield D(cG),e=yield L(RK,e,t,n);yield P(j6t(Jxt.LOADING)),e&&(yield P((t=e,{type:g6t,payload:t})))}function*evt(e){var e=null==e?void 0:e.payload,t=yield D(PG),n=yield D(cG),r=yield D(AG),e=yield L(VK,e,t,n),t=XW(r);e.errors?yield P(y6t()):(n={content:t({id:"os-app-bar-panel.snackbar.updateAvatarSuccess",defaultMessage:[{type:0,value:"Update avatar successfully"}]}),severity:R.Success},yield P(F(n)),yield P(b6t()),yield P(j6t(Jxt.DONE)))}function*tvt(){Gxt(yield D(DG))}function*nvt(){var e=yield D(AG),e={content:XW(e)({id:"os-app-bar-panel.snackbar.logoutError",defaultMessage:[{type:0,value:"Could not log out current user"}]}),severity:R.Error};yield P(F(e))}function*rvt(){var e=yield D(FG);e?Gxt(e):yield L(nvt)}function*ivt(){try{var e=yield D(PG),t=yield D(dG),n=yield D(cG);yield P(OZ({token:n})),yield P(vJ(!1)),yield L(dK,e,null==t?void 0:t.userId,{eventType:uK,command:cK.setCallResetIdleTimer,value:window.navigator.userAgent},!0,"json",uK,n),yield Zxt(500)}catch(e){console.log(e)}}function*ovt(){var e,t=yield D(PG),n=yield D(dG),r=yield D(cG),i=yield D(LG),o=yield D(FG);try{r?(window.__logout_requested=!0,yield L(dK,t,null==n?void 0:n.userId,{eventType:uK,command:null==cK?void 0:cK.goToLoginPage,value:window.navigator.userAgent},!0,"json",uK,r),yield Zxt(500),null!=(e=yield L(HK,r,t))&&e.errors||!1===(null==e?void 0:e.success)?(yield L(rvt),yield P(w6t())):(yield P(I6t()),Gxt(o||i))):(yield P(I6t()),yield L(tvt))}catch(e){yield L(nvt),yield P(w6t()),console.log(e)}}function*avt(){yield Uu([$u(i6t,Kxt),o(s6t,Yxt),o(l6t,Qxt),o(d6t,Xxt),o(p6t,$xt),o(g6t,evt),o(f6t,ovt),o(x6t,ivt)])}let svt=e=>{var t,{id:e,event:n,userId:r,userName:i,payload:o,createdDateTime:a}=e;return"login_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Login succeeded",description:i+" logged in to Veritone"}:"logout_succeeded"===n?{id:e,userId:r,createdDateTime:a,event:"Logout succeeded",description:i+" successfully logged out"}:"add_user_succeeded"===n?(t=o.userName,{id:e,userId:r,createdDateTime:a,event:"Add user succeeded",description:t+" successfully added"}):"org_updated"===n?(t=o.organizationName,{id:e,userId:r,createdDateTime:a,event:"Org Name Changed",description:i+` updated org "${t}"`}):{id:e,userId:r,createdDateTime:a,event:"Unknown activity",description:"Unknown activity"}};function*lvt(){var e=yield L(vY);e.success?(e=e.data.records,e=e.map(svt),yield P((e=e,{type:Rxt,payload:e}))):(e=yield D(AG),e={content:XW(e)({id:"os-app-bar-panel.snackbar.activityError",defaultMessage:[{type:0,value:"Something went wrong!"}]}),severity:R.Error},yield P(F(e)))}function*cvt(){yield $u(Dxt,lvt)}let dvt="aiware-header-bar/booting",uvt="aiware-header-bar/booted";function*pvt(){yield Hu(uvt)}function*gvt(){yield $u(dvt,pvt)}function*fvt(){yield Uu([_u(Wxt),_u(avt),_u(gvt),_u(cvt)])}function hvt(){return{id:"os-appbar-panel",reducerMap:{[Uxt]:Ow({users:O6t,activities:Hxt,applications:Ext})},sagas:[fvt],initialActions:[Vxt(),b6t(),kxt()],retained:!0}}let mvt={openIdConnectors:[],connectedOpenIds:[],message:"",status:"idle"};function Cvt(e,t){if(void 0===e)return mvt;switch(t.type){case axt:return Object.assign(Object.assign({},e),{status:0===e.openIdConnectors.length&&"pending"});case sxt:return Object.assign(Object.assign({},e),{openIdConnectors:t.payload.data,status:"idle"});case lxt:return Object.assign(Object.assign({},e),{connectedOpenIds:t.payload.data});case cxt:return Object.assign(Object.assign({},e),{message:t.payload.message,status:"failure"});default:return e}}let xvt=(e,t,n)=>Gmt(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/org/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}}),vvt=(e,t,n)=>Gmt(void 0,void 0,void 0,function*(){try{return(yield fetch(e+"/api/admin/openid/user/"+t,{method:"GET",headers:Object.assign({"Content-Type":"application/json"},n&&{Authorization:"Bearer "+n}),credentials:"include"})).json()}catch(e){console.error(e)}});function*bvt(){var n,r,i=yield D(cG),o=yield D(EG),a=(yield D(uG)).userName;if(i&&o&&a){let e={},t={};e.results=yield D(rxt);try{var s=L(xvt,o,a,i),l=L(vvt,o,a,i);0===(null==e?void 0:e.results.length)?[e,t]=yield Uu([s,l]):t=yield l,e&&t?(yield P((r=e.results,{type:sxt,payload:{data:r}})),yield P((n=t.results,{type:lxt,payload:{data:n}}))):yield P(uxt("error on loading open ids"))}catch(e){yield P(uxt("error on loading open ids"))}}else yield P(uxt("Missing token,base url or username"))}function*yvt(){yield $u(axt,bvt)}function Avt({tabId:e}){let r=Ie(),i=Ae(bxt);var t=Ae(t6t),{avatarHistory:n=[]}=t||{},o=Ae(Lxt)||[],a=Ae(Mxt).filter;let[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState([]),[u,p]=Le.exports.useState([]),g=Ae(OG);let f="e4739d44-53d2-4153-b55f-5e246fc989b1"===Ae(ZG),h=Ae(GG);function m(e){r(lZ(""+e)),r(JZ(""+e))}Le.exports.useEffect(()=>{p(g)},[g]),Le.exports.useEffect(()=>{r(kxt()),r(Vxt()),r(b6t())},[r]),Le.exports.useEffect(()=>{l(e||0)},[e]),Le.exports.useEffect(()=>{if(0<u.length&&0<i.length){var e=[];for(let t of u){var n=i.find(e=>e.id===t);n&&e.push(n)}d(e)}},[u,i]);let C={invalidUrl:TL("production","development")?"Selected Application does not have a valid destination URL":nt.exports.jsx(Ce,{id:"os-app-bar-panel.desktop-app.switcher-error.invalid-url",defaultMessage:"Selected Application does not have a valid destination URL. Application URL needs to be updated in Developer - Application Details",description:"Error message when onboarded app does not have a valid URL"}),urlValidationError:TL("production","development")?"Application loading has failed. Please try again later":nt.exports.jsx(Ce,{id:"os-app-bar-panel.desktop-app.switcher-error.url-validation-error",defaultMessage:"Application loading has failed. Please try again later",description:"Error message when onboarded app url validation does not pass"})};let x=Fht(),v=Ae(WG);function b(t,e){var{error:e,message:n}=(e=>{let t;try{t=new URL(e)}catch(e){return{error:!0,message:C.invalidUrl}}return"https:"===t.protocol||"http:"===t.protocol?{error:!1}:{error:!0,message:C.urlValidationError}})(e);e&&n?r(F({content:n,severity:R.Error})):(r(wse("APPLICATION_PANEL_ID")),e=i.find(e=>e.id===t),x("/ui/app/"+(null==e?void 0:e.key)),r(Oxt(e)))}return nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(wXe,Object.assign({modules:[hvt(),{id:"open-id",reducerMap:{[nxt]:Cvt},sagas:[yvt],initialActions:[]}]},{children:nt.exports.jsx(Cxt,{tabId:s,currentUser:t,activities:o,activityFilter:a,onChangeActivityFilter:function(e){r((e={filter:e},{type:Fxt,payload:e}))},handleResetBiometric:function(){r({type:s6t})},handleResetPassword:function(e){r((e={email:e},{type:l6t,payload:e}))},handleLogout:function(){r(rZ())},handleUpdateProfile:function(e){r((e=e,{type:d6t,payload:e}))},organizationRole:null==t?void 0:t.organizationRole,recentApp:c,applications:i,onClickApp:function(t){var{headerbarEnabled:e,applicationUrl:n=""}=i.find(e=>e.id===t)||{};if(f)e?b(t,n):m(t);else if(e&&h&&v){n=(i.find(e=>e.id===t)||{}).key;let e="";e=n?(h.endsWith("/")?"":"/")+"ui/app/"+n:(h.endsWith("/")?"":"/")+"ui/app/"+t,window.open(h+e)}else m(t)},handleUploadAvatar:function(e){r((e=e,{type:p6t,payload:e}))},avatarHistory:n})}))})})})}function Ivt(e){return nt.exports.jsx(Qht,{children:nt.exports.jsx(Avt,Object.assign({},e))})}let wvt=v2e.jsx.ImageUpload;let jvt=je()((e,{row:t})=>({tabsContainer:{width:"100%"},gridContainer:{display:"flex"},listContainer:{},gridItem:{display:"flex",justifyContent:"center",paddingBottom:e.spacing(1.6),"&:hover":{backgroundColor:"#EEF3F9",borderRadius:"4px"}},padding:{padding:e.spacing(0,6,3,6)},moreAppContainer:{height:`calc(100vh - ${0===t?175:1===t?275:2===t?395:500}px - 66px - 10px - 55px)`,minHeight:3===t?300:0,overflow:"overlay",overflowX:"hidden"},relativeParent:{position:"relative"},noMoreApps:{padding:e.spacing(0,9,3,9)},noSelect:{userSelect:"none",paddingTop:"16px"},gridTitle:{padding:"24px 30px 32px 30px",margin:"-5px 0 -5px","& > $noSelect":{marginBottom:15}},appItemDivider:{margin:e.spacing(0,6)}}));function Svt({title:e,selectedAppId:t,onSelectApplication:n,applications:r=[],useGrid:i=!1,row:o=0}){let a=jvt({row:o}).classes,[s,l]=Le.exports.useState(t),[c,d]=Le.exports.useState([]);function u(e){l(e),n(e)}function p(e,t){return e.name>t.name?1:e.name<t.name?-1:0}return Le.exports.useEffect(()=>{var e;0<r.length&&(e=[...r].sort(p),d(e))},[r]),Le.exports.useEffect(()=>{t!==s&&l(t)},[t,s]),nt.exports.jsxs("div",Object.assign({className:Zhe({[a.gridTitle]:i},a.tabsContainer)},{children:[nt.exports.jsx("div",Object.assign({className:Zhe({[a.padding]:!i},a.noSelect)},{children:nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{marginBottom:"10px"}},{children:e}))})),i&&nt.exports.jsx("div",Object.assign({className:a.gridContainer},{children:nt.exports.jsx(W,Object.assign({container:!0},{children:0===r.length?nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.Xzhf45",defaultMessage:"No Applications",description:"the label no app will show if we have no application for grid view"})})):0<c.length&&c.map((e,t)=>{var{id:e=t,iconUrl:t,name:n}=e;return nt.exports.jsx(W,Object.assign({item:!0,xs:4},{children:nt.exports.jsx("div",Object.assign({className:a.gridItem},{children:nt.exports.jsx(mCt,{type:"grid",selected:e===s,onClick:u,iconUrl:t,id:e,appName:n})}))}),e)})}))})),!i&&nt.exports.jsx("div",Object.assign({className:a.listContainer},{children:0===r.length?nt.exports.jsx("div",Object.assign({className:a.noMoreApps},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.dyhBih",defaultMessage:"No Applications",description:"the label no app will show if we have no application for list view"})}))})):nt.exports.jsx("div",Object.assign({className:a.moreAppContainer},{children:0<r.length&&r.sort(p).map((e,t)=>{var{id:e=t,iconUrl:n,name:r}=e;return nt.exports.jsxs("div",Object.assign({className:a.relativeParent},{children:[nt.exports.jsx(mCt,{type:"list",selected:e===s,onClick:u,iconUrl:n,id:e,appName:r}),nt.exports.jsx(se,{className:a.appItemDivider})]}),e+"_"+t)})}))}))]}))}var Ovt,kvt=Object.freeze({__proto__:null,AppList:Svt,EditProFilePicture:function({onClose:e,onSaveAvatar:t}){var n=gxt().classes;let[r,i]=Le.exports.useState(null);return nt.exports.jsx(D4e,{children:nt.exports.jsxs("div",Object.assign({className:n.editProfilePictureContainer},{children:[nt.exports.jsxs(be,Object.assign({className:n.contentUserView},{children:[nt.exports.jsx(be,Object.assign({className:n.headerDrawer},{children:nt.exports.jsx(pe,Object.assign({variant:"h1",className:n.mainTitleText,"data-test":"edit-profile-picture-header"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.npW7Np",defaultMessage:"Edit Profile Picture",description:"The title of edit profile picture panel"})}))})),nt.exports.jsx(_,Object.assign({sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"20px",height:"450px"}},{children:nt.exports.jsx(wvt,{outerWidth:"80%",outerHeight:"80%",innerWidth:"95%",innerHeight:"95%",uploadIconWidthHeight:"80px",handleChange:e=>{i(e)},testId:"profile-edit-profile-image"})}))]})),nt.exports.jsxs(be,Object.assign({className:n.actionButton+" "+n.editProfilePictureFooterButtons},{children:[nt.exports.jsx(ge,Object.assign({color:"primary",onClick:()=>{null!=e&&e()},className:Zhe(n.btnAction,n.btnActionCancel),"data-test":"edit-profile-picture-cancel-button","data-testid":"edit-profile-picture-cancel-button"},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.hdbMmi",defaultMessage:"Cancel",description:"the label of cancel button"})})),nt.exports.jsx(ge,Object.assign({color:"primary",variant:"contained",id:"button-save-cropped-image",className:Zhe(n.btnAction,n.btnSave),onClick:()=>{r&&t(r)},"data-test":"edit-profile-picture-save-button",disabled:!r},{children:nt.exports.jsx(Ce,{id:"os-app-bar-panel.tcZkqy",defaultMessage:"Save",description:"label of save button in edit profile picture panel"})}))]}))]}))})},VeritonePanel:Ivt,applicationSelector:vxt,getAppbarPanelModule:hvt,logoutUser:A6t,requestGetApplications:kxt,selectAppFromStore:e=>null==(e=null==e?void 0:e.aiWareHeaderBarPanel)?void 0:e[xxt].selectedApp,setApplicationInStore:Oxt});(a0e=Ovt=Ovt||{}).DRAG_HANDLE_ID="sdk-impersonate-badge-handle",a0e.IS_BUTTON_ACTIVE="sdk-impersonate-badge-is-button-active",a0e.DRAG_HANDLE_INDICATOR_ICON="sdk-impersonate-handle-drag-indicator",a0e.TEST_ID="sdk-impersonation-active-banner";let Tvt=s3({"0%":{backgroundPosition:"-1000px 0"},"100%":{backgroundPosition:"1000px 0"}}),Evt=je()(e=>({box:{position:"fixed",bottom:0,left:0,margin:"10px",zIndex:999999},paper:{background:"linear-gradient(45deg, #D46600, #D46600 25%, #f19437 50%, #D46600 75%, #D46600)",backgroundSize:"200% 200%",color:"#FFF",padding:"10px",minWidth:"170px",transform:"scale(0.75)",transformOrigin:"left",transition:"transform 0.3s ease-in-out",animation:Tvt+" 16s infinite linear",border:"1px solid #9c4b00",overflow:"hidden","&:hover":{transform:"scale(1)",background:"#D46600",border:"1px solid #f19437"},cursor:"grab",[`&:active:not(.${Ovt.IS_BUTTON_ACTIVE})`]:{transform:"scale(1.05)",opacity:.75,cursor:"grabbing"},[`&:hover:not(.${Ovt.IS_BUTTON_ACTIVE}) .`+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:.25,transition:"all 0.3s ease-in-out"},[`&:active:not(.${Ovt.IS_BUTTON_ACTIVE}) .`+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:1}},button:{width:"100%",background:"#000!important",backgroundColor:"#000!important","&:not(:disabled):not(:hover)":{background:"#000!important",backgroundColor:"#000!important"}},dragHandle:{position:"relative",width:"100%",["& ."+Ovt.DRAG_HANDLE_INDICATOR_ICON]:{opacity:0,transition:"all 0.3s ease-in-out",marginLeft:"auto",position:"absolute",top:0,right:0,transform:"translateX(12px) translateY(-5px) scale(0.9)",transformOrigin:"top"}}})),Nvt=jT("os-app-bar-panel/logout"),Mvt=e=>{let t="Unknown";var n=`${null==e?void 0:e.firstName} `+(null==e?void 0:e.lastName);return(null!=e&&e.firstName||null!=e&&e.lastName)&&(t=n),t=null!=e&&e.email?e.email:t},Pvt=()=>{var e=Evt().classes;let t=Ie(),[n,r]=Le.exports.useState(!1),[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(!1);var l=Ae(uG),c=Mvt(l),l=Boolean(null==l?void 0:l.impersonatorId);let[d,u]=Le.exports.useState({x:20,y:window.innerHeight-140}),[p,g]=Le.exports.useState(!1),[f,h]=Le.exports.useState({x:0,y:0}),m=Le.exports.useRef(null);Le.exports.useEffect(()=>{let e=e=>{var t;p&&(t=e.clientX-f.x,e=e.clientY-f.y,u({x:t,y:e}))},t=()=>{g(!1)};return p&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",t)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[p,f]);return l?nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(BO,{children:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Xze,{isOpen:a,testId:Ovt.TEST_ID+"-confirm-modal",title:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-title",defaultMessage:"End Impersonation Session",description:"User Detail impersonate user confirm title"}),description:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-description",defaultMessage:"Are you sure want to exit this impersonation session?",description:"User Detail impersonate banner user confirm description"}),cancelLabel:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-cancel",defaultMessage:"Cancel",description:"User Detail impersonate banner user confirm cancel"}),confirmLabel:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-user-confirm-btn",defaultMessage:"End Impersonation",description:"User Detail impersonate banner user confirm btn"}),onClose:()=>s(!1),onConfirm:()=>{t(Nvt())}}),nt.exports.jsx(be,Object.assign({ref:m,onMouseDown:e=>{var t;m.current&&m.current.contains(e.target)&&(t=m.current.getBoundingClientRect(),h({x:e.clientX-t.left,y:e.clientY-t.top}),g(!0))},sx:{position:"fixed",zIndex:999999,left:d.x,top:d.y,userSelect:"none",cursor:"move"}},{children:nt.exports.jsx(_6,Object.assign({"data-testId":Ovt.TEST_ID+"-paper",id:Ovt.DRAG_HANDLE_ID,onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},className:Zhe(e.paper,{[Ovt.IS_BUTTON_ACTIVE]:i}),elevation:1},{children:nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",width:"100%",height:n?110:20,transition:"height 0.3s ease-in-out",justifyContent:"space-between"},spacing:1},{children:[nt.exports.jsxs(_,Object.assign({"data-testId":Ovt.TEST_ID+"-drag-handle",className:e.dragHandle,direction:"row",spacing:2},{children:[nt.exports.jsx(M4e,{}),nt.exports.jsx(pe,Object.assign({sx:{color:"#FFF",transform:"translateX(-5px)"},fontWeight:"500",variant:"body2"},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-impersonating-user",defaultMessage:"Impersonating User",description:"User Detail impersonate banner label Impersonating User"})})),n&&nt.exports.jsx(Yde,{"data-testId":Ovt.TEST_ID+"-drag-indicator",className:Ovt.DRAG_HANDLE_INDICATOR_ICON})]})),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",width:"100%",opacity:n?1:0,transform:`scale(${n?"1":"0.6"})`,transformOrigin:"left",transition:"transform 0.2s ease-in-out, opacity 0.3s ease-in-out"},spacing:1},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{opacity:.5}},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-you-are-impersonating",defaultMessage:"You are impersonating",description:"User Detail impersonate banner label you are impersonating"})})),nt.exports.jsx(pe,Object.assign({"data-testId":Ovt.TEST_ID+"-user-label",fontWeight:"500",variant:"body2"},{children:c})),nt.exports.jsx(ge,Object.assign({"data-testId":Ovt.TEST_ID+"-exit-button",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:()=>s(!0),className:e.button,variant:"contained"},{children:nt.exports.jsx(pe,Object.assign({sx:{color:"#FFF"},variant:"caption"},{children:nt.exports.jsx(Ce,{id:"widget-impersonation=banner.exit-impersonate-label-end-impersonation",defaultMessage:"End Impersonation",description:"User Detail impersonate banner end impersonation"})}))}))]}))]}))}))}))]})})})}):null},Lvt=je()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),Dvt=()=>{let e,t,[n,r]=Le.exports.useState(null),[i,o]=Le.exports.useState(0);var a=Ae(uG),s=Lvt().classes;let l=Ae(_G),c=l.applicationId,d=Ae(vxt),u=Ae(MG);var p=(null==d?void 0:d.application)||[],g=null==d?void 0:d.status;let f=Ae(JG);var h=[...p].sort(function(e,t){return(null==e?void 0:e.name)>(null==t?void 0:t.name)?1:(null==e?void 0:e.name)<(null==t?void 0:t.name)?-1:0}),m=p.findIndex(e=>e.id===c);GO(()=>{r(e=>e&&e-1)},n&&i<3?1e3:null),Le.exports.useEffect(()=>{"success"!==(null==d?void 0:d.status)||1!==(null==d?void 0:d.application.length)||(null==d?void 0:d.application[0].id)===l.applicationId||n||f||(0===n?window.open(u+"/"+(null==d?void 0:d.application[0].id),"_self"):r(10))},[l,d,u,n,f]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(c)&&!f&&m<0&&"success"===g?nt.exports.jsx(jm,Object.assign({className:s.dialog,open:!0},{children:nt.exports.jsxs("div",Object.assign({className:s.container},{children:[nt.exports.jsx(pe,Object.assign({"data-test":"application-dialog-title",className:s.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),nt.exports.jsxs(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[nt.exports.jsx(Ce,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",nt.exports.jsx("span",Object.assign({className:s.orgName},{children:null!=(e=null==a?void 0:a.organization)&&e.organizationName?a.organization.organizationName:""}))," ",nt.exports.jsx(Ce,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),n&&nt.exports.jsx(pe,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{o(e=>e+1)}},{children:nt.exports.jsx(Ce,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:n,appName:null==(t=p[0])?void 0:t.name}})})),nt.exports.jsx("div",Object.assign({className:s.appListContainer},{children:nt.exports.jsx(Svt,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(u+"/"+e,"_self")},applications:h,useGrid:!1,row:3})}))]}))})):null};function Rvt(){var e=Ae(dG);return null!=(e=null==e?void 0:e.user)&&e.token?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Pvt,{}),nt.exports.jsx(Dvt,{})]}):null}let Fvt=()=>(T5(),null),Vvt=({store:e,onLoad:t})=>{var n=Ae(dG);return null!=(n=null==n?void 0:n.user)&&n.token&&setTimeout(()=>{t(),e.addModules([hvt()])},0),null},Bvt="openSupportChatButton",Hvt="open-support-chat-button";var Uvt=()=>nt.exports.jsx(Ch,{children:nt.exports.jsx("div",{id:Bvt,"data-veritone-element":Hvt,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})}),f3e=({store:e})=>{let[t,n]=Le.exports.useState(!1);return nt.exports.jsx(BO,{children:nt.exports.jsxs(ES,{children:[nt.exports.jsx(Uvt,{}),nt.exports.jsx(YE,Object.assign({store:e},{children:nt.exports.jsxs(D4e,{children:[t&&nt.exports.jsx(Rvt,{}),!t&&nt.exports.jsx(Vvt,{store:e,onLoad:()=>{n(!0)}}),nt.exports.jsx(Yut,{})]})})),!t&&nt.exports.jsx(Fvt,{})]})})},zvt=Object.freeze({__proto__:null,Preloader:f3e,default:f3e}),t3e="@helpPanel";let _vt=jT(t3e+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),qvt=jT(t3e+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),Wvt=jT(t3e+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}});let Zvt=PT({selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},e=>{e.addCase(_vt,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(qvt,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(Wvt,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*Gvt(){yield $u("OPEN_HELP_LINK",function*(){var e=yield D(e=>e.helpPanel.tabLink);yield P(Sse({url:e}))})}let Jvt="helpPanel",Kvt=e=>null!=e&&e[Jvt]?e[Jvt].selectedTabId:0,Yvt=e=>null!=e&&e[Jvt]?e[Jvt].customDocsUrl:"",Qvt=e=>null!=e&&e[Jvt]?e[Jvt].customKnowledgeBaseUrl:"";let Xvt={knowledgeBaseUrl:"https://docs.veritone.com/help/index.html",documentUrl:"https://docs.veritone.com"},$vt=je()(e=>({root:{height:"calc(100% - 60px)",textAlign:"left","& .MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 55px - 60px)",overflowY:"auto",overflowX:"hidden"}})),ebt=Xvt.documentUrl,tbt=({path:e=ebt})=>{var t=$vt().classes;let[n,r]=Le.exports.useState(!0);return nt.exports.jsxs("div",Object.assign({className:Zhe(t.dRoot,"hide-in-percy")},{children:[n&&nt.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:nt.exports.jsx(mm,{})})),nt.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},nbt=Xvt.knowledgeBaseUrl;function rbt({path:e=nbt}){var t=$vt().classes;let[n,r]=Le.exports.useState(!0);return nt.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&nt.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:nt.exports.jsx(mm,{})})),nt.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}nt.exports.jsx(Ce,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),nt.exports.jsx(Ce,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"});var ibt=Object.freeze({__proto__:null,HelpCenterPanel:function(){var e=Ae(_G),t=Ae(Qvt),n=Ae(Yvt),r=Ae(Kvt),i=Ae(e=>null==e?void 0:e.panels),o=$vt().classes,[a]=Le.exports.useState("en-us");Ie();t=(i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId))&&t?t:e.knowledgeBaseUrl,i=i&&n?n:e.docsURL;return nt.exports.jsx(wXe,Object.assign({modules:[{id:"help",reducerMap:{[Jvt]:Zvt},sagas:[Gvt],initialActions:[]}]},{children:nt.exports.jsx(D4e,Object.assign({locale:a},{children:nt.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:nt.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:nt.exports.jsx("div",Object.assign({className:o.tabContent},{children:nt.exports.jsx("div",Object.assign({className:o.root},{children:nt.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[nt.exports.jsxs(be,Object.assign({className:o.tabPanels},{children:[nt.exports.jsx(x6e,Object.assign({value:r,index:0},{children:nt.exports.jsx(rbt,{path:t})})),nt.exports.jsx(x6e,Object.assign({value:r,index:1},{children:nt.exports.jsx(tbt,{path:i})}))]})),nt.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:nt.exports.jsx("img",{src:ale,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))},customDocsUrlSelector:Yvt,customKnowledgeBaseUrlSelector:Qvt,helpCenterSelectedTabIdSelector:Kvt,setCustomDocsUrl:Wvt,setCustomKnowledgeBaseUrl:qvt,updateSelectedTab:_vt});let obt=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}},abt=t=>e=>(t.dispatch(Ise(e)),!0),sbt=t=>e=>(t.dispatch(wse(e)),!0);let lbt=s=>(e,t)=>{let n,r,i=e.panelId||YO();var{microFrontend:e,panelConfig:o}=e;s.dispatch(yse({microFrontend:e,panelId:i,panelConfig:o}));let a=[...(null==(n=null==o?void 0:o.header)?void 0:n.actions)||[],...(null==(r=null==o?void 0:o.footer)?void 0:r.actions)||[]].filter(e=>e.submit).map(e=>e.action);e={id:i,sagas:[function*(){yield $u(a.map(e=>e.type),function*(){var e=(yield D(e=>e.data.find(e=>e.id===i))).data;t&&t(e)})}]};return s.addModule(e),i};var cbt=Object.freeze({__proto__:null,attachSdkToWindow:e=>{var t,n,{init:e,store:r,aiwareEvents:i,bootstrapOptions:o}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:r,auth:(n=r,{updateToken(e){e?n.dispatch(PZ({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{n.dispatch(rZ())},1e3)):n.dispatch(rZ())},reportAppActivity(e){obt.checkIfCanCall(e)&&n.dispatch(aZ())}}),helpCenter:{openKnowledgeBasePanel:(e=new tce({actions:{setCustomKnowledgeBaseUrlAction:qvt,setCustomDocsUrlAction:Wvt,updateSelectedTabAction:_vt}})).openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)},dataCenter:{openImporterPanel:(e=new Kle).openImporterPanel.bind(e)},on:i.on,off:i.off,hidePanel:sbt(r),unmountPanel:abt(r),mountPanel:lbt(r),mountPanelForResponse:(t=r,e=>Ese(e,t)),registry:o.registry,registryLookup:o.registryLookup,AvailableWidgets:ik,mountPanelAction:yse,unmountPanelAction:Ise,hidePanelAction:wse,updatePanelMicroFrontendPropsAction:jse,setData:nZ,mountWidget:Cce,unmountWidget:xce,commit:"923cad9ae9"})},hidePanel:sbt,mountPanel:lbt,unmountAllPanel:e=>()=>{e.dispatch(Ose(""))},unmountPanel:abt});let dbt="mailbox",ubt=e=>null==(e=e[dbt])?void 0:e.mailBoxIds,pbt=e=>{e=null==(e=null==e?void 0:e[dbt])?void 0:e.mailbox;return null==e?void 0:e.reduce((e,t)=>e+t.unseenCount,0)},gbt=e=>e.panels||[];m3e=dbt+"/SUBSCRIBER_MAILBOX",v3e=dbt+"/SUBSCRIBER_MAILBOX_START",ont=dbt+"/UPDATE_MAILBOX_DATA",Q2e=dbt+"/SUBSCRIBING_MAILBOX",P3e=dbt+"/SUBSCRIBER_MAILBOX_SUCCESS",M3e=dbt+"/SUBSCRIBER_MAILBOX_ERROR",D3e=dbt+"/UPDATE_UNSEEN_COUNT";let fbt=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN";Fpe=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_REQUEST",B3e=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_SUCCESS",g3e=dbt+"/MARK_ALL_NOTIFICATIONS_SEEN_FAIL",a4e=dbt+"/SUBSCRIBE_DEFAULT_MAILBOX_REQUEST",hge=dbt+"/PUSH_NOTIFICATION",hpe=dbt+"/PUSH_DEFAULT_MAILBOX";let hbt=jT(m3e),mbt=jT(v3e),Cbt=jT(ont,function(e){return{payload:e}}),xbt=jT(P3e,function(e){return{payload:e}}),vbt=jT(M3e,function(e){return{payload:e}}),bbt=jT(Q2e),ybt=jT(hge,function(e){return{payload:e}}),Abt=jT(hpe,function(e){return{payload:e}}),Ibt=jT(D3e,function(e){return{payload:e}}),wbt=jT(Fpe),jbt=jT(B3e),Sbt=jT(g3e),Obt=jT(a4e);let kbt=PT({mailBoxIds:[],mailbox:[],status:"idle",failureMessage:""},e=>{e.addCase(mbt,e=>Object.assign(Object.assign({},e),{status:"loading"})).addCase(xbt,e=>Object.assign(Object.assign({},e),{status:"subscribing"})).addCase(Cbt,(e,t)=>Object.assign(Object.assign({},e),{mailbox:[...t.payload],mailBoxIds:[...t.payload.map(e=>e.id)]})).addCase(vbt,(e,t)=>Object.assign(Object.assign({},e),{status:"failure",failureMessage:t.payload})).addCase(Ibt,(e,n)=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(t=>{var e;return Object.assign(Object.assign({},t),{unseenCount:null!=(e=null==(e=null==(e=n.payload.notificationMailboxes)?void 0:e.find(e=>e.id===t.id))?void 0:e.unseenCount)?e:0})})})).addCase(wbt,e=>Object.assign({},e)).addCase(jbt,e=>Object.assign(Object.assign({},e),{mailbox:e.mailbox.map(e=>Object.assign(Object.assign({},e),{unseenCount:0}))})).addCase(Sbt,e=>Object.assign(Object.assign({},e),{status:"failure"}))});function Tbt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}let Ebt=(e,t)=>Tbt(void 0,void 0,void 0,function*(){try{return yield fZ({query:`
1920
1920
  {
1921
1921
  notificationMailboxes {
1922
1922
  id
@@ -2081,7 +2081,7 @@ ${D_e}]`)||B_e(e,t,`
2081
2081
  mutation {
2082
2082
  ${o.join("")}
2083
2083
  }
2084
- `;return yield H(Object.assign(Object.assign({query:s},l),{rethrowOriginalError:!0}))}catch(e){throw new Error(e.message)}})}function UZt(a,s){return kZt(this,void 0,void 0,function*(){var e="updateOrganizationInvite",t="updateOrganizationInvite",{organization:e,invitee:t,applicationRoles:n,status:r,expirationDate:i,message:o}=(yield H(Object.assign({query:"\n mutation updateOrganizationInvite($input: UpdateOrganizationInviteInput!){\n updateOrganizationInvite(input: $input){\n organization {\n id\n }\n applicationRoles {\n application {\n id,\n name\n iconUrl\n }\n role {\n id,\n name,\n description\n appName\n }\n }\n invitee {\n email\n }\n status\n expirationDate\n message\n }\n }\n ",operationName:e,variables:{input:s}},a)))[t];return{organizationInviteId:s.organizationInviteId,organizationId:e.id,invitee:t,email:t.email,status:r,expirationDate:i,message:o,applicationRoles:n.map(e=>({application:e.application,role:e.role,applicationId:e.application.id,roleId:e.role.id}))}})}function zZt(r,i){return kZt(this,void 0,void 0,function*(){var e={organizationInviteId:i.organizationInviteId},t="deleteOrganizationInvite",n="deleteOrganizationInvite";return(yield H(Object.assign({query:"\n mutation deleteOrganizationInvite($organizationInviteId: ID!){\n deleteOrganizationInvite(organizationInviteId: $organizationInviteId){\n id\n }\n }\n ",operationName:t,variables:e},r)))[n]})}function _Zt(n,r){var i;return kZt(this,void 0,void 0,function*(){var e="getPendingOrganizationInvites",t="organization",e=yield H(Object.assign({query:"\n query getPendingOrganizationInvites($id: ID!){\n organization(id: $id){\n organizationInvites(status:submitted) {\n id\n createdBy {\n id\n name\n firstName\n lastName\n imageUrl\n }\n organization {\n id\n name\n imageUrl\n }\n message\n applicationRoles{\n application {\n id\n name\n iconUrl\n }\n role {\n id\n name\n }\n }\n invitee {\n email\n name\n imageUrl\n }\n status\n expirationDate\n }\n }\n }\n ",operationName:e,variables:{id:n}},r));return null==(i=e[t])?void 0:i.organizationInvites.map(e=>(e.organizationInviteId=e.id,delete e.id,e))})}var qZt=Object.freeze({__proto__:null,fetchOrganizationInvites:BZt,createOrganizationInvite:HZt,updateOrganizationInvite:UZt,deleteOrganizationInvite:zZt,fetchPendingOrganizationInvites:_Zt});function WZt(n,r){return kZt(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=n,e=yield fetch(e+`/v1/admin/users/${r}/scim_connect_ids`,{headers:{Authorization:"Bearer "+t,"Content-Type":"application/json"}});if(200===e.status)return(yield e.json()).scimConnectIds;throw new Error("Error getting scim_connect_ids")})}mge=Object.freeze({__proto__:null,fetchScimIds:WZt});function*ZZt(){try{var e=yield PZt(yield D(QWt));yield P(lZt.organizationsState.organizationsFetchSucceed(e.records))}catch(e){yield P(lZt.organizationsState.organizationsFetchFailed()),console.log(e)}}function*GZt(t){try{var n=yield D(QWt),r=yield D(uG),i=jWt(r.roles);let e;(e=i?yield LZt(n,t.payload):yield DZt(n)).applications.records=yield L(KZt),yield P(lZt.organizationsState.currentOrganizationFetchSucceed(e))}catch(e){yield P(lZt.organizationsState.currentOrganizationFetchFailed()),console.log(e)}}let JZt=200;function*KZt(){var e,{apiRoot:t,token:n}=yield D(QWt);let r=0;var i=JZt;let o={totalResults:999,results:[]},a={results:[{applicationId:"init value for while loop"}]};for(;(o.results.length||0)<(o.totalResults||0)&&null!=(e=null==a?void 0:a.results)&&e.length;)a=yield L(XG,t,n,r,i),null!=o&&o.to?null!=(e=null==o?void 0:o.results)&&e.length&&(o.results=o.results.concat(a.results||[])):o=a,r+=JZt;return o.results}function*YZt(t){try{var n=yield D(QWt),r=t.payload,i=yield D(uG),o=yield D(KWt),a=yield D(AG),s=XW(a),l=jWt(i.roles);let e={email:t.payload,applicationRoles:[],status:sZt.new,organizationGuids:[]};(e=l?yield RZt(n,{email:r,userOrgGuid:o}):e).organizationGuids.includes(o)?yield P(F({content:s({id:"os-organization-panel.snackbar.warning.user-invitee-already-present-in-org",defaultMessage:[{type:0,value:"The user you requested is already a member of the organization."}]}),severity:R.Info})):yield P(lZt.organizationsState.fetchInviteeSucceed(e))}catch(e){yield P(lZt.organizationsState.fetchInviteeFailed()),console.log(e)}}function*QZt(e){try{var t=yield D(AG),n=XW(t),r=(yield P(kJ({message:n({id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:[{type:0,value:"Changing your Organization"}]})||"Changing your Organization",followUpActionType:lZt.organizationsState.switchUserToOrganizationSucceed.type})),yield Zu(100),yield D(QWt)),i=(yield FZt(r,e.payload)).sessionToken;yield Zu(100),yield P(LZ({token:i})),yield P(wJ({eventType:uK,command:cK.refreshPage,value:!0,ephemeral:!0,contentType:"json"})),yield P(lZt.organizationsState.switchUserToOrganizationSucceed())}catch(e){yield P(lZt.organizationsState.switchUserToOrganizationFailed()),console.log(e)}}function*XZt(){try{var e=yield BZt(yield D(QWt));yield P(lZt.organizationsState.fetchOrganizationInvitesSucceed(e))}catch(e){yield P(lZt.organizationsState.fetchOrganizationInvitesFailed()),console.log(e)}}function*$Zt(e){var t=yield D(AG),t=XW(t);try{yield VZt(yield D(QWt),e.payload),yield P(lZt.organizationsState.organizationsFetchStart())}catch(e){yield P(F({content:t({id:"organization-panel.snackbar.setUserDefaultError",defaultMessage:[{type:0,value:"Something went wrong while setting default organization."}]}),severity:R.Error})),console.log(e)}}function*eGt(t){var e,n=yield D(AG),n=XW(n);try{var r=yield HZt(yield D(QWt),t.payload);null!=(e=null==r?void 0:r.errors)&&e.length?(r.errors.some(e=>null==(e=e.message)?void 0:e.match(/has already been invited/))&&(yield P(F({content:TL("production","development")?"This email already has a pending invitation, and must be approved or rejected before a new invite can be sent":n({id:"os-organization-panel.snackbar.error.create-organization-pending-invite",defaultMessage:[{type:0,value:"This email already has a pending invitation, and must be approved or rejected before a new invite can be sent"}]}),severity:R.Error}))),yield P(lZt.organizationInvitesState.createOrganizationInviteFailed())):(yield P(lZt.organizationInvitesState.createOrganizationInviteSucceed()),yield P(F({content:TL("production","development")?"Your Invitation has been successfully sent":n({id:"os-organization-panel.snackbar.success.create-organization-pending-invite",defaultMessage:[{type:0,value:"Your Invitation has been successfully sent"}]}),severity:R.Success})),yield P(lZt.organizationsState.clearInvitees()))}catch(e){yield P(lZt.organizationInvitesState.createOrganizationInviteFailed()),null!=(t=e.message)&&t.includes('null value in column "user_id"')?yield P(F({content:TL("production","development")?"You may only invite current users of the aiWARE platform to your Organization'":n({id:"os-organization-panel.snackbar.warning.invite-new-user-failed",defaultMessage:[{type:0,value:"You may only invite current users of the aiWARE platform to your Organization"}]}),severity:R.Error})):yield P(F({content:TL("production","development")?"There was a problem creating your invitation":n({id:"os-organization-panel.snackbar.warning.create-organization-invite-failed",defaultMessage:[{type:0,value:"There was a problem creating your invitation"}]}),severity:R.Error}))}}function*tGt(e){try{var t=yield UZt(yield D(QWt),e.payload);yield P(lZt.organizationInvitesState.updateOrganizationInviteSucceed(t)),yield P(lZt.organizationInvitesState.fetchPendingInvitesStart())}catch(e){yield P(lZt.organizationInvitesState.updateOrganizationInviteFailed()),console.log(e)}}function*nGt(e){try{var t=yield D(QWt),n=(yield UZt(t,{organizationInviteId:e.payload.organizationInviteId,applicationRoles:e.payload.applicationRoles,action:bZt.delete}),{organizationId:e.payload.organizationId,message:e.payload.message,invitees:[{email:e.payload.email,applicationRoles:e.payload.applicationRoles}]}),r=yield HZt(t,n);yield P(lZt.organizationInvitesState.reRequestOrganizationInviteSucceed(r)),yield P(lZt.organizationsState.fetchOrganizationInvitesStart())}catch(e){yield P(lZt.organizationInvitesState.reRequestOrganizationInviteFailed()),console.log(e)}}function*rGt(e){try{let t=yield D(QWt);var r=(yield D(uG)).organization.organizationGuid,i=yield D(JWt),o=yield D(KWt),a=e.payload||i;let n=e.payload?r:o;var s=yield _Zt(a,t);if(s&&0<s.length){let e=yield Uu(s.map(e=>L(RZt,t,{email:null==(e=null==e?void 0:e.invitee)?void 0:e.email,userOrgGuid:n})));s.forEach(t=>{t.invitee.status=e.find(e=>(null==e?void 0:e.email)===(null==(e=null==t?void 0:t.invitee)?void 0:e.email))?sZt.existing:sZt.new})}yield P(lZt.organizationInvitesState.fetchPendingInvitesSucceed(s))}catch(e){yield P(lZt.organizationInvitesState.fetchPendingInvitesFailed()),console.log(e)}}function*iGt(e){var t=yield D(AG),t=XW(t);try{let t=yield D(QWt);var n=yield Uu(e.payload.map(e=>L(UZt,t,e)));n&&0<n.length&&(yield P(lZt.organizationInvitesState.fetchPendingInvitesStart(n[0].organizationId)),yield function*(){var e=yield D(Cse),e=e.find(e=>"INVITE_REQUESTS_PANEL"===e.microFrontend.name);e&&e.panelId&&(e=e.panelId,yield P(wse(e)))}())}catch(e){yield P(F({content:t({id:"os-organization-panel.invite.request.update.error",defaultMessage:[{type:0,value:"Something went wrong while saving your changes."}]}),severity:R.Error}))}}function*oGt(e){try{var t=yield WZt(yield D(QWt),yield D(XWt));yield P(lZt.scimIdsState.scimIdsFetchSucceed(t))}catch(e){yield P(lZt.scimIdsState.scimIdsFetchFailed()),console.log(e)}}function*aGt(e){var t=yield D(AG),t=XW(t);try{var n=yield D(QWt);e.payload.action===bZt.reject?yield zZt(n,e.payload):yield UZt(n,e.payload),yield P(lZt.reviewRequestState.updateOrganizationInviteSucceed()),yield P(lZt.organizationsState.fetchOrganizationInvitesStart()),yield P(lZt.organizationsState.organizationsFetchStart())}catch(e){yield P(F({content:t({id:"organization-panel.snackbar.updatingOrganizationInviteError",defaultMessage:[{type:0,value:"Something went wrong while updating the invite."}]}),severity:R.Error})),console.log(e)}}function*sGt(){yield Uu([function*(){yield o(lZt.organizationsState.organizationsFetchStart.type,ZZt)}(),function*(){yield $u(lZt.organizationsState.currentOrganizationFetchStart.type,GZt)}(),function*(){yield $u(lZt.organizationsState.fetchInviteeStart.type,YZt)}(),function*(){yield $u(lZt.organizationsState.switchUserToOrganizationStart.type,QZt)}(),function*(){yield $u(lZt.organizationInvitesState.createOrganizationInviteStart.type,eGt)}(),function*(){yield $u(lZt.organizationInvitesState.updateOrganizationInviteStart.type,tGt)}(),function*(){yield $u(lZt.organizationInvitesState.reRequestOrganizationInviteStart.type,nGt)}(),function*(){yield $u(lZt.organizationsState.fetchOrganizationInvitesStart.type,XZt)}(),function*(){yield $u(lZt.reviewRequestState.updateOrganizationInviteStart.type,aGt)}(),function*(){yield o(lZt.organizationsState.setUserDefaultOrg.type,$Zt)}(),function*(){yield o(lZt.organizationInvitesState.fetchPendingInvitesStart.type,rGt)}(),function*(){yield o(lZt.scimIdsState.scimIdsFetchStart,oGt)}(),function*(){yield o(lZt.organizationInvitesState.updatePendingInviteStatus.type,iGt)}()])}function lGt(){return{id:IWt,reducerMap:{[IWt]:cZt},sagas:[sGt],initialActions:[]}}let cGt=[],dGt=[],uGt=je()((e,t,n)=>({root:{userSelect:"none"},logoWrapper:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:"200px",["& "+n.logo]:{width:"83px",height:"83px",marginBottom:e.spacing(3)},["& "+n.titleLogo]:{color:e.palette.secondary.main,opacity:.9,"& > a":{marginLeft:"7px"}}},titleLogo:{},sortName:{borderRadius:"50%",width:83,height:83,fontSize:33,marginBottom:e.spacing(3)},logo:{borderRadius:"50%"},orgImage:{width:"100%",height:"100%",objectFit:"cover",marginBottom:0,borderRadius:"50%"},divider:{opacity:.9},listBox:{margin:e.spacing(0,3)},loggedBox:{paddingTop:e.spacing(2)},loggedText:{display:"flex",flexDirection:"column",textAlign:"center",cursor:"default"},loginAs:{color:e.palette.primary.main,cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& div button":{flex:"0 1 auto !important"}},secondBox:{padding:e.spacing(8,6,0,6)}})),pGt=je()(e=>({container:{display:"flex",flexDirection:"column"},heading:{display:"flex",flexDirection:"column",justifyContent:"flex-start"}})),gGt=je()(e=>({container:{},orgContainer:{display:"flex",cursor:"pointer"},clickDisabled:{cursor:"not-allowed"},defaultOrgBadge:{borderRadius:"2px",height:"16px",backgroundColor:"#F4F4F4",border:"0.5px solid #9CA8B4",color:"#5C6269",marginLeft:e.spacing(2.8),padding:e.spacing(.2,2),"& >span":{padding:0}},organizationName:{display:"inline-block",fontSize:"13px",fontWeight:600,lineHeight:"12px",width:"280px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},organizationSubtitle:{lineHeight:"16px",opacity:.7},textContainer:{display:"flex","& > .MuiListItemText-root":{display:"flex",flexDirection:"column",justifyContent:"center"}}}));function fGt({organizationName:e,organizationLogo:t,subtitle:n,isDefault:r,showDivider:i=!0,Action:o,onClick:a}){var s=gGt().classes;return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(Jx,Object.assign({className:s.container,disableGutters:!0},{children:[nt.exports.jsxs("div",Object.assign({onClick:a||void 0,className:s.orgContainer+" "+(a?"":s.clickDisabled)},{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(W8,Object.assign({src:t||null,sx:{width:38,height:38,padding:"9px",bgcolor:"#F2F5F9"},"data-testid":"organizations-panel-org-item-avatar"},{children:!t&&nt.exports.jsx(y0e,{})}))}),nt.exports.jsx("span",Object.assign({className:s.textContainer},{children:nt.exports.jsx(lv,{primary:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({className:s.organizationName,variant:"body1",sx:{fontSize:"13px!important",fontWeight:600},"data-testid":"organizations-panel-org-item-organization-name"},{children:e})),r&&nt.exports.jsx(e8,{className:s.defaultOrgBadge,label:nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:"Default"})),"data-test":"organization-panel-default-badge"})]}),secondary:n&&nt.exports.jsx(pe,Object.assign({variant:"subtitle2",className:s.organizationSubtitle,sx:{fontSize:"11px!important",fontWeight:400},"data-testid":"organizations-panel-org-item-subtitle"},{children:n}))})}))]})),nt.exports.jsx(_x,{children:o})]})),i&&nt.exports.jsx(se,{})]})}let hGt=je()(e=>({container:{display:"flex",flexDirection:"column",justifyContent:"flex-start"},header:{margin:0,marginBottom:"6px",fontWeight:600,cursor:"default"},description:{opacity:.8,cursor:"text"}}));function mGt({tab:e}){var t=hGt().classes,n={invites:{header:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-header",defaultMessage:"Invites",description:"organization panel: invites tab, invites header label"}),description:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-description",defaultMessage:"Review invitations to other organizations.",description:"organization panel: invites tab, invites header description"})},"my-organizations":{header:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations.tab-header",defaultMessage:"Organizations",description:"organization panel: organizations tab, header label"}),description:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations.tab-description",defaultMessage:"Switch between other organizations you have access to.",description:"organization panel: Organizations tab, header description"})}};return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:t.header,sx:{fontSize:"14px!important"},"data-testid":"organizations-panel-tab-header-"+e},{children:n[e].header})),nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:t.description,sx:{fontSize:"14px!important"},"data-testid":"organizations-panel-tab-header-"+e},{children:n[e].description}))]}))}let CGt=je()(e=>({container:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",textAlign:"center",padding:"12px"}}));function xGt({isExpired:e,onClickRemoveExpiredInvite:t,onClickRequestNewInvite:n,onClickViewActiveRequest:r}){var i=CGt().classes;return nt.exports.jsxs("div",Object.assign({className:i.container},{children:[e&&nt.exports.jsxs("div",{children:[nt.exports.jsx(ge,Object.assign({sx:{color:"gray",fontWeight:300},"data-testid":"os-organization-panel.invites.tab-remove-invite-button",onClick:t},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-remove-invite-button",defaultMessage:"Remove",description:"organization panel: invites tab, remove invite button"})}))," ",nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"os-organization-panel.invites.tab-request-invite-button",onClick:n},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-request-invite-button",defaultMessage:"Request Invite",description:"organization panel: invites tab, request invite button"})}))]}),!e&&nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"os-organization-panel.invites.tab-view-active-request-invite-button",onClick:r},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-view-request-invite-button",defaultMessage:"View Request",description:"organization panel: invites tab, view request invite button"})}))]}))}let vGt=(e,t)=>{e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),t=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.floor((t-e)/864e5)},bGt=je()(e=>({loadingText:{display:"flex",transform:"translateX(-20px)"}})),yGt=()=>{var e=bGt().classes;return nt.exports.jsxs(Jx,{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(ye,{variant:"circular",width:25,height:25})}),nt.exports.jsx(lv,Object.assign({className:e.loadingText},{children:nt.exports.jsx(ye,{variant:"text",width:150,height:21})})),nt.exports.jsx(_x,{children:nt.exports.jsx(ye,{variant:"rectangular",width:40,height:30})})]})},AGt=()=>nt.exports.jsxs(Mx,{children:[nt.exports.jsx(yGt,{}),nt.exports.jsx(se,{}),nt.exports.jsx(yGt,{})]}),IGt="REVIEW_ORG_INVITE_PANEL";function wGt({organizationInvites:e,uiStatus:t,onRetry:n}){var r=pGt().classes;let l=Ie(),c=e.filter(e=>e.status!==vZt.deleted);return"success"===t&&0===c.length?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(OZt,{type:"invites"})]}):"pending"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(AGt,{})]}):"failure"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(jZt,{onRetry:n,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.invites-tab.error-message",defaultMessage:"Something went wrong while loading your organization invites.",description:"my organizations error state"})})]}):nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(Mx,{children:c.map((t,e)=>{let{expirationDate:n,organization:r,organizationInviteId:i}=t;var o=r.name,a=r.imageUrl,e=e!==c.length-1,s=vGt(new Date,new Date(n))<0;return nt.exports.jsx(fGt,{organizationLogo:a,organizationName:o,subtitle:(e=>{var t=vGt(new Date,new Date(e));if(t<0)return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expired",defaultMessage:"Expired",description:"organization panel: invites tab, invite expiration status, is expired"});switch(t){case 0:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expires-today",defaultMessage:"Expires today",description:"organization panel: invites tab, invite expiration status, is expiring today"});case 1:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expires-tomorrow",defaultMessage:"Expires tomorrow",description:"organization panel: invites tab, invite expiration status, is expiring tomorrow"});default:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expiration",defaultMessage:"Expires in {days} days",description:"organization panel: invites tab, invite expiration status, is expired",values:{days:t}})}})(n),Action:nt.exports.jsx(xGt,{isExpired:s,onClickViewActiveRequest:s?null:()=>{l(lZt.organizationsState.setActiveOrganizationInviteId(i));var e={name:IGt,config:{name:"Review Request"}};l(yse({panelId:IGt,microFrontend:e,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:640,size:"small",parentPanelId:"ORGANIZATION_PANEL",dimmed:0,dimmedStatus:"dimParent"}}))},onClickRemoveExpiredInvite:s?()=>{var e={organizationInviteId:t.organizationInviteId,applicationRoles:t.applicationRoles,action:bZt.delete};l(lZt.organizationInvitesState.updateOrganizationInviteStart(e))}:null,onClickRequestNewInvite:s?()=>{l(lZt.organizationInvitesState.reRequestOrganizationInviteStart(t))}:null},t.organizationInviteId),isDefault:!1,showDivider:e},t.organizationInviteId)})})]}))}function jGt({organizations:r,uiStatus:e,onRetry:t,onSetUserDefaultOrg:n}){let i=wZt().classes,[o,a]=Le.exports.useState(0),[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState(!1),[u,p]=Le.exports.useState(null);var g=Ae(uG);let f=Ae(UWt),{email:h,organization:m}=g,C=(m||{}).organizationId,x=Ie(),v=Ae(sK),b=(Le.exports.useEffect(()=>{if(0<(null==r?void 0:r.length)){let e=1/0,t=0;for(var n of r)n.priority<e&&(e=n.priority,t=n.id);l(t)}},[r]),()=>{p(null)});let y=()=>{a(0),d(!1),b()};return nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"my-organizations"}),"pending"===e?nt.exports.jsx(AGt,{}):"failure"===e?nt.exports.jsx(jZt,{onRetry:t,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations-tab-error-message",defaultMessage:"Something went wrong while loading your organizations.",description:"my organizations error state"})}):"success"===e&&null!=r&&r.length?nt.exports.jsx(Mx,Object.assign({className:i.orgList},{children:r.map((t,e)=>nt.exports.jsx(fGt,{organizationName:t.name,guid:t.guid,showDivider:e!==r.length-1,organizationLogo:t.imageUrl,isDefault:t.id===s,Action:t.id===s||1===r.length||!1!==f?null:nt.exports.jsx(ue,Object.assign({"aria-controls":"org-menu","aria-haspopup":"true",onClick:e=>{a(t.id),e=e,p(e.currentTarget)},"data-test":"organization-panel-menu-button"},{children:nt.exports.jsx(dqt,{})})),onClick:(e=t.id,(C||"").toString()===(e||"").toString()?void 0:()=>{var e;e=t.guid,v||x(lZt.organizationsState.switchUserToOrganizationStart({organizationGuid:e,userName:h}))})},t.id))})):null,nt.exports.jsx(Pv,Object.assign({elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"},id:"org-default-settings-menu",anchorEl:u,open:Boolean(u),onClose:b,MenuListProps:{disablePadding:!0}},{children:nt.exports.jsx(fe,Object.assign({onClick:()=>{d(!0)},className:i.menuItem,"data-test":"organization-panel-make-default-button"},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.my.organizations.make.default",defaultMessage:"Make Default",description:"organization panel: make organization default button"})}))}))})),nt.exports.jsxs(Lm,Object.assign({open:c,maxWidth:"xs",onClose:y,"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"confirmation-dialog-title","data-test":"org-confirmation-dialog-title",className:i.dialogTitle},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:i.dialogTitleText},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.title",defaultMessage:"Change Default Org?",description:"title of confirmation modal "})}))})),nt.exports.jsx(qm,Object.assign({className:i.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"confirmation-dialog-description"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.content",defaultMessage:"Current authentication methods may not be supported with this new organization.",description:"content of confirmation modal "})}))})),nt.exports.jsxs(Vm,Object.assign({className:i.dialogAction},{children:[nt.exports.jsx(ge,Object.assign({onClick:y,variant:"text",size:"large",className:i.dialogBtn+" "+i.cancelButton,"data-test":"org-confirmation-dialog-cancel-btn"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.cancel.btn",defaultMessage:"Cancel",description:"cancel button "})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{n(o),y()},size:"large",variant:"contained",color:"primary",className:i.dialogBtn,"data-test":"org-confirmation-dialog-confirm-btn"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.confirm.btn",defaultMessage:"Confirm",description:"confirm button "})}))]}))]}))]})}function SGt(e){let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current}let OGt=({height:e})=>{e=$Wt({height:e}).classes;let t=Ie();return nt.exports.jsxs("header",Object.assign({className:e.headerNoBorder,"data-testid":"review-request-panel-header"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1","data-testid":"org-title",className:e.title},{children:AWt.reviewRequest})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(pe,Object.assign({style:yWt,id:"org-close-panel"},{children:AWt.closePanel})),nt.exports.jsx(he,Object.assign({title:AWt.closePanel},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{t(wse(IGt))},"aria-labelledby":"invite-users-close-panel","data-testid":"invite-users-close-panel",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]}))]}))},kGt=je()(e=>({root:{},container:{padding:e.spacing(4,0,4,0)},flex:{display:"flex"},textContainer:{marginLeft:"15px",minWidth:"80%"},textDiv:{minWidth:"100%"},subtitleText:{color:"#5C6269"},organizationLabel:{fontSize:"18px",width:"250px",wordWrap:"break-word"}})),TGt=({organizationName:e,organizationLogo:t})=>{var n=kGt().classes;return nt.exports.jsx("div",Object.assign({className:n.container},{children:nt.exports.jsxs("div",Object.assign({className:n.flex},{children:[null===e&&nt.exports.jsx(ye,{variant:"circular",width:48,height:48}),e&&nt.exports.jsx(W8,Object.assign({sx:{bgcolor:"#F2F5F9",padding:"11px",width:48,height:48},src:t||null},{children:!t&&nt.exports.jsx(y0e,{})})),nt.exports.jsxs("div",Object.assign({className:n.textContainer},{children:[nt.exports.jsxs("div",Object.assign({className:n.textDiv},{children:[null===e&&nt.exports.jsx(ye,{variant:"text"}),e&&nt.exports.jsx(pe,Object.assign({className:n.subtitleText},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.org-label.veritone-inviting-you",defaultMessage:"Veritone is inviting you to join the",description:"Review Request Panel organization label, veritone inviting you"})}))]})),nt.exports.jsxs("div",Object.assign({className:n.textDiv},{children:[null===e&&nt.exports.jsx(ye,{variant:"text"}),e&&nt.exports.jsxs(pe,Object.assign({className:n.organizationLabel},{children:[e," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.org-label.word-organization",defaultMessage:"Organization",description:"Review Request Panel organization label, organization word."})]}))]}))]}))]}))}))},EGt=je()(e=>({root:{},container:{padding:e.spacing(4,0,4,0),display:"flex",alignItems:"center"},flex:{display:"flex"},textContainer:{marginLeft:"15px",width:"250px",wordWrap:"break-word"},skeletonTextContainer:{width:"80%",marginLeft:"15px"}})),NGt=({author:e,organizationName:t})=>{var n=EGt().classes,{name:e,photo:r}=e;return e?nt.exports.jsxs("div",Object.assign({className:n.container},{children:[null===e&&nt.exports.jsx(ye,{variant:"circular",width:48,height:48}),e&&nt.exports.jsx(W8,{src:r,sx:{bgcolor:"#F2F5F9"}}),null===e&&nt.exports.jsxs("div",Object.assign({className:n.skeletonTextContainer},{children:[nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"})]})),e&&nt.exports.jsxs(pe,Object.assign({className:n.textContainer},{children:[nt.exports.jsx("strong",{children:e})," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.invite-author.request-message",defaultMessage:"has requested that you join the",description:"Review Request Panel invite author, inviting you description text"})," ",nt.exports.jsx("strong",{children:t})," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.invite-author.organization-word",defaultMessage:"organization.",description:"Review Request Panel invite author, organization word"})]}))]})):nt.exports.jsx("div",{className:n.container})},MGt=je()(e=>({root:{},container:{padding:e.spacing(5,3,5,3),display:"flex",alignItems:"flex-start",backgroundColor:"#EEF3F9",flexDirection:"column",borderRadius:"4px",marginBottom:"25px"},messageLabel:{marginBottom:"10px",color:"#5C6269"}})),PGt=({message:e})=>{var t=MGt().classes;return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsxs(pe,Object.assign({variant:"subtitle2",className:t.messageLabel,component:"label"},{children:[nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.author-message.word-message",defaultMessage:"Message",description:"Review Request Panel author message, the word message"}),": "]})),nt.exports.jsx(pe,{children:e})]}))},LGt=je()(e=>({root:{display:"flex",justifyContent:"end",position:"absolute",right:"25px",bottom:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none"},actionButton:{textTransform:"none"}})),DGt=({onReject:e,onAccept:t,isDisabled:n})=>{var r=LGt().classes;let[i,o]=Le.exports.useState(!1),a=Ie(),s=()=>{a(wse(IGt))};return nt.exports.jsxs("div",Object.assign({className:r.root,"data-testid":"os-organization-panel-review-request-panel-action-footer"},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{e(),s(),a(kWt.clearActiveOrganizationInviteId())},disabled:i||n,"data-testid":"os-organization-panel-review-request-panel-action-footer-cancel-button",className:r.cancelButton,sx:{color:"#2A323C"}},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.action-footer.reject-button",defaultMessage:"Reject Invitation",description:"Review Request Panel action footer, reject invitation button"})})),nt.exports.jsx(ije,Object.assign({loading:i,variant:"contained",color:"primary",onClick:()=>{o(!0),setTimeout(()=>{t(),s(),a(kWt.clearActiveOrganizationInviteId())},1e3)},disabled:n,"data-testid":"os-organization-panel-review-request-panel-action-footer-accept-button",className:r.actionButton},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.action-footer.accept-button",defaultMessage:"Accept Invitation",description:"Review Request Panel action footer, reject invitation button"})}))]}))},RGt=je()(e=>({root:{},panelContent:{padding:e.spacing(0,6,0,6)},divider:{borderBottom:"0.5px solid #D5DFE9",height:"1px",opacity:.5},disclaimerText:{color:"#2A323C",marginTop:"25px"},skeletonContainer:{width:"90%",marginTop:"25px"}})),FGt={organizationName:null,organizationLogo:null},VGt={name:null,email:null,photo:null};let BGt=({height:e})=>{e=$Wt({height:e}).classes;let t=Ie();return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"multi-org-application-panel-header"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1","data-testid":"org-title",className:e.title},{children:AWt.addApplications})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(pe,Object.assign({style:yWt,id:"multi-org-application-panel-close"},{children:AWt.closePanel})),nt.exports.jsx(he,Object.assign({title:AWt.closePanel},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{t(lZt.organizationsState.setCurrentInvitee("")),t(wse(V.ADD_APPLICATIONS))},"aria-labelledby":"org-close-panel","data-testid":"multi-org-application-panel-close",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]}))]}))},HGt=je()((e,t,n)=>({root:{marginTop:"22px"},appInfo:{display:"flex",flexDirection:"row",justifyContent:"space-between"},flexContainer:{display:"flex",flexDirection:"row"},avatarCol:{width:"30px",marginRight:"14px"},avatar:{width:"30px",height:"30px",fontSize:"12px"},toggleCol:{width:"35px",marginRight:"12px",marginTop:"-12px"},toggleOff:{"& .MuiSwitch-thumb":{background:"rgb(158,167,179)"},"& .MuiSwitch-track":{background:"rgb(218,222,225)"},"& .Mui-disabled+.MuiSwitch-track":{opacity:.8}},toggleOn:{"& .MuiSwitch-thumb":{background:"#2F80ED"},"& .MuiSwitch-track":{background:"rgb(182,206,244)"}},cardTitle:{fontSize:"16px",fontWeight:400,lineHeight:"22px",textAlign:"left"},cardText:{fontSize:"14px",fontWeight:400,lineHeight:"20px"},select:{width:"270px",position:"relative","& > .MuiSelect-select > :nth-child(2)":{display:"none !important"}},menuItem:{width:"436px",display:"block","& < ul < div":{left:"150px !important"}},optionTitle:{fontWeight:600,fontSize:"16px",lineHeight:"22px"},optionText:{fontWeight:400,fontSize:"14px",lineHeight:"20px",whiteSpace:"break-spaces"},selectCol:{margin:"28px 0 28px 44px"}})),UGt=je()(()=>({root:{display:"flex",flexDirection:"column",justifyContent:"space-between"},appSearchContainer:{padding:"20px 30px 0"},appCardsContainer:{padding:"10px 30px",height:"calc(100vh - 260px)",overflowY:"scroll"},saveButton:{float:"right",margin:"25px 44px"}}));var zGt,_Gt=sW(({intl:e,card:t,manageRoles:n,roles:r=[]})=>{let[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(""),[l,c]=Le.exports.useState(""),{applicationName:d,applicationDescription:u,applicationIconUrl:p,applicationId:g,providedRole:f,applicationKey:h}=t,m=HGt().classes,[C,x]=Le.exports.useState(""),[v,b]=Le.exports.useState([]);Le.exports.useEffect(()=>{f&&(o(!0),x(h))},[f]),Le.exports.useEffect(()=>{var e;r&&C&&((e=r.filter(e=>e.appName===C&&!SWt.includes(e.id))).sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())),b(e))},[C]);t=e.formatMessage({id:"organization-panel.user-application-role",defaultMessage:[{type:0,value:"Role Type"}]});return Le.exports.useEffect(()=>{a&&l&&n({type:zGt.SET_ROLE,payload:{applicationId:g,role:a,roleId:l,application:{name:d,iconUrl:p}}})},[l]),Le.exports.useEffect(()=>{var e;0<v.length&&C&&!f?(s(v[0].name),c(v[0].id)):0<v.length&&C&&f&&(e=v.find(e=>e.id===f))&&(s(e.name),c(e.id))},[v,f]),nt.exports.jsxs("div",Object.assign({className:m.root,"data-testid":"multi-org-app-card"},{children:[nt.exports.jsxs("div",Object.assign({className:m.appInfo},{children:[nt.exports.jsxs("div",Object.assign({className:m.flexContainer},{children:[nt.exports.jsx("div",Object.assign({className:m.avatarCol},{children:nt.exports.jsx(W8,{src:p||Lle,"data-testid":"multi-org-app-card-avatar",className:m.avatar})})),nt.exports.jsxs("div",{children:[nt.exports.jsx("div",Object.assign({className:m.cardTitle},{children:d})),nt.exports.jsx("div",Object.assign({className:m.cardText},{children:u}))]})]})),nt.exports.jsx("div",Object.assign({className:m.toggleCol},{children:nt.exports.jsx(SA,{"data-testid":"multi-org-app-card-access-toggle",value:i,checked:i,onChange:()=>{i?(s(""),n({type:zGt.REMOVE_ROLE,payload:{applicationId:g}}),x("")):x(h.toLowerCase()),o(!i)},className:i?m.toggleOn:m.toggleOff,disabled:!r.length})}))]})),nt.exports.jsx("div",Object.assign({className:m.selectCol},{children:i&&nt.exports.jsxs(pC,{children:[nt.exports.jsx(fx,Object.assign({id:"multi-org-role-type"},{children:t})),nt.exports.jsx(Gb,Object.assign({labelId:"multi-org-role-type","data-testid":"application-card-user-role",value:a,label:t,onChange:t=>{s(t.target.value);var e=null==(e=v.find(e=>e.name===t.target.value))?void 0:e.id;c(e)},className:m.select,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},{children:v&&v.map(e=>nt.exports.jsxs(fe,Object.assign({value:e.name,className:m.menuItem,"data-testid":"multi-org-application-role-"+e.id},{children:[nt.exports.jsx("div",Object.assign({className:m.optionTitle},{children:e.name})),nt.exports.jsx("div",Object.assign({className:m.optionText},{children:e.description}))]}),e.id))}))]})})),nt.exports.jsx(se,{})]}))});let qGt=({onChange:t})=>{let[e,n]=Le.exports.useState(""),r=Le.exports.useRef(Ide(e=>{t(e)},1e3)).current;var[i]=Le.exports.useState(""),[o]=Le.exports.useState(!1),a=Sqe.TableSearchInputButton;return nt.exports.jsx(a,{onChange:e=>{n(e.target.value),e.target.value?r(e.target.value):r("")},onClear:()=>{n(""),r("")},testId:"add-application-search",placeholderText:"Search by application name",searchValue:i,inputValue:e,isSearchVisible:!0,isSearching:o,searchItemTooltipText:"Application Name"})},WGt=((H3e=zGt=zGt||{})[H3e.SET_ROLE=0]="SET_ROLE",H3e[H3e.REMOVE_ROLE=1]="REMOVE_ROLE",(r,i)=>{switch(i.type){case zGt.SET_ROLE:{let{applicationId:t,role:e,roleId:n}=i.payload;var o,a=[...r];return t&&n&&e&&(-1===(o=r.findIndex(e=>e.applicationId===t))?a.push(i.payload):a[o]=i.payload),a}case zGt.REMOVE_ROLE:{let t=i.payload.applicationId;return[...r].filter(e=>e.applicationId!==t)}default:return r}});let ZGt=()=>nt.exports.jsxs(Jx,{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(ye,{variant:"circular",width:30,height:30})}),nt.exports.jsxs(lv,{children:[nt.exports.jsx(ye,{variant:"text",width:330,height:50}),nt.exports.jsx(ye,{variant:"text",width:400,height:25})]}),nt.exports.jsx(_x,{children:nt.exports.jsx(ye,{variant:"rectangular",width:40,height:30})})]}),GGt=()=>{let n=Array.from({length:15},(e,t)=>t);return nt.exports.jsx(Mx,{children:n.map((e,t)=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ZGt,{},t),t!==n.length-1&&nt.exports.jsx(se,{})]}))})};var n4e={Mert:"https://avatars.githubusercontent.com/u/51537954",Tony:"https://avatars.githubusercontent.com/u/51537954"},Xee={removeUser:()=>({}),applicationsAction:()=>({})},h4e=Object.assign({firstName:"Tony",lastName:"Gaglio",email:"tony@veritone.com",avatar:n4e.Tony,userStatus:sZt.existing,applications:["someApp"]},Xee),Uge=Object.assign({firstName:"Richard",lastName:"Vance",email:"richard@veritone.com",avatar:"",userStatus:sZt.existing,applications:["someApp","anotherApp"]},Xee),t=Object.assign({firstName:"",lastName:"",email:"john@veritone.com",avatar:n4e.Tony,userStatus:sZt.new},Xee),P2e=Object.assign({firstName:"Mert",lastName:"Hotdog",email:"mert@veritone.com",avatar:n4e.Mert,userStatus:sZt.pending},Xee),Zge={name:"Data Center",iconUrl:"https://www.filepicker.io/api/file/U3eW5m20QBCCG1GJh1RE"},Tpe={role:"Editor"},uX=[{id:"1",avatar:"https://avatars.githubusercontent.com/u/20645060",name:"Hamit Tokay",email:"htokay@veritone.com",userStatus:sZt.existing,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]},{id:"2",avatar:"https://avatars.githubusercontent.com/u/51537954",name:"Mert Nacakgedigi",email:"mnacakgedigi@veritone.com",userStatus:sZt.new,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]},{id:"3",avatar:"https://avatars.githubusercontent.com/u/74932289",name:"Alex Oleksiiuk",email:"aoleksiiuk@veritone.com",userStatus:sZt.pending,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]}],JGt=Object.freeze({__proto__:null,AddApplicationsPanel:()=>{let[e,o]=Le.exports.useReducer(WGt,[]),[t,n]=Le.exports.useState(!0);var r=(e=>{let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current})(e);let[i,a]=Le.exports.useState([]),[s,l]=Le.exports.useState(""),[c,d]=Le.exports.useState([]),u=Ae(JWt),p=Ae(DWt),g=Ae(RWt),f=Ae(NWt),h=Ae(MWt);var m=UGt().classes;let C=(()=>{let e=Le.exports.useRef(!1);return Le.exports.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),Le.exports.useCallback(()=>e.current,[])})(),x=(Le.exports.useEffect(()=>{if(C()&&p&&g&&f){var e=(null==(e=p.find(e=>e.email===g))?void 0:e.applicationRoles)||[],n=[...f.applications.records];for(let t of e){o({type:zGt.SET_ROLE,payload:{applicationId:null==(i=null==t?void 0:t.application)?void 0:i.id,role:null==(i=null==t?void 0:t.role)?void 0:i.id}});var r,i=n.findIndex(e=>e.applicationId===(null==t?void 0:t.applicationId));-1!==i&&(r=Object.assign(Object.assign({},n[i]),{providedRole:null==t?void 0:t.roleId}),n[i]=r)}a(n)}},[p,g,f]),Le.exports.useEffect(()=>{var e;C()&&(e=i.sort((e,t)=>e.applicationName.localeCompare(t.applicationName)).filter(t=>(null==h?void 0:h.some(e=>e.appName===t.applicationKey))||!1).filter(e=>e.applicationName.toLowerCase().includes(s.toLowerCase())),d(e),0<(null==i?void 0:i.length))&&n(!1)},[s,i]),Ie());Le.exports.useEffect(()=>{x(lZt.organizationsState.currentOrganizationFetchStart(u))},[x,u]);r=!e.length&&(r||[]).length===e.length;return nt.exports.jsxs("div",Object.assign({className:m.root},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(BGt,{height:64}),nt.exports.jsx("div",Object.assign({className:m.appSearchContainer},{children:nt.exports.jsx(qGt,{onChange:e=>l(e)})})),nt.exports.jsxs("div",Object.assign({className:m.appCardsContainer},{children:[t&&nt.exports.jsx(GGt,{}),!t&&c.map(e=>nt.exports.jsx(_Gt,{"data-testid":"multi-org-application-card-"+e.applicationId,card:e,roles:f.roles,manageRoles:o},e.applicationId))]}))]}),nt.exports.jsx("div",{children:nt.exports.jsx(ge,Object.assign({"data-testid":"multi-org-applications-save",variant:"contained",className:m.saveButton,disabled:r,onClick:()=>{x(lZt.organizationsState.addInviteeRoles(e)),x(wse(V.ADD_APPLICATIONS))}},{children:AWt.saveBtn}))})]}))},get EOrganizationInviteAction(){return bZt},get EOrganizationInviteStatus(){return vZt},get EUserStatus(){return sZt},HIDDEN_APP_ROLE_IDS:SWt,INVITE_REQUEST_ITEMS:uX,InviteRequestsPanel:()=>{var e=yZt().classes;let r=Ie(),[i,o]=Le.exports.useState({}),[a,s]=Le.exports.useState(!1),l=Ae(ZWt),t=Ae(GWt),n=(t,n)=>{o(e=>Object.assign(Object.assign({},e),{[t]:n}))},c=()=>{l.forEach(({organizationInviteId:e})=>n(e,bZt.approve))},d=()=>{l.forEach(({organizationInviteId:e})=>n(e,bZt.reject))},u=e=>{n(e,bZt.approve)},p=e=>{n(e,bZt.reject)};var g=0<Object.keys(i).length;let f=()=>{r(qWt.fetchPendingInvitesStart())};return nt.exports.jsxs("div",Object.assign({className:e.inviteRequestsRoot},{children:[nt.exports.jsx("div",Object.assign({className:e.headerDescription},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:AWt.inviteRequestsDescription}))})),nt.exports.jsx("div",Object.assign({className:e.inviteRequestsListRoot},{children:"failure"===t?nt.exports.jsx(jZt,{onRetry:f,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.request-tab.error-message",defaultMessage:"Something went wrong while loading your organization invite requests.",description:"my organizations invite request error state"})}):"success"===t&&0===l.length?nt.exports.jsx(OZt,{type:"inviteRequest"}):"success"===t&&0<l.length?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(AZt,{onApproveAll:c,onRejectAll:d}),null==l?void 0:l.map((e,t)=>{var n;return nt.exports.jsx(IZt,{avatar:null==(n=null==e?void 0:e.invitee)?void 0:n.imageUrl,email:null==(n=null==e?void 0:e.invitee)?void 0:n.email,name:null==(n=null==e?void 0:e.invitee)?void 0:n.name,requestor:(null==(n=null==e?void 0:e.createdBy)?void 0:n.firstName)+" "+(null==(n=null==e?void 0:e.createdBy)?void 0:n.lastName),userStatus:null==(n=null==e?void 0:e.invitee)?void 0:n.status,requestedApps:null==e?void 0:e.applicationRoles,onApprove:u,onReject:p,id:e.organizationInviteId,itemStatus:(n=e.organizationInviteId,i[n])},t)})]}):null})),nt.exports.jsx(be,Object.assign({display:"flex",justifyContent:"flex-end",p:6},{children:nt.exports.jsx(ije,Object.assign({loading:a,onClick:()=>{if(!a){var e,t,n=[];for(e of l)e.organizationInviteId in i&&(t=e.applicationRoles.map(({application:e,role:t})=>({applicationId:e.id,roleId:t.id})),n.push({organizationInviteId:e.organizationInviteId,applicationRoles:t,action:i[e.organizationInviteId]}));0<n.length&&r(qWt.updatePendingInviteStatus(n)),s(!0)}},disabled:!g||a,variant:"contained",size:"large"},{children:AWt.confirm}))}))]}))},InviteUsersPanel:({organizationId:e,organizationGuid:t})=>{let n=Ae(uG),r=Ie();var i=xZt().classes;return Le.exports.useEffect(()=>{e&&t?r(lZt.organizationInvitesState.setOrganization({id:e.toString(),guid:t})):r(lZt.organizationInvitesState.setOrganization({id:n.organization.organizationId.toString(),guid:n.organization.organizationGuid}))},[e,n,r]),nt.exports.jsx(gqt,{children:nt.exports.jsxs("div",Object.assign({className:i.root,"data-test":"org-icon"},{children:[nt.exports.jsx(rZt,{height:64}),nt.exports.jsx(fZt,{})]}))})},OrganizationPanel:function(){let e,t,n,r="ORGANIZATION_PANEL";var i=uGt().classes;let o=Ae(uG),a=((w=o.organization)||{}).guid;var s=null==(n=null==(t=null==(e=Ae(eqt))?void 0:e.currentUser)?void 0:t.organization)?void 0:n.imageUrl;let l=Ae(EWt);var c=Ae(PWt),d=Ae(LWt),u=Ae(FWt);let[p,g]=Le.exports.useState(!0),[f,h]=Le.exports.useState(0),{apiRoot:m,graphQLEndpoint:C,token:x}=Ae(QWt),v=Ie(),b=jWt(null==o?void 0:o.roles),[y,A]=Le.exports.useState(w),I=SGt(a);Le.exports.useEffect(()=>{var e;m&&C&&x&&(v(lZt.organizationsState.organizationsFetchStart()),v(lZt.organizationsState.fetchOrganizationInvitesStart()),e=a!==I,b)&&e&&v(lZt.organizationInvitesState.fetchPendingInvitesStart(null==(e=null==o?void 0:o.organization)?void 0:e.organizationId))},[m,C,x,b,v,a]),Le.exports.useEffect(()=>{var e=null==l?void 0:l.find(e=>e.guid===a);e&&A(e)},[a,l]),Le.exports.useEffect(()=>{m&&x&&o.userId&&v(lZt.scimIdsState.scimIdsFetchStart())},[m,x,o.userId,v]);var{organization:w={},email:j}=o||{},S=cGt,O=dGt,k=null==u?void 0:u.filter(e=>0<=vGt(new Date,new Date(e.expirationDate)));return k=[{label:nt.exports.jsx(Ce,{id:"os-organization-panel.tabs.my.organizations",defaultMessage:"My Organizations",description:"user's organizations list"}),disabled:!1,id:"myOrganizations"},{label:nt.exports.jsx(u7,Object.assign({badgeContent:null==k?void 0:k.length,color:"error",sx:{paddingRight:0===(null==k?void 0:k.length)?"0":12+4*Math.min(3,null==k?void 0:k.length.toString().length)+"px","& .MuiBadge-badge":{top:"50%"}}},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.tabs.invites",defaultMessage:"Invites",description:"user's organization invites list"})})),disabled:!1,id:"invites"}],nt.exports.jsx(gqt,{children:nt.exports.jsx(wXe,Object.assign({modules:[aY(),lGt()]},{children:nt.exports.jsxs(D4e,{children:[nt.exports.jsxs("div",Object.assign({className:i.root,"data-test":"org-icon"},{children:[nt.exports.jsx(nZt,{height:64,onPanelClose:()=>v(wse(r)),parentPanelId:r}),nt.exports.jsxs("div",Object.assign({className:i.logoWrapper},{children:[s&&p?nt.exports.jsx(W8,Object.assign({variant:"square",className:i.logo,"data-test":"app-bar-org-button"},{children:nt.exports.jsx("img",{alt:"",src:(null==y?void 0:y.imageUrl)||s,onError:function(){g(!1)},className:i.orgImage})})):nt.exports.jsx(W8,Object.assign({variant:"circular",className:i.sortName,"data-test":"app-bar-org-button"},{children:JO((null==y?void 0:y.name)||w.organizationName||"")})),nt.exports.jsx(pe,Object.assign({"data-test":"org-name",variant:"subtitle1"},{children:(null==y?void 0:y.name)||w.organizationName||""})),nt.exports.jsx("div",Object.assign({className:i.loggedBox},{children:nt.exports.jsxs(pe,Object.assign({variant:"body2",className:i.loggedText},{children:[nt.exports.jsx(Ce,{id:"os-organization-panel.0HWGhE",defaultMessage:"Currently logged in as: ",description:"organization panel: the currently logged in user text"})," ",nt.exports.jsx("span",Object.assign({"data-test":"org-user-email",onClick:e=>e.preventDefault(),id:"organization-panel-link-id",className:i.loginAs},{children:j}))]}))}))]})),nt.exports.jsx("div",Object.assign({className:i.tabsParent},{children:nt.exports.jsx(C6e,{selectedId:f,onChangeTab:e=>{h(e)},tabsList:k})})),nt.exports.jsx(se,{className:i.divider}),nt.exports.jsxs("div",Object.assign({className:i.listBox},{children:[0<S.length&&nt.exports.jsx(MZt,{isNav:!0,items:S}),0<O.length&&nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.WM8PzP",defaultMessage:"Organization Invitations (Pending)",description:"organization panel: the header of the pending organization invitations list"})})),nt.exports.jsx(MZt,{items:O})]})]}))]})),nt.exports.jsxs("div",Object.assign({className:i.secondBox},{children:[nt.exports.jsx(x6e,Object.assign({value:f,index:0},{children:nt.exports.jsx(jGt,{uiStatus:c,organizations:l,onRetry:()=>{v(lZt.organizationsState.organizationsFetchStart())},onSetUserDefaultOrg:e=>{v(lZt.organizationsState.setUserDefaultOrg(e))}})})),nt.exports.jsx(x6e,Object.assign({value:f,index:1},{children:nt.exports.jsx(wGt,{organizationInvites:u,uiStatus:d,onRetry:()=>{v(lZt.organizationsState.fetchOrganizationInvitesStart())}})}))]}))]})}))})},ReviewRequestPanel:()=>{var e=RGt().classes;let t=Ie(),[{organizationName:n,organizationLogo:r},s]=Le.exports.useState(FGt),[i,l]=Le.exports.useState(VGt),[o,c]=Le.exports.useState(null),d=Ae(VWt);return Le.exports.useEffect(()=>{var e,t,n,r,i,o,a;d&&({message:e,organization:a,createdBy:o}=d,{name:a,imageUrl:t}=a,{name:n,firstName:r,lastName:i}=o,o=o.imageUrl,s({organizationName:a,organizationLogo:t}),a=r||i?r+" "+i:n,l({name:a,email:n,photo:o}),c(e))},[d]),nt.exports.jsx(gqt,{children:nt.exports.jsxs("div",Object.assign({className:e.root,"data-test":"org-icon"},{children:[nt.exports.jsx(OGt,{height:64}),nt.exports.jsxs("div",Object.assign({className:e.panelContent},{children:[nt.exports.jsx(TGt,{organizationName:n,organizationLogo:r}),nt.exports.jsx("div",{className:e.divider}),nt.exports.jsx(NGt,{author:i,organizationName:n}),o&&nt.exports.jsx(PGt,{message:o}),nt.exports.jsx("div",{className:e.divider}),null===n&&nt.exports.jsxs("div",Object.assign({className:e.skeletonContainer},{children:[nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"})]})),null!==n&&nt.exports.jsx("div",Object.assign({className:e.disclaimerText},{children:nt.exports.jsx(pe,Object.assign({variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.disclaimer-text",defaultMessage:"If you choose to accept this invitation, you will be granted access to specific applications and data available inside this Organization. You can switch between Organizations at anytime by using your Organization setting tool.",description:"Review Request Panel disclaimer text"})}))})),nt.exports.jsx(DGt,{onReject:()=>{var e={organizationInviteId:d.organizationInviteId,applicationRoles:d.applicationRoles,action:bZt.reject};t(lZt.reviewRequestState.updateOrganizationInviteStart(e))},onAccept:()=>{var e={organizationInviteId:d.organizationInviteId,applicationRoles:d.applicationRoles.map(e=>({applicationId:e.application.id,roleId:e.role.id})),action:bZt.complete};t(lZt.reviewRequestState.updateOrganizationInviteStart(e))},isDisabled:null===n})]}))]}))})},SHARED_TEXT:AWt,SLICE_NAME:IWt,UserCard:uZt,UserStatusBadge:CZt,UserVariant:mZt,actions:lZt,adminRoles:wWt,applicationMock:Zge,daysBetweenDates:vGt,existingUserNoAvatarProps:Uge,existingUserProps:h4e,getOrganizationPanelModule:lGt,isAdminUser:jWt,lads:n4e,myOrganizationsApis:Kge,newUserProps:t,organizationInviteApi:qZt,organizationInvitesSelectors:YWt,organizationSelectors:BWt,panelId:gZt,pendingUserProps:P2e,get reducerActions(){return zGt},roleMock:Tpe,scimIdSelectors:zWt,scimIdsApi:mge,selectApiConfigs:QWt,selectUserId:XWt,usePrevious:SGt});function KGt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}let YGt=je()(()=>({iconButton:{padding:0,width:38,height:38,borderRadius:"50%","& svg":{fontSize:26},"&:hover":{background:"rgba(228, 240, 252, 0.4)"}},selected:{background:"rgba(228, 240, 252, 0.8)",color:"#0C53B0","& svg, & path":{fill:"#0C53B0"},"&:hover":{background:"rgba(228, 240, 252, 0.8)"}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center"},img:{maxWidth:30,maxHeight:30}}));function QGt({id:e,selected:t=!1,icon:n,onTabIconClick:r,iconComponent:i}){var o=YGt().classes;let[a,s]=Le.exports.useState(0),[l,c]=Le.exports.useState(0),d=je()(()=>({viewRequestsBadge:{"& .MuiBadge-badge":{fontFamily:"Nunito",backgroundColor:"#D43060",color:"#fff",zIndex:"unset"}}}))().classes,u=Ae(uG),p=Ae(QWt),g=()=>KGt(this,void 0,void 0,function*(){var e;u&&(jWt(u.roles)&&(e=null==(e=null==u?void 0:u.organization)?void 0:e.organizationId,e=yield qZt.fetchPendingOrganizationInvites(e,p),s(e.length)),e=yield qZt.fetchOrganizationInvites(p),c(e.length))});Le.exports.useEffect(()=>{"ORGANIZATION_PANEL"===e&&KGt(this,void 0,void 0,function*(){try{yield g()}catch(e){console.log(e)}})},[]);return nt.exports.jsx("div",Object.assign({className:o.tabIcon},{children:nt.exports.jsx(ue,Object.assign({disableRipple:!0,className:Zhe(o.iconButton,{[o.selected]:t}),onClick:function(){r(e)},"data-test-id":"dt-button-tab-icon-"+e,"data-test":"dt-button-tab-icon",size:"large"},{children:i?(t=i,a+l?nt.exports.jsx(u7,Object.assign({badgeContent:a+l,className:d.viewRequestsBadge},{children:t})):t):nt.exports.jsx("img",{className:o.img,src:n,draggable:"false",alt:""})}))}))}let XGt=je()(e=>({tabsContainer:{width:"100%",textAlign:"center",flex:1},menuTabIcon:{paddingBottom:e.spacing(1.6)},flowIcon:{width:50,height:50,color:e.palette.secondary.main}}));function $Gt({selectedId:e,onChangeTab:t,tabsList:n=[],roles:a}){let s=XGt().classes,[l,r]=Le.exports.useState(e),{adminShortcut:c=!0,betaFeatures:d}=Ae(e=>e.configs.initConfig),u=window.location.hostname.split(".")[0],p=a.includes("admin"),g=Ae(fG),f=Ae(mG);function h(e){r(e),t(e)}return Le.exports.useEffect(()=>{e!==l&&r(e)},[e,l]),nt.exports.jsx(be,Object.assign({className:s.tabsContainer},{children:n.map((e,t)=>{var{id:e,icon:n,role:r,label:i,iconComponent:o}=e,i=nt.exports.jsx(he,Object.assign({title:i,placement:"left"},{children:nt.exports.jsx(be,Object.assign({className:s.menuTabIcon},{children:nt.exports.jsx(QGt,{selected:e===l,icon:n,iconComponent:o,onTabIconClick:h,id:e,"data-test":"TabIcon-data-test"+e})}),e)}),e);if(r&&a.includes(r)||!r){if(t<2)return i;if(e===tk.DATA_CENTER)return i;if(e===tk.PROCESSING_CENTER)return i;if(e===tk.FLOW_CENTER)return u.toLocaleLowerCase().includes("automate")?null:i;if(e===tk.ADMIN_SHORTCUT&&c)return i;if(e===tk.SETTING_PREFERENCE_PANEL&&d)return u.toLocaleLowerCase().includes("admin")?null:i;if([tk.MARKETPLACE_CENTER,tk.LIBRARY_CENTER,tk.ENGINE_CENTER].includes(e))return d?i:null;if(e===tk.RESOURCE_CENTER&&(g||p))return i;if(e===tk.INSTANCE_ADMIN_CENTER_BROWSE&&f)return i}return null})}))}let eJt=(o,a)=>KGt(void 0,void 0,void 0,function*(){var t="platformInfo",e=`query ${t} {
2084
+ `;return yield H(Object.assign(Object.assign({query:s},l),{rethrowOriginalError:!0}))}catch(e){throw new Error(e.message)}})}function UZt(a,s){return kZt(this,void 0,void 0,function*(){var e="updateOrganizationInvite",t="updateOrganizationInvite",{organization:e,invitee:t,applicationRoles:n,status:r,expirationDate:i,message:o}=(yield H(Object.assign({query:"\n mutation updateOrganizationInvite($input: UpdateOrganizationInviteInput!){\n updateOrganizationInvite(input: $input){\n organization {\n id\n }\n applicationRoles {\n application {\n id,\n name\n iconUrl\n }\n role {\n id,\n name,\n description\n appName\n }\n }\n invitee {\n email\n }\n status\n expirationDate\n message\n }\n }\n ",operationName:e,variables:{input:s}},a)))[t];return{organizationInviteId:s.organizationInviteId,organizationId:e.id,invitee:t,email:t.email,status:r,expirationDate:i,message:o,applicationRoles:n.map(e=>({application:e.application,role:e.role,applicationId:e.application.id,roleId:e.role.id}))}})}function zZt(r,i){return kZt(this,void 0,void 0,function*(){var e={organizationInviteId:i.organizationInviteId},t="deleteOrganizationInvite",n="deleteOrganizationInvite";return(yield H(Object.assign({query:"\n mutation deleteOrganizationInvite($organizationInviteId: ID!){\n deleteOrganizationInvite(organizationInviteId: $organizationInviteId){\n id\n }\n }\n ",operationName:t,variables:e},r)))[n]})}function _Zt(n,r){var i;return kZt(this,void 0,void 0,function*(){var e="getPendingOrganizationInvites",t="organization",e=yield H(Object.assign({query:"\n query getPendingOrganizationInvites($id: ID!){\n organization(id: $id){\n organizationInvites(status:submitted) {\n id\n createdBy {\n id\n name\n firstName\n lastName\n imageUrl\n }\n organization {\n id\n name\n imageUrl\n }\n message\n applicationRoles{\n application {\n id\n name\n iconUrl\n }\n role {\n id\n name\n }\n }\n invitee {\n email\n name\n imageUrl\n }\n status\n expirationDate\n }\n }\n }\n ",operationName:e,variables:{id:n}},r));return null==(i=e[t])?void 0:i.organizationInvites.map(e=>(e.organizationInviteId=e.id,delete e.id,e))})}var qZt=Object.freeze({__proto__:null,fetchOrganizationInvites:BZt,createOrganizationInvite:HZt,updateOrganizationInvite:UZt,deleteOrganizationInvite:zZt,fetchPendingOrganizationInvites:_Zt});function WZt(n,r){return kZt(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=n,e=yield fetch(e+`/v1/admin/users/${r}/scim_connect_ids`,{headers:{Authorization:"Bearer "+t,"Content-Type":"application/json"}});if(200===e.status)return(yield e.json()).scimConnectIds;throw new Error("Error getting scim_connect_ids")})}mge=Object.freeze({__proto__:null,fetchScimIds:WZt});function*ZZt(){try{var e=yield PZt(yield D(QWt));yield P(lZt.organizationsState.organizationsFetchSucceed(e.records))}catch(e){yield P(lZt.organizationsState.organizationsFetchFailed()),console.log(e)}}function*GZt(t){try{var n=yield D(QWt),r=yield D(uG),i=jWt(r.roles);let e;(e=i?yield LZt(n,t.payload):yield DZt(n)).applications.records=yield L(KZt),yield P(lZt.organizationsState.currentOrganizationFetchSucceed(e))}catch(e){yield P(lZt.organizationsState.currentOrganizationFetchFailed()),console.log(e)}}let JZt=200;function*KZt(){var e,{apiRoot:t,token:n}=yield D(QWt);let r=0;var i=JZt;let o={totalResults:999,results:[]},a={results:[{applicationId:"init value for while loop"}]};for(;(o.results.length||0)<(o.totalResults||0)&&null!=(e=null==a?void 0:a.results)&&e.length;)a=yield L(XG,t,n,r,i),null!=o&&o.to?null!=(e=null==o?void 0:o.results)&&e.length&&(o.results=o.results.concat(a.results||[])):o=a,r+=JZt;return o.results}function*YZt(t){try{var n=yield D(QWt),r=t.payload,i=yield D(uG),o=yield D(KWt),a=yield D(AG),s=XW(a),l=jWt(i.roles);let e={email:t.payload,applicationRoles:[],status:sZt.new,organizationGuids:[]};(e=l?yield RZt(n,{email:r,userOrgGuid:o}):e).organizationGuids.includes(o)?yield P(F({content:s({id:"os-organization-panel.snackbar.warning.user-invitee-already-present-in-org",defaultMessage:[{type:0,value:"The user you requested is already a member of the organization."}]}),severity:R.Info})):yield P(lZt.organizationsState.fetchInviteeSucceed(e))}catch(e){yield P(lZt.organizationsState.fetchInviteeFailed()),console.log(e)}}function*QZt(e){try{var t=yield D(AG),n=XW(t),r=(yield P(kJ({message:n({id:"os-organization-panel.organizations-switching-loader-message",defaultMessage:[{type:0,value:"Changing your Organization"}]})||"Changing your Organization",followUpActionType:lZt.organizationsState.switchUserToOrganizationSucceed.type})),yield Zu(100),yield D(QWt)),i=(yield FZt(r,e.payload)).sessionToken;yield Zu(100),yield P(LZ({token:i})),yield P(wJ({eventType:uK,command:cK.refreshPage,value:!0,ephemeral:!0,contentType:"json"})),yield P(lZt.organizationsState.switchUserToOrganizationSucceed())}catch(e){yield P(lZt.organizationsState.switchUserToOrganizationFailed()),console.log(e)}}function*XZt(){try{var e=yield BZt(yield D(QWt));yield P(lZt.organizationsState.fetchOrganizationInvitesSucceed(e))}catch(e){yield P(lZt.organizationsState.fetchOrganizationInvitesFailed()),console.log(e)}}function*$Zt(e){var t=yield D(AG),t=XW(t);try{yield VZt(yield D(QWt),e.payload),yield P(lZt.organizationsState.organizationsFetchStart())}catch(e){yield P(F({content:t({id:"organization-panel.snackbar.setUserDefaultError",defaultMessage:[{type:0,value:"Something went wrong while setting default organization."}]}),severity:R.Error})),console.log(e)}}function*eGt(t){var e,n=yield D(AG),n=XW(n);try{var r=yield HZt(yield D(QWt),t.payload);null!=(e=null==r?void 0:r.errors)&&e.length?(r.errors.some(e=>null==(e=e.message)?void 0:e.match(/has already been invited/))&&(yield P(F({content:TL("production","development")?"This email already has a pending invitation, and must be approved or rejected before a new invite can be sent":n({id:"os-organization-panel.snackbar.error.create-organization-pending-invite",defaultMessage:[{type:0,value:"This email already has a pending invitation, and must be approved or rejected before a new invite can be sent"}]}),severity:R.Error}))),yield P(lZt.organizationInvitesState.createOrganizationInviteFailed())):(yield P(lZt.organizationInvitesState.createOrganizationInviteSucceed()),yield P(F({content:TL("production","development")?"Your Invitation has been successfully sent":n({id:"os-organization-panel.snackbar.success.create-organization-pending-invite",defaultMessage:[{type:0,value:"Your Invitation has been successfully sent"}]}),severity:R.Success})),yield P(lZt.organizationsState.clearInvitees()))}catch(e){yield P(lZt.organizationInvitesState.createOrganizationInviteFailed()),null!=(t=e.message)&&t.includes('null value in column "user_id"')?yield P(F({content:TL("production","development")?"You may only invite current users of the aiWARE platform to your Organization'":n({id:"os-organization-panel.snackbar.warning.invite-new-user-failed",defaultMessage:[{type:0,value:"You may only invite current users of the aiWARE platform to your Organization"}]}),severity:R.Error})):yield P(F({content:TL("production","development")?"There was a problem creating your invitation":n({id:"os-organization-panel.snackbar.warning.create-organization-invite-failed",defaultMessage:[{type:0,value:"There was a problem creating your invitation"}]}),severity:R.Error}))}}function*tGt(e){try{var t=yield UZt(yield D(QWt),e.payload);yield P(lZt.organizationInvitesState.updateOrganizationInviteSucceed(t)),yield P(lZt.organizationInvitesState.fetchPendingInvitesStart())}catch(e){yield P(lZt.organizationInvitesState.updateOrganizationInviteFailed()),console.log(e)}}function*nGt(e){try{var t=yield D(QWt),n=(yield UZt(t,{organizationInviteId:e.payload.organizationInviteId,applicationRoles:e.payload.applicationRoles,action:bZt.delete}),{organizationId:e.payload.organizationId,message:e.payload.message,invitees:[{email:e.payload.email,applicationRoles:e.payload.applicationRoles}]}),r=yield HZt(t,n);yield P(lZt.organizationInvitesState.reRequestOrganizationInviteSucceed(r)),yield P(lZt.organizationsState.fetchOrganizationInvitesStart())}catch(e){yield P(lZt.organizationInvitesState.reRequestOrganizationInviteFailed()),console.log(e)}}function*rGt(e){try{let t=yield D(QWt);var r=(yield D(uG)).organization.organizationGuid,i=yield D(JWt),o=yield D(KWt),a=e.payload||i;let n=e.payload?r:o;var s=yield _Zt(a,t);if(s&&0<s.length){let e=yield Uu(s.map(e=>L(RZt,t,{email:null==(e=null==e?void 0:e.invitee)?void 0:e.email,userOrgGuid:n})));s.forEach(t=>{t.invitee.status=e.find(e=>(null==e?void 0:e.email)===(null==(e=null==t?void 0:t.invitee)?void 0:e.email))?sZt.existing:sZt.new})}yield P(lZt.organizationInvitesState.fetchPendingInvitesSucceed(s))}catch(e){yield P(lZt.organizationInvitesState.fetchPendingInvitesFailed()),console.log(e)}}function*iGt(e){var t=yield D(AG),t=XW(t);try{let t=yield D(QWt);var n=yield Uu(e.payload.map(e=>L(UZt,t,e)));n&&0<n.length&&(yield P(lZt.organizationInvitesState.fetchPendingInvitesStart(n[0].organizationId)),yield function*(){var e=yield D(Cse),e=e.find(e=>"INVITE_REQUESTS_PANEL"===e.microFrontend.name);e&&e.panelId&&(e=e.panelId,yield P(wse(e)))}())}catch(e){yield P(F({content:t({id:"os-organization-panel.invite.request.update.error",defaultMessage:[{type:0,value:"Something went wrong while saving your changes."}]}),severity:R.Error}))}}function*oGt(e){try{var t=yield WZt(yield D(QWt),yield D(XWt));yield P(lZt.scimIdsState.scimIdsFetchSucceed(t))}catch(e){yield P(lZt.scimIdsState.scimIdsFetchFailed()),console.log(e)}}function*aGt(e){var t=yield D(AG),t=XW(t);try{var n=yield D(QWt);e.payload.action===bZt.reject?yield zZt(n,e.payload):yield UZt(n,e.payload),yield P(lZt.reviewRequestState.updateOrganizationInviteSucceed()),yield P(lZt.organizationsState.fetchOrganizationInvitesStart()),yield P(lZt.organizationsState.organizationsFetchStart())}catch(e){yield P(F({content:t({id:"organization-panel.snackbar.updatingOrganizationInviteError",defaultMessage:[{type:0,value:"Something went wrong while updating the invite."}]}),severity:R.Error})),console.log(e)}}function*sGt(){yield Uu([function*(){yield o(lZt.organizationsState.organizationsFetchStart.type,ZZt)}(),function*(){yield $u(lZt.organizationsState.currentOrganizationFetchStart.type,GZt)}(),function*(){yield $u(lZt.organizationsState.fetchInviteeStart.type,YZt)}(),function*(){yield $u(lZt.organizationsState.switchUserToOrganizationStart.type,QZt)}(),function*(){yield $u(lZt.organizationInvitesState.createOrganizationInviteStart.type,eGt)}(),function*(){yield $u(lZt.organizationInvitesState.updateOrganizationInviteStart.type,tGt)}(),function*(){yield $u(lZt.organizationInvitesState.reRequestOrganizationInviteStart.type,nGt)}(),function*(){yield $u(lZt.organizationsState.fetchOrganizationInvitesStart.type,XZt)}(),function*(){yield $u(lZt.reviewRequestState.updateOrganizationInviteStart.type,aGt)}(),function*(){yield o(lZt.organizationsState.setUserDefaultOrg.type,$Zt)}(),function*(){yield o(lZt.organizationInvitesState.fetchPendingInvitesStart.type,rGt)}(),function*(){yield o(lZt.scimIdsState.scimIdsFetchStart,oGt)}(),function*(){yield o(lZt.organizationInvitesState.updatePendingInviteStatus.type,iGt)}()])}function lGt(){return{id:IWt,reducerMap:{[IWt]:cZt},sagas:[sGt],initialActions:[]}}let cGt=[],dGt=[],uGt=je()((e,t,n)=>({root:{userSelect:"none"},logoWrapper:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",height:"200px",["& "+n.logo]:{width:"83px",height:"83px",marginBottom:e.spacing(3)},["& "+n.titleLogo]:{color:e.palette.secondary.main,opacity:.9,"& > a":{marginLeft:"7px"}}},titleLogo:{},sortName:{borderRadius:"50%",width:83,height:83,fontSize:33,marginBottom:e.spacing(3)},logo:{borderRadius:"50%"},orgImage:{width:"100%",height:"100%",objectFit:"cover",marginBottom:0,borderRadius:"50%"},divider:{opacity:.9},listBox:{margin:e.spacing(0,3)},loggedBox:{paddingTop:e.spacing(2)},loggedText:{display:"flex",flexDirection:"column",textAlign:"center",cursor:"default"},loginAs:{color:e.palette.primary.main,cursor:"default"},tabsParent:{"& div":{padding:e.spacing(0,0,0,1.6),borderBottom:"none"},"& div button":{flex:"0 1 auto !important"}},secondBox:{padding:e.spacing(8,6,0,6)}})),pGt=je()(e=>({container:{display:"flex",flexDirection:"column"},heading:{display:"flex",flexDirection:"column",justifyContent:"flex-start"}})),gGt=je()(e=>({container:{},orgContainer:{display:"flex",cursor:"pointer"},clickDisabled:{cursor:"not-allowed"},defaultOrgBadge:{borderRadius:"2px",height:"16px",backgroundColor:"#F4F4F4",border:"0.5px solid #9CA8B4",color:"#5C6269",marginLeft:e.spacing(2.8),padding:e.spacing(.2,2),"& >span":{padding:0}},organizationName:{display:"inline-block",fontSize:"13px",fontWeight:600,lineHeight:"12px",width:"280px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},organizationSubtitle:{lineHeight:"16px",opacity:.7},textContainer:{display:"flex","& > .MuiListItemText-root":{display:"flex",flexDirection:"column",justifyContent:"center"}}}));function fGt({organizationName:e,organizationLogo:t,subtitle:n,isDefault:r,showDivider:i=!0,Action:o,onClick:a}){var s=gGt().classes;return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(Jx,Object.assign({className:s.container,disableGutters:!0},{children:[nt.exports.jsxs("div",Object.assign({onClick:a||void 0,className:s.orgContainer+" "+(a?"":s.clickDisabled)},{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(W8,Object.assign({src:t||null,sx:{width:38,height:38,padding:"9px",bgcolor:"#F2F5F9"},"data-testid":"organizations-panel-org-item-avatar"},{children:!t&&nt.exports.jsx(y0e,{})}))}),nt.exports.jsx("span",Object.assign({className:s.textContainer},{children:nt.exports.jsx(lv,{primary:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({className:s.organizationName,variant:"body1",sx:{fontSize:"13px!important",fontWeight:600},"data-testid":"organizations-panel-org-item-organization-name"},{children:e})),r&&nt.exports.jsx(e8,{className:s.defaultOrgBadge,label:nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:"Default"})),"data-test":"organization-panel-default-badge"})]}),secondary:n&&nt.exports.jsx(pe,Object.assign({variant:"subtitle2",className:s.organizationSubtitle,sx:{fontSize:"11px!important",fontWeight:400},"data-testid":"organizations-panel-org-item-subtitle"},{children:n}))})}))]})),nt.exports.jsx(_x,{children:o})]})),i&&nt.exports.jsx(se,{})]})}let hGt=je()(e=>({container:{display:"flex",flexDirection:"column",justifyContent:"flex-start"},header:{margin:0,marginBottom:"6px",fontWeight:600,cursor:"default"},description:{opacity:.8,cursor:"text"}}));function mGt({tab:e}){var t=hGt().classes,n={invites:{header:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-header",defaultMessage:"Invites",description:"organization panel: invites tab, invites header label"}),description:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-description",defaultMessage:"Review invitations to other organizations.",description:"organization panel: invites tab, invites header description"})},"my-organizations":{header:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations.tab-header",defaultMessage:"Organizations",description:"organization panel: organizations tab, header label"}),description:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations.tab-description",defaultMessage:"Switch between other organizations you have access to.",description:"organization panel: Organizations tab, header description"})}};return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsx(pe,Object.assign({variant:"body2",className:t.header,sx:{fontSize:"14px!important"},"data-testid":"organizations-panel-tab-header-"+e},{children:n[e].header})),nt.exports.jsx(pe,Object.assign({variant:"subtitle1",className:t.description,sx:{fontSize:"14px!important"},"data-testid":"organizations-panel-tab-header-"+e},{children:n[e].description}))]}))}let CGt=je()(e=>({container:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",textAlign:"center",padding:"12px"}}));function xGt({isExpired:e,onClickRemoveExpiredInvite:t,onClickRequestNewInvite:n,onClickViewActiveRequest:r}){var i=CGt().classes;return nt.exports.jsxs("div",Object.assign({className:i.container},{children:[e&&nt.exports.jsxs("div",{children:[nt.exports.jsx(ge,Object.assign({sx:{color:"gray",fontWeight:300},"data-testid":"os-organization-panel.invites.tab-remove-invite-button",onClick:t},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-remove-invite-button",defaultMessage:"Remove",description:"organization panel: invites tab, remove invite button"})}))," ",nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"os-organization-panel.invites.tab-request-invite-button",onClick:n},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-request-invite-button",defaultMessage:"Request Invite",description:"organization panel: invites tab, request invite button"})}))]}),!e&&nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"os-organization-panel.invites.tab-view-active-request-invite-button",onClick:r},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-view-request-invite-button",defaultMessage:"View Request",description:"organization panel: invites tab, view request invite button"})}))]}))}let vGt=(e,t)=>{e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),t=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.floor((t-e)/864e5)},bGt=je()(e=>({loadingText:{display:"flex",transform:"translateX(-20px)"}})),yGt=()=>{var e=bGt().classes;return nt.exports.jsxs(Jx,{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(ye,{variant:"circular",width:25,height:25})}),nt.exports.jsx(lv,Object.assign({className:e.loadingText},{children:nt.exports.jsx(ye,{variant:"text",width:150,height:21})})),nt.exports.jsx(_x,{children:nt.exports.jsx(ye,{variant:"rectangular",width:40,height:30})})]})},AGt=()=>nt.exports.jsxs(Mx,{children:[nt.exports.jsx(yGt,{}),nt.exports.jsx(se,{}),nt.exports.jsx(yGt,{})]}),IGt="REVIEW_ORG_INVITE_PANEL";function wGt({organizationInvites:e,uiStatus:t,onRetry:n}){var r=pGt().classes;let l=Ie(),c=e.filter(e=>e.status!==vZt.deleted);return"success"===t&&0===c.length?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(OZt,{type:"invites"})]}):"pending"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(AGt,{})]}):"failure"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(jZt,{onRetry:n,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.invites-tab.error-message",defaultMessage:"Something went wrong while loading your organization invites.",description:"my organizations error state"})})]}):nt.exports.jsxs("div",Object.assign({className:r.container},{children:[nt.exports.jsx(mGt,{tab:"invites"}),nt.exports.jsx(Mx,{children:c.map((t,e)=>{let{expirationDate:n,organization:r,organizationInviteId:i}=t;var o=r.name,a=r.imageUrl,e=e!==c.length-1,s=vGt(new Date,new Date(n))<0;return nt.exports.jsx(fGt,{organizationLogo:a,organizationName:o,subtitle:(e=>{var t=vGt(new Date,new Date(e));if(t<0)return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expired",defaultMessage:"Expired",description:"organization panel: invites tab, invite expiration status, is expired"});switch(t){case 0:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expires-today",defaultMessage:"Expires today",description:"organization panel: invites tab, invite expiration status, is expiring today"});case 1:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expires-tomorrow",defaultMessage:"Expires tomorrow",description:"organization panel: invites tab, invite expiration status, is expiring tomorrow"});default:return nt.exports.jsx(Ce,{id:"os-organization-panel.invites.tab-invite-status-expiration",defaultMessage:"Expires in {days} days",description:"organization panel: invites tab, invite expiration status, is expired",values:{days:t}})}})(n),Action:nt.exports.jsx(xGt,{isExpired:s,onClickViewActiveRequest:s?null:()=>{l(lZt.organizationsState.setActiveOrganizationInviteId(i));var e={name:IGt,config:{name:"Review Request"}};l(yse({panelId:IGt,microFrontend:e,panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:640,size:"small",parentPanelId:"ORGANIZATION_PANEL",dimmed:0,dimmedStatus:"dimParent"}}))},onClickRemoveExpiredInvite:s?()=>{var e={organizationInviteId:t.organizationInviteId,applicationRoles:t.applicationRoles,action:bZt.delete};l(lZt.organizationInvitesState.updateOrganizationInviteStart(e))}:null,onClickRequestNewInvite:s?()=>{l(lZt.organizationInvitesState.reRequestOrganizationInviteStart(t))}:null},t.organizationInviteId),isDefault:!1,showDivider:e},t.organizationInviteId)})})]}))}function jGt({organizations:r,uiStatus:e,onRetry:t,onSetUserDefaultOrg:n}){let i=wZt().classes,[o,a]=Le.exports.useState(0),[s,l]=Le.exports.useState(0),[c,d]=Le.exports.useState(!1),[u,p]=Le.exports.useState(null);var g=Ae(uG);let f=Ae(UWt),{email:h,organization:m}=g,C=(m||{}).organizationId,x=Ie(),v=Ae(sK),b=(Le.exports.useEffect(()=>{if(0<(null==r?void 0:r.length)){let e=1/0,t=0;for(var n of r)n.priority<e&&(e=n.priority,t=n.id);l(t)}},[r]),()=>{p(null)});let y=()=>{a(0),d(!1),b()};return nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsx(mGt,{tab:"my-organizations"}),"pending"===e?nt.exports.jsx(AGt,{}):"failure"===e?nt.exports.jsx(jZt,{onRetry:t,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.organizations-tab-error-message",defaultMessage:"Something went wrong while loading your organizations.",description:"my organizations error state"})}):"success"===e&&null!=r&&r.length?nt.exports.jsx(Mx,Object.assign({className:i.orgList},{children:r.map((t,e)=>nt.exports.jsx(fGt,{organizationName:t.name,guid:t.guid,showDivider:e!==r.length-1,organizationLogo:t.imageUrl,isDefault:t.id===s,Action:t.id===s||1===r.length||!1!==f?null:nt.exports.jsx(ue,Object.assign({"aria-controls":"org-menu","aria-haspopup":"true",onClick:e=>{a(t.id),e=e,p(e.currentTarget)},"data-test":"organization-panel-menu-button"},{children:nt.exports.jsx(dqt,{})})),onClick:(e=t.id,(C||"").toString()===(e||"").toString()?void 0:()=>{var e;e=t.guid,v||x(lZt.organizationsState.switchUserToOrganizationStart({organizationGuid:e,userName:h}))})},t.id))})):null,nt.exports.jsx(Pv,Object.assign({elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"right"},id:"org-default-settings-menu",anchorEl:u,open:Boolean(u),onClose:b,MenuListProps:{disablePadding:!0}},{children:nt.exports.jsx(fe,Object.assign({onClick:()=>{d(!0)},className:i.menuItem,"data-test":"organization-panel-make-default-button"},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.my.organizations.make.default",defaultMessage:"Make Default",description:"organization panel: make organization default button"})}))}))})),nt.exports.jsxs(Lm,Object.assign({open:c,maxWidth:"xs",onClose:y,"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description"},{children:[nt.exports.jsx(Qm,Object.assign({id:"confirmation-dialog-title","data-test":"org-confirmation-dialog-title",className:i.dialogTitle},{children:nt.exports.jsx(pe,Object.assign({variant:"h2",className:i.dialogTitleText},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.title",defaultMessage:"Change Default Org?",description:"title of confirmation modal "})}))})),nt.exports.jsx(qm,Object.assign({className:i.dialogContent},{children:nt.exports.jsx(Jm,Object.assign({id:"confirmation-dialog-description"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.content",defaultMessage:"Current authentication methods may not be supported with this new organization.",description:"content of confirmation modal "})}))})),nt.exports.jsxs(Vm,Object.assign({className:i.dialogAction},{children:[nt.exports.jsx(ge,Object.assign({onClick:y,variant:"text",size:"large",className:i.dialogBtn+" "+i.cancelButton,"data-test":"org-confirmation-dialog-cancel-btn"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.cancel.btn",defaultMessage:"Cancel",description:"cancel button "})})),nt.exports.jsx(ge,Object.assign({onClick:()=>{n(o),y()},size:"large",variant:"contained",color:"primary",className:i.dialogBtn,"data-test":"org-confirmation-dialog-confirm-btn"},{children:nt.exports.jsx(Ce,{id:"org.confirm.dialog.confirm.btn",defaultMessage:"Confirm",description:"confirm button "})}))]}))]}))]})}function SGt(e){let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current}let OGt=({height:e})=>{e=$Wt({height:e}).classes;let t=Ie();return nt.exports.jsxs("header",Object.assign({className:e.headerNoBorder,"data-testid":"review-request-panel-header"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1","data-testid":"org-title",className:e.title},{children:AWt.reviewRequest})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(pe,Object.assign({style:yWt,id:"org-close-panel"},{children:AWt.closePanel})),nt.exports.jsx(he,Object.assign({title:AWt.closePanel},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{t(wse(IGt))},"aria-labelledby":"invite-users-close-panel","data-testid":"invite-users-close-panel",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]}))]}))},kGt=je()(e=>({root:{},container:{padding:e.spacing(4,0,4,0)},flex:{display:"flex"},textContainer:{marginLeft:"15px",minWidth:"80%"},textDiv:{minWidth:"100%"},subtitleText:{color:"#5C6269"},organizationLabel:{fontSize:"18px",width:"250px",wordWrap:"break-word"}})),TGt=({organizationName:e,organizationLogo:t})=>{var n=kGt().classes;return nt.exports.jsx("div",Object.assign({className:n.container},{children:nt.exports.jsxs("div",Object.assign({className:n.flex},{children:[null===e&&nt.exports.jsx(ye,{variant:"circular",width:48,height:48}),e&&nt.exports.jsx(W8,Object.assign({sx:{bgcolor:"#F2F5F9",padding:"11px",width:48,height:48},src:t||null},{children:!t&&nt.exports.jsx(y0e,{})})),nt.exports.jsxs("div",Object.assign({className:n.textContainer},{children:[nt.exports.jsxs("div",Object.assign({className:n.textDiv},{children:[null===e&&nt.exports.jsx(ye,{variant:"text"}),e&&nt.exports.jsx(pe,Object.assign({className:n.subtitleText},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.org-label.veritone-inviting-you",defaultMessage:"Veritone is inviting you to join the",description:"Review Request Panel organization label, veritone inviting you"})}))]})),nt.exports.jsxs("div",Object.assign({className:n.textDiv},{children:[null===e&&nt.exports.jsx(ye,{variant:"text"}),e&&nt.exports.jsxs(pe,Object.assign({className:n.organizationLabel},{children:[e," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.org-label.word-organization",defaultMessage:"Organization",description:"Review Request Panel organization label, organization word."})]}))]}))]}))]}))}))},EGt=je()(e=>({root:{},container:{padding:e.spacing(4,0,4,0),display:"flex",alignItems:"center"},flex:{display:"flex"},textContainer:{marginLeft:"15px",width:"250px",wordWrap:"break-word"},skeletonTextContainer:{width:"80%",marginLeft:"15px"}})),NGt=({author:e,organizationName:t})=>{var n=EGt().classes,{name:e,photo:r}=e;return e?nt.exports.jsxs("div",Object.assign({className:n.container},{children:[null===e&&nt.exports.jsx(ye,{variant:"circular",width:48,height:48}),e&&nt.exports.jsx(W8,{src:r,sx:{bgcolor:"#F2F5F9"}}),null===e&&nt.exports.jsxs("div",Object.assign({className:n.skeletonTextContainer},{children:[nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"})]})),e&&nt.exports.jsxs(pe,Object.assign({className:n.textContainer},{children:[nt.exports.jsx("strong",{children:e})," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.invite-author.request-message",defaultMessage:"has requested that you join the",description:"Review Request Panel invite author, inviting you description text"})," ",nt.exports.jsx("strong",{children:t})," ",nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.invite-author.organization-word",defaultMessage:"organization.",description:"Review Request Panel invite author, organization word"})]}))]})):nt.exports.jsx("div",{className:n.container})},MGt=je()(e=>({root:{},container:{padding:e.spacing(5,3,5,3),display:"flex",alignItems:"flex-start",backgroundColor:"#EEF3F9",flexDirection:"column",borderRadius:"4px",marginBottom:"25px"},messageLabel:{marginBottom:"10px",color:"#5C6269"}})),PGt=({message:e})=>{var t=MGt().classes;return nt.exports.jsxs("div",Object.assign({className:t.container},{children:[nt.exports.jsxs(pe,Object.assign({variant:"subtitle2",className:t.messageLabel,component:"label"},{children:[nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.author-message.word-message",defaultMessage:"Message",description:"Review Request Panel author message, the word message"}),": "]})),nt.exports.jsx(pe,{children:e})]}))},LGt=je()(e=>({root:{display:"flex",justifyContent:"end",position:"absolute",right:"25px",bottom:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none"},actionButton:{textTransform:"none"}})),DGt=({onReject:e,onAccept:t,isDisabled:n})=>{var r=LGt().classes;let[i,o]=Le.exports.useState(!1),a=Ie(),s=()=>{a(wse(IGt))};return nt.exports.jsxs("div",Object.assign({className:r.root,"data-testid":"os-organization-panel-review-request-panel-action-footer"},{children:[nt.exports.jsx(ge,Object.assign({onClick:()=>{e(),s(),a(kWt.clearActiveOrganizationInviteId())},disabled:i||n,"data-testid":"os-organization-panel-review-request-panel-action-footer-cancel-button",className:r.cancelButton,sx:{color:"#2A323C"}},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.action-footer.reject-button",defaultMessage:"Reject Invitation",description:"Review Request Panel action footer, reject invitation button"})})),nt.exports.jsx(ije,Object.assign({loading:i,variant:"contained",color:"primary",onClick:()=>{o(!0),setTimeout(()=>{t(),s(),a(kWt.clearActiveOrganizationInviteId())},1e3)},disabled:n,"data-testid":"os-organization-panel-review-request-panel-action-footer-accept-button",className:r.actionButton},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.action-footer.accept-button",defaultMessage:"Accept Invitation",description:"Review Request Panel action footer, reject invitation button"})}))]}))},RGt=je()(e=>({root:{},panelContent:{padding:e.spacing(0,6,0,6)},divider:{borderBottom:"0.5px solid #D5DFE9",height:"1px",opacity:.5},disclaimerText:{color:"#2A323C",marginTop:"25px"},skeletonContainer:{width:"90%",marginTop:"25px"}})),FGt={organizationName:null,organizationLogo:null},VGt={name:null,email:null,photo:null};let BGt=({height:e})=>{e=$Wt({height:e}).classes;let t=Ie();return nt.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"multi-org-application-panel-header"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1","data-testid":"org-title",className:e.title},{children:AWt.addApplications})),nt.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[nt.exports.jsx(pe,Object.assign({style:yWt,id:"multi-org-application-panel-close"},{children:AWt.closePanel})),nt.exports.jsx(he,Object.assign({title:AWt.closePanel},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{t(lZt.organizationsState.setCurrentInvitee("")),t(wse(V.ADD_APPLICATIONS))},"aria-labelledby":"org-close-panel","data-testid":"multi-org-application-panel-close",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]}))]}))},HGt=je()((e,t,n)=>({root:{marginTop:"22px"},appInfo:{display:"flex",flexDirection:"row",justifyContent:"space-between"},flexContainer:{display:"flex",flexDirection:"row"},avatarCol:{width:"30px",marginRight:"14px"},avatar:{width:"30px",height:"30px",fontSize:"12px"},toggleCol:{width:"35px",marginRight:"12px",marginTop:"-12px"},toggleOff:{"& .MuiSwitch-thumb":{background:"rgb(158,167,179)"},"& .MuiSwitch-track":{background:"rgb(218,222,225)"},"& .Mui-disabled+.MuiSwitch-track":{opacity:.8}},toggleOn:{"& .MuiSwitch-thumb":{background:"#2F80ED"},"& .MuiSwitch-track":{background:"rgb(182,206,244)"}},cardTitle:{fontSize:"16px",fontWeight:400,lineHeight:"22px",textAlign:"left"},cardText:{fontSize:"14px",fontWeight:400,lineHeight:"20px"},select:{width:"270px",position:"relative","& > .MuiSelect-select > :nth-child(2)":{display:"none !important"}},menuItem:{width:"436px",display:"block","& < ul < div":{left:"150px !important"}},optionTitle:{fontWeight:600,fontSize:"16px",lineHeight:"22px"},optionText:{fontWeight:400,fontSize:"14px",lineHeight:"20px",whiteSpace:"break-spaces"},selectCol:{margin:"28px 0 28px 44px"}})),UGt=je()(()=>({root:{display:"flex",flexDirection:"column",justifyContent:"space-between"},appSearchContainer:{padding:"20px 30px 0"},appCardsContainer:{padding:"10px 30px",height:"calc(100vh - 260px)",overflowY:"scroll"},saveButton:{float:"right",margin:"25px 44px"}}));var zGt,_Gt=sW(({intl:e,card:t,manageRoles:n,roles:r=[]})=>{let[i,o]=Le.exports.useState(!1),[a,s]=Le.exports.useState(""),[l,c]=Le.exports.useState(""),{applicationName:d,applicationDescription:u,applicationIconUrl:p,applicationId:g,providedRole:f,applicationKey:h}=t,m=HGt().classes,[C,x]=Le.exports.useState(""),[v,b]=Le.exports.useState([]);Le.exports.useEffect(()=>{f&&(o(!0),x(h))},[f]),Le.exports.useEffect(()=>{var e;r&&C&&((e=r.filter(e=>e.appName===C&&!SWt.includes(e.id))).sort((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())),b(e))},[C]);t=e.formatMessage({id:"organization-panel.user-application-role",defaultMessage:[{type:0,value:"Role Type"}]});return Le.exports.useEffect(()=>{a&&l&&n({type:zGt.SET_ROLE,payload:{applicationId:g,role:a,roleId:l,application:{name:d,iconUrl:p}}})},[l]),Le.exports.useEffect(()=>{var e;0<v.length&&C&&!f?(s(v[0].name),c(v[0].id)):0<v.length&&C&&f&&(e=v.find(e=>e.id===f))&&(s(e.name),c(e.id))},[v,f]),nt.exports.jsxs("div",Object.assign({className:m.root,"data-testid":"multi-org-app-card"},{children:[nt.exports.jsxs("div",Object.assign({className:m.appInfo},{children:[nt.exports.jsxs("div",Object.assign({className:m.flexContainer},{children:[nt.exports.jsx("div",Object.assign({className:m.avatarCol},{children:nt.exports.jsx(W8,{src:p||Lle,"data-testid":"multi-org-app-card-avatar",className:m.avatar})})),nt.exports.jsxs("div",{children:[nt.exports.jsx("div",Object.assign({className:m.cardTitle},{children:d})),nt.exports.jsx("div",Object.assign({className:m.cardText},{children:u}))]})]})),nt.exports.jsx("div",Object.assign({className:m.toggleCol},{children:nt.exports.jsx(SA,{"data-testid":"multi-org-app-card-access-toggle",value:i,checked:i,onChange:()=>{i?(s(""),n({type:zGt.REMOVE_ROLE,payload:{applicationId:g}}),x("")):x(h.toLowerCase()),o(!i)},className:i?m.toggleOn:m.toggleOff,disabled:!r.length})}))]})),nt.exports.jsx("div",Object.assign({className:m.selectCol},{children:i&&nt.exports.jsxs(pC,{children:[nt.exports.jsx(fx,Object.assign({id:"multi-org-role-type"},{children:t})),nt.exports.jsx(Gb,Object.assign({labelId:"multi-org-role-type","data-testid":"application-card-user-role",value:a,label:t,onChange:t=>{s(t.target.value);var e=null==(e=v.find(e=>e.name===t.target.value))?void 0:e.id;c(e)},className:m.select,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},{children:v&&v.map(e=>nt.exports.jsxs(fe,Object.assign({value:e.name,className:m.menuItem,"data-testid":"multi-org-application-role-"+e.id},{children:[nt.exports.jsx("div",Object.assign({className:m.optionTitle},{children:e.name})),nt.exports.jsx("div",Object.assign({className:m.optionText},{children:e.description}))]}),e.id))}))]})})),nt.exports.jsx(se,{})]}))});let qGt=({onChange:t})=>{let[e,n]=Le.exports.useState(""),r=Le.exports.useRef(Ide(e=>{t(e)},1e3)).current;var[i]=Le.exports.useState(""),[o]=Le.exports.useState(!1),a=Sqe.TableSearchInputButton;return nt.exports.jsx(a,{onChange:e=>{n(e.target.value),e.target.value?r(e.target.value):r("")},onClear:()=>{n(""),r("")},testId:"add-application-search",placeholderText:"Search by application name",searchValue:i,inputValue:e,isSearchVisible:!0,isSearching:o,searchItemTooltipText:"Application Name"})},WGt=((H3e=zGt=zGt||{})[H3e.SET_ROLE=0]="SET_ROLE",H3e[H3e.REMOVE_ROLE=1]="REMOVE_ROLE",(r,i)=>{switch(i.type){case zGt.SET_ROLE:{let{applicationId:t,role:e,roleId:n}=i.payload;var o,a=[...r];return t&&n&&e&&(-1===(o=r.findIndex(e=>e.applicationId===t))?a.push(i.payload):a[o]=i.payload),a}case zGt.REMOVE_ROLE:{let t=i.payload.applicationId;return[...r].filter(e=>e.applicationId!==t)}default:return r}});let ZGt=()=>nt.exports.jsxs(Jx,{children:[nt.exports.jsx(Xx,{children:nt.exports.jsx(ye,{variant:"circular",width:30,height:30})}),nt.exports.jsxs(lv,{children:[nt.exports.jsx(ye,{variant:"text",width:330,height:50}),nt.exports.jsx(ye,{variant:"text",width:400,height:25})]}),nt.exports.jsx(_x,{children:nt.exports.jsx(ye,{variant:"rectangular",width:40,height:30})})]}),GGt=()=>{let n=Array.from({length:15},(e,t)=>t);return nt.exports.jsx(Mx,{children:n.map((e,t)=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ZGt,{},t),t!==n.length-1&&nt.exports.jsx(se,{})]}))})};var n4e={Mert:"https://avatars.githubusercontent.com/u/51537954",Tony:"https://avatars.githubusercontent.com/u/51537954"},Xee={removeUser:()=>({}),applicationsAction:()=>({})},h4e=Object.assign({firstName:"Tony",lastName:"Gaglio",email:"tony@veritone.com",avatar:n4e.Tony,userStatus:sZt.existing,applications:["someApp"]},Xee),Uge=Object.assign({firstName:"Richard",lastName:"Vance",email:"richard@veritone.com",avatar:"",userStatus:sZt.existing,applications:["someApp","anotherApp"]},Xee),t=Object.assign({firstName:"",lastName:"",email:"john@veritone.com",avatar:n4e.Tony,userStatus:sZt.new},Xee),P2e=Object.assign({firstName:"Mert",lastName:"Hotdog",email:"mert@veritone.com",avatar:n4e.Mert,userStatus:sZt.pending},Xee),Zge={name:"Data Center",iconUrl:"https://www.filepicker.io/api/file/U3eW5m20QBCCG1GJh1RE"},Tpe={role:"Editor"},uX=[{id:"1",avatar:"https://avatars.githubusercontent.com/u/20645060",name:"Hamit Tokay",email:"htokay@veritone.com",userStatus:sZt.existing,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]},{id:"2",avatar:"https://avatars.githubusercontent.com/u/51537954",name:"Mert Nacakgedigi",email:"mnacakgedigi@veritone.com",userStatus:sZt.new,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]},{id:"3",avatar:"https://avatars.githubusercontent.com/u/74932289",name:"Alex Oleksiiuk",email:"aoleksiiuk@veritone.com",userStatus:sZt.pending,requestor:"Lance Gorji",requestedApps:[{application:Zge,role:Tpe}]}],JGt=Object.freeze({__proto__:null,AddApplicationsPanel:()=>{let[e,o]=Le.exports.useReducer(WGt,[]),[t,n]=Le.exports.useState(!0);var r=(e=>{let t=Le.exports.useRef();return Le.exports.useEffect(()=>{t.current=e},[e]),t.current})(e);let[i,a]=Le.exports.useState([]),[s,l]=Le.exports.useState(""),[c,d]=Le.exports.useState([]),u=Ae(JWt),p=Ae(DWt),g=Ae(RWt),f=Ae(NWt),h=Ae(MWt);var m=UGt().classes;let C=(()=>{let e=Le.exports.useRef(!1);return Le.exports.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),Le.exports.useCallback(()=>e.current,[])})(),x=(Le.exports.useEffect(()=>{if(C()&&p&&g&&f){var e=(null==(e=p.find(e=>e.email===g))?void 0:e.applicationRoles)||[],n=[...f.applications.records];for(let t of e){o({type:zGt.SET_ROLE,payload:{applicationId:null==(i=null==t?void 0:t.application)?void 0:i.id,role:null==(i=null==t?void 0:t.role)?void 0:i.id}});var r,i=n.findIndex(e=>e.applicationId===(null==t?void 0:t.applicationId));-1!==i&&(r=Object.assign(Object.assign({},n[i]),{providedRole:null==t?void 0:t.roleId}),n[i]=r)}a(n)}},[p,g,f]),Le.exports.useEffect(()=>{var e;C()&&(e=i.sort((e,t)=>e.applicationName.localeCompare(t.applicationName)).filter(t=>(null==h?void 0:h.some(e=>e.appName===t.applicationKey))||!1).filter(e=>e.applicationName.toLowerCase().includes(s.toLowerCase())),d(e),0<(null==i?void 0:i.length))&&n(!1)},[s,i]),Ie());Le.exports.useEffect(()=>{x(lZt.organizationsState.currentOrganizationFetchStart(u))},[x,u]);r=!e.length&&(r||[]).length===e.length;return nt.exports.jsxs("div",Object.assign({className:m.root},{children:[nt.exports.jsxs("div",{children:[nt.exports.jsx(BGt,{height:64}),nt.exports.jsx("div",Object.assign({className:m.appSearchContainer},{children:nt.exports.jsx(qGt,{onChange:e=>l(e)})})),nt.exports.jsxs("div",Object.assign({className:m.appCardsContainer},{children:[t&&nt.exports.jsx(GGt,{}),!t&&c.map(e=>nt.exports.jsx(_Gt,{"data-testid":"multi-org-application-card-"+e.applicationId,card:e,roles:f.roles,manageRoles:o},e.applicationId))]}))]}),nt.exports.jsx("div",{children:nt.exports.jsx(ge,Object.assign({"data-testid":"multi-org-applications-save",variant:"contained",className:m.saveButton,disabled:r,onClick:()=>{x(lZt.organizationsState.addInviteeRoles(e)),x(wse(V.ADD_APPLICATIONS))}},{children:AWt.saveBtn}))})]}))},get EOrganizationInviteAction(){return bZt},get EOrganizationInviteStatus(){return vZt},get EUserStatus(){return sZt},HIDDEN_APP_ROLE_IDS:SWt,INVITE_REQUEST_ITEMS:uX,InviteRequestsPanel:()=>{var e=yZt().classes;let r=Ie(),[i,o]=Le.exports.useState({}),[a,s]=Le.exports.useState(!1),l=Ae(ZWt),t=Ae(GWt),n=(t,n)=>{o(e=>Object.assign(Object.assign({},e),{[t]:n}))},c=()=>{l.forEach(({organizationInviteId:e})=>n(e,bZt.approve))},d=()=>{l.forEach(({organizationInviteId:e})=>n(e,bZt.reject))},u=e=>{n(e,bZt.approve)},p=e=>{n(e,bZt.reject)};var g=0<Object.keys(i).length;let f=()=>{r(qWt.fetchPendingInvitesStart())};return nt.exports.jsxs("div",Object.assign({className:e.inviteRequestsRoot},{children:[nt.exports.jsx("div",Object.assign({className:e.headerDescription},{children:nt.exports.jsx(pe,Object.assign({variant:"body2"},{children:AWt.inviteRequestsDescription}))})),nt.exports.jsx("div",Object.assign({className:e.inviteRequestsListRoot},{children:"failure"===t?nt.exports.jsx(jZt,{onRetry:f,errorMessage:nt.exports.jsx(Ce,{id:"os-organization-panel.invites.request-tab.error-message",defaultMessage:"Something went wrong while loading your organization invite requests.",description:"my organizations invite request error state"})}):"success"===t&&0===l.length?nt.exports.jsx(OZt,{type:"inviteRequest"}):"success"===t&&0<l.length?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(AZt,{onApproveAll:c,onRejectAll:d}),null==l?void 0:l.map((e,t)=>{var n;return nt.exports.jsx(IZt,{avatar:null==(n=null==e?void 0:e.invitee)?void 0:n.imageUrl,email:null==(n=null==e?void 0:e.invitee)?void 0:n.email,name:null==(n=null==e?void 0:e.invitee)?void 0:n.name,requestor:(null==(n=null==e?void 0:e.createdBy)?void 0:n.firstName)+" "+(null==(n=null==e?void 0:e.createdBy)?void 0:n.lastName),userStatus:null==(n=null==e?void 0:e.invitee)?void 0:n.status,requestedApps:null==e?void 0:e.applicationRoles,onApprove:u,onReject:p,id:e.organizationInviteId,itemStatus:(n=e.organizationInviteId,i[n])},t)})]}):null})),nt.exports.jsx(be,Object.assign({display:"flex",justifyContent:"flex-end",p:6},{children:nt.exports.jsx(ije,Object.assign({loading:a,onClick:()=>{if(!a){var e,t,n=[];for(e of l)e.organizationInviteId in i&&(t=e.applicationRoles.map(({application:e,role:t})=>({applicationId:e.id,roleId:t.id})),n.push({organizationInviteId:e.organizationInviteId,applicationRoles:t,action:i[e.organizationInviteId]}));0<n.length&&r(qWt.updatePendingInviteStatus(n)),s(!0)}},disabled:!g||a,variant:"contained",size:"large"},{children:AWt.confirm}))}))]}))},InviteUsersPanel:({organizationId:e,organizationGuid:t})=>{let n=Ae(uG),r=Ie();var i=xZt().classes;return Le.exports.useEffect(()=>{e&&t?r(lZt.organizationInvitesState.setOrganization({id:e.toString(),guid:t})):r(lZt.organizationInvitesState.setOrganization({id:n.organization.organizationId.toString(),guid:n.organization.organizationGuid}))},[e,n,r]),nt.exports.jsx(gqt,{children:nt.exports.jsxs("div",Object.assign({className:i.root,"data-test":"org-icon"},{children:[nt.exports.jsx(rZt,{height:64}),nt.exports.jsx(fZt,{})]}))})},OrganizationPanel:function(){let e,t,n,r="ORGANIZATION_PANEL";var i=uGt().classes;let o=Ae(uG),a=((w=o.organization)||{}).guid;var s=null==(n=null==(t=null==(e=Ae(eqt))?void 0:e.currentUser)?void 0:t.organization)?void 0:n.imageUrl;let l=Ae(EWt);var c=Ae(PWt),d=Ae(LWt),u=Ae(FWt);let[p,g]=Le.exports.useState(!0),[f,h]=Le.exports.useState(0),{apiRoot:m,graphQLEndpoint:C,token:x}=Ae(QWt),v=Ie(),b=jWt(null==o?void 0:o.roles),[y,A]=Le.exports.useState(w),I=SGt(a);Le.exports.useEffect(()=>{var e;m&&C&&x&&(v(lZt.organizationsState.organizationsFetchStart()),v(lZt.organizationsState.fetchOrganizationInvitesStart()),e=a!==I,b)&&e&&v(lZt.organizationInvitesState.fetchPendingInvitesStart(null==(e=null==o?void 0:o.organization)?void 0:e.organizationId))},[m,C,x,b,v,a]),Le.exports.useEffect(()=>{var e=null==l?void 0:l.find(e=>e.guid===a);e&&A(e)},[a,l]),Le.exports.useEffect(()=>{m&&x&&o.userId&&v(lZt.scimIdsState.scimIdsFetchStart())},[m,x,o.userId,v]);var{organization:w={},email:j}=o||{},S=cGt,O=dGt,k=null==u?void 0:u.filter(e=>0<=vGt(new Date,new Date(e.expirationDate)));return k=[{label:nt.exports.jsx(Ce,{id:"os-organization-panel.tabs.my.organizations",defaultMessage:"My Organizations",description:"user's organizations list"}),disabled:!1,id:"myOrganizations"},{label:nt.exports.jsx(u7,Object.assign({badgeContent:null==k?void 0:k.length,color:"error",sx:{paddingRight:0===(null==k?void 0:k.length)?"0":12+4*Math.min(3,null==k?void 0:k.length.toString().length)+"px","& .MuiBadge-badge":{top:"50%"}}},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.tabs.invites",defaultMessage:"Invites",description:"user's organization invites list"})})),disabled:!1,id:"invites"}],nt.exports.jsx(gqt,{children:nt.exports.jsx(wXe,Object.assign({modules:[aY(),lGt()]},{children:nt.exports.jsxs(D4e,{children:[nt.exports.jsxs("div",Object.assign({className:i.root,"data-test":"org-icon"},{children:[nt.exports.jsx(nZt,{height:64,onPanelClose:()=>v(wse(r)),parentPanelId:r}),nt.exports.jsxs("div",Object.assign({className:i.logoWrapper},{children:[s&&p?nt.exports.jsx(W8,Object.assign({variant:"square",className:i.logo,"data-test":"app-bar-org-button"},{children:nt.exports.jsx("img",{alt:"",src:(null==y?void 0:y.imageUrl)||s,onError:function(){g(!1)},className:i.orgImage})})):nt.exports.jsx(W8,Object.assign({variant:"circular",className:i.sortName,"data-test":"app-bar-org-button"},{children:JO((null==y?void 0:y.name)||w.organizationName||"")})),nt.exports.jsx(pe,Object.assign({"data-test":"org-name",variant:"subtitle1"},{children:(null==y?void 0:y.name)||w.organizationName||""})),nt.exports.jsx("div",Object.assign({className:i.loggedBox},{children:nt.exports.jsxs(pe,Object.assign({variant:"body2",className:i.loggedText},{children:[nt.exports.jsx(Ce,{id:"os-organization-panel.0HWGhE",defaultMessage:"Currently logged in as: ",description:"organization panel: the currently logged in user text"})," ",nt.exports.jsx("span",Object.assign({"data-test":"org-user-email",onClick:e=>e.preventDefault(),id:"organization-panel-link-id",className:i.loginAs},{children:j}))]}))}))]})),nt.exports.jsx("div",Object.assign({className:i.tabsParent},{children:nt.exports.jsx(C6e,{selectedId:f,onChangeTab:e=>{h(e)},tabsList:k})})),nt.exports.jsx(se,{className:i.divider}),nt.exports.jsxs("div",Object.assign({className:i.listBox},{children:[0<S.length&&nt.exports.jsx(MZt,{isNav:!0,items:S}),0<O.length&&nt.exports.jsxs(Le.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.WM8PzP",defaultMessage:"Organization Invitations (Pending)",description:"organization panel: the header of the pending organization invitations list"})})),nt.exports.jsx(MZt,{items:O})]})]}))]})),nt.exports.jsxs("div",Object.assign({className:i.secondBox},{children:[nt.exports.jsx(x6e,Object.assign({value:f,index:0},{children:nt.exports.jsx(jGt,{uiStatus:c,organizations:l,onRetry:()=>{v(lZt.organizationsState.organizationsFetchStart())},onSetUserDefaultOrg:e=>{v(lZt.organizationsState.setUserDefaultOrg(e))}})})),nt.exports.jsx(x6e,Object.assign({value:f,index:1},{children:nt.exports.jsx(wGt,{organizationInvites:u,uiStatus:d,onRetry:()=>{v(lZt.organizationsState.fetchOrganizationInvitesStart())}})}))]}))]})}))})},ReviewRequestPanel:()=>{var e=RGt().classes;let t=Ie(),[{organizationName:n,organizationLogo:r},s]=Le.exports.useState(FGt),[i,l]=Le.exports.useState(VGt),[o,c]=Le.exports.useState(null),d=Ae(VWt);return Le.exports.useEffect(()=>{var e,t,n,r,i,o,a;d&&({message:e,organization:a,createdBy:o}=d,{name:a,imageUrl:t}=a,{name:n,firstName:r,lastName:i}=o,o=o.imageUrl,s({organizationName:a,organizationLogo:t}),a=r||i?r+" "+i:n,l({name:a,email:n,photo:o}),c(e))},[d]),nt.exports.jsx(gqt,{children:nt.exports.jsxs("div",Object.assign({className:e.root,"data-test":"org-icon"},{children:[nt.exports.jsx(OGt,{height:64}),nt.exports.jsxs("div",Object.assign({className:e.panelContent},{children:[nt.exports.jsx(TGt,{organizationName:n,organizationLogo:r}),nt.exports.jsx("div",{className:e.divider}),nt.exports.jsx(NGt,{author:i,organizationName:n}),o&&nt.exports.jsx(PGt,{message:o}),nt.exports.jsx("div",{className:e.divider}),null===n&&nt.exports.jsxs("div",Object.assign({className:e.skeletonContainer},{children:[nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"}),nt.exports.jsx(ye,{variant:"text"})]})),null!==n&&nt.exports.jsx("div",Object.assign({className:e.disclaimerText},{children:nt.exports.jsx(pe,Object.assign({variant:"subtitle1"},{children:nt.exports.jsx(Ce,{id:"os-organization-panel.review-request-panel.disclaimer-text",defaultMessage:"If you choose to accept this invitation, you will be granted access to specific applications and data available inside this Organization. You can switch between Organizations at anytime by using your Organization setting tool.",description:"Review Request Panel disclaimer text"})}))})),nt.exports.jsx(DGt,{onReject:()=>{var e={organizationInviteId:d.organizationInviteId,applicationRoles:d.applicationRoles,action:bZt.reject};t(lZt.reviewRequestState.updateOrganizationInviteStart(e))},onAccept:()=>{var e={organizationInviteId:d.organizationInviteId,applicationRoles:d.applicationRoles.map(e=>({applicationId:e.application.id,roleId:e.role.id})),action:bZt.complete};t(lZt.reviewRequestState.updateOrganizationInviteStart(e))},isDisabled:null===n})]}))]}))})},SHARED_TEXT:AWt,SLICE_NAME:IWt,UserCard:uZt,UserStatusBadge:CZt,UserVariant:mZt,actions:lZt,adminRoles:wWt,applicationMock:Zge,daysBetweenDates:vGt,existingUserNoAvatarProps:Uge,existingUserProps:h4e,getOrganizationPanelModule:lGt,isAdminUser:jWt,lads:n4e,myOrganizationsApis:Kge,newUserProps:t,organizationInviteApi:qZt,organizationInvitesSelectors:YWt,organizationSelectors:BWt,panelId:gZt,pendingUserProps:P2e,get reducerActions(){return zGt},roleMock:Tpe,scimIdSelectors:zWt,scimIdsApi:mge,selectApiConfigs:QWt,selectUserId:XWt,usePrevious:SGt});function KGt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}let YGt=je()(()=>({iconButton:{padding:0,width:38,height:38,borderRadius:"50%","& svg":{fontSize:26},"&:hover":{background:"rgba(228, 240, 252, 0.4)"}},selected:{background:"rgba(228, 240, 252, 0.8)",color:"#0C53B0","& svg, & path":{fill:"#0C53B0"},"&:hover":{background:"rgba(228, 240, 252, 0.8)"}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center"},img:{maxWidth:30,maxHeight:30}}));function QGt({id:e,selected:t=!1,icon:n,onTabIconClick:r,iconComponent:i}){var o=YGt().classes;let[a,s]=Le.exports.useState(0),[l,c]=Le.exports.useState(0),d=je()(()=>({viewRequestsBadge:{"& .MuiBadge-badge":{fontFamily:"Nunito",backgroundColor:"#D43060",color:"#fff",zIndex:"unset"}}}))().classes,u=Ae(uG),p=Ae(QWt),g=()=>KGt(this,void 0,void 0,function*(){var e;u&&(jWt(u.roles)&&(e=null==(e=null==u?void 0:u.organization)?void 0:e.organizationId,e=yield qZt.fetchPendingOrganizationInvites(e,p),s(e.length)),e=yield qZt.fetchOrganizationInvites(p),c(e.length))});Le.exports.useEffect(()=>{"ORGANIZATION_PANEL"===e&&KGt(this,void 0,void 0,function*(){try{yield g()}catch(e){console.log(e)}})},[]);return nt.exports.jsx("div",Object.assign({className:o.tabIcon},{children:nt.exports.jsx(ue,Object.assign({disableRipple:!0,className:Zhe(o.iconButton,{[o.selected]:t}),onClick:function(){r(e)},"data-test-id":"dt-button-tab-icon-"+e,"data-test":"dt-button-tab-icon",size:"large"},{children:i?(t=i,a+l?nt.exports.jsx(u7,Object.assign({badgeContent:a+l,className:d.viewRequestsBadge},{children:t})):t):nt.exports.jsx("img",{className:o.img,src:n,draggable:"false",alt:""})}))}))}let XGt=je()(e=>({tabsContainer:{width:"100%",textAlign:"center",flex:1},menuTabIcon:{paddingBottom:e.spacing(1.6)},flowIcon:{width:50,height:50,color:e.palette.secondary.main}}));function $Gt({selectedId:e,onChangeTab:t,tabsList:n=[],roles:a}){let s=XGt().classes,[l,r]=Le.exports.useState(e),{adminShortcut:c=!0,betaFeatures:d}=Ae(e=>e.configs.initConfig),u=window.location.hostname.split(".")[0],p=a.includes("admin"),g=Ae(fG),f=Ae(mG);function h(e){r(e),t(e)}return Le.exports.useEffect(()=>{e!==l&&r(e)},[e,l]),nt.exports.jsx(be,Object.assign({className:s.tabsContainer},{children:n.map((e,t)=>{var{id:e,icon:n,role:r,label:i,iconComponent:o}=e,i=nt.exports.jsx(he,Object.assign({title:i,placement:"left"},{children:nt.exports.jsx(be,Object.assign({className:s.menuTabIcon},{children:nt.exports.jsx(QGt,{selected:e===l,icon:n,iconComponent:o,onTabIconClick:h,id:e,"data-test":"TabIcon-data-test"+e})}),e)}),e),n=window.location.href.includes("us-1.veritone.com")||window.location.href.includes("uk-1.veritone.com"),o=window.location.href.includes("stage.us-1.veritone.com")||window.location.href.includes("local"),n=n&&!d&&!o;if(r&&a.includes(r)||!r){if(t<2)return i;if(e===tk.DATA_CENTER)return i;if(e===tk.PROCESSING_CENTER)return i;if(e===tk.FLOW_CENTER)return u.toLocaleLowerCase().includes("automate")?null:i;if(e===tk.ADMIN_SHORTCUT&&c&&!n)return i;if(e===tk.SETTING_PREFERENCE_PANEL&&d)return u.toLocaleLowerCase().includes("admin")?null:i;if([tk.MARKETPLACE_CENTER,tk.LIBRARY_CENTER,tk.ENGINE_CENTER].includes(e))return d?i:null;if(e===tk.RESOURCE_CENTER&&(g||p))return i;if(e===tk.INSTANCE_ADMIN_CENTER_BROWSE&&f&&!n)return i}return null})}))}let eJt=(o,a)=>KGt(void 0,void 0,void 0,function*(){var t="platformInfo",e=`query ${t} {
2085
2085
  platformInfo {
2086
2086
  properties
2087
2087
  aiWAREVersion {
@@ -4589,7 +4589,7 @@ mutation copyFlow($flowRevisionId: ID, $flowId: ID, $name: String){
4589
4589
  }
4590
4590
  }
4591
4591
  }
4592
- `;return(yield H(Object.assign(Object.assign({},n),{query:e})))[t].records}),getAdditionalSelectors:()=>({isSuperAdmin:mG})}}),nPo={registration:qMo.actions,registrationWizard:GMo.actions,appRoles:YMo.actions,authGroups:$Mo.actions},rPo={registration:WMo,registrationWizard:JMo,appRoles:QMo,authGroups:ePo},iPo=Ow({registration:qMo.reducer,registrationWizard:GMo.reducer,appRoles:YMo.reducer,authGroups:$Mo.reducer});function*oPo(){yield Uu([ZMo.watchRead(),ZMo.watchUpdate(),ZMo.watchDelete(),KMo.watchRead(),KMo.watchCreate(),KMo.watchUpdate(),XMo.watchRead(),tPo.watchRead()])}function aPo(){return{id:oNo,reducerMap:{[oNo]:iPo},sagas:[oPo],initialActions:[]}}let sPo=()=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(W,Object.assign({"data-testid":"custom-registration-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-name",defaultMessage:"Name",description:"Shared Custom Login Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:4},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-slug",defaultMessage:"Slug",description:"Shared Custom Login Table header column slug"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-colors",defaultMessage:"Date Created",description:"Date Created"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-logo",defaultMessage:"Modified Date",description:"Modified Date"})}))})),nt.exports.jsx(W,{item:!0,xs:1})]})),nt.exports.jsx(se,{})]});function lPo(){var e=dPo(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function cPo(i){return function(e,t,n){var e=jPo(SPo(e)),t=wPo(t),r=e.length,n=void 0===n?" ":jPo(n);return t<=r||""===n?e:((r=OPo(n,TPo((t=t-r)/n.length))).length>t&&(r=kPo(r,0,t)),i?e+r:r+e)}}var dPo=hOo,uPo=Fpe,pPo=qge,gPo=Tpe,fPo=lPo,hPo=RegExp.prototype,P0e=Ype.PROPER,S0e=COo,mPo=hOo,CPo=MEo,izi=QSo,xPo=function(e){var t=e.flags;return void 0!==t||"flags"in hPo||pPo(e,"flags")||!gPo(hPo,e)?t:uPo(fPo,e)},i4e="toString",G3e=RegExp.prototype,vPo=G3e[i4e],K3e=izi(function(){return"/a/b"!==vPo.call({source:"a",flags:"b"})}),bge=P0e&&vPo.name!==i4e,bPo=((K3e||bge)&&S0e(G3e,i4e,function(){var e=mPo(this);return"/"+CPo(e.source)+"/"+CPo(xPo(e))},{unsafe:!0}),xOo),yPo=MEo,APo=tOo,IPo=RangeError,T3e=vpe,wPo=bOo,jPo=MEo,SPo=tOo,OPo=T3e(function(e){var t=yPo(APo(this)),n="",r=bPo(e);if(r<0||r===1/0)throw new IPo("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),kPo=T3e("".slice),TPo=Math.ceil,Yee={start:cPo(!1),end:cPo(!0)},NMr=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(I3e),sP=SOo,EPo=Yee.start;sP({target:"String",proto:!0,forced:NMr},{padStart:function(e){return EPo(this,e,1<arguments.length?arguments[1]:void 0)}});let NPo=e=>{var[e,t]=e.split(":").map(Number),n=12<=e?"PM":"AM";return`${e%12||12}:${t.toString().padStart(2,"0")} `+n},MPo=e=>(e=e&&(isNaN(Number(e))?new Date(e):new Date(Number(e))))?{date:(e.getMonth()+1).toString().padStart(2,"0")+`/${e.getDate().toString().padStart(2,"0")}/`+e.getFullYear(),time:NPo(e.toTimeString().split(" ")[0])}:"N/A",PPo=60,LPo=({index:e,testId:t,onEdit:n,onView:r,onDelete:i,item:o})=>{var a=PPo-1+"px",s="/"+o.slug,l=Le.exports.useCallback(()=>null==r?void 0:r(),[r]),c=Le.exports.useCallback(()=>null==n?void 0:n(),[n]),d=Le.exports.useCallback(()=>null==i?void 0:i(),[i]);return nt.exports.jsx(be,Object.assign({sx:{width:"100%",minHeight:a,cursor:"pointer",borderBottom:"1px solid #D5DFE9",display:"grid","&:hover":{backgroundColor:"#F5F7FA"}},"data-testid":t+"-table-row-"+e,onClick:c},{children:nt.exports.jsxs(W,Object.assign({"data-testid":t+"-registration-item",sx:{width:"100%",height:"100%",paddingLeft:"15px"},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({"data-testid":"registration-table-row-name"},{children:o.name}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{paddingRight:"10px"}},{children:nt.exports.jsx(J_e,{id:"registration-slug",value:s,sx:{fontWeight:"bold",padding:"2px 5px",fontSize:"small",wordBreak:"break-all"}})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(DPo,{date:o.dateCreated,testId:"registration-table-row-created"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(DPo,{date:o.dateModified,testId:"registration-table-row-modified"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:1,onClick:e=>e.stopPropagation()},{children:nt.exports.jsx(RPo,{onEdit:c,onView:l,onDelete:d,testId:t})}))]}))}))},DPo=({date:e,testId:t})=>{e=MPo(e);return"N/A"!==e?nt.exports.jsxs(_,{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontWeight:400,"data-testid":t+"-date"},{children:e.date})),nt.exports.jsx(pe,Object.assign({variant:"caption",fontSize:"12px","data-testid":t+"-time"},{children:e.time}))]}):nt.exports.jsx(pe,Object.assign({"data-testid":t+"-date"},{children:e}))},RPo=({onEdit:e,onView:t,onDelete:n,testId:r})=>{var i=Le.exports.useMemo(()=>[{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Registration table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-preview",defaultMessage:"View Page",description:"Admin Center Registration table row context menu view page"}),onClick:t,testId:"view",icon:nt.exports.jsx(Mue,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Registration table row context menu delete"}),onClick:n,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}],[e,t,n]);return nt.exports.jsx(_ze,{menuItems:i,testId:r+"-registration-menu"})},FPo=x2e.jsx.TableInfiniteScroll,VPo=60,BPo=()=>{let n=Ie(),r=cNo();var e=Ae(rPo.registration.selectItems),t=Ae(rPo.registration.selectReadStatus),i="pending"===t,t="failure"===t;return nt.exports.jsx(be,Object.assign({height:"calc(100vh - 240px)"},{children:nt.exports.jsx(FPo,{offset:0,testId:aNo,hasMore:!1,fetchMore:()=>{n(nPo.registration.readStart(null))},fetchOnMount:0===e.length,items:e,itemHeight:VPo,isLoading:i,error:t,TableHeaderComponent:nt.exports.jsx(sPo,{}),TableRowComponent:({item:t,index:e})=>nt.exports.jsx(LPo,{item:t,index:e,testId:aNo,onEdit:()=>r(t.id),onDelete:()=>{var e;e=t,n(nPo.registration.deleteStart(e))}}),MessageErrorState:iNo.emptyState.error.title(),DescriptionErrorState:iNo.emptyState.error.description(),TableEmptyStateComponent:nt.exports.jsx(Yze,{title:iNo.emptyState.title(),description:iNo.emptyState.description(),buttonLabel:iNo.emptyState.createButton(),onClick:()=>r()})})}))},{CenterTabHeading:HPo,CenterTabContainer:UPo,CenterTabContent:zPo}=w2e,_Po=()=>{let e=cNo();return nt.exports.jsxs(UPo,Object.assign({testId:aNo},{children:[nt.exports.jsx(HPo,{title:iNo.title(),subtitle:iNo.subTitle(),testId:aNo,HeadingActions:nt.exports.jsx(ge,Object.assign({onClick:()=>e(),variant:"contained",startIcon:nt.exports.jsx(Ode,{}),"data-testid":aNo+".create-new"},{children:"New"}))}),nt.exports.jsx(zPo,Object.assign({testId:aNo},{children:nt.exports.jsx(BPo,{})}))]}))},qPo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[aPo()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(_Po,{})})}))})}),WPo=QSo,ZPo=P3e;function GPo(i){return function(e,t){var n,e=ILo(wLo(e)),t=ALo(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=SLo(e,t))<55296||56319<n||t+1===r||(r=SLo(e,t+1))<56320||57343<r?i?jLo(e,t):n:i?OLo(e,t,t+2):r-56320+(n-55296<<10)+65536}}var JPo=ZPo.RegExp,E5n=WPo(function(){var e=JPo("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),Byt=E5n||WPo(function(){return!JPo("a","y").sticky}),n={BROKEN_CARET:E5n||WPo(function(){var e=JPo("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:Byt,UNSUPPORTED_Y:E5n},Gpe=QSo,KPo=P3e.RegExp,yP=Gpe(function(){var e=KPo(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),f5n=QSo,YPo=P3e.RegExp,Z0e=f5n(function(){var e=YPo("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),QPo=Fpe,D3e=vpe,XPo=MEo,$Po=lPo,V3e=n,G0e=cOo,eLo=wpe,tLo=Zge.get,RMr=yP,k0e=Z0e,nLo=G0e("native-string-replace",String.prototype.replace),rLo=RegExp.prototype.exec,iLo=rLo,oLo=D3e("".charAt),aLo=D3e("".indexOf),sLo=D3e("".replace),lLo=D3e("".slice),cLo=(g4e=/b*/g,QPo(rLo,g3e=/a/,"a"),QPo(rLo,g4e,"a"),0!==g3e.lastIndex||0!==g4e.lastIndex),dLo=V3e.BROKEN_CARET,uLo=void 0!==/()??/.exec("")[1],xg=iLo=cLo||uLo||dLo||RMr||k0e?function(e){var t,n,r,i,o,a,s=this,l=tLo(s),e=XPo(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,u=QPo(iLo,c,e),s.lastIndex=c.lastIndex,u;var d=l.groups,c=dLo&&s.sticky,u=QPo($Po,s),l=s.source,p=0,g=e;if(c&&(u=sLo(u,"y",""),-1===aLo(u,"g")&&(u+="g"),g=lLo(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||(s.multiline,"\n"!==oLo(e,s.lastIndex-1)))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",u)),uLo&&(t=new RegExp("^"+l+"$(?!\\s)",u)),cLo&&(n=s.lastIndex),r=QPo(rLo,c?t:s,g),c?r?(r.input=lLo(r.input,p),r[0]=lLo(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:cLo&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),uLo&&r&&1<r.length&&QPo(nLo,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&d)for(r.groups=o=eLo(null),i=0;i<d.length;i++)o[(a=d[i])[0]]=r[a[1]];return r}:iLo,N0e=(SOo({target:"RegExp",proto:!0,forced:/./.exec!==xg},{exec:xg}),y3e),Uge=Function.prototype,pLo=Uge.apply,gLo=Uge.call,ont="object"==typeof Reflect&&Reflect.apply||(N0e?gLo.bind(pLo):function(){return gLo.apply(pLo,arguments)}),fLo=Fpe,hLo=COo,mLo=xg,CLo=QSo,xLo=pOo,vLo=c3e,bLo=xLo("species"),yLo=RegExp.prototype,h4e=vpe,ALo=xOo,ILo=MEo,wLo=tOo,jLo=h4e("".charAt),SLo=h4e("".charCodeAt),OLo=h4e("".slice),s4e={codeAt:GPo(!1),charAt:GPo(!0)},kLo=s4e.charAt,q3e=vpe,TLo=dOo,ELo=Math.floor,NLo=q3e("".charAt),MLo=q3e("".replace),PLo=q3e("".slice),LLo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,DLo=/\$([$&'`]|\d{1,2})/g,RLo=Fpe,FLo=hOo,VLo=U2e,BLo=$So,HLo=xg,ULo=TypeError,zLo=ont,_Lo=Fpe,zge=vpe,eor=function(n,e,t,r){var a,i=xLo(n),s=!CLo(function(){var e={};return e[i]=function(){return 7},7!==""[n](e)}),o=s&&!CLo(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[bLo]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=/./[i],o=e(i,""[n],function(e,t,n,r,i){var o=t.exec;return o===mLo||o===yLo.exec?s&&!i?{done:!0,value:fLo(a,t,n,r)}:{done:!0,value:fLo(e,n,t,r)}:{done:!1}}),hLo(String.prototype,n,o[0]),hLo(yLo,i,o[1])),r&&vLo(yLo[i],"sham",!0)},_6i=QSo,qLo=hOo,WLo=U2e,ZLo=eOo,GLo=xOo,JLo=bOo,KLo=MEo,YLo=tOo,QLo=function(e,t,n){return t+(n?kLo(e,t).length:1)},XLo=sOo,$Lo=function(o,a,s,l,c,e){var d=s+o.length,u=l.length,t=DLo;return void 0!==c&&(c=TLo(c),t=LLo),MLo(e,t,function(e,t){var n;switch(NLo(t,0)){case"$":return"$";case"&":return o;case"`":return PLo(a,0,s);case"'":return PLo(a,d);case"<":n=c[PLo(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(u<i)return 0!==(r=ELo(i/10))&&r<=u?void 0===l[r-1]?NLo(t,1):l[r-1]+NLo(t,1):e;n=l[i-1]}return void 0===n?"":n})},eDo=function(e,t){var n=e.exec;if(VLo(n))return null!==(n=RLo(n,e,t))&&FLo(n),n;if("RegExp"===BLo(e))return RLo(HLo,e,t);throw new ULo("RegExp#exec called on incompatible receiver")},tDo=pOo("replace"),nDo=Math.max,rDo=Math.min,iDo=zge([].concat),oDo=zge([].push),aDo=zge("".indexOf),sDo=zge("".slice),fRt="$0"==="a".replace(/./,"$0"),lDo=!!/./[tDo]&&""===/./[tDo]("a","$0");eor("replace",function(e,v,b){var y=lDo?"$":"$0";return[function(e,t){var n=YLo(this),r=ZLo(e)?void 0:XLo(e,tDo);return r?_Lo(r,e,n,t):_Lo(v,KLo(n),e,t)},function(e,t){var n=qLo(this),r=KLo(e);if("string"==typeof t&&-1===aDo(t,y)&&-1===aDo(t,"$<")){e=b(v,n,r,t);if(e.done)return e.value}for(var i,o=WLo(t),a=(o||(t=KLo(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=eDo(n,r))&&(oDo(s,p),a);)""===KLo(p[0])&&(n.lastIndex=QLo(r,JLo(n.lastIndex),i));for(var l,c="",d=0,u=0;u<s.length;u++){for(var p,g=KLo((p=s[u])[0]),f=nDo(rDo(GLo(p.index),r.length),0),h=[],m=1;m<p.length;m++)oDo(h,void 0===(l=p[m])?l:String(l));var C=p.groups,x=o?(x=iDo([g],h,f,r),void 0!==C&&oDo(x,C),KLo(zLo(t,void 0,x))):$Lo(g,r,f,h,C,t);d<=f&&(c+=sDo(r,d,f)+x,d=f+g.length)}return c+sDo(r,d)}]},!!_6i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!fRt||lDo);let cDo=v2e.jsx.ImageUpload,dDo="image/png, image/svg+xml, image/jpeg",uDo={outerWidth:"366px",outerHeight:"161px"},pDo=({isEditMode:e})=>{var{register:t,control:n,formState:{errors:r},watch:i}=LCe(),i=i("slug");let o=Ae(LG);return nt.exports.jsxs(_,Object.assign({sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsxs(_,Object.assign({gap:2},{children:[!e&&nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.newDescription()})),e&&nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.editDescription()})),nt.exports.jsx(gw,Object.assign({},t("name",{required:!0}),{fullWidth:!0,placeholder:"Registration Name",error:!!r.name,helperText:null==(e=r.name)?void 0:e.message,"data-testid":aNo+"--registration-name-input"}))]})),nt.exports.jsxs(_,Object.assign({gap:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.basicInfo.brandLogoTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.brandLogoDescription()})),nt.exports.jsxs(pe,Object.assign({variant:"caption"},{children:["Recommended image size:",nt.exports.jsx("br",{}),"300x200 .png or .svg"]})),nt.exports.jsx(JCe,{name:"uiSettings.logo",defaultValue:"",control:n,rules:{required:"Brand Logo is required."},render:({field:{onChange:r,value:e}})=>nt.exports.jsx(cDo,{testId:aNo+"--brand-logo",image:e,getUrl:!1,outerWidth:uDo.outerWidth,outerHeight:uDo.outerHeight,innerHeight:"145px",innerWidth:"350px",fileTypes:dDo,handleChange:t=>{if(t){var n=e=>{"string"==typeof e&&r(e)};let e=new FileReader;e.readAsDataURL(t),e.onload=function(){n(e.result)},e.onerror=function(e){console.log("error getting base64: ",e)}}else r("")}})}),r.uiSettings&&"logo"in r.uiSettings&&nt.exports.jsx(pe,Object.assign({color:"error",variant:"caption"},{children:null==(e=r.uiSettings.logo)?void 0:e.message}))]})),nt.exports.jsxs(_,Object.assign({gap:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.basicInfo.customUrlTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.customUrlDescription()})),nt.exports.jsx(gw,Object.assign({},t("slug",{required:!0,pattern:{value:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,message:"Slug must be lowercase and contain only letters, numbers, and hyphens."},minLength:{value:3,message:"Slug must be at least 3 characters long."},setValueAs:e=>H7n(e)}),{fullWidth:!0,error:!!r.slug,helperText:null==(n=r.slug)?void 0:n.message,"data-testid":aNo+"--registration-slug-input"})),nt.exports.jsxs(pe,Object.assign({variant:"caption",fontWeight:400},{children:[iNo.form.basicInfo.urlExample(o.replace(/(.us-1|https:\/\/)/g,"").replace("login","signup")+"/"),nt.exports.jsx(pe,Object.assign({variant:"caption",color:"black",fontWeight:800},{children:""+(i||"<slug>")}))]}))]}))]}))};let gDo=()=>{let{trigger:t,watch:e,control:n}=LCe(),[r,i]=Le.exports.useState(null),o=Ae(rPo.registrationWizard.selectItem);var a=e("uiSettings.registrationButtonStyle.backgroundColor"),s=e("uiSettings.registrationButtonStyle.textColor");let l=Le.exports.useCallback(e=>{e?i(null):i("Invalid color selection"),setTimeout(()=>{t("uiSettings.registrationButtonStyle")},50)},[t]);return nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".form-appearance",sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.description()})),nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsxs(_,Object.assign({gap:1},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.appearance.buttonColorTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.buttonColorDescription()}))]})),nt.exports.jsxs(_,Object.assign({gap:4,bgcolor:"#F5F5F5",border:"1px solid #E0E0E0",p:4,alignItems:"center"},{children:[nt.exports.jsx(JCe,{name:"uiSettings.registrationButtonStyle",control:n,rules:{validate:e=>r||!(!e.textColor||!e.backgroundColor)||"Both colors are required"},render:({field:t})=>nt.exports.jsx(k_e,{isButtonColorRequired:!1,buttonColor:t.value.backgroundColor,buttonTextColor:t.value.textColor,onValidationCheck:l,onChangeTextColor:e=>t.onChange(Object.assign(Object.assign({},t.value),{textColor:e})),onChangeButtonColor:e=>t.onChange(Object.assign(Object.assign({},t.value),{backgroundColor:e})),onReset:()=>{o&&0<Object.keys(o).length?t.onChange({textColor:o.uiSettings.registrationButtonStyle.textColor,backgroundColor:o.uiSettings.registrationButtonStyle.backgroundColor}):t.onChange({textColor:"#FFFFFF",backgroundColor:"#1E88E5"}),l(!0)}})}),nt.exports.jsx(N_e,{buttonColor:a,buttonTextColor:s})]}))]})),nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:1,maxWidth:"80%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.appearance.veritoneBrandingTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.veritoneBrandingDescription()}))]})),nt.exports.jsx(JCe,{name:"uiSettings.veritoneBranding","data-test":aNo+".form-input","data-testid":aNo+".form-input-veritoneBranding",control:n,defaultValue:!1,render:({field:t})=>nt.exports.jsx(SA,{checked:t.value,onChange:e=>t.onChange(e.target.checked),inputProps:{"aria-label":"Remove Veritone Branding"}})})]}))]}))};function fDo(e){return HDo.slice(0,e.length)===e}function hDo(e,t){if(WDo(t,e))return e;throw new ZDo("Incorrect invocation")}function mDo(){}function CDo(e){if(!GDo(e))return!1;try{return YDo(mDo,[],e),!0}catch(e){return!1}}function xDo(e){if(!GDo(e))return!1;switch(JDo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $Do||!!XDo(QDo,KDo(e))}catch(e){return!0}}function vDo(e,t){return cRo(e),void 0===t?e:dRo?uRo(e,t):function(){return e.apply(t,arguments)}}function bDo(e,t){if(e<t)throw new pRo("Not enough arguments");return e}function yDo(e){return function(){kRo(e)}}function ADo(e){kRo(e.data)}function IDo(e){gRo.postMessage(wRo(e),TDo.protocol+"//"+TDo.host)}function wDo(e){var t;return ERo?(t=NRo(TRo,e))&&t.value:TRo[e]}function jDo(){this.head=null,this.tail=null}function SDo(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function ODo(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw new _Ro("Bad Promise constructor");n=e,r=t}),this.resolve=zRo(n),this.reject=zRo(r)}function kDo(t){ZRo(XRo,WRo,function(){var e=t.facade;qRo?uFo.emit("rejectionHandled",e):wFo(mFo,e,t.value)})}var TDo,EDo,NDo,MDo,PDo,LDo,DDo,RDo,FDo,VDo,BDo,eL=P3e,HDo=I3e,W0e=$So,R0e=fDo("Bun/")?"BUN":fDo("Cloudflare-Workers")?"CLOUDFLARE":fDo("Deno/")?"DENO":fDo("Node.js/")?"NODE":eL.Bun&&"string"==typeof Bun.version?"BUN":eL.Deno&&"object"==typeof Deno.version?"DENO":"process"===W0e(eL.process)?"NODE":eL.window&&eL.document?"BROWSER":"REST",Npe="NODE"==R0e,UDo=iOo,zDo=PEo,_Do=f3e,qDo=pOo("species"),WDo=Tpe,ZDo=TypeError,gge=vpe,Heo=QSo,GDo=U2e,JDo=m4e,KDo=Cge,YDo=iOo("Reflect","construct"),QDo=/^\s*(?:class|function)\b/,XDo=gge(QDo.exec),$Do=!QDo.test(mDo),B0e=(xDo.sham=!0,!YDo||Heo(function(){var e;return CDo(CDo.call)||!CDo(Object)||!CDo(function(){e=!0})||e})?xDo:CDo),eRo=B0e,tRo=oOo,nRo=TypeError,rRo=hOo,iRo=function(e){if(eRo(e))return e;throw new nRo(tRo(e)+" is not a constructor")},oRo=eOo,aRo=pOo("species"),sRo=$So,lRo=vpe,i2e=function(e){if("Function"===sRo(e))return lRo(e)},cRo=aOo,dRo=y3e,uRo=i2e(i2e.bind),yg=vpe([].slice),pRo=TypeError,Zpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(I3e),gRo=P3e,fRo=ont,qpe=vDo,hRo=U2e,mRo=qge,$U=QSo,CRo=KU,xRo=yg,vRo=fOo,bRo=bDo,Age=Zpe,EQ=Npe,nz=gRo.setImmediate,Qpe=gRo.clearImmediate,yRo=gRo.process,ARo=gRo.Dispatch,IRo=gRo.Function,r2e=gRo.MessageChannel,wRo=gRo.String,jRo=0,SRo={},ORo="onreadystatechange",kRo=($U(function(){TDo=gRo.location}),function(e){var t;mRo(SRo,e)&&(t=SRo[e],delete SRo[e],t())}),_0e=(nz&&Qpe||(nz=function(e){bRo(arguments.length,1);var t=hRo(e)?e:IRo(e),n=xRo(arguments,1);return SRo[++jRo]=function(){fRo(t,void 0,n)},EDo(jRo),jRo},Qpe=function(e){delete SRo[e]},EQ?EDo=function(e){yRo.nextTick(yDo(e))}:ARo&&ARo.now?EDo=function(e){ARo.now(yDo(e))}:r2e&&!Age?(IP=(Jge=new r2e).port2,Jge.port1.onmessage=ADo,EDo=qpe(IP.postMessage,IP)):gRo.addEventListener&&hRo(gRo.postMessage)&&!gRo.importScripts&&TDo&&"file:"!==TDo.protocol&&!$U(IDo)?(EDo=IDo,gRo.addEventListener("message",ADo,!1)):EDo=ORo in vRo("script")?function(e){CRo.appendChild(vRo("script"))[ORo]=function(){CRo.removeChild(this),kRo(e)}}:function(e){setTimeout(yDo(e),0)}),{set:nz,clear:Qpe}),TRo=P3e,ERo=f3e,NRo=Object.getOwnPropertyDescriptor,ete=(jDo.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},jDo),EIo=/ipad|iphone|ipod/i.test(I3e)&&"undefined"!=typeof Pebble,j=/web0s(?!.*chrome)/i.test(I3e),Pge=P3e,q0e=wDo,mge=vDo,MRo=_0e.set,m3e=ete,F3e=Zpe,g2e=EIo,Euo=j,PRo=Npe,Q4o=Pge.MutationObserver||Pge.WebKitMutationObserver,a4e=Pge.document,LRo=Pge.process,n5o=Pge.Promise,Ict=q0e("queueMicrotask"),Ege=(Ict||(LDo=new m3e,DDo=function(){var e,t;for(PRo&&(e=LRo.domain)&&e.exit();t=LDo.get();)try{t()}catch(e){throw LDo.head&&RDo(),e}e&&e.enter()},RDo=F3e||PRo||Euo||!Q4o||!a4e?!g2e&&n5o&&n5o.resolve?((p4e=n5o.resolve(void 0)).constructor=n5o,PDo=mge(p4e.then,p4e),function(){PDo(DDo)}):PRo?function(){LRo.nextTick(DDo)}:(MRo=mge(MRo,Pge),function(){MRo(DDo)}):(NDo=!0,MDo=a4e.createTextNode(""),new Q4o(DDo).observe(MDo,{characterData:!0}),function(){MDo.data=NDo=!NDo}),Ict=function(e){LDo.head||RDo(),LDo.add(e)}),Ict),e4e=P3e.Promise,Jbi=P3e,DRo=e4e,Gge=U2e,ppe=jCo,RRo=Cge,d3e=pOo,FRo=R0e,VRo=ken,BRo=(DRo&&DRo.prototype,d3e("species")),HRo=!1,URo=Gge(Jbi.PromiseRejectionEvent),J$={CONSTRUCTOR:ppe("Promise",function(){var e=RRo(DRo),t=e!==String(DRo);if(!t&&66===VRo)return!0;if(!VRo||VRo<51||!/native code/.test(e)){var e=new DRo(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[BRo]=n,!(HRo=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=FRo&&"DENO"!=FRo||URo)}),REJECTION_EVENT:URo,SUBCLASSING:HRo},yge={},zRo=aOo,_Ro=TypeError,doi=(yge.f=function(e){return new ODo(e)},SOo),qRo=Npe,WRo=P3e,ZRo=Fpe,MQ=COo,TQ=Ipe,$0e=qNo,N5n=function(e){e=UDo(e);_Do&&e&&!e[qDo]&&zDo(e,qDo,{configurable:!0,get:function(){return this}})},GRo=aOo,JRo=U2e,KRo=rOo,YRo=hDo,QRo=function(e,t){var e=rRo(e).constructor;return void 0===e||oRo(e=rRo(e)[aRo])?t:iRo(e)},XRo=_0e.set,$Ro=Ege,eFo=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},tFo=SDo,nFo=ete,o$=Zge,x3e=e4e,Ltn=yge,rFo="Promise",S$e=J$.CONSTRUCTOR,iFo=J$.REJECTION_EVENT,c4e=J$.SUBCLASSING,oFo=o$.getterFor(rFo),aFo=o$.set,npe=x3e&&x3e.prototype,sFo=x3e,lFo=npe,cFo=WRo.TypeError,dFo=WRo.document,uFo=WRo.process,pFo=Ltn.f,gFo=pFo,fFo=!!(dFo&&dFo.createEvent&&WRo.dispatchEvent),hFo="unhandledrejection",mFo="rejectionhandled",CFo=1,xFo=2,vFo=1,bFo=2,yFo=function(e){var t;return!(!KRo(e)||!JRo(t=e.then))&&t},AFo=function(e,t){var n,r,i,o=t.value,a=t.state===CFo,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{s?(a||(t.rejection===bFo&&kDo(t),t.rejection=vFo),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),i=!0)),n===e.promise?c(new cFo("Promise-chain cycle")):(r=yFo(n))?ZRo(r,n,l,c):l(n)):c(o)}catch(e){d&&!i&&d.exit(),c(e)}},IFo=function(n,r){n.notified||(n.notified=!0,$Ro(function(){for(var e,t=n.reactions;e=t.get();)AFo(e,n);n.notified=!1,r&&!n.rejection&&jFo(n)}))},wFo=function(e,t,n){var r;fFo?((r=dFo.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),WRo.dispatchEvent(r)):r={promise:t,reason:n},!iFo&&(t=WRo["on"+e])?t(r):e===hFo&&eFo("Unhandled promise rejection",n)},jFo=function(r){ZRo(XRo,WRo,function(){var e=r.facade,t=r.value,n=SFo(r);if(n&&(n=tFo(function(){qRo?uFo.emit("unhandledRejection",t,e):wFo(hFo,e,t)}),r.rejection=qRo||SFo(r)?bFo:vFo,n.error))throw n.value})},SFo=function(e){return e.rejection!==vFo&&!e.parent},OFo=function(t,n,r){return function(e){t(n,e,r)}},kFo=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=xFo,IFo(e,!0))},TFo=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw new cFo("Promise can't be resolved itself");var r=yFo(e);r?$Ro(function(){var t={done:!1};try{ZRo(r,e,OFo(TFo,t,n),OFo(kFo,t,n))}catch(e){kFo(t,e,n)}}):(n.value=e,n.state=CFo,IFo(n,!1))}catch(e){kFo({done:!1},e,n)}}};if(S$e&&(lFo=(sFo=function(e){YRo(this,lFo),GRo(e),ZRo(FDo,this);var t=oFo(this);try{e(OFo(TFo,t),OFo(kFo,t))}catch(e){kFo(t,e)}}).prototype,(FDo=function(e){aFo(this,{type:rFo,done:!1,notified:!1,parent:!1,reactions:new nFo,rejection:!1,state:0,value:null})}).prototype=MQ(lFo,"then",function(e,t){var n=oFo(this),r=pFo(QRo(this,sFo));return n.parent=!0,r.ok=!JRo(e)||e,r.fail=JRo(t)&&t,r.domain=qRo?uFo.domain:void 0,0===n.state?n.reactions.add(r):$Ro(function(){AFo(r,n)}),r.promise}),VDo=function(){var e=new FDo,t=oFo(e);this.promise=e,this.resolve=OFo(TFo,t),this.reject=OFo(kFo,t)},Ltn.f=pFo=function(e){return e===sFo||void 0===e?new VDo:gFo(e)},JRo(x3e))&&npe!==Object.prototype){BDo=npe.then,c4e||MQ(npe,"then",function(e,t){var n=this;return new sFo(function(e,t){ZRo(BDo,n,e,t)}).then(e,t)},{unsafe:!0});try{delete npe.constructor}catch(e){}TQ&&TQ(npe,lFo)}doi({global:!0,constructor:!0,wrap:!0,forced:S$e},{Promise:sFo}),$0e(sFo,rFo,!1),N5n(rFo);function EFo(e){return void 0!==e&&(RFo.Array===e||VFo[FFo]===e)}function NFo(e){if(!UFo(e))return HFo(e,_Fo)||HFo(e,"@@iterator")||zFo[BFo(e)]}function MFo(e,t){if(t=arguments.length<2?JFo(e):t,WFo(t))return ZFo(qFo(t,e));throw new KFo(GFo(e)+" is not iterable")}function PFo(e,t,n){var r,i;QFo(e);try{if(!(r=XFo(e,"return"))){if("throw"===t)throw n;return n}r=YFo(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return QFo(r),n}function LFo(e,t){this.stopped=e,this.result=t}function DFo(e,t,n){function r(e){return o&&lVo(o,"normal",e),new LFo(!0,e)}function i(e){return p?(tVo(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,d,u=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=$Fo(t,u);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=sVo(e)))throw new cVo(nVo(e)+" is not iterable");if(rVo(n)){for(a=0,s=iVo(e);a<s;a++)if((l=i(e[a]))&&oVo(dVo,l))return l;return new LFo(!1)}o=aVo(e,n)}for(c=(g?e:o).next;!(d=eVo(c,o)).done;){try{l=i(d.value)}catch(e){lVo(o,"throw",e)}if("object"==typeof l&&l&&oVo(dVo,l))return l}return new LFo(!1)}var RFo=jpe,FFo=pOo("iterator"),VFo=Array.prototype,BFo=m4e,HFo=sOo,UFo=eOo,zFo=jpe,_Fo=pOo("iterator"),qFo=Fpe,WFo=aOo,ZFo=hOo,GFo=oOo,JFo=NFo,KFo=TypeError,YFo=Fpe,QFo=hOo,XFo=sOo,$Fo=vDo,eVo=Fpe,tVo=hOo,nVo=oOo,rVo=EFo,iVo=yOo,oVo=Tpe,aVo=MFo,sVo=NFo,lVo=PFo,cVo=TypeError,dVo=LFo.prototype,uVo=pOo("iterator"),pVo=!1;try{var gVo=0,fVo={next:function(){return{done:!!gVo++}},return:function(){pVo=!0}};fVo[uVo]=function(){return this},Array.from(fVo,function(){throw 2})}catch(e){}var hVo=e4e,_3e=function(e,t){try{if(!t&&!pVo)return!1}catch(e){return!1}var n=!1;try{var r={};r[uVo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},c$=J$.CONSTRUCTOR||!_3e(function(e){hVo.all(e).then(void 0,function(){})}),mVo=Fpe,CVo=aOo,xVo=yge,vVo=SDo,bVo=DFo,Rtt=(SOo({target:"Promise",stat:!0,forced:c$},{all:function(e){var s=this,t=xVo.f(s),l=t.resolve,c=t.reject,n=vVo(function(){var r=CVo(s.resolve),i=[],o=0,a=1;bVo(e,function(e){var t=o++,n=!1;a++,mVo(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),SOo),Yge=e4e,hge=iOo,NIo=U2e,C=COo,iVi=Yge&&Yge.prototype;Rtt({target:"Promise",proto:!0,forced:J$.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),NIo(Yge)&&(s2e=hge("Promise").prototype.catch,iVi.catch!==s2e)&&C(iVi,"catch",s2e,{unsafe:!0});var yVo=Fpe,AVo=aOo,IVo=yge,wVo=SDo,jVo=DFo;SOo({target:"Promise",stat:!0,forced:c$},{race:function(e){var n=this,r=IVo.f(n),i=r.reject,t=wVo(function(){var t=AVo(n.resolve);jVo(e,function(e){yVo(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});function SVo(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=YBo(n/2),s=SVo(KBo(e,0,a),t),l=SVo(KBo(e,a),t),c=s.length,d=l.length,u=0,p=0;u<c||p<d;)e[u+p]=u<c&&p<d?t(s[u],l[p])<=0?s[u++]:l[p++]:u<c?s[u++]:l[p++];return e}function OVo(e,t){return e=LHo(e,t,t+2),DHo(FHo,e)?SHo(e,16):NaN}function kVo(e){for(var t=(e=EHo(e,RHo," ")).length,n="",r=0;r<t;){var i=OHo(e,r);if("%"===i){if("%"===OHo(e,r+1)||t<r+3){n+="%",r++;continue}var o=OVo(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=(e=>{for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t})(o);if(0===a)i=wHo(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],l=1;l<a&&!(t<++r+3||"%"!==OHo(e,r));){var c=OVo(e,r+1);if(c!=c){r+=3;break}if(191<c||c<128)break;THo(s,c),r+=2,l++}if(s.length!==a){n+="�";continue}o=(e=>{var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return 1114111<t?null:t})(s);null===o?n+="�":i=jHo(o)}}n+=i,r++}return n}function TVo(e){return BHo[e]}function EVo(e){return EHo(IHo(e),VHo,TVo)}function NVo(e){this.entries=[],this.url=null,void 0!==e&&(iHo(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===OHo(e,0)?LHo(e,1):e:oHo(e)))}function MVo(){$Bo(this,UHo);var e=hHo(this,new NVo(0<arguments.length?arguments[0]:void 0));XBo||(this.size=e.entries.length)}function PVo(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)mUo(t,e%256),e=rUo(e/256);return sUo(t,".")}if("object"!=typeof e)return e;for(t="",r=(e=>{for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t})(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=lUo(e[n],16),n<7&&(t+=":")));return"["+t+"]"}function LVo(e,t){var n=GHo(e,0);return 32<n&&n<127&&!qHo(t,e)?e:encodeURIComponent(e)}function DVo(e,t){return 2===e.length&&aUo(bUo,oUo(e,0))&&(":"===(e=oUo(e,1))||!t&&"|"===e)}function RVo(e){return 1<e.length&&DVo(fUo(e,0,2))&&(2===e.length||"/"===(e=oUo(e,2))||"\\"===e||"?"===e||"#"===e)}function FVo(e,t,n){var r,i,e=KHo(e);if(t){if(i=this.parse(e))throw new tUo(i);this.searchParams=null}else{if(void 0!==n&&(r=new FVo(n,!0)),i=this.parse(e,null,r))throw new tUo(i);(t=eUo(new $Ho)).bindURL(this),this.searchParams=t}}function VVo(e,t){return{get:function(){return XHo(this)[e]()},set:t&&function(e){return XHo(this)[t](e)},configurable:!0,enumerable:!0}}var BVo,HVo,UVo,zVo,_Vo=yge,qVo=(SOo({target:"Promise",stat:!0,forced:J$.CONSTRUCTOR},{reject:function(e){var t=_Vo.f(this);return(0,t.reject)(e),t.promise}}),hOo),WVo=rOo,ZVo=yge,kpe=SOo,e0e=iOo,B3e=J$.CONSTRUCTOR,GVo=function(e,t){return qVo(e),WVo(t)&&t.constructor===e?t:((0,(e=ZVo.f(e)).resolve)(t),e.promise)},JVo=(e0e("Promise"),kpe({target:"Promise",stat:!0,forced:B3e},{resolve:function(e){return GVo(this,e)}}),s4e.charAt),KVo=MEo,m0e=Zge,tge=JNo,YVo=KNo,QVo="String Iterator",XVo=m0e.set,$Vo=m0e.getterFor(QVo),r=(tge(String,"String",function(e){XVo(this,{type:QVo,string:KVo(e),index:0})},function(){var e=$Vo(this),t=e.string,n=e.index;return n>=t.length?YVo(void 0,!0):(t=JVo(t,n),e.index+=t.length,YVo(t,!1))}),QSo),eBo=f3e,tBo=pOo("iterator"),$ge=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),t.delete("a",2),t.delete("b",void 0),!n.size&&!eBo||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[tBo]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}),nBo=hOo,rBo=PFo,iBo=f3e,oBo=Hee,aBo=XSo,sBo=vDo,lBo=Fpe,cBo=dOo,dBo=function(t,e,n,r){try{return r?e(nBo(n)[0],n[1]):e(n)}catch(e){rBo(t,"throw",e)}},uBo=EFo,pBo=B0e,gBo=yOo,fBo=function(e,t,n){iBo?oBo.f(e,t,aBo(0,n)):e[t]=n},hBo=MFo,mBo=NFo,CBo=Array,Mge=vpe,xBo=2147483647,vBo=36,bBo=1,yBo=26,ABo=38,IBo=700,wBo=72,jBo=128,SBo="-",OBo=/[^\0-\u007E]/,kBo=/[.\u3002\uFF0E\uFF61]/g,TBo="Overflow: input needs wider integers to process",EBo=vBo-bBo,NBo=RangeError,MBo=Mge(kBo.exec),PBo=Math.floor,LBo=String.fromCharCode,DBo=Mge("".charCodeAt),RBo=Mge([].join),FBo=Mge([].push),VBo=Mge("".replace),BBo=Mge("".split),HBo=Mge("".toLowerCase),UBo=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=DBo(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=DBo(e,n++)))?FBo(t,((1023&o)<<10)+(1023&i)+65536):(FBo(t,o),n--):FBo(t,o)}return t},zBo=function(e){return e+22+75*(e<26)},_Bo=function(e,t,n){var r=0;for(e=n?PBo(e/IBo):e>>1,e+=PBo(e/t);EBo*yBo>>1<e;)e=PBo(e/EBo),r+=vBo;return PBo(r+(EBo+1)*e/(e+ABo))},Xge=SOo,dcr=vpe,qBo=vOo,WBo=RangeError,ZBo=String.fromCharCode,Q2e=String.fromCodePoint,GBo=dcr([].join),JBo=(Xge({target:"String",stat:!0,arity:1,forced:!!Q2e&&1!==Q2e.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(t=+arguments[i++],qBo(t,1114111)!==t)throw new WBo(t+" is not a valid code point");n[i]=t<65536?ZBo(t):ZBo(55296+((t-=65536)>>10),t%1024+56320)}return GBo(n,"")}}),COo),KBo=yg,YBo=Math.floor,sge=SOo,Mpe=P3e,wge=wDo,Ope=iOo,QBo=Fpe,w3e=vpe,XBo=f3e,H2e=$ge,Y3e=COo,Lge=PEo,Rge=function(e,t,n){for(var r in t)JBo(e,r,t[r],n);return e},nge=qNo,ISo=ZNo,f=Zge,$Bo=hDo,f4e=U2e,eHo=qge,tHo=vDo,nHo=m4e,rHo=hOo,iHo=rOo,oHo=MEo,aHo=wpe,sHo=XSo,lHo=MFo,cHo=NFo,dHo=KNo,uHo=bDo,pHo=SVo,t0e=pOo("iterator"),gHo="URLSearchParams",fHo=gHo+"Iterator",hHo=f.set,mHo=f.getterFor(gHo),CHo=f.getterFor(fHo),xHo=wge("fetch"),vHo=wge("Request"),bHo=wge("Headers"),yHo=vHo&&vHo.prototype,VU=bHo&&bHo.prototype,AHo=Mpe.TypeError,IHo=Mpe.encodeURIComponent,wHo=String.fromCharCode,jHo=Ope("String","fromCodePoint"),SHo=parseInt,OHo=w3e("".charAt),kHo=w3e([].join),THo=w3e([].push),EHo=w3e("".replace),NHo=w3e([].shift),MHo=w3e([].splice),PHo=w3e("".split),LHo=w3e("".slice),DHo=w3e(/./.exec),RHo=/\+/g,FHo=/^[0-9a-f]+$/i,VHo=/[!'()~]|%20/g,BHo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},HHo=ISo(function(e,t){hHo(this,{type:fHo,target:mHo(e).entries,index:0,kind:t})},gHo,function(){var e=CHo(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,dHo(void 0,!0);var r=t[n];switch(e.kind){case"keys":return dHo(r.key,!1);case"values":return dHo(r.value,!1)}return dHo([r.key,r.value],!1)},!0),UHo=(NVo.prototype={type:gHo,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,l=cHo(e);if(l)for(n=(t=lHo(e,l)).next;!(r=QBo(n,t)).done;){if(i=(r=lHo(rHo(r.value))).next,(o=QBo(i,r)).done||(a=QBo(i,r)).done||!QBo(i,r).done)throw new AHo("Expected sequence with length 2");THo(s,{key:oHo(o.value),value:oHo(a.value)})}else for(var c in e)eHo(e,c)&&THo(s,{key:c,value:oHo(e[c])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=PHo(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=PHo(t,"="),THo(n,{key:kVo(NHo(t)),value:kVo(kHo(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],THo(n,EVo(e.key)+"="+EVo(e.value));return kHo(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},MVo.prototype),acr=(Rge(UHo,{append:function(e,t){var n=mHo(this);uHo(arguments.length,2),THo(n.entries,{key:oHo(e),value:oHo(t)}),XBo||this.length++,n.updateURL()},delete:function(e){for(var t=mHo(this),n=uHo(arguments.length,1),r=t.entries,i=oHo(e),e=n<2?void 0:arguments[1],o=void 0===e?e:oHo(e),a=0;a<r.length;){var s=r[a];if(s.key!==i||void 0!==o&&s.value!==o)a++;else if(MHo(r,a,1),void 0!==o)break}XBo||(this.size=r.length),t.updateURL()},get:function(e){for(var t=mHo(this).entries,n=(uHo(arguments.length,1),oHo(e)),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){for(var t=mHo(this).entries,n=(uHo(arguments.length,1),oHo(e)),r=[],i=0;i<t.length;i++)t[i].key===n&&THo(r,t[i].value);return r},has:function(e){for(var t=mHo(this).entries,n=uHo(arguments.length,1),r=oHo(e),e=n<2?void 0:arguments[1],i=void 0===e?e:oHo(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){for(var n,r=mHo(this),i=(uHo(arguments.length,1),r.entries),o=!1,a=oHo(e),s=oHo(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?MHo(i,l--,1):(o=!0,n.value=s));o||THo(i,{key:a,value:s}),XBo||(this.size=i.length),r.updateURL()},sort:function(){var e=mHo(this);pHo(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=mHo(this).entries,r=tHo(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new HHo(this,"keys")},values:function(){return new HHo(this,"values")},entries:function(){return new HHo(this,"entries")}},{enumerable:!0}),Y3e(UHo,t0e,UHo.entries,{name:"entries"}),Y3e(UHo,"toString",function(){return mHo(this).serialize()},{enumerable:!0}),XBo&&Lge(UHo,"size",{get:function(){return mHo(this).entries.length},configurable:!0,enumerable:!0}),nge(MVo,gHo),sge({global:!0,constructor:!0,forced:!H2e},{URLSearchParams:MVo}),!H2e&&f4e(bHo)&&(BVo=w3e(VU.has),HVo=w3e(VU.set),UVo=function(e){if(iHo(e)){var t,n=e.body;if(nHo(n)===gHo)return t=e.headers?new bHo(e.headers):new bHo,BVo(t,"content-type")||HVo(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),aHo(e,{body:sHo(0,oHo(n)),headers:sHo(0,t)})}return e},f4e(xHo)&&sge({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return xHo(e,1<arguments.length?UVo(arguments[1]):{})}}),f4e(vHo))&&((yHo.constructor=M3e=function(e){return $Bo(this,yHo),new vHo(e,1<arguments.length?UVo(arguments[1]):{})}).prototype=yHo,sge({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:M3e})),{URLSearchParams:MVo,getState:mHo}),ige=SOo,zHo=f3e,o4e=$ge,t4e=P3e,fgr=vDo,XX=vpe,k2e=COo,xpe=PEo,_Ho=hDo,qHo=qge,l3e=c2e,WHo=function(e){var t,n,r,i,o,a,s=cBo(e),e=pBo(this),l=arguments.length,c=1<l?arguments[1]:void 0,d=void 0!==c,l=(d&&(c=sBo(c,2<l?arguments[2]:void 0)),mBo(s)),u=0;if(!l||this===CBo&&uBo(l))for(t=gBo(s),n=e?new this(t):CBo(t);u<t;u++)a=d?c(s[u],u):s[u],fBo(n,u,a);else for(n=e?new this:[],o=(i=hBo(s,l)).next;!(r=lBo(o,i)).done;u++)a=d?dBo(i,c,[r.value,u],!0):r.value,fBo(n,u,a);return n.length=u,n},ZHo=yg,GHo=s4e.codeAt,JHo=function(e){for(var t,n=[],r=BBo(VBo(HBo(e),kBo,"."),"."),i=0;i<r.length;i++)t=r[i],FBo(n,MBo(OBo,t)?"xn--"+(e=>{var t,n=[],r=(e=UBo(e)).length,i=jBo,o=0,a=wBo;for(d=0;d<e.length;d++)(t=e[d])<128&&FBo(n,LBo(t));var s=n.length,l=s;for(s&&FBo(n,SBo);l<r;){for(var c=xBo,d=0;d<e.length;d++)i<=(t=e[d])&&t<c&&(c=t);var u=l+1;if(c-i>PBo((xBo-o)/u))throw new NBo(TBo);for(o+=(c-i)*u,i=c,d=0;d<e.length;d++){if((t=e[d])<i&&++o>xBo)throw new NBo(TBo);if(t===i){for(var p=o,g=vBo;;){var f=g<=a?bBo:a+yBo<=g?yBo:g-a;if(p<f)break;var h=p-f,m=vBo-f;FBo(n,LBo(zBo(f+h%m))),p=PBo(h/m),g+=vBo}FBo(n,LBo(zBo(p))),a=_Bo(o,u,l===s),o=0,l++}}o++,i++}return RBo(n,"")})(t):t);return RBo(n,".")},KHo=MEo,$yi=qNo,YHo=bDo,Cg=acr,M2e=Zge,QHo=M2e.set,XHo=M2e.getterFor("URL"),$Ho=Cg.URLSearchParams,eUo=Cg.getState,P2e=t4e.URL,tUo=t4e.TypeError,nUo=t4e.parseInt,rUo=Math.floor,iUo=Math.pow,oUo=XX("".charAt),aUo=XX(/./.exec),sUo=XX([].join),lUo=XX(1..toString),cUo=XX([].pop),dUo=XX([].push),uUo=XX("".replace),pUo=XX([].shift),gUo=XX("".split),fUo=XX("".slice),hUo=XX("".toLowerCase),mUo=XX([].unshift),CUo="Invalid scheme",xUo="Invalid host",vUo="Invalid port",bUo=/[a-z]/i,yUo=/[\d+-.a-z]/i,AUo=/\d/,IUo=/^0x/i,wUo=/^[0-7]+$/,jUo=/^\d+$/,SUo=/^[\da-f]+$/i,OUo=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kUo=/[\0\t\n\r #/:<>?@[\\\]^|]/,TUo=/^[\u0000-\u0020]+/,EUo=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,NUo=/[\t\n\r]/g,MUo={},PUo=l3e({},MUo,{" ":1,'"':1,"<":1,">":1,"`":1}),LUo=l3e({},PUo,{"#":1,"?":1,"{":1,"}":1}),DUo=l3e({},LUo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),RUo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},FUo={},VUo={},BUo={},HUo={},UUo={},zUo={},_Uo={},qUo={},WUo={},ZUo={},GUo={},JUo={},KUo={},YUo={},QUo={},XUo={},$Uo={},ezo={},tzo={},nzo={},rzo={},izo=(FVo.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,l=t||FUo,c=0,d="",u=!1,p=!1,g=!1;for(e=KHo(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=uUo(e,TUo,""),e=uUo(e,EUo,"$1")),e=uUo(e,NUo,""),r=WHo(e);c<=r.length;){switch(i=r[c],l){case FUo:if(!i||!aUo(bUo,i)){if(t)return CUo;l=BUo;continue}d+=hUo(i),l=VUo;break;case VUo:if(i&&(aUo(yUo,i)||"+"===i||"-"===i||"."===i))d+=hUo(i);else{if(":"!==i){if(t)return CUo;d="",l=BUo,c=0;continue}if(t&&(s.isSpecial()!==qHo(RUo,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&RUo[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?l=YUo:s.isSpecial()&&n&&n.scheme===s.scheme?l=HUo:s.isSpecial()?l=qUo:"/"===r[c+1]?(l=UUo,c++):(s.cannotBeABaseURL=!0,dUo(s.path,""),l=tzo)}break;case BUo:if(!n||n.cannotBeABaseURL&&"#"!==i)return CUo;if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=ZHo(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=rzo;break}l="file"===n.scheme?YUo:zUo;continue;case HUo:if("/"!==i||"/"!==r[c+1]){l=zUo;continue}l=WUo,c++;break;case UUo:if("/"===i){l=ZUo;break}l=ezo;continue;case zUo:if(s.scheme=n.scheme,i===zVo)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())l=_Uo;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query="",l=nzo;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.path.length--,l=ezo;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query=n.query,s.fragment="",l=rzo}break;case _Uo:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=ezo;continue}l=ZUo}else l=WUo;break;case qUo:if(l=WUo,"/"!==i||"/"!==oUo(d,c+1))continue;c++;break;case WUo:if("/"===i||"\\"===i)break;l=ZUo;continue;case ZUo:if("@"===i){u&&(d="%40"+d);for(var u=!0,f=WHo(d),h=0;h<f.length;h++){var m=f[h];":"!==m||g?(m=LVo(m,DUo),g?s.password+=m:s.username+=m):g=!0}d=""}else if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(u&&""===d)return"Invalid authority";c-=WHo(d).length+1,d="",l=GUo}else d+=i;break;case GUo:case JUo:if(t&&"file"===s.scheme){l=XUo;continue}if(":"!==i||p){if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===d)return xUo;if(t&&""===d&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(d))return o;if(d="",l=$Uo,t)return;continue}"["===i?p=!0:"]"===i&&(p=!1),d+=i}else{if(""===d)return xUo;if(o=s.parseHost(d))return o;if(d="",l=KUo,t===JUo)return}break;case KUo:if(!aUo(AUo,i)){if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==d){var C=nUo(d,10);if(65535<C)return vUo;s.port=s.isSpecial()&&C===RUo[s.scheme]?null:C,d=""}if(t)return;l=$Uo;continue}return vUo}d+=i;break;case YUo:if(s.scheme="file","/"===i||"\\"===i)l=QUo;else{if(!n||"file"!==n.scheme){l=ezo;continue}switch(i){case zVo:s.host=n.host,s.path=ZHo(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=ZHo(n.path),s.query="",l=nzo;break;case"#":s.host=n.host,s.path=ZHo(n.path),s.query=n.query,s.fragment="",l=rzo;break;default:RVo(sUo(ZHo(r,c),""))||(s.host=n.host,s.path=ZHo(n.path),s.shortenPath()),l=ezo;continue}}break;case QUo:if("/"===i||"\\"===i){l=XUo;break}n&&"file"===n.scheme&&!RVo(sUo(ZHo(r,c),""))&&(DVo(n.path[0],!0)?dUo(s.path,n.path[0]):s.host=n.host),l=ezo;continue;case XUo:if(i===zVo||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&DVo(d))l=ezo;else{if(""===d){if(s.host="",t)return}else{if(o=s.parseHost(d))return o;if("localhost"===s.host&&(s.host=""),t)return;d=""}l=$Uo}continue}d+=i;break;case $Uo:if(s.isSpecial()){if(l=ezo,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==zVo&&(l=ezo,"/"!==i))continue}else s.fragment="",l=rzo;else s.query="",l=nzo;break;case ezo:if(i===zVo||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(C=hUo(C=d))||"%2e."===C||".%2e"===C||"%2e%2e"===C?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||dUo(s.path,"")):"."===(a=d)||"%2e"===hUo(a)?"/"===i||"\\"===i&&s.isSpecial()||dUo(s.path,""):("file"===s.scheme&&!s.path.length&&DVo(d)&&(s.host&&(s.host=""),d=oUo(d,0)+":"),dUo(s.path,d)),d="","file"===s.scheme&&(i===zVo||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)pUo(s.path);"?"===i?(s.query="",l=nzo):"#"===i&&(s.fragment="",l=rzo)}else d+=LVo(i,LUo);break;case tzo:"?"===i?(s.query="",l=nzo):"#"===i?(s.fragment="",l=rzo):i!==zVo&&(s.path[0]+=LVo(i,MUo));break;case nzo:t||"#"!==i?i!==zVo&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":LVo(i,MUo)):(s.fragment="",l=rzo);break;case rzo:i!==zVo&&(s.fragment+=LVo(i,PUo))}c++}},parseHost:function(e){var t,n,r;if("["===oUo(e,0))return"]"===oUo(e,e.length-1)&&(t=(e=>{function t(){return oUo(e,p)}var n,r,i,o,a,s,l,c=[0,0,0,0,0,0,0,0],d=0,u=null,p=0;if(":"===t()){if(":"!==oUo(e,1))return;p+=2,u=++d}for(;t();){if(8===d)return;if(":"===t()){if(null!==u)return;p++,u=++d}else{for(n=r=0;r<4&&aUo(SUo,t());)n=16*n+nUo(t(),16),p++,r++;if("."===t()){if(0===r)return;if(p-=r,6<d)return;for(i=0;t();){if(o=null,0<i){if(!("."===t()&&i<4))return;p++}if(!aUo(AUo,t()))return;for(;aUo(AUo,t());){if(a=nUo(t(),10),null===o)o=a;else{if(0===o)return;o=10*o+a}if(255<o)return;p++}c[d]=256*c[d]+o,2!==++i&&4!==i||d++}if(4!==i)return;break}if(":"===t()){if(p++,!t())return}else if(t())return;c[d++]=n}}if(null!==u)for(s=d-u,d=7;0!==d&&0<s;)l=c[d],c[d--]=c[u+s-1],c[u+--s]=l;else if(8!==d)return;return c})(fUo(e,1,-1)))?void(this.host=t):xUo;if(this.isSpecial())return e=JHo(e),aUo(OUo,e)||null===(t=(e=>{var t,n,r,i,o,a,s,l=gUo(e,".");if(l.length&&""===l[l.length-1]&&l.length--,4<(t=l.length))return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,1<i.length&&"0"===oUo(i,0)&&(o=aUo(IUo,i)?16:8,i=fUo(i,8===o?1:2)),""===i)a=0;else{if(!aUo(10===o?jUo:8===o?wUo:SUo,i))return e;a=nUo(i,o)}dUo(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=iUo(256,5-t))return null}else if(255<a)return null;for(s=cUo(n),r=0;r<n.length;r++)s+=n[r]*iUo(256,3-r);return s})(e))?xUo:void(this.host=t);if(aUo(kUo,e))return xUo;for(t="",n=WHo(e),r=0;r<n.length;r++)t+=LVo(n[r],MUo);this.host=t},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return qHo(RUo,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&DVo(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=PVo(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+sUo(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){e=this.parse(e);if(e)throw new tUo(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new izo(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+PVo(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(KHo(e)+":",FUo)},getUsername:function(){return this.username},setUsername:function(e){var t=WHo(KHo(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=LVo(t[n],DUo)}},getPassword:function(){return this.password},setPassword:function(e){var t=WHo(KHo(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=LVo(t[n],DUo)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?PVo(e):PVo(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,GUo)},getHostname:function(){var e=this.host;return null===e?"":PVo(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,JUo)},getPort:function(){var e=this.port;return null===e?"":KHo(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=KHo(e))?this.port=null:this.parse(e,KUo))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+sUo(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,$Uo))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=KHo(e))?this.query=null:("?"===oUo(e,0)&&(e=fUo(e,1)),this.query="",this.parse(e,nzo)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""===(e=KHo(e))?this.fragment=null:("#"===oUo(e,0)&&(e=fUo(e,1)),this.fragment="",this.parse(e,rzo))},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=_Ho(this,ozo),n=1<YHo(arguments.length,1)?arguments[1]:void 0,e=QHo(t,new FVo(e,!1,n));zHo||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),ozo=izo.prototype;zHo&&(xpe(ozo,"href",VVo("serialize","setHref")),xpe(ozo,"origin",VVo("getOrigin")),xpe(ozo,"protocol",VVo("getProtocol","setProtocol")),xpe(ozo,"username",VVo("getUsername","setUsername")),xpe(ozo,"password",VVo("getPassword","setPassword")),xpe(ozo,"host",VVo("getHost","setHost")),xpe(ozo,"hostname",VVo("getHostname","setHostname")),xpe(ozo,"port",VVo("getPort","setPort")),xpe(ozo,"pathname",VVo("getPathname","setPathname")),xpe(ozo,"search",VVo("getSearch","setSearch")),xpe(ozo,"searchParams",VVo("getSearchParams")),xpe(ozo,"hash",VVo("getHash","setHash"))),k2e(ozo,"toJSON",function(){return XHo(this).serialize()},{enumerable:!0}),k2e(ozo,"toString",function(){return XHo(this).serialize()},{enumerable:!0}),P2e&&(Fge=P2e.createObjectURL,Sci=P2e.revokeObjectURL,Fge&&k2e(izo,"createObjectURL",fgr(Fge,P2e)),Sci)&&k2e(izo,"revokeObjectURL",fgr(Sci,P2e)),$yi(izo,"URL"),ige({global:!0,constructor:!0,forced:!o4e,sham:!zHo},{URL:izo});var azo=Fpe,Lpe=(SOo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return azo(URL.prototype.toString,this)}}),{exports:{}});function szo(){}function lzo(){}lzo.resetWarningCache=szo;function czo(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function dzo(){return czo}Lpe.exports=(Wge={array:czo.isRequired=czo,bigint:czo,bool:czo,func:czo,number:czo,object:czo,string:czo,symbol:czo,any:czo,arrayOf:dzo,element:czo,elementType:czo,instanceOf:dzo,node:czo,objectOf:dzo,oneOf:dzo,oneOfType:dzo,shape:dzo,exact:dzo,checkPropTypes:lzo,resetWarningCache:szo}).PropTypes=Wge;var N3e=Lpe.exports,uzo=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function pzo(e,t){var n,r=(e=>{var t=e.name;return t&&-1!==t.lastIndexOf(".")&&!e.type&&(t=t.split(".").pop().toLowerCase(),t=uzo.get(t))&&Object.defineProperty(e,"type",{value:t,writable:!1,configurable:!1,enumerable:!0}),e})(e);return"string"!=typeof r.path&&(n=e.webkitRelativePath,Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&0<n.length?n:e.name,writable:!1,configurable:!1,enumerable:!0})),r}var gzo=[".DS_Store","Thumbs.db"];function fzo(n){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,n.dataTransfer?function(n,r){return dNo(this,void 0,void 0,function(){var t;return uNo(this,function(e){switch(e.label){case 0:return n.items?(t=mzo(n.items).filter(function(e){return"file"===e.kind}),"drop"!==r?[2,t]:[4,Promise.all(t.map(Czo))]):[3,2];case 1:return[2,hzo(function n(e){return e.reduce(function(e,t){return pNo(e,Array.isArray(t)?n(t):[t])},[])}(e.sent()))];case 2:return[2,hzo(mzo(n.files).map(function(e){return pzo(e)}))]}})})}(n.dataTransfer,n.type):(null!==(t=n).target&&t.target.files?mzo(t.target.files):[]).map(function(e){return pzo(e)})];var t})})}function hzo(e){return e.filter(function(e){return-1===gzo.indexOf(e.name)})}function mzo(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Czo(e){var t;return"function"==typeof e.webkitGetAsEntry&&(t=e.webkitGetAsEntry())&&t.isDirectory?bzo(t):xzo(e)}function xzo(e){var t=e.getAsFile();return t?(t=pzo(t),Promise.resolve(t)):Promise.reject(e+" is not a File")}function vzo(t){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,(t.isDirectory?bzo:function(r){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,new Promise(function(t,n){r.file(function(e){e=pzo(e,r.fullPath);t(e)},function(e){n(e)})})]})})})(t)]})})}function bzo(e){var t=e.createReader();return new Promise(function(o,a){var s=[];!function i(){var e=this;t.readEntries(function(r){return dNo(e,void 0,void 0,function(){var t,n;return uNo(this,function(e){switch(e.label){case 0:if(r.length)return[3,5];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.all(s)];case 2:return t=e.sent(),o(t),[3,4];case 3:return t=e.sent(),a(t),[3,4];case 4:return[3,6];case 5:n=Promise.all(r.map(vzo)),s.push(n),i(),e.label=6;case 6:return[2]}})})},function(e){a(e)})}()})}var yzo=function(e,t){var n,r,i;return!e||!t||0===(t=Array.isArray(t)?t:t.split(",")).length||(n=e.name||"",r=(e.type||"").toLowerCase(),i=r.replace(/\/.*$/,""),t.some(function(e){e=e.trim().toLowerCase();return"."===e.charAt(0)?n.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):r===e}))};function Azo(e,t){return"application/x-moz-file"===e.type||yzo(e,t)}function Izo(e,t,n){if(wzo(e.size)){if(wzo(t)&&wzo(n))return e.size>=t&&e.size<=n;if(wzo(t))return e.size>=t;if(wzo(n))return e.size<=n}return!0}function wzo(e){return null!=e}function jzo(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Szo(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):e.target&&e.target.files}function Ozo(e){e.preventDefault()}function kzo(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return i.some(function(e){return!jzo(t)&&e&&e.apply(void 0,[t].concat(n)),jzo(t)})}}function Tzo(e){return(e=>{if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}})(e)||(e=>{if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance")})()}function Ezo(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}})(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance")})()}function Nzo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Mzo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nzo(n,!0).forEach(function(e){Pzo(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nzo(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Pzo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lzo(e,t){if(null==e)return{};var n,r=((e,t)=>{if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(i[n]=e[n]);return i})(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}var CYi=Le.exports.forwardRef(function(e,t){var n=e.children,e=Rzo(Lzo(e,["children"])),r=e.open,e=Lzo(e,["open"]);return Le.exports.useImperativeHandle(t,function(){return{open:r}},[r]),Me.createElement(Le.exports.Fragment,null,n(Mzo({},e,{open:r})))}),Dzo=(CYi.displayName="Dropzone",{isFocused:!(CYi.propTypes={children:N3e.func,accept:N3e.oneOfType([N3e.string,N3e.arrayOf(N3e.string)]),multiple:N3e.bool,preventDropOnDocument:N3e.bool,noClick:N3e.bool,noKeyboard:N3e.bool,noDrag:N3e.bool,noDragEventsBubbling:N3e.bool,minSize:N3e.number,maxSize:N3e.number,disabled:N3e.bool,getFilesFromEvent:N3e.func,onFileDialogCancel:N3e.func,onDragEnter:N3e.func,onDragLeave:N3e.func,onDragOver:N3e.func,onDrop:N3e.func,onDropAccepted:N3e.func,onDropRejected:N3e.func}),isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});function Rzo(e){function t(){F&&setTimeout(function(){T.current&&!T.current.files.length&&(E({type:"closeDialog"}),"function"==typeof I)&&I()},300)}function n(e){k.current&&k.current.contains(e.target)||(e.preventDefault(),P.current=[])}function d(e){return g?null:e}function u(e){return S?null:d(e)}function p(e){return R?null:d(e)}var r,i,o,a,e=0<arguments.length&&void 0!==e?e:{},s=e.accept,l=e.disabled,g=void 0!==l&&l,l=e.getFilesFromEvent,c=void 0===l?fzo:l,l=e.maxSize,f=void 0===l?1/0:l,l=e.minSize,h=void 0===l?0:l,l=e.multiple,m=void 0===l||l,C=e.onDragEnter,x=e.onDragLeave,v=e.onDragOver,b=e.onDrop,y=e.onDropAccepted,A=e.onDropRejected,I=e.onFileDialogCancel,l=e.preventDropOnDocument,w=void 0===l||l,l=e.noClick,j=void 0!==l&&l,l=e.noKeyboard,S=void 0!==l&&l,l=e.noDrag,R=void 0!==l&&l,l=e.noDragEventsBubbling,O=void 0!==l&&l,k=Le.exports.useRef(null),T=Le.exports.useRef(null),e=Ezo(Le.exports.useReducer(Fzo,Dzo),2),l=e[0],E=e[1],e=l.isFocused,F=l.isFileDialogActive,N=l.draggedFiles,M=Le.exports.useCallback(function(){T.current&&(E({type:"openDialog"}),T.current.value=null,T.current.click())},[E]),V=(Le.exports.useEffect(function(){return window.addEventListener("focus",t,!1),function(){window.removeEventListener("focus",t,!1)}},[T,F,I]),Le.exports.useCallback(function(e){k.current&&k.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),M()))},[k,T])),B=Le.exports.useCallback(function(){E({type:"focus"})},[]),H=Le.exports.useCallback(function(){E({type:"blur"})},[]),U=Le.exports.useCallback(function(){j||(!function(e){var t,e=0<arguments.length&&void 0!==e?e:window.navigator.userAgent;return-1!==(t=e).indexOf("MSIE")||-1!==t.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?M():setTimeout(M,0))},[T,j]),P=Le.exports.useRef([]),z=(Le.exports.useEffect(function(){return w&&(document.addEventListener("dragover",Ozo,!1),document.addEventListener("drop",n,!1)),function(){w&&(document.removeEventListener("dragover",Ozo),document.removeEventListener("drop",n))}},[k,w]),Le.exports.useCallback(function(t){t.preventDefault(),t.persist(),D(t),-1===P.current.indexOf(t.target)&&(P.current=[].concat(Tzo(P.current),[t.target])),Szo(t)&&Promise.resolve(c(t)).then(function(e){jzo(t)&&!O||(E({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),C&&C(t))})},[c,C,O])),_=Le.exports.useCallback(function(e){if(e.preventDefault(),e.persist(),D(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return Szo(e)&&v&&v(e),!1},[v,O]),q=Le.exports.useCallback(function(t){t.preventDefault(),t.persist(),D(t);var e=P.current.filter(function(e){return e!==t.target&&k.current&&k.current.contains(e)});0<(P.current=e).length||(E({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Szo(t)&&x&&x(t))},[k,x,O]),L=Le.exports.useCallback(function(r){r.preventDefault(),r.persist(),D(r),P.current=[],Szo(r)&&Promise.resolve(c(r)).then(function(e){var t,n;jzo(r)&&!O||(t=[],n=[],e.forEach(function(e){(Azo(e,s)&&Izo(e,h,f)?t:n).push(e)}),!m&&1<t.length&&n.push.apply(n,Tzo(t.splice(0))),E({acceptedFiles:t,rejectedFiles:n,type:"setFiles"}),b&&b(t,n,r),0<n.length&&A&&A(n,r),0<t.length&&y&&y(t,r))}),E({type:"reset"})},[m,s,h,f,c,b,y,A,O]),D=function(e){O&&e.stopPropagation()},W=Le.exports.useMemo(function(){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,t=void 0===t?"ref":t,n=e.onKeyDown,r=e.onFocus,i=e.onBlur,o=e.onClick,a=e.onDragEnter,s=e.onDragOver,l=e.onDragLeave,c=e.onDrop,e=Lzo(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return Mzo(Pzo({onKeyDown:u(kzo(n,V)),onFocus:u(kzo(r,B)),onBlur:u(kzo(i,H)),onClick:d(kzo(o,U)),onDragEnter:p(kzo(a,z)),onDragOver:p(kzo(s,_)),onDragLeave:p(kzo(l,q)),onDrop:p(kzo(c,L))},t,k),g||S?{}:{tabIndex:0},{},e)}},[k,V,B,H,U,z,_,q,L,S,R,g]),Z=Le.exports.useCallback(function(e){e.stopPropagation()},[]),G=Le.exports.useMemo(function(){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,t=void 0===t?"ref":t,n=e.onChange,r=e.onClick,e=Lzo(e,["refKey","onChange","onClick"]);return Mzo({},Pzo({accept:s,multiple:m,type:"file",style:{display:"none"},onChange:d(kzo(n,L)),onClick:d(kzo(r,Z)),autoComplete:"off",tabIndex:-1},t,T),{},e)}},[T,s,m,L,g]),J=N.length,N=0<J&&(r=(N={files:N,accept:s,minSize:h,maxSize:f,multiple:m}).files,i=N.accept,o=N.minSize,a=N.maxSize,!(!N.multiple&&1<r.length))&&r.every(function(e){return Azo(e,i)&&Izo(e,o,a)});return Mzo({},l,{isDragAccept:N,isDragReject:0<J&&!N,isFocused:e&&!g,getRootProps:W,getInputProps:G,rootRef:k,inputRef:T,open:d(M)})}function Fzo(e,t){switch(t.type){case"focus":return Mzo({},e,{isFocused:!0});case"blur":return Mzo({},e,{isFocused:!1});case"openDialog":return Mzo({},e,{isFileDialogActive:!0});case"closeDialog":return Mzo({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive;return Mzo({},e,{draggedFiles:t.draggedFiles,isDragActive:n});case"setFiles":return Mzo({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return Mzo({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return e}}let Vzo=({accept:e,multiple:t,onDropAccepted:r})=>{let n=Ie();var i=Ae(AG);let o=XW(i);return Rzo({accept:e,multiple:t,onDropAccepted:n=>dNo(void 0,void 0,void 0,function*(){var e=n[0],t={id:zO(),name:e.name,previewUrl:URL.createObjectURL(e),size:e.size,type:e.type};yield null==r?void 0:r(e,t)}),onDropRejected:()=>{var e,t="Invalid file type. Please upload a PDF or text file.";n(F({content:"development"!=="production"&&null!=(e=o({id:"os-admin-center-registration.snackbar.invalid-file-type",defaultMessage:[{type:0,value:"Invalid file type. Please upload a PDF or text file."}]}))?e:t,severity:R.Error}))}})},Bzo=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/,Hzo=e=>Bzo.test(e)||"Please enter a valid URL",Uzo=()=>{let r=Ie(),i=Ae(YG);var e=Ae(AG);let o=XW(e),{setValue:a,watch:t}=LCe(),{control:n,formState:{errors:s},setValue:l}=qxe({defaultValues:{privacyPolicyUrl:""},mode:"onChange"}),c=t("files");e=c.find(e=>e.type===UEo.terms_of_service&&"active"===e.status);let{getInputProps:d,open:u}=Vzo({accept:["application/pdf","text/plain"],multiple:!1,onDropAccepted:(t,n)=>dNo(void 0,void 0,void 0,function*(){try{var e=yield function(t,n){return dNo(this,void 0,void 0,function*(){var e="getSignedWritableUrl";return(yield H(Object.assign({query:"query getSignedWritableUrl($name: String!) {\n getSignedWritableUrl(key: $name) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{name:n},operationName:e},t)))[e]})}(i,n.name);if(!(yield fetch(e.url,{method:"PUT",body:t,headers:{"Content-Type":t.type}})).ok)throw new Error("Failed to upload file");a("files",[{name:t.name,url:e.unsignedUrl,type:UEo.terms_of_service},...c])}catch(e){r(F({content:"development"==="production"?"File upload failed. Please try again.":o({id:"os-admin-center-registration.snackbar.upload-failed",defaultMessage:[{type:0,value:"File upload failed. Please try again."}]}),severity:R.Error}))}})});return Le.exports.useEffect(()=>{var e=c.find(e=>e.type===UEo.privacy_policy&&e.status===zEo.active);e&&l("privacyPolicyUrl",e.url)},[c,l]),nt.exports.jsxs(_,Object.assign({sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsx(_,Object.assign({gap:2},{children:nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.description()}))})),nt.exports.jsx(_,Object.assign({gap:2,direction:"row",justifyContent:"space-between",alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"500px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.legalInfo.termsOfServiceTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.termsOfServiceDescription()})),nt.exports.jsxs(be,Object.assign({sx:{pt:2}},{children:[nt.exports.jsx(ge,Object.assign({"data-testid":"os-admin-center-registration.form.legal-info.terms-of-service-upload",variant:"outlined",size:"large",disabled:!!e,onClick:()=>u()},{children:iNo.form.legalInfo.termsOfServiceUploadButton()})),nt.exports.jsx("input",Object.assign({},d(),{style:{display:"none"}}))]}))]}))})),nt.exports.jsx(_,Object.assign({gap:.5,divider:nt.exports.jsx(se,{})},{children:c&&0<c.length&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(_,Object.assign({gap:6,direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"& > p":{p:2,fontSize:"14px",fontWeight:"bold"}}},{children:nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.fileName()}))})),c.map((e,t)=>{var n;return e.type!==UEo.terms_of_service?null:(n=(null==e?void 0:e.status)===zEo.active||!e.status,nt.exports.jsxs(_,Object.assign({gap:1,direction:"row",alignItems:"center",justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({gap:6,direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"& > p":{p:2,fontSize:"14px","& > span":{ml:1,fontSize:"14px"}}}},{children:[nt.exports.jsxs(pe,Object.assign({variant:"body1",width:"300px",noWrap:!0},{children:[""+((null==e?void 0:e.name)||"--"),nt.exports.jsx(pe,Object.assign({variant:"caption",component:"span"},{children:n?"(latest)":""}))]})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:(null==e?void 0:e.status)||"pending"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({"data-testid":"os-admin-center-registration.form.legal-info.terms-of-service-remove",disabled:e.status===zEo.inactive,onClick:()=>{var n,e;n=t,e=c.map((e,t)=>t===n&&e.status?Object.assign(Object.assign({},e),{status:zEo.inactive}):e).filter(Boolean),a("files",e)},size:"small"},{children:nt.exports.jsx(T2e,{})}))})]}),e.url))})]})})),nt.exports.jsx(_,Object.assign({gap:2,direction:"row",justifyContent:"space-between",alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"500px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.legalInfo.privacyPolicyTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.privacyPolicyDescription()}))]}))})),nt.exports.jsx(JCe,{name:"privacyPolicyUrl",control:n,rules:{validate:e=>!0===Hzo(e)||"Please enter a valid URL"},render:({field:n})=>{var e;return nt.exports.jsx(gw,Object.assign({},n,{fullWidth:!0,label:"Privacy Policy URL",placeholder:"https://example.com/privacy-policy",error:!!s.privacyPolicyUrl,helperText:null==(e=s.privacyPolicyUrl)?void 0:e.message,onChange:e=>{var t;n.onChange(e),e=e.target.value,t=c.filter(e=>e.type!==UEo.privacy_policy),e&&t.push({url:e,name:"Privacy Policy",type:UEo.privacy_policy}),a("files",t)},"data-testid":aNo+".form.legal-info.privacy-policy-url"}))}})]}))};function zzo(c){return function(e,t,n,r){var i=Wzo(e),o=Zzo(i),a=Gzo(i);if(qzo(t),0===a&&n<2)throw new Jzo(Kzo);var s=c?a-1:0,l=c?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw new Jzo(Kzo)}for(;c?0<=s:s<a;s+=l)s in o&&(r=t(r,o[s],s,i));return r}}var _zo,qzo=aOo,Wzo=dOo,Zzo=O0e,Gzo=yOo,Jzo=TypeError,Kzo="Reduce of empty array with no initial value",U0e={left:zzo(!1),right:zzo(!0)},Yzo=QSo,S3e=SOo,Qzo=U0e.left;S3e({target:"Array",proto:!0,forced:!Npe&&79<ken&&ken<83||!function(e,t){var n=[][e];return!!n&&Yzo(function(){n.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return Qzo(this,e,t,1<t?arguments[1]:void 0)}});let Xzo=()=>{let n=Ie(),r=Ae(EY),i=Ae(UIt);return({onSave:e,initialData:t})=>{n(yse({panelId:V.USER_ACCESS_PANEL,microFrontend:{name:V.USER_ACCESS_PANEL,config:{orgId:i,initialData:t,onSave:e}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"medium",parentPanelId:V.ADMIN_CENTER_CUSTOM_REGISTRATION_PANEL,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))}},$zo={p:.5,paddingBottom:"3px",width:"fit-content",borderRadius:"30px",height:"34px",bgcolor:"rgba(0, 0, 0, 0.1)",display:"flex",gap:.5,["& ."+bw.grouped]:{border:0,textTransform:"capitalize",borderRadius:"30px",fontSize:"12px","&:not(:last-of-type)":{borderTopRightRadius:"30px",borderBottomRightRadius:"30px"},"&:not(:first-of-type)":{borderTopLeftRadius:"30px",borderBottomLeftRadius:"30px"},"&.Mui-selected":{color:"black",bgcolor:"#FFF","&:hover":{bgcolor:"#FFF"}},"&:hover":{bgcolor:"rgba(255, 255, 255, 0.5)"}}},e_o=({orgId:n})=>{let r=Ie(),e=Xzo();var t=Ae(rPo.appRoles.selectItems),i=Ae(rPo.authGroups.selectItems);let[o,a]=Le.exports.useState(null),{register:s,control:l,watch:c,setError:d,clearErrors:u,trigger:p,setValue:g}=LCe();var f=c("openRegistrationStatus");let h=c("domainSettings",[]),m=()=>{h&&0!==h.length?h.some(e=>0===e.applicationRoleIds.length)?(a("At least one product role is required for each domain"),d("domainSettings",{message:"At least one product role is required for each domain"})):(a(null),u("domainSettings"),p("domainSettings")):(a("At least one domain setting is required"),d("domainSettings",{message:"At least one domain setting is required"}))};return Le.exports.useEffect(()=>{m()},[h,f]),Le.exports.useEffect(()=>{var e,t;0<h.length&&(e=h.map(e=>e.authGroupId).filter(e=>!we.exports.isEmpty(e)),t=h.reduce((e,t)=>(e.push(...t.applicationRoleIds),e),[]),e&&0<e.length&&r(nPo.authGroups.readStart({orgId:n,authGroupIds:e})),t)&&0<t.length&&r(nPo.appRoles.readStart({orgId:n,roleIds:t}))},[r,h]),Le.exports.useEffect(()=>{s("domainSettings",{required:!0,validate:e=>0<e.length&&e.every(e=>0<e.applicationRoleIds.length)})},[s]),nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".user-access-step",sx:{height:"100%"},p:4,gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.description()})),nt.exports.jsx(JCe,{name:"openRegistrationStatus",render:({field:n})=>nt.exports.jsxs(Iw,Object.assign({},n,{exclusive:!0,onChange:(e,t)=>{t&&(n.onChange(t),g("domainSettings",[]))},value:n.value,sx:$zo},{children:[nt.exports.jsx(xw,Object.assign({value:"open","data-testid":aNo+".open-registration-toggle-open"},{children:iNo.form.userAccess.openRegistration()})),nt.exports.jsx(xw,Object.assign({value:"restricted","data-testid":aNo+".open-registration-toggle-restricted"},{children:iNo.form.userAccess.allowlistOnly()}))]}))}),"open"===f&&nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.openRegistrationDescription()})),nt.exports.jsx("div",{children:nt.exports.jsx(ge,Object.assign({variant:"outlined",color:"primary",size:"large","data-testid":aNo+".choose-user-access-button",onClick:()=>{e({initialData:null!=h&&h[0]?{authGroupId:h[0].authGroupId,roleIds:h[0].applicationRoleIds}:void 0,onSave:(e,t)=>{h.length<=0?g("domainSettings",[{domainName:"",authGroupId:""===e.authGroupId?null:e.authGroupId,applicationRoleIds:Object.values(e.roles)}]):g("domainSettings[0]",{authGroupId:""===e.authGroupId?null:e.authGroupId,applicationRoleIds:Object.values(e.roles)}),m(),t()}})}},{children:iNo.form.userAccess.chooseUserAccess()}))}),nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.openRegistrationGroupDescription()})),nt.exports.jsx(n_o,{authGroups:i,apps:t,domainSettings:h}),o&&nt.exports.jsx(pe,Object.assign({color:"error","data-testid":aNo+".error-message"},{children:o}))]}))]})),"restricted"===f&&nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.restrictedRegistrationDescription()})),nt.exports.jsx(t_o,{authGroups:i,apps:t,domainSettings:h,validateDomainSettings:m}),o&&nt.exports.jsx(pe,Object.assign({color:"error","data-testid":aNo+".error-message"},{children:o}))]})),nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:1,maxWidth:"80%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.userAccess.adminApprovalTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.adminApprovalDescription()}))]})),nt.exports.jsx(JCe,{name:"adminApprovalRequired","data-test":aNo+".form-input","data-testid":aNo+".form-input-adminApprovalRequired",control:l,defaultValue:!1,render:({field:t})=>nt.exports.jsx(SA,{checked:t.value,onChange:e=>t.onChange(e.target.checked),inputProps:{"aria-label":"Admin Approval Required"},"data-testid":aNo+".admin-approval-switch"})})]}))]}))},t_o=({apps:r,domainSettings:i,validateDomainSettings:o})=>{let a=LCe().setValue,{control:e,handleSubmit:t,formState:{errors:n,isValid:s},setValue:l,clearErrors:c}=qxe({mode:"onChange",defaultValues:{domain:""}}),d=Xzo(),u=(r,e)=>{d({initialData:e,onSave:(e,t)=>{var n=Object.values(e.roles);a(`domainSettings[${r}].authGroupId`,""===e.authGroupId?null:e.authGroupId),a(`domainSettings[${r}].applicationRoleIds`,n),null!=o&&o(),t()}})},p=e=>{e={domainName:null==(e=e.domain)?void 0:e.toLowerCase(),authGroupId:null,applicationRoleIds:[]};a("domainSettings",[...i,e]),l("domain",""),c("domain")};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("form",Object.assign({onSubmit:t(p)},{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"baseline"},{children:[nt.exports.jsx(JCe,{name:"domain",control:e,rules:{validate:t=>""!==t&&(!i.some(e=>e.domainName===t.toLowerCase())||"Domain already exists"),pattern:{value:/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/,message:"Invalid domain format"}},render:({field:e})=>nt.exports.jsx(gw,Object.assign({},e,{fullWidth:!0,"data-testid":aNo+".domain-input",placeholder:'Add a domain name (e.g. "example.com")',error:!!n.domain,helperText:null==(e=n.domain)?void 0:e.message,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),t(p)())}}))}),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({type:"submit",disabled:!s,"data-testid":aNo+".add-domain-button"},{children:nt.exports.jsx(Vue,{})}))})]}))})),0<i.length&&nt.exports.jsxs(_,Object.assign({gap:.5},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Domain"})),i.map((e,n)=>{var t=0<e.applicationRoleIds.length;return nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:1,p:2,alignItems:"center",bgcolor:"#F5F5F5",justifyContent:"space-between",width:"100%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",noWrap:!0,width:"170px"},{children:e.domainName})),t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(X8,Object.assign({max:4,sx:{"& .MuiAvatar-root":{width:"20px",height:"20px",fontSize:"12px",border:"1px solid #F5F5F5",marginLeft:"unset",color:"#5C6269"}}},{children:e.applicationRoleIds.map((t,e)=>{var n=r.find(e=>e.roles.some(e=>e.id===t));return nt.exports.jsx(W8,Object.assign({src:null==n?void 0:n.icon,sx:{bgcolor:"primary.main",marginLeft:"-8px !important",color:"white !important"}},{children:null!=(n=null==n?void 0:n.label[0])?n:"--"}),e)})})),nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",size:"small",onClick:()=>u(n,{authGroupId:e.authGroupId,roleIds:e.applicationRoleIds}),"data-testid":aNo+".edit-user-access-button-"+n},{children:"Edit User Access"}))]}):nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",size:"small",onClick:()=>u(n),"data-testid":aNo+".add-user-access-button-"+n},{children:"Add User Access"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{a("domainSettings",i.filter((e,t)=>t!==n))},"data-testid":aNo+".delete-domain-button-"+n},{children:nt.exports.jsx(T2e,{})}))})]}),n)})]}))]})},n_o=({authGroups:e,apps:o,domainSettings:a})=>{let t,s=LCe();var n=null!=(t=a[0])?t:void 0;let r=null==n?void 0:n.authGroupId;e=e.find(e=>e.id===r);return nt.exports.jsxs(nt.exports.Fragment,{children:[e&&nt.exports.jsxs(_,Object.assign({gap:.5},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Group"})),nt.exports.jsx(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:4,p:2,alignItems:"center",bgcolor:"#F5F5F5",width:"100%"},{children:[nt.exports.jsx(bpe,{}),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:e.name}))]}))}))]})),nt.exports.jsx(_,Object.assign({gap:.5},{children:void 0!==n&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center",justifyContent:"space-between",maxWidth:"610px"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Product"})),nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px",pr:28},{children:"Role"}))]})),n.applicationRoleIds.map((t,n)=>{var e,r=o.find(e=>e.roles.some(e=>e.id===t)),i=null==r?void 0:r.roles.find(e=>e.id===t);return nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",p:2,alignItems:"center",bgcolor:"#F5F5F5",width:"100%",justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsx(W8,Object.assign({src:null==r?void 0:r.icon,sx:{bgcolor:"primary.main",width:"24px",height:"24px",fontSize:"12px"}},{children:null!=(e=null==r?void 0:r.label[0])?e:"--"})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:null!=(e=null==r?void 0:r.label)?e:"--"}))]})),nt.exports.jsx(pe,Object.assign({variant:"body1",pr:7},{children:null!=(r=null==i?void 0:i.name)?r:"--"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({"data-testid":aNo+".delete-product-button",onClick:()=>{s.setValue("domainSettings",a.map(e=>Object.assign(Object.assign({},e),{applicationRoleIds:e.applicationRoleIds.filter((e,t)=>t!==n)})))}},{children:nt.exports.jsx(T2e,{})}))})]}))})]})}))]})},r_o=()=>{let{setValue:t,watch:e}=LCe();var n=e("uiSettings.customRegistrationFields");return nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".form-appearance",sx:{height:"100%"},p:4,gap:3},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:iNo.form.formBuilder.description()})),nt.exports.jsx(e8,{label:"Optional",variant:"outlined",color:"info",size:"small"})]})),nt.exports.jsx(pqe,{initialSchema:n,EmptyState:{description:"Drag in Building Blocks from the left to craft a new Registration Template"},onSchemaChange:e=>{t("uiSettings.customRegistrationFields",e)}})]}))},i_o=({fields:e})=>nt.exports.jsxs(_,Object.assign({sx:{p:4,height:"100%"},justifyContent:"space-between"},{children:[nt.exports.jsxs(_,{children:[nt.exports.jsx(ye,{variant:"rectangular",width:"100%",height:86}),nt.exports.jsx(be,Object.assign({sx:{my:8}},{children:e.map((e,t)=>nt.exports.jsx(be,Object.assign({sx:{mb:4}},{children:nt.exports.jsx(ye,{variant:"rectangular",width:e.width||"100%",height:"multiline"===e.type?100:56,sx:{mt:1}})}),t))}))]}),nt.exports.jsxs(be,Object.assign({sx:{mt:4,display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx(be,{children:nt.exports.jsx(ye,{variant:"rectangular",width:100,height:36,sx:{display:"inline-block"}})}),nt.exports.jsx(ye,{variant:"rectangular",width:100,height:36})]}))]})),{header:o_o,container:a_o}=((s0e=_zo=_zo||{})[s0e.BASIC_INFO=1]="BASIC_INFO",s0e[s0e.LEGAL=2]="LEGAL",s0e[s0e.USER_ACCESS=3]="USER_ACCESS",s0e[s0e.FORM_BUILDER=4]="FORM_BUILDER",s0e[s0e.APPERANCE=5]="APPERANCE",C2e),s_o=({id:e,orgId:t})=>{let n,r=Ie();var i=Ae(EY);let o=Ae(rPo.registrationWizard.selectActiveStep),a=Ae(rPo.registrationWizard.selectWizard),s=Ae(rPo.registrationWizard.selectItem);var l=Ae(rPo.registrationWizard.selectReadStatus);let c=Ae(rPo.registrationWizard.selectCreateStatus),d=Ae(rPo.registrationWizard.selectUpdateStatus);var u=Ae(UIt),p=Ae(CG),t=""+(null!=(n=null!=t?t:u)?n:p);let g=qxe({mode:"onChange",defaultValues:a}),{trigger:f,getValues:h,watch:m,formState:{isValid:C}}=g,x=m(),v=!!e;var u="pending"===l,p="pending"===c||"pending"===d,l=[{step:_zo.BASIC_INFO,label:"Basic Info",component:nt.exports.jsx(pDo,{isEditMode:v})},{step:_zo.LEGAL,label:"Legal",component:nt.exports.jsx(Uzo,{})},{step:_zo.USER_ACCESS,label:"User Access",component:nt.exports.jsx(e_o,{orgId:t})},{step:_zo.FORM_BUILDER,label:"Form Builder",component:nt.exports.jsx(r_o,{})},{step:_zo.APPERANCE,label:"Apperance",component:nt.exports.jsx(gDo,{})}],t=Le.exports.useMemo(()=>v?C&&!TL(s,x):C,[C,v,s,x]),b=Le.exports.useMemo(()=>{switch(o){case _zo.BASIC_INFO:return[{type:"short",width:"100%"}];case _zo.LEGAL:return[{type:"long",width:"100%"},{type:"multiline",width:"100%"}];default:return[{type:"short",width:"100%"},{type:"short",width:"100%"}]}},[o]),y=Le.exports.useCallback(t=>dNo(void 0,void 0,void 0,function*(){var e;0!==t&&(yield f())&&(e=h(),r(nPo.registrationWizard.setWizard(CNr(a,e))),r(nPo.registrationWizard.setActiveStep(t)))}),[r,h,f,a]);let A=Le.exports.useCallback(()=>{r(nPo.registrationWizard.updateResetStatus()),r(wse(lNo))},[r]);var I=Le.exports.useCallback(()=>{var e=h();console.log("formData",e),v?r(nPo.registrationWizard.updateStart(e)):r(nPo.registrationWizard.createStart(e))},[r,h,v]);return Le.exports.useEffect(()=>{s&&0<Object.keys(s).length&&g.reset(s)},[s]),Le.exports.useEffect(()=>{"success"!==c&&"success"!==d||A()},[c,d,A]),Le.exports.useEffect(()=>{v&&r(nPo.registrationWizard.readStart(e))},[r,e,v]),nt.exports.jsxs(a_o,Object.assign({testId:sNo+"-panel-container",panelId:lNo,isFullScreen:i},{children:[nt.exports.jsx(o_o,{testId:sNo+"-panel-header",title:v?iNo.panel.editTitle():iNo.panel.createTitle(),onPanelClose:A}),u?nt.exports.jsx(i_o,{fields:b}):nt.exports.jsx(DCe,Object.assign({},g,{children:nt.exports.jsx(V6e,{entityId:e,enableTabs:v,sessionKey:"customLoginRegistration",idPrefix:sNo+"-wizard",panelName:lNo,steps:l.map(e=>e.label),stepContent:l.map(e=>e.component),onResumeSession:e=>{console.log("session",e)},BodySx:v?{p:2,bgcolor:"#F5F5F5","& #body-container":{bgcolor:"#FFF",borderRadius:"6px"}}:{},FooterSx:v?{bgcolor:"#F5F5F5"}:{},customFinalStepButtons:[nt.exports.jsx(ije,Object.assign({"data-test":`${sNo}-${v?"save":"submit"}-button`,variant:"contained",color:"primary",disabled:!t,onClick:I,loading:p},{children:nt.exports.jsx(Ce,{id:"{testId}.{idPrefix}-app-button",defaultMessage:"{verb}",description:"{verb} app button text",values:{testId:sNo,idPrefix:v?"save":"submit",verb:v?"Save":"Submit"}})}))],onActiveStepChange:y,nextButtonDisabled:!t})}))]}))};var l_o,c_o,d_o=Object.freeze({__proto__:null,CustomRegistrationPanel:e=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[aPo()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(s_o,{id:e.id,orgId:e.orgId})})}))})}),CustomRegistrationTab:qPo});(ttn=l_o=l_o||{}).users="users",ttn.packages="packages",ttn.permissionSets="permissionSets",ttn.accessControl="accessControl",ttn.groups="groups",ttn.apiTokens="apiTokens",ttn.iam="iam",ttn.systemInfo="systemInfo",ttn.approvals="approvals",ttn.orgSettings="orgSettings",ttn.retentionPolicy="retentionPolicy",ttn.customLogin="customLogin",ttn.customIntegration="customIntegration",ttn.customRegistration="customRegistration",ttn.appSettings="appSettings",ttn.auditLogs="auditLogs",(l4e=c_o=c_o||{}).NONE="none",l4e.PERMISSIONS="permissions",l4e.SECURITY="security";let u_o="adminCenterBrowse",p_o="browseDetail";var E2e={enableRBACFeature:"disabled",engineApprovalWhiteListed:"disabled",retentionCleanup:"disabled",retentionDays:30,defaultApplication:"",automaticPackageCreation:"disabled",useEngineGrant:"disabled",useAppGrant:"disabled",remainingBudget:500,isLimitEnforced:!(l4e.SETTINGS="settings"),seatLimit:"",adminSeatLimit:""},fpe={isFullScreen:!1,isNavExpanded:!0,activeView:l_o.users,hiddenViews:[l_o.apiTokens],navGroupOpenState:{},status:"idle",olpFeature:"disabled",orgSettings:{hasLocalChanges:!1,loadingStatus:"idle",saveStatus:"idle",editMode:{orgName:!1,orgLogoUrl:!1},initialOrgName:"",initialOrgLogoUrl:"",orgName:"",orgLogoUrl:"",logoUploadState:void 0,initialFeatures:E2e,features:E2e},organization:{id:0,guid:"",name:"",status:"active",isUsersCurrentOrg:!1},applications:[],applicationsStatus:"idle",deactivateOrganizationStatus:"idle"},g_o=LT({name:u_o+"/"+p_o,initialState:fpe,reducers:{setHiddenView(e,{payload:t}){let{view:n,isHidden:r}=t;r?-1===e.hiddenViews.indexOf(n)&&e.hiddenViews.push(n):e.hiddenViews=e.hiddenViews.filter(e=>e!==n)},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},toggleNavGroupOpened(e,t){t=t.payload;e.navGroupOpenState[t]=!e.navGroupOpenState[t]},toggleNavExpanded(e){e.isNavExpanded=!e.isNavExpanded},setActiveView(e,t){e.activeView=t.payload},fetchOlpAvailabilityStart(e){e.status="loading"},fetchOlpAvailabilitySuccess(e,t){e.status="success",e.olpFeature=t.payload},fetchOlpAvailabilityFailure(e){e.status="failure"},updateOrgSettingsStart(e){e.orgSettings.saveStatus="pending"},updateOrgSettingsSuccess(e){e.orgSettings.saveStatus="idle",e.orgSettings.hasLocalChanges=!1,e.orgSettings.editMode.orgName=!1,e.orgSettings.editMode.orgLogoUrl=!1,e.orgSettings.initialOrgName=e.orgSettings.orgName,e.orgSettings.initialOrgLogoUrl=e.orgSettings.orgLogoUrl,e.orgSettings.initialFeatures=e.orgSettings.features},updateOrgSettingsFailure(e){e.orgSettings.saveStatus="idle"},setOrgSettingsEditMode(e,t){var{key:t,value:n}=t.payload;e.orgSettings.editMode[t]=n},undoOrgSettingsChanges(e){e.orgSettings.orgName=e.orgSettings.initialOrgName,e.orgSettings.orgLogoUrl=e.orgSettings.initialOrgLogoUrl,e.orgSettings.features=e.orgSettings.initialFeatures,e.orgSettings.hasLocalChanges=!1},fetchOrgSettingsStart(e){e.orgSettings.loadingStatus="pending"},fetchOrgSettingsSuccess(e,t){var{organizationName:t,organizationImageUrl:n,organizationStatus:r,jsondata:i}=t.payload,r=(e.orgSettings.orgName=t,e.orgSettings.orgLogoUrl=n,e.orgSettings.initialOrgName=t,e.orgSettings.initialOrgLogoUrl=n,e.organization.status=r,Object.assign(Object.assign(Object.assign({},e.orgSettings.features),i.features||{}),{engineApprovalWhiteListed:(null==i?void 0:i.engineApprovalWhiteListed)||(null==(t=null==i?void 0:i.features)?void 0:t.engineApprovalWhiteListed)||"disabled",useAppGrant:i.features.automaticPackageCreation,useEngineGrant:i.features.automaticPackageCreation,retentionDays:null!=(n=i.features)&&n.retentionDays&&0===(null==(r=i.features)?void 0:r.retentionDays)?30:i.features.retentionDays,isLimitEnforced:null!=(t=null==i?void 0:i.isLimitEnforced)&&t,remainingBudget:null!=(n=null==i?void 0:i.remainingBudget)?n:500}));null!=i&&i.seatLimit&&(r.seatLimit=i.seatLimit),null!=i&&i.adminSeatLimit&&(r.adminSeatLimit=i.adminSeatLimit),e.orgSettings.initialFeatures=r,e.orgSettings.features=r,e.orgSettings.loadingStatus="success"},fetchOrgSettingsFailure(e){e.orgSettings.loadingStatus="failure"},setOrgSettingsFeature(e,t){var n,{keys:t,value:r}=t.payload;let i=e.orgSettings.features;for(n of t)i=YNn(i,n,r);e.orgSettings.features=i;t=!TL(e.orgSettings.initialFeatures,e.orgSettings.features);e.orgSettings.hasLocalChanges=t},setSettingsChanged(e,t){e.orgSettings.hasLocalChanges=t.payload},setSettingsChangeName(e,t){e.orgSettings.orgName=t.payload},setSettingsChangeLogoUrl(e,t){var n;e.orgSettings.orgLogoUrl=(null==(n=null==t?void 0:t.payload)?void 0:n.getUrl)||"",e.orgSettings.logoUploadState=t.payload},setSettingsChangeInitialValues(e,t){var{name:t,logo:n}=t.payload;e.orgSettings.initialOrgName=t,e.orgSettings.initialOrgLogoUrl=n},setAdminCenterOrganization(e,t){e.organization=t.payload},deactivateOrganizationInit(e){e.deactivateOrganizationStatus="pending"},deactivateOrganizationSuccess(e){e.deactivateOrganizationStatus="success"},deactivateOrganizationFailure(e){e.deactivateOrganizationStatus="failure"},fetchApplicationsInit:e=>{e.applicationsStatus="pending"},fetchApplicationsSuccess:(e,t)=>{e.applications=t.payload,e.applicationsStatus="success"},fetchApplicationsFailure:e=>{e.applicationsStatus="failure"}}});let f_o=g_o.actions,h_o=g_o.reducer;function m_o(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function C_o(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function x_o(n,r){return C_o(this,void 0,void 0,function*(){var e="checkOlpAvailability",t="organization";return(yield H(Object.assign({query:`
4592
+ `;return(yield H(Object.assign(Object.assign({},n),{query:e})))[t].records}),getAdditionalSelectors:()=>({isSuperAdmin:mG})}}),nPo={registration:qMo.actions,registrationWizard:GMo.actions,appRoles:YMo.actions,authGroups:$Mo.actions},rPo={registration:WMo,registrationWizard:JMo,appRoles:QMo,authGroups:ePo},iPo=Ow({registration:qMo.reducer,registrationWizard:GMo.reducer,appRoles:YMo.reducer,authGroups:$Mo.reducer});function*oPo(){yield Uu([ZMo.watchRead(),ZMo.watchUpdate(),ZMo.watchDelete(),KMo.watchRead(),KMo.watchCreate(),KMo.watchUpdate(),XMo.watchRead(),tPo.watchRead()])}function aPo(){return{id:oNo,reducerMap:{[oNo]:iPo},sagas:[oPo],initialActions:[]}}let sPo=()=>nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(W,Object.assign({"data-testid":"custom-registration-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-name",defaultMessage:"Name",description:"Shared Custom Login Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:4},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-slug",defaultMessage:"Slug",description:"Shared Custom Login Table header column slug"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-colors",defaultMessage:"Date Created",description:"Date Created"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"custom-registration-table-header-column-logo",defaultMessage:"Modified Date",description:"Modified Date"})}))})),nt.exports.jsx(W,{item:!0,xs:1})]})),nt.exports.jsx(se,{})]});function lPo(){var e=dPo(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function cPo(i){return function(e,t,n){var e=jPo(SPo(e)),t=wPo(t),r=e.length,n=void 0===n?" ":jPo(n);return t<=r||""===n?e:((r=OPo(n,TPo((t=t-r)/n.length))).length>t&&(r=kPo(r,0,t)),i?e+r:r+e)}}var dPo=hOo,uPo=Fpe,pPo=qge,gPo=Tpe,fPo=lPo,hPo=RegExp.prototype,P0e=Ype.PROPER,S0e=COo,mPo=hOo,CPo=MEo,izi=QSo,xPo=function(e){var t=e.flags;return void 0!==t||"flags"in hPo||pPo(e,"flags")||!gPo(hPo,e)?t:uPo(fPo,e)},i4e="toString",G3e=RegExp.prototype,vPo=G3e[i4e],K3e=izi(function(){return"/a/b"!==vPo.call({source:"a",flags:"b"})}),bge=P0e&&vPo.name!==i4e,bPo=((K3e||bge)&&S0e(G3e,i4e,function(){var e=mPo(this);return"/"+CPo(e.source)+"/"+CPo(xPo(e))},{unsafe:!0}),xOo),yPo=MEo,APo=tOo,IPo=RangeError,T3e=vpe,wPo=bOo,jPo=MEo,SPo=tOo,OPo=T3e(function(e){var t=yPo(APo(this)),n="",r=bPo(e);if(r<0||r===1/0)throw new IPo("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),kPo=T3e("".slice),TPo=Math.ceil,Yee={start:cPo(!1),end:cPo(!0)},NMr=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(I3e),sP=SOo,EPo=Yee.start;sP({target:"String",proto:!0,forced:NMr},{padStart:function(e){return EPo(this,e,1<arguments.length?arguments[1]:void 0)}});let NPo=e=>{var[e,t]=e.split(":").map(Number),n=12<=e?"PM":"AM";return`${e%12||12}:${t.toString().padStart(2,"0")} `+n},MPo=e=>(e=e&&(isNaN(Number(e))?new Date(e):new Date(Number(e))))?{date:(e.getMonth()+1).toString().padStart(2,"0")+`/${e.getDate().toString().padStart(2,"0")}/`+e.getFullYear(),time:NPo(e.toTimeString().split(" ")[0])}:"N/A",PPo=60,LPo=({index:e,testId:t,onEdit:n,onView:r,onDelete:i,item:o})=>{var a=PPo-1+"px",s="/"+o.slug,l=Le.exports.useCallback(()=>null==r?void 0:r(),[r]),c=Le.exports.useCallback(()=>null==n?void 0:n(),[n]),d=Le.exports.useCallback(()=>null==i?void 0:i(),[i]);return nt.exports.jsx(be,Object.assign({sx:{width:"100%",minHeight:a,cursor:"pointer",borderBottom:"1px solid #D5DFE9",display:"grid","&:hover":{backgroundColor:"#F5F7FA"}},"data-testid":t+"-table-row-"+e,onClick:c},{children:nt.exports.jsxs(W,Object.assign({"data-testid":t+"-registration-item",sx:{width:"100%",height:"100%",paddingLeft:"15px"},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({"data-testid":"registration-table-row-name"},{children:o.name}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:4,sx:{paddingRight:"10px"}},{children:nt.exports.jsx(J_e,{id:"registration-slug",value:s,sx:{fontWeight:"bold",padding:"2px 5px",fontSize:"small",wordBreak:"break-all"}})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(DPo,{date:o.dateCreated,testId:"registration-table-row-created"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:2},{children:nt.exports.jsx(DPo,{date:o.dateModified,testId:"registration-table-row-modified"})})),nt.exports.jsx(W,Object.assign({item:!0,xs:1,onClick:e=>e.stopPropagation()},{children:nt.exports.jsx(RPo,{onEdit:c,onView:l,onDelete:d,testId:t})}))]}))}))},DPo=({date:e,testId:t})=>{e=MPo(e);return"N/A"!==e?nt.exports.jsxs(_,{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontWeight:400,"data-testid":t+"-date"},{children:e.date})),nt.exports.jsx(pe,Object.assign({variant:"caption",fontSize:"12px","data-testid":t+"-time"},{children:e.time}))]}):nt.exports.jsx(pe,Object.assign({"data-testid":t+"-date"},{children:e}))},RPo=({onEdit:e,onView:t,onDelete:n,testId:r})=>{var i=Le.exports.useMemo(()=>[{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Registration table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-preview",defaultMessage:"View Page",description:"Admin Center Registration table row context menu view page"}),onClick:t,testId:"view",icon:nt.exports.jsx(Mue,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"registration-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Registration table row context menu delete"}),onClick:n,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}],[e,t,n]);return nt.exports.jsx(_ze,{menuItems:i,testId:r+"-registration-menu"})},FPo=x2e.jsx.TableInfiniteScroll,VPo=60,BPo=()=>{let n=Ie(),r=cNo();var e=Ae(rPo.registration.selectItems),t=Ae(rPo.registration.selectReadStatus),i="pending"===t,t="failure"===t;return nt.exports.jsx(be,Object.assign({height:"calc(100vh - 240px)"},{children:nt.exports.jsx(FPo,{offset:0,testId:aNo,hasMore:!1,fetchMore:()=>{n(nPo.registration.readStart(null))},fetchOnMount:0===e.length,items:e,itemHeight:VPo,isLoading:i,error:t,TableHeaderComponent:nt.exports.jsx(sPo,{}),TableRowComponent:({item:t,index:e})=>nt.exports.jsx(LPo,{item:t,index:e,testId:aNo,onEdit:()=>r(t.id),onDelete:()=>{var e;e=t,n(nPo.registration.deleteStart(e))}}),MessageErrorState:iNo.emptyState.error.title(),DescriptionErrorState:iNo.emptyState.error.description(),TableEmptyStateComponent:nt.exports.jsx(Yze,{title:iNo.emptyState.title(),description:iNo.emptyState.description(),buttonLabel:iNo.emptyState.createButton(),onClick:()=>r()})})}))},{CenterTabHeading:HPo,CenterTabContainer:UPo,CenterTabContent:zPo}=w2e,_Po=()=>{let e=cNo();return nt.exports.jsxs(UPo,Object.assign({testId:aNo},{children:[nt.exports.jsx(HPo,{title:iNo.title(),subtitle:iNo.subTitle(),testId:aNo,HeadingActions:nt.exports.jsx(ge,Object.assign({onClick:()=>e(),variant:"contained",startIcon:nt.exports.jsx(Ode,{}),"data-testid":aNo+".create-new"},{children:"New"}))}),nt.exports.jsx(zPo,Object.assign({testId:aNo},{children:nt.exports.jsx(BPo,{})}))]}))},qPo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[aPo()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(_Po,{})})}))})}),WPo=QSo,ZPo=P3e;function GPo(i){return function(e,t){var n,e=ILo(wLo(e)),t=ALo(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=SLo(e,t))<55296||56319<n||t+1===r||(r=SLo(e,t+1))<56320||57343<r?i?jLo(e,t):n:i?OLo(e,t,t+2):r-56320+(n-55296<<10)+65536}}var JPo=ZPo.RegExp,E5n=WPo(function(){var e=JPo("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),Byt=E5n||WPo(function(){return!JPo("a","y").sticky}),n={BROKEN_CARET:E5n||WPo(function(){var e=JPo("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:Byt,UNSUPPORTED_Y:E5n},Gpe=QSo,KPo=P3e.RegExp,yP=Gpe(function(){var e=KPo(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),f5n=QSo,YPo=P3e.RegExp,Z0e=f5n(function(){var e=YPo("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),QPo=Fpe,D3e=vpe,XPo=MEo,$Po=lPo,V3e=n,G0e=cOo,eLo=wpe,tLo=Zge.get,RMr=yP,k0e=Z0e,nLo=G0e("native-string-replace",String.prototype.replace),rLo=RegExp.prototype.exec,iLo=rLo,oLo=D3e("".charAt),aLo=D3e("".indexOf),sLo=D3e("".replace),lLo=D3e("".slice),cLo=(g4e=/b*/g,QPo(rLo,g3e=/a/,"a"),QPo(rLo,g4e,"a"),0!==g3e.lastIndex||0!==g4e.lastIndex),dLo=V3e.BROKEN_CARET,uLo=void 0!==/()??/.exec("")[1],xg=iLo=cLo||uLo||dLo||RMr||k0e?function(e){var t,n,r,i,o,a,s=this,l=tLo(s),e=XPo(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,u=QPo(iLo,c,e),s.lastIndex=c.lastIndex,u;var d=l.groups,c=dLo&&s.sticky,u=QPo($Po,s),l=s.source,p=0,g=e;if(c&&(u=sLo(u,"y",""),-1===aLo(u,"g")&&(u+="g"),g=lLo(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||(s.multiline,"\n"!==oLo(e,s.lastIndex-1)))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",u)),uLo&&(t=new RegExp("^"+l+"$(?!\\s)",u)),cLo&&(n=s.lastIndex),r=QPo(rLo,c?t:s,g),c?r?(r.input=lLo(r.input,p),r[0]=lLo(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:cLo&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),uLo&&r&&1<r.length&&QPo(nLo,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&d)for(r.groups=o=eLo(null),i=0;i<d.length;i++)o[(a=d[i])[0]]=r[a[1]];return r}:iLo,N0e=(SOo({target:"RegExp",proto:!0,forced:/./.exec!==xg},{exec:xg}),y3e),Uge=Function.prototype,pLo=Uge.apply,gLo=Uge.call,ont="object"==typeof Reflect&&Reflect.apply||(N0e?gLo.bind(pLo):function(){return gLo.apply(pLo,arguments)}),fLo=Fpe,hLo=COo,mLo=xg,CLo=QSo,xLo=pOo,vLo=c3e,bLo=xLo("species"),yLo=RegExp.prototype,h4e=vpe,ALo=xOo,ILo=MEo,wLo=tOo,jLo=h4e("".charAt),SLo=h4e("".charCodeAt),OLo=h4e("".slice),s4e={codeAt:GPo(!1),charAt:GPo(!0)},kLo=s4e.charAt,q3e=vpe,TLo=dOo,ELo=Math.floor,NLo=q3e("".charAt),MLo=q3e("".replace),PLo=q3e("".slice),LLo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,DLo=/\$([$&'`]|\d{1,2})/g,RLo=Fpe,FLo=hOo,VLo=U2e,BLo=$So,HLo=xg,ULo=TypeError,zLo=ont,_Lo=Fpe,zge=vpe,eor=function(n,e,t,r){var a,i=xLo(n),s=!CLo(function(){var e={};return e[i]=function(){return 7},7!==""[n](e)}),o=s&&!CLo(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[bLo]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=/./[i],o=e(i,""[n],function(e,t,n,r,i){var o=t.exec;return o===mLo||o===yLo.exec?s&&!i?{done:!0,value:fLo(a,t,n,r)}:{done:!0,value:fLo(e,n,t,r)}:{done:!1}}),hLo(String.prototype,n,o[0]),hLo(yLo,i,o[1])),r&&vLo(yLo[i],"sham",!0)},_6i=QSo,qLo=hOo,WLo=U2e,ZLo=eOo,GLo=xOo,JLo=bOo,KLo=MEo,YLo=tOo,QLo=function(e,t,n){return t+(n?kLo(e,t).length:1)},XLo=sOo,$Lo=function(o,a,s,l,c,e){var d=s+o.length,u=l.length,t=DLo;return void 0!==c&&(c=TLo(c),t=LLo),MLo(e,t,function(e,t){var n;switch(NLo(t,0)){case"$":return"$";case"&":return o;case"`":return PLo(a,0,s);case"'":return PLo(a,d);case"<":n=c[PLo(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(u<i)return 0!==(r=ELo(i/10))&&r<=u?void 0===l[r-1]?NLo(t,1):l[r-1]+NLo(t,1):e;n=l[i-1]}return void 0===n?"":n})},eDo=function(e,t){var n=e.exec;if(VLo(n))return null!==(n=RLo(n,e,t))&&FLo(n),n;if("RegExp"===BLo(e))return RLo(HLo,e,t);throw new ULo("RegExp#exec called on incompatible receiver")},tDo=pOo("replace"),nDo=Math.max,rDo=Math.min,iDo=zge([].concat),oDo=zge([].push),aDo=zge("".indexOf),sDo=zge("".slice),fRt="$0"==="a".replace(/./,"$0"),lDo=!!/./[tDo]&&""===/./[tDo]("a","$0");eor("replace",function(e,v,b){var y=lDo?"$":"$0";return[function(e,t){var n=YLo(this),r=ZLo(e)?void 0:XLo(e,tDo);return r?_Lo(r,e,n,t):_Lo(v,KLo(n),e,t)},function(e,t){var n=qLo(this),r=KLo(e);if("string"==typeof t&&-1===aDo(t,y)&&-1===aDo(t,"$<")){e=b(v,n,r,t);if(e.done)return e.value}for(var i,o=WLo(t),a=(o||(t=KLo(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=eDo(n,r))&&(oDo(s,p),a);)""===KLo(p[0])&&(n.lastIndex=QLo(r,JLo(n.lastIndex),i));for(var l,c="",d=0,u=0;u<s.length;u++){for(var p,g=KLo((p=s[u])[0]),f=nDo(rDo(GLo(p.index),r.length),0),h=[],m=1;m<p.length;m++)oDo(h,void 0===(l=p[m])?l:String(l));var C=p.groups,x=o?(x=iDo([g],h,f,r),void 0!==C&&oDo(x,C),KLo(zLo(t,void 0,x))):$Lo(g,r,f,h,C,t);d<=f&&(c+=sDo(r,d,f)+x,d=f+g.length)}return c+sDo(r,d)}]},!!_6i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!fRt||lDo);let cDo=v2e.jsx.ImageUpload,dDo="image/png, image/svg+xml, image/jpeg",uDo={outerWidth:"366px",outerHeight:"161px"},pDo=({isEditMode:e})=>{var{register:t,control:n,formState:{errors:r},watch:i}=LCe(),i=i("slug");let o=Ae(LG);return nt.exports.jsxs(_,Object.assign({sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsxs(_,Object.assign({gap:2},{children:[!e&&nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.newDescription()})),e&&nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.editDescription()})),nt.exports.jsx(gw,Object.assign({},t("name",{required:!0}),{fullWidth:!0,placeholder:"Registration Name",error:!!r.name,helperText:null==(e=r.name)?void 0:e.message,"data-testid":aNo+"--registration-name-input"}))]})),nt.exports.jsxs(_,Object.assign({gap:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.basicInfo.brandLogoTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.brandLogoDescription()})),nt.exports.jsxs(pe,Object.assign({variant:"caption"},{children:["Recommended image size:",nt.exports.jsx("br",{}),"300x200 .png or .svg"]})),nt.exports.jsx(JCe,{name:"uiSettings.logo",defaultValue:"",control:n,rules:{required:"Brand Logo is required."},render:({field:{onChange:r,value:e}})=>nt.exports.jsx(cDo,{testId:aNo+"--brand-logo",image:e,getUrl:!1,outerWidth:uDo.outerWidth,outerHeight:uDo.outerHeight,innerHeight:"145px",innerWidth:"350px",fileTypes:dDo,handleChange:t=>{if(t){var n=e=>{"string"==typeof e&&r(e)};let e=new FileReader;e.readAsDataURL(t),e.onload=function(){n(e.result)},e.onerror=function(e){console.log("error getting base64: ",e)}}else r("")}})}),r.uiSettings&&"logo"in r.uiSettings&&nt.exports.jsx(pe,Object.assign({color:"error",variant:"caption"},{children:null==(e=r.uiSettings.logo)?void 0:e.message}))]})),nt.exports.jsxs(_,Object.assign({gap:2},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.basicInfo.customUrlTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.basicInfo.customUrlDescription()})),nt.exports.jsx(gw,Object.assign({},t("slug",{required:!0,pattern:{value:/^[a-z0-9]+(?:-[a-z0-9]+)*$/,message:"Slug must be lowercase and contain only letters, numbers, and hyphens."},minLength:{value:3,message:"Slug must be at least 3 characters long."},setValueAs:e=>H7n(e)}),{fullWidth:!0,error:!!r.slug,helperText:null==(n=r.slug)?void 0:n.message,"data-testid":aNo+"--registration-slug-input"})),nt.exports.jsxs(pe,Object.assign({variant:"caption",fontWeight:400},{children:[iNo.form.basicInfo.urlExample(o.replace(/(.us-1|https:\/\/)/g,"").replace("login","signup")+"/"),nt.exports.jsx(pe,Object.assign({variant:"caption",color:"black",fontWeight:800},{children:""+(i||"<slug>")}))]}))]}))]}))};let gDo=()=>{let{trigger:t,watch:e,control:n}=LCe(),[r,i]=Le.exports.useState(null),o=Ae(rPo.registrationWizard.selectItem);var a=e("uiSettings.registrationButtonStyle.backgroundColor"),s=e("uiSettings.registrationButtonStyle.textColor");let l=Le.exports.useCallback(e=>{e?i(null):i("Invalid color selection"),setTimeout(()=>{t("uiSettings.registrationButtonStyle")},50)},[t]);return nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".form-appearance",sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.description()})),nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsxs(_,Object.assign({gap:1},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.appearance.buttonColorTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.buttonColorDescription()}))]})),nt.exports.jsxs(_,Object.assign({gap:4,bgcolor:"#F5F5F5",border:"1px solid #E0E0E0",p:4,alignItems:"center"},{children:[nt.exports.jsx(JCe,{name:"uiSettings.registrationButtonStyle",control:n,rules:{validate:e=>r||!(!e.textColor||!e.backgroundColor)||"Both colors are required"},render:({field:t})=>nt.exports.jsx(k_e,{isButtonColorRequired:!1,buttonColor:t.value.backgroundColor,buttonTextColor:t.value.textColor,onValidationCheck:l,onChangeTextColor:e=>t.onChange(Object.assign(Object.assign({},t.value),{textColor:e})),onChangeButtonColor:e=>t.onChange(Object.assign(Object.assign({},t.value),{backgroundColor:e})),onReset:()=>{o&&0<Object.keys(o).length?t.onChange({textColor:o.uiSettings.registrationButtonStyle.textColor,backgroundColor:o.uiSettings.registrationButtonStyle.backgroundColor}):t.onChange({textColor:"#FFFFFF",backgroundColor:"#1E88E5"}),l(!0)}})}),nt.exports.jsx(N_e,{buttonColor:a,buttonTextColor:s})]}))]})),nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:1,maxWidth:"80%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.appearance.veritoneBrandingTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.appearance.veritoneBrandingDescription()}))]})),nt.exports.jsx(JCe,{name:"uiSettings.veritoneBranding","data-test":aNo+".form-input","data-testid":aNo+".form-input-veritoneBranding",control:n,defaultValue:!1,render:({field:t})=>nt.exports.jsx(SA,{checked:t.value,onChange:e=>t.onChange(e.target.checked),inputProps:{"aria-label":"Remove Veritone Branding"}})})]}))]}))};function fDo(e){return HDo.slice(0,e.length)===e}function hDo(e,t){if(WDo(t,e))return e;throw new ZDo("Incorrect invocation")}function mDo(){}function CDo(e){if(!GDo(e))return!1;try{return YDo(mDo,[],e),!0}catch(e){return!1}}function xDo(e){if(!GDo(e))return!1;switch(JDo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $Do||!!XDo(QDo,KDo(e))}catch(e){return!0}}function vDo(e,t){return cRo(e),void 0===t?e:dRo?uRo(e,t):function(){return e.apply(t,arguments)}}function bDo(e,t){if(e<t)throw new pRo("Not enough arguments");return e}function yDo(e){return function(){kRo(e)}}function ADo(e){kRo(e.data)}function IDo(e){gRo.postMessage(wRo(e),TDo.protocol+"//"+TDo.host)}function wDo(e){var t;return ERo?(t=NRo(TRo,e))&&t.value:TRo[e]}function jDo(){this.head=null,this.tail=null}function SDo(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function ODo(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw new _Ro("Bad Promise constructor");n=e,r=t}),this.resolve=zRo(n),this.reject=zRo(r)}function kDo(t){ZRo(XRo,WRo,function(){var e=t.facade;qRo?uFo.emit("rejectionHandled",e):wFo(mFo,e,t.value)})}var TDo,EDo,NDo,MDo,PDo,LDo,DDo,RDo,FDo,VDo,BDo,eL=P3e,HDo=I3e,W0e=$So,R0e=fDo("Bun/")?"BUN":fDo("Cloudflare-Workers")?"CLOUDFLARE":fDo("Deno/")?"DENO":fDo("Node.js/")?"NODE":eL.Bun&&"string"==typeof Bun.version?"BUN":eL.Deno&&"object"==typeof Deno.version?"DENO":"process"===W0e(eL.process)?"NODE":eL.window&&eL.document?"BROWSER":"REST",Npe="NODE"==R0e,UDo=iOo,zDo=PEo,_Do=f3e,qDo=pOo("species"),WDo=Tpe,ZDo=TypeError,gge=vpe,Heo=QSo,GDo=U2e,JDo=m4e,KDo=Cge,YDo=iOo("Reflect","construct"),QDo=/^\s*(?:class|function)\b/,XDo=gge(QDo.exec),$Do=!QDo.test(mDo),B0e=(xDo.sham=!0,!YDo||Heo(function(){var e;return CDo(CDo.call)||!CDo(Object)||!CDo(function(){e=!0})||e})?xDo:CDo),eRo=B0e,tRo=oOo,nRo=TypeError,rRo=hOo,iRo=function(e){if(eRo(e))return e;throw new nRo(tRo(e)+" is not a constructor")},oRo=eOo,aRo=pOo("species"),sRo=$So,lRo=vpe,i2e=function(e){if("Function"===sRo(e))return lRo(e)},cRo=aOo,dRo=y3e,uRo=i2e(i2e.bind),yg=vpe([].slice),pRo=TypeError,Zpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(I3e),gRo=P3e,fRo=ont,qpe=vDo,hRo=U2e,mRo=qge,$U=QSo,CRo=KU,xRo=yg,vRo=fOo,bRo=bDo,Age=Zpe,EQ=Npe,nz=gRo.setImmediate,Qpe=gRo.clearImmediate,yRo=gRo.process,ARo=gRo.Dispatch,IRo=gRo.Function,r2e=gRo.MessageChannel,wRo=gRo.String,jRo=0,SRo={},ORo="onreadystatechange",kRo=($U(function(){TDo=gRo.location}),function(e){var t;mRo(SRo,e)&&(t=SRo[e],delete SRo[e],t())}),_0e=(nz&&Qpe||(nz=function(e){bRo(arguments.length,1);var t=hRo(e)?e:IRo(e),n=xRo(arguments,1);return SRo[++jRo]=function(){fRo(t,void 0,n)},EDo(jRo),jRo},Qpe=function(e){delete SRo[e]},EQ?EDo=function(e){yRo.nextTick(yDo(e))}:ARo&&ARo.now?EDo=function(e){ARo.now(yDo(e))}:r2e&&!Age?(IP=(Jge=new r2e).port2,Jge.port1.onmessage=ADo,EDo=qpe(IP.postMessage,IP)):gRo.addEventListener&&hRo(gRo.postMessage)&&!gRo.importScripts&&TDo&&"file:"!==TDo.protocol&&!$U(IDo)?(EDo=IDo,gRo.addEventListener("message",ADo,!1)):EDo=ORo in vRo("script")?function(e){CRo.appendChild(vRo("script"))[ORo]=function(){CRo.removeChild(this),kRo(e)}}:function(e){setTimeout(yDo(e),0)}),{set:nz,clear:Qpe}),TRo=P3e,ERo=f3e,NRo=Object.getOwnPropertyDescriptor,ete=(jDo.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},jDo),EIo=/ipad|iphone|ipod/i.test(I3e)&&"undefined"!=typeof Pebble,j=/web0s(?!.*chrome)/i.test(I3e),Pge=P3e,q0e=wDo,mge=vDo,MRo=_0e.set,m3e=ete,F3e=Zpe,g2e=EIo,Euo=j,PRo=Npe,Q4o=Pge.MutationObserver||Pge.WebKitMutationObserver,a4e=Pge.document,LRo=Pge.process,n5o=Pge.Promise,Ict=q0e("queueMicrotask"),Ege=(Ict||(LDo=new m3e,DDo=function(){var e,t;for(PRo&&(e=LRo.domain)&&e.exit();t=LDo.get();)try{t()}catch(e){throw LDo.head&&RDo(),e}e&&e.enter()},RDo=F3e||PRo||Euo||!Q4o||!a4e?!g2e&&n5o&&n5o.resolve?((p4e=n5o.resolve(void 0)).constructor=n5o,PDo=mge(p4e.then,p4e),function(){PDo(DDo)}):PRo?function(){LRo.nextTick(DDo)}:(MRo=mge(MRo,Pge),function(){MRo(DDo)}):(NDo=!0,MDo=a4e.createTextNode(""),new Q4o(DDo).observe(MDo,{characterData:!0}),function(){MDo.data=NDo=!NDo}),Ict=function(e){LDo.head||RDo(),LDo.add(e)}),Ict),e4e=P3e.Promise,Jbi=P3e,DRo=e4e,Gge=U2e,ppe=jCo,RRo=Cge,d3e=pOo,FRo=R0e,VRo=ken,BRo=(DRo&&DRo.prototype,d3e("species")),HRo=!1,URo=Gge(Jbi.PromiseRejectionEvent),J$={CONSTRUCTOR:ppe("Promise",function(){var e=RRo(DRo),t=e!==String(DRo);if(!t&&66===VRo)return!0;if(!VRo||VRo<51||!/native code/.test(e)){var e=new DRo(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[BRo]=n,!(HRo=e.then(function(){})instanceof n))return!0}return!(t||"BROWSER"!=FRo&&"DENO"!=FRo||URo)}),REJECTION_EVENT:URo,SUBCLASSING:HRo},yge={},zRo=aOo,_Ro=TypeError,doi=(yge.f=function(e){return new ODo(e)},SOo),qRo=Npe,WRo=P3e,ZRo=Fpe,MQ=COo,TQ=Ipe,$0e=qNo,N5n=function(e){e=UDo(e);_Do&&e&&!e[qDo]&&zDo(e,qDo,{configurable:!0,get:function(){return this}})},GRo=aOo,JRo=U2e,KRo=rOo,YRo=hDo,QRo=function(e,t){var e=rRo(e).constructor;return void 0===e||oRo(e=rRo(e)[aRo])?t:iRo(e)},XRo=_0e.set,$Ro=Ege,eFo=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},tFo=SDo,nFo=ete,o$=Zge,x3e=e4e,Ltn=yge,rFo="Promise",S$e=J$.CONSTRUCTOR,iFo=J$.REJECTION_EVENT,c4e=J$.SUBCLASSING,oFo=o$.getterFor(rFo),aFo=o$.set,npe=x3e&&x3e.prototype,sFo=x3e,lFo=npe,cFo=WRo.TypeError,dFo=WRo.document,uFo=WRo.process,pFo=Ltn.f,gFo=pFo,fFo=!!(dFo&&dFo.createEvent&&WRo.dispatchEvent),hFo="unhandledrejection",mFo="rejectionhandled",CFo=1,xFo=2,vFo=1,bFo=2,yFo=function(e){var t;return!(!KRo(e)||!JRo(t=e.then))&&t},AFo=function(e,t){var n,r,i,o=t.value,a=t.state===CFo,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{s?(a||(t.rejection===bFo&&kDo(t),t.rejection=vFo),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),i=!0)),n===e.promise?c(new cFo("Promise-chain cycle")):(r=yFo(n))?ZRo(r,n,l,c):l(n)):c(o)}catch(e){d&&!i&&d.exit(),c(e)}},IFo=function(n,r){n.notified||(n.notified=!0,$Ro(function(){for(var e,t=n.reactions;e=t.get();)AFo(e,n);n.notified=!1,r&&!n.rejection&&jFo(n)}))},wFo=function(e,t,n){var r;fFo?((r=dFo.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),WRo.dispatchEvent(r)):r={promise:t,reason:n},!iFo&&(t=WRo["on"+e])?t(r):e===hFo&&eFo("Unhandled promise rejection",n)},jFo=function(r){ZRo(XRo,WRo,function(){var e=r.facade,t=r.value,n=SFo(r);if(n&&(n=tFo(function(){qRo?uFo.emit("unhandledRejection",t,e):wFo(hFo,e,t)}),r.rejection=qRo||SFo(r)?bFo:vFo,n.error))throw n.value})},SFo=function(e){return e.rejection!==vFo&&!e.parent},OFo=function(t,n,r){return function(e){t(n,e,r)}},kFo=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=xFo,IFo(e,!0))},TFo=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw new cFo("Promise can't be resolved itself");var r=yFo(e);r?$Ro(function(){var t={done:!1};try{ZRo(r,e,OFo(TFo,t,n),OFo(kFo,t,n))}catch(e){kFo(t,e,n)}}):(n.value=e,n.state=CFo,IFo(n,!1))}catch(e){kFo({done:!1},e,n)}}};if(S$e&&(lFo=(sFo=function(e){YRo(this,lFo),GRo(e),ZRo(FDo,this);var t=oFo(this);try{e(OFo(TFo,t),OFo(kFo,t))}catch(e){kFo(t,e)}}).prototype,(FDo=function(e){aFo(this,{type:rFo,done:!1,notified:!1,parent:!1,reactions:new nFo,rejection:!1,state:0,value:null})}).prototype=MQ(lFo,"then",function(e,t){var n=oFo(this),r=pFo(QRo(this,sFo));return n.parent=!0,r.ok=!JRo(e)||e,r.fail=JRo(t)&&t,r.domain=qRo?uFo.domain:void 0,0===n.state?n.reactions.add(r):$Ro(function(){AFo(r,n)}),r.promise}),VDo=function(){var e=new FDo,t=oFo(e);this.promise=e,this.resolve=OFo(TFo,t),this.reject=OFo(kFo,t)},Ltn.f=pFo=function(e){return e===sFo||void 0===e?new VDo:gFo(e)},JRo(x3e))&&npe!==Object.prototype){BDo=npe.then,c4e||MQ(npe,"then",function(e,t){var n=this;return new sFo(function(e,t){ZRo(BDo,n,e,t)}).then(e,t)},{unsafe:!0});try{delete npe.constructor}catch(e){}TQ&&TQ(npe,lFo)}doi({global:!0,constructor:!0,wrap:!0,forced:S$e},{Promise:sFo}),$0e(sFo,rFo,!1),N5n(rFo);function EFo(e){return void 0!==e&&(RFo.Array===e||VFo[FFo]===e)}function NFo(e){if(!UFo(e))return HFo(e,_Fo)||HFo(e,"@@iterator")||zFo[BFo(e)]}function MFo(e,t){if(t=arguments.length<2?JFo(e):t,WFo(t))return ZFo(qFo(t,e));throw new KFo(GFo(e)+" is not iterable")}function PFo(e,t,n){var r,i;QFo(e);try{if(!(r=XFo(e,"return"))){if("throw"===t)throw n;return n}r=YFo(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return QFo(r),n}function LFo(e,t){this.stopped=e,this.result=t}function DFo(e,t,n){function r(e){return o&&lVo(o,"normal",e),new LFo(!0,e)}function i(e){return p?(tVo(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,d,u=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=$Fo(t,u);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=sVo(e)))throw new cVo(nVo(e)+" is not iterable");if(rVo(n)){for(a=0,s=iVo(e);a<s;a++)if((l=i(e[a]))&&oVo(dVo,l))return l;return new LFo(!1)}o=aVo(e,n)}for(c=(g?e:o).next;!(d=eVo(c,o)).done;){try{l=i(d.value)}catch(e){lVo(o,"throw",e)}if("object"==typeof l&&l&&oVo(dVo,l))return l}return new LFo(!1)}var RFo=jpe,FFo=pOo("iterator"),VFo=Array.prototype,BFo=m4e,HFo=sOo,UFo=eOo,zFo=jpe,_Fo=pOo("iterator"),qFo=Fpe,WFo=aOo,ZFo=hOo,GFo=oOo,JFo=NFo,KFo=TypeError,YFo=Fpe,QFo=hOo,XFo=sOo,$Fo=vDo,eVo=Fpe,tVo=hOo,nVo=oOo,rVo=EFo,iVo=yOo,oVo=Tpe,aVo=MFo,sVo=NFo,lVo=PFo,cVo=TypeError,dVo=LFo.prototype,uVo=pOo("iterator"),pVo=!1;try{var gVo=0,fVo={next:function(){return{done:!!gVo++}},return:function(){pVo=!0}};fVo[uVo]=function(){return this},Array.from(fVo,function(){throw 2})}catch(e){}var hVo=e4e,_3e=function(e,t){try{if(!t&&!pVo)return!1}catch(e){return!1}var n=!1;try{var r={};r[uVo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},c$=J$.CONSTRUCTOR||!_3e(function(e){hVo.all(e).then(void 0,function(){})}),mVo=Fpe,CVo=aOo,xVo=yge,vVo=SDo,bVo=DFo,Rtt=(SOo({target:"Promise",stat:!0,forced:c$},{all:function(e){var s=this,t=xVo.f(s),l=t.resolve,c=t.reject,n=vVo(function(){var r=CVo(s.resolve),i=[],o=0,a=1;bVo(e,function(e){var t=o++,n=!1;a++,mVo(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),SOo),Yge=e4e,hge=iOo,NIo=U2e,C=COo,iVi=Yge&&Yge.prototype;Rtt({target:"Promise",proto:!0,forced:J$.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),NIo(Yge)&&(s2e=hge("Promise").prototype.catch,iVi.catch!==s2e)&&C(iVi,"catch",s2e,{unsafe:!0});var yVo=Fpe,AVo=aOo,IVo=yge,wVo=SDo,jVo=DFo;SOo({target:"Promise",stat:!0,forced:c$},{race:function(e){var n=this,r=IVo.f(n),i=r.reject,t=wVo(function(){var t=AVo(n.resolve);jVo(e,function(e){yVo(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});function SVo(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(r=e[i=o];i&&0<t(e[i-1],r);)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=YBo(n/2),s=SVo(KBo(e,0,a),t),l=SVo(KBo(e,a),t),c=s.length,d=l.length,u=0,p=0;u<c||p<d;)e[u+p]=u<c&&p<d?t(s[u],l[p])<=0?s[u++]:l[p++]:u<c?s[u++]:l[p++];return e}function OVo(e,t){return e=LHo(e,t,t+2),DHo(FHo,e)?SHo(e,16):NaN}function kVo(e){for(var t=(e=EHo(e,RHo," ")).length,n="",r=0;r<t;){var i=OHo(e,r);if("%"===i){if("%"===OHo(e,r+1)||t<r+3){n+="%",r++;continue}var o=OVo(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=(e=>{for(var t=0,n=128;0<n&&0!=(e&n);n>>=1)t++;return t})(o);if(0===a)i=wHo(o);else{if(1===a||4<a){n+="�",r++;continue}for(var s=[o],l=1;l<a&&!(t<++r+3||"%"!==OHo(e,r));){var c=OVo(e,r+1);if(c!=c){r+=3;break}if(191<c||c<128)break;THo(s,c),r+=2,l++}if(s.length!==a){n+="�";continue}o=(e=>{var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return 1114111<t?null:t})(s);null===o?n+="�":i=jHo(o)}}n+=i,r++}return n}function TVo(e){return BHo[e]}function EVo(e){return EHo(IHo(e),VHo,TVo)}function NVo(e){this.entries=[],this.url=null,void 0!==e&&(iHo(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===OHo(e,0)?LHo(e,1):e:oHo(e)))}function MVo(){$Bo(this,UHo);var e=hHo(this,new NVo(0<arguments.length?arguments[0]:void 0));XBo||(this.size=e.entries.length)}function PVo(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)mUo(t,e%256),e=rUo(e/256);return sUo(t,".")}if("object"!=typeof e)return e;for(t="",r=(e=>{for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(n<i&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return n<i?r:t})(e),n=0;n<8;n++)i&&0===e[n]||(i=i&&!1,r===n?(t+=n?":":"::",i=!0):(t+=lUo(e[n],16),n<7&&(t+=":")));return"["+t+"]"}function LVo(e,t){var n=GHo(e,0);return 32<n&&n<127&&!qHo(t,e)?e:encodeURIComponent(e)}function DVo(e,t){return 2===e.length&&aUo(bUo,oUo(e,0))&&(":"===(e=oUo(e,1))||!t&&"|"===e)}function RVo(e){return 1<e.length&&DVo(fUo(e,0,2))&&(2===e.length||"/"===(e=oUo(e,2))||"\\"===e||"?"===e||"#"===e)}function FVo(e,t,n){var r,i,e=KHo(e);if(t){if(i=this.parse(e))throw new tUo(i);this.searchParams=null}else{if(void 0!==n&&(r=new FVo(n,!0)),i=this.parse(e,null,r))throw new tUo(i);(t=eUo(new $Ho)).bindURL(this),this.searchParams=t}}function VVo(e,t){return{get:function(){return XHo(this)[e]()},set:t&&function(e){return XHo(this)[t](e)},configurable:!0,enumerable:!0}}var BVo,HVo,UVo,zVo,_Vo=yge,qVo=(SOo({target:"Promise",stat:!0,forced:J$.CONSTRUCTOR},{reject:function(e){var t=_Vo.f(this);return(0,t.reject)(e),t.promise}}),hOo),WVo=rOo,ZVo=yge,kpe=SOo,e0e=iOo,B3e=J$.CONSTRUCTOR,GVo=function(e,t){return qVo(e),WVo(t)&&t.constructor===e?t:((0,(e=ZVo.f(e)).resolve)(t),e.promise)},JVo=(e0e("Promise"),kpe({target:"Promise",stat:!0,forced:B3e},{resolve:function(e){return GVo(this,e)}}),s4e.charAt),KVo=MEo,m0e=Zge,tge=JNo,YVo=KNo,QVo="String Iterator",XVo=m0e.set,$Vo=m0e.getterFor(QVo),r=(tge(String,"String",function(e){XVo(this,{type:QVo,string:KVo(e),index:0})},function(){var e=$Vo(this),t=e.string,n=e.index;return n>=t.length?YVo(void 0,!0):(t=JVo(t,n),e.index+=t.length,YVo(t,!1))}),QSo),eBo=f3e,tBo=pOo("iterator"),$ge=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),n=e.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),t.delete("a",2),t.delete("b",void 0),!n.size&&!eBo||!n.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[tBo]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}),nBo=hOo,rBo=PFo,iBo=f3e,oBo=Hee,aBo=XSo,sBo=vDo,lBo=Fpe,cBo=dOo,dBo=function(t,e,n,r){try{return r?e(nBo(n)[0],n[1]):e(n)}catch(e){rBo(t,"throw",e)}},uBo=EFo,pBo=B0e,gBo=yOo,fBo=function(e,t,n){iBo?oBo.f(e,t,aBo(0,n)):e[t]=n},hBo=MFo,mBo=NFo,CBo=Array,Mge=vpe,xBo=2147483647,vBo=36,bBo=1,yBo=26,ABo=38,IBo=700,wBo=72,jBo=128,SBo="-",OBo=/[^\0-\u007E]/,kBo=/[.\u3002\uFF0E\uFF61]/g,TBo="Overflow: input needs wider integers to process",EBo=vBo-bBo,NBo=RangeError,MBo=Mge(kBo.exec),PBo=Math.floor,LBo=String.fromCharCode,DBo=Mge("".charCodeAt),RBo=Mge([].join),FBo=Mge([].push),VBo=Mge("".replace),BBo=Mge("".split),HBo=Mge("".toLowerCase),UBo=function(e){for(var t=[],n=0,r=e.length;n<r;){var i,o=DBo(e,n++);55296<=o&&o<=56319&&n<r?56320==(64512&(i=DBo(e,n++)))?FBo(t,((1023&o)<<10)+(1023&i)+65536):(FBo(t,o),n--):FBo(t,o)}return t},zBo=function(e){return e+22+75*(e<26)},_Bo=function(e,t,n){var r=0;for(e=n?PBo(e/IBo):e>>1,e+=PBo(e/t);EBo*yBo>>1<e;)e=PBo(e/EBo),r+=vBo;return PBo(r+(EBo+1)*e/(e+ABo))},Xge=SOo,dcr=vpe,qBo=vOo,WBo=RangeError,ZBo=String.fromCharCode,Q2e=String.fromCodePoint,GBo=dcr([].join),JBo=(Xge({target:"String",stat:!0,arity:1,forced:!!Q2e&&1!==Q2e.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(t=+arguments[i++],qBo(t,1114111)!==t)throw new WBo(t+" is not a valid code point");n[i]=t<65536?ZBo(t):ZBo(55296+((t-=65536)>>10),t%1024+56320)}return GBo(n,"")}}),COo),KBo=yg,YBo=Math.floor,sge=SOo,Mpe=P3e,wge=wDo,Ope=iOo,QBo=Fpe,w3e=vpe,XBo=f3e,H2e=$ge,Y3e=COo,Lge=PEo,Rge=function(e,t,n){for(var r in t)JBo(e,r,t[r],n);return e},nge=qNo,ISo=ZNo,f=Zge,$Bo=hDo,f4e=U2e,eHo=qge,tHo=vDo,nHo=m4e,rHo=hOo,iHo=rOo,oHo=MEo,aHo=wpe,sHo=XSo,lHo=MFo,cHo=NFo,dHo=KNo,uHo=bDo,pHo=SVo,t0e=pOo("iterator"),gHo="URLSearchParams",fHo=gHo+"Iterator",hHo=f.set,mHo=f.getterFor(gHo),CHo=f.getterFor(fHo),xHo=wge("fetch"),vHo=wge("Request"),bHo=wge("Headers"),yHo=vHo&&vHo.prototype,VU=bHo&&bHo.prototype,AHo=Mpe.TypeError,IHo=Mpe.encodeURIComponent,wHo=String.fromCharCode,jHo=Ope("String","fromCodePoint"),SHo=parseInt,OHo=w3e("".charAt),kHo=w3e([].join),THo=w3e([].push),EHo=w3e("".replace),NHo=w3e([].shift),MHo=w3e([].splice),PHo=w3e("".split),LHo=w3e("".slice),DHo=w3e(/./.exec),RHo=/\+/g,FHo=/^[0-9a-f]+$/i,VHo=/[!'()~]|%20/g,BHo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},HHo=ISo(function(e,t){hHo(this,{type:fHo,target:mHo(e).entries,index:0,kind:t})},gHo,function(){var e=CHo(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,dHo(void 0,!0);var r=t[n];switch(e.kind){case"keys":return dHo(r.key,!1);case"values":return dHo(r.value,!1)}return dHo([r.key,r.value],!1)},!0),UHo=(NVo.prototype={type:gHo,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=this.entries,l=cHo(e);if(l)for(n=(t=lHo(e,l)).next;!(r=QBo(n,t)).done;){if(i=(r=lHo(rHo(r.value))).next,(o=QBo(i,r)).done||(a=QBo(i,r)).done||!QBo(i,r).done)throw new AHo("Expected sequence with length 2");THo(s,{key:oHo(o.value),value:oHo(a.value)})}else for(var c in e)eHo(e,c)&&THo(s,{key:c,value:oHo(e[c])})},parseQuery:function(e){if(e)for(var t,n=this.entries,r=PHo(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(t=PHo(t,"="),THo(n,{key:kVo(NHo(t)),value:kVo(kHo(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],THo(n,EVo(e.key)+"="+EVo(e.value));return kHo(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},MVo.prototype),acr=(Rge(UHo,{append:function(e,t){var n=mHo(this);uHo(arguments.length,2),THo(n.entries,{key:oHo(e),value:oHo(t)}),XBo||this.length++,n.updateURL()},delete:function(e){for(var t=mHo(this),n=uHo(arguments.length,1),r=t.entries,i=oHo(e),e=n<2?void 0:arguments[1],o=void 0===e?e:oHo(e),a=0;a<r.length;){var s=r[a];if(s.key!==i||void 0!==o&&s.value!==o)a++;else if(MHo(r,a,1),void 0!==o)break}XBo||(this.size=r.length),t.updateURL()},get:function(e){for(var t=mHo(this).entries,n=(uHo(arguments.length,1),oHo(e)),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){for(var t=mHo(this).entries,n=(uHo(arguments.length,1),oHo(e)),r=[],i=0;i<t.length;i++)t[i].key===n&&THo(r,t[i].value);return r},has:function(e){for(var t=mHo(this).entries,n=uHo(arguments.length,1),r=oHo(e),e=n<2?void 0:arguments[1],i=void 0===e?e:oHo(e),o=0;o<t.length;){var a=t[o++];if(a.key===r&&(void 0===i||a.value===i))return!0}return!1},set:function(e,t){for(var n,r=mHo(this),i=(uHo(arguments.length,1),r.entries),o=!1,a=oHo(e),s=oHo(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?MHo(i,l--,1):(o=!0,n.value=s));o||THo(i,{key:a,value:s}),XBo||(this.size=i.length),r.updateURL()},sort:function(){var e=mHo(this);pHo(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=mHo(this).entries,r=tHo(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new HHo(this,"keys")},values:function(){return new HHo(this,"values")},entries:function(){return new HHo(this,"entries")}},{enumerable:!0}),Y3e(UHo,t0e,UHo.entries,{name:"entries"}),Y3e(UHo,"toString",function(){return mHo(this).serialize()},{enumerable:!0}),XBo&&Lge(UHo,"size",{get:function(){return mHo(this).entries.length},configurable:!0,enumerable:!0}),nge(MVo,gHo),sge({global:!0,constructor:!0,forced:!H2e},{URLSearchParams:MVo}),!H2e&&f4e(bHo)&&(BVo=w3e(VU.has),HVo=w3e(VU.set),UVo=function(e){if(iHo(e)){var t,n=e.body;if(nHo(n)===gHo)return t=e.headers?new bHo(e.headers):new bHo,BVo(t,"content-type")||HVo(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),aHo(e,{body:sHo(0,oHo(n)),headers:sHo(0,t)})}return e},f4e(xHo)&&sge({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return xHo(e,1<arguments.length?UVo(arguments[1]):{})}}),f4e(vHo))&&((yHo.constructor=M3e=function(e){return $Bo(this,yHo),new vHo(e,1<arguments.length?UVo(arguments[1]):{})}).prototype=yHo,sge({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:M3e})),{URLSearchParams:MVo,getState:mHo}),ige=SOo,zHo=f3e,o4e=$ge,t4e=P3e,fgr=vDo,XX=vpe,k2e=COo,xpe=PEo,_Ho=hDo,qHo=qge,l3e=c2e,WHo=function(e){var t,n,r,i,o,a,s=cBo(e),e=pBo(this),l=arguments.length,c=1<l?arguments[1]:void 0,d=void 0!==c,l=(d&&(c=sBo(c,2<l?arguments[2]:void 0)),mBo(s)),u=0;if(!l||this===CBo&&uBo(l))for(t=gBo(s),n=e?new this(t):CBo(t);u<t;u++)a=d?c(s[u],u):s[u],fBo(n,u,a);else for(n=e?new this:[],o=(i=hBo(s,l)).next;!(r=lBo(o,i)).done;u++)a=d?dBo(i,c,[r.value,u],!0):r.value,fBo(n,u,a);return n.length=u,n},ZHo=yg,GHo=s4e.codeAt,JHo=function(e){for(var t,n=[],r=BBo(VBo(HBo(e),kBo,"."),"."),i=0;i<r.length;i++)t=r[i],FBo(n,MBo(OBo,t)?"xn--"+(e=>{var t,n=[],r=(e=UBo(e)).length,i=jBo,o=0,a=wBo;for(d=0;d<e.length;d++)(t=e[d])<128&&FBo(n,LBo(t));var s=n.length,l=s;for(s&&FBo(n,SBo);l<r;){for(var c=xBo,d=0;d<e.length;d++)i<=(t=e[d])&&t<c&&(c=t);var u=l+1;if(c-i>PBo((xBo-o)/u))throw new NBo(TBo);for(o+=(c-i)*u,i=c,d=0;d<e.length;d++){if((t=e[d])<i&&++o>xBo)throw new NBo(TBo);if(t===i){for(var p=o,g=vBo;;){var f=g<=a?bBo:a+yBo<=g?yBo:g-a;if(p<f)break;var h=p-f,m=vBo-f;FBo(n,LBo(zBo(f+h%m))),p=PBo(h/m),g+=vBo}FBo(n,LBo(zBo(p))),a=_Bo(o,u,l===s),o=0,l++}}o++,i++}return RBo(n,"")})(t):t);return RBo(n,".")},KHo=MEo,$yi=qNo,YHo=bDo,Cg=acr,M2e=Zge,QHo=M2e.set,XHo=M2e.getterFor("URL"),$Ho=Cg.URLSearchParams,eUo=Cg.getState,P2e=t4e.URL,tUo=t4e.TypeError,nUo=t4e.parseInt,rUo=Math.floor,iUo=Math.pow,oUo=XX("".charAt),aUo=XX(/./.exec),sUo=XX([].join),lUo=XX(1..toString),cUo=XX([].pop),dUo=XX([].push),uUo=XX("".replace),pUo=XX([].shift),gUo=XX("".split),fUo=XX("".slice),hUo=XX("".toLowerCase),mUo=XX([].unshift),CUo="Invalid scheme",xUo="Invalid host",vUo="Invalid port",bUo=/[a-z]/i,yUo=/[\d+-.a-z]/i,AUo=/\d/,IUo=/^0x/i,wUo=/^[0-7]+$/,jUo=/^\d+$/,SUo=/^[\da-f]+$/i,OUo=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kUo=/[\0\t\n\r #/:<>?@[\\\]^|]/,TUo=/^[\u0000-\u0020]+/,EUo=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,NUo=/[\t\n\r]/g,MUo={},PUo=l3e({},MUo,{" ":1,'"':1,"<":1,">":1,"`":1}),LUo=l3e({},PUo,{"#":1,"?":1,"{":1,"}":1}),DUo=l3e({},LUo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),RUo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},FUo={},VUo={},BUo={},HUo={},UUo={},zUo={},_Uo={},qUo={},WUo={},ZUo={},GUo={},JUo={},KUo={},YUo={},QUo={},XUo={},$Uo={},ezo={},tzo={},nzo={},rzo={},izo=(FVo.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s=this,l=t||FUo,c=0,d="",u=!1,p=!1,g=!1;for(e=KHo(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=uUo(e,TUo,""),e=uUo(e,EUo,"$1")),e=uUo(e,NUo,""),r=WHo(e);c<=r.length;){switch(i=r[c],l){case FUo:if(!i||!aUo(bUo,i)){if(t)return CUo;l=BUo;continue}d+=hUo(i),l=VUo;break;case VUo:if(i&&(aUo(yUo,i)||"+"===i||"-"===i||"."===i))d+=hUo(i);else{if(":"!==i){if(t)return CUo;d="",l=BUo,c=0;continue}if(t&&(s.isSpecial()!==qHo(RUo,d)||"file"===d&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=d,t)return void(s.isSpecial()&&RUo[s.scheme]===s.port&&(s.port=null));d="","file"===s.scheme?l=YUo:s.isSpecial()&&n&&n.scheme===s.scheme?l=HUo:s.isSpecial()?l=qUo:"/"===r[c+1]?(l=UUo,c++):(s.cannotBeABaseURL=!0,dUo(s.path,""),l=tzo)}break;case BUo:if(!n||n.cannotBeABaseURL&&"#"!==i)return CUo;if(n.cannotBeABaseURL&&"#"===i){s.scheme=n.scheme,s.path=ZHo(n.path),s.query=n.query,s.fragment="",s.cannotBeABaseURL=!0,l=rzo;break}l="file"===n.scheme?YUo:zUo;continue;case HUo:if("/"!==i||"/"!==r[c+1]){l=zUo;continue}l=WUo,c++;break;case UUo:if("/"===i){l=ZUo;break}l=ezo;continue;case zUo:if(s.scheme=n.scheme,i===zVo)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query=n.query;else if("/"===i||"\\"===i&&s.isSpecial())l=_Uo;else if("?"===i)s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query="",l=nzo;else{if("#"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.path.length--,l=ezo;continue}s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,s.path=ZHo(n.path),s.query=n.query,s.fragment="",l=rzo}break;case _Uo:if(!s.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){s.username=n.username,s.password=n.password,s.host=n.host,s.port=n.port,l=ezo;continue}l=ZUo}else l=WUo;break;case qUo:if(l=WUo,"/"!==i||"/"!==oUo(d,c+1))continue;c++;break;case WUo:if("/"===i||"\\"===i)break;l=ZUo;continue;case ZUo:if("@"===i){u&&(d="%40"+d);for(var u=!0,f=WHo(d),h=0;h<f.length;h++){var m=f[h];":"!==m||g?(m=LVo(m,DUo),g?s.password+=m:s.username+=m):g=!0}d=""}else if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(u&&""===d)return"Invalid authority";c-=WHo(d).length+1,d="",l=GUo}else d+=i;break;case GUo:case JUo:if(t&&"file"===s.scheme){l=XUo;continue}if(":"!==i||p){if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()){if(s.isSpecial()&&""===d)return xUo;if(t&&""===d&&(s.includesCredentials()||null!==s.port))return;if(o=s.parseHost(d))return o;if(d="",l=$Uo,t)return;continue}"["===i?p=!0:"]"===i&&(p=!1),d+=i}else{if(""===d)return xUo;if(o=s.parseHost(d))return o;if(d="",l=KUo,t===JUo)return}break;case KUo:if(!aUo(AUo,i)){if(i===zVo||"/"===i||"?"===i||"#"===i||"\\"===i&&s.isSpecial()||t){if(""!==d){var C=nUo(d,10);if(65535<C)return vUo;s.port=s.isSpecial()&&C===RUo[s.scheme]?null:C,d=""}if(t)return;l=$Uo;continue}return vUo}d+=i;break;case YUo:if(s.scheme="file","/"===i||"\\"===i)l=QUo;else{if(!n||"file"!==n.scheme){l=ezo;continue}switch(i){case zVo:s.host=n.host,s.path=ZHo(n.path),s.query=n.query;break;case"?":s.host=n.host,s.path=ZHo(n.path),s.query="",l=nzo;break;case"#":s.host=n.host,s.path=ZHo(n.path),s.query=n.query,s.fragment="",l=rzo;break;default:RVo(sUo(ZHo(r,c),""))||(s.host=n.host,s.path=ZHo(n.path),s.shortenPath()),l=ezo;continue}}break;case QUo:if("/"===i||"\\"===i){l=XUo;break}n&&"file"===n.scheme&&!RVo(sUo(ZHo(r,c),""))&&(DVo(n.path[0],!0)?dUo(s.path,n.path[0]):s.host=n.host),l=ezo;continue;case XUo:if(i===zVo||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&DVo(d))l=ezo;else{if(""===d){if(s.host="",t)return}else{if(o=s.parseHost(d))return o;if("localhost"===s.host&&(s.host=""),t)return;d=""}l=$Uo}continue}d+=i;break;case $Uo:if(s.isSpecial()){if(l=ezo,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==zVo&&(l=ezo,"/"!==i))continue}else s.fragment="",l=rzo;else s.query="",l=nzo;break;case ezo:if(i===zVo||"/"===i||"\\"===i&&s.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(C=hUo(C=d))||"%2e."===C||".%2e"===C||"%2e%2e"===C?(s.shortenPath(),"/"===i||"\\"===i&&s.isSpecial()||dUo(s.path,"")):"."===(a=d)||"%2e"===hUo(a)?"/"===i||"\\"===i&&s.isSpecial()||dUo(s.path,""):("file"===s.scheme&&!s.path.length&&DVo(d)&&(s.host&&(s.host=""),d=oUo(d,0)+":"),dUo(s.path,d)),d="","file"===s.scheme&&(i===zVo||"?"===i||"#"===i))for(;1<s.path.length&&""===s.path[0];)pUo(s.path);"?"===i?(s.query="",l=nzo):"#"===i&&(s.fragment="",l=rzo)}else d+=LVo(i,LUo);break;case tzo:"?"===i?(s.query="",l=nzo):"#"===i?(s.fragment="",l=rzo):i!==zVo&&(s.path[0]+=LVo(i,MUo));break;case nzo:t||"#"!==i?i!==zVo&&("'"===i&&s.isSpecial()?s.query+="%27":s.query+="#"===i?"%23":LVo(i,MUo)):(s.fragment="",l=rzo);break;case rzo:i!==zVo&&(s.fragment+=LVo(i,PUo))}c++}},parseHost:function(e){var t,n,r;if("["===oUo(e,0))return"]"===oUo(e,e.length-1)&&(t=(e=>{function t(){return oUo(e,p)}var n,r,i,o,a,s,l,c=[0,0,0,0,0,0,0,0],d=0,u=null,p=0;if(":"===t()){if(":"!==oUo(e,1))return;p+=2,u=++d}for(;t();){if(8===d)return;if(":"===t()){if(null!==u)return;p++,u=++d}else{for(n=r=0;r<4&&aUo(SUo,t());)n=16*n+nUo(t(),16),p++,r++;if("."===t()){if(0===r)return;if(p-=r,6<d)return;for(i=0;t();){if(o=null,0<i){if(!("."===t()&&i<4))return;p++}if(!aUo(AUo,t()))return;for(;aUo(AUo,t());){if(a=nUo(t(),10),null===o)o=a;else{if(0===o)return;o=10*o+a}if(255<o)return;p++}c[d]=256*c[d]+o,2!==++i&&4!==i||d++}if(4!==i)return;break}if(":"===t()){if(p++,!t())return}else if(t())return;c[d++]=n}}if(null!==u)for(s=d-u,d=7;0!==d&&0<s;)l=c[d],c[d--]=c[u+s-1],c[u+--s]=l;else if(8!==d)return;return c})(fUo(e,1,-1)))?void(this.host=t):xUo;if(this.isSpecial())return e=JHo(e),aUo(OUo,e)||null===(t=(e=>{var t,n,r,i,o,a,s,l=gUo(e,".");if(l.length&&""===l[l.length-1]&&l.length--,4<(t=l.length))return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,1<i.length&&"0"===oUo(i,0)&&(o=aUo(IUo,i)?16:8,i=fUo(i,8===o?1:2)),""===i)a=0;else{if(!aUo(10===o?jUo:8===o?wUo:SUo,i))return e;a=nUo(i,o)}dUo(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=iUo(256,5-t))return null}else if(255<a)return null;for(s=cUo(n),r=0;r<n.length;r++)s+=n[r]*iUo(256,3-r);return s})(e))?xUo:void(this.host=t);if(aUo(kUo,e))return xUo;for(t="",n=WHo(e),r=0;r<n.length;r++)t+=LVo(n[r],MUo);this.host=t},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return qHo(RUo,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&DVo(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=PVo(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+sUo(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){e=this.parse(e);if(e)throw new tUo(e);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new izo(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+PVo(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(KHo(e)+":",FUo)},getUsername:function(){return this.username},setUsername:function(e){var t=WHo(KHo(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=LVo(t[n],DUo)}},getPassword:function(){return this.password},setPassword:function(e){var t=WHo(KHo(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=LVo(t[n],DUo)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?PVo(e):PVo(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,GUo)},getHostname:function(){var e=this.host;return null===e?"":PVo(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,JUo)},getPort:function(){var e=this.port;return null===e?"":KHo(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=KHo(e))?this.port=null:this.parse(e,KUo))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+sUo(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,$Uo))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=KHo(e))?this.query=null:("?"===oUo(e,0)&&(e=fUo(e,1)),this.query="",this.parse(e,nzo)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""===(e=KHo(e))?this.fragment=null:("#"===oUo(e,0)&&(e=fUo(e,1)),this.fragment="",this.parse(e,rzo))},update:function(){this.query=this.searchParams.serialize()||null}},function(e){var t=_Ho(this,ozo),n=1<YHo(arguments.length,1)?arguments[1]:void 0,e=QHo(t,new FVo(e,!1,n));zHo||(t.href=e.serialize(),t.origin=e.getOrigin(),t.protocol=e.getProtocol(),t.username=e.getUsername(),t.password=e.getPassword(),t.host=e.getHost(),t.hostname=e.getHostname(),t.port=e.getPort(),t.pathname=e.getPathname(),t.search=e.getSearch(),t.searchParams=e.getSearchParams(),t.hash=e.getHash())}),ozo=izo.prototype;zHo&&(xpe(ozo,"href",VVo("serialize","setHref")),xpe(ozo,"origin",VVo("getOrigin")),xpe(ozo,"protocol",VVo("getProtocol","setProtocol")),xpe(ozo,"username",VVo("getUsername","setUsername")),xpe(ozo,"password",VVo("getPassword","setPassword")),xpe(ozo,"host",VVo("getHost","setHost")),xpe(ozo,"hostname",VVo("getHostname","setHostname")),xpe(ozo,"port",VVo("getPort","setPort")),xpe(ozo,"pathname",VVo("getPathname","setPathname")),xpe(ozo,"search",VVo("getSearch","setSearch")),xpe(ozo,"searchParams",VVo("getSearchParams")),xpe(ozo,"hash",VVo("getHash","setHash"))),k2e(ozo,"toJSON",function(){return XHo(this).serialize()},{enumerable:!0}),k2e(ozo,"toString",function(){return XHo(this).serialize()},{enumerable:!0}),P2e&&(Fge=P2e.createObjectURL,Sci=P2e.revokeObjectURL,Fge&&k2e(izo,"createObjectURL",fgr(Fge,P2e)),Sci)&&k2e(izo,"revokeObjectURL",fgr(Sci,P2e)),$yi(izo,"URL"),ige({global:!0,constructor:!0,forced:!o4e,sham:!zHo},{URL:izo});var azo=Fpe,Lpe=(SOo({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return azo(URL.prototype.toString,this)}}),{exports:{}});function szo(){}function lzo(){}lzo.resetWarningCache=szo;function czo(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function dzo(){return czo}Lpe.exports=(Wge={array:czo.isRequired=czo,bigint:czo,bool:czo,func:czo,number:czo,object:czo,string:czo,symbol:czo,any:czo,arrayOf:dzo,element:czo,elementType:czo,instanceOf:dzo,node:czo,objectOf:dzo,oneOf:dzo,oneOfType:dzo,shape:dzo,exact:dzo,checkPropTypes:lzo,resetWarningCache:szo}).PropTypes=Wge;var N3e=Lpe.exports,uzo=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function pzo(e,t){var n,r=(e=>{var t=e.name;return t&&-1!==t.lastIndexOf(".")&&!e.type&&(t=t.split(".").pop().toLowerCase(),t=uzo.get(t))&&Object.defineProperty(e,"type",{value:t,writable:!1,configurable:!1,enumerable:!0}),e})(e);return"string"!=typeof r.path&&(n=e.webkitRelativePath,Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&0<n.length?n:e.name,writable:!1,configurable:!1,enumerable:!0})),r}var gzo=[".DS_Store","Thumbs.db"];function fzo(n){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,n.dataTransfer?function(n,r){return dNo(this,void 0,void 0,function(){var t;return uNo(this,function(e){switch(e.label){case 0:return n.items?(t=mzo(n.items).filter(function(e){return"file"===e.kind}),"drop"!==r?[2,t]:[4,Promise.all(t.map(Czo))]):[3,2];case 1:return[2,hzo(function n(e){return e.reduce(function(e,t){return pNo(e,Array.isArray(t)?n(t):[t])},[])}(e.sent()))];case 2:return[2,hzo(mzo(n.files).map(function(e){return pzo(e)}))]}})})}(n.dataTransfer,n.type):(null!==(t=n).target&&t.target.files?mzo(t.target.files):[]).map(function(e){return pzo(e)})];var t})})}function hzo(e){return e.filter(function(e){return-1===gzo.indexOf(e.name)})}function mzo(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Czo(e){var t;return"function"==typeof e.webkitGetAsEntry&&(t=e.webkitGetAsEntry())&&t.isDirectory?bzo(t):xzo(e)}function xzo(e){var t=e.getAsFile();return t?(t=pzo(t),Promise.resolve(t)):Promise.reject(e+" is not a File")}function vzo(t){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,(t.isDirectory?bzo:function(r){return dNo(this,void 0,void 0,function(){return uNo(this,function(e){return[2,new Promise(function(t,n){r.file(function(e){e=pzo(e,r.fullPath);t(e)},function(e){n(e)})})]})})})(t)]})})}function bzo(e){var t=e.createReader();return new Promise(function(o,a){var s=[];!function i(){var e=this;t.readEntries(function(r){return dNo(e,void 0,void 0,function(){var t,n;return uNo(this,function(e){switch(e.label){case 0:if(r.length)return[3,5];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.all(s)];case 2:return t=e.sent(),o(t),[3,4];case 3:return t=e.sent(),a(t),[3,4];case 4:return[3,6];case 5:n=Promise.all(r.map(vzo)),s.push(n),i(),e.label=6;case 6:return[2]}})})},function(e){a(e)})}()})}var yzo=function(e,t){var n,r,i;return!e||!t||0===(t=Array.isArray(t)?t:t.split(",")).length||(n=e.name||"",r=(e.type||"").toLowerCase(),i=r.replace(/\/.*$/,""),t.some(function(e){e=e.trim().toLowerCase();return"."===e.charAt(0)?n.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):r===e}))};function Azo(e,t){return"application/x-moz-file"===e.type||yzo(e,t)}function Izo(e,t,n){if(wzo(e.size)){if(wzo(t)&&wzo(n))return e.size>=t&&e.size<=n;if(wzo(t))return e.size>=t;if(wzo(n))return e.size<=n}return!0}function wzo(e){return null!=e}function jzo(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Szo(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):e.target&&e.target.files}function Ozo(e){e.preventDefault()}function kzo(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];return function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return i.some(function(e){return!jzo(t)&&e&&e.apply(void 0,[t].concat(n)),jzo(t)})}}function Tzo(e){return(e=>{if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}})(e)||(e=>{if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance")})()}function Ezo(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}})(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance")})()}function Nzo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Mzo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nzo(n,!0).forEach(function(e){Pzo(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nzo(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Pzo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lzo(e,t){if(null==e)return{};var n,r=((e,t)=>{if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(i[n]=e[n]);return i})(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}var CYi=Le.exports.forwardRef(function(e,t){var n=e.children,e=Rzo(Lzo(e,["children"])),r=e.open,e=Lzo(e,["open"]);return Le.exports.useImperativeHandle(t,function(){return{open:r}},[r]),Me.createElement(Le.exports.Fragment,null,n(Mzo({},e,{open:r})))}),Dzo=(CYi.displayName="Dropzone",{isFocused:!(CYi.propTypes={children:N3e.func,accept:N3e.oneOfType([N3e.string,N3e.arrayOf(N3e.string)]),multiple:N3e.bool,preventDropOnDocument:N3e.bool,noClick:N3e.bool,noKeyboard:N3e.bool,noDrag:N3e.bool,noDragEventsBubbling:N3e.bool,minSize:N3e.number,maxSize:N3e.number,disabled:N3e.bool,getFilesFromEvent:N3e.func,onFileDialogCancel:N3e.func,onDragEnter:N3e.func,onDragLeave:N3e.func,onDragOver:N3e.func,onDrop:N3e.func,onDropAccepted:N3e.func,onDropRejected:N3e.func}),isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});function Rzo(e){function t(){F&&setTimeout(function(){T.current&&!T.current.files.length&&(E({type:"closeDialog"}),"function"==typeof I)&&I()},300)}function n(e){k.current&&k.current.contains(e.target)||(e.preventDefault(),P.current=[])}function d(e){return g?null:e}function u(e){return S?null:d(e)}function p(e){return R?null:d(e)}var r,i,o,a,e=0<arguments.length&&void 0!==e?e:{},s=e.accept,l=e.disabled,g=void 0!==l&&l,l=e.getFilesFromEvent,c=void 0===l?fzo:l,l=e.maxSize,f=void 0===l?1/0:l,l=e.minSize,h=void 0===l?0:l,l=e.multiple,m=void 0===l||l,C=e.onDragEnter,x=e.onDragLeave,v=e.onDragOver,b=e.onDrop,y=e.onDropAccepted,A=e.onDropRejected,I=e.onFileDialogCancel,l=e.preventDropOnDocument,w=void 0===l||l,l=e.noClick,j=void 0!==l&&l,l=e.noKeyboard,S=void 0!==l&&l,l=e.noDrag,R=void 0!==l&&l,l=e.noDragEventsBubbling,O=void 0!==l&&l,k=Le.exports.useRef(null),T=Le.exports.useRef(null),e=Ezo(Le.exports.useReducer(Fzo,Dzo),2),l=e[0],E=e[1],e=l.isFocused,F=l.isFileDialogActive,N=l.draggedFiles,M=Le.exports.useCallback(function(){T.current&&(E({type:"openDialog"}),T.current.value=null,T.current.click())},[E]),V=(Le.exports.useEffect(function(){return window.addEventListener("focus",t,!1),function(){window.removeEventListener("focus",t,!1)}},[T,F,I]),Le.exports.useCallback(function(e){k.current&&k.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),M()))},[k,T])),B=Le.exports.useCallback(function(){E({type:"focus"})},[]),H=Le.exports.useCallback(function(){E({type:"blur"})},[]),U=Le.exports.useCallback(function(){j||(!function(e){var t,e=0<arguments.length&&void 0!==e?e:window.navigator.userAgent;return-1!==(t=e).indexOf("MSIE")||-1!==t.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?M():setTimeout(M,0))},[T,j]),P=Le.exports.useRef([]),z=(Le.exports.useEffect(function(){return w&&(document.addEventListener("dragover",Ozo,!1),document.addEventListener("drop",n,!1)),function(){w&&(document.removeEventListener("dragover",Ozo),document.removeEventListener("drop",n))}},[k,w]),Le.exports.useCallback(function(t){t.preventDefault(),t.persist(),D(t),-1===P.current.indexOf(t.target)&&(P.current=[].concat(Tzo(P.current),[t.target])),Szo(t)&&Promise.resolve(c(t)).then(function(e){jzo(t)&&!O||(E({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),C&&C(t))})},[c,C,O])),_=Le.exports.useCallback(function(e){if(e.preventDefault(),e.persist(),D(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return Szo(e)&&v&&v(e),!1},[v,O]),q=Le.exports.useCallback(function(t){t.preventDefault(),t.persist(),D(t);var e=P.current.filter(function(e){return e!==t.target&&k.current&&k.current.contains(e)});0<(P.current=e).length||(E({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Szo(t)&&x&&x(t))},[k,x,O]),L=Le.exports.useCallback(function(r){r.preventDefault(),r.persist(),D(r),P.current=[],Szo(r)&&Promise.resolve(c(r)).then(function(e){var t,n;jzo(r)&&!O||(t=[],n=[],e.forEach(function(e){(Azo(e,s)&&Izo(e,h,f)?t:n).push(e)}),!m&&1<t.length&&n.push.apply(n,Tzo(t.splice(0))),E({acceptedFiles:t,rejectedFiles:n,type:"setFiles"}),b&&b(t,n,r),0<n.length&&A&&A(n,r),0<t.length&&y&&y(t,r))}),E({type:"reset"})},[m,s,h,f,c,b,y,A,O]),D=function(e){O&&e.stopPropagation()},W=Le.exports.useMemo(function(){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,t=void 0===t?"ref":t,n=e.onKeyDown,r=e.onFocus,i=e.onBlur,o=e.onClick,a=e.onDragEnter,s=e.onDragOver,l=e.onDragLeave,c=e.onDrop,e=Lzo(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return Mzo(Pzo({onKeyDown:u(kzo(n,V)),onFocus:u(kzo(r,B)),onBlur:u(kzo(i,H)),onClick:d(kzo(o,U)),onDragEnter:p(kzo(a,z)),onDragOver:p(kzo(s,_)),onDragLeave:p(kzo(l,q)),onDrop:p(kzo(c,L))},t,k),g||S?{}:{tabIndex:0},{},e)}},[k,V,B,H,U,z,_,q,L,S,R,g]),Z=Le.exports.useCallback(function(e){e.stopPropagation()},[]),G=Le.exports.useMemo(function(){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,t=void 0===t?"ref":t,n=e.onChange,r=e.onClick,e=Lzo(e,["refKey","onChange","onClick"]);return Mzo({},Pzo({accept:s,multiple:m,type:"file",style:{display:"none"},onChange:d(kzo(n,L)),onClick:d(kzo(r,Z)),autoComplete:"off",tabIndex:-1},t,T),{},e)}},[T,s,m,L,g]),J=N.length,N=0<J&&(r=(N={files:N,accept:s,minSize:h,maxSize:f,multiple:m}).files,i=N.accept,o=N.minSize,a=N.maxSize,!(!N.multiple&&1<r.length))&&r.every(function(e){return Azo(e,i)&&Izo(e,o,a)});return Mzo({},l,{isDragAccept:N,isDragReject:0<J&&!N,isFocused:e&&!g,getRootProps:W,getInputProps:G,rootRef:k,inputRef:T,open:d(M)})}function Fzo(e,t){switch(t.type){case"focus":return Mzo({},e,{isFocused:!0});case"blur":return Mzo({},e,{isFocused:!1});case"openDialog":return Mzo({},e,{isFileDialogActive:!0});case"closeDialog":return Mzo({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive;return Mzo({},e,{draggedFiles:t.draggedFiles,isDragActive:n});case"setFiles":return Mzo({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return Mzo({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return e}}let Vzo=({accept:e,multiple:t,onDropAccepted:r})=>{let n=Ie();var i=Ae(AG);let o=XW(i);return Rzo({accept:e,multiple:t,onDropAccepted:n=>dNo(void 0,void 0,void 0,function*(){var e=n[0],t={id:zO(),name:e.name,previewUrl:URL.createObjectURL(e),size:e.size,type:e.type};yield null==r?void 0:r(e,t)}),onDropRejected:()=>{var e,t="Invalid file type. Please upload a PDF or text file.";n(F({content:"development"!=="production"&&null!=(e=o({id:"os-admin-center-registration.snackbar.invalid-file-type",defaultMessage:[{type:0,value:"Invalid file type. Please upload a PDF or text file."}]}))?e:t,severity:R.Error}))}})},Bzo=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/,Hzo=e=>Bzo.test(e)||"Please enter a valid URL",Uzo=()=>{let r=Ie(),i=Ae(YG);var e=Ae(AG);let o=XW(e),{setValue:a,watch:t}=LCe(),{control:n,formState:{errors:s},setValue:l}=qxe({defaultValues:{privacyPolicyUrl:""},mode:"onChange"}),c=t("files");e=c.find(e=>e.type===UEo.terms_of_service&&"active"===e.status);let{getInputProps:d,open:u}=Vzo({accept:["application/pdf","text/plain"],multiple:!1,onDropAccepted:(t,n)=>dNo(void 0,void 0,void 0,function*(){try{var e=yield function(t,n){return dNo(this,void 0,void 0,function*(){var e="getSignedWritableUrl";return(yield H(Object.assign({query:"query getSignedWritableUrl($name: String!) {\n getSignedWritableUrl(key: $name) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{name:n},operationName:e},t)))[e]})}(i,n.name);if(!(yield fetch(e.url,{method:"PUT",body:t,headers:{"Content-Type":t.type}})).ok)throw new Error("Failed to upload file");a("files",[{name:t.name,url:e.unsignedUrl,type:UEo.terms_of_service},...c])}catch(e){r(F({content:"development"==="production"?"File upload failed. Please try again.":o({id:"os-admin-center-registration.snackbar.upload-failed",defaultMessage:[{type:0,value:"File upload failed. Please try again."}]}),severity:R.Error}))}})});return Le.exports.useEffect(()=>{var e=c.find(e=>e.type===UEo.privacy_policy&&e.status===zEo.active);e&&l("privacyPolicyUrl",e.url)},[c,l]),nt.exports.jsxs(_,Object.assign({sx:{height:"100%"},p:4,gap:6},{children:[nt.exports.jsx(_,Object.assign({gap:2},{children:nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.description()}))})),nt.exports.jsx(_,Object.assign({gap:2,direction:"row",justifyContent:"space-between",alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"500px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.legalInfo.termsOfServiceTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.termsOfServiceDescription()})),nt.exports.jsxs(be,Object.assign({sx:{pt:2}},{children:[nt.exports.jsx(ge,Object.assign({"data-testid":"os-admin-center-registration.form.legal-info.terms-of-service-upload",variant:"outlined",size:"large",disabled:!!e,onClick:()=>u()},{children:iNo.form.legalInfo.termsOfServiceUploadButton()})),nt.exports.jsx("input",Object.assign({},d(),{style:{display:"none"}}))]}))]}))})),nt.exports.jsx(_,Object.assign({gap:.5,divider:nt.exports.jsx(se,{})},{children:c&&0<c.length&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(_,Object.assign({gap:6,direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"& > p":{p:2,fontSize:"14px",fontWeight:"bold"}}},{children:nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.fileName()}))})),c.map((e,t)=>{var n;return e.type!==UEo.terms_of_service?null:(n=(null==e?void 0:e.status)===zEo.active||!e.status,nt.exports.jsxs(_,Object.assign({gap:1,direction:"row",alignItems:"center",justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({gap:6,direction:"row",alignItems:"center",justifyContent:"space-between",sx:{"& > p":{p:2,fontSize:"14px","& > span":{ml:1,fontSize:"14px"}}}},{children:[nt.exports.jsxs(pe,Object.assign({variant:"body1",width:"300px",noWrap:!0},{children:[""+((null==e?void 0:e.name)||"--"),nt.exports.jsx(pe,Object.assign({variant:"caption",component:"span"},{children:n?"(latest)":""}))]})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:(null==e?void 0:e.status)||"pending"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({"data-testid":"os-admin-center-registration.form.legal-info.terms-of-service-remove",disabled:e.status===zEo.inactive,onClick:()=>{var n,e;n=t,e=c.map((e,t)=>t===n&&e.status?Object.assign(Object.assign({},e),{status:zEo.inactive}):e).filter(Boolean),a("files",e)},size:"small"},{children:nt.exports.jsx(T2e,{})}))})]}),e.url))})]})})),nt.exports.jsx(_,Object.assign({gap:2,direction:"row",justifyContent:"space-between",alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"500px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.legalInfo.privacyPolicyTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.legalInfo.privacyPolicyDescription()}))]}))})),nt.exports.jsx(JCe,{name:"privacyPolicyUrl",control:n,rules:{validate:e=>!0===Hzo(e)||"Please enter a valid URL"},render:({field:n})=>{var e;return nt.exports.jsx(gw,Object.assign({},n,{fullWidth:!0,label:"Privacy Policy URL",placeholder:"https://example.com/privacy-policy",error:!!s.privacyPolicyUrl,helperText:null==(e=s.privacyPolicyUrl)?void 0:e.message,onChange:e=>{var t;n.onChange(e),e=e.target.value,t=c.filter(e=>e.type!==UEo.privacy_policy),e&&t.push({url:e,name:"Privacy Policy",type:UEo.privacy_policy}),a("files",t)},"data-testid":aNo+".form.legal-info.privacy-policy-url"}))}})]}))};function zzo(c){return function(e,t,n,r){var i=Wzo(e),o=Zzo(i),a=Gzo(i);if(qzo(t),0===a&&n<2)throw new Jzo(Kzo);var s=c?a-1:0,l=c?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw new Jzo(Kzo)}for(;c?0<=s:s<a;s+=l)s in o&&(r=t(r,o[s],s,i));return r}}var _zo,qzo=aOo,Wzo=dOo,Zzo=O0e,Gzo=yOo,Jzo=TypeError,Kzo="Reduce of empty array with no initial value",U0e={left:zzo(!1),right:zzo(!0)},Yzo=QSo,S3e=SOo,Qzo=U0e.left;S3e({target:"Array",proto:!0,forced:!Npe&&79<ken&&ken<83||!function(e,t){var n=[][e];return!!n&&Yzo(function(){n.call(null,t||function(){return 1},1)})}("reduce")},{reduce:function(e){var t=arguments.length;return Qzo(this,e,t,1<t?arguments[1]:void 0)}});let Xzo=()=>{let n=Ie(),r=Ae(EY),i=Ae(UIt);return({onSave:e,initialData:t})=>{n(yse({panelId:V.USER_ACCESS_PANEL,microFrontend:{name:V.USER_ACCESS_PANEL,config:{orgId:i,initialData:t,onSave:e}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"medium",parentPanelId:V.ADMIN_CENTER_CUSTOM_REGISTRATION_PANEL,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))}},$zo={p:.5,paddingBottom:"3px",width:"fit-content",borderRadius:"30px",height:"34px",bgcolor:"rgba(0, 0, 0, 0.1)",display:"flex",gap:.5,["& ."+bw.grouped]:{border:0,textTransform:"capitalize",borderRadius:"30px",fontSize:"12px","&:not(:last-of-type)":{borderTopRightRadius:"30px",borderBottomRightRadius:"30px"},"&:not(:first-of-type)":{borderTopLeftRadius:"30px",borderBottomLeftRadius:"30px"},"&.Mui-selected":{color:"black",bgcolor:"#FFF","&:hover":{bgcolor:"#FFF"}},"&:hover":{bgcolor:"rgba(255, 255, 255, 0.5)"}}},e_o=({orgId:n})=>{let r=Ie(),e=Xzo();var t=Ae(rPo.appRoles.selectItems),i=Ae(rPo.authGroups.selectItems);let[o,a]=Le.exports.useState(null),{register:s,control:l,watch:c,setError:d,clearErrors:u,trigger:p,setValue:g}=LCe();var f=c("openRegistrationStatus");let h=c("domainSettings",[]),m=()=>{h&&0!==h.length?h.some(e=>0===e.applicationRoleIds.length)?(a("At least one product role is required for each domain"),d("domainSettings",{message:"At least one product role is required for each domain"})):(a(null),u("domainSettings"),p("domainSettings")):(a("At least one domain setting is required"),d("domainSettings",{message:"At least one domain setting is required"}))};return Le.exports.useEffect(()=>{m()},[h,f]),Le.exports.useEffect(()=>{var e,t;0<h.length&&(e=h.map(e=>e.authGroupId).filter(e=>!we.exports.isEmpty(e)),t=h.reduce((e,t)=>(e.push(...t.applicationRoleIds),e),[]),e&&0<e.length&&r(nPo.authGroups.readStart({orgId:n,authGroupIds:e})),t)&&0<t.length&&r(nPo.appRoles.readStart({orgId:n,roleIds:t}))},[r,h]),Le.exports.useEffect(()=>{s("domainSettings",{required:!0,validate:e=>0<e.length&&e.every(e=>0<e.applicationRoleIds.length)})},[s]),nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".user-access-step",sx:{height:"100%"},p:4,gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.description()})),nt.exports.jsx(JCe,{name:"openRegistrationStatus",render:({field:n})=>nt.exports.jsxs(Iw,Object.assign({},n,{exclusive:!0,onChange:(e,t)=>{t&&(n.onChange(t),g("domainSettings",[]))},value:n.value,sx:$zo},{children:[nt.exports.jsx(xw,Object.assign({value:"open","data-testid":aNo+".open-registration-toggle-open"},{children:iNo.form.userAccess.openRegistration()})),nt.exports.jsx(xw,Object.assign({value:"restricted","data-testid":aNo+".open-registration-toggle-restricted"},{children:iNo.form.userAccess.allowlistOnly()}))]}))}),"open"===f&&nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.openRegistrationDescription()})),nt.exports.jsx("div",{children:nt.exports.jsx(ge,Object.assign({variant:"outlined",color:"primary",size:"large","data-testid":aNo+".choose-user-access-button",onClick:()=>{e({initialData:null!=h&&h[0]?{authGroupId:h[0].authGroupId,roleIds:h[0].applicationRoleIds}:void 0,onSave:(e,t)=>{h.length<=0?g("domainSettings",[{domainName:"",authGroupId:""===e.authGroupId?null:e.authGroupId,applicationRoleIds:Object.values(e.roles)}]):g("domainSettings[0]",{authGroupId:""===e.authGroupId?null:e.authGroupId,applicationRoleIds:Object.values(e.roles)}),m(),t()}})}},{children:iNo.form.userAccess.chooseUserAccess()}))}),nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.openRegistrationGroupDescription()})),nt.exports.jsx(n_o,{authGroups:i,apps:t,domainSettings:h}),o&&nt.exports.jsx(pe,Object.assign({color:"error","data-testid":aNo+".error-message"},{children:o}))]}))]})),"restricted"===f&&nt.exports.jsxs(_,Object.assign({gap:4},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.restrictedRegistrationDescription()})),nt.exports.jsx(t_o,{authGroups:i,apps:t,domainSettings:h,validateDomainSettings:m}),o&&nt.exports.jsx(pe,Object.assign({color:"error","data-testid":aNo+".error-message"},{children:o}))]})),nt.exports.jsxs(_,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({gap:1,maxWidth:"80%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:iNo.form.userAccess.adminApprovalTitle()})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:iNo.form.userAccess.adminApprovalDescription()}))]})),nt.exports.jsx(JCe,{name:"adminApprovalRequired","data-test":aNo+".form-input","data-testid":aNo+".form-input-adminApprovalRequired",control:l,defaultValue:!1,render:({field:t})=>nt.exports.jsx(SA,{checked:t.value,onChange:e=>t.onChange(e.target.checked),inputProps:{"aria-label":"Admin Approval Required"},"data-testid":aNo+".admin-approval-switch"})})]}))]}))},t_o=({apps:r,domainSettings:i,validateDomainSettings:o})=>{let a=LCe().setValue,{control:e,handleSubmit:t,formState:{errors:n,isValid:s},setValue:l,clearErrors:c}=qxe({mode:"onChange",defaultValues:{domain:""}}),d=Xzo(),u=(r,e)=>{d({initialData:e,onSave:(e,t)=>{var n=Object.values(e.roles);a(`domainSettings[${r}].authGroupId`,""===e.authGroupId?null:e.authGroupId),a(`domainSettings[${r}].applicationRoleIds`,n),null!=o&&o(),t()}})},p=e=>{e={domainName:null==(e=e.domain)?void 0:e.toLowerCase(),authGroupId:null,applicationRoleIds:[]};a("domainSettings",[...i,e]),l("domain",""),c("domain")};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("form",Object.assign({onSubmit:t(p)},{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"baseline"},{children:[nt.exports.jsx(JCe,{name:"domain",control:e,rules:{validate:t=>""!==t&&(!i.some(e=>e.domainName===t.toLowerCase())||"Domain already exists"),pattern:{value:/^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}$/,message:"Invalid domain format"}},render:({field:e})=>nt.exports.jsx(gw,Object.assign({},e,{fullWidth:!0,"data-testid":aNo+".domain-input",placeholder:'Add a domain name (e.g. "example.com")',error:!!n.domain,helperText:null==(e=n.domain)?void 0:e.message,onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),t(p)())}}))}),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({type:"submit",disabled:!s,"data-testid":aNo+".add-domain-button"},{children:nt.exports.jsx(Vue,{})}))})]}))})),0<i.length&&nt.exports.jsxs(_,Object.assign({gap:.5},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Domain"})),i.map((e,n)=>{var t=0<e.applicationRoleIds.length;return nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:1,p:2,alignItems:"center",bgcolor:"#F5F5F5",justifyContent:"space-between",width:"100%"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",noWrap:!0,width:"170px"},{children:e.domainName})),t?nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(X8,Object.assign({max:4,sx:{"& .MuiAvatar-root":{width:"20px",height:"20px",fontSize:"12px",border:"1px solid #F5F5F5",marginLeft:"unset",color:"#5C6269"}}},{children:e.applicationRoleIds.map((t,e)=>{var n=r.find(e=>e.roles.some(e=>e.id===t));return nt.exports.jsx(W8,Object.assign({src:null==n?void 0:n.icon,sx:{bgcolor:"primary.main",marginLeft:"-8px !important",color:"white !important"}},{children:null!=(n=null==n?void 0:n.label[0])?n:"--"}),e)})})),nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",size:"small",onClick:()=>u(n,{authGroupId:e.authGroupId,roleIds:e.applicationRoleIds}),"data-testid":aNo+".edit-user-access-button-"+n},{children:"Edit User Access"}))]}):nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",size:"small",onClick:()=>u(n),"data-testid":aNo+".add-user-access-button-"+n},{children:"Add User Access"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{a("domainSettings",i.filter((e,t)=>t!==n))},"data-testid":aNo+".delete-domain-button-"+n},{children:nt.exports.jsx(T2e,{})}))})]}),n)})]}))]})},n_o=({authGroups:e,apps:o,domainSettings:a})=>{let t,s=LCe();var n=null!=(t=a[0])?t:void 0;let r=null==n?void 0:n.authGroupId;e=e.find(e=>e.id===r);return nt.exports.jsxs(nt.exports.Fragment,{children:[e&&nt.exports.jsxs(_,Object.assign({gap:.5},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Group"})),nt.exports.jsx(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:nt.exports.jsxs(_,Object.assign({direction:"row",gap:4,p:2,alignItems:"center",bgcolor:"#F5F5F5",width:"100%"},{children:[nt.exports.jsx(bpe,{}),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:e.name}))]}))}))]})),nt.exports.jsx(_,Object.assign({gap:.5},{children:void 0!==n&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center",justifyContent:"space-between",maxWidth:"610px"},{children:[nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px"},{children:"Product"})),nt.exports.jsx(pe,Object.assign({variant:"body1",fontSize:"12px",pr:28},{children:"Role"}))]})),n.applicationRoleIds.map((t,n)=>{var e,r=o.find(e=>e.roles.some(e=>e.id===t)),i=null==r?void 0:r.roles.find(e=>e.id===t);return nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",p:2,alignItems:"center",bgcolor:"#F5F5F5",width:"100%",justifyContent:"space-between"},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsx(W8,Object.assign({src:null==r?void 0:r.icon,sx:{bgcolor:"primary.main",width:"24px",height:"24px",fontSize:"12px"}},{children:null!=(e=null==r?void 0:r.label[0])?e:"--"})),nt.exports.jsx(pe,Object.assign({variant:"body1"},{children:null!=(e=null==r?void 0:r.label)?e:"--"}))]})),nt.exports.jsx(pe,Object.assign({variant:"body1",pr:7},{children:null!=(r=null==i?void 0:i.name)?r:"--"}))]})),nt.exports.jsx("div",{children:nt.exports.jsx(ue,Object.assign({"data-testid":aNo+".delete-product-button",onClick:()=>{s.setValue("domainSettings",a.map(e=>Object.assign(Object.assign({},e),{applicationRoleIds:e.applicationRoleIds.filter((e,t)=>t!==n)})))}},{children:nt.exports.jsx(T2e,{})}))})]}))})]})}))]})},r_o=()=>{let{setValue:t,watch:e}=LCe();var n=e("uiSettings.customRegistrationFields");return nt.exports.jsxs(_,Object.assign({"data-testid":aNo+".form-appearance",sx:{height:"100%"},p:4,gap:3},{children:[nt.exports.jsxs(_,Object.assign({direction:"row",gap:2,alignItems:"center"},{children:[nt.exports.jsx(pe,Object.assign({variant:"h6"},{children:iNo.form.formBuilder.description()})),nt.exports.jsx(e8,{label:"Optional",variant:"outlined",color:"info",size:"small"})]})),nt.exports.jsx(pqe,{initialSchema:n,EmptyState:{description:"Drag in Building Blocks from the left to craft a new Registration Template"},onSchemaChange:e=>{t("uiSettings.customRegistrationFields",e)}})]}))},i_o=({fields:e})=>nt.exports.jsxs(_,Object.assign({sx:{p:4,height:"100%"},justifyContent:"space-between"},{children:[nt.exports.jsxs(_,{children:[nt.exports.jsx(ye,{variant:"rectangular",width:"100%",height:86}),nt.exports.jsx(be,Object.assign({sx:{my:8}},{children:e.map((e,t)=>nt.exports.jsx(be,Object.assign({sx:{mb:4}},{children:nt.exports.jsx(ye,{variant:"rectangular",width:e.width||"100%",height:"multiline"===e.type?100:56,sx:{mt:1}})}),t))}))]}),nt.exports.jsxs(be,Object.assign({sx:{mt:4,display:"flex",justifyContent:"space-between"}},{children:[nt.exports.jsx(be,{children:nt.exports.jsx(ye,{variant:"rectangular",width:100,height:36,sx:{display:"inline-block"}})}),nt.exports.jsx(ye,{variant:"rectangular",width:100,height:36})]}))]})),{header:o_o,container:a_o}=((s0e=_zo=_zo||{})[s0e.BASIC_INFO=1]="BASIC_INFO",s0e[s0e.LEGAL=2]="LEGAL",s0e[s0e.USER_ACCESS=3]="USER_ACCESS",s0e[s0e.FORM_BUILDER=4]="FORM_BUILDER",s0e[s0e.APPERANCE=5]="APPERANCE",C2e),s_o=({id:e,orgId:t})=>{let n,r=Ie();var i=Ae(EY);let o=Ae(rPo.registrationWizard.selectActiveStep),a=Ae(rPo.registrationWizard.selectWizard),s=Ae(rPo.registrationWizard.selectItem);var l=Ae(rPo.registrationWizard.selectReadStatus);let c=Ae(rPo.registrationWizard.selectCreateStatus),d=Ae(rPo.registrationWizard.selectUpdateStatus);var u=Ae(UIt),p=Ae(CG),t=""+(null!=(n=null!=t?t:u)?n:p);let g=qxe({mode:"onChange",defaultValues:a}),{trigger:f,getValues:h,watch:m,formState:{isValid:C}}=g,x=m(),v=!!e;var u="pending"===l,p="pending"===c||"pending"===d,l=[{step:_zo.BASIC_INFO,label:"Basic Info",component:nt.exports.jsx(pDo,{isEditMode:v})},{step:_zo.LEGAL,label:"Legal",component:nt.exports.jsx(Uzo,{})},{step:_zo.USER_ACCESS,label:"User Access",component:nt.exports.jsx(e_o,{orgId:t})},{step:_zo.FORM_BUILDER,label:"Form Builder",component:nt.exports.jsx(r_o,{})},{step:_zo.APPERANCE,label:"Apperance",component:nt.exports.jsx(gDo,{})}],t=Le.exports.useMemo(()=>v?C&&!TL(s,x):C,[C,v,s,x]),b=Le.exports.useMemo(()=>{switch(o){case _zo.BASIC_INFO:return[{type:"short",width:"100%"}];case _zo.LEGAL:return[{type:"long",width:"100%"},{type:"multiline",width:"100%"}];default:return[{type:"short",width:"100%"},{type:"short",width:"100%"}]}},[o]),y=Le.exports.useCallback(t=>dNo(void 0,void 0,void 0,function*(){var e;0!==t&&(yield f())&&(e=h(),r(nPo.registrationWizard.setWizard(CNr(a,e))),r(nPo.registrationWizard.setActiveStep(t)))}),[r,h,f,a]);let A=Le.exports.useCallback(()=>{r(nPo.registrationWizard.updateResetStatus()),r(nPo.registrationWizard.readResetStatus()),r(wse(lNo))},[r]);var I=Le.exports.useCallback(()=>{var e=h();console.log("formData",e),v?r(nPo.registrationWizard.updateStart(e)):r(nPo.registrationWizard.createStart(e))},[r,h,v]);return Le.exports.useEffect(()=>{s&&0<Object.keys(s).length&&g.reset(s)},[s]),Le.exports.useEffect(()=>{"success"!==c&&"success"!==d||A()},[c,d,A]),Le.exports.useEffect(()=>{v&&r(nPo.registrationWizard.readStart(e))},[r,e,v]),nt.exports.jsxs(a_o,Object.assign({testId:sNo+"-panel-container",panelId:lNo,isFullScreen:i},{children:[nt.exports.jsx(o_o,{testId:sNo+"-panel-header",title:v?iNo.panel.editTitle():iNo.panel.createTitle(),onPanelClose:A}),u?nt.exports.jsx(i_o,{fields:b}):nt.exports.jsx(DCe,Object.assign({},g,{children:nt.exports.jsx(V6e,{entityId:e,enableTabs:v,sessionKey:"customLoginRegistration",idPrefix:sNo+"-wizard",panelName:lNo,steps:l.map(e=>e.label),stepContent:l.map(e=>e.component),onResumeSession:e=>{console.log("session",e)},BodySx:v?{p:2,bgcolor:"#F5F5F5","& #body-container":{bgcolor:"#FFF",borderRadius:"6px"}}:{},FooterSx:v?{bgcolor:"#F5F5F5"}:{},customFinalStepButtons:[nt.exports.jsx(ije,Object.assign({"data-test":`${sNo}-${v?"save":"submit"}-button`,variant:"contained",color:"primary",disabled:!t,onClick:I,loading:p},{children:nt.exports.jsx(Ce,{id:"{testId}.{idPrefix}-app-button",defaultMessage:"{verb}",description:"{verb} app button text",values:{testId:sNo,idPrefix:v?"save":"submit",verb:v?"Save":"Submit"}})}))],onActiveStepChange:y,nextButtonDisabled:!t})}))]}))};var l_o,c_o,d_o=Object.freeze({__proto__:null,CustomRegistrationPanel:e=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[aPo()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(s_o,{id:e.id,orgId:e.orgId})})}))})}),CustomRegistrationTab:qPo});(ttn=l_o=l_o||{}).users="users",ttn.packages="packages",ttn.permissionSets="permissionSets",ttn.accessControl="accessControl",ttn.groups="groups",ttn.apiTokens="apiTokens",ttn.iam="iam",ttn.systemInfo="systemInfo",ttn.approvals="approvals",ttn.orgSettings="orgSettings",ttn.retentionPolicy="retentionPolicy",ttn.customLogin="customLogin",ttn.customIntegration="customIntegration",ttn.customRegistration="customRegistration",ttn.appSettings="appSettings",ttn.auditLogs="auditLogs",(l4e=c_o=c_o||{}).NONE="none",l4e.PERMISSIONS="permissions",l4e.SECURITY="security";let u_o="adminCenterBrowse",p_o="browseDetail";var E2e={enableRBACFeature:"disabled",engineApprovalWhiteListed:"disabled",retentionCleanup:"disabled",retentionDays:30,defaultApplication:"",automaticPackageCreation:"disabled",useEngineGrant:"disabled",useAppGrant:"disabled",remainingBudget:500,isLimitEnforced:!(l4e.SETTINGS="settings"),seatLimit:"",adminSeatLimit:""},fpe={isFullScreen:!1,isNavExpanded:!0,activeView:l_o.users,hiddenViews:[l_o.apiTokens],navGroupOpenState:{},status:"idle",olpFeature:"disabled",orgSettings:{hasLocalChanges:!1,loadingStatus:"idle",saveStatus:"idle",editMode:{orgName:!1,orgLogoUrl:!1},initialOrgName:"",initialOrgLogoUrl:"",orgName:"",orgLogoUrl:"",logoUploadState:void 0,initialFeatures:E2e,features:E2e},organization:{id:0,guid:"",name:"",status:"active",isUsersCurrentOrg:!1},applications:[],applicationsStatus:"idle",deactivateOrganizationStatus:"idle"},g_o=LT({name:u_o+"/"+p_o,initialState:fpe,reducers:{setHiddenView(e,{payload:t}){let{view:n,isHidden:r}=t;r?-1===e.hiddenViews.indexOf(n)&&e.hiddenViews.push(n):e.hiddenViews=e.hiddenViews.filter(e=>e!==n)},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},toggleNavGroupOpened(e,t){t=t.payload;e.navGroupOpenState[t]=!e.navGroupOpenState[t]},toggleNavExpanded(e){e.isNavExpanded=!e.isNavExpanded},setActiveView(e,t){e.activeView=t.payload},fetchOlpAvailabilityStart(e){e.status="loading"},fetchOlpAvailabilitySuccess(e,t){e.status="success",e.olpFeature=t.payload},fetchOlpAvailabilityFailure(e){e.status="failure"},updateOrgSettingsStart(e){e.orgSettings.saveStatus="pending"},updateOrgSettingsSuccess(e){e.orgSettings.saveStatus="idle",e.orgSettings.hasLocalChanges=!1,e.orgSettings.editMode.orgName=!1,e.orgSettings.editMode.orgLogoUrl=!1,e.orgSettings.initialOrgName=e.orgSettings.orgName,e.orgSettings.initialOrgLogoUrl=e.orgSettings.orgLogoUrl,e.orgSettings.initialFeatures=e.orgSettings.features},updateOrgSettingsFailure(e){e.orgSettings.saveStatus="idle"},setOrgSettingsEditMode(e,t){var{key:t,value:n}=t.payload;e.orgSettings.editMode[t]=n},undoOrgSettingsChanges(e){e.orgSettings.orgName=e.orgSettings.initialOrgName,e.orgSettings.orgLogoUrl=e.orgSettings.initialOrgLogoUrl,e.orgSettings.features=e.orgSettings.initialFeatures,e.orgSettings.hasLocalChanges=!1},fetchOrgSettingsStart(e){e.orgSettings.loadingStatus="pending"},fetchOrgSettingsSuccess(e,t){var{organizationName:t,organizationImageUrl:n,organizationStatus:r,jsondata:i}=t.payload,r=(e.orgSettings.orgName=t,e.orgSettings.orgLogoUrl=n,e.orgSettings.initialOrgName=t,e.orgSettings.initialOrgLogoUrl=n,e.organization.status=r,Object.assign(Object.assign(Object.assign({},e.orgSettings.features),i.features||{}),{engineApprovalWhiteListed:(null==i?void 0:i.engineApprovalWhiteListed)||(null==(t=null==i?void 0:i.features)?void 0:t.engineApprovalWhiteListed)||"disabled",useAppGrant:i.features.automaticPackageCreation,useEngineGrant:i.features.automaticPackageCreation,retentionDays:null!=(n=i.features)&&n.retentionDays&&0===(null==(r=i.features)?void 0:r.retentionDays)?30:i.features.retentionDays,isLimitEnforced:null!=(t=null==i?void 0:i.isLimitEnforced)&&t,remainingBudget:null!=(n=null==i?void 0:i.remainingBudget)?n:500}));null!=i&&i.seatLimit&&(r.seatLimit=i.seatLimit),null!=i&&i.adminSeatLimit&&(r.adminSeatLimit=i.adminSeatLimit),e.orgSettings.initialFeatures=r,e.orgSettings.features=r,e.orgSettings.loadingStatus="success"},fetchOrgSettingsFailure(e){e.orgSettings.loadingStatus="failure"},setOrgSettingsFeature(e,t){var n,{keys:t,value:r}=t.payload;let i=e.orgSettings.features;for(n of t)i=YNn(i,n,r);e.orgSettings.features=i;t=!TL(e.orgSettings.initialFeatures,e.orgSettings.features);e.orgSettings.hasLocalChanges=t},setSettingsChanged(e,t){e.orgSettings.hasLocalChanges=t.payload},setSettingsChangeName(e,t){e.orgSettings.orgName=t.payload},setSettingsChangeLogoUrl(e,t){var n;e.orgSettings.orgLogoUrl=(null==(n=null==t?void 0:t.payload)?void 0:n.getUrl)||"",e.orgSettings.logoUploadState=t.payload},setSettingsChangeInitialValues(e,t){var{name:t,logo:n}=t.payload;e.orgSettings.initialOrgName=t,e.orgSettings.initialOrgLogoUrl=n},setAdminCenterOrganization(e,t){e.organization=t.payload},deactivateOrganizationInit(e){e.deactivateOrganizationStatus="pending"},deactivateOrganizationSuccess(e){e.deactivateOrganizationStatus="success"},deactivateOrganizationFailure(e){e.deactivateOrganizationStatus="failure"},fetchApplicationsInit:e=>{e.applicationsStatus="pending"},fetchApplicationsSuccess:(e,t)=>{e.applications=t.payload,e.applicationsStatus="success"},fetchApplicationsFailure:e=>{e.applicationsStatus="failure"}}});let f_o=g_o.actions,h_o=g_o.reducer;function m_o(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function C_o(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function x_o(n,r){return C_o(this,void 0,void 0,function*(){var e="checkOlpAvailability",t="organization";return(yield H(Object.assign({query:`
4593
4593
  query ${e} {
4594
4594
  ${t} (id: "${r}") {
4595
4595
  jsondata
@@ -4642,7 +4642,7 @@ mutation copyFlow($flowRevisionId: ID, $flowId: ID, $name: String){
4642
4642
 
4643
4643
  }
4644
4644
  }
4645
- }`,r=i.reduce((e,t)=>(e[t.name]=t.value,e),{});o.length&&(r.filter=o.reduce((e,t)=>(e[t.name]=t.value,e),{}));var c=yield CZ().queryParser(e,t,a),c=yield fZ({query:null!=(h=null==c?void 0:c.query)?h:a,operationName:n,graphEndpoint:e,token:t,variables:r});return(null==(h=null==(h=null==c?void 0:c.data)?void 0:h.applications)?void 0:h.records)||[]})},update:function({apiConfigs:o,itemToUpdate:a}){var s;return C_o(this,void 0,void 0,function*(){let t=a;var e="updateConfig";let n="applicationConfigDefinitionUpdate";var r=null==(s=t.applicationConfig.updatedRecords)?void 0:s.map(e=>({filter:{orgId:t.organizationId,appId:e.applicationId,configKey:e.configKey},update:{defaultValue:e.defaultValue}}));n;let i=yield H(Object.assign({query:"\n mutation updateConfig ($input: [ApplicationConfigDefinitionUpdateInput]) {\n applicationConfigDefinitionUpdate (input: $input) {\n records {\n applicationId\n configKey\n configType\n configLevel\n required\n description\n secured\n defaultValue\n defaultValueJSON\n }\n }\n }\n ",operationName:e,variables:{input:r}},o));e=null==(s=t.applicationConfig.records)?void 0:s.map(t=>{var e;return(null==(e=i[n].records)?void 0:e.find(e=>e.configKey===t.configKey))||t});return Object.assign(Object.assign({},t),{applicationConfig:{records:e}})})},pageSize:15},toast:{update:{success:"Application config updated successfully",error:"Failed to update application config"}}});Gln="applicationKvps";let{slice:L_o,selectors:D_o,sagas:R_o}=n2e({sliceName:u_o,namespace:Gln,apiCalls:{read:function({apiConfigs:r,payload:i}){return C_o(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=r,n=null==i?void 0:i.orgId;return yield fetch(y_o(e,""+n),{method:"GET",credentials:"include",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t})}).then(e=>e.json()).then(e=>e).catch(e=>(console.error("Error fetching organization settings for application kvps",e),{}))})},update:function({apiConfigs:i,item:o}){return C_o(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=i,n=o.ORG_ID,r=m_o(o,["ORG_ID"]);return yield fetch(y_o(e,n),{method:"PUT",credentials:"include",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t}),body:JSON.stringify(r)}).then(e=>e.json()).then(e=>e).catch(e=>(console.error("Error updating app kvps",e),{}))})}},toast:{update:{success:"Application configs updated successfully",error:"Failed to update application configs"}}}),F_o={[p_o]:f_o,applicationConfigs:N_o.actions,applicationKvps:L_o.actions},V_o=Ow({[p_o]:h_o,applicationConfigs:N_o.reducer,applicationKvps:L_o.reducer}),B_o=(dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.status),dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>"enabled"===(null==e?void 0:e.olpFeature))),H_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.activeView),U_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.isNavExpanded),z_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.navGroupOpenState),__o=(dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.isFullScreen),dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>(null==e?void 0:e.hiddenViews)||[])),q_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.orgSettings),W_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.id),Z_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.name),G_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.status),J_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.isUsersCurrentOrg),K_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==(e=null==e?void 0:e.orgSettings)?void 0:e.features)?void 0:e.defaultApplication),Y_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.applications),Q_o=M_o,X_o=D_o;function*$_o(){try{var e=yield L(x_o,yield D(YG),(yield D(FIt)).toString());yield P(f_o.fetchOlpAvailabilitySuccess(e||"disabled"))}catch(e){yield P(f_o.fetchOlpAvailabilityFailure()),console.log(e)}}function*eqo(e){var t,n,r,i;try{var o=yield D(YG),a=yield D(FIt),s=yield L(v_o,o,a.toString()),l=yield L(A_o,{apiConfigs:o,orgId:a.toString()});yield P(f_o.fetchApplicationsInit()),yield P(f_o.fetchOrgSettingsSuccess(Object.assign(Object.assign({},s),{organizationStatus:l.status,jsondata:Object.assign({isLimitEnforced:null!=(t=null==l?void 0:l.isLimitEnforced)?t:void 0,remainingBudget:null!=(n=null==l?void 0:l.remainingBudget)?n:void 0,seatLimit:null!=(r=null==l?void 0:l.seatLimit)?r:void 0,adminSeatLimit:null!=(i=null==l?void 0:l.adminSeatLimit)?i:void 0},l.kvp)})))}catch(e){yield P(f_o.fetchOrgSettingsFailure())}}function*tqo(){try{var e=yield L(b_o,yield D(YG),yield D(FIt));yield P(f_o.fetchApplicationsSuccess(e))}catch(e){console.log(e),yield P(f_o.fetchApplicationsFailure())}}function*nqo(e){var t=yield D(AG),t=XW(t);try{var n,r=yield D(YG),i=yield D(FIt),o=yield L(A_o,{apiConfigs:r,orgId:i.toString()}),{logoUploadState:a,orgName:s,orgLogoUrl:l,features:c,initialFeatures:d}=yield D(q_o),u=Object.assign({},c),p=(o.organizationName=s,!!o.kvp.image&&!l&&!a);if(a?o.kvp.image=a.unsignedUrl:p&&(o.kvp.image=null),!TL(u,d)){if(o.kvp.engineApprovalWhiteListed=u.engineApprovalWhiteListed,delete u.engineApprovalWhiteListed,o.isLimitEnforced=u.isLimitEnforced,delete u.isLimitEnforced,u.remainingBudget&&(o.remainingBudget=u.remainingBudget,delete u.remainingBudget),u.adminSeatLimit&&u.seatLimit&&u.adminSeatLimit>u.seatLimit)return yield P(f_o.updateOrgSettingsFailure()),n={content:TL("production","development")?"Admin seat limit cannot be greater than total seat limit":t({id:"os-admin-center-browse:org-settings.seat-limit-error",defaultMessage:[{type:0,value:"Admin seat limit cannot be greater than total seat limit"}]}),severity:R.Error},void(yield P(F(n)));void 0!==u.seatLimit&&(o.seatLimit=""===u.seatLimit?null:parseInt(u.seatLimit),delete u.seatLimit),void 0!==u.adminSeatLimit&&(o.adminSeatLimit=""===u.adminSeatLimit?null:parseInt(u.adminSeatLimit),delete u.adminSeatLimit),o.kvp.features=Object.assign(Object.assign({},o.kvp.features),u)}yield L(I_o,{apiConfigs:r,orgId:i,body:o}),yield Zu(1500),yield P(f_o.updateOrgSettingsSuccess());var g={content:TL("production","development")?"Successfully updated Organization Settings":t({id:"os-admin-center-browse:org-settings.update-success",defaultMessage:[{type:0,value:"Successfully updated Organization Settings"}]}),severity:R.Success};yield P(F(g))}catch(e){console.warn("Error occurred when attempting to update Organization Settings: ",e),yield P(f_o.updateOrgSettingsFailure());c={content:TL("production","development")?"Something went wrong. Unable to update Organization Settings":t({id:"os-admin-center-browse:org-settings.update-failure",defaultMessage:[{type:0,value:"Something went wrong. Unable to update Organization Settings"}]}),severity:R.Error};yield P(F(c))}}function*rqo(e){var t=yield D(AG),t=XW(t);try{var n=yield D(YG),r=yield D(FIt),i=(yield L(w_o,{apiConfigs:n,orgId:r}),yield P(f_o.deactivateOrganizationSuccess()),yield P(Ise(V.ADMIN_CENTER)),{content:TL("production","development")?"Successfully deactivated Organization":t({id:"os-admin-center-browse:org.deactivate-success",defaultMessage:[{type:0,value:"Successfully deactivated Organization"}]}),severity:R.Success});yield P(F(i))}catch(e){console.warn("Error occurred when attempting to deactivate orginization: ",e),yield P(f_o.deactivateOrganizationFailure());n={content:TL("production","development")?"Something went wrong. Unable to update Organization Settings":t({id:"os-admin-center-browse:org.deactivate-failure",defaultMessage:[{type:0,value:"Something went wrong. Unable to deactivate Organization"}]}),severity:R.Error};yield P(F(n))}}function*iqo(){yield Uu([P_o.watchRead(),P_o.watchUpdate(),P_o.watchDelete(),P_o.watchCreate(),R_o.watchRead(),R_o.watchUpdate(),R_o.watchDelete(),R_o.watchCreate(),function*(){yield $u(f_o.fetchOlpAvailabilityStart.type,$_o)}(),function*(){yield $u(f_o.fetchOrgSettingsStart.type,eqo)}(),function*(){yield $u(f_o.updateOrgSettingsStart.type,nqo)}(),function*(){yield $u(f_o.setAdminCenterOrganization.type,$_o)}(),function*(){yield $u(f_o.fetchApplicationsInit.type,tqo)}(),function*(){yield o(f_o.deactivateOrganizationInit.type,rqo)}()])}let oqo=je()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:t,padding:e.spacing(2),position:"relative"},title:{minWidth:"126px"},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)}})),aqo=({hidePanel:e,height:t})=>{t=oqo({height:t}).classes;let n=Ie(),r=Ae(EY);var i=Ae(U_o);let o=Ae(J_o),a=Ae(Z_o);return nt.exports.jsxs("header",Object.assign({className:t.header,"data-test":"ac-header"},{children:[nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.menu",defaultMessage:"Toggle Navigation Menu",description:"Toggle Navigation Menu"})},{children:nt.exports.jsx(ue,Object.assign({sx:{mr:1},onClick:()=>{n(f_o.toggleNavExpanded())},"aria-expanded":i,"aria-labelledby":"ac-header-toggle-nav","data-test":"ac-header-toggle-nav",size:"large"},{children:nt.exports.jsx(ype,{})}))})),nt.exports.jsx(pe,Object.assign({variant:"h1",className:t.title,"data-test":"ac-title"},{children:o?nt.exports.jsx(Ce,{id:"os-admin-center-browse.header.title",defaultMessage:"Admin Center",description:"Panel header of the admin center"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Ce,{id:"os-admin-center-browse.header.title.org-detail",defaultMessage:"Org Detail",description:"Panel header of the admin center"})," - "+a]})})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer,"data-test":"ac-header.action-container"},{children:[nt.exports.jsx("div",{className:t.verticalDivider}),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.open.help-center.tooltip",defaultMessage:"View Help",description:"Help icon"})},{children:nt.exports.jsx(ue,Object.assign({"data-test":"admin-center-help-icon",size:"large"},{children:nt.exports.jsx(pue,{})}))})),nt.exports.jsx(he,Object.assign({title:r?nt.exports.jsx(Ce,{id:"os-admin-center-browse.close.full.screen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):nt.exports.jsx(Ce,{id:"os-admin-center-browse.open.full.screen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{n(n(SY(!r)))},"aria-labelledby":"ac-toggle-fullscreen","data-test":"ac-fullscreen-toggle",size:"large"},{children:r?nt.exports.jsx(Cpe,{}):nt.exports.jsx(mpe,{})}))})),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.close.panel",defaultMessage:"Close Panel",description:"Close Panel"})},{children:nt.exports.jsx(ue,Object.assign({onClick:e,"aria-labelledby":"ac-close-panel","data-test-id":"ac-close-panel","data-test":"ac-close-panel",size:"large"},{children:nt.exports.jsx(Spe,{})}))}))]}))]}))},sqo=je()((e,{height:t="64px"},n)=>({root:{display:"flex",flexGrow:1,height:t,position:"relative"},tabs:{borderRight:".5px solid "+e.palette.divider,transition:".2s ease",width:e.spacing(14),minWidth:e.spacing(14),padding:e.spacing(1.6)+" "+e.spacing(2.5),boxSizing:"border-box"},tabsContainer:{alignItems:"center"},tabIndicator:{background:"transparent"},tabRoot:{opacity:1,borderRadius:4,fontSize:"14px",color:"#555F7C",marginBottom:e.spacing(1),minHeight:e.spacing(9),minWidth:e.spacing(9),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),whiteSpace:"nowrap",width:"100%","&:hover":{background:"#F2F5F9"}},tabsExpanded:{width:197,minWidth:197,paddingRight:e.spacing(2),paddingLeft:e.spacing(2),["& "+n.tabRoot]:{width:`calc(197px - ${e.spacing(3)})`,flexDirection:"row",textTransform:"capitalize","& svg":{marginRight:e.spacing(2),marginBottom:"0"}}},tabExpandedWrapper:{flexDirection:"row",display:"flex",justifyContent:"flex-start","& svg":{marginBottom:"0 !important",marginRight:e.spacing(2)}},tabSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:"0",color:e.palette.primary.main}},contentPanel:{flexGrow:1},tabExpandedSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:e.spacing(2),color:e.palette.primary.main}},tabWrapper:{flexDirection:"row",display:"flex",justifyContent:"center","& svg":{marginBottom:"0 !important",marginRight:"0"}}})),lqo="Flex",cqo="https://billing.aiware.com/p/login/fZe15tbn5fDP3Yc000",dqo=nt.exports.jsx(Ce,{id:"os.admin-center.browse.billing-nav-item.label",defaultMessage:"Billing",description:"Admin Center Billing Nav Item Label"}),uqo=({isNavExpanded:e})=>Ae(kG)!==lqo?null:nt.exports.jsx(he,Object.assign({placement:"right",title:!e&&dqo,"data-test":"ac-nav-tab-billing"},{children:nt.exports.jsx(ge,Object.assign({startIcon:nt.exports.jsx(Wde,{style:{marginBottom:"0px",fontSize:"24px",marginLeft:e?"0px":"30px"}}),onClick:()=>{window.open(cqo,"_blank")},sx:{color:"#5C6269",opacity:1,borderRadius:"4px",fontSize:"14px",marginBottom:"5px",minHeight:"45px",minWidth:e?"176px":"45px",padding:"5px 10px 5px 20px",width:"100%","&:hover":{background:"#F2F5F9"},justifyContent:e?"flex-start":"center"},"data-test":"ac-nav-tab-billings-view",variant:"text",endIcon:nt.exports.jsx(x0e,{style:{transform:"translate(50px, 0px)",fontSize:"20px"}})},{children:e&&dqo}))})),pqo=C2e.error,gqo=({title:e,isLoading:t,isErrored:n,onRetry:r,children:i})=>t?nt.exports.jsx(_,Object.assign({sx:{position:"relative",height:"100%",padding:"10px 30px",alignItems:"center",justifyContent:"center"},direction:"row"},{children:nt.exports.jsx(mm,{})})):n?nt.exports.jsx(pqo,{onRetry:r}):nt.exports.jsx(_,Object.assign({sx:{position:"relative",height:"100%",border:"1px solid #DADFE8",borderRadius:"4px"},direction:"row"},{children:nt.exports.jsxs(_,Object.assign({sx:{position:"relative",width:"100%",height:"100%"}},{children:[e&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{padding:"20px 30px"}},{children:e})),nt.exports.jsx(se,{})]}),nt.exports.jsx(_,Object.assign({"data-testid":"ac-settings-container",sx:{padding:"0 30px",width:"100%",maxHeight:"calc(100vh - 350px)",overflow:"auto",boxSizing:"border-box"}},{children:i}))]}))})),fqo=v2e.jsx.ImageUpload;function hqo({title:e,children:t}){return e?nt.exports.jsx(he,Object.assign({title:e,placement:"left",arrow:!0},{children:nt.exports.jsx("span",{children:t})})):t}let mqo={"& .MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .MuiTabs-indicator":{backgroundColor:"#2A323C"}};(D2e=doa=doa||{}).BASIC_INFORMATION="basic-information",D2e.SYSTEM_SETTINGS="system-settings";E3e=(e,t,n,r=!1,i=!1)=>({label:e,component:t,id:n,isBehindBeta:r,isSuperAdmin:i});let Cqo=[E3e("Basic Information",nt.exports.jsx(()=>{let t=Ie(),{orgName:e,orgLogoUrl:n,loadingStatus:r,hasLocalChanges:i,saveStatus:o,editMode:a}=Ae(q_o);var s="100px";let l="success"===r;var c="pending"===r,d="failure"===r,u="pending"===o;let p=e=>{t(f_o.setOrgSettingsEditMode({key:e,value:!0}))};let g=()=>{t(f_o.fetchOrgSettingsStart())};return Le.exports.useEffect(()=>{i||l||g()},[]),Le.exports.useEffect(()=>{!n&&l&&t(f_o.setOrgSettingsEditMode({key:"orgLogoUrl",value:!0}))},[n,l]),nt.exports.jsxs(gqo,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.title",defaultMessage:"Basic Information",description:"Title for the organization settings"}),isLoading:c,isErrored:d,onRetry:g},{children:[nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",gap:"20px",padding:"20px 0"},direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{minWidth:"160px",color:"#5C6269"}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.logo-upload",defaultMessage:"Organization Logo: ",description:"Title for the organization settings logo upload"})})),nt.exports.jsx(be,Object.assign({sx:{width:s,height:s}},{children:a.orgLogoUrl?nt.exports.jsx(fqo,{disabled:u,getUrl:!0,image:n,outerWidth:"100%",outerHeight:"100%",innerWidth:"95%",innerHeight:"95%",uploadIconWidthHeight:"40px",handleChange:e=>{t(f_o.setSettingsChanged(!0)),t(f_o.setSettingsChangeLogoUrl(e))},testId:"org-settings-upload-image"}):nt.exports.jsx(be,Object.assign({sx:{width:s,height:s,borderRadius:"5px",border:"1px solid #DADFE8",overflow:"hidden"}},{children:n&&nt.exports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"contain"},draggable:!1,src:n,alt:"Organization Logo"})}))})),!a.orgLogoUrl&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-logo.tooltip-edit",defaultMessage:"Edit Organization Logo",description:"Tooltip for the organization settings edit org logo button"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>p("orgLogoUrl"),disabled:u,sx:{marginLeft:"auto"}},{children:nt.exports.jsx(Tde,{})}))}))]})),nt.exports.jsx(se,{}),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",gap:"20px",padding:"20px 0"},direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{minWidth:"160px",color:"#5C6269"}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-name",defaultMessage:"Organization Name: ",description:"Title for the organization settings org name input"})})),a.orgName?nt.exports.jsx(gw,{size:"small",disabled:u,value:e,onChange:e=>{e=e.target.value;t(f_o.setSettingsChangeName(e)),t(f_o.setSettingsChanged(!0))},sx:{width:"100%"}}):nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold"}},{children:e})),!a.orgName&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-name.tooltip-edit",defaultMessage:"Edit Organization Name",description:"Tooltip for the organization settings edit org name button"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>p("orgName"),disabled:u,sx:{marginLeft:"auto"}},{children:nt.exports.jsx(Xde,{})}))}))]}))]}))},{}),doa.BASIC_INFORMATION,!1,!1),E3e("System Settings",nt.exports.jsx(()=>{let i=Ie();var t,e=Ae(Y_o),n=Ae(K_o),r=Ae((t=n,dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null!=(e=null==(e=null==e?void 0:e.applications)?void 0:e.find(e=>e.id===t))?e:void 0))),o=Ae(G_o),a=Ae(J_o);let{loadingStatus:s,saveStatus:l,features:c}=Ae(q_o),[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1);var f="pending"===s,h="failure"===s;let m="pending"===s||"pending"===l;var C="deleted"===o?"Organization is already deactivated":a?"Cannot deactivate current organization":void 0;let x=[{title:$Hi.orgSettingsStep.packageGrantsTitle(),description:$Hi.orgSettingsStep.packageGrantsDescription(),right:{type:"switch",key:"automaticPackageCreation",disabled:!0,keys:["useEngineGrant","useAppGrant"],tooltip:"Only available during Org Creation",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.olpTitle(),description:$Hi.orgSettingsStep.olpDescription(),right:{type:"switch",key:"enableRBACFeature",disabled:!0,tooltip:"Only available during Org Creation",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.autoApproveEnginesSettingTitle(),description:$Hi.orgSettingsStep.autoApproveEnginesSettingDescription(),right:{type:"switch",key:"engineApprovalWhiteListed",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.dataRetentionPolicySettingTitle(),description:$Hi.orgSettingsStep.dataRetentionPolicySettingDescription(),left:{type:"select",key:"retentionDays",show:"enabled"===c.retentionCleanup,options:[{value:30,label:$Hi.orgSettingsStep.dataRetentionPolicySetting30Days()},{value:90,label:$Hi.orgSettingsStep.dataRetentionPolicySetting90Days()},{value:457,label:$Hi.orgSettingsStep.dataRetentionPolicySetting15Months()}]},right:{type:"switch",key:"retentionCleanup",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.firstLoadApplicationSettingTitle(null==r?void 0:r.name),description:$Hi.orgSettingsStep.firstLoadApplicationSettingDescription(),right:{type:"icon-button",key:"first-load-application",icon:nt.exports.jsx(R2e,{}),onClick:()=>g(!p)}},{title:$Hi.orgSettingsStep.maxTdoAssetsSettingTitle(),description:$Hi.orgSettingsStep.maxTdoAssetsSettingDescription(),right:{type:"number",min:100,max:1e3,step:1,key:"maxAssetCount",keys:["tdoLimits.maxAssetCount"]}},{title:$Hi.orgSettingsStep.enableLimitEnforcedTitle(),description:$Hi.orgSettingsStep.enableLimitEnforcedDescription(),right:{type:"switch",key:"isLimitEnforced",trueValue:!0,falseValue:!1},left:{type:"number",key:"remainingBudget",step:5,min:0,max:1e6,show:!0===c.isLimitEnforced,TextFieldProps:{label:$Hi.orgSettingsStep.remainingBudgetLabel(),InputLabelProps:{shrink:!0}}}},{title:$Hi.orgSettingsStep.userSeatCountTitle(),description:$Hi.orgSettingsStep.userSeatCountDescription(),right:{type:"text",key:"seatLimit",TextFieldProps:{onKeyDown:e=>{/^[0-9\b]+$/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()}}}},{title:$Hi.orgSettingsStep.adminSeatCountTitle(),description:$Hi.orgSettingsStep.adminSeatCountDescription(),right:{type:"text",key:"adminSeatLimit",TextFieldProps:{onKeyDown:e=>{/^[0-9\b]+$/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()}}}},{title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.title",defaultMessage:"Deactivate Organization",description:"Deactivate Organization"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.description",defaultMessage:"Deactivating the organization will disable all users and applications. This action cannot be undone.",description:"Deactivate Organization"}),right:{type:"button",key:"deactivate-organization",disabled:"deleted"===o||a,tooltip:C,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.button",defaultMessage:"Deactivate",description:"Deactivate Organization"}),onClick:()=>u(!0)}}];return nt.exports.jsxs(gqo,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.subtitle",defaultMessage:"Manage settings for all users.",description:"Title for the organization system settings subtitle"}),isLoading:f,isErrored:h,onRetry:()=>{}},{children:[x.filter(e=>!1!==(null==e?void 0:e.show)).map((r,e)=>nt.exports.jsx(zHi,{bottomBorder:e!==x.length-1,title:r.title,description:r.description,renderLeftComponent:()=>{var e;if(r.left&&void 0!==r.left){if("select"===r.left.type&&void 0!==(null==(e=r.left)?void 0:e.key)&&!1!==(null==(e=r.left)?void 0:e.show))return nt.exports.jsx(Gb,Object.assign({"data-testid":"settings-"+r.left.key,disabled:m,value:Gfe(c,r.left.keys?r.left.keys[0]:r.left.key),onChange:e=>{var e=Number(e.target.value),t=[null!=(t=null==(t=null==r?void 0:r.left)?void 0:t.key)?t:"",...(null==(t=r.left)?void 0:t.keys)||[]];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},size:"small",sx:{width:"230px",marginTop:"20px"}},{children:r.left.options.map((e,t)=>{var n;return nt.exports.jsx(fe,Object.assign({value:e.value,"data-testid":`settings-${null==(n=r.left)?void 0:n.key}-`+e.value},{children:e.label}),t+1)})}));if("number"===r.left.type&&void 0!==(null==(e=r.left)?void 0:e.key)&&!1!==(null==(e=r.left)?void 0:e.show))return nt.exports.jsx(gw,Object.assign({},(null==(e=r.left)?void 0:e.TextFieldProps)||{},{"data-testid":"settings-"+r.left.key,disabled:m,value:Gfe(c,r.left.keys?r.left.keys[0]:r.left.key),onChange:e=>{var e=Number(e.target.value),t=[null!=(t=null==(t=null==r?void 0:r.left)?void 0:t.key)?t:"",...(null==(t=r.left)?void 0:t.keys)||[]];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},onBlur:e=>{let t,n=Number(e.target.value);r.left&&("number"===r.left.type&&r.left.min&&n<r.left.min&&(n=r.left.min),"number"===r.left.type&&r.left.max&&n>r.left.max&&(n=r.left.max),("number"===r.left.type&&!r.left.max||"number"===r.left.type&&!r.left.min)&&!e.target.value||(e=null!=(t=r.left.keys)?t:[r.left.key],i(f_o.setOrgSettingsFeature({keys:e,value:n}))))},sx:{width:"230px",marginTop:"20px"},size:"small",type:"number"}))}return null},renderRightComponent:()=>{var e;if(r.right){if("switch"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(SA,{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),checked:Gfe(c,r.right.key)===(null!=(e=r.right.trueValue)?e:"enabled"),onChange:()=>{var e=Gfe(c,r.right.key)===(null!=(e=r.right.trueValue)?e:"enabled")?null!=(e=r.right.falseValue)?e:"disabled":null!=(e=r.right.trueValue)?e:"enabled",t=r.right.keys?[r.right.key,...r.right.keys]:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e}))}})}));if("number"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(gw,{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),value:Number(Gfe(c,r.right.keys?r.right.keys[0]:r.right.key,null!=(e=null==(e=r.right)?void 0:e.min)?e:0)),onChange:e=>{var e=Number(e.target.value),t=null!=(t=r.right.keys)?t:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},onBlur:e=>{let t,n=Number(e.target.value);"number"===r.right.type&&r.right.min&&n<r.right.min&&(n=r.right.min),"number"===r.right.type&&r.right.max&&n>r.right.max&&(n=r.right.max),("number"===r.right.type&&!r.right.max||"number"===r.right.type&&!r.right.min)&&!e.target.value||(e=null!=(t=r.right.keys)?t:[r.right.key],i(f_o.setOrgSettingsFeature({keys:e,value:n})))},size:"small",type:"number",inputProps:{style:{textAlign:"right"},min:null!=(e=null==(e=r.right)?void 0:e.min)?e:0,max:null!=(e=null==(e=r.right)?void 0:e.max)?e:1e6,step:null!=(e=r.right.step)?e:1},sx:{width:"130px",marginTop:"20px"}});if("text"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(gw,Object.assign({},(null==(e=r.right)?void 0:e.TextFieldProps)||{},{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),value:Gfe(c,r.right.keys?r.right.keys[0]:r.right.key),onChange:e=>{var t=null!=(t=r.right.keys)?t:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e.target.value}))},size:"small",inputProps:{style:{textAlign:"right"},pattern:null!=(e=r.right.pattern)?e:"[a-z]{1,15}"},sx:{width:"130px",marginTop:"20px"}}));if("button"===r.right.type)return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),onClick:r.right.onClick},{children:r.right.label}))}));if("icon-button"===r.right.type)return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(ue,Object.assign({"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),onClick:r.right.onClick},{children:r.right.icon}))}))}return null}},"settings-row-"+(e+1))),nt.exports.jsx(Xze,{isOpen:d,testId:"ac-deactivate-org-dialog",title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.title",defaultMessage:"Deactivate Organization",description:"Deactivate Organization"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.description",defaultMessage:"Are you sure you want to deactivate this Organization? Users will no longer be able to access this Organization or its content.",description:"Deactivate Organization"}),cancelLabel:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.cancel",defaultMessage:"Cancel",description:"Cancel"}),confirmLabel:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.deactivate",defaultMessage:"Yes, Deactivate",description:"Deactivate"}),onClose:()=>{u(!1)},onConfirm:()=>{u(!1),i(f_o.deactivateOrganizationInit())},DialogTitleProps:{sx:{fontSize:18,fontWeight:"semibold"}},DialogProps:{PaperProps:{sx:{p:3}},maxWidth:"xs"}}),nt.exports.jsx(USt,{id:"ac",applications:e,defaultLoadApplication:n,isOpen:p,onSelectedApplication:e=>{i(f_o.setOrgSettingsFeature({keys:["defaultApplication"],value:e.id}))},onClose:()=>g(!1)})]}))},{}),doa.SYSTEM_SETTINGS,!1,!0)];function xqo(e){var{children:t,value:n,index:r}=e,e=m_o(e,["children","value","index"]);return nt.exports.jsx("div",Object.assign({role:"tabpanel",hidden:n!==r,id:"organization-settings-tabpanel-"+r,"data-testid":"organization-settings-tabpanel-"+r,"aria-labelledby":"organization-settings-tab-"+r},e,{children:n===r&&nt.exports.jsx(be,Object.assign({sx:{p:3}},{children:t}))}))}function vqo(e){return{id:"organization-settings-tab-"+e,"aria-controls":"organization-settings-tabpanel-"+e}}function bqo(){let[n,r]=Me.useState(0),i=Ae(WG),o=Ae(mG);return nt.exports.jsxs(be,Object.assign({sx:{width:"100%"}},{children:[nt.exports.jsx(be,Object.assign({sx:{borderBottom:1,borderColor:"divider"}},{children:nt.exports.jsx(lw,Object.assign({sx:mqo,value:n,onChange:(e,t)=>{r(t)},"aria-label":"org settings tabs"},{children:Cqo.map(e=>e.isSuperAdmin&&!o?null:e.isBehindBeta&&!i?nt.exports.jsx(he,Object.assign({title:e.isBehindBeta&&!i?"Coming Soon":""},{children:nt.exports.jsx("span",{children:nt.exports.jsx(NA,Object.assign({"data-testid":"organization-settings-tab."+e.id,disabled:e.isBehindBeta&&!i,label:e.label},vqo(e.index)),e.id)})})):nt.exports.jsx(NA,Object.assign({"data-testid":"organization-settings-tab."+e.id,disabled:e.isBehindBeta&&!i,label:e.label},vqo(e.index)),e.id))}))})),Cqo.map((e,t)=>e.isBehindBeta&&!i||e.isSuperAdmin&&!o?null:nt.exports.jsx(xqo,Object.assign({value:n,index:t},{children:e.component}),e.id))]}))}let yqo=()=>{let e=Ie();var t=Qbt().classes,{hasLocalChanges:n,saveStatus:r,orgName:i}=Ae(q_o),r="pending"===r,i=!n||!i;return nt.exports.jsxs("section",Object.assign({className:t.root},{children:[nt.exports.jsx(_,Object.assign({component:"header",sx:{borderBottom:"0.5px solid #D5DFE9",flexDirection:"column",padding:"20px"}},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"100%",alignItems:"center",justifyContent:"space-between"},direction:"row"},{children:[nt.exports.jsxs(_,{children:[nt.exports.jsx(be,Object.assign({className:t.startToolbar},{children:nt.exports.jsx(pe,Object.assign({variant:"h5",component:"span","data-testid":"os-admin-center-org-settings-title","data-test":"os-admin-center-org-settings-title",sx:{fontWeight:"600",mb:1}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view-title",defaultMessage:"Organization Settings",description:"Title for the organization settings view"})}))})),nt.exports.jsx(be,Object.assign({className:t.startToolbar},{children:nt.exports.jsx(pe,Object.assign({variant:"caption","data-testid":"os-admin-center-org-settings-sub-title","data-test":"os-admin-center-org-settings-sub-title"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view-description",defaultMessage:"Manage information and preferences for users of this Organization.",description:"Description for the organization settings view"})}))}))]}),nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",onClick:()=>e(f_o.undoOrgSettingsChanges()),disabled:!n,"data-testid":"os-admin-center-org-settings-undo-button"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.button-undo",defaultMessage:"Undo",description:"Undo button for the organization settings view"})})),nt.exports.jsx(ije,Object.assign({loading:r,disabled:i,onClick:()=>{e(f_o.updateOrgSettingsStart())},variant:"contained","data-testid":"os-admin-center-org-settings-save-button",color:"primary"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.button-save",defaultMessage:"Save",description:"Save button for the organization settings view"})}))]}))]}))})),nt.exports.jsx(bqo,{})]}))},Aqo=()=>nt.exports.jsxs(W,Object.assign({"data-testid":"custom-integration-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-header-column-name",defaultMessage:"Integration ID",description:"Custom Integration Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:9},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-integration-table-header-column-json",defaultMessage:"JSON",description:"Custom Integration Table header column json"})}))}))]})),Iqo=({onConfirmDelete:e,isOpen:t,onClose:n})=>nt.exports.jsx(Xze,{testId:"os-admin-center-custom-integration-delete-modal",title:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-title",defaultMessage:"Delete Integration",description:"Admin Center Custom Integration Delete Modal Title"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-body",defaultMessage:"Are you sure you want to delete this custom integration?",description:"Admin Center Custom Integration Delete Modal body"}),isOpen:t,onClose:n,onConfirm:()=>{n(),e()},confirmLabel:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-button-confirm-delete",defaultMessage:"Yes, Delete",description:"Admin Center Custom Integration Delete Modal button confirm delete"}),cancelLabel:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-button-go-back",defaultMessage:"Cancel",description:"Admin Center Custom Integration Delete Modal button go back"})}),wqo=({onEdit:e,onDelete:t})=>{e=[{label:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Custom Login table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Custom Login table row context menu delete"}),onClick:t,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}];return nt.exports.jsx(_ze,{menuItems:e,testId:"ac-custom-integration-menu"})},jqo=({item:e,index:t,onDelete:n,onEdit:r,itemHeight:i})=>nt.exports.jsxs(W,Object.assign({"data-testid":"ac-custom-integration-item-"+t,sx:{width:"100%",height:"100%",paddingLeft:"15px",minHeight:i-1+"px",borderBottom:"1px solid #D5DFE9",alignItems:"center",display:"flex"},container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({sx:{fontSize:"14px"},"data-testid":"ac-custom-integration-table-row-name"},{children:(null==e?void 0:e.integrationId)&&e.integrationId}))}))," ",nt.exports.jsx(W,Object.assign({item:!0,xs:8},{children:nt.exports.jsx(pe,Object.assign({sx:{fontSize:"14px",whiteSpace:"nowrap"},"data-testid":"ac-custom-integration-table-row-name"},{children:e.json&&RUe(JSON.stringify(e.json),80)}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:1},{children:nt.exports.jsx(wqo,{onEdit:r,onDelete:n})}))]})),Sqo=x2e.jsx.TableInfiniteScroll,{CenterTabHeading:Oqo,CenterTabContainer:kqo,CenterTabContent:Tqo}=w2e,Eqo=52,Nqo=()=>{let n=Ie();let t=Ae(W_o).toString(),r=Ae(EY),i=Ae(YG),[e,o]=Le.exports.useState([]),[a,s]=Le.exports.useState(!1),[l,c]=Le.exports.useState(null),[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1),f=()=>C_o(void 0,void 0,void 0,function*(){u(!0);try{var e=yield O_o({apiConfigs:i,orgId:t});e&&o(e)}catch(e){g(!0),console.log(e)}finally{u(!1)}}),h=(e,t)=>{e={name:V.UPSERT_INTEGRATION_PANEL,config:{integration:e,viewMode:t,onUpsertIntegration:m}},t={type:ok.APP_BAR_PANEL_TEMPLATE,marginTop:r?0:55,marginStart:r?0:80,size:dse.medium,parentPanelId:V.ADMIN_CENTER,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0};n(yse({panelId:V.UPSERT_INTEGRATION_PANEL,microFrontend:e,panelConfig:t}))},m=e=>C_o(void 0,void 0,void 0,function*(){try{(yield T_o(Object.assign({apiConfigs:i,orgId:t},e)))&&(n(F({content:"Custom integration saved successfully",severity:R.Success})),yield f(),n(wse(V.UPSERT_INTEGRATION_PANEL)))}catch(e){console.log(e),n(F({content:"Failed to save custom integration",severity:R.Error}))}});return nt.exports.jsxs(kqo,Object.assign({testId:"os-admin-center-custom-integration-tab"},{children:[nt.exports.jsx(Oqo,{title:"Integration",subtitle:"Add third party integrations into this organization",testId:"os-admin-center-custom-integration-tab",HeadingActions:nt.exports.jsx(ge,Object.assign({onClick:()=>h({integrationId:"",json:""},"add"),variant:"contained",startIcon:nt.exports.jsx(Ode,{}),"data-testid":"os-admin-center-custom-integration-tab-create-new"},{children:"New"}))}),nt.exports.jsx(Tqo,Object.assign({testId:"os-admin-center-custom-integration-tab"},{children:nt.exports.jsxs(be,Object.assign({height:"500px"},{children:[nt.exports.jsx(Sqo,{hasMore:!1,fetchMore:f,fetchOnMount:0===e.length,offset:0,items:e,itemHeight:Eqo,isLoading:d,error:p,TableHeaderComponent:nt.exports.jsx(Aqo,{}),TableRowComponent:({item:t,index:e})=>nt.exports.jsx(jqo,{item:t,index:e,onDelete:()=>{return e=t,s(!0),void c(e);var e},onEdit:()=>h(t,"edit"),itemHeight:Eqo}),TableEmptyStateComponent:nt.exports.jsx(be,Object.assign({sx:{mt:"100px"}},{children:nt.exports.jsx(Yze,{title:"No Custom Integration Found",description:"You haven’t created an Integration for this Organization",buttonLabel:"Create Custom Integration",image:Jle,onClick:()=>h({integrationId:"",json:""},"add")})})),testId:"ac-custom-integrations-table"}),nt.exports.jsx(Iqo,{isOpen:a,onClose:()=>s(!1),onConfirmDelete:()=>C_o(void 0,void 0,void 0,function*(){if(l)try{(yield k_o({apiConfigs:i,orgId:t,integrationId:null==l?void 0:l.integrationId}))&&(o(e.filter(e=>(null==e?void 0:e.integrationId)!==(null==l?void 0:l.integrationId))),n(F({content:"Custom integration deleted successfully",severity:R.Success})))}catch(e){n(F({content:"Failed to delete custom integration",severity:R.Error}))}})})]}))}))]}))},Mqo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(Nqo,{})})})});function Pqo(...e){return Le.exports.useMemo(()=>e.every(e=>null==e)?null:n=>{e.forEach(e=>{var t;t=n,"function"==typeof(e=e)?e(t):e&&(e.current=t)})},e)}function Lqo({id:e,options:t,loading:n=!1,hasMore:r,fetchOnMount:i,onFetchMore:o,inputValue:a,onInputChange:s,selectedValue:l,onSelectChange:c,InputProps:d={},mRef:u}){let{getRootProps:p,getInputProps:g,getListboxProps:f,getOptionProps:h,groupedOptions:m,popupOpen:C,anchorEl:x,setAnchorEl:v}=i6({id:e,options:t,value:l,inputValue:a,clearOnBlur:!1,clearOnEscape:!1,getOptionLabel:e=>null!=(e=null==e?void 0:e.label)?e:"Unknown",getOptionDisabled:e=>null!=(e=null==e?void 0:e.disabled)&&e,isOptionEqualToValue:(e,t)=>(null==e?void 0:e.label)===(null==t?void 0:t.label),onInputChange:(e,t)=>s(t),onChange:(e,t)=>c(t)});e=Pqo(u,v);return Le.exports.useEffect(()=>{i&&o()},[]),nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("div",Object.assign({},p(),{ref:e},{children:nt.exports.jsx(Dqo,Object.assign({},d,{inputProps:Object.assign({},g()),InputProps:{endAdornment:nt.exports.jsxs(nt.exports.Fragment,{children:[n?nt.exports.jsx(mm,{color:"inherit",size:20}):nt.exports.jsx(a3e,{}),C?nt.exports.jsx(Kue,{}):nt.exports.jsx(Zue,{})]})}}))})),x&&nt.exports.jsx(z9,Object.assign({open:C,anchorEl:x,disablePortal:!0,placement:"bottom-start",transition:!0,sx:{zIndex:1200}},{children:({TransitionProps:e})=>nt.exports.jsx(t7,Object.assign({},e,{timeout:350},{children:nt.exports.jsxs(_6,{children:[0<m.length&&nt.exports.jsx(Rqo,Object.assign({},f(),{sx:{minHeight:300}},{children:nt.exports.jsx(G_e,Object.assign({testId:"app-search-virtual-list",items:t,itemSize:60,memoized:!0,InfiniteLoaderProps:{loading:n,hasMore:r,loadMoreItems:o}},{children:({item:e,index:t})=>nt.exports.jsxs(Bx,Object.assign({component:"li"},h({option:e,index:t}),{disabled:null!=(t=null==e?void 0:e.disabled)&&t},{children:[nt.exports.jsx(rv,{children:nt.exports.jsx(W8,Object.assign({},((e,t)=>{let n="",r=e.split(" ");return n=1<r.length?""+r[0][0]+r[1][0]:e[0],{sx:{width:24,height:24,fontSize:12,bgcolor:t?"transparent":(e=>{let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){var i=t>>8*n&255;r+=("00"+i.toString(16)).slice(-2)}return r})(e)},src:t,children:n}})(null!=(t=null==e?void 0:e.label)?t:"Unknown",e.icon)))}),nt.exports.jsx(lv,{primary:(null==e?void 0:e.label)||"Unknown",primaryTypographyProps:{noWrap:!0},secondary:!0===(null==e?void 0:e.disabled)?"No configs available":void 0})]}))}))})),0===m.length&&!n&&nt.exports.jsx(Rqo,Object.assign({},f(),{sx:{minHeight:60}},{children:nt.exports.jsx(Bx,Object.assign({component:"li",disabled:!0},{children:nt.exports.jsx(lv,{primary:"No applications found"})}))}))]})}))}))]})}let Dqo=Bpe(gw)(()=>({width:415})),Rqo=Bpe("ul")(({theme:e})=>({width:415,marginTop:"5px",zIndex:1,padding:"8px",position:"absolute",listStyle:"none",backgroundColor:"light"===e.palette.mode?"#fff":"#000",border:"1px solid #CBCBCB",borderRadius:e.shape.borderRadius,overflow:"hidden","& li":{borderRadius:e.shape.borderRadius},"& li.Mui-focused":{backgroundColor:"#ededed",color:"white",cursor:"pointer"},"& li:active":{backgroundColor:"#ededed",color:"white"},'& li[aria-selected="true"]':{backgroundColor:"#F2F5F9",color:"#1871E8"}}));let{CenterTabHeading:Fqo,CenterTabContainer:Vqo,CenterTabContent:Bqo}=w2e,Hqo=()=>{let t=Ie(),n=Le.exports.useRef(!1),[e,r]=Le.exports.useState(""),[o,a]=Le.exports.useState({}),i=Ae(Q_o.selectItems),s=Ae(X_o.selectItem);Ae(X_o.selectReadStatus);var l=Ae(Q_o.selectReadStatus);let c=Ae(Q_o.selectUpdateStatus);var d=Ae(Q_o.selectHasMore);let u=Ae(W_o),p=Le.exports.useMemo(()=>({orgId:u}),[u]),g=Le.exports.useMemo(()=>i.map(e=>{var t=((null==(t=e.applicationConfig)?void 0:t.records)||[]).filter(e=>"Organization"===e.configLevel).map(e=>Object.assign(Object.assign({},e),{value:(null==e?void 0:e.defaultValue)||""})),n=null!=(n=null==Uqo?void 0:Uqo[e.name])?n:[],r=0===t.length&&0===n.length;return{label:e.name,value:e.id,icon:e.signedIconUrl,application:e,orgAppConfigs:t,orgAppKvps:n,modifedAppKvp:s,disabled:r}}),[i,s]),[f,h]=Le.exports.useState(null);let m=Le.exports.useRef(we.exports.debounce(e=>{e=e.toLowerCase().trim();t(F_o.applicationConfigs.setFilter({type:"NameOrId",values:[e]})),t(F_o.applicationConfigs.resetList(null)),t(F_o.applicationConfigs.readStart(p))},1e3)).current;var C=Le.exports.useCallback(()=>{t(F_o.applicationConfigs.readStart(p))},[t]),x=Le.exports.useMemo(()=>{var e,t;return null!==f&&0!==g.length&&!!(e=null==(e=g.find(e=>e.value===f.value))?void 0:e.orgAppConfigs)&&(t=we.exports.isEqual(s,f.modifedAppKvp),!(0===f.orgAppConfigs.length&&0<f.orgAppKvps.length)&&!(0<Object.values(o).length&&Object.values(o).includes(!1))&&e.map((e,t)=>we.exports.isEqual(e,f.orgAppConfigs[t])).includes(!1)||!t)},[f,g,o,s]);return Le.exports.useEffect(()=>{0===Object.keys(s).length&&t(F_o.applicationKvps.readStart(p))},[]),Le.exports.useEffect(()=>{var e;0<g.length&&null===f&&!n.current&&(e=g.find(e=>!1===e.disabled))&&(h(e),n.current=!0)},[g,f]),nt.exports.jsxs(Vqo,Object.assign({testId:"os-admin-center-app-settings-tab-container"},{children:[nt.exports.jsx(Fqo,{title:"Application Settings",subtitle:"Manage the Application Settings for this Organization.",testId:"os-admin-center-app-settings-tab-heading",HeadingActions:nt.exports.jsx(ije,Object.assign({disabled:!x,onClick:()=>{var e;null!==f&&(0===f.orgAppConfigs.length&&0<f.orgAppKvps.length?t(F_o.applicationKvps.updateStart(Object.assign(Object.assign({ORG_ID:u},s),f.modifedAppKvp))):(e=f.orgAppConfigs.filter(e=>e.value!==e.defaultValue).map(e=>Object.assign(Object.assign({},e),{value:e.value,defaultValue:e.value})),e=Object.assign(Object.assign({},f.application),{applicationConfig:{updatedRecords:e,records:(null==(e=f.application.applicationConfig)?void 0:e.records)||[]}}),0<f.orgAppKvps.length&&!we.exports.isEqual(s,f.modifedAppKvp)&&t(F_o.applicationKvps.updateStart(Object.assign(Object.assign({ORG_ID:u},s),f.modifedAppKvp))),t(F_o.applicationConfigs.updateStart(e))))},loading:"pending"===c,variant:"contained","data-testid":"os-admin-center-app-settings-tab-save"},{children:"Save"}))}),nt.exports.jsx(Bqo,Object.assign({testId:"os-admin-center-app-settings-tab-content",StackProps:{sx:{p:4}}},{children:nt.exports.jsxs(_,Object.assign({gap:2,height:"100%"},{children:[nt.exports.jsx(Lqo,{id:"app-search",options:g,loading:"loading"===l||"pending"===l,hasMore:d,onFetchMore:C,fetchOnMount:0===i.length&&"idle"===l&&null===f,inputValue:e,InputProps:{placeholder:"Search for an application..."},onInputChange:e=>{r(e),m(e)},selectedValue:f,onSelectChange:e=>{a({}),h(e)}}),nt.exports.jsxs(gqo,Object.assign({isLoading:!1,isErrored:!1,onRetry:()=>{}},{children:[null!==f&&f.orgAppConfigs.map((t,i)=>nt.exports.jsx(zHi,{bottomBorder:i!==f.orgAppConfigs.length-1||0<f.orgAppKvps.length,title:nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[t.required&&nt.exports.jsx("span",Object.assign({style:{color:"red",fontSize:"16px"}},{children:"•"})),E5e(t.configKey)]})),description:t.description,renderRightComponent:()=>nt.exports.jsx(K_e,{field:t,disabled:"pending"===c,onChange:e=>{var n,r;n=e,r=i,null!==f&&(e=f.orgAppConfigs.map((e,t)=>t===r?Object.assign(Object.assign({},e),{value:n.value}):e),h(Object.assign(Object.assign({},f),{orgAppConfigs:e})))},isFormValid:e=>{a(Object.assign(Object.assign({},o),{[t.configKey]:!e}))}})},"app-config-row-"+(i+1))),null!==f&&f.orgAppKvps&&f.orgAppKvps.map((n,e)=>{let t,o=(e,t)=>{e=YNn(we.exports.cloneDeep(Object.assign({},f.modifedAppKvp)),e,t);h(Object.assign(Object.assign({},f),{modifedAppKvp:e}))};return nt.exports.jsx(zHi,{bottomBorder:e!==f.orgAppKvps.length-1,title:nt.exports.jsx(_,Object.assign({direction:"row",gap:1},{children:n.label})),description:null!=(t=null==n?void 0:n.description)?t:"",renderRightComponent:()=>{var e;if(n.label&&n.children)return e=n.children.some(e=>"number"===e.configType),nt.exports.jsx(_,Object.assign({direction:e?"row":"column",gap:e?2:1},{children:n.children.map(t=>{var e,n,r=t.configType;if(!r)return null;let i=Gfe(f.modifedAppKvp,t.key,null!=(e=null==t?void 0:t.defaultValue)?e:"");switch("checkbox"===r&&null!=t&&t.checkedValue&&(i=i===t.checkedValue),r){case"number":return nt.exports.jsx(gw,{fullWidth:!0,placeholder:t.label,type:"number",size:"small",value:Gfe(f.modifedAppKvp,t.key,""),inputProps:Object.assign({},null!=(n=null==t?void 0:t.props)?n:{}),onChange:e=>{e=e.target.value;o(t.key,e)}},t.key);case"checkbox":return nt.exports.jsx(xC,{control:nt.exports.jsx(om,{size:"small",checked:i,onChange:e=>{e=e.target.checked?null==(e=null==t?void 0:t.checkedValue)||e:null!=(e=null==t?void 0:t.uncheckedValue)&&e;o(t.key,e)},name:t.key}),label:t.label},t.key);default:return null}})}));if(null==n||!n.key)return null;let t=Gfe(f.modifedAppKvp,n.key,null!=(e=null==n?void 0:n.defaultValue)?e:"");return"checkbox"!==n.configType&&"switch"!==n.configType||null==n||!n.checkedValue||(t=t===n.checkedValue),"radio"===n.configType&&n.options?nt.exports.jsx(pC,Object.assign({component:"fieldset"},{children:nt.exports.jsx(Tb,Object.assign({"aria-label":n.key,name:n.key,value:t,onChange:e=>{e=e.target.value;o(n.key,e)}},{children:n.options.map((e,t)=>nt.exports.jsx(xC,{value:e.value,control:nt.exports.jsx(Ob,{}),label:e.label},t))}))})):"checkbox"===n.configType?(console.log(t),nt.exports.jsx(xC,{label:null!=(e=n.label)?e:"",control:nt.exports.jsx(om,{checked:t||!1,onChange:e=>{e=e.target.checked?null==(e=null==n?void 0:n.checkedValue)||e:null!=(e=null==n?void 0:n.uncheckedValue)&&e;o(n.key,e)},name:n.key})})):"switch"===n.configType?nt.exports.jsx(xC,{label:"",control:nt.exports.jsx(SA,{checked:t,onChange:e=>{e=e.target.checked?null==(e=null==n?void 0:n.checkedValue)||e:null!=(e=null==n?void 0:n.uncheckedValue)&&e;o(n.key,e)},name:n.key})}):"text"===n.configType?nt.exports.jsx(gw,{placeholder:n.label,size:"small",value:t,inputProps:Object.assign({},null!=(e=null==n?void 0:n.props)?e:{}),onChange:e=>{e=e.target.value;o(n.key,e)}},n.key):null}},"app-config-row-"+(e+1))})]}))]}))}))]}))},Uqo={Discovery:[{configType:"radio",label:"Default Watchlist View",key:"kvp.features.openPrivateWatchlistByDefault",options:[{label:"My Watchlists",value:"enabled"},{label:"Shared Watchlists",value:"disabled"}]},{configType:"radio",label:"Discovery App Filters",key:"kvp.features.discoveryFilters",options:[{label:"Enterprise",value:"enterprise"},{label:"Media",value:"media"}]},{label:"Indexing",description:"Add search index by default",configType:"checkbox",key:"kvp.features.indexing.tdoDefault"},{label:"BETA (In-Development Features)",key:"kvp.features.beta",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Ratings",key:"kvp.features.ratings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Nielsen/Arbitron",key:"kvp.features.includeDataSources",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Numeris",key:"kvp.features.includeNumeris",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Private Media",key:"kvp.features.privateMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Global Media",key:"kvp.features.globalMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Filters",key:"kvp.features.filters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Program Filters",key:"kvp.features.showProgramFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Station Filters",key:"kvp.features.showStationFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Market Filters",key:"kvp.features.showMarketFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Conversations in Analytics",key:"kvp.features.showConversionsInAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Social Media Sharing",key:"kvp.features.socialMediaSharing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:'Display "My Media" Index Options',key:"kvp.features.displayMyMediaIndexOptions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Transcript on Sharing",key:"kvp.features.hideTranscriptOnSharing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Import Bulk Watchlist",key:"kvp.features.bulkUpload",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Bulk Edit Transcript",key:"kvp.features.bulkEditTranscript",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Verification Charts in Discovery",key:"kvp.features.showVerificationChartsInDiscovery",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Virtual Assistant in Discovery",key:"kvp.features.enableDiscoveryVirtualAssistantMentionIntegration",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Download Media",key:"kvp.features.downloadMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Allow Public Media Download",key:"kvp.features.downloadPublicMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Local Broadcast Television",key:"localTV",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Avanced Search (BETA)",key:"kvp.features.enabledAdvancedSearch",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Mention Listing",children:[{label:"Comments",key:"kvp.features.mentionListing.comments",configType:"checkbox"},{label:"Edit Rating",key:"kvp.features.mentionListing.edit",configType:"checkbox"},{label:"Social Sharing",key:"kvp.features.mentionListing.socialSharing",configType:"checkbox"}]},{label:"Sharing Mentions",children:[{label:"Email",key:"kvp.features.shareMentions.email",configType:"checkbox"},{label:"Twitter",key:"kvp.features.shareMentions.twitter",configType:"checkbox"},{label:"Facebook",key:"kvp.features.shareMentions.facebook",configType:"checkbox"},{label:"Link",key:"kvp.features.shareMentions.link",configType:"checkbox"},{label:"Embed",key:"kvp.features.shareMentions.embed",configType:"checkbox"}]},{label:"Show 'Downloadable by Guest' Option When Sharing Mentions",key:"kvp.features.showGuestMentionDownloadOption",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Send Mentions to Salesforce",key:"kvp.features.sendMentionsToSalesForce",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Salesforce ID",key:"kvp.features.salesForceId",configType:"text"},{label:"Send Mentions to Web Service",key:"kvp.features.sendMentionsToWebService",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Can Verify Mentions",key:"kvp.features.canVerifyMentions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Save and Post Button on Verify Mention",key:"kvp.features.verifyPostToCollections",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Compliance Status on Verify Mention",key:"kvp.features.complianceStatus",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Display Mention Hits for Watchlist",key:"kvp.features.displayMentionsHitsForWatchlists",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Mention Export",key:"kvp.features.mentionExport",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Mention Count",key:"kvp.features.mentionCount",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Advertising Verification Fields",key:"kvp.features.showAdvertisingVerificationFields",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Multiple Cognitive Profiles",key:"kvp.features.mulitpleCognitiveProfiles",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Correlation During Mention Generation",key:"kvp.features.correlationDuringMentionGeneration",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show TDO Info in Verify Modal",key:"kvp.features.showVerifyTdoInfo",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Time Before Mention Hit",children:[{label:"Min",key:"mentionPrePaddingMinutes",configType:"number",props:{min:0,max:99}},{label:"Sec",key:"mentionPrePaddingSeconds",configType:"number",props:{min:0,max:59}}]},{label:"Time After Mention Hit",children:[{label:"Min",key:"mentionPostPaddingMinutes",configType:"number",props:{min:0,max:99}},{label:"Sec",key:"mentionPostPaddingSeconds",configType:"number",props:{min:0,max:59}}]},{label:"Mention details",children:[{label:"Enable Star Rating",key:"kvp.features.mentionDetails.enableStarRating",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Verify mention in mention details",key:"verifyMention",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Compliance status",key:"complianceStatus",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Can Comment",key:"canComment",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Edit Mention",key:"editMention",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Spot Type",key:"spotType",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Edit collections",key:"editCollection",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"}]},{label:"Sharing Mentions",children:[{label:"Facebook",key:"kvp.features.mentionDetails.sharing.facebook",configType:"checkbox",defaultValue:!0},{label:"Twitter",key:"kvp.features.mentionDetails.sharing.twitter",configType:"checkbox",defaultValue:!0},{label:"Email",key:"kvp.features.mentionDetails.sharing.email",configType:"checkbox",defaultValue:!0}]},{label:"Mention Aperture Window (seconds)",children:[{label:"Seconds",key:"kvp.features.mentionApertureWindow",configType:"number",props:{min:0}}]},{label:"New Watchlist Name",key:"kvp.features.watchlistLabel",configType:"text"},{label:"Display Mention Hits",key:"kvp.features.displayMentionsHitsForWatchlists",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Share Watchlist",key:"kvp.features.allowWatchlistShare",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Fingerprint Option",key:"kvp.features.showFingerprintInWatchlistCreate",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Maximum Mention Count",children:[{label:"Max Count",key:"kvp.features.watchlistLimits.maximumMentionCount",configType:"number",props:{min:0}}]},{label:"State Date Restriction",desription:"The maximum number of days in the past a watchlist start date can be set to",children:[{label:"Max Days",key:"kvp.features.watchlistLimits.maximumStartAgeDays",configType:"number",props:{min:0}}]},{label:"Maximum Duration",desription:"Set a max day duration from 1-365 days",children:[{label:"Max Days (1-365)",key:"kvp.features.watchlistLimits.maximumDurationDays",configType:"number",props:{min:1,max:365}}]},{label:"Show One Click Watchlist",key:"kvp.features.showOneClickWatchlist",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Radio Monitoring",description:"Find native and pre-recorded mentions of brands.",key:"kvp.features.watchlistTypes.livePrerecorded",configType:"switch"}],"Data Center":[{label:"Show Internal Engine Fields",key:"kvp.showInternalEngineFields",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Engine Pricing",key:"kvp.features.hideEnginePricing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use Network Isolated File Picker",key:"kvp.features.newFilePicker",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Export Closed Captions",key:"kvp.features.exportClosedCaptions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable CMS Folders",key:"kvp.features.cmsFolders",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Workflow Advanced Settings",key:"kvp.features.hideWorkflowAdvancedSettings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Workflow Simple Settings",key:"kvp.features.hideWorkflowSimpleSettings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"CMS Streams File Hierarchy",key:"kvp.features.enableMediaHierarchy",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide CMS from App List",key:"kvp.features.hideCMSFromAppList",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}],Illuminate:[{label:"Export Destination",children:[{label:"Amazon S3",key:"kvp.features.illuminate.exportDestination[0].isEnabled",configType:"checkbox"},{label:"Azure Blob",key:"kvp.features.illuminate.exportDestination[1].isEnabled",configType:"checkbox"},{label:"Desktop",key:"kvp.features.illuminate.exportDestination[2].isEnabled",configType:"checkbox"}]},{label:"Export Retention Period (days)",children:[{label:"Retention Period (days)",key:"kvp.features.illuminate.exportRetentionPeriod",configType:"number",props:{min:1}}]},{label:"Email for Notifications",key:"kvp.features.illuminate.emailAddress",configType:"text"},{label:"Disable Analytics",key:"kvp.features.illuminate.disableAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Default Workflow Setting",configType:"radio",key:"kvp.features.illuminate.defaultWorkflowSetting",options:[{label:"Simple",value:"simple"},{label:"Advanced",value:"advanced"}]},{label:"Enable Redact Navigation",key:"kvp.features.illuminate.enableRedactNavigation",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Contact Analytics",key:"kvp.features.illuminate.contactAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Contact Analytics PowerBI",key:"kvp.features.illuminate.contactAnalyticsPbi",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Allow All Users To View Exports",key:"kvp.features.illuminate.viewAllUserExport",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Files In Current Folder",key:"kvp.features.illuminate.showFilesInCurrentFolder",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}],Attribute:[{label:"Display 'Ad Sources' Filter",key:"kvp.features.attribute.displayAdSourcesFilter",description:"Specific to iHeart Media and should be enabled for all of its orgs. This feature displays a filter at the top level of the campaign which contains filterable data such as TTWN, Smart Audio, Premiere and Radio Spots.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Markets (iHeart)",key:"kvp.features.attribute.displayCustomMarkets",description:"A custom dataset provided by iHeart containing its station to market mapping based on Nielsen markets and its own manufactured markets for non-metro areas.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Restrict Campaign Type to 'Other'",key:"kvp.features.attribute.restrictCampaignTypeToOther",description:"For international customers where 'Campaign Type' Metro and DMA do not apply and will appear as disabled.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Advertiser in Multiple Markets",key:"kvp.features.attribute.advertiserInMultipleMarkets",description:"User selected 'No' results in a custom campaign workflow whereby all stations/markets are selected by default and no geofences are applied.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hybrid Time Zones",key:"kvp.features.attribute.hybridTimeZones",description:"Applies attributable activity (Ads and Ad Visits) to the station time zone and applies non-attributable activity (Non-Ad Visits) to a user specified time zone set in the campaign.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Unwanted Channel Fields",key:"kvp.features.attribute.hideChannelFields",description:"Prevents 'Ad Visits/Ads' and 'Avg. Ad Cost' from appearing in the Traffic Channels chart or data table.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom iHeart v3 Engine",key:"kvp.features.attribute.iHeartCustomEngineV3",description:"Engine logic designed to accommodate the business needs of iHeart and to produce the desired Ad Visits counts.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Merge WideOrbit Bookends",key:"kvp.features.attribute.mergeWideOrbitBookends",description:"Applies logic to handle WideOrbit Bookends, Donuts and Piggybacks record types by either merging the records into a single ad or keeping the records split as two discrete ads.",defaultValue:"enabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use Watchlists as Ad Source",key:"kvp.features.attribute.useWatchlistsAsAdSource",description:"Allows you to select watchlists as an option for ad sources when creating a campaign.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Playout Log Uploader",key:"kvp.features.attribute.uploadLogs",description:"Allows you to upload playout logs directly in Attribute.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Web Log Uploader",key:"kvp.features.attribute.webLogUploader",description:"Allows you to upload web visit data logs directly in Attribute.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Report Builder",key:"kvp.features.attribute.customReportBuilder",description:"Enables entry to the new custom report builder flow- for testing purposes only.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Route Reports tab to Custom Report Builder experience?",key:"kvp.features.attribute.routeToCustomReportBuilder",description:"Clicking on the reports tab in the campaign dashboard will route the user to the customized report building experience.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Report Builder Zero State",key:"kvp.features.attribute.customReportBuilderZeroState",description:"When enabled in an organization, a user within that organization will see a “zero-state” page on Step 2 (Customize) page of the custom report builder workflow. When disabled, a user will start with all snapshots and one of each chart and table loaded into Step 2 in the custom report builder workflow.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Keyword Report",key:"kvp.features.attribute.keywordReport",description:"Allows you to enable keyword report feature in Attribute App.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Canned Templates- Custom Report Builder",key:"kvp.features.attribute.cannedTemplatesCustomReportBuilder",description:"When enabled, a user will be able to select from three canned templates in the custom report builder experience- Charts only, Tables only, or Charts and Tables.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Templates- Custom Report Builder",key:"kvp.features.attribute.customTemplatesCustomReportBuilder",description:"If an organization has at least one custom template, a dropdown menu with the template(s) a user can select from will appear in the left side panel of the custom report builder experience.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"New Ad Users Metric",key:"kvp.features.attribute.newAdUsersMetric",description:'Allows "New Ad Users" to be populated in the appropriate charts & tables.',defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Device Category And Page Path",key:"kvp.features.attribute.deviceCategoryAndPagePath",description:"When enabled in an organization, Device Category & Page Path will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use dedupe when spot type is Billboard (WideOrbit)",key:"kvp.features.attribute.useDedupeWhenSpotTypeIsBillboard",description:"When enabled in an organization, the dedupe process is enabled in the attribute engine.",defaultValue:"enabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"New User Sessions",key:"kvp.features.attribute.newUserSessions",description:"When enabled in an organization, New User Sessions will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Google BigQuery Ingestion",key:"kvp.features.attribute.googleBigQueryIngestion",description:"When enabled in an organization, Google BigQuery Ingestion will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Attribute Pixel Connection Type",key:"kvp.features.attribute.attributePixelConnectionType",description:"When enabled in an organization, Attribute Pixel will be enabled in Attribute as a Connection Type",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Industry Lift Benchmarking UI",key:"kvp.features.attribute.industryLiftBenchmarkingUI",description:"When enabled in an organization, the industry average lift dual tile card will be available to users in campaign dashboard/report builder UI",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Industry Lift Quarterly Email",key:"kvp.features.attribute.industryLiftQuarterlyEmail",description:"When enabled in an organization, Industry Lift Quarterly Email will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Alpha Media - Custom Campaign Dashboard UI",key:"kvp.features.attribute.alphaMediaCustomCampaignDashboard",description:"When enabled in an organization, Alpha Media’s On Air Lift metric will be available in the UI with related additional changes",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Report Builder Custom Template - Simple Report",key:"kvp.features.attribute.alphaMediaSimpleReport",description:"When enabled in an organization, this Simple Report will be available in the dropdown menu of templates in Report Builder",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Report Builder Custom Template - Comprehensive Report",key:"kvp.features.attribute.alphaMediaComprehensiveReport",description:"When enabled in an organization, this Comprehensive Report will be available in the dropdown menu of templates in Report Builder",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}]},zqo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(Hqo,{})})})}),_qo={[l_o.users]:{id:l_o.users,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.users.view",defaultMessage:"Users",description:"The label of users tab button."}),testLabel:"ac-users-view",icon:nt.exports.jsx(age,{}),content:()=>nt.exports.jsx(PXi,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.packages]:{id:l_o.packages,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.packages.view",defaultMessage:"Packages",description:"The label of packages tab button."}),testLabel:"ac-packages-view",icon:nt.exports.jsx(A0e,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(yoo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.approvals]:{id:l_o.approvals,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.approvals.view",defaultMessage:"Approvals",description:"The label of approvals tab button."}),testLabel:"ac-approvals-view",icon:nt.exports.jsx(lge,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(_mo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.permissionSets]:{id:l_o.permissionSets,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.permission-sets.view",defaultMessage:"Permission Sets",description:"The label for Permission Sets view"}),testLabel:"ac-permission-sets-view",icon:nt.exports.jsx(Jpe,{}),content:()=>nt.exports.jsx(p0r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.accessControl]:{id:l_o.accessControl,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.system-access.view",defaultMessage:"System Access",description:"The label of access control tab button."}),testLabel:"ac-access-control-view",icon:nt.exports.jsx(p3e,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(i0r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.groups]:{id:l_o.groups,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.groups.view",defaultMessage:"Groups",description:"The label of groups tab button."}),testLabel:"ac-groups-view",icon:nt.exports.jsx(bpe,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(T2r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.apiTokens]:{id:l_o.apiTokens,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.api-tokens.view",defaultMessage:"API Tokens",description:"The label for API Tokens view"}),testLabel:"ac-api-tokens-view",icon:nt.exports.jsx(Kpe,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(Udo,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!0},[l_o.iam]:{id:l_o.iam,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.iam.view",defaultMessage:"IAM",description:"The label for the IAM view"}),testLabel:"ac-iam-view",icon:nt.exports.jsx(Ppe,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(t$r,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.auditLogs]:{id:l_o.auditLogs,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.audit-logs.view",defaultMessage:"Audit Logs",description:"The label of Audit Logs tab button."}),testLabel:"ac-audit-logs-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(Yft,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.systemInfo]:{id:l_o.systemInfo,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.system-info.view",defaultMessage:"System Info",description:"The label for System Info view"}),testLabel:"ac-system-info-view",icon:nt.exports.jsx(Vpe,{}),content:()=>nt.exports.jsx(Ggo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.retentionPolicy]:{id:l_o.retentionPolicy,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.retention-policy.view",defaultMessage:"Retention Policy",description:"The label of Retention Policy tab button."}),testLabel:"ac-retention-policy-view",icon:nt.exports.jsx(Q0e,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(I_e,{label:"Retention Policy View",ticketId:0}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!0,isHiddenForSuperadmin:!1},[l_o.orgSettings]:{id:l_o.orgSettings,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view",defaultMessage:"Org Settings",description:"The label of Org Settings tab button."}),testLabel:"ac-org-settings-view",icon:nt.exports.jsx(Nge,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(yqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.appSettings]:{id:l_o.appSettings,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.app-settings.view",defaultMessage:"App Settings",description:"The label of App Settings tab button."}),testLabel:"ac-app-settings-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(zqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.customIntegration]:{id:l_o.customIntegration,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-integration.view",defaultMessage:"Integration",description:"The label of Custom Integration tab button."}),testLabel:"ac-custom-integration-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(Mqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.customLogin]:{id:l_o.customLogin,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-login.view",defaultMessage:"Login",description:"The label of Custom Login tab button."}),testLabel:"ac-custom-login-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(wIo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.customRegistration]:{id:l_o.customRegistration,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-registration.view",defaultMessage:"Registration",description:"The label of Custom Registration tab button."}),testLabel:"ac-custom-registration-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(qPo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!1,isHiddenForSuperadmin:!1}},qqo=e=>_qo[e],Wqo=()=>Object.keys(_qo).map(e=>_qo[e]),Zqo=t=>Wqo().filter(e=>e.group===t),Gqo={tooltip:(e,t,n)=>{let r=t?"":e.label;return n&&(r=nt.exports.jsxs(nt.exports.Fragment,{children:[t?"":nt.exports.jsxs(nt.exports.Fragment,{children:[e.label," - "]}),nt.exports.jsx(Ce,{id:"os-admin-center-browse.nav-item.tooltip.coming-soon",defaultMessage:"Coming soon",description:"The label for the coming soon tooltip"})]})),{"data-test":"ac-nav-tab-"+e.testLabel,placement:"right",title:r}},tab:(e,t,n,r)=>Object.assign(Object.assign({wrapped:!0,label:t?e.label:"",icon:e.group===c_o.NONE?e.icon:nt.exports.jsx("span",{style:{marginLeft:"30px"}}),classes:{root:r.tabRoot,wrapped:t?r.tabExpandedWrapper:r.tabWrapper,selected:t?r.tabExpandedSelected:r.tabSelected}},{id:"admin-center-tab-"+(t=e.id),"aria-controls":"admin-center-tabpanel-"+t}),n?{sx:{opacity:"0.5!important"},onClick:()=>{}}:{})};let Jqo=({view:e})=>{var t=sqo({height:"64px"}).classes;let n=Ie();var r=Ae(H_o),i=Ae(__o),o=qqo(e),{isBehindBeta:a,isComingSoon:s,isOLPItem:l}=o,c=Ae(WG),d=Ae(B_o),r=e===r,u=Ae(U_o),i=i.includes(e);return a&&!c||i||l&&!d?null:nt.exports.jsx(he,Object.assign({},Gqo.tooltip(o,u,s),{children:nt.exports.jsx(NA,Object.assign({onClick:()=>{n(f_o.setActiveView(e))}},Gqo.tab(o,u,s,t),{selected:r}))}))},Kqo={[c_o.NONE]:{id:c_o.NONE,label:nt.exports.jsx(nt.exports.Fragment,{}),testLabel:"admin-center.navigation.group.none",icon:nt.exports.jsx(nt.exports.Fragment,{}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1},[c_o.PERMISSIONS]:{id:c_o.PERMISSIONS,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.permissions",defaultMessage:"Permissions",description:"The label of the navigation group - permissions"}),testLabel:"admin-center.navigation.group.permissions",icon:nt.exports.jsx(Jpe,{sx:{marginLeft:"13px"}}),isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1},[c_o.SECURITY]:{id:c_o.SECURITY,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.security",defaultMessage:"Security",description:"The label of the navigation group - security"}),testLabel:"admin-center.navigation.group.security",icon:nt.exports.jsx(Kpe,{sx:{marginLeft:"15px"}}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1},[c_o.SETTINGS]:{id:c_o.SETTINGS,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.settings",defaultMessage:"Settings",description:"The label of the navigation group - settings"}),testLabel:"admin-center.navigation.group.settings",icon:nt.exports.jsx(Nge,{sx:{marginLeft:"15px"}}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1}},Yqo=({group:e})=>{let t=Ie(),i=Ae(J_o),o=Ae(mG);var n=Kqo[e];let r=Ae(H_o),a=Ae(WG),s=Ae(B_o);var l=Zqo(e).filter(e=>{var{isOLPItem:e,isBehindBeta:t,isHiddenForSuperadmin:n,isDisplayedForSuperadmin:r}=e;return!(e&&!s||t&&!a||n&&!i||r&&!o)});let c=l.some(e=>e.id===r);var{isOLPItem:d,isBehindBeta:u}=n;let p=Ae(U_o),g=Ae(z_o)[e];var f=g?nt.exports.jsx(rue,{}):nt.exports.jsx(iue,{});let h=p?"":n.label;c&&!p&&(m=l.find(e=>e.id===r),h=nt.exports.jsxs(nt.exports.Fragment,{children:[n.label," - ",null==m?void 0:m.label]}));var m=u&&!a||d&&!s||0===l.length;return Le.exports.useEffect(()=>{g&&!p&&t(f_o.toggleNavGroupOpened(e)),!g&&p&&c&&t(f_o.toggleNavGroupOpened(e))},[p]),m?null:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(he,Object.assign({title:p?"":h,placement:"right"},{children:nt.exports.jsx(ge,Object.assign({onClick:()=>{t(f_o.toggleNavGroupOpened(e)),g||p||t(f_o.toggleNavExpanded())},sx:{justifyContent:"flex-start",padding:"13px 10px",color:c&&!g?"#1871E8":"#555F7C","& svg":{transform:p?"":"translateX(5px)",color:c&&!p?"#1871E8":void 0},"& .MuiButton-endIcon":{marginLeft:"auto"}},fullWidth:!0,startIcon:n.icon,endIcon:f,"data-testid":n.testLabel},{children:p&&n.label}))})),nt.exports.jsx(B6,Object.assign({sx:{width:"100%"},in:g,timeout:"auto",unmountOnExit:!0},{children:nt.exports.jsx(_,Object.assign({width:"100%"},{children:l.map(e=>nt.exports.jsx(Jqo,{view:e.id},e.id))}))}))]})},Qqo=()=>{var e=Ae(U_o);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Jqo,{view:l_o.users}),nt.exports.jsx(Jqo,{view:l_o.approvals}),nt.exports.jsx(Jqo,{view:l_o.packages}),nt.exports.jsx(Yqo,{group:c_o.PERMISSIONS}),nt.exports.jsx(Yqo,{group:c_o.SECURITY}),nt.exports.jsx(uqo,{isNavExpanded:e}),nt.exports.jsx(Jqo,{view:l_o.systemInfo}),nt.exports.jsx(Jqo,{view:l_o.retentionPolicy}),nt.exports.jsx(Yqo,{group:c_o.SETTINGS})]})},Xqo=()=>{let t=sqo({height:"64px"}).classes,n=Ae(H_o);var e=Wqo();return nt.exports.jsx(nt.exports.Fragment,{children:e.map(e=>{e=e.id;return nt.exports.jsx($qo,Object.assign({activeView:n,value:e,className:t.contentPanel},{children:qqo(e).content()}),e)})})};function $qo(e){var{children:t,activeView:n,value:r}=e,e=m_o(e,["children","activeView","value"]);return nt.exports.jsx("div",Object.assign({role:"tabpanel",hidden:n!==r,id:"admin-center-tabpanel-"+r,"data-test":"admin-center-tabpanel-"+r,"aria-labelledby":"admin-center-tab-"+r},e,{children:n===r&&t}))}let eWo=({height:e})=>{var e=sqo({height:e}).classes,t=Ae(U_o);return Ae(W_o)?nt.exports.jsxs("div",Object.assign({className:e.root},{children:[nt.exports.jsx(lw,Object.assign({id:"adminCenterViewTabs",orientation:"vertical",value:0,onChange:(e,t)=>{},className:Zhe(e.tabs,{[e.tabsExpanded]:t}),classes:{flexContainer:e.tabsContainer,indicator:e.tabIndicator},"aria-label":"admin center tabs","data-test":"ac-nav-tabs-container"},{children:nt.exports.jsx(Qqo,{})})),nt.exports.jsx(Xqo,{})]})):null},tWo=({classes:e,dimmed:t,children:n})=>Ae(EY)?nt.exports.jsx(oze,Object.assign({dataTest:"ac-widget",dimmed:!!t,panelId:"ADMIN_CENTER"},{children:n})):nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"ac-widget",className:Zhe(e.root,e.panel)},{children:n})),nWo=55,rWo=64,iWo=5,oWo=je()(e=>({root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0},overlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"}})),aWo=({hidePanel:e})=>{var t=oWo().classes;let n=Ie();var r=Ae(EY),i=(Ae(Cse)||[]).find(e=>"ADMIN_CENTER"===e.panelId)||{panelConfig:{dimmed:0}},i=0<(null==(i=null===i?void 0:i.panelConfig)?void 0:i.dimmed),r=`calc(100vh - ${r?25:nWo+iWo}px - ${rWo}px)`;return Le.exports.useEffect(()=>{bZ.getQueries().find(e=>"apiTokens"===e.name)&&n(f_o.setHiddenView({view:l_o.apiTokens,isHidden:!1}))},[]),nt.exports.jsxs(tWo,Object.assign({dimmed:i,classes:t,"data-test":"os-admin-center.browse.container"},{children:[nt.exports.jsx(aqo,{"data-test":"os-admin-center.browse.header",height:rWo,hidePanel:e}),nt.exports.jsx(eWo,{"data-test":"os-admin-center.browse.main-panel",height:r})]}))},sWo=e=>{var{apiRoot:t,graphQLEndpoint:n,token:r}=Ae(YG);let i=Ae(uG),o=Ie(),{organizationId:a,organizationGuid:s,organizationName:l}=e;return Xce(jce.Job),Le.exports.useEffect(()=>{var e;null!=(e=null==i?void 0:i.organization)&&e.organizationId&&(a?o(f_o.setAdminCenterOrganization({id:a,guid:s||"",name:l||"",isUsersCurrentOrg:a===i.organization.organizationId})):o(f_o.setAdminCenterOrganization({id:i.organization.organizationId,guid:i.organization.organizationGuid||"",name:i.organization.organizationName||"",isUsersCurrentOrg:!0})))},[o,a,s,l,i]),t&&n&&r?nt.exports.jsx(aWo,Object.assign({},e)):null};let{header:lWo,container:cWo}=C2e,dWo="UPSERT_CUSTOM_INTEGRATION_PANEL",uWo=({integration:e={integrationId:"",json:""},viewMode:t,hidePanel:n,onUpsertIntegration:r})=>{let[i,o]=Le.exports.useState(e.integrationId||""),[a,s]=Le.exports.useState(e.json?JSON.stringify(e.json,null,2):"{}");e=Le.exports.useCallback(()=>{n()},[]);return nt.exports.jsxs(cWo,Object.assign({panelId:dWo,testId:"upsert-custom-integration-panel-container"},{children:[nt.exports.jsx(lWo,{title:"add"===t?"New Custom Integration":"Edit Custom Integration",testId:"upsert-custom-integration-panel-header",onPanelClose:e}),nt.exports.jsxs(be,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",margin:"30px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",mb:"5px"}},{children:"Integration ID"})),nt.exports.jsx(gw,{disabled:"edit"===t,value:i,placeholder:"Integration ID",onChange:e=>{e=e.target.value;o(e)},"data-testid":"admin-center-custom-integration-name-input",sx:{mb:"20px"}}),nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",mb:"5px"}},{children:"JSON"})),nt.exports.jsx(Z_e,{jsonData:a,onChange:e=>{s(e)},height:"500px"}),nt.exports.jsxs(be,Object.assign({sx:{position:"fixed",bottom:"20px",right:"80px",marginTop:"15px",marginRight:"15px"}},{children:[nt.exports.jsx(ge,Object.assign({sx:{mr:2},color:"inherit",onClick:e},{children:"Cancel"})),nt.exports.jsx(ge,Object.assign({disabled:!a||!i,variant:"contained",color:"primary",onClick:()=>{r({integrationId:i,json:a})}},{children:"Save"}))]}))]}))]}))};var pWo=Object.freeze({__proto__:null,AdminCenterBrowse:e=>nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[sQi(),n2r(),Gpr(),HIi(),{id:u_o,reducerMap:{[u_o]:V_o},sagas:[iqo],initialActions:[]},lGt(),{id:N0o,reducerMap:{[N0o]:D0o},sagas:[B0o],initialActions:[]},$7o()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(sWo,Object.assign({},e))})}))}),UpsertIntegrationPanel:e=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(uWo,Object.assign({},e))})})})}),x_r={},QQe=NQ.exports,gWo=(Object.defineProperty(x_r,"__esModule",{value:!0}),x_r.default=void 0),Upe=QQe(YX),h2e=nt.exports,Hpe=(0,Upe.default)((0,h2e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),gWo=x_r.default=Hpe,eX={},rpe=NQ.exports,fWo=(Object.defineProperty(eX,"__esModule",{value:!0}),eX.default=void 0),gpe=rpe(YX),J0e=nt.exports,g=(0,gpe.default)((0,J0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),fWo=eX.default=g;let hWo={processAiHeaderTitle:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},mWo=je()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),CWo="dataCenterProcessAI",xWo=((vg=Zoa=Zoa||{}).aiCapabilities="aiCapabilities",vg.engineSelection="engineSelection",vg.engineConfiguration="engineConfiguration","capabilitiesState");t=LT({name:CWo+"/"+xWo,initialState:{status:"idle",capabilities:[],engines:{}},reducers:{capabilitiesFetchStart(e,t){e.status="pending"},capabilitiesFetchSucceed(e){e.status="idle"},capabilitiesFetchFailed(e){e.status="failure"},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),zpe=t.actions,Tge=t.reducer;let vWo="processAiConfig";BU=LT({name:CWo+"/"+vWo,initialState:{status:"idle",selectedEngines:{}},reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:n}=t.payload;e.selectedEngines[t]=n},updateSingleJobStatus(e,t){let{engineId:n,status:r}=t.payload;for(var i in e.selectedEngines){var o=e.selectedEngines[i].findIndex(e=>e.id===n);if(-1!==o){e.selectedEngines[i][o].status=r,e.selectedEngines[i][o].errorMessage=t.payload.errorMessage;break}}}}}),U3e=BU.actions,C0e=BU.reducer,qoi="uiState",xge={status:"idle",currentView:Zoa.aiCapabilities},tpe=LT({name:CWo+"/"+qoi,initialState:xge,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload}}}),wTi=tpe.actions,Rpe=tpe.reducer;let bWo="job";HU=LT({name:CWo+"/"+bWo,initialState:{status:"idle"},reducers:{launchJobStart(e,t){e.status="pending"},launchJobSucceed(e){e.status="success"},launchJobFailed(e){e.status="failure"}}}),v3e=HU.actions;let yWo={uiState:wTi,[xWo]:zpe,[vWo]:U3e,[bWo]:v3e},AWo=Ow({uiState:Rpe,[xWo]:Tge,[vWo]:C0e,[bWo]:HU.reducer}),IWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.status,wWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.capabilities,jWo=t=>e=>null==(e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.engines)?void 0:e[t],SWo=e=>{e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>we.exports.concat(e,t)):[]},OWo=t=>e=>null==(e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines)?void 0:e[t],kWo=e=>{e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},TWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines,EWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[bWo])?void 0:e.status,NWo=dT([EG,PG,cG],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),MWo=je()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),PWo=({categories:e,closeSnackbar:i,enableNonSingleEngineJobEngines:o,aobSelectedEngines:a,marginStart:s,marginTop:l})=>{let n=MWo().classes,c=Ie(),d=Ae(TWo),u=Ae(EY);return nt.exports.jsx("div",Object.assign({className:n.processingContainer},{children:e.map((r,e)=>{var t;return nt.exports.jsx(LWo,{category:r,onClick:()=>{var e,t,n;e=r,i(),e={name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:e,enableNonSingleEngineJobEngines:o,aobSelectedEngines:a}},t=s||0,n=l||0,n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(u?0:55)+n,marginStart:(u?380:460)+t,size:"small",siblingPanelId:"DATA_CENTER_PROCESS_AI",parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"},c(yse({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:e,panelConfig:n}))},badgeContent:null!=(t=d[r.id])&&t.length?nt.exports.jsx(pe,Object.assign({variant:"overline",className:n.badgeContent,"data-testid":"engine-category-badge-quantity"},{children:d[r.id].length})):0},e)})}))},LWo=({category:e,onClick:t,badgeContent:n})=>{var r=MWo().classes,i=e.name.replace(/[^a-zA-Z]/g,"");return nt.exports.jsxs(be,Object.assign({sx:{"&:hover .category-card-engine-icon":{color:"#FFF",transition:"color 0.2s ease-in-out"},"&:hover .category-card-engine-icon-background":{backgroundColor:"#4b5471",transition:"background-color 0.2s ease-in-out"},"&:hover .engine-category-name":{color:"#4b5471"}},"data-test":"engine-category-row",className:r.processingRow+" engine-category-card",onClick:t},{children:[nt.exports.jsx("div",Object.assign({className:r.iconBackground+" category-card-engine-icon-background"},{children:nt.exports.jsx(u7,Object.assign({"data-testid":"engine-category-badge-"+i,badgeContent:n||0,color:"secondary",classes:{badge:r.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:nt.exports.jsx(ex,{"data-test":"engine-category-icon-"+i,className:r.engineIcons+" category-card-engine-icon",component:C4e[i],color:"secondary",fontSize:"small"})}))})),nt.exports.jsxs("div",Object.assign({className:r.processingColumn},{children:[nt.exports.jsx(pe,Object.assign({"data-test":`engine-category-name-${e.name} engine-category-name`,variant:"h6",color:"textPrimary",className:r.name,sx:{pointerEvents:"none"}},{children:e.name})),nt.exports.jsx(pe,Object.assign({"data-test":"engine-category-description-"+e.name,variant:"body2",color:"textSecondary",className:r.description},{children:e.description}))]}))]}),i)},DWo=je()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"70%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"30%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),RWo=({name:e,status:t,onRetry:n,limitAnimation:r=!1,errorMessage:i=""})=>{let[o,a]=Le.exports.useState(!0);Le.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var s=DWo().classes;return nt.exports.jsxs("div",Object.assign({className:Zhe(s.jobLaunchItem,{[s.jobLaunchItemLoading]:"pending"===t||o,[s.jobLaunchItemSuccess]:"success"===t,[s.jobLaunchItemFail]:"failure"===t})},{children:[nt.exports.jsxs("div",Object.assign({className:s.jobLaunchItemMessage},{children:[nt.exports.jsx(pe,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:"pending"===t||o?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):"success"===t?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):"failure"===t?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),nt.exports.jsx("div",Object.assign({className:s.jobLaunchItemFeedback},{children:"pending"===t||o?nt.exports.jsx(mm,{size:20,disableShrink:r}):"success"===t?nt.exports.jsx(gWo,{style:{color:"#4caf50"}}):"failure"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[i&&nt.exports.jsx(he,Object.assign({title:i,placement:"top"},{children:nt.exports.jsx(ue,Object.assign({sx:{color:"rgb(97, 26, 21)"}},{children:nt.exports.jsx(Vpe,{})}))})),nt.exports.jsx(ge,Object.assign({color:"inherit",onClick:n},{children:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})}))]}):void 0}))]}))},FWo=({open:e,onClose:n,jobLaunchItems:t,onRetry:r,hidePanel:i})=>{var o=(e,t)=>{"clickaway"!==t&&n()},a=DWo().classes;let s=10<t.length;var l=()=>{for(var e of t)if("failure"===e.status||"pending"===e.status)return null;return 2500};return nt.exports.jsx(Sy,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:o,TransitionProps:{onExited:l()&&i}},{children:nt.exports.jsxs("div",Object.assign({className:"aiware-el "+a.jobLaunchSnackbarContainer},{children:[nt.exports.jsxs("div",Object.assign({className:a.jobLaunchSnackbarTitle},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),nt.exports.jsx(ue,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:o},{children:nt.exports.jsx(HMt,{fontSize:"inherit"})}))]})),nt.exports.jsx("div",Object.assign({className:a.jobLaunchItemList},{children:t.map((e,t)=>nt.exports.jsx(RWo,{name:e.name,errorMessage:null==e?void 0:e.errorMessage,status:e.status,onRetry:()=>r(e),limitAnimation:s},t))}))]}))}))},VWo=je()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),BWo=({title:e,actionButton:t,cancelButton:n,confirmationOnCancel:r=!1,children:i=null})=>{let[o,a]=Le.exports.useState(!1);var s=VWo().classes;let l=e=>{a(!1),e&&e()};return nt.exports.jsxs("div",Object.assign({className:s.root,"data-test":"data-center-action-footer"},{children:[e,i,nt.exports.jsx(Ghe,{showConfirmationModal:o,closeConfirmationModal:l,onClosePanel:()=>l(n.action)}),nt.exports.jsx(ge,Object.assign({onClick:()=>{r&&!t.disabled?a(!0):n.action()},disabled:n.disabled,"data-test":n.dataTest,className:s.cancelButton},{children:n.label})),nt.exports.jsx(ge,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:s.actionButton},{children:t.label}))]}))},HWo=t=>{var e,n=mWo().classes;let{apiRoot:r,graphQLEndpoint:i,token:o}=Ae(NWo),a=Ae(EWo),[s,l]=Le.exports.useState(!1);var c=Ae(IWo);let d=Ae(kWo),u=Ae(SWo),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:f}=t;var h=Ae(wWo);let m=Ie(),C=()=>{m(yWo.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(Le.exports.useEffect(()=>{["pending","success","failure"].includes(a)&&l(!0)},[a]),Le.exports.useEffect(()=>{r&&i&&o&&C()},[r,i,o,m,t.tdoId]),!(r&&i&&o&&t.panelRendered))return null;var x={label:null!=(x=t.submitButtonLabel)?x:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):m(yWo.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},v={label:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"},b=((null==t?void 0:t.marginStart)||0)-(null!=(b=null==t?void 0:t.parentPanelId)&&b.startsWith("INVESTIGATE")?80:0);return nt.exports.jsxs("div",Object.assign({className:n.aiProcessingWrapper},{children:[nt.exports.jsxs("div",Object.assign({className:n.processAiHeader},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:hWo.processAiHeaderTitle()})),nt.exports.jsx(he,Object.assign({title:hWo.closePanel()},{children:nt.exports.jsx(ue,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]})),nt.exports.jsx(pe,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:hWo.processAiHeaderDescription()})),"failure"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("br",{}),nt.exports.jsx(be,Object.assign({mt:4},{children:nt.exports.jsxs(T9,Object.assign({variant:"outlined",severity:"error"},{children:[nt.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:hWo.processAiFailedStatus()})),nt.exports.jsx(be,{children:nt.exports.jsx(ge,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:C},{children:hWo.processAiRetryBtn()}))})]}))}))]}),"idle"===c&&!(null!=h&&h.length)&&nt.exports.jsx(be,Object.assign({mt:4},{children:nt.exports.jsx(T9,Object.assign({variant:"outlined",severity:"info"},{children:hWo.processAiNoEngineCapability()}))})),"pending"===c&&nt.exports.jsx("div",Object.assign({className:n.loaderIcon},{children:nt.exports.jsx(mm,{})})),"idle"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(PWo,{categories:h,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:f,marginStart:b,marginTop:null==t?void 0:t.marginTop}),nt.exports.jsx(BWo,{confirmationOnCancel:!0,actionButton:x,cancelButton:v})]}),nt.exports.jsx(Ch,{children:nt.exports.jsx(FWo,{open:s,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{m(yWo.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function UWo(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function zWo(r,i,o,a,s){var l;return UWo(this,void 0,void 0,function*(){var e="launchSingleEngineJob",t="launchSingleEngineJob",n=null==a?void 0:a.filter(e=>null!==e.fieldValue),n=yield fZ({query:"\n mutation launchSingleEngineJob($input: SingleEngineJobInput!) {\n launchSingleEngineJob(input: $input) {\n id\n }\n }\n ",variables:{input:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({engineId:i},{priority:-50}),TL(r.apiRoot,"https://api.us-1.veritone.com")&&{clusterId:"prd5-21xbyq0x-4h0s-o685-snas-oovhdai552v9"}),s&&{uploadUrl:s}),o&&{targetId:o}),(null==n?void 0:n.length)&&{fields:n})},operationName:e,graphEndpoint:r.graphQLEndpoint,token:r.token});return n.errors&&0<n.errors.length?{errorMessage:n.errors[0].message,jobId:void 0}:{errorMessage:void 0,jobId:null==(l=n.data[t])?void 0:l.id}})}function*_Wo(e){try{var r=yield D(NWo),t=yield D(AG),n=e.payload,i=n?yield function(n,r){var i;return UWo(this,void 0,void 0,function*(){var e="getTdoContentType",t="temporalDataObject",e=yield H(Object.assign({query:'\n query getTdoContentType($tdoId: ID!) {\n temporalDataObject(id: $tdoId) {\n primaryAsset(assetType: "media") {\n contentType\n }\n }\n }\n ',variables:{tdoId:r},operationName:e},n));return null==(i=null==(i=e[t])?void 0:i.primaryAsset)?void 0:i.contentType})}(r,n):null,o=XW(t);if(n&&!i)yield P(F({content:o({id:"os-data-center-process-ai.snackbar.processAiEngineError",defaultMessage:[{type:0,value:"This file can not be processed through any AI engines!"}]}),severity:R.Info}));else{var a=yield function(n,r,i){return UWo(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield H(Object.assign({query:`
4645
+ }`,r=i.reduce((e,t)=>(e[t.name]=t.value,e),{});o.length&&(r.filter=o.reduce((e,t)=>(e[t.name]=t.value,e),{}));var c=yield CZ().queryParser(e,t,a),c=yield fZ({query:null!=(h=null==c?void 0:c.query)?h:a,operationName:n,graphEndpoint:e,token:t,variables:r});return(null==(h=null==(h=null==c?void 0:c.data)?void 0:h.applications)?void 0:h.records)||[]})},update:function({apiConfigs:o,itemToUpdate:a}){var s;return C_o(this,void 0,void 0,function*(){var e=a,t="updateConfig";let n="applicationConfigSet";var r=null==(s=e.applicationConfig.updatedRecords)?void 0:s.map(e=>({configKey:e.configKey,configValue:e.defaultValue}));n;let i=yield H(Object.assign({query:"\n mutation updateConfig ($input: ApplicationConfigSetConfigInput) {\n applicationConfigSet (input: $input) {\n records {\n configKey\n value\n }\n }\n }\n ",operationName:t,variables:{input:{appId:e.id,orgId:e.organizationId,configs:r}}},o));t=null==(s=e.applicationConfig.records)?void 0:s.map(t=>{var e=i[n].records.find(e=>e.configKey===t.configKey);return e?Object.assign(Object.assign({},t),{value:e.value}):t});return Object.assign(Object.assign({},e),{applicationConfig:{records:t}})})},pageSize:15},toast:{update:{success:"Application config updated successfully",error:"Failed to update application config"}}});Gln="applicationKvps";let{slice:L_o,selectors:D_o,sagas:R_o}=n2e({sliceName:u_o,namespace:Gln,apiCalls:{read:function({apiConfigs:r,payload:i}){return C_o(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=r,n=null==i?void 0:i.orgId;return yield fetch(y_o(e,""+n),{method:"GET",credentials:"include",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t})}).then(e=>e.json()).then(e=>e).catch(e=>(console.error("Error fetching organization settings for application kvps",e),{}))})},update:function({apiConfigs:i,item:o}){return C_o(this,void 0,void 0,function*(){var{apiRoot:e,token:t}=i,n=o.ORG_ID,r=m_o(o,["ORG_ID"]);return yield fetch(y_o(e,n),{method:"PUT",credentials:"include",headers:Object.assign({"Content-Type":"application/json"},t&&{Authorization:"Bearer "+t}),body:JSON.stringify(r)}).then(e=>e.json()).then(e=>e).catch(e=>(console.error("Error updating app kvps",e),{}))})}},toast:{update:{success:"Application configs updated successfully",error:"Failed to update application configs"}}}),F_o={[p_o]:f_o,applicationConfigs:N_o.actions,applicationKvps:L_o.actions},V_o=Ow({[p_o]:h_o,applicationConfigs:N_o.reducer,applicationKvps:L_o.reducer}),B_o=(dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.status),dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>"enabled"===(null==e?void 0:e.olpFeature))),H_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.activeView),U_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.isNavExpanded),z_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.navGroupOpenState),__o=(dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.isFullScreen),dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>(null==e?void 0:e.hiddenViews)||[])),q_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.orgSettings),W_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.id),Z_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.name),G_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.status),J_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==e?void 0:e.organization)?void 0:e.isUsersCurrentOrg),K_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==(e=null==(e=null==e?void 0:e.orgSettings)?void 0:e.features)?void 0:e.defaultApplication),Y_o=dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null==e?void 0:e.applications),Q_o=M_o,X_o=D_o;function*$_o(){try{var e=yield L(x_o,yield D(YG),(yield D(FIt)).toString());yield P(f_o.fetchOlpAvailabilitySuccess(e||"disabled"))}catch(e){yield P(f_o.fetchOlpAvailabilityFailure()),console.log(e)}}function*eqo(e){var t,n,r,i;try{var o=yield D(YG),a=yield D(FIt),s=yield L(v_o,o,a.toString()),l=yield L(A_o,{apiConfigs:o,orgId:a.toString()});yield P(f_o.fetchApplicationsInit()),yield P(f_o.fetchOrgSettingsSuccess(Object.assign(Object.assign({},s),{organizationStatus:l.status,jsondata:Object.assign({isLimitEnforced:null!=(t=null==l?void 0:l.isLimitEnforced)?t:void 0,remainingBudget:null!=(n=null==l?void 0:l.remainingBudget)?n:void 0,seatLimit:null!=(r=null==l?void 0:l.seatLimit)?r:void 0,adminSeatLimit:null!=(i=null==l?void 0:l.adminSeatLimit)?i:void 0},l.kvp)})))}catch(e){yield P(f_o.fetchOrgSettingsFailure())}}function*tqo(){try{var e=yield L(b_o,yield D(YG),yield D(FIt));yield P(f_o.fetchApplicationsSuccess(e))}catch(e){console.log(e),yield P(f_o.fetchApplicationsFailure())}}function*nqo(e){var t=yield D(AG),t=XW(t);try{var n,r=yield D(YG),i=yield D(FIt),o=yield L(A_o,{apiConfigs:r,orgId:i.toString()}),{logoUploadState:a,orgName:s,orgLogoUrl:l,features:c,initialFeatures:d}=yield D(q_o),u=Object.assign({},c),p=(o.organizationName=s,!!o.kvp.image&&!l&&!a);if(a?o.kvp.image=a.unsignedUrl:p&&(o.kvp.image=null),!TL(u,d)){if(o.kvp.engineApprovalWhiteListed=u.engineApprovalWhiteListed,delete u.engineApprovalWhiteListed,o.isLimitEnforced=u.isLimitEnforced,delete u.isLimitEnforced,u.remainingBudget&&(o.remainingBudget=u.remainingBudget,delete u.remainingBudget),u.adminSeatLimit&&u.seatLimit&&u.adminSeatLimit>u.seatLimit)return yield P(f_o.updateOrgSettingsFailure()),n={content:TL("production","development")?"Admin seat limit cannot be greater than total seat limit":t({id:"os-admin-center-browse:org-settings.seat-limit-error",defaultMessage:[{type:0,value:"Admin seat limit cannot be greater than total seat limit"}]}),severity:R.Error},void(yield P(F(n)));void 0!==u.seatLimit&&(o.seatLimit=""===u.seatLimit?null:parseInt(u.seatLimit),delete u.seatLimit),void 0!==u.adminSeatLimit&&(o.adminSeatLimit=""===u.adminSeatLimit?null:parseInt(u.adminSeatLimit),delete u.adminSeatLimit),o.kvp.features=Object.assign(Object.assign({},o.kvp.features),u)}yield L(I_o,{apiConfigs:r,orgId:i,body:o}),yield Zu(1500),yield P(f_o.updateOrgSettingsSuccess());var g={content:TL("production","development")?"Successfully updated Organization Settings":t({id:"os-admin-center-browse:org-settings.update-success",defaultMessage:[{type:0,value:"Successfully updated Organization Settings"}]}),severity:R.Success};yield P(F(g))}catch(e){console.warn("Error occurred when attempting to update Organization Settings: ",e),yield P(f_o.updateOrgSettingsFailure());c={content:TL("production","development")?"Something went wrong. Unable to update Organization Settings":t({id:"os-admin-center-browse:org-settings.update-failure",defaultMessage:[{type:0,value:"Something went wrong. Unable to update Organization Settings"}]}),severity:R.Error};yield P(F(c))}}function*rqo(e){var t=yield D(AG),t=XW(t);try{var n=yield D(YG),r=yield D(FIt),i=(yield L(w_o,{apiConfigs:n,orgId:r}),yield P(f_o.deactivateOrganizationSuccess()),yield P(Ise(V.ADMIN_CENTER)),{content:TL("production","development")?"Successfully deactivated Organization":t({id:"os-admin-center-browse:org.deactivate-success",defaultMessage:[{type:0,value:"Successfully deactivated Organization"}]}),severity:R.Success});yield P(F(i))}catch(e){console.warn("Error occurred when attempting to deactivate orginization: ",e),yield P(f_o.deactivateOrganizationFailure());n={content:TL("production","development")?"Something went wrong. Unable to update Organization Settings":t({id:"os-admin-center-browse:org.deactivate-failure",defaultMessage:[{type:0,value:"Something went wrong. Unable to deactivate Organization"}]}),severity:R.Error};yield P(F(n))}}function*iqo(){yield Uu([P_o.watchRead(),P_o.watchUpdate(),P_o.watchDelete(),P_o.watchCreate(),R_o.watchRead(),R_o.watchUpdate(),R_o.watchDelete(),R_o.watchCreate(),function*(){yield $u(f_o.fetchOlpAvailabilityStart.type,$_o)}(),function*(){yield $u(f_o.fetchOrgSettingsStart.type,eqo)}(),function*(){yield $u(f_o.updateOrgSettingsStart.type,nqo)}(),function*(){yield $u(f_o.setAdminCenterOrganization.type,$_o)}(),function*(){yield $u(f_o.fetchApplicationsInit.type,tqo)}(),function*(){yield o(f_o.deactivateOrganizationInit.type,rqo)}()])}let oqo=je()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:t,padding:e.spacing(2),position:"relative"},title:{minWidth:"126px"},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)}})),aqo=({hidePanel:e,height:t})=>{t=oqo({height:t}).classes;let n=Ie(),r=Ae(EY);var i=Ae(U_o);let o=Ae(J_o),a=Ae(Z_o);return nt.exports.jsxs("header",Object.assign({className:t.header,"data-test":"ac-header"},{children:[nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.menu",defaultMessage:"Toggle Navigation Menu",description:"Toggle Navigation Menu"})},{children:nt.exports.jsx(ue,Object.assign({sx:{mr:1},onClick:()=>{n(f_o.toggleNavExpanded())},"aria-expanded":i,"aria-labelledby":"ac-header-toggle-nav","data-test":"ac-header-toggle-nav",size:"large"},{children:nt.exports.jsx(ype,{})}))})),nt.exports.jsx(pe,Object.assign({variant:"h1",className:t.title,"data-test":"ac-title"},{children:o?nt.exports.jsx(Ce,{id:"os-admin-center-browse.header.title",defaultMessage:"Admin Center",description:"Panel header of the admin center"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Ce,{id:"os-admin-center-browse.header.title.org-detail",defaultMessage:"Org Detail",description:"Panel header of the admin center"})," - "+a]})})),nt.exports.jsxs("div",Object.assign({className:t.headerActionContainer,"data-test":"ac-header.action-container"},{children:[nt.exports.jsx("div",{className:t.verticalDivider}),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.open.help-center.tooltip",defaultMessage:"View Help",description:"Help icon"})},{children:nt.exports.jsx(ue,Object.assign({"data-test":"admin-center-help-icon",size:"large"},{children:nt.exports.jsx(pue,{})}))})),nt.exports.jsx(he,Object.assign({title:r?nt.exports.jsx(Ce,{id:"os-admin-center-browse.close.full.screen",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}):nt.exports.jsx(Ce,{id:"os-admin-center-browse.open.full.screen",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>{n(n(SY(!r)))},"aria-labelledby":"ac-toggle-fullscreen","data-test":"ac-fullscreen-toggle",size:"large"},{children:r?nt.exports.jsx(Cpe,{}):nt.exports.jsx(mpe,{})}))})),nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.close.panel",defaultMessage:"Close Panel",description:"Close Panel"})},{children:nt.exports.jsx(ue,Object.assign({onClick:e,"aria-labelledby":"ac-close-panel","data-test-id":"ac-close-panel","data-test":"ac-close-panel",size:"large"},{children:nt.exports.jsx(Spe,{})}))}))]}))]}))},sqo=je()((e,{height:t="64px"},n)=>({root:{display:"flex",flexGrow:1,height:t,position:"relative"},tabs:{borderRight:".5px solid "+e.palette.divider,transition:".2s ease",width:e.spacing(14),minWidth:e.spacing(14),padding:e.spacing(1.6)+" "+e.spacing(2.5),boxSizing:"border-box"},tabsContainer:{alignItems:"center"},tabIndicator:{background:"transparent"},tabRoot:{opacity:1,borderRadius:4,fontSize:"14px",color:"#555F7C",marginBottom:e.spacing(1),minHeight:e.spacing(9),minWidth:e.spacing(9),paddingTop:e.spacing(1),paddingBottom:e.spacing(1),whiteSpace:"nowrap",width:"100%","&:hover":{background:"#F2F5F9"}},tabsExpanded:{width:197,minWidth:197,paddingRight:e.spacing(2),paddingLeft:e.spacing(2),["& "+n.tabRoot]:{width:`calc(197px - ${e.spacing(3)})`,flexDirection:"row",textTransform:"capitalize","& svg":{marginRight:e.spacing(2),marginBottom:"0"}}},tabExpandedWrapper:{flexDirection:"row",display:"flex",justifyContent:"flex-start","& svg":{marginBottom:"0 !important",marginRight:e.spacing(2)}},tabSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:"0",color:e.palette.primary.main}},contentPanel:{flexGrow:1},tabExpandedSelected:{background:"#F2F5F9",color:e.palette.primary.main,"& svg":{marginBottom:"0 !important",marginRight:e.spacing(2),color:e.palette.primary.main}},tabWrapper:{flexDirection:"row",display:"flex",justifyContent:"center","& svg":{marginBottom:"0 !important",marginRight:"0"}}})),lqo="Flex",cqo="https://billing.aiware.com/p/login/fZe15tbn5fDP3Yc000",dqo=nt.exports.jsx(Ce,{id:"os.admin-center.browse.billing-nav-item.label",defaultMessage:"Billing",description:"Admin Center Billing Nav Item Label"}),uqo=({isNavExpanded:e})=>Ae(kG)!==lqo?null:nt.exports.jsx(he,Object.assign({placement:"right",title:!e&&dqo,"data-test":"ac-nav-tab-billing"},{children:nt.exports.jsx(ge,Object.assign({startIcon:nt.exports.jsx(Wde,{style:{marginBottom:"0px",fontSize:"24px",marginLeft:e?"0px":"30px"}}),onClick:()=>{window.open(cqo,"_blank")},sx:{color:"#5C6269",opacity:1,borderRadius:"4px",fontSize:"14px",marginBottom:"5px",minHeight:"45px",minWidth:e?"176px":"45px",padding:"5px 10px 5px 20px",width:"100%","&:hover":{background:"#F2F5F9"},justifyContent:e?"flex-start":"center"},"data-test":"ac-nav-tab-billings-view",variant:"text",endIcon:nt.exports.jsx(x0e,{style:{transform:"translate(50px, 0px)",fontSize:"20px"}})},{children:e&&dqo}))})),pqo=C2e.error,gqo=({title:e,isLoading:t,isErrored:n,onRetry:r,children:i})=>t?nt.exports.jsx(_,Object.assign({sx:{position:"relative",height:"100%",padding:"10px 30px",alignItems:"center",justifyContent:"center"},direction:"row"},{children:nt.exports.jsx(mm,{})})):n?nt.exports.jsx(pqo,{onRetry:r}):nt.exports.jsx(_,Object.assign({sx:{position:"relative",height:"100%",border:"1px solid #DADFE8",borderRadius:"4px"},direction:"row"},{children:nt.exports.jsxs(_,Object.assign({sx:{position:"relative",width:"100%",height:"100%"}},{children:[e&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{padding:"20px 30px"}},{children:e})),nt.exports.jsx(se,{})]}),nt.exports.jsx(_,Object.assign({"data-testid":"ac-settings-container",sx:{padding:"0 30px",width:"100%",maxHeight:"calc(100vh - 350px)",overflow:"auto",boxSizing:"border-box"}},{children:i}))]}))})),fqo=v2e.jsx.ImageUpload;function hqo({title:e,children:t}){return e?nt.exports.jsx(he,Object.assign({title:e,placement:"left",arrow:!0},{children:nt.exports.jsx("span",{children:t})})):t}let mqo={"& .MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .MuiTabs-indicator":{backgroundColor:"#2A323C"}};(D2e=doa=doa||{}).BASIC_INFORMATION="basic-information",D2e.SYSTEM_SETTINGS="system-settings";E3e=(e,t,n,r=!1,i=!1)=>({label:e,component:t,id:n,isBehindBeta:r,isSuperAdmin:i});let Cqo=[E3e("Basic Information",nt.exports.jsx(()=>{let t=Ie(),{orgName:e,orgLogoUrl:n,loadingStatus:r,hasLocalChanges:i,saveStatus:o,editMode:a}=Ae(q_o);var s="100px";let l="success"===r;var c="pending"===r,d="failure"===r,u="pending"===o;let p=e=>{t(f_o.setOrgSettingsEditMode({key:e,value:!0}))};let g=()=>{t(f_o.fetchOrgSettingsStart())};return Le.exports.useEffect(()=>{i||l||g()},[]),Le.exports.useEffect(()=>{!n&&l&&t(f_o.setOrgSettingsEditMode({key:"orgLogoUrl",value:!0}))},[n,l]),nt.exports.jsxs(gqo,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.title",defaultMessage:"Basic Information",description:"Title for the organization settings"}),isLoading:c,isErrored:d,onRetry:g},{children:[nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",gap:"20px",padding:"20px 0"},direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{minWidth:"160px",color:"#5C6269"}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.logo-upload",defaultMessage:"Organization Logo: ",description:"Title for the organization settings logo upload"})})),nt.exports.jsx(be,Object.assign({sx:{width:s,height:s}},{children:a.orgLogoUrl?nt.exports.jsx(fqo,{disabled:u,getUrl:!0,image:n,outerWidth:"100%",outerHeight:"100%",innerWidth:"95%",innerHeight:"95%",uploadIconWidthHeight:"40px",handleChange:e=>{t(f_o.setSettingsChanged(!0)),t(f_o.setSettingsChangeLogoUrl(e))},testId:"org-settings-upload-image"}):nt.exports.jsx(be,Object.assign({sx:{width:s,height:s,borderRadius:"5px",border:"1px solid #DADFE8",overflow:"hidden"}},{children:n&&nt.exports.jsx("img",{style:{width:"100%",height:"100%",objectFit:"contain"},draggable:!1,src:n,alt:"Organization Logo"})}))})),!a.orgLogoUrl&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-logo.tooltip-edit",defaultMessage:"Edit Organization Logo",description:"Tooltip for the organization settings edit org logo button"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>p("orgLogoUrl"),disabled:u,sx:{marginLeft:"auto"}},{children:nt.exports.jsx(Tde,{})}))}))]})),nt.exports.jsx(se,{}),nt.exports.jsxs(_,Object.assign({sx:{alignItems:"center",gap:"20px",padding:"20px 0"},direction:"row"},{children:[nt.exports.jsx(pe,Object.assign({component:"span",sx:{minWidth:"160px",color:"#5C6269"}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-name",defaultMessage:"Organization Name: ",description:"Title for the organization settings org name input"})})),a.orgName?nt.exports.jsx(gw,{size:"small",disabled:u,value:e,onChange:e=>{e=e.target.value;t(f_o.setSettingsChangeName(e)),t(f_o.setSettingsChanged(!0))},sx:{width:"100%"}}):nt.exports.jsx(pe,Object.assign({sx:{fontWeight:"bold"}},{children:e})),!a.orgName&&nt.exports.jsx(he,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.org-name.tooltip-edit",defaultMessage:"Edit Organization Name",description:"Tooltip for the organization settings edit org name button"})},{children:nt.exports.jsx(ue,Object.assign({onClick:()=>p("orgName"),disabled:u,sx:{marginLeft:"auto"}},{children:nt.exports.jsx(Xde,{})}))}))]}))]}))},{}),doa.BASIC_INFORMATION,!1,!1),E3e("System Settings",nt.exports.jsx(()=>{let i=Ie();var t,e=Ae(Y_o),n=Ae(K_o),r=Ae((t=n,dT(e=>null==(e=null==e?void 0:e[u_o])?void 0:e[p_o],e=>null!=(e=null==(e=null==e?void 0:e.applications)?void 0:e.find(e=>e.id===t))?e:void 0))),o=Ae(G_o),a=Ae(J_o);let{loadingStatus:s,saveStatus:l,features:c}=Ae(q_o),[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1);var f="pending"===s,h="failure"===s;let m="pending"===s||"pending"===l;var C="deleted"===o?"Organization is already deactivated":a?"Cannot deactivate current organization":void 0;let x=[{title:$Hi.orgSettingsStep.packageGrantsTitle(),description:$Hi.orgSettingsStep.packageGrantsDescription(),right:{type:"switch",key:"automaticPackageCreation",disabled:!0,keys:["useEngineGrant","useAppGrant"],tooltip:"Only available during Org Creation",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.olpTitle(),description:$Hi.orgSettingsStep.olpDescription(),right:{type:"switch",key:"enableRBACFeature",disabled:!0,tooltip:"Only available during Org Creation",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.autoApproveEnginesSettingTitle(),description:$Hi.orgSettingsStep.autoApproveEnginesSettingDescription(),right:{type:"switch",key:"engineApprovalWhiteListed",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.dataRetentionPolicySettingTitle(),description:$Hi.orgSettingsStep.dataRetentionPolicySettingDescription(),left:{type:"select",key:"retentionDays",show:"enabled"===c.retentionCleanup,options:[{value:30,label:$Hi.orgSettingsStep.dataRetentionPolicySetting30Days()},{value:90,label:$Hi.orgSettingsStep.dataRetentionPolicySetting90Days()},{value:457,label:$Hi.orgSettingsStep.dataRetentionPolicySetting15Months()}]},right:{type:"switch",key:"retentionCleanup",trueValue:"enabled",falseValue:"disabled"}},{title:$Hi.orgSettingsStep.firstLoadApplicationSettingTitle(null==r?void 0:r.name),description:$Hi.orgSettingsStep.firstLoadApplicationSettingDescription(),right:{type:"icon-button",key:"first-load-application",icon:nt.exports.jsx(R2e,{}),onClick:()=>g(!p)}},{title:$Hi.orgSettingsStep.maxTdoAssetsSettingTitle(),description:$Hi.orgSettingsStep.maxTdoAssetsSettingDescription(),right:{type:"number",min:100,max:1e3,step:1,key:"maxAssetCount",keys:["tdoLimits.maxAssetCount"]}},{title:$Hi.orgSettingsStep.enableLimitEnforcedTitle(),description:$Hi.orgSettingsStep.enableLimitEnforcedDescription(),right:{type:"switch",key:"isLimitEnforced",trueValue:!0,falseValue:!1},left:{type:"number",key:"remainingBudget",step:5,min:0,max:1e6,show:!0===c.isLimitEnforced,TextFieldProps:{label:$Hi.orgSettingsStep.remainingBudgetLabel(),InputLabelProps:{shrink:!0}}}},{title:$Hi.orgSettingsStep.userSeatCountTitle(),description:$Hi.orgSettingsStep.userSeatCountDescription(),right:{type:"text",key:"seatLimit",TextFieldProps:{onKeyDown:e=>{/^[0-9\b]+$/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()}}}},{title:$Hi.orgSettingsStep.adminSeatCountTitle(),description:$Hi.orgSettingsStep.adminSeatCountDescription(),right:{type:"text",key:"adminSeatLimit",TextFieldProps:{onKeyDown:e=>{/^[0-9\b]+$/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()}}}},{title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.title",defaultMessage:"Deactivate Organization",description:"Deactivate Organization"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.description",defaultMessage:"Deactivating the organization will disable all users and applications. This action cannot be undone.",description:"Deactivate Organization"}),right:{type:"button",key:"deactivate-organization",disabled:"deleted"===o||a,tooltip:C,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.button",defaultMessage:"Deactivate",description:"Deactivate Organization"}),onClick:()=>u(!0)}}];return nt.exports.jsxs(gqo,Object.assign({title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.subtitle",defaultMessage:"Manage settings for all users.",description:"Title for the organization system settings subtitle"}),isLoading:f,isErrored:h,onRetry:()=>{}},{children:[x.filter(e=>!1!==(null==e?void 0:e.show)).map((r,e)=>nt.exports.jsx(zHi,{bottomBorder:e!==x.length-1,title:r.title,description:r.description,renderLeftComponent:()=>{var e;if(r.left&&void 0!==r.left){if("select"===r.left.type&&void 0!==(null==(e=r.left)?void 0:e.key)&&!1!==(null==(e=r.left)?void 0:e.show))return nt.exports.jsx(Gb,Object.assign({"data-testid":"settings-"+r.left.key,disabled:m,value:Gfe(c,r.left.keys?r.left.keys[0]:r.left.key),onChange:e=>{var e=Number(e.target.value),t=[null!=(t=null==(t=null==r?void 0:r.left)?void 0:t.key)?t:"",...(null==(t=r.left)?void 0:t.keys)||[]];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},size:"small",sx:{width:"230px",marginTop:"20px"}},{children:r.left.options.map((e,t)=>{var n;return nt.exports.jsx(fe,Object.assign({value:e.value,"data-testid":`settings-${null==(n=r.left)?void 0:n.key}-`+e.value},{children:e.label}),t+1)})}));if("number"===r.left.type&&void 0!==(null==(e=r.left)?void 0:e.key)&&!1!==(null==(e=r.left)?void 0:e.show))return nt.exports.jsx(gw,Object.assign({},(null==(e=r.left)?void 0:e.TextFieldProps)||{},{"data-testid":"settings-"+r.left.key,disabled:m,value:Gfe(c,r.left.keys?r.left.keys[0]:r.left.key),onChange:e=>{var e=Number(e.target.value),t=[null!=(t=null==(t=null==r?void 0:r.left)?void 0:t.key)?t:"",...(null==(t=r.left)?void 0:t.keys)||[]];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},onBlur:e=>{let t,n=Number(e.target.value);r.left&&("number"===r.left.type&&r.left.min&&n<r.left.min&&(n=r.left.min),"number"===r.left.type&&r.left.max&&n>r.left.max&&(n=r.left.max),("number"===r.left.type&&!r.left.max||"number"===r.left.type&&!r.left.min)&&!e.target.value||(e=null!=(t=r.left.keys)?t:[r.left.key],i(f_o.setOrgSettingsFeature({keys:e,value:n}))))},sx:{width:"230px",marginTop:"20px"},size:"small",type:"number"}))}return null},renderRightComponent:()=>{var e;if(r.right){if("switch"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(SA,{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),checked:Gfe(c,r.right.key)===(null!=(e=r.right.trueValue)?e:"enabled"),onChange:()=>{var e=Gfe(c,r.right.key)===(null!=(e=r.right.trueValue)?e:"enabled")?null!=(e=r.right.falseValue)?e:"disabled":null!=(e=r.right.trueValue)?e:"enabled",t=r.right.keys?[r.right.key,...r.right.keys]:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e}))}})}));if("number"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(gw,{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),value:Number(Gfe(c,r.right.keys?r.right.keys[0]:r.right.key,null!=(e=null==(e=r.right)?void 0:e.min)?e:0)),onChange:e=>{var e=Number(e.target.value),t=null!=(t=r.right.keys)?t:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e}))},onBlur:e=>{let t,n=Number(e.target.value);"number"===r.right.type&&r.right.min&&n<r.right.min&&(n=r.right.min),"number"===r.right.type&&r.right.max&&n>r.right.max&&(n=r.right.max),("number"===r.right.type&&!r.right.max||"number"===r.right.type&&!r.right.min)&&!e.target.value||(e=null!=(t=r.right.keys)?t:[r.right.key],i(f_o.setOrgSettingsFeature({keys:e,value:n})))},size:"small",type:"number",inputProps:{style:{textAlign:"right"},min:null!=(e=null==(e=r.right)?void 0:e.min)?e:0,max:null!=(e=null==(e=r.right)?void 0:e.max)?e:1e6,step:null!=(e=r.right.step)?e:1},sx:{width:"130px",marginTop:"20px"}});if("text"===r.right.type&&void 0!==(null==(e=r.right)?void 0:e.key))return nt.exports.jsx(gw,Object.assign({},(null==(e=r.right)?void 0:e.TextFieldProps)||{},{"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),value:Gfe(c,r.right.keys?r.right.keys[0]:r.right.key),onChange:e=>{var t=null!=(t=r.right.keys)?t:[r.right.key];i(f_o.setOrgSettingsFeature({keys:t,value:e.target.value}))},size:"small",inputProps:{style:{textAlign:"right"},pattern:null!=(e=r.right.pattern)?e:"[a-z]{1,15}"},sx:{width:"130px",marginTop:"20px"}}));if("button"===r.right.type)return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(ge,Object.assign({variant:"outlined","data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),onClick:r.right.onClick},{children:r.right.label}))}));if("icon-button"===r.right.type)return nt.exports.jsx(hqo,Object.assign({title:r.right.tooltip},{children:nt.exports.jsx(ue,Object.assign({"data-testid":"settings-"+r.right.key,disabled:m||!0===(null==(e=r.right)?void 0:e.disabled),onClick:r.right.onClick},{children:r.right.icon}))}))}return null}},"settings-row-"+(e+1))),nt.exports.jsx(Xze,{isOpen:d,testId:"ac-deactivate-org-dialog",title:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.title",defaultMessage:"Deactivate Organization",description:"Deactivate Organization"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.description",defaultMessage:"Are you sure you want to deactivate this Organization? Users will no longer be able to access this Organization or its content.",description:"Deactivate Organization"}),cancelLabel:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.cancel",defaultMessage:"Cancel",description:"Cancel"}),confirmLabel:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-system-settings.deactivateOrganization.confirm.deactivate",defaultMessage:"Yes, Deactivate",description:"Deactivate"}),onClose:()=>{u(!1)},onConfirm:()=>{u(!1),i(f_o.deactivateOrganizationInit())},DialogTitleProps:{sx:{fontSize:18,fontWeight:"semibold"}},DialogProps:{PaperProps:{sx:{p:3}},maxWidth:"xs"}}),nt.exports.jsx(USt,{id:"ac",applications:e,defaultLoadApplication:n,isOpen:p,onSelectedApplication:e=>{i(f_o.setOrgSettingsFeature({keys:["defaultApplication"],value:e.id}))},onClose:()=>g(!1)})]}))},{}),doa.SYSTEM_SETTINGS,!1,!0)];function xqo(e){var{children:t,value:n,index:r}=e,e=m_o(e,["children","value","index"]);return nt.exports.jsx("div",Object.assign({role:"tabpanel",hidden:n!==r,id:"organization-settings-tabpanel-"+r,"data-testid":"organization-settings-tabpanel-"+r,"aria-labelledby":"organization-settings-tab-"+r},e,{children:n===r&&nt.exports.jsx(be,Object.assign({sx:{p:3}},{children:t}))}))}function vqo(e){return{id:"organization-settings-tab-"+e,"aria-controls":"organization-settings-tabpanel-"+e}}function bqo(){let[n,r]=Me.useState(0),i=Ae(WG),o=Ae(mG);return nt.exports.jsxs(be,Object.assign({sx:{width:"100%"}},{children:[nt.exports.jsx(be,Object.assign({sx:{borderBottom:1,borderColor:"divider"}},{children:nt.exports.jsx(lw,Object.assign({sx:mqo,value:n,onChange:(e,t)=>{r(t)},"aria-label":"org settings tabs"},{children:Cqo.map(e=>e.isSuperAdmin&&!o?null:e.isBehindBeta&&!i?nt.exports.jsx(he,Object.assign({title:e.isBehindBeta&&!i?"Coming Soon":""},{children:nt.exports.jsx("span",{children:nt.exports.jsx(NA,Object.assign({"data-testid":"organization-settings-tab."+e.id,disabled:e.isBehindBeta&&!i,label:e.label},vqo(e.index)),e.id)})})):nt.exports.jsx(NA,Object.assign({"data-testid":"organization-settings-tab."+e.id,disabled:e.isBehindBeta&&!i,label:e.label},vqo(e.index)),e.id))}))})),Cqo.map((e,t)=>e.isBehindBeta&&!i||e.isSuperAdmin&&!o?null:nt.exports.jsx(xqo,Object.assign({value:n,index:t},{children:e.component}),e.id))]}))}let yqo=()=>{let e=Ie();var t=Qbt().classes,{hasLocalChanges:n,saveStatus:r,orgName:i}=Ae(q_o),r="pending"===r,i=!n||!i;return nt.exports.jsxs("section",Object.assign({className:t.root},{children:[nt.exports.jsx(_,Object.assign({component:"header",sx:{borderBottom:"0.5px solid #D5DFE9",flexDirection:"column",padding:"20px"}},{children:nt.exports.jsxs(_,Object.assign({sx:{width:"100%",alignItems:"center",justifyContent:"space-between"},direction:"row"},{children:[nt.exports.jsxs(_,{children:[nt.exports.jsx(be,Object.assign({className:t.startToolbar},{children:nt.exports.jsx(pe,Object.assign({variant:"h5",component:"span","data-testid":"os-admin-center-org-settings-title","data-test":"os-admin-center-org-settings-title",sx:{fontWeight:"600",mb:1}},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view-title",defaultMessage:"Organization Settings",description:"Title for the organization settings view"})}))})),nt.exports.jsx(be,Object.assign({className:t.startToolbar},{children:nt.exports.jsx(pe,Object.assign({variant:"caption","data-testid":"os-admin-center-org-settings-sub-title","data-test":"os-admin-center-org-settings-sub-title"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view-description",defaultMessage:"Manage information and preferences for users of this Organization.",description:"Description for the organization settings view"})}))}))]}),nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[nt.exports.jsx(ge,Object.assign({variant:"text",color:"primary",onClick:()=>e(f_o.undoOrgSettingsChanges()),disabled:!n,"data-testid":"os-admin-center-org-settings-undo-button"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.button-undo",defaultMessage:"Undo",description:"Undo button for the organization settings view"})})),nt.exports.jsx(ije,Object.assign({loading:r,disabled:i,onClick:()=>{e(f_o.updateOrgSettingsStart())},variant:"contained","data-testid":"os-admin-center-org-settings-save-button",color:"primary"},{children:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.button-save",defaultMessage:"Save",description:"Save button for the organization settings view"})}))]}))]}))})),nt.exports.jsx(bqo,{})]}))},Aqo=()=>nt.exports.jsxs(W,Object.assign({"data-testid":"custom-integration-table-header",sx:{height:32,pl:3},alignItems:"center",display:"flex",container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-header-column-name",defaultMessage:"Integration ID",description:"Custom Integration Table header column name"})}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:9},{children:nt.exports.jsx(pe,Object.assign({variant:"caption",color:"textSecondary",sx:{cursor:"default"}},{children:nt.exports.jsx(Ce,{id:"shared-custom-integration-table-header-column-json",defaultMessage:"JSON",description:"Custom Integration Table header column json"})}))}))]})),Iqo=({onConfirmDelete:e,isOpen:t,onClose:n})=>nt.exports.jsx(Xze,{testId:"os-admin-center-custom-integration-delete-modal",title:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-title",defaultMessage:"Delete Integration",description:"Admin Center Custom Integration Delete Modal Title"}),description:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-body",defaultMessage:"Are you sure you want to delete this custom integration?",description:"Admin Center Custom Integration Delete Modal body"}),isOpen:t,onClose:n,onConfirm:()=>{n(),e()},confirmLabel:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-button-confirm-delete",defaultMessage:"Yes, Delete",description:"Admin Center Custom Integration Delete Modal button confirm delete"}),cancelLabel:nt.exports.jsx(Ce,{id:"os-admin-center-custom-integration-delete-modal-button-go-back",defaultMessage:"Cancel",description:"Admin Center Custom Integration Delete Modal button go back"})}),wqo=({onEdit:e,onDelete:t})=>{e=[{label:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-row-context-menu-edit",defaultMessage:"Edit",description:"Admin Center Custom Login table row context menu edit"}),onClick:e,testId:"edit",icon:nt.exports.jsx(Xde,{fontSize:"small"})},{label:nt.exports.jsx(Ce,{id:"ac-custom-integration-table-row-context-menu-delete",defaultMessage:"Delete",description:"Admin Center Custom Login table row context menu delete"}),onClick:t,testId:"delete",icon:nt.exports.jsx(Jde,{fontSize:"small"})}];return nt.exports.jsx(_ze,{menuItems:e,testId:"ac-custom-integration-menu"})},jqo=({item:e,index:t,onDelete:n,onEdit:r,itemHeight:i})=>nt.exports.jsxs(W,Object.assign({"data-testid":"ac-custom-integration-item-"+t,sx:{width:"100%",height:"100%",paddingLeft:"15px",minHeight:i-1+"px",borderBottom:"1px solid #D5DFE9",alignItems:"center",display:"flex"},container:!0},{children:[nt.exports.jsx(W,Object.assign({item:!0,xs:3},{children:nt.exports.jsx(pe,Object.assign({sx:{fontSize:"14px"},"data-testid":"ac-custom-integration-table-row-name"},{children:(null==e?void 0:e.integrationId)&&e.integrationId}))}))," ",nt.exports.jsx(W,Object.assign({item:!0,xs:8},{children:nt.exports.jsx(pe,Object.assign({sx:{fontSize:"14px",whiteSpace:"nowrap"},"data-testid":"ac-custom-integration-table-row-name"},{children:e.json&&RUe(JSON.stringify(e.json),80)}))})),nt.exports.jsx(W,Object.assign({item:!0,xs:1},{children:nt.exports.jsx(wqo,{onEdit:r,onDelete:n})}))]})),Sqo=x2e.jsx.TableInfiniteScroll,{CenterTabHeading:Oqo,CenterTabContainer:kqo,CenterTabContent:Tqo}=w2e,Eqo=52,Nqo=()=>{let n=Ie();let t=Ae(W_o).toString(),r=Ae(EY),i=Ae(YG),[e,o]=Le.exports.useState([]),[a,s]=Le.exports.useState(!1),[l,c]=Le.exports.useState(null),[d,u]=Le.exports.useState(!1),[p,g]=Le.exports.useState(!1),f=()=>C_o(void 0,void 0,void 0,function*(){u(!0);try{var e=yield O_o({apiConfigs:i,orgId:t});e&&o(e)}catch(e){g(!0),console.log(e)}finally{u(!1)}}),h=(e,t)=>{e={name:V.UPSERT_INTEGRATION_PANEL,config:{integration:e,viewMode:t,onUpsertIntegration:m}},t={type:ok.APP_BAR_PANEL_TEMPLATE,marginTop:r?0:55,marginStart:r?0:80,size:dse.medium,parentPanelId:V.ADMIN_CENTER,dimmed:0,dimmedStatus:"dimParent",borderBottom:!0};n(yse({panelId:V.UPSERT_INTEGRATION_PANEL,microFrontend:e,panelConfig:t}))},m=e=>C_o(void 0,void 0,void 0,function*(){try{(yield T_o(Object.assign({apiConfigs:i,orgId:t},e)))&&(n(F({content:"Custom integration saved successfully",severity:R.Success})),yield f(),n(wse(V.UPSERT_INTEGRATION_PANEL)))}catch(e){console.log(e),n(F({content:"Failed to save custom integration",severity:R.Error}))}});return nt.exports.jsxs(kqo,Object.assign({testId:"os-admin-center-custom-integration-tab"},{children:[nt.exports.jsx(Oqo,{title:"Integration",subtitle:"Add third party integrations into this organization",testId:"os-admin-center-custom-integration-tab",HeadingActions:nt.exports.jsx(ge,Object.assign({onClick:()=>h({integrationId:"",json:""},"add"),variant:"contained",startIcon:nt.exports.jsx(Ode,{}),"data-testid":"os-admin-center-custom-integration-tab-create-new"},{children:"New"}))}),nt.exports.jsx(Tqo,Object.assign({testId:"os-admin-center-custom-integration-tab"},{children:nt.exports.jsxs(be,Object.assign({height:"500px"},{children:[nt.exports.jsx(Sqo,{hasMore:!1,fetchMore:f,fetchOnMount:0===e.length,offset:0,items:e,itemHeight:Eqo,isLoading:d,error:p,TableHeaderComponent:nt.exports.jsx(Aqo,{}),TableRowComponent:({item:t,index:e})=>nt.exports.jsx(jqo,{item:t,index:e,onDelete:()=>{return e=t,s(!0),void c(e);var e},onEdit:()=>h(t,"edit"),itemHeight:Eqo}),TableEmptyStateComponent:nt.exports.jsx(be,Object.assign({sx:{mt:"100px"}},{children:nt.exports.jsx(Yze,{title:"No Custom Integration Found",description:"You haven’t created an Integration for this Organization",buttonLabel:"Create Custom Integration",image:Jle,onClick:()=>h({integrationId:"",json:""},"add")})})),testId:"ac-custom-integrations-table"}),nt.exports.jsx(Iqo,{isOpen:a,onClose:()=>s(!1),onConfirmDelete:()=>C_o(void 0,void 0,void 0,function*(){if(l)try{(yield k_o({apiConfigs:i,orgId:t,integrationId:null==l?void 0:l.integrationId}))&&(o(e.filter(e=>(null==e?void 0:e.integrationId)!==(null==l?void 0:l.integrationId))),n(F({content:"Custom integration deleted successfully",severity:R.Success})))}catch(e){n(F({content:"Failed to delete custom integration",severity:R.Error}))}})})]}))}))]}))},Mqo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(Nqo,{})})})});function Pqo(...e){return Le.exports.useMemo(()=>e.every(e=>null==e)?null:n=>{e.forEach(e=>{var t;t=n,"function"==typeof(e=e)?e(t):e&&(e.current=t)})},e)}function Lqo({id:e,options:t,loading:n=!1,hasMore:r,fetchOnMount:i,onFetchMore:o,inputValue:a,onInputChange:s,selectedValue:l,onSelectChange:c,InputProps:d={},mRef:u}){let{getRootProps:p,getInputProps:g,getListboxProps:f,getOptionProps:h,groupedOptions:m,popupOpen:C,anchorEl:x,setAnchorEl:v}=i6({id:e,options:t,value:l,inputValue:a,clearOnBlur:!1,clearOnEscape:!1,getOptionLabel:e=>null!=(e=null==e?void 0:e.label)?e:"Unknown",getOptionDisabled:e=>null!=(e=null==e?void 0:e.disabled)&&e,isOptionEqualToValue:(e,t)=>(null==e?void 0:e.label)===(null==t?void 0:t.label),onInputChange:(e,t)=>s(t),onChange:(e,t)=>c(t)});e=Pqo(u,v);return Le.exports.useEffect(()=>{i&&o()},[]),nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("div",Object.assign({},p(),{ref:e},{children:nt.exports.jsx(Dqo,Object.assign({},d,{inputProps:Object.assign({},g()),InputProps:{endAdornment:nt.exports.jsxs(nt.exports.Fragment,{children:[n?nt.exports.jsx(mm,{color:"inherit",size:20}):nt.exports.jsx(a3e,{}),C?nt.exports.jsx(Kue,{}):nt.exports.jsx(Zue,{})]})}}))})),x&&nt.exports.jsx(z9,Object.assign({open:C,anchorEl:x,disablePortal:!0,placement:"bottom-start",transition:!0,sx:{zIndex:1200}},{children:({TransitionProps:e})=>nt.exports.jsx(t7,Object.assign({},e,{timeout:350},{children:nt.exports.jsxs(_6,{children:[0<m.length&&nt.exports.jsx(Rqo,Object.assign({},f(),{sx:{minHeight:300}},{children:nt.exports.jsx(G_e,Object.assign({testId:"app-search-virtual-list",items:t,itemSize:60,memoized:!0,InfiniteLoaderProps:{loading:n,hasMore:r,loadMoreItems:o}},{children:({item:e,index:t})=>nt.exports.jsxs(Bx,Object.assign({component:"li"},h({option:e,index:t}),{disabled:null!=(t=null==e?void 0:e.disabled)&&t},{children:[nt.exports.jsx(rv,{children:nt.exports.jsx(W8,Object.assign({},((e,t)=>{let n="",r=e.split(" ");return n=1<r.length?""+r[0][0]+r[1][0]:e[0],{sx:{width:24,height:24,fontSize:12,bgcolor:t?"transparent":(e=>{let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){var i=t>>8*n&255;r+=("00"+i.toString(16)).slice(-2)}return r})(e)},src:t,children:n}})(null!=(t=null==e?void 0:e.label)?t:"Unknown",e.icon)))}),nt.exports.jsx(lv,{primary:(null==e?void 0:e.label)||"Unknown",primaryTypographyProps:{noWrap:!0},secondary:!0===(null==e?void 0:e.disabled)?"No configs available":void 0})]}))}))})),0===m.length&&!n&&nt.exports.jsx(Rqo,Object.assign({},f(),{sx:{minHeight:60}},{children:nt.exports.jsx(Bx,Object.assign({component:"li",disabled:!0},{children:nt.exports.jsx(lv,{primary:"No applications found"})}))}))]})}))}))]})}let Dqo=Bpe(gw)(()=>({width:415})),Rqo=Bpe("ul")(({theme:e})=>({width:415,marginTop:"5px",zIndex:1,padding:"8px",position:"absolute",listStyle:"none",backgroundColor:"light"===e.palette.mode?"#fff":"#000",border:"1px solid #CBCBCB",borderRadius:e.shape.borderRadius,overflow:"hidden","& li":{borderRadius:e.shape.borderRadius},"& li.Mui-focused":{backgroundColor:"#ededed",color:"white",cursor:"pointer"},"& li:active":{backgroundColor:"#ededed",color:"white"},'& li[aria-selected="true"]':{backgroundColor:"#F2F5F9",color:"#1871E8"}}));let{CenterTabHeading:Fqo,CenterTabContainer:Vqo,CenterTabContent:Bqo}=w2e,Hqo=()=>{let t=Ie(),n=Le.exports.useRef(!1),[e,r]=Le.exports.useState(""),[o,a]=Le.exports.useState({}),i=Ae(Q_o.selectItems),s=Ae(X_o.selectItem),l=Ae(X_o.selectReadStatus);var c=Ae(Q_o.selectReadStatus);let d=Ae(Q_o.selectUpdateStatus);var u=Ae(Q_o.selectHasMore);let p=Ae(W_o),g=Le.exports.useMemo(()=>({orgId:p}),[p]),f=Le.exports.useMemo(()=>i.map(e=>{var t=((null==(t=e.applicationConfig)?void 0:t.records)||[]).filter(e=>"Organization"===e.configLevel),n=null!=(n=null==Uqo?void 0:Uqo[e.name])?n:[],r=0===t.length&&0===n.length;return{label:e.name,value:e.id,icon:e.signedIconUrl,application:e,orgAppConfigs:t,orgAppKvps:n,modifedAppKvp:s,disabled:r}}),[i,s]),[h,m]=Le.exports.useState(null);let C=Le.exports.useRef(we.exports.debounce(e=>{e=e.toLowerCase().trim();t(F_o.applicationConfigs.setFilter({type:"NameOrId",values:[e]})),t(F_o.applicationConfigs.resetList(null)),t(F_o.applicationConfigs.readStart(g))},1e3)).current;var x=Le.exports.useCallback(()=>{t(F_o.applicationConfigs.readStart(g))},[t,g]),v=Le.exports.useMemo(()=>{var e,t;return null!==h&&0!==f.length&&!!(e=null==(e=f.find(e=>e.value===h.value))?void 0:e.orgAppConfigs)&&(t=we.exports.isEqual(s,h.modifedAppKvp),!(0===h.orgAppConfigs.length&&0<h.orgAppKvps.length)&&!(0<Object.values(o).length&&Object.values(o).includes(!1))&&e.map((e,t)=>we.exports.isEqual(e,h.orgAppConfigs[t])).includes(!1)||!t)},[h,f,o,s]);return Le.exports.useEffect(()=>{t(F_o.applicationKvps.readStart(g))},[g]),Le.exports.useEffect(()=>{var e;0<f.length&&null===h&&!n.current&&"success"===l&&(e=f.find(e=>!1===e.disabled))&&(m(e),n.current=!0,t(F_o.applicationKvps.readResetStatus()))},[f,h,l]),nt.exports.jsxs(Vqo,Object.assign({testId:"os-admin-center-app-settings-tab-container"},{children:[nt.exports.jsx(Fqo,{title:"Application Settings",subtitle:"Manage the Application Settings for this Organization.",testId:"os-admin-center-app-settings-tab-heading",HeadingActions:nt.exports.jsx(ije,Object.assign({disabled:!v,onClick:()=>{var e;null!==h&&(0===h.orgAppConfigs.length&&0<h.orgAppKvps.length?t(F_o.applicationKvps.updateStart(Object.assign(Object.assign({ORG_ID:p},s),h.modifedAppKvp))):(0<h.orgAppKvps.length&&!we.exports.isEqual(s,h.modifedAppKvp)&&t(F_o.applicationKvps.updateStart(Object.assign(Object.assign({ORG_ID:p},s),h.modifedAppKvp))),0<(e=h.orgAppConfigs.map(e=>Object.assign(Object.assign({},e),{value:e.value,defaultValue:e.value}))).length&&(e=Object.assign(Object.assign({},h.application),{applicationConfig:{updatedRecords:e,records:(null==(e=h.application.applicationConfig)?void 0:e.records)||[]}}),t(F_o.applicationConfigs.updateStart(e)))))},loading:"pending"===d,variant:"contained","data-testid":"os-admin-center-app-settings-tab-save"},{children:"Save"}))}),nt.exports.jsx(Bqo,Object.assign({testId:"os-admin-center-app-settings-tab-content",StackProps:{sx:{p:4}}},{children:nt.exports.jsxs(_,Object.assign({gap:2,height:"100%"},{children:[nt.exports.jsx(Lqo,{id:"app-search",options:f,loading:"loading"===c||"pending"===c,hasMore:u,onFetchMore:x,fetchOnMount:0===i.length&&"idle"===c&&null===h,inputValue:e,InputProps:{placeholder:"Search for an application..."},onInputChange:e=>{r(e),C(e)},selectedValue:h,onSelectChange:e=>{a({}),m(e)}}),nt.exports.jsxs(gqo,Object.assign({isLoading:!1,isErrored:!1,onRetry:()=>{}},{children:[null!==h&&h.orgAppConfigs.map((t,i)=>nt.exports.jsx(zHi,{bottomBorder:i!==h.orgAppConfigs.length-1||0<h.orgAppKvps.length,title:nt.exports.jsxs(_,Object.assign({direction:"row",gap:1},{children:[t.required&&nt.exports.jsx("span",Object.assign({style:{color:"red",fontSize:"16px"}},{children:"•"})),E5e(t.configKey)]})),description:t.description,renderRightComponent:()=>nt.exports.jsx(K_e,{field:t,disabled:"pending"===d,onChange:e=>{var n,r;n=e,r=i,null!==h&&(e=h.orgAppConfigs.map((e,t)=>t===r?Object.assign(Object.assign({},e),{value:n.value}):e),m(Object.assign(Object.assign({},h),{orgAppConfigs:e})))},isFormValid:e=>{a(Object.assign(Object.assign({},o),{[t.configKey]:!e}))}})},"app-config-row-"+(i+1))),null!==h&&h.orgAppKvps&&h.orgAppKvps.map((n,e)=>{let t,o=(e,t)=>{e=YNn(we.exports.cloneDeep(Object.assign({},h.modifedAppKvp)),e,t);m(Object.assign(Object.assign({},h),{modifedAppKvp:e}))};return nt.exports.jsx(zHi,{bottomBorder:e!==h.orgAppKvps.length-1,title:nt.exports.jsx(_,Object.assign({direction:"row",gap:1},{children:n.label})),description:null!=(t=null==n?void 0:n.description)?t:"",renderRightComponent:()=>{var e;if(n.label&&n.children)return e=n.children.some(e=>"number"===e.configType),nt.exports.jsx(_,Object.assign({direction:e?"row":"column",gap:e?2:1},{children:n.children.map(t=>{var e,n,r=t.configType;if(!r)return null;let i=Gfe(h.modifedAppKvp,t.key,null!=(e=null==t?void 0:t.defaultValue)?e:"");switch("checkbox"===r&&null!=t&&t.checkedValue&&(i=i===t.checkedValue),r){case"number":return nt.exports.jsx(gw,{fullWidth:!0,placeholder:t.label,type:"number",size:"small",value:Gfe(h.modifedAppKvp,t.key,""),inputProps:Object.assign({},null!=(n=null==t?void 0:t.props)?n:{}),onChange:e=>{e=e.target.value;o(t.key,e)}},t.key);case"checkbox":return nt.exports.jsx(xC,{control:nt.exports.jsx(om,{size:"small",checked:i,onChange:e=>{e=e.target.checked?null==(e=null==t?void 0:t.checkedValue)||e:null!=(e=null==t?void 0:t.uncheckedValue)&&e;o(t.key,e)},name:t.key}),label:t.label},t.key);default:return null}})}));if(null==n||!n.key)return null;let t=Gfe(h.modifedAppKvp,n.key,null!=(e=null==n?void 0:n.defaultValue)?e:"");return"checkbox"!==n.configType&&"switch"!==n.configType||null==n||!n.checkedValue||(t=t===n.checkedValue),"radio"===n.configType&&n.options?nt.exports.jsx(pC,Object.assign({component:"fieldset"},{children:nt.exports.jsx(Tb,Object.assign({"aria-label":n.key,name:n.key,value:t,onChange:e=>{e=e.target.value;o(n.key,e)}},{children:n.options.map((e,t)=>nt.exports.jsx(xC,{value:e.value,control:nt.exports.jsx(Ob,{}),label:e.label},t))}))})):"checkbox"===n.configType?nt.exports.jsx(xC,{label:null!=(e=n.label)?e:"",control:nt.exports.jsx(om,{checked:t||!1,onChange:e=>{e=e.target.checked?null==(e=null==n?void 0:n.checkedValue)||e:null!=(e=null==n?void 0:n.uncheckedValue)&&e;o(n.key,e)},name:n.key})}):"switch"===n.configType?nt.exports.jsx(xC,{label:"",control:nt.exports.jsx(SA,{checked:t,onChange:e=>{e=e.target.checked?null==(e=null==n?void 0:n.checkedValue)||e:null!=(e=null==n?void 0:n.uncheckedValue)&&e;o(n.key,e)},name:n.key})}):"text"===n.configType?nt.exports.jsx(gw,{placeholder:n.label,size:"small",value:t,inputProps:Object.assign({},null!=(e=null==n?void 0:n.props)?e:{}),onChange:e=>{e=e.target.value;o(n.key,e)}},n.key):null}},"app-config-row-"+(e+1))})]}))]}))}))]}))},Uqo={Discovery:[{configType:"radio",label:"Default Watchlist View",key:"kvp.features.openPrivateWatchlistByDefault",options:[{label:"My Watchlists",value:"enabled"},{label:"Shared Watchlists",value:"disabled"}]},{configType:"radio",label:"Discovery App Filters",key:"kvp.features.discoveryFilters",options:[{label:"Enterprise",value:"enterprise"},{label:"Media",value:"media"}]},{label:"Indexing",description:"Add search index by default",configType:"checkbox",key:"kvp.features.indexing.tdoDefault"},{label:"BETA (In-Development Features)",key:"kvp.features.beta",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Ratings",key:"kvp.features.ratings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Nielsen/Arbitron",key:"kvp.features.includeDataSources",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Numeris",key:"kvp.features.includeNumeris",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Private Media",key:"kvp.features.privateMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Global Media",key:"kvp.features.globalMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Filters",key:"kvp.features.filters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Program Filters",key:"kvp.features.showProgramFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Station Filters",key:"kvp.features.showStationFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Market Filters",key:"kvp.features.showMarketFilters",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Conversations in Analytics",key:"kvp.features.showConversionsInAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Social Media Sharing",key:"kvp.features.socialMediaSharing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:'Display "My Media" Index Options',key:"kvp.features.displayMyMediaIndexOptions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Transcript on Sharing",key:"kvp.features.hideTranscriptOnSharing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Import Bulk Watchlist",key:"kvp.features.bulkUpload",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Bulk Edit Transcript",key:"kvp.features.bulkEditTranscript",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Verification Charts in Discovery",key:"kvp.features.showVerificationChartsInDiscovery",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Virtual Assistant in Discovery",key:"kvp.features.enableDiscoveryVirtualAssistantMentionIntegration",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Download Media",key:"kvp.features.downloadMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Allow Public Media Download",key:"kvp.features.downloadPublicMedia",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Local Broadcast Television",key:"localTV",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Avanced Search (BETA)",key:"kvp.features.enabledAdvancedSearch",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Mention Listing",children:[{label:"Comments",key:"kvp.features.mentionListing.comments",configType:"checkbox"},{label:"Edit Rating",key:"kvp.features.mentionListing.edit",configType:"checkbox"},{label:"Social Sharing",key:"kvp.features.mentionListing.socialSharing",configType:"checkbox"}]},{label:"Sharing Mentions",children:[{label:"Email",key:"kvp.features.shareMentions.email",configType:"checkbox"},{label:"Twitter",key:"kvp.features.shareMentions.twitter",configType:"checkbox"},{label:"Facebook",key:"kvp.features.shareMentions.facebook",configType:"checkbox"},{label:"Link",key:"kvp.features.shareMentions.link",configType:"checkbox"},{label:"Embed",key:"kvp.features.shareMentions.embed",configType:"checkbox"}]},{label:"Show 'Downloadable by Guest' Option When Sharing Mentions",key:"kvp.features.showGuestMentionDownloadOption",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Send Mentions to Salesforce",key:"kvp.features.sendMentionsToSalesForce",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Salesforce ID",key:"kvp.features.salesForceId",configType:"text"},{label:"Send Mentions to Web Service",key:"kvp.features.sendMentionsToWebService",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Can Verify Mentions",key:"kvp.features.canVerifyMentions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Save and Post Button on Verify Mention",key:"kvp.features.verifyPostToCollections",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Compliance Status on Verify Mention",key:"kvp.features.complianceStatus",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Display Mention Hits for Watchlist",key:"kvp.features.displayMentionsHitsForWatchlists",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Mention Export",key:"kvp.features.mentionExport",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Mention Count",key:"kvp.features.mentionCount",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Advertising Verification Fields",key:"kvp.features.showAdvertisingVerificationFields",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Multiple Cognitive Profiles",key:"kvp.features.mulitpleCognitiveProfiles",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Correlation During Mention Generation",key:"kvp.features.correlationDuringMentionGeneration",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show TDO Info in Verify Modal",key:"kvp.features.showVerifyTdoInfo",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Time Before Mention Hit",children:[{label:"Min",key:"mentionPrePaddingMinutes",configType:"number",props:{min:0,max:99}},{label:"Sec",key:"mentionPrePaddingSeconds",configType:"number",props:{min:0,max:59}}]},{label:"Time After Mention Hit",children:[{label:"Min",key:"mentionPostPaddingMinutes",configType:"number",props:{min:0,max:99}},{label:"Sec",key:"mentionPostPaddingSeconds",configType:"number",props:{min:0,max:59}}]},{label:"Mention details",children:[{label:"Enable Star Rating",key:"kvp.features.mentionDetails.enableStarRating",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Verify mention in mention details",key:"verifyMention",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Compliance status",key:"complianceStatus",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Can Comment",key:"canComment",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Edit Mention",key:"editMention",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Spot Type",key:"spotType",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Edit collections",key:"editCollection",configType:"checkbox",defaultValue:"enabled",checkedValue:"enabled",uncheckedValue:"disabled"}]},{label:"Sharing Mentions",children:[{label:"Facebook",key:"kvp.features.mentionDetails.sharing.facebook",configType:"checkbox",defaultValue:!0},{label:"Twitter",key:"kvp.features.mentionDetails.sharing.twitter",configType:"checkbox",defaultValue:!0},{label:"Email",key:"kvp.features.mentionDetails.sharing.email",configType:"checkbox",defaultValue:!0}]},{label:"Mention Aperture Window (seconds)",children:[{label:"Seconds",key:"kvp.features.mentionApertureWindow",configType:"number",props:{min:0}}]},{label:"New Watchlist Name",key:"kvp.features.watchlistLabel",configType:"text"},{label:"Display Mention Hits",key:"kvp.features.displayMentionsHitsForWatchlists",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Share Watchlist",key:"kvp.features.allowWatchlistShare",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Fingerprint Option",key:"kvp.features.showFingerprintInWatchlistCreate",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Maximum Mention Count",children:[{label:"Max Count",key:"kvp.features.watchlistLimits.maximumMentionCount",configType:"number",props:{min:0}}]},{label:"State Date Restriction",desription:"The maximum number of days in the past a watchlist start date can be set to",children:[{label:"Max Days",key:"kvp.features.watchlistLimits.maximumStartAgeDays",configType:"number",props:{min:0}}]},{label:"Maximum Duration",desription:"Set a max day duration from 1-365 days",children:[{label:"Max Days (1-365)",key:"kvp.features.watchlistLimits.maximumDurationDays",configType:"number",props:{min:1,max:365}}]},{label:"Show One Click Watchlist",key:"kvp.features.showOneClickWatchlist",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Radio Monitoring",description:"Find native and pre-recorded mentions of brands.",key:"kvp.features.watchlistTypes.livePrerecorded",configType:"switch"}],"Data Center":[{label:"Show Internal Engine Fields",key:"kvp.showInternalEngineFields",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Engine Pricing",key:"kvp.features.hideEnginePricing",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use Network Isolated File Picker",key:"kvp.features.newFilePicker",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Export Closed Captions",key:"kvp.features.exportClosedCaptions",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable CMS Folders",key:"kvp.features.cmsFolders",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Workflow Advanced Settings",key:"kvp.features.hideWorkflowAdvancedSettings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Workflow Simple Settings",key:"kvp.features.hideWorkflowSimpleSettings",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"CMS Streams File Hierarchy",key:"kvp.features.enableMediaHierarchy",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide CMS from App List",key:"kvp.features.hideCMSFromAppList",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}],Illuminate:[{label:"Export Destination",children:[{label:"Amazon S3",key:"kvp.features.illuminate.exportDestination[0].isEnabled",configType:"checkbox"},{label:"Azure Blob",key:"kvp.features.illuminate.exportDestination[1].isEnabled",configType:"checkbox"},{label:"Desktop",key:"kvp.features.illuminate.exportDestination[2].isEnabled",configType:"checkbox"}]},{label:"Export Retention Period (days)",children:[{label:"Retention Period (days)",key:"kvp.features.illuminate.exportRetentionPeriod",configType:"number",props:{min:1}}]},{label:"Email for Notifications",key:"kvp.features.illuminate.emailAddress",configType:"text"},{label:"Disable Analytics",key:"kvp.features.illuminate.disableAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Default Workflow Setting",configType:"radio",key:"kvp.features.illuminate.defaultWorkflowSetting",options:[{label:"Simple",value:"simple"},{label:"Advanced",value:"advanced"}]},{label:"Enable Redact Navigation",key:"kvp.features.illuminate.enableRedactNavigation",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Contact Analytics",key:"kvp.features.illuminate.contactAnalytics",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Enable Contact Analytics PowerBI",key:"kvp.features.illuminate.contactAnalyticsPbi",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Allow All Users To View Exports",key:"kvp.features.illuminate.viewAllUserExport",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Show Files In Current Folder",key:"kvp.features.illuminate.showFilesInCurrentFolder",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}],Attribute:[{label:"Display 'Ad Sources' Filter",key:"kvp.features.attribute.displayAdSourcesFilter",description:"Specific to iHeart Media and should be enabled for all of its orgs. This feature displays a filter at the top level of the campaign which contains filterable data such as TTWN, Smart Audio, Premiere and Radio Spots.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Markets (iHeart)",key:"kvp.features.attribute.displayCustomMarkets",description:"A custom dataset provided by iHeart containing its station to market mapping based on Nielsen markets and its own manufactured markets for non-metro areas.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Restrict Campaign Type to 'Other'",key:"kvp.features.attribute.restrictCampaignTypeToOther",description:"For international customers where 'Campaign Type' Metro and DMA do not apply and will appear as disabled.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Advertiser in Multiple Markets",key:"kvp.features.attribute.advertiserInMultipleMarkets",description:"User selected 'No' results in a custom campaign workflow whereby all stations/markets are selected by default and no geofences are applied.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hybrid Time Zones",key:"kvp.features.attribute.hybridTimeZones",description:"Applies attributable activity (Ads and Ad Visits) to the station time zone and applies non-attributable activity (Non-Ad Visits) to a user specified time zone set in the campaign.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Hide Unwanted Channel Fields",key:"kvp.features.attribute.hideChannelFields",description:"Prevents 'Ad Visits/Ads' and 'Avg. Ad Cost' from appearing in the Traffic Channels chart or data table.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom iHeart v3 Engine",key:"kvp.features.attribute.iHeartCustomEngineV3",description:"Engine logic designed to accommodate the business needs of iHeart and to produce the desired Ad Visits counts.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Merge WideOrbit Bookends",key:"kvp.features.attribute.mergeWideOrbitBookends",description:"Applies logic to handle WideOrbit Bookends, Donuts and Piggybacks record types by either merging the records into a single ad or keeping the records split as two discrete ads.",defaultValue:"enabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use Watchlists as Ad Source",key:"kvp.features.attribute.useWatchlistsAsAdSource",description:"Allows you to select watchlists as an option for ad sources when creating a campaign.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Playout Log Uploader",key:"kvp.features.attribute.uploadLogs",description:"Allows you to upload playout logs directly in Attribute.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Web Log Uploader",key:"kvp.features.attribute.webLogUploader",description:"Allows you to upload web visit data logs directly in Attribute.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Report Builder",key:"kvp.features.attribute.customReportBuilder",description:"Enables entry to the new custom report builder flow- for testing purposes only.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Route Reports tab to Custom Report Builder experience?",key:"kvp.features.attribute.routeToCustomReportBuilder",description:"Clicking on the reports tab in the campaign dashboard will route the user to the customized report building experience.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Report Builder Zero State",key:"kvp.features.attribute.customReportBuilderZeroState",description:"When enabled in an organization, a user within that organization will see a “zero-state” page on Step 2 (Customize) page of the custom report builder workflow. When disabled, a user will start with all snapshots and one of each chart and table loaded into Step 2 in the custom report builder workflow.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Keyword Report",key:"kvp.features.attribute.keywordReport",description:"Allows you to enable keyword report feature in Attribute App.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Canned Templates- Custom Report Builder",key:"kvp.features.attribute.cannedTemplatesCustomReportBuilder",description:"When enabled, a user will be able to select from three canned templates in the custom report builder experience- Charts only, Tables only, or Charts and Tables.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Custom Templates- Custom Report Builder",key:"kvp.features.attribute.customTemplatesCustomReportBuilder",description:"If an organization has at least one custom template, a dropdown menu with the template(s) a user can select from will appear in the left side panel of the custom report builder experience.",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"New Ad Users Metric",key:"kvp.features.attribute.newAdUsersMetric",description:'Allows "New Ad Users" to be populated in the appropriate charts & tables.',defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Device Category And Page Path",key:"kvp.features.attribute.deviceCategoryAndPagePath",description:"When enabled in an organization, Device Category & Page Path will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Use dedupe when spot type is Billboard (WideOrbit)",key:"kvp.features.attribute.useDedupeWhenSpotTypeIsBillboard",description:"When enabled in an organization, the dedupe process is enabled in the attribute engine.",defaultValue:"enabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"New User Sessions",key:"kvp.features.attribute.newUserSessions",description:"When enabled in an organization, New User Sessions will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Google BigQuery Ingestion",key:"kvp.features.attribute.googleBigQueryIngestion",description:"When enabled in an organization, Google BigQuery Ingestion will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Attribute Pixel Connection Type",key:"kvp.features.attribute.attributePixelConnectionType",description:"When enabled in an organization, Attribute Pixel will be enabled in Attribute as a Connection Type",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Industry Lift Benchmarking UI",key:"kvp.features.attribute.industryLiftBenchmarkingUI",description:"When enabled in an organization, the industry average lift dual tile card will be available to users in campaign dashboard/report builder UI",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Industry Lift Quarterly Email",key:"kvp.features.attribute.industryLiftQuarterlyEmail",description:"When enabled in an organization, Industry Lift Quarterly Email will be enabled in Attribute",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Alpha Media - Custom Campaign Dashboard UI",key:"kvp.features.attribute.alphaMediaCustomCampaignDashboard",description:"When enabled in an organization, Alpha Media’s On Air Lift metric will be available in the UI with related additional changes",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Report Builder Custom Template - Simple Report",key:"kvp.features.attribute.alphaMediaSimpleReport",description:"When enabled in an organization, this Simple Report will be available in the dropdown menu of templates in Report Builder",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"},{label:"Report Builder Custom Template - Comprehensive Report",key:"kvp.features.attribute.alphaMediaComprehensiveReport",description:"When enabled in an organization, this Comprehensive Report will be available in the dropdown menu of templates in Report Builder",defaultValue:"disabled",configType:"switch",checkedValue:"enabled",uncheckedValue:"disabled"}]},zqo=()=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(Hqo,{})})})}),_qo={[l_o.users]:{id:l_o.users,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.users.view",defaultMessage:"Users",description:"The label of users tab button."}),testLabel:"ac-users-view",icon:nt.exports.jsx(age,{}),content:()=>nt.exports.jsx(PXi,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.packages]:{id:l_o.packages,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.packages.view",defaultMessage:"Packages",description:"The label of packages tab button."}),testLabel:"ac-packages-view",icon:nt.exports.jsx(A0e,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(yoo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.approvals]:{id:l_o.approvals,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.approvals.view",defaultMessage:"Approvals",description:"The label of approvals tab button."}),testLabel:"ac-approvals-view",icon:nt.exports.jsx(lge,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(_mo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.permissionSets]:{id:l_o.permissionSets,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.permission-sets.view",defaultMessage:"Permission Sets",description:"The label for Permission Sets view"}),testLabel:"ac-permission-sets-view",icon:nt.exports.jsx(Jpe,{}),content:()=>nt.exports.jsx(p0r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.accessControl]:{id:l_o.accessControl,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.system-access.view",defaultMessage:"System Access",description:"The label of access control tab button."}),testLabel:"ac-access-control-view",icon:nt.exports.jsx(p3e,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(i0r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.groups]:{id:l_o.groups,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.groups.view",defaultMessage:"Groups",description:"The label of groups tab button."}),testLabel:"ac-groups-view",icon:nt.exports.jsx(bpe,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(T2r,{}),group:c_o.PERMISSIONS,isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.apiTokens]:{id:l_o.apiTokens,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.api-tokens.view",defaultMessage:"API Tokens",description:"The label for API Tokens view"}),testLabel:"ac-api-tokens-view",icon:nt.exports.jsx(Kpe,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(Udo,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!0},[l_o.iam]:{id:l_o.iam,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.iam.view",defaultMessage:"IAM",description:"The label for the IAM view"}),testLabel:"ac-iam-view",icon:nt.exports.jsx(Ppe,{style:{transform:"translate(4px, 0px)"}}),content:()=>nt.exports.jsx(t$r,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.auditLogs]:{id:l_o.auditLogs,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.audit-logs.view",defaultMessage:"Audit Logs",description:"The label of Audit Logs tab button."}),testLabel:"ac-audit-logs-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(Yft,{}),group:c_o.SECURITY,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.systemInfo]:{id:l_o.systemInfo,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.system-info.view",defaultMessage:"System Info",description:"The label for System Info view"}),testLabel:"ac-system-info-view",icon:nt.exports.jsx(Vpe,{}),content:()=>nt.exports.jsx(Ggo,{}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.retentionPolicy]:{id:l_o.retentionPolicy,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.retention-policy.view",defaultMessage:"Retention Policy",description:"The label of Retention Policy tab button."}),testLabel:"ac-retention-policy-view",icon:nt.exports.jsx(Q0e,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(I_e,{label:"Retention Policy View",ticketId:0}),group:c_o.NONE,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!0,isHiddenForSuperadmin:!1},[l_o.orgSettings]:{id:l_o.orgSettings,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.org-settings.view",defaultMessage:"Org Settings",description:"The label of Org Settings tab button."}),testLabel:"ac-org-settings-view",icon:nt.exports.jsx(Nge,{style:{transform:"translate(2px, 0px)"}}),content:()=>nt.exports.jsx(yqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.appSettings]:{id:l_o.appSettings,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.app-settings.view",defaultMessage:"App Settings",description:"The label of App Settings tab button."}),testLabel:"ac-app-settings-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(zqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.customIntegration]:{id:l_o.customIntegration,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-integration.view",defaultMessage:"Integration",description:"The label of Custom Integration tab button."}),testLabel:"ac-custom-integration-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(Mqo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1,isDisplayedForSuperadmin:!0},[l_o.customLogin]:{id:l_o.customLogin,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-login.view",defaultMessage:"Login",description:"The label of Custom Login tab button."}),testLabel:"ac-custom-login-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(wIo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1,isHiddenForSuperadmin:!1},[l_o.customRegistration]:{id:l_o.customRegistration,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.custom-registration.view",defaultMessage:"Registration",description:"The label of Custom Registration tab button."}),testLabel:"ac-custom-registration-view",icon:nt.exports.jsx(nt.exports.Fragment,{}),content:()=>nt.exports.jsx(qPo,{}),group:c_o.SETTINGS,isOLPItem:!1,isBehindBeta:!0,isComingSoon:!1,isHiddenForSuperadmin:!1}},qqo=e=>_qo[e],Wqo=()=>Object.keys(_qo).map(e=>_qo[e]),Zqo=t=>Wqo().filter(e=>e.group===t),Gqo={tooltip:(e,t,n)=>{let r=t?"":e.label;return n&&(r=nt.exports.jsxs(nt.exports.Fragment,{children:[t?"":nt.exports.jsxs(nt.exports.Fragment,{children:[e.label," - "]}),nt.exports.jsx(Ce,{id:"os-admin-center-browse.nav-item.tooltip.coming-soon",defaultMessage:"Coming soon",description:"The label for the coming soon tooltip"})]})),{"data-test":"ac-nav-tab-"+e.testLabel,placement:"right",title:r}},tab:(e,t,n,r)=>Object.assign(Object.assign({wrapped:!0,label:t?e.label:"",icon:e.group===c_o.NONE?e.icon:nt.exports.jsx("span",{style:{marginLeft:"30px"}}),classes:{root:r.tabRoot,wrapped:t?r.tabExpandedWrapper:r.tabWrapper,selected:t?r.tabExpandedSelected:r.tabSelected}},{id:"admin-center-tab-"+(t=e.id),"aria-controls":"admin-center-tabpanel-"+t}),n?{sx:{opacity:"0.5!important"},onClick:()=>{}}:{})};let Jqo=({view:e})=>{var t=sqo({height:"64px"}).classes;let n=Ie();var r=Ae(H_o),i=Ae(__o),o=qqo(e),{isBehindBeta:a,isComingSoon:s,isOLPItem:l}=o,c=Ae(WG),d=Ae(B_o),r=e===r,u=Ae(U_o),i=i.includes(e);return a&&!c||i||l&&!d?null:nt.exports.jsx(he,Object.assign({},Gqo.tooltip(o,u,s),{children:nt.exports.jsx(NA,Object.assign({onClick:()=>{n(f_o.setActiveView(e))}},Gqo.tab(o,u,s,t),{selected:r}))}))},Kqo={[c_o.NONE]:{id:c_o.NONE,label:nt.exports.jsx(nt.exports.Fragment,{}),testLabel:"admin-center.navigation.group.none",icon:nt.exports.jsx(nt.exports.Fragment,{}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1},[c_o.PERMISSIONS]:{id:c_o.PERMISSIONS,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.permissions",defaultMessage:"Permissions",description:"The label of the navigation group - permissions"}),testLabel:"admin-center.navigation.group.permissions",icon:nt.exports.jsx(Jpe,{sx:{marginLeft:"13px"}}),isOLPItem:!0,isBehindBeta:!1,isComingSoon:!1},[c_o.SECURITY]:{id:c_o.SECURITY,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.security",defaultMessage:"Security",description:"The label of the navigation group - security"}),testLabel:"admin-center.navigation.group.security",icon:nt.exports.jsx(Kpe,{sx:{marginLeft:"15px"}}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1},[c_o.SETTINGS]:{id:c_o.SETTINGS,label:nt.exports.jsx(Ce,{id:"os-admin-center-browse.navigation.group.settings",defaultMessage:"Settings",description:"The label of the navigation group - settings"}),testLabel:"admin-center.navigation.group.settings",icon:nt.exports.jsx(Nge,{sx:{marginLeft:"15px"}}),isOLPItem:!1,isBehindBeta:!1,isComingSoon:!1}},Yqo=({group:e})=>{let t=Ie(),i=Ae(J_o),o=Ae(mG);var n=Kqo[e];let r=Ae(H_o),a=Ae(WG),s=Ae(B_o);var l=Zqo(e).filter(e=>{var{isOLPItem:e,isBehindBeta:t,isHiddenForSuperadmin:n,isDisplayedForSuperadmin:r}=e;return!(e&&!s||t&&!a||n&&!i||r&&!o)});let c=l.some(e=>e.id===r);var{isOLPItem:d,isBehindBeta:u}=n;let p=Ae(U_o),g=Ae(z_o)[e];var f=g?nt.exports.jsx(rue,{}):nt.exports.jsx(iue,{});let h=p?"":n.label;c&&!p&&(m=l.find(e=>e.id===r),h=nt.exports.jsxs(nt.exports.Fragment,{children:[n.label," - ",null==m?void 0:m.label]}));var m=u&&!a||d&&!s||0===l.length;return Le.exports.useEffect(()=>{g&&!p&&t(f_o.toggleNavGroupOpened(e)),!g&&p&&c&&t(f_o.toggleNavGroupOpened(e))},[p]),m?null:nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(he,Object.assign({title:p?"":h,placement:"right"},{children:nt.exports.jsx(ge,Object.assign({onClick:()=>{t(f_o.toggleNavGroupOpened(e)),g||p||t(f_o.toggleNavExpanded())},sx:{justifyContent:"flex-start",padding:"13px 10px",color:c&&!g?"#1871E8":"#555F7C","& svg":{transform:p?"":"translateX(5px)",color:c&&!p?"#1871E8":void 0},"& .MuiButton-endIcon":{marginLeft:"auto"}},fullWidth:!0,startIcon:n.icon,endIcon:f,"data-testid":n.testLabel},{children:p&&n.label}))})),nt.exports.jsx(B6,Object.assign({sx:{width:"100%"},in:g,timeout:"auto",unmountOnExit:!0},{children:nt.exports.jsx(_,Object.assign({width:"100%"},{children:l.map(e=>nt.exports.jsx(Jqo,{view:e.id},e.id))}))}))]})},Qqo=()=>{var e=Ae(U_o);return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Jqo,{view:l_o.users}),nt.exports.jsx(Jqo,{view:l_o.approvals}),nt.exports.jsx(Jqo,{view:l_o.packages}),nt.exports.jsx(Yqo,{group:c_o.PERMISSIONS}),nt.exports.jsx(Yqo,{group:c_o.SECURITY}),nt.exports.jsx(uqo,{isNavExpanded:e}),nt.exports.jsx(Jqo,{view:l_o.systemInfo}),nt.exports.jsx(Jqo,{view:l_o.retentionPolicy}),nt.exports.jsx(Yqo,{group:c_o.SETTINGS})]})},Xqo=()=>{let t=sqo({height:"64px"}).classes,n=Ae(H_o);var e=Wqo();return nt.exports.jsx(nt.exports.Fragment,{children:e.map(e=>{e=e.id;return nt.exports.jsx($qo,Object.assign({activeView:n,value:e,className:t.contentPanel},{children:qqo(e).content()}),e)})})};function $qo(e){var{children:t,activeView:n,value:r}=e,e=m_o(e,["children","activeView","value"]);return nt.exports.jsx("div",Object.assign({role:"tabpanel",hidden:n!==r,id:"admin-center-tabpanel-"+r,"data-test":"admin-center-tabpanel-"+r,"aria-labelledby":"admin-center-tab-"+r},e,{children:n===r&&t}))}let eWo=({height:e})=>{var e=sqo({height:e}).classes,t=Ae(U_o);return Ae(W_o)?nt.exports.jsxs("div",Object.assign({className:e.root},{children:[nt.exports.jsx(lw,Object.assign({id:"adminCenterViewTabs",orientation:"vertical",value:0,onChange:(e,t)=>{},className:Zhe(e.tabs,{[e.tabsExpanded]:t}),classes:{flexContainer:e.tabsContainer,indicator:e.tabIndicator},"aria-label":"admin center tabs","data-test":"ac-nav-tabs-container"},{children:nt.exports.jsx(Qqo,{})})),nt.exports.jsx(Xqo,{})]})):null},tWo=({classes:e,dimmed:t,children:n})=>Ae(EY)?nt.exports.jsx(oze,Object.assign({dataTest:"ac-widget",dimmed:!!t,panelId:"ADMIN_CENTER"},{children:n})):nt.exports.jsx("div",Object.assign({role:"presentation","data-test":"ac-widget",className:Zhe(e.root,e.panel)},{children:n})),nWo=55,rWo=64,iWo=5,oWo=je()(e=>({root:{width:1020,position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0},overlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"}})),aWo=({hidePanel:e})=>{var t=oWo().classes;let n=Ie();var r=Ae(EY),i=(Ae(Cse)||[]).find(e=>"ADMIN_CENTER"===e.panelId)||{panelConfig:{dimmed:0}},i=0<(null==(i=null===i?void 0:i.panelConfig)?void 0:i.dimmed),r=`calc(100vh - ${r?25:nWo+iWo}px - ${rWo}px)`;return Le.exports.useEffect(()=>{bZ.getQueries().find(e=>"apiTokens"===e.name)&&n(f_o.setHiddenView({view:l_o.apiTokens,isHidden:!1}))},[]),nt.exports.jsxs(tWo,Object.assign({dimmed:i,classes:t,"data-test":"os-admin-center.browse.container"},{children:[nt.exports.jsx(aqo,{"data-test":"os-admin-center.browse.header",height:rWo,hidePanel:e}),nt.exports.jsx(eWo,{"data-test":"os-admin-center.browse.main-panel",height:r})]}))},sWo=e=>{var{apiRoot:t,graphQLEndpoint:n,token:r}=Ae(YG);let i=Ae(uG),o=Ie(),{organizationId:a,organizationGuid:s,organizationName:l}=e;return Xce(jce.Job),Le.exports.useEffect(()=>{var e;null!=(e=null==i?void 0:i.organization)&&e.organizationId&&(a?o(f_o.setAdminCenterOrganization({id:a,guid:s||"",name:l||"",isUsersCurrentOrg:a===i.organization.organizationId})):o(f_o.setAdminCenterOrganization({id:i.organization.organizationId,guid:i.organization.organizationGuid||"",name:i.organization.organizationName||"",isUsersCurrentOrg:!0})))},[o,a,s,l,i]),t&&n&&r?nt.exports.jsx(aWo,Object.assign({},e)):null};let{header:lWo,container:cWo}=C2e,dWo="UPSERT_CUSTOM_INTEGRATION_PANEL",uWo=({integration:e={integrationId:"",json:""},viewMode:t,hidePanel:n,onUpsertIntegration:r})=>{let[i,o]=Le.exports.useState(e.integrationId||""),[a,s]=Le.exports.useState(e.json?JSON.stringify(e.json,null,2):"{}");e=Le.exports.useCallback(()=>{n()},[]);return nt.exports.jsxs(cWo,Object.assign({panelId:dWo,testId:"upsert-custom-integration-panel-container"},{children:[nt.exports.jsx(lWo,{title:"add"===t?"New Custom Integration":"Edit Custom Integration",testId:"upsert-custom-integration-panel-header",onPanelClose:e}),nt.exports.jsxs(be,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",margin:"30px"}},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",mb:"5px"}},{children:"Integration ID"})),nt.exports.jsx(gw,{disabled:"edit"===t,value:i,placeholder:"Integration ID",onChange:e=>{e=e.target.value;o(e)},"data-testid":"admin-center-custom-integration-name-input",sx:{mb:"20px"}}),nt.exports.jsx(pe,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",mb:"5px"}},{children:"JSON"})),nt.exports.jsx(Z_e,{jsonData:a,onChange:e=>{s(e)},height:"500px"}),nt.exports.jsxs(be,Object.assign({sx:{position:"fixed",bottom:"20px",right:"80px",marginTop:"15px",marginRight:"15px"}},{children:[nt.exports.jsx(ge,Object.assign({sx:{mr:2},color:"inherit",onClick:e},{children:"Cancel"})),nt.exports.jsx(ge,Object.assign({disabled:!a||!i,variant:"contained",color:"primary",onClick:()=>{r({integrationId:i,json:a})}},{children:"Save"}))]}))]}))]}))};var pWo=Object.freeze({__proto__:null,AdminCenterBrowse:e=>nt.exports.jsx(ES,{children:nt.exports.jsx(wXe,Object.assign({modules:[sQi(),n2r(),Gpr(),HIi(),{id:u_o,reducerMap:{[u_o]:V_o},sagas:[iqo],initialActions:[]},lGt(),{id:N0o,reducerMap:{[N0o]:D0o},sagas:[B0o],initialActions:[]},$7o()]},{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(sWo,Object.assign({},e))})}))}),UpsertIntegrationPanel:e=>nt.exports.jsx(BO,{children:nt.exports.jsx(ES,{children:nt.exports.jsx(D4e,{children:nt.exports.jsx(uWo,Object.assign({},e))})})})}),x_r={},QQe=NQ.exports,gWo=(Object.defineProperty(x_r,"__esModule",{value:!0}),x_r.default=void 0),Upe=QQe(YX),h2e=nt.exports,Hpe=(0,Upe.default)((0,h2e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),gWo=x_r.default=Hpe,eX={},rpe=NQ.exports,fWo=(Object.defineProperty(eX,"__esModule",{value:!0}),eX.default=void 0),gpe=rpe(YX),J0e=nt.exports,g=(0,gpe.default)((0,J0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),fWo=eX.default=g;let hWo={processAiHeaderTitle:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>nt.exports.jsx(Ce,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},mWo=je()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),CWo="dataCenterProcessAI",xWo=((vg=Zoa=Zoa||{}).aiCapabilities="aiCapabilities",vg.engineSelection="engineSelection",vg.engineConfiguration="engineConfiguration","capabilitiesState");t=LT({name:CWo+"/"+xWo,initialState:{status:"idle",capabilities:[],engines:{}},reducers:{capabilitiesFetchStart(e,t){e.status="pending"},capabilitiesFetchSucceed(e){e.status="idle"},capabilitiesFetchFailed(e){e.status="failure"},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),zpe=t.actions,Tge=t.reducer;let vWo="processAiConfig";BU=LT({name:CWo+"/"+vWo,initialState:{status:"idle",selectedEngines:{}},reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:n}=t.payload;e.selectedEngines[t]=n},updateSingleJobStatus(e,t){let{engineId:n,status:r}=t.payload;for(var i in e.selectedEngines){var o=e.selectedEngines[i].findIndex(e=>e.id===n);if(-1!==o){e.selectedEngines[i][o].status=r,e.selectedEngines[i][o].errorMessage=t.payload.errorMessage;break}}}}}),U3e=BU.actions,C0e=BU.reducer,qoi="uiState",xge={status:"idle",currentView:Zoa.aiCapabilities},tpe=LT({name:CWo+"/"+qoi,initialState:xge,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload}}}),wTi=tpe.actions,Rpe=tpe.reducer;let bWo="job";HU=LT({name:CWo+"/"+bWo,initialState:{status:"idle"},reducers:{launchJobStart(e,t){e.status="pending"},launchJobSucceed(e){e.status="success"},launchJobFailed(e){e.status="failure"}}}),v3e=HU.actions;let yWo={uiState:wTi,[xWo]:zpe,[vWo]:U3e,[bWo]:v3e},AWo=Ow({uiState:Rpe,[xWo]:Tge,[vWo]:C0e,[bWo]:HU.reducer}),IWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.status,wWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.capabilities,jWo=t=>e=>null==(e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.engines)?void 0:e[t],SWo=e=>{e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[xWo])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>we.exports.concat(e,t)):[]},OWo=t=>e=>null==(e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines)?void 0:e[t],kWo=e=>{e=null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},TWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[vWo])?void 0:e.selectedEngines,EWo=e=>null==(e=null==(e=null==e?void 0:e[CWo])?void 0:e[bWo])?void 0:e.status,NWo=dT([EG,PG,cG],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n})),MWo=je()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),PWo=({categories:e,closeSnackbar:i,enableNonSingleEngineJobEngines:o,aobSelectedEngines:a,marginStart:s,marginTop:l})=>{let n=MWo().classes,c=Ie(),d=Ae(TWo),u=Ae(EY);return nt.exports.jsx("div",Object.assign({className:n.processingContainer},{children:e.map((r,e)=>{var t;return nt.exports.jsx(LWo,{category:r,onClick:()=>{var e,t,n;e=r,i(),e={name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:e,enableNonSingleEngineJobEngines:o,aobSelectedEngines:a}},t=s||0,n=l||0,n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(u?0:55)+n,marginStart:(u?380:460)+t,size:"small",siblingPanelId:"DATA_CENTER_PROCESS_AI",parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"},c(yse({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:e,panelConfig:n}))},badgeContent:null!=(t=d[r.id])&&t.length?nt.exports.jsx(pe,Object.assign({variant:"overline",className:n.badgeContent,"data-testid":"engine-category-badge-quantity"},{children:d[r.id].length})):0},e)})}))},LWo=({category:e,onClick:t,badgeContent:n})=>{var r=MWo().classes,i=e.name.replace(/[^a-zA-Z]/g,"");return nt.exports.jsxs(be,Object.assign({sx:{"&:hover .category-card-engine-icon":{color:"#FFF",transition:"color 0.2s ease-in-out"},"&:hover .category-card-engine-icon-background":{backgroundColor:"#4b5471",transition:"background-color 0.2s ease-in-out"},"&:hover .engine-category-name":{color:"#4b5471"}},"data-test":"engine-category-row",className:r.processingRow+" engine-category-card",onClick:t},{children:[nt.exports.jsx("div",Object.assign({className:r.iconBackground+" category-card-engine-icon-background"},{children:nt.exports.jsx(u7,Object.assign({"data-testid":"engine-category-badge-"+i,badgeContent:n||0,color:"secondary",classes:{badge:r.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:nt.exports.jsx(ex,{"data-test":"engine-category-icon-"+i,className:r.engineIcons+" category-card-engine-icon",component:C4e[i],color:"secondary",fontSize:"small"})}))})),nt.exports.jsxs("div",Object.assign({className:r.processingColumn},{children:[nt.exports.jsx(pe,Object.assign({"data-test":`engine-category-name-${e.name} engine-category-name`,variant:"h6",color:"textPrimary",className:r.name,sx:{pointerEvents:"none"}},{children:e.name})),nt.exports.jsx(pe,Object.assign({"data-test":"engine-category-description-"+e.name,variant:"body2",color:"textSecondary",className:r.description},{children:e.description}))]}))]}),i)},DWo=je()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"70%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"30%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),RWo=({name:e,status:t,onRetry:n,limitAnimation:r=!1,errorMessage:i=""})=>{let[o,a]=Le.exports.useState(!0);Le.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var s=DWo().classes;return nt.exports.jsxs("div",Object.assign({className:Zhe(s.jobLaunchItem,{[s.jobLaunchItemLoading]:"pending"===t||o,[s.jobLaunchItemSuccess]:"success"===t,[s.jobLaunchItemFail]:"failure"===t})},{children:[nt.exports.jsxs("div",Object.assign({className:s.jobLaunchItemMessage},{children:[nt.exports.jsx(pe,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),nt.exports.jsx(pe,Object.assign({variant:"caption"},{children:"pending"===t||o?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):"success"===t?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):"failure"===t?nt.exports.jsx(Ce,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),nt.exports.jsx("div",Object.assign({className:s.jobLaunchItemFeedback},{children:"pending"===t||o?nt.exports.jsx(mm,{size:20,disableShrink:r}):"success"===t?nt.exports.jsx(gWo,{style:{color:"#4caf50"}}):"failure"===t?nt.exports.jsxs(nt.exports.Fragment,{children:[i&&nt.exports.jsx(he,Object.assign({title:i,placement:"top"},{children:nt.exports.jsx(ue,Object.assign({sx:{color:"rgb(97, 26, 21)"}},{children:nt.exports.jsx(Vpe,{})}))})),nt.exports.jsx(ge,Object.assign({color:"inherit",onClick:n},{children:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})}))]}):void 0}))]}))},FWo=({open:e,onClose:n,jobLaunchItems:t,onRetry:r,hidePanel:i})=>{var o=(e,t)=>{"clickaway"!==t&&n()},a=DWo().classes;let s=10<t.length;var l=()=>{for(var e of t)if("failure"===e.status||"pending"===e.status)return null;return 2500};return nt.exports.jsx(Sy,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:o,TransitionProps:{onExited:l()&&i}},{children:nt.exports.jsxs("div",Object.assign({className:"aiware-el "+a.jobLaunchSnackbarContainer},{children:[nt.exports.jsxs("div",Object.assign({className:a.jobLaunchSnackbarTitle},{children:[nt.exports.jsx(pe,Object.assign({variant:"h3"},{children:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),nt.exports.jsx(ue,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:o},{children:nt.exports.jsx(HMt,{fontSize:"inherit"})}))]})),nt.exports.jsx("div",Object.assign({className:a.jobLaunchItemList},{children:t.map((e,t)=>nt.exports.jsx(RWo,{name:e.name,errorMessage:null==e?void 0:e.errorMessage,status:e.status,onRetry:()=>r(e),limitAnimation:s},t))}))]}))}))},VWo=je()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),BWo=({title:e,actionButton:t,cancelButton:n,confirmationOnCancel:r=!1,children:i=null})=>{let[o,a]=Le.exports.useState(!1);var s=VWo().classes;let l=e=>{a(!1),e&&e()};return nt.exports.jsxs("div",Object.assign({className:s.root,"data-test":"data-center-action-footer"},{children:[e,i,nt.exports.jsx(Ghe,{showConfirmationModal:o,closeConfirmationModal:l,onClosePanel:()=>l(n.action)}),nt.exports.jsx(ge,Object.assign({onClick:()=>{r&&!t.disabled?a(!0):n.action()},disabled:n.disabled,"data-test":n.dataTest,className:s.cancelButton},{children:n.label})),nt.exports.jsx(ge,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:s.actionButton},{children:t.label}))]}))},HWo=t=>{var e,n=mWo().classes;let{apiRoot:r,graphQLEndpoint:i,token:o}=Ae(NWo),a=Ae(EWo),[s,l]=Le.exports.useState(!1);var c=Ae(IWo);let d=Ae(kWo),u=Ae(SWo),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:f}=t;var h=Ae(wWo);let m=Ie(),C=()=>{m(yWo.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(Le.exports.useEffect(()=>{["pending","success","failure"].includes(a)&&l(!0)},[a]),Le.exports.useEffect(()=>{r&&i&&o&&C()},[r,i,o,m,t.tdoId]),!(r&&i&&o&&t.panelRendered))return null;var x={label:null!=(x=t.submitButtonLabel)?x:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):m(yWo.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},v={label:nt.exports.jsx(Ce,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"},b=((null==t?void 0:t.marginStart)||0)-(null!=(b=null==t?void 0:t.parentPanelId)&&b.startsWith("INVESTIGATE")?80:0);return nt.exports.jsxs("div",Object.assign({className:n.aiProcessingWrapper},{children:[nt.exports.jsxs("div",Object.assign({className:n.processAiHeader},{children:[nt.exports.jsx(pe,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:hWo.processAiHeaderTitle()})),nt.exports.jsx(he,Object.assign({title:hWo.closePanel()},{children:nt.exports.jsx(ue,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:nt.exports.jsx(m2e,{})}))}))]})),nt.exports.jsx(pe,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:hWo.processAiHeaderDescription()})),"failure"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx("br",{}),nt.exports.jsx(be,Object.assign({mt:4},{children:nt.exports.jsxs(T9,Object.assign({variant:"outlined",severity:"error"},{children:[nt.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:hWo.processAiFailedStatus()})),nt.exports.jsx(be,{children:nt.exports.jsx(ge,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:C},{children:hWo.processAiRetryBtn()}))})]}))}))]}),"idle"===c&&!(null!=h&&h.length)&&nt.exports.jsx(be,Object.assign({mt:4},{children:nt.exports.jsx(T9,Object.assign({variant:"outlined",severity:"info"},{children:hWo.processAiNoEngineCapability()}))})),"pending"===c&&nt.exports.jsx("div",Object.assign({className:n.loaderIcon},{children:nt.exports.jsx(mm,{})})),"idle"===c&&nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(PWo,{categories:h,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:f,marginStart:b,marginTop:null==t?void 0:t.marginTop}),nt.exports.jsx(BWo,{confirmationOnCancel:!0,actionButton:x,cancelButton:v})]}),nt.exports.jsx(Ch,{children:nt.exports.jsx(FWo,{open:s,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{m(yWo.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function UWo(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}function zWo(r,i,o,a,s){var l;return UWo(this,void 0,void 0,function*(){var e="launchSingleEngineJob",t="launchSingleEngineJob",n=null==a?void 0:a.filter(e=>null!==e.fieldValue),n=yield fZ({query:"\n mutation launchSingleEngineJob($input: SingleEngineJobInput!) {\n launchSingleEngineJob(input: $input) {\n id\n }\n }\n ",variables:{input:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({engineId:i},{priority:-50}),TL(r.apiRoot,"https://api.us-1.veritone.com")&&{clusterId:"prd5-21xbyq0x-4h0s-o685-snas-oovhdai552v9"}),s&&{uploadUrl:s}),o&&{targetId:o}),(null==n?void 0:n.length)&&{fields:n})},operationName:e,graphEndpoint:r.graphQLEndpoint,token:r.token});return n.errors&&0<n.errors.length?{errorMessage:n.errors[0].message,jobId:void 0}:{errorMessage:void 0,jobId:null==(l=n.data[t])?void 0:l.id}})}function*_Wo(e){try{var r=yield D(NWo),t=yield D(AG),n=e.payload,i=n?yield function(n,r){var i;return UWo(this,void 0,void 0,function*(){var e="getTdoContentType",t="temporalDataObject",e=yield H(Object.assign({query:'\n query getTdoContentType($tdoId: ID!) {\n temporalDataObject(id: $tdoId) {\n primaryAsset(assetType: "media") {\n contentType\n }\n }\n }\n ',variables:{tdoId:r},operationName:e},n));return null==(i=null==(i=e[t])?void 0:i.primaryAsset)?void 0:i.contentType})}(r,n):null,o=XW(t);if(n&&!i)yield P(F({content:o({id:"os-data-center-process-ai.snackbar.processAiEngineError",defaultMessage:[{type:0,value:"This file can not be processed through any AI engines!"}]}),severity:R.Info}));else{var a=yield function(n,r,i){return UWo(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield H(Object.assign({query:`
4646
4646
  query ${e}($limit: Int${r?", $format: String!":""}) {
4647
4647
  ${t}(limit: $limit) {
4648
4648
  count