@inntechcorp/it-design 2.0.37 → 2.0.39

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.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=h,r.unix=co,r.
899
899
  position: relative;
900
900
  width: max-content;
901
901
 
902
- `,NE=({label:n="",value:e=[],children:t=null,single:r=!1,minWidth:o=0,className:a="",onChange:d=null})=>{const u=l(null),[f,p]=s(!1),[h,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,(()=>{p(!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(CE,{className:(()=>{let n="itd-inline-select";return f&&(n+=" itd-inline-select-open"),""!==a&&(n+=" "+a),n})(),ref:u},i.createElement(OE,{onChange:n=>{p(n)},isOpen:f,count:h.length,single:r,label:(()=>{let e=r||!r&&1===h.length?v:n;return""===e?"··········":e})()}),i.createElement(wE,{onChange:y,value:h,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===yE?m(n,{...n.props,onChange:y,single:r}):void 0}))))};NE.Option=yE;var AE,DE,TE,PE,LE,ME,FE,IE,RE,zE=Nc.div(LE||(LE=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(AE||(AE=Zn(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n border: 1px solid #8adea7;\n\n span, svg {\n color: #34a059;\n }\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n border: 1px solid #8adea7;\n\n span, svg {\n color: #34a059;\n }\n \n }\n "])))}),(function(){return Ec(TE||(TE=Zn(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n border: 1px solid #cfddff;\n\n span, svg {\n color: #717ec8;\n }\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n border: 1px solid #cfddff;\n\n span, svg {\n color: #717ec8;\n }\n \n }\n "])))}),(function(){return Ec(PE||(PE=Zn(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n border: 1px solid #b8dd7b;\n\n span, svg {\n color: #808d35;\n }\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n border: 1px solid #b8dd7b;\n\n span, svg {\n color: #808d35;\n }\n \n }\n "])))}),(function(){return Ec(DE||(DE=Zn(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n border: 1px solid #e6a9a9;\n\n span, svg {\n color: #f8285a;\n }\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n border: 1px solid #e6a9a9;\n\n span, svg {\n color: #f8285a;\n }\n\n }\n "])))})),jE=Nc.span(ME||(ME=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"]))),$E=Nc.span(FE||(FE=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"]))),YE=Nc.span(IE||(IE=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"})),UE=Nc.div(RE||(RE=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"]))),VE=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(zE,{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(UE,{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(YE,{$noTitle:!l,children:[""!==l?n(jE,{children:l}):null,""!==f?n($E,{children:f}):null]})]})};VE.displayName="ITD-Alert";var BE=Nc.div(nO||(nO=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']))),HE=Nc.div(eO||(eO=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"})),WE=Nc.label(tO||(tO=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"})),qE=Nc.div(rO||(rO=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"]))),GE=Nc.div(iO||(iO=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"]))),ZE=Nc.div(oO||(oO=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%"})),KE=Nc.div(sO||(sO=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(aO||(aO=Zn(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),QE=Nc.div(cO||(cO=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(lO||(lO=Zn(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),JE=Nc.div(uO||(uO=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(dO||(dO=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")})),XE=Nc.div(fO||(fO=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(pO||(pO=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 nO,eO,tO,rO,iO,oO,aO,sO,lO,cO,dO,uO,fO,pO,hO,gO,mO,vO,bO,yO,xO,wO,kO,_O,SO,EO,OO,CO=Nc.div(hO||(hO=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']))),NO=Nc(CO)(gO||(gO=Zn(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),AO=Nc.span(mO||(mO=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']))),DO=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,p=t.binaryName,h=void 0===p?"file":p,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,D=t.requestMethod,T=void 0===D?"put":D,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,K=t.removeExtraHeader,Q=void 0===K?{}:K,J=t.onUpdate,X=t.onUploadSuccess,nn=t.onUploadFailed,en=t.onRemoveFileSuccess,tn=t.onRemoveFileFailed,rn=l(null),on=pg.useNotifications().addNotification,an=Nu.useModal().showModal,sn=$a(),ln=sn.fetch,cn=sn.cancel,dn=jn().t,un=s(!1),fn=un[0],pn=un[1],hn=s(!1),gn=hn[0],mn=hn[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),Dn=An[0],Tn=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),Kn=Zn[0],Qn=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():pn(!1))}),[Ln]),c((function(){var n=[];V.map((function(e){n.push(Hg(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,Ug(Ln)]):[3,2];case 1:n=e.sent(),Tn(n),n?oe(Ln):oe("",!0,!0),fn||pn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==Ln||fn||pn(!0),""===Ln&&fn&&oe("",!0,!0),[2]}}))}))},se=function(){re(null),Qn(null),ne(!1),Tn(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:Q,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?he(n.dataTransfer.files[0]):console.log(dn("uploader.browserDoesntSupportDND")))},fe=function(n){En(!1);var e=n.target.files[0];he(e)},pe=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,Wg(1e3)];case 1:return n.sent(),Qn(null),Gn(!1),[4,Wg(1500)];case 2:return n.sent(),ne(!1),e?X&&X(e):t&&nn&&nn(t,r||0),[2]}}))}))},he=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:Bg(1024*L)})),1))}(n)){if(o){var e=Hg(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(h,n),o&&e.append("name",o),Object.keys(R).forEach((function(n){e.append(n,R[n])})),ln({action:d,requestMethod:T,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),pe({path:n.data.data.url})):(re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),pe({errorMessage:dn("uploader.fileUploadFailed")}))},onError:function(n,e){re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),pe({errorMessage:n,errorCode:e})},onProgress:function(n){Qn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?Bg(n.bytes):"",total:n.total?Bg(n.total):""})}}),[2]):[2]}))}))}(n),Gn(!0)}},ge=function(){mn(!0),an({content:n(ZE,{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&&Dn)return n("span",{children:n(ou,{variant:"solid",size:"small",type:"button",circle:!0,onClick:le,disabled:gn,icon:n(um,{width:16,height:16}),className:"itd-upload-delete-button"})})},ve=function(){if(b&&Ln&&!Bn&&Dn)return n("span",{children:n(ou,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ge,disabled:gn,icon:n(fm,{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(NO,Hn({},{className:"itd-upload-failed",onPointerOver:function(){return Un(!0)},onPointerOut:function(){return Un(!1)}},{children:[$n?n(AO,{className:"itd-upload-error-tooltip",children:In}):null,be]}))},xe=function(){if(fn)return null===Dn?n(sm,{width:24,height:24}):!1===Dn?n(hm,{width:40,height:40}):n(Cd,{src:Ln,height:_})};return function(t){return void 0===t&&(t=Oe("upload-")),e(BE,{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(WE,{htmlFor:t,$showFocus:Cn,className:"itd-upload-label",children:e(HE,{$showBorder:(Sn||wn)&&!Bn,$padding:x,$disabled:F,$hasError:""!==In&&!Bn,className:"itd-upload-content",children:[xe(),e(JE,{className:"itd-upload-status",$isActive:Bn,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status),children:[n(XE,{className:"itd-upload-status-box",$progress:Kn?Kn.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",Kn?{className:"itd-upload-status-info",children:dn("uploader.info",{total:Kn.total,estimated:Kn.estimated})}:{className:"itd-upload-status-calculating",children:dn("uploader.calculating")})]}),(r=(wn||Sn)&&!Bn&&!gn,n(QE,{onPointerOver:function(){!Sn&&kn(!0)},onPointerOut:function(){!Sn&&kn(!1)},onDragOver:ce,onDragLeave:de,onDrop:ue,$isHover:r,className:"itd-upload-overlay",children:e(KE,{$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(qE,{children:[e(GE,{className:"itd-upload-icons",children:[me(),ve()]}),ye()]})]})})]});var r}()})),TO=Nc.section(vO||(vO=Zn(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),PO=Ac(bO||(bO=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"]))),LO=Nc.div(yO||(yO=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"])),PO,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),MO=Nc.div(xO||(xO=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 "})),FO=Nc.div(wO||(wO=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"]))),IO=Nc.div(kO||(kO=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"]))),RO=Nc.div(_O||(_O=Zn(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),zO=Nc.div(SO||(SO=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"]))),jO=Nc.div(EO||(EO=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"]))),$O=Nc.div(OO||(OO=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"]))),YO=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,p=t.footer,h=void 0===p?null:p,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(IO,{className:"itd-result-extras",children:f})},O=function(){if(h)return n(RO,{className:"itd-result-footer",children:h})};return n(TO,{className:(S="itd-result",S+=" itd-result-"+m,x&&(S+=" itd-result-auto-center"),b&&(S+=" itd-result-fill"),S),children:n(LO,{$autoCenter:x,className:"itd-result-content-wrapper",children:e(MO,{className:"itd-result-content",$autoCenter:x,$type:m,$fill:b.toString(),children:[e(zO,{className:"itd-result-body",children:[n(FO,{className:"itd-image-wrapper",children:n(Cd,{src:k})}),n(jO,{className:"itd-result-title",children:a}),n($O,{className:"itd-result-sub-title",children:d})]}),E(),O()]})})})};YO.displayName="ITD-Result";var UO,VO,BO,HO=Nc.div(UO||(UO=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 "]))),WO=Nc.a(VO||(VO=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?qO:"none"})),qO=Ac(BO||(BO=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 GO(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(HO,{className:"itd-back-to-top",children:n(WO,{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},$show:o,children:r||n(lm,{width:30,height:30})})})}var ZO,KO,QO={"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"}},JO=Nc.div(KO||(KO=Zn(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n border-radius: 4px;\n\n >span {\n text-align: center;\n user-select: none;\n }\n\n &.itd-status-xs {\n padding: 4px 8px;\n span {\n font-size: 9px;\n font-weight: 600;\n }\n }\n\n &.itd-status-sm {\n padding: 4px 8px;\n span {\n font-size: 10px;\n font-weight: 600;\n }\n }\n\n &.itd-status-md {\n padding: 4px 8px;\n span {\n font-size: 11px;\n font-weight: 600;\n }\n }\n\n &.itd-status-df {\n padding: 6px 10px;\n span {\n font-size: 12px;\n font-weight: 600;\n }\n }\n\n &.itd-status-lg {\n padding: 8px 12px;\n span {\n font-size: 12.4px;\n font-weight: 600;\n }\n }\n\n &.itd-status-xlg {\n padding: 10px 14px;\n span {\n font-size: 12.6px;\n font-weight: 600;\n }\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 border-radius: 4px;\n\n >span {\n text-align: center;\n user-select: none;\n }\n\n &.itd-status-xs {\n padding: 4px 8px;\n span {\n font-size: 9px;\n font-weight: 600;\n }\n }\n\n &.itd-status-sm {\n padding: 4px 8px;\n span {\n font-size: 10px;\n font-weight: 600;\n }\n }\n\n &.itd-status-md {\n padding: 4px 8px;\n span {\n font-size: 11px;\n font-weight: 600;\n }\n }\n\n &.itd-status-df {\n padding: 6px 10px;\n span {\n font-size: 12px;\n font-weight: 600;\n }\n }\n\n &.itd-status-lg {\n padding: 8px 12px;\n span {\n font-size: 12.4px;\n font-weight: 600;\n }\n }\n\n &.itd-status-xlg {\n padding: 10px 14px;\n span {\n font-size: 12.6px;\n font-weight: 600;\n }\n }\n\n ","\n\n"])),(function(n){return function(n){return Ec(ZO||(ZO=Zn(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),QO[n].background,QO[n].text)}(n.$status)}));function XO(e){var t,r=e.variant,i=void 0===r?"gray-1":r,o=e.size,a=void 0===o?"default":o,s=e.children,l=void 0===s?"":s,c=e.className,d=void 0===c?"":c;return n(JO,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,t+=" itd-status-"+jd(a),""!==d&&null!==d&&(t+=" "+d),t),children:n("span",{children:l})})}var nC,eC,tC,rC,iC,oC,aC,sC,lC,cC,dC,uC,fC,pC,hC,gC,mC,vC,bC,yC,xC,wC,kC,_C,SC=Nc.div(nC||(nC=Zn(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),EC=Nc.div(tC||(tC=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 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 span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n &.active {\n span {\n color: #1b84ff;\n }\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 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 span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n &.active {\n span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Ec(eC||(eC=Zn(["\n border-width: 2px;\n span {\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-weight: 600;\n }\n "])))})),OC=Nc.div(rC||(rC=Zn(["\n\n padding: 20px 0;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n color: #99a1b7;\n \n"]))),CC=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),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":"":a&&0===e?"active":"";var t},m=function(n){h(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(EC,{$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===p}))[0];if(e&&e.children)return n(OC,{className:"itd-content-body",children:e.children})}()]})},NC=Nc.div(iC||(iC=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"})),AC=Nc.div(aC||(aC=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(oC||(oC=Zn(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),DC=Nc.div(sC||(sC=Zn(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),TC=Nc.div(lC||(lC=Zn(["\n \n >div {\n font-size: 14px;\n font-weight: 500;\n color: #78829D;\n }\n\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n \n >div {\n font-size: 14px;\n font-weight: 500;\n color: #78829D;\n }\n\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"})),PC=Nc.div(cC||(cC=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"]))),LC=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,p=void 0===f?"":f,h=t.updating,g=void 0!==h&&h,m=t.contentPadding,v=void 0===m?"30px":m;c((function(){}));var b=function(){if(o)return n(PC,{className:"itd-card-extra",children:o})},y=function(){if(a)return n(CC,{tabs:a,activeTabKey:p,onTabChange:function(n){return s&&s(n)}})},x=function(){if(r)return n(DC,{className:"itd-card-title",children:n(tm,{children:r})})},w=function(){return!!(r||o||a)};return n(NC,{className:"itd-card",$minWidth:l,$minHeight:d,$hasHeader:w(),children:e(Yc,{updating:g,children:[function(){if(w())return e(AC,{$showSeparator:i,className:"itd-card-header",children:[x(),y(),b()]})}(),function(){if(u)return n(TC,{className:"itd-card-body",$padding:v,children:u})}()]})})},MC=Nc.div(kC||(kC=Zn(["\n\n &:has(table.itd-table-no-data), &:has(table.itd-table-empty) {\n height: 100%;\n table {\n height: 100%;\n }\n }\n\n table {\n \n width: 100%;\n \n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n th, td {\n width: auto;\n }\n\n th {\n text-align: left;\n span {\n color: #071437;\n }\n }\n\n td>span, th>span {\n font-weight: 500;\n }\n\n ","\n\n td, th {\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-no-gaps) {\n\n thead {\n\n background-color: #FAFAFA;\n\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n \n }\n\n &:not(.itd-table-no-data):not(.itd-table-empty) {\n tbody {\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n }\n }\n\n &.itd-table-no-data {\n\n tbody {\n tr {\n background-color: #FAFAFA;\n }\n }\n\n }\n\n &:not(.itd-table-empty) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n\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 &:has(table.itd-table-no-data), &:has(table.itd-table-empty) {\n height: 100%;\n table {\n height: 100%;\n }\n }\n\n table {\n \n width: 100%;\n \n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n th, td {\n width: auto;\n }\n\n th {\n text-align: left;\n span {\n color: #071437;\n }\n }\n\n td>span, th>span {\n font-weight: 500;\n }\n\n ","\n\n td, th {\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-no-gaps) {\n\n thead {\n\n background-color: #FAFAFA;\n\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n \n }\n\n &:not(.itd-table-no-data):not(.itd-table-empty) {\n tbody {\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n }\n }\n\n &.itd-table-no-data {\n\n tbody {\n tr {\n background-color: #FAFAFA;\n }\n }\n\n }\n\n &:not(.itd-table-empty) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n\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(dC||(dC=Zn(["\n td, th {\n padding-top: 5px;\n padding-bottom: 5px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "],["\n td, th {\n padding-top: 5px;\n padding-bottom: 5px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "]))):"small"===n.$size?Ec(uC||(uC=Zn(["\n td, th {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "],["\n td, th {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "]))):"medium"===n.$size?Ec(fC||(fC=Zn(["\n td, th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "]))):"default"===n.$size?Ec(pC||(pC=Zn(["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "]))):"large"===n.$size?Ec(hC||(hC=Zn(["\n td, th {\n padding-top: 18px;\n padding-bottom: 18px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "],["\n td, th {\n padding-top: 18px;\n padding-bottom: 18px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "]))):"x-large"===n.$size?Ec(gC||(gC=Zn(["\n td, th {\n padding-top: 20px;\n padding-bottom: 20px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "],["\n td, th {\n padding-top: 20px;\n padding-bottom: 20px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "]))):Ec(mC||(mC=Zn(["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "])))}),(function(n){return n.$noGaps?Ec(vC||(vC=Zn(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Ec(bC||(bC=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(yC||(yC=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(xC||(xC=Zn(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Ec(wC||(wC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))})),FC=Nc.div(_C||(_C=Zn(["\n\n height: 150px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n >div {\n display: flex;\n flex-direction: column;\n gap: 7px;\n }\n\n span {\n font-size: 12px;\n font-weight: 500;\n color: #4D4D4D;\n }\n\n svg {\n fill: #4D4D4D;\n }\n \n"],["\n\n height: 150px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n >div {\n display: flex;\n flex-direction: column;\n gap: 7px;\n }\n\n span {\n font-size: 12px;\n font-weight: 500;\n color: #4D4D4D;\n }\n\n svg {\n fill: #4D4D4D;\n }\n \n"]))),IC=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,p=void 0!==f&&f,h=t.noGaps,g=void 0!==h&&h,m=jn().t,v=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(MC,{$size:s,$noGaps:g,children:e("table",{className:(r="itd-table",r+=" itd-table-"+jd(s),c&&(r+=" itd-table-headless"),u&&(r+=" itd-table-bordered"),g&&(r+=" itd-table-no-gaps"),o||(r+=" itd-table-empty"),0===(null==o?void 0:o.length)&&(r+=" itd-table-no-data"),r+=p?" 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:v(e),children:n("span",{children:e.title})},String(e.key))}))})})}(),o?0===o.length?n("tbody",{children:n("tr",{children:n("td",{colSpan:i.length,children:n(FC,{children:e("div",{children:[n(gm,{height:30}),n("span",{children:m("table.noData")})]})})})})}):n("tbody",{children:o.map((function(e,t){return n("tr",{children:i.map((function(r){return n("td",{style:v(r),children:n("span",{children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null})},String(r.key))}))},String(e.key))}))}):n("tbody",{children:n("tr",{children:n("td",{colSpan:i.length,children:n(FC,{})})})})]})})};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",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here"},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",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız"},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{US as ALink,Ok as Accordion,Fg as AddDefaultThemeStyle,zg as AddZero,VE as Alert,am as ArrowIcon,lm as BackToTop,GO as BackTop,ou as Button,Uk as Calendar,LC as Card,Ug as CheckFileURL,Mm as Checkbox,cm as Checkmark,$g as ChunkArray,QS as Collapse,te as ConsoleLog,Ag as ConvertCurrency,Kk as DatePicker,Eg as DetermineNewHeight,Og as DetermineNewWidth,Yg as FileChecker,Un as FileExtensions,Yn as FileTypes,Ta as FindSelector,dk as Form,Bg as FormatBytes,Tg as GetByCurrency,Cg as GetCountryCodeByCurrencyCode,Ng as GetCountryCodeByLanguage,Lg as GetCurrencyFormat,Pg as GetCurrencySymbol,Mg as GetDecimalByCurrency,Hg as GetTypeByFileType,em as H1,tm as H2,rm as H3,im as H4,_g as ITDContext,Sg as ITDProvider,Cd as Image,NE as InlineSelect,dm as InlineSelectArrow,vS as Input,Rg as IsValidJSON,om as LockIcon,Nu as ModalManager,$n as ModalState,gm as NoData,pg as Notification,hm as Picture,cE as Radio,jg as RemoveUnits,YO as Result,$w as Select,Yc as Spin,XO as Status,jS as Switch,IC as Table,CC as Tabs,DS as TextArea,dw as TinyScrollbar,kg as Tooltip,um as Trash,Vg as UniUpperCase,Ig as UpdateThemeStyle,DO as Upload,sm as UploadIcon,Wg as Wait,fm as ZoomIn,pm as ZoomOut,oe as useAddExternalCSS,ja as useComponentSize,za as useConnectionStatus,ie as useConstructor,$a as useCoreFetch,Da as useCreateDynamicStyle,Pa as useCreateStyledStyle,Ia as useMultiQuery,La as useOnClickOutside,Ma as useOnESCKeyDown,Ra as useOnResize,re as useReCaptcha,Fa as useSingleQuery};
902
+ `,NE=({label:n="",value:e=[],children:t=null,single:r=!1,minWidth:o=0,className:a="",onChange:d=null})=>{const u=l(null),[f,p]=s(!1),[h,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,(()=>{p(!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(CE,{className:(()=>{let n="itd-inline-select";return f&&(n+=" itd-inline-select-open"),""!==a&&(n+=" "+a),n})(),ref:u},i.createElement(OE,{onChange:n=>{p(n)},isOpen:f,count:h.length,single:r,label:(()=>{let e=r||!r&&1===h.length?v:n;return""===e?"··········":e})()}),i.createElement(wE,{onChange:y,value:h,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===yE?m(n,{...n.props,onChange:y,single:r}):void 0}))))};NE.Option=yE;var AE,DE,TE,PE,LE,ME,FE,IE,RE,zE=Nc.div(LE||(LE=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(AE||(AE=Zn(["\n\n &.itd-alert-success {\n\n background: #dfffea;\n border: 1px solid #8adea7;\n\n span, svg {\n color: #34a059;\n }\n \n }\n "],["\n\n &.itd-alert-success {\n\n background: #dfffea;\n border: 1px solid #8adea7;\n\n span, svg {\n color: #34a059;\n }\n \n }\n "])))}),(function(){return Ec(TE||(TE=Zn(["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n border: 1px solid #cfddff;\n\n span, svg {\n color: #717ec8;\n }\n \n }\n "],["\n\n &.itd-alert-info {\n\n background: #2c99ff15;\n border: 1px solid #cfddff;\n\n span, svg {\n color: #717ec8;\n }\n \n }\n "])))}),(function(){return Ec(PE||(PE=Zn(["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n border: 1px solid #b8dd7b;\n\n span, svg {\n color: #808d35;\n }\n \n }\n "],["\n\n &.itd-alert-warning {\n\n background: #f6ffdf;\n border: 1px solid #b8dd7b;\n\n span, svg {\n color: #808d35;\n }\n \n }\n "])))}),(function(){return Ec(DE||(DE=Zn(["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n border: 1px solid #e6a9a9;\n\n span, svg {\n color: #f8285a;\n }\n\n }\n "],["\n\n &.itd-alert-error {\n\n background: #ffeef3;\n border: 1px solid #e6a9a9;\n\n span, svg {\n color: #f8285a;\n }\n\n }\n "])))})),jE=Nc.span(ME||(ME=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"]))),$E=Nc.span(FE||(FE=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"]))),YE=Nc.span(IE||(IE=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"})),UE=Nc.div(RE||(RE=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"]))),VE=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(zE,{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(UE,{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(YE,{$noTitle:!l,children:[""!==l?n(jE,{children:l}):null,""!==f?n($E,{children:f}):null]})]})};VE.displayName="ITD-Alert";var BE=Nc.div(nO||(nO=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']))),HE=Nc.div(eO||(eO=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"})),WE=Nc.label(tO||(tO=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"})),qE=Nc.div(rO||(rO=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"]))),GE=Nc.div(iO||(iO=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"]))),ZE=Nc.div(oO||(oO=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%"})),KE=Nc.div(sO||(sO=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(aO||(aO=Zn(["\n top: 50%;\n "],["\n top: 50%;\n "])))})),QE=Nc.div(cO||(cO=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(lO||(lO=Zn(["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "],["\n backdrop-filter: blur(2px);\n background-color: #ffffff90;\n "])))})),JE=Nc.div(uO||(uO=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(dO||(dO=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")})),XE=Nc.div(fO||(fO=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(pO||(pO=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 nO,eO,tO,rO,iO,oO,aO,sO,lO,cO,dO,uO,fO,pO,hO,gO,mO,vO,bO,yO,xO,wO,kO,_O,SO,EO,OO,CO=Nc.div(hO||(hO=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']))),NO=Nc(CO)(gO||(gO=Zn(["\n\n &::before {\n background-color: #f8285a;\n }\n\n"],["\n\n &::before {\n background-color: #f8285a;\n }\n\n"]))),AO=Nc.span(mO||(mO=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']))),DO=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,p=t.binaryName,h=void 0===p?"file":p,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,D=t.requestMethod,T=void 0===D?"put":D,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,K=t.removeExtraHeader,Q=void 0===K?{}:K,J=t.onUpdate,X=t.onUploadSuccess,nn=t.onUploadFailed,en=t.onRemoveFileSuccess,tn=t.onRemoveFileFailed,rn=l(null),on=pg.useNotifications().addNotification,an=Nu.useModal().showModal,sn=$a(),ln=sn.fetch,cn=sn.cancel,dn=jn().t,un=s(!1),fn=un[0],pn=un[1],hn=s(!1),gn=hn[0],mn=hn[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),Dn=An[0],Tn=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),Kn=Zn[0],Qn=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():pn(!1))}),[Ln]),c((function(){var n=[];V.map((function(e){n.push(Hg(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,Ug(Ln)]):[3,2];case 1:n=e.sent(),Tn(n),n?oe(Ln):oe("",!0,!0),fn||pn(!0),console.timeEnd("Checking file completed in"),e.label=2;case 2:return""!==Ln||fn||pn(!0),""===Ln&&fn&&oe("",!0,!0),[2]}}))}))},se=function(){re(null),Qn(null),ne(!1),Tn(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:Q,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?he(n.dataTransfer.files[0]):console.log(dn("uploader.browserDoesntSupportDND")))},fe=function(n){En(!1);var e=n.target.files[0];he(e)},pe=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,Wg(1e3)];case 1:return n.sent(),Qn(null),Gn(!1),[4,Wg(1500)];case 2:return n.sent(),ne(!1),e?X&&X(e):t&&nn&&nn(t,r||0),[2]}}))}))},he=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:Bg(1024*L)})),1))}(n)){if(o){var e=Hg(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(h,n),o&&e.append("name",o),Object.keys(R).forEach((function(n){e.append(n,R[n])})),ln({action:d,requestMethod:T,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),pe({path:n.data.data.url})):(re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),pe({errorMessage:dn("uploader.fileUploadFailed")}))},onError:function(n,e){re({message:dn("uploader.fileUploadFailed"),status:"error"}),oe("",!0,!0),pe({errorMessage:n,errorCode:e})},onProgress:function(n){Qn({estimated:n.estimated?(Math.round(100*n.estimated)/100).toFixed(2):"0",progress:n.progress?Math.round(100*n.progress):0,bytes:n.bytes?Bg(n.bytes):"",total:n.total?Bg(n.total):""})}}),[2]):[2]}))}))}(n),Gn(!0)}},ge=function(){mn(!0),an({content:n(ZE,{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&&Dn)return n("span",{children:n(ou,{variant:"solid",size:"small",type:"button",circle:!0,onClick:le,disabled:gn,icon:n(um,{width:16,height:16}),className:"itd-upload-delete-button"})})},ve=function(){if(b&&Ln&&!Bn&&Dn)return n("span",{children:n(ou,{variant:"solid",size:"small",type:"button",circle:!0,onClick:ge,disabled:gn,icon:n(fm,{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(NO,Hn({},{className:"itd-upload-failed",onPointerOver:function(){return Un(!0)},onPointerOut:function(){return Un(!1)}},{children:[$n?n(AO,{className:"itd-upload-error-tooltip",children:In}):null,be]}))},xe=function(){if(fn)return null===Dn?n(sm,{width:24,height:24}):!1===Dn?n(hm,{width:40,height:40}):n(Cd,{src:Ln,height:_})};return function(t){return void 0===t&&(t=Oe("upload-")),e(BE,{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(WE,{htmlFor:t,$showFocus:Cn,className:"itd-upload-label",children:e(HE,{$showBorder:(Sn||wn)&&!Bn,$padding:x,$disabled:F,$hasError:""!==In&&!Bn,className:"itd-upload-content",children:[xe(),e(JE,{className:"itd-upload-status",$isActive:Bn,$complete:"success"===(null==te?void 0:te.status),$error:"error"===(null==te?void 0:te.status),children:[n(XE,{className:"itd-upload-status-box",$progress:Kn?Kn.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",Kn?{className:"itd-upload-status-info",children:dn("uploader.info",{total:Kn.total,estimated:Kn.estimated})}:{className:"itd-upload-status-calculating",children:dn("uploader.calculating")})]}),(r=(wn||Sn)&&!Bn&&!gn,n(QE,{onPointerOver:function(){!Sn&&kn(!0)},onPointerOut:function(){!Sn&&kn(!1)},onDragOver:ce,onDragLeave:de,onDrop:ue,$isHover:r,className:"itd-upload-overlay",children:e(KE,{$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(qE,{children:[e(GE,{className:"itd-upload-icons",children:[me(),ve()]}),ye()]})]})})]});var r}()})),TO=Nc.section(vO||(vO=Zn(["\n position: relative;\n overflow: hidden;\n"],["\n position: relative;\n overflow: hidden;\n"]))),PO=Ac(bO||(bO=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"]))),LO=Nc.div(yO||(yO=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"])),PO,(function(n){if(n.$autoCenter)return"\n width: 100%;\n height: 100%;\n "})),MO=Nc.div(xO||(xO=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 "})),FO=Nc.div(wO||(wO=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"]))),IO=Nc.div(kO||(kO=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"]))),RO=Nc.div(_O||(_O=Zn(["\n display: flex;\n justify-content: center;\n"],["\n display: flex;\n justify-content: center;\n"]))),zO=Nc.div(SO||(SO=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"]))),jO=Nc.div(EO||(EO=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"]))),$O=Nc.div(OO||(OO=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"]))),YO=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,p=t.footer,h=void 0===p?null:p,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(IO,{className:"itd-result-extras",children:f})},O=function(){if(h)return n(RO,{className:"itd-result-footer",children:h})};return n(TO,{className:(S="itd-result",S+=" itd-result-"+m,x&&(S+=" itd-result-auto-center"),b&&(S+=" itd-result-fill"),S),children:n(LO,{$autoCenter:x,className:"itd-result-content-wrapper",children:e(MO,{className:"itd-result-content",$autoCenter:x,$type:m,$fill:b.toString(),children:[e(zO,{className:"itd-result-body",children:[n(FO,{className:"itd-image-wrapper",children:n(Cd,{src:k})}),n(jO,{className:"itd-result-title",children:a}),n($O,{className:"itd-result-sub-title",children:d})]}),E(),O()]})})})};YO.displayName="ITD-Result";var UO,VO,BO,HO=Nc.div(UO||(UO=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 "]))),WO=Nc.a(VO||(VO=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?qO:"none"})),qO=Ac(BO||(BO=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 GO(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(HO,{className:"itd-back-to-top",children:n(WO,{onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},$show:o,children:r||n(lm,{width:30,height:30})})})}var ZO,KO,QO={"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"}},JO=Nc.div(KO||(KO=Zn(["\n\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: max-content;\n border-radius: 4px;\n\n >span {\n text-align: center;\n user-select: none;\n }\n\n &.itd-status-xs {\n padding: 4px 8px;\n span {\n font-size: 9px;\n font-weight: 600;\n }\n }\n\n &.itd-status-sm {\n padding: 4px 8px;\n span {\n font-size: 10px;\n font-weight: 600;\n }\n }\n\n &.itd-status-md {\n padding: 4px 8px;\n span {\n font-size: 11px;\n font-weight: 600;\n }\n }\n\n &.itd-status-df {\n padding: 6px 10px;\n span {\n font-size: 12px;\n font-weight: 600;\n }\n }\n\n &.itd-status-lg {\n padding: 8px 12px;\n span {\n font-size: 12.4px;\n font-weight: 600;\n }\n }\n\n &.itd-status-xlg {\n padding: 10px 14px;\n span {\n font-size: 12.6px;\n font-weight: 600;\n }\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 border-radius: 4px;\n\n >span {\n text-align: center;\n user-select: none;\n }\n\n &.itd-status-xs {\n padding: 4px 8px;\n span {\n font-size: 9px;\n font-weight: 600;\n }\n }\n\n &.itd-status-sm {\n padding: 4px 8px;\n span {\n font-size: 10px;\n font-weight: 600;\n }\n }\n\n &.itd-status-md {\n padding: 4px 8px;\n span {\n font-size: 11px;\n font-weight: 600;\n }\n }\n\n &.itd-status-df {\n padding: 6px 10px;\n span {\n font-size: 12px;\n font-weight: 600;\n }\n }\n\n &.itd-status-lg {\n padding: 8px 12px;\n span {\n font-size: 12.4px;\n font-weight: 600;\n }\n }\n\n &.itd-status-xlg {\n padding: 10px 14px;\n span {\n font-size: 12.6px;\n font-weight: 600;\n }\n }\n\n ","\n\n"])),(function(n){return function(n){return Ec(ZO||(ZO=Zn(["\n background: ",";\n span {\n color: ",";\n }\n "],["\n background: ",";\n span {\n color: ",";\n }\n "])),QO[n].background,QO[n].text)}(n.$status)}));function XO(e){var t,r=e.variant,i=void 0===r?"gray-1":r,o=e.size,a=void 0===o?"default":o,s=e.children,l=void 0===s?"":s,c=e.className,d=void 0===c?"":c;return n(JO,{$status:i,className:(t="itd-status",t+=" itd-status-"+i,t+=" itd-status-"+jd(a),""!==d&&null!==d&&(t+=" "+d),t),children:n("span",{children:l})})}var nC,eC,tC,rC,iC,oC,aC,sC,lC,cC,dC,uC,fC,pC,hC,gC,mC,vC,bC,yC,xC,wC,kC,_C,SC=Nc.div(nC||(nC=Zn(["\n\n height: ",";\n\n"],["\n\n height: ",";\n\n"])),(function(n){return n.$height?n.$height+"px":"75px"})),EC=Nc.div(tC||(tC=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 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 span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n &.active {\n span {\n color: #1b84ff;\n }\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 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 span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n &.active {\n span {\n color: #1b84ff;\n }\n border-color: #1b84ff;\n }\n\n ","\n\n }\n }\n\n }\n\n"])),(function(n){if(n.$isBold)return Ec(eC||(eC=Zn(["\n border-width: 2px;\n span {\n font-weight: 600;\n }\n "],["\n border-width: 2px;\n span {\n font-weight: 600;\n }\n "])))})),OC=Nc.div(rC||(rC=Zn(["\n\n padding: 20px 0;\n color: #99a1b7;\n \n"],["\n\n padding: 20px 0;\n color: #99a1b7;\n \n"]))),CC=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),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":"":a&&0===e?"active":"";var t},m=function(n){h(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(EC,{$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===p}))[0];if(e&&e.children)return n(OC,{className:"itd-content-body",children:e.children})}()]})},NC=Nc.div(iC||(iC=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"})),AC=Nc.div(aC||(aC=Zn(["\n\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 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(oC||(oC=Zn(["\n border-bottom: 1px solid #f1f1f4;\n "],["\n border-bottom: 1px solid #f1f1f4;\n "])))})),DC=Nc.div(sC||(sC=Zn(["\n padding: 20px 0;\n height: 100%;\n"],["\n padding: 20px 0;\n height: 100%;\n"]))),TC=Nc.div(lC||(lC=Zn(["\n\n padding: ",";\n \n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n"],["\n\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"})),PC=Nc.div(cC||(cC=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"]))),LC=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,p=void 0===f?"":f,h=t.updating,g=void 0!==h&&h,m=t.contentPadding,v=void 0===m?"30px":m;c((function(){}));var b=function(){if(o)return n(PC,{className:"itd-card-extra",children:o})},y=function(){if(a)return n(CC,{tabs:a,activeTabKey:p,onTabChange:function(n){return s&&s(n)}})},x=function(){if(r)return n(DC,{className:"itd-card-title",children:n(tm,{children:r})})},w=function(){return!!(r||o||a)};return n(NC,{className:"itd-card",$minWidth:l,$minHeight:d,$hasHeader:w(),children:e(Yc,{updating:g,children:[function(){if(w())return e(AC,{$showSeparator:i,className:"itd-card-header",children:[x(),y(),b()]})}(),function(){if(u)return n(TC,{className:"itd-card-body",$padding:v,children:u})}()]})})},MC=Nc.div(kC||(kC=Zn(["\n\n &:has(table.itd-table-no-data), &:has(table.itd-table-empty) {\n height: 100%;\n table {\n height: 100%;\n }\n }\n\n table {\n \n width: 100%;\n \n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n th, td {\n width: auto;\n }\n\n th {\n text-align: left;\n span {\n color: #071437;\n }\n }\n\n td>span, th>span {\n font-weight: 500;\n }\n\n ","\n\n td, th {\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: #ff0000;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n thead {\n\n background-color: #FAFAFA;\n\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n \n }\n\n &:not(.itd-table-no-data):not(.itd-table-empty) {\n tbody {\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n }\n }\n\n &.itd-table-no-data {\n\n tbody {\n tr {\n background-color: #FAFAFA;\n }\n }\n\n }\n\n &:not(.itd-table-empty) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n\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 &:has(table.itd-table-no-data), &:has(table.itd-table-empty) {\n height: 100%;\n table {\n height: 100%;\n }\n }\n\n table {\n \n width: 100%;\n \n caption-side: bottom;\n border-collapse: collapse;\n text-indent: initial;\n border-spacing: 2px;\n\n th, td {\n width: auto;\n }\n\n th {\n text-align: left;\n span {\n color: #071437;\n }\n }\n\n td>span, th>span {\n font-weight: 500;\n }\n\n ","\n\n td, th {\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: #ff0000;\n }\n\n }\n\n &:not(.itd-table-no-gaps) {\n\n thead {\n\n background-color: #FAFAFA;\n\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n \n }\n\n &:not(.itd-table-no-data):not(.itd-table-empty) {\n tbody {\n td:first-child, th:first-child {\n padding-left: 30px;\n }\n }\n }\n\n &.itd-table-no-data {\n\n tbody {\n tr {\n background-color: #FAFAFA;\n }\n }\n\n }\n\n &:not(.itd-table-empty) {\n\n tbody {\n tr:hover {\n background-color: #FAFAFA;\n }\n }\n\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(dC||(dC=Zn(["\n td, th {\n padding-top: 5px;\n padding-bottom: 5px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "],["\n td, th {\n padding-top: 5px;\n padding-bottom: 5px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "]))):"small"===n.$size?Ec(uC||(uC=Zn(["\n td, th {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "],["\n td, th {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n th>span {\n font-size: 13px;\n }\n td>span {\n font-size: 12px;\n }\n "]))):"medium"===n.$size?Ec(fC||(fC=Zn(["\n td, th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 12px;\n padding-bottom: 12px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "]))):"default"===n.$size?Ec(pC||(pC=Zn(["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "]))):"large"===n.$size?Ec(hC||(hC=Zn(["\n td, th {\n padding-top: 18px;\n padding-bottom: 18px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "],["\n td, th {\n padding-top: 18px;\n padding-bottom: 18px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "]))):"x-large"===n.$size?Ec(gC||(gC=Zn(["\n td, th {\n padding-top: 20px;\n padding-bottom: 20px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "],["\n td, th {\n padding-top: 20px;\n padding-bottom: 20px;\n }\n th>span {\n font-size: 15px;\n }\n td>span {\n font-size: 14px;\n }\n "]))):Ec(mC||(mC=Zn(["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "],["\n td, th {\n padding-top: 15px;\n padding-bottom: 15px;\n }\n th>span {\n font-size: 14px;\n }\n td>span {\n font-size: 13px;\n }\n "])))}),(function(n){return n.$noGaps?Ec(vC||(vC=Zn(["\n padding-left: 0;\n padding-right: 0;\n "],["\n padding-left: 0;\n padding-right: 0;\n "]))):"x-small"===n.$size?Ec(bC||(bC=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(yC||(yC=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(xC||(xC=Zn(["\n padding-left: 20px;\n padding-right: 20px;\n "],["\n padding-left: 20px;\n padding-right: 20px;\n "]))):Ec(wC||(wC=Zn(["\n padding-left: 15px;\n padding-right: 15px;\n "],["\n padding-left: 15px;\n padding-right: 15px;\n "])))})),FC=Nc.div(_C||(_C=Zn(["\n\n height: 150px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n >div {\n display: flex;\n flex-direction: column;\n gap: 7px;\n }\n\n span {\n font-size: 12px;\n font-weight: 500;\n color: #4D4D4D;\n }\n\n svg {\n fill: #4D4D4D;\n }\n \n"],["\n\n height: 150px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n >div {\n display: flex;\n flex-direction: column;\n gap: 7px;\n }\n\n span {\n font-size: 12px;\n font-weight: 500;\n color: #4D4D4D;\n }\n\n svg {\n fill: #4D4D4D;\n }\n \n"]))),IC=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,p=void 0!==f&&f,h=t.noGaps,g=void 0!==h&&h,m=jn().t,v=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(MC,{$size:s,$noGaps:g,children:e("table",{className:(r="itd-table",r+=" itd-table-"+jd(s),c&&(r+=" itd-table-headless"),u&&(r+=" itd-table-bordered"),g&&(r+=" itd-table-no-gaps"),o||(r+=" itd-table-empty"),0===(null==o?void 0:o.length)&&(r+=" itd-table-no-data"),r+=p?" 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:v(e),children:n("span",{children:e.title})},String(e.key))}))})})}(),o?0===o.length?n("tbody",{children:n("tr",{children:n("td",{colSpan:i.length,children:n(FC,{children:e("div",{children:[n(gm,{height:30}),n("span",{children:m("table.noData")})]})})})})}):n("tbody",{children:o.map((function(e,t){return n("tr",{children:i.map((function(r){return n("td",{style:v(r),children:n("span",{children:r.render?r.render(e[r.dataIndex],e,t):r.dataIndex?e[r.dataIndex]:null})},String(r.key))}))},String(e.key))}))}):n("tbody",{children:n("tr",{children:n("td",{colSpan:i.length,children:n(FC,{})})})})]})})};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",table:{noData:"No Data"},placeholders:{username:"Username",email:"E-Mail",password:"Password",confirmPassword:"Confirm password",typeYourNoteHere:"Type your note here"},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",table:{noData:"Veri Yok"},placeholders:{username:"Kullanıcı adı",email:"E-Posta",password:"Şifre",confirmPassword:"Şifre tekrar",typeYourNoteHere:"Notunuzu buraya yazınız"},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{US as ALink,Ok as Accordion,Fg as AddDefaultThemeStyle,zg as AddZero,VE as Alert,am as ArrowIcon,lm as BackToTop,GO as BackTop,ou as Button,Uk as Calendar,LC as Card,Ug as CheckFileURL,Mm as Checkbox,cm as Checkmark,$g as ChunkArray,QS as Collapse,te as ConsoleLog,Ag as ConvertCurrency,Kk as DatePicker,Eg as DetermineNewHeight,Og as DetermineNewWidth,Yg as FileChecker,Un as FileExtensions,Yn as FileTypes,Ta as FindSelector,dk as Form,Bg as FormatBytes,Tg as GetByCurrency,Cg as GetCountryCodeByCurrencyCode,Ng as GetCountryCodeByLanguage,Lg as GetCurrencyFormat,Pg as GetCurrencySymbol,Mg as GetDecimalByCurrency,Hg as GetTypeByFileType,em as H1,tm as H2,rm as H3,im as H4,_g as ITDContext,Sg as ITDProvider,Cd as Image,NE as InlineSelect,dm as InlineSelectArrow,vS as Input,Rg as IsValidJSON,om as LockIcon,Nu as ModalManager,$n as ModalState,gm as NoData,pg as Notification,hm as Picture,cE as Radio,jg as RemoveUnits,YO as Result,$w as Select,Yc as Spin,XO as Status,jS as Switch,IC as Table,CC as Tabs,DS as TextArea,dw as TinyScrollbar,kg as Tooltip,um as Trash,Vg as UniUpperCase,Ig as UpdateThemeStyle,DO as Upload,sm as UploadIcon,Wg as Wait,fm as ZoomIn,pm as ZoomOut,oe as useAddExternalCSS,ja as useComponentSize,za as useConnectionStatus,ie as useConstructor,$a as useCoreFetch,Da as useCreateDynamicStyle,Pa as useCreateStyledStyle,Ia as useMultiQuery,La as useOnClickOutside,Ma as useOnESCKeyDown,Ra as useOnResize,re as useReCaptcha,Fa as useSingleQuery};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Ali",
6
6
  "license": "ISC",