groundfloor-react-ui 1.3.68 → 1.3.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.js +35 -35
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1307,7 +1307,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1307
1307
|
margin-top: 5px;
|
|
1308
1308
|
font-size: 10px;
|
|
1309
1309
|
}
|
|
1310
|
-
`,Dt=({defaultValue:e,onChange:l,inputType:i,onClick:a,placeHolder:r,value:n,disabled:s,startYear:d,endYearRange:p,iconProps:m,customHeaderStyle:u,timeBtnStyle:f,wrapperStyle:g,customIconContainerStyle:h,label:C,labelInline:y,labelStyle:w,required:A,errMsg:S,errMsgColor:k,isValid:V,...E})=>{const[M,H]=o(e);c((()=>{H(e)}),[e]);let B=M?new Date(M):null;for(var z=[],I=p||10,P=d||(new Date).getFullYear();P<=(new Date).getFullYear()+I;P++)z.push(P);let W={};switch(i){case"date":default:W.dateFormat="dd MMM, yyyy";break;case"month":W.dateFormat="MMMM yyyy",W.showMonthYearPicker=!0;break;case"year":W.dateFormat="yyyy",W.showYearPicker=!0;break;case"datetime-local":W.dateFormat="dd MMM yyyy, hh:mm a",W.showTimeSelect=!0,W.timeFormat="hh:mm a",W.timeIntervals=15,W.timeCaption="Time";break;case"time":W.showTimeSelect=!0,W.showTimeSelectOnly=!0,W.dateFormat="hh:mm a"}const Z=b()||R,F={icon:"calender",color:Z.variant["primary-1"],size:"16",...m};return t.createElement(qt,L({labelInline:y,errMsgColor:k,theme:Z},E),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:w,type:"label-text",labelInline:y,errMsg:S,text:C,style:{display:"flex",marginBottom:""+(y?"":"7px"),paddingBottom:"0px"}},E)),A&&t.createElement("div",{style:{marginLeft:"4px",color:`${Z.variant.error}`}},"*")),t.createElement(Wt,L({theme:Z},E,{wrapperStyle:g,isValid:V,disabled:s}),t.createElement(v,L({selected:B,disabled:s,customInput:t.createElement(Rt,{value:n,onClick:a,placeholder:r,theme:Z},t.createElement(Zt,L({theme:Z,value:n,onClick:a,timeBtnStyle:f,disabled:s},E),t.createElement("div",null,n||(r||"-- : -- --")),t.createElement(Tt,L({theme:Z},E,{customIconContainerStyle:h,className:"input-icon"}),F.icon?t.createElement(_,F):null))),onChange:e=>{H(e);var t=null;t="datetime-local"==i?x(e).format("DD MMM YYYY, hh:mm A"):"date"==i?x(e).format("DD MMM, YYYY"):"year"==i?x(e).format("YYYY"):"month"==i?x(e).format("MMMM YYYY"):"time"==i?x(e).format("hh:mm A"):x(e).format("DD MMM, YYYY"),l(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:r},W,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:o,increaseMonth:c})=>{let a=x(e).format("MMMM");return t.createElement(Ft,L({theme:Z},E,{inputType:i,customHeaderStyle:u}),"year"!==i?t.createElement("span",{style:{paddingLeft:"10px"},onClick:o},t.createElement(_,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==i?t.createElement("span",{style:{paddingRight:"5px"}},a):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},z.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==i?t.createElement("span",{style:{paddingRight:"10px"},onClick:c},t.createElement(_,{icon:"chevron-right",color:"white",size:16})):null)}},E))),S.length>0&&t.createElement("div",{className:"err-text"},S))};Dt.propTypes={defaultValue:e.string,onChange:e.func,inputType:e.string,onClick:e.func,placeHolder:e.string,value:e.string,disabled:e.bool,startYear:e.number,endYearRange:e.number,iconProps:e.object,customHeaderStyle:e.object,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,label:e.string,labelStyle:e.object,labelInline:e.bool,errMsg:e.string,errMsgColor:e.string,isValid:e.bool},Dt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Ot=m.div`
|
|
1310
|
+
`,Dt=({defaultValue:e,onChange:l,inputType:i,onClick:a,placeHolder:r,value:n,disabled:s,startYear:d,endYearRange:p,iconProps:m,customHeaderStyle:u,timeBtnStyle:f,wrapperStyle:g,customIconContainerStyle:h,label:C,labelInline:y,labelStyle:w,required:A,errMsg:S,errMsgColor:k,isValid:V,...E})=>{const[M,H]=o(e);c((()=>{H(e)}),[e]);let B=M?new Date(M):null;for(var z=[],I=p||10,P=d||(new Date).getFullYear();P<=(new Date).getFullYear()+I;P++)z.push(P);let W={};switch(i){case"date":default:W.dateFormat="dd MMM, yyyy";break;case"month":W.dateFormat="MMMM yyyy",W.showMonthYearPicker=!0;break;case"year":W.dateFormat="yyyy",W.showYearPicker=!0;break;case"datetime-local":W.dateFormat="dd MMM yyyy, hh:mm a",W.showTimeSelect=!0,W.timeFormat="hh:mm a",W.timeIntervals=15,W.timeCaption="Time";break;case"time":W.showTimeSelect=!0,W.showTimeSelectOnly=!0,W.dateFormat="dd MMM yyyy, hh:mm a",W.timeFormat="hh:mm a"}const Z=b()||R,F={icon:"calender",color:Z.variant["primary-1"],size:"16",...m};return t.createElement(qt,L({labelInline:y,errMsgColor:k,theme:Z},E),t.createElement("div",{style:{display:"flex"}},t.createElement(lt,L({customStyles:w,type:"label-text",labelInline:y,errMsg:S,text:C,style:{display:"flex",marginBottom:""+(y?"":"7px"),paddingBottom:"0px"}},E)),A&&t.createElement("div",{style:{marginLeft:"4px",color:`${Z.variant.error}`}},"*")),t.createElement(Wt,L({theme:Z},E,{wrapperStyle:g,isValid:V,disabled:s}),t.createElement(v,L({selected:B||new Date,disabled:s,customInput:t.createElement(Rt,{value:n,onClick:a,placeholder:r,theme:Z},t.createElement(Zt,L({theme:Z,value:n,onClick:a,timeBtnStyle:f,disabled:s},E),t.createElement("div",null,n||(r||"-- : -- --")),t.createElement(Tt,L({theme:Z},E,{customIconContainerStyle:h,className:"input-icon"}),F.icon?t.createElement(_,F):null))),onChange:e=>{H(e);var t=null;t="datetime-local"==i?x(e).format("DD MMM YYYY, hh:mm A"):"date"==i?x(e).format("DD MMM, YYYY"):"year"==i?x(e).format("YYYY"):"month"==i?x(e).format("MMMM YYYY"):"time"==i?x(e).format("DD MMM YYYY, hh:mm A"):x(e).format("DD MMM, YYYY"),l(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:r},W,{renderCustomHeader:({date:e,changeYear:l,decreaseMonth:o,increaseMonth:c})=>{let a=x(e).format("MMMM");return t.createElement(Ft,L({theme:Z},E,{inputType:i,customHeaderStyle:u}),"year"!==i?t.createElement("span",{style:{paddingLeft:"10px"},onClick:o},t.createElement(_,{icon:"chevron-left",color:"white",size:16})):null,t.createElement("b",null,"year"!==i?t.createElement("span",{style:{paddingRight:"5px"}},a):null," ",t.createElement("span",{className:"calender-year"},t.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>l(e)},z.map((e=>t.createElement("option",{key:e,value:e},e)))))),"year"!==i?t.createElement("span",{style:{paddingRight:"10px"},onClick:c},t.createElement(_,{icon:"chevron-right",color:"white",size:16})):null)}},E))),S.length>0&&t.createElement("div",{className:"err-text"},S))};Dt.propTypes={defaultValue:e.string,onChange:e.func,inputType:e.string,onClick:e.func,placeHolder:e.string,value:e.string,disabled:e.bool,startYear:e.number,endYearRange:e.number,iconProps:e.object,customHeaderStyle:e.object,timeBtnStyle:e.object,wrapperStyle:e.object,customIconContainerStyle:e.object,label:e.string,labelStyle:e.object,labelInline:e.bool,errMsg:e.string,errMsgColor:e.string,isValid:e.bool},Dt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Ot=m.div`
|
|
1311
1311
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"initial"} !important;
|
|
1312
1312
|
|
|
1313
1313
|
.text-main-alt {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-phone-input-2"),i=require("dayjs");require("dayjs/locale/es");var c=require("react-datepicker"),n=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),p=require("react-data-table-component"),u=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),C=m(r),x=m(i),y=m(c),v=m(n),w=m(d),A=m(s),S=m(p),k=m(u);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},E.apply(null,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},L={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},H={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},B={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},z={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:L["neutral-3"]},I={primary:{...V},ui:{...M},neutral:{...L},shade:{...H},graph:{...B},additional:{...z},variant:{...V,...M,...L,...H,...B,...z}},P={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${I.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.neutral["neutral-2"]}`},spinner:{"background-color":`${I.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${I.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.variant["neutral-2"]}`,display:"flex","align-items":"center","justify-content":"center",width:"max-content","background-color":"transparent","margin-bottom":"0px","padding-bottom":"0px"},image:{"border-radius":"0%",width:"100%",height:"100%"},imageAvatar:{"border-radius":"50%","box-sizing":"border-box",position:"absolute"},imageAvatarSM:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"30px",height:"30px"},imageAvatarMD:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"32px",height:"32px"},imageAvatarLG:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"38px",height:"38px"},table:{table:{style:{borderRadius:"4px",paddingRight:"0px",backgroundColor:"transparent"}},checkbox:{style:{maxHeight:"28px",maxWidth:"28px"}},headRow:{style:{background:`${I.variant["neutral-5"]}`,borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${I.variant["neutral-5"]}`,borderTop:`1px solid ${I.variant["neutral-5"]}`,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",paddingLeft:"56px",borderBottom:"none",minHeight:"44px",maxHeight:"44px"}},headCells:{style:{fontSize:"14px",fontWeight:"600","&:first-of-type":{paddingLeft:"0px !important"}}},rows:{style:{background:`${I.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px solid ${I.variant["neutral-5"]}`,borderBottom:`1px solid ${I.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${I.variant["neutral-5"]}`}}},header:{display:"flex","justify-content":"space-between","align-items":"center",position:"fixed","z-index":"1000",top:"0",right:"0",left:"0","min-height":"56px","margin-left":"48px","font-size":"16px","background-color":`${I.additional.white}`,"border-bottom":`0.5px solid ${I.variant["neutral-3"]}`},content:{"background-color":"#eef1f7",width:"100%","min-height":"100%","padding-top":"53px","box-sizing":"border-box",display:"flex","flex-direction":"column","margin-left":"70px"},"radio-outer-circle":{width:"20px",height:"20px","min-width":"20px","min-height":"20px","border-radius":"50%",display:"flex","justify-content":"center","align-items":"center"},"radio-inner-circle":{display:"flex","align-self":"center",margin:"0","border-radius":"50%"},"radio-label":{display:"block","margin-bottom":"8px","padding-bottom":0,color:`${I.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${I.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${I.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${I.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${I.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${I.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${I.textColor}`,"background-color":`${I.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${I.textColor}`,"background-color":"transparent"},"dropzone-file-name":{"margin-left":"5px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",padding:"2px","font-size":"14px",color:"#494949"},"signature-parent-div":{"border-radius":"5.5px","align-content":"flex-start","justify-content":"center",width:"inherit","max-width":"532px",height:"86px",display:"block","flex-flow":"column wrap","font-size":"17px",color:`${I.textColor}`,"background-color":`${I.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${I.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${I.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${I.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${I.additional.white}`,"border-radius":"3.6px",border:`1px solid ${I.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${I.additional.white} `,"border-radius":"3.6px",border:`1px solid ${I.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${I.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${I.variant["neutral-1"]} `,color:`${I.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},Z=h.default.div`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("prop-types"),t=require("react"),l=require("styled-components"),a=require("react-svg"),o=require("react-popper-tooltip"),r=require("react-phone-input-2"),i=require("dayjs");require("dayjs/locale/es");var c=require("react-datepicker"),n=require("react-select"),d=require("react-select/async"),s=require("react-signature-pad-wrapper"),p=require("react-data-table-component"),u=require("react-modal"),f=require("react-dom");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(e),g=m(t),h=m(l),C=m(r),y=m(i),x=m(c),v=m(n),w=m(d),A=m(s),S=m(p),k=m(u);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},E.apply(null,arguments)}const V={"primary-1":"#2A50FD","primary-2":"#081348"},M={error:"#DD0000",success:"#00B904 "},L={"neutral-1":"#39424D","neutral-2":"#6B747F","neutral-3":"#BBC4CF","neutral-4":"#E2E6F5","neutral-5":"#F0F3F8"},H={"insight-purple":"#F8F2FF","insight-yellow":"#FFFAF2","error-bg":"#FCF2F2","selection-bg":"#F2F4FE"},B={"graph-1":"#2E56F4","graph-2":"#00D7F7","graph-3":"#8B2DFF","graph-4":"#FB9A00","graph-5":"#00B904"},z={white:"#FFFFFF",black:"#000000","text-color":V["primary-2"],border:L["neutral-3"]},I={primary:{...V},ui:{...M},neutral:{...L},shade:{...H},graph:{...B},additional:{...z},variant:{...V,...M,...L,...H,...B,...z}},P={common:{},label:{"padding-left":"6px","font-style":"normal","font-weight":"normal","font-size":"14px",display:"flex",width:"inherit","align-items":"flex-start",color:`${I.variant["neutral-2"]}`,"margin-bottom":"0","padding-bottom":"0"},"progressBar-label":{display:"block","margin-bottom":"8px","padding-bottom":"0","font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.neutral["neutral-2"]}`},spinner:{"background-color":`${I.variant["neutral-1"]}`},avatarContainer:{background:"transparent",display:"flex","align-items":"center",width:"auto",position:"relative"},avatarCircle:{"border-radius":"50%",display:"flex","align-items":"center","justify-content":"center","box-sizing":"border-box"},avatarCircleSM:{"font-weight":"600","font-size":"12px","min-width":"30px","min-height":"30px"},avatarCircleMD:{"font-weight":"400","font-size":"16px","min-width":"32px","min-height":"32px"},avatarCircleLG:{"font-weight":"400","font-size":"18px","min-width":"38px","min-height":"38px"},avatarName:{},avatarNameSM:{"margin-left":"8px","font-size":"14px"},avatarNameMD:{"margin-left":"16px","font-size":"16px"},avatarNameLG:{"margin-left":"16px","font-size":"16px"},"textbox-wrapper":{"border-radius":"4px",padding:"5.5px 7px",display:"flex","align-items":"center","line-height":".5rem",position:"relative"},"input-wrapper":{border:"0",outline:"0",margin:"0 5px",padding:"0px","font-size":"14px","flex-grow":"1","flex-shrink":"0","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},"textarea-wrapper":{border:"0",outline:"0",color:`${I.variant["primary-2"]}`,margin:"0 5px",padding:"5px","font-size":"14px","flex-grow":"1","flex-shrink":"0","line-height":"12px"},"label-text":{"font-style":"normal","font-weight":"normal","font-size":"14px",color:`${I.variant["neutral-2"]}`,display:"flex","align-items":"center","justify-content":"center",width:"max-content","background-color":"transparent","margin-bottom":"0px","padding-bottom":"0px"},image:{"border-radius":"0%",width:"100%",height:"100%"},imageAvatar:{"border-radius":"50%","box-sizing":"border-box",position:"absolute"},imageAvatarSM:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"30px",height:"30px"},imageAvatarMD:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"32px",height:"32px"},imageAvatarLG:{"border-radius":"50%","box-sizing":"border-box",position:"absolute",width:"38px",height:"38px"},table:{table:{style:{borderRadius:"4px",paddingRight:"0px",backgroundColor:"transparent"}},checkbox:{style:{maxHeight:"28px",maxWidth:"28px"}},headRow:{style:{background:`${I.variant["neutral-5"]}`,borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px headRowsolid ${I.variant["neutral-5"]}`,borderTop:`1px solid ${I.variant["neutral-5"]}`,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",paddingLeft:"56px",borderBottom:"none",minHeight:"44px",maxHeight:"44px"}},headCells:{style:{fontSize:"14px",fontWeight:"600","&:first-of-type":{paddingLeft:"0px !important"}}},rows:{style:{background:`${I.variant.white}`,"&:not(:last-of-type)":{borderBottomColor:"none"},"&:last-of-type":{borderBottomLeftRadius:"4px",borderBottomRightRadius:"4px"},borderLeft:`1px solid ${I.variant["neutral-5"]}`,borderRight:`1px solid ${I.variant["neutral-5"]}`,borderBottom:`1px solid ${I.variant["neutral-5"]}`},highlightOnHoverStyle:{backgroundColor:`${I.variant["neutral-5"]}`}}},header:{display:"flex","justify-content":"space-between","align-items":"center",position:"fixed","z-index":"1000",top:"0",right:"0",left:"0","min-height":"56px","margin-left":"48px","font-size":"16px","background-color":`${I.additional.white}`,"border-bottom":`0.5px solid ${I.variant["neutral-3"]}`},content:{"background-color":"#eef1f7",width:"100%","min-height":"100%","padding-top":"53px","box-sizing":"border-box",display:"flex","flex-direction":"column","margin-left":"70px"},"radio-outer-circle":{width:"20px",height:"20px","min-width":"20px","min-height":"20px","border-radius":"50%",display:"flex","justify-content":"center","align-items":"center"},"radio-inner-circle":{display:"flex","align-self":"center",margin:"0","border-radius":"50%"},"radio-label":{display:"block","margin-bottom":"8px","padding-bottom":0,color:`${I.variant["neutral-2"]}`},"option-text":{color:"#A9B1B8","font-size":"16px"},sidebarContainer:{"min-height":"100%",overflow:"hidden","background-color":"#2e56f4",position:"fixed",color:"white",width:"48px",transition:"width ease 400ms"},"checkBox-outer":{border:`2px solid ${I.additional.border}`,width:"20px",height:"20px","border-radius":"3px",cursor:"pointer","background-color":`${I.additional.white}`},"checkBox-inner":{"background-repeat":"no-repeat","background-position":"center",width:"20px",height:"20px",color:`${I.additional.white}`,cursor:"pointer","text-align":"center","border-radius":"3px"},"check-label":{display:"block","margin-bottom":"8px","padding-bottom":"0px",color:`${I.variant["neutral-2"]}`},"toggle-switch-wrapper":{display:"inline-flex","align-items":"center",width:"fit-content"},"dropzone-parent":{height:"86px","padding-left":"8px","padding-right":"8px",display:"flex","justify-content":"center","align-items":"center","font-size":"16px","border-radius":"5.5px",color:` ${I.textColor}`},"dropzone-file-div":{width:"inherit",height:"38px",display:"flex","justify-content":"center","align-items":"center","font-size":"14px",color:`${I.textColor}`,"background-color":`${I.additional.white}`,"box-shadow":"0px 5px 15px rgba(33, 55, 71, 0.096946)","border-radius":"5.5px","margin-top":"5px"},"dropzone-text-div":{display:"flex","justify-content":"center","margin-left":"14px",color:`${I.textColor}`,"background-color":"transparent"},"dropzone-file-name":{"margin-left":"5px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",padding:"2px","font-size":"14px",color:"#494949"},"signature-parent-div":{"border-radius":"5.5px","align-content":"flex-start","justify-content":"center",width:"inherit","max-width":"532px",height:"86px",display:"block","flex-flow":"column wrap","font-size":"17px",color:`${I.textColor}`,"background-color":`${I.additional.white}`},"signature-wrapper-div":{display:"flex",flex:"auto","justify-content":"center","align-items":"center","font-size":"17px",height:"inherit",color:`${I.textColor}`,"background-color":"transparent"},"signature-input-text":{border:"0","text-align":"center",display:"block",height:"48px",width:"calc(100% - 54px)!important","background-color":`${I.additional.white}`,"font-family":"Beauty","background-clip":"padding-box",color:"#444444","font-style":"normal","font-weight":"normal","font-size":"47px","padding-left":"10px"},"modal-background":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.6)","z-index":"2000"},"modal-wrapper":{position:"fixed",display:"flex","align-items":"flex-end","justify-content":"center","flex-direction":"column",background:"white",width:"fit-content",height:"fit-content",top:"50%",left:"50%",transform:"translate(-50%, -50%)","border-radius":"5px"},"modal-close-button":{cursor:"pointer",width:"fit-content",height:"fit-content",padding:"0","padding-right":"5px","padding-top":"5px",color:`${I.textColor}`},footer:{display:"flex","margin-top":"auto",width:"100%"},drawer:{"min-height":"100%",overflow:"hidden",position:"fixed",width:"360px",transition:"transform ease 400ms",display:"flex","flex-direction":"column","background-color":"white","box-sizing":"border-box","box-shadow":"-20px 5px 37px rgba(56, 66, 100, 0.0880136)",top:"56px",right:"0px","z-index":"1001"},"drawer-close":{transform:"translateX(360px)"},"drawer-open":{transform:"translateX(0px)"},"tooltip-container":{"background-color":`${I.additional.white}`,"border-radius":"3.6px",border:`1px solid ${I.additional.white}`,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"tooltip-arrow":{height:"19px",position:"absolute",width:"29px","pointer-events":"none"},"tooltip-arrow-before":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",width:"0"},"tooltip-arrow-after":{"border-style":"solid",content:"",display:"block",height:"0",margin:"auto",position:"absolute",width:"0"},"tp-cont-bottom-arrow-before":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px",position:"absolute",top:"-1px"},"tp-cont-bottom-arrow-after":{"border-color":`transparent transparent ${I.additional.white} transparent`,"border-width":"0 15px 19px 15px"},"tp-cont-top-arrow-before":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px",position:"absolute",top:"1px"},"tp-cont-top-arrow-after":{"border-color":`${I.additional.white} transparent transparent transparent`,"border-width":"19px 15px 0 15px"},"tp-cont-right-arrow-before":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0"},"tp-cont-right-arrow-after":{"border-color":`transparent ${I.additional.white} transparent transparent`,"border-width":"15px 19px 15px 0",left:"6px",top:"0"},"tp-cont-left-arrow-before":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px"},"tp-cont-left-arrow-after":{"border-color":`transparent transparent transparent ${I.additional.white} `,"border-width":"15px 0 15px 19px",left:"3px",top:"0"},"tp-cont-bottom-arrow":{left:"0","margin-top":"-19px",top:"0"},"tp-cont-top-arrow":{bottom:"0",left:"0","margin-bottom":"-19px"},"tp-cont-right-arrow":{left:"0","margin-left":"-24px"},"tp-cont-left-arrow":{"margin-right":"-24px",right:"0"},overlay:{"background-color":`${I.additional.white} `,"border-radius":"3.6px",border:`1px solid ${I.additional.white} `,"box-shadow":"0px 5px 33px rgba(56, 66, 100, 0.482627)",color:"#000",display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"simple-overlay":{"background-color":`${I.variant["neutral-1"]} `,"border-radius":"6px",border:`1px solid ${I.variant["neutral-1"]} `,color:`${I.additional.white} `,display:"flex","flex-direction":"column",padding:"0",transition:"opacity 0.3s","z-index":"9999"},"sidebar-container":{"background-color":"#2e56f4",position:"fixed",color:"white",display:"flex","flex-direction":"column","z-index":"999999"},"sidebar-container-open":{width:"256px"},"sidebar-container-close":{width:"48px"},"sidebar-container-mobile-open":{width:"256px","z-index":"9999999"},"sidebar-container-mobile-close":{width:"0px","z-index":"1001"},"sidebar-pusher":{"min-height":"100%",overflow:"hidden","background-color":"transparent",position:"fixed",transition:"width ease 400ms"},"sidebar-pusher-open":{width:"240px"},"sidebar-pusher-close":{width:"70px"},"sidebar-pusher-mobile":{width:"0px"},"modalComp-custom-style":{content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",zIndex:"999"}},"modalComp-modal-close":{position:"absolute",top:"15px",right:"10px",outline:"none",border:"none",background:"transparent",cursor:"pointer"},"modalComp-modal-body":{"margin-top":"20px","margin-bottom":"15px"},"modalComp-modal-footer":{"margin-top":"30px","margin-bottom":"15px",padding:"1rem 3rem 0rem 3rem","&:before":{content:"",position:"fixed",display:"inline-block",left:0,right:0,"margin-top":"-0.9rem","z-index":-1},"selectComp-label-wrapper":{paddingBottom:"10px",display:"flex",width:"25vw"}},"popOver-Content":{padding:"16px",color:"white",width:"226px",borderRadius:"3.6px"},"popOver-header":{marginBottom:"8px",fontWeight:"600"},"popOver-body":{marginBottom:"11.5px"},ColorWrapper:{borderRadius:"4.87px",padding:"8px 21px",display:"flex"},"input-color":{borderRadius:"4px !important",width:"24px !important",height:"24px !important",cursor:"pointer"},toastWrapper:{backgroundColor:"#ffffff",maxWidth:"416px",borderRadius:"6px 6px 0px 0px",paddingTop:"16px",zIndex:"2000"},messageWrapper:{paddingLeft:"16px",borderLeft:"1px solid #E5E7F0",marginLeft:"16px",marginRight:"16px",fontStyle:"normal",fontWeight:"400",fontSize:"14px",lineHeight:"20px"}},W=(e,t)=>{if(e){let l={};if(e[t]){for(const a in e[t])l[a]=e[t][a],delete e.common[a];for(const t in e.common)l[t]=e.common[t]}return l}};function R(e,t){var l=parseInt(e.slice(1,3),16),a=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return t?"rgba("+l+", "+a+", "+o+", "+t+")":"rgb("+l+", "+a+", "+o+")"}R("#FF0000",.5);const T=(e,t)=>{if(e.includes("#")){e=e.replace("#","");const[t,l,a]=[e[0]+e[1],e[2]+e[3],e[4]+e[5]];e=`${parseInt(t,16)}, ${parseInt(l,16)}, ${parseInt(a,16)}`}return`#${e.split(",").map((e=>parseInt(e.trim()))).map((e=>Math.round(e*(1-t)))).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}`},Z=h.default.div`
|
|
2
2
|
color: ${({activeTheme:e})=>e.additional["text-color"]};
|
|
3
3
|
padding-top: 24px;
|
|
4
4
|
padding-bottom: 24px;
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
|
|
146
146
|
// custom styles
|
|
147
147
|
${({customWrapperStyles:e})=>e}
|
|
148
|
-
`,$=({customStylesAccordionContainer:e,customStylesAccordionToggle:a,customStylesAccordionContent:o,toggleIconAnimation:r,icon:i,content:c,contentToggle:n,toggleState:d,contentIsOpen:s,id:p,customWrapperStyles:u,setContentIsOpen:f,showIconInfo:m,...b})=>{const h=t.useRef(null),C=l.useTheme()||I,[x
|
|
148
|
+
`,$=({customStylesAccordionContainer:e,customStylesAccordionToggle:a,customStylesAccordionContent:o,toggleIconAnimation:r,icon:i,content:c,contentToggle:n,toggleState:d,contentIsOpen:s,id:p,customWrapperStyles:u,setContentIsOpen:f,showIconInfo:m,...b})=>{const h=t.useRef(null),C=l.useTheme()||I,[y,x]=t.useState(!1);return t.useEffect((()=>{x(s)}),[s]),g.default.createElement(F,E({customStyles:e,type:"accordionContainer"},b,{header:g.default.createElement(F,E({customStyles:{borderRadius:y?"5px 5px 0 0":"5px",...a},type:"accordionToggle"},b,{onClick:e=>{const t=e.target.closest('[data-accordion="contentClickFalse"]'),l=e.target.classList.contains(".contentClickFalse");if(t||l)return!0;f(!y),x(!y)},header:n,content:g.default.createElement(K,{theme:C,customWrapperStyles:u},m&&g.default.createElement("span",null,y?"Click to hide":"Click to open"),g.default.createElement("div",{style:r&&y?{transform:"rotate(180deg)",transition:"transform ease 95ms",background:"transparent"}:{transform:"rotate(0deg)",transition:"transform ease 95ms",background:"transparent"}},i||g.default.createElement(Q,{icon:"chevron-down",size:11,transform:"translate(0px,-1px)",color:"#A9B1B8"})))})),content:g.default.createElement(q,E({customStyles:o,type:"accordionContent",ref:h},b,{style:y?{height:"auto"}:{height:"0px",border:"none"},id:p,content:y?c:null}))}))};$.propTypes={customStylesAccordionContainer:b.default.object,customStylesAccordionToggle:b.default.object,customStylesAccordionContent:b.default.object,toggleIconAnimation:b.default.bool,icon:b.default.any,content:b.default.any,contentToggle:b.default.any,toggleState:b.default.func,id:b.default.string,customWrapperStyles:b.default.object,showIconInfo:b.default.bool},$.defaultProps={contentToggle:"Toggle",content:"Content",toggleIconAnimation:!0,showIconInfo:!0,toggleState:()=>{},id:"",customStylesAccordionContainer:{marginBottom:"10px",padding:0,boxShadow:"none"},customStylesAccordionToggle:{background:"#F0F3F8",cursor:"pointer",border:`0.5px solid ${I.additional.border}`,color:`${I.variant["primary-2"]}`,lineHeight:"17px",fontSize:"14px",padding:"10px 17px",display:"flex",alignItems:"center",justifyContent:"space-between",boxShadow:"none",width:"auto"},customStylesAccordionContent:{borderRadius:"0 0 5px 5px",border:`0.5px solid ${I.variant.border}`,borderTop:"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:"0",width:"auto"}};const _=({customStylesAccordionContainer:e,customStylesAccordionToggle:a,customStylesAccordionContent:o,toggleIconAnimation:r,content:i,contentToggle:c,isSelected:n,isAccordionOpen:d,id:s,customSelectCardColor:p,showIcon:u,underMaintenance:f})=>{const[m,b]=t.useState(!1),[h,C]=t.useState({}),[y,x]=t.useState({}),v=l.useTheme()||I;return t.useEffect((()=>{n?(C((e=>({...e,backgroundColor:p||v.variant["primary-1"]}))),x((e=>({...e,backgroundColor:p||v.variant["primary-1"]})))):(C({}),x({}))}),[n]),t.useEffect((()=>{b(!(!d||f))}),[d]),g.default.createElement(F,{customStyles:{...e,...h},header:g.default.createElement(F,{customStyles:{...a,...y},onClick:()=>{!f&&b(!m)},header:u?g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},c,g.default.createElement(Q,{icon:"chevron-down",color:"white",size:10,customstyles:r&&m?{transform:"rotate(180deg)",transition:"transform ease 200ms",background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"}:{transform:"rotate(0deg)",background:"transparent",display:"flex",justifyContent:"center",alignItems:"center"}})):c}),content:g.default.createElement(F,{customStyles:o,style:m?{height:"auto"}:{height:"0px",borderBottom:"none"},id:s,content:m?i:null})})};_.propTypes={customStylesAccordionContainer:b.default.object,customStylesAccordionToggle:b.default.object,customStylesAccordionContent:b.default.object,toggleIconAnimation:b.default.bool,content:b.default.any,contentToggle:b.default.any,id:b.default.string,showIcon:b.default.bool,underMaintenance:b.default.bool},_.defaultProps={contentToggle:"Toggle",content:"Content",id:"",showIcon:!1,underMaintenance:!1};const ee=h.default.div`
|
|
149
149
|
display: ${({alertIsOpen:e})=>e?"block":"none"};
|
|
150
150
|
background-color: ${({theme:e})=>R(e.variant["graph-4"],.05)};
|
|
151
151
|
color: ${({theme:e})=>e.variant["primary-2"]};
|
|
@@ -468,7 +468,7 @@ ${({customStyles:e})=>e}
|
|
|
468
468
|
|
|
469
469
|
// custom styles
|
|
470
470
|
${({btnStyle:e})=>e}
|
|
471
|
-
`,
|
|
471
|
+
`,ye=({btnStyle:e,isLoading:a,block:o,size:r,style:i,disabled:c,type:n,theme:d,id:s,disableStyle:p,...u})=>{const f=l.useTheme()||I,[m,b]=t.useState(e.loaderColor?e.loaderColor:f.variant["primary-1"]);return g.default.createElement(Ce,E({id:s,block:o,defaultStyle:"button",style:i,size:r,disabled:c,type:n,btnStyle:e,isLoading:a,theme:d,disableStyle:p},u),a&&g.default.createElement("div",{style:{paddingRight:"10px",display:"flex",justifyContent:"center",alignItems:"center"}},g.default.createElement(ce,{theme:d,customStyles:{"background-color":m},size:16})," "),u.children," ")};ye.propTypes={disabled:b.default.bool,size:b.default.oneOf(["sm","md","lg"]),block:b.default.bool,onClick:b.default.func,theme:b.default.object,type:b.default.string,btnStyle:b.default.object,id:b.default.string,disableStyle:b.default.object},Ce.defaultProps={theme:I},ye.defaultProps={theme:I,block:!1,disabled:!1,size:"md",onClick:void 0,btnStyle:{},id:"",disableStyle:{}};const xe=h.default.button`
|
|
472
472
|
background-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
473
473
|
color: ${({theme:e})=>e.additional.white};
|
|
474
474
|
padding: 3px 14px;
|
|
@@ -498,7 +498,7 @@ ${({customStyles:e})=>e}
|
|
|
498
498
|
|
|
499
499
|
// custom styles
|
|
500
500
|
${({btnStyle:e})=>e}
|
|
501
|
-
`,ve=({block:e,style:t,disabled:a,type:o,btnStyle:r,id:i,...c})=>{const n=l.useTheme()||I;return g.default.createElement(
|
|
501
|
+
`,ve=({block:e,style:t,disabled:a,type:o,btnStyle:r,id:i,...c})=>{const n=l.useTheme()||I;return g.default.createElement(xe,E({id:i,block:e,type:o,style:t,disabled:a,btnStyle:r,theme:n},c),c.children)};ve.propTypes={disabled:b.default.bool,block:b.default.bool,type:b.default.string,btnStyle:b.default.object,id:b.default.string},ve.defaultProps={block:!1,disabled:!1,onClick:void 0,btnStyle:{},id:""};const we=h.default.div`
|
|
502
502
|
width: auto;
|
|
503
503
|
height: 40px;
|
|
504
504
|
background-color: ${({backgroundColor:e,theme:t})=>e||t.variant["primary-1"]};
|
|
@@ -517,7 +517,7 @@ ${({customStyles:e})=>e}
|
|
|
517
517
|
transform: scale(1.5);
|
|
518
518
|
} */
|
|
519
519
|
${({customShapeStyle:e})=>e}
|
|
520
|
-
`,Ae=({data:e,onClick:a,clickable:o,breakingPoint:r,breakingNumber:i,customShapeStyle:c,customShapeLabelStyle:n,customShapeValueStyle:d})=>{const s=l.useTheme()||I,[p,u]=t.useState(0),[f,m]=t.useState({next:!0,prev:!1}),[b,h]=t.useState(100),C=e.length,
|
|
520
|
+
`,Ae=({data:e,onClick:a,clickable:o,breakingPoint:r,breakingNumber:i,customShapeStyle:c,customShapeLabelStyle:n,customShapeValueStyle:d})=>{const s=l.useTheme()||I,[p,u]=t.useState(0),[f,m]=t.useState({next:!0,prev:!1}),[b,h]=t.useState(100),C=e.length,y=()=>{m(p-1==0?{next:!0,prev:!1}:{next:!0,prev:!0}),u((e=>e-1))},x=()=>{u((e=>e+1));let e=Math.ceil(100/b);m(C-e===p?{next:!1,prev:!0}:{next:!0,prev:!0})},{width:v}=ae();t.useEffect((()=>{w()}),[v]);const w=()=>{let e=0;switch(!0){case 1===C:e=100;break;case v<=576:e=85;break;case v<=r:e=50;break;case C<=i:e=100/C;break;case C>i&&v>r&&v<=900:e=Math.ceil(v/22);break;case C>i&&v>900&&v<=1020:e=Math.ceil(v/24);break;case C>i&&v>1020&&v<=1200:e=Math.ceil(v/27);break;case C>i&&v>1200&&v<=1440:e=Math.ceil(v/40);break;case C>i&&v>1440:let t=Math.ceil(v/85);e=t<=20?t:20;break;default:e=100}h(e)};return g.default.createElement(t.Fragment,null," ",C>0&&g.default.createElement(t.Fragment,null," ",g.default.createElement("div",{style:{display:C<=i||v<=r?"block":"flex",width:"100%",alignItems:"center",gap:"4px"}}," ",C>i&&v>r&&g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!f.prev,onClick:y},g.default.createElement(Q,{icon:"chevron-left",color:s.variant[f.prev?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),g.default.createElement("div",{style:{display:"flex",alignItems:"center",overflow:"hidden",width:"100%",justifyContent:"space-between"}},e.map(((t,l)=>g.default.createElement("div",{key:l,style:{scrollSnapAlign:"center",minWidth:`${b}%`,transform:`translateX(-${100*p}%)`,transition:"transform 0.5s ease-in-out"}},g.default.createElement("div",{style:{width:"100%",height:"100%"}},g.default.createElement(we,{customShapeStyle:c,identity:0===l?"first-arrow":e.length-1-l==0?"last-arrow":"others",backgroundColor:t?.backgroundColor,theme:s,clickable:o,onClick:()=>o?a(t):null},g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"16px",minWidth:"100%",height:"100%"},title:`value: ${t.value}, status: ${t.label}`},g.default.createElement("span",{style:{fontSize:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?.color?t.color:s.variant.white,...d}},t.value),g.default.createElement("span",{style:{fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:t?.color?t.color:s.variant.white,...n}},t.label))))," ")))," ")," ",C>i&&v>r&&g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:0,border:"none"},disabled:!f.next,onClick:x},g.default.createElement(Q,{icon:"chevron-right",color:s.variant[f.next?"primary-2":"neutral-3"],size:22,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}}))),v<=r&&e.length>1&&g.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",margin:"8px 0",gap:"16px"}}," ",g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+s.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!f.prev,onClick:y},g.default.createElement(Q,{icon:"chevron-left",color:s.variant[f.prev?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})),g.default.createElement(ge,{btnStyle:{backgroundColor:"transparent",padding:"6px",border:".5px solid "+s.variant["neutral-4"],boxShadow:"-20px 5px 37px rgba(56, 66, 100, 0.0880136)"},disabled:!f.next,onClick:x},g.default.createElement(Q,{icon:"chevron-right",color:s.variant[f.next?"primary-2":"neutral-3"],size:10,customstyles:{display:"flex",justifyContent:"center",alignItems:"center"}})))))};Ae.propTypes={data:b.default.array,onClick:b.default.func,clickable:b.default.bool,breakingPoint:b.default.number,breakingNumber:b.default.number,customShapeStyle:b.default.object,customShapeLabelStyle:b.default.object,customShapeValueStyle:b.default.object},Ae.defaultProps={data:[],onClick:()=>null,clickable:!1,breakingPoint:768,breakingNumber:5,customShapeStyle:{},customShapeLabelStyle:{},customShapeValueStyle:{}};const Se=h.default.img`
|
|
521
521
|
//Set the styles from the default styles object
|
|
522
522
|
${({inBuiltCss:e,type:t,size:l,customStyles:a})=>{if(e){let o={};if(e[t]){for(const t in e.common)o[t]=e.common[t];for(const l in e[t])o[l]=e[t][l],delete e.common[l];for(const a in e[`${t}${l}`])o[a]=e[`${t}${l}`][a],delete e.common[a]}return{...o,...a}}}}
|
|
523
523
|
`,ke=({customStyles:e,type:l,size:a,alt:o,src:r,loadingPlaceholder:i,errorPlaceholder:c,...n})=>{const[d,s]=t.useState("loading");return g.default.createElement(g.default.Fragment,null,"loading"===d&&i,"error"===d&&c,g.default.createElement(Se,E({},n,{inBuiltCss:P,customStyles:e,type:l,alt:o,src:r,size:a,onLoad:()=>s("loaded"),onError:()=>s("error"),style:{display:"loaded"===d?"block":"none"}})))};ke.propTypes={customStyles:b.default.object,type:b.default.string,size:b.default.oneOf(["SM","MD","LG"]),alt:b.default.string,src:b.default.string},ke.defaultProps={customStyles:{},type:"image",alt:"image alternative",src:null};const Ee=h.default.span`
|
|
@@ -570,7 +570,7 @@ ${({inBuiltCss:e,type:t,size:l,customStyles:a})=>{if(e){let o={};if(e[t]){for(co
|
|
|
570
570
|
|
|
571
571
|
// custom styles
|
|
572
572
|
${({notificationCircleStyles:e})=>e}
|
|
573
|
-
`,Pe=({customStylesContainer:e,customStylesImage:a,customStylesCircle:o,customStylesName:r,customStylesNameHover:i,size:c,toggleName:n,user:d,border:s,isSelected:p,selectedStyle:u,notSelectedStyle:f,notificationCount:m,notificationCircleStyles:b,icon:h,underMaintenance:C})=>{const
|
|
573
|
+
`,Pe=({customStylesContainer:e,customStylesImage:a,customStylesCircle:o,customStylesName:r,customStylesNameHover:i,size:c,toggleName:n,user:d,border:s,isSelected:p,selectedStyle:u,notSelectedStyle:f,notificationCount:m,notificationCircleStyles:b,icon:h,underMaintenance:C})=>{const y=l.useTheme()||I,[x,v]=t.useState("loading");return g.default.createElement(He,{border:s,inBuiltCss:P,customStyles:e,type:"avatarContainer"},g.default.createElement(Be,{theme:y,selectedStyle:u,notSelectedStyle:f,inBuiltCss:P,type:"avatarCircle",customStyles:o,size:c,style:{visibility:"loaded"!==x?"visible":"hidden"},isSelected:p},h||(d?.url?g.default.createElement(ke,{inBuiltCss:P,customStyles:{minWidth:"36px",minHeight:"36px",...a},type:"imageAvatar",size:c,alt:"service-layer",src:d.url,loadingPlaceholder:g.default.createElement(se,{customStyles:{border:`3px solid ${R(y.variant.white,.5)}`,borderTop:`3px solid ${y.variant.white}`},size:8}),errorPlaceholder:d.appNameShortForm?d.appNameShortForm:d?.userName&&d?.userName.split(" ").length>=2?d?.userName.split(" ")[0].charAt(0).toUpperCase()+d?.userName.split(" ")[1].charAt(0).toUpperCase():d?.userName&&1===d?.userName.split(" ").length&&d?.userName.split(" ")[0].charAt(0).toUpperCase()}):d.appNameShortForm?d.appNameShortForm:d?.userName&&d?.userName.split(" ").length>=2?d?.userName.split(" ")[0].charAt(0).toUpperCase()+d?.userName.split(" ")[1].charAt(0).toUpperCase():d?.userName&&1===d?.userName.split(" ").length&&d?.userName.split(" ")[0].charAt(0).toUpperCase())),m>0&&g.default.createElement(Ie,{notificationCircleStyles:b},m>9?"9+":m)," ",n&&g.default.createElement(ze,{theme:y,inBuiltCss:P,type:"avatarName",customStyles:r,customStylesHover:i,size:c,underMaintenance:C},d.userName," "))};Pe.propTypes={customStylesCircle:b.default.object,customStylesName:b.default.object,customStylesContainer:b.default.object,customStylesImage:b.default.object,toggleName:b.default.bool,size:b.default.oneOf(["SM","MD","LG"]),user:b.default.object,customStylesNameHover:b.default.object,notificationCircleStyles:b.default.object,notificationCount:b.default.number,underMaintenance:b.default.bool},Pe.defaultProps={block:!1,size:"MD",toggleName:!1,user:null,customStylesContainer:null,customStylesImage:null,customStylesCircle:null,customStylesName:null,notificationCircleStyles:{},notificationCount:0,underMaintenance:!1};const We=h.default.div`
|
|
574
574
|
color: ${({theme:e})=>e.additional["text-color"]};
|
|
575
575
|
display: flex;
|
|
576
576
|
background-color: ${({backgroundColor:e,theme:t})=>e||t.variant["insight-purple"]};
|
|
@@ -661,7 +661,7 @@ ${({inBuiltCss:e,defaultTooltipBodyStyle:t})=>W(e,t)}
|
|
|
661
661
|
${({inBuiltCss:e,defaultTooltipTriggerStyle:t})=>W(e,t)}
|
|
662
662
|
// custom styles
|
|
663
663
|
${({customTriggerStyle:e})=>e}
|
|
664
|
-
`,Xe=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:p,customStylesTPAtopBefore:u,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:C,customStylesTPAleftBefore:
|
|
664
|
+
`,Xe=({inBuiltCss:e,contentTrigger:t,contentTooltip:a,popperOptionsP:r,settings:i,customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:p,customStylesTPAtopBefore:u,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:C,customStylesTPAleftBefore:y,customStylesTPAleftAfter:x,customStylesTPArrow:v,customStylesTPAbefore:w,customStylesTPAafter:A,customTooltipContentStyle:S,customContentStyle:k,customHeaderStyle:V,customBodyStyle:M,customTriggerStyle:L,headerTooltip:H,footerTooltip:B,...z})=>{const W=l.useTheme()||I,R={modifiers:[{name:"offset",options:{offset:[0,23]}}],strategy:"absolute",...r},{getArrowProps:T,getTooltipProps:Z,setTooltipRef:F,setTriggerRef:j,visible:q}=o.usePopperTooltip({interactive:!0,...i},R);return g.default.createElement(g.default.Fragment,null,g.default.createElement(Ge,{ref:j,inBuiltCss:P,customTriggerStyle:L,style:{width:"fit-content",height:"fit-content",display:"inline-block"}},t),q&&g.default.createElement(Ze,E({inBuiltCss:P,theme:W,ref:F},Z({className:"tooltip-container"}),{customStylesTPContainer:c,customStylesTPAbottom:n,customStylesTPAbottomBefore:d,customStylesTPAbottomAfter:s,customStylesTPAtop:p,customStylesTPAtopBefore:u,customStylesTPAtopAfter:f,customStylesTPAright:m,customStylesTPArightBefore:b,customStylesTPArightAfter:h,customStylesTPAleft:C,customStylesTPAleftBefore:y,customStylesTPAleftAfter:x}),g.default.createElement(Fe,E({inBuiltCss:P},T({className:"tooltip-arrow"}),{customStylesTPArrow:v,customStylesTPAbefore:w,customStylesTPAafter:A})),g.default.createElement(je,E({defaultTooltipContentStyle:"popOver-Content",theme:W,inBuiltCss:P},z,{customContentStyle:k}),g.default.createElement(qe,E({defaultTooltipHeaderStyle:"popOver-header",theme:W,inBuiltCss:P},z,{customHeaderStyle:V}),H),g.default.createElement(De,E({defaultTooltipBodyStyle:"popOver-body",theme:W,inBuiltCss:P},z,{customBodyStyle:M}),a),g.default.createElement(Oe,null,B))))};Xe.propTypes={contentTrigger:b.default.any,headerTooltip:b.default.any,contentTooltip:b.default.any,footerTooltip:b.default.any,popperOptionsP:b.default.object,settings:b.default.object,customContentStyle:b.default.object,customHeaderStyle:b.default.object,customBodyStyle:b.default.object,customStylesTPContainer:b.default.object,customStylesTPAbottom:b.default.object,customStylesTPAbottomBefore:b.default.object,customStylesTPAbottomAfter:b.default.object,customStylesTPAtop:b.default.object,customStylesTPAtopBefore:b.default.object,customStylesTPAtopAfter:b.default.object,customStylesTPAright:b.default.object,customStylesTPArightBefore:b.default.object,customStylesTPArightAfter:b.default.object,customStylesTPAleft:b.default.object,customStylesTPAleftBefore:b.default.object,customStylesTPAleftAfter:b.default.object,customStylesTPArrow:b.default.object,customStylesTPAbefore:b.default.object,customStylesTPAafter:b.default.object,customTriggerStyle:b.default.object},Xe.defaultProps={contentTrigger:g.default.createElement("div",null,"Trigger"),headerTooltip:"",contentTooltip:"",footerTooltip:g.default.createElement(ye,{size:"sm"},"Next"),customStylesTPContainer:{border:"none"},customTriggerStyle:{}};const Je=h.default.div`
|
|
665
665
|
background: transparent;
|
|
666
666
|
color: ${({theme:e,variant:t})=>e.variant[t]};
|
|
667
667
|
font-size: ${({isPrimary:e})=>e?"16px":"14px"};
|
|
@@ -735,7 +735,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
735
735
|
display: flex;
|
|
736
736
|
margin-bottom: 15px;
|
|
737
737
|
position: relative;
|
|
738
|
-
`,Qe=({wrap:e,block:a,style:o,variant:r,variantSeparator:i,appLogo:c,separator:n,items:d,onClick:s,isPrimary:p,collapse:u,folderIcon:f,folderIconProps:m,iconMargin:b,...h})=>{const C=l.useTheme()||I,
|
|
738
|
+
`,Qe=({wrap:e,block:a,style:o,variant:r,variantSeparator:i,appLogo:c,separator:n,items:d,onClick:s,isPrimary:p,collapse:u,folderIcon:f,folderIconProps:m,iconMargin:b,...h})=>{const C=l.useTheme()||I,y=t.useRef(null),[x,v]=t.useState(void 0),w=()=>{v(y?.current?.scrollWidth<y?.current?.offsetWidth)};t.useEffect((()=>{w()}),[d]),t.useEffect((()=>{if(!e)return window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)}),[]);const A=d.map(((e,t)=>g.default.createElement(Ue,{key:t},0!==t||c?g.default.createElement("div",{className:"breadcrumb-icon-separator"},n):null,g.default.createElement(Ye,{id:e.id,theme:C,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label))));let S,k;ae().width<500?(S=2,k=d.slice(-1)):(S=4,k=d.slice(-3));const V=k.map(((e,t)=>g.default.createElement(Ue,{key:d.length-3},g.default.createElement("div",{className:"breadcrumb-icon-separator"},n),g.default.createElement(Ye,{id:e.id,theme:C,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),M=d.slice(1,d.length-(S-1)).map(((e,t)=>g.default.createElement(Ne,{key:t},f?g.default.createElement("div",{style:{marginRight:"10px",marginTop:"2.3px"}},g.default.createElement(Q,E({icon:"folder-icon",size:17,transform:"translate(0px,-0.5px)"},m))):null,g.default.createElement(Ye,{id:e.id,theme:C,onClick:()=>{e.href&&s(e.href)},variant:r,href:e.href,"data-title":e.label},e.label)))),L=d?1==u?d.length<=S?A:g.default.createElement(g.default.Fragment,null,g.default.createElement(Ue,{key:0},g.default.createElement("div",{className:"breadcrumb-icon-separator"},n),g.default.createElement(Ye,{id:d[0].id,theme:C,onClick:()=>{d[0].href&&s(d[0].href)},variant:r,href:d[0].href,"data-title":d[0].label},d[0].label)),g.default.createElement(Ue,null,g.default.createElement("div",{className:"breadcrumb-icon-separator",style:{marginTop:"-3px"}},n),g.default.createElement(Xe,{contentTrigger:g.default.createElement(Q,{icon:"ellipses-horizontal",size:12,color:"#6B747F",style:{padding:"0 4px",paddingBottom:"6px",marginTop:"-5.5px"}}),customTriggerStyle:{cursor:"pointer",background:"#E2E6F5",borderRadius:"3px"},headerTooltip:"",customHeaderStyle:{marginBottom:"0px"},contentTooltip:g.default.createElement(g.default.Fragment,null,M),footerTooltip:"",popperOptionsP:{placement:"bottom"},customContentStyle:{width:"210px",backgroundColor:"white",color:"#6B747F",boxShadow:"0px 6px 40px rgba(56, 66, 100, 0.482627)",display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"16px",gap:"8px",position:"absolute",borderRadius:"3.6px",paddingBottom:"0px",marginTop:"-8.8px",marginLeft:"-6px"},customBodyStyle:{marginBottom:"0px"},customStylesTPArrow:{display:"none"},settings:{closeOnOutsideClick:!0,trigger:"click"}})),V):A:null;return g.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},g.default.createElement("div",{style:{display:"flex",position:"absolute"}},g.default.createElement(Je,E({theme:C,isWrap:e,ref:e?null:y,isBreadcrumbVisible:x,block:a,variant:r,variantSeparator:i,style:o,isPrimary:p,iconMargin:b},h),c&&g.default.createElement("div",{className:"breadcrumb-icon"},c),L)))};Qe.propTypes={variant:b.default.string,variantSeparator:b.default.string,onClick:b.default.func,appLogo:b.default.any,separator:b.default.any,items:b.default.array,block:b.default.bool,wrap:b.default.bool,isPrimary:b.default.bool,collapse:b.default.bool,folderIcon:b.default.bool,iconMargin:b.default.string},Qe.defaultProps={variant:"neutral-2",variantSeparator:"neutral-3",block:!1,onClick:void 0,wrap:!1,isPrimary:!0,collapse:!0,folderIcon:!0};const Ke=h.default.label`
|
|
739
739
|
//Set the styles from the default styles object
|
|
740
740
|
${({inBuiltCss:e,type:t})=>W(e,t)}
|
|
741
741
|
|
|
@@ -791,7 +791,7 @@ ${({customTriggerStyle:e})=>e}
|
|
|
791
791
|
`,ot=h.default.span`
|
|
792
792
|
color: ${({theme:e})=>e.variant.error};
|
|
793
793
|
${({errorTextStyle:e})=>e};
|
|
794
|
-
`,rt=({listChips:e,setListChips:a,currentChip:o,setCurrentChip:r,chipListString:i,placeholder:c,errorMsg:n,handleBlurProps:d,label:s,labelCusTomStyles:p,containerStyle:u,inputContainerStyle:f,errorTextStyle:m,disabled:b,isValid:h,handleInputKeyDownProps:C,handleInputChangeProps:
|
|
794
|
+
`,rt=({listChips:e,setListChips:a,currentChip:o,setCurrentChip:r,chipListString:i,placeholder:c,errorMsg:n,handleBlurProps:d,label:s,labelCusTomStyles:p,containerStyle:u,inputContainerStyle:f,errorTextStyle:m,disabled:b,isValid:h,handleInputKeyDownProps:C,handleInputChangeProps:y,inputStyle:x,...v})=>{const[w,A]=t.useState(i?i.split(","):e||[]),[S,k]=t.useState(o),[E,V]=t.useState(""),M=l.useTheme()||I;t.useEffect((()=>{A(i?i.split(","):e||[])}),[i,e]),t.useEffect((()=>{k(o)}),[o]);return g.default.createElement(_e,{theme:M,containerStyle:u},g.default.createElement(et,{inputContainerStyle:f},g.default.createElement($e,{text:s,customStyles:p}),w.map(((e,t)=>g.default.createElement(tt,{theme:M,key:e+`${t}`,onClick:()=>(e=>{const t=[...w];t.splice(e,1),A(t),V(""),d(t.join(","))})(t)},g.default.createElement(lt,null,e)))),g.default.createElement(at,{type:"text",placeholder:c,value:S,onKeyDown:e=>{"Enter"===e.key||","===e.key?(e.preventDefault(),h?S.trim()&&(C([...w,S.trim()].join(",")),A([...w,S.trim()]),k(""),V("")):V(n)):"Backspace"!==e.key||S||(C(w.slice(0,-1).join(",")),A(w.slice(0,-1)))},onChange:e=>{k(e.target.value),V(""),y(e.target.value)},theme:M,onBlur:()=>{if(h){let e;e=S.trim()?[...w,S.trim()]:[...w],d(e.join(",")),A(e),k("")}else h||V(n)},disabled:b,inputStyle:x})),E&&g.default.createElement(ot,{errorTextStyle:m,theme:M},E))};rt.propTypes={listChips:b.default.arrayOf(b.default.string),setListChips:b.default.func,chipListString:b.default.string,currentChip:b.default.string,setCurrentChip:b.default.func,placeholder:b.default.string,isValid:b.default.bool,errorMsg:b.default.string,label:b.default.string,labelCusTomStyles:b.default.object,containerStyle:b.default.object,inputContainerStyle:b.default.object,errorTextStyle:b.default.object,disabled:b.default.bool,handleInputKeyDownProps:b.default.func,handleInputChangeProps:b.default.func,inputStyle:b.default.object},rt.defaultProps={listChips:[],setListChips:()=>{},currentChip:"",setCurrentChip:()=>{},placeholder:"",errorMsg:"Please enter a valid email address",label:"From:",labelCusTomStyles:{},containerStyle:{},inputContainerStyle:{},errorTextStyle:{},disabled:!1,isValid:!0,inputStyle:{}};const it=h.default.div`
|
|
795
795
|
box-sizing: initial;
|
|
796
796
|
|
|
797
797
|
//Set the styles from the default styles object
|
|
@@ -846,7 +846,7 @@ opacity: ${({disabled:e,disabledOpacity:t})=>e?t:"1"};
|
|
|
846
846
|
`,st=h.default.div`
|
|
847
847
|
flex-direction: ${({inline:e})=>e?"row":"column"};
|
|
848
848
|
width: ${({inline:e})=>e?"initial":"auto"};
|
|
849
|
-
`,pt=({getCheckedArr:e,checkBoxOuterStyle:a,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:i,defaultTextColor:c,checkedTextColor:n,checkedCheckBoxColor:d,labelStyle:s,label:p,options:u,setOptions:f,wrapperStyles:m,inline:b,wrapperStyle:h,isRequired:C,iconProps:
|
|
849
|
+
`,pt=({getCheckedArr:e,checkBoxOuterStyle:a,checkBoxInnerStyle:o,optionTextStyle:r,defaultBorderColor:i,defaultTextColor:c,checkedTextColor:n,checkedCheckBoxColor:d,labelStyle:s,label:p,options:u,setOptions:f,wrapperStyles:m,inline:b,wrapperStyle:h,isRequired:C,iconProps:y,disabledOpacity:x,disableAllCheckbox:v,maximumCheckLimit:w,...A})=>{const S=l.useTheme()||I;t.useEffect((()=>{if(v){let e=[...u];e.map((e=>{e.disabled=!0})),f(e)}k(u,w),M(u)}),[]);const k=(e,t)=>{let l=[...e],a=0;for(let e of l)e.checked&&a++;if(a>t&&t>0){let e=a-t,o=l.length-1;for(;e&&o>=0;)l[o].checked&&(l[o].checked=!1,l[o].disabled=!0,e--),o--;for(let e=0;e<l.length;e++)l[e].checked||(l[e].disabled=!0);f(l)}},V=e=>{let t=0;for(let e of u)e.checked&&t++;if(e===t){let e=[...u];for(let t of e)t.checked||(t.disabled=!0);f(e)}else{let e=[...u];for(let t of e)t.checked||(t.disabled=!1);f(e)}},M=t=>{let l=t.filter((e=>!1!==e.checked));e(l)},L=Object.assign({display:"flex",flexDirection:"column",flexWrap:"wrap"},h);return g.default.createElement("div",E({style:L},A),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:s,type:"check-label",text:p},A)),C&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${S.variant.error}`}},"*")),g.default.createElement(st,E({style:{display:"flex",flexWrap:"wrap"},inline:b},A),u?.map(((e,t)=>g.default.createElement(dt,E({inline:b,id:e.id,key:`${e.name}-${t}`,onClick:()=>{!e.disabled&&((e,t,l)=>{let a=[...u];a[t].checked=!e.checked,f(a),M(a),l&&V(l)})(e,t,w)},wrapperStyles:m},A),e.checked?g.default.createElement(ct,E({theme:S,inBuiltCss:P,defaultCheckBoxInnerStyle:"checkBox-inner",checkBoxInnerStyle:{...o,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabled&&e?.disabledColor},defaultBorderColor:i,checkedCheckBoxColor:d,checked:e.checked,disabled:e.disabled,disabledOpacity:x},A),g.default.createElement(Q,E({icon:"check-icon",size:18,color:"white"},y))):g.default.createElement(it,E({inBuiltCss:P,defaultCheckBoxOuterStyle:"checkBox-outer",checkBoxOuterStyle:{...a,cursor:e?.disabled?"not-allowed ":" pointer",borderColor:e?.disabledColor},defaultBorderColor:i,theme:S,disabled:e.disabled,disabledOpacity:x},A)),g.default.createElement(nt,{theme:S,inline:b,optionTextStyle:{...r,cursor:e?.disabled?"not-allowed ":" pointer",color:e?.disabledColor},checked:e.checked,defaultTextColor:c,checkedTextColor:n,disabled:e.disabled,disabledOpacity:x},e.label))))))};pt.propTypes={wrapperStyle:b.default.object,label:b.default.string,labelStyle:b.default.object,checkBoxOuterStyle:b.default.object,checkBoxInnerStyle:b.default.object,optionTextStyle:b.default.object,defaultTextColor:b.default.string,checkedTextColor:b.default.string,defaultBorderColor:b.default.string,checkedCheckBoxColor:b.default.string,inline:b.default.bool,options:b.default.array,setOptions:b.default.func,getCheckedArr:b.default.func,isRequired:b.default.bool,wrapperStyles:b.default.object,iconProps:b.default.object,disabledOpacity:b.default.number,disableAllCheckbox:b.default.bool,maximumCheckLimit:b.default.number},pt.defaultProps={label:"",inline:!1,options:[],setOptions:()=>{},getCheckedArr:()=>{},labelStyle:{},checkBoxOuterStyle:{},checkBoxInnerStyle:{},isRequired:!0,wrapperStyles:{},iconProps:{},disabledOpacity:.5,disableAllCheckbox:!1,maximumCheckLimit:0};const ut=h.default.div`
|
|
850
850
|
border: 1px solid ${({theme:e})=>e.additional.border};
|
|
851
851
|
background-color: ${({isDisabled:e,theme:t})=>e?t.variant["neutral-5"]:t.additional.white};
|
|
852
852
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
@@ -1093,14 +1093,14 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1093
1093
|
|
|
1094
1094
|
// custom styles
|
|
1095
1095
|
${({wrapperStyle:e})=>e};
|
|
1096
|
-
`,
|
|
1096
|
+
`,yt=h.default.div`
|
|
1097
1097
|
display: flex;
|
|
1098
1098
|
align-items: flex-start;
|
|
1099
1099
|
justify-content: center;
|
|
1100
1100
|
font-size: 16px;
|
|
1101
1101
|
padding-top: 12px;
|
|
1102
1102
|
padding-bottom: 15px;
|
|
1103
|
-
`,
|
|
1103
|
+
`,xt=h.default.div`
|
|
1104
1104
|
display: flex;
|
|
1105
1105
|
justify-content: center;
|
|
1106
1106
|
margin-left: 6px;
|
|
@@ -1185,7 +1185,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1185
1185
|
|
|
1186
1186
|
// custom styles
|
|
1187
1187
|
${({customIconContainerStyle:e})=>e};
|
|
1188
|
-
`,Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],Ht=({selectedDate:e,setSelectedDate:a,disabled:o,startYear:r,endYearRange:i,format:c,customIconContainerStyle:n,placeHolder:d,value:s,timeBtnStyle:p,onClick:u,onChange:f,wrapperStyle:m,iconProps:b,labelProps:h,...C})=>{const v=l.useTheme()||I;let w=[],A=i||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+A;e++)w.push(e);const S=t.useRef(null),k=t.useRef(null),[V,M]=t.useState(!1),[L,H]=t.useState(!1),[B,z]=t.useState(!1),[P,W]=t.useState(!1),[R,T]=t.useState(e.getFullYear()),[Z,F]=t.useState(Lt[e.getMonth()]);t.useEffect((()=>{F(Lt[e.getMonth()]),T(e.getFullYear())}),[e]),t.useEffect((()=>(j(document,"click","add",q(S,(()=>M(!1)))),j(document,"click","add",q(k,(()=>H(!1)))),()=>{j(document,"click","remove",q(S,(()=>M(!1)))),j(document,"click","remove",q(k,(()=>H(!1))))})),[]);const j=(e,t,l,a,o)=>{"add"===l?e.addEventListener(t,a,o||!1):e.removeEventListener(t,a,o||!1)},q=(e,t)=>l=>{e.current&&!e.current.contains(l.target)&&t()},D={icon:"calender",color:"black",size:"16",...b};return g.default.createElement(Ct,E({disabled:o,theme:v},C,{wrapperStyle:m}),g.default.createElement($e,E({customStyles:{marginBottom:"7px",padding:0}},h)),g.default.createElement(
|
|
1188
|
+
`,Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],Ht=({selectedDate:e,setSelectedDate:a,disabled:o,startYear:r,endYearRange:i,format:c,customIconContainerStyle:n,placeHolder:d,value:s,timeBtnStyle:p,onClick:u,onChange:f,wrapperStyle:m,iconProps:b,labelProps:h,...C})=>{const v=l.useTheme()||I;let w=[],A=i||10;for(let e=r||(new Date).getFullYear();e<=(new Date).getFullYear()+A;e++)w.push(e);const S=t.useRef(null),k=t.useRef(null),[V,M]=t.useState(!1),[L,H]=t.useState(!1),[B,z]=t.useState(!1),[P,W]=t.useState(!1),[R,T]=t.useState(e.getFullYear()),[Z,F]=t.useState(Lt[e.getMonth()]);t.useEffect((()=>{F(Lt[e.getMonth()]),T(e.getFullYear())}),[e]),t.useEffect((()=>(j(document,"click","add",q(S,(()=>M(!1)))),j(document,"click","add",q(k,(()=>H(!1)))),()=>{j(document,"click","remove",q(S,(()=>M(!1)))),j(document,"click","remove",q(k,(()=>H(!1))))})),[]);const j=(e,t,l,a,o)=>{"add"===l?e.addEventListener(t,a,o||!1):e.removeEventListener(t,a,o||!1)},q=(e,t)=>l=>{e.current&&!e.current.contains(l.target)&&t()},D={icon:"calender",color:"black",size:"16",...b};return g.default.createElement(Ct,E({disabled:o,theme:v},C,{wrapperStyle:m}),g.default.createElement($e,E({customStyles:{marginBottom:"7px",padding:0}},h)),g.default.createElement(x.default,E({selected:s===e?e:s,useWeekdaysShort:!0,onChange:e=>{a(e),f(e)},adjustDateOnChange:!0,disabled:o,dropdownMode:"select",customInput:g.default.createElement(Et,{value:s,onClick:u,placeholder:d,theme:v},g.default.createElement(Vt,E({theme:v,value:s,onClick:u,timeBtnStyle:p},C),g.default.createElement("div",null,s?y.default(s).format(c||"DD/MM/YYYY"):d||"select a date"),g.default.createElement(Mt,E({theme:v},C,{customIconContainerStyle:n,className:"input-icon"}),D.icon?g.default.createElement(Q,D):null))),renderCustomHeader:({date:e,changeYear:t,changeMonth:l})=>g.default.createElement(yt,null,g.default.createElement("div",{style:{display:"flex"}},g.default.createElement(vt,{ref:S},g.default.createElement(wt,{onClick:()=>{M(!V),H(!1)}},g.default.createElement("span",{onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),style:{color:`${B?v.variant["primary-1"]:v.additional["text-color"]}`}},Lt[e.getMonth()]),g.default.createElement(xt,null,g.default.createElement(Q,{icon:"triangle-down",color:B?v.variant["primary-1"]:v.additional["text-color"],size:7}))),V&&g.default.createElement(At,null,g.default.createElement(St,{theme:v,onMouseEnter:()=>z(!0)},Lt.map(((e,t)=>g.default.createElement(kt,{selectedMonth:Z,onClick:()=>{z(!1),l(t),M(!1),F(Lt[t])},key:Math.random()},g.default.createElement("span",{style:{color:`${Z===e?v.variant["primary-1"]:v.additional["text-color"]}`}},e))))))),g.default.createElement(vt,{ref:k},g.default.createElement(wt,{style:{marginLeft:"28px"},onClick:()=>{H(!L),M(!1)}},g.default.createElement("span",{onMouseEnter:()=>W(!0),onMouseLeave:()=>W(!1),style:{color:`${P?v.variant["primary-1"]:v.additional["text-color"]}`}},e.getFullYear()),g.default.createElement(xt,null,g.default.createElement(Q,{icon:"triangle-down",color:P?v.variant["primary-1"]:v.additional["text-color"],size:7}))),L&&g.default.createElement(At,null,g.default.createElement(St,{onMouseEnter:()=>W(!0),theme:v},w.map(((e,l)=>g.default.createElement(kt,{onClick:()=>{W(!1),t(e),T(e),H(!1)},key:Math.random()+l},g.default.createElement("span",{style:{color:`${R===e?v.variant["primary-1"]:v.additional["text-color"]}`}},e)))))))))},C)))};Ht.propTypes={selectedDate:b.default.any,setSelectedDate:b.default.func,disabled:b.default.bool,startYear:b.default.number,endYearRange:b.default.number,format:b.default.string,placeHolder:b.default.string,onChange:b.default.func,timeBtnStyle:b.default.object,wrapperStyle:b.default.object,customIconContainerStyle:b.default.object,iconProps:b.default.object,value:b.default.any,onClick:b.default.func,labelProps:b.default.object},Ht.defaultProps={selectedDate:new Date,setSelectedDate:()=>{},disabled:!1,onChange:()=>{},value:"",onClick:()=>{}};const Bt=h.default.div`
|
|
1189
1189
|
cursor: ${({disabled:e})=>e?"not-allowed":"text"};
|
|
1190
1190
|
.react-datepicker__tab-loop {
|
|
1191
1191
|
position: absolute;
|
|
@@ -1307,7 +1307,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1307
1307
|
margin-top: 5px;
|
|
1308
1308
|
font-size: 10px;
|
|
1309
1309
|
}
|
|
1310
|
-
`,Zt=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:c,disabled:n,startYear:d,endYearRange:s,iconProps:p,customHeaderStyle:u,timeBtnStyle:f,wrapperStyle:m,customIconContainerStyle:b,label:h,labelInline:C,labelStyle:v,required:w,errMsg:A,errMsgColor:S,isValid:k,...V})=>{const[M,L]=t.useState(e);t.useEffect((()=>{L(e)}),[e]);let H=M?new Date(M):null;for(var B=[],z=s||10,P=d||(new Date).getFullYear();P<=(new Date).getFullYear()+z;P++)B.push(P);let W={};switch(o){case"date":default:W.dateFormat="dd MMM, yyyy";break;case"month":W.dateFormat="MMMM yyyy",W.showMonthYearPicker=!0;break;case"year":W.dateFormat="yyyy",W.showYearPicker=!0;break;case"datetime-local":W.dateFormat="dd MMM yyyy, hh:mm a",W.showTimeSelect=!0,W.timeFormat="hh:mm a",W.timeIntervals=15,W.timeCaption="Time";break;case"time":W.showTimeSelect=!0,W.showTimeSelectOnly=!0,W.dateFormat="hh:mm a"}const R=l.useTheme()||I,T={icon:"calender",color:R.variant["primary-1"],size:"16",...p};return g.default.createElement(Tt,E({labelInline:C,errMsgColor:S,theme:R},V),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:v,type:"label-text",labelInline:C,errMsg:A,text:h,style:{display:"flex",marginBottom:""+(C?"":"7px"),paddingBottom:"0px"}},V)),w&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${R.variant.error}`}},"*")),g.default.createElement(Bt,E({theme:R},V,{wrapperStyle:m,isValid:k,disabled:n}),g.default.createElement(
|
|
1310
|
+
`,Zt=({defaultValue:e,onChange:a,inputType:o,onClick:r,placeHolder:i,value:c,disabled:n,startYear:d,endYearRange:s,iconProps:p,customHeaderStyle:u,timeBtnStyle:f,wrapperStyle:m,customIconContainerStyle:b,label:h,labelInline:C,labelStyle:v,required:w,errMsg:A,errMsgColor:S,isValid:k,...V})=>{const[M,L]=t.useState(e);t.useEffect((()=>{L(e)}),[e]);let H=M?new Date(M):null;for(var B=[],z=s||10,P=d||(new Date).getFullYear();P<=(new Date).getFullYear()+z;P++)B.push(P);let W={};switch(o){case"date":default:W.dateFormat="dd MMM, yyyy";break;case"month":W.dateFormat="MMMM yyyy",W.showMonthYearPicker=!0;break;case"year":W.dateFormat="yyyy",W.showYearPicker=!0;break;case"datetime-local":W.dateFormat="dd MMM yyyy, hh:mm a",W.showTimeSelect=!0,W.timeFormat="hh:mm a",W.timeIntervals=15,W.timeCaption="Time";break;case"time":W.showTimeSelect=!0,W.showTimeSelectOnly=!0,W.dateFormat="dd MMM yyyy, hh:mm a",W.timeFormat="hh:mm a"}const R=l.useTheme()||I,T={icon:"calender",color:R.variant["primary-1"],size:"16",...p};return g.default.createElement(Tt,E({labelInline:C,errMsgColor:S,theme:R},V),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:v,type:"label-text",labelInline:C,errMsg:A,text:h,style:{display:"flex",marginBottom:""+(C?"":"7px"),paddingBottom:"0px"}},V)),w&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${R.variant.error}`}},"*")),g.default.createElement(Bt,E({theme:R},V,{wrapperStyle:m,isValid:k,disabled:n}),g.default.createElement(x.default,E({selected:H||new Date,disabled:n,customInput:g.default.createElement(zt,{value:c,onClick:r,placeholder:i,theme:R},g.default.createElement(It,E({theme:R,value:c,onClick:r,timeBtnStyle:f,disabled:n},V),g.default.createElement("div",null,c||(i||"-- : -- --")),g.default.createElement(Wt,E({theme:R},V,{customIconContainerStyle:b,className:"input-icon"}),T.icon?g.default.createElement(Q,T):null))),onChange:e=>{L(e);var t=null;t="datetime-local"==o?y.default(e).format("DD MMM YYYY, hh:mm A"):"date"==o?y.default(e).format("DD MMM, YYYY"):"year"==o?y.default(e).format("YYYY"):"month"==o?y.default(e).format("MMMM YYYY"):"time"==o?y.default(e).format("DD MMM YYYY, hh:mm A"):y.default(e).format("DD MMM, YYYY"),a(t)},showYearDropdown:!0,yearDropdownItemNumber:5,dropdownMode:"select",placeholderText:i},W,{renderCustomHeader:({date:e,changeYear:t,decreaseMonth:l,increaseMonth:a})=>{let r=y.default(e).format("MMMM");return g.default.createElement(Pt,E({theme:R},V,{inputType:o,customHeaderStyle:u}),"year"!==o?g.default.createElement("span",{style:{paddingLeft:"10px"},onClick:l},g.default.createElement(Q,{icon:"chevron-left",color:"white",size:16})):null,g.default.createElement("b",null,"year"!==o?g.default.createElement("span",{style:{paddingRight:"5px"}},r):null," ",g.default.createElement("span",{className:"calender-year"},g.default.createElement("select",{value:e.getFullYear(),onChange:({target:{value:e}})=>t(e)},B.map((e=>g.default.createElement("option",{key:e,value:e},e)))))),"year"!==o?g.default.createElement("span",{style:{paddingRight:"10px"},onClick:a},g.default.createElement(Q,{icon:"chevron-right",color:"white",size:16})):null)}},V))),A.length>0&&g.default.createElement("div",{className:"err-text"},A))};Zt.propTypes={defaultValue:b.default.string,onChange:b.default.func,inputType:b.default.string,onClick:b.default.func,placeHolder:b.default.string,value:b.default.string,disabled:b.default.bool,startYear:b.default.number,endYearRange:b.default.number,iconProps:b.default.object,customHeaderStyle:b.default.object,timeBtnStyle:b.default.object,wrapperStyle:b.default.object,customIconContainerStyle:b.default.object,label:b.default.string,labelStyle:b.default.object,labelInline:b.default.bool,errMsg:b.default.string,errMsgColor:b.default.string,isValid:b.default.bool},Zt.defaultProps={disabled:!1,startYear:new Date,endYearRange:10,value:"",defaultValue:"",onChange:()=>{},label:"",required:!1,labelInline:!1,errMsg:"",isValid:!0};const Ft=h.default.div`
|
|
1311
1311
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"initial"} !important;
|
|
1312
1312
|
|
|
1313
1313
|
.text-main-alt {
|
|
@@ -1347,7 +1347,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1347
1347
|
margin-top: -15.5px;
|
|
1348
1348
|
cursor: pointer;
|
|
1349
1349
|
line-height: normal !important;
|
|
1350
|
-
`,Dt=({getValue:e,children:t,...l})=>{const a=e().length;return g.default.createElement(n.components.ValueContainer,E({"data-accordion":"contentClickFalse"},l),g.default.createElement("span",{"data-accordion":"contentClickFalse"}),t,a>1&&g.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Ot=({label:e,labelStyle:a,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:c,isClearable:d,isValid:s,height:p,fontSize:u,loadOptions:f,onInputChange:m,clearSelected:b,customWrapperStyles:h,customLabelStyles:C,isRequired:
|
|
1350
|
+
`,Dt=({getValue:e,children:t,...l})=>{const a=e().length;return g.default.createElement(n.components.ValueContainer,E({"data-accordion":"contentClickFalse"},l),g.default.createElement("span",{"data-accordion":"contentClickFalse"}),t,a>1&&g.default.createElement("span",{className:"text-more-alt"},"& ",a-1," more"))},Ot=({label:e,labelStyle:a,optionArr:o,selectedValue:r,setSelectedValue:i,placeHolder:c,isClearable:d,isValid:s,height:p,fontSize:u,loadOptions:f,onInputChange:m,clearSelected:b,customWrapperStyles:h,customLabelStyles:C,isRequired:y,dropdownType:x,isDisabled:v,isLoading:w,id:A,iconName:S,iconStyles:k,iconColor:V,iconSize:M,showIndicator:L,leftIcon:H,leftIconColor:B,leftIconSize:z,backgroundColor:W,placeHolderColor:R,indicatorBackgroundColor:T,inputColor:Z,menuListFooter:F,customSelectStyles:j,errorMessage:q,maximumSelectOptionLimit:D,maximumSelectOptionLimitMessage:O,labelProps:G,...X})=>{const J=l.useTheme()||I,U=e=>{const t={width:"15px",height:"15px",borderRadius:"2px",padding:"4px",fontSize:"8px",lineHeight:"10px",minWidth:"15px",minHeight:"15px",boxSizing:"content-box"},l=g.default.createElement("div",{style:{...t,backgroundColor:e?.data?.color??J.primary["primary-1"]}},g.default.createElement(Q,{icon:"check-icon",color:"white"})),a=g.default.createElement("div",{style:{...t,backgroundColor:"#e0e7ff"}});return console.log(e),g.default.createElement(n.components.Option,e,g.default.createElement("div",{"data-accordion":"contentClickFalse",style:{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%"}},"further-details"!==e.value&&(e.isSelected?l:a),g.default.createElement("div",{className:"text-main-alt","data-accordion":"contentClickFalse",style:{marginLeft:"10px"}},e.label)))},Y=({index:e,...t})=>{const l=t?.data?.label||"Select";return!e&&g.default.createElement("span",{className:"text-main-alt-value"},l)},N={control:(e,t)=>({...e,border:s?W&&s?"1px solid "+W:"1px solid "+J.border:"1px solid "+J.ui.error,minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px",height:`${p}px`,minHeight:`${p}px`,boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:t.isDisabled?J.variant["neutral-5"]:W||J.additional.white}),placeholder:e=>({...e,fontSize:u+"px",marginLeft:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"auto",maxWidth:"89%",marginRight:"0px",color:R||"hsl(0, 0%, 50%)"}),dropdownIndicator:e=>({...e,height:`${p}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"2px",backgroundColor:T||"transparent",borderBottomLeftRadius:"0",borderBottomRightRadius:"4.32px",borderTopLeftRadius:0,borderTopRightRadius:"4.32px",position:"relative",top:"-1px",right:"-1px"}),clearIndicator:e=>({...e,height:`${p}px`,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"0px"}),valueContainer:e=>({...e,fontSize:u+"px",marginTop:"-4px"}),indicatorsContainer:e=>({...e,padding:0}),menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:u+"px",width:"100%",minWidth:"singleSelect"===x||"asyncSingleSelect"===x?"120px":"185px"}),singleValue:e=>({...e,fontSize:u+"px",marginLeft:"0px",width:"auto",marginRight:0,display:"grid"}),multiValue:e=>({...e,marginLeft:"0px",width:"auto",display:"grid"}),input:e=>({...e,fontSize:u+"px",color:Z||"hsl(0, 0%, 20%)",padding:0,margin:0}),option:(e,t)=>({...e,backgroundColor:t.isSelected||t.isFocused?J.neutral["neutral-5"]:J.additional.white,padding:"10px",cursor:t.isDisabled?"not-allowed":"pointer",color:"#081348",opacity:t.isDisabled?.6:1,width:"inherit",boxSizing:"initial"}),menuPortal:e=>({...e,zIndex:99999999}),...j},K={DropdownIndicator:e=>{const t=g.default.createElement(n.components.DropdownIndicator,e,g.default.createElement(qt,{"data-accordion":"contentClickFalse"},g.default.createElement(Q,{icon:S,color:V,size:M,customstyles:k,"data-accordion":"contentClickFalse"})));return!0===L?t:null},ValueContainer:Dt,IndicatorSeparator:()=>null,ClearIndicator:e=>g.default.createElement(n.components.ClearIndicator,e,d?g.default.createElement(qt,{onClick:()=>{b(),e.clearValue()},"data-accordion":"contentClickFalse"},g.default.createElement(Q,{icon:"cross-icon",color:"black",size:8,"data-accordion":"contentClickFalse"})):null),MenuList:e=>{const{MenuListHeader:l=null,MenuListFooter:a=null}=e.selectProps.components,o=e.getValue().length||0;return g.default.createElement(n.components.MenuList,E({},e,{"data-accordion":"contentClickFalse"}),o<D?g.default.createElement(t.Fragment,null,e.children.length&&l,e.children,e.children.length&&a):g.default.createElement("div",{style:{margin:15}},O))},MenuListFooter:F};let $=null;switch(x){case"multiSelect":$=g.default.createElement(Gt,E({type:"multiSelect",MultiValue:Y,Option:U,value:r,CommonRenderedComponent:K,optionArr:o,placeHolder:c,isDisabled:v,stylesComp:N,setSelectedValue:i,isLoading:w,id:A,isClearable:d},X));break;case"asyncSingleSelect":$=g.default.createElement(Xt,E({CommonRenderedComponent:K,loadOptions:f,onInputChange:m,styles:N,placeholder:c,onChange:i,isLoading:w,isDisabled:v,id:A,value:r,isClearable:d},X));break;case"asyncMultiSelect":$=g.default.createElement(Xt,E({type:"asyncMultiSelect",CommonRenderedComponent:K,MultiValue:Y,Option:U,onChange:i,placeholder:c,styles:N,isDisabled:v,isLoading:w,loadOptions:f,onInputChange:m,id:A,isClearable:d,value:r},X));break;default:$=g.default.createElement(Gt,E({type:"singleSelect",value:{value:r?r.value:"",label:r?r.label:""},CommonRenderedComponent:K,optionArr:o,placeHolder:c,isDisabled:v,stylesComp:N,setSelectedValue:i,isLoading:w,id:A,isClearable:d},X))}return g.default.createElement(Ft,{style:h,backgroundColor:W,isValid:s,fontSize:u,theme:J,isDisabled:v},e&&g.default.createElement(jt,{inBuiltCss:P,labelWrapperStyle:"selectComp-label-wrapper",style:C},g.default.createElement($e,E({customStyles:a,type:"label-text",text:e,style:{marginBottom:"8px",paddingBottom:"0px"}},G)),y&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${J.ui.error}`}},"*")),$,!s&&q)},Gt=({type:e,Option:t,value:l,CommonRenderedComponent:a,MultiValue:o,optionArr:r,placeHolder:i,isDisabled:c,stylesComp:n,setSelectedValue:d,isLoading:s,id:p,isClearable:u,...f})=>{let m={...a};return"multiSelect"===e&&(m.MultiValue=o,m.Option=t),g.default.createElement(v.default,E({className:"select-manage-page contentClickFalse",classNamePrefix:"new-select",name:"select-dropdown",components:m,options:r,placeholder:i,isDisabled:c,value:l,styles:n,onChange:d,isLoading:s,id:p,isClearable:u,isMulti:"multiSelect"===e,hideSelectedOptions:!1,closeMenuOnSelect:"multiSelect"!==e,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse"},f))},Xt=({CommonRenderedComponent:e,MultiValue:t,Option:l,type:a,id:o,styles:r,...i})=>{let c={...e};return"asyncMultiSelect"===a&&(c.MultiValue=t,c.Option=l),g.default.createElement(w.default,E({className:"select-manage-page contentClickFalse ",classNamePrefix:"new-select",name:"select-dropdown",components:c,isMulti:"asyncMultiSelect"===a,defaultOptions:!0,hideSelectedOptions:!1,closeMenuOnSelect:"asyncMultiSelect"!==a,isSearchable:!0,styles:r,menuShouldScrollIntoView:!1,"data-accordion":"contentClickFalse",id:o},i))};Ot.propTypes={label:b.default.string,labelStyle:b.default.object,optionArr:b.default.array,selectedValue:b.default.object,setSelectedValue:b.default.func,placeHolder:b.default.string,fontSize:b.default.number,clearSelected:b.default.func,loadOptions:b.default.func,onInputChange:b.default.func,customWrapperStyles:b.default.object,customLabelStyles:b.default.object,isRequired:b.default.bool,dropdownType:b.default.string,isDisabled:b.default.bool,isLoading:b.default.bool,isValid:b.default.bool,height:b.default.number,isClearable:b.default.bool,id:b.default.string,iconName:b.default.string,iconColor:b.default.string,iconSize:b.default.number,leftIcon:b.default.string,leftIconColor:b.default.string,leftIconSize:b.default.number,showIndicator:b.default.bool,backgroundColor:b.default.string,placeHolderColor:b.default.string,inputColor:b.default.string,menuListFooter:b.default.any,customSelectStyles:b.default.object,maximumSelectOptionLimit:b.default.number,maximumSelectOptionLimitMessage:b.default.string,labelProps:b.default.object},Ot.defaultProps={label:"",labelStyle:{},optionArr:[],selectedValue:{},setSelectedValue:void 0,placeHolder:"Select an option",isValid:!0,isClearable:!1,height:31,fontSize:14,loadOptions:()=>{},onInputChange:()=>{},clearSelected:()=>{},customWrapperStyles:{},customLabelStyles:{},isRequired:!1,dropdownType:"singleSelect",isDisabled:!1,isLoading:!1,id:"",iconName:"triangle-down",iconColor:"black",iconSize:8,leftIcon:"",leftIconColor:"black",leftIconSize:10,showIndicator:!0,customSelectStyles:{},maximumSelectOptionLimit:1e4,maximumSelectOptionLimitMessage:"Max limit achieved",labelProps:{}};const Jt=h.default.div`
|
|
1351
1351
|
//Set the styles from the default styles object
|
|
1352
1352
|
${({inBuiltCss:e,defaultStyles:t})=>W(e,t)}
|
|
1353
1353
|
|
|
@@ -1406,7 +1406,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1406
1406
|
align-items: center;
|
|
1407
1407
|
margin: 20px 0px;
|
|
1408
1408
|
font-size: 14px;
|
|
1409
|
-
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:c,setFileArr:n,deleteFile:d,customDropzoneStyles:s,customFileStyles:p,customTextStyles:u,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:C,file_extensions:
|
|
1409
|
+
`;const _t=({label:e,labelStyle:a,labelInline:o,required:r,message:i,fileArr:c,setFileArr:n,deleteFile:d,customDropzoneStyles:s,customFileStyles:p,customTextStyles:u,customFileNameStyles:f,backgroundColor:m,singleFile:b,messageSize:h,showSupportedFormats:C,file_extensions:y,maxFilesAmount:x,minFilesAmount:v,fileSizeLimit:w,fileSizeNamingConvention:A,errorMessages:S,suggesionMessage:k,MessagelabelStyle:V,dropValid:M,setDropValid:L,errorDetails:H,setErrorDetails:B,dropzoneContent:z,dropIcon:W,iconColor:R,id:T,customTooltipContentStyle:Z={padding:"4px 12px",fontSize:"14px",width:"auto",maxWidth:"226px"},customStylesTPArightBefore:F,customStylesTPArightAfter:j,tooltipArrowColor:q,...D})=>{const O=l.useTheme()||I;q=q||O.primary["primary-1"];const[G,X]=t.useState(!1),J=t.createRef(),[U,Y]=t.useState(M),[N,K]=t.useState("");let $;var _=y;let ee=new Map(_.map((e=>[e.toLowerCase(),e])));ee=Array.from(ee.values()).join(", ");var te=!1,le=C?"All file formats cannot be used with the files you provided.":"",ae="";1==b&&(v=1,x=1);var oe="Please upload (min."+v+" to max."+x+")files",re=e=>{ae="";let t=[],l=[];var a=c.length;if(a+e.length<v||a+e.length>x){var o=`Please upload (minimum ${v} to maximum ${x} files)`;ae=S?.amount,ae=void 0!==ae?ae:o}if(""==ae)for(const[a,c]of Object.entries(e)){te=!0,c.name;let e=c.size,a=c.name.split(".");a=a[a.length-1],te=_.includes(a.toLowerCase());var r=1024;("MB"===A||"GB"===A||"TB"===A)&&(r*=1024);var i=e/r;if(!1===te&&(ae=S?.format,ae=ae||le),i>w&&te){te=!1;o="Each file must be under "+w+" "+A;ae=S?.size,ae=void 0!==ae?ae:o}te?($=URL.createObjectURL(c),c.path=$,t.push(c)):l.push(c)}return ae.length>0?(L(!1),B({valid:!1,errorMessage:ae,errorFiles:l}),Y(M),K(ae)):(L(!0),Y(M),K(""),B({valid:!0,errorMessage:"",errorFiles:[]})),t};function ie(e){e.preventDefault(),e.stopPropagation()}function ce(e,t){let l=[...c,...e];return t||(l=l.filter(((e,t,l)=>t===l.findIndex((t=>t.place===e.place&&t.name===e.name))))),n(l),X(!1),l}function ne(e,t){if(e instanceof File){const t=c.findIndex((t=>t.name===e.name));let l=c[t].path;URL.revokeObjectURL(l);const a=c.filter((t=>t.name!==e.name));n(a)}else!function(e){const t=c.filter((t=>t.name!==e.name));n(t),d(e)}(e)}const de=g.default.createElement("div",null,ee),se=y.map((e=>`.${e}`)).join(",");return g.default.createElement("div",null,g.default.createElement("div",{style:{display:"flex",width:"inherit"}},g.default.createElement($e,E({customStyles:a,type:"label-text",labelInline:o,text:e,style:{display:"flex",marginBottom:`${o?0:"8px"}`,paddingBottom:"0px"}},D)),r&&g.default.createElement("div",{style:{marginLeft:"4px",color:`${O.variant.error}`}},"*")),g.default.createElement(Jt,{theme:O,inBuiltCss:P,defaultStyles:"dropzone-parent",backgroundColor:m,customDropzoneStyles:M?s:{},onDragLeave:function(e){ie(e),X(!1)},onDragOver:function(e){ie(e),X(!0)},onDrop:function(e){ie(e);const{files:t}=e.dataTransfer;var l=re(t);X(!0),D.onFilesAdded(ce(l,b))},onClick:function(){J.current.click()},hover:G,dropValid:M,fileArr:c},g.default.createElement(Yt,E({ref:J,valid:U,dropValid:M,type:"file",accept:se,id:T,multiple:!b,onChange:function(e){let{files:t}=e.target;X(!1);var l=re(t);l&&D.onFilesAdded(ce(l,b))},onClick:e=>e.target.value=null},D)),M?g.default.createElement(g.default.Fragment,null,W?g.default.createElement(Q,{icon:W,color:G?O.additional.white:R,size:24}):g.default.createElement(Q,{icon:"file-upload",color:G?O.additional.white:O.primary["primary-1"],size:24})):null,g.default.createElement(Nt,{dropValid:M,valid:U,hover:G,backgroundColor:m,customTextStyles:u,inBuiltCss:P,defaultStyles:"dropzone-text-div"},M?g.default.createElement(g.default.Fragment,null,z?g.default.createElement("div",{style:{color:G?O.additional.white:null}},z):g.default.createElement("div",null,g.default.createElement("span",{style:{color:G?O.additional.white:O.primary["primary-1"]}},"Choose a file"," "),g.default.createElement("span",{style:{color:G?O.additional.white:O.neutral["neutral-2"]}},"or"," "),g.default.createElement("span",{style:{color:G?O.additional.white:O.additional["text-color"]}},"drag ",b?"it":"them"," here"))):g.default.createElement("div",null,g.default.createElement("span",{style:{color:O.variant.error}},"Try again!!"," "),g.default.createElement("span",{style:{color:O.additional["text-color"]}},N||i)))),N===le||S.format?g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({themeColor:I,customStyles:V,type:"label-text",labelInline:o,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},D)),g.default.createElement(Xe,{contentTrigger:g.default.createElement("span",{style:{cursor:"pointer"}},"Click here to view the supported file types"),headerTooltip:"",contentTooltip:de,footerTooltip:"",popperOptionsP:{placement:"bottom"},settings:{closeOnOutsideClick:!0,trigger:"click"},customTriggerStyle:{marginTop:"8px",marginLeft:"4px",textDecoration:"underline",color:O.variant["primary-1"]},customBodyStyle:{wordWrap:"break-word"},customContentStyle:Z,customStylesTPArightBefore:F,customStylesTPArightAfter:j,customStylesTPAbottomBefore:{borderColor:`transparent transparent ${q} transparent`,marginTop:"1px"},customStylesTPAbottomAfter:{display:"none"}})):"The file size is not uploaded"===N?g.default.createElement($e,E({themeColor:I,customStyles:V,type:"label-text",labelInline:o,text:oe,style:{display:"flex",paddingTop:"10px",paddingBottom:`${o?0:"16.64px"}`}},D)):"",c?.map(((e,t)=>g.default.createElement(Ut,{inBuiltCss:P,defaultStyles:"dropzone-file-div",key:`${e}-${t}`,customFileStyles:p},g.default.createElement(Kt,null,g.default.createElement(Q,{icon:"file-icon",color:O.primary["primary-1"]})),(File,g.default.createElement("a",{style:{color:O.variant["primary-1"],marginLeft:"5px",overflow:"hidden"},href:e?.path,target:"_blank",rel:"noreferrer",download:e.name}," ",e.name)),g.default.createElement($t,null,e?.otherInfo),g.default.createElement(Qt,{key:101*Math.random()|0},g.default.createElement("div",{style:{marginRight:"7px"}},g.default.createElement(Q,{icon:`${!(e instanceof File)&&"cloud-icon"}`,color:O.primary["primary-1"]})),g.default.createElement(Q,{icon:"cross-icon",color:O.neutral["neutral-2"],size:13,onClick:()=>ne(e),customstyles:{cursor:"pointer"}}))))))};_t.propTypes={onFilesAdded:b.default.func,dropValid:b.default.bool,setDropValid:b.default.func,message:b.default.string,fileArr:b.default.array,setFileArr:b.default.func,customDropzoneStyles:b.default.object,customFileStyles:b.default.object,customTextStyles:b.default.object,customFileNameStyles:b.default.object,backgroundColor:b.default.string,messageSize:b.default.number,maxFilesAmount:b.default.number,minFilesAmount:b.default.number,fileSizeLimit:b.default.number,fileSizeNamingConvention:b.default.string,showSupportedFormats:b.default.bool,file_extensions:b.default.array,errorMessages:b.default.object,suggesionMessage:b.default.any,MessagelabelStyle:b.default.object,id:b.default.string,dropzoneContent:b.default.any,dropIcon:b.default.string,iconColor:b.default.string,singleFile:b.default.bool,customTooltipContentStyle:b.default.object,customStylesTPArightBefore:b.default.object,customStylesTPArightAfter:b.default.object},_t.defaultProps={onFilesAdded:()=>null,dropValid:!0,message:"",fileArr:[],setFileArr:()=>{},customDropzoneStyles:{},errorDetails:{},setErrorDetails:()=>{},customFileStyles:{},customTextStyles:{},customFileNameStyles:{},messageSize:100,additionalText:"",maxFilesAmount:5,minFilesAmount:1,fileSizeLimit:10,fileSizeNamingConvention:"MB",showSupportedFormats:!0,file_extensions:["doc","docx","jpg","JPG","pdf","png","xlsx","xlsr","xls"],errorMessages:{},MessagelabelStyle:{},suggesionMessage:"doc, docx, jpg, pdf, png, xlsx, xlsr, xls (Max 10MB)",id:"",iconColor:"black"};const el=l.css`
|
|
1410
1410
|
pointer-events: none;
|
|
1411
1411
|
`,tl=h.default.input`
|
|
1412
1412
|
background-color: transparent;
|
|
@@ -1496,7 +1496,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
${({MainDivStyle:e})=>e};
|
|
1499
|
-
`,sl=({image:e,setImage:a,WrapperDivStyle:o,MainDivStyle:r,IconWrapperStyle:i,iconSize:c,iconColor:n,isDisabled:d,id:s})=>{const[p,u]=t.useState(),f=t.useRef(),m=l.useTheme()||I,[b,h]=t.useState(),[C,
|
|
1499
|
+
`,sl=({image:e,setImage:a,WrapperDivStyle:o,MainDivStyle:r,IconWrapperStyle:i,iconSize:c,iconColor:n,isDisabled:d,id:s})=>{const[p,u]=t.useState(),f=t.useRef(),m=l.useTheme()||I,[b,h]=t.useState(),[C,y]=t.useState(!1);function x(e){e.preventDefault(),e.stopPropagation()}t.useEffect((()=>{if(e&&C){const t=new FileReader;t.onloadend=()=>{u(t.result)},t.readAsDataURL(e)}else u(e)}),[e]);const v=e=>{e&&"image"===e.type.substr(0,5)?(y(!0),a(e)):y(!1)};return g.default.createElement(il,{onDragLeave:function(e){x(e),h(!1)},onDragOver:function(e){x(e),h(!0)},onDrop:function(e){x(e);const{files:t}=e.dataTransfer;v(t[0])},WrapperDivStyle:o,isDisabled:d},g.default.createElement(dl,{isDisabled:d,theme:m,MainDivStyle:r,style:{backgroundImage:`url(${p})`},onClick:e=>{e.preventDefault(),f.current.click()}},!p&&g.default.createElement("div",{className:"icon-on-not-preview"},g.default.createElement(nl,{IconWrapperStyle:i,theme:m,isDisabled:d},g.default.createElement("img",{src:U,alt:"",height:"40px",width:"48px"}))),g.default.createElement("div",{className:"icon-on-preview"},g.default.createElement(nl,{IconWrapperStyle:i,isDisabled:d,theme:m},g.default.createElement(Q,{icon:"camera-icon",size:c,color:n||m.variant["primary-1"]})))),g.default.createElement(cl,{id:s,type:"file",ref:f,accept:"image/jpg, image/jpeg, image/png,image/webp",onChange:e=>{y(!0),a(e.target.files[0])},disabled:d,isDisabled:d}))};sl.propTypes={image:b.default.any,setImage:b.default.func,WrapperDivStyle:b.default.object,MainDivStyle:b.default.object,IconWrapperStyle:b.default.object,iconSize:b.default.number},sl.defaultProps={image:null,setImage:()=>{},WrapperDivStyle:{},MainDivStyle:{},IconWrapperStyle:{},iconSize:28,id:"",isDisabled:!1};const pl=h.default.div`
|
|
1500
1500
|
border: 1px solid ${({theme:e})=>e.additional.border};
|
|
1501
1501
|
border-radius: 4px;
|
|
1502
1502
|
padding: 5.5px 12px;
|
|
@@ -1600,14 +1600,14 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1600
1600
|
display: flex;
|
|
1601
1601
|
gap: 7px;
|
|
1602
1602
|
align-items: flex-start;
|
|
1603
|
-
`,
|
|
1603
|
+
`,yl=h.default.div`
|
|
1604
1604
|
${({labelInline:e})=>e?Cl:null}
|
|
1605
1605
|
.err-text {
|
|
1606
1606
|
color: ${({errMsgColor:e,theme:t})=>e||t.variant.error};
|
|
1607
1607
|
margin-top: 5px;
|
|
1608
1608
|
font-size: 10px;
|
|
1609
1609
|
}
|
|
1610
|
-
`,
|
|
1610
|
+
`,xl=({passwordRules:e,textBoxStyle:a,labelStyle:o,inputStyle:r,errMsg:i,required:c,label:n,labelInline:d,isValid:s,rulesStyle:p,id:u,showHideIcon:f,errMsgColor:m,...b})=>{const[h,C]=t.useState("password"),y=l.useTheme()||I;return g.default.createElement(yl,E({labelInline:d,inBuiltCss:P,errMsgColor:m,theme:y},b),g.default.createElement("div",{style:{display:"flex"}},g.default.createElement($e,E({customStyles:o,type:"label-text",text:n,errMsg:i,style:{display:"flex",marginBottom:`${d?0:"8px"}`,paddingBottom:"0px"}},b)),c&&g.default.createElement("div",{style:{marginLeft:"4px",marginRight:"5px",color:`${y.variant.error}`}},"*")),g.default.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"flex-start"}},g.default.createElement("div",{style:{width:"100%"}},g.default.createElement(gl,E({required:c,theme:y,textBoxStyle:a,isValid:s,defaultWrapperStyle:"textbox-wrapper",inBuiltCss:P},b),g.default.createElement(hl,E({},b,{inputStyle:r,type:h,id:u,theme:y,defaultInputStyle:"input-wrapper",inBuiltCss:P})),!0===f?g.default.createElement("div",{className:"input-icon",onClick:()=>C("password"===h?"text":"password"),style:{position:"absolute",right:"7px"}},g.default.createElement(Q,{icon:"text"===h?"eye-show":"eye-hide"})):""),i.length>0&&g.default.createElement("div",{className:"err-text"},i)),e?g.default.createElement("div",{style:{...p,marginLeft:"5px"}},e):""))};xl.propTypes={inBuiltCss:b.default.object,theme:b.default.object,label:b.default.string,required:b.default.bool,labelInline:b.default.bool,errMsg:b.default.string,textBoxStyle:b.default.object,labelStyle:b.default.object,inputStyle:b.default.object,rulesStyle:b.default.object,id:b.default.string,showHideIcon:b.default.bool},xl.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",textBoxStyle:{},labelStyle:{},inputStyle:{},passwordRules:"",rulesStyle:{},id:"",showHideIcon:!0};const vl=h.default.div`
|
|
1611
1611
|
box-sizing: initial;
|
|
1612
1612
|
|
|
1613
1613
|
//Set the styles from the default styles object
|
|
@@ -1650,7 +1650,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1650
1650
|
display: ${({inline:e})=>e?"flex":"inline-block"};
|
|
1651
1651
|
width: max-content;
|
|
1652
1652
|
margin: 0;
|
|
1653
|
-
`,El=({radioOuterCircleStyle:e,radioInnerCircleStyle:t,labelStyle:a,label:o,optionStyle:r,options:i,selectedCircleColor:c,selectedOptionTextColor:n,onChange:d,selected:s,width:p,height:u,inline:f,defaultBorderColor:m,defaultOptionColor:b,WrapperDivStyle:h,required:C,onFocus:x
|
|
1653
|
+
`,El=({radioOuterCircleStyle:e,radioInnerCircleStyle:t,labelStyle:a,label:o,optionStyle:r,options:i,selectedCircleColor:c,selectedOptionTextColor:n,onChange:d,selected:s,width:p,height:u,inline:f,defaultBorderColor:m,defaultOptionColor:b,WrapperDivStyle:h,required:C,onFocus:y,...x})=>{const v=l.useTheme()||I;return g.default.createElement("div",null,g.default.createElement($e,{customStyles:a,type:"label-text",text:o,required:C,style:{display:"flex",marginBottom:"'8px",paddingBottom:"0px"}}),g.default.createElement(kl,{inline:f},i.map(((l,a)=>g.default.createElement(Sl,{WrapperDivStyle:h,key:a+101*Math.random(),id:l.id,inline:f,onClick:()=>{!l?.disabled&&d(l.value)},onFocus:()=>{!l?.disabled&&y(l.value)}},g.default.createElement(vl,{theme:v,inBuiltCss:P,defaultBorderColor:m,selectedCircleColor:c,radioOuterCircleStyle:{...e,cursor:l?.disabled?"not-allowed ":" pointer",borderColor:l?.disabled&&l?.disabledColor},defaultRadioOuterCircleStyle:"radio-outer-circle",value:l.value,selected:s},g.default.createElement(wl,{inBuiltCss:P,theme:v,width:p,height:u,selectedCircleColor:c,radioInnerCircleStyle:{...t,cursor:l?.disabled?"not-allowed ":" pointer",backgroundColor:l?.disabled&&l?.disabledColor?l?.disabledColor:l?.value===s?t?.backgroundColor:"transparent"},defaultRadioInnerCircleStyle:"radio-inner-circle",value:l.value,selected:s})),g.default.createElement(Al,{defaultOptionColor:b,optionStyle:{...r,cursor:l?.disabled?"not-allowed ":" pointer",color:l?.disabled&&l?.disabledColor},inBuiltCss:P,defaultOptionStyle:"option-text",selectedOptionTextColor:n,theme:v,selected:!l?.disabled&&l.value===s},l.label))))))};El.propTypes={label:b.default.string,labelStyle:b.default.object,inline:b.default.bool,options:b.default.array,optionStyle:b.default.object,WrapperDivStyle:b.default.object,selected:b.default.string,onChange:b.default.func,defaultOptionColor:b.default.string,defaultBorderColor:b.default.string,radioOuterCircleStyle:b.default.object,radioInnerCircleStyle:b.default.object,width:b.default.string,height:b.default.string,selectedCircleColor:b.default.string,selectedOptionTextColor:b.default.string},El.defaultProps={label:"",labelStyle:{},inline:!1,options:[],optionStyle:{},selected:"one",onChange:()=>{},radioOuterCircleStyle:{},radioInnerCircleStyle:{},width:"14px",height:"14px",WrapperDivStyle:{}};const Vl=h.default.div`
|
|
1654
1654
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1655
1655
|
|
|
1656
1656
|
//Set the styles from the default styles object
|
|
@@ -1700,7 +1700,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1700
1700
|
margin-top: 5px;
|
|
1701
1701
|
font-size: 10px;
|
|
1702
1702
|
}
|
|
1703
|
-
`,Bl=({textBoxStyle:e,labelStyle:t,inputStyle:a,errMsg:o,required:r,label:i,labelInline:c,iconBefore:n,iconAfter:d,isValid:s,type:p,isDisabled:u,id:f,errMsgColor:m,iconAfterStyle:b,iconBeforeStyle:h,ref:C,pattern:
|
|
1703
|
+
`,Bl=({textBoxStyle:e,labelStyle:t,inputStyle:a,errMsg:o,required:r,label:i,labelInline:c,iconBefore:n,iconAfter:d,isValid:s,type:p,isDisabled:u,id:f,errMsgColor:m,iconAfterStyle:b,iconBeforeStyle:h,ref:C,pattern:y,iconColorOnFocus:x,labelProps:v,...w})=>{const A=l.useTheme()||I;return g.default.createElement(Hl,E({labelInline:c,theme:A,errMsgColor:m},w),g.default.createElement($e,E({customStyles:t,type:"label-text",labelInline:c,text:i,errMsg:o,style:{display:"flex",marginBottom:`${c?0:"8px"}`,paddingBottom:"0px"},required:r},w,v)),g.default.createElement(Vl,E({required:r,isDisabled:u,theme:A,textBoxStyle:e,isValid:s,inBuiltCss:P,defaultWrapperStyle:"textbox-wrapper",iconColorOnFocus:x},w),g.default.createElement("div",{className:"input-icon",style:{...h}},n),g.default.createElement(Ml,E({inputStyle:a,type:p,theme:A,id:f,defaultInputStyle:"input-wrapper",isDisabled:u,disabled:u,ref:C,pattern:y},w)),g.default.createElement("div",{className:"input-icon",style:{...b}},d)),o.length>0&&g.default.createElement("div",{className:"err-text"},o))};Bl.propTypes={inBuiltCss:b.default.object,label:b.default.string,required:b.default.bool,labelInline:b.default.bool,errMsg:b.default.string,iconBefore:b.default.any,iconAfter:b.default.any,textBoxStyle:b.default.object,labelStyle:b.default.object,inputStyle:b.default.object,type:b.default.string,isDisabled:b.default.bool,id:b.default.string,errMsgColor:b.default.string,iconAfterStyle:b.default.object,iconBeforeStyle:b.default.object,iconColorOnFocus:b.default.string,labelProps:b.default.object},Bl.defaultProps={inBuiltCss:P,label:"",required:!1,isValid:!0,labelInline:!1,errMsg:"",iconBefore:null,iconAfter:null,textBoxStyle:{},labelStyle:{},inputStyle:{},type:"text",isDisabled:!1,id:"",iconAfterStyle:{},iconBeforeStyle:{},iconColorOnFocus:"",labelProps:{}};const zl=({label:e,placeholder:t,handleSearch:l,searchInput:a,customStylesForm:o,customStyleObject:r,textBoxStyle:i,id:c,...n})=>g.default.createElement(Bl,E({iconAfter:g.default.createElement(Q,{icon:"magnifier-icon"}),label:e,textBoxStyle:i,placeholder:t,ref:a,onChange:l,id:c},n)),Il=h.default.div`
|
|
1704
1704
|
//Set the styles from the default styles object
|
|
1705
1705
|
${({inBuiltCss:e,defaultParentDivStyle:t})=>W(e,t)}
|
|
1706
1706
|
|
|
@@ -1765,7 +1765,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1765
1765
|
display: flex;
|
|
1766
1766
|
justify-content: center;
|
|
1767
1767
|
cursor: pointer;
|
|
1768
|
-
`,Fl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:c,pointsArray:n,setPointsArray:d,value:s,setValue:p,valueForSignatureDrawing:u,setValueForSignatureDrawing:f,imageURL:m,setImageURL:b,id:h,...C})=>{const
|
|
1768
|
+
`,Fl=({onChange:e,activeColor:a,defaultColor:o,placeholderColor:r,placeholderText:i,customInputStyle:c,pointsArray:n,setPointsArray:d,value:s,setValue:p,valueForSignatureDrawing:u,setValueForSignatureDrawing:f,imageURL:m,setImageURL:b,id:h,...C})=>{const y=l.useTheme()||I,[x,v]=t.useState("default"),[w,S]=t.useState(!1),[k,E]=t.useState(!1),V=t.useRef(null);t.useEffect((()=>{k&&(L(),f(V.current))}),[!0===k]);const M=()=>{p(""),f(V.current),V.current&&V.current.clear(),S(!1),E(!1)},L=()=>(d(V.current.toData()),b(V.current.toDataURL("image/png")),[m,n]);return g.default.createElement(Il,{inBuiltCss:P,defaultParentDivStyle:"signature-parent-div",isMyInputFocused:w,selected:x,activeColor:a,defaultColor:o,theme:y},g.default.createElement(Pl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,selected:x,isMyInputFocused:w,signIcon:!0,theme:y},g.default.createElement(Wl,{activeColor:a,defaultColor:o,isMyInputFocused:w,theme:y,penIcon:!0,onClick:()=>{v("default"),M()}},g.default.createElement(Q,{icon:"pen-icon",color:"default"===x?a||y.primary["primary-1"]:y.additional.black})),g.default.createElement(Wl,{activeColor:a,defaultColor:o,theme:y,isMyInputFocused:w,penIcon:!1,onClick:()=>{v("sign"),M()}},g.default.createElement(Q,{icon:"sign-icon",color:"default"!==x?a||y.primary["primary-1"]:y.additional.black}))),g.default.createElement(Pl,{inBuiltCss:P,defaultWrapperDivStyle:"signature-wrapper-div",activeColor:a,defaultColor:o,theme:y,selected:x,isMyInputFocused:w,signIcon:!1,onTouchStart:()=>{}},"default"===x?g.default.createElement(Rl,{inBuiltCss:P,defaultInputStyle:"signature-input-text",placeholder:i,placeholderColor:r,customInputStyle:c,onBlur:()=>S(!1),onFocus:()=>S(!0),id:h,value:s,defaultColor:o,theme:y,onChange:e=>p(e.target.value)}):g.default.createElement(Tl,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),onClick:()=>{E(!0),L()}},g.default.createElement(A.default,{ref:V,id:h,redrawOnResize:!0,height:75,options:{minWidth:1,maxWidth:1,penColor:"#444444"}})),(s||k)&&g.default.createElement(Zl,{selected:x,onClick:()=>M()},g.default.createElement(Q,{icon:"cross-icon",color:o||y.neutral["neutral-3"]}))))};Fl.propTypes={activeColor:b.default.string,defaultColor:b.default.string,placeholderColor:b.default.string,placeholderText:b.default.string,customInputStyle:b.default.object,pointsArray:b.default.any,setPointsArray:b.default.func,value:b.default.string,setValue:b.default.func,imageURL:b.default.string,setImageURL:b.default.func,id:b.default.string},Fl.defaultProps={customInputStyle:{},placeholderText:"Type your signature here",pointsArray:null,setPointsArray:()=>{},value:"",setValue:()=>{},imageURL:"",setImageURL:()=>{},setValueForSignatureDrawing:()=>{},id:""};const jl=h.default.div`
|
|
1769
1769
|
background-color: ${({theme:e})=>e.additional.white};
|
|
1770
1770
|
//Set the styles from the default styles object
|
|
1771
1771
|
${({inBuiltCss:e,defaultWrapperStyle:t})=>W(e,t)}
|
|
@@ -1974,7 +1974,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
1974
1974
|
`,pa=h.default.div`
|
|
1975
1975
|
width: 100%;
|
|
1976
1976
|
margin-left: 16px;
|
|
1977
|
-
`,ua=({commentsArray:e,customStyles:a,myInfoAvatarProps:o,loading:r,viewOnly:i,textInputProps:c,saveBtnProps:n,cancelBtnProps:d,loadMore:s,avatarProps:p,message:u})=>{const f=l.useTheme()||I,[m,b]=t.useState(!1),[h,C]=t.useState(e||[]),
|
|
1977
|
+
`,ua=({commentsArray:e,customStyles:a,myInfoAvatarProps:o,loading:r,viewOnly:i,textInputProps:c,saveBtnProps:n,cancelBtnProps:d,loadMore:s,avatarProps:p,message:u})=>{const f=l.useTheme()||I,[m,b]=t.useState(!1),[h,C]=t.useState(e||[]),y=async e=>{let t;t="post"===e?await n.callback():await s.callback(),C((e=>[...e,...t]))};return g.default.createElement(oa,{commentWrapperStyle:a?.commentWrapperStyle,theme:f},h.map(((e,t)=>{const{name:l,date:o,comment:r,image:i}=e;return g.default.createElement(ra,{key:t,commentBodyStyle:a?.commentBodyStyle,theme:f},g.default.createElement(ia,{commentHeadStyle:a?.commentHeadStyle},g.default.createElement(Le,E({user:{fullName:l,userName:l,url:i},toggleName:!0,size:"LG",customStylesName:{color:f.additional["text-color"]}},p)),g.default.createElement(ca,{dateTimeStyle:a?.dateTimeStyle,theme:f},o)),g.default.createElement(na,{commentDivStyle:a?.commentDivStyle},r))})),!r&&0===h.length&&u,r&&g.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:"24px"}},g.default.createElement(se,{size:25})),!r&&s.showLoadMore&&g.default.createElement("div",{className:"load-more"},g.default.createElement(fe,{onClick:()=>y("load")},"Load more")),!i&&g.default.createElement(da,{theme:f,inputWrapperStyle:a?.inputWrapperStyle},g.default.createElement(Le,E({toggleName:!1,customStylesImage:{height:"36px",width:"36px"},customStylesContainer:{marginTop:"7px"}},o)),g.default.createElement(pa,null,g.default.createElement(Gl,E({onChange:e=>{c.setInputValue(e.target.value)},isValid:!0,onFocus:e=>b(!0)},c)),m&&g.default.createElement(sa,null,g.default.createElement(ge,E({onClick:e=>{y("post"),c.setInputValue(e.target.value)}},n),n.text),g.default.createElement(fe,E({disabled:!(!d?.isLoading&&!n?.isLoading),onClick:()=>{b(!1),c.setInputValue(""),c.setValidValue({isValid:!0,errMsg:""})},btnStyle:{color:f.variant["neutral-1"]}},d),d.text)))))};ua.propTypes={commentsArray:b.default.array,customStyles:b.default.object,myInfoAvatarProps:b.default.object,viewOnly:b.default.bool,textInputProps:b.default.object,saveBtnProps:b.default.object,cancelBtnProps:b.default.object,loadMore:b.default.object,avatarProps:b.default.object,message:b.default.element},ua.defaultProps={commentsArray:[],customStyles:{commentBodyStyle:{},commentWrapperStyle:{},commentHeadStyle:{},dateTimeStyle:{},commentDivStyle:{},inputWrapperStyle:{}},myInfoAvatarProps:{},loading:!1,viewOnly:!1,textInputProps:{},saveBtnProps:{size:"sm",text:"Save"},cancelBtnProps:{size:"sm",text:"Cancel"},loadMore:{showLoadMore:!1,callback:()=>{}},avatarProps:{},message:g.default.createElement("span",{style:{textAlign:"center",display:"block",marginBottom:"16px"}},"No comments yet")};const fa=h.default.div`
|
|
1978
1978
|
//Set the styles from the default styles object
|
|
1979
1979
|
${({theme:e,type:t})=>W(e,t)}
|
|
1980
1980
|
@media (max-width: 980px) {
|
|
@@ -2095,7 +2095,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2095
2095
|
max-width: 1340px;
|
|
2096
2096
|
width: 100%;
|
|
2097
2097
|
align-items: center;
|
|
2098
|
-
`,
|
|
2098
|
+
`,ya=h.default.div`
|
|
2099
2099
|
position: absolute;
|
|
2100
2100
|
font-size: 12px;
|
|
2101
2101
|
border-radius: 50%;
|
|
@@ -2112,7 +2112,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2112
2112
|
transform: translate(30%, -30%);
|
|
2113
2113
|
color: white;
|
|
2114
2114
|
font-weight: 600;
|
|
2115
|
-
`,
|
|
2115
|
+
`,xa=h.default.div`
|
|
2116
2116
|
width: 90%;
|
|
2117
2117
|
`,va=h.default.div`
|
|
2118
2118
|
background: linear-gradient(
|
|
@@ -2440,7 +2440,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2440
2440
|
display: flex;
|
|
2441
2441
|
justify-content: center;
|
|
2442
2442
|
align-items: center;
|
|
2443
|
-
`,_a="LEFT",eo="RIGHT",to=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},lo=({totalRecords:e,pageNeighbours:a,onPageChanged:o,currentPageNumber:r,propsDropdownSelect:i,showRowsPerPage:c})=>{let n=i?.selectedValue?.value||10;0==n?n=1:n>e&&(n=e);const[d,s]=t.useState(r),[p,u]=t.useState(r),[f,m]=t.useState(Math.ceil(e/n)),[b,h]=t.useState({from:0,to:0}),C=l.useTheme()||I,{width:
|
|
2443
|
+
`,_a="LEFT",eo="RIGHT",to=(e,t,l=1)=>{let a=e;const o=[];for(;a<=t;)o.push(a),a+=l;return o},lo=({totalRecords:e,pageNeighbours:a,onPageChanged:o,currentPageNumber:r,propsDropdownSelect:i,showRowsPerPage:c})=>{let n=i?.selectedValue?.value||10;0==n?n=1:n>e&&(n=e);const[d,s]=t.useState(r),[p,u]=t.useState(r),[f,m]=t.useState(Math.ceil(e/n)),[b,h]=t.useState({from:0,to:0}),C=l.useTheme()||I,{width:y}=ae();a=y<512?0:y<768?1:a,t.useEffect((()=>{m(Math.ceil(e/n)),d?(x(d>f?1:d),s(0)):x(1)}),[n]),t.useEffect((()=>{h({from:1+(p-1)*n,to:p*n>e?e:p*n})}),[p]);const x=t=>{const l=Math.max(0,Math.min(t,f));u(l);o({currentPage:l,totalPages:f,totalRecords:e})},v=e=>t=>{t.preventDefault(),x(e)},w=e=>{e.preventDefault();let t=p-2*(a||1)-1;x(0===t?1:t)},A=e=>{e.preventDefault(),x(p+2*(a||1)+1)};if(!e||0===n)return null;const S=(()=>{const e=2*a+3;if(f>e+3){const t=Math.max(2,p-a),l=Math.min(f-1,p+a);let o=to(t,l);const r=t>2,i=f-l>1,c=e-(o.length+1);switch(!0){case r&&!i:{const e=to(t-c,t-1);o=[_a,...e,...o];break}case!r&&i:{const e=to(l+1,l+c);o=[...o,...e,eo];break}default:o=[_a,...o,eo]}return[1,...o,f]}return to(1,f)})();return g.default.createElement(Na,{theme:C,showRowsPerPage:c},g.default.createElement(Ka,{theme:C},g.default.createElement(Qa,{onClick:1!==p?v(p-1):null,disabled:1===p,theme:C},g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:"#BBC4CF",customstyles:{cursor:1===p?"not-allowed":"pointer"}}),g.default.createElement("span",{id:"prev-text",className:"prev-text"}," ","PREVIOUS")),S.map(((e,t)=>e===_a?g.default.createElement("li",{key:t,className:"page-item"},g.default.createElement("div",{className:"page-link",onClick:w},g.default.createElement("span",{className:"text"},g.default.createElement(Q,{icon:"load-more",color:"#081348",transform:"rotate(90deg)"})),g.default.createElement("span",{className:"icon"},g.default.createElement(Q,{icon:"ellipses-horizontal",color:"#081348"}))," ")):e===eo?g.default.createElement("li",{key:t,className:"page-item"},g.default.createElement("div",{className:"page-link",onClick:A},g.default.createElement("span",{className:"text"},g.default.createElement(Q,{icon:"load-more",color:C.primary["primary-2"],transform:"rotate(-90deg)"})),g.default.createElement("span",{className:"icon"},g.default.createElement(Q,{icon:"ellipses-horizontal",color:C.primary["primary-2"]})))):g.default.createElement("li",{key:t,className:"page-item"+(p===e?" active":"")},g.default.createElement("div",{className:"page-link",onClick:v(e)},e)))),g.default.createElement(Qa,{onClick:p!==f?v(p+1):null,disabled:p===f,theme:C},g.default.createElement("span",{id:"next-text",className:"next-text"}," ","NEXT"),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:"#BBC4CF",customstyles:{cursor:p===f?"not-allowed":"pointer"}}))),c&&g.default.createElement($a,null,g.default.createElement("span",{style:{margin:"0 16px",color:C.variant["neutral-3"],fontSize:"12px"}},"Rows Per Page"),g.default.createElement(Ot,E({customSelectStyles:{menu:e=>({...e,border:"none",marginTop:"1px",borderTopRightRadius:"0px",borderTopLeftRadius:"0px",outline:"none",boxShadow:"0px 6px 20px rgba(56, 66, 100, 0.15)",borderRadius:"4.32px",fontSize:"14px",width:"100%",maxWidth:"100px"}),control:(e,t)=>({...e,border:"1px solid transparent",borderRadius:"6.25391px",height:"31px",minHeight:"31px",boxShadow:(t.isSelected||t.isFocused)&&"none",backgroundColor:"#F2F4FE",maxWidth:"100px",minWidth:"50px"}),singleValue:e=>({...e,fontSize:"12px",marginLeft:"0px",width:"100",marginRight:0})},customWrapperStyles:{marginRight:"16px"},isSearchable:!1,optionArr:[{value:10,label:10},{value:20,label:20},{value:30,label:30}]},i)),g.default.createElement("span",{style:{color:C.variant["neutral-3"],fontSize:"12px"}},b?.from,"-",b?.to," of"," ",g.default.createElement("span",{style:{color:C.variant["neutral-1"]}},e)," ","Results")))};lo.propTypes={totalRecords:b.default.number.isRequired,pageNeighbours:b.default.number,onPageChanged:b.default.func,showRowsPerPage:b.default.bool,currentPageNumber:b.default.number},lo.defaultProps={totalRecords:0,pageNeighbours:1,onPageChanged:()=>null,showRowsPerPage:!1};const ao=h.default.div`
|
|
2444
2444
|
display: flex;
|
|
2445
2445
|
align-items: center;
|
|
2446
2446
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
@@ -2522,7 +2522,7 @@ cursor: ${({isDisabled:e})=>e?"not-allowed":"pointer"};
|
|
|
2522
2522
|
margin: 0 10px;
|
|
2523
2523
|
color: ${({theme:e})=>e.variant["neutral-2"]};
|
|
2524
2524
|
}
|
|
2525
|
-
`,fo=({selectedPage:e,setSelectedPage:a,totalPage:o,customItemStyles:r,customLeftWrapperStyles:i,customIconWrapperStyles:c,previousText:n,nextText:d,pageToShow:s,totalResults:p,showResultPerPage:u,customParentStyles:f,customRightWrapperStyles:m,...b})=>{const h=l.useTheme()||I,[C,
|
|
2525
|
+
`,fo=({selectedPage:e,setSelectedPage:a,totalPage:o,customItemStyles:r,customLeftWrapperStyles:i,customIconWrapperStyles:c,previousText:n,nextText:d,pageToShow:s,totalResults:p,showResultPerPage:u,customParentStyles:f,customRightWrapperStyles:m,...b})=>{const h=l.useTheme()||I,[C,y]=t.useState([]);let x=s>o?o:s;t.useEffect((()=>{y(Array.from({length:x},((e,t)=>t+1)))}),[o,s,x]);const v=t=>{let l=[];"increase"===t&&C[x-1]<=o&&e!==C[x-1]?a(e+1):"increase"===t&&C[x-1]<o?(l=Array.from({length:x},((e,t)=>t+C[0]+1)),y(l),a(e+1)):"decrease"===t&&C[0]<=e-1?a(e-1):"decrease"===t&&e>1&&(y(Array.from({length:x},((e,t)=>t+C[0]-1))),a(e-1))};return g.default.createElement(io,{customParentStyles:f}," ",g.default.createElement(po,E({theme:h,customLeftWrapperStyles:i},b),g.default.createElement(no,E({onClick:()=>v("decrease"),disabled:1===e,theme:h,customIconWrapperStyles:c},b),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(90deg)",color:h.variant["neutral-3"]}),g.default.createElement("span",{className:"prev-text"}," ",n)),g.default.createElement(so,b,C.map(((t,l)=>g.default.createElement(co,{key:l,theme:h,selected:e===t,onClick:()=>a(t),customItemStyles:r},t)))),g.default.createElement(no,{onClick:()=>v("increase"),disabled:e===o,theme:h,customIconWrapperStyles:c},g.default.createElement("span",{className:"next-text"}," ",d),g.default.createElement(Q,{icon:"triangle-down",transform:"rotate(-90deg)",color:h.variant["neutral-3"]}))),u&&g.default.createElement(uo,{theme:h,customRightWrapperStyles:m},g.default.createElement(Ot,{optionArr:[{value:"10",label:"10"},{value:"20",label:"20"},{value:"30",label:"30"}],value:{value:"10",label:"10"},customWrapperStyles:{width:"fit-content"},isDisabled:!0,iconColor:h.variant["neutral-3"]}),g.default.createElement("p",{style:{marginBottom:0}},g.default.createElement("span",null,"OF")," ",p," ",g.default.createElement("span",null,"RESULTS"))))};fo.propTypes={customItemStyles:b.default.object,selectedPage:b.default.number,customLeftWrapperStyles:b.default.object,customIconWrapperStyles:b.default.object,previousText:b.default.string,nextText:b.default.string,pageToShow:b.default.number,totalResults:b.default.number,showResultPerPage:b.default.bool,customParentStyles:b.default.object,customRightWrapperStyles:b.default.object},fo.defaultProps={selectedPage:1,customItemStyles:{},customLeftWrapperStyles:{},customIconWrapperStyles:{},previousText:"PREVIOUS",nextText:"NEXT",pageToShow:5,totalResults:0,showResultPerPage:!1,customParentStyles:{},customRightWrapperStyles:{}};const mo=h.default.div`
|
|
2526
2526
|
box-sizing: border-box;
|
|
2527
2527
|
display: flex;
|
|
2528
2528
|
justify-content: center;
|
|
@@ -2560,11 +2560,11 @@ svg {
|
|
|
2560
2560
|
`}
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
`,ho=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:i,starVal:c,hover:n,...d})=>g.default.createElement(go,E({theme:e,ratingValue:i,starVal:c,hover:n,toggleSet:t,color:a,size:o,transform:r},d),g.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"starFilled"},g.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),g.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),g.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function Co(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function
|
|
2563
|
+
`,ho=({theme:e,toggleSet:t,slide:l,color:a,size:o,transform:r,ratingValue:i,starVal:c,hover:n,...d})=>g.default.createElement(go,E({theme:e,ratingValue:i,starVal:c,hover:n,toggleSet:t,color:a,size:o,transform:r},d),g.default.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",id:"star_filled","data-name":"star filled",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"starFilled"},g.default.createElement("path",{id:"Star",d:"M10,15,4.122,18.09l1.123-6.545L.489,6.91l6.572-.955L10,0l2.939,5.955,6.572.955-4.755,4.635,1.123,6.545Z",transform:"translate(2 3)",stroke:"#000",strokeMiterlimit:"10",strokeWidth:"1.5"}))),g.default.createElement("rect",{x:"0",y:"0",fill:"rgb(217,217,217)",width:"100%",height:"100%",clipPath:"url(#starFilled)"}),g.default.createElement("rect",{x:l,y:"0",fill:a,width:"100%",height:"100%",clipPath:"url(#starFilled)"})));function Co(e,t){let l=5*e/t;const a=[],o=l;for(let e=0;e<5;e++){if(l-1>=0)a.push("0");else if(l-1<0&&l-1>-1){const e=(24*l-24).toString();a.push(e)}else a.push("-24");l-=1}return{array:a,value:o}}function yo(e,t){return 100*e/t}const xo=({type:e,customStylesContainer:a,customStylesStar:o,customStylesPercentage:r,color:i,size:c,handleClick:n,transform:d,maxRange:s,value:p,toggleStar:u,toggleSet:f,identifier:m,...b})=>{l.useTheme();const[h,C]=t.useState(void 0),[y,x]=t.useState(void 0),[v,w]=t.useState(void 0),[A,S]=t.useState(void 0);t.useEffect((()=>{C(Co(p,s).array),x(Co(p,s).value),w(yo(p,s))}),[p,s]),t.useEffect((()=>{A?C(Co(A,s).array):(C(Co(p,s).array),x(Co(p,s).value),w(yo(p,s)))}),[A]);const k=g.default.createElement(g.default.Fragment,null,h?.map(((e,t)=>{const l=20*(t+1);return g.default.createElement(ho,{ratingValue:l,starVal:y,hover:A,toggleSet:f,onClick:f?()=>n(l):null,onMouseEnter:f?()=>{S(l)}:null,onMouseLeave:f?()=>{S(null)}:null,slide:e,color:i,className:"star",size:c,transform:d,key:m?.concat(t),customStyles:o})})));return g.default.createElement(mo,E({customStyles:a,type:e,size:c},b,{className:"container"}),u?k:g.default.createElement(bo,{type:e,customStyles:r},v,"%"))};xo.propTypes={customStylesContainer:b.default.object,customStylesStar:b.default.object,customStylesPercentage:b.default.object,type:b.default.string,color:b.default.string,size:b.default.number,transform:b.default.object,handleClick:b.default.func,maxRange:b.default.number,value:b.default.number,toggleStar:b.default.bool,toggleSet:b.default.bool,identifier:b.default.string},xo.defaultProps={customStylesContainer:null,customStylesStar:null,customStylesPercentage:null,type:"star",maxRange:100,value:0,identifier:"ratingKey",toggleStar:!0,toggleSet:!1,color:"#F7B001"};const vo=h.default.div`
|
|
2564
2564
|
.form-check-input {
|
|
2565
2565
|
accent-color: ${({theme:e})=>e.primary["primary-1"]};
|
|
2566
2566
|
}
|
|
2567
|
-
`,wo=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:i,progressPending:c,defaultSortFieldId:n,handleOnSort:d,sortServer:s,progressComponent:p,responsive:u,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,checkboxColor:h,...C})=>{let
|
|
2567
|
+
`,wo=({customStyles:e,inBuiltCss:t,type:a="table",sortIcon:o,data:r,tableColumns:i,progressPending:c,defaultSortFieldId:n,handleOnSort:d,sortServer:s,progressComponent:p,responsive:u,conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,checkboxColor:h,...C})=>{let y={};if(t&&t[a]&&(y=t[a]),e)for(const t in e)y[t]=e[t];const x=l.useTheme()||I,v=g.default.forwardRef((({onClick:e,...t},l)=>g.default.createElement(vo,{theme:x},g.default.createElement("input",E({type:"checkbox",className:"form-check-input",ref:l,onClick:e},t)))));return g.default.createElement(S.default,E({responsive:u,data:r,columns:i,noHeader:!0,highlightOnHover:!0,sortIcon:o,progressPending:c,customStyles:y,defaultSortFieldId:n,progressComponent:p||void 0,sortServer:s,onSort:(e,t,l)=>{d(e,t,l)},conditionalRowStyles:f,fixedHeader:m,fixedHeaderScrollHeight:b,selectableRowsComponent:v},C))};wo.propTypes={inBuiltCss:b.default.object,sortIcon:b.default.any,data:b.default.array,tableColumns:b.default.array,progressPending:b.default.bool,progressComponent:b.default.any,defaultSortFieldId:b.default.number,sortServer:b.default.bool,handleOnSort:b.default.any,responsive:b.default.bool,conditionalRowStyles:b.default.array,fixedHeader:b.default.bool,fixedHeaderScrollHeight:b.default.string,customStyle:b.default.object},wo.defaultProps={inBuiltCss:P,sortIcon:g.default.createElement(Q,{icon:"arrow-down",size:11,color:"#333333",style:{transform:"scaleX(0.7) scaleY(0.7) translate(5px, -3px)"}}),data:[],tableColumns:[],progressPending:!1,defaultSortFieldId:null,handleOnSort:(e,t,l)=>{},sortServer:null,progressComponent:void 0,responsive:!0,fixedHeader:!0,fixedHeaderScrollHeight:"100%"};const Ao=({title:e,subtitle:t,wrapperStyle:a,imgLink:o,imgStyle:r,iconSize:i})=>{const c=l.useTheme()||I,n={fontSize:"26px",fontWeight:"bold",color:`${c.additional["text-color"]}`,lineHeight:"36px",display:"flex",gap:"14px",alignItems:"flex-start",paddingLeft:"25px"},d={fontSize:"13px",color:`${c.neutral["neutral-2"]}`,lineHeight:"24px",paddingLeft:"25px"};return g.default.createElement("div",{style:a},g.default.createElement("div",{style:n},o?g.default.createElement("img",{src:o,alt:"userIcon",style:r}):g.default.createElement(Q,{icon:"user-icon",size:i,color:c.primary["primary-1"]})," ",g.default.createElement("h4",null,e)),g.default.createElement("div",{style:d},g.default.createElement("p",null,t)))};Ao.propTypes={size:b.default.number},Ao.defaultProps={iconSize:23};const So=l.createGlobalStyle`
|
|
2568
2568
|
@font-face {
|
|
2569
2569
|
font-family: "Averta";
|
|
2570
2570
|
font-weight: 100;
|
|
@@ -2732,7 +2732,7 @@ svg {
|
|
|
2732
2732
|
justify-content: space-evenly;
|
|
2733
2733
|
flex-grow: 1;
|
|
2734
2734
|
align-items: stretch;
|
|
2735
|
-
`,Bo=({label:e,index:t,style:a,items:r,variant:i,borderVariant:c,bgVariant:n,variantDisable:d,variantBgDisable:s,disabled:p,divider:u,indexPrefix:f,onClick:m,icon:b,variantTPtext:h,variantTPbg:C,...
|
|
2735
|
+
`,Bo=({label:e,index:t,style:a,items:r,variant:i,borderVariant:c,bgVariant:n,variantDisable:d,variantBgDisable:s,disabled:p,divider:u,indexPrefix:f,onClick:m,icon:b,variantTPtext:h,variantTPbg:C,...y})=>{l.useTheme();const{getArrowProps:x,getTooltipProps:v,setTooltipRef:w,setTriggerRef:A,visible:S}=o.usePopperTooltip();return g.default.createElement(g.default.Fragment,null,g.default.createElement(Ho,{ref:A},g.default.createElement(Lo,{variant:i,borderVariant:c,bgVariant:n,variantDisable:d,variantBgDisable:s,disabled:p,onClick:p?null:()=>{m(m)}},b),u),S&&g.default.createElement(Mo,E({variantTPtext:h,variantTPbg:C,ref:w},v({className:"tooltip-container"})),e,g.default.createElement("div",x({className:"tooltip-arrow"}))))};Bo.propTypes={variant:b.default.string,borderVariant:b.default.string,bgVariant:b.default.string,variantDisable:b.default.string,variantBgDisable:b.default.string,indexPrefix:b.default.string,theme:b.default.object,items:b.default.array,allDisabled:b.default.bool,divider:b.default.any,onClick:b.default.func,variantTPtext:b.default.string,variantTPbg:b.default.string},Ho.defaultProps={theme:I},Lo.defaultProps={theme:I},Mo.defaultProps={theme:I},Bo.defaultProps={theme:I,indexPrefix:"btn-group",borderVariant:"neutral-4",bgVariant:"white",variantDisable:"neutral-2",variantBgDisable:"white",variantTPtext:null,variantTPbg:null};const zo=h.default.div`
|
|
2736
2736
|
display: flex;
|
|
2737
2737
|
justify-content: space-evenly;
|
|
2738
2738
|
align-items: stretch;
|
|
@@ -2887,7 +2887,7 @@ svg {
|
|
|
2887
2887
|
${({customModalFooterStyle:e})=>e}
|
|
2888
2888
|
`;h.default.div`
|
|
2889
2889
|
cursor: pointer;
|
|
2890
|
-
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const er=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:c,customModalBodyStyle:n,customModalFooterStyle:d,customWidth:s,customMinWidth:p,customMaxWidth:u,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...C})=>{const
|
|
2890
|
+
`;try{k.default.setAppElement("#root")}catch(e){k.default.setAppElement("#__next")}const er=({modalIsOpen:e,toggleModal:t,closeOnOutsideClick:a,headerContent:o,bodyContent:r,footerContent:i,customModalHeaderStyle:c,customModalBodyStyle:n,customModalFooterStyle:d,customWidth:s,customMinWidth:p,customMaxWidth:u,contentStyle:f,contentWrapperStyle:m,customZIndex:b,hideCrossIcon:h,...C})=>{const y={overlay:{zIndex:b,backgroundColor:"rgb(51 51 51 / 30%)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",borderRadius:"8px",padding:"0px",minWidth:p,overflow:"hidden",border:`1px solid ${(l.useTheme()||I).border}`,boxShadow:"0px 15px 40px 11px rgba(26, 36, 107, 0.132867)",width:s&&s,maxWidth:u&&u,...f}};return g.default.createElement("div",null,g.default.createElement(k.default,E({closeTimeoutMS:500,isOpen:e,onRequestClose:a?t:void 0,style:y,contentLabel:"Modal",onAfterOpen:()=>{try{document.body.style.overflow="hidden"}catch(e){console.log("error in modal onAfterOpen",e)}},onAfterClose:()=>{try{document.body.style.overflow="auto"}catch(e){console.log("error in modal onAfterClose",e)}}},C),o&&g.default.createElement(Qo,{style:c,"data-accordion":"contentClickFalse"},o,!h&&g.default.createElement(fe,{onClick:t},g.default.createElement(Q,{onClick:t,icon:"close-icon",size:18}))),!o&&!h&&g.default.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginRight:"24px",paddingTop:"24px"}},g.default.createElement("div",null),g.default.createElement(fe,{onClick:t},g.default.createElement(Q,{onClick:t,icon:"close-icon",size:18}))),g.default.createElement($o,{contentWrapperStyle:m,"data-accordion":"contentClickFalse"},g.default.createElement(Ko,{inBuiltCss:P,style:n,"data-accordion":"contentClickFalse"},r),i&&g.default.createElement(_o,{inBuiltCss:P,style:d,"data-accordion":"contentClickFalse"},i))),g.default.createElement(No,null))};er.propTypes={modalIsOpen:b.default.bool,toggleModal:b.default.func,closeOnOutsideClick:b.default.bool,headerContent:b.default.any,hideCrossIcon:b.default.bool,bodyContent:b.default.any,footerContent:b.default.any,customModalHeaderStyle:b.default.object,customModalBodyStyle:b.default.object,customModalFooterStyle:b.default.object,customMinWidth:b.default.string,contentStyle:b.default.object,contentWrapperStyle:b.default.object,customZIndex:b.default.number},er.defaultProps={modalIsOpen:!1,toggleModal:()=>{},closeOnOutsideClick:!1,headerContent:"",bodyContent:"",footerContent:"",customModalHeaderStyle:{},customModalBodyStyle:{},customModalFooterStyle:{},customMinWidth:"40vw",customWidth:"",customMaxWidth:"",contentStyle:{},contentWrapperStyle:{},customZIndex:9999999,hideCrossIcon:!1};const tr=h.default.div`
|
|
2891
2891
|
${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.common)a[t]=e.common[t];for(const l in e[t])a[l]=e[t][l],delete e.common[l]}return{...a,...l}}}}
|
|
2892
2892
|
}
|
|
2893
2893
|
`,lr=({theme:e,toggleSimple:t,contentTrigger:l,contentOverlay:a,popperOptionsP:r,settingsP:i,customStyles:c,...n})=>{let d={},s={};t?(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s}):(d={...d,modifiers:[{name:"offset",options:{offset:[0,5]}}],strategy:"absolute"},s={...s,trigger:"click",closeOnOutsideClick:!0,interactive:!0}),d={...d,...r},s={...s,...i};const{getArrowProps:p,getTooltipProps:u,setTooltipRef:f,setTriggerRef:m,visible:b}=o.usePopperTooltip({...s},d);return g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{ref:m,style:{width:"fit-content",height:"fit-content"}},l),b&&g.default.createElement(tr,E({type:t?"simple-overlay":"overlay",theme:e,ref:f},u({className:"tooltip-container"}),{customStyles:c}),a))};lr.propTypes={theme:b.default.object,contentTrigger:b.default.any,contentOverlay:b.default.any,popperOptionsP:b.default.object,settingsP:b.default.object,customStyles:b.default.object,toggleSimple:b.default.bool},lr.defaultProps={theme:P,contentTrigger:g.default.createElement("div",null,"Trigger"),contentOverlay:g.default.createElement("div",null,"I am the Overlay")};const ar=h.default.div`
|
|
@@ -2912,7 +2912,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2912
2912
|
// custom styles
|
|
2913
2913
|
${({progressBarStyle:e})=>e}
|
|
2914
2914
|
|
|
2915
|
-
`,rr=({labelStyle:e,progressBarStyle:a,progressWrapStyle:o,label:r,total:i,sections:c,innerContent:n,baseColor:d,baseTitle:s,labelProps:p,props:u})=>{const f=l.useTheme()||I,[m,b]=t.useState([[]]),[h,C]=t.useState(null);t.useEffect((()=>{c&&c.length>0&&b(c)}),[c]);const
|
|
2915
|
+
`,rr=({labelStyle:e,progressBarStyle:a,progressWrapStyle:o,label:r,total:i,sections:c,innerContent:n,baseColor:d,baseTitle:s,labelProps:p,props:u})=>{const f=l.useTheme()||I,[m,b]=t.useState([[]]),[h,C]=t.useState(null);t.useEffect((()=>{c&&c.length>0&&b(c)}),[c]);const y=m?.length>0?m?.reduce(((e,t)=>e+t.count),0):0;y>i&&(i=y);const x=m?.length>0?m?.map((e=>e.count/i*100)):[],v=null!==h?m[h].label:s;return g.default.createElement("div",null,g.default.createElement($e,E({inBuiltCss:P,customStyles:e,type:"progressBar-label",text:r},p)),g.default.createElement(ar,E({theme:f,progressWrapStyle:o,color:d,title:v},u),m?.map(((e,t)=>g.default.createElement(or,E({key:t,onMouseEnter:()=>C(t),onMouseLeave:()=>C(null),progressBarStyle:a,theme:f,color:e.color,style:{width:x[t]+"%",left:0===t?0:x.slice(0,t).reduce(((e,t)=>e+t),0)+"%"}},u)))),g.default.createElement("div",{style:{position:"absolute",textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",top:"50%",left:"50%",transform:"translate(-50%, -50%)",cursor:"default"},onMouseEnter:e=>((e,t)=>{e.stopPropagation(),C(t)})(e,h),onMouseLeave:e=>{e.stopPropagation(),C(null)}},n)))};rr.propTypes={labelStyle:b.default.object,progressBarStyle:b.default.object,progressWrapStyle:b.default.object,sections:b.default.arrayOf(b.default.shape({color:b.default.string.isRequired,percentage:b.default.number,count:b.default.number.isRequired})).isRequired},rr.defaultProps={labelStyle:{},progressBarStyle:{},progressWrapStyle:{},label:"",total:100,innerContent:"",baseColor:"",baseTitle:"Total Task",labelProps:{},props:{}};const ir=h.default.div`
|
|
2916
2916
|
background: transparent;
|
|
2917
2917
|
display: flex;
|
|
2918
2918
|
align-items: center;
|
|
@@ -2996,7 +2996,7 @@ ${({theme:e,type:t,customStyles:l})=>{if(e){let a={};if(e[t]){for(const t in e.c
|
|
|
2996
2996
|
fill: #929EAC;
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
`,gr=({block:e,style:t,variant:a,borderVariant:o,disabled:r,...i})=>(l.useTheme(),g.default.createElement(br,E({block:e,variant:a,borderVariant:o,type:"button",style:t,disabled:r},i),i.children));gr.propTypes={variant:b.default.string,borderVariant:b.default.string,disabled:b.default.bool,block:b.default.bool,onClick:b.default.func,theme:b.default.object},br.defaultProps={theme:I},gr.defaultProps={theme:I,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const hr={width:"auto",padding:0,boxShadow:"none",background:"transparent"},Cr={background:"transparent",border:"none",color:"white",fontSize:"16px",boxShadow:"none",borderRadius:0,padding:"8px 0 8px"},
|
|
2999
|
+
`,gr=({block:e,style:t,variant:a,borderVariant:o,disabled:r,...i})=>(l.useTheme(),g.default.createElement(br,E({block:e,variant:a,borderVariant:o,type:"button",style:t,disabled:r},i),i.children));gr.propTypes={variant:b.default.string,borderVariant:b.default.string,disabled:b.default.bool,block:b.default.bool,onClick:b.default.func,theme:b.default.object},br.defaultProps={theme:I},gr.defaultProps={theme:I,variant:"primary-2",borderVariant:"neutral-3",block:!1,disabled:!1,onClick:void 0};const hr={width:"auto",padding:0,boxShadow:"none",background:"transparent"},Cr={background:"transparent",border:"none",color:"white",fontSize:"16px",boxShadow:"none",borderRadius:0,padding:"8px 0 8px"},yr={borderTop:"none",transition:"height ease 0.3s, transform ease 95ms",overflow:"hidden",padding:0,background:"transparent",borderRadius:0,boxShadow:"none"},xr={float:"right",marginRight:"8px",marginTop:"3px"},vr={boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},wr={padding:0,boxShadow:"none",borderRadius:0,backgroundColor:"transparent"},Ar={transition:"height ease 0.2s",overflow:"hidden",padding:"0",backgroundColor:"transparent",color:"white",position:"relative",boxShadow:"none"},Sr={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"16px",fontWeight:"600"},kr={wordBreak:"break-word",paddingRight:"16px",fontWeight:"600"},Er={padding:"0px 16px 0 0",marginLeft:"30px",height:"auto"},Vr=h.default.div`
|
|
3000
3000
|
display: flex;
|
|
3001
3001
|
flex-direction: column;
|
|
3002
3002
|
height: ${({toggleSideBarOpen:e})=>"100vh"};
|
|
@@ -3117,7 +3117,7 @@ ${({forceOpen:e,inBuiltCss:t,customStylesPusherOpen:l,customStylesPusherClose:a}
|
|
|
3117
3117
|
@media (max-width: 980px) {
|
|
3118
3118
|
${({inBuiltCss:e,type:t,customStylesPusherMobile:l})=>({...W(e,"sidebar-pusher-mobile"),...l})}
|
|
3119
3119
|
}
|
|
3120
|
-
`,Pr=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:i,customStylesPusherOpen:c,customStylesPusherClose:n,customStylesPusherMobile:d,forceOpen:s,forceClose:p,handleSidebar:u,toggleSideBarOpen:f,pinner:m,containerBackgroundColor:b,containerBackgroundColorDynamic:h,hideMenu:C,...
|
|
3120
|
+
`,Pr=({customStylesContainer:e,customStylesContainerOpen:t,customStylesContainerClose:a,customStylesContainerMobileOpen:o,customStylesContainerMobileClose:r,customStylesPusher:i,customStylesPusherOpen:c,customStylesPusherClose:n,customStylesPusherMobile:d,forceOpen:s,forceClose:p,handleSidebar:u,toggleSideBarOpen:f,pinner:m,containerBackgroundColor:b,containerBackgroundColorDynamic:h,hideMenu:C,...y})=>{function x(e){u(e)}const v=l.useTheme()||I;return g.default.createElement(zr,E({theme:v,containerBackgroundColor:b,containerBackgroundColorDynamic:h,inBuiltCss:P,customStyles:e,hideMenu:C,onMouseEnter:()=>{s||x(!0)},onClick:()=>!f&&x(!0),onMouseLeave:()=>{x(!1),p()},forceOpen:s,isOpen:f},y),g.default.createElement(Ir,null),y.children,m)};Pr.propTypes={customStylesContainer:b.default.object,customStylesContainerOpen:b.default.object,customStylesContainerClose:b.default.object,customStylesContainerMobileOpen:b.default.object,customStylesContainerMobileClose:b.default.object,customStylesPusher:b.default.object,customStylesPusherOpen:b.default.object,customStylesPusherClose:b.default.object,customStylesPusherMobile:b.default.object,forceOpen:b.default.bool,forceClose:b.default.func,handleSidebar:b.default.func,toggleSideBarOpen:b.default.bool,pinner:b.default.any,hideMenu:b.default.bool},Pr.defaultProps={forceClose:()=>{},forceOpen:!1,containerBackgroundColor:"#2A50FD",containerBackgroundColorDynamic:!1,hideMenu:!1};const Wr={sm:{fontSize:"14px",padding:"11px 36px"},md:{fontSize:"16px",padding:"10px 24px"},lg:{fontSize:"22px",padding:"6px 29px"}},Rr=h.default.div`
|
|
3121
3121
|
background: ${({theme:e,variant:t})=>e.variant[t]};
|
|
3122
3122
|
color: ${({theme:e})=>e.additional.white};
|
|
3123
3123
|
padding: ${({size:e})=>Wr[e].padding};
|
|
@@ -3342,4 +3342,4 @@ overflow: hidden;
|
|
|
3342
3342
|
background: ${({theme:e,bg:t})=>t?e.variant[t]:e.additional.white};
|
|
3343
3343
|
font-size: ${({size:e})=>ai[e].fontSize};
|
|
3344
3344
|
line-height: ${({size:e})=>ai[e].lineHeight};
|
|
3345
|
-
`,ri=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||I;return g.default.createElement(oi,E({theme:i,bg:a,text:o,size:e},r),g.default.createElement(So,{theme:i}),t)};ri.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},ri.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=Aa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=Ae,exports.Avatar=Le,exports.AvatarSB=Pe,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=Bo,exports.Card=F,exports.CardRef=q,exports.CheckBoxInput=pt,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=ua,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=fr,exports.DateSelect=Ht,exports.DateTime=Zt,exports.Divider=Pa,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||I;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Ra,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=ja,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const c=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},i),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",c," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(Bl,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(pt,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(Fl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Ht,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(fo,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Pa,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(Ao,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(yo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(xe,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(zl,E({},e,a)))(e);case"table":return(e=>g.default.createElement(wo,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(yl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:I},g.default.createElement(za,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(La,null,e.map(((t,l)=>g.default.createElement(Ha,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=za,exports.GroupAvatars=Vo,exports.GroupButtons=Wo,exports.GroupButtonsPopup=Fo,exports.GroupStatusCircle=Xo,exports.Header=Ya,exports.HeaderComponent=Ao,exports.HyperLink=Yo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=gr,exports.LinkButton=fe,exports.Loader=ce,exports.ModalComp=er,exports.MultiColumnDiv=Ha,exports.MultiColumnWrapper=La,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:i,notSelectedStyle:c,customStylesNameHover:n,listElementStyle:d,customSelectCardColor:s,selectedAppPath:p,setSelectedAppPath:u,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h,singleLine:C=!0,customFontColor:x,sortByCore:y=!1,setInvalidPath:v,bottomIconProps:w,iconForBottom:A,staticBottom:S=!0})=>{const k=l.useTheme()||I,[V,M]=t.useState(null),[L,H]=t.useState(!1),[B,z]=t.useState([]);if(y){a.sort(((e,t)=>(!0===e.core?1:!1===e.core?0:-1)-(!0===t.core?1:!1===t.core?0:-1)));for(let e of a)if(!0===e.core&&"dynamic-bottom"!==e.type){e.border=!0;break}}let P=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{z(p?.split("/")||[]),b({});let e=p?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));W(t);try{v&&!t.id&&v(!0)}catch(e){console.log("e",e)}m(t?.id||null)}),[p]),t.useEffect((()=>{!o&&H(!1),!o&&M(null)}),[o]);const W=e=>{if(e?.path===p){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>W(e)))};let R=C?Sr:kr;const T=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&u(e.path,e.queryParams):!r&&u(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&B[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:x||k.additional.white,flexShrink:0}}),g.default.createElement("span",{id:e?.path.substring(1).replace(/\//g,"-"),style:{fontWeight:3===o&&B[2]===a[2]?"bold":"normal",color:x||k.variant.white}}," ",e?.link)),isAccordionOpen:p.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>T(e,t,l+8)))),customStylesAccordionContainer:hr,customStylesAccordionToggle:{cursor:"pointer",...Cr},customStylesAccordionContent:xr,showIconInfo:!1,customWrapperStyles:yr})}return g.default.createElement(Br,{singleLine:C,listElementStyle:d,customFontColor:x,key:e?.id+t,onClick:()=>{u(e.path,e?.queryParams?e.queryParams:"")},theme:k},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&p===e?.path&&B[B.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&p===e?.path?d?.selectedChildBG||k.additional.white:"transparent",fontWeight:o<=3&&p===e?.path&&B[B.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:x||k.variant.white}}," ",e?.link))};return g.default.createElement(Vr,{onClick:()=>H(!0),onMouseEnter:()=>H(!0),onMouseLeave:()=>{M(null),H(!1)},toggleSideBarOpen:o},g.default.createElement(Lr,{theme:k,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(Hr,{toggleSideBarOpen:o,staticLayerNo:P},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{M(t)},style:{backgroundColor:e?.value?.toLowerCase()===B[1]?.toLowerCase()?s:"transparent",borderTop:e?.border?"1px solid #BBC4CF":"none"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===V||L&&e?.value?.toLowerCase()===B[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...vr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...wr},customStylesAccordionContent:Ar,contentToggle:g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...c},toggleName:o,customStylesName:{...R,color:e.maintenance?k.variant["neutral-3"]:x||k.variant.white},customStylesCircle:{background:x||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:k.variant["neutral-3"]}):a.length-1===t&&S?g.default.createElement(Q,E({icon:A||"person",size:20,color:k.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}},w)):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Er},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>T(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...c},toggleName:!1,customStylesName:{...R,color:x||"inherit"},customStylesCircle:{background:x||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:k.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?k.variant["neutral-3"]:x||k.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Mr}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=lr,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=lo,exports.PaginationDefault=oo,exports.PaginationTypeTwo=fo,exports.PasswordInput=yl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Tr,exports.ProgressBar=rr,exports.ProgressSteps=sr,exports.RadioInput=El,exports.Rating=yo,exports.RoundedLoader=se,exports.SearchInput=zl,exports.SecondaryButton=xe,exports.SecondaryStatusChip=jr,exports.Sidebar=Pr,exports.SignatureInput=Fl,exports.SlimPrimaryStatusChip=Or,exports.SlimSecondaryStatusChip=Jr,exports.StatusCircle=qo,exports.StyledCentralBar=Ca,exports.StyledClearSearch=ha,exports.StyledCreateRow=ya,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=wa,exports.StyledWarning=xa,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(xe,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.Table=wo,exports.Tabs=Kr,exports.TextArea=Gl,exports.TextInput=Bl,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||li(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),i=t.useMemo((()=>({open:o,close:r})),[]),[c,n]=t.useState(!1);return t.useEffect((()=>(n(!0),()=>n(!1))),[]),g.default.createElement(ei.Provider,{value:i},e.children,c?f.createPortal(g.default.createElement(ti,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(_r,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=ri,exports.additionalColors=z,exports.createDarker=T,exports.defaultStyles=P,exports.defaultThemeColor=I,exports.getDefaultStyles=W,exports.graphColor=B,exports.hexToRGB=R,exports.neutralColor=L,exports.primaryColor=V,exports.shadeColor=H,exports.uiColor=M,exports.useToast=()=>t.useContext(ei);
|
|
3345
|
+
`,ri=({size:e,children:t,bg:a,text:o,...r})=>{const i=l.useTheme()||I;return g.default.createElement(oi,E({theme:i,bg:a,text:o,size:e},r),g.default.createElement(So,{theme:i}),t)};ri.propTypes={size:b.default.oneOf(["xs","sm","md","lg"]),text:b.default.string,bg:b.default.string,children:b.default.any,theme:b.default.object},ri.defaultProps={size:"md"},exports.Accordion=$,exports.AccordionSB=_,exports.ActionContainer=Aa,exports.ActionItem=Ea,exports.Alert=le,exports.ArrowBar=Ae,exports.Avatar=Le,exports.AvatarSB=Pe,exports.Banner=Te,exports.Breadcrumb=Qe,exports.ButtonPopup=Bo,exports.Card=F,exports.CardRef=q,exports.CheckBoxInput=pt,exports.ChipsInput=rt,exports.ColorInput=mt,exports.Comment=ua,exports.Content=ma,exports.CountryCodedPhoneInput=ht,exports.DarkSecondaryLink=fr,exports.DateSelect=Ht,exports.DateTime=Zt,exports.Divider=Pa,exports.DocumentCard=J,exports.DotPulseLoader=()=>{const e=l.useTheme()||I;return g.default.createElement(oe,{activeTheme:e},g.default.createElement("div",{className:"dot-pulse"}))},exports.Drawer=Ra,exports.DropdownSelect=Ot,exports.DropzoneInput=_t,exports.EditableInput=rl,exports.ErrorBoundary=Ta,exports.FilterChip=ja,exports.Footer=Da,exports.FooterContent=({variant:e,textColor:t,size:l,width:a,footerWidth:o,customStyles:r,...i})=>{const c=(new Date).getFullYear();return g.default.createElement(Oa,E({variant:e,textColor:t,footerWidth:o,customStyles:r},i),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Premise HQ"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"All Rights Restricted ",c," ©")),g.default.createElement(Ga,{footerWidth:o},g.default.createElement(Xa,{footerWidth:o},"Terms of use"),g.default.createElement(Ja,{footerWidth:o},"|"),g.default.createElement(Xa,{footerWidth:o},"Privacy Policy")))},exports.FormComponent=({formData:e,customStyles:l,...a})=>{const o=e=>{switch(e.type){case"header":return(e=>g.default.createElement(t.Fragment,null,g.default.createElement(Ya,E({},e,a),e.children),e))(e);case"label":return(e=>g.default.createElement($e,E({style:{marginBottom:"8px",paddingBottom:"0"}},e,a)))(e);case"text":return(e=>g.default.createElement(Bl,E({},e,a)))(e);case"textArea":return(e=>g.default.createElement(Gl,E({},e,a)))(e);case"number":return(e=>g.default.createElement(bl,E({},e,a)))(e);case"radio":return(e=>g.default.createElement(El,E({key:101*Math.random()|0},e,a)))(e);case"checkBox":return(e=>g.default.createElement(pt,E({},e,a)))(e);case"singleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"singleSelect"},e,a)))(e);case"multiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"multiSelect"},e,a)))(e);case"asyncSingleSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncSingleSelect"},e,a)))(e);case"asyncMultiSelect":return(e=>g.default.createElement(Ot,E({dropdownType:"asyncMultiSelect"},e,a)))(e);case"signature":return(e=>g.default.createElement(Fl,E({},e,a)))(e);case"fileUpload":return(e=>g.default.createElement(_t,E({},e,a)))(e);case"date":return(e=>g.default.createElement(Ht,E({},e,a)))(e);case"paginationTypeTwo":return(e=>g.default.createElement(fo,E({},e,a)))(e);case"toggle":return(e=>g.default.createElement(aa,E({},e,a)))(e);case"icon":return(e=>g.default.createElement(Q,E({},e,a)))(e);case"roundedLoader":return(e=>g.default.createElement(se,E({},e,a)))(e);case"alert":return(e=>g.default.createElement(le,E({},e,a)))(e);case"banner":return(e=>g.default.createElement(Te,E({},e,a)))(e);case"divider":return(e=>g.default.createElement(Pa,E({},e,a)))(e);case"headerComponent":case"headerComponent":return(e=>g.default.createElement(Ao,E({},e,a)))(e);case"documentCard":return(e=>g.default.createElement(J,E({},e,a)))(e);case"imageUploader":return(e=>g.default.createElement(sl,E({},e,a)))(e);case"accordion":return(e=>g.default.createElement($,E({},e,a)))(e);case"content":return(e=>g.default.createElement(ma,E({},e,a)))(e);case"rating":return(e=>g.default.createElement(xo,E({},e,a)))(e);case"buttonPrimary":return(e=>g.default.createElement(ge,E({},e,a)))(e);case"buttonSecondary":return(e=>g.default.createElement(ye,E({},e,a)))(e);case"buttonTiny":return(e=>g.default.createElement(ve,E({},e,a)))(e);case"buttonLink":return(e=>g.default.createElement(fe,E({},e,a)))(e);case"search":return(e=>g.default.createElement(zl,E({},e,a)))(e);case"table":return(e=>g.default.createElement(wo,E({},e,a)))(e);case"passwordInput":return(e=>g.default.createElement(xl,E({},e,a)))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Va,{defaultThemeColor:I},g.default.createElement(za,{onSubmit:()=>{},customStyles:l},e.map(((e,t)=>e.length>1?g.default.createElement(La,null,e.map(((t,l)=>g.default.createElement(Ha,{cols:e.length},o(t))))):o(e[0]))))))},exports.FormContainer=Va,exports.FormWrapper=za,exports.GroupAvatars=Vo,exports.GroupButtons=Wo,exports.GroupButtonsPopup=Fo,exports.GroupStatusCircle=Xo,exports.Header=Ya,exports.HeaderComponent=Ao,exports.HyperLink=Yo,exports.Icon=Q,exports.Image=ke,exports.ImageUploader=sl,exports.Label=$e,exports.LightSecondaryLink=gr,exports.LinkButton=fe,exports.Loader=ce,exports.ModalComp=er,exports.MultiColumnDiv=Ha,exports.MultiColumnWrapper=La,exports.Navbar=({headerContent:e,bodyContent:a,toggleSideBarOpen:o,headerStyles:r,selectedStyle:i,notSelectedStyle:c,customStylesNameHover:n,listElementStyle:d,customSelectCardColor:s,selectedAppPath:p,setSelectedAppPath:u,setSelectedAppPageId:f,setParentId:m,setRouterObject:b,notificationCircleStyles:h,singleLine:C=!0,customFontColor:y,sortByCore:x=!1,setInvalidPath:v,bottomIconProps:w,iconForBottom:A,staticBottom:S=!0})=>{const k=l.useTheme()||I,[V,M]=t.useState(null),[L,H]=t.useState(!1),[B,z]=t.useState([]);if(x){a.sort(((e,t)=>(!0===e.core?1:!1===e.core?0:-1)-(!0===t.core?1:!1===t.core?0:-1)));for(let e of a)if(!0===e.core&&"dynamic-bottom"!==e.type){e.border=!0;break}}let P=a?.filter((e=>!0===e.visibleAsMenu&&"bottom"===e.type.split("-")[1])).length;t.useEffect((()=>{z(p?.split("/")||[]),b({});let e=p?.split("/")||[],t=a&&a.find((t=>e[1]===t.path?.split("/")[1]));W(t);try{v&&!t.id&&v(!0)}catch(e){console.log("e",e)}m(t?.id||null)}),[p]),t.useEffect((()=>{!o&&H(!1),!o&&M(null)}),[o]);const W=e=>{if(e?.path===p){f(e?.id||null);let t={...e},l=e?.queryParams;l&&(t.path=e.path+l,t.link=e.link+l),b(t||null)}else e?.routes&&e?.routes.length>0&&e.routes.forEach((e=>W(e)))};let R=C?Sr:kr;const T=(e,t,l)=>{let a=e?.path.split("/"),o=a.length;if(e.routes&&e.routes.length>0){let r=e.routes.filter((e=>!0===e.visibleAsMenu)).length>0;return g.default.createElement(_,{key:e?.id+t,showIcon:!!r,contentToggle:g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center",marginLeft:`${l}px`},onClick:()=>{e?.queryParams?!r&&u(e.path,e.queryParams):!r&&u(e.path,"")}},g.default.createElement("span",{style:{visibility:3===o&&B[2]===a[2]?"visible":"hidden",marginRight:"16px",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:y||k.additional.white,flexShrink:0}}),g.default.createElement("span",{id:e?.path.substring(1).replace(/\//g,"-"),style:{fontWeight:3===o&&B[2]===a[2]?"bold":"normal",color:y||k.variant.white}}," ",e?.link)),isAccordionOpen:p.includes(e.path),setContentIsOpen:()=>{},toggleIconAnimation:!0,content:g.default.createElement("div",null,e.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>T(e,t,l+8)))),customStylesAccordionContainer:hr,customStylesAccordionToggle:{cursor:"pointer",...Cr},customStylesAccordionContent:yr,showIconInfo:!1,customWrapperStyles:xr})}return g.default.createElement(Br,{singleLine:C,listElementStyle:d,customFontColor:y,key:e?.id+t,onClick:()=>{u(e.path,e?.queryParams?e.queryParams:"")},theme:k},g.default.createElement("span",{className:"selected-disk",style:{visibility:o<=3&&p===e?.path&&B[B.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"visible":"hidden",marginRight:"16px"}}),g.default.createElement("span",{className:"link",style:{marginLeft:l-8+"px",padding:"4px 8px",borderRadius:"4px",backgroundColor:o>3&&p===e?.path?d?.selectedChildBG||k.additional.white:"transparent",fontWeight:o<=3&&p===e?.path&&B[B.length-1]?.toLowerCase()===a[o-1]?.toLowerCase()?"bold":"normal",color:y||k.variant.white}}," ",e?.link))};return g.default.createElement(Vr,{onClick:()=>H(!0),onMouseEnter:()=>H(!0),onMouseLeave:()=>{M(null),H(!1)},toggleSideBarOpen:o},g.default.createElement(Lr,{theme:k,headerStyles:r,toggleSideBarOpen:o},e),g.default.createElement(Hr,{toggleSideBarOpen:o,staticLayerNo:P},a&&a?.filter((e=>!0===e.visibleAsMenu))?.map(((e,t)=>g.default.createElement("div",{className:"service-layer",key:e?.value+t,onClick:()=>{M(t)},style:{backgroundColor:e?.value?.toLowerCase()===B[1]?.toLowerCase()?s:"transparent",borderTop:e?.border?"1px solid #BBC4CF":"none"}},"static"!==e.type.split("-")[0]?g.default.createElement(_,{index:t,underMaintenance:e.maintenance,isAccordionOpen:t===V||L&&e?.value?.toLowerCase()===B[1]?.toLowerCase(),isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),customSelectCardColor:s,customStylesAccordionContainer:{...vr,padding:"0px 0px 0px 0px"},customStylesAccordionToggle:{cursor:e.maintenance?"not-allowed":"pointer",...wr},customStylesAccordionContent:Ar,contentToggle:g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...c},toggleName:o,customStylesName:{...R,color:e.maintenance?k.variant["neutral-3"]:y||k.variant.white},customStylesCircle:{background:y||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:k.variant["neutral-3"]}):a.length-1===t&&S?g.default.createElement(Q,E({icon:A||"person",size:20,color:k.variant["primary-1"],customstyles:{backgroundColor:"white",borderRadius:"50%",padding:"8px",boxSizing:"content-box"}},w)):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),content:g.default.createElement("div",{style:Er},e.routes&&e?.routes.length>0&&e?.routes.filter((e=>!0===e.visibleAsMenu)).map(((e,t)=>T(e,t,0))))}):g.default.createElement("div",{style:{display:"flex",justifyContent:"start",alignItems:"center"}},g.default.createElement(Pe,{selectedStyle:{minWidth:"36px",minHeight:"36px",...i},notSelectedStyle:{minWidth:"36px",minHeight:"36px",...c},toggleName:!1,customStylesName:{...R,color:y||"inherit"},customStylesCircle:{background:y||"inherit"},customStylesNameHover:n,size:"MD",user:{userName:e?.label,url:e?.logo,appNameShortForm:e?.appNameShortForm},notificationCircleStyles:h,icon:e?.maintenance?g.default.createElement(Q,{icon:"maintenance",size:22,color:k.variant["neutral-3"]}):e?.icon?e?.icon:null,isSelected:e?.value?.toLowerCase()===B[1]?.toLowerCase(),notificationCount:e?.notificationCount,underMaintenance:e.maintenance}),e.element?e.element:g.default.createElement("a",{href:e.path,target:e.target||"_blank",rel:"noreferrer",style:{color:e.maintenance?k.variant["neutral-3"]:y||k.variant.white,cursor:e.maintenance?"not-allowed":"pointer",...Mr}},e.label)))))))},exports.NumericInput=bl,exports.Overlay=lr,exports.OverlayOptionContainer=Sa,exports.OverlayOptionItemLabel=ka,exports.PageContent=ba,exports.Pagination=lo,exports.PaginationDefault=oo,exports.PaginationTypeTwo=fo,exports.PasswordInput=xl,exports.PrimaryButton=ge,exports.PrimaryStatusChip=Tr,exports.ProgressBar=rr,exports.ProgressSteps=sr,exports.RadioInput=El,exports.Rating=xo,exports.RoundedLoader=se,exports.SearchInput=zl,exports.SecondaryButton=ye,exports.SecondaryStatusChip=jr,exports.Sidebar=Pr,exports.SignatureInput=Fl,exports.SlimPrimaryStatusChip=Or,exports.SlimSecondaryStatusChip=Jr,exports.StatusCircle=qo,exports.StyledCentralBar=Ca,exports.StyledClearSearch=ha,exports.StyledCreateRow=xa,exports.StyledRow=va,exports.StyledRowSearch=ga,exports.StyledSearchRow=wa,exports.StyledWarning=ya,exports.SubmitButtonContainer=Ma,exports.SubmitComponent=({formData:e,onSubmit:l,onReset:a,style:o,...r})=>{const i=e=>{switch(e.type){case"submit":return(e=>g.default.createElement(ge,{block:e.block,style:e.style,disabled:e.disabled,type:"submit",children:e.children,onClick:()=>{e.onClick()}}))(e);case"reset":case"cancel":return(e=>g.default.createElement(ye,{block:e.block,disabled:r.disabled,children:e.children,onClick:()=>{e.onClick()}}))(e)}};return g.default.createElement(t.Fragment,null,g.default.createElement(Ma,{style:o},e&&e.map(((e,t)=>e.map(((e,t)=>i(e)))))))},exports.Table=wo,exports.Tabs=Kr,exports.TextArea=Gl,exports.TextInput=Bl,exports.TimeInput=$l,exports.TinyButton=ve,exports.ToastProvider=e=>{const[l,a]=t.useState([]),o=(e,t,l,o)=>{a((a=>[...a,{id:o||li(),content:t,type:e,localTimeout:l}]))},r=e=>a((t=>t.filter((t=>t.id!==e)))),i=t.useMemo((()=>({open:o,close:r})),[]),[c,n]=t.useState(!1);return t.useEffect((()=>(n(!0),()=>n(!1))),[]),g.default.createElement(ei.Provider,{value:i},e.children,c?f.createPortal(g.default.createElement(ti,null,g.default.createElement("div",{className:`notification-container ${e.position}`},l.map((t=>g.default.createElement(_r,{key:t.id,type:t.type,position:e.position,timeout:e.timeout,localTimeout:t.localTimeout,close:()=>r(t.id)},t.content))))),document.body):null)},exports.ToggleSwitch=aa,exports.Tooltip=Xe,exports.Typography=ri,exports.additionalColors=z,exports.createDarker=T,exports.defaultStyles=P,exports.defaultThemeColor=I,exports.getDefaultStyles=W,exports.graphColor=B,exports.hexToRGB=R,exports.neutralColor=L,exports.primaryColor=V,exports.shadeColor=H,exports.uiColor=M,exports.useToast=()=>t.useContext(ei);
|