@lax-wp/design-system 0.3.27 → 0.3.28
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/design-system.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.select-field-dropdown-popup{z-index:5000!important}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Toastify__toast-container{z-index:100000}.Toastify__toast{min-height:64px;border-radius:4px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.Toastify__toast--success,.Toastify__toast--error,.Toastify__toast--warning,.Toastify__toast--info{background:transparent}.Toastify__toast-body{padding:0;margin:0;color:inherit;font-size:14px;font-weight:500;line-height:1.5}.Toastify__close-button{color:inherit;opacity:.7;align-self:flex-start;background:transparent;border:none;padding:4px;margin:0;transition:opacity .2s ease}.Toastify__close-button:hover{opacity:1}.Toastify__progress-bar{background:linear-gradient(to right,#4caf50,#8bc34a,#cddc39,#ffeb3b,#ffc107,#ff9800,#ff5722)}.Toastify__progress-bar--success{background:#12b76a}.Toastify__progress-bar--error{background:#f04438}.Toastify__progress-bar--warning{background:#f79009}.Toastify__progress-bar--info{background:#016dcf}@media (prefers-color-scheme: dark){.Toastify__toast-container{background:transparent}.Toastify__toast{box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #0003}}@media screen and (max-width: 640px){.Toastify__toast-container{left:1rem;right:1rem;bottom:1rem;width:auto}.Toastify__toast{margin-bottom:.5rem}}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--bottom-center{animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1)}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--bottom-center{animation-duration:.2s;animation-timing-function:cubic-bezier(.4,0,1,1)}.tooltip-container{--tooltipBackground: #101828;--tooltipBorder: #252525;--tooltipColor: #fff;background-color:var(--tooltipBackground);border-radius:8px;border:1px solid var(--tooltipBorder);box-shadow:0 2px 4px #0000002e;color:var(--tooltipColor);display:flex;flex-direction:column;padding:4px 8px;transition:opacity .3s;z-index:9999;overflow-wrap:break-word;word-wrap:break-word;max-width:40ch;font-size:12px;font-weight:500}.tooltip-container[data-popper-interactive=false]{pointer-events:none}.tooltip-arrow{height:1rem;position:absolute;width:1rem;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}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow{left:0;margin-top:-.4rem;top:0}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:before{border-color:transparent transparent var(--tooltipBorder) transparent;border-width:0 .5rem .4rem .5rem;position:absolute;top:-2px}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:after{border-color:transparent transparent var(--tooltipBackground) transparent;border-width:0 .5rem .4rem .5rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow{bottom:0;left:0;margin-bottom:-1rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:before{border-color:var(--tooltipBorder) transparent transparent transparent;border-width:.4rem .5rem 0 .5rem;position:absolute;top:1px}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:after{border-color:var(--tooltipBackground) transparent transparent transparent;border-width:.4rem .5rem 0 .5rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow{left:0;margin-left:-.7rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:before{border-color:transparent var(--tooltipBorder) transparent transparent}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:after{border-color:transparent var(--tooltipBackground) transparent transparent;border-width:.5rem .4rem .5rem 0;left:6px;top:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow{margin-right:-.7rem;right:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:before{border-color:transparent transparent transparent var(--tooltipBorder);border-width:.5rem 0 .5rem .4em}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:after{border-color:transparent transparent transparent var(--tooltipBackground);border-width:.5rem 0 .5rem .4em;left:3px;top:0}
|
|
1
|
+
:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.Toastify__toast-container{z-index:100000}.Toastify__toast{min-height:64px;border-radius:4px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.Toastify__toast--success,.Toastify__toast--error,.Toastify__toast--warning,.Toastify__toast--info{background:transparent}.Toastify__toast-body{padding:0;margin:0;color:inherit;font-size:14px;font-weight:500;line-height:1.5}.Toastify__close-button{color:inherit;opacity:.7;align-self:flex-start;background:transparent;border:none;padding:4px;margin:0;transition:opacity .2s ease}.Toastify__close-button:hover{opacity:1}.Toastify__progress-bar{background:linear-gradient(to right,#4caf50,#8bc34a,#cddc39,#ffeb3b,#ffc107,#ff9800,#ff5722)}.Toastify__progress-bar--success{background:#12b76a}.Toastify__progress-bar--error{background:#f04438}.Toastify__progress-bar--warning{background:#f79009}.Toastify__progress-bar--info{background:#016dcf}@media (prefers-color-scheme: dark){.Toastify__toast-container{background:transparent}.Toastify__toast{box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #0003}}@media screen and (max-width: 640px){.Toastify__toast-container{left:1rem;right:1rem;bottom:1rem;width:auto}.Toastify__toast{margin-bottom:.5rem}}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--bottom-center{animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1)}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--bottom-center{animation-duration:.2s;animation-timing-function:cubic-bezier(.4,0,1,1)}.tooltip-container{--tooltipBackground: #101828;--tooltipBorder: #252525;--tooltipColor: #fff;background-color:var(--tooltipBackground);border-radius:8px;border:1px solid var(--tooltipBorder);box-shadow:0 2px 4px #0000002e;color:var(--tooltipColor);display:flex;flex-direction:column;padding:4px 8px;transition:opacity .3s;z-index:9999;overflow-wrap:break-word;word-wrap:break-word;max-width:40ch;font-size:12px;font-weight:500}.tooltip-container[data-popper-interactive=false]{pointer-events:none}.tooltip-arrow{height:1rem;position:absolute;width:1rem;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}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow{left:0;margin-top:-.4rem;top:0}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:before{border-color:transparent transparent var(--tooltipBorder) transparent;border-width:0 .5rem .4rem .5rem;position:absolute;top:-2px}.tooltip-container[data-popper-placement*=bottom] .tooltip-arrow:after{border-color:transparent transparent var(--tooltipBackground) transparent;border-width:0 .5rem .4rem .5rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow{bottom:0;left:0;margin-bottom:-1rem}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:before{border-color:var(--tooltipBorder) transparent transparent transparent;border-width:.4rem .5rem 0 .5rem;position:absolute;top:1px}.tooltip-container[data-popper-placement*=top] .tooltip-arrow:after{border-color:var(--tooltipBackground) transparent transparent transparent;border-width:.4rem .5rem 0 .5rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow{left:0;margin-left:-.7rem}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:before{border-color:transparent var(--tooltipBorder) transparent transparent}.tooltip-container[data-popper-placement*=right] .tooltip-arrow:after{border-color:transparent var(--tooltipBackground) transparent transparent;border-width:.5rem .4rem .5rem 0;left:6px;top:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow{margin-right:-.7rem;right:0}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:before{border-color:transparent transparent transparent var(--tooltipBorder);border-width:.5rem 0 .5rem .4em}.tooltip-container[data-popper-placement*=left] .tooltip-arrow:after{border-color:transparent transparent transparent var(--tooltipBackground);border-width:.5rem 0 .5rem .4em;left:3px;top:0}
|
package/dist/index.es.js
CHANGED
|
@@ -1810,7 +1810,10 @@ const Q2 = ({ labels: e = [] }) => {
|
|
|
1810
1810
|
/* @__PURE__ */ h.jsxs(
|
|
1811
1811
|
"div",
|
|
1812
1812
|
{
|
|
1813
|
-
className: R(
|
|
1813
|
+
className: R(
|
|
1814
|
+
"w-full flex flex-col gap-1 risk-analysis-select-field",
|
|
1815
|
+
s
|
|
1816
|
+
),
|
|
1814
1817
|
onMouseDown: (ge) => ge.stopPropagation(),
|
|
1815
1818
|
role: "group",
|
|
1816
1819
|
"aria-labelledby": e ? "select-field-label" : void 0,
|
|
@@ -1858,7 +1861,13 @@ const Q2 = ({ labels: e = [] }) => {
|
|
|
1858
1861
|
className: "cursor-pointer",
|
|
1859
1862
|
onClick: () => te(Oe),
|
|
1860
1863
|
type: "button",
|
|
1861
|
-
children: /* @__PURE__ */ h.jsx(Ki, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ h.jsx(
|
|
1864
|
+
children: /* @__PURE__ */ h.jsx(Ki, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ h.jsx(
|
|
1865
|
+
V,
|
|
1866
|
+
{
|
|
1867
|
+
fontSize: 16,
|
|
1868
|
+
color: X?.[600]
|
|
1869
|
+
}
|
|
1870
|
+
) })
|
|
1862
1871
|
}
|
|
1863
1872
|
) : null
|
|
1864
1873
|
] })
|
|
@@ -1871,6 +1880,11 @@ const Q2 = ({ labels: e = [] }) => {
|
|
|
1871
1880
|
onOpenChange: K,
|
|
1872
1881
|
disabled: F,
|
|
1873
1882
|
className: `w-full text-black-900 dark:text-black-200 ${r && a ? "ant-select-status-error" : "#e2e8f0"} ${H && P?.color ? "risk-select-field" : ""}`,
|
|
1883
|
+
classNames: {
|
|
1884
|
+
popup: {
|
|
1885
|
+
root: "!z-[5001]"
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1874
1888
|
style: {
|
|
1875
1889
|
width: "100%",
|
|
1876
1890
|
"--risk-color": H && P?.hexBgColor ? P?.hexBgColor : "",
|
|
@@ -1900,14 +1914,21 @@ const Q2 = ({ labels: e = [] }) => {
|
|
|
1900
1914
|
t: _
|
|
1901
1915
|
}
|
|
1902
1916
|
),
|
|
1903
|
-
options: je.map(
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1917
|
+
options: je.map(
|
|
1918
|
+
({
|
|
1919
|
+
label: ge,
|
|
1920
|
+
value: Ne,
|
|
1921
|
+
color: $,
|
|
1922
|
+
...Q
|
|
1923
|
+
}) => ({
|
|
1924
|
+
label: String(ge),
|
|
1925
|
+
value: String(Ne),
|
|
1926
|
+
key: String(Ne),
|
|
1927
|
+
id: String(Ne),
|
|
1928
|
+
color: $,
|
|
1929
|
+
...Q
|
|
1930
|
+
})
|
|
1931
|
+
),
|
|
1911
1932
|
optionRender: (ge) => {
|
|
1912
1933
|
const Ne = ge?.data?.fullname;
|
|
1913
1934
|
if (Ne && A) {
|
|
@@ -1952,7 +1973,16 @@ const Q2 = ({ labels: e = [] }) => {
|
|
|
1952
1973
|
...M
|
|
1953
1974
|
}
|
|
1954
1975
|
),
|
|
1955
|
-
r && /* @__PURE__ */ h.jsx(
|
|
1976
|
+
r && /* @__PURE__ */ h.jsx(
|
|
1977
|
+
pe,
|
|
1978
|
+
{
|
|
1979
|
+
className: "text-error-500",
|
|
1980
|
+
appearance: "custom",
|
|
1981
|
+
size: "extra-small",
|
|
1982
|
+
variant: "medium",
|
|
1983
|
+
children: r
|
|
1984
|
+
}
|
|
1985
|
+
)
|
|
1956
1986
|
]
|
|
1957
1987
|
}
|
|
1958
1988
|
),
|
package/dist/index.umd.js
CHANGED
|
@@ -46,7 +46,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
46
46
|
-webkit-text-fill-color: white !important;
|
|
47
47
|
-webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
|
|
48
48
|
}
|
|
49
|
-
`}),f?h.jsx("label",{htmlFor:z,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:h.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:h.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:h.jsxs(he,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[f,d&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,h.jsxs("div",{className:"relative input-field",children:[h.jsx("input",{...E,ref:C,id:z,type:p,value:t,defaultValue:o,placeholder:m,required:d,disabled:s,max:u,min:c,onKeyDown:r,style:F(),className:V("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",I(),s&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",b),onChange:N=>n(N.target.value),onClick:N=>N.stopPropagation()}),g&&h.jsx("div",{ref:S,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g})]}),h.jsx(_e.AnimatePresence,{children:i&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:h.jsx(he,{className:V("mt-1",k()),appearance:"custom",size:"extra-small",variant:"medium",children:i})})})]})});Ho.displayName="InputField";const Cv=a.forwardRef(({label:e,placeholder:t,value:n,onChange:r,rows:i=4,message:l,messageType:o="default",defaultValue:s,required:u=!1,disabled:c=!1,className:d,inputRef:f,maxLength:p,originalCase:m=!1,noBorder:g=!1,id:v,inputStyle:b,...x},E)=>{const C=v||`textarea-${Math.random().toString(36).substr(2,9)}`,S=n?.length||0,w=p&&S>p-Math.min(50,p/5),y=p&&S>=p,I=()=>o==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":o==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":o==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",k=()=>o==="error"?"text-red-500 dark:text-red-400":o==="success"?"text-green-500 dark:text-green-400":o==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return h.jsxs("div",{className:V("flex flex-col gap-0.5 relative",d),children:[e&&h.jsx("label",{htmlFor:C,className:V("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!m}),children:h.jsxs(he,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,u&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),h.jsx("textarea",{...x,id:C,ref:E||f,onChange:z=>r(z.target.value),defaultValue:s,value:n,required:u,disabled:c,rows:i,placeholder:t,maxLength:p||void 0,style:b,className:V("border rounded-lg bg-white dark:bg-black-600 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!g&&I(),{"border-none focus:border-none focus:ring-0":g,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":c,"placeholder:text-gray-400 dark:placeholder:text-gray-500":c,"text-gray-900 dark:text-gray-100":!c,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!c}),onClick:z=>z.stopPropagation(),"aria-invalid":l&&o==="error"?"true":"false","aria-describedby":l?`${C}-message`:void 0}),p&&h.jsxs(he,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[h.jsx("span",{className:V({"text-red-500 dark:text-red-400":y,"text-yellow-500 dark:text-yellow-400":w&&!y}),children:S}),h.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",p]})]}),h.jsx(_e.AnimatePresence,{children:l&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${C}-message`,role:o==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",k()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})})]})});var Vo,t1;function n1(){if(t1)return Vo;t1=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Vo=e,Vo}var Go,r1;function kv(){if(r1)return Go;r1=1;var e=typeof mr=="object"&&mr&&mr.Object===Object&&mr;return Go=e,Go}var _o,i1;function l1(){if(i1)return _o;i1=1;var e=kv(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _o=n,_o}var $o,a1;function Iv(){if(a1)return $o;a1=1;var e=l1(),t=function(){return e.Date.now()};return $o=t,$o}var Wo,o1;function Sv(){if(o1)return Wo;o1=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Wo=t,Wo}var Uo,s1;function zv(){if(s1)return Uo;s1=1;var e=Sv(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Uo=n,Uo}var Xo,u1;function c1(){if(u1)return Xo;u1=1;var e=l1(),t=e.Symbol;return Xo=t,Xo}var Jo,d1;function Fv(){if(d1)return Jo;d1=1;var e=c1(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function l(o){var s=n.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var d=r.call(o);return c&&(s?o[i]=u:delete o[i]),d}return Jo=l,Jo}var Zo,f1;function Mv(){if(f1)return Zo;f1=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Zo=n,Zo}var Yo,h1;function Av(){if(h1)return Yo;h1=1;var e=c1(),t=Fv(),n=Mv(),r="[object Null]",i="[object Undefined]",l=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:l&&l in Object(s)?t(s):n(s)}return Yo=o,Yo}var Ko,m1;function Nv(){if(m1)return Ko;m1=1;function e(t){return t!=null&&typeof t=="object"}return Ko=e,Ko}var qo,p1;function Dv(){if(p1)return qo;p1=1;var e=Av(),t=Nv(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return qo=r,qo}var Qo,g1;function Lv(){if(g1)return Qo;g1=1;var e=zv(),t=n1(),n=Dv(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=l.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):i.test(c)?r:+c}return Qo=u,Qo}var Ro,v1;function Tv(){if(v1)return Ro;v1=1;var e=n1(),t=Iv(),n=Lv(),r="Expected a function",i=Math.max,l=Math.min;function o(s,u,c){var d,f,p,m,g,v,b=0,x=!1,E=!1,C=!0;if(typeof s!="function")throw new TypeError(r);u=n(u)||0,e(c)&&(x=!!c.leading,E="maxWait"in c,p=E?i(n(c.maxWait)||0,u):p,C="trailing"in c?!!c.trailing:C);function S(B){var j=d,D=f;return d=f=void 0,b=B,m=s.apply(D,j),m}function w(B){return b=B,g=setTimeout(k,u),x?S(B):m}function y(B){var j=B-v,D=B-b,H=u-j;return E?l(H,p-D):H}function I(B){var j=B-v,D=B-b;return v===void 0||j>=u||j<0||E&&D>=p}function k(){var B=t();if(I(B))return z(B);g=setTimeout(k,y(B))}function z(B){return g=void 0,C&&d?S(B):(d=f=void 0,m)}function F(){g!==void 0&&clearTimeout(g),b=0,d=v=f=g=void 0}function N(){return g===void 0?m:z(t())}function T(){var B=t(),j=I(B);if(d=arguments,f=this,v=B,j){if(g===void 0)return w(v);if(E)return clearTimeout(g),g=setTimeout(k,u),S(v)}return g===void 0&&(g=setTimeout(k,u)),m}return T.cancel=F,T.flush=N,T}return Ro=o,Ro}var Ov=Tv();const Pv=Hr(Ov),b1=({size:e=16,className:t="",...n})=>h.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...n,children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),h.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),x1=a.forwardRef(({size:e=24,fill:t="currentColor",className:n,...r},i)=>h.jsx("svg",{ref:i,className:V(n),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...r,children:h.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));x1.displayName="CloseIcon";const pr={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},Bv=e=>{let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);const n=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},es=(e,t=80)=>{let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return n=Math.min(255,n+(255-n)*(t/100)),r=Math.min(255,r+(255-r)*(t/100)),i=Math.min(255,i+(255-i)*(t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(r).toString(16).padStart(2,"0")}${Math.round(i).toString(16).padStart(2,"0")}`},y1=(e,t=30)=>{let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return n=Math.max(0,n*(1-t/100)),r=Math.max(0,r*(1-t/100)),i=Math.max(0,i*(1-t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(r).toString(16).padStart(2,"0")}${Math.round(i).toString(16).padStart(2,"0")}`},jv=(e,t)=>({background:t?pr[e]?.[975]:pr[e]?.[50],borderColor:t?pr[e]?.[900]:pr[e]?.[100],color:t?pr[e]?.[500]:pr[e]?.[600]}),Hv=(e,t)=>{const n=e.startsWith("#")?e:Bv(e);return{background:t?y1(n,80):es(n,90),borderColor:t?y1(n,40):es(n,50),color:t?es(n,40):n}},Vv=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),Gv=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},_v=(e,t,n,r)=>e?n?t.color:pr[e]?.[500]||t.color:r?"#A0AEC0":"#4A5568",Vr=a.forwardRef(({label:e,color:t,size:n="sm",className:r,onClick:i,onMouseDown:l,truncate:o,isHashColor:s=!1,icon:u,removable:c=!1,onRemove:d,onUpload:f,acceptsUpload:p=!1,theme:m="light","aria-label":g},v)=>{const b=m==="dark",x=()=>t?t in pr?jv(t,b):Hv(t,b):Vv(b),E=y=>{const I=y.target.files?.[0];I&&f&&f(I),y.target.value=""},C=y=>{(y.key==="Enter"||y.key===" ")&&(i||p)&&(y.preventDefault(),i&&i(y))},S=x(),w=_v(t,S,s,b);return h.jsx("div",{ref:v,className:V("inline-flex items-center border rounded-md transition-colors",Gv(n),(i||p)&&"cursor-pointer hover:opacity-80",r),style:S,onMouseDown:l,onClick:i,onKeyDown:C,"aria-label":g||`Tag: ${e}`,role:"button",tabIndex:i||p?0:void 0,children:h.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[u,o?h.jsx("p",{title:e,className:`text-${n} ${i||p?"cursor-pointer":""}`,children:e.length>o?`${e.slice(0,o)}...`:e}):h.jsx("p",{className:`text-${n}`,children:e}),p&&h.jsx("input",{type:"file",onChange:E,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),c&&d&&h.jsx("button",{onClick:d,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:h.jsx(x1,{size:12,fill:w,className:"cursor-pointer"})})]})})});Vr.displayName="Tag";const w1=({labels:e=[]})=>{const t=[],n=[];return e.forEach(r=>{typeof r=="string"&&!t.includes(r)?t.push(r):typeof r!="string"&&!n.some(i=>i.label===r.label)&&n.push(r)}),h.jsxs(h.Fragment,{children:[t?.map(r=>h.jsx(Vr,{size:"xs",label:r,color:"primary"},r)),n?.map((r,i)=>h.jsx(Vr,{size:"xs",label:r?.label,color:r?.color},r?.id||i))]})},$v=e=>Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?t:t.value):e||null,Wv=e=>e.filter((t,n,r)=>r.findIndex(i=>i.value===t.value&&i.label===t.label)===n),Uv=({options:e,value:t,defaultValue:n})=>e?.length?Wv(e.map(r=>({...r,color:r.color}))):Array.isArray(t)&&t.length&&typeof t[0]=="object"&&"label"in t[0]?t.map(r=>({label:String(r?.label||""),value:String(r?.value||""),color:r?.color})):t&&typeof t=="object"&&"label"in t?[{label:String(t.label||""),value:String(t.value||""),color:t?.color}]:Array.isArray(n)&&n.length&&typeof n[0]=="object"&&"label"in n[0]?n.map(r=>({label:String(r?.label||""),value:String(r?.value||""),color:r?.color})):n&&typeof n=="object"&&"label"in n?[{label:String(n.label||""),value:String(n.value||""),color:n?.color}]:[],Xv=({hasExistingData:e})=>h.jsx("div",{className:"!w-full px-3 py-1.5",children:e?h.jsx(ct.Skeleton,{paragraph:{rows:1,width:"100%"}}):h.jsx(ct.Skeleton,{})}),Jv=({showSelectAll:e,mode:t,options:n,searchValue:r,handleSelectAll:i,isAllSelected:l,menu:o,isLoading:s,hasExistingData:u,t:c})=>h.jsxs(h.Fragment,{children:[e&&t==="multiple"&&n.length>0&&r.trim().length===0&&h.jsx("div",{role:"button",tabIndex:0,className:"px-3 py-2 border-b border-gray-200 dark:border-gray-600 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700",onClick:d=>{d.stopPropagation(),i()},onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i())},children:h.jsx(he,{size:"small",variant:"semibold",className:"text-primary-600 dark:text-primary-300",appearance:"custom",children:c(l?"Deselect all":"Select all")})}),o,s&&h.jsx(Xv,{hasExistingData:u})]}),E1=a.forwardRef(({label:e,value:t,mode:n,errorMessage:r,selectOptions:i=[],required:l=!1,tags:o,className:s,onInputChange:u,tooltip:c,originalCase:d=!1,isAiExtracted:f=!1,isGTN:p=!1,gtnName:m=null,onChange:g,onSearch:v,debounceTimeout:b=500,filterOption:x=!0,onScroll:E,isLoading:C=!1,allowClear:S=!0,autoClearSearchValue:w=!0,fullOpacityLabel:y=!1,showAllTags:I=!1,customTagRender:k,inputStyles:z,disabled:F=!1,showSelectAll:N=!1,labelClassName:T,riskDetails:B,isRiskAnalysisOpen:j=!1,RiskDetailsCard:D,AIExtractedIndicator:H,RequiredIndicator:_,AddToDocumentIcon:G,primaryColorShades:J,UserAvatar:A,handleAddGTNToDocument:X,t:$=ce=>ce,...M},Z)=>{const[ce,ae]=a.useState(!1),U=a.useRef(null),[le,q]=a.useState(!1),[ge,$e]=a.useState(""),te=me=>{if(!X)return;let ze=null;me==null?ze=null:typeof me=="string"||typeof me=="number"?ze=me:Array.isArray(me)?ze=me.map(W=>typeof W=="object"&&W!==null&&"value"in W?W.value:W):typeof me=="object"&&"value"in me&&(ze=me.value),X(ze)},Ne=$v(t),qe=a.useMemo(()=>v?Pv(v,b):null,[v,b]),Ze=(me,ze)=>{if(U.current&&M.id){const W=document.getElementById(M.id);if(W){const R=Array.isArray(ze)?ze.map(Ce=>Ce.value):ze?.value;W.dataset.selectedValue=JSON.stringify(R);const de=new Event("change",{bubbles:!0});Object.defineProperty(de,"target",{writable:!1,value:W}),W.dispatchEvent(de);const we=new CustomEvent("pilot-change",{bubbles:!0,detail:{selector:`#${M.id}`,value:R,type:"change"}});W.dispatchEvent(we)}}if(n==="tags"){const W=Array.isArray(me)?me:[me];g?.(W?.map(R=>({label:R,value:R})))}else g?.(ze)},Oe=Uv({options:i,value:t,defaultValue:M?.defaultValue}),mt=a.useMemo(()=>Oe.length>0||Ne!=null,[Oe,Ne]),Pt=a.useMemo(()=>{if(!n||n!=="multiple"||Oe.length===0)return!1;const me=Array.isArray(Ne)?Ne:[];return Oe.map(W=>W.value).every(W=>me.some(R=>typeof R=="object"&&R!==null&&"value"in R?String(R.value)===String(W):String(R)===String(W)))},[Ne,Oe,n]),at=()=>{!n||n!=="multiple"||!g||g(Pt?[]:Oe)},Be=a.useCallback(me=>{if(!me)return;const ze=new Event("submit",{bubbles:!0,cancelable:!0});me.dispatchEvent(ze);const W=me.querySelector('button[type="submit"]');W&&W.click()},[]),Et=a.useCallback(me=>{if(me.key==="Enter"&&!le&&Ne){me.preventDefault(),me.stopPropagation();const ze=me.currentTarget.closest("form");Be(ze)}},[le,Ne,Be]),rt=a.useCallback(me=>{const{label:ze,value:W,onClose:R}=me,we=Oe.find(je=>String(je.value)===String(W))?.color||"blue",Ce=je=>{je.preventDefault(),je.stopPropagation()};return h.jsx("div",{className:"cursor-pointer me-1 inline-flex",children:h.jsx(Vr,{label:ze,color:we,size:"sm",onMouseDown:Ce,onClick:F?void 0:R,isHashColor:!0})})},[Oe,F]),pt=a.useCallback(me=>{$e(me),(u||qe)?.(me)},[u,qe]);return h.jsxs("div",{ref:Z,className:V("flex gap-0.5 w-full relative",ce&&p?"border rounded-lg border-primary-100 bg-primary-50 p-1":""),onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),id:M.id,children:[p&&!ce?h.jsx("div",{className:"w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5"}):null,h.jsxs("div",{className:V("w-full flex flex-col gap-1 risk-analysis-select-field",s),onMouseDown:me=>me.stopPropagation(),role:"group","aria-labelledby":e?"select-field-label":void 0,children:[e?h.jsx("label",{id:"select-field-label",htmlFor:"label",className:`text-xs font-medium text-gray-600 dark:text-black-300 inline-flex items-center gap-1 ${d?"":"capitalize"} ${T||""}`,children:h.jsxs("div",{className:"w-full flex items-center justify-between flex-wrap",children:[h.jsxs("div",{className:"inline-flex items-center gap-1 flex-wrap",children:[h.jsxs(he,{size:"extra-small",className:y?"text-black-900 dark:text-black-300":"",variant:"medium",appearance:"subtitle",children:[e,l&&_?h.jsx(_,{}):l&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&H&&h.jsx(H,{}),h.jsx(w1,{labels:o}),c&&h.jsx(ct.Tooltip,{placement:"top",title:c,children:h.jsx("div",{className:"cursor-pointer",role:"button",tabIndex:0,onKeyDown:me=>{(me.key==="Enter"||me.key===" ")&&me.preventDefault()},children:h.jsx(b1,{})})})]}),p&&ce&&G?h.jsx("button",{id:"btn-select-field-base-add-to-document",className:"cursor-pointer",onClick:()=>te(Ne),type:"button",children:h.jsx(ct.Tooltip,{placement:"top",title:$("Add to document"),children:h.jsx(G,{fontSize:16,color:J?.[600]})})}):null]})}):null,h.jsx(ct.Select,{onKeyDown:Et,onOpenChange:q,disabled:F,className:`w-full text-black-900 dark:text-black-200 ${r&&l?"ant-select-status-error":"#e2e8f0"} ${j&&B?.color?"risk-select-field":""}`,style:{width:"100%","--risk-color":j&&B?.hexBgColor?B?.hexBgColor:"","--risk-border-color":j&&B?.hexBorderColor?B?.hexBorderColor:""},"aria-required":l,mode:n,value:Ne,onChange:Ze,filterOption:v?x:(me,ze)=>(ze?.label||"")?.toLowerCase()?.includes(me?.toLowerCase()),showSearch:!0,onSearch:pt||void 0,onPopupScroll:E,popupClassName:"select-field-dropdown-popup",popupRender:me=>h.jsx(Jv,{showSelectAll:N,mode:n,options:Oe,searchValue:ge,handleSelectAll:at,isAllSelected:Pt,menu:me,isLoading:C,hasExistingData:mt,t:$}),options:Oe.map(({label:me,value:ze,color:W,...R})=>({label:String(me),value:String(ze),key:String(ze),id:String(ze),color:W,...R})),optionRender:me=>{const ze=me?.data?.fullname;if(ze&&A){const[W,R]=ze.split(" ");return h.jsxs("div",{className:"flex items-center justify-start gap-1",children:[h.jsx(A,{firstName:W,lastName:R,profilePic:me?.data?.url||"",size:"xs",enablePopper:!0,userId:me?.data?.value}),h.jsx("span",{className:"ml-2",children:me.label})]})}return h.jsx("span",{children:me.label})},autoClearSearchValue:w,onClear:()=>g&&g(n==="tags"||n==="multiple"?[]:null),maxTagCount:n==="tags"&&I?void 0:"responsive",maxTagPlaceholder:me=>h.jsx(ct.Tooltip,{trigger:"hover",title:me.map(({label:ze})=>ze).join(", "),overlayStyle:{pointerEvents:"none"},children:h.jsxs("span",{children:["+",me.length," more"]})}),tagRender:k||rt,allowClear:S,...M}),r&&h.jsx(he,{className:"text-error-500",appearance:"custom",size:"extra-small",variant:"medium",children:r})]}),ce&&B&&j&&D&&h.jsx("div",{role:"tooltip",tabIndex:0,className:"absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-black-600 rounded-xl",onClick:me=>me.stopPropagation(),onMouseDown:me=>me.preventDefault(),onKeyDown:me=>{me.key==="Escape"&&ae(!1)},children:h.jsx(D,{riskDetails:B})})]})});E1.displayName="SelectField";const C1=a.forwardRef(({id:e,label:t,checked:n,isChecked:r,onChange:i,disabled:l=!1,required:o=!1,message:s,messageType:u="default",wrapperClassName:c,checkboxClassName:d,labelClassName:f,size:p="medium",variant:m="default",labelPosition:g="right",checkboxProps:v},b)=>{const x=n!==void 0?n:r||!1,E=()=>{switch(p){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},C=()=>{if(u==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(u==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(u==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(m){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},S=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",w=()=>{switch(p){case"small":return"extra-small";case"large":return"medium";default:return"small"}},y=z=>{i(z.target.checked,z)},I=h.jsx(ct.Checkbox,{...v,ref:b,id:e,checked:x,onChange:y,disabled:l,className:V("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",E(),C(),l&&"opacity-50 cursor-not-allowed",d),"aria-required":o,"aria-invalid":s&&u==="error"?"true":"false","aria-describedby":s?`${e}-message`:void 0}),k=t?h.jsx("label",{htmlFor:e,className:V("font-medium cursor-pointer transition-colors duration-200",l?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",g==="right"?"ml-2":"mr-2",f),children:h.jsxs(he,{variant:"medium",size:w(),appearance:"body",children:[t,o&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return h.jsxs("div",{className:V("flex flex-col",c),children:[h.jsx("div",{className:V("flex items-center",g==="left"&&"flex-row-reverse justify-end"),children:g==="left"?h.jsxs(h.Fragment,{children:[I,k]}):h.jsxs(h.Fragment,{children:[I,k]})}),h.jsx(_e.AnimatePresence,{children:s&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:u==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",S()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});C1.displayName="Checkbox";const k1=a.forwardRef(({id:e,label:t,value:n,defaultValue:r="#000000",onChange:i,onColorChange:l,disabled:o=!1,required:s=!1,message:u,messageType:c="default",wrapperClassName:d,inputClassName:f,labelClassName:p,size:m="medium",showValue:g=!1,valueFormat:v="hex",inputProps:b,helpText:x},E)=>{const C=n!==void 0?n:r,S=()=>{switch(m){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},w=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",y=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",I=()=>{switch(m){case"small":return"extra-small";case"large":return"medium";default:return"small"}},k=T=>{const B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(T);if(!B)return T;const j=parseInt(B[1],16),D=parseInt(B[2],16),H=parseInt(B[3],16);return`rgb(${j}, ${D}, ${H})`},z=T=>{const B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(T);if(!B)return T;const j=parseInt(B[1],16)/255,D=parseInt(B[2],16)/255,H=parseInt(B[3],16)/255,_=Math.max(j,D,H),G=Math.min(j,D,H);let J=0,A=0;const X=(_+G)/2;if(_!==G){const $=_-G;switch(A=X>.5?$/(2-_-G):$/(_+G),_){case j:J=(D-H)/$+(D<H?6:0);break;case D:J=(H-j)/$+2;break;case H:J=(j-D)/$+4;break}J/=6}return`hsl(${Math.round(J*360)}, ${Math.round(A*100)}%, ${Math.round(X*100)}%)`},F=()=>{switch(v){case"rgb":return k(C);case"hsl":return z(C);default:return C.toUpperCase()}},N=T=>{const B=T.target.value;i(B,T),l?.(B)};return h.jsxs("div",{className:V("flex flex-col w-full",d),children:[t&&h.jsx("label",{htmlFor:e,className:V("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",p),children:h.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:h.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:h.jsxs(he,{variant:"medium",size:I(),appearance:"subtitle",children:[t,s&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),x&&h.jsx(he,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:x}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"relative",children:h.jsx("input",{...b,ref:E,type:"color",id:e,value:C,onChange:N,disabled:o,required:s,className:V("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",S(),y(),o&&"opacity-50 cursor-not-allowed",f),style:{backgroundColor:C},"aria-required":s,"aria-invalid":u&&c==="error"?"true":"false","aria-describedby":u||x?`${e}-description`:void 0})}),g&&h.jsx("div",{className:"flex-1",children:h.jsx(he,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:F()})})]}),h.jsx(_e.AnimatePresence,{children:u&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})}),x&&!u&&h.jsx("div",{id:`${e}-description`,className:"sr-only",children:x})]})});k1.displayName="ColorPicker";function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(null,arguments)}function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Zv(e,t){if(zr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I1(e){var t=Zv(e,"string");return zr(t)=="symbol"?t:t+""}function ki(e,t,n){return(t=I1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S1(Object(n),!0).forEach(function(r){ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I1(r.key),r)}}function Kv(e,t,n){return t&&z1(e.prototype,t),n&&z1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ts(e,t){return ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ts(e,t)}function qv(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ts(e,t)}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(e)}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function Qv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rv(e,t){if(t&&(zr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qv(e)}function e7(e){var t=F1();return function(){var n,r=$l(e);if(t){var i=$l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rv(this,n)}}function ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t7(e){if(Array.isArray(e))return ns(e)}function n7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M1(e,t){if(e){if(typeof e=="string")return ns(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ns(e,t):void 0}}function r7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
49
|
+
`}),f?h.jsx("label",{htmlFor:z,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:h.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:h.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:h.jsxs(he,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[f,d&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,h.jsxs("div",{className:"relative input-field",children:[h.jsx("input",{...E,ref:C,id:z,type:p,value:t,defaultValue:o,placeholder:m,required:d,disabled:s,max:u,min:c,onKeyDown:r,style:F(),className:V("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",I(),s&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",b),onChange:N=>n(N.target.value),onClick:N=>N.stopPropagation()}),g&&h.jsx("div",{ref:S,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:g})]}),h.jsx(_e.AnimatePresence,{children:i&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:h.jsx(he,{className:V("mt-1",k()),appearance:"custom",size:"extra-small",variant:"medium",children:i})})})]})});Ho.displayName="InputField";const Cv=a.forwardRef(({label:e,placeholder:t,value:n,onChange:r,rows:i=4,message:l,messageType:o="default",defaultValue:s,required:u=!1,disabled:c=!1,className:d,inputRef:f,maxLength:p,originalCase:m=!1,noBorder:g=!1,id:v,inputStyle:b,...x},E)=>{const C=v||`textarea-${Math.random().toString(36).substr(2,9)}`,S=n?.length||0,w=p&&S>p-Math.min(50,p/5),y=p&&S>=p,I=()=>o==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":o==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":o==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",k=()=>o==="error"?"text-red-500 dark:text-red-400":o==="success"?"text-green-500 dark:text-green-400":o==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return h.jsxs("div",{className:V("flex flex-col gap-0.5 relative",d),children:[e&&h.jsx("label",{htmlFor:C,className:V("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!m}),children:h.jsxs(he,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,u&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),h.jsx("textarea",{...x,id:C,ref:E||f,onChange:z=>r(z.target.value),defaultValue:s,value:n,required:u,disabled:c,rows:i,placeholder:t,maxLength:p||void 0,style:b,className:V("border rounded-lg bg-white dark:bg-black-600 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!g&&I(),{"border-none focus:border-none focus:ring-0":g,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":c,"placeholder:text-gray-400 dark:placeholder:text-gray-500":c,"text-gray-900 dark:text-gray-100":!c,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!c}),onClick:z=>z.stopPropagation(),"aria-invalid":l&&o==="error"?"true":"false","aria-describedby":l?`${C}-message`:void 0}),p&&h.jsxs(he,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[h.jsx("span",{className:V({"text-red-500 dark:text-red-400":y,"text-yellow-500 dark:text-yellow-400":w&&!y}),children:S}),h.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",p]})]}),h.jsx(_e.AnimatePresence,{children:l&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${C}-message`,role:o==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",k()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})})]})});var Vo,t1;function n1(){if(t1)return Vo;t1=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Vo=e,Vo}var Go,r1;function kv(){if(r1)return Go;r1=1;var e=typeof mr=="object"&&mr&&mr.Object===Object&&mr;return Go=e,Go}var _o,i1;function l1(){if(i1)return _o;i1=1;var e=kv(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _o=n,_o}var $o,a1;function Iv(){if(a1)return $o;a1=1;var e=l1(),t=function(){return e.Date.now()};return $o=t,$o}var Wo,o1;function Sv(){if(o1)return Wo;o1=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Wo=t,Wo}var Uo,s1;function zv(){if(s1)return Uo;s1=1;var e=Sv(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Uo=n,Uo}var Xo,u1;function c1(){if(u1)return Xo;u1=1;var e=l1(),t=e.Symbol;return Xo=t,Xo}var Jo,d1;function Fv(){if(d1)return Jo;d1=1;var e=c1(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function l(o){var s=n.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var d=r.call(o);return c&&(s?o[i]=u:delete o[i]),d}return Jo=l,Jo}var Zo,f1;function Mv(){if(f1)return Zo;f1=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Zo=n,Zo}var Yo,h1;function Av(){if(h1)return Yo;h1=1;var e=c1(),t=Fv(),n=Mv(),r="[object Null]",i="[object Undefined]",l=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:l&&l in Object(s)?t(s):n(s)}return Yo=o,Yo}var Ko,m1;function Nv(){if(m1)return Ko;m1=1;function e(t){return t!=null&&typeof t=="object"}return Ko=e,Ko}var qo,p1;function Dv(){if(p1)return qo;p1=1;var e=Av(),t=Nv(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return qo=r,qo}var Qo,g1;function Lv(){if(g1)return Qo;g1=1;var e=zv(),t=n1(),n=Dv(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=t(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=l.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):i.test(c)?r:+c}return Qo=u,Qo}var Ro,v1;function Tv(){if(v1)return Ro;v1=1;var e=n1(),t=Iv(),n=Lv(),r="Expected a function",i=Math.max,l=Math.min;function o(s,u,c){var d,f,p,m,g,v,b=0,x=!1,E=!1,C=!0;if(typeof s!="function")throw new TypeError(r);u=n(u)||0,e(c)&&(x=!!c.leading,E="maxWait"in c,p=E?i(n(c.maxWait)||0,u):p,C="trailing"in c?!!c.trailing:C);function S(B){var j=d,D=f;return d=f=void 0,b=B,m=s.apply(D,j),m}function w(B){return b=B,g=setTimeout(k,u),x?S(B):m}function y(B){var j=B-v,D=B-b,H=u-j;return E?l(H,p-D):H}function I(B){var j=B-v,D=B-b;return v===void 0||j>=u||j<0||E&&D>=p}function k(){var B=t();if(I(B))return z(B);g=setTimeout(k,y(B))}function z(B){return g=void 0,C&&d?S(B):(d=f=void 0,m)}function F(){g!==void 0&&clearTimeout(g),b=0,d=v=f=g=void 0}function N(){return g===void 0?m:z(t())}function T(){var B=t(),j=I(B);if(d=arguments,f=this,v=B,j){if(g===void 0)return w(v);if(E)return clearTimeout(g),g=setTimeout(k,u),S(v)}return g===void 0&&(g=setTimeout(k,u)),m}return T.cancel=F,T.flush=N,T}return Ro=o,Ro}var Ov=Tv();const Pv=Hr(Ov),b1=({size:e=16,className:t="",...n})=>h.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...n,children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),h.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),x1=a.forwardRef(({size:e=24,fill:t="currentColor",className:n,...r},i)=>h.jsx("svg",{ref:i,className:V(n),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...r,children:h.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));x1.displayName="CloseIcon";const pr={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},Bv=e=>{let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);const n=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-n.length)+n}`},es=(e,t=80)=>{let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return n=Math.min(255,n+(255-n)*(t/100)),r=Math.min(255,r+(255-r)*(t/100)),i=Math.min(255,i+(255-i)*(t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(r).toString(16).padStart(2,"0")}${Math.round(i).toString(16).padStart(2,"0")}`},y1=(e,t=30)=>{let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return n=Math.max(0,n*(1-t/100)),r=Math.max(0,r*(1-t/100)),i=Math.max(0,i*(1-t/100)),`#${Math.round(n).toString(16).padStart(2,"0")}${Math.round(r).toString(16).padStart(2,"0")}${Math.round(i).toString(16).padStart(2,"0")}`},jv=(e,t)=>({background:t?pr[e]?.[975]:pr[e]?.[50],borderColor:t?pr[e]?.[900]:pr[e]?.[100],color:t?pr[e]?.[500]:pr[e]?.[600]}),Hv=(e,t)=>{const n=e.startsWith("#")?e:Bv(e);return{background:t?y1(n,80):es(n,90),borderColor:t?y1(n,40):es(n,50),color:t?es(n,40):n}},Vv=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),Gv=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},_v=(e,t,n,r)=>e?n?t.color:pr[e]?.[500]||t.color:r?"#A0AEC0":"#4A5568",Vr=a.forwardRef(({label:e,color:t,size:n="sm",className:r,onClick:i,onMouseDown:l,truncate:o,isHashColor:s=!1,icon:u,removable:c=!1,onRemove:d,onUpload:f,acceptsUpload:p=!1,theme:m="light","aria-label":g},v)=>{const b=m==="dark",x=()=>t?t in pr?jv(t,b):Hv(t,b):Vv(b),E=y=>{const I=y.target.files?.[0];I&&f&&f(I),y.target.value=""},C=y=>{(y.key==="Enter"||y.key===" ")&&(i||p)&&(y.preventDefault(),i&&i(y))},S=x(),w=_v(t,S,s,b);return h.jsx("div",{ref:v,className:V("inline-flex items-center border rounded-md transition-colors",Gv(n),(i||p)&&"cursor-pointer hover:opacity-80",r),style:S,onMouseDown:l,onClick:i,onKeyDown:C,"aria-label":g||`Tag: ${e}`,role:"button",tabIndex:i||p?0:void 0,children:h.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[u,o?h.jsx("p",{title:e,className:`text-${n} ${i||p?"cursor-pointer":""}`,children:e.length>o?`${e.slice(0,o)}...`:e}):h.jsx("p",{className:`text-${n}`,children:e}),p&&h.jsx("input",{type:"file",onChange:E,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),c&&d&&h.jsx("button",{onClick:d,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:h.jsx(x1,{size:12,fill:w,className:"cursor-pointer"})})]})})});Vr.displayName="Tag";const w1=({labels:e=[]})=>{const t=[],n=[];return e.forEach(r=>{typeof r=="string"&&!t.includes(r)?t.push(r):typeof r!="string"&&!n.some(i=>i.label===r.label)&&n.push(r)}),h.jsxs(h.Fragment,{children:[t?.map(r=>h.jsx(Vr,{size:"xs",label:r,color:"primary"},r)),n?.map((r,i)=>h.jsx(Vr,{size:"xs",label:r?.label,color:r?.color},r?.id||i))]})},$v=e=>Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?t:t.value):e||null,Wv=e=>e.filter((t,n,r)=>r.findIndex(i=>i.value===t.value&&i.label===t.label)===n),Uv=({options:e,value:t,defaultValue:n})=>e?.length?Wv(e.map(r=>({...r,color:r.color}))):Array.isArray(t)&&t.length&&typeof t[0]=="object"&&"label"in t[0]?t.map(r=>({label:String(r?.label||""),value:String(r?.value||""),color:r?.color})):t&&typeof t=="object"&&"label"in t?[{label:String(t.label||""),value:String(t.value||""),color:t?.color}]:Array.isArray(n)&&n.length&&typeof n[0]=="object"&&"label"in n[0]?n.map(r=>({label:String(r?.label||""),value:String(r?.value||""),color:r?.color})):n&&typeof n=="object"&&"label"in n?[{label:String(n.label||""),value:String(n.value||""),color:n?.color}]:[],Xv=({hasExistingData:e})=>h.jsx("div",{className:"!w-full px-3 py-1.5",children:e?h.jsx(ct.Skeleton,{paragraph:{rows:1,width:"100%"}}):h.jsx(ct.Skeleton,{})}),Jv=({showSelectAll:e,mode:t,options:n,searchValue:r,handleSelectAll:i,isAllSelected:l,menu:o,isLoading:s,hasExistingData:u,t:c})=>h.jsxs(h.Fragment,{children:[e&&t==="multiple"&&n.length>0&&r.trim().length===0&&h.jsx("div",{role:"button",tabIndex:0,className:"px-3 py-2 border-b border-gray-200 dark:border-gray-600 cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700",onClick:d=>{d.stopPropagation(),i()},onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i())},children:h.jsx(he,{size:"small",variant:"semibold",className:"text-primary-600 dark:text-primary-300",appearance:"custom",children:c(l?"Deselect all":"Select all")})}),o,s&&h.jsx(Xv,{hasExistingData:u})]}),E1=a.forwardRef(({label:e,value:t,mode:n,errorMessage:r,selectOptions:i=[],required:l=!1,tags:o,className:s,onInputChange:u,tooltip:c,originalCase:d=!1,isAiExtracted:f=!1,isGTN:p=!1,gtnName:m=null,onChange:g,onSearch:v,debounceTimeout:b=500,filterOption:x=!0,onScroll:E,isLoading:C=!1,allowClear:S=!0,autoClearSearchValue:w=!0,fullOpacityLabel:y=!1,showAllTags:I=!1,customTagRender:k,inputStyles:z,disabled:F=!1,showSelectAll:N=!1,labelClassName:T,riskDetails:B,isRiskAnalysisOpen:j=!1,RiskDetailsCard:D,AIExtractedIndicator:H,RequiredIndicator:_,AddToDocumentIcon:G,primaryColorShades:J,UserAvatar:A,handleAddGTNToDocument:X,t:$=ce=>ce,...M},Z)=>{const[ce,ae]=a.useState(!1),U=a.useRef(null),[le,q]=a.useState(!1),[ge,$e]=a.useState(""),te=me=>{if(!X)return;let ze=null;me==null?ze=null:typeof me=="string"||typeof me=="number"?ze=me:Array.isArray(me)?ze=me.map(W=>typeof W=="object"&&W!==null&&"value"in W?W.value:W):typeof me=="object"&&"value"in me&&(ze=me.value),X(ze)},Ne=$v(t),qe=a.useMemo(()=>v?Pv(v,b):null,[v,b]),Ze=(me,ze)=>{if(U.current&&M.id){const W=document.getElementById(M.id);if(W){const R=Array.isArray(ze)?ze.map(Ce=>Ce.value):ze?.value;W.dataset.selectedValue=JSON.stringify(R);const de=new Event("change",{bubbles:!0});Object.defineProperty(de,"target",{writable:!1,value:W}),W.dispatchEvent(de);const we=new CustomEvent("pilot-change",{bubbles:!0,detail:{selector:`#${M.id}`,value:R,type:"change"}});W.dispatchEvent(we)}}if(n==="tags"){const W=Array.isArray(me)?me:[me];g?.(W?.map(R=>({label:R,value:R})))}else g?.(ze)},Oe=Uv({options:i,value:t,defaultValue:M?.defaultValue}),mt=a.useMemo(()=>Oe.length>0||Ne!=null,[Oe,Ne]),Pt=a.useMemo(()=>{if(!n||n!=="multiple"||Oe.length===0)return!1;const me=Array.isArray(Ne)?Ne:[];return Oe.map(W=>W.value).every(W=>me.some(R=>typeof R=="object"&&R!==null&&"value"in R?String(R.value)===String(W):String(R)===String(W)))},[Ne,Oe,n]),at=()=>{!n||n!=="multiple"||!g||g(Pt?[]:Oe)},Be=a.useCallback(me=>{if(!me)return;const ze=new Event("submit",{bubbles:!0,cancelable:!0});me.dispatchEvent(ze);const W=me.querySelector('button[type="submit"]');W&&W.click()},[]),Et=a.useCallback(me=>{if(me.key==="Enter"&&!le&&Ne){me.preventDefault(),me.stopPropagation();const ze=me.currentTarget.closest("form");Be(ze)}},[le,Ne,Be]),rt=a.useCallback(me=>{const{label:ze,value:W,onClose:R}=me,we=Oe.find(je=>String(je.value)===String(W))?.color||"blue",Ce=je=>{je.preventDefault(),je.stopPropagation()};return h.jsx("div",{className:"cursor-pointer me-1 inline-flex",children:h.jsx(Vr,{label:ze,color:we,size:"sm",onMouseDown:Ce,onClick:F?void 0:R,isHashColor:!0})})},[Oe,F]),pt=a.useCallback(me=>{$e(me),(u||qe)?.(me)},[u,qe]);return h.jsxs("div",{ref:Z,className:V("flex gap-0.5 w-full relative",ce&&p?"border rounded-lg border-primary-100 bg-primary-50 p-1":""),onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),id:M.id,children:[p&&!ce?h.jsx("div",{className:"w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5"}):null,h.jsxs("div",{className:V("w-full flex flex-col gap-1 risk-analysis-select-field",s),onMouseDown:me=>me.stopPropagation(),role:"group","aria-labelledby":e?"select-field-label":void 0,children:[e?h.jsx("label",{id:"select-field-label",htmlFor:"label",className:`text-xs font-medium text-gray-600 dark:text-black-300 inline-flex items-center gap-1 ${d?"":"capitalize"} ${T||""}`,children:h.jsxs("div",{className:"w-full flex items-center justify-between flex-wrap",children:[h.jsxs("div",{className:"inline-flex items-center gap-1 flex-wrap",children:[h.jsxs(he,{size:"extra-small",className:y?"text-black-900 dark:text-black-300":"",variant:"medium",appearance:"subtitle",children:[e,l&&_?h.jsx(_,{}):l&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&H&&h.jsx(H,{}),h.jsx(w1,{labels:o}),c&&h.jsx(ct.Tooltip,{placement:"top",title:c,children:h.jsx("div",{className:"cursor-pointer",role:"button",tabIndex:0,onKeyDown:me=>{(me.key==="Enter"||me.key===" ")&&me.preventDefault()},children:h.jsx(b1,{})})})]}),p&&ce&&G?h.jsx("button",{id:"btn-select-field-base-add-to-document",className:"cursor-pointer",onClick:()=>te(Ne),type:"button",children:h.jsx(ct.Tooltip,{placement:"top",title:$("Add to document"),children:h.jsx(G,{fontSize:16,color:J?.[600]})})}):null]})}):null,h.jsx(ct.Select,{onKeyDown:Et,onOpenChange:q,disabled:F,className:`w-full text-black-900 dark:text-black-200 ${r&&l?"ant-select-status-error":"#e2e8f0"} ${j&&B?.color?"risk-select-field":""}`,classNames:{popup:{root:"!z-[5001]"}},style:{width:"100%","--risk-color":j&&B?.hexBgColor?B?.hexBgColor:"","--risk-border-color":j&&B?.hexBorderColor?B?.hexBorderColor:""},"aria-required":l,mode:n,value:Ne,onChange:Ze,filterOption:v?x:(me,ze)=>(ze?.label||"")?.toLowerCase()?.includes(me?.toLowerCase()),showSearch:!0,onSearch:pt||void 0,onPopupScroll:E,popupClassName:"select-field-dropdown-popup",popupRender:me=>h.jsx(Jv,{showSelectAll:N,mode:n,options:Oe,searchValue:ge,handleSelectAll:at,isAllSelected:Pt,menu:me,isLoading:C,hasExistingData:mt,t:$}),options:Oe.map(({label:me,value:ze,color:W,...R})=>({label:String(me),value:String(ze),key:String(ze),id:String(ze),color:W,...R})),optionRender:me=>{const ze=me?.data?.fullname;if(ze&&A){const[W,R]=ze.split(" ");return h.jsxs("div",{className:"flex items-center justify-start gap-1",children:[h.jsx(A,{firstName:W,lastName:R,profilePic:me?.data?.url||"",size:"xs",enablePopper:!0,userId:me?.data?.value}),h.jsx("span",{className:"ml-2",children:me.label})]})}return h.jsx("span",{children:me.label})},autoClearSearchValue:w,onClear:()=>g&&g(n==="tags"||n==="multiple"?[]:null),maxTagCount:n==="tags"&&I?void 0:"responsive",maxTagPlaceholder:me=>h.jsx(ct.Tooltip,{trigger:"hover",title:me.map(({label:ze})=>ze).join(", "),overlayStyle:{pointerEvents:"none"},children:h.jsxs("span",{children:["+",me.length," more"]})}),tagRender:k||rt,allowClear:S,...M}),r&&h.jsx(he,{className:"text-error-500",appearance:"custom",size:"extra-small",variant:"medium",children:r})]}),ce&&B&&j&&D&&h.jsx("div",{role:"tooltip",tabIndex:0,className:"absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-black-600 rounded-xl",onClick:me=>me.stopPropagation(),onMouseDown:me=>me.preventDefault(),onKeyDown:me=>{me.key==="Escape"&&ae(!1)},children:h.jsx(D,{riskDetails:B})})]})});E1.displayName="SelectField";const C1=a.forwardRef(({id:e,label:t,checked:n,isChecked:r,onChange:i,disabled:l=!1,required:o=!1,message:s,messageType:u="default",wrapperClassName:c,checkboxClassName:d,labelClassName:f,size:p="medium",variant:m="default",labelPosition:g="right",checkboxProps:v},b)=>{const x=n!==void 0?n:r||!1,E=()=>{switch(p){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},C=()=>{if(u==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(u==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(u==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(m){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},S=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",w=()=>{switch(p){case"small":return"extra-small";case"large":return"medium";default:return"small"}},y=z=>{i(z.target.checked,z)},I=h.jsx(ct.Checkbox,{...v,ref:b,id:e,checked:x,onChange:y,disabled:l,className:V("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",E(),C(),l&&"opacity-50 cursor-not-allowed",d),"aria-required":o,"aria-invalid":s&&u==="error"?"true":"false","aria-describedby":s?`${e}-message`:void 0}),k=t?h.jsx("label",{htmlFor:e,className:V("font-medium cursor-pointer transition-colors duration-200",l?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",g==="right"?"ml-2":"mr-2",f),children:h.jsxs(he,{variant:"medium",size:w(),appearance:"body",children:[t,o&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return h.jsxs("div",{className:V("flex flex-col",c),children:[h.jsx("div",{className:V("flex items-center",g==="left"&&"flex-row-reverse justify-end"),children:g==="left"?h.jsxs(h.Fragment,{children:[I,k]}):h.jsxs(h.Fragment,{children:[I,k]})}),h.jsx(_e.AnimatePresence,{children:s&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:u==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",S()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});C1.displayName="Checkbox";const k1=a.forwardRef(({id:e,label:t,value:n,defaultValue:r="#000000",onChange:i,onColorChange:l,disabled:o=!1,required:s=!1,message:u,messageType:c="default",wrapperClassName:d,inputClassName:f,labelClassName:p,size:m="medium",showValue:g=!1,valueFormat:v="hex",inputProps:b,helpText:x},E)=>{const C=n!==void 0?n:r,S=()=>{switch(m){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},w=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",y=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",I=()=>{switch(m){case"small":return"extra-small";case"large":return"medium";default:return"small"}},k=T=>{const B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(T);if(!B)return T;const j=parseInt(B[1],16),D=parseInt(B[2],16),H=parseInt(B[3],16);return`rgb(${j}, ${D}, ${H})`},z=T=>{const B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(T);if(!B)return T;const j=parseInt(B[1],16)/255,D=parseInt(B[2],16)/255,H=parseInt(B[3],16)/255,_=Math.max(j,D,H),G=Math.min(j,D,H);let J=0,A=0;const X=(_+G)/2;if(_!==G){const $=_-G;switch(A=X>.5?$/(2-_-G):$/(_+G),_){case j:J=(D-H)/$+(D<H?6:0);break;case D:J=(H-j)/$+2;break;case H:J=(j-D)/$+4;break}J/=6}return`hsl(${Math.round(J*360)}, ${Math.round(A*100)}%, ${Math.round(X*100)}%)`},F=()=>{switch(v){case"rgb":return k(C);case"hsl":return z(C);default:return C.toUpperCase()}},N=T=>{const B=T.target.value;i(B,T),l?.(B)};return h.jsxs("div",{className:V("flex flex-col w-full",d),children:[t&&h.jsx("label",{htmlFor:e,className:V("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",p),children:h.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:h.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:h.jsxs(he,{variant:"medium",size:I(),appearance:"subtitle",children:[t,s&&h.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),x&&h.jsx(he,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:x}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"relative",children:h.jsx("input",{...b,ref:E,type:"color",id:e,value:C,onChange:N,disabled:o,required:s,className:V("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",S(),y(),o&&"opacity-50 cursor-not-allowed",f),style:{backgroundColor:C},"aria-required":s,"aria-invalid":u&&c==="error"?"true":"false","aria-describedby":u||x?`${e}-description`:void 0})}),g&&h.jsx("div",{className:"flex-1",children:h.jsx(he,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:F()})})]}),h.jsx(_e.AnimatePresence,{children:u&&h.jsx(_e.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:h.jsx(he,{className:V("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})}),x&&!u&&h.jsx("div",{id:`${e}-description`,className:"sr-only",children:x})]})});k1.displayName="ColorPicker";function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee.apply(null,arguments)}function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Zv(e,t){if(zr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I1(e){var t=Zv(e,"string");return zr(t)=="symbol"?t:t+""}function ki(e,t,n){return(t=I1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S1(Object(n),!0).forEach(function(r){ki(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I1(r.key),r)}}function Kv(e,t,n){return t&&z1(e.prototype,t),n&&z1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ts(e,t){return ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ts(e,t)}function qv(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ts(e,t)}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(e)}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function Qv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rv(e,t){if(t&&(zr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qv(e)}function e7(e){var t=F1();return function(){var n,r=$l(e);if(t){var i=$l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rv(this,n)}}function ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t7(e){if(Array.isArray(e))return ns(e)}function n7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M1(e,t){if(e){if(typeof e=="string")return ns(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ns(e,t):void 0}}function r7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
50
50
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gr(e){return t7(e)||n7(e)||M1(e)||r7()}function i7(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function l7(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var a7=function(){function e(n){var r=this;this._insertTag=function(i){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,l),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(l7(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var l=i7(i);try{l.insertRule(r,l.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ht="-ms-",Wl="-moz-",We="-webkit-",A1="comm",rs="rule",is="decl",o7="@import",N1="@keyframes",s7="@layer",u7=Math.abs,Ul=String.fromCharCode,c7=Object.assign;function d7(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function D1(e){return e.trim()}function f7(e,t){return(e=t.exec(e))?e[0]:e}function Ue(e,t,n){return e.replace(t,n)}function ls(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function Ii(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function as(e){return e.length}function Xl(e,t){return t.push(e),e}function h7(e,t){return e.map(t).join("")}var Jl=1,_r=1,L1=0,Yt=0,xt=0,$r="";function Zl(e,t,n,r,i,l,o){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:Jl,column:_r,length:o,return:""}}function Si(e,t){return c7(Zl("",null,null,"",null,null,0),e,{length:-e.length},t)}function m7(){return xt}function p7(){return xt=Yt>0?Lt($r,--Yt):0,_r--,xt===10&&(_r=1,Jl--),xt}function ln(){return xt=Yt<L1?Lt($r,Yt++):0,_r++,xt===10&&(_r=1,Jl++),xt}function Ln(){return Lt($r,Yt)}function Yl(){return Yt}function zi(e,t){return Ii($r,e,t)}function Fi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T1(e){return Jl=_r=1,L1=Dn($r=e),Yt=0,[]}function O1(e){return $r="",e}function Kl(e){return D1(zi(Yt-1,os(e===91?e+2:e===40?e+1:e)))}function g7(e){for(;(xt=Ln())&&xt<33;)ln();return Fi(e)>2||Fi(xt)>3?"":" "}function v7(e,t){for(;--t&&ln()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return zi(e,Yl()+(t<6&&Ln()==32&&ln()==32))}function os(e){for(;ln();)switch(xt){case e:return Yt;case 34:case 39:e!==34&&e!==39&&os(xt);break;case 40:e===41&&os(e);break;case 92:ln();break}return Yt}function b7(e,t){for(;ln()&&e+xt!==57;)if(e+xt===84&&Ln()===47)break;return"/*"+zi(t,Yt-1)+"*"+Ul(e===47?e:ln())}function x7(e){for(;!Fi(Ln());)ln();return zi(e,Yt)}function y7(e){return O1(ql("",null,null,null,[""],e=T1(e),0,[0],e))}function ql(e,t,n,r,i,l,o,s,u){for(var c=0,d=0,f=o,p=0,m=0,g=0,v=1,b=1,x=1,E=0,C="",S=i,w=l,y=r,I=C;b;)switch(g=E,E=ln()){case 40:if(g!=108&&Lt(I,f-1)==58){ls(I+=Ue(Kl(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=Kl(E);break;case 9:case 10:case 13:case 32:I+=g7(g);break;case 92:I+=v7(Yl()-1,7);continue;case 47:switch(Ln()){case 42:case 47:Xl(w7(b7(ln(),Yl()),t,n),u);break;default:I+="/"}break;case 123*v:s[c++]=Dn(I)*x;case 125*v:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+d:x==-1&&(I=Ue(I,/\f/g,"")),m>0&&Dn(I)-f&&Xl(m>32?B1(I+";",r,n,f-1):B1(Ue(I," ","")+";",r,n,f-2),u);break;case 59:I+=";";default:if(Xl(y=P1(I,t,n,c,d,i,s,C,S=[],w=[],f),l),E===123)if(d===0)ql(I,t,y,y,S,l,f,s,w);else switch(p===99&&Lt(I,3)===110?100:p){case 100:case 108:case 109:case 115:ql(e,y,y,r&&Xl(P1(e,y,y,0,0,i,s,C,i,S=[],f),w),i,w,f,s,r?S:w);break;default:ql(I,y,y,y,[""],w,0,s,w)}}c=d=m=0,v=x=1,C=I="",f=o;break;case 58:f=1+Dn(I),m=g;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&p7()==125)continue}switch(I+=Ul(E),E*v){case 38:x=d>0?1:(I+="\f",-1);break;case 44:s[c++]=(Dn(I)-1)*x,x=1;break;case 64:Ln()===45&&(I+=Kl(ln())),p=Ln(),d=f=Dn(C=I+=x7(Yl())),E++;break;case 45:g===45&&Dn(I)==2&&(v=0)}}return l}function P1(e,t,n,r,i,l,o,s,u,c,d){for(var f=i-1,p=i===0?l:[""],m=as(p),g=0,v=0,b=0;g<r;++g)for(var x=0,E=Ii(e,f+1,f=u7(v=o[g])),C=e;x<m;++x)(C=D1(v>0?p[x]+" "+E:Ue(E,/&\f/g,p[x])))&&(u[b++]=C);return Zl(e,t,n,i===0?rs:s,u,c,d)}function w7(e,t,n){return Zl(e,t,n,A1,Ul(m7()),Ii(e,2,-2),0)}function B1(e,t,n,r){return Zl(e,t,n,is,Ii(e,0,r),Ii(e,r+1,-1),r)}function Wr(e,t){for(var n="",r=as(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function E7(e,t,n,r){switch(e.type){case s7:if(e.children.length)break;case o7:case is:return e.return=e.return||e.value;case A1:return"";case N1:return e.return=e.value+"{"+Wr(e.children,r)+"}";case rs:e.value=e.props.join(",")}return Dn(n=Wr(e.children,r))?e.return=e.value+"{"+n+"}":""}function C7(e){var t=as(e);return function(n,r,i,l){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,l)||"";return o}}function k7(e){return function(t){t.root||(t=t.return)&&e(t)}}function I7(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var S7=function(t,n,r){for(var i=0,l=0;i=l,l=Ln(),i===38&&l===12&&(n[r]=1),!Fi(l);)ln();return zi(t,Yt)},z7=function(t,n){var r=-1,i=44;do switch(Fi(i)){case 0:i===38&&Ln()===12&&(n[r]=1),t[r]+=S7(Yt-1,n,r);break;case 2:t[r]+=Kl(i);break;case 4:if(i===44){t[++r]=Ln()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ul(i)}while(i=ln());return t},F7=function(t,n){return O1(z7(T1(t),n))},j1=new WeakMap,M7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!j1.get(r))&&!i){j1.set(t,!0);for(var l=[],o=F7(n,l),s=r.props,u=0,c=0;u<o.length;u++)for(var d=0;d<s.length;d++,c++)t.props[c]=l[u]?o[u].replace(/&\f/g,s[d]):s[d]+" "+o[u]}}},A7=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function H1(e,t){switch(d7(e,t)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Wl+e+Ht+e+e;case 6828:case 4268:return We+e+Ht+e+e;case 6165:return We+e+Ht+"flex-"+e+e;case 5187:return We+e+Ue(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return We+e+Ht+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return We+e+Ht+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+Ht+Ue(e,"shrink","negative")+e;case 5292:return We+e+Ht+Ue(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ue(e,"-grow","")+We+e+Ht+Ue(e,"grow","positive")+e;case 4554:return We+Ue(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dn(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Wl+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ls(e,"stretch")?H1(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,Dn(e)-3-(~ls(e,"!important")&&10))){case 107:return Ue(e,":",":"+We)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Lt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return We+e+Ht+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+Ht+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+Ht+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+Ht+e+e}return e}var N7=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case is:t.return=H1(t.value,t.length);break;case N1:return Wr([Si(t,{value:Ue(t.value,"@","@"+We)})],i);case rs:if(t.length)return h7(t.props,function(l){switch(f7(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wr([Si(t,{props:[Ue(l,/:(read-\w+)/,":"+Wl+"$1")]})],i);case"::placeholder":return Wr([Si(t,{props:[Ue(l,/:(plac\w+)/,":"+We+"input-$1")]}),Si(t,{props:[Ue(l,/:(plac\w+)/,":"+Wl+"$1")]}),Si(t,{props:[Ue(l,/:(plac\w+)/,Ht+"input-$1")]})],i)}return""})}},D7=[N7],L7=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||D7,l={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)l[b[x]]=!0;s.push(v)});var u,c=[M7,A7];{var d,f=[E7,k7(function(v){d.insert(v)})],p=C7(c.concat(i,f)),m=function(b){return Wr(y7(b),p)};u=function(b,x,E,C){d=E,m(b?b+"{"+x.styles+"}":x.styles),C&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new a7({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:u};return g.sheet.hydrate(s),g},Ql={exports:{}},Ye={};/** @license React v16.13.1
|
|
51
51
|
* react-is.production.min.js
|
|
52
52
|
*
|