bj-web-components 0.2.21 → 0.2.23

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/style.css CHANGED
@@ -1 +1 @@
1
- .bu-icon{width:1em;height:1em;overflow:hidden;vertical-align:-.15em;fill:currentColor}.tooltip-wrapper{position:relative;display:inline-block}.tooltip-popup{position:absolute;z-index:1000;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;border:1px solid #e5e7eb;min-width:200px;max-width:280px;padding:16px}.tooltip-popup--top{bottom:calc(100% + 16px);left:50%;transform:translate(-50%)}.tooltip-popup--topLeft{bottom:calc(100% + 16px);left:0}.tooltip-popup--topRight{bottom:calc(100% + 16px);right:0}.tooltip-popup--bottom{top:calc(100% + 16px);left:50%;transform:translate(-50%)}.tooltip-popup--bottomLeft{top:calc(100% + 16px);left:0}.tooltip-popup--bottomRight{top:calc(100% + 16px);right:0}.tooltip-popup--left{right:calc(100% + 16px);top:50%;transform:translateY(-50%)}.tooltip-popup--leftTop{right:calc(100% + 16px);top:0}.tooltip-popup--leftBottom{right:calc(100% + 16px);bottom:0}.tooltip-popup--right{left:calc(100% + 16px);top:50%;transform:translateY(-50%)}.tooltip-popup--rightTop{left:calc(100% + 16px);top:0}.tooltip-popup--rightBottom{left:calc(100% + 16px);bottom:0}.tooltip-popup--light{box-shadow:0 2px 6px #0000000f}.tooltip-popup--bordered{border-color:#ebebeb;box-shadow:0 2px 8px #00000014}.tooltip-popup--tinted{background:#f5f3ff;border-color:#ddd6fe;box-shadow:0 2px 8px #8b5cf61a}.tooltip-popup--content{width:max-content;min-width:30px;min-height:32px;padding:24px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;text-align:center;box-shadow:0 0 12px #00000014}.tooltip-popup--content .bu-tooltip-content__text{color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px}.bu-content-tooltip{max-width:none!important;background:transparent!important;box-shadow:none!important}.bu-content-tooltip .ant-tooltip-content{width:max-content;max-width:none!important;background:transparent!important;box-shadow:none!important}.bu-content-tooltip .ant-tooltip-arrow-content{display:none!important}.bu-content-tooltip .ant-tooltip-inner{width:max-content;min-width:0;max-width:none!important;padding:0;background:transparent;box-shadow:none}.bu-content-tooltip .tooltip-popup--antd{position:relative;inset:auto;transform:none}.tooltip-arrow{position:absolute;width:14px;height:14px;background:#fff;transform:rotate(45deg)}.tooltip-arrow--top{bottom:-8px;left:50%;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px;transform:translate(-50%) rotate(45deg)}.tooltip-arrow--topLeft{bottom:-8px;left:16px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px}.tooltip-arrow--topRight{bottom:-8px;right:16px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px}.tooltip-arrow--bottom{top:-8px;left:calc(50% - 8px);border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--bottomLeft{top:-8px;left:16px;border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--bottomRight{top:-8px;right:16px;border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--left{right:-8px;top:calc(50% - 8px);border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--leftTop{right:-8px;top:16px;border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--leftBottom{right:-8px;bottom:16px;border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--right{left:-8px;top:calc(50% - 8px);border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--rightTop{left:-8px;top:16px;border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--rightBottom{left:-8px;bottom:16px;border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--tinted-bg{background:#f5f3ff}.tooltip-confirm__title{font-size:12px;color:#111827;margin-bottom:12px;line-height:1.5}.tooltip-confirm__actions{display:flex;align-items:center;justify-content:center;gap:30px}.tooltip-confirm__cancel{background:none;border:none;padding:0;height:24px;font-size:12px;color:#374151;cursor:pointer;border-radius:4px;transition:background-color .15s;width:60px}.tooltip-confirm__cancel:hover{background:#f3f4f6}.tooltip-confirm__ok{background:#333;border:none;padding:0;height:24px;font-size:12px;color:#fff;cursor:pointer;border-radius:6px;width:60px;font-weight:500;transition:background-color .15s}.tooltip-confirm__ok:hover{background:#374151}.tooltip-progress{min-width:220px}.tooltip-progress__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.tooltip-progress__title{font-size:12px;color:#111827;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tooltip-progress__percent{font-size:12px;color:#6b7280;font-weight:500;flex-shrink:0;margin-left:8px}.tooltip-progress__track{width:100%;height:4px;background:#e5e7eb;border-radius:2px;overflow:hidden}.tooltip-progress__fill{height:100%;width:var(--tooltip-progress, 0%);background:#333;border-radius:2px;transition:width .3s ease}.bu-tooltip-content__text{font-size:12px;color:#6b7280;line-height:1.6;overflow-wrap:break-word;margin-bottom:0}@keyframes sku-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.sku-input-card{position:relative;display:flex;flex-direction:row;min-width:411px;height:100%;border:1px solid #e5e7eb;border-radius:8px;background:#fff;background-clip:padding-box}.sku-input-card--error{border-color:#fde6e9}.sku-input-card__drag{display:flex;align-items:center;justify-content:center;width:32px;flex-shrink:0;color:#333;background:#f5f5f5;cursor:grab;margin-right:12px}.sku-input-card__drag:active{cursor:grabbing}.sku-input-card__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;padding:12px 12px 12px 0}.sku-input-card__header{display:flex;align-items:center;gap:8px;background:#fff}.sku-input-card__name-wrap{position:relative;flex:1;min-width:0}.sku-input-card__name-input{width:100%;height:40px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:0 8px;font-size:14px;color:#333;outline:none;box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background .2s ease,border-color .2s ease}.sku-input-card__name-input::placeholder{color:#999}.sku-input-card__name-input--with-toggle{padding-right:118px}.sku-input-card__name-input--error{border-width:3px;border-color:#fde6e9;animation:sku-shake .4s ease}.sku-input-card__name-input--error::placeholder{color:#e60023}.sku-input-card__lang-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.sku-input-card__lang-btn{height:24px;width:51px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:24px;text-align:center}.sku-input-card__lang-btn--active{background:#1f2937;color:#fff}.sku-input-card__lang-btn--inactive{color:#374151}.sku-input-card__delete{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#333;background:#f3f4f6;border:none;cursor:pointer;flex-shrink:0;border-radius:4px;padding:0}.sku-input-card__delete:hover{color:#333}.sku-input-card__file-input{display:none}.sku-input-card__body{height:280px;display:flex;align-items:stretch;background:#f5f5f5;border-radius:8px;overflow:hidden}.sku-input-card__image-item{position:relative;flex:1}.sku-input-card__image-thumb{width:100%;height:100%;object-fit:cover;display:block}.sku-input-card__image-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;gap:20px;opacity:0;transition:opacity .2s ease}.sku-input-card__image-item:hover .sku-input-card__image-overlay{opacity:1}.sku-input-card__image-action-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;color:#fff;cursor:pointer;padding:0}.sku-input-card__image-action-btn svg{width:32px;height:32px}.sku-input-card__add-btn{display:flex;align-items:center;justify-content:center;flex:1;color:#333;background:none;border:none;border-radius:4px;cursor:pointer}.sku-input-card__add-btn:hover{color:#333}.sku-input-card__upload-options{display:flex;align-items:center;justify-content:center;flex:1}.sku-input-card__upload-options-box{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 16px #0000001f;overflow:hidden}.sku-input-card__upload-opt-btn{display:flex;align-items:center;justify-content:center;width:140px;height:45px;padding:0;background:none;border:none;cursor:pointer;font-size:13px;color:#6b7280;transition:background .15s ease,color .15s ease}.sku-input-card__upload-opt-btn:hover{background:#f3f4f6;color:#111827}.sku-input-card__dropdown{position:absolute;top:calc(100% + 8px);left:0;width:100%;z-index:100}.sku-input-card__dropdown-list{background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;max-height:216px;overflow-y:auto;padding-right:4px;box-sizing:border-box}.sku-input-card__dropdown-list::-webkit-scrollbar-track{margin:4px 0}.sku-input-card__dropdown-list::-webkit-scrollbar{width:4px}.sku-input-card__dropdown-list::-webkit-scrollbar-thumb{background-color:#dbdbdb;background-clip:padding-box;border:1px solid transparent;border-radius:2px / 2}.sku-input-card__dropdown-item{height:40px;display:flex;align-items:center;box-sizing:border-box;padding:8px 12px;font-size:13px;color:#333;cursor:pointer;transition:background .15s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:6px}.sku-input-card__dropdown-item:hover{background:#f5f5f5;border-radius:6px}.sku-input-card__dropdown-item--disabled{color:#999;cursor:not-allowed}.sku-input-card__dropdown-item--disabled:hover{background:transparent}.sku-input-card__dropdown-item--selected{font-weight:600;background:#f5f5f5}.sku-input-card__dropdown-highlight{font-weight:600}.sku-input-card__loading{display:flex;align-items:center;justify-content:center;flex:1;background:#f5f5f5}.sku-input-card__loading-img{width:48px;height:48px}@keyframes bu-input-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes bu-input-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.bu-input{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.bu-input *{box-sizing:border-box}.bu-input__label{display:flex;align-items:center;gap:2px;font-size:13px;color:#333;font-weight:500;line-height:1.5}.bu-input__required{color:#ef4444;font-size:13px;line-height:1.5}.bu-input__row{display:flex;align-items:stretch}.bu-input__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:40px;background:#fff;border:1px solid #ebebeb;color:#333;box-sizing:border-box}.bu-input__icon--left{border-right:none;border-radius:6px 0 0 6px}.bu-input__icon--right{border-left:none;border-radius:0 6px 6px 0}.bu-input__box{position:relative;flex:1;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:8px 12px;transition:border-color .2s ease;box-sizing:border-box}.bu-input__box--error{border-width:3px;border-color:#fde6e9;padding:6px 10px;animation:bu-input-shake .4s ease}.bu-input__box--error .bu-input__field::placeholder{color:#f87171}.bu-input__box--disabled{background:#f0f0f0;cursor:not-allowed}.bu-input__box--single{height:40px}.bu-input__box--number{padding-right:36px}.bu-input__box--number.bu-input__box--error{padding-right:34px}.bu-input__box--has-left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.bu-input__box--has-right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.bu-input__field{flex:1;width:100%;background:transparent;border:none;outline:none;padding:0;font-size:14px;color:#333;line-height:22px;-moz-appearance:none;appearance:none;-webkit-appearance:none;resize:none;box-sizing:border-box}.bu-input__field::placeholder{color:#999}.bu-input__field:disabled{cursor:not-allowed;color:#999}.bu-input__field--input{height:100%}.bu-input__field--textarea{min-height:80px;padding-bottom:36px}.bu-input__footer{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:10px}.bu-input__footer--bottom{top:auto;transform:none;bottom:8px}.bu-input__count{font-size:12px;color:#999;line-height:1;-webkit-user-select:none;user-select:none}.bu-input__translating{display:flex;align-items:center;gap:4px;font-size:12px;color:#999;-webkit-user-select:none;user-select:none}.bu-input__translating-icon{width:12px;height:12px;flex-shrink:0;animation:bu-input-spin 1s linear infinite}.bu-input__translated{display:flex;align-items:center;gap:4px;font-size:12px;color:#16a34a;-webkit-user-select:none;user-select:none}.bu-input__translated svg{width:14px;height:14px;flex-shrink:0}.bu-input__lang-toggle{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-input__lang-btn{height:22px;width:44px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center}.bu-input__lang-btn--active{background:#1f2937;color:#fff}.bu-input__stepper{position:absolute;right:0;top:0;bottom:0;width:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3.3px;box-sizing:border-box}.bu-input__stepper-btn{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;color:#6b7280;padding:0;line-height:1}.bu-input__stepper-btn:disabled{cursor:not-allowed;color:#ebebeb}.bu-input__error-msg{display:flex;align-items:center;gap:4px;font-size:12px;color:#ef4444;line-height:1.4;margin-top:2px}.bu-input__error-icon{flex-shrink:0;width:14px;height:14px}.bj-input{width:100%;height:40px;padding:0 8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;background:#fff;border:1px solid #ebebeb;border-radius:8px;outline:none}.bj-input::placeholder{color:#999}.bj-input--small{height:32px}.bj-input--large{height:48px}.bj-input--disabled{color:#999;background:#f0f0f0;cursor:not-allowed}.bj-input--borderless{border-color:transparent}.bj-input--error{border-color:#ef4444}.bj-input--warning{border-color:#f59e0b}.bj-input__affix-wrapper{display:inline-flex;align-items:center;width:100%;height:40px;gap:4px;padding:0 8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;background:#fff;border:1px solid #ebebeb;border-radius:8px}.bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):hover,.bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):focus-within{box-shadow:0 0 0 1px #dbdbdb}.bj-input__affix-wrapper--disabled{color:#999;background:#f0f0f0;cursor:not-allowed}.bj-input__affix-wrapper--small{height:32px}.bj-input__affix-wrapper--middle{padding-right:4px;padding-left:4px}.bj-input__affix-wrapper--large{height:48px}.bj-input__affix-wrapper--error{border-color:#ef4444}.bj-input__affix-wrapper--warning{border-color:#f59e0b}.bj-input__affix-wrapper>.bj-input{height:auto;padding:0;line-height:21px;background:transparent;border:0}.bj-input__affix-wrapper>.bj-input:hover,.bj-input__affix-wrapper>.bj-input:focus{box-shadow:none}.bj-input__prefix,.bj-input__suffix{display:flex;flex:none;align-items:center;color:#999}.bj-input__prefix .bu-icon,.bj-input__suffix .bu-icon{width:20px;height:20px;color:#999}.bj-input__clear-icon{padding:0;color:#999;font:inherit;background:transparent;border:0;cursor:pointer}.bj-input__clear-icon:hover{color:#6b7280}.bj-input__clear-icon:active{color:#333}.bj-input__clear-icon--hidden{visibility:hidden}.bj-input__group-wrapper{display:inline-block;width:100%}.bj-input__group{display:flex;width:100%}.bj-input__group>.bj-input,.bj-input__group>.bj-input__affix-wrapper{flex:1;min-width:0;border-radius:0}.bj-input__group-addon{display:flex;flex:none;align-items:center;padding:0 12px;color:#333;background:#f5f5f5;border:1px solid #ebebeb}.bj-input__group-addon:first-child{border-radius:8px 0 0 8px}.bj-input__group-addon:last-child{border-radius:0 8px 8px 0}.bj-tabs{display:flex;width:100%;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px}.bj-tabs__nav{position:relative;display:flex;flex:none;align-items:center}.bj-tabs__nav-wrap{display:flex;flex:auto;align-self:stretch;overflow:auto hidden;white-space:nowrap}.bj-tabs__nav-list{position:relative;display:flex;gap:32px}.bj-tabs__tab{position:relative;display:inline-flex;align-items:center;height:45px;padding:0 4px;color:#666;font:inherit;background:transparent;border:0;outline:0;cursor:pointer}.bj-tabs__tab--active{color:#333}.bj-tabs__tab--active .bj-tabs__tab-btn{font-family:SourceHanSansCN-Medium}.bj-tabs__tab--active .bj-tabs__tab-btn:after{position:absolute;right:0;bottom:0;left:0;height:2px;background:#333;content:"";pointer-events:none}.bj-tabs__tab--disabled{color:#999;cursor:not-allowed}.bj-tabs__tab-btn{position:relative;display:inline-flex;align-items:center;height:100%;outline:none}.bj-tabs__content-holder{flex:auto;min-width:0;min-height:0}.bj-tabs__content{position:relative;width:100%}.bj-tabs__tabpane{display:none;outline:none}.bj-tabs__tabpane--active{display:block}.bj-tabs__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.bj-tabs--top,.bj-tabs--bottom{flex-direction:column}.bj-tabs--top>.bj-tabs__nav,.bj-tabs--bottom>.bj-tabs__nav{width:100%;border-bottom:1px solid #ebebeb}.bj-tabs--bottom>.bj-tabs__nav{order:1;border-top:1px solid #ebebeb;border-bottom:0}.bj-tabs--bottom>.bj-tabs__content-holder{order:0}.bj-tabs--left>.bj-tabs__nav,.bj-tabs--right>.bj-tabs__nav{flex-direction:column;min-width:48px}.bj-tabs--left .bj-tabs__nav-wrap,.bj-tabs--right .bj-tabs__nav-wrap{overflow:hidden auto}.bj-tabs--left .bj-tabs__nav-list,.bj-tabs--right .bj-tabs__nav-list{flex-direction:column}.bj-tabs--left .bj-tabs__tab,.bj-tabs--right .bj-tabs__tab{justify-content:center}.bj-tabs--left>.bj-tabs__nav{border-right:1px solid #ebebeb}.bj-tabs--left>.bj-tabs__content-holder{padding-left:16px}.bj-tabs--right>.bj-tabs__nav{order:1;border-left:1px solid #ebebeb}.bj-tabs--right>.bj-tabs__content-holder{order:0;padding-right:16px}.bj-tabs--centered>.bj-tabs__nav .bj-tabs__nav-wrap{justify-content:center}.bj-tabs--card>.bj-tabs__nav .bj-tabs__tab{margin:0;background:#f5f5f5;border:1px solid #ebebeb}.bj-tabs--card>.bj-tabs__nav .bj-tabs__tab--active{background:#fff}.bj-tabs--card .bj-tabs__tab--active .bj-tabs__tab-btn:after{display:none}.bj-tabs--card.bj-tabs--top>.bj-tabs__nav .bj-tabs__tab{border-radius:4px 4px 0 0}.bj-tabs--card.bj-tabs--bottom>.bj-tabs__nav .bj-tabs__tab{border-radius:0 0 4px 4px}.bj-tabs--card.bj-tabs--left>.bj-tabs__nav .bj-tabs__tab{border-radius:4px 0 0 4px}.bj-tabs--card.bj-tabs--right>.bj-tabs__nav .bj-tabs__tab{border-radius:0 4px 4px 0}@keyframes bu-eib-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.bu-eib{display:block}.bu-eib__box{position:relative;display:block;height:40px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:0 12px;box-sizing:border-box;transition:border-color .2s ease}.bu-eib__box--actions-delete{padding-right:40px}.bu-eib__box--actions-toggle{padding-right:114px}.bu-eib__box--actions-both{padding-right:142px}.bu-eib__box--error{border-width:3px;border-color:#fde6e9;padding-left:10px;padding-top:0;padding-bottom:0;animation:bu-eib-shake .4s ease}.bu-eib__box--error.bu-eib__box--actions-delete{padding-right:38px}.bu-eib__box--error.bu-eib__box--actions-toggle{padding-right:112px}.bu-eib__box--error.bu-eib__box--actions-both{padding-right:140px}.bu-eib__box--error .bu-eib__field::placeholder{color:#f87171}.bu-eib__box--disabled{background:#f0f0f0;cursor:not-allowed}.bu-eib__field{display:block;width:100%;height:100%;background:transparent;border:none;outline:none;padding:0;font-size:14px;color:#333;line-height:40px;-moz-appearance:none;appearance:none;-webkit-appearance:none;box-sizing:border-box}.bu-eib__field::placeholder{color:#999}.bu-eib__field:disabled{cursor:not-allowed;color:#999}.bu-eib__actions{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:4px}.bu-eib__lang-toggle{display:flex;align-items:center;flex-shrink:0;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-eib__lang-btn{height:22px;width:44px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center}.bu-eib__lang-btn--active{background:#1f2937;color:#fff}.bu-eib__delete{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;cursor:pointer;color:#333;border-radius:4px}.bu-eib__delete:hover{background:#f3f4f6}@keyframes bu-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes bu-modal-slide-in{0%{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.bu-modal__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;animation:bu-modal-fade-in .18s ease}.bu-modal__container{background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000001f;width:480px;min-width:320px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;animation:bu-modal-slide-in .2s ease;overflow:hidden}.bu-modal__header{display:flex;align-items:center;height:64px;padding:0 20px;flex-shrink:0;gap:8px}.bu-modal__title{flex:1;font-size:15px;font-weight:500;color:#111827;line-height:1.4;margin:0}.bu-modal__lang-toggle{display:flex;align-items:center;flex-shrink:0;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-modal__lang-btn{height:22px;width:40px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center;transition:background .15s ease,color .15s ease}.bu-modal__lang-btn--active{background:#1f2937;color:#fff}.bu-modal__close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:transparent;cursor:pointer;color:#333;border-radius:100px;font-size:20px;line-height:1;transition:background .15s ease,color .15s ease}.bu-modal__close svg{width:24px;height:24px}.bu-modal__close:hover{background:#f3f4f6;color:#333}.bu-modal__body{flex:1;padding:0 20px;min-height:63px;color:#333;font-size:14px;line-height:1.6}.bu-modal__footer{display:flex;flex-direction:column;align-items:center;padding:60px 20px 24px;gap:10px}.bu-modal__hint{font-size:12px;color:#999;line-height:1.5;text-align:center;margin:0}.bu-modal__btn-row{display:flex;align-items:center;justify-content:center;gap:32px}.bu-modal__btn-cancel{height:34px;padding:0 8px;min-width:88px;border:none;border-radius:6px;background:transparent;color:#374151;font-size:14px;font-weight:400;cursor:pointer;line-height:34px}.bu-modal__btn-ok{height:34px;min-width:88px;padding:0 8px;border:none;border-radius:6px;background:#333;color:#fff;font-size:14px;font-weight:500;cursor:pointer;line-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:4px;transition:opacity .15s ease}.bu-modal__btn-ok--loading{opacity:.65;cursor:not-allowed}.bu-modal__btn-ok:disabled{cursor:not-allowed}.bu-modal__btn-ok-spinner{display:inline-block;width:14px;height:14px;border:2px solid #ffffff;border-right-color:transparent;border-radius:50%;animation:bu-modal-spin .6s linear infinite;flex-shrink:0}@keyframes bu-modal-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}html ::-webkit-scrollbar-button{display:none;height:0;width:0}html ::-webkit-scrollbar-track{-webkit-border-radius:10px;border-radius:10px}html ::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:50px;-webkit-box-shadow:inset 0 0 6px #E2E2E2}.bu-pf{position:relative;display:block;-webkit-user-select:none;user-select:none}.bu-pf ::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__trigger{display:flex;align-items:flex-start;min-height:40px;padding:6px 8px 6px 12px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;cursor:pointer;gap:8px;box-sizing:border-box;overflow:hidden}.bu-pf__trigger--selected{background:#f5f5f5;border-color:#f5f5f5}.bu-pf__trigger-tags{flex:1;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;align-content:flex-start;max-height:94px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-pf__trigger-tags::-webkit-scrollbar{width:4px}.bu-pf__trigger-tags::-webkit-scrollbar-track{background:transparent}.bu-pf__trigger-tags::-webkit-scrollbar-thumb{background:#ebebeb;border-radius:2px}.bu-pf__trigger-tags::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__placeholder{flex:1;align-self:center;font-size:14px;color:#999;line-height:1}.bu-pf__arrow{flex-shrink:0;align-self:center;color:#999;display:flex;align-items:center;transition:transform .2s ease}.bu-pf__arrow--open{transform:rotate(180deg)}.bu-pf__panel{border-radius:6px;background:#f5f5f5}.bu-pf__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 0 12px #00000014;overflow:hidden}.bu-pf__header{display:flex;align-items:center;padding:6px 8px 6px 12px;min-height:40px;box-sizing:border-box;gap:8px;overflow:hidden;background:#f5f5f5;border-radius:8px;border:1px solid #DBDBDB}.bu-pf__tags{flex:1;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;align-content:flex-start;max-height:94px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-pf__tags::-webkit-scrollbar{width:4px}.bu-pf__tags::-webkit-scrollbar-track{background:transparent}.bu-pf__tags::-webkit-scrollbar-thumb{background:#ebebeb;border-radius:2px}.bu-pf__tags::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__placeholder-inline{font-size:14px;color:#999;line-height:26px}.bu-pf__tag{display:inline-flex;align-items:center;height:26px;padding:0 6px 0 8px;background:#f5f5f5;border:1px solid #e5e7eb;border-radius:4px;gap:4px;cursor:default;min-width:250px}.bu-pf__tag--single{width:100%;border:none;border-radius:0;background:transparent;padding:0;min-width:0}.bu-pf__tag-text{font-size:13px;color:#333;line-height:1;white-space:nowrap}.bu-pf__tag-close{display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;background:#99999973!important;cursor:pointer;color:#fff;flex-shrink:0;border-radius:9999px;margin-left:auto}.bu-pf__tag-close svg{width:16px;height:16px}.bu-pf__close{flex-shrink:0;align-self:center;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent!important;cursor:pointer;color:#999;border-radius:9999px;transform:rotate(180deg)}.bu-pf__close:hover{background:transparent!important;color:#333}.bu-pf__toolbar{display:flex;align-items:center;gap:8px;padding:12px 12px 16px}.bu-pf__search{flex:1;display:flex;align-items:center;gap:6px;height:40px;padding:0 10px;background:#fff;border:1px solid #ebebeb;border-radius:8px}.bu-pf__search-icon{flex-shrink:0;color:#999;display:flex;align-items:center}.bu-pf__search-input{flex:1;border:none;background:transparent;outline:none;font-size:13px;color:#333;line-height:1;min-width:0}.bu-pf__search-input::placeholder{color:#c4c4c4}.bu-pf__sort-wrap{position:relative;flex-shrink:0}.bu-pf__sort-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:4px;background:#f5f5f5;cursor:pointer;color:#999}.bu-pf__sort-dropdown{position:absolute;top:calc(100% + 4px);right:0;min-width:100px;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;z-index:1000;overflow:hidden}.bu-pf__sort-option{padding:10px 16px;font-size:13px;color:#333;cursor:pointer;white-space:nowrap;text-align:center}.bu-pf__sort-option:hover{background:#f5f5f5}.bu-pf__sort-option--active{background:#f5f5f5;font-weight:500}.bu-pf__no-match{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 0 24px}.bu-pf__no-match-img{width:80px;height:80px;object-fit:contain}.bu-pf__no-match-text{font-size:14px;color:#999;margin:0 0 4px;font-weight:350}.bu-pf__no-match-hint{font-size:12px;color:#999;margin:0}.bu-pf__manage-btn{display:inline;border:none;background:transparent;padding:0;font-size:12px;font-weight:600;color:#333;cursor:pointer}.bu-pf__list{max-height:300px;overflow-y:auto;margin-bottom:8px;width:calc(100% - 12px);display:flex;flex-direction:column;gap:12px}.bu-pf__list::-webkit-scrollbar{width:4px}.bu-pf__list::-webkit-scrollbar-button{height:0;width:0}.bu-pf__list::-webkit-scrollbar-track{background:transparent}.bu-pf__list::-webkit-scrollbar-thumb{border-radius:2px}.bu-pf__option{display:flex;align-items:center;height:40px;flex-shrink:0;padding:0 12px;gap:10px;cursor:pointer}.bu-pf__option:not(.bu-pf__option--multiple):hover{background:#f3f4f6}.bu-pf__option--selected{background:#f3f4f6}.bu-pf__checkbox-img{flex-shrink:0;width:16px;height:16px;display:block}.bu-pf__option-label{flex:1;font-size:14px;color:#333;line-height:1}.bu-pf__add-row{border-top:1px solid #f3f4f6;cursor:pointer}.bu-category-dropdown{position:relative;display:inline-block;min-width:110px;max-width:300px}.bu-category-dropdown__trigger{display:flex;align-items:center;gap:8px;height:40px;min-width:110px;max-width:300px;padding:0 8px;background:#fff;border:1px solid #ebebeb;border-radius:8px;cursor:pointer;box-sizing:border-box;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;text-align:left}.bu-category-dropdown__trigger:hover:not(:disabled){border-color:#ebebeb;box-shadow:inset 0 0 0 2px #ebebeb}.bu-category-dropdown__trigger--open{border-color:#ebebeb;background:#f5f5f5;box-shadow:inset 0 0 0 2px #ebebeb}.bu-category-dropdown__trigger--has-value{background:#f5f5f5}.bu-category-dropdown__trigger:disabled{background:#f0f0f0;cursor:not-allowed}.bu-category-dropdown__trigger-label{display:block;width:100%;font-size:14px;line-height:21px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bu-category-dropdown__trigger-label--placeholder{color:#999}.bu-category-dropdown__trigger-chevron{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;color:#6b7280;transition:transform .2s ease}.bu-category-dropdown__trigger-chevron--open{transform:rotate(180deg)}.bu-category-dropdown__portal{background:#fff;border-radius:8px;padding:4px;box-shadow:0 4px 16px #0000001f;border:1px solid #ebebeb;z-index:1100}.bu-category-dropdown__panel{display:flex;align-items:stretch}.bu-category-dropdown__divider{width:1px;flex-shrink:0;background:#ebebeb;align-self:stretch}.bu-category-dropdown__col{display:flex;flex-direction:column;align-items:stretch;flex-shrink:0;gap:2px;padding:0 8px 0 0;overflow-x:hidden}.bu-category-dropdown__col--indent{padding-left:8px}.bu-category-dropdown__col--last{padding-right:0}.bu-category-dropdown__col--scrollable{max-height:250px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-category-dropdown__col--scrollable::-webkit-scrollbar{width:3px;height:3px;background-color:transparent}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-button{display:none;height:0;width:0;background:transparent}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-track{background-color:transparent;box-shadow:inset 0 0 6px transparent;border-radius:9999px}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-thumb{background-color:transparent;box-shadow:inset 0 0 6px transparent;border-radius:9999px}.bu-category-dropdown__col--scrollable.bu-category-dropdown__col--scrollbar-visible::-webkit-scrollbar-thumb{background-color:#b3b3b3}.bu-category-dropdown__item{display:flex;align-items:center;gap:8px;height:40px;min-width:110px;max-width:300px;padding:0 8px;border:none;border-radius:8px;background:#fff;cursor:pointer;box-sizing:border-box;transition:background .15s ease;text-align:left;flex-shrink:0}.bu-category-dropdown__item:hover:not(:disabled){background:#f5f5f5}.bu-category-dropdown__item--selected-branch,.bu-category-dropdown__item--selected-leaf{background:#f5f5f5}.bu-category-dropdown__item--disabled{cursor:not-allowed;opacity:.45}.bu-category-dropdown__item-label{display:block;width:100%;font-size:14px;line-height:21px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bu-category-dropdown__item-arrow{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;color:#6b7280}.bu-category-dropdown__tooltip.tooltip-popup,.bu-category-dropdown__tooltip.tooltip-popup .tooltip-arrow{border:none}.pagination{display:flex;align-items:center;gap:16px;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;color:#111827;-webkit-user-select:none;user-select:none}.pagination.pagination-start{justify-content:flex-start}.pagination.pagination-center{justify-content:center}.pagination.pagination-end{justify-content:flex-end}.pagination.pagination-small .pagination-item{min-width:24px;height:24px;padding:0 6px;font-size:inherit}.pagination.pagination-small .pagination-prev,.pagination.pagination-small .pagination-next{width:24px;min-width:24px;height:24px;padding:0}.pagination.pagination-medium .pagination-item{min-width:32px;height:32px;padding:0 8px;font-size:inherit}.pagination.pagination-large .pagination-item{min-width:40px;height:40px;padding:0 10px;font-size:inherit}.pagination.pagination-disabled{opacity:.5;pointer-events:none}.pagination .pagination-total{color:#111827}.pagination .pagination-list{display:flex;align-items:center;gap:4px}.pagination .pagination-item{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#111827;cursor:pointer;transition:all .2s;outline:none}.pagination .pagination-item:hover:not(:disabled):not(.pagination-ellipsis){background:#f3f4f6}.pagination .pagination-item:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-item.pagination-item-active{background:#f5f5f5;color:#111827}.pagination .pagination-item.pagination-ellipsis{cursor:default;pointer-events:none}.pagination .pagination-item.pagination-prev svg,.pagination .pagination-item.pagination-next svg{display:block}.pagination .pagination-item.pagination-prev:not(:disabled),.pagination .pagination-item.pagination-next:not(:disabled){background:#fff;border-radius:4px}.pagination .pagination-sizer{display:flex;align-items:center;position:relative}.pagination .pagination-sizer .pagination-sizer-select{display:inline-flex;align-items:center;position:relative;min-width:100px;height:32px;box-sizing:border-box;padding:4px 28px 4px 8px;border:1px solid #ebebeb;border-radius:8px;background:transparent;color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;cursor:pointer;outline:none;transition:all .2s;text-align:left;white-space:nowrap}.pagination .pagination-sizer .pagination-sizer-select:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-sizer .pagination-sizer-select .pagination-sizer-icon{position:absolute;top:50%;right:4px;pointer-events:none;transform:translateY(-50%);transition:transform .2s}.pagination .pagination-sizer .pagination-sizer-select .pagination-sizer-icon.pagination-sizer-icon-open{transform:translateY(-50%) rotate(180deg)}.pagination .pagination-jumper{display:flex;align-items:center;gap:4px}.pagination .pagination-jumper .pagination-jumper-input{width:56px;height:32px;box-sizing:border-box;padding:4px 8px;border:1px solid #ebebeb;border-radius:8px;background:transparent;color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center;outline:none;transition:border-color .2s}.pagination .pagination-jumper .pagination-jumper-input:hover:not(:disabled){border-color:#d1d5db}.pagination .pagination-jumper .pagination-jumper-input:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-jumper .pagination-jumper-input::-webkit-inner-spin-button,.pagination .pagination-jumper .pagination-jumper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pagination .pagination-jumper .pagination-jumper-input::-moz-inner-spin-button,.pagination .pagination-jumper .pagination-jumper-input::-moz-outer-spin-button{-moz-appearance:none;margin:0}.pagination.pagination-simple{display:inline-block}.pagination.pagination-simple .pagination-simple-list{display:inline-flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:8px;padding:0;gap:8px}.pagination.pagination-simple .pagination-simple-item{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:#111827;cursor:pointer;transition:all .2s;outline:none}.pagination.pagination-simple .pagination-simple-item:hover:not(:disabled){background:#0000000d}.pagination.pagination-simple .pagination-simple-item:disabled{cursor:not-allowed;opacity:.5}.pagination.pagination-simple .pagination-simple-item svg{display:block}.pagination.pagination-simple .pagination-simple-text{color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;padding:0 8px}.pagination-sizer-dropdown{width:116px;background:#fff;border-radius:8px;box-shadow:0 0 12px #00000024;z-index:100;overflow:hidden;padding:4px}.pagination-sizer-option{display:block;width:100%;padding:10px;border:none;background:transparent;color:#111827;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;text-align:center;cursor:pointer;transition:background-color .2s;white-space:nowrap;border-radius:6px;height:40px;display:flex;align-items:center;justify-content:center}.pagination-sizer-option:hover{background:#f3f4f6}.pagination-sizer-option[data-selected=true]{background:#f5f5f5}.dark .pagination,.dark .pagination .pagination-item{color:#fff}.dark .pagination .pagination-item:hover:not(:disabled):not(.pagination-ellipsis){background:#ffffff1a}.dark .pagination .pagination-item.pagination-item-active{background:#ffffff1a;color:#fff}.dark .pagination .pagination-total{color:#fff}.dark .pagination .pagination-sizer .pagination-sizer-select{background:transparent;border-color:#ffffff1a;color:#fff}.dark .pagination .pagination-sizer .pagination-sizer-icon{color:#ffffff80}.dark .pagination .pagination-jumper .pagination-jumper-input{background:transparent;border-color:#ffffff1a;color:#fff}.dark .pagination .pagination-jumper .pagination-jumper-input:hover:not(:disabled){border-color:#fff3}.dark .pagination.pagination-simple .pagination-simple-list{background:#ffffff0d}.dark .pagination.pagination-simple .pagination-simple-item{color:#fff}.dark .pagination.pagination-simple .pagination-simple-item:hover:not(:disabled){background:#ffffff1a}.dark .pagination.pagination-simple .pagination-simple-text{color:#fff}.file-card{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:210px;display:flex;flex-direction:column;gap:8px}.file-card .file-card__overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0006;border-radius:inherit;display:flex;align-items:center;justify-content:center;gap:20px;opacity:0;transition:opacity .18s;pointer-events:none}.file-card .file-card__overlay-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#fff;cursor:pointer;border-radius:6px;padding:0;pointer-events:auto;transition:background .15s}.file-card .file-card__overlay-btn:hover{background:#fff3}.file-card .file-card__name-area{display:flex;align-items:flex-start;gap:4px;padding:4px 8px;height:50px}.file-card .file-card__name-area--editing{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:4px 8px;height:50px;display:flex;align-items:flex-start}.file-card .file-card__filename{flex:1;font-size:14px;line-height:1.5;color:#111827;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;padding:0;margin:0;box-sizing:border-box;vertical-align:top}.file-card .file-card__edit-input{flex:1;height:42px;padding:0;font-size:14px;line-height:1.5;color:#111827;border:none;border-radius:0;outline:none;background:transparent;resize:none;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;vertical-align:top}.file-card .file-card__edit-input::-webkit-scrollbar{display:none}.file-card .file-card__edit-input:focus{outline:none}.file-card--pdf .file-card__pdf-preview{position:relative;height:138px;background:#d1d5db;border-radius:4px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:pointer;overflow:hidden;transition:box-shadow .2s}.file-card--pdf .file-card__pdf-preview:hover{box-shadow:0 4px 16px #0000001f}.file-card--pdf .file-card__pdf-preview:hover .file-card__overlay{opacity:1}.file-card--pdf .file-card__pdf-label{width:100%;padding:8px 10px;background:#1f2937;display:flex;align-items:center;justify-content:center;flex-shrink:0}.file-card--pdf .file-card__pdf-label span{font-size:14px;font-weight:350;color:#fff;letter-spacing:.3px}.file-card--other .file-card__other-preview{position:relative;height:138px;background:#fff;border:1px solid #ebebeb;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:box-shadow .2s}.file-card--other .file-card__other-preview:hover{box-shadow:0 2px 6px #0000000f}.file-card--other .file-card__other-preview:hover .file-card__overlay{opacity:1}.file-card--other .file-card__image-thumb{width:100%;height:100%;object-fit:cover}.dark .file-card--pdf .file-card__pdf-preview{background:#2a2a2a}.dark .file-card--pdf .file-card__pdf-preview:hover{box-shadow:0 4px 12px #0006}.dark .file-card--pdf .file-card__pdf-label{background:#1a1a1a}.dark .file-card--other .file-card__other-preview{background:#1f1f1f;border-color:#303030}.dark .file-card--other .file-card__other-preview:hover{box-shadow:0 2px 8px #0000004d}.dark .file-card .file-card__filename{color:#e8e8e8}.dark .file-card .file-card__name-area--editing{background:#1f1f1f;border-color:#404040;padding:4px 8px;height:50px;display:flex;align-items:flex-start}.dark .file-card .file-card__edit-input{background:transparent;color:#e8e8e8;border:none;border-radius:0;height:42px;padding:0;font-size:14px;line-height:1.5;resize:none;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;vertical-align:top}.dark .file-card .file-card__edit-input::-webkit-scrollbar{display:none}.dark .file-card .file-card__edit-input:focus{outline:none}.bu-switch{--bu-switch-light-on: #333333;--bu-switch-light-off: #CCCCCC;--bu-switch-dark-on: #e60023;--bu-switch-dark-off: rgba(255, 255, 255, .25);--bu-switch-track-bg: #CCCCCC;position:relative;display:inline-block;box-sizing:border-box;width:32px;min-width:32px;height:16px;padding:0;border:none;border-radius:9999px;background:var(--bu-switch-track-bg);cursor:pointer;transition:background .2s cubic-bezier(.4,0,.2,1);outline:none;vertical-align:middle;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.bu-switch--disabled{cursor:not-allowed;opacity:.5}.bu-switch--loading{cursor:wait}.bu-switch__track{display:flex;align-items:center;width:100%;height:100%;padding:2px;box-sizing:border-box}.bu-switch__thumb{position:relative;flex-shrink:0;width:12px;height:12px;border-radius:9999px;background:#fff;box-shadow:0 1px 3px #00000026;transition:transform .2s cubic-bezier(.4,0,.2,1);transform:translate(0)}.bu-switch--checked .bu-switch__thumb{transform:translate(16px)}.bu-switch__loading-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#999;animation:bu-switch-spin .8s linear infinite}.bu-switch__loading-icon svg{width:10px;height:10px}@keyframes bu-switch-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bu-switch__label{flex:1;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;overflow:hidden;white-space:nowrap;line-height:1;min-width:0;padding:0 2px}.bu-switch__label--left{justify-content:flex-start}.bu-switch__label--right{justify-content:flex-end}.bj-input-number{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;width:100%;min-width:90px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:8px;padding:8px 12px;transition:border-color .2s ease}.bj-input-number *{box-sizing:border-box}.bj-input-number:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:8px;pointer-events:none;transition:box-shadow .2s ease}.bj-input-number:hover:not(.bj-input-number--disabled):not(.bj-input-number--readonly):after,.bj-input-number:active:not(.bj-input-number--disabled):not(.bj-input-number--readonly):after{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--focused{border-color:#ebebeb}.bj-input-number--focused:after{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--small{height:32px;font-size:13px}.bj-input-number--middle{height:40px;font-size:14px}.bj-input-number--large{height:48px;font-size:15px}.bj-input-number--disabled{background:#f0f0f0;cursor:not-allowed}.bj-input-number--disabled:hover{border-color:#ebebeb}.bj-input-number--readonly{background:#f3f4f6}.bj-input-number--borderless{border-color:transparent;background:transparent}.bj-input-number--borderless.bj-input-number--focused{box-shadow:none}.bj-input-number--error{border-width:3px;border-color:#fde6e9;padding:6px 10px}.bj-input-number--error .bj-input-number__input::placeholder{color:#f87171}.bj-input-number--warning{border-color:#f59e0b}.bj-input-number--out-of-range .bj-input-number__input{color:#ef4444}.bj-input-number--with-controls{padding-right:44px}.bj-input-number--with-controls.bj-input-number--error{padding-right:42px}.bj-input-number--group-left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.bj-input-number--group-right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.bj-input-number__prefix,.bj-input-number__suffix{display:flex;flex:none;align-items:center;color:#6b7280;pointer-events:none}.bj-input-number__prefix{margin-right:4px}.bj-input-number__suffix{margin-left:4px}.bj-input-number__input-wrap{flex:1;min-width:0;display:flex;transition:box-shadow .2s ease}.bj-input-number__input-wrap:hover{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--disabled .bj-input-number__input-wrap:hover,.bj-input-number--readonly .bj-input-number__input-wrap:hover{box-shadow:none}.bj-input-number__input{width:100%;border:none;outline:none;background:transparent;padding:0;margin:0;font:inherit;color:#333;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.bj-input-number__input::-webkit-inner-spin-button,.bj-input-number__input::-webkit-outer-spin-button{margin:0;-moz-appearance:none;appearance:none;-webkit-appearance:none}.bj-input-number__input::placeholder{color:#999}.bj-input-number__input:disabled{cursor:not-allowed;color:#999}.bj-input-number__handler-wrap{position:absolute;top:0;right:0;bottom:0;width:32px;opacity:0;transition:opacity .2s ease}.bj-input-number:hover .bj-input-number__handler-wrap,.bj-input-number--focused .bj-input-number__handler-wrap{opacity:1}.bj-input-number--disabled .bj-input-number__handler-wrap,.bj-input-number--readonly .bj-input-number__handler-wrap{display:none}.bj-input-number__handler{position:absolute;left:0;right:0;margin-right:8px;height:50%;cursor:pointer;background:transparent;-webkit-user-select:none;user-select:none}.bj-input-number__handler--up{top:0}.bj-input-number__handler--down{bottom:0}.bj-input-number__handler--disabled{cursor:not-allowed}.bj-input-number__handler-icon{position:absolute;top:50%;right:8px;width:24px;height:24px;transform:translateY(-50%);pointer-events:none;color:#999;transition:opacity .15s ease,color .15s ease}.bj-input-number__handler-icon--up{clip-path:inset(0 0 50% 0)}.bj-input-number__handler-icon--down{clip-path:inset(50% 0 0 0)}.bj-input-number__handler--up:active~.bj-input-number__handler-icon--up{color:#333}.bj-input-number__handler--down:active~.bj-input-number__handler-icon--down{color:#333}.bj-input-number-group{display:inline-flex;align-items:stretch;width:100%}.bj-input-number-group__addon{display:flex;align-items:center;flex:none;padding:0 12px;background:#f3f4f6;border:1px solid #ebebeb;color:#6b7280;white-space:nowrap}.bj-input-number-group__addon:first-child{border-right:none;border-radius:8px 0 0 8px}.bj-input-number-group__addon:last-child{border-left:none;border-radius:0 8px 8px 0}.bj-input-number-group .bj-input-number{flex:1;min-width:0}.bj-checkbox-wrapper{display:inline-flex;align-items:flex-start;gap:8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;cursor:pointer}.bj-checkbox-wrapper--disabled{color:#999;cursor:not-allowed}.bj-checkbox-wrapper--rtl{direction:rtl}.bj-checkbox{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;vertical-align:middle}.bj-checkbox__input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.bj-checkbox__inner{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:16px;background:transparent;border:1px solid #dbdbdb;border-radius:4px;transition:width .15s ease,height .15s ease,background .15s ease}.bj-checkbox--checked.bj-checkbox--dark .bj-checkbox__inner{width:16px;height:16px;background:#333;border-color:#333}.bj-checkbox--checked.bj-checkbox--white .bj-checkbox__inner{width:16px;height:16px;background:transparent;border-color:#dbdbdb}.bj-checkbox--white .bj-checkbox__check-icon{color:#333}.bj-checkbox__check-icon{position:absolute;top:50%;left:50%;width:14px;height:14px;color:#fff;pointer-events:none;transform:translate(-50%,-50%)}.bj-checkbox--indeterminate .bj-checkbox__inner{width:16px;height:16px;background:#fff;border-color:#dbdbdb}.bj-checkbox__indeterminate-mark{width:8px;height:2px;background:#333;border-radius:4px}.bj-checkbox--disabled{opacity:.5}.bj-checkbox__input:focus-visible+.bj-checkbox__inner{outline:2px solid #1677ff;outline-offset:1px}.bj-checkbox__label{position:relative;min-width:0;padding-right:0;padding-left:0;overflow-wrap:anywhere}.bj-checkbox-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}.bj-checkbox-group--rtl{direction:rtl}.bj-overlay-scrollbar-hidden{scrollbar-width:none;-ms-overflow-style:none}.bj-overlay-scrollbar-hidden::-webkit-scrollbar{width:0;height:0}.bj-overlay-scrollbar__thumb{position:absolute;z-index:100;background:var(--bj-overlay-scrollbar-bg, #dbdbdb);border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background .2s}.bj-overlay-scrollbar__thumb--active{opacity:1}.bj-overlay-scrollbar__thumb:hover{background:var(--bj-overlay-scrollbar-bg, #c2c2c2)}.bj-dropdown{width:280px;overflow:hidden;color:#333;background:#fff;border:1px solid #ebebeb;border-radius:8px;box-shadow:0 0 12px #00000014}.bj-dropdown__search{padding:8px}.bj-dropdown__search .bj-input__affix-wrapper{height:32px;border-radius:8px}.bj-dropdown__search .bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):hover,.bj-dropdown__search .bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):focus-within{border-color:#dbdbdb;box-shadow:none}.bj-dropdown__search .bj-input__clear-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:4px;color:#333}.bj-dropdown__search .bj-dropdown__search-clear-icon{width:20px;height:20px;color:#333}.bj-dropdown__options{max-height:240px;padding:0 12px;margin:0 0 12px;overflow-y:auto}.bj-dropdown__options--empty{height:160px;margin-top:0;margin-bottom:12px}.bj-dropdown__option{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:0;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;white-space:nowrap;cursor:pointer}.bj-dropdown__option .bj-checkbox__label{display:block;flex:1;min-width:0;padding-right:0;padding-left:0}.bj-dropdown__option--single{justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:0 12px;font-family:SourceHanSansCN-Normal;font-size:14px;font-style:normal;font-weight:350;line-height:21px;letter-spacing:0;text-align:left;background:transparent;border:0}.bj-dropdown__option--single:hover:not(:disabled){background:#fafafa}.bj-dropdown__option--single:disabled{color:#999;cursor:not-allowed}.bj-dropdown__option-label{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bj-dropdown__option-content{display:flex;flex:1;flex-direction:column;min-width:0}.bj-dropdown__option-description{overflow:hidden;color:#999;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:19px;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.bj-dropdown__option-tooltip-anchor{display:block;pointer-events:none;z-index:1100}.bj-dropdown__option-tooltip.tooltip-popup,.bj-dropdown__option-tooltip.tooltip-popup .tooltip-arrow{border:0}.bj-dropdown__option-icon{flex:none;width:20px;height:20px;color:#333}.bj-dropdown__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:100%}.bj-dropdown__empty-image{width:68px;height:68px}.bj-dropdown__empty-text{color:#999;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:21px;letter-spacing:0;text-align:center}.bj-dropdown__actions{display:flex;justify-content:center;gap:16px;padding:8px 12px 12px}.bj-dropdown__actions button{min-width:80px;height:28px;padding:0 12px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:28px;background:transparent;border:0;border-radius:4px;cursor:pointer}.bj-dropdown__actions button:last-child{color:#fff;background:#333}.bj-dropdown__actions--single{display:block;padding:0}.bj-dropdown__actions--single button{width:100%;min-width:0;height:40px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:19px;background:#f5f5f5;border-radius:0}.bj-dropdown__actions--single button:last-child{color:#333;background:#f5f5f5}.bj-dropdown--single .bj-dropdown__search{padding:8px}.bj-dropdown--single .bj-dropdown__options--single{max-height:240px;padding:0;margin:0}.bj-dropdown--single .bj-dropdown__options--single.bj-dropdown__options--empty{margin-bottom:20px}.bj-dropdown--double-line .bj-dropdown__options{max-height:336px}.bj-dropdown--double-line .bj-dropdown__option--double-line{min-height:56px;padding:8px 12px}.bj-dropdown--double-line .bj-dropdown__option--double-line .bj-checkbox{margin-top:0}.bj-dropdown--double-line .bj-dropdown__option--double-line--single{padding:8px 12px}.bj-dropdown--double-line .bj-dropdown__option--double-line:not(.bj-dropdown__option--single){padding:8px 0}.bj-dropdown--double-line .bj-dropdown__option-label{font-family:SourceHanSansCN-Normal;font-weight:350;line-height:21px}.bj-dropdown--double-line.bj-dropdown--single .bj-dropdown__options--single{max-height:336px}.bj-table{position:relative;width:100%;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:19px}.bj-table *,.bj-table *:before,.bj-table *:after{box-sizing:border-box}.bj-table__scroll{width:100%;overflow-x:auto}.bj-table__viewport{position:relative}.bj-table__native-table{width:100%;min-width:100%;border-spacing:0;border-collapse:separate;table-layout:fixed}.bj-table__title,.bj-table__footer{padding:12px;color:#333;background:#fff;border:1px solid #dbdbdb}.bj-table__title{border-bottom:0}.bj-table__footer{border-top:0}.bj-table__summary{position:relative;background:#fff}.bj-table__summary th,.bj-table__summary td{padding:17.5px 12px;border-bottom:1px solid #dbdbdb}.bj-table--bordered:not(.bj-table--empty) .bj-table__scroll{border:1px solid #dbdbdb}.bj-table--bordered .bj-table__native-table{border:0}.bj-table--bordered.bj-table--empty .bj-table__header{border:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-row:first-child .bj-table__header-cell{border-top:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-row:last-child .bj-table__header-cell{border-bottom:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-cell:first-child{border-left:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-cell:last-child{border-right:1px solid #dbdbdb}.bj-table__header-cell{position:relative;height:36px;padding:0 12px;color:#333;font-weight:400;text-align:left;vertical-align:middle;background:#fafafa;border-bottom:1px solid #dbdbdb}.bj-table__header-cell--sortable,.bj-table__header-cell--filterable{padding-right:8px;cursor:pointer}.bj-table__column-header{display:flex;align-items:center;justify-content:space-between;min-width:0}.bj-table__column-title{display:flex;flex:1;align-items:center;justify-content:space-between;min-width:0;padding:0;color:inherit;font:inherit;text-align:inherit}.bj-table__column-title-content{display:inline-flex;align-items:center;min-width:0;gap:4px}.bj-table__column-tooltip-wrapper{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;width:100%}.bj-table__column-tooltip-wrapper>.bj-table__column-tooltip-trigger{flex:1;display:flex;min-width:0;outline:none}.bj-table__column-tooltip-wrapper>.bj-table__column-tooltip-trigger>.bj-table__column-header{flex:1;padding:0 12px}.bj-table__column-badge-trigger{position:absolute;top:-1px;right:-1px;z-index:2;display:block;width:12px;height:12px;cursor:default;outline:none}.bj-table__column-badge-shape{display:block;width:100%;height:100%;clip-path:polygon(0 0,100% 0,100% 100%);background:#dbdbdb;pointer-events:none}.bj-table__column-tooltip.tooltip-popup--content{z-index:1000}.bj-table__column-sorter{display:inline-flex;flex:none;align-items:center;justify-content:center;margin-left:auto;color:#666}.bj-table__column-sorter-icon,.bj-table__filter-icon{width:20px;height:20px;color:#666;pointer-events:none}.bj-table__filter{position:static;flex:none}.bj-table__filter-trigger{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:0;margin-left:auto;padding:0;color:#666;font-size:12px;background:transparent;border:0;border-radius:4px;cursor:pointer;pointer-events:none}.bj-table__filter-trigger:hover{color:#666;background:#f0f0f0}.bj-table__filter-trigger--active{color:#666}.bj-table__filter-dropdown{position:fixed;z-index:100}.bj-table--bordered .bj-table__header-cell:not(:last-child),.bj-table--bordered .bj-table__cell:not(:last-child){border-right:1px solid #dbdbdb}.bj-table--bordered .bj-table__cell--before-fixed-right:not(:last-child){border-right:0}.bj-table__cell{padding:17.5px 12px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:19px;word-break:break-all;overflow-wrap:anywhere;vertical-align:middle;border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__row{min-height:54px}.bj-table__row--group{height:36px;min-height:36px}.bj-table__cell--group{height:36px;padding:0!important;border-left:0;border-right:0;border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__body .bj-table__row:last-child .bj-table__cell{border-bottom:0}.bj-table__cell-content{min-height:19px}.bj-table__cell--fixed{background:#fff}.bj-table__header-cell.bj-table__cell--fixed{z-index:3!important;background:#fafafa}.bj-table__cell--fixed-left{border-right:0!important}.bj-table__cell--fixed-right{border-left:0;border-right:0}.bj-table__cell--fixed-left:after,.bj-table__selection-cell--fixed:after{position:absolute;top:0;right:0;bottom:0;width:1px;background:#dbdbdb;content:"";pointer-events:none}.bj-table__cell--fixed-right:before{position:absolute;top:0;bottom:0;left:0;width:1px;background:#dbdbdb;content:"";pointer-events:none}.bj-table__body .bj-table__cell--fixed-left,.bj-table__body .bj-table__cell--fixed-right{border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__body .bj-table__row:last-child .bj-table__cell--fixed-left,.bj-table__body .bj-table__row:last-child .bj-table__cell--fixed-right{border-bottom:0}.bj-table__row:hover .bj-table__cell,.bj-table__row--selected .bj-table__cell{background:#fafafa}.bj-table__cell--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;overflow-wrap:normal}.bj-table__selection-col,.bj-table__selection-cell{width:48px;padding:0 12px;text-align:center;vertical-align:middle}.bj-table__selection-cell--fixed{position:sticky;left:0;z-index:2;background:#fff;border-right:0!important}.bj-table__header-cell.bj-table__selection-cell--fixed{z-index:4;background:#fafafa}.bj-table__body .bj-table__selection-cell{height:54px}.bj-table__selection-cell>.bj-table__selection-control{margin:auto}.bj-table__selection-cell>.bj-table__selection-checkbox{display:flex;justify-content:center;margin:auto;line-height:1}.bj-table__selection-control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;vertical-align:middle;cursor:pointer}.bj-table__selection-control--disabled{cursor:not-allowed;opacity:.5}.bj-table__selection-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.bj-table__selection-box{display:flex;align-items:center;justify-content:center;width:15px;height:15px;background:transparent;border:1px solid #dbdbdb;border-radius:4px;transition:width .15s ease,height .15s ease,background .15s ease}.bj-table__selection-control--checked .bj-table__selection-box{width:16px;height:16px;background:#333;border-color:#333}.bj-table__selection-check-icon{width:14px;height:14px;color:#fff;pointer-events:none}.bj-table__selection-input:focus-visible+.bj-table__selection-box{outline:2px solid #1677ff;outline-offset:1px}.bj-table__empty-cell{height:454px;padding:0 12px;color:#999;text-align:center;vertical-align:middle;border-bottom:0}.bj-table__empty-overlay{position:absolute;top:36px;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#999;text-align:center;pointer-events:none}.bj-table__empty-content{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.bj-table__empty-image-wrap{display:flex;align-items:center;justify-content:center}.bj-table__empty-image{display:block;width:80px;height:80px;object-fit:contain;-webkit-user-select:none;user-select:none}.bj-table__empty-text{color:#999;font-size:12px;line-height:20px}.bj-table__loading{position:absolute;z-index:1000;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:#6b7280;background:#fffc;pointer-events:all}.bj-table__loading-indicator{width:60px;height:60px;margin:0;-webkit-user-select:none;user-select:none}.bj-table__loading-text{font-size:13px}.bj-table__pagination{margin-top:16px}.bj-table--small .bj-table__header-cell{height:32px}.bj-table--small .bj-table__cell{min-height:40px;padding:8px 12px}
1
+ .bu-icon{width:1em;height:1em;overflow:hidden;vertical-align:-.15em;fill:currentColor}.tooltip-wrapper{position:relative;display:inline-block}.tooltip-popup{position:absolute;z-index:1000;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;border:1px solid #e5e7eb;min-width:200px;max-width:280px;padding:16px}.tooltip-popup--top{bottom:calc(100% + 16px);left:50%;transform:translate(-50%)}.tooltip-popup--topLeft{bottom:calc(100% + 16px);left:0}.tooltip-popup--topRight{bottom:calc(100% + 16px);right:0}.tooltip-popup--bottom{top:calc(100% + 16px);left:50%;transform:translate(-50%)}.tooltip-popup--bottomLeft{top:calc(100% + 16px);left:0}.tooltip-popup--bottomRight{top:calc(100% + 16px);right:0}.tooltip-popup--left{right:calc(100% + 16px);top:50%;transform:translateY(-50%)}.tooltip-popup--leftTop{right:calc(100% + 16px);top:0}.tooltip-popup--leftBottom{right:calc(100% + 16px);bottom:0}.tooltip-popup--right{left:calc(100% + 16px);top:50%;transform:translateY(-50%)}.tooltip-popup--rightTop{left:calc(100% + 16px);top:0}.tooltip-popup--rightBottom{left:calc(100% + 16px);bottom:0}.tooltip-popup--light{box-shadow:0 2px 6px #0000000f}.tooltip-popup--bordered{border-color:#ebebeb;box-shadow:0 2px 8px #00000014}.tooltip-popup--tinted{background:#f5f3ff;border-color:#ddd6fe;box-shadow:0 2px 8px #8b5cf61a}.tooltip-popup--content{width:max-content;min-width:30px;min-height:32px;padding:24px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;text-align:center;box-shadow:0 0 12px #00000014}.tooltip-popup--content .bu-tooltip-content__text{color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px}.bu-content-tooltip{max-width:none!important;background:transparent!important;box-shadow:none!important}.bu-content-tooltip .ant-tooltip-content{width:max-content;max-width:none!important;background:transparent!important;box-shadow:none!important}.bu-content-tooltip .ant-tooltip-arrow-content{display:none!important}.bu-content-tooltip .ant-tooltip-inner{width:max-content;min-width:0;max-width:none!important;padding:0;background:transparent;box-shadow:none}.bu-content-tooltip .tooltip-popup--antd{position:relative;inset:auto;transform:none}.tooltip-arrow{position:absolute;width:14px;height:14px;background:#fff;transform:rotate(45deg)}.tooltip-arrow--top{bottom:-8px;left:50%;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px;transform:translate(-50%) rotate(45deg)}.tooltip-arrow--topLeft{bottom:-8px;left:16px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px}.tooltip-arrow--topRight{bottom:-8px;right:16px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;border-radius:0 0 2px}.tooltip-arrow--bottom{top:-8px;left:calc(50% - 8px);border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--bottomLeft{top:-8px;left:16px;border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--bottomRight{top:-8px;right:16px;border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;border-radius:2px 0 0}.tooltip-arrow--left{right:-8px;top:calc(50% - 8px);border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--leftTop{right:-8px;top:16px;border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--leftBottom{right:-8px;bottom:16px;border-top:1px solid #e5e7eb;border-right:1px solid #e5e7eb;border-radius:0 2px 0 0}.tooltip-arrow--right{left:-8px;top:calc(50% - 8px);border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--rightTop{left:-8px;top:16px;border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--rightBottom{left:-8px;bottom:16px;border-bottom:1px solid #e5e7eb;border-left:1px solid #e5e7eb;border-radius:0 0 0 2px}.tooltip-arrow--tinted-bg{background:#f5f3ff}.tooltip-confirm__title{font-size:12px;color:#111827;margin-bottom:12px;line-height:1.5}.tooltip-confirm__actions{display:flex;align-items:center;justify-content:center;gap:30px}.tooltip-confirm__cancel{background:none;border:none;padding:0;height:24px;font-size:12px;color:#374151;cursor:pointer;border-radius:4px;transition:background-color .15s;width:60px}.tooltip-confirm__cancel:hover{background:#f3f4f6}.tooltip-confirm__ok{background:#333;border:none;padding:0;height:24px;font-size:12px;color:#fff;cursor:pointer;border-radius:6px;width:60px;font-weight:500;transition:background-color .15s}.tooltip-confirm__ok:hover{background:#374151}.tooltip-progress{min-width:220px}.tooltip-progress__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.tooltip-progress__title{font-size:12px;color:#111827;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tooltip-progress__percent{font-size:12px;color:#6b7280;font-weight:500;flex-shrink:0;margin-left:8px}.tooltip-progress__track{width:100%;height:4px;background:#e5e7eb;border-radius:2px;overflow:hidden}.tooltip-progress__fill{height:100%;width:var(--tooltip-progress, 0%);background:#333;border-radius:2px;transition:width .3s ease}.bu-tooltip-content__text{font-size:12px;color:#6b7280;line-height:1.6;overflow-wrap:break-word;margin-bottom:0}@keyframes sku-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.sku-input-card{position:relative;display:flex;flex-direction:row;min-width:411px;height:100%;border:1px solid #e5e7eb;border-radius:8px;background:#fff;background-clip:padding-box}.sku-input-card--error{border-color:#fde6e9}.sku-input-card__drag{display:flex;align-items:center;justify-content:center;width:32px;flex-shrink:0;color:#333;background:#f5f5f5;cursor:grab;margin-right:12px}.sku-input-card__drag:active{cursor:grabbing}.sku-input-card__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;padding:12px 12px 12px 0}.sku-input-card__header{display:flex;align-items:center;gap:8px;background:#fff}.sku-input-card__name-wrap{position:relative;flex:1;min-width:0}.sku-input-card__name-input{width:100%;height:40px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:0 8px;font-size:14px;color:#333;outline:none;box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:background .2s ease,border-color .2s ease}.sku-input-card__name-input::placeholder{color:#999}.sku-input-card__name-input--with-toggle{padding-right:118px}.sku-input-card__name-input--error{border-width:3px;border-color:#fde6e9;animation:sku-shake .4s ease}.sku-input-card__name-input--error::placeholder{color:#e60023}.sku-input-card__lang-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.sku-input-card__lang-btn{height:24px;width:51px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:24px;text-align:center}.sku-input-card__lang-btn--active{background:#1f2937;color:#fff}.sku-input-card__lang-btn--inactive{color:#374151}.sku-input-card__delete{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#333;background:#f3f4f6;border:none;cursor:pointer;flex-shrink:0;border-radius:4px;padding:0}.sku-input-card__delete:hover{color:#333}.sku-input-card__file-input{display:none}.sku-input-card__body{height:280px;display:flex;align-items:stretch;background:#f5f5f5;border-radius:8px;overflow:hidden}.sku-input-card__image-item{position:relative;flex:1}.sku-input-card__image-thumb{width:100%;height:100%;object-fit:cover;display:block}.sku-input-card__image-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;gap:20px;opacity:0;transition:opacity .2s ease}.sku-input-card__image-item:hover .sku-input-card__image-overlay{opacity:1}.sku-input-card__image-action-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;color:#fff;cursor:pointer;padding:0}.sku-input-card__image-action-btn svg{width:32px;height:32px}.sku-input-card__add-btn{display:flex;align-items:center;justify-content:center;flex:1;color:#333;background:none;border:none;border-radius:4px;cursor:pointer}.sku-input-card__add-btn:hover{color:#333}.sku-input-card__upload-options{display:flex;align-items:center;justify-content:center;flex:1}.sku-input-card__upload-options-box{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 16px #0000001f;overflow:hidden}.sku-input-card__upload-opt-btn{display:flex;align-items:center;justify-content:center;width:140px;height:45px;padding:0;background:none;border:none;cursor:pointer;font-size:13px;color:#6b7280;transition:background .15s ease,color .15s ease}.sku-input-card__upload-opt-btn:hover{background:#f3f4f6;color:#111827}.sku-input-card__dropdown{position:absolute;top:calc(100% + 8px);left:0;width:100%;z-index:100}.sku-input-card__dropdown-list{background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;max-height:216px;overflow-y:auto;padding-right:4px;box-sizing:border-box}.sku-input-card__dropdown-list::-webkit-scrollbar-track{margin:4px 0}.sku-input-card__dropdown-list::-webkit-scrollbar{width:4px}.sku-input-card__dropdown-list::-webkit-scrollbar-thumb{background-color:#dbdbdb;background-clip:padding-box;border:1px solid transparent;border-radius:2px / 2}.sku-input-card__dropdown-item{height:40px;display:flex;align-items:center;box-sizing:border-box;padding:8px 12px;font-size:13px;color:#333;cursor:pointer;transition:background .15s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:6px}.sku-input-card__dropdown-item:hover{background:#f5f5f5;border-radius:6px}.sku-input-card__dropdown-item--disabled{color:#999;cursor:not-allowed}.sku-input-card__dropdown-item--disabled:hover{background:transparent}.sku-input-card__dropdown-item--selected{font-weight:600;background:#f5f5f5}.sku-input-card__dropdown-highlight{font-weight:600}.sku-input-card__loading{display:flex;align-items:center;justify-content:center;flex:1;background:#f5f5f5}.sku-input-card__loading-img{width:48px;height:48px}@keyframes bu-input-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes bu-input-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.bu-input{box-sizing:border-box;display:flex;flex-direction:column;gap:4px}.bu-input *{box-sizing:border-box}.bu-input__label{display:flex;align-items:center;gap:2px;font-size:13px;color:#333;font-weight:500;line-height:1.5}.bu-input__required{color:#ef4444;font-size:13px;line-height:1.5}.bu-input__row{display:flex;align-items:stretch}.bu-input__icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:40px;background:#fff;border:1px solid #ebebeb;color:#333;box-sizing:border-box}.bu-input__icon--left{border-right:none;border-radius:6px 0 0 6px}.bu-input__icon--right{border-left:none;border-radius:0 6px 6px 0}.bu-input__box{position:relative;flex:1;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:8px 12px;transition:border-color .2s ease;box-sizing:border-box}.bu-input__box--error{border-width:3px;border-color:#fde6e9;padding:6px 10px;animation:bu-input-shake .4s ease}.bu-input__box--error .bu-input__field::placeholder{color:#f87171}.bu-input__box--disabled{background:#f0f0f0;cursor:not-allowed}.bu-input__box--single{height:40px}.bu-input__box--number{padding-right:36px}.bu-input__box--number.bu-input__box--error{padding-right:34px}.bu-input__box--has-left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.bu-input__box--has-right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.bu-input__field{flex:1;width:100%;background:transparent;border:none;outline:none;padding:0;font-size:14px;color:#333;line-height:22px;-moz-appearance:none;appearance:none;-webkit-appearance:none;resize:none;box-sizing:border-box}.bu-input__field::placeholder{color:#999}.bu-input__field:disabled{cursor:not-allowed;color:#999}.bu-input__field--input{height:100%}.bu-input__field--textarea{min-height:80px;padding-bottom:36px}.bu-input__footer{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:10px}.bu-input__footer--bottom{top:auto;transform:none;bottom:8px}.bu-input__count{font-size:12px;color:#999;line-height:1;-webkit-user-select:none;user-select:none}.bu-input__translating{display:flex;align-items:center;gap:4px;font-size:12px;color:#999;-webkit-user-select:none;user-select:none}.bu-input__translating-icon{width:12px;height:12px;flex-shrink:0;animation:bu-input-spin 1s linear infinite}.bu-input__translated{display:flex;align-items:center;gap:4px;font-size:12px;color:#16a34a;-webkit-user-select:none;user-select:none}.bu-input__translated svg{width:14px;height:14px;flex-shrink:0}.bu-input__lang-toggle{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-input__lang-btn{height:22px;width:44px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center}.bu-input__lang-btn--active{background:#1f2937;color:#fff}.bu-input__stepper{position:absolute;right:0;top:0;bottom:0;width:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3.3px;box-sizing:border-box}.bu-input__stepper-btn{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;color:#6b7280;padding:0;line-height:1}.bu-input__stepper-btn:disabled{cursor:not-allowed;color:#ebebeb}.bu-input__error-msg{display:flex;align-items:center;gap:4px;font-size:12px;color:#ef4444;line-height:1.4;margin-top:2px}.bu-input__error-icon{flex-shrink:0;width:14px;height:14px}.bj-input{width:100%;height:40px;padding:0 8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;background:#fff;border:1px solid #ebebeb;border-radius:8px;outline:none}.bj-input::placeholder{color:#999}.bj-input--small{height:32px}.bj-input--large{height:48px}.bj-input--disabled{color:#999;background:#f0f0f0;cursor:not-allowed}.bj-input--borderless{border-color:transparent}.bj-input--error{border-color:#ef4444}.bj-input--warning{border-color:#f59e0b}.bj-input__affix-wrapper{display:inline-flex;align-items:center;width:100%;height:40px;gap:4px;padding:0 8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;background:#fff;border:1px solid #ebebeb;border-radius:8px}.bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):hover,.bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):focus-within{box-shadow:0 0 0 1px #dbdbdb}.bj-input__affix-wrapper--disabled{color:#999;background:#f0f0f0;cursor:not-allowed}.bj-input__affix-wrapper--small{height:32px}.bj-input__affix-wrapper--middle{padding-right:4px;padding-left:4px}.bj-input__affix-wrapper--large{height:48px}.bj-input__affix-wrapper--error{border-color:#ef4444}.bj-input__affix-wrapper--warning{border-color:#f59e0b}.bj-input__affix-wrapper>.bj-input{height:auto;padding:0;line-height:21px;background:transparent;border:0}.bj-input__affix-wrapper>.bj-input:hover,.bj-input__affix-wrapper>.bj-input:focus{box-shadow:none}.bj-input__prefix,.bj-input__suffix{display:flex;flex:none;align-items:center;color:#999}.bj-input__prefix .bu-icon,.bj-input__suffix .bu-icon{width:20px;height:20px;color:#999}.bj-input__clear-icon{padding:0;color:#999;font:inherit;background:transparent;border:0;cursor:pointer}.bj-input__clear-icon:hover{color:#6b7280}.bj-input__clear-icon:active{color:#333}.bj-input__clear-icon--hidden{visibility:hidden}.bj-input__group-wrapper{display:inline-block;width:100%}.bj-input__group{display:flex;width:100%}.bj-input__group>.bj-input,.bj-input__group>.bj-input__affix-wrapper{flex:1;min-width:0;border-radius:0}.bj-input__group-addon{display:flex;flex:none;align-items:center;padding:0 12px;color:#333;background:#f5f5f5;border:1px solid #ebebeb}.bj-input__group-addon:first-child{border-radius:8px 0 0 8px}.bj-input__group-addon:last-child{border-radius:0 8px 8px 0}.bj-tabs{display:flex;width:100%;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px}.bj-tabs__nav{position:relative;display:flex;flex:none;align-items:center}.bj-tabs__nav-wrap{display:flex;flex:auto;align-self:stretch;overflow:auto hidden;white-space:nowrap}.bj-tabs__nav-list{position:relative;display:flex;gap:32px}.bj-tabs__tab{position:relative;display:inline-flex;align-items:center;height:45px;padding:0 4px;color:#666;font:inherit;background:transparent;border:0;outline:0;cursor:pointer}.bj-tabs__tab--active{color:#333}.bj-tabs__tab--active .bj-tabs__tab-btn{font-family:SourceHanSansCN-Medium}.bj-tabs__tab--active .bj-tabs__tab-btn:after{position:absolute;right:0;bottom:0;left:0;height:2px;background:#333;content:"";pointer-events:none}.bj-tabs__tab--disabled{color:#999;cursor:not-allowed}.bj-tabs__tab-btn{position:relative;display:inline-flex;align-items:center;height:100%;outline:none}.bj-tabs__content-holder{flex:auto;min-width:0;min-height:0}.bj-tabs__content{position:relative;width:100%}.bj-tabs__tabpane{display:none;outline:none}.bj-tabs__tabpane--active{display:block}.bj-tabs__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.bj-tabs--top,.bj-tabs--bottom{flex-direction:column}.bj-tabs--top>.bj-tabs__nav,.bj-tabs--bottom>.bj-tabs__nav{width:100%;border-bottom:1px solid #ebebeb}.bj-tabs--bottom>.bj-tabs__nav{order:1;border-top:1px solid #ebebeb;border-bottom:0}.bj-tabs--bottom>.bj-tabs__content-holder{order:0}.bj-tabs--left>.bj-tabs__nav,.bj-tabs--right>.bj-tabs__nav{flex-direction:column;min-width:48px}.bj-tabs--left .bj-tabs__nav-wrap,.bj-tabs--right .bj-tabs__nav-wrap{overflow:hidden auto}.bj-tabs--left .bj-tabs__nav-list,.bj-tabs--right .bj-tabs__nav-list{flex-direction:column}.bj-tabs--left .bj-tabs__tab,.bj-tabs--right .bj-tabs__tab{justify-content:center}.bj-tabs--left>.bj-tabs__nav{border-right:1px solid #ebebeb}.bj-tabs--left>.bj-tabs__content-holder{padding-left:16px}.bj-tabs--right>.bj-tabs__nav{order:1;border-left:1px solid #ebebeb}.bj-tabs--right>.bj-tabs__content-holder{order:0;padding-right:16px}.bj-tabs--centered>.bj-tabs__nav .bj-tabs__nav-wrap{justify-content:center}.bj-tabs--card>.bj-tabs__nav .bj-tabs__tab{margin:0;background:#f5f5f5;border:1px solid #ebebeb}.bj-tabs--card>.bj-tabs__nav .bj-tabs__tab--active{background:#fff}.bj-tabs--card .bj-tabs__tab--active .bj-tabs__tab-btn:after{display:none}.bj-tabs--card.bj-tabs--top>.bj-tabs__nav .bj-tabs__tab{border-radius:4px 4px 0 0}.bj-tabs--card.bj-tabs--bottom>.bj-tabs__nav .bj-tabs__tab{border-radius:0 0 4px 4px}.bj-tabs--card.bj-tabs--left>.bj-tabs__nav .bj-tabs__tab{border-radius:4px 0 0 4px}.bj-tabs--card.bj-tabs--right>.bj-tabs__nav .bj-tabs__tab{border-radius:0 4px 4px 0}@keyframes bu-eib-shake{0%{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}to{transform:translate(0)}}.bu-eib{display:block}.bu-eib__box{position:relative;display:block;height:40px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;padding:0 12px;box-sizing:border-box;transition:border-color .2s ease}.bu-eib__box--actions-delete{padding-right:40px}.bu-eib__box--actions-toggle{padding-right:114px}.bu-eib__box--actions-both{padding-right:142px}.bu-eib__box--error{border-width:3px;border-color:#fde6e9;padding-left:10px;padding-top:0;padding-bottom:0;animation:bu-eib-shake .4s ease}.bu-eib__box--error.bu-eib__box--actions-delete{padding-right:38px}.bu-eib__box--error.bu-eib__box--actions-toggle{padding-right:112px}.bu-eib__box--error.bu-eib__box--actions-both{padding-right:140px}.bu-eib__box--error .bu-eib__field::placeholder{color:#f87171}.bu-eib__box--disabled{background:#f0f0f0;cursor:not-allowed}.bu-eib__field{display:block;width:100%;height:100%;background:transparent;border:none;outline:none;padding:0;font-size:14px;color:#333;line-height:40px;-moz-appearance:none;appearance:none;-webkit-appearance:none;box-sizing:border-box}.bu-eib__field::placeholder{color:#999}.bu-eib__field:disabled{cursor:not-allowed;color:#999}.bu-eib__actions{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:4px}.bu-eib__lang-toggle{display:flex;align-items:center;flex-shrink:0;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-eib__lang-btn{height:22px;width:44px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center}.bu-eib__lang-btn--active{background:#1f2937;color:#fff}.bu-eib__delete{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;cursor:pointer;color:#333;border-radius:4px}.bu-eib__delete:hover{background:#f3f4f6}@keyframes bu-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes bu-modal-slide-in{0%{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.bu-modal__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;animation:bu-modal-fade-in .18s ease}.bu-modal__container{background:#fff;border-radius:12px;box-shadow:0 8px 32px #0000001f;width:480px;min-width:320px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;animation:bu-modal-slide-in .2s ease;overflow:hidden}.bu-modal__header{display:flex;align-items:center;height:64px;padding:0 20px;flex-shrink:0;gap:8px}.bu-modal__title{flex:1;font-size:15px;font-weight:500;color:#111827;line-height:1.4;margin:0}.bu-modal__lang-toggle{display:flex;align-items:center;flex-shrink:0;gap:2px;padding:2px;border:1px solid #e5e7eb;border-radius:6px;background:#fff}.bu-modal__lang-btn{height:22px;width:40px;padding:0;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;border:none;background:transparent;color:#374151;line-height:22px;text-align:center;transition:background .15s ease,color .15s ease}.bu-modal__lang-btn--active{background:#1f2937;color:#fff}.bu-modal__close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:transparent;cursor:pointer;color:#333;border-radius:100px;font-size:20px;line-height:1;transition:background .15s ease,color .15s ease}.bu-modal__close svg{width:24px;height:24px}.bu-modal__close:hover{background:#f3f4f6;color:#333}.bu-modal__body{flex:1;padding:0 20px;min-height:63px;color:#333;font-size:14px;line-height:1.6}.bu-modal__footer{display:flex;flex-direction:column;align-items:center;padding:60px 20px 24px;gap:10px}.bu-modal__hint{font-size:12px;color:#999;line-height:1.5;text-align:center;margin:0}.bu-modal__btn-row{display:flex;align-items:center;justify-content:center;gap:32px}.bu-modal__btn-cancel{height:34px;padding:0 8px;min-width:88px;border:none;border-radius:6px;background:transparent;color:#374151;font-size:14px;font-weight:400;cursor:pointer;line-height:34px}.bu-modal__btn-ok{height:34px;min-width:88px;padding:0 8px;border:none;border-radius:6px;background:#333;color:#fff;font-size:14px;font-weight:500;cursor:pointer;line-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:4px;transition:opacity .15s ease}.bu-modal__btn-ok--loading{opacity:.65;cursor:not-allowed}.bu-modal__btn-ok:disabled{cursor:not-allowed}.bu-modal__btn-ok-spinner{display:inline-block;width:14px;height:14px;border:2px solid #ffffff;border-right-color:transparent;border-radius:50%;animation:bu-modal-spin .6s linear infinite;flex-shrink:0}@keyframes bu-modal-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}html ::-webkit-scrollbar-button{display:none;height:0;width:0}html ::-webkit-scrollbar-track{-webkit-border-radius:10px;border-radius:10px}html ::-webkit-scrollbar-thumb{-webkit-border-radius:10px;border-radius:50px;-webkit-box-shadow:inset 0 0 6px #E2E2E2}.bu-pf{position:relative;display:block;-webkit-user-select:none;user-select:none}.bu-pf ::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__trigger{display:flex;align-items:flex-start;min-height:40px;padding:6px 8px 6px 12px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:6px;cursor:pointer;gap:8px;box-sizing:border-box;overflow:hidden}.bu-pf__trigger--selected{background:#f5f5f5;border-color:#f5f5f5}.bu-pf__trigger-tags{flex:1;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;align-content:flex-start;max-height:94px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-pf__trigger-tags::-webkit-scrollbar{width:4px}.bu-pf__trigger-tags::-webkit-scrollbar-track{background:transparent}.bu-pf__trigger-tags::-webkit-scrollbar-thumb{background:#ebebeb;border-radius:2px}.bu-pf__trigger-tags::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__placeholder{flex:1;align-self:center;font-size:14px;color:#999;line-height:1}.bu-pf__arrow{flex-shrink:0;align-self:center;color:#999;display:flex;align-items:center;transition:transform .2s ease}.bu-pf__arrow--open{transform:rotate(180deg)}.bu-pf__panel{border-radius:6px;background:#f5f5f5}.bu-pf__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 0 12px #00000014;overflow:hidden}.bu-pf__header{display:flex;align-items:center;padding:6px 8px 6px 12px;min-height:40px;box-sizing:border-box;gap:8px;overflow:hidden;background:#f5f5f5;border-radius:8px;border:1px solid #DBDBDB}.bu-pf__tags{flex:1;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;align-content:flex-start;max-height:94px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-pf__tags::-webkit-scrollbar{width:4px}.bu-pf__tags::-webkit-scrollbar-track{background:transparent}.bu-pf__tags::-webkit-scrollbar-thumb{background:#ebebeb;border-radius:2px}.bu-pf__tags::-webkit-scrollbar-button{display:none;height:0;width:0}.bu-pf__placeholder-inline{font-size:14px;color:#999;line-height:26px}.bu-pf__tag{display:inline-flex;align-items:center;height:26px;padding:0 6px 0 8px;background:#f5f5f5;border:1px solid #e5e7eb;border-radius:4px;gap:4px;cursor:default;min-width:250px}.bu-pf__tag--single{width:100%;border:none;border-radius:0;background:transparent;padding:0;min-width:0}.bu-pf__tag-text{font-size:13px;color:#333;line-height:1;white-space:nowrap}.bu-pf__tag-close{display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;background:#99999973!important;cursor:pointer;color:#fff;flex-shrink:0;border-radius:9999px;margin-left:auto}.bu-pf__tag-close svg{width:16px;height:16px}.bu-pf__close{flex-shrink:0;align-self:center;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent!important;cursor:pointer;color:#999;border-radius:9999px;transform:rotate(180deg)}.bu-pf__close:hover{background:transparent!important;color:#333}.bu-pf__toolbar{display:flex;align-items:center;gap:8px;padding:12px 12px 16px}.bu-pf__search{flex:1;display:flex;align-items:center;gap:6px;height:40px;padding:0 10px;background:#fff;border:1px solid #ebebeb;border-radius:8px}.bu-pf__search-icon{flex-shrink:0;color:#999;display:flex;align-items:center}.bu-pf__search-input{flex:1;border:none;background:transparent;outline:none;font-size:13px;color:#333;line-height:1;min-width:0}.bu-pf__search-input::placeholder{color:#c4c4c4}.bu-pf__sort-wrap{position:relative;flex-shrink:0}.bu-pf__sort-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:4px;background:#f5f5f5;cursor:pointer;color:#999}.bu-pf__sort-dropdown{position:absolute;top:calc(100% + 4px);right:0;min-width:100px;background:#fff;border-radius:6px;box-shadow:0 4px 16px #0000001f;z-index:1000;overflow:hidden}.bu-pf__sort-option{padding:10px 16px;font-size:13px;color:#333;cursor:pointer;white-space:nowrap;text-align:center}.bu-pf__sort-option:hover{background:#f5f5f5}.bu-pf__sort-option--active{background:#f5f5f5;font-weight:500}.bu-pf__no-match{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 0 24px}.bu-pf__no-match-img{width:80px;height:80px;object-fit:contain}.bu-pf__no-match-text{font-size:14px;color:#999;margin:0 0 4px;font-weight:350}.bu-pf__no-match-hint{font-size:12px;color:#999;margin:0}.bu-pf__manage-btn{display:inline;border:none;background:transparent;padding:0;font-size:12px;font-weight:600;color:#333;cursor:pointer}.bu-pf__list{max-height:300px;overflow-y:auto;margin-bottom:8px;width:calc(100% - 12px);display:flex;flex-direction:column;gap:12px}.bu-pf__list::-webkit-scrollbar{width:4px}.bu-pf__list::-webkit-scrollbar-button{height:0;width:0}.bu-pf__list::-webkit-scrollbar-track{background:transparent}.bu-pf__list::-webkit-scrollbar-thumb{border-radius:2px}.bu-pf__option{display:flex;align-items:center;height:40px;flex-shrink:0;padding:0 12px;gap:10px;cursor:pointer}.bu-pf__option:not(.bu-pf__option--multiple):hover{background:#f3f4f6}.bu-pf__option--selected{background:#f3f4f6}.bu-pf__checkbox-img{flex-shrink:0;width:16px;height:16px;display:block}.bu-pf__option-label{flex:1;font-size:14px;color:#333;line-height:1}.bu-pf__add-row{border-top:1px solid #f3f4f6;cursor:pointer}.bu-category-dropdown{position:relative;display:inline-block;min-width:110px;max-width:300px}.bu-category-dropdown__trigger{display:flex;align-items:center;gap:8px;height:40px;min-width:110px;max-width:300px;padding:0 8px;background:#fff;border:1px solid #ebebeb;border-radius:8px;cursor:pointer;box-sizing:border-box;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;text-align:left}.bu-category-dropdown__trigger:hover:not(:disabled){border-color:#ebebeb;box-shadow:inset 0 0 0 2px #ebebeb}.bu-category-dropdown__trigger--open{border-color:#ebebeb;background:#f5f5f5;box-shadow:inset 0 0 0 2px #ebebeb}.bu-category-dropdown__trigger--has-value{background:#f5f5f5}.bu-category-dropdown__trigger:disabled{background:#f0f0f0;cursor:not-allowed}.bu-category-dropdown__trigger-label{display:block;width:100%;font-size:14px;line-height:21px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bu-category-dropdown__trigger-label--placeholder{color:#999}.bu-category-dropdown__trigger-chevron{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;color:#6b7280;transition:transform .2s ease}.bu-category-dropdown__trigger-chevron--open{transform:rotate(180deg)}.bu-category-dropdown__portal{background:#fff;border-radius:8px;padding:4px;box-shadow:0 4px 16px #0000001f;border:1px solid #ebebeb;z-index:1100}.bu-category-dropdown__panel{display:flex;align-items:stretch}.bu-category-dropdown__divider{width:1px;flex-shrink:0;background:#ebebeb;align-self:stretch}.bu-category-dropdown__col{display:flex;flex-direction:column;align-items:stretch;flex-shrink:0;gap:2px;padding:0 8px 0 0;overflow-x:hidden}.bu-category-dropdown__col--indent{padding-left:8px}.bu-category-dropdown__col--last{padding-right:0}.bu-category-dropdown__col--scrollable{max-height:250px;overflow-y:auto;overflow-x:hidden;padding-right:4px}.bu-category-dropdown__col--scrollable::-webkit-scrollbar{width:3px;height:3px;background-color:transparent}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-button{display:none;height:0;width:0;background:transparent}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-track{background-color:transparent;box-shadow:inset 0 0 6px transparent;border-radius:9999px}.bu-category-dropdown__col--scrollable::-webkit-scrollbar-thumb{background-color:transparent;box-shadow:inset 0 0 6px transparent;border-radius:9999px}.bu-category-dropdown__col--scrollable.bu-category-dropdown__col--scrollbar-visible::-webkit-scrollbar-thumb{background-color:#b3b3b3}.bu-category-dropdown__item{display:flex;align-items:center;gap:8px;height:40px;min-width:110px;max-width:300px;padding:0 8px;border:none;border-radius:8px;background:#fff;cursor:pointer;box-sizing:border-box;transition:background .15s ease;text-align:left;flex-shrink:0}.bu-category-dropdown__item:hover:not(:disabled){background:#f5f5f5}.bu-category-dropdown__item--selected-branch,.bu-category-dropdown__item--selected-leaf{background:#f5f5f5}.bu-category-dropdown__item--disabled{cursor:not-allowed;opacity:.45}.bu-category-dropdown__item-label{display:block;width:100%;font-size:14px;line-height:21px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bu-category-dropdown__item-arrow{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;color:#6b7280}.bu-category-dropdown__tooltip.tooltip-popup,.bu-category-dropdown__tooltip.tooltip-popup .tooltip-arrow{border:none}.pagination{display:flex;align-items:center;gap:16px;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;color:#111827;-webkit-user-select:none;user-select:none}.pagination.pagination-start{justify-content:flex-start}.pagination.pagination-center{justify-content:center}.pagination.pagination-end{justify-content:flex-end}.pagination.pagination-small .pagination-item{min-width:24px;height:24px;padding:0 6px;font-size:inherit}.pagination.pagination-small .pagination-prev,.pagination.pagination-small .pagination-next{width:24px;min-width:24px;height:24px;padding:0}.pagination.pagination-medium .pagination-item{min-width:32px;height:32px;padding:0 8px;font-size:inherit}.pagination.pagination-large .pagination-item{min-width:40px;height:40px;padding:0 10px;font-size:inherit}.pagination.pagination-disabled{opacity:.5;pointer-events:none}.pagination .pagination-total{color:#111827}.pagination .pagination-list{display:flex;align-items:center;gap:4px}.pagination .pagination-item{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#111827;cursor:pointer;transition:all .2s;outline:none}.pagination .pagination-item:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-item.pagination-item-active{background:#f5f5f5;color:#111827}.pagination .pagination-item.pagination-ellipsis{cursor:default;pointer-events:none}.pagination .pagination-item.pagination-prev svg,.pagination .pagination-item.pagination-next svg{display:block}.pagination .pagination-item.pagination-prev:not(:disabled),.pagination .pagination-item.pagination-next:not(:disabled){background:#fff;border-radius:4px}.pagination .pagination-sizer{display:flex;align-items:center;position:relative}.pagination .pagination-sizer .pagination-sizer-select{display:inline-flex;align-items:center;position:relative;min-width:100px;height:32px;box-sizing:border-box;padding:4px 28px 4px 8px;border:1px solid #ebebeb;border-radius:8px;background:transparent;color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;cursor:pointer;outline:none;transition:all .2s;text-align:left;white-space:nowrap}.pagination .pagination-sizer .pagination-sizer-select:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-sizer .pagination-sizer-select .pagination-sizer-icon{position:absolute;top:50%;right:4px;pointer-events:none;transform:translateY(-50%);transition:transform .2s}.pagination .pagination-sizer .pagination-sizer-select .pagination-sizer-icon.pagination-sizer-icon-open{transform:translateY(-50%) rotate(180deg)}.pagination .pagination-jumper{display:flex;align-items:center;gap:4px}.pagination .pagination-jumper .pagination-jumper-input{width:56px;height:32px;box-sizing:border-box;padding:4px 8px;border:1px solid #ebebeb;border-radius:8px;background:transparent;color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center;outline:none;transition:border-color .2s}.pagination .pagination-jumper .pagination-jumper-input:disabled{cursor:not-allowed;opacity:.5}.pagination .pagination-jumper .pagination-jumper-input::-webkit-inner-spin-button,.pagination .pagination-jumper .pagination-jumper-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pagination .pagination-jumper .pagination-jumper-input::-moz-inner-spin-button,.pagination .pagination-jumper .pagination-jumper-input::-moz-outer-spin-button{-moz-appearance:none;margin:0}.pagination.pagination-simple{display:inline-block}.pagination.pagination-simple .pagination-simple-list{display:inline-flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:8px;padding:0;gap:8px}.pagination.pagination-simple .pagination-simple-item{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;color:#111827;cursor:pointer;transition:all .2s;outline:none}.pagination.pagination-simple .pagination-simple-item:disabled{cursor:not-allowed;opacity:.5}.pagination.pagination-simple .pagination-simple-item svg{display:block}.pagination.pagination-simple .pagination-simple-text{color:#111827;font-family:inherit;font-size:inherit;line-height:inherit;padding:0 8px}.pagination-sizer-dropdown{width:116px;background:#fff;border-radius:8px;box-shadow:0 0 12px #00000024;z-index:100;overflow:hidden;padding:4px}.pagination-sizer-option{display:block;width:100%;padding:10px;border:none;background:transparent;color:#111827;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;text-align:center;cursor:pointer;transition:background-color .2s;white-space:nowrap;border-radius:6px;height:40px;display:flex;align-items:center;justify-content:center}.pagination-sizer-option[data-selected=true]{background:#f5f5f5}.dark .pagination,.dark .pagination .pagination-item{color:#fff}.dark .pagination .pagination-item.pagination-item-active{background:#ffffff1a;color:#fff}.dark .pagination .pagination-total{color:#fff}.dark .pagination .pagination-sizer .pagination-sizer-select{background:transparent;border-color:#ffffff1a;color:#fff}.dark .pagination .pagination-sizer .pagination-sizer-icon{color:#ffffff80}.dark .pagination .pagination-jumper .pagination-jumper-input{background:transparent;border-color:#ffffff1a;color:#fff}.dark .pagination.pagination-simple .pagination-simple-list{background:#ffffff0d}.dark .pagination.pagination-simple .pagination-simple-item,.dark .pagination.pagination-simple .pagination-simple-text{color:#fff}.file-card{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:210px;display:flex;flex-direction:column;gap:8px}.file-card .file-card__overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0006;border-radius:inherit;display:flex;align-items:center;justify-content:center;gap:20px;opacity:0;transition:opacity .18s;pointer-events:none}.file-card .file-card__overlay-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#fff;cursor:pointer;border-radius:6px;padding:0;pointer-events:auto;transition:background .15s}.file-card .file-card__overlay-btn:hover{background:#fff3}.file-card .file-card__name-area{display:flex;align-items:flex-start;gap:4px;padding:4px 8px;height:50px}.file-card .file-card__name-area--editing{background:#fff;border:1px solid #ebebeb;border-radius:4px;padding:4px 8px;height:50px;display:flex;align-items:flex-start}.file-card .file-card__filename{flex:1;font-size:14px;line-height:1.5;color:#111827;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;padding:0;margin:0;box-sizing:border-box;vertical-align:top}.file-card .file-card__edit-input{flex:1;height:42px;padding:0;font-size:14px;line-height:1.5;color:#111827;border:none;border-radius:0;outline:none;background:transparent;resize:none;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;vertical-align:top}.file-card .file-card__edit-input::-webkit-scrollbar{display:none}.file-card .file-card__edit-input:focus{outline:none}.file-card--pdf .file-card__pdf-preview{position:relative;height:138px;background:#d1d5db;border-radius:4px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:pointer;overflow:hidden;transition:box-shadow .2s}.file-card--pdf .file-card__pdf-preview:hover{box-shadow:0 4px 16px #0000001f}.file-card--pdf .file-card__pdf-preview:hover .file-card__overlay{opacity:1}.file-card--pdf .file-card__pdf-label{width:100%;padding:8px 10px;background:#1f2937;display:flex;align-items:center;justify-content:center;flex-shrink:0}.file-card--pdf .file-card__pdf-label span{font-size:14px;font-weight:350;color:#fff;letter-spacing:.3px}.file-card--other .file-card__other-preview{position:relative;height:138px;background:#fff;border:1px solid #ebebeb;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:box-shadow .2s}.file-card--other .file-card__other-preview:hover{box-shadow:0 2px 6px #0000000f}.file-card--other .file-card__other-preview:hover .file-card__overlay{opacity:1}.file-card--other .file-card__image-thumb{width:100%;height:100%;object-fit:cover}.dark .file-card--pdf .file-card__pdf-preview{background:#2a2a2a}.dark .file-card--pdf .file-card__pdf-preview:hover{box-shadow:0 4px 12px #0006}.dark .file-card--pdf .file-card__pdf-label{background:#1a1a1a}.dark .file-card--other .file-card__other-preview{background:#1f1f1f;border-color:#303030}.dark .file-card--other .file-card__other-preview:hover{box-shadow:0 2px 8px #0000004d}.dark .file-card .file-card__filename{color:#e8e8e8}.dark .file-card .file-card__name-area--editing{background:#1f1f1f;border-color:#404040;padding:4px 8px;height:50px;display:flex;align-items:flex-start}.dark .file-card .file-card__edit-input{background:transparent;color:#e8e8e8;border:none;border-radius:0;height:42px;padding:0;font-size:14px;line-height:1.5;resize:none;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;vertical-align:top}.dark .file-card .file-card__edit-input::-webkit-scrollbar{display:none}.dark .file-card .file-card__edit-input:focus{outline:none}.bu-switch{--bu-switch-light-on: #333333;--bu-switch-light-off: #CCCCCC;--bu-switch-dark-on: #e60023;--bu-switch-dark-off: rgba(255, 255, 255, .25);--bu-switch-track-bg: #CCCCCC;position:relative;display:inline-block;box-sizing:border-box;width:32px;min-width:32px;height:16px;padding:0;border:none;border-radius:9999px;background:var(--bu-switch-track-bg);cursor:pointer;transition:background .2s cubic-bezier(.4,0,.2,1);outline:none;vertical-align:middle;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.bu-switch--disabled{cursor:not-allowed;opacity:.5}.bu-switch--loading{cursor:wait}.bu-switch__track{display:flex;align-items:center;width:100%;height:100%;padding:2px;box-sizing:border-box}.bu-switch__thumb{position:relative;flex-shrink:0;width:12px;height:12px;border-radius:9999px;background:#fff;box-shadow:0 1px 3px #00000026;transition:transform .2s cubic-bezier(.4,0,.2,1);transform:translate(0)}.bu-switch--checked .bu-switch__thumb{transform:translate(16px)}.bu-switch__loading-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#999;animation:bu-switch-spin .8s linear infinite}.bu-switch__loading-icon svg{width:10px;height:10px}@keyframes bu-switch-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bu-switch__label{flex:1;display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;overflow:hidden;white-space:nowrap;line-height:1;min-width:0;padding:0 2px}.bu-switch__label--left{justify-content:flex-start}.bu-switch__label--right{justify-content:flex-end}.bj-input-number{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;width:100%;min-width:90px;background:#f5f5f5;border:1px solid #ebebeb;border-radius:8px;padding:8px 12px;transition:border-color .2s ease}.bj-input-number *{box-sizing:border-box}.bj-input-number:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:8px;pointer-events:none;transition:box-shadow .2s ease}.bj-input-number:hover:not(.bj-input-number--disabled):not(.bj-input-number--readonly):after,.bj-input-number:active:not(.bj-input-number--disabled):not(.bj-input-number--readonly):after{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--focused{border-color:#ebebeb}.bj-input-number--focused:after{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--small{height:32px;font-size:13px}.bj-input-number--middle{height:40px;font-size:14px}.bj-input-number--large{height:48px;font-size:15px}.bj-input-number--disabled{background:#f0f0f0;cursor:not-allowed}.bj-input-number--disabled:hover{border-color:#ebebeb}.bj-input-number--readonly{background:#f3f4f6}.bj-input-number--borderless{border-color:transparent;background:transparent}.bj-input-number--borderless.bj-input-number--focused{box-shadow:none}.bj-input-number--error{border-width:3px;border-color:#fde6e9;padding:6px 10px}.bj-input-number--error .bj-input-number__input::placeholder{color:#f87171}.bj-input-number--warning{border-color:#f59e0b}.bj-input-number--out-of-range .bj-input-number__input{color:#ef4444}.bj-input-number--with-controls{padding-right:44px}.bj-input-number--with-controls.bj-input-number--error{padding-right:42px}.bj-input-number--group-left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.bj-input-number--group-right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.bj-input-number__prefix,.bj-input-number__suffix{display:flex;flex:none;align-items:center;color:#6b7280;pointer-events:none}.bj-input-number__prefix{margin-right:4px}.bj-input-number__suffix{margin-left:4px}.bj-input-number__input-wrap{flex:1;min-width:0;display:flex;transition:box-shadow .2s ease}.bj-input-number__input-wrap:hover{box-shadow:inset 0 0 0 2px #ebebeb}.bj-input-number--disabled .bj-input-number__input-wrap:hover,.bj-input-number--readonly .bj-input-number__input-wrap:hover{box-shadow:none}.bj-input-number__input{width:100%;border:none;outline:none;background:transparent;padding:0;margin:0;font:inherit;color:#333;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.bj-input-number__input::-webkit-inner-spin-button,.bj-input-number__input::-webkit-outer-spin-button{margin:0;-moz-appearance:none;appearance:none;-webkit-appearance:none}.bj-input-number__input::placeholder{color:#999}.bj-input-number__input:disabled{cursor:not-allowed;color:#999}.bj-input-number__handler-wrap{position:absolute;top:0;right:0;bottom:0;width:32px;opacity:0;transition:opacity .2s ease}.bj-input-number:hover .bj-input-number__handler-wrap,.bj-input-number--focused .bj-input-number__handler-wrap{opacity:1}.bj-input-number--disabled .bj-input-number__handler-wrap,.bj-input-number--readonly .bj-input-number__handler-wrap{display:none}.bj-input-number__handler{position:absolute;left:0;right:0;margin-right:8px;height:50%;cursor:pointer;background:transparent;-webkit-user-select:none;user-select:none}.bj-input-number__handler--up{top:0}.bj-input-number__handler--down{bottom:0}.bj-input-number__handler--disabled{cursor:not-allowed}.bj-input-number__handler-icon{position:absolute;top:50%;right:8px;width:24px;height:24px;transform:translateY(-50%);pointer-events:none;color:#999;transition:opacity .15s ease,color .15s ease}.bj-input-number__handler-icon--up{clip-path:inset(0 0 50% 0)}.bj-input-number__handler-icon--down{clip-path:inset(50% 0 0 0)}.bj-input-number__handler--up:active~.bj-input-number__handler-icon--up{color:#333}.bj-input-number__handler--down:active~.bj-input-number__handler-icon--down{color:#333}.bj-input-number-group{display:inline-flex;align-items:stretch;width:100%}.bj-input-number-group__addon{display:flex;align-items:center;flex:none;padding:0 12px;background:#f3f4f6;border:1px solid #ebebeb;color:#6b7280;white-space:nowrap}.bj-input-number-group__addon:first-child{border-right:none;border-radius:8px 0 0 8px}.bj-input-number-group__addon:last-child{border-left:none;border-radius:0 8px 8px 0}.bj-input-number-group .bj-input-number{flex:1;min-width:0}.bj-checkbox-wrapper{display:inline-flex;align-items:flex-start;gap:8px;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;cursor:pointer}.bj-checkbox-wrapper--disabled{color:#999;cursor:not-allowed}.bj-checkbox-wrapper--rtl{direction:rtl}.bj-checkbox{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;vertical-align:middle}.bj-checkbox__input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.bj-checkbox__inner{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:16px;background:transparent;border:1px solid #dbdbdb;border-radius:4px;transition:width .15s ease,height .15s ease,background .15s ease}.bj-checkbox--checked.bj-checkbox--dark .bj-checkbox__inner{width:16px;height:16px;background:#333;border-color:#333}.bj-checkbox--checked.bj-checkbox--white .bj-checkbox__inner{width:16px;height:16px;background:transparent;border-color:#dbdbdb}.bj-checkbox--white .bj-checkbox__check-icon{color:#333}.bj-checkbox__check-icon{position:absolute;top:50%;left:50%;width:14px;height:14px;color:#fff;pointer-events:none;transform:translate(-50%,-50%)}.bj-checkbox--indeterminate .bj-checkbox__inner{width:16px;height:16px;background:#fff;border-color:#dbdbdb}.bj-checkbox__indeterminate-mark{width:8px;height:2px;background:#333;border-radius:4px}.bj-checkbox--disabled{opacity:.5}.bj-checkbox__input:focus-visible+.bj-checkbox__inner{outline:2px solid #1677ff;outline-offset:1px}.bj-checkbox__label{position:relative;min-width:0;padding-right:0;padding-left:0;overflow-wrap:anywhere}.bj-checkbox-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}.bj-checkbox-group--rtl{direction:rtl}.bj-overlay-scrollbar-hidden{scrollbar-width:none;-ms-overflow-style:none}.bj-overlay-scrollbar-hidden::-webkit-scrollbar{width:0;height:0}.bj-overlay-scrollbar__thumb{position:absolute;z-index:100;background:var(--bj-overlay-scrollbar-bg, #dbdbdb);border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background .2s}.bj-overlay-scrollbar__thumb--active{opacity:1}.bj-overlay-scrollbar__thumb:hover{background:var(--bj-overlay-scrollbar-bg, #c2c2c2)}.bj-dropdown{width:280px;overflow:hidden;color:#333;background:#fff;border:1px solid #ebebeb;border-radius:8px;box-shadow:0 0 12px #00000014}.bj-dropdown__search{padding:8px}.bj-dropdown__search .bj-input__affix-wrapper{height:32px;border-radius:8px}.bj-dropdown__search .bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):hover,.bj-dropdown__search .bj-input__affix-wrapper:not(.bj-input__affix-wrapper--error):not(.bj-input__affix-wrapper--readonly):not(:has(input[readonly])):not(:has(textarea[readonly])):not(:has(input:disabled)):not(:has(textarea:disabled)):focus-within{border-color:#dbdbdb;box-shadow:none}.bj-dropdown__search .bj-input__clear-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:4px;color:#333}.bj-dropdown__search .bj-dropdown__search-clear-icon{width:20px;height:20px;color:#333}.bj-dropdown__options{max-height:240px;padding:0 12px;margin:0 0 12px;overflow-y:auto}.bj-dropdown__options--empty{height:160px;margin-top:0;margin-bottom:12px}.bj-dropdown__option{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:0;color:#333;font-family:SourceHanSansCN-Normal;font-size:14px;line-height:21px;white-space:nowrap;cursor:pointer}.bj-dropdown__option .bj-checkbox__label{display:block;flex:1;min-width:0;padding-right:0;padding-left:0}.bj-dropdown__option--single{justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:0 12px;font-family:SourceHanSansCN-Normal;font-size:14px;font-style:normal;font-weight:350;line-height:21px;letter-spacing:0;text-align:left;background:transparent;border:0}.bj-dropdown__option--single:hover:not(:disabled){background:#fafafa}.bj-dropdown__option--single:disabled{color:#999;cursor:not-allowed}.bj-dropdown__option-label{display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bj-dropdown__option-content{display:flex;flex:1;flex-direction:column;min-width:0}.bj-dropdown__option-description{overflow:hidden;color:#999;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:19px;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.bj-dropdown__option-tooltip-anchor{display:block;pointer-events:none;z-index:1100}.bj-dropdown__option-tooltip.tooltip-popup,.bj-dropdown__option-tooltip.tooltip-popup .tooltip-arrow{border:0}.bj-dropdown__option-icon{flex:none;width:20px;height:20px;color:#333}.bj-dropdown__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:100%}.bj-dropdown__empty-image{width:68px;height:68px}.bj-dropdown__empty-text{color:#999;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:21px;letter-spacing:0;text-align:center}.bj-dropdown__actions{display:flex;justify-content:center;gap:16px;padding:8px 12px 12px}.bj-dropdown__actions button{min-width:80px;height:28px;padding:0 12px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:28px;background:transparent;border:0;border-radius:4px;cursor:pointer}.bj-dropdown__actions button:last-child{color:#fff;background:#333}.bj-dropdown__actions--single{display:block;padding:0}.bj-dropdown__actions--single button{width:100%;min-width:0;height:40px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;font-style:normal;font-weight:350;line-height:19px;background:#f5f5f5;border-radius:0}.bj-dropdown__actions--single button:last-child{color:#333;background:#f5f5f5}.bj-dropdown--single .bj-dropdown__search{padding:8px}.bj-dropdown--single .bj-dropdown__options--single{max-height:240px;padding:0;margin:0}.bj-dropdown--single .bj-dropdown__options--single.bj-dropdown__options--empty{margin-bottom:20px}.bj-dropdown--double-line .bj-dropdown__options{max-height:336px}.bj-dropdown--double-line .bj-dropdown__option--double-line{min-height:56px;padding:8px 12px}.bj-dropdown--double-line .bj-dropdown__option--double-line .bj-checkbox{margin-top:0}.bj-dropdown--double-line .bj-dropdown__option--double-line--single{padding:8px 12px}.bj-dropdown--double-line .bj-dropdown__option--double-line:not(.bj-dropdown__option--single){padding:8px 0}.bj-dropdown--double-line .bj-dropdown__option-label{font-family:SourceHanSansCN-Normal;font-weight:350;line-height:21px}.bj-dropdown--double-line.bj-dropdown--single .bj-dropdown__options--single{max-height:336px}.bj-table{position:relative;width:100%;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:19px}.bj-table *,.bj-table *:before,.bj-table *:after{box-sizing:border-box}.bj-table__scroll{width:100%;overflow-x:auto}.bj-table__viewport{position:relative}.bj-table__native-table{width:100%;min-width:100%;border-spacing:0;border-collapse:separate;table-layout:fixed}.bj-table__title,.bj-table__footer{padding:12px;color:#333;background:#fff;border:1px solid #dbdbdb}.bj-table__title{border-bottom:0}.bj-table__footer{border-top:0}.bj-table__summary{position:relative;background:#fff}.bj-table__summary th,.bj-table__summary td{padding:17.5px 12px;border-bottom:1px solid #dbdbdb}.bj-table--bordered:not(.bj-table--empty) .bj-table__scroll{border:1px solid #dbdbdb}.bj-table--bordered .bj-table__native-table{border:0}.bj-table--bordered.bj-table--empty .bj-table__header{border:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-row:first-child .bj-table__header-cell{border-top:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-row:last-child .bj-table__header-cell{border-bottom:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-cell:first-child{border-left:1px solid #dbdbdb}.bj-table--bordered.bj-table--empty .bj-table__header-cell:last-child{border-right:1px solid #dbdbdb}.bj-table__header-cell{position:relative;height:36px;padding:0 12px;color:#333;font-weight:400;text-align:left;vertical-align:middle;background:#fafafa;border-bottom:1px solid #dbdbdb}.bj-table__header-cell--sortable,.bj-table__header-cell--filterable{padding-right:8px;cursor:pointer}.bj-table__column-header{display:flex;align-items:center;justify-content:space-between;min-width:0}.bj-table__column-title{display:flex;flex:1;align-items:center;justify-content:space-between;min-width:0;padding:0;color:inherit;font:inherit;text-align:inherit}.bj-table__column-title-content{display:inline-flex;align-items:center;min-width:0;gap:4px}.bj-table__column-tooltip-wrapper{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;width:100%}.bj-table__column-tooltip-wrapper>.bj-table__column-tooltip-trigger{flex:1;display:flex;min-width:0;outline:none}.bj-table__column-tooltip-wrapper>.bj-table__column-tooltip-trigger>.bj-table__column-header{flex:1;padding:0 12px}.bj-table__column-badge-trigger{position:absolute;top:-1px;right:-1px;z-index:2;display:block;width:12px;height:12px;cursor:default;outline:none}.bj-table__column-badge-shape{display:block;width:100%;height:100%;clip-path:polygon(0 0,100% 0,100% 100%);background:#dbdbdb;pointer-events:none}.bj-table__column-tooltip.tooltip-popup--content{z-index:1000}.bj-table__column-sorter{display:inline-flex;flex:none;align-items:center;justify-content:center;margin-left:auto;color:#666}.bj-table__column-sorter-icon,.bj-table__filter-icon{width:20px;height:20px;color:#666;pointer-events:none}.bj-table__filter{position:static;flex:none}.bj-table__filter-trigger{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:0;margin-left:auto;padding:0;color:#666;font-size:12px;background:transparent;border:0;border-radius:4px;cursor:pointer;pointer-events:none}.bj-table__filter-trigger:hover{color:#666;background:#f0f0f0}.bj-table__filter-trigger--active{color:#666}.bj-table__filter-dropdown{position:fixed;z-index:100}.bj-table--bordered .bj-table__header-cell:not(:last-child),.bj-table--bordered .bj-table__cell:not(:last-child){border-right:1px solid #dbdbdb}.bj-table--bordered .bj-table__cell--before-fixed-right:not(:last-child){border-right:0}.bj-table__cell{padding:17.5px 12px;color:#333;font-family:SourceHanSansCN-Normal;font-size:12px;line-height:19px;word-break:break-all;overflow-wrap:anywhere;vertical-align:middle;border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__row{min-height:54px}.bj-table__row--group{height:36px;min-height:36px}.bj-table__cell--group{height:36px;padding:0!important;border-left:0;border-right:0;border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__body .bj-table__row:last-child .bj-table__cell{border-bottom:0}.bj-table__cell-content{min-height:19px}.bj-table__cell--fixed{background:#fff}.bj-table__header-cell.bj-table__cell--fixed{z-index:3!important;background:#fafafa}.bj-table__cell--fixed-left{border-right:0!important}.bj-table__cell--fixed-right{border-left:0;border-right:0}.bj-table__cell--fixed-left:after,.bj-table__selection-cell--fixed:after{position:absolute;top:0;right:0;bottom:0;width:1px;background:#dbdbdb;content:"";pointer-events:none}.bj-table__cell--fixed-right:before{position:absolute;top:0;bottom:0;left:0;width:1px;background:#dbdbdb;content:"";pointer-events:none}.bj-table__body .bj-table__cell--fixed-left,.bj-table__body .bj-table__cell--fixed-right{border-bottom:1px solid #dbdbdb;box-shadow:none}.bj-table__body .bj-table__row:last-child .bj-table__cell--fixed-left,.bj-table__body .bj-table__row:last-child .bj-table__cell--fixed-right{border-bottom:0}.bj-table__row:hover .bj-table__cell,.bj-table__row--selected .bj-table__cell{background:#fafafa}.bj-table__cell--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;overflow-wrap:normal}.bj-table__selection-col,.bj-table__selection-cell{width:48px;padding:0 12px;text-align:center;vertical-align:middle}.bj-table__selection-cell--fixed{position:sticky;left:0;z-index:2;background:#fff;border-right:0!important}.bj-table__header-cell.bj-table__selection-cell--fixed{z-index:4;background:#fafafa}.bj-table__body .bj-table__selection-cell{height:54px}.bj-table__selection-cell>.bj-table__selection-control{margin:auto}.bj-table__selection-cell>.bj-table__selection-checkbox{display:flex;justify-content:center;margin:auto;line-height:1}.bj-table__selection-control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;vertical-align:middle;cursor:pointer}.bj-table__selection-control--disabled{cursor:not-allowed;opacity:.5}.bj-table__selection-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.bj-table__selection-box{display:flex;align-items:center;justify-content:center;width:15px;height:15px;background:transparent;border:1px solid #dbdbdb;border-radius:4px;transition:width .15s ease,height .15s ease,background .15s ease}.bj-table__selection-control--checked .bj-table__selection-box{width:16px;height:16px;background:#333;border-color:#333}.bj-table__selection-check-icon{width:14px;height:14px;color:#fff;pointer-events:none}.bj-table__selection-input:focus-visible+.bj-table__selection-box{outline:2px solid #1677ff;outline-offset:1px}.bj-table__empty-cell{height:454px;padding:0 12px;color:#999;text-align:center;vertical-align:middle;border-bottom:0}.bj-table__empty-overlay{position:absolute;top:36px;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#999;text-align:center;pointer-events:none}.bj-table__empty-content{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.bj-table__empty-image-wrap{display:flex;align-items:center;justify-content:center}.bj-table__empty-image{display:block;width:80px;height:80px;object-fit:contain;-webkit-user-select:none;user-select:none}.bj-table__empty-text{color:#999;font-size:12px;line-height:20px}.bj-table__loading{position:absolute;z-index:1000;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:#6b7280;background:#fffc;pointer-events:all}.bj-table__loading-indicator{width:60px;height:60px;margin:0;-webkit-user-select:none;user-select:none}.bj-table__loading-text{font-size:13px}.bj-table__pagination{margin-top:16px}.bj-table--small .bj-table__header-cell{height:32px}.bj-table--small .bj-table__cell{min-height:40px;padding:8px 12px}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("react"),U=require("react-dom"),X=require("../BasicInput/BInput.js"),Y=require("../CheckBox/index.js"),k=require("../Icon/Icon.js"),Z=require("../OverlayScrollbar/BOverlayScrollbar.js");;/* empty css */const $=require("../Tooltip/ContentTooltip.js");require("../Tooltip/TooltipWrapper.js");const ee=require("../ProductField/no_data_light.png.js");;/* empty css */function u(...s){return s.filter(Boolean).join(" ")}function ne(s){return typeof s.label=="string"||typeof s.label=="number"?String(s.label):String(s.value)}function D({option:s}){const i=r.useRef(null),[b,o]=r.useState(!1),[l,m]=r.useState(null),p=typeof s.label=="string"||typeof s.label=="number",j=p?String(s.label):s.label;function _(){const a=i.current;p&&a&&a.scrollWidth>a.clientWidth&&(m(a.getBoundingClientRect()),o(!0))}return n.jsxs("span",{ref:i,className:"bj-dropdown__option-label",onMouseEnter:_,onMouseLeave:()=>o(!1),children:[j,b&&l&&typeof document<"u"&&U.createPortal(n.jsx("span",{className:"bj-dropdown__option-tooltip-anchor",style:{position:"fixed",top:l.top,left:l.left,width:l.width,height:l.height},children:n.jsx($,{className:"bj-dropdown__option-tooltip",content:j,placement:"top"})}),document.body)]})}function I({option:s,doubleLine:i}){return i?n.jsxs("span",{className:"bj-dropdown__option-content",children:[n.jsx(D,{option:s}),s.description!==void 0&&n.jsx("span",{className:"bj-dropdown__option-description",children:s.description})]}):n.jsx(D,{option:s})}function se({className:s,style:i,options:b,value:o,defaultValue:l=[],multiple:m=!1,optionMode:p="single-line",searchable:j=!1,searchValue:_,searchPlaceholder:a="搜索",onSearch:f,filterOption:v=!0,emptyText:O,labels:g,t:y=h=>h,optionRender:x,onChange:N,footer:q=!0,showReset:E=!0,showConfirm:P=!0,resetText:W=y("重置"),confirmText:z=y("确定"),onReset:L,onConfirm:S}){const h=r.useRef(null),C=r.useRef(null),[A,M]=r.useState(l),[G,F]=r.useState(""),t=o??A,d=m===!0,c=p==="double-line",w=_??G,H=O??(g==null?void 0:g.emptyText)??y("暂无结果"),B=!f&&v!==!1&&w?b.filter(e=>typeof v=="function"?v(w,e):ne(e).toLocaleLowerCase().includes(w.toLocaleLowerCase())):b;function J(e,T){o===void 0&&M(e),N==null||N(e,T)}function R(e){_===void 0&&F(e),f==null||f(e)}function V(e){if(e.disabled)return;const T=d?t.includes(e.value)?t.filter(Q=>Q!==e.value):[...t,e.value]:[e.value];J(T,e)}function K(){o===void 0&&M([]),L==null||L()}return n.jsxs("div",{ref:h,className:u("bj-dropdown",c&&"bj-dropdown--double-line",!d&&"bj-dropdown--single",s),role:"dialog",style:i,children:[j&&n.jsx("div",{className:"bj-dropdown__search",children:n.jsx(X,{"aria-label":"搜索选项",allowClear:{clearIcon:n.jsx(k,{className:"bj-dropdown__search-clear-icon",type:"icon-a-guanbixi"})},onChange:e=>R(e.target.value),onClear:()=>R(""),placeholder:a,prefix:n.jsx(k,{type:"icon-a-sousuoxi"}),inputMode:"search",role:"searchbox",type:"text",value:w})}),n.jsxs("div",{ref:C,className:u("bj-dropdown__options","bj-overlay-scrollbar-hidden",B.length===0&&"bj-dropdown__options--empty",!d&&"bj-dropdown__options--single"),children:[B.map(e=>d?n.jsx(Y.BCheckBox,{checked:t.includes(e.value),className:u("bj-dropdown__option",c&&e.description!==void 0&&"bj-dropdown__option--double-line"),disabled:e.disabled,onChange:()=>V(e),skipGroup:!0,variant:"white",children:x?x(e):n.jsx(I,{doubleLine:c&&e.description!==void 0,option:e})},String(e.value)):n.jsxs("button",{"aria-pressed":t.includes(e.value),className:u("bj-dropdown__option","bj-dropdown__option--single",c&&e.description!==void 0&&"bj-dropdown__option--double-line",t.includes(e.value)&&"bj-dropdown__option--selected"),disabled:e.disabled,onClick:()=>V(e),type:"button",children:[x?n.jsx("span",{className:"bj-dropdown__option-label",children:x(e)}):n.jsx(I,{doubleLine:c&&e.description!==void 0,option:e}),t.includes(e.value)&&n.jsx(k,{className:"bj-dropdown__option-icon",type:"icon-a-dagouxi"})]},String(e.value))),B.length===0&&n.jsxs("div",{className:"bj-dropdown__empty",children:[n.jsx("img",{alt:"",className:"bj-dropdown__empty-image",src:ee}),n.jsx("span",{className:"bj-dropdown__empty-text",children:H})]})]}),n.jsx(Z,{containerRef:h,gap:2,size:2,targetRef:C}),q!==!1&&(q!==!0?q:n.jsxs("div",{className:u("bj-dropdown__actions",!d&&"bj-dropdown__actions--single"),children:[E&&n.jsx("button",{onClick:K,type:"button",children:W}),d&&P&&n.jsx("button",{onClick:()=>S==null?void 0:S(t),type:"button",children:z})]}))]})}exports.BDropdown=se;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("react"),U=require("react-dom"),X=require("../BasicInput/BInput.js"),Y=require("../CheckBox/index.js"),k=require("../Icon/Icon.js"),Z=require("../OverlayScrollbar/BOverlayScrollbar.js");;/* empty css */const $=require("../Tooltip/ContentTooltip.js");require("../Tooltip/TooltipWrapper.js");const ee=require("../ProductField/no_data_light.svg.js");;/* empty css */function u(...s){return s.filter(Boolean).join(" ")}function ne(s){return typeof s.label=="string"||typeof s.label=="number"?String(s.label):String(s.value)}function D({option:s}){const i=r.useRef(null),[b,o]=r.useState(!1),[l,m]=r.useState(null),p=typeof s.label=="string"||typeof s.label=="number",j=p?String(s.label):s.label;function _(){const a=i.current;p&&a&&a.scrollWidth>a.clientWidth&&(m(a.getBoundingClientRect()),o(!0))}return n.jsxs("span",{ref:i,className:"bj-dropdown__option-label",onMouseEnter:_,onMouseLeave:()=>o(!1),children:[j,b&&l&&typeof document<"u"&&U.createPortal(n.jsx("span",{className:"bj-dropdown__option-tooltip-anchor",style:{position:"fixed",top:l.top,left:l.left,width:l.width,height:l.height},children:n.jsx($,{className:"bj-dropdown__option-tooltip",content:j,placement:"top"})}),document.body)]})}function I({option:s,doubleLine:i}){return i?n.jsxs("span",{className:"bj-dropdown__option-content",children:[n.jsx(D,{option:s}),s.description!==void 0&&n.jsx("span",{className:"bj-dropdown__option-description",children:s.description})]}):n.jsx(D,{option:s})}function se({className:s,style:i,options:b,value:o,defaultValue:l=[],multiple:m=!1,optionMode:p="single-line",searchable:j=!1,searchValue:_,searchPlaceholder:a="搜索",onSearch:f,filterOption:v=!0,emptyText:O,labels:g,t:y=h=>h,optionRender:x,onChange:N,footer:q=!0,showReset:E=!0,showConfirm:P=!0,resetText:W=y("重置"),confirmText:z=y("确定"),onReset:L,onConfirm:S}){const h=r.useRef(null),C=r.useRef(null),[A,M]=r.useState(l),[G,F]=r.useState(""),t=o??A,d=m===!0,c=p==="double-line",w=_??G,H=O??(g==null?void 0:g.emptyText)??y("暂无结果"),B=!f&&v!==!1&&w?b.filter(e=>typeof v=="function"?v(w,e):ne(e).toLocaleLowerCase().includes(w.toLocaleLowerCase())):b;function J(e,T){o===void 0&&M(e),N==null||N(e,T)}function R(e){_===void 0&&F(e),f==null||f(e)}function V(e){if(e.disabled)return;const T=d?t.includes(e.value)?t.filter(Q=>Q!==e.value):[...t,e.value]:[e.value];J(T,e)}function K(){o===void 0&&M([]),L==null||L()}return n.jsxs("div",{ref:h,className:u("bj-dropdown",c&&"bj-dropdown--double-line",!d&&"bj-dropdown--single",s),role:"dialog",style:i,children:[j&&n.jsx("div",{className:"bj-dropdown__search",children:n.jsx(X,{"aria-label":"搜索选项",allowClear:{clearIcon:n.jsx(k,{className:"bj-dropdown__search-clear-icon",type:"icon-a-guanbixi"})},onChange:e=>R(e.target.value),onClear:()=>R(""),placeholder:a,prefix:n.jsx(k,{type:"icon-a-sousuoxi"}),inputMode:"search",role:"searchbox",type:"text",value:w})}),n.jsxs("div",{ref:C,className:u("bj-dropdown__options","bj-overlay-scrollbar-hidden",B.length===0&&"bj-dropdown__options--empty",!d&&"bj-dropdown__options--single"),children:[B.map(e=>d?n.jsx(Y.BCheckBox,{checked:t.includes(e.value),className:u("bj-dropdown__option",c&&e.description!==void 0&&"bj-dropdown__option--double-line"),disabled:e.disabled,onChange:()=>V(e),skipGroup:!0,variant:"white",children:x?x(e):n.jsx(I,{doubleLine:c&&e.description!==void 0,option:e})},String(e.value)):n.jsxs("button",{"aria-pressed":t.includes(e.value),className:u("bj-dropdown__option","bj-dropdown__option--single",c&&e.description!==void 0&&"bj-dropdown__option--double-line",t.includes(e.value)&&"bj-dropdown__option--selected"),disabled:e.disabled,onClick:()=>V(e),type:"button",children:[x?n.jsx("span",{className:"bj-dropdown__option-label",children:x(e)}):n.jsx(I,{doubleLine:c&&e.description!==void 0,option:e}),t.includes(e.value)&&n.jsx(k,{className:"bj-dropdown__option-icon",type:"icon-a-dagouxi"})]},String(e.value))),B.length===0&&n.jsxs("div",{className:"bj-dropdown__empty",children:[n.jsx("img",{alt:"",className:"bj-dropdown__empty-image",src:ee}),n.jsx("span",{className:"bj-dropdown__empty-text",children:H})]})]}),n.jsx(Z,{containerRef:h,gap:2,size:2,targetRef:C}),q!==!1&&(q!==!0?q:n.jsxs("div",{className:u("bj-dropdown__actions",!d&&"bj-dropdown__actions--single"),children:[E&&n.jsx("button",{onClick:K,type:"button",children:W}),d&&P&&n.jsx("button",{onClick:()=>S==null?void 0:S(t),type:"button",children:z})]}))]})}exports.BDropdown=se;
@@ -8,7 +8,7 @@ import ee from "../OverlayScrollbar/BOverlayScrollbar.mjs";
8
8
  /* empty css */
9
9
  import le from "../Tooltip/ContentTooltip.mjs";
10
10
  import "../Tooltip/TooltipWrapper.mjs";
11
- import ne from "../ProductField/no_data_light.png.mjs";
11
+ import ne from "../ProductField/no_data_light.svg.mjs";
12
12
  /* empty css */
13
13
  function u(...n) {
14
14
  return n.filter(Boolean).join(" ");
@@ -17,18 +17,18 @@ function te(n) {
17
17
  return typeof n.label == "string" || typeof n.label == "number" ? String(n.label) : String(n.value);
18
18
  }
19
19
  function R({ option: n }) {
20
- const i = M(null), [p, d] = j(!1), [o, g] = j(null), b = typeof n.label == "string" || typeof n.label == "number", m = b ? String(n.label) : n.label;
20
+ const d = M(null), [p, i] = j(!1), [o, g] = j(null), b = typeof n.label == "string" || typeof n.label == "number", m = b ? String(n.label) : n.label;
21
21
  function f() {
22
- const a = i.current;
23
- b && a && a.scrollWidth > a.clientWidth && (g(a.getBoundingClientRect()), d(!0));
22
+ const a = d.current;
23
+ b && a && a.scrollWidth > a.clientWidth && (g(a.getBoundingClientRect()), i(!0));
24
24
  }
25
25
  return /* @__PURE__ */ r(
26
26
  "span",
27
27
  {
28
- ref: i,
28
+ ref: d,
29
29
  className: "bj-dropdown__option-label",
30
30
  onMouseEnter: f,
31
- onMouseLeave: () => d(!1),
31
+ onMouseLeave: () => i(!1),
32
32
  children: [
33
33
  m,
34
34
  p && o && typeof document < "u" && Y(
@@ -52,17 +52,17 @@ function R({ option: n }) {
52
52
  }
53
53
  );
54
54
  }
55
- function W({ option: n, doubleLine: i }) {
56
- return i ? /* @__PURE__ */ r("span", { className: "bj-dropdown__option-content", children: [
55
+ function W({ option: n, doubleLine: d }) {
56
+ return d ? /* @__PURE__ */ r("span", { className: "bj-dropdown__option-content", children: [
57
57
  /* @__PURE__ */ l(R, { option: n }),
58
58
  n.description !== void 0 && /* @__PURE__ */ l("span", { className: "bj-dropdown__option-description", children: n.description })
59
59
  ] }) : /* @__PURE__ */ l(R, { option: n });
60
60
  }
61
61
  function _e({
62
62
  className: n,
63
- style: i,
63
+ style: d,
64
64
  options: p,
65
- value: d,
65
+ value: i,
66
66
  defaultValue: o = [],
67
67
  multiple: g = !1,
68
68
  optionMode: b = "single-line",
@@ -84,22 +84,22 @@ function _e({
84
84
  onReset: k,
85
85
  onConfirm: C
86
86
  }) {
87
- const w = M(null), S = M(null), [F, D] = j(o), [H, J] = j(""), t = d ?? F, s = g === !0, c = b === "double-line", v = f ?? H, K = z ?? (N == null ? void 0 : N.emptyText) ?? x("暂无结果"), I = !_ && y !== !1 && v ? p.filter((e) => typeof y == "function" ? y(v, e) : te(e).toLocaleLowerCase().includes(v.toLocaleLowerCase())) : p;
87
+ const w = M(null), S = M(null), [F, E] = j(o), [H, J] = j(""), t = i ?? F, s = g === !0, c = b === "double-line", v = f ?? H, K = z ?? (N == null ? void 0 : N.emptyText) ?? x("暂无结果"), I = !_ && y !== !1 && v ? p.filter((e) => typeof y == "function" ? y(v, e) : te(e).toLocaleLowerCase().includes(v.toLocaleLowerCase())) : p;
88
88
  function Q(e, T) {
89
- d === void 0 && D(e), B == null || B(e, T);
89
+ i === void 0 && E(e), B == null || B(e, T);
90
90
  }
91
91
  function O(e) {
92
92
  f === void 0 && J(e), _ == null || _(e);
93
93
  }
94
- function E(e) {
94
+ function D(e) {
95
95
  if (e.disabled) return;
96
96
  const T = s ? t.includes(e.value) ? t.filter((X) => X !== e.value) : [...t, e.value] : [e.value];
97
97
  Q(T, e);
98
98
  }
99
99
  function U() {
100
- d === void 0 && D([]), k == null || k();
100
+ i === void 0 && E([]), k == null || k();
101
101
  }
102
- return /* @__PURE__ */ r("div", { ref: w, className: u("bj-dropdown", c && "bj-dropdown--double-line", !s && "bj-dropdown--single", n), role: "dialog", style: i, children: [
102
+ return /* @__PURE__ */ r("div", { ref: w, className: u("bj-dropdown", c && "bj-dropdown--double-line", !s && "bj-dropdown--single", n), role: "dialog", style: d, children: [
103
103
  m && /* @__PURE__ */ l("div", { className: "bj-dropdown__search", children: /* @__PURE__ */ l(
104
104
  Z,
105
105
  {
@@ -122,7 +122,7 @@ function _e({
122
122
  checked: t.includes(e.value),
123
123
  className: u("bj-dropdown__option", c && e.description !== void 0 && "bj-dropdown__option--double-line"),
124
124
  disabled: e.disabled,
125
- onChange: () => E(e),
125
+ onChange: () => D(e),
126
126
  skipGroup: !0,
127
127
  variant: "white",
128
128
  children: h ? h(e) : /* @__PURE__ */ l(W, { doubleLine: c && e.description !== void 0, option: e })
@@ -134,7 +134,7 @@ function _e({
134
134
  "aria-pressed": t.includes(e.value),
135
135
  className: u("bj-dropdown__option", "bj-dropdown__option--single", c && e.description !== void 0 && "bj-dropdown__option--double-line", t.includes(e.value) && "bj-dropdown__option--selected"),
136
136
  disabled: e.disabled,
137
- onClick: () => E(e),
137
+ onClick: () => D(e),
138
138
  type: "button",
139
139
  children: [
140
140
  h ? /* @__PURE__ */ l("span", { className: "bj-dropdown__option-label", children: h(e) }) : /* @__PURE__ */ l(W, { doubleLine: c && e.description !== void 0, option: e }),
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),ne=require("react-dom");;/* empty css */const ce=require("./no_data_light.png.js"),B=require("./arrow-up.svg.js"),oe=require("./sort.svg.js"),ie=require("./search.svg.js"),ae=require("./checkbox-no.svg.js"),ue=require("./checkbox-ok.svg.js");function Z({size:u=20}){return t.jsx("svg",{width:u,height:u,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.5613 6.73027C16.7558 6.53571 17.0723 6.53442 17.2684 6.72736C17.4644 6.92032 17.4657 7.23444 17.2713 7.42901L12.7036 12.0002L17.2713 16.5714C17.4657 16.766 17.4644 17.0801 17.2684 17.273C17.0723 17.4659 16.7558 17.4646 16.5613 17.2701L11.9996 12.7047L7.43794 17.2701C7.24352 17.4647 6.92699 17.4659 6.73091 17.273C6.53485 17.0801 6.53355 16.7659 6.72798 16.5714L11.2955 12.0002L6.72798 7.42901C6.53355 7.23442 6.53485 6.92032 6.73091 6.72736C6.92698 6.53442 7.2435 6.53571 7.43794 6.73027L11.9996 11.2955L16.5613 6.73027Z",fill:"currentColor"})})}function le({options:u=[],value:a=[],onChange:o,placeholder:R="请选择",emptyText:D="暂无产品数据",onManageField:I,multiple:d=!0,showSearch:E=!0,showSort:q=!0,addButtonText:y,onAdd:U,labels:s,className:H,style:G,getPopupContainer:x}){const J=(s==null?void 0:s.searchPlaceholder)??"搜索",K=(s==null?void 0:s.sortDefault)??"默认顺序",Q=(s==null?void 0:s.sortAsc)??"名称A-Z",V=(s==null?void 0:s.sortDesc)??"名称Z-A",O=(s==null?void 0:s.noMatchText)??"暂无选项",W=(s==null?void 0:s.manageFieldPre)??"请前往",Y=(s==null?void 0:s.manageFieldLink)??"管理字段",ee=(s==null?void 0:s.manageFieldPost)??"添加",[f,C]=c.useState(!1),[j,M]=c.useState(""),[p,F]=c.useState("none"),[w,N]=c.useState(!1),m=c.useRef(null),b=c.useRef(null),P=c.useRef(null),[v,te]=c.useState({top:0,left:0,width:0}),l=c.useCallback(()=>{if(!m.current)return;const e=m.current.getBoundingClientRect();te({top:e.bottom+4,left:e.left,width:e.width})},[]);c.useLayoutEffect(()=>{f&&l()},[f,l]),c.useEffect(()=>{if(!f)return;const e=r=>{var i,g;const n=r.target;(i=P.current)!=null&&i.contains(n)||(g=m.current)!=null&&g.contains(n)||L()};return document.addEventListener("mousedown",e),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}},[f,l]),c.useEffect(()=>{if(!w)return;const e=r=>{b.current&&!b.current.contains(r.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[w]);const S=c.useRef(null),$=c.useRef(null),h=c.useRef({dragging:!1,startX:0,scrollLeft:0,target:null}),T=c.useCallback(e=>({onMouseDown:r=>{const n=e.current;n&&(h.current={dragging:!0,startX:r.clientX,scrollLeft:n.scrollLeft,target:n})},onMouseMove:r=>{const{dragging:n,startX:i,scrollLeft:g,target:A}=h.current;!n||!A||(r.preventDefault(),A.scrollLeft=g-(r.clientX-i))},onMouseUp:()=>{h.current.dragging=!1},onMouseLeave:()=>{h.current.dragging=!1}}),[]);function se(e){if(!d){o==null||o(a.includes(e)?[]:[e]),a.includes(e)||L();return}const r=a.includes(e)?a.filter(n=>n!==e):[...a,e];o==null||o(r)}function X(e){o==null||o(a.filter(r=>r!==e))}function L(){C(!1),M(""),F("none")}function re(e){F(e),N(!1)}const z=c.useMemo(()=>{let e=u.filter(n=>(n.searchText??(typeof n.label=="string"?n.label:"")).toLowerCase().includes(j.toLowerCase()));const r=n=>n.searchText??(typeof n.label=="string"?n.label:"");return p==="asc"&&(e=[...e].sort((n,i)=>r(n).localeCompare(r(i)))),p==="desc"&&(e=[...e].sort((n,i)=>r(i).localeCompare(r(n)))),e},[u,j,p]),_=u.filter(e=>a.includes(e.value)),k=u.length>0;return t.jsxs("div",{ref:m,className:["bu-pf",H].filter(Boolean).join(" "),style:G,children:[!f&&t.jsxs("div",{className:`bu-pf__trigger${_.length>0?" bu-pf__trigger--selected":""}`,onClick:()=>C(!0),children:[_.length>0?t.jsx("div",{className:"bu-pf__trigger-tags",ref:$,...T($),children:_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:r=>{r.stopPropagation(),X(e.value)},children:t.jsx(Z,{size:12})})]},e.value))}):t.jsx("span",{className:"bu-pf__placeholder",children:R}),t.jsx("span",{className:"bu-pf__arrow",children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bu-pf__panel",children:t.jsxs("div",{className:"bu-pf__header",children:[t.jsx("div",{className:"bu-pf__tags",ref:S,...T(S),children:_.length>0?_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:()=>X(e.value),children:t.jsx(Z,{size:12})})]},e.value)):t.jsx("span",{className:"bu-pf__placeholder-inline",children:R})}),t.jsx("button",{type:"button",className:"bu-pf__close",onClick:L,children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]})}),ne.createPortal(t.jsx("div",{ref:P,className:"bu-pf__portal",style:{position:"fixed",top:v.top,left:v.left,width:v.width,zIndex:1050},children:t.jsxs("div",{className:"bu-pf__dropdown",children:[(E||q)&&t.jsxs("div",{className:"bu-pf__toolbar",children:[E&&t.jsxs("div",{className:"bu-pf__search",children:[t.jsx("span",{className:"bu-pf__search-icon",children:t.jsx("img",{src:ie,width:20,height:20,alt:""})}),t.jsx("input",{className:"bu-pf__search-input",placeholder:J,value:j,onChange:e=>M(e.target.value)})]}),q&&t.jsxs("div",{ref:b,className:"bu-pf__sort-wrap",children:[t.jsx("button",{type:"button",className:`bu-pf__sort-btn${p!=="none"?" bu-pf__sort-btn--active":""}`,onClick:()=>N(e=>!e),children:t.jsx("img",{src:oe,width:24,height:24,alt:""})}),w&&t.jsx("div",{className:"bu-pf__sort-dropdown",children:[{key:"none",label:K},{key:"asc",label:Q},{key:"desc",label:V}].map(({key:e,label:r})=>t.jsx("div",{className:`bu-pf__sort-option${p===e?" bu-pf__sort-option--active":""}`,onClick:()=>re(e),children:r},e))})]})]}),t.jsx("div",{className:"bu-pf__list",children:k&&z.length>0?z.map(e=>{const r=a.includes(e.value);return t.jsxs("div",{className:`bu-pf__option${d?" bu-pf__option--multiple":""}${r&&!d?" bu-pf__option--selected":""}`,onClick:()=>se(e.value),children:[d&&t.jsx("img",{className:"bu-pf__checkbox-img",src:r?ue:ae,alt:""}),t.jsx("span",{className:"bu-pf__option-label",children:e.label})]},e.value)}):t.jsxs("div",{className:"bu-pf__no-match",children:[t.jsx("img",{className:"bu-pf__no-match-img",src:ce,alt:k?O:D}),t.jsx("p",{className:"bu-pf__no-match-text",children:k?O:D}),t.jsxs("p",{className:"bu-pf__no-match-hint",children:[W,t.jsx("button",{type:"button",className:"bu-pf__manage-btn",onClick:I,children:Y}),ee]})]})}),y&&t.jsx("div",{className:"bu-pf__add-row",onClick:U,children:y})]})}),(x==null?void 0:x())??document.body)]})]})}module.exports=le;
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),ne=require("react-dom");;/* empty css */const ce=require("./no_data_light.svg.js"),B=require("./arrow-up.svg.js"),oe=require("./sort.svg.js"),ie=require("./search.svg.js"),ae=require("./checkbox-no.svg.js"),ue=require("./checkbox-ok.svg.js");function Z({size:u=20}){return t.jsx("svg",{width:u,height:u,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.5613 6.73027C16.7558 6.53571 17.0723 6.53442 17.2684 6.72736C17.4644 6.92032 17.4657 7.23444 17.2713 7.42901L12.7036 12.0002L17.2713 16.5714C17.4657 16.766 17.4644 17.0801 17.2684 17.273C17.0723 17.4659 16.7558 17.4646 16.5613 17.2701L11.9996 12.7047L7.43794 17.2701C7.24352 17.4647 6.92699 17.4659 6.73091 17.273C6.53485 17.0801 6.53355 16.7659 6.72798 16.5714L11.2955 12.0002L6.72798 7.42901C6.53355 7.23442 6.53485 6.92032 6.73091 6.72736C6.92698 6.53442 7.2435 6.53571 7.43794 6.73027L11.9996 11.2955L16.5613 6.73027Z",fill:"currentColor"})})}function le({options:u=[],value:a=[],onChange:o,placeholder:R="请选择",emptyText:D="暂无产品数据",onManageField:I,multiple:d=!0,showSearch:E=!0,showSort:q=!0,addButtonText:y,onAdd:U,labels:s,className:H,style:G,getPopupContainer:x}){const J=(s==null?void 0:s.searchPlaceholder)??"搜索",K=(s==null?void 0:s.sortDefault)??"默认顺序",Q=(s==null?void 0:s.sortAsc)??"名称A-Z",V=(s==null?void 0:s.sortDesc)??"名称Z-A",O=(s==null?void 0:s.noMatchText)??"暂无选项",W=(s==null?void 0:s.manageFieldPre)??"请前往",Y=(s==null?void 0:s.manageFieldLink)??"管理字段",ee=(s==null?void 0:s.manageFieldPost)??"添加",[f,C]=c.useState(!1),[j,M]=c.useState(""),[p,F]=c.useState("none"),[w,N]=c.useState(!1),m=c.useRef(null),b=c.useRef(null),P=c.useRef(null),[v,te]=c.useState({top:0,left:0,width:0}),l=c.useCallback(()=>{if(!m.current)return;const e=m.current.getBoundingClientRect();te({top:e.bottom+4,left:e.left,width:e.width})},[]);c.useLayoutEffect(()=>{f&&l()},[f,l]),c.useEffect(()=>{if(!f)return;const e=r=>{var i,g;const n=r.target;(i=P.current)!=null&&i.contains(n)||(g=m.current)!=null&&g.contains(n)||L()};return document.addEventListener("mousedown",e),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}},[f,l]),c.useEffect(()=>{if(!w)return;const e=r=>{b.current&&!b.current.contains(r.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[w]);const S=c.useRef(null),$=c.useRef(null),h=c.useRef({dragging:!1,startX:0,scrollLeft:0,target:null}),T=c.useCallback(e=>({onMouseDown:r=>{const n=e.current;n&&(h.current={dragging:!0,startX:r.clientX,scrollLeft:n.scrollLeft,target:n})},onMouseMove:r=>{const{dragging:n,startX:i,scrollLeft:g,target:A}=h.current;!n||!A||(r.preventDefault(),A.scrollLeft=g-(r.clientX-i))},onMouseUp:()=>{h.current.dragging=!1},onMouseLeave:()=>{h.current.dragging=!1}}),[]);function se(e){if(!d){o==null||o(a.includes(e)?[]:[e]),a.includes(e)||L();return}const r=a.includes(e)?a.filter(n=>n!==e):[...a,e];o==null||o(r)}function X(e){o==null||o(a.filter(r=>r!==e))}function L(){C(!1),M(""),F("none")}function re(e){F(e),N(!1)}const z=c.useMemo(()=>{let e=u.filter(n=>(n.searchText??(typeof n.label=="string"?n.label:"")).toLowerCase().includes(j.toLowerCase()));const r=n=>n.searchText??(typeof n.label=="string"?n.label:"");return p==="asc"&&(e=[...e].sort((n,i)=>r(n).localeCompare(r(i)))),p==="desc"&&(e=[...e].sort((n,i)=>r(i).localeCompare(r(n)))),e},[u,j,p]),_=u.filter(e=>a.includes(e.value)),k=u.length>0;return t.jsxs("div",{ref:m,className:["bu-pf",H].filter(Boolean).join(" "),style:G,children:[!f&&t.jsxs("div",{className:`bu-pf__trigger${_.length>0?" bu-pf__trigger--selected":""}`,onClick:()=>C(!0),children:[_.length>0?t.jsx("div",{className:"bu-pf__trigger-tags",ref:$,...T($),children:_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:r=>{r.stopPropagation(),X(e.value)},children:t.jsx(Z,{size:12})})]},e.value))}):t.jsx("span",{className:"bu-pf__placeholder",children:R}),t.jsx("span",{className:"bu-pf__arrow",children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bu-pf__panel",children:t.jsxs("div",{className:"bu-pf__header",children:[t.jsx("div",{className:"bu-pf__tags",ref:S,...T(S),children:_.length>0?_.map(e=>t.jsxs("span",{className:`bu-pf__tag${d?"":" bu-pf__tag--single"}`,children:[t.jsx("span",{className:"bu-pf__tag-text",children:e.label}),t.jsx("button",{type:"button",className:"bu-pf__tag-close",onClick:()=>X(e.value),children:t.jsx(Z,{size:12})})]},e.value)):t.jsx("span",{className:"bu-pf__placeholder-inline",children:R})}),t.jsx("button",{type:"button",className:"bu-pf__close",onClick:L,children:t.jsx("img",{src:B,width:24,height:24,alt:""})})]})}),ne.createPortal(t.jsx("div",{ref:P,className:"bu-pf__portal",style:{position:"fixed",top:v.top,left:v.left,width:v.width,zIndex:1050},children:t.jsxs("div",{className:"bu-pf__dropdown",children:[(E||q)&&t.jsxs("div",{className:"bu-pf__toolbar",children:[E&&t.jsxs("div",{className:"bu-pf__search",children:[t.jsx("span",{className:"bu-pf__search-icon",children:t.jsx("img",{src:ie,width:20,height:20,alt:""})}),t.jsx("input",{className:"bu-pf__search-input",placeholder:J,value:j,onChange:e=>M(e.target.value)})]}),q&&t.jsxs("div",{ref:b,className:"bu-pf__sort-wrap",children:[t.jsx("button",{type:"button",className:`bu-pf__sort-btn${p!=="none"?" bu-pf__sort-btn--active":""}`,onClick:()=>N(e=>!e),children:t.jsx("img",{src:oe,width:24,height:24,alt:""})}),w&&t.jsx("div",{className:"bu-pf__sort-dropdown",children:[{key:"none",label:K},{key:"asc",label:Q},{key:"desc",label:V}].map(({key:e,label:r})=>t.jsx("div",{className:`bu-pf__sort-option${p===e?" bu-pf__sort-option--active":""}`,onClick:()=>re(e),children:r},e))})]})]}),t.jsx("div",{className:"bu-pf__list",children:k&&z.length>0?z.map(e=>{const r=a.includes(e.value);return t.jsxs("div",{className:`bu-pf__option${d?" bu-pf__option--multiple":""}${r&&!d?" bu-pf__option--selected":""}`,onClick:()=>se(e.value),children:[d&&t.jsx("img",{className:"bu-pf__checkbox-img",src:r?ue:ae,alt:""}),t.jsx("span",{className:"bu-pf__option-label",children:e.label})]},e.value)}):t.jsxs("div",{className:"bu-pf__no-match",children:[t.jsx("img",{className:"bu-pf__no-match-img",src:ce,alt:k?O:D}),t.jsx("p",{className:"bu-pf__no-match-text",children:k?O:D}),t.jsxs("p",{className:"bu-pf__no-match-hint",children:[W,t.jsx("button",{type:"button",className:"bu-pf__manage-btn",onClick:I,children:Y}),ee]})]})}),y&&t.jsx("div",{className:"bu-pf__add-row",onClick:U,children:y})]})}),(x==null?void 0:x())??document.body)]})]})}module.exports=le;
@@ -2,7 +2,7 @@ import { jsxs as s, jsx as t, Fragment as ae } from "react/jsx-runtime";
2
2
  import { useState as h, useRef as m, useCallback as U, useLayoutEffect as le, useEffect as H, useMemo as de } from "react";
3
3
  import { createPortal as ue } from "react-dom";
4
4
  /* empty css */
5
- import fe from "./no_data_light.png.mjs";
5
+ import fe from "./no_data_light.svg.mjs";
6
6
  import q from "./arrow-up.svg.mjs";
7
7
  import me from "./sort.svg.mjs";
8
8
  import pe from "./search.svg.mjs";
@@ -11,7 +11,7 @@ import he from "./checkbox-ok.svg.mjs";
11
11
  function G({ size: l = 20 }) {
12
12
  return /* @__PURE__ */ t("svg", { width: l, height: l, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("path", { d: "M16.5613 6.73027C16.7558 6.53571 17.0723 6.53442 17.2684 6.72736C17.4644 6.92032 17.4657 7.23444 17.2713 7.42901L12.7036 12.0002L17.2713 16.5714C17.4657 16.766 17.4644 17.0801 17.2684 17.273C17.0723 17.4659 16.7558 17.4646 16.5613 17.2701L11.9996 12.7047L7.43794 17.2701C7.24352 17.4647 6.92699 17.4659 6.73091 17.273C6.53485 17.0801 6.53355 16.7659 6.72798 16.5714L11.2955 12.0002L6.72798 7.42901C6.53355 7.23442 6.53485 6.92032 6.73091 6.72736C6.92698 6.53442 7.2435 6.53571 7.43794 6.73027L11.9996 11.2955L16.5613 6.73027Z", fill: "currentColor" }) });
13
13
  }
14
- function Ee({
14
+ function De({
15
15
  options: l = [],
16
16
  value: a = [],
17
17
  onChange: o,
@@ -28,7 +28,7 @@ function Ee({
28
28
  style: V,
29
29
  getPopupContainer: v
30
30
  }) {
31
- const W = (r == null ? void 0 : r.searchPlaceholder) ?? "搜索", Y = (r == null ? void 0 : r.sortDefault) ?? "默认顺序", ee = (r == null ? void 0 : r.sortAsc) ?? "名称A-Z", te = (r == null ? void 0 : r.sortDesc) ?? "名称Z-A", P = (r == null ? void 0 : r.noMatchText) ?? "暂无选项", re = (r == null ? void 0 : r.manageFieldPre) ?? "请前往", ne = (r == null ? void 0 : r.manageFieldLink) ?? "管理字段", ce = (r == null ? void 0 : r.manageFieldPost) ?? "添加", [f, R] = h(!1), [b, $] = h(""), [p, T] = h("none"), [L, k] = h(!1), g = m(null), x = m(null), X = m(null), [D, se] = h({ top: 0, left: 0, width: 0 }), d = U(() => {
31
+ const W = (r == null ? void 0 : r.searchPlaceholder) ?? "搜索", Y = (r == null ? void 0 : r.sortDefault) ?? "默认顺序", ee = (r == null ? void 0 : r.sortAsc) ?? "名称A-Z", te = (r == null ? void 0 : r.sortDesc) ?? "名称Z-A", P = (r == null ? void 0 : r.noMatchText) ?? "暂无选项", re = (r == null ? void 0 : r.manageFieldPre) ?? "请前往", ne = (r == null ? void 0 : r.manageFieldLink) ?? "管理字段", ce = (r == null ? void 0 : r.manageFieldPost) ?? "添加", [f, R] = h(!1), [b, $] = h(""), [p, T] = h("none"), [L, k] = h(!1), g = m(null), x = m(null), X = m(null), [y, se] = h({ top: 0, left: 0, width: 0 }), d = U(() => {
32
32
  if (!g.current) return;
33
33
  const e = g.current.getBoundingClientRect();
34
34
  se({
@@ -44,7 +44,7 @@ function Ee({
44
44
  const e = (n) => {
45
45
  var i, N;
46
46
  const c = n.target;
47
- (i = X.current) != null && i.contains(c) || (N = g.current) != null && N.contains(c) || y();
47
+ (i = X.current) != null && i.contains(c) || (N = g.current) != null && N.contains(c) || E();
48
48
  };
49
49
  return document.addEventListener("mousedown", e), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
50
50
  document.removeEventListener("mousedown", e), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
@@ -74,7 +74,7 @@ function Ee({
74
74
  }), []);
75
75
  function oe(e) {
76
76
  if (!u) {
77
- o == null || o(a.includes(e) ? [] : [e]), a.includes(e) || y();
77
+ o == null || o(a.includes(e) ? [] : [e]), a.includes(e) || E();
78
78
  return;
79
79
  }
80
80
  const n = a.includes(e) ? a.filter((c) => c !== e) : [...a, e];
@@ -83,7 +83,7 @@ function Ee({
83
83
  function S(e) {
84
84
  o == null || o(a.filter((n) => n !== e));
85
85
  }
86
- function y() {
86
+ function E() {
87
87
  R(!1), $(""), T("none");
88
88
  }
89
89
  function ie(e) {
@@ -93,7 +93,7 @@ function Ee({
93
93
  let e = l.filter((c) => (c.searchText ?? (typeof c.label == "string" ? c.label : "")).toLowerCase().includes(b.toLowerCase()));
94
94
  const n = (c) => c.searchText ?? (typeof c.label == "string" ? c.label : "");
95
95
  return p === "asc" && (e = [...e].sort((c, i) => n(c).localeCompare(n(i)))), p === "desc" && (e = [...e].sort((c, i) => n(i).localeCompare(n(c)))), e;
96
- }, [l, b, p]), _ = l.filter((e) => a.includes(e.value)), E = l.length > 0;
96
+ }, [l, b, p]), _ = l.filter((e) => a.includes(e.value)), D = l.length > 0;
97
97
  return /* @__PURE__ */ s("div", { ref: g, className: ["bu-pf", Q].filter(Boolean).join(" "), style: V, children: [
98
98
  !f && /* @__PURE__ */ s("div", { className: `bu-pf__trigger${_.length > 0 ? " bu-pf__trigger--selected" : ""}`, onClick: () => R(!0), children: [
99
99
  _.length > 0 ? /* @__PURE__ */ t(
@@ -142,10 +142,10 @@ function Ee({
142
142
  ] }, e.value)) : /* @__PURE__ */ t("span", { className: "bu-pf__placeholder-inline", children: O })
143
143
  }
144
144
  ),
145
- /* @__PURE__ */ t("button", { type: "button", className: "bu-pf__close", onClick: y, children: /* @__PURE__ */ t("img", { src: q, width: 24, height: 24, alt: "" }) })
145
+ /* @__PURE__ */ t("button", { type: "button", className: "bu-pf__close", onClick: E, children: /* @__PURE__ */ t("img", { src: q, width: 24, height: 24, alt: "" }) })
146
146
  ] }) }),
147
147
  ue(
148
- /* @__PURE__ */ t("div", { ref: X, className: "bu-pf__portal", style: { position: "fixed", top: D.top, left: D.left, width: D.width, zIndex: 1050 }, children: /* @__PURE__ */ s("div", { className: "bu-pf__dropdown", children: [
148
+ /* @__PURE__ */ t("div", { ref: X, className: "bu-pf__portal", style: { position: "fixed", top: y.top, left: y.left, width: y.width, zIndex: 1050 }, children: /* @__PURE__ */ s("div", { className: "bu-pf__dropdown", children: [
149
149
  (C || F) && /* @__PURE__ */ s("div", { className: "bu-pf__toolbar", children: [
150
150
  C && /* @__PURE__ */ s("div", { className: "bu-pf__search", children: [
151
151
  /* @__PURE__ */ t("span", { className: "bu-pf__search-icon", children: /* @__PURE__ */ t("img", { src: pe, width: 20, height: 20, alt: "" }) }),
@@ -184,7 +184,7 @@ function Ee({
184
184
  )) })
185
185
  ] })
186
186
  ] }),
187
- /* @__PURE__ */ t("div", { className: "bu-pf__list", children: E && j.length > 0 ? j.map((e) => {
187
+ /* @__PURE__ */ t("div", { className: "bu-pf__list", children: D && j.length > 0 ? j.map((e) => {
188
188
  const n = a.includes(e.value);
189
189
  return /* @__PURE__ */ s(
190
190
  "div",
@@ -206,8 +206,8 @@ function Ee({
206
206
  e.value
207
207
  );
208
208
  }) : /* @__PURE__ */ s("div", { className: "bu-pf__no-match", children: [
209
- /* @__PURE__ */ t("img", { className: "bu-pf__no-match-img", src: fe, alt: E ? P : M }),
210
- /* @__PURE__ */ t("p", { className: "bu-pf__no-match-text", children: E ? P : M }),
209
+ /* @__PURE__ */ t("img", { className: "bu-pf__no-match-img", src: fe, alt: D ? P : M }),
210
+ /* @__PURE__ */ t("p", { className: "bu-pf__no-match-text", children: D ? P : M }),
211
211
  /* @__PURE__ */ s("p", { className: "bu-pf__no-match-hint", children: [
212
212
  re,
213
213
  /* @__PURE__ */ t("button", { type: "button", className: "bu-pf__manage-btn", onClick: J, children: ne }),
@@ -222,5 +222,5 @@ function Ee({
222
222
  ] });
223
223
  }
224
224
  export {
225
- Ee as default
225
+ De as default
226
226
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),At=require("react-dom"),Ht=require("../Pagination/Pagination.js"),Ee=require("../Icon/Icon.js");;/* empty css */const Ut=require("../Tooltip/ContentTooltip.js"),Wt=require("../Tooltip/TooltipWrapper.js"),$t=require("../CheckBox/index.js"),Jt=require("../Dropdown/BDropdown.js"),Qt=require("../OverlayScrollbar/BOverlayScrollbar.js"),Zt=require("../SkuInputCard/spin_loading_red.gif.js"),Xt=require("../ProductField/no_data_light.svg.js"),Yt=require("./Column.js"),Ct=require("./ColumnGroup.js"),x=require("./utils/sortFilter.js"),De=require("./utils/columns.js");;/* empty css */const es=300;function T(..._){return _.filter(Boolean).join(" ")}function ts(_,h){return h===void 0?void 0:(Array.isArray(h)?h:[h]).reduce((F,d)=>{if(!(F==null||typeof F!="object"))return F[d]},_)}function w(_,h,j){if(typeof j=="function")return j(_,h);if(j){const F=_[String(j)];if(typeof F=="string"||typeof F=="number")return F}return h}function ss(_,h){return Math.max(1,Math.ceil(_/h))}function rs(_){return!!(_&&typeof _=="object"&&!b.isValidElement(_)&&"props"in _)}function as(_,h){return(typeof h.text=="string"||typeof h.text=="number"?String(h.text):String(h.value)).toLocaleLowerCase().includes(_.toLocaleLowerCase())}function it({checked:_,disabled:h,label:j,name:F,onChange:d,type:G="checkbox"}){return G==="checkbox"?i.jsx($t.BCheckBox,{"aria-label":j,checked:_,className:"bj-table__selection-checkbox",disabled:h,name:F,onChange:d,skipGroup:!0}):i.jsxs("label",{className:T("bj-table__selection-control",_&&"bj-table__selection-control--checked",h&&"bj-table__selection-control--disabled"),children:[i.jsx("input",{"aria-label":j,checked:_,className:"bj-table__selection-input",disabled:h,name:F,onChange:d,type:G}),i.jsx("span",{"aria-hidden":"true",className:"bj-table__selection-box",children:_&&i.jsx(Ee,{className:"bj-table__selection-check-icon",type:"icon-a-dagouxi"})})]})}function is({columns:_,dataSource:h=[],rowKey:j,preserveSelectedRowKeys:F=!1,rowSelection:d,pagination:G=!1,loading:fe=!1,bordered:nt=!0,size:lt="middle",showHeader:dt=!0,emptyText:be,emptyImage:ue=Xt,emptyHeight:ct,t:Q=re=>re,className:ft,style:bt,rowClassName:oe,sortDirections:ut=["ascend","descend",null],onChange:he,children:ke,title:Se,footer:Oe,summary:Me,tableLayout:qe,components:R,onRow:_e,onHeaderRow:je,id:ot,scroll:u,locale:Z,groupCollapse:o}){var tt,st,rt;const re=b.useRef(null),Be=b.useRef(null),ae=b.useMemo(()=>_??De.convertChildrenToColumns(ke),[ke,_]),X=b.useMemo(()=>De.flattenColumns(ae),[ae]),Te=b.useMemo(()=>De.buildHeaderRows(ae),[ae]),[ht,ze]=b.useState((d==null?void 0:d.defaultSelectedRowKeys)??[]),[ye,ie]=b.useState(G?G.defaultCurrent??1:1),[_t,jt]=b.useState(G?G.defaultPageSize??10:10),[yt,xt]=b.useState(()=>new Map(X.flatMap((e,t)=>e.defaultSortOrder?[[x.getColumnKey(e,t),e.defaultSortOrder]]:[]))),[gt,vt]=b.useState(()=>new Map(X.flatMap((e,t)=>e.defaultFilteredValue===void 0?[]:[[x.getColumnKey(e,t),e.defaultFilteredValue]]))),[mt,pt]=b.useState(o!=null&&o.defaultExpandedKeys?[...o.defaultExpandedKeys]:[]),[z,U]=b.useState(null),[Ie,Y]=b.useState(new Map),[Nt,ne]=b.useState(null),Rt=b.useRef(`btable-${Math.random().toString(36).slice(2,10)}`).current,[W,xe]=b.useState(null),[ge,Ve]=b.useState(null),[ve,we]=b.useState(""),[C,Ge]=b.useState(""),[Kt,me]=b.useState(),pe=b.useRef(0),Ne=b.useRef(!1),r=G||void 0,L=(r==null?void 0:r.pageSize)??_t,k=(d==null?void 0:d.selectedRowKeys)??ht,p=X,D=new Map(yt),S=new Map(gt);p.forEach((e,t)=>{if("children"in e)return;const s=x.getColumnKey(e,t);e.sortOrder!==void 0&&D.set(s,e.sortOrder),e.filteredValue!==void 0&&S.set(s,e.filteredValue)});const Le=b.useMemo(()=>x.filterRecords(h,p,S),[p,S,h]),O=b.useMemo(()=>x.sortRecords(Le,p,D),[p,Le,D]),Ae=(r==null?void 0:r.total)??O.length,He=ss(Ae,L),A=Math.min((r==null?void 0:r.current)??ye,He),$=(o==null?void 0:o.expandedKeys)??mt,ee=(e,t)=>o!=null&&o.isGroupRow?o.isGroupRow(e,t):!!e.isGroup,le=(e,t)=>o!=null&&o.groupKey?o.groupKey(e,t):e.groupId,Ue=(e,t)=>o!=null&&o.childrenKeys?o.childrenKeys(e,t):e.childrenIds??[],Ft=(e,t)=>{var f;const s=le(e,t),n=$.includes(s),c=n?$.filter(a=>a!==s):[...$,s];(o==null?void 0:o.expandedKeys)===void 0&&pt(c),(f=o==null?void 0:o.onExpandedKeysChange)==null||f.call(o,c,e,!n)};b.useEffect(()=>{A!==ye&&(r==null?void 0:r.current)===void 0&&ie(A)},[A,r==null?void 0:r.current,ye]),b.useEffect(()=>{if(!W||z===null){Ve(null);return}const e=()=>{const t=W.getBoundingClientRect();Ve({left:t.left,top:t.bottom+8})};return e(),document.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[W,z]),b.useEffect(()=>{if(z===null)return;const e=t=>{const s=t.target;W!=null&&W.contains(s)||s.closest(".bj-table__filter-dropdown")||(U(null),xe(null))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[W,z]),b.useEffect(()=>{const e=window.setTimeout(()=>Ge(ve.trim()),es);return()=>window.clearTimeout(e)},[ve]),b.useEffect(()=>{if(z===null)return;const e=X.find((s,n)=>x.getColumnKey(s,n)===z);if(!e||"children"in e||!e.filterRequest)return;const t=++pe.current;Promise.resolve().then(()=>e.filterRequest(C)).then(s=>{pe.current===t&&me(s)},()=>{pe.current===t&&me([])})},[C,X,z]);const H=b.useMemo(()=>{if(!r||r.serverPagination)return O.map((t,s)=>({record:t,index:s})).filter(({record:t,index:s})=>{if(!o||ee(t,s))return!0;const n=w(t,s,j);return O.some((c,f)=>ee(c,f)&&$.includes(le(c,f))&&Ue(c,f).includes(n))});const e=(A-1)*L;return O.slice(e,e+L).map((t,s)=>({record:t,index:e+s})).filter(({record:t,index:s})=>{if(!o||ee(t,s))return!0;const n=w(t,s,j);return O.some((c,f)=>ee(c,f)&&$.includes(le(c,f))&&Ue(c,f).includes(n))})},[A,$,o,L,r,O,j]),We=b.useMemo(()=>H.map(({record:e,index:t})=>w(e,t,j)),[j,H]),Dt=k.map(String).join("|"),Et=We.map(String).join("|");b.useEffect(()=>{var c;if(!d||F||k.length===0)return;const e=new Set(We),t=k.filter(f=>e.has(f));if(t.length===k.length)return;d.selectedRowKeys===void 0&&ze(t);const s=new Set(t),n=H.filter(({record:f,index:a})=>s.has(w(f,a,j))).map(({record:f})=>f);(c=d.onChange)==null||c.call(d,t,n,{type:"multiple"})},[F,d,j,Dt,Et,H]);const de=(e,t=D,s=S,n=A,c=L)=>{const f=Object.fromEntries(s),a=x.filterRecords(h,p,s),N=x.sortRecords(a,p,t);he==null||he({...r,current:n,pageSize:c,total:(r==null?void 0:r.total)??N.length},f,x.getSorterResult(p,t),{action:e,currentDataSource:N})},Pt=(e,t)=>{if(!e.sorter)return;const s=x.getColumnKey(e,t),n=x.getNextSortOrder(D.get(s)??null,e.sortDirections??ut),c=new Map;c.set(s,n),e.sortOrder===void 0&&xt(c),de("sort",c)},Re=(e,t,s)=>{const n=x.getColumnKey(e,t),c=new Map(S);c.set(n,s),e.filteredValue===void 0&&vt(c),U(null),(r==null?void 0:r.current)===void 0&&ie(1),de("filter",D,c,1)},kt=(e,t)=>{const s=x.getColumnKey(e,t),n=e.filterResetToDefaultFilteredValue?e.defaultFilteredValue??[]:[];Y(c=>new Map(c).set(s,n))},ce=(e,t,s)=>{var c,f,a,N;const n=x.getColumnKey(e,t);if(z===n){U(null),xe(null),(c=e.onFilterDropdownOpenChange)==null||c.call(e,!1),(f=e.onFilterDropdownVisibleChange)==null||f.call(e,!1);return}we(""),Ge(""),me(void 0),Y(g=>new Map(g).set(n,S.get(n)??[])),U(n),s&&xe(s),(a=e.onFilterDropdownOpenChange)==null||a.call(e,!0),(N=e.onFilterDropdownVisibleChange)==null||N.call(e,!0)},St=(e,t)=>{var K,q;const s=x.getColumnKey(e,t),n=`bj-table-badge-${Rt}-${String(s).replace(/[^a-zA-Z0-9_-]/g,"-")}`,c=D.get(s)??null,f=S.get(s)??[],a=Ie.get(s)??f,N=e.filterDropdownOpen??e.filterDropdownVisible??z===s,g=e.filtered||f.length>0,E=c==="ascend"?"icon-a-zhengxumian":c==="descend"?"icon-a-daoxumian":"icon-a-weipaixumian",y=x.renderColumnTitle(e.title,{sortOrder:c,sortColumn:c?e:void 0,sortColumns:c?[{column:e,order:c}]:[],filters:Object.fromEntries(S)}),J=typeof e.filterDropdown=="function"?e.filterDropdown({prefixCls:"bj-table",selectedKeys:a.filter(l=>typeof l!="boolean"),setSelectedKeys:l=>Y(m=>new Map(m).set(s,l)),confirm:l=>{Re(e,t,Ie.get(s)??a),(l==null?void 0:l.closeDropdown)===!1&&U(s)},clearFilters:l=>{const m=e.filterResetToDefaultFilteredValue?e.defaultFilteredValue??[]:[];Y(P=>new Map(P).set(s,m)),(l==null?void 0:l.confirm)===!0&&Re(e,t,m),((l==null?void 0:l.closeDropdown)===!1||(l==null?void 0:l.confirm)!==!0)&&U(s)},filters:e.filters,close:()=>U(null),visible:N}):e.filterDropdown,V=e.filterRequest?Kt??[]:e.filters??[],B=C&&!e.filterRequest?V.filter(l=>typeof e.filterSearch=="function"?e.filterSearch(C,l):as(C,l)):V,v=!!(e.filterSearch||e.filterRequest),M=i.jsxs("div",{className:T("bj-table__column-header",e.sorter&&"bj-table__column-header--sortable"),children:[e.badge!==void 0&&i.jsx("span",{"aria-label":"表头提示",className:"bj-table__column-badge-trigger",id:n,onBlur:()=>ne(null),onClick:l=>l.stopPropagation(),onFocus:()=>ne(s),onKeyDown:l=>l.stopPropagation(),onMouseEnter:()=>ne(s),onMouseLeave:()=>ne(null),role:"button",tabIndex:0,children:i.jsx("span",{"aria-hidden":"true",className:"bj-table__column-badge-shape"})}),i.jsxs("div",{className:"bj-table__column-title",children:[i.jsx("span",{className:"bj-table__column-title-content",children:y}),e.sorter&&i.jsx("span",{"aria-hidden":"true",className:"bj-table__column-sorter",children:i.jsx(Ee,{className:"bj-table__column-sorter-icon",type:E})})]}),(e.filters||e.filterDropdown)&&i.jsxs("div",{className:"bj-table__filter",children:[i.jsx("button",{"aria-expanded":N,"aria-label":"筛选",className:T("bj-table__filter-trigger",g&&"bj-table__filter-trigger--active"),onClick:l=>{l.stopPropagation(),ce(e,t)},type:"button",children:typeof e.filterIcon=="function"?e.filterIcon(g):e.filterIcon??i.jsx(Ee,{className:"bj-table__filter-icon",type:"icon-a-shaixuanxi"})}),N&&ge&&typeof document<"u"&&At.createPortal(i.jsx("div",{className:"bj-table__filter-dropdown",onClick:l=>l.stopPropagation(),role:"dialog",style:{left:ge.left,top:ge.top},children:J??i.jsx(Jt.BDropdown,{...e.filterDropdownProps,emptyText:(Z==null?void 0:Z.filterEmptyText)??Q("暂无结果"),multiple:e.filterMultiple!==!1,onChange:(l,m)=>{var P,at;Y(Lt=>new Map(Lt).set(s,l)),(at=(P=e.filterDropdownProps)==null?void 0:P.onChange)==null||at.call(P,l,m)},onConfirm:l=>{var m,P;Re(e,t,l),(P=(m=e.filterDropdownProps)==null?void 0:m.onConfirm)==null||P.call(m,l)},onReset:()=>{var l,m;kt(e,t),(m=(l=e.filterDropdownProps)==null?void 0:l.onReset)==null||m.call(l)},onSearch:l=>{var m,P;we(l),(P=(m=e.filterDropdownProps)==null?void 0:m.onSearch)==null||P.call(m,l)},options:B.map(l=>({label:l.text,description:l.description,value:l.value})),searchable:((K=e.filterDropdownProps)==null?void 0:K.searchable)??v,searchPlaceholder:((q=e.filterDropdownProps)==null?void 0:q.searchPlaceholder)??(e.filterRequest?Q("请输入搜索内容"):(Z==null?void 0:Z.filterSearchPlaceholder)??Q("搜索")),searchValue:ve,t:Q,value:a})}),document.body)]})]});return e.badge!==void 0?i.jsxs(Wt,{className:"bj-table__column-tooltip-wrapper",children:[i.jsx("div",{className:"bj-table__column-tooltip-trigger",children:M}),Nt===s&&i.jsx(Ut,{className:"bj-table__column-tooltip",content:e.badge,getAnchorElement:()=>document.getElementById(n),getPopupContainer:()=>document.body,placement:"top"})]}):M},$e=(e,t,s)=>{var f,a;t.selectedRowKeys===void 0&&ze(e);const n=new Set(e),c=h.filter((N,g)=>n.has(w(N,g,j)));(f=t.onChange)==null||f.call(t,e,c),s&&((a=t.onSelect)==null||a.call(t,s,n.has(w(s,h.indexOf(s),j)),c))},Ot=(e,t)=>{if(!d)return;const s=w(e,t,j),n=k.includes(s),c=d.type==="radio"?n?[]:[s]:n?k.filter(f=>f!==s):[...k,s];$e(c,d,e)},Je=H.filter(({record:e})=>{var t;return!((t=d==null?void 0:d.getCheckboxProps)!=null&&t.call(d,e).disabled)}),te=Je.map(({record:e,index:t})=>w(e,t,j)),Ke=te.length>0&&te.every(e=>k.includes(e)),Mt=()=>{var s;if(!d||d.type==="radio")return;const e=new Set(te),t=Ke?k.filter(n=>!e.has(n)):Array.from(new Set([...k,...te]));$e(t,d),new Set(t),(s=d.onSelectAll)==null||s.call(d,!Ke,Je.map(({record:n})=>n))},qt=e=>{var t;!r||e<1||e>He||e===A||(r.current===void 0&&ie(e),(t=r.onChange)==null||t.call(r,e,L),de("paginate",D,S,e))},Bt=e=>{var s,n;if(!r||e===L)return;const t=1;Ne.current=!0,r.pageSize===void 0&&jt(e),r.current===void 0&&ie(t),(s=r.onShowSizeChange)==null||s.call(r,t,e),(n=r.onChange)==null||n.call(r,t,e),de("paginate",D,S,t,e)},Qe=p.length+(d?1:0),se=(d==null?void 0:d.columnWidth)??48,Ze=e=>typeof e.width=="number"?e.width:0,Xe=(e,t)=>{const s=e.fixed===!0?"left":e.fixed;return s==="left"?{position:"sticky",left:p.slice(0,t).reduce((c,f)=>c+Ze(f),d&&typeof se=="number"?se:0),zIndex:2}:s==="right"?{position:"sticky",right:p.slice(t+1).reduce((c,f)=>c+Ze(f),0),zIndex:2}:{}},Tt=u!=null&&u.x?{width:u.x===!0?"max-content":u.x,minWidth:"100%",tableLayout:qe??"fixed"}:{tableLayout:qe},zt=(R==null?void 0:R.table)??"table",It=((tt=R==null?void 0:R.header)==null?void 0:tt.wrapper)??"thead",Vt=((st=R==null?void 0:R.header)==null?void 0:st.row)??"tr",Ye=((rt=R==null?void 0:R.header)==null?void 0:rt.cell)??"th",I=typeof(R==null?void 0:R.body)=="object"?R.body:void 0,wt=(I==null?void 0:I.wrapper)??"tbody",Ce=(I==null?void 0:I.row)??"tr",Fe=(I==null?void 0:I.cell)??"td",Gt=typeof be=="function"?be():be??Q("暂无数据"),et=typeof ue=="string"?i.jsx("img",{alt:"",className:"bj-table__empty-image",src:ue}):ue;return i.jsxs("div",{id:ot,ref:re,className:T("bj-table",nt&&"bj-table--bordered",`bj-table--${lt}`,fe&&"bj-table--loading",O.length===0&&"bj-table--empty",ft),style:bt,children:[Se&&i.jsx("div",{className:"bj-table__title",children:Se(O)}),i.jsxs("div",{className:"bj-table__viewport",children:[i.jsx("div",{className:T("bj-table__scroll",!!(u!=null&&u.x||u!=null&&u.y)&&"bj-overlay-scrollbar-hidden"),ref:Be,style:{maxHeight:u==null?void 0:u.y},children:i.jsxs(zt,{className:"bj-table__native-table",style:Tt,children:[p.some(e=>e.width)&&i.jsxs("colgroup",{children:[d&&i.jsx("col",{className:"bj-table__selection-col",style:{width:se}}),p.map((e,t)=>i.jsx("col",{style:{width:e.width}},e.key??t))]}),dt&&i.jsx(It,{className:"bj-table__header",children:Te.map((e,t)=>i.jsxs(Vt,{className:"bj-table__header-row",...je==null?void 0:je(p,t),children:[d&&t===0&&i.jsxs(Ye,{className:T("bj-table__header-cell","bj-table__selection-cell",!!(u!=null&&u.x)&&"bj-table__selection-cell--fixed"),rowSpan:Te.length,scope:"col",style:{width:se},children:[d.type!=="radio"&&i.jsx(it,{checked:Ke,disabled:te.length===0,onChange:Mt,label:"选择当前页所有行"}),d.columnTitle]}),e.map(({column:s,colSpan:n,rowSpan:c},f)=>{var V,B;const a=s,N=p.indexOf(a),g=N>=0?N:f,E=!("children"in s)&&!!(a.filters||a.filterDropdown),y=!("children"in s)&&!!a.sorter,J=()=>{E?ce(a,g):y&&Pt(a,g)};return b.createElement(Ye,{...(V=a.onHeaderCell)==null?void 0:V.call(a,s,f),"aria-label":typeof a.title=="string"?a.title:void 0,"aria-sort":y?D.get(x.getColumnKey(a,g))==="ascend"?"ascending":D.get(x.getColumnKey(a,g))==="descend"?"descending":"none":void 0,className:T("bj-table__header-cell",((B=p[g+1])==null?void 0:B.fixed)==="right"&&"bj-table__cell--before-fixed-right",a.fixed&&"bj-table__cell--fixed",(a.fixed==="left"||a.fixed===!0)&&"bj-table__cell--fixed-left",a.fixed==="right"&&"bj-table__cell--fixed-right",a.sorter&&"bj-table__header-cell--sortable",E&&"bj-table__header-cell--filterable",D.get(x.getColumnKey(a,g))&&"bj-table__header-cell--sorted",a.className),colSpan:n,key:a.key??String(a.dataIndex??f),onClick:v=>{var M,K,q;(q=(K=(M=a.onHeaderCell)==null?void 0:M.call(a,s,f))==null?void 0:K.onClick)==null||q.call(K,v),!v.target.closest(".bj-table__filter-dropdown")&&(E?ce(a,g,v.currentTarget):J())},onKeyDown:v=>{var M,K,q;(q=(K=(M=a.onHeaderCell)==null?void 0:M.call(a,s,f))==null?void 0:K.onKeyDown)==null||q.call(K,v),!v.target.closest(".bj-table__filter-dropdown")&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),E?ce(a,g,v.currentTarget):J())},rowSpan:c,scope:"col",style:{textAlign:a.align,...Xe(a,g)},tabIndex:E||y?0:void 0},"children"in s?x.renderColumnTitle(s.title,{filters:Object.fromEntries(S)}):St(a,g))})]},t))}),i.jsx(wt,{className:"bj-table__body",children:H.length>0?H.map(({record:e,index:t})=>{var N;const s=w(e,t,j),n=ee(e,t),c=((N=d==null?void 0:d.getCheckboxProps)==null?void 0:N.call(d,e).disabled)??!1,f=k.includes(s),a=typeof oe=="function"?oe(e,t,0):oe;return b.createElement(Ce,{..._e==null?void 0:_e(e,t),className:T("bj-table__row",n&&"bj-table__row--group",f&&"bj-table__row--selected",a),key:s},d&&!n&&i.jsx(Fe,{className:T("bj-table__cell","bj-table__selection-cell",!!(u!=null&&u.x)&&"bj-table__selection-cell--fixed"),style:{width:se},children:i.jsx(it,{checked:f,disabled:c,label:`选择第 ${t+1} 行`,name:d.type==="radio"?"bj-table-row-selection":void 0,onChange:()=>Ot(e,t),type:d.type??"checkbox"})}),p.map((g,E)=>{var K,q,l;if(n&&E>0)return null;const y=g,J=ts(e,y.dataIndex),V=y.render?y.render(J,e,t):J,B=rs(V)?V:void 0,v={...(K=y.onCell)==null?void 0:K.call(y,e,t),...B==null?void 0:B.props},M=B?B.children:V;return v.colSpan===0||v.rowSpan===0?null:b.createElement(Fe,{...v,className:T("bj-table__cell",((q=p[E+1])==null?void 0:q.fixed)==="right"&&"bj-table__cell--before-fixed-right",n&&"bj-table__cell--group",y.fixed&&"bj-table__cell--fixed",(y.fixed==="left"||y.fixed===!0)&&"bj-table__cell--fixed-left",y.fixed==="right"&&"bj-table__cell--fixed-right",y.ellipsis&&"bj-table__cell--ellipsis",y.className,v.className),key:y.key??String(y.dataIndex??E),colSpan:n?Qe:v.colSpan,style:{textAlign:y.align,...Xe(y,E),...v.style}},n?((l=o==null?void 0:o.render)==null?void 0:l.call(o,{record:e,expanded:$.includes(le(e,t)),onToggle:()=>Ft(e,t)}))??M??"":i.jsx("div",{className:"bj-table__cell-content",children:M??""}))}))}):i.jsx(Ce,{className:"bj-table__empty-row",children:i.jsx(Fe,{className:"bj-table__empty-cell",colSpan:Math.max(Qe,1),style:{height:ct}})})}),Me&&i.jsx("tfoot",{className:"bj-table__summary",children:Me(O)})]})}),H.length===0&&i.jsx("div",{className:"bj-table__empty-overlay",children:i.jsxs("div",{className:"bj-table__empty-content",children:[et&&i.jsx("div",{className:"bj-table__empty-image-wrap",children:et}),i.jsx("div",{className:"bj-table__empty-text",children:Gt})]})})]}),((u==null?void 0:u.x)||(u==null?void 0:u.y))&&i.jsx(Qt,{containerRef:re,direction:u!=null&&u.x&&(u!=null&&u.y)?"both":u!=null&&u.x?"horizontal":"vertical",gap:2,horizontalInsetEnd:0,horizontalInsetStart:0,size:4,targetRef:Be}),Oe&&i.jsx("div",{className:"bj-table__footer",children:Oe(O)}),fe&&i.jsxs("div",{"aria-live":"polite","aria-busy":"true",className:"bj-table__loading",role:"status",children:[i.jsx("img",{alt:"",className:"bj-table__loading-indicator",src:Zt}),i.jsx("span",{className:"bj-table__loading-text",children:"加载中..."})]}),r&&O.length>0&&i.jsx("div",{className:"bj-table__pagination",children:i.jsx(Ht,{align:"end",disabled:fe||r.disabled,current:A,defaultCurrent:r.defaultCurrent,defaultPageSize:r.defaultPageSize,dropdownClassName:r.dropdownClassName,hideOnSinglePage:r.hideOnSinglePage,onChange:e=>{if(Ne.current){Ne.current=!1;return}qt(e)},onShowSizeChange:(e,t)=>Bt(t),pageSize:L,pageSizeOptions:r.pageSizeOptions,popupPlacement:r.popupPlacement,resolvePopupPlacement:r.resolvePopupPlacement,showQuickJumper:r.showQuickJumper,showSizeChanger:r.showSizeChanger,showTotal:r.showTotal,simple:r.simple,size:r.size,t:r.t??Q,total:Ae})})]})}const Pe=is;Pe.Column=Yt;Pe.ColumnGroup=Ct;exports.BTable=Pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),At=require("react-dom"),Ht=require("../Pagination/Pagination.js"),Ee=require("../Icon/Icon.js");;/* empty css */const Ut=require("../Tooltip/ContentTooltip.js"),Wt=require("../Tooltip/TooltipWrapper.js"),$t=require("../CheckBox/index.js"),Jt=require("../Dropdown/BDropdown.js"),Qt=require("../OverlayScrollbar/BOverlayScrollbar.js"),Zt=require("../SkuInputCard/spin_loading_red.gif.js"),Xt=require("../ProductField/no_data_light.svg.js"),Yt=require("./Column.js"),Ct=require("./ColumnGroup.js"),x=require("./utils/sortFilter.js"),De=require("./utils/columns.js");;/* empty css */const es=300;function T(..._){return _.filter(Boolean).join(" ")}function ts(_,h){return h===void 0?void 0:(Array.isArray(h)?h:[h]).reduce((F,d)=>{if(!(F==null||typeof F!="object"))return F[d]},_)}function w(_,h,j){if(typeof j=="function")return j(_,h);if(j){const F=_[String(j)];if(typeof F=="string"||typeof F=="number")return F}return h}function ss(_,h){return Math.max(1,Math.ceil(_/h))}function rs(_){return!!(_&&typeof _=="object"&&!b.isValidElement(_)&&"props"in _)}function as(_,h){return(typeof h.text=="string"||typeof h.text=="number"?String(h.text):String(h.value)).toLocaleLowerCase().includes(_.toLocaleLowerCase())}function it({checked:_,disabled:h,label:j,name:F,onChange:d,type:G="checkbox"}){return G==="checkbox"?i.jsx($t.BCheckBox,{"aria-label":j,checked:_,className:"bj-table__selection-checkbox",disabled:h,name:F,onChange:d,skipGroup:!0}):i.jsxs("label",{className:T("bj-table__selection-control",_&&"bj-table__selection-control--checked",h&&"bj-table__selection-control--disabled"),children:[i.jsx("input",{"aria-label":j,checked:_,className:"bj-table__selection-input",disabled:h,name:F,onChange:d,type:G}),i.jsx("span",{"aria-hidden":"true",className:"bj-table__selection-box",children:_&&i.jsx(Ee,{className:"bj-table__selection-check-icon",type:"icon-a-dagouxi"})})]})}function is({columns:_,dataSource:h=[],rowKey:j,preserveSelectedRowKeys:F=!1,rowSelection:d,pagination:G=!1,loading:fe=!1,bordered:nt=!0,size:lt="middle",showHeader:dt=!0,emptyText:be,emptyImage:ue=Xt,emptyHeight:ct,t:Q=re=>re,className:ft,style:bt,rowClassName:oe,sortDirections:ut=["ascend","descend",null],onChange:he,children:ke,title:Se,footer:Oe,summary:Me,tableLayout:qe,components:R,onRow:_e,onHeaderRow:je,id:ot,scroll:u,locale:Z,groupCollapse:o}){var tt,st,rt;const re=b.useRef(null),Be=b.useRef(null),ae=b.useMemo(()=>_??De.convertChildrenToColumns(ke),[ke,_]),X=b.useMemo(()=>De.flattenColumns(ae),[ae]),Te=b.useMemo(()=>De.buildHeaderRows(ae),[ae]),[ht,ze]=b.useState((d==null?void 0:d.defaultSelectedRowKeys)??[]),[ye,ie]=b.useState(G?G.defaultCurrent??1:1),[_t,jt]=b.useState(G?G.defaultPageSize??10:10),[yt,xt]=b.useState(()=>new Map(X.flatMap((e,t)=>e.defaultSortOrder?[[x.getColumnKey(e,t),e.defaultSortOrder]]:[]))),[gt,vt]=b.useState(()=>new Map(X.flatMap((e,t)=>e.defaultFilteredValue===void 0?[]:[[x.getColumnKey(e,t),e.defaultFilteredValue]]))),[mt,pt]=b.useState(o!=null&&o.defaultExpandedKeys?[...o.defaultExpandedKeys]:[]),[z,U]=b.useState(null),[Ie,Y]=b.useState(new Map),[Nt,ne]=b.useState(null),Rt=b.useRef(`btable-${Math.random().toString(36).slice(2,10)}`).current,[W,xe]=b.useState(null),[ge,Ve]=b.useState(null),[ve,we]=b.useState(""),[C,Ge]=b.useState(""),[Kt,me]=b.useState(),pe=b.useRef(0),Ne=b.useRef(!1),r=G||void 0,L=(r==null?void 0:r.pageSize)??_t,k=(d==null?void 0:d.selectedRowKeys)??ht,p=X,D=new Map(yt),S=new Map(gt);p.forEach((e,t)=>{if("children"in e)return;const s=x.getColumnKey(e,t);e.sortOrder!==void 0&&D.set(s,e.sortOrder),e.filteredValue!==void 0&&S.set(s,e.filteredValue)});const Le=b.useMemo(()=>x.filterRecords(h,p,S),[p,S,h]),O=b.useMemo(()=>x.sortRecords(Le,p,D),[p,Le,D]),Ae=(r==null?void 0:r.total)??O.length,He=ss(Ae,L),A=Math.min((r==null?void 0:r.current)??ye,He),$=(o==null?void 0:o.expandedKeys)??mt,ee=(e,t)=>o!=null&&o.isGroupRow?o.isGroupRow(e,t):!!e.isGroup,le=(e,t)=>o!=null&&o.groupKey?o.groupKey(e,t):e.groupId,Ue=(e,t)=>o!=null&&o.childrenKeys?o.childrenKeys(e,t):e.childrenIds??[],Ft=(e,t)=>{var f;const s=le(e,t),n=$.includes(s),c=n?$.filter(a=>a!==s):[...$,s];(o==null?void 0:o.expandedKeys)===void 0&&pt(c),(f=o==null?void 0:o.onExpandedKeysChange)==null||f.call(o,c,e,!n)};b.useEffect(()=>{A!==ye&&(r==null?void 0:r.current)===void 0&&ie(A)},[A,r==null?void 0:r.current,ye]),b.useEffect(()=>{if(!W||z===null){Ve(null);return}const e=()=>{const t=W.getBoundingClientRect();Ve({left:t.left,top:t.bottom+4})};return e(),document.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{document.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[W,z]),b.useEffect(()=>{if(z===null)return;const e=t=>{const s=t.target;W!=null&&W.contains(s)||s.closest(".bj-table__filter-dropdown")||(U(null),xe(null))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[W,z]),b.useEffect(()=>{const e=window.setTimeout(()=>Ge(ve.trim()),es);return()=>window.clearTimeout(e)},[ve]),b.useEffect(()=>{if(z===null)return;const e=X.find((s,n)=>x.getColumnKey(s,n)===z);if(!e||"children"in e||!e.filterRequest)return;const t=++pe.current;Promise.resolve().then(()=>e.filterRequest(C)).then(s=>{pe.current===t&&me(s)},()=>{pe.current===t&&me([])})},[C,X,z]);const H=b.useMemo(()=>{if(!r||r.serverPagination)return O.map((t,s)=>({record:t,index:s})).filter(({record:t,index:s})=>{if(!o||ee(t,s))return!0;const n=w(t,s,j);return O.some((c,f)=>ee(c,f)&&$.includes(le(c,f))&&Ue(c,f).includes(n))});const e=(A-1)*L;return O.slice(e,e+L).map((t,s)=>({record:t,index:e+s})).filter(({record:t,index:s})=>{if(!o||ee(t,s))return!0;const n=w(t,s,j);return O.some((c,f)=>ee(c,f)&&$.includes(le(c,f))&&Ue(c,f).includes(n))})},[A,$,o,L,r,O,j]),We=b.useMemo(()=>H.map(({record:e,index:t})=>w(e,t,j)),[j,H]),Dt=k.map(String).join("|"),Et=We.map(String).join("|");b.useEffect(()=>{var c;if(!d||F||k.length===0)return;const e=new Set(We),t=k.filter(f=>e.has(f));if(t.length===k.length)return;d.selectedRowKeys===void 0&&ze(t);const s=new Set(t),n=H.filter(({record:f,index:a})=>s.has(w(f,a,j))).map(({record:f})=>f);(c=d.onChange)==null||c.call(d,t,n,{type:"multiple"})},[F,d,j,Dt,Et,H]);const de=(e,t=D,s=S,n=A,c=L)=>{const f=Object.fromEntries(s),a=x.filterRecords(h,p,s),N=x.sortRecords(a,p,t);he==null||he({...r,current:n,pageSize:c,total:(r==null?void 0:r.total)??N.length},f,x.getSorterResult(p,t),{action:e,currentDataSource:N})},Pt=(e,t)=>{if(!e.sorter)return;const s=x.getColumnKey(e,t),n=x.getNextSortOrder(D.get(s)??null,e.sortDirections??ut),c=new Map;c.set(s,n),e.sortOrder===void 0&&xt(c),de("sort",c)},Re=(e,t,s)=>{const n=x.getColumnKey(e,t),c=new Map(S);c.set(n,s),e.filteredValue===void 0&&vt(c),U(null),(r==null?void 0:r.current)===void 0&&ie(1),de("filter",D,c,1)},kt=(e,t)=>{const s=x.getColumnKey(e,t),n=e.filterResetToDefaultFilteredValue?e.defaultFilteredValue??[]:[];Y(c=>new Map(c).set(s,n))},ce=(e,t,s)=>{var c,f,a,N;const n=x.getColumnKey(e,t);if(z===n){U(null),xe(null),(c=e.onFilterDropdownOpenChange)==null||c.call(e,!1),(f=e.onFilterDropdownVisibleChange)==null||f.call(e,!1);return}we(""),Ge(""),me(void 0),Y(g=>new Map(g).set(n,S.get(n)??[])),U(n),s&&xe(s),(a=e.onFilterDropdownOpenChange)==null||a.call(e,!0),(N=e.onFilterDropdownVisibleChange)==null||N.call(e,!0)},St=(e,t)=>{var K,q;const s=x.getColumnKey(e,t),n=`bj-table-badge-${Rt}-${String(s).replace(/[^a-zA-Z0-9_-]/g,"-")}`,c=D.get(s)??null,f=S.get(s)??[],a=Ie.get(s)??f,N=e.filterDropdownOpen??e.filterDropdownVisible??z===s,g=e.filtered||f.length>0,E=c==="ascend"?"icon-a-zhengxumian":c==="descend"?"icon-a-daoxumian":"icon-a-weipaixumian",y=x.renderColumnTitle(e.title,{sortOrder:c,sortColumn:c?e:void 0,sortColumns:c?[{column:e,order:c}]:[],filters:Object.fromEntries(S)}),J=typeof e.filterDropdown=="function"?e.filterDropdown({prefixCls:"bj-table",selectedKeys:a.filter(l=>typeof l!="boolean"),setSelectedKeys:l=>Y(m=>new Map(m).set(s,l)),confirm:l=>{Re(e,t,Ie.get(s)??a),(l==null?void 0:l.closeDropdown)===!1&&U(s)},clearFilters:l=>{const m=e.filterResetToDefaultFilteredValue?e.defaultFilteredValue??[]:[];Y(P=>new Map(P).set(s,m)),(l==null?void 0:l.confirm)===!0&&Re(e,t,m),((l==null?void 0:l.closeDropdown)===!1||(l==null?void 0:l.confirm)!==!0)&&U(s)},filters:e.filters,close:()=>U(null),visible:N}):e.filterDropdown,V=e.filterRequest?Kt??[]:e.filters??[],B=C&&!e.filterRequest?V.filter(l=>typeof e.filterSearch=="function"?e.filterSearch(C,l):as(C,l)):V,v=!!(e.filterSearch||e.filterRequest),M=i.jsxs("div",{className:T("bj-table__column-header",e.sorter&&"bj-table__column-header--sortable"),children:[e.badge!==void 0&&i.jsx("span",{"aria-label":"表头提示",className:"bj-table__column-badge-trigger",id:n,onBlur:()=>ne(null),onClick:l=>l.stopPropagation(),onFocus:()=>ne(s),onKeyDown:l=>l.stopPropagation(),onMouseEnter:()=>ne(s),onMouseLeave:()=>ne(null),role:"button",tabIndex:0,children:i.jsx("span",{"aria-hidden":"true",className:"bj-table__column-badge-shape"})}),i.jsxs("div",{className:"bj-table__column-title",children:[i.jsx("span",{className:"bj-table__column-title-content",children:y}),e.sorter&&i.jsx("span",{"aria-hidden":"true",className:"bj-table__column-sorter",children:i.jsx(Ee,{className:"bj-table__column-sorter-icon",type:E})})]}),(e.filters||e.filterDropdown)&&i.jsxs("div",{className:"bj-table__filter",children:[i.jsx("button",{"aria-expanded":N,"aria-label":"筛选",className:T("bj-table__filter-trigger",g&&"bj-table__filter-trigger--active"),onClick:l=>{l.stopPropagation(),ce(e,t)},type:"button",children:typeof e.filterIcon=="function"?e.filterIcon(g):e.filterIcon??i.jsx(Ee,{className:"bj-table__filter-icon",type:"icon-a-shaixuanxi"})}),N&&ge&&typeof document<"u"&&At.createPortal(i.jsx("div",{className:"bj-table__filter-dropdown",onClick:l=>l.stopPropagation(),role:"dialog",style:{left:ge.left,top:ge.top},children:J??i.jsx(Jt.BDropdown,{...e.filterDropdownProps,emptyText:(Z==null?void 0:Z.filterEmptyText)??Q("暂无结果"),multiple:e.filterMultiple!==!1,onChange:(l,m)=>{var P,at;Y(Lt=>new Map(Lt).set(s,l)),(at=(P=e.filterDropdownProps)==null?void 0:P.onChange)==null||at.call(P,l,m)},onConfirm:l=>{var m,P;Re(e,t,l),(P=(m=e.filterDropdownProps)==null?void 0:m.onConfirm)==null||P.call(m,l)},onReset:()=>{var l,m;kt(e,t),(m=(l=e.filterDropdownProps)==null?void 0:l.onReset)==null||m.call(l)},onSearch:l=>{var m,P;we(l),(P=(m=e.filterDropdownProps)==null?void 0:m.onSearch)==null||P.call(m,l)},options:B.map(l=>({label:l.text,description:l.description,value:l.value})),searchable:((K=e.filterDropdownProps)==null?void 0:K.searchable)??v,searchPlaceholder:((q=e.filterDropdownProps)==null?void 0:q.searchPlaceholder)??(e.filterRequest?Q("请输入搜索内容"):(Z==null?void 0:Z.filterSearchPlaceholder)??Q("搜索")),searchValue:ve,t:Q,value:a})}),document.body)]})]});return e.badge!==void 0?i.jsxs(Wt,{className:"bj-table__column-tooltip-wrapper",children:[i.jsx("div",{className:"bj-table__column-tooltip-trigger",children:M}),Nt===s&&i.jsx(Ut,{className:"bj-table__column-tooltip",content:e.badge,getAnchorElement:()=>document.getElementById(n),getPopupContainer:()=>document.body,placement:"top"})]}):M},$e=(e,t,s)=>{var f,a;t.selectedRowKeys===void 0&&ze(e);const n=new Set(e),c=h.filter((N,g)=>n.has(w(N,g,j)));(f=t.onChange)==null||f.call(t,e,c),s&&((a=t.onSelect)==null||a.call(t,s,n.has(w(s,h.indexOf(s),j)),c))},Ot=(e,t)=>{if(!d)return;const s=w(e,t,j),n=k.includes(s),c=d.type==="radio"?n?[]:[s]:n?k.filter(f=>f!==s):[...k,s];$e(c,d,e)},Je=H.filter(({record:e})=>{var t;return!((t=d==null?void 0:d.getCheckboxProps)!=null&&t.call(d,e).disabled)}),te=Je.map(({record:e,index:t})=>w(e,t,j)),Ke=te.length>0&&te.every(e=>k.includes(e)),Mt=()=>{var s;if(!d||d.type==="radio")return;const e=new Set(te),t=Ke?k.filter(n=>!e.has(n)):Array.from(new Set([...k,...te]));$e(t,d),new Set(t),(s=d.onSelectAll)==null||s.call(d,!Ke,Je.map(({record:n})=>n))},qt=e=>{var t;!r||e<1||e>He||e===A||(r.current===void 0&&ie(e),(t=r.onChange)==null||t.call(r,e,L),de("paginate",D,S,e))},Bt=e=>{var s,n;if(!r||e===L)return;const t=1;Ne.current=!0,r.pageSize===void 0&&jt(e),r.current===void 0&&ie(t),(s=r.onShowSizeChange)==null||s.call(r,t,e),(n=r.onChange)==null||n.call(r,t,e),de("paginate",D,S,t,e)},Qe=p.length+(d?1:0),se=(d==null?void 0:d.columnWidth)??48,Ze=e=>typeof e.width=="number"?e.width:0,Xe=(e,t)=>{const s=e.fixed===!0?"left":e.fixed;return s==="left"?{position:"sticky",left:p.slice(0,t).reduce((c,f)=>c+Ze(f),d&&typeof se=="number"?se:0),zIndex:2}:s==="right"?{position:"sticky",right:p.slice(t+1).reduce((c,f)=>c+Ze(f),0),zIndex:2}:{}},Tt=u!=null&&u.x?{width:u.x===!0?"max-content":u.x,minWidth:"100%",tableLayout:qe??"fixed"}:{tableLayout:qe},zt=(R==null?void 0:R.table)??"table",It=((tt=R==null?void 0:R.header)==null?void 0:tt.wrapper)??"thead",Vt=((st=R==null?void 0:R.header)==null?void 0:st.row)??"tr",Ye=((rt=R==null?void 0:R.header)==null?void 0:rt.cell)??"th",I=typeof(R==null?void 0:R.body)=="object"?R.body:void 0,wt=(I==null?void 0:I.wrapper)??"tbody",Ce=(I==null?void 0:I.row)??"tr",Fe=(I==null?void 0:I.cell)??"td",Gt=typeof be=="function"?be():be??Q("暂无数据"),et=typeof ue=="string"?i.jsx("img",{alt:"",className:"bj-table__empty-image",src:ue}):ue;return i.jsxs("div",{id:ot,ref:re,className:T("bj-table",nt&&"bj-table--bordered",`bj-table--${lt}`,fe&&"bj-table--loading",O.length===0&&"bj-table--empty",ft),style:bt,children:[Se&&i.jsx("div",{className:"bj-table__title",children:Se(O)}),i.jsxs("div",{className:"bj-table__viewport",children:[i.jsx("div",{className:T("bj-table__scroll",!!(u!=null&&u.x||u!=null&&u.y)&&"bj-overlay-scrollbar-hidden"),ref:Be,style:{maxHeight:u==null?void 0:u.y},children:i.jsxs(zt,{className:"bj-table__native-table",style:Tt,children:[p.some(e=>e.width)&&i.jsxs("colgroup",{children:[d&&i.jsx("col",{className:"bj-table__selection-col",style:{width:se}}),p.map((e,t)=>i.jsx("col",{style:{width:e.width}},e.key??t))]}),dt&&i.jsx(It,{className:"bj-table__header",children:Te.map((e,t)=>i.jsxs(Vt,{className:"bj-table__header-row",...je==null?void 0:je(p,t),children:[d&&t===0&&i.jsxs(Ye,{className:T("bj-table__header-cell","bj-table__selection-cell",!!(u!=null&&u.x)&&"bj-table__selection-cell--fixed"),rowSpan:Te.length,scope:"col",style:{width:se},children:[d.type!=="radio"&&i.jsx(it,{checked:Ke,disabled:te.length===0,onChange:Mt,label:"选择当前页所有行"}),d.columnTitle]}),e.map(({column:s,colSpan:n,rowSpan:c},f)=>{var V,B;const a=s,N=p.indexOf(a),g=N>=0?N:f,E=!("children"in s)&&!!(a.filters||a.filterDropdown),y=!("children"in s)&&!!a.sorter,J=()=>{E?ce(a,g):y&&Pt(a,g)};return b.createElement(Ye,{...(V=a.onHeaderCell)==null?void 0:V.call(a,s,f),"aria-label":typeof a.title=="string"?a.title:void 0,"aria-sort":y?D.get(x.getColumnKey(a,g))==="ascend"?"ascending":D.get(x.getColumnKey(a,g))==="descend"?"descending":"none":void 0,className:T("bj-table__header-cell",((B=p[g+1])==null?void 0:B.fixed)==="right"&&"bj-table__cell--before-fixed-right",a.fixed&&"bj-table__cell--fixed",(a.fixed==="left"||a.fixed===!0)&&"bj-table__cell--fixed-left",a.fixed==="right"&&"bj-table__cell--fixed-right",a.sorter&&"bj-table__header-cell--sortable",E&&"bj-table__header-cell--filterable",D.get(x.getColumnKey(a,g))&&"bj-table__header-cell--sorted",a.className),colSpan:n,key:a.key??String(a.dataIndex??f),onClick:v=>{var M,K,q;(q=(K=(M=a.onHeaderCell)==null?void 0:M.call(a,s,f))==null?void 0:K.onClick)==null||q.call(K,v),!v.target.closest(".bj-table__filter-dropdown")&&(E?ce(a,g,v.currentTarget):J())},onKeyDown:v=>{var M,K,q;(q=(K=(M=a.onHeaderCell)==null?void 0:M.call(a,s,f))==null?void 0:K.onKeyDown)==null||q.call(K,v),!v.target.closest(".bj-table__filter-dropdown")&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),E?ce(a,g,v.currentTarget):J())},rowSpan:c,scope:"col",style:{textAlign:a.align,...Xe(a,g)},tabIndex:E||y?0:void 0},"children"in s?x.renderColumnTitle(s.title,{filters:Object.fromEntries(S)}):St(a,g))})]},t))}),i.jsx(wt,{className:"bj-table__body",children:H.length>0?H.map(({record:e,index:t})=>{var N;const s=w(e,t,j),n=ee(e,t),c=((N=d==null?void 0:d.getCheckboxProps)==null?void 0:N.call(d,e).disabled)??!1,f=k.includes(s),a=typeof oe=="function"?oe(e,t,0):oe;return b.createElement(Ce,{..._e==null?void 0:_e(e,t),className:T("bj-table__row",n&&"bj-table__row--group",f&&"bj-table__row--selected",a),key:s},d&&!n&&i.jsx(Fe,{className:T("bj-table__cell","bj-table__selection-cell",!!(u!=null&&u.x)&&"bj-table__selection-cell--fixed"),style:{width:se},children:i.jsx(it,{checked:f,disabled:c,label:`选择第 ${t+1} 行`,name:d.type==="radio"?"bj-table-row-selection":void 0,onChange:()=>Ot(e,t),type:d.type??"checkbox"})}),p.map((g,E)=>{var K,q,l;if(n&&E>0)return null;const y=g,J=ts(e,y.dataIndex),V=y.render?y.render(J,e,t):J,B=rs(V)?V:void 0,v={...(K=y.onCell)==null?void 0:K.call(y,e,t),...B==null?void 0:B.props},M=B?B.children:V;return v.colSpan===0||v.rowSpan===0?null:b.createElement(Fe,{...v,className:T("bj-table__cell",((q=p[E+1])==null?void 0:q.fixed)==="right"&&"bj-table__cell--before-fixed-right",n&&"bj-table__cell--group",y.fixed&&"bj-table__cell--fixed",(y.fixed==="left"||y.fixed===!0)&&"bj-table__cell--fixed-left",y.fixed==="right"&&"bj-table__cell--fixed-right",y.ellipsis&&"bj-table__cell--ellipsis",y.className,v.className),key:y.key??String(y.dataIndex??E),colSpan:n?Qe:v.colSpan,style:{textAlign:y.align,...Xe(y,E),...v.style}},n?((l=o==null?void 0:o.render)==null?void 0:l.call(o,{record:e,expanded:$.includes(le(e,t)),onToggle:()=>Ft(e,t)}))??M??"":i.jsx("div",{className:"bj-table__cell-content",children:M??""}))}))}):i.jsx(Ce,{className:"bj-table__empty-row",children:i.jsx(Fe,{className:"bj-table__empty-cell",colSpan:Math.max(Qe,1),style:{height:ct}})})}),Me&&i.jsx("tfoot",{className:"bj-table__summary",children:Me(O)})]})}),H.length===0&&i.jsx("div",{className:"bj-table__empty-overlay",children:i.jsxs("div",{className:"bj-table__empty-content",children:[et&&i.jsx("div",{className:"bj-table__empty-image-wrap",children:et}),i.jsx("div",{className:"bj-table__empty-text",children:Gt})]})})]}),((u==null?void 0:u.x)||(u==null?void 0:u.y))&&i.jsx(Qt,{containerRef:re,direction:u!=null&&u.x&&(u!=null&&u.y)?"both":u!=null&&u.x?"horizontal":"vertical",gap:2,horizontalInsetEnd:0,horizontalInsetStart:0,size:4,targetRef:Be}),Oe&&i.jsx("div",{className:"bj-table__footer",children:Oe(O)}),fe&&i.jsxs("div",{"aria-live":"polite","aria-busy":"true",className:"bj-table__loading",role:"status",children:[i.jsx("img",{alt:"",className:"bj-table__loading-indicator",src:Zt}),i.jsx("span",{className:"bj-table__loading-text",children:"加载中..."})]}),r&&O.length>0&&i.jsx("div",{className:"bj-table__pagination",children:i.jsx(Ht,{align:"end",disabled:fe||r.disabled,current:A,defaultCurrent:r.defaultCurrent,defaultPageSize:r.defaultPageSize,dropdownClassName:r.dropdownClassName,hideOnSinglePage:r.hideOnSinglePage,onChange:e=>{if(Ne.current){Ne.current=!1;return}qt(e)},onShowSizeChange:(e,t)=>Bt(t),pageSize:L,pageSizeOptions:r.pageSizeOptions,popupPlacement:r.popupPlacement,resolvePopupPlacement:r.resolvePopupPlacement,showQuickJumper:r.showQuickJumper,showSizeChanger:r.showSizeChanger,showTotal:r.showTotal,simple:r.simple,size:r.size,t:r.t??Q,total:Ae})})]})}const Pe=is;Pe.Column=Yt;Pe.ColumnGroup=Ct;exports.BTable=Pe;
@@ -155,7 +155,7 @@ function pr({
155
155
  }
156
156
  const e = () => {
157
157
  const t = $.getBoundingClientRect();
158
- Ae({ left: t.left, top: t.bottom + 8 });
158
+ Ae({ left: t.left, top: t.bottom + 4 });
159
159
  };
160
160
  return e(), document.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
161
161
  document.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bj-web-components",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "Enterprise UI component library for Web, Mobile, and Mini-app platforms",
5
5
  "keywords": [
6
6
  "react",
@@ -1 +0,0 @@
1
- "use strict";const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABsdJREFUeAHtXF1oU1cc/9/kNk1LliX9SGvb1DSiJaUgbVEmE+ab7mEvPkntsHsShTLGQJAqIsKwQ9iKguDDthcZ4otPuifJGCsyGIKlo1unDf1urGmpGtskvdnvf5J0aWl1896cajw/uNybcz/OPb/z+3+cc+8NkYKCgoKCgoKCgoKCgsJbBo3eLeTam+7u7nZWVVW1HTp0aF80Gm1Np9MOTdPiFRUVf969e/fXwcHB+3fu3FnOOy/9sgsWO7idNiwrvb29H5w8efJKWVlZ+9LSkjYzM0O6rq8emEqlqLa2lkpLS2l+fn7wwYMHPYcPH/45e36a1hH5LhDIDTdOnz5d3dPTc99ms9VPTk4aUJvtFecJotxut4Zl8tq1a/vOnDkzjiI7lpXcQcVOoCBvZGTkYHV19U9Yr9jtdi77X+1eAYLBoH12dvZIS0vLDcojsZgJFH4rEol87HA4bk9PT6egOp1eE4ZhpOrq6vRYLPZZa2vrD7nrv0rGbzVOnDjh93q9t6empkyRx4Dp69wJ9fX131++fLmJsuIrVgUKdYC4P7A0o/GWCYXNGUp8AiJruJ6iVWBfX18I/i4E7iwVCftQLL6LFy/u5t/FSmAaTr8b6uPtNQTClFlFa34nk0lCSiMW5IOr+/g37+Nj8i8BU6adO3d+zvUUyoQ3TTxlARH33vPnz/fC+a9pI+d5lZWVhGAg8r/l5WUKNDXRey4XQVo0+ugRvXjxQhwbCoXo6dOnNDo6SghE+ZfhDhr0eDy7TTnWTSBSh1OnTr3X1dUVWFhYKEGPGyQRSFlmQFT1evJYSUwgGi8IYSWx4jhpLi8vz9w83CUrr729XZQj4RZkx+PxfCVqaNP7vGE1gYI89OCnqGw/yItv27bNsNCH/7ebsNkWxsfHHUxOvvmx2pCCiO2GhgZCXicIhU9bPYaPZ2UuLi6Sz+cTZevIE9tzc3OPedtqAg0MjT6B7DvgOyYp01MkGyBwuaSkZDiRSDTkNxxlhFGIII3LWWG8jsBEec0djXPEccgfhfJy5pwPPhZDvLCoiyzEuXPnbDU1NQdBXoy2MEWC6Za5XK5fsp236ou54awmJonVmAsQTCiX5QcRJpGPXa9ibBuNjY1069atfv5pqQIhay9uhu96U/IKbc4gT6xhhjH4r79B0o715rcRNirfqIw7BW28d/369QlRD1kI9OBLIy9zF48vUcooUP6Ei7rLnbi+wY3EbFXVFfjCb6Amvi/TFoHOWEFwsXd2dn5EWX9fiCi8IVgXjyJRUW2hNMjim8E62OhjpTNpLgSxrzDf12tS+WmQZ7S1tdnPnj274+bNmynKNImkEKjrNopMzJHusGWrLQxyHE3NxKixwccqhCXrj9msTRDId6x1dHSkLly4EMAIZDJ/pxQCuQGJREoQKQOJVEYg8GErcCtteb4MMSGtcQ4IReXczUamLfbhPK25udk2NDR0Ax1xhP41nlVXVaRDuUyzoLpFRNK9rD52/oi82vbt26cGBga+RSQd8/v9/FvMQPN+XgcCAcI+ramp6fHExMTXx44d8+zZs4fJ42SR1bjGz0vzgVsFpCceKG4EEfl3Jg8B5UsuP378+BcHDhxwwkfuQMJcd/ToUe+lS5eeIOhEMWk6ev78+WfZS+REtmFCW9QEwkwrMfXUBwUa8IduFPkwR+i9evXqPO8Ph8NLWA3x0t/fv9llXuq1i5pAJg6m6cmNhrKR2do6SMEUFIEmoQg0CUWgSSgCTaJICZQ3AS6FQB4J6Fhk9RYe4ZIsyBkLY/6q1ldBkakoOQo8Hk6groCYSJCjQjkEYnE6bbQrUEuxxWcglKzXfnbGxeN2Eb9sZUiyYnnzgdkGVXncVEjwzI8h8Rmg9KGcYUh9wllwqDTGJKQpMDMhLKe/ZKpcEoGZ561LCaPgFMIDkhMzzrJmv+U8E0Fb/hqL4pmIXvgcF3Wl0FEtu+qkpDJSCOTHjA11VeKRJhX6NQ/U5axwFFceyCh3OsiFZ7ZyYBRfHsgothSGoaKwSagobBIqCpuEisImoaKwSagobBJqMsEkFIEmoQg0CUWgSSgCTUIRaBKKQJN45wjEmNzSD4AsJdDtdq/5XPRNQzKZtDkcDktv0GoCF+x2u4YRxxvHIjrWKC0tTede77UKln/PNjw8/KHf7++KxWLTVn8t/rpg8rxeb/3s7Ox3wWDwN7IQVjdQfP708OHD/bjRzlQqleTXLbZqDJz9vEErKSnR0LE/hkKhAbL4Y/BCKESQyF9ujo2NVfJ/DOi6viUmjQ7UuG6QFwuHw/xGzpZ/Sa+goKCgoKCgoKCgAPwDQUTojmlZbmUAAAAASUVORK5CYII=";module.exports=A;
@@ -1,4 +0,0 @@
1
- const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABsdJREFUeAHtXF1oU1cc/9/kNk1LliX9SGvb1DSiJaUgbVEmE+ab7mEvPkntsHsShTLGQJAqIsKwQ9iKguDDthcZ4otPuifJGCsyGIKlo1unDf1urGmpGtskvdnvf5J0aWl1896cajw/uNybcz/OPb/z+3+cc+8NkYKCgoKCgoKCgoKCgsJbBo3eLeTam+7u7nZWVVW1HTp0aF80Gm1Np9MOTdPiFRUVf969e/fXwcHB+3fu3FnOOy/9sgsWO7idNiwrvb29H5w8efJKWVlZ+9LSkjYzM0O6rq8emEqlqLa2lkpLS2l+fn7wwYMHPYcPH/45e36a1hH5LhDIDTdOnz5d3dPTc99ms9VPTk4aUJvtFecJotxut4Zl8tq1a/vOnDkzjiI7lpXcQcVOoCBvZGTkYHV19U9Yr9jtdi77X+1eAYLBoH12dvZIS0vLDcojsZgJFH4rEol87HA4bk9PT6egOp1eE4ZhpOrq6vRYLPZZa2vrD7nrv0rGbzVOnDjh93q9t6empkyRx4Dp69wJ9fX131++fLmJsuIrVgUKdYC4P7A0o/GWCYXNGUp8AiJruJ6iVWBfX18I/i4E7iwVCftQLL6LFy/u5t/FSmAaTr8b6uPtNQTClFlFa34nk0lCSiMW5IOr+/g37+Nj8i8BU6adO3d+zvUUyoQ3TTxlARH33vPnz/fC+a9pI+d5lZWVhGAg8r/l5WUKNDXRey4XQVo0+ugRvXjxQhwbCoXo6dOnNDo6SghE+ZfhDhr0eDy7TTnWTSBSh1OnTr3X1dUVWFhYKEGPGyQRSFlmQFT1evJYSUwgGi8IYSWx4jhpLi8vz9w83CUrr729XZQj4RZkx+PxfCVqaNP7vGE1gYI89OCnqGw/yItv27bNsNCH/7ebsNkWxsfHHUxOvvmx2pCCiO2GhgZCXicIhU9bPYaPZ2UuLi6Sz+cTZevIE9tzc3OPedtqAg0MjT6B7DvgOyYp01MkGyBwuaSkZDiRSDTkNxxlhFGIII3LWWG8jsBEec0djXPEccgfhfJy5pwPPhZDvLCoiyzEuXPnbDU1NQdBXoy2MEWC6Za5XK5fsp236ou54awmJonVmAsQTCiX5QcRJpGPXa9ibBuNjY1069atfv5pqQIhay9uhu96U/IKbc4gT6xhhjH4r79B0o715rcRNirfqIw7BW28d/369QlRD1kI9OBLIy9zF48vUcooUP6Ei7rLnbi+wY3EbFXVFfjCb6Amvi/TFoHOWEFwsXd2dn5EWX9fiCi8IVgXjyJRUW2hNMjim8E62OhjpTNpLgSxrzDf12tS+WmQZ7S1tdnPnj274+bNmynKNImkEKjrNopMzJHusGWrLQxyHE3NxKixwccqhCXrj9msTRDId6x1dHSkLly4EMAIZDJ/pxQCuQGJREoQKQOJVEYg8GErcCtteb4MMSGtcQ4IReXczUamLfbhPK25udk2NDR0Ax1xhP41nlVXVaRDuUyzoLpFRNK9rD52/oi82vbt26cGBga+RSQd8/v9/FvMQPN+XgcCAcI+ramp6fHExMTXx44d8+zZs4fJ42SR1bjGz0vzgVsFpCceKG4EEfl3Jg8B5UsuP378+BcHDhxwwkfuQMJcd/ToUe+lS5eeIOhEMWk6ev78+WfZS+REtmFCW9QEwkwrMfXUBwUa8IduFPkwR+i9evXqPO8Ph8NLWA3x0t/fv9llXuq1i5pAJg6m6cmNhrKR2do6SMEUFIEmoQg0CUWgSSgCTaJICZQ3AS6FQB4J6Fhk9RYe4ZIsyBkLY/6q1ldBkakoOQo8Hk6groCYSJCjQjkEYnE6bbQrUEuxxWcglKzXfnbGxeN2Eb9sZUiyYnnzgdkGVXncVEjwzI8h8Rmg9KGcYUh9wllwqDTGJKQpMDMhLKe/ZKpcEoGZ561LCaPgFMIDkhMzzrJmv+U8E0Fb/hqL4pmIXvgcF3Wl0FEtu+qkpDJSCOTHjA11VeKRJhX6NQ/U5axwFFceyCh3OsiFZ7ZyYBRfHsgothSGoaKwSagobBIqCpuEisImoaKwSagobBJqMsEkFIEmoQg0CUWgSSgCTUIRaBKKQJN45wjEmNzSD4AsJdDtdq/5XPRNQzKZtDkcDktv0GoCF+x2u4YRxxvHIjrWKC0tTede77UKln/PNjw8/KHf7++KxWLTVn8t/rpg8rxeb/3s7Ox3wWDwN7IQVjdQfP708OHD/bjRzlQqleTXLbZqDJz9vEErKSnR0LE/hkKhAbL4Y/BCKESQyF9ujo2NVfJ/DOi6viUmjQ7UuG6QFwuHw/xGzpZ/Sa+goKCgoKCgoKCgAPwDQUTojmlZbmUAAAAASUVORK5CYII=";
2
- export {
3
- A as default
4
- };