@inntechcorp/it-design 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -899,4 +899,4 @@ t.version="2.30.1",r(Gt),t.fn=ao,t.min=Jt,t.max=Xt,t.now=nr,t.utc=p,t.unix=lo,t.
|
|
|
899
899
|
position: relative;
|
|
900
900
|
width: max-content;
|
|
901
901
|
|
|
902
|
-
`,gS=({label:n="",value:t=[],children:r=null,single:i=!1,minWidth:o=0,className:s="",onChange:a=null})=>{const l=e.useRef(null),[c,u]=e.useState(!1),[d,f]=e.useState([]),[p,h]=e.useState("");e.useEffect((()=>{t&&t.length>0&&r.length>0&&(f(t),e.Children.map(r,(n=>{n.props.value===t[0]&&h(n.props.children)})))}),[t,r]),rs(l,(()=>{u(!1)}));const g=(n,e)=>{if(a?a(n,e):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),i)f(n),h(e);else{const e=n[n.length-1];f(e||[])}};return e.createElement(hS,{className:(()=>{let n="itd-inline-select";return c&&(n+=" itd-inline-select-open"),""!==s&&(n+=" "+s),n})(),ref:l},e.createElement(pS,{onChange:n=>{u(n)},isOpen:c,count:d.length,single:i,label:(()=>{let e=i||!i&&1===d.length?p:n;return""===e?"··········":e})()}),e.createElement(lS,{onChange:g,value:d,isOpen:c,single:i,minWidth:o},e.Children.map(r,(n=>{if(n&&n.hasOwnProperty("type")&&null!==n.type&&void 0!==n.type)return n.type===sS?e.cloneElement(n,{...n.props,onChange:g,single:i}):void 0}))))};gS.Option=sS;var mS,vS,bS,yS,xS,wS,kS,_S,SS,ES=Zl.div(xS||(xS=En(["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"],["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"])),(function(){return Wl(mS||(mS=En(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "])))}),(function(){return Wl(bS||(bS=En(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "])))}),(function(){return Wl(yS||(yS=En(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "])))}),(function(){return Wl(vS||(vS=En(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "])))})),OS=Zl.span(wS||(wS=En(["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"],["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"]))),CS=Zl.span(kS||(kS=En(["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"],["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"]))),NS=Zl.span(_S||(_S=En(["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"],["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"])),(function(n){return n.$noTitle?0:"5px"})),TS=Zl.div(SS||(SS=En(["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"],["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"]))),AS=function(e){var t=e.type,r=void 0===t?"info":t,o=e.size,s=void 0===o?"small":o,a=e.title,l=void 0===a?"":a,c=e.className,u=void 0===c?"":c,d=e.children,f=void 0===d?"":d,p=function(){var n="itd-alert";return n+=" itd-alert-"+r,n+=" itd-alert-"+("x-small"===s?"xs":"small"===s?"sm":"medium"===s?"md":"default"===s?"df":"large"===s?"lg":"x-large"===s?"xlg":"df"),""!==u&&(n+=" "+u),n};return n.jsxs(ES,{className:p(),children:[n.jsx(TS,{children:n.jsx(i.ReactSVG,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"})}),n.jsxs(NS,{$noTitle:!l,children:[""!==l?n.jsx(OS,{children:l}):null,""!==f?n.jsx(CS,{children:f}):null]})]})};AS.displayName="ITD-Alert";var DS=Zl.div(YS||(YS=En(['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n'],['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n']))),PS=Zl.div(US||(US=En(["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"],["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"])),(function(n){return n.$hasError?"#f8285a":n.$showBorder&&!n.$disabled?"#252f4a60":"#DBDFE9"}),(function(n){return n.$padding+"px"})),jS=Zl.label(VS||(VS=En(["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"],["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"])),(function(n){return n.$showFocus?"2px solid #1b84ff":"2px solid #1b84ff00"})),LS=Zl.div(BS||(BS=En(["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"],["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"]))),MS=Zl.div(HS||(HS=En(["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"],["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"]))),RS=Zl.div(WS||(WS=En(["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"],["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"])),(function(n){return n.$padding?"string"==typeof n.$padding?n.$padding:n.$padding+"px":"100%"}),(function(n){return n.$width?"string"==typeof n.$width?n.$width:n.$width+"px":"100%"}),(function(n){return n.$height?"string"==typeof n.$height?n.$height:n.$height+"px":"100%"})),FS=Zl.div(GS||(GS=En(["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"],["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"])),(function(n){return n.$isHover&&Wl(qS||(qS=En(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),IS=Zl.div(QS||(QS=En(["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"])),(function(n){return n.$isHover&&Wl(ZS||(ZS=En(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),zS=Zl.div(JS||(JS=En(["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"])),(function(n){var e=n.$isActive,t=n.$complete,r=n.$error;return e&&Wl(KS||(KS=En(["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "],["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "])),t?"#91DB7D":r?"#ff0000":"#1b84ff")})),$S=Zl.div(XS||(XS=En(['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"],['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"])),(function(n){return n.$complete?"#91DB7D":n.$error?"#ff0000":"#54A3FF"}),(function(n){return n.$progress+"%"}));Zl.div(nE||(nE=En(["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"],["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"])));var YS,US,VS,BS,HS,WS,qS,GS,ZS,QS,KS,JS,XS,nE,eE,tE,rE,iE,oE,sE,aE,lE,cE,uE,dE,fE,pE,hE=Zl.div(eE||(eE=En(['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n'],['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n']))),gE=Zl(hE)(tE||(tE=En(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),mE=Zl.span(rE||(rE=En(['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n'],['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n']))),vE=e.forwardRef((function(t,r){var i=t.resultFileName,o=void 0===i?null:i,s=t.action,a=void 0===s?"":s,l=t.filePath,c=void 0===l?"":l,u=t.binaryName,d=void 0===u?"file":u,f=t.showDeleteIcon,p=void 0!==f&&f,h=t.showPreviewIcon,g=void 0!==h&&h,m=t.padding,v=void 0===m?10:m,b=t.fileHeight,y=void 0===b?"100%":b,x=t.previewFileWidth,w=void 0===x?"100%":x,k=t.previewFileHeight,_=void 0===k?"100%":k,S=t.previewFilePadding,E=void 0===S?"0":S,O=t.requestMethod,C=void 0===O?"put":O,N=t.maxFileSize,T=void 0===N?1024:N,A=t.disabled,D=void 0!==A&&A,P=t.extraFormData,j=void 0===P?{}:P,L=t.extraQueryString,M=void 0===L?{}:L,R=t.extraHeader,F=void 0===R?{}:R,I=t.fileTypes,z=void 0===I?[exports.FileTypes.JPG,exports.FileTypes.PNG,exports.FileTypes.SVG,exports.FileTypes.PDF]:I,$=t.removeAction,Y=void 0===$?"":$,U=t.removeExtraFormData,V=void 0===U?{}:U,B=t.removeExtraQueryString,H=void 0===B?{}:B,W=t.removeExtraHeader,q=void 0===W?{}:W,G=t.onUpdate,Z=t.onUploadSuccess,Q=t.onUploadFailed,K=t.onRemoveFileSuccess,J=t.onRemoveFileFailed,X=e.useRef(null),nn=Ph.useNotifications().addNotification,en=qu.useModal().showModal,tn=as(),rn=tn.fetch,on=tn.cancel,sn=gn().t,an=e.useState(!1),ln=an[0],cn=an[1],un=e.useState(!1),dn=un[0],fn=un[1],pn=e.useState(".svg, .png, .jpg"),hn=pn[0],mn=pn[1],vn=e.useState(!1),bn=vn[0],yn=vn[1],xn=e.useState(!1),Sn=xn[0],En=xn[1],On=e.useState(!1),Cn=On[0],Nn=On[1],Tn=e.useState(null),An=Tn[0],Dn=Tn[1],Pn=e.useState(null),jn=Pn[0],Ln=Pn[1],Mn=e.useState(""),Rn=Mn[0],Fn=Mn[1],In=e.useState(!1),zn=In[0],$n=In[1],Yn=e.useState(!1),Un=Yn[0],Vn=Yn[1],Bn=e.useState(null),Hn=Bn[0],Wn=Bn[1],qn=e.useState(!1),Gn=qn[0],Zn=qn[1],Qn=e.useState(null),Kn=Qn[0],Jn=Qn[1];e.useEffect((function(){return function(){on()}}),[]),e.useEffect((function(){fn(D)}),[D]),e.useEffect((function(){Ln(c?c.split("?")[0]:"")}),[c]),e.useEffect((function(){null!==jn&&(void 0!==jn?te():cn(!1))}),[jn]),e.useEffect((function(){var n=[];z.map((function(e){n.push(Gh(e))})),mn(n.join(", "))}),[z]);var ne=function(n,e){nn({title:n,description:e,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},ee=function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),G&&G(n,e,t)};e.useImperativeHandle(r,(function(){return{setFocus:function(){Nn(!0)},reset:function(n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),re(),Ln(null),Fn(""),ee("",n,e)},setValue:function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),Ln(n),ee(n,e,t)},getValue:function(){return jn||""},setError:function(n){Fn(n)},forceUpdate:function(){ee(jn||"")},clear:function(){Ln("")}}}));var te=function(){return kn(void 0,void 0,void 0,(function(){var n;return _n(this,(function(e){switch(e.label){case 0:return n=!1,jn?(console.time("Checking file completed in"),[4,Wh(jn)]):[3,2];case 1:n=e.sent(),Dn(n),n?ee(jn):ee("",!0,!0),ln||cn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==jn||ln||cn(!0),""===jn&&ln&&ee("",!0,!0),[2]}}))}))},re=function(){Jn(null),Wn(null),Zn(!1),Dn(null)},ie=function(){return kn(void 0,void 0,void 0,(function(){return _n(this,(function(e){return fn(!0),en({content:n.jsx("div",{children:sn("uploader.areYouSureToDeleteThisFile")}),title:sn("uploader.removeFile"),okButtonText:sn("uploader.yes"),cancelButtonText:sn("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:function(){return Y?rn({action:Y,params:V,queries:H,headers:q,onFetched:function(n){n.data.success?(re(),ee("",!0,!0),K&&K(n.data.data)):J&&J()},onError:function(){J&&J()}}):(re(),ee("",!0,!0),K&&K()),fn(!1),!0},onCancel:function(){return fn(!1),!0}}),[2]}))}))},oe=function(n){n.preventDefault(),Un||En(!0)},se=function(n){n.preventDefault(),Un||En(!1)},ae=function(n){n.preventDefault(),Un||(En(!1),n.dataTransfer&&0!==n.dataTransfer.files.length?ue(n.dataTransfer.files[0]):console.log(sn("uploader.browserDoesntSupportDND")))},le=function(n){En(!1);var e=n.target.files[0];ue(e)},ce=function(n){return kn(void 0,[n],void 0,(function(n){var e=n.path,t=n.errorMessage,r=n.errorCode;return _n(this,(function(n){switch(n.label){case 0:return[4,Zh(1e3)];case 1:return n.sent(),Wn(null),Vn(!1),[4,Zh(1500)];case 2:return n.sent(),Zn(!1),e?Z&&Z(e):t&&Q&&Q(t,r||0),[2]}}))}))},ue=function(n){if(n&&function(n){return!!z.includes(n.type)||(ne(sn("uploader.error"),sn("uploader.fileFormatError",{fileFormat:hn})),!1)}(n)&&function(n){return!(n.size>1024*T&&(ne(sn("uploader.error"),sn("uploader.fileSizeError",{fileSize:qh(1024*T)})),1))}(n)){if(o){var e=Gh(n.type);n=new File([n],o+e,{type:e,lastModified:n.lastModified})}!function(n){kn(void 0,void 0,void 0,(function(){var e;return _n(this,(function(t){return n?((e=new FormData).append(d,n),o&&e.append("name",o),Object.keys(j).forEach((function(n){e.append(n,j[n])})),rn({action:a,requestMethod:C,params:e,queries:M,headers:F,onFetched:function(n){n.data.success?(Jn({message:sn("uploader.fileUploadSuccess"),status:"success"}),Zn(!0),Ln(n.data.data.url),ce({path:n.data.data.url})):(Jn({message:sn("uploader.fileUploadFailed"),status:"error"}),ee("",!0,!0),ce({errorMessage:sn("uploader.fileUploadFailed")}))},onError:function(n,e){Jn({message:sn("uploader.fileUploadFailed"),status:"error"}),ee("",!0,!0),ce({errorMessage:n,errorCode:e})},onProgress:function(n){Wn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?qh(n.bytes):"",total:n.total?qh(n.total):""})}}),[2]):[2]}))}))}(n),Vn(!0)}},de=function(){fn(!0),en({content:n.jsx(RS,{className:"itd-upload-preview-content",$width:w,$height:_,$padding:E,children:n.jsx(Gc,{src:jn})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:function(){return fn(!1),!0}})},fe=function(){if(p&&jn&&!Un&&An)return n.jsx("span",{children:n.jsx(Su,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ie,disabled:dn,icon:n.jsx(fg,{width:16,height:16}),className:"itd-upload-delete-button"})})},pe=function(){if(g&&jn&&!Un&&An)return n.jsx("span",{children:n.jsx(Su,{variant:"solid",size:"small",type:"button",circle:!0,onClick:de,disabled:dn,icon:n.jsx(pg,{width:16,height:16}),className:"itd-upload-preview-button"})})},he=n.jsx("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:n.jsxs("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n.jsx("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n.jsx("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),ge=function(){if(""!==Rn&&!Un){var e={className:"itd-upload-failed",onPointerOver:function(){return $n(!0)},onPointerOut:function(){return $n(!1)}};return n.jsxs(gE,wn({},e,{children:[zn?n.jsx(mE,{className:"itd-upload-error-tooltip",children:Rn}):null,he]}))}},me=function(){if(ln)return null===An?n.jsx(lg,{width:30,height:30}):!1===An?n.jsx(hg,{width:40,height:40}):n.jsx(Gc,{src:jn,height:y})};return function(e){return void 0===e&&(e=Xn("upload-")),n.jsxs(DS,{className:"itd-upload",children:[n.jsx("input",{type:"file",id:e,accept:hn,onChange:le,onFocus:function(){return Nn(!0)},onBlur:function(){return Nn(!1)},onClick:function(){var n;null===(n=X.current)||void 0===n||n.blur()},disabled:Un||dn,ref:X}),n.jsx(jS,{htmlFor:e,$showFocus:Cn,className:"itd-upload-label",children:n.jsxs(PS,{$showBorder:(Sn||bn)&&!Un,$padding:v,$disabled:D,$hasError:""!==Rn&&!Un,className:"itd-upload-content",children:[me(),n.jsxs(zS,{className:"itd-upload-status",$isActive:Un,$complete:"success"===(null==Kn?void 0:Kn.status),$error:"error"===(null==Kn?void 0:Kn.status),children:[n.jsx($S,{className:"itd-upload-status-box",$progress:Hn?Hn.progress:0,$complete:"success"===(null==Kn?void 0:Kn.status),$error:"error"===(null==Kn?void 0:Kn.status)}),n.jsx("span",{className:"itd-upload-status-message",children:sn(Gn||Kn?String(null==Kn?void 0:Kn.message):"uploader.fileUploading")}),Hn?n.jsx("span",{className:"itd-upload-status-info",children:sn("uploader.info",{total:Hn.total,estimated:Hn.estimated})}):n.jsx("span",{className:"itd-upload-status-calculating",children:sn("uploader.calculating")})]}),(t=(bn||Sn)&&!Un&&!dn,n.jsx(IS,{onPointerOver:function(){!Sn&&yn(!0)},onPointerOut:function(){!Sn&&yn(!1)},onDragOver:oe,onDragLeave:se,onDrop:ae,$isHover:t,className:"itd-upload-overlay",children:n.jsxs(FS,{$isHover:t,className:"itd-upload-overlay-content",children:[n.jsx("span",{className:"itd-upload-header",children:sn("uploader.header")}),n.jsx("span",{className:"itd-upload-hint",children:sn("uploader.hint")})]})})),n.jsxs(LS,{children:[n.jsxs(MS,{className:"itd-upload-icons",children:[fe(),pe()]}),ge()]})]})})]});var t}()})),bE=Zl.section(iE||(iE=En(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),yE=Ql(oE||(oE=En(["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"],["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"]))),xE=Zl.div(sE||(sE=En(["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"],["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"])),yE,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),wE=Zl.div(aE||(aE=En(["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"],["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"])),(function(n){return"true"===n.$fill?"100%":"600px"}),(function(n){return"default"===n.$type?"#1D2649":"#0E153180"}),(function(n){if(n.$autoCenter)return"\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n "})),kE=Zl.div(lE||(lE=En(["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"],["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"]))),_E=Zl.div(cE||(cE=En(["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"],["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"]))),SE=Zl.div(uE||(uE=En(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),EE=Zl.div(dE||(dE=En(["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"],["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"]))),OE=Zl.div(fE||(fE=En(["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"]))),CE=Zl.div(pE||(pE=En(["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"]))),NE=function(t){var r=t.image,i=void 0===r?"":r,o=t.title,s=void 0===o?"":o,a=t.description,l=void 0===a?"":a,c=t.extra,u=void 0===c?null:c,d=t.footer,f=void 0===d?null:d,p=t.type,h=void 0===p?"default":p,g=t.fill,m=void 0!==g&&g,v=t.autoCenter,b=void 0===v||v,y=e.useState(""),x=y[0],w=y[1];e.useEffect((function(){""!==i&&w(i)}),[i]);var k,_=function(){if(u)return n.jsx(_E,{className:"itd-result-extras",children:u})},S=function(){if(f)return n.jsx(SE,{className:"itd-result-footer",children:f})};return n.jsx(bE,{className:(k="itd-result",k+=" itd-result-"+h,b&&(k+=" itd-result-auto-center"),m&&(k+=" itd-result-fill"),k),children:n.jsx(xE,{$autoCenter:b,className:"itd-result-content-wrapper",children:n.jsxs(wE,{className:"itd-result-content",$autoCenter:b,$type:h,$fill:m.toString(),children:[n.jsxs(EE,{className:"itd-result-body",children:[n.jsx(kE,{className:"itd-image-wrapper",children:n.jsx(Gc,{src:x})}),n.jsx(OE,{className:"itd-result-title",children:s}),n.jsx(CE,{className:"itd-result-sub-title",children:l})]}),_(),S()]})})})};NE.displayName="ITD-Result";var TE,AE,DE,PE=Zl.div(TE||(TE=En(["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "],["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "]))),jE=Zl.a(AE||(AE=En(["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "],["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "])),(function(n){return n.$show?"visible":"hidden"}),(function(n){return n.$show?LE:"none"})),LE=Ql(DE||(DE=En(["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"],["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"])));var ME,RE,FE={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},green:{background:"#DFFFEA",text:"#17C653"},yellow:{background:"#FFF8DD",text:"#F6C000"},red:{background:"#FFEEF3",text:"#F8285A"},brown:{background:"#FFF3F1",text:"#CB6F5B"},lavender:{background:"#FCF3FF",text:"#AB60C0"},blue:{background:"#F1F4FF",text:"#3256D9"},pink:{background:"#FFEEF6",text:"#E25698"},violet:{background:"#F5F1FF",text:"#7239EA"},"filled-red":{background:"#F8285A",text:"#F7EFF1"},"filled-yellow":{background:"#F6C000",text:"#FBFAF4"},"filled-pink":{background:"#CC79E3",text:"#F7F3F9"},"filled-blue":{background:"#1B84FF",text:"#EDF0F4"},"filled-green":{background:"#17C653",text:"#F5FAF6"},"filled-purple":{background:"#C417C6",text:"#F6F0F6"},"filled-black":{background:"#071437",text:"#F1F3F7"}},IE=Zl.div(RE||(RE=En(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"],["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"])),(function(n){return function(n){return Wl(ME||(ME=En(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),FE[n].background,FE[n].text)}(n.$status)}));var zE,$E,YE,UE,VE,BE,HE,WE,qE,GE,ZE,QE,KE,JE,XE,nO,eO,tO,rO,iO,oO,sO,aO,lO=Zl.div(zE||(zE=En(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),cO=Zl.div(YE||(YE=En(["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"],["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Wl($E||($E=En(["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "])))})),uO=Zl.div(UE||(UE=En(["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"]))),dO=function(t){var r=t.tabs,i=void 0===r?[]:r,o=t.activeTabKey,s=void 0===o?"":o,l=t.variant,c=void 0===l?"default":l,u=t.height,d=t.onTabChange,f=e.useState(s),p=f[0],h=f[1],g=function(n,e){return t=!1,i.map((function(n){n.link&&(t=!0)})),t?"":p?p===n?"active":"":s&&0===e?"active":"";var t},m=function(n){h(n),d&&d(n)},v=function(e,t){return n.jsx("a",{className:g(e.key,t),onClick:function(){return m(e.key)},children:n.jsx("span",{children:e.tab})})},b=function(e,t){return n.jsx(a.NavLink,{className:g(e.key,t),onClick:function(){return m(e.key)},to:e.link?e.link:"",children:n.jsx("span",{children:e.tab})})};return n.jsxs(lO,{$height:u,className:"itd-tabs",children:[n.jsx(cO,{$isBold:"bold"===c,children:n.jsx("ul",{children:i.map((function(e,t){return n.jsx("li",{children:e.link?b(e,t):v(e,t)},e.key)}))})}),function(){var e=i.filter((function(n){return n.key===p}))[0];if(e&&e.children)return n.jsx(uO,{className:"itd-content-body",children:e.children})}()]})},fO=Zl.div(VE||(VE=En(["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"],["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"])),(function(n){return n.$minWidth?n.$minWidth+"px":"200px"}),(function(n){return n.$minHeight?n.$minHeight+"px":"100px"}),(function(n){return n.$hasHeader?"75px 1fr":"1fr"})),pO=Zl.div(HE||(HE=En(["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"],["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"])),(function(n){if(void 0===n.$showSeparator||!0===n.$showSeparator)return Wl(BE||(BE=En(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),hO=Zl.div(WE||(WE=En(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),gO=Zl.div(qE||(qE=En(["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"])),(function(n){return n.$padding?n.$padding:"30px"})),mO=Zl.div(GE||(GE=En(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"]))),vO=Zl.div(aO||(aO=En(["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n font-size: 14px;\n font-weight: 500;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"],["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n font-size: 14px;\n font-weight: 500;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"])),(function(n){return"x-small"===n.$size?Wl(ZE||(ZE=En(["\n padding-top: 5px;\n padding-bottom: 5px;\n "],["\n padding-top: 5px;\n padding-bottom: 5px;\n "]))):"small"===n.$size?Wl(QE||(QE=En(["\n padding-top: 8px;\n padding-bottom: 8px;\n "],["\n padding-top: 8px;\n padding-bottom: 8px;\n "]))):"medium"===n.$size?Wl(KE||(KE=En(["\n padding-top: 12px;\n padding-bottom: 12px;\n "],["\n padding-top: 12px;\n padding-bottom: 12px;\n "]))):"default"===n.$size?Wl(JE||(JE=En(["\n padding-top: 15px;\n padding-bottom: 15px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n "]))):"large"===n.$size?Wl(XE||(XE=En(["\n padding-top: 18px;\n padding-bottom: 18px;\n "],["\n padding-top: 18px;\n padding-bottom: 18px;\n "]))):"x-large"===n.$size?Wl(nO||(nO=En(["\n padding-top: 20px;\n padding-bottom: 20px;\n "],["\n padding-top: 20px;\n padding-bottom: 20px;\n "]))):Wl(eO||(eO=En(["\n padding-top: 15px;\n padding-bottom: 15px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n "])))}),(function(n){return n.$noGaps?Wl(tO||(tO=En(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Wl(rO||(rO=En(["\n padding-left: 10px;\n padding-right: 10px;\n "],["\n padding-left: 10px;\n padding-right: 10px;\n "]))):"small"===n.$size||"medium"===n.$size||"default"===n.$size?Wl(iO||(iO=En(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "]))):"large"===n.$size||"x-large"===n.$size?Wl(oO||(oO=En(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Wl(sO||(sO=En(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))}));K.use(dn).init({preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["translation"],defaultNS:["translation"],initImmediate:!1,debug:!1,resources:{}}),K.addResourceBundle("en","translation",{success:"Success",error:"Error",errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Should contain upper and lower-case English letters, at least one digit and no spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"}}),K.addResourceBundle("tr","translation",{success:"Başarılı",error:"Hata",errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"En az bir rakam, büyük-küçük harf olmalıdır ve boşluk kullanılmamalıdır",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Harf, sayı ve bazı özel karakterlerden oluşmalıdır (-_). Boşluk kullanılmamalıdır",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"}}),exports.ALink=T_,exports.Accordion=Ew,exports.AddDefaultThemeStyle=function(){var n=document.createElement("style");document.head.appendChild(n),n.textContent=":root{color: #ffffff}"},exports.AddZero=function(n){var e=Number(n),t=n.toString().split(".");return(-1===n.toString().indexOf(".")||t[1].length<3||t[1].length>2)&&(n=(e=e.toFixed(2)).toString()),parseFloat(n).toFixed(2)},exports.Alert=AS,exports.ArrowIcon=ag,exports.BackToTop=cg,exports.BackTop=function(t){var r=t.children,i=void 0===r?null:r,o=e.useState(!1),s=o[0],a=o[1];e.useEffect((function(){return document.addEventListener("scroll",l),function(){document.removeEventListener("scroll",l)}}),[]);var l=function(){a(document.body.scrollTop>window.innerHeight)},c=function(){window.scrollTo({top:0,behavior:"smooth"})};return n.jsx(PE,{className:"itd-back-to-top",children:n.jsx(jE,{onClick:c,$show:s,children:i||n.jsx(cg,{width:30,height:30})})})},exports.Button=Su,exports.Calendar=Uw,exports.Card=function(t){var r=t.title,i=t.titleSeparator,o=t.extra,s=t.tabs,a=t.onTabChange,l=t.minWidth,c=t.minHeight,u=t.children,d=t.activeTabKey,f=void 0===d?"":d,p=t.updating,h=void 0!==p&&p,g=t.contentPadding,m=void 0===g?"30px":g;e.useEffect((function(){}));var v=function(){if(o)return n.jsx(mO,{className:"itd-card-extra",children:o})},b=function(){if(s)return n.jsx(dO,{tabs:s,activeTabKey:f,onTabChange:function(n){return a&&a(n)}})},y=function(){if(r)return n.jsx(hO,{className:"itd-card-title",children:n.jsx(ig,{children:r})})},x=function(){return!!(r||o||s)};return n.jsx(fO,{className:"itd-card",$minWidth:l,$minHeight:c,$hasHeader:x(),children:n.jsxs(lc,{updating:h,children:[function(){if(x())return n.jsxs(pO,{$showSeparator:i,className:"itd-card-header",children:[y(),b(),v()]})}(),function(){if(u)return n.jsx(gO,{className:"itd-card-body",$padding:m,children:u})}()]})})},exports.CheckFileURL=Wh,exports.Checkbox=jg,exports.Checkmark=ug,exports.ChunkArray=function(n,e){var t=0,r=[];for(t=0;t<n.length;t+=e){var i=n.slice(t,t+e);"object"!=typeof i&&r.push(i)}return r},exports.Collapse=I_,exports.ConsoleLog=Pn,exports.ConvertCurrency=function(n,e){return n||(n=0),Bh(n,"TRY"===e?"₺":"USD"===e?"$":"EUR"===e?"€":"?")},exports.DatePicker=Qw,exports.DetermineNewHeight=function(n,e,t){return n/e*t},exports.DetermineNewWidth=function(n,e,t){return e/n*t},exports.FileChecker=function(n,e){void 0===n&&(n="config"),void 0===e&&(e="resource");var t=void 0!==performance.getEntries().filter((function(n){return n.entryType===e})).filter((function(e){return e.name.indexOf(n)>-1}))[0];return t?console.log("script already loaded"):console.log("script was not loaded"),t},exports.FindSelector=es,exports.Form=cw,exports.FormatBytes=qh,exports.GetByCurrency=function(n,e,t){if(void 0===e&&(e=!0),void 0===t&&(t=""),""===t)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");isNaN(n)&&(n=0);var r=Vh(t);return e?new Intl.NumberFormat(r,{style:"currency",currency:t}).format(n):n},exports.GetCountryCodeByCurrencyCode=Vh,exports.GetCountryCodeByLanguage=function(n){return"tr"===n?"tur":"en"===n?"usa":"language_not_found"},exports.GetCurrencyFormat=function(n,e){if(void 0===e&&(e=""),""===e)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return""===n?"":n="".concat(Hh(e)).concat(n).replace(/\B(?=(\d{3})+(?!\d))/g,".")},exports.GetCurrencySymbol=Hh,exports.GetDecimalByCurrency=function(n){if(void 0===n&&(n=""),""===n)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return"TRY"===n?",":"EUR"===n||"USD"===n?".":","},exports.GetTypeByFileType=Gh,exports.H1=function(e){var t=e.children;return n.jsx(ng,{children:t})},exports.H2=ig,exports.H3=function(e){var t=e.children;return n.jsx(tg,{children:t})},exports.H4=og,exports.ITDContext=Uh,exports.ITDProvider=function(t){var r=e.useState(t.theme?t.theme:"dark"),i=r[0],o=r[1],s=e.useState(""),a=s[0],l=s[1],c=e.useState("en-US"),u=c[0],d=c[1],f=e.useState("en"),p=f[0],h=f[1],g=e.useState(""),m=g[0],v=g[1],b=e.useState(""),y=b[0],x=b[1],w={theme:i,brokenImage:m,dummyTeamImage:y,dateFormat:a,language:p,locale:u,changeTheme:function(n){o(n)},changeBrokenImage:function(n){v(n)},changeDummyTeamImage:function(n){x(n)},changeDateFormat:function(n){l(n)},changeLanguage:function(n){h(n),K.changeLanguage(n)},changeLocale:function(n){d(n)}};return n.jsx(Uh.Provider,{value:w,children:n.jsx(Dh,{children:n.jsx($h,{children:n.jsx(Wu,{children:t.children})})})})},exports.Image=Gc,exports.InlineSelect=gS,exports.InlineSelectArrow=dg,exports.Input=v_,exports.IsValidJSON=function(n){n="string"!=typeof n?JSON.stringify(n):n;try{n=JSON.parse(String(n))}catch(n){return!1}return"object"==typeof n&&null!==n},exports.LockIcon=sg,exports.ModalManager=qu,exports.Notification=Ph,exports.Picture=hg,exports.Radio=Q_,exports.RemoveUnits=function(n){return n?(n=n.replaceAll("%","").replaceAll("px","").replaceAll("em","").replaceAll("ex","").replaceAll("ch","").replaceAll("rem","").replaceAll("vw","").replaceAll("vh","").replaceAll("vmin","").replaceAll("vmax","").replaceAll("pt","").replaceAll("pc","").replaceAll("in","").replaceAll("mm","").replaceAll("cm",""),parseInt(n)):0},exports.Result=NE,exports.Select=zx,exports.Spin=lc,exports.Status=function(e){var t,r=e.variant,i=void 0===r?"green":r,o=e.children,s=void 0===o?"":o,a=e.className,l=void 0===a?"":a;return n.jsx(IE,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,""!==l&&null!==l&&(t+=" "+l),t),children:n.jsx("span",{children:s})})},exports.Switch=O_,exports.Table=function(e){var t,r=e.columns,i=e.data,o=e.size,s=void 0===o?"default":o,a=e.headless,l=void 0!==a&&a,c=e.bordered,u=void 0!==c&&c,d=e.dashed,f=void 0!==d&&d,p=e.noGaps,h=void 0!==p&&p,g=function(n){var e={};return"string"==typeof n.width?e.width=n.width:"number"==typeof n.width?e.minWidth=n.width+"px":e.width="auto",e};return n.jsx(vO,{$size:s,$noGaps:h,children:n.jsxs("table",{className:(t="itd-table",l&&(t+=" itd-table-headless"),u&&(t+=" itd-table-bordered"),h&&(t+=" itd-table-no-gaps"),t+=f?" itd-table-dashed":" itd-table-solid"),children:[function(){if(!l)return n.jsx("thead",{children:n.jsx("tr",{children:r.map((function(e){return n.jsx("th",{style:g(e),children:e.title},String(e.key))}))})})}(),n.jsx("tbody",{children:i.map((function(e,t){return n.jsx("tr",{children:r.map((function(r){return n.jsx("td",{style:g(r),children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null},String(r.key))}))},String(e.key))}))})]})})},exports.Tabs=dO,exports.TinyScrollbar=cx,exports.Tooltip=Yh,exports.Trash=fg,exports.UniUpperCase=function(n,e){void 0===n&&(n=""),void 0===e&&(e="tr");var t={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return"tr"===e&&(n=n.replace(/(([iışğüçö]))/g,(function(n){return t[n]}))),n.toUpperCase()},exports.UpdateThemeStyle=function(n){var e="",t=document.styleSheets[0];Object.keys(n).forEach((function(t){e+="".concat(t,":").concat(n[t],";")})),t.hasOwnProperty("cssRules")&&(t.cssRules[0].style.cssText=e)},exports.Upload=vE,exports.UploadIcon=lg,exports.Wait=Zh,exports.ZoomIn=pg,exports.ZoomOut=function(e){var t=e.className,r=void 0===t?"":t,i=e.height,o=void 0===i?24:i,s=e.width,a=void 0===s?24:s;return n.jsx("svg",{className:r,height:o,width:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:n.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n.jsx("rect",{x:"0",y:"0",width:"24",height:"24"}),n.jsx("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),n.jsx("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),n.jsx("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})})},exports.useAddExternalCSS=function(n,t){void 0===t&&(t=!1),e.useEffect((function(){var e=!1,i=document.head,o=r();return document.querySelectorAll("head > link").forEach((function(t){-1!==t.href.indexOf(n)&&(e=!0)})),e||i.appendChild(o),function(){t&&document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&document.head.removeChild(e)}))}}),[n]);var r=function(){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=n,e}},exports.useComponentSize=function(n){var t=e.useState({width:0,height:0}),r=t[0],i=t[1];return e.useEffect((function(){if(n.current){var e=new ResizeObserver((function(n){n.forEach((function(n){var e=n.target;i({width:e.clientWidth,height:e.clientHeight})}))}));return e.observe(n.current),function(){return e.disconnect()}}}),[n]),[r]},exports.useConnectionStatus=function(n){e.useEffect((function(){var e=function(e){n(e)};return window.addEventListener("online",e),function(){window.removeEventListener("online",e)}}),[n])},exports.useConstructor=function(n){void 0===n&&(n=function(){});var t=e.useState(!1),r=t[0],i=t[1];r||(n(),i(!0))},exports.useCoreFetch=as,exports.useCreateDynamicStyle=function(n,t,r){void 0===r&&(r=Xn("dynamic-style")),e.useEffect((function(){return a()||i(),function(){var n=l();"string"!=typeof n&&n.parentNode&&n.parentNode.removeChild(n)}}),[]);var i=function(){c(),t("cs-"+r)},a=function(){return 0===Object.keys(n).length},l=function(){var n="";return document.querySelectorAll("head > style").forEach((function(e){e.id===r&&(n=e)})),n},c=function(){var e=u(n),t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("id",r),t.innerHTML=e.join(""),document.head.appendChild(t)},u=function(n){var e=[];for(var t in n){var i=JSON.stringify(n[t]).split('","').join(";").replace(/"/g,"");i=s().use(o).use(ns).use(Io({})).process(i).css;var a=".cs-".concat(r," ").concat(t," ");a+=i,a+=" ",e.push(a)}return e}},exports.useCreateStyledStyle=ts,exports.useMultiQuery=ss,exports.useOnClickOutside=rs,exports.useOnESCKeyDown=is,exports.useOnResize=function(n){e.useEffect((function(){var e=function(e){n(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[n])},exports.useReCaptcha=function(n){var t,r=e.useState(""),i=r[0],o=r[1];e.useEffect((function(){return function(){document.body.removeChild(t)}}),[]);return{loadReCaptcha:function(n){(t=document.createElement("script")).src="https://www.google.com/recaptcha/api.js?render="+n,t.onload=function(){o(n)},document.body.appendChild(t)},executeReCaptcha:function(){if(""===i)return Pn.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(n&&n(null));window.grecaptcha.ready((function(e){try{window.grecaptcha.execute(i,{action:"login"}).then((function(e){Pn.double("ReCaptcha V3","Token is valid"),console.log("token: "+e),n&&n(e)}))}catch(n){Pn.double("ReCaptcha V3","Token is invalid","error")}}))}}},exports.useSingleQuery=os;
|
|
902
|
+
`,gS=({label:n="",value:t=[],children:r=null,single:i=!1,minWidth:o=0,className:s="",onChange:a=null})=>{const l=e.useRef(null),[c,u]=e.useState(!1),[d,f]=e.useState([]),[p,h]=e.useState("");e.useEffect((()=>{t&&t.length>0&&r.length>0&&(f(t),e.Children.map(r,(n=>{n.props.value===t[0]&&h(n.props.children)})))}),[t,r]),rs(l,(()=>{u(!1)}));const g=(n,e)=>{if(a?a(n,e):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),i)f(n),h(e);else{const e=n[n.length-1];f(e||[])}};return e.createElement(hS,{className:(()=>{let n="itd-inline-select";return c&&(n+=" itd-inline-select-open"),""!==s&&(n+=" "+s),n})(),ref:l},e.createElement(pS,{onChange:n=>{u(n)},isOpen:c,count:d.length,single:i,label:(()=>{let e=i||!i&&1===d.length?p:n;return""===e?"··········":e})()}),e.createElement(lS,{onChange:g,value:d,isOpen:c,single:i,minWidth:o},e.Children.map(r,(n=>{if(n&&n.hasOwnProperty("type")&&null!==n.type&&void 0!==n.type)return n.type===sS?e.cloneElement(n,{...n.props,onChange:g,single:i}):void 0}))))};gS.Option=sS;var mS,vS,bS,yS,xS,wS,kS,_S,SS,ES=Zl.div(xS||(xS=En(["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"],["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"])),(function(){return Wl(mS||(mS=En(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "])))}),(function(){return Wl(bS||(bS=En(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "])))}),(function(){return Wl(yS||(yS=En(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "])))}),(function(){return Wl(vS||(vS=En(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "])))})),OS=Zl.span(wS||(wS=En(["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"],["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"]))),CS=Zl.span(kS||(kS=En(["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"],["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"]))),NS=Zl.span(_S||(_S=En(["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"],["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"])),(function(n){return n.$noTitle?0:"5px"})),TS=Zl.div(SS||(SS=En(["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"],["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"]))),AS=function(e){var t=e.type,r=void 0===t?"info":t,o=e.size,s=void 0===o?"small":o,a=e.title,l=void 0===a?"":a,c=e.className,u=void 0===c?"":c,d=e.children,f=void 0===d?"":d,p=function(){var n="itd-alert";return n+=" itd-alert-"+r,n+=" itd-alert-"+("x-small"===s?"xs":"small"===s?"sm":"medium"===s?"md":"default"===s?"df":"large"===s?"lg":"x-large"===s?"xlg":"df"),""!==u&&(n+=" "+u),n};return n.jsxs(ES,{className:p(),children:[n.jsx(TS,{children:n.jsx(i.ReactSVG,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"})}),n.jsxs(NS,{$noTitle:!l,children:[""!==l?n.jsx(OS,{children:l}):null,""!==f?n.jsx(CS,{children:f}):null]})]})};AS.displayName="ITD-Alert";var DS=Zl.div(YS||(YS=En(['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n'],['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n']))),PS=Zl.div(US||(US=En(["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"],["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"])),(function(n){return n.$hasError?"#f8285a":n.$showBorder&&!n.$disabled?"#252f4a60":"#DBDFE9"}),(function(n){return n.$padding+"px"})),jS=Zl.label(VS||(VS=En(["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"],["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"])),(function(n){return n.$showFocus?"2px solid #1b84ff":"2px solid #1b84ff00"})),LS=Zl.div(BS||(BS=En(["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"],["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"]))),MS=Zl.div(HS||(HS=En(["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"],["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"]))),RS=Zl.div(WS||(WS=En(["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"],["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"])),(function(n){return n.$padding?"string"==typeof n.$padding?n.$padding:n.$padding+"px":"100%"}),(function(n){return n.$width?"string"==typeof n.$width?n.$width:n.$width+"px":"100%"}),(function(n){return n.$height?"string"==typeof n.$height?n.$height:n.$height+"px":"100%"})),FS=Zl.div(GS||(GS=En(["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"],["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"])),(function(n){return n.$isHover&&Wl(qS||(qS=En(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),IS=Zl.div(QS||(QS=En(["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"])),(function(n){return n.$isHover&&Wl(ZS||(ZS=En(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),zS=Zl.div(JS||(JS=En(["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"])),(function(n){var e=n.$isActive,t=n.$complete,r=n.$error;return e&&Wl(KS||(KS=En(["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "],["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "])),t?"#91DB7D":r?"#ff0000":"#1b84ff")})),$S=Zl.div(XS||(XS=En(['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"],['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"])),(function(n){return n.$complete?"#91DB7D":n.$error?"#ff0000":"#54A3FF"}),(function(n){return n.$progress+"%"}));Zl.div(nE||(nE=En(["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"],["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"])));var YS,US,VS,BS,HS,WS,qS,GS,ZS,QS,KS,JS,XS,nE,eE,tE,rE,iE,oE,sE,aE,lE,cE,uE,dE,fE,pE,hE=Zl.div(eE||(eE=En(['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n'],['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n']))),gE=Zl(hE)(tE||(tE=En(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),mE=Zl.span(rE||(rE=En(['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n'],['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n']))),vE=e.forwardRef((function(t,r){var i=t.resultFileName,o=void 0===i?null:i,s=t.action,a=void 0===s?"":s,l=t.filePath,c=void 0===l?"":l,u=t.binaryName,d=void 0===u?"file":u,f=t.showDeleteIcon,p=void 0!==f&&f,h=t.showPreviewIcon,g=void 0!==h&&h,m=t.padding,v=void 0===m?10:m,b=t.fileHeight,y=void 0===b?"100%":b,x=t.previewFileWidth,w=void 0===x?"100%":x,k=t.previewFileHeight,_=void 0===k?"100%":k,S=t.previewFilePadding,E=void 0===S?"0":S,O=t.requestMethod,C=void 0===O?"put":O,N=t.maxFileSize,T=void 0===N?1024:N,A=t.disabled,D=void 0!==A&&A,P=t.extraFormData,j=void 0===P?{}:P,L=t.extraQueryString,M=void 0===L?{}:L,R=t.extraHeader,F=void 0===R?{}:R,I=t.fileTypes,z=void 0===I?[exports.FileTypes.JPG,exports.FileTypes.PNG,exports.FileTypes.SVG,exports.FileTypes.PDF]:I,$=t.removeAction,Y=void 0===$?"":$,U=t.removeExtraFormData,V=void 0===U?{}:U,B=t.removeExtraQueryString,H=void 0===B?{}:B,W=t.removeExtraHeader,q=void 0===W?{}:W,G=t.onUpdate,Z=t.onUploadSuccess,Q=t.onUploadFailed,K=t.onRemoveFileSuccess,J=t.onRemoveFileFailed,X=e.useRef(null),nn=Ph.useNotifications().addNotification,en=qu.useModal().showModal,tn=as(),rn=tn.fetch,on=tn.cancel,sn=gn().t,an=e.useState(!1),ln=an[0],cn=an[1],un=e.useState(!1),dn=un[0],fn=un[1],pn=e.useState(".svg, .png, .jpg"),hn=pn[0],mn=pn[1],vn=e.useState(!1),bn=vn[0],yn=vn[1],xn=e.useState(!1),Sn=xn[0],En=xn[1],On=e.useState(!1),Cn=On[0],Nn=On[1],Tn=e.useState(null),An=Tn[0],Dn=Tn[1],Pn=e.useState(null),jn=Pn[0],Ln=Pn[1],Mn=e.useState(""),Rn=Mn[0],Fn=Mn[1],In=e.useState(!1),zn=In[0],$n=In[1],Yn=e.useState(!1),Un=Yn[0],Vn=Yn[1],Bn=e.useState(null),Hn=Bn[0],Wn=Bn[1],qn=e.useState(!1),Gn=qn[0],Zn=qn[1],Qn=e.useState(null),Kn=Qn[0],Jn=Qn[1];e.useEffect((function(){return function(){on()}}),[]),e.useEffect((function(){fn(D)}),[D]),e.useEffect((function(){Ln(c?c.split("?")[0]:"")}),[c]),e.useEffect((function(){null!==jn&&(void 0!==jn?te():cn(!1))}),[jn]),e.useEffect((function(){var n=[];z.map((function(e){n.push(Gh(e))})),mn(n.join(", "))}),[z]);var ne=function(n,e){nn({title:n,description:e,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},ee=function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),G&&G(n,e,t)};e.useImperativeHandle(r,(function(){return{setFocus:function(){Nn(!0)},reset:function(n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),re(),Ln(null),Fn(""),ee("",n,e)},setValue:function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),Ln(n),ee(n,e,t)},getValue:function(){return jn||""},setError:function(n){Fn(n)},forceUpdate:function(){ee(jn||"")},clear:function(){Ln("")}}}));var te=function(){return kn(void 0,void 0,void 0,(function(){var n;return _n(this,(function(e){switch(e.label){case 0:return n=!1,jn?(console.time("Checking file completed in"),[4,Wh(jn)]):[3,2];case 1:n=e.sent(),Dn(n),n?ee(jn):ee("",!0,!0),ln||cn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==jn||ln||cn(!0),""===jn&&ln&&ee("",!0,!0),[2]}}))}))},re=function(){Jn(null),Wn(null),Zn(!1),Dn(null)},ie=function(){return kn(void 0,void 0,void 0,(function(){return _n(this,(function(e){return fn(!0),en({content:n.jsx("div",{children:sn("uploader.areYouSureToDeleteThisFile")}),title:sn("uploader.removeFile"),okButtonText:sn("uploader.yes"),cancelButtonText:sn("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:function(){return Y?rn({action:Y,params:V,queries:H,headers:q,onFetched:function(n){n.data.success?(re(),ee("",!0,!0),K&&K(n.data.data)):J&&J()},onError:function(){J&&J()}}):(re(),ee("",!0,!0),K&&K()),fn(!1),!0},onCancel:function(){return fn(!1),!0}}),[2]}))}))},oe=function(n){n.preventDefault(),Un||En(!0)},se=function(n){n.preventDefault(),Un||En(!1)},ae=function(n){n.preventDefault(),Un||(En(!1),n.dataTransfer&&0!==n.dataTransfer.files.length?ue(n.dataTransfer.files[0]):console.log(sn("uploader.browserDoesntSupportDND")))},le=function(n){En(!1);var e=n.target.files[0];ue(e)},ce=function(n){return kn(void 0,[n],void 0,(function(n){var e=n.path,t=n.errorMessage,r=n.errorCode;return _n(this,(function(n){switch(n.label){case 0:return[4,Zh(1e3)];case 1:return n.sent(),Wn(null),Vn(!1),[4,Zh(1500)];case 2:return n.sent(),Zn(!1),e?Z&&Z(e):t&&Q&&Q(t,r||0),[2]}}))}))},ue=function(n){if(n&&function(n){return!!z.includes(n.type)||(ne(sn("uploader.error"),sn("uploader.fileFormatError",{fileFormat:hn})),!1)}(n)&&function(n){return!(n.size>1024*T&&(ne(sn("uploader.error"),sn("uploader.fileSizeError",{fileSize:qh(1024*T)})),1))}(n)){if(o){var e=Gh(n.type);n=new File([n],o+e,{type:e,lastModified:n.lastModified})}!function(n){kn(void 0,void 0,void 0,(function(){var e;return _n(this,(function(t){return n?((e=new FormData).append(d,n),o&&e.append("name",o),Object.keys(j).forEach((function(n){e.append(n,j[n])})),rn({action:a,requestMethod:C,params:e,queries:M,headers:F,onFetched:function(n){n.data.success?(Jn({message:sn("uploader.fileUploadSuccess"),status:"success"}),Zn(!0),Ln(n.data.data.url),ce({path:n.data.data.url})):(Jn({message:sn("uploader.fileUploadFailed"),status:"error"}),ee("",!0,!0),ce({errorMessage:sn("uploader.fileUploadFailed")}))},onError:function(n,e){Jn({message:sn("uploader.fileUploadFailed"),status:"error"}),ee("",!0,!0),ce({errorMessage:n,errorCode:e})},onProgress:function(n){Wn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?qh(n.bytes):"",total:n.total?qh(n.total):""})}}),[2]):[2]}))}))}(n),Vn(!0)}},de=function(){fn(!0),en({content:n.jsx(RS,{className:"itd-upload-preview-content",$width:w,$height:_,$padding:E,children:n.jsx(Gc,{src:jn})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:function(){return fn(!1),!0}})},fe=function(){if(p&&jn&&!Un&&An)return n.jsx("span",{children:n.jsx(Su,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ie,disabled:dn,icon:n.jsx(fg,{width:16,height:16}),className:"itd-upload-delete-button"})})},pe=function(){if(g&&jn&&!Un&&An)return n.jsx("span",{children:n.jsx(Su,{variant:"solid",size:"small",type:"button",circle:!0,onClick:de,disabled:dn,icon:n.jsx(pg,{width:16,height:16}),className:"itd-upload-preview-button"})})},he=n.jsx("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:n.jsxs("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n.jsx("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n.jsx("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),ge=function(){if(""!==Rn&&!Un){var e={className:"itd-upload-failed",onPointerOver:function(){return $n(!0)},onPointerOut:function(){return $n(!1)}};return n.jsxs(gE,wn({},e,{children:[zn?n.jsx(mE,{className:"itd-upload-error-tooltip",children:Rn}):null,he]}))}},me=function(){if(ln)return null===An?n.jsx(lg,{width:30,height:30}):!1===An?n.jsx(hg,{width:40,height:40}):n.jsx(Gc,{src:jn,height:y})};return function(e){return void 0===e&&(e=Xn("upload-")),n.jsxs(DS,{className:"itd-upload",children:[n.jsx("input",{type:"file",id:e,accept:hn,onChange:le,onFocus:function(){return Nn(!0)},onBlur:function(){return Nn(!1)},onClick:function(){var n;null===(n=X.current)||void 0===n||n.blur()},disabled:Un||dn,ref:X}),n.jsx(jS,{htmlFor:e,$showFocus:Cn,className:"itd-upload-label",children:n.jsxs(PS,{$showBorder:(Sn||bn)&&!Un,$padding:v,$disabled:D,$hasError:""!==Rn&&!Un,className:"itd-upload-content",children:[me(),n.jsxs(zS,{className:"itd-upload-status",$isActive:Un,$complete:"success"===(null==Kn?void 0:Kn.status),$error:"error"===(null==Kn?void 0:Kn.status),children:[n.jsx($S,{className:"itd-upload-status-box",$progress:Hn?Hn.progress:0,$complete:"success"===(null==Kn?void 0:Kn.status),$error:"error"===(null==Kn?void 0:Kn.status)}),n.jsx("span",{className:"itd-upload-status-message",children:sn(Gn||Kn?String(null==Kn?void 0:Kn.message):"uploader.fileUploading")}),Hn?n.jsx("span",{className:"itd-upload-status-info",children:sn("uploader.info",{total:Hn.total,estimated:Hn.estimated})}):n.jsx("span",{className:"itd-upload-status-calculating",children:sn("uploader.calculating")})]}),(t=(bn||Sn)&&!Un&&!dn,n.jsx(IS,{onPointerOver:function(){!Sn&&yn(!0)},onPointerOut:function(){!Sn&&yn(!1)},onDragOver:oe,onDragLeave:se,onDrop:ae,$isHover:t,className:"itd-upload-overlay",children:n.jsxs(FS,{$isHover:t,className:"itd-upload-overlay-content",children:[n.jsx("span",{className:"itd-upload-header",children:sn("uploader.header")}),n.jsx("span",{className:"itd-upload-hint",children:sn("uploader.hint")})]})})),n.jsxs(LS,{children:[n.jsxs(MS,{className:"itd-upload-icons",children:[fe(),pe()]}),ge()]})]})})]});var t}()})),bE=Zl.section(iE||(iE=En(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),yE=Ql(oE||(oE=En(["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"],["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"]))),xE=Zl.div(sE||(sE=En(["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"],["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"])),yE,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),wE=Zl.div(aE||(aE=En(["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"],["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"])),(function(n){return"true"===n.$fill?"100%":"600px"}),(function(n){return"default"===n.$type?"#1D2649":"#0E153180"}),(function(n){if(n.$autoCenter)return"\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n "})),kE=Zl.div(lE||(lE=En(["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"],["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"]))),_E=Zl.div(cE||(cE=En(["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"],["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"]))),SE=Zl.div(uE||(uE=En(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),EE=Zl.div(dE||(dE=En(["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"],["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"]))),OE=Zl.div(fE||(fE=En(["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"]))),CE=Zl.div(pE||(pE=En(["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"]))),NE=function(t){var r=t.image,i=void 0===r?"":r,o=t.title,s=void 0===o?"":o,a=t.description,l=void 0===a?"":a,c=t.extra,u=void 0===c?null:c,d=t.footer,f=void 0===d?null:d,p=t.type,h=void 0===p?"default":p,g=t.fill,m=void 0!==g&&g,v=t.autoCenter,b=void 0===v||v,y=e.useState(""),x=y[0],w=y[1];e.useEffect((function(){""!==i&&w(i)}),[i]);var k,_=function(){if(u)return n.jsx(_E,{className:"itd-result-extras",children:u})},S=function(){if(f)return n.jsx(SE,{className:"itd-result-footer",children:f})};return n.jsx(bE,{className:(k="itd-result",k+=" itd-result-"+h,b&&(k+=" itd-result-auto-center"),m&&(k+=" itd-result-fill"),k),children:n.jsx(xE,{$autoCenter:b,className:"itd-result-content-wrapper",children:n.jsxs(wE,{className:"itd-result-content",$autoCenter:b,$type:h,$fill:m.toString(),children:[n.jsxs(EE,{className:"itd-result-body",children:[n.jsx(kE,{className:"itd-image-wrapper",children:n.jsx(Gc,{src:x})}),n.jsx(OE,{className:"itd-result-title",children:s}),n.jsx(CE,{className:"itd-result-sub-title",children:l})]}),_(),S()]})})})};NE.displayName="ITD-Result";var TE,AE,DE,PE=Zl.div(TE||(TE=En(["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "],["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "]))),jE=Zl.a(AE||(AE=En(["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "],["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "])),(function(n){return n.$show?"visible":"hidden"}),(function(n){return n.$show?LE:"none"})),LE=Ql(DE||(DE=En(["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"],["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"])));var ME,RE,FE={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},green:{background:"#DFFFEA",text:"#17C653"},yellow:{background:"#FFF8DD",text:"#F6C000"},red:{background:"#FFEEF3",text:"#F8285A"},brown:{background:"#FFF3F1",text:"#CB6F5B"},lavender:{background:"#FCF3FF",text:"#AB60C0"},blue:{background:"#F1F4FF",text:"#3256D9"},pink:{background:"#FFEEF6",text:"#E25698"},violet:{background:"#F5F1FF",text:"#7239EA"},"filled-red":{background:"#F8285A",text:"#F7EFF1"},"filled-yellow":{background:"#F6C000",text:"#FBFAF4"},"filled-pink":{background:"#CC79E3",text:"#F7F3F9"},"filled-blue":{background:"#1B84FF",text:"#EDF0F4"},"filled-green":{background:"#17C653",text:"#F5FAF6"},"filled-purple":{background:"#C417C6",text:"#F6F0F6"},"filled-black":{background:"#071437",text:"#F1F3F7"}},IE=Zl.div(RE||(RE=En(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"],["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"])),(function(n){return function(n){return Wl(ME||(ME=En(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),FE[n].background,FE[n].text)}(n.$status)}));var zE,$E,YE,UE,VE,BE,HE,WE,qE,GE,ZE,QE,KE,JE,XE,nO,eO,tO,rO,iO,oO,sO,aO,lO=Zl.div(zE||(zE=En(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),cO=Zl.div(YE||(YE=En(["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"],["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Wl($E||($E=En(["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "])))})),uO=Zl.div(UE||(UE=En(["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"]))),dO=function(t){var r=t.tabs,i=void 0===r?[]:r,o=t.activeTabKey,s=void 0===o?"":o,l=t.variant,c=void 0===l?"default":l,u=t.height,d=t.onTabChange,f=e.useState(s),p=f[0],h=f[1],g=function(n,e){return t=!1,i.map((function(n){n.link&&(t=!0)})),t?"":p?p===n?"active":"":s&&0===e?"active":"";var t},m=function(n){h(n),d&&d(n)},v=function(e,t){return n.jsx("a",{className:g(e.key,t),onClick:function(){return m(e.key)},children:n.jsx("span",{children:e.tab})})},b=function(e,t){return n.jsx(a.NavLink,{className:g(e.key,t),onClick:function(){return m(e.key)},to:e.link?e.link:"",children:n.jsx("span",{children:e.tab})})};return n.jsxs(lO,{$height:u,className:"itd-tabs",children:[n.jsx(cO,{$isBold:"bold"===c,children:n.jsx("ul",{children:i.map((function(e,t){return n.jsx("li",{children:e.link?b(e,t):v(e,t)},e.key)}))})}),function(){var e=i.filter((function(n){return n.key===p}))[0];if(e&&e.children)return n.jsx(uO,{className:"itd-content-body",children:e.children})}()]})},fO=Zl.div(VE||(VE=En(["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"],["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"])),(function(n){return n.$minWidth?n.$minWidth+"px":"200px"}),(function(n){return n.$minHeight?n.$minHeight+"px":"100px"}),(function(n){return n.$hasHeader?"75px 1fr":"1fr"})),pO=Zl.div(HE||(HE=En(["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"],["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"])),(function(n){if(void 0===n.$showSeparator||!0===n.$showSeparator)return Wl(BE||(BE=En(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),hO=Zl.div(WE||(WE=En(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),gO=Zl.div(qE||(qE=En(["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"])),(function(n){return n.$padding?n.$padding:"30px"})),mO=Zl.div(GE||(GE=En(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"]))),vO=Zl.div(aO||(aO=En(["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n font-weight: 500;\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"],["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n font-weight: 500;\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"])),(function(n){return"x-small"===n.$size?Wl(ZE||(ZE=En(["\n padding-top: 5px;\n padding-bottom: 5px;\n font-size: 12px;\n "],["\n padding-top: 5px;\n padding-bottom: 5px;\n font-size: 12px;\n "]))):"small"===n.$size?Wl(QE||(QE=En(["\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 13px;\n "],["\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 13px;\n "]))):"medium"===n.$size?Wl(KE||(KE=En(["\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: 13px;\n "],["\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: 13px;\n "]))):"default"===n.$size?Wl(JE||(JE=En(["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "]))):"large"===n.$size?Wl(XE||(XE=En(["\n padding-top: 18px;\n padding-bottom: 18px;\n font-size: 14px;\n "],["\n padding-top: 18px;\n padding-bottom: 18px;\n font-size: 14px;\n "]))):"x-large"===n.$size?Wl(nO||(nO=En(["\n padding-top: 20px;\n padding-bottom: 20px;\n font-size: 15px;\n "],["\n padding-top: 20px;\n padding-bottom: 20px;\n font-size: 15px;\n "]))):Wl(eO||(eO=En(["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "])))}),(function(n){return n.$noGaps?Wl(tO||(tO=En(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Wl(rO||(rO=En(["\n padding-left: 10px;\n padding-right: 10px;\n "],["\n padding-left: 10px;\n padding-right: 10px;\n "]))):"small"===n.$size||"medium"===n.$size||"default"===n.$size?Wl(iO||(iO=En(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "]))):"large"===n.$size||"x-large"===n.$size?Wl(oO||(oO=En(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Wl(sO||(sO=En(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))}));K.use(dn).init({preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["translation"],defaultNS:["translation"],initImmediate:!1,debug:!1,resources:{}}),K.addResourceBundle("en","translation",{success:"Success",error:"Error",errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Should contain upper and lower-case English letters, at least one digit and no spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"}}),K.addResourceBundle("tr","translation",{success:"Başarılı",error:"Hata",errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"En az bir rakam, büyük-küçük harf olmalıdır ve boşluk kullanılmamalıdır",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Harf, sayı ve bazı özel karakterlerden oluşmalıdır (-_). Boşluk kullanılmamalıdır",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"}}),exports.ALink=T_,exports.Accordion=Ew,exports.AddDefaultThemeStyle=function(){var n=document.createElement("style");document.head.appendChild(n),n.textContent=":root{color: #ffffff}"},exports.AddZero=function(n){var e=Number(n),t=n.toString().split(".");return(-1===n.toString().indexOf(".")||t[1].length<3||t[1].length>2)&&(n=(e=e.toFixed(2)).toString()),parseFloat(n).toFixed(2)},exports.Alert=AS,exports.ArrowIcon=ag,exports.BackToTop=cg,exports.BackTop=function(t){var r=t.children,i=void 0===r?null:r,o=e.useState(!1),s=o[0],a=o[1];e.useEffect((function(){return document.addEventListener("scroll",l),function(){document.removeEventListener("scroll",l)}}),[]);var l=function(){a(document.body.scrollTop>window.innerHeight)},c=function(){window.scrollTo({top:0,behavior:"smooth"})};return n.jsx(PE,{className:"itd-back-to-top",children:n.jsx(jE,{onClick:c,$show:s,children:i||n.jsx(cg,{width:30,height:30})})})},exports.Button=Su,exports.Calendar=Uw,exports.Card=function(t){var r=t.title,i=t.titleSeparator,o=t.extra,s=t.tabs,a=t.onTabChange,l=t.minWidth,c=t.minHeight,u=t.children,d=t.activeTabKey,f=void 0===d?"":d,p=t.updating,h=void 0!==p&&p,g=t.contentPadding,m=void 0===g?"30px":g;e.useEffect((function(){}));var v=function(){if(o)return n.jsx(mO,{className:"itd-card-extra",children:o})},b=function(){if(s)return n.jsx(dO,{tabs:s,activeTabKey:f,onTabChange:function(n){return a&&a(n)}})},y=function(){if(r)return n.jsx(hO,{className:"itd-card-title",children:n.jsx(ig,{children:r})})},x=function(){return!!(r||o||s)};return n.jsx(fO,{className:"itd-card",$minWidth:l,$minHeight:c,$hasHeader:x(),children:n.jsxs(lc,{updating:h,children:[function(){if(x())return n.jsxs(pO,{$showSeparator:i,className:"itd-card-header",children:[y(),b(),v()]})}(),function(){if(u)return n.jsx(gO,{className:"itd-card-body",$padding:m,children:u})}()]})})},exports.CheckFileURL=Wh,exports.Checkbox=jg,exports.Checkmark=ug,exports.ChunkArray=function(n,e){var t=0,r=[];for(t=0;t<n.length;t+=e){var i=n.slice(t,t+e);"object"!=typeof i&&r.push(i)}return r},exports.Collapse=I_,exports.ConsoleLog=Pn,exports.ConvertCurrency=function(n,e){return n||(n=0),Bh(n,"TRY"===e?"₺":"USD"===e?"$":"EUR"===e?"€":"?")},exports.DatePicker=Qw,exports.DetermineNewHeight=function(n,e,t){return n/e*t},exports.DetermineNewWidth=function(n,e,t){return e/n*t},exports.FileChecker=function(n,e){void 0===n&&(n="config"),void 0===e&&(e="resource");var t=void 0!==performance.getEntries().filter((function(n){return n.entryType===e})).filter((function(e){return e.name.indexOf(n)>-1}))[0];return t?console.log("script already loaded"):console.log("script was not loaded"),t},exports.FindSelector=es,exports.Form=cw,exports.FormatBytes=qh,exports.GetByCurrency=function(n,e,t){if(void 0===e&&(e=!0),void 0===t&&(t=""),""===t)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");isNaN(n)&&(n=0);var r=Vh(t);return e?new Intl.NumberFormat(r,{style:"currency",currency:t}).format(n):n},exports.GetCountryCodeByCurrencyCode=Vh,exports.GetCountryCodeByLanguage=function(n){return"tr"===n?"tur":"en"===n?"usa":"language_not_found"},exports.GetCurrencyFormat=function(n,e){if(void 0===e&&(e=""),""===e)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return""===n?"":n="".concat(Hh(e)).concat(n).replace(/\B(?=(\d{3})+(?!\d))/g,".")},exports.GetCurrencySymbol=Hh,exports.GetDecimalByCurrency=function(n){if(void 0===n&&(n=""),""===n)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return"TRY"===n?",":"EUR"===n||"USD"===n?".":","},exports.GetTypeByFileType=Gh,exports.H1=function(e){var t=e.children;return n.jsx(ng,{children:t})},exports.H2=ig,exports.H3=function(e){var t=e.children;return n.jsx(tg,{children:t})},exports.H4=og,exports.ITDContext=Uh,exports.ITDProvider=function(t){var r=e.useState(t.theme?t.theme:"dark"),i=r[0],o=r[1],s=e.useState(""),a=s[0],l=s[1],c=e.useState("en-US"),u=c[0],d=c[1],f=e.useState("en"),p=f[0],h=f[1],g=e.useState(""),m=g[0],v=g[1],b=e.useState(""),y=b[0],x=b[1],w={theme:i,brokenImage:m,dummyTeamImage:y,dateFormat:a,language:p,locale:u,changeTheme:function(n){o(n)},changeBrokenImage:function(n){v(n)},changeDummyTeamImage:function(n){x(n)},changeDateFormat:function(n){l(n)},changeLanguage:function(n){h(n),K.changeLanguage(n)},changeLocale:function(n){d(n)}};return n.jsx(Uh.Provider,{value:w,children:n.jsx(Dh,{children:n.jsx($h,{children:n.jsx(Wu,{children:t.children})})})})},exports.Image=Gc,exports.InlineSelect=gS,exports.InlineSelectArrow=dg,exports.Input=v_,exports.IsValidJSON=function(n){n="string"!=typeof n?JSON.stringify(n):n;try{n=JSON.parse(String(n))}catch(n){return!1}return"object"==typeof n&&null!==n},exports.LockIcon=sg,exports.ModalManager=qu,exports.Notification=Ph,exports.Picture=hg,exports.Radio=Q_,exports.RemoveUnits=function(n){return n?(n=n.replaceAll("%","").replaceAll("px","").replaceAll("em","").replaceAll("ex","").replaceAll("ch","").replaceAll("rem","").replaceAll("vw","").replaceAll("vh","").replaceAll("vmin","").replaceAll("vmax","").replaceAll("pt","").replaceAll("pc","").replaceAll("in","").replaceAll("mm","").replaceAll("cm",""),parseInt(n)):0},exports.Result=NE,exports.Select=zx,exports.Spin=lc,exports.Status=function(e){var t,r=e.variant,i=void 0===r?"green":r,o=e.children,s=void 0===o?"":o,a=e.className,l=void 0===a?"":a;return n.jsx(IE,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,""!==l&&null!==l&&(t+=" "+l),t),children:n.jsx("span",{children:s})})},exports.Switch=O_,exports.Table=function(e){var t,r=e.columns,i=e.data,o=e.size,s=void 0===o?"default":o,a=e.headless,l=void 0!==a&&a,c=e.bordered,u=void 0!==c&&c,d=e.dashed,f=void 0!==d&&d,p=e.noGaps,h=void 0!==p&&p,g=function(n){var e={};return"string"==typeof n.width?e.width=n.width:"number"==typeof n.width?e.minWidth=n.width+"px":e.width="auto",e};return n.jsx(vO,{$size:s,$noGaps:h,children:n.jsxs("table",{className:(t="itd-table",l&&(t+=" itd-table-headless"),u&&(t+=" itd-table-bordered"),h&&(t+=" itd-table-no-gaps"),t+=f?" itd-table-dashed":" itd-table-solid"),children:[function(){if(!l)return n.jsx("thead",{children:n.jsx("tr",{children:r.map((function(e){return n.jsx("th",{style:g(e),children:e.title},String(e.key))}))})})}(),n.jsx("tbody",{children:i.map((function(e,t){return n.jsx("tr",{children:r.map((function(r){return n.jsx("td",{style:g(r),children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null},String(r.key))}))},String(e.key))}))})]})})},exports.Tabs=dO,exports.TinyScrollbar=cx,exports.Tooltip=Yh,exports.Trash=fg,exports.UniUpperCase=function(n,e){void 0===n&&(n=""),void 0===e&&(e="tr");var t={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return"tr"===e&&(n=n.replace(/(([iışğüçö]))/g,(function(n){return t[n]}))),n.toUpperCase()},exports.UpdateThemeStyle=function(n){var e="",t=document.styleSheets[0];Object.keys(n).forEach((function(t){e+="".concat(t,":").concat(n[t],";")})),t.hasOwnProperty("cssRules")&&(t.cssRules[0].style.cssText=e)},exports.Upload=vE,exports.UploadIcon=lg,exports.Wait=Zh,exports.ZoomIn=pg,exports.ZoomOut=function(e){var t=e.className,r=void 0===t?"":t,i=e.height,o=void 0===i?24:i,s=e.width,a=void 0===s?24:s;return n.jsx("svg",{className:r,height:o,width:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:n.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[n.jsx("rect",{x:"0",y:"0",width:"24",height:"24"}),n.jsx("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),n.jsx("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),n.jsx("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})})},exports.useAddExternalCSS=function(n,t){void 0===t&&(t=!1),e.useEffect((function(){var e=!1,i=document.head,o=r();return document.querySelectorAll("head > link").forEach((function(t){-1!==t.href.indexOf(n)&&(e=!0)})),e||i.appendChild(o),function(){t&&document.querySelectorAll("head > link").forEach((function(e){-1!==e.href.indexOf(n)&&document.head.removeChild(e)}))}}),[n]);var r=function(){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=n,e}},exports.useComponentSize=function(n){var t=e.useState({width:0,height:0}),r=t[0],i=t[1];return e.useEffect((function(){if(n.current){var e=new ResizeObserver((function(n){n.forEach((function(n){var e=n.target;i({width:e.clientWidth,height:e.clientHeight})}))}));return e.observe(n.current),function(){return e.disconnect()}}}),[n]),[r]},exports.useConnectionStatus=function(n){e.useEffect((function(){var e=function(e){n(e)};return window.addEventListener("online",e),function(){window.removeEventListener("online",e)}}),[n])},exports.useConstructor=function(n){void 0===n&&(n=function(){});var t=e.useState(!1),r=t[0],i=t[1];r||(n(),i(!0))},exports.useCoreFetch=as,exports.useCreateDynamicStyle=function(n,t,r){void 0===r&&(r=Xn("dynamic-style")),e.useEffect((function(){return a()||i(),function(){var n=l();"string"!=typeof n&&n.parentNode&&n.parentNode.removeChild(n)}}),[]);var i=function(){c(),t("cs-"+r)},a=function(){return 0===Object.keys(n).length},l=function(){var n="";return document.querySelectorAll("head > style").forEach((function(e){e.id===r&&(n=e)})),n},c=function(){var e=u(n),t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("id",r),t.innerHTML=e.join(""),document.head.appendChild(t)},u=function(n){var e=[];for(var t in n){var i=JSON.stringify(n[t]).split('","').join(";").replace(/"/g,"");i=s().use(o).use(ns).use(Io({})).process(i).css;var a=".cs-".concat(r," ").concat(t," ");a+=i,a+=" ",e.push(a)}return e}},exports.useCreateStyledStyle=ts,exports.useMultiQuery=ss,exports.useOnClickOutside=rs,exports.useOnESCKeyDown=is,exports.useOnResize=function(n){e.useEffect((function(){var e=function(e){n(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[n])},exports.useReCaptcha=function(n){var t,r=e.useState(""),i=r[0],o=r[1];e.useEffect((function(){return function(){document.body.removeChild(t)}}),[]);return{loadReCaptcha:function(n){(t=document.createElement("script")).src="https://www.google.com/recaptcha/api.js?render="+n,t.onload=function(){o(n)},document.body.appendChild(t)},executeReCaptcha:function(){if(""===i)return Pn.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(n&&n(null));window.grecaptcha.ready((function(e){try{window.grecaptcha.execute(i,{action:"login"}).then((function(e){Pn.double("ReCaptcha V3","Token is valid"),console.log("token: "+e),n&&n(e)}))}catch(n){Pn.double("ReCaptcha V3","Token is invalid","error")}}))}}},exports.useSingleQuery=os;
|
package/dist/index.esm.js
CHANGED
|
@@ -899,4 +899,4 @@ r.version="2.30.1",i(Zt),r.fn=lo,r.min=Xt,r.max=nr,r.now=er,r.utc=p,r.unix=co,r.
|
|
|
899
899
|
position: relative;
|
|
900
900
|
width: max-content;
|
|
901
901
|
|
|
902
|
-
`,fE=({label:n="",value:e=[],children:t=null,single:r=!1,minWidth:o=0,className:a="",onChange:d=null})=>{const u=l(null),[f,h]=s(!1),[p,g]=s([]),[v,b]=s("");c((()=>{e&&e.length>0&&t.length>0&&(g(e),x.map(t,(n=>{n.props.value===e[0]&&b(n.props.children)})))}),[e,t]),La(u,(()=>{h(!1)}));const y=(n,e)=>{if(d?d(n,e):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),r)g(n),b(e);else{const e=n[n.length-1];g(e||[])}};return i.createElement(uE,{className:(()=>{let n="itd-inline-select";return f&&(n+=" itd-inline-select-open"),""!==a&&(n+=" "+a),n})(),ref:u},i.createElement(dE,{onChange:n=>{h(n)},isOpen:f,count:p.length,single:r,label:(()=>{let e=r||!r&&1===p.length?v:n;return""===e?"··········":e})()}),i.createElement(oE,{onChange:y,value:p,isOpen:f,single:r,minWidth:o},x.map(t,(n=>{if(n&&n.hasOwnProperty("type")&&null!==n.type&&void 0!==n.type)return n.type===rE?m(n,{...n.props,onChange:y,single:r}):void 0}))))};fE.Option=rE;var hE,pE,gE,mE,vE,bE,yE,xE,wE,kE=Nc.div(vE||(vE=Zn(["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"],["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"])),(function(){return Ec(hE||(hE=Zn(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "])))}),(function(){return Ec(gE||(gE=Zn(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "])))}),(function(){return Ec(mE||(mE=Zn(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "])))}),(function(){return Ec(pE||(pE=Zn(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "])))})),_E=Nc.span(bE||(bE=Zn(["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"],["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"]))),SE=Nc.span(yE||(yE=Zn(["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"],["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"]))),EE=Nc.span(xE||(xE=Zn(["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"],["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"])),(function(n){return n.$noTitle?0:"5px"})),OE=Nc.div(wE||(wE=Zn(["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"],["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"]))),CE=function(t){var r=t.type,i=void 0===r?"info":r,o=t.size,a=void 0===o?"small":o,s=t.title,l=void 0===s?"":s,c=t.className,d=void 0===c?"":c,u=t.children,f=void 0===u?"":u;return e(kE,{className:function(){var n="itd-alert";return n+=" itd-alert-"+i,n+=" itd-alert-"+("x-small"===a?"xs":"small"===a?"sm":"medium"===a?"md":"default"===a?"df":"large"===a?"lg":"x-large"===a?"xlg":"df"),""!==d&&(n+=" "+d),n}(),children:[n(OE,{children:n(O,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"})}),e(EE,{$noTitle:!l,children:[""!==l?n(_E,{children:l}):null,""!==f?n(SE,{children:f}):null]})]})};CE.displayName="ITD-Alert";var NE=Nc.div(zE||(zE=Zn(['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n'],['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n']))),AE=Nc.div(jE||(jE=Zn(["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"],["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"])),(function(n){return n.$hasError?"#f8285a":n.$showBorder&&!n.$disabled?"#252f4a60":"#DBDFE9"}),(function(n){return n.$padding+"px"})),TE=Nc.label($E||($E=Zn(["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"],["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"])),(function(n){return n.$showFocus?"2px solid #1b84ff":"2px solid #1b84ff00"})),DE=Nc.div(YE||(YE=Zn(["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"],["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"]))),PE=Nc.div(UE||(UE=Zn(["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"],["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"]))),LE=Nc.div(VE||(VE=Zn(["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"],["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"])),(function(n){return n.$padding?"string"==typeof n.$padding?n.$padding:n.$padding+"px":"100%"}),(function(n){return n.$width?"string"==typeof n.$width?n.$width:n.$width+"px":"100%"}),(function(n){return n.$height?"string"==typeof n.$height?n.$height:n.$height+"px":"100%"})),ME=Nc.div(HE||(HE=Zn(["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"],["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"])),(function(n){return n.$isHover&&Ec(BE||(BE=Zn(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),FE=Nc.div(qE||(qE=Zn(["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"])),(function(n){return n.$isHover&&Ec(WE||(WE=Zn(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),IE=Nc.div(ZE||(ZE=Zn(["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"])),(function(n){var e=n.$isActive,t=n.$complete,r=n.$error;return e&&Ec(GE||(GE=Zn(["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "],["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "])),t?"#91DB7D":r?"#ff0000":"#1b84ff")})),RE=Nc.div(QE||(QE=Zn(['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"],['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"])),(function(n){return n.$complete?"#91DB7D":n.$error?"#ff0000":"#54A3FF"}),(function(n){return n.$progress+"%"}));Nc.div(KE||(KE=Zn(["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"],["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"])));var zE,jE,$E,YE,UE,VE,BE,HE,WE,qE,GE,ZE,QE,KE,JE,XE,nO,eO,tO,rO,iO,oO,aO,sO,lO,cO,dO,uO=Nc.div(JE||(JE=Zn(['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n'],['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n']))),fO=Nc(uO)(XE||(XE=Zn(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),hO=Nc.span(nO||(nO=Zn(['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n'],['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n']))),pO=b((function(t,r){var i=t.resultFileName,o=void 0===i?null:i,a=t.action,d=void 0===a?"":a,u=t.filePath,f=void 0===u?"":u,h=t.binaryName,p=void 0===h?"file":h,g=t.showDeleteIcon,m=void 0!==g&&g,v=t.showPreviewIcon,b=void 0!==v&&v,y=t.padding,x=void 0===y?10:y,k=t.fileHeight,_=void 0===k?"100%":k,S=t.previewFileWidth,E=void 0===S?"100%":S,O=t.previewFileHeight,C=void 0===O?"100%":O,N=t.previewFilePadding,A=void 0===N?"0":N,T=t.requestMethod,D=void 0===T?"put":T,P=t.maxFileSize,L=void 0===P?1024:P,M=t.disabled,F=void 0!==M&&M,I=t.extraFormData,R=void 0===I?{}:I,z=t.extraQueryString,j=void 0===z?{}:z,$=t.extraHeader,Y=void 0===$?{}:$,U=t.fileTypes,V=void 0===U?[Yn.JPG,Yn.PNG,Yn.SVG,Yn.PDF]:U,B=t.removeAction,H=void 0===B?"":B,W=t.removeExtraFormData,q=void 0===W?{}:W,G=t.removeExtraQueryString,Z=void 0===G?{}:G,Q=t.removeExtraHeader,K=void 0===Q?{}:Q,J=t.onUpdate,X=t.onUploadSuccess,nn=t.onUploadFailed,en=t.onRemoveFileSuccess,tn=t.onRemoveFileFailed,rn=l(null),on=ug.useNotifications().addNotification,an=Ou.useModal().showModal,sn=$a(),ln=sn.fetch,cn=sn.cancel,dn=jn().t,un=s(!1),fn=un[0],hn=un[1],pn=s(!1),gn=pn[0],mn=pn[1],vn=s(".svg, .png, .jpg"),bn=vn[0],yn=vn[1],xn=s(!1),wn=xn[0],kn=xn[1],_n=s(!1),Sn=_n[0],En=_n[1],On=s(!1),Cn=On[0],Nn=On[1],An=s(null),Tn=An[0],Dn=An[1],Pn=s(null),Ln=Pn[0],Mn=Pn[1],Fn=s(""),In=Fn[0],Rn=Fn[1],zn=s(!1),$n=zn[0],Un=zn[1],Vn=s(!1),Bn=Vn[0],Gn=Vn[1],Zn=s(null),Qn=Zn[0],Kn=Zn[1],Jn=s(!1),Xn=Jn[0],ne=Jn[1],ee=s(null),te=ee[0],re=ee[1];c((function(){return function(){cn()}}),[]),c((function(){mn(F)}),[F]),c((function(){Mn(f?f.split("?")[0]:"")}),[f]),c((function(){null!==Ln&&(void 0!==Ln?ae():hn(!1))}),[Ln]),c((function(){var n=[];V.map((function(e){n.push(Vg(e))})),yn(n.join(", "))}),[V]);var ie=function(n,e){on({title:n,description:e,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},oe=function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),J&&J(n,e,t)};w(r,(function(){return{setFocus:function(){Nn(!0)},reset:function(n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),se(),Mn(null),Rn(""),oe("",n,e)},setValue:function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),Mn(n),oe(n,e,t)},getValue:function(){return Ln||""},setError:function(n){Rn(n)},forceUpdate:function(){oe(Ln||"")},clear:function(){Mn("")}}}));var ae=function(){return Wn(void 0,void 0,void 0,(function(){var n;return qn(this,(function(e){switch(e.label){case 0:return n=!1,Ln?(console.time("Checking file completed in"),[4,$g(Ln)]):[3,2];case 1:n=e.sent(),Dn(n),n?oe(Ln):oe("",!0,!0),fn||hn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==Ln||fn||hn(!0),""===Ln&&fn&&oe("",!0,!0),[2]}}))}))},se=function(){re(null),Kn(null),ne(!1),Dn(null)},le=function(){return Wn(void 0,void 0,void 0,(function(){return qn(this,(function(e){return mn(!0),an({content:n("div",{children:dn("uploader.areYouSureToDeleteThisFile")}),title:dn("uploader.removeFile"),okButtonText:dn("uploader.yes"),cancelButtonText:dn("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:function(){return H?ln({action:H,params:q,queries:Z,headers:K,onFetched:function(n){n.data.success?(se(),oe("",!0,!0),en&&en(n.data.data)):tn&&tn()},onError:function(){tn&&tn()}}):(se(),oe("",!0,!0),en&&en()),mn(!1),!0},onCancel:function(){return mn(!1),!0}}),[2]}))}))},ce=function(n){n.preventDefault(),Bn||En(!0)},de=function(n){n.preventDefault(),Bn||En(!1)},ue=function(n){n.preventDefault(),Bn||(En(!1),n.dataTransfer&&0!==n.dataTransfer.files.length?pe(n.dataTransfer.files[0]):console.log(dn("uploader.browserDoesntSupportDND")))},fe=function(n){En(!1);var e=n.target.files[0];pe(e)},he=function(n){return Wn(void 0,[n],void 0,(function(n){var e=n.path,t=n.errorMessage,r=n.errorCode;return qn(this,(function(n){switch(n.label){case 0:return[4,Bg(1e3)];case 1:return n.sent(),Kn(null),Gn(!1),[4,Bg(1500)];case 2:return n.sent(),ne(!1),e?X&&X(e):t&&nn&&nn(t,r||0),[2]}}))}))},pe=function(n){if(n&&function(n){return!!V.includes(n.type)||(ie(dn("uploader.error"),dn("uploader.fileFormatError",{fileFormat:bn})),!1)}(n)&&function(n){return!(n.size>1024*L&&(ie(dn("uploader.error"),dn("uploader.fileSizeError",{fileSize:Ug(1024*L)})),1))}(n)){if(o){var e=Vg(n.type);n=new File([n],o+e,{type:e,lastModified:n.lastModified})}!function(n){Wn(void 0,void 0,void 0,(function(){var e;return qn(this,(function(t){return n?((e=new FormData).append(p,n),o&&e.append("name",o),Object.keys(R).forEach((function(n){e.append(n,R[n])})),ln({action:d,requestMethod:D,params:e,queries:j,headers:Y,onFetched:function(n){n.data.success?(re({message:dn("uploader.fileUploadSuccess"),status:"success"}),ne(!0),Mn(n.data.data.url),he({path:n.data.data.url})):(re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),he({errorMessage:dn("uploader.fileUploadFailed")}))},onError:function(n,e){re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),he({errorMessage:n,errorCode:e})},onProgress:function(n){Kn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?Ug(n.bytes):"",total:n.total?Ug(n.total):""})}}),[2]):[2]}))}))}(n),Gn(!0)}},ge=function(){mn(!0),an({content:n(LE,{className:"itd-upload-preview-content",$width:E,$height:C,$padding:A,children:n(Cd,{src:Ln})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:function(){return mn(!1),!0}})},me=function(){if(m&&Ln&&!Bn&&Tn)return n("span",{children:n(ru,{variant:"solid",size:"small",type:"button",circle:!0,onClick:le,disabled:gn,icon:n(cm,{width:16,height:16}),className:"itd-upload-delete-button"})})},ve=function(){if(b&&Ln&&!Bn&&Tn)return n("span",{children:n(ru,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ge,disabled:gn,icon:n(dm,{width:16,height:16}),className:"itd-upload-preview-button"})})},be=n("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),ye=function(){if(""!==In&&!Bn)return e(fO,Hn({},{className:"itd-upload-failed",onPointerOver:function(){return Un(!0)},onPointerOut:function(){return Un(!1)}},{children:[$n?n(hO,{className:"itd-upload-error-tooltip",children:In}):null,be]}))},xe=function(){if(fn)return null===Tn?n(om,{width:30,height:30}):!1===Tn?n(fm,{width:40,height:40}):n(Cd,{src:Ln,height:_})};return function(t){return void 0===t&&(t=Oe("upload-")),e(NE,{className:"itd-upload",children:[n("input",{type:"file",id:t,accept:bn,onChange:fe,onFocus:function(){return Nn(!0)},onBlur:function(){return Nn(!1)},onClick:function(){var n;null===(n=rn.current)||void 0===n||n.blur()},disabled:Bn||gn,ref:rn}),n(TE,{htmlFor:t,$showFocus:Cn,className:"itd-upload-label",children:e(AE,{$showBorder:(Sn||wn)&&!Bn,$padding:x,$disabled:F,$hasError:""!==In&&!Bn,className:"itd-upload-content",children:[xe(),e(IE,{className:"itd-upload-status",$isActive:Bn,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status),children:[n(RE,{className:"itd-upload-status-box",$progress:Qn?Qn.progress:0,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status)}),n("span",{className:"itd-upload-status-message",children:dn(Xn||te?String(null==te?void 0:te.message):"uploader.fileUploading")}),n("span",Qn?{className:"itd-upload-status-info",children:dn("uploader.info",{total:Qn.total,estimated:Qn.estimated})}:{className:"itd-upload-status-calculating",children:dn("uploader.calculating")})]}),(r=(wn||Sn)&&!Bn&&!gn,n(FE,{onPointerOver:function(){!Sn&&kn(!0)},onPointerOut:function(){!Sn&&kn(!1)},onDragOver:ce,onDragLeave:de,onDrop:ue,$isHover:r,className:"itd-upload-overlay",children:e(ME,{$isHover:r,className:"itd-upload-overlay-content",children:[n("span",{className:"itd-upload-header",children:dn("uploader.header")}),n("span",{className:"itd-upload-hint",children:dn("uploader.hint")})]})})),e(DE,{children:[e(PE,{className:"itd-upload-icons",children:[me(),ve()]}),ye()]})]})})]});var r}()})),gO=Nc.section(eO||(eO=Zn(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),mO=Ac(tO||(tO=Zn(["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"],["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"]))),vO=Nc.div(rO||(rO=Zn(["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"],["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"])),mO,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),bO=Nc.div(iO||(iO=Zn(["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"],["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"])),(function(n){return"true"===n.$fill?"100%":"600px"}),(function(n){return"default"===n.$type?"#1D2649":"#0E153180"}),(function(n){if(n.$autoCenter)return"\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n "})),yO=Nc.div(oO||(oO=Zn(["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"],["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"]))),xO=Nc.div(aO||(aO=Zn(["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"],["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"]))),wO=Nc.div(sO||(sO=Zn(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),kO=Nc.div(lO||(lO=Zn(["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"],["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"]))),_O=Nc.div(cO||(cO=Zn(["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"]))),SO=Nc.div(dO||(dO=Zn(["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"]))),EO=function(t){var r=t.image,i=void 0===r?"":r,o=t.title,a=void 0===o?"":o,l=t.description,d=void 0===l?"":l,u=t.extra,f=void 0===u?null:u,h=t.footer,p=void 0===h?null:h,g=t.type,m=void 0===g?"default":g,v=t.fill,b=void 0!==v&&v,y=t.autoCenter,x=void 0===y||y,w=s(""),k=w[0],_=w[1];c((function(){""!==i&&_(i)}),[i]);var S,E=function(){if(f)return n(xO,{className:"itd-result-extras",children:f})},O=function(){if(p)return n(wO,{className:"itd-result-footer",children:p})};return n(gO,{className:(S="itd-result",S+=" itd-result-"+m,x&&(S+=" itd-result-auto-center"),b&&(S+=" itd-result-fill"),S),children:n(vO,{$autoCenter:x,className:"itd-result-content-wrapper",children:e(bO,{className:"itd-result-content",$autoCenter:x,$type:m,$fill:b.toString(),children:[e(kO,{className:"itd-result-body",children:[n(yO,{className:"itd-image-wrapper",children:n(Cd,{src:k})}),n(_O,{className:"itd-result-title",children:a}),n(SO,{className:"itd-result-sub-title",children:d})]}),E(),O()]})})})};EO.displayName="ITD-Result";var OO,CO,NO,AO=Nc.div(OO||(OO=Zn(["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "],["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "]))),TO=Nc.a(CO||(CO=Zn(["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "],["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "])),(function(n){return n.$show?"visible":"hidden"}),(function(n){return n.$show?DO:"none"})),DO=Ac(NO||(NO=Zn(["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"],["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"])));function PO(e){var t=e.children,r=void 0===t?null:t,i=s(!1),o=i[0],a=i[1];c((function(){return document.addEventListener("scroll",l),function(){document.removeEventListener("scroll",l)}}),[]);var l=function(){a(document.body.scrollTop>window.innerHeight)};return n(AO,{className:"itd-back-to-top",children:n(TO,{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},$show:o,children:r||n(am,{width:30,height:30})})})}var LO,MO,FO={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},green:{background:"#DFFFEA",text:"#17C653"},yellow:{background:"#FFF8DD",text:"#F6C000"},red:{background:"#FFEEF3",text:"#F8285A"},brown:{background:"#FFF3F1",text:"#CB6F5B"},lavender:{background:"#FCF3FF",text:"#AB60C0"},blue:{background:"#F1F4FF",text:"#3256D9"},pink:{background:"#FFEEF6",text:"#E25698"},violet:{background:"#F5F1FF",text:"#7239EA"},"filled-red":{background:"#F8285A",text:"#F7EFF1"},"filled-yellow":{background:"#F6C000",text:"#FBFAF4"},"filled-pink":{background:"#CC79E3",text:"#F7F3F9"},"filled-blue":{background:"#1B84FF",text:"#EDF0F4"},"filled-green":{background:"#17C653",text:"#F5FAF6"},"filled-purple":{background:"#C417C6",text:"#F6F0F6"},"filled-black":{background:"#071437",text:"#F1F3F7"}},IO=Nc.div(MO||(MO=Zn(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"],["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"])),(function(n){return function(n){return Ec(LO||(LO=Zn(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),FO[n].background,FO[n].text)}(n.$status)}));function RO(e){var t,r=e.variant,i=void 0===r?"green":r,o=e.children,a=void 0===o?"":o,s=e.className,l=void 0===s?"":s;return n(IO,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,""!==l&&null!==l&&(t+=" "+l),t),children:n("span",{children:a})})}var zO,jO,$O,YO,UO,VO,BO,HO,WO,qO,GO,ZO,QO,KO,JO,XO,nC,eC,tC,rC,iC,oC,aC,sC=Nc.div(zO||(zO=Zn(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),lC=Nc.div($O||($O=Zn(["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"],["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Ec(jO||(jO=Zn(["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "])))})),cC=Nc.div(YO||(YO=Zn(["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"]))),dC=function(t){var r=t.tabs,i=void 0===r?[]:r,o=t.activeTabKey,a=void 0===o?"":o,l=t.variant,c=void 0===l?"default":l,d=t.height,u=t.onTabChange,f=s(a),h=f[0],p=f[1],g=function(n,e){return t=!1,i.map((function(n){n.link&&(t=!0)})),t?"":h?h===n?"active":"":a&&0===e?"active":"";var t},m=function(n){p(n),u&&u(n)},v=function(e,t){return n("a",{className:g(e.key,t),onClick:function(){return m(e.key)},children:n("span",{children:e.tab})})},b=function(e,t){return n(P,{className:g(e.key,t),onClick:function(){return m(e.key)},to:e.link?e.link:"",children:n("span",{children:e.tab})})};return e(sC,{$height:d,className:"itd-tabs",children:[n(lC,{$isBold:"bold"===c,children:n("ul",{children:i.map((function(e,t){return n("li",{children:e.link?b(e,t):v(e,t)},e.key)}))})}),function(){var e=i.filter((function(n){return n.key===h}))[0];if(e&&e.children)return n(cC,{className:"itd-content-body",children:e.children})}()]})},uC=Nc.div(UO||(UO=Zn(["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"],["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"])),(function(n){return n.$minWidth?n.$minWidth+"px":"200px"}),(function(n){return n.$minHeight?n.$minHeight+"px":"100px"}),(function(n){return n.$hasHeader?"75px 1fr":"1fr"})),fC=Nc.div(BO||(BO=Zn(["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"],["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"])),(function(n){if(void 0===n.$showSeparator||!0===n.$showSeparator)return Ec(VO||(VO=Zn(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),hC=Nc.div(HO||(HO=Zn(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),pC=Nc.div(WO||(WO=Zn(["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"])),(function(n){return n.$padding?n.$padding:"30px"})),gC=Nc.div(qO||(qO=Zn(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"]))),mC=function(t){var r=t.title,i=t.titleSeparator,o=t.extra,a=t.tabs,s=t.onTabChange,l=t.minWidth,d=t.minHeight,u=t.children,f=t.activeTabKey,h=void 0===f?"":f,p=t.updating,g=void 0!==p&&p,m=t.contentPadding,v=void 0===m?"30px":m;c((function(){}));var b=function(){if(o)return n(gC,{className:"itd-card-extra",children:o})},y=function(){if(a)return n(dC,{tabs:a,activeTabKey:h,onTabChange:function(n){return s&&s(n)}})},x=function(){if(r)return n(hC,{className:"itd-card-title",children:n(nm,{children:r})})},w=function(){return!!(r||o||a)};return n(uC,{className:"itd-card",$minWidth:l,$minHeight:d,$hasHeader:w(),children:e(Yc,{updating:g,children:[function(){if(w())return e(fC,{$showSeparator:i,className:"itd-card-header",children:[x(),y(),b()]})}(),function(){if(u)return n(pC,{className:"itd-card-body",$padding:v,children:u})}()]})})},vC=Nc.div(aC||(aC=Zn(["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n font-size: 14px;\n font-weight: 500;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"],["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n font-size: 14px;\n font-weight: 500;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"])),(function(n){return"x-small"===n.$size?Ec(GO||(GO=Zn(["\n padding-top: 5px;\n padding-bottom: 5px;\n "],["\n padding-top: 5px;\n padding-bottom: 5px;\n "]))):"small"===n.$size?Ec(ZO||(ZO=Zn(["\n padding-top: 8px;\n padding-bottom: 8px;\n "],["\n padding-top: 8px;\n padding-bottom: 8px;\n "]))):"medium"===n.$size?Ec(QO||(QO=Zn(["\n padding-top: 12px;\n padding-bottom: 12px;\n "],["\n padding-top: 12px;\n padding-bottom: 12px;\n "]))):"default"===n.$size?Ec(KO||(KO=Zn(["\n padding-top: 15px;\n padding-bottom: 15px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n "]))):"large"===n.$size?Ec(JO||(JO=Zn(["\n padding-top: 18px;\n padding-bottom: 18px;\n "],["\n padding-top: 18px;\n padding-bottom: 18px;\n "]))):"x-large"===n.$size?Ec(XO||(XO=Zn(["\n padding-top: 20px;\n padding-bottom: 20px;\n "],["\n padding-top: 20px;\n padding-bottom: 20px;\n "]))):Ec(nC||(nC=Zn(["\n padding-top: 15px;\n padding-bottom: 15px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n "])))}),(function(n){return n.$noGaps?Ec(eC||(eC=Zn(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Ec(tC||(tC=Zn(["\n padding-left: 10px;\n padding-right: 10px;\n "],["\n padding-left: 10px;\n padding-right: 10px;\n "]))):"small"===n.$size||"medium"===n.$size||"default"===n.$size?Ec(rC||(rC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "]))):"large"===n.$size||"x-large"===n.$size?Ec(iC||(iC=Zn(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Ec(oC||(oC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))})),bC=function(t){var r,i=t.columns,o=t.data,a=t.size,s=void 0===a?"default":a,l=t.headless,c=void 0!==l&&l,d=t.bordered,u=void 0!==d&&d,f=t.dashed,h=void 0!==f&&f,p=t.noGaps,g=void 0!==p&&p,m=function(n){var e={};return"string"==typeof n.width?e.width=n.width:"number"==typeof n.width?e.minWidth=n.width+"px":e.width="auto",e};return n(vC,{$size:s,$noGaps:g,children:e("table",{className:(r="itd-table",c&&(r+=" itd-table-headless"),u&&(r+=" itd-table-bordered"),g&&(r+=" itd-table-no-gaps"),r+=h?" itd-table-dashed":" itd-table-solid"),children:[function(){if(!c)return n("thead",{children:n("tr",{children:i.map((function(e){return n("th",{style:m(e),children:e.title},String(e.key))}))})})}(),n("tbody",{children:o.map((function(e,t){return n("tr",{children:i.map((function(r){return n("td",{style:m(r),children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null},String(r.key))}))},String(e.key))}))})]})})};kn.use(Fn).init({preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["translation"],defaultNS:["translation"],initImmediate:!1,debug:!1,resources:{}}),kn.addResourceBundle("en","translation",{success:"Success",error:"Error",errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Should contain upper and lower-case English letters, at least one digit and no spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"}}),kn.addResourceBundle("tr","translation",{success:"Başarılı",error:"Hata",errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"En az bir rakam, büyük-küçük harf olmalıdır ve boşluk kullanılmamalıdır",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Harf, sayı ve bazı özel karakterlerden oluşmalıdır (-_). Boşluk kullanılmamalıdır",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"}});export{OS as ALink,_k as Accordion,Lg as AddDefaultThemeStyle,Ig as AddZero,CE as Alert,im as ArrowIcon,am as BackToTop,PO as BackTop,ru as Button,jk as Calendar,mC as Card,$g as CheckFileURL,Dm as Checkbox,sm as Checkmark,zg as ChunkArray,FS as Collapse,te as ConsoleLog,Cg as ConvertCurrency,qk as DatePicker,_g as DetermineNewHeight,Sg as DetermineNewWidth,jg as FileChecker,Un as FileExtensions,Yn as FileTypes,Da as FindSelector,sk as Form,Ug as FormatBytes,Ag as GetByCurrency,Eg as GetCountryCodeByCurrencyCode,Og as GetCountryCodeByLanguage,Dg as GetCurrencyFormat,Tg as GetCurrencySymbol,Pg as GetDecimalByCurrency,Vg as GetTypeByFileType,Xg as H1,nm as H2,em as H3,tm as H4,wg as ITDContext,kg as ITDProvider,Cd as Image,fE as InlineSelect,lm as InlineSelectArrow,pS as Input,Fg as IsValidJSON,rm as LockIcon,Ou as ModalManager,$n as ModalState,ug as Notification,fm as Picture,qS as Radio,Rg as RemoveUnits,EO as Result,Rw as Select,Yc as Spin,RO as Status,_S as Switch,bC as Table,dC as Tabs,sw as TinyScrollbar,xg as Tooltip,cm as Trash,Yg as UniUpperCase,Mg as UpdateThemeStyle,pO as Upload,om as UploadIcon,Bg as Wait,dm as ZoomIn,um as ZoomOut,oe as useAddExternalCSS,ja as useComponentSize,za as useConnectionStatus,ie as useConstructor,$a as useCoreFetch,Ta as useCreateDynamicStyle,Pa as useCreateStyledStyle,Ia as useMultiQuery,La as useOnClickOutside,Ma as useOnESCKeyDown,Ra as useOnResize,re as useReCaptcha,Fa as useSingleQuery};
|
|
902
|
+
`,fE=({label:n="",value:e=[],children:t=null,single:r=!1,minWidth:o=0,className:a="",onChange:d=null})=>{const u=l(null),[f,h]=s(!1),[p,g]=s([]),[v,b]=s("");c((()=>{e&&e.length>0&&t.length>0&&(g(e),x.map(t,(n=>{n.props.value===e[0]&&b(n.props.children)})))}),[e,t]),La(u,(()=>{h(!1)}));const y=(n,e)=>{if(d?d(n,e):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),r)g(n),b(e);else{const e=n[n.length-1];g(e||[])}};return i.createElement(uE,{className:(()=>{let n="itd-inline-select";return f&&(n+=" itd-inline-select-open"),""!==a&&(n+=" "+a),n})(),ref:u},i.createElement(dE,{onChange:n=>{h(n)},isOpen:f,count:p.length,single:r,label:(()=>{let e=r||!r&&1===p.length?v:n;return""===e?"··········":e})()}),i.createElement(oE,{onChange:y,value:p,isOpen:f,single:r,minWidth:o},x.map(t,(n=>{if(n&&n.hasOwnProperty("type")&&null!==n.type&&void 0!==n.type)return n.type===rE?m(n,{...n.props,onChange:y,single:r}):void 0}))))};fE.Option=rE;var hE,pE,gE,mE,vE,bE,yE,xE,wE,kE=Nc.div(vE||(vE=Zn(["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"],["\n\n display: flex;\n align-items: center;\n gap: 10px;\n\n padding: 15px;\n border-radius: 6px;\n font-weight: 500;\n\n svg {\n width: 16px;\n height: 16px;\n }\n \n /* ------------------------ */\n // SUCCESS\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // INFO\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // WARNING\n /* ------------------------ */\n ","\n\n /* ------------------------ */\n // ERROR\n /* ------------------------ */\n ","\n \n"])),(function(){return Ec(hE||(hE=Zn(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n color: #34a059;\n border: 1px solid #8adea7;\n \n }\n "])))}),(function(){return Ec(gE||(gE=Zn(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n color: #717ec8;\n border: 1px solid #cfddff;\n \n }\n "])))}),(function(){return Ec(mE||(mE=Zn(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n color: #808d35;\n border: 1px solid #b8dd7b;\n \n }\n "])))}),(function(){return Ec(pE||(pE=Zn(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n color: #f8285a;\n border: 1px solid #e6a9a9;\n\n }\n "])))})),_E=Nc.span(bE||(bE=Zn(["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"],["\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n display: flex;\n align-self: flex-start;\n"]))),SE=Nc.span(yE||(yE=Zn(["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"],["\n font-weight: 400;\n font-size: 13px;\n line-height: 15px;\n"]))),EE=Nc.span(xE||(xE=Zn(["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"],["\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n height: 100%;\n gap: ",";\n\n"])),(function(n){return n.$noTitle?0:"5px"})),OE=Nc.div(wE||(wE=Zn(["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"],["\n\n width: 16px;\n min-width: 16px;\n height: 100%;\n\n display: flex;\n align-self: flex-start;\n \n svg {\n display: flex;\n align-self: flex-start;\n }\n\n"]))),CE=function(t){var r=t.type,i=void 0===r?"info":r,o=t.size,a=void 0===o?"small":o,s=t.title,l=void 0===s?"":s,c=t.className,d=void 0===c?"":c,u=t.children,f=void 0===u?"":u;return e(kE,{className:function(){var n="itd-alert";return n+=" itd-alert-"+i,n+=" itd-alert-"+("x-small"===a?"xs":"small"===a?"sm":"medium"===a?"md":"default"===a?"df":"large"===a?"lg":"x-large"===a?"xlg":"df"),""!==d&&(n+=" "+d),n}(),children:[n(OE,{children:n(O,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"})}),e(EE,{$noTitle:!l,children:[""!==l?n(_E,{children:l}):null,""!==f?n(SE,{children:f}):null]})]})};CE.displayName="ITD-Alert";var NE=Nc.div(zE||(zE=Zn(['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n'],['\n\n position: relative;\n width: 100%;\n\n input[type="file"] {\n\n width: 100%;\n height: 100%;\n position: absolute;\n opacity: 0;\n \n }\n\n']))),AE=Nc.div(jE||(jE=Zn(["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"],["\n\n >img {\n max-width: 70%;\n }\n\n transition-property: border-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n border: 1px solid ",";\n border-radius: 6px;\n padding: ",";\n //overflow: hidden;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 100px;\n min-height: 100px;\n\n position: relative;\n\n"])),(function(n){return n.$hasError?"#f8285a":n.$showBorder&&!n.$disabled?"#252f4a60":"#DBDFE9"}),(function(n){return n.$padding+"px"})),TE=Nc.label($E||($E=Zn(["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"],["\n\n display: block;\n\n outline: ",";\n outline-offset: 1px;\n border-radius: 6px;\n\n transition-property: outline-color;\n transition-duration: 500ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n"])),(function(n){return n.$showFocus?"2px solid #1b84ff":"2px solid #1b84ff00"})),DE=Nc.div(YE||(YE=Zn(["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"],["\n\n position: absolute;\n top: 50%;\n right: 15px;\n transform: translateY(-50%);\n\n display: flex;\n flex-direction: row;\n gap: 10px;\n\n"]))),PE=Nc.div(UE||(UE=Zn(["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"],["\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n"]))),LE=Nc.div(VE||(VE=Zn(["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"],["\n\n display: flex;\n justify-content: center;\n align-items: center;\n padding: ",";\n\n img {\n width: ",";\n height: ",";\n }\n\n"])),(function(n){return n.$padding?"string"==typeof n.$padding?n.$padding:n.$padding+"px":"100%"}),(function(n){return n.$width?"string"==typeof n.$width?n.$width:n.$width+"px":"100%"}),(function(n){return n.$height?"string"==typeof n.$height?n.$height:n.$height+"px":"100%"})),ME=Nc.div(HE||(HE=Zn(["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"],["\n\n transition-property: all;\n transition-duration: 0ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n transition-delay: 0ms;\n //animation-direction: reverse;\n\n position: absolute;\n top: 150%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n\n display: flex;\n flex-direction: column;\n width: 100%;\n \n span {\n &:nth-child(1) {\n color: #000000;\n font-weight: 600; \n font-size: 14px;\n text-align: center;\n }\n &:nth-child(2) {\n color: #00000090;\n font-weight: 500;\n font-size: 12px;\n text-align: center;\n }\n }\n\n ","\n\n"])),(function(n){return n.$isHover&&Ec(BE||(BE=Zn(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),FE=Nc.div(qE||(qE=Zn(["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n animation-direction: reverse;\n\n width: 100%;\n height: 100%;\n background-color: #ffffff00;\n backdrop-filter: blur(0px);\n border-radius: 5px;\n overflow: hidden;\n\n ","\n\n"])),(function(n){return n.$isHover&&Ec(WE||(WE=Zn(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),IE=Nc.div(ZE||(ZE=Zn(["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"],["\n\n position: absolute;\n\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n\n width: 100%;\n height: 100%;\n background-color: #1b84ff00;\n border-radius: 5px;\n overflow: hidden;\n\n span {\n\n color: #ffffff00;\n z-index: 1;\n pointer-events: none;\n\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n }\n \n ","\n\n"])),(function(n){var e=n.$isActive,t=n.$complete,r=n.$error;return e&&Ec(GE||(GE=Zn(["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "],["\n background-color : ",";\n span {\n color: #ffffff;\n }\n "])),t?"#91DB7D":r?"#ff0000":"#1b84ff")})),RE=Nc.div(QE||(QE=Zn(['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"],['\n transition-property: all;\n transition-duration: 400ms;\n transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);\n \n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n content: "";\n\n background-color : ',";\n width : ",";\n"])),(function(n){return n.$complete?"#91DB7D":n.$error?"#ff0000":"#54A3FF"}),(function(n){return n.$progress+"%"}));Nc.div(KE||(KE=Zn(["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"],["\n\n position: absolute;\n border: 1px solid #f8285a;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n border-radius: 6px;\n top: -1px;\n left: -1px;\n pointer-events: none;\n z-index: 1;\n\n"])));var zE,jE,$E,YE,UE,VE,BE,HE,WE,qE,GE,ZE,QE,KE,JE,XE,nO,eO,tO,rO,iO,oO,aO,sO,lO,cO,dO,uO=Nc.div(JE||(JE=Zn(['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n'],['\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n color: #000000CC;\n font-size: 10px;\n cursor: pointer;\n position: relative;\n\n &:hover {\n color: #000000;\n }\n\n &[data-icon="i"] {\n &::before {\n padding: 4px;\n border-radius: 50px;\n }\n }\n\n']))),fO=Nc(uO)(XE||(XE=Zn(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),hO=Nc.span(nO||(nO=Zn(['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n'],['\n \n position: absolute;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n font-size: 12px;\n line-height: 14px;\n\n border-radius: 5px;\n padding: 10px 7px;\n right: -14px;\n bottom: 32px;\n color: #ffffff;\n background: #f8285a;\n width: max-content;\n max-width: 210px;\n\n z-index: 2;\n\n &::after {\n\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n bottom: -6px;\n right: 17px;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 10px solid #f8285a;\n\n }\n\n']))),pO=b((function(t,r){var i=t.resultFileName,o=void 0===i?null:i,a=t.action,d=void 0===a?"":a,u=t.filePath,f=void 0===u?"":u,h=t.binaryName,p=void 0===h?"file":h,g=t.showDeleteIcon,m=void 0!==g&&g,v=t.showPreviewIcon,b=void 0!==v&&v,y=t.padding,x=void 0===y?10:y,k=t.fileHeight,_=void 0===k?"100%":k,S=t.previewFileWidth,E=void 0===S?"100%":S,O=t.previewFileHeight,C=void 0===O?"100%":O,N=t.previewFilePadding,A=void 0===N?"0":N,T=t.requestMethod,D=void 0===T?"put":T,P=t.maxFileSize,L=void 0===P?1024:P,M=t.disabled,F=void 0!==M&&M,I=t.extraFormData,R=void 0===I?{}:I,z=t.extraQueryString,j=void 0===z?{}:z,$=t.extraHeader,Y=void 0===$?{}:$,U=t.fileTypes,V=void 0===U?[Yn.JPG,Yn.PNG,Yn.SVG,Yn.PDF]:U,B=t.removeAction,H=void 0===B?"":B,W=t.removeExtraFormData,q=void 0===W?{}:W,G=t.removeExtraQueryString,Z=void 0===G?{}:G,Q=t.removeExtraHeader,K=void 0===Q?{}:Q,J=t.onUpdate,X=t.onUploadSuccess,nn=t.onUploadFailed,en=t.onRemoveFileSuccess,tn=t.onRemoveFileFailed,rn=l(null),on=ug.useNotifications().addNotification,an=Ou.useModal().showModal,sn=$a(),ln=sn.fetch,cn=sn.cancel,dn=jn().t,un=s(!1),fn=un[0],hn=un[1],pn=s(!1),gn=pn[0],mn=pn[1],vn=s(".svg, .png, .jpg"),bn=vn[0],yn=vn[1],xn=s(!1),wn=xn[0],kn=xn[1],_n=s(!1),Sn=_n[0],En=_n[1],On=s(!1),Cn=On[0],Nn=On[1],An=s(null),Tn=An[0],Dn=An[1],Pn=s(null),Ln=Pn[0],Mn=Pn[1],Fn=s(""),In=Fn[0],Rn=Fn[1],zn=s(!1),$n=zn[0],Un=zn[1],Vn=s(!1),Bn=Vn[0],Gn=Vn[1],Zn=s(null),Qn=Zn[0],Kn=Zn[1],Jn=s(!1),Xn=Jn[0],ne=Jn[1],ee=s(null),te=ee[0],re=ee[1];c((function(){return function(){cn()}}),[]),c((function(){mn(F)}),[F]),c((function(){Mn(f?f.split("?")[0]:"")}),[f]),c((function(){null!==Ln&&(void 0!==Ln?ae():hn(!1))}),[Ln]),c((function(){var n=[];V.map((function(e){n.push(Vg(e))})),yn(n.join(", "))}),[V]);var ie=function(n,e){on({title:n,description:e,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},oe=function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),J&&J(n,e,t)};w(r,(function(){return{setFocus:function(){Nn(!0)},reset:function(n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),se(),Mn(null),Rn(""),oe("",n,e)},setValue:function(n,e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),Mn(n),oe(n,e,t)},getValue:function(){return Ln||""},setError:function(n){Rn(n)},forceUpdate:function(){oe(Ln||"")},clear:function(){Mn("")}}}));var ae=function(){return Wn(void 0,void 0,void 0,(function(){var n;return qn(this,(function(e){switch(e.label){case 0:return n=!1,Ln?(console.time("Checking file completed in"),[4,$g(Ln)]):[3,2];case 1:n=e.sent(),Dn(n),n?oe(Ln):oe("",!0,!0),fn||hn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==Ln||fn||hn(!0),""===Ln&&fn&&oe("",!0,!0),[2]}}))}))},se=function(){re(null),Kn(null),ne(!1),Dn(null)},le=function(){return Wn(void 0,void 0,void 0,(function(){return qn(this,(function(e){return mn(!0),an({content:n("div",{children:dn("uploader.areYouSureToDeleteThisFile")}),title:dn("uploader.removeFile"),okButtonText:dn("uploader.yes"),cancelButtonText:dn("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:function(){return H?ln({action:H,params:q,queries:Z,headers:K,onFetched:function(n){n.data.success?(se(),oe("",!0,!0),en&&en(n.data.data)):tn&&tn()},onError:function(){tn&&tn()}}):(se(),oe("",!0,!0),en&&en()),mn(!1),!0},onCancel:function(){return mn(!1),!0}}),[2]}))}))},ce=function(n){n.preventDefault(),Bn||En(!0)},de=function(n){n.preventDefault(),Bn||En(!1)},ue=function(n){n.preventDefault(),Bn||(En(!1),n.dataTransfer&&0!==n.dataTransfer.files.length?pe(n.dataTransfer.files[0]):console.log(dn("uploader.browserDoesntSupportDND")))},fe=function(n){En(!1);var e=n.target.files[0];pe(e)},he=function(n){return Wn(void 0,[n],void 0,(function(n){var e=n.path,t=n.errorMessage,r=n.errorCode;return qn(this,(function(n){switch(n.label){case 0:return[4,Bg(1e3)];case 1:return n.sent(),Kn(null),Gn(!1),[4,Bg(1500)];case 2:return n.sent(),ne(!1),e?X&&X(e):t&&nn&&nn(t,r||0),[2]}}))}))},pe=function(n){if(n&&function(n){return!!V.includes(n.type)||(ie(dn("uploader.error"),dn("uploader.fileFormatError",{fileFormat:bn})),!1)}(n)&&function(n){return!(n.size>1024*L&&(ie(dn("uploader.error"),dn("uploader.fileSizeError",{fileSize:Ug(1024*L)})),1))}(n)){if(o){var e=Vg(n.type);n=new File([n],o+e,{type:e,lastModified:n.lastModified})}!function(n){Wn(void 0,void 0,void 0,(function(){var e;return qn(this,(function(t){return n?((e=new FormData).append(p,n),o&&e.append("name",o),Object.keys(R).forEach((function(n){e.append(n,R[n])})),ln({action:d,requestMethod:D,params:e,queries:j,headers:Y,onFetched:function(n){n.data.success?(re({message:dn("uploader.fileUploadSuccess"),status:"success"}),ne(!0),Mn(n.data.data.url),he({path:n.data.data.url})):(re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),he({errorMessage:dn("uploader.fileUploadFailed")}))},onError:function(n,e){re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),he({errorMessage:n,errorCode:e})},onProgress:function(n){Kn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?Ug(n.bytes):"",total:n.total?Ug(n.total):""})}}),[2]):[2]}))}))}(n),Gn(!0)}},ge=function(){mn(!0),an({content:n(LE,{className:"itd-upload-preview-content",$width:E,$height:C,$padding:A,children:n(Cd,{src:Ln})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:function(){return mn(!1),!0}})},me=function(){if(m&&Ln&&!Bn&&Tn)return n("span",{children:n(ru,{variant:"solid",size:"small",type:"button",circle:!0,onClick:le,disabled:gn,icon:n(cm,{width:16,height:16}),className:"itd-upload-delete-button"})})},ve=function(){if(b&&Ln&&!Bn&&Tn)return n("span",{children:n(ru,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ge,disabled:gn,icon:n(dm,{width:16,height:16}),className:"itd-upload-preview-button"})})},be=n("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:n("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:e("g",{id:"ErrorGroup",fillRule:"nonzero",children:[n("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),n("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),ye=function(){if(""!==In&&!Bn)return e(fO,Hn({},{className:"itd-upload-failed",onPointerOver:function(){return Un(!0)},onPointerOut:function(){return Un(!1)}},{children:[$n?n(hO,{className:"itd-upload-error-tooltip",children:In}):null,be]}))},xe=function(){if(fn)return null===Tn?n(om,{width:30,height:30}):!1===Tn?n(fm,{width:40,height:40}):n(Cd,{src:Ln,height:_})};return function(t){return void 0===t&&(t=Oe("upload-")),e(NE,{className:"itd-upload",children:[n("input",{type:"file",id:t,accept:bn,onChange:fe,onFocus:function(){return Nn(!0)},onBlur:function(){return Nn(!1)},onClick:function(){var n;null===(n=rn.current)||void 0===n||n.blur()},disabled:Bn||gn,ref:rn}),n(TE,{htmlFor:t,$showFocus:Cn,className:"itd-upload-label",children:e(AE,{$showBorder:(Sn||wn)&&!Bn,$padding:x,$disabled:F,$hasError:""!==In&&!Bn,className:"itd-upload-content",children:[xe(),e(IE,{className:"itd-upload-status",$isActive:Bn,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status),children:[n(RE,{className:"itd-upload-status-box",$progress:Qn?Qn.progress:0,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status)}),n("span",{className:"itd-upload-status-message",children:dn(Xn||te?String(null==te?void 0:te.message):"uploader.fileUploading")}),n("span",Qn?{className:"itd-upload-status-info",children:dn("uploader.info",{total:Qn.total,estimated:Qn.estimated})}:{className:"itd-upload-status-calculating",children:dn("uploader.calculating")})]}),(r=(wn||Sn)&&!Bn&&!gn,n(FE,{onPointerOver:function(){!Sn&&kn(!0)},onPointerOut:function(){!Sn&&kn(!1)},onDragOver:ce,onDragLeave:de,onDrop:ue,$isHover:r,className:"itd-upload-overlay",children:e(ME,{$isHover:r,className:"itd-upload-overlay-content",children:[n("span",{className:"itd-upload-header",children:dn("uploader.header")}),n("span",{className:"itd-upload-hint",children:dn("uploader.hint")})]})})),e(DE,{children:[e(PE,{className:"itd-upload-icons",children:[me(),ve()]}),ye()]})]})})]});var r}()})),gO=Nc.section(eO||(eO=Zn(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),mO=Ac(tO||(tO=Zn(["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"],["\n 0% { transform: scale(.5); opacity: 0;}\n 50% { transform: scale(1.05); opacity: 1;}\n 75% { transform: scale(0.95); opacity: 1;}\n 100% { transform: scale(1); opacity: 1;}\n"]))),vO=Nc.div(rO||(rO=Zn(["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"],["\n\n animation: "," 0.5s ease-out;\n transition: all 0.5s ease-out;\n transform-origin: 50% 50%;\n opacity: 1;\n\n ","\n\n"])),mO,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),bO=Nc.div(iO||(iO=Zn(["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"],["\n\n padding: 70px 40px;\n border-radius: 6px;\n width: ",";\n background-color: ",";\n\n ","\n \n"])),(function(n){return"true"===n.$fill?"100%":"600px"}),(function(n){return"default"===n.$type?"#1D2649":"#0E153180"}),(function(n){if(n.$autoCenter)return"\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n "})),yO=Nc.div(oO||(oO=Zn(["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"],["\n display: flex;\n justify-content: center;\n\n width: 100%;\n min-height: 96px;\n margin-bottom: 20px;\n"]))),xO=Nc.div(aO||(aO=Zn(["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"],["\n display: flex;\n justify-content: center;\n margin-top: 20px;\n\n a {\n min-width: 150px;\n\n &:not(:last-child) {\n margin-right: 20px;\n }\n\n }\n"]))),wO=Nc.div(sO||(sO=Zn(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),kO=Nc.div(lO||(lO=Zn(["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"],["\n display: grid;\n grid-gap: 10px;\n\n img {\n width: 96px;\n height: 96px;\n }\n"]))),_O=Nc.div(cO||(cO=Zn(["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff;\n font-size: 18px;\n font-weight: 600;\n max-width: 80%;\n margin: 0 auto;\n"]))),SO=Nc.div(dO||(dO=Zn(["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"],["\n text-align: center;\n color: #ffffff99;\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n max-width: 80%;\n margin: 0 auto;\n"]))),EO=function(t){var r=t.image,i=void 0===r?"":r,o=t.title,a=void 0===o?"":o,l=t.description,d=void 0===l?"":l,u=t.extra,f=void 0===u?null:u,h=t.footer,p=void 0===h?null:h,g=t.type,m=void 0===g?"default":g,v=t.fill,b=void 0!==v&&v,y=t.autoCenter,x=void 0===y||y,w=s(""),k=w[0],_=w[1];c((function(){""!==i&&_(i)}),[i]);var S,E=function(){if(f)return n(xO,{className:"itd-result-extras",children:f})},O=function(){if(p)return n(wO,{className:"itd-result-footer",children:p})};return n(gO,{className:(S="itd-result",S+=" itd-result-"+m,x&&(S+=" itd-result-auto-center"),b&&(S+=" itd-result-fill"),S),children:n(vO,{$autoCenter:x,className:"itd-result-content-wrapper",children:e(bO,{className:"itd-result-content",$autoCenter:x,$type:m,$fill:b.toString(),children:[e(kO,{className:"itd-result-body",children:[n(yO,{className:"itd-image-wrapper",children:n(Cd,{src:k})}),n(_O,{className:"itd-result-title",children:a}),n(SO,{className:"itd-result-sub-title",children:d})]}),E(),O()]})})})};EO.displayName="ITD-Result";var OO,CO,NO,AO=Nc.div(OO||(OO=Zn(["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "],["\n position: fixed;\n bottom: 80px;\n right: 30px;\n visibility: hidden;\n "]))),TO=Nc.a(CO||(CO=Zn(["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "],["\n\n visibility: ",";\n animation: "," 0.5s;\n\n display: block;\n transition: fill .3s ease-out;\n cursor: pointer;\n fill: #ffffff80;\n\n &:hover {\n fill: #3396fb;\n }\n \n "])),(function(n){return n.$show?"visible":"hidden"}),(function(n){return n.$show?DO:"none"})),DO=Ac(NO||(NO=Zn(["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"],["\n 0% { transform: scale(.2) }\n 50% { transform: scale(1.1) }\n 75% { transform: scale(0.9) }\n 100% { transform: scale(1) }\n"])));function PO(e){var t=e.children,r=void 0===t?null:t,i=s(!1),o=i[0],a=i[1];c((function(){return document.addEventListener("scroll",l),function(){document.removeEventListener("scroll",l)}}),[]);var l=function(){a(document.body.scrollTop>window.innerHeight)};return n(AO,{className:"itd-back-to-top",children:n(TO,{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},$show:o,children:r||n(am,{width:30,height:30})})})}var LO,MO,FO={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},green:{background:"#DFFFEA",text:"#17C653"},yellow:{background:"#FFF8DD",text:"#F6C000"},red:{background:"#FFEEF3",text:"#F8285A"},brown:{background:"#FFF3F1",text:"#CB6F5B"},lavender:{background:"#FCF3FF",text:"#AB60C0"},blue:{background:"#F1F4FF",text:"#3256D9"},pink:{background:"#FFEEF6",text:"#E25698"},violet:{background:"#F5F1FF",text:"#7239EA"},"filled-red":{background:"#F8285A",text:"#F7EFF1"},"filled-yellow":{background:"#F6C000",text:"#FBFAF4"},"filled-pink":{background:"#CC79E3",text:"#F7F3F9"},"filled-blue":{background:"#1B84FF",text:"#EDF0F4"},"filled-green":{background:"#17C653",text:"#F5FAF6"},"filled-purple":{background:"#C417C6",text:"#F6F0F6"},"filled-black":{background:"#071437",text:"#F1F3F7"}},IO=Nc.div(MO||(MO=Zn(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"],["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n\n border-radius: 4px;\n\n span {\n text-align: center;\n padding: 4px 10px;\n font-size: 11px;\n font-weight: 600;\n user-select: none;\n }\n\n ","\n\n"])),(function(n){return function(n){return Ec(LO||(LO=Zn(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),FO[n].background,FO[n].text)}(n.$status)}));function RO(e){var t,r=e.variant,i=void 0===r?"green":r,o=e.children,a=void 0===o?"":o,s=e.className,l=void 0===s?"":s;return n(IO,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,""!==l&&null!==l&&(t+=" "+l),t),children:n("span",{children:a})})}var zO,jO,$O,YO,UO,VO,BO,HO,WO,qO,GO,ZO,QO,KO,JO,XO,nC,eC,tC,rC,iC,oC,aC,sC=Nc.div(zO||(zO=Zn(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),lC=Nc.div($O||($O=Zn(["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"],["\n\n height: 100%;\n\n ul {\n\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n list-style: none;\n\n margin: 0;\n padding: 0;\n height: 100%;\n\n li {\n\n display: flex;\n align-items: stretch;\n\n height: 100%;\n\n &:not(:last-child) { \n margin-right: 30px;\n }\n\n a {\n\n span {\n font-weight: 500;\n font-size: 14px;\n }\n \n background-color: transparent;\n border: 0;\n border-bottom: 2px solid #1b84ff00;\n color: #99a1b7;\n transition: color .2s ease;\n display: flex;\n align-items: center;\n height: 100%;\n cursor: pointer;\n\n transition: all .3s ease-out;\n\n &:hover:not(&.active) {\n color: #99a1b7;\n border-color: #1b84ff;\n }\n\n &.active {\n color: #1b84ff;\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Ec(jO||(jO=Zn(["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-size: 15px;\n font-weight: 600;\n }\n "])))})),cC=Nc.div(YO||(YO=Zn(["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n\n font-size: 13px;\n font-weight: 500;\n color: #99a1b7;\n \n"]))),dC=function(t){var r=t.tabs,i=void 0===r?[]:r,o=t.activeTabKey,a=void 0===o?"":o,l=t.variant,c=void 0===l?"default":l,d=t.height,u=t.onTabChange,f=s(a),h=f[0],p=f[1],g=function(n,e){return t=!1,i.map((function(n){n.link&&(t=!0)})),t?"":h?h===n?"active":"":a&&0===e?"active":"";var t},m=function(n){p(n),u&&u(n)},v=function(e,t){return n("a",{className:g(e.key,t),onClick:function(){return m(e.key)},children:n("span",{children:e.tab})})},b=function(e,t){return n(P,{className:g(e.key,t),onClick:function(){return m(e.key)},to:e.link?e.link:"",children:n("span",{children:e.tab})})};return e(sC,{$height:d,className:"itd-tabs",children:[n(lC,{$isBold:"bold"===c,children:n("ul",{children:i.map((function(e,t){return n("li",{children:e.link?b(e,t):v(e,t)},e.key)}))})}),function(){var e=i.filter((function(n){return n.key===h}))[0];if(e&&e.children)return n(cC,{className:"itd-content-body",children:e.children})}()]})},uC=Nc.div(UO||(UO=Zn(["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"],["\n\n position: relative;\n background-color: #ffffff;\n border-radius: 8px;\n border: 1px solid #F1F1F4;\n box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);\n\n min-width : ",";\n min-height : ",";\n\n display: flex;\n flex-direction: column;\n\n .itd-spin {\n height: 100%;\n >div:nth-child(1) {\n height: 100%;\n display: grid;\n grid-template-rows: ",";\n }\n }\n\n .itd-spin-spinner div {\n div { border-color: #000000 transparent transparent transparent; }\n }\n \n"])),(function(n){return n.$minWidth?n.$minWidth+"px":"200px"}),(function(n){return n.$minHeight?n.$minHeight+"px":"100px"}),(function(n){return n.$hasHeader?"75px 1fr":"1fr"})),fC=Nc.div(BO||(BO=Zn(["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"],["\n\n font-size: 18px;\n color: #071437;\n font-weight: 600;\n padding: 0 30px;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ","\n\n >div {\n display: flex;\n align-items: center;\n }\n\n"])),(function(n){if(void 0===n.$showSeparator||!0===n.$showSeparator)return Ec(VO||(VO=Zn(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),hC=Nc.div(HO||(HO=Zn(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),pC=Nc.div(WO||(WO=Zn(["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n \n font-size: 13px;\n font-weight: 500;\n color: #78829D;\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"])),(function(n){return n.$padding?n.$padding:"30px"})),gC=Nc.div(qO||(qO=Zn(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"],["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 10px;\n"]))),mC=function(t){var r=t.title,i=t.titleSeparator,o=t.extra,a=t.tabs,s=t.onTabChange,l=t.minWidth,d=t.minHeight,u=t.children,f=t.activeTabKey,h=void 0===f?"":f,p=t.updating,g=void 0!==p&&p,m=t.contentPadding,v=void 0===m?"30px":m;c((function(){}));var b=function(){if(o)return n(gC,{className:"itd-card-extra",children:o})},y=function(){if(a)return n(dC,{tabs:a,activeTabKey:h,onTabChange:function(n){return s&&s(n)}})},x=function(){if(r)return n(hC,{className:"itd-card-title",children:n(nm,{children:r})})},w=function(){return!!(r||o||a)};return n(uC,{className:"itd-card",$minWidth:l,$minHeight:d,$hasHeader:w(),children:e(Yc,{updating:g,children:[function(){if(w())return e(fC,{$showSeparator:i,className:"itd-card-header",children:[x(),y(),b()]})}(),function(){if(u)return n(pC,{className:"itd-card-body",$padding:v,children:u})}()]})})},vC=Nc.div(aC||(aC=Zn(["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n font-weight: 500;\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"],["\n\n table {\n \n width: 100%;\n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n thead {\n \n background-color: #FAFAFA;\n\n th {\n text-align: left;\n color: #071437;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n \n td:first-child, th:first-child {\n padding-left: 30px;\n }\n\n }\n \n td, th {\n\n font-weight: 500;\n\n ","\n\n ","\n\n }\n\n tr {\n\n display: table-row;\n border-top-width: 1px;\n border-top-color: #f1f1f4;\n border-bottom-width: 1px;\n border-bottom-color: #f1f1f4;\n\n td {\n color: #78829D;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n }\n \n }\n\n &.itd-table-bordered {\n\n tr {\n border-top: 1px solid #f1f1f4;\n border-bottom: 1px solid #f1f1f4;\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n td, th {\n border-left: 1px solid #f1f1f4;\n border-right: 1px solid #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n }\n\n }\n\n &.itd-table-dashed.itd-table-bordered {\n\n tr {\n border-top: 1px dashed #f1f1f4;\n border-bottom: 1px dashed #f1f1f4;\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n td, th {\n border-left: 1px dashed #f1f1f4;\n border-right: 1px dashed #f1f1f4;\n }\n\n }\n\n &:not(.itd-table-bordered) {\n\n thead tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n tbody tr:last-child {\n border-bottom-style: none;\n border-bottom-style: none;\n }\n\n &.itd-table-headless {\n tbody tr:first-child {\n border-top-style: none;\n border-top-style: none;\n }\n }\n\n }\n\n }\n\n"])),(function(n){return"x-small"===n.$size?Ec(GO||(GO=Zn(["\n padding-top: 5px;\n padding-bottom: 5px;\n font-size: 12px;\n "],["\n padding-top: 5px;\n padding-bottom: 5px;\n font-size: 12px;\n "]))):"small"===n.$size?Ec(ZO||(ZO=Zn(["\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 13px;\n "],["\n padding-top: 8px;\n padding-bottom: 8px;\n font-size: 13px;\n "]))):"medium"===n.$size?Ec(QO||(QO=Zn(["\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: 13px;\n "],["\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: 13px;\n "]))):"default"===n.$size?Ec(KO||(KO=Zn(["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "]))):"large"===n.$size?Ec(JO||(JO=Zn(["\n padding-top: 18px;\n padding-bottom: 18px;\n font-size: 14px;\n "],["\n padding-top: 18px;\n padding-bottom: 18px;\n font-size: 14px;\n "]))):"x-large"===n.$size?Ec(XO||(XO=Zn(["\n padding-top: 20px;\n padding-bottom: 20px;\n font-size: 15px;\n "],["\n padding-top: 20px;\n padding-bottom: 20px;\n font-size: 15px;\n "]))):Ec(nC||(nC=Zn(["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "],["\n padding-top: 15px;\n padding-bottom: 15px;\n font-size: 14px;\n "])))}),(function(n){return n.$noGaps?Ec(eC||(eC=Zn(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Ec(tC||(tC=Zn(["\n padding-left: 10px;\n padding-right: 10px;\n "],["\n padding-left: 10px;\n padding-right: 10px;\n "]))):"small"===n.$size||"medium"===n.$size||"default"===n.$size?Ec(rC||(rC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "]))):"large"===n.$size||"x-large"===n.$size?Ec(iC||(iC=Zn(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Ec(oC||(oC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))})),bC=function(t){var r,i=t.columns,o=t.data,a=t.size,s=void 0===a?"default":a,l=t.headless,c=void 0!==l&&l,d=t.bordered,u=void 0!==d&&d,f=t.dashed,h=void 0!==f&&f,p=t.noGaps,g=void 0!==p&&p,m=function(n){var e={};return"string"==typeof n.width?e.width=n.width:"number"==typeof n.width?e.minWidth=n.width+"px":e.width="auto",e};return n(vC,{$size:s,$noGaps:g,children:e("table",{className:(r="itd-table",c&&(r+=" itd-table-headless"),u&&(r+=" itd-table-bordered"),g&&(r+=" itd-table-no-gaps"),r+=h?" itd-table-dashed":" itd-table-solid"),children:[function(){if(!c)return n("thead",{children:n("tr",{children:i.map((function(e){return n("th",{style:m(e),children:e.title},String(e.key))}))})})}(),n("tbody",{children:o.map((function(e,t){return n("tr",{children:i.map((function(r){return n("td",{style:m(r),children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null},String(r.key))}))},String(e.key))}))})]})})};kn.use(Fn).init({preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["translation"],defaultNS:["translation"],initImmediate:!1,debug:!1,resources:{}}),kn.addResourceBundle("en","translation",{success:"Success",error:"Error",errors:{required:"This field is required!",minLength:"Should contain at least {{- length}} characters",maxLength:"Is too long. Max size is {{- length}}",passwordRule:"Should contain upper and lower-case English letters, at least one digit and no spaces.",invalidEmailAddress:"Invalid email address",passwordsDontMatch:"The two passwords that you entered do not match!",usernameRule:"Only English letters, digits and symbols (-_). No space is allowed",wrongTCIdentity:"Wrong TC Identity Number",fieldMustBeTheSame:"This field must be the same as: {{- fields}}"},uploader:{header:"Drag and drop an file",hint:"or Browse to choose a file",fileUploading:"File uploading...",info:"Total: {{- total}} - {{- estimated}} s remaining.",delete:"Delete",preview:"Preview",error:"Error",fileFormatError:"You can only upload {{fileFormat}} file",fileSizeError:"File must smaller than {{fileSize}}",fileUploadSuccess:"File successfully uploaded.",fileUploadFailed:"File upload failed!",removeFileSuccess:"File successfully delete!",browserDoesntSupportDND:"Browser doesn't support drag and drop!",calculating:"Calculating...",removeFile:"Remove File",areYouSureToDeleteThisFile:"Are you sure to delete this file?",yes:"Yes",no:"No"}}),kn.addResourceBundle("tr","translation",{success:"Başarılı",error:"Hata",errors:{required:"Bu alan zorunludur!",minLength:"En az {{- length}} karakter olmalıdır",maxLength:"Çok uzun. Maks uzunluk {{- length}} karakter olmalıdır.",exactLength:"This field must be {{- length}} characters long.",passwordRule:"En az bir rakam, büyük-küçük harf olmalıdır ve boşluk kullanılmamalıdır",invalidEmailAddress:"Geçersiz e-posta adresi",passwordsDontMatch:"Girdiğiniz şifreler birbirleriyle uyuşmuyor!",usernameRule:"Harf, sayı ve bazı özel karakterlerden oluşmalıdır (-_). Boşluk kullanılmamalıdır",wrongTCIdentity:"TC Kimlik Numarası Yanlış",fieldMustBeTheSame:"Bu alan şunlarla aynı olmalıdır: {{- fields}}"},uploader:{header:"Bir resmi sürükleyip bırakın",hint:"ya da bir dosya seçmek için tıklayın.",fileUploading:"Dosya yükleniyor...",info:"Toplam: {{- total}} - {{- estimated}} sn kaldı.",delete:"Sil",preview:"Önizleme",error:"Hata",fileFormatError:"Yalnızca {{fileFormat}} dosyası yükleyebilirsiniz.",fileSizeError:"Dosya boyutu {{fileSize}}'den küçük olmalıdır.",fileUploadSuccess:"Dosya başarıyla yüklendi.",fileUploadFailed:"Dosya yüklenemedi!",removeFileSuccess:"Dosya başarıyla silindi!",browserDoesntSupportDND:"Tarayıcı taşı&bırak özelliğini desteklemiyor!",calculating:"Hesaplanıyor...",removeFile:"Dosya Silme",areYouSureToDeleteThisFile:"Bu dosyayı silmek istediğinize emin misiniz?",yes:"Evet",no:"Hayır"}});export{OS as ALink,_k as Accordion,Lg as AddDefaultThemeStyle,Ig as AddZero,CE as Alert,im as ArrowIcon,am as BackToTop,PO as BackTop,ru as Button,jk as Calendar,mC as Card,$g as CheckFileURL,Dm as Checkbox,sm as Checkmark,zg as ChunkArray,FS as Collapse,te as ConsoleLog,Cg as ConvertCurrency,qk as DatePicker,_g as DetermineNewHeight,Sg as DetermineNewWidth,jg as FileChecker,Un as FileExtensions,Yn as FileTypes,Da as FindSelector,sk as Form,Ug as FormatBytes,Ag as GetByCurrency,Eg as GetCountryCodeByCurrencyCode,Og as GetCountryCodeByLanguage,Dg as GetCurrencyFormat,Tg as GetCurrencySymbol,Pg as GetDecimalByCurrency,Vg as GetTypeByFileType,Xg as H1,nm as H2,em as H3,tm as H4,wg as ITDContext,kg as ITDProvider,Cd as Image,fE as InlineSelect,lm as InlineSelectArrow,pS as Input,Fg as IsValidJSON,rm as LockIcon,Ou as ModalManager,$n as ModalState,ug as Notification,fm as Picture,qS as Radio,Rg as RemoveUnits,EO as Result,Rw as Select,Yc as Spin,RO as Status,_S as Switch,bC as Table,dC as Tabs,sw as TinyScrollbar,xg as Tooltip,cm as Trash,Yg as UniUpperCase,Mg as UpdateThemeStyle,pO as Upload,om as UploadIcon,Bg as Wait,dm as ZoomIn,um as ZoomOut,oe as useAddExternalCSS,ja as useComponentSize,za as useConnectionStatus,ie as useConstructor,$a as useCoreFetch,Ta as useCreateDynamicStyle,Pa as useCreateStyledStyle,Ia as useMultiQuery,La as useOnClickOutside,Ma as useOnESCKeyDown,Ra as useOnResize,re as useReCaptcha,Fa as useSingleQuery};
|