@inntechcorp/it-design 2.2.54 → 2.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +115 -101
- package/dist/index.esm.js +114 -100
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
${Y}
|
|
1124
1124
|
`,J=t.a`
|
|
1125
1125
|
${Y}
|
|
1126
|
-
`;function Z(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const MM=[];for(let M=0;M<256;++M)MM.push((M+256).toString(16).slice(1));let bM;const zM=new Uint8Array(16);var pM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oM(M,b,z){if(pM.randomUUID&&!M)return pM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!bM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bM=crypto.getRandomValues.bind(crypto)}return bM(zM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(MM[M[b+0]]+MM[M[b+1]]+MM[M[b+2]]+MM[M[b+3]]+"-"+MM[M[b+4]]+MM[M[b+5]]+"-"+MM[M[b+6]]+MM[M[b+7]]+"-"+MM[M[b+8]]+MM[M[b+9]]+"-"+MM[M[b+10]]+MM[M[b+11]]+MM[M[b+12]]+MM[M[b+13]]+MM[M[b+14]]+MM[M[b+15]]).toLowerCase()}(p)}function cM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function eM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const OM=new Map;var tM=p.memo((({src:M,className:b,style:o,title:c,role:e,onLoaded:O,onError:t})=>{const n=p.useRef(null);return p.useEffect((()=>{const b=n.current;if(!b)return;let z=!1;const p=M=>{z
|
|
1126
|
+
`;function Z(M){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(M)}const MM=[];for(let M=0;M<256;++M)MM.push((M+256).toString(16).slice(1));let bM;const zM=new Uint8Array(16);var pM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oM(M,b,z){if(pM.randomUUID&&!M)return pM.randomUUID();const p=(M=M||{}).random??M.rng?.()??function(){if(!bM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");bM=crypto.getRandomValues.bind(crypto)}return bM(zM)}();if(p.length<16)throw new Error("Random bytes length must be >= 16");return p[6]=15&p[6]|64,p[8]=63&p[8]|128,function(M,b=0){return(MM[M[b+0]]+MM[M[b+1]]+MM[M[b+2]]+MM[M[b+3]]+"-"+MM[M[b+4]]+MM[M[b+5]]+"-"+MM[M[b+6]]+MM[M[b+7]]+"-"+MM[M[b+8]]+MM[M[b+9]]+"-"+MM[M[b+10]]+MM[M[b+11]]+MM[M[b+12]]+MM[M[b+13]]+MM[M[b+14]]+MM[M[b+15]]).toLowerCase()}(p)}function cM(M){return"x-small"===M?"14":"small"===M?"16":"medium"===M?"18":"default"===M?"20":"large"===M?"22":"x-large"===M?"24":"20"}function eM(M){return"x-small"===M?"xs":"small"===M?"sm":"medium"===M?"md":"default"===M?"df":"large"===M?"lg":"x-large"===M?"xlg":"df"}const OM=new Map;var tM=p.memo((({src:M,className:b,style:o,title:c,role:e,onLoaded:O,onError:t})=>{const n=p.useRef(null);return p.useEffect((()=>{const b=n.current;if(!b)return;let z=!1;const p=M=>{if(z)return;b.__itdLastSvg!==M?(b.innerHTML=M,b.__itdLastSvg=M,O&&O()):O&&O()};try{if(M.trim().startsWith("<svg"))return p(M),()=>{z=!0};if(OM.has(M))return p(OM.get(M)),()=>{z=!0};const b=new AbortController;return fetch(M,{signal:b.signal}).then((async M=>{if(!M.ok)throw new Error(`SVG load failed: ${M.status}`);return M.text()})).then((b=>{OM.set(M,b),p(b)})).catch((M=>{z||t&&t(M)})),()=>{z=!0,b.abort()}}catch(M){t&&t(M)}return()=>{z=!0}}),[M]),z.jsx("span",{ref:n,className:b,style:o,title:c,role:e,"aria-hidden":!c||void 0})}),((M,b)=>M.src===b.src&&M.className===b.className&&M.title===b.title&&M.role===b.role&&M.style===b.style));const nM=({id:M="",disabled:b=!1,loading:o=!1,selected:c=!1,circle:O=!1,strecth:t=!1,justify:n="center",contentPosition:A="left",type:a="button",variant:r="default",size:i="default",state:d=null,icon:q=null,href:s="",target:l="_self",className:W="",children:u=null,onClick:f=null})=>{const h=p.useRef(null),[R,L]=p.useState(M);p.useEffect((()=>{""===M&&L("itd-button-"+oM())}),[]);const m=()=>o||!q?null:p.isValidElement(q)?z.jsx(H,{className:"icon itd-element",$contentPosition:A,$justify:n,$useIconPadding:null!==u&&""!==u,children:q}):"string"==typeof q&&Z(q)?z.jsx(V,{className:"icon itd-image",src:q,as:kc,height:cM(i),brokenHeight:cM(i),$contentPosition:A,$justify:n}):"string"==typeof q?z.jsx($,{className:"icon itd-icon "+q,$contentPosition:A,$justify:n,$useIconPadding:null!==u&&""!==u}):q instanceof SVGElement?z.jsx(U,{className:"icon itd-svg",$singleIcon:!u,$contentPosition:A,$justify:n,children:z.jsx(tM,{src:q.toString()})}):null,g=()=>z.jsxs(z.Fragment,{children:["left"===A?m():null,o?z.jsx(F,{}):null,u?z.jsx(G,{$loading:o?"true":"false",children:u}):null,"right"===A?m():null]}),N=()=>p.isValidElement(q)?"element":"string"==typeof q&&Z(q)?"image":"string"==typeof q?"icon":q instanceof SVGElement?"svg":"",B=()=>{let M={id:R,$loading:"false",$justify:n,$size:eM(i),disabled:!1};return o&&(M.$loading="true"),b&&(M.disabled=!0),M},v=()=>{let M="itd-button";return M+=" itd-button-"+r,M+=" itd-button-"+eM(i),M+=" itd-button-"+a,null===u&&(M+=" itd-button-has-icon"),"statable"===r&&d&&(M+=" itd-button-"+d),"custom"===r&&d&&(M+=" itd-button-"+d),c&&(M+=" itd-button-selected"),t&&(M+=" itd-button-stretch"),O&&(M+=" itd-button-circle"),o&&(M+=" itd-button-loading"),"element"===N()&&(M+=" itd-element"),"svg"===N()&&(M+=" itd-svg"),"icon"===N()&&(M+=" itd-icon"),"image"===N()&&(M+=" itd-image"),""!==W&&(M+=" "+W),M},x=M=>{o||f&&f(M)},X=M=>z.jsx(K,{className:v(),type:M,...B(),children:g()});return"submit"===a?X("submit"):"reset"===a?X("reset"):""!==s?z.jsx(Q,{className:v(),as:e.NavLink,to:s,target:l,...B(),children:z.jsxs(z.Fragment,{children:[m(),z.jsx("span",{children:u})]})}):"link"===r?z.jsx(J,{className:v(),onClick:x,...B(),children:g()}):z.jsx(K,{className:v(),onClick:x,type:"button",ref:h,...B(),children:g()})};const AM=t.div`
|
|
1127
1127
|
|
|
1128
1128
|
position: absolute;
|
|
1129
1129
|
left: 50%;
|
|
@@ -2990,7 +2990,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
2990
2990
|
transform-origin: 50% 1%;
|
|
2991
2991
|
transform-box: fill-box;
|
|
2992
2992
|
transition-timing-function: cubic-bezier(.75,-0.5,0,1.25);
|
|
2993
|
-
`,kA=p.forwardRef((({id:M="",placeholder:b="",mask:o="##/##/####",size:e="default",variant:O="default",disabled:t=!1,floating:n=!1,position:A="left",className:a="",value:r="",defaultValue:i="",suffix:d,onUpdate:q,onChange:s,disabledDate:l},W)=>{const{dateFormat:u,locale:f}=p.useContext(mo),h=p.useRef(null),R=p.useRef(null),L=p.useRef(null),[m,g]=p.useState(""),[N,B]=p.useState(""),[v,x]=p.useState(!1),[X,y]=p.useState(M),[w,T]=p.useState({localizated:"",global:""});p.useEffect((()=>(""===M&&y("itd-datepicker-"+oM()),""!==i&&(g(Po(i).format(u)),T({localizated:Po(i).format(u),global:i})),()=>{S(!1)})),[]),p.useEffect((()=>{""!==r&&(g(Po(r).format(u)),T({localizated:Po(r).format(u),global:r}))}),[r]),p.useEffect((()=>{S(v)}),[v]),p.useEffect((()=>{R.current&&R.current.setError(N)}),[N]),p.useEffect((()=>{""!==m&&(T({localizated:Po(w.global).format(u),global:w.global}),g(Po(w.global).format(u)))}),[f]);const _=(M,b=!0,z=!0,p=!1)=>{if(!p&&(""===M.localizated||M.localizated===m))return;const o=I(M.localizated),c=o?M.global:"";g(o?M.localizated:""),q&&q(c,b,z)};p.useImperativeHandle(W,(()=>({reset(M=!0,b=!0){B(""),T({localizated:"",global:""}),_("",M,b,!0)},setValue(M,b=!0,z=!0){if(w.global===M)return;const p={localizated:Po(M).format(u),global:M};T(p),_(p,b,z)},getValue:()=>""!==w.localizated?w.global:"",setError(M){B(M)},clear(){}})));const S=M=>{document[M?"addEventListener":"removeEventListener"]("pointerdown",k)},k=M=>{v&&h.current&&!h.current.contains(M.target)&&x(!1)},E=M=>{x(!(9===M.keyCode||27===M.keyCode))},C=()=>{x(!0)},D=()=>{R.current&&R.current.setFocus&&R.current.setFocus(),x(!0)},P=M=>{console.log("handleInputChange",M);const b=I(M),z=o?.replace(/[^/(.*?)]/g,"_"),p={localizated:M,global:Po(M,u,f).format("YYYY-MM-DD")};B(""),b?(_(p),T(p)):(M===z&&""!==w.localizated&&T({localizated:"",global:""}),_("",!0),s&&s({localizated:"",global:""}))},j=()=>{},F=M=>{x(!1),T(M),_(M,!0),s&&s(M)},I=M=>{let b=Po(M,u,f,!0).isValid(),z=!1;return l&&(z=l(Po(M,u))),b&&!z},$=()=>{let M="itd-date-picker";return M+=" itd-date-picker-"+eM(e),M+=" itd-date-picker-"+O,t&&(M+=" itd-date-picker-disabled"),N&&(M+=" itd-date-picker-error"),v&&(M+=" itd-date-picker-open"),""!==a&&(M+=" "+a),M};return z.jsxs(_A,{className:$(),$disabled:t,ref:h,onClick:t?void 0:D,children:[z.jsx(Sa,{id:X,placeholder:b,value:m,floating:n,mask:o,size:e,variant:O,onChange:P,onFocus:C,onKeyDown:E,onBlur:j,keepFocus:v,focusRef:h,ref:R,disabled:t,suffix:d||"🗓️"}),z.jsx(c.CSSTransition,{in:v,timeout:500,nodeRef:L,classNames:"datepicker-modal",unmountOnExit:!0,children:z.jsx(SA,{value:m,defaultValue:m,onChange:F,disabledDate:l,$position:A})})]})}));function EA(M,b){var z={};for(var p in M)Object.prototype.hasOwnProperty.call(M,p)&&b.indexOf(p)<0&&(z[p]=M[p]);if(null!=M&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(p=Object.getOwnPropertySymbols(M);o<p.length;o++)b.indexOf(p[o])<0&&Object.prototype.propertyIsEnumerable.call(M,p[o])&&(z[p[o]]=M[p[o]])}return z}var CA;function DA(){}function PA(M){return!!(M||"").match(/\d/)}function jA(M){return null==M}function FA(M){return jA(M)||function(M){return"number"==typeof M&&isNaN(M)}(M)||"number"==typeof M&&!isFinite(M)}function IA(M){return M.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function $A(M,b){void 0===b&&(b=!0);var z="-"===M[0],p=z&&b,o=(M=M.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:z,addNegation:p}}function HA(M,b,z){for(var p="",o=z?"0":"",c=0;c<=b-1;c++)p+=M[c]||o;return p}function UA(M,b){return Array(b+1).join(M)}function VA(M){var b=M+"",z="-"===b[0]?"-":"";z&&(b=b.substring(1));var p=b.split(/[eE]/g),o=p[0],c=p[1];if(!(c=Number(c)))return z+o;var e=1+c,O=(o=o.replace(".","")).length;return e<0?o="0."+UA("0",Math.abs(e))+o:e>=O?o+=UA("0",e-O):o=(o.substring(0,e)||"0")+"."+o.substring(e),z+o}function GA(M,b,z){if(-1!==["","-"].indexOf(M))return M;var p=(-1!==M.indexOf(".")||z)&&b,o=$A(M),c=o.beforeDecimal,e=o.afterDecimal,O=o.hasNegation,t=parseFloat("0."+(e||"0")),n=(e.length<=b?"0."+e:t.toFixed(b)).split("."),A=c;return c&&Number(n[0])&&(A=c.split("").reverse().reduce((function(M,b,z){return M.length>z?(Number(M[0])+Number(b)).toString()+M.substring(1,M.length):b+M}),n[0])),""+(O?"-":"")+A+(p?".":"")+HA(n[1]||"",b,z)}function YA(M,b){if(M.value=M.value,null!==M){if(M.createTextRange){var z=M.createTextRange();return z.move("character",b),z.select(),!0}return M.selectionStart||0===M.selectionStart?(M.focus(),M.setSelectionRange(b,b),!0):(M.focus(),!1)}}!function(M){M.event="event",M.props="prop"}(CA||(CA={}));var KA,QA,JA,ZA=(KA=function(M,b){for(var z=0,p=0,o=M.length,c=b.length;M[z]===b[z]&&z<o;)z++;for(;M[o-1-p]===b[c-1-p]&&c-p>z&&o-p>z;)p++;return{from:{start:z,end:o-p},to:{start:z,end:c-p}}},JA=void 0,function(){for(var M=[],b=arguments.length;b--;)M[b]=arguments[b];return QA&&M.length===QA.length&&M.every((function(M,b){return M===QA[b]}))?JA:(QA=M,JA=KA.apply(void 0,M))});function Ma(M){return Math.max(M.selectionStart,M.selectionEnd)}function ba(M){return{from:{start:0,end:0},to:{start:0,end:M.length},lastValue:""}}function za(M,b){return void 0===M&&(M=" "),"string"==typeof M?M:M[b]||" "}function pa(M){var b=M.currentValue,z=M.formattedValue,p=M.currentValueIndex,o=M.formattedValueIndex;return b[p]===z[o]}function oa(M,b,z,p){var o,c,e,O=M.length;if(o=b,c=0,e=O,b=Math.min(Math.max(o,c),e),"left"===p){for(;b>=0&&!z[b];)b--;-1===b&&(b=z.indexOf(!0))}else{for(;b<=O&&!z[b];)b++;b>O&&(b=z.lastIndexOf(!0))}return-1===b&&(b=O),b}function ca(M){for(var b=Array.from({length:M.length+1}).map((function(){return!0})),z=0,p=b.length;z<p;z++)b[z]=Boolean(PA(M[z])||PA(M[z-1]));return b}function ea(M,b,z,o,c,e){void 0===e&&(e=DA);var O=function(M){var b=p.useRef(M);b.current=M;var z=p.useRef((function(){for(var M=[],z=arguments.length;z--;)M[z]=arguments[z];return b.current.apply(b,M)}));return z.current}((function(M,b){var z,p;return FA(M)?(p="",z=""):"number"==typeof M||b?(p="number"==typeof M?VA(M):M,z=o(p)):(p=c(M,void 0),z=o(p)),{formattedValue:z,numAsString:p}})),t=p.useState((function(){return O(jA(M)?b:M,z)})),n=t[0],A=t[1],a=M,r=z;jA(M)&&(a=n.numAsString,r=!0);var i=O(a,r);return p.useMemo((function(){A(i)}),[i.formattedValue]),[n,function(M,b){M.formattedValue!==n.formattedValue&&A({formattedValue:M.formattedValue,numAsString:M.value}),e(M,b)}]}function Oa(M){return M.replace(/[^0-9]/g,"")}function ta(M){return M}function na(M){var b=M.type;void 0===b&&(b="text");var z=M.displayType;void 0===z&&(z="input");var o=M.customInput,c=M.renderText,e=M.getInputRef,O=M.format;void 0===O&&(O=ta);var t=M.removeFormatting;void 0===t&&(t=Oa);var n=M.defaultValue,A=M.valueIsNumericString,a=M.onValueChange,r=M.isAllowed,i=M.onChange;void 0===i&&(i=DA);var d=M.onKeyDown;void 0===d&&(d=DA);var q=M.onMouseUp;void 0===q&&(q=DA);var s=M.onFocus;void 0===s&&(s=DA);var l=M.onBlur;void 0===l&&(l=DA);var W=M.value,u=M.getCaretBoundary;void 0===u&&(u=ca);var f=M.isValidInputCharacter;void 0===f&&(f=PA);var h=M.isCharacterSame,R=EA(M,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),L=ea(W,n,Boolean(A),O,t,a),m=L[0],g=m.formattedValue,N=m.numAsString,B=L[1],v=p.useRef(),x=p.useRef({formattedValue:g,numAsString:N}),X=function(M,b){x.current={formattedValue:M.formattedValue,numAsString:M.value},B(M,b)},y=p.useState(!1),w=y[0],T=y[1],_=p.useRef(null),S=p.useRef({setCaretTimeout:null,focusTimeout:null});p.useEffect((function(){return T(!0),function(){clearTimeout(S.current.setCaretTimeout),clearTimeout(S.current.focusTimeout)}}),[]);var k=O,E=function(M,b){var z=parseFloat(b);return{formattedValue:M,value:b,floatValue:isNaN(z)?void 0:z}},C=function(M,b,z){0===M.selectionStart&&M.selectionEnd===M.value.length||(YA(M,b),S.current.setCaretTimeout=setTimeout((function(){M.value===z&&M.selectionStart!==b&&YA(M,b)}),0))},D=function(M,b,z){return oa(M,b,u(M),z)},P=function(M,b,z){var p=u(b),o=function(M,b,z,p,o,c,e){void 0===e&&(e=pa);var O=o.findIndex((function(M){return M})),t=M.slice(0,O);b||z.startsWith(t)||(b=t,z=t+z,p+=t.length);for(var n=z.length,A=M.length,a={},r=new Array(n),i=0;i<n;i++){r[i]=-1;for(var d=0,q=A;d<q;d++)if(e({currentValue:z,lastValue:b,formattedValue:M,currentValueIndex:i,formattedValueIndex:d})&&!0!==a[d]){r[i]=d,a[d]=!0;break}}for(var s=p;s<n&&(-1===r[s]||!c(z[s]));)s++;var l=s===n||-1===r[s]?A:r[s];for(s=p-1;s>0&&-1===r[s];)s--;var W=-1===s||-1===r[s]?0:r[s]+1;return W>l?l:p-W<l-p?W:l}(b,g,M,z,p,f,h);return o=oa(b,o,p)};p.useEffect((function(){var M=x.current,b=M.formattedValue,z=M.numAsString;g===b&&N===z||X(E(g,N),{event:void 0,source:CA.props})}),[g,N]);var j=_.current?Ma(_.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var M=_.current;if(g!==x.current.formattedValue&&M){var b=P(x.current.formattedValue,g,j);M.value=g,C(M,b,g)}}),[g]);var F=function(M,b,z){var p=b.target,o=v.current?function(M,b){var z=Math.min(M.selectionStart,b);return{from:{start:z,end:M.selectionEnd},to:{start:z,end:b}}}(v.current,p.selectionEnd):ZA(g,M),c=Object.assign(Object.assign({},o),{lastValue:g}),e=t(M,c),O=k(e);if(e=t(O,void 0),r&&!r(E(O,e))){var n=b.target,A=Ma(n),a=P(M,g,A);return n.value=g,C(n,a,g),!1}return function(M){var b=M.formattedValue;void 0===b&&(b="");var z,p=M.input,o=M.source,c=M.event,e=M.numAsString;if(p){var O=M.inputValue||p.value,t=Ma(p);p.value=b,void 0!==(z=P(O,b,t))&&C(p,z,b)}b!==g&&X(E(b,e),{event:c,source:o})}({formattedValue:O,numAsString:e,inputValue:M,event:b,source:z,input:b.target}),!0},I=function(M,b){void 0===b&&(b=0);var z=M.selectionStart,p=M.selectionEnd;v.current={selectionStart:z,selectionEnd:p+b}},$=!w||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:$},R,{type:b,value:g,onChange:function(M){var b=M.target.value;F(b,M,CA.event)&&i(M),v.current=void 0},onKeyDown:function(M){var b,z=M.target,p=M.key,o=z.selectionStart,c=z.selectionEnd,e=z.value;void 0===e&&(e=""),"ArrowLeft"===p||"Backspace"===p?b=Math.max(o-1,0):"ArrowRight"===p?b=Math.min(o+1,e.length):"Delete"===p&&(b=o);var O=0;"Delete"===p&&o===c&&(O=1);var t="ArrowLeft"===p||"ArrowRight"===p;if(void 0===b||o!==c&&!t)return d(M),void I(z,O);var n=b;t?(n=D(e,b,"ArrowLeft"===p?"left":"right"))!==b&&M.preventDefault():"Delete"!==p||f(e[b])?"Backspace"!==p||f(e[b])||(n=D(e,b,"left")):n=D(e,b,"right");n!==b&&C(z,n,e),d(M),I(z,O)},onMouseUp:function(M){var b=M.target,z=function(){var M=b.selectionStart,z=b.selectionEnd,p=b.value;if(void 0===p&&(p=""),M===z){var o=D(p,M);o!==M&&C(b,o,p)}};z(),requestAnimationFrame((function(){z()})),q(M),I(b)},onFocus:function(M){M.persist&&M.persist();var b=M.target,z=M.currentTarget;_.current=b,S.current.focusTimeout=setTimeout((function(){var p=b.selectionStart,o=b.selectionEnd,c=b.value;void 0===c&&(c="");var e=D(c,p);e===p||0===p&&o===c.length||C(b,e,c),s(Object.assign(Object.assign({},M),{currentTarget:z}))}),0)},onBlur:function(M){_.current=null,clearTimeout(S.current.focusTimeout),clearTimeout(S.current.setCaretTimeout),l(M)}});if("text"===z)return c?p.createElement(p.Fragment,null,c(g,R)||null):p.createElement("span",Object.assign({},R,{ref:e}),g);if(o){var U=o;return p.createElement(U,Object.assign({},H,{ref:e}))}return p.createElement("input",Object.assign({},H,{ref:e}))}function Aa(M,b){var z=b.decimalScale,p=b.fixedDecimalScale,o=b.prefix;void 0===o&&(o="");var c=b.suffix;void 0===c&&(c="");var e=b.allowNegative,O=b.thousandsGroupStyle;if(void 0===O&&(O="thousand"),""===M||"-"===M)return M;var t=aa(b),n=t.thousandSeparator,A=t.decimalSeparator,a=0!==z&&-1!==M.indexOf(".")||z&&p,r=$A(M,e),i=r.beforeDecimal,d=r.afterDecimal,q=r.addNegation;return void 0!==z&&(d=HA(d,z,!!p)),n&&(i=function(M,b,z){var p=function(M){switch(M){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(z),o=M.search(/[1-9]/);return o=-1===o?M.length:o,M.substring(0,o)+M.substring(o,M.length).replace(p,"$1"+b)}(i,n,O)),o&&(i=o+i),c&&(d+=c),q&&(i="-"+i),M=i+(a&&A||"")+d}function aa(M){var b=M.decimalSeparator;void 0===b&&(b=".");var z=M.thousandSeparator,p=M.allowedDecimalSeparators;return!0===z&&(z=","),p||(p=[b,"."]),{decimalSeparator:b,thousandSeparator:z,allowedDecimalSeparators:p}}function ra(M,b,z){var p;void 0===b&&(b=ba(M));var o=z.allowNegative,c=z.prefix;void 0===c&&(c="");var e=z.suffix;void 0===e&&(e="");var O=z.decimalScale,t=b.from,n=b.to,A=n.start,a=n.end,r=aa(z),i=r.allowedDecimalSeparators,d=r.decimalSeparator,q=M[a]===d;if(PA(M)&&(M===c||M===e)&&""===b.lastValue)return M;if(a-A==1&&-1!==i.indexOf(M[A])){var s=0===O?"":d;M=M.substring(0,A)+s+M.substring(A+1,M.length)}var l=function(M,b,z){var p=!1,o=!1;c.startsWith("-")?p=!1:M.startsWith("--")?(p=!1,o=!0):e.startsWith("-")&&M.length===e.length?p=!1:"-"===M[0]&&(p=!0);var O=p?1:0;return o&&(O=2),O&&(M=M.substring(O),b-=O,z-=O),{value:M,start:b,end:z,hasNegation:p}},W=l(M,A,a),u=W.hasNegation;M=(p=W).value,A=p.start,a=p.end;var f=l(b.lastValue,t.start,t.end),h=f.start,R=f.end,L=f.value,m=M.substring(A,a);!(M.length&&L.length&&(h>L.length-e.length||R<c.length))||m&&e.startsWith(m)||(M=L);var g=0;M.startsWith(c)?g+=c.length:A<c.length&&(g=A),a-=g;var N=(M=M.substring(g)).length,B=M.length-e.length;M.endsWith(e)?N=B:(a>B||a>M.length-e.length)&&(N=a),M=M.substring(0,N),M=function(M,b){void 0===M&&(M="");var z=new RegExp("(-)"),p=new RegExp("(-)(.)*(-)"),o=z.test(M),c=p.test(M);return M=M.replace(/-/g,""),o&&!c&&b&&(M="-"+M),M}(u?"-"+M:M,o),M=(M.match(function(M){return new RegExp("(^-)|[0-9]|"+IA(M),"g")}(d))||[]).join("");var v=M.indexOf(d),x=$A(M=M.replace(new RegExp(IA(d),"g"),(function(M,b){return b===v?".":""})),o),X=x.beforeDecimal,y=x.afterDecimal,w=x.addNegation;return n.end-n.start<t.end-t.start&&""===X&&q&&!parseFloat(y)&&(M=w?"-":""),M}function ia(M){M=function(M){var b=aa(M),z=b.thousandSeparator,p=b.decimalSeparator,o=M.prefix;void 0===o&&(o="");var c=M.allowNegative;if(void 0===c&&(c=!0),z===p)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+z+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+p+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&c&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+c+"\n "),c=!1),Object.assign(Object.assign({},M),{allowNegative:c})}(M),M.decimalSeparator,M.allowedDecimalSeparators,M.thousandsGroupStyle;var b=M.suffix,z=M.allowNegative,p=M.allowLeadingZeros,o=M.onKeyDown;void 0===o&&(o=DA);var c=M.onBlur;void 0===c&&(c=DA);var e=M.thousandSeparator,O=M.decimalScale,t=M.fixedDecimalScale,n=M.prefix;void 0===n&&(n="");var A=M.defaultValue,a=M.value,r=M.valueIsNumericString,i=M.onValueChange,d=EA(M,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),q=aa(M),s=q.decimalSeparator,l=q.allowedDecimalSeparators,W=function(b){return Aa(b,M)},u=function(b,z){return ra(b,z,M)},f=jA(a)?A:a,h=null!=r?r:function(M,b,z){return""===M||!(null==b?void 0:b.match(/\d/))&&!(null==z?void 0:z.match(/\d/))&&"string"==typeof M&&!isNaN(Number(M))}(f,n,b);jA(a)?jA(A)||(h=h||"number"==typeof A):h=h||"number"==typeof a;var R=function(M){return FA(M)?M:("number"==typeof M&&(M=VA(M)),h&&"number"==typeof O?GA(M,O,Boolean(t)):M)},L=ea(R(a),R(A),Boolean(h),W,u,i),m=L[0],g=m.numAsString,N=m.formattedValue,B=L[1];return Object.assign(Object.assign({},d),{value:N,valueIsNumericString:!1,isValidInputCharacter:function(M){return M===s||PA(M)},isCharacterSame:function(M){var b=M.currentValue,z=M.lastValue,p=M.formattedValue,o=M.currentValueIndex,c=M.formattedValueIndex,e=b[o],A=p[c],r=ZA(z,b).to,i=function(M){return u(M).indexOf(".")+n.length};return!(0===a&&t&&O&&b[r.start]===s&&i(b)<o&&i(p)>c)&&(!!(o>=r.start&&o<r.end&&l&&l.includes(e)&&A===s)||e===A)},onValueChange:B,format:W,removeFormatting:u,getCaretBoundary:function(b){return function(M,b){var z=b.prefix;void 0===z&&(z="");var p=b.suffix;void 0===p&&(p="");var o=Array.from({length:M.length+1}).map((function(){return!0})),c="-"===M[0];o.fill(!1,0,z.length+(c?1:0));var e=M.length;return o.fill(!1,e-p.length+1,e+1),o}(b,M)},onKeyDown:function(M){var b=M.target,p=M.key,c=b.selectionStart,A=b.selectionEnd,a=b.value;if(void 0===a&&(a=""),("Backspace"===p||"Delete"===p)&&A<n.length)M.preventDefault();else if(c===A){"Backspace"===p&&"-"===a[0]&&c===n.length+1&&z&&YA(b,1),O&&t&&("Backspace"===p&&a[c-1]===s?(YA(b,c-1),M.preventDefault()):"Delete"===p&&a[c]===s&&M.preventDefault()),(null==l?void 0:l.includes(p))&&a[c]===s&&YA(b,c+1);var r=!0===e?",":e;"Backspace"===p&&a[c-1]===r&&YA(b,c-1),"Delete"===p&&a[c]===r&&YA(b,c+1),o(M)}else o(M)},onBlur:function(b){var z=g;if(z.match(/\d/g)||(z=""),p||(z=function(M){if(!M)return M;var b="-"===M[0];b&&(M=M.substring(1,M.length));var z=M.split("."),p=z[0].replace(/^0+/,"")||"0",o=z[1]||"";return(b?"-":"")+p+(o?"."+o:"")}(z)),t&&O&&(z=GA(z,O,t)),z!==g){var o=Aa(z,M);B({formattedValue:o,value:z,floatValue:parseFloat(z)},{event:b,source:CA.event})}c(b)}})}function da(M){var b=ia(M);return p.createElement(na,Object.assign({},b))}function qa(M){M.mask,M.allowEmptyFormatting;var b=M.format,z=M.inputMode;void 0===z&&(z="numeric");var p=M.onKeyDown;void 0===p&&(p=DA);var o=M.patternChar;void 0===o&&(o="#");var c=M.value,e=M.defaultValue,O=M.valueIsNumericString,t=EA(M,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(M){var b=M.mask;if(b&&("string"===b?b:b.toString()).match(/\d/g))throw new Error("Mask "+b+" should not contain numeric character;")}(M);var n=function(b){return function(M,b){var z=b.format,p=b.mask,o=b.patternChar;void 0===o&&(o="#");var c=Array.from({length:M.length+1}).map((function(){return!0})),e=0,O=-1,t={};z.split("").forEach((function(b,z){var c=void 0;b===o&&(e++,c=za(p,e-1),-1===O&&M[z]===c&&(O=z)),t[z]=c}));for(var n=function(b){return z[b]===o&&M[b]!==t[b]},A=0,a=c.length;A<a;A++)c[A]=A===O||n(A)||n(A-1);return c[z.indexOf(o)]=!0,c}(b,M)},A=jA(c)?e:c,a=null!=O?O:function(M,b){return""===M||!((null==b?void 0:b.match(/\d/))||"string"!=typeof M||!M.match(/^\d+$/)&&""!==M)}(A,b),r=Object.assign(Object.assign({},M),{valueIsNumericString:a});return Object.assign(Object.assign({},t),{value:c,defaultValue:e,valueIsNumericString:a,inputMode:z,format:function(M){return function(M,b){var z=b.format,p=b.allowEmptyFormatting,o=b.mask,c=b.patternChar;if(void 0===c&&(c="#"),""===M&&!p)return"";for(var e=0,O=z.split(""),t=0,n=z.length;t<n;t++)z[t]===c&&(O[t]=M[e]||za(o,e),e+=1);return O.join("")}(M,r)},removeFormatting:function(M,b){return function(M,b,z){void 0===b&&(b=ba(M));var p=z.format,o=z.patternChar;void 0===o&&(o="#");var c=b.from,e=b.to,O=b.lastValue;void 0===O&&(O="");var t=function(M){return p[M]===o},n=function(M,b){for(var z="",p=0;p<M.length;p++)t(b+p)&&PA(M[p])&&(z+=M[p]);return z},A=function(M){return M.replace(/[^0-9]/g,"")};if(!p.match(/\d/))return A(M);if((""===O||c.end-c.start===O.length)&&M.length===p.length){for(var a="",r=0;r<M.length;r++)if(t(r))PA(M[r])&&(a+=M[r]);else if(M[r]!==p[r])return A(M);return a}var i=O.substring(0,c.start),d=M.substring(e.start,e.end),q=O.substring(c.end);return""+n(i,0)+A(d)+n(q,c.end)}(M,b,r)},getCaretBoundary:n,onKeyDown:function(M){var z=M.key,c=M.target,e=c.selectionStart,O=c.selectionEnd,t=c.value;if(e===O){var A=e;if("Backspace"===z||"Delete"===z){var a="right";if("Backspace"===z){for(;A>0&&b[A-1]!==o;)A--;a="left"}else{for(var r=b.length;A<r&&b[A]!==o;)A++;a="right"}A=oa(t,A,n(t),a)}else b[A]!==o&&"ArrowLeft"!==z&&"ArrowRight"!==z&&(A=oa(t,A+1,n(t),"right"));A!==e&&YA(c,A),p(M)}else p(M)}})}function sa(M){var b=qa(M);return p.createElement(na,Object.assign({},b))}const la=t.div`
|
|
2993
|
+
`,kA=p.forwardRef((({id:M="",placeholder:b="",mask:o="##/##/####",size:e="default",variant:O="default",disabled:t=!1,floating:n=!1,position:A="left",className:a="",value:r="",defaultValue:i="",suffix:d,onUpdate:q,onChange:s,disabledDate:l},W)=>{const{dateFormat:u,locale:f}=p.useContext(mo),h=p.useRef(null),R=p.useRef(null),L=p.useRef(null),[m,g]=p.useState(""),[N,B]=p.useState(""),[v,x]=p.useState(!1),[X,y]=p.useState(M),[w,T]=p.useState({localizated:"",global:""});p.useEffect((()=>(""===M&&y("itd-datepicker-"+oM()),""!==i&&(g(Po(i).format(u)),T({localizated:Po(i).format(u),global:i})),()=>{S(!1)})),[]),p.useEffect((()=>{""!==r&&(g(Po(r).format(u)),T({localizated:Po(r).format(u),global:r}))}),[r]),p.useEffect((()=>{S(v)}),[v]),p.useEffect((()=>{R.current&&R.current.setError(N)}),[N]),p.useEffect((()=>{""!==m&&(T({localizated:Po(w.global).format(u),global:w.global}),g(Po(w.global).format(u)))}),[f]);const _=(M,b=!0,z=!0,p=!1)=>{if(!p&&(""===M.localizated||M.localizated===m))return;const o=I(M.localizated),c=o?M.global:"";g(o?M.localizated:""),q&&q(c,b,z)};p.useImperativeHandle(W,(()=>({reset(M=!0,b=!0){B(""),T({localizated:"",global:""}),_("",M,b,!0)},setValue(M,b=!0,z=!0){if(w.global===M)return;const p={localizated:Po(M).format(u),global:M};T(p),_(p,b,z)},getValue:()=>""!==w.localizated?w.global:"",setError(M){B(M)},clear(){}})));const S=M=>{document[M?"addEventListener":"removeEventListener"]("pointerdown",k)},k=M=>{v&&h.current&&!h.current.contains(M.target)&&x(!1)},E=M=>{x(!(9===M.keyCode||27===M.keyCode))},C=()=>{x(!0)},D=()=>{R.current&&R.current.setFocus&&R.current.setFocus(),x(!0)},P=M=>{console.log("handleInputChange",M);const b=I(M),z=o?.replace(/[^/(.*?)]/g,"_"),p={localizated:M,global:Po(M,u,f).format("YYYY-MM-DD")};B(""),b?(_(p),T(p)):(M===z&&""!==w.localizated&&T({localizated:"",global:""}),_("",!0),s&&s({localizated:"",global:""}))},j=()=>{},F=M=>{x(!1),T(M),_(M,!0),s&&s(M)},I=M=>{let b=Po(M,u,f,!0).isValid(),z=!1;return l&&(z=l(Po(M,u))),b&&!z},$=()=>{let M="itd-date-picker";return M+=" itd-date-picker-"+eM(e),M+=" itd-date-picker-"+O,t&&(M+=" itd-date-picker-disabled"),N&&(M+=" itd-date-picker-error"),v&&(M+=" itd-date-picker-open"),""!==a&&(M+=" "+a),M};return z.jsxs(_A,{className:$(),$disabled:t,ref:h,onClick:t?void 0:D,children:[z.jsx(Ea,{id:X,placeholder:b,value:m,floating:n,mask:o,size:e,variant:O,onChange:P,onFocus:C,onKeyDown:E,onBlur:j,keepFocus:v,focusRef:h,ref:R,disabled:t,suffix:d||"🗓️"}),z.jsx(c.CSSTransition,{in:v,timeout:500,nodeRef:L,classNames:"datepicker-modal",unmountOnExit:!0,children:z.jsx(SA,{value:m,defaultValue:m,onChange:F,disabledDate:l,$position:A})})]})}));function EA(M,b){var z={};for(var p in M)Object.prototype.hasOwnProperty.call(M,p)&&b.indexOf(p)<0&&(z[p]=M[p]);if(null!=M&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(p=Object.getOwnPropertySymbols(M);o<p.length;o++)b.indexOf(p[o])<0&&Object.prototype.propertyIsEnumerable.call(M,p[o])&&(z[p[o]]=M[p[o]])}return z}var CA;function DA(){}function PA(M){return!!(M||"").match(/\d/)}function jA(M){return null==M}function FA(M){return jA(M)||function(M){return"number"==typeof M&&isNaN(M)}(M)||"number"==typeof M&&!isFinite(M)}function IA(M){return M.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function $A(M,b){void 0===b&&(b=!0);var z="-"===M[0],p=z&&b,o=(M=M.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:z,addNegation:p}}function HA(M,b,z){for(var p="",o=z?"0":"",c=0;c<=b-1;c++)p+=M[c]||o;return p}function UA(M,b){return Array(b+1).join(M)}function VA(M){var b=M+"",z="-"===b[0]?"-":"";z&&(b=b.substring(1));var p=b.split(/[eE]/g),o=p[0],c=p[1];if(!(c=Number(c)))return z+o;var e=1+c,O=(o=o.replace(".","")).length;return e<0?o="0."+UA("0",Math.abs(e))+o:e>=O?o+=UA("0",e-O):o=(o.substring(0,e)||"0")+"."+o.substring(e),z+o}function GA(M,b,z){if(-1!==["","-"].indexOf(M))return M;var p=(-1!==M.indexOf(".")||z)&&b,o=$A(M),c=o.beforeDecimal,e=o.afterDecimal,O=o.hasNegation,t=parseFloat("0."+(e||"0")),n=(e.length<=b?"0."+e:t.toFixed(b)).split("."),A=c;return c&&Number(n[0])&&(A=c.split("").reverse().reduce((function(M,b,z){return M.length>z?(Number(M[0])+Number(b)).toString()+M.substring(1,M.length):b+M}),n[0])),""+(O?"-":"")+A+(p?".":"")+HA(n[1]||"",b,z)}function YA(M,b){if(M.value=M.value,null!==M){if(M.createTextRange){var z=M.createTextRange();return z.move("character",b),z.select(),!0}return M.selectionStart||0===M.selectionStart?(M.focus(),M.setSelectionRange(b,b),!0):(M.focus(),!1)}}!function(M){M.event="event",M.props="prop"}(CA||(CA={}));var KA,QA,JA,ZA=(KA=function(M,b){for(var z=0,p=0,o=M.length,c=b.length;M[z]===b[z]&&z<o;)z++;for(;M[o-1-p]===b[c-1-p]&&c-p>z&&o-p>z;)p++;return{from:{start:z,end:o-p},to:{start:z,end:c-p}}},JA=void 0,function(){for(var M=[],b=arguments.length;b--;)M[b]=arguments[b];return QA&&M.length===QA.length&&M.every((function(M,b){return M===QA[b]}))?JA:(QA=M,JA=KA.apply(void 0,M))});function Ma(M){return Math.max(M.selectionStart,M.selectionEnd)}function ba(M){return{from:{start:0,end:0},to:{start:0,end:M.length},lastValue:""}}function za(M,b){return void 0===M&&(M=" "),"string"==typeof M?M:M[b]||" "}function pa(M){var b=M.currentValue,z=M.formattedValue,p=M.currentValueIndex,o=M.formattedValueIndex;return b[p]===z[o]}function oa(M,b,z,p){var o,c,e,O=M.length;if(o=b,c=0,e=O,b=Math.min(Math.max(o,c),e),"left"===p){for(;b>=0&&!z[b];)b--;-1===b&&(b=z.indexOf(!0))}else{for(;b<=O&&!z[b];)b++;b>O&&(b=z.lastIndexOf(!0))}return-1===b&&(b=O),b}function ca(M){for(var b=Array.from({length:M.length+1}).map((function(){return!0})),z=0,p=b.length;z<p;z++)b[z]=Boolean(PA(M[z])||PA(M[z-1]));return b}function ea(M,b,z,o,c,e){void 0===e&&(e=DA);var O=function(M){var b=p.useRef(M);b.current=M;var z=p.useRef((function(){for(var M=[],z=arguments.length;z--;)M[z]=arguments[z];return b.current.apply(b,M)}));return z.current}((function(M,b){var z,p;return FA(M)?(p="",z=""):"number"==typeof M||b?(p="number"==typeof M?VA(M):M,z=o(p)):(p=c(M,void 0),z=o(p)),{formattedValue:z,numAsString:p}})),t=p.useState((function(){return O(jA(M)?b:M,z)})),n=t[0],A=t[1],a=M,r=z;jA(M)&&(a=n.numAsString,r=!0);var i=O(a,r);return p.useMemo((function(){A(i)}),[i.formattedValue]),[n,function(M,b){M.formattedValue!==n.formattedValue&&A({formattedValue:M.formattedValue,numAsString:M.value}),e(M,b)}]}function Oa(M){return M.replace(/[^0-9]/g,"")}function ta(M){return M}function na(M){var b=M.type;void 0===b&&(b="text");var z=M.displayType;void 0===z&&(z="input");var o=M.customInput,c=M.renderText,e=M.getInputRef,O=M.format;void 0===O&&(O=ta);var t=M.removeFormatting;void 0===t&&(t=Oa);var n=M.defaultValue,A=M.valueIsNumericString,a=M.onValueChange,r=M.isAllowed,i=M.onChange;void 0===i&&(i=DA);var d=M.onKeyDown;void 0===d&&(d=DA);var q=M.onMouseUp;void 0===q&&(q=DA);var s=M.onFocus;void 0===s&&(s=DA);var l=M.onBlur;void 0===l&&(l=DA);var W=M.value,u=M.getCaretBoundary;void 0===u&&(u=ca);var f=M.isValidInputCharacter;void 0===f&&(f=PA);var h=M.isCharacterSame,R=EA(M,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),L=ea(W,n,Boolean(A),O,t,a),m=L[0],g=m.formattedValue,N=m.numAsString,B=L[1],v=p.useRef(),x=p.useRef({formattedValue:g,numAsString:N}),X=function(M,b){x.current={formattedValue:M.formattedValue,numAsString:M.value},B(M,b)},y=p.useState(!1),w=y[0],T=y[1],_=p.useRef(null),S=p.useRef({setCaretTimeout:null,focusTimeout:null});p.useEffect((function(){return T(!0),function(){clearTimeout(S.current.setCaretTimeout),clearTimeout(S.current.focusTimeout)}}),[]);var k=O,E=function(M,b){var z=parseFloat(b);return{formattedValue:M,value:b,floatValue:isNaN(z)?void 0:z}},C=function(M,b,z){0===M.selectionStart&&M.selectionEnd===M.value.length||(YA(M,b),S.current.setCaretTimeout=setTimeout((function(){M.value===z&&M.selectionStart!==b&&YA(M,b)}),0))},D=function(M,b,z){return oa(M,b,u(M),z)},P=function(M,b,z){var p=u(b),o=function(M,b,z,p,o,c,e){void 0===e&&(e=pa);var O=o.findIndex((function(M){return M})),t=M.slice(0,O);b||z.startsWith(t)||(b=t,z=t+z,p+=t.length);for(var n=z.length,A=M.length,a={},r=new Array(n),i=0;i<n;i++){r[i]=-1;for(var d=0,q=A;d<q;d++)if(e({currentValue:z,lastValue:b,formattedValue:M,currentValueIndex:i,formattedValueIndex:d})&&!0!==a[d]){r[i]=d,a[d]=!0;break}}for(var s=p;s<n&&(-1===r[s]||!c(z[s]));)s++;var l=s===n||-1===r[s]?A:r[s];for(s=p-1;s>0&&-1===r[s];)s--;var W=-1===s||-1===r[s]?0:r[s]+1;return W>l?l:p-W<l-p?W:l}(b,g,M,z,p,f,h);return o=oa(b,o,p)};p.useEffect((function(){var M=x.current,b=M.formattedValue,z=M.numAsString;g===b&&N===z||X(E(g,N),{event:void 0,source:CA.props})}),[g,N]);var j=_.current?Ma(_.current):void 0;("undefined"!=typeof window?p.useLayoutEffect:p.useEffect)((function(){var M=_.current;if(g!==x.current.formattedValue&&M){var b=P(x.current.formattedValue,g,j);M.value=g,C(M,b,g)}}),[g]);var F=function(M,b,z){var p=b.target,o=v.current?function(M,b){var z=Math.min(M.selectionStart,b);return{from:{start:z,end:M.selectionEnd},to:{start:z,end:b}}}(v.current,p.selectionEnd):ZA(g,M),c=Object.assign(Object.assign({},o),{lastValue:g}),e=t(M,c),O=k(e);if(e=t(O,void 0),r&&!r(E(O,e))){var n=b.target,A=Ma(n),a=P(M,g,A);return n.value=g,C(n,a,g),!1}return function(M){var b=M.formattedValue;void 0===b&&(b="");var z,p=M.input,o=M.source,c=M.event,e=M.numAsString;if(p){var O=M.inputValue||p.value,t=Ma(p);p.value=b,void 0!==(z=P(O,b,t))&&C(p,z,b)}b!==g&&X(E(b,e),{event:c,source:o})}({formattedValue:O,numAsString:e,inputValue:M,event:b,source:z,input:b.target}),!0},I=function(M,b){void 0===b&&(b=0);var z=M.selectionStart,p=M.selectionEnd;v.current={selectionStart:z,selectionEnd:p+b}},$=!w||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:$},R,{type:b,value:g,onChange:function(M){var b=M.target.value;F(b,M,CA.event)&&i(M),v.current=void 0},onKeyDown:function(M){var b,z=M.target,p=M.key,o=z.selectionStart,c=z.selectionEnd,e=z.value;void 0===e&&(e=""),"ArrowLeft"===p||"Backspace"===p?b=Math.max(o-1,0):"ArrowRight"===p?b=Math.min(o+1,e.length):"Delete"===p&&(b=o);var O=0;"Delete"===p&&o===c&&(O=1);var t="ArrowLeft"===p||"ArrowRight"===p;if(void 0===b||o!==c&&!t)return d(M),void I(z,O);var n=b;t?(n=D(e,b,"ArrowLeft"===p?"left":"right"))!==b&&M.preventDefault():"Delete"!==p||f(e[b])?"Backspace"!==p||f(e[b])||(n=D(e,b,"left")):n=D(e,b,"right");n!==b&&C(z,n,e),d(M),I(z,O)},onMouseUp:function(M){var b=M.target,z=function(){var M=b.selectionStart,z=b.selectionEnd,p=b.value;if(void 0===p&&(p=""),M===z){var o=D(p,M);o!==M&&C(b,o,p)}};z(),requestAnimationFrame((function(){z()})),q(M),I(b)},onFocus:function(M){M.persist&&M.persist();var b=M.target,z=M.currentTarget;_.current=b,S.current.focusTimeout=setTimeout((function(){var p=b.selectionStart,o=b.selectionEnd,c=b.value;void 0===c&&(c="");var e=D(c,p);e===p||0===p&&o===c.length||C(b,e,c),s(Object.assign(Object.assign({},M),{currentTarget:z}))}),0)},onBlur:function(M){_.current=null,clearTimeout(S.current.focusTimeout),clearTimeout(S.current.setCaretTimeout),l(M)}});if("text"===z)return c?p.createElement(p.Fragment,null,c(g,R)||null):p.createElement("span",Object.assign({},R,{ref:e}),g);if(o){var U=o;return p.createElement(U,Object.assign({},H,{ref:e}))}return p.createElement("input",Object.assign({},H,{ref:e}))}function Aa(M,b){var z=b.decimalScale,p=b.fixedDecimalScale,o=b.prefix;void 0===o&&(o="");var c=b.suffix;void 0===c&&(c="");var e=b.allowNegative,O=b.thousandsGroupStyle;if(void 0===O&&(O="thousand"),""===M||"-"===M)return M;var t=aa(b),n=t.thousandSeparator,A=t.decimalSeparator,a=0!==z&&-1!==M.indexOf(".")||z&&p,r=$A(M,e),i=r.beforeDecimal,d=r.afterDecimal,q=r.addNegation;return void 0!==z&&(d=HA(d,z,!!p)),n&&(i=function(M,b,z){var p=function(M){switch(M){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(z),o=M.search(/[1-9]/);return o=-1===o?M.length:o,M.substring(0,o)+M.substring(o,M.length).replace(p,"$1"+b)}(i,n,O)),o&&(i=o+i),c&&(d+=c),q&&(i="-"+i),M=i+(a&&A||"")+d}function aa(M){var b=M.decimalSeparator;void 0===b&&(b=".");var z=M.thousandSeparator,p=M.allowedDecimalSeparators;return!0===z&&(z=","),p||(p=[b,"."]),{decimalSeparator:b,thousandSeparator:z,allowedDecimalSeparators:p}}function ra(M,b,z){var p;void 0===b&&(b=ba(M));var o=z.allowNegative,c=z.prefix;void 0===c&&(c="");var e=z.suffix;void 0===e&&(e="");var O=z.decimalScale,t=b.from,n=b.to,A=n.start,a=n.end,r=aa(z),i=r.allowedDecimalSeparators,d=r.decimalSeparator,q=M[a]===d;if(PA(M)&&(M===c||M===e)&&""===b.lastValue)return M;if(a-A==1&&-1!==i.indexOf(M[A])){var s=0===O?"":d;M=M.substring(0,A)+s+M.substring(A+1,M.length)}var l=function(M,b,z){var p=!1,o=!1;c.startsWith("-")?p=!1:M.startsWith("--")?(p=!1,o=!0):e.startsWith("-")&&M.length===e.length?p=!1:"-"===M[0]&&(p=!0);var O=p?1:0;return o&&(O=2),O&&(M=M.substring(O),b-=O,z-=O),{value:M,start:b,end:z,hasNegation:p}},W=l(M,A,a),u=W.hasNegation;M=(p=W).value,A=p.start,a=p.end;var f=l(b.lastValue,t.start,t.end),h=f.start,R=f.end,L=f.value,m=M.substring(A,a);!(M.length&&L.length&&(h>L.length-e.length||R<c.length))||m&&e.startsWith(m)||(M=L);var g=0;M.startsWith(c)?g+=c.length:A<c.length&&(g=A),a-=g;var N=(M=M.substring(g)).length,B=M.length-e.length;M.endsWith(e)?N=B:(a>B||a>M.length-e.length)&&(N=a),M=M.substring(0,N),M=function(M,b){void 0===M&&(M="");var z=new RegExp("(-)"),p=new RegExp("(-)(.)*(-)"),o=z.test(M),c=p.test(M);return M=M.replace(/-/g,""),o&&!c&&b&&(M="-"+M),M}(u?"-"+M:M,o),M=(M.match(function(M){return new RegExp("(^-)|[0-9]|"+IA(M),"g")}(d))||[]).join("");var v=M.indexOf(d),x=$A(M=M.replace(new RegExp(IA(d),"g"),(function(M,b){return b===v?".":""})),o),X=x.beforeDecimal,y=x.afterDecimal,w=x.addNegation;return n.end-n.start<t.end-t.start&&""===X&&q&&!parseFloat(y)&&(M=w?"-":""),M}function ia(M){M=function(M){var b=aa(M),z=b.thousandSeparator,p=b.decimalSeparator,o=M.prefix;void 0===o&&(o="");var c=M.allowNegative;if(void 0===c&&(c=!0),z===p)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+z+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+p+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&c&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+c+"\n "),c=!1),Object.assign(Object.assign({},M),{allowNegative:c})}(M),M.decimalSeparator,M.allowedDecimalSeparators,M.thousandsGroupStyle;var b=M.suffix,z=M.allowNegative,p=M.allowLeadingZeros,o=M.onKeyDown;void 0===o&&(o=DA);var c=M.onBlur;void 0===c&&(c=DA);var e=M.thousandSeparator,O=M.decimalScale,t=M.fixedDecimalScale,n=M.prefix;void 0===n&&(n="");var A=M.defaultValue,a=M.value,r=M.valueIsNumericString,i=M.onValueChange,d=EA(M,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),q=aa(M),s=q.decimalSeparator,l=q.allowedDecimalSeparators,W=function(b){return Aa(b,M)},u=function(b,z){return ra(b,z,M)},f=jA(a)?A:a,h=null!=r?r:function(M,b,z){return""===M||!(null==b?void 0:b.match(/\d/))&&!(null==z?void 0:z.match(/\d/))&&"string"==typeof M&&!isNaN(Number(M))}(f,n,b);jA(a)?jA(A)||(h=h||"number"==typeof A):h=h||"number"==typeof a;var R=function(M){return FA(M)?M:("number"==typeof M&&(M=VA(M)),h&&"number"==typeof O?GA(M,O,Boolean(t)):M)},L=ea(R(a),R(A),Boolean(h),W,u,i),m=L[0],g=m.numAsString,N=m.formattedValue,B=L[1];return Object.assign(Object.assign({},d),{value:N,valueIsNumericString:!1,isValidInputCharacter:function(M){return M===s||PA(M)},isCharacterSame:function(M){var b=M.currentValue,z=M.lastValue,p=M.formattedValue,o=M.currentValueIndex,c=M.formattedValueIndex,e=b[o],A=p[c],r=ZA(z,b).to,i=function(M){return u(M).indexOf(".")+n.length};return!(0===a&&t&&O&&b[r.start]===s&&i(b)<o&&i(p)>c)&&(!!(o>=r.start&&o<r.end&&l&&l.includes(e)&&A===s)||e===A)},onValueChange:B,format:W,removeFormatting:u,getCaretBoundary:function(b){return function(M,b){var z=b.prefix;void 0===z&&(z="");var p=b.suffix;void 0===p&&(p="");var o=Array.from({length:M.length+1}).map((function(){return!0})),c="-"===M[0];o.fill(!1,0,z.length+(c?1:0));var e=M.length;return o.fill(!1,e-p.length+1,e+1),o}(b,M)},onKeyDown:function(M){var b=M.target,p=M.key,c=b.selectionStart,A=b.selectionEnd,a=b.value;if(void 0===a&&(a=""),("Backspace"===p||"Delete"===p)&&A<n.length)M.preventDefault();else if(c===A){"Backspace"===p&&"-"===a[0]&&c===n.length+1&&z&&YA(b,1),O&&t&&("Backspace"===p&&a[c-1]===s?(YA(b,c-1),M.preventDefault()):"Delete"===p&&a[c]===s&&M.preventDefault()),(null==l?void 0:l.includes(p))&&a[c]===s&&YA(b,c+1);var r=!0===e?",":e;"Backspace"===p&&a[c-1]===r&&YA(b,c-1),"Delete"===p&&a[c]===r&&YA(b,c+1),o(M)}else o(M)},onBlur:function(b){var z=g;if(z.match(/\d/g)||(z=""),p||(z=function(M){if(!M)return M;var b="-"===M[0];b&&(M=M.substring(1,M.length));var z=M.split("."),p=z[0].replace(/^0+/,"")||"0",o=z[1]||"";return(b?"-":"")+p+(o?"."+o:"")}(z)),t&&O&&(z=GA(z,O,t)),z!==g){var o=Aa(z,M);B({formattedValue:o,value:z,floatValue:parseFloat(z)},{event:b,source:CA.event})}c(b)}})}function da(M){var b=ia(M);return p.createElement(na,Object.assign({},b))}function qa(M){M.mask,M.allowEmptyFormatting;var b=M.format,z=M.inputMode;void 0===z&&(z="numeric");var p=M.onKeyDown;void 0===p&&(p=DA);var o=M.patternChar;void 0===o&&(o="#");var c=M.value,e=M.defaultValue,O=M.valueIsNumericString,t=EA(M,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]);!function(M){var b=M.mask;if(b&&("string"===b?b:b.toString()).match(/\d/g))throw new Error("Mask "+b+" should not contain numeric character;")}(M);var n=function(b){return function(M,b){var z=b.format,p=b.mask,o=b.patternChar;void 0===o&&(o="#");var c=Array.from({length:M.length+1}).map((function(){return!0})),e=0,O=-1,t={};z.split("").forEach((function(b,z){var c=void 0;b===o&&(e++,c=za(p,e-1),-1===O&&M[z]===c&&(O=z)),t[z]=c}));for(var n=function(b){return z[b]===o&&M[b]!==t[b]},A=0,a=c.length;A<a;A++)c[A]=A===O||n(A)||n(A-1);return c[z.indexOf(o)]=!0,c}(b,M)},A=jA(c)?e:c,a=null!=O?O:function(M,b){return""===M||!((null==b?void 0:b.match(/\d/))||"string"!=typeof M||!M.match(/^\d+$/)&&""!==M)}(A,b),r=Object.assign(Object.assign({},M),{valueIsNumericString:a});return Object.assign(Object.assign({},t),{value:c,defaultValue:e,valueIsNumericString:a,inputMode:z,format:function(M){return function(M,b){var z=b.format,p=b.allowEmptyFormatting,o=b.mask,c=b.patternChar;if(void 0===c&&(c="#"),""===M&&!p)return"";for(var e=0,O=z.split(""),t=0,n=z.length;t<n;t++)z[t]===c&&(O[t]=M[e]||za(o,e),e+=1);return O.join("")}(M,r)},removeFormatting:function(M,b){return function(M,b,z){void 0===b&&(b=ba(M));var p=z.format,o=z.patternChar;void 0===o&&(o="#");var c=b.from,e=b.to,O=b.lastValue;void 0===O&&(O="");var t=function(M){return p[M]===o},n=function(M,b){for(var z="",p=0;p<M.length;p++)t(b+p)&&PA(M[p])&&(z+=M[p]);return z},A=function(M){return M.replace(/[^0-9]/g,"")};if(!p.match(/\d/))return A(M);if((""===O||c.end-c.start===O.length)&&M.length===p.length){for(var a="",r=0;r<M.length;r++)if(t(r))PA(M[r])&&(a+=M[r]);else if(M[r]!==p[r])return A(M);return a}var i=O.substring(0,c.start),d=M.substring(e.start,e.end),q=O.substring(c.end);return""+n(i,0)+A(d)+n(q,c.end)}(M,b,r)},getCaretBoundary:n,onKeyDown:function(M){var z=M.key,c=M.target,e=c.selectionStart,O=c.selectionEnd,t=c.value;if(e===O){var A=e;if("Backspace"===z||"Delete"===z){var a="right";if("Backspace"===z){for(;A>0&&b[A-1]!==o;)A--;a="left"}else{for(var r=b.length;A<r&&b[A]!==o;)A++;a="right"}A=oa(t,A,n(t),a)}else b[A]!==o&&"ArrowLeft"!==z&&"ArrowRight"!==z&&(A=oa(t,A+1,n(t),"right"));A!==e&&YA(c,A),p(M)}else p(M)}})}function sa(M){var b=qa(M);return p.createElement(na,Object.assign({},b))}const la=t.div`
|
|
2994
2994
|
|
|
2995
2995
|
transition: background-color 0.2s ease;
|
|
2996
2996
|
border-radius: 6px;
|
|
@@ -3078,12 +3078,16 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3078
3078
|
}
|
|
3079
3079
|
|
|
3080
3080
|
&.focused {
|
|
3081
|
+
/* Mouse ile focus - sadece arka plan rengi değişir */
|
|
3081
3082
|
background-color: #f1f1f4;
|
|
3082
3083
|
}
|
|
3083
3084
|
|
|
3084
3085
|
&.keyboard-focus {
|
|
3086
|
+
/* Tab ile focus - outline göster */
|
|
3085
3087
|
outline: 2px solid #1b84ff;
|
|
3086
3088
|
outline-offset: 1px;
|
|
3089
|
+
/* İç sınır da mavi olsun ki çift efekt görülsün */
|
|
3090
|
+
border-color: #1b84ff;
|
|
3087
3091
|
}
|
|
3088
3092
|
|
|
3089
3093
|
}
|
|
@@ -3132,13 +3136,20 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3132
3136
|
}
|
|
3133
3137
|
|
|
3134
3138
|
&.focused {
|
|
3135
|
-
|
|
3136
|
-
|
|
3139
|
+
/* Mouse ile focus - border rengi değişir */
|
|
3140
|
+
&::after {
|
|
3141
|
+
border-color: #1b84ff;
|
|
3142
|
+
}
|
|
3137
3143
|
}
|
|
3138
3144
|
|
|
3139
3145
|
&.keyboard-focus {
|
|
3146
|
+
/* Tab ile focus - outline göster */
|
|
3140
3147
|
outline: 2px solid #1b84ff;
|
|
3141
3148
|
outline-offset: 1px;
|
|
3149
|
+
/* İç çizgi de mavi olsun */
|
|
3150
|
+
&::after {
|
|
3151
|
+
border-color: #1b84ff;
|
|
3152
|
+
}
|
|
3142
3153
|
}
|
|
3143
3154
|
|
|
3144
3155
|
}
|
|
@@ -3173,13 +3184,16 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3173
3184
|
}
|
|
3174
3185
|
|
|
3175
3186
|
&.focused {
|
|
3176
|
-
|
|
3187
|
+
/* Mouse ile focus - border rengi değişir */
|
|
3177
3188
|
border-color: #1b84ff;
|
|
3178
3189
|
}
|
|
3179
3190
|
|
|
3180
3191
|
&.keyboard-focus {
|
|
3192
|
+
/* Tab ile focus - outline göster */
|
|
3181
3193
|
outline: 2px solid #1b84ff;
|
|
3182
3194
|
outline-offset: 1px;
|
|
3195
|
+
/* İç sınır da mavi olsun */
|
|
3196
|
+
border-color: #1b84ff;
|
|
3183
3197
|
}
|
|
3184
3198
|
|
|
3185
3199
|
}
|
|
@@ -3434,7 +3448,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3434
3448
|
background-color: #f8285a;
|
|
3435
3449
|
}
|
|
3436
3450
|
|
|
3437
|
-
`;var Ta,_a="itd__floatingLabel__01e577ff";gn(".itd__defaultInput__01e577ff{height:100%}.itd__floatingInput__01e577ff{caret-color:rgba(0,0,0,.851);color:rgba(0,0,0,.851);font-size:13px}.itd__floatingInput__01e577ff::placeholder{color:#0000}.itd__floatingInput__01e577ff:disabled :not(.itd__floatingInput__01e577ff[data-locked=true]),.itd__floatingInput__01e577ff:disabled:not(.itd__floatingInput__01e577ff[data-locked=true]){opacity:.5}.itd__floatingLabel__01e577ff{display:block;font-size:16px;font-weight:500;max-height:0;pointer-events:none;position:relative}.itd__floatingLabel__01e577ff:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;color:#0009;content:attr(data-content);display:inline-block;filter:blur(0);position:relative;transform-origin:left top;transition:transform .2s ease-out}.itd__floatingInput__01e577ff:placeholder-shown+.itd__floatingLabel__01e577ff:before{font-smooth:always;-webkit-font-smoothing:antialiased;transform:translate3d(0,-32px,0) scale3d(.8,.8,1)}.itd__floatingInput__01e577ff:focus+.itd__floatingLabel__01e577ff:before,.itd__floatingLabel__01e577ff:before{transform:translate3d(0,-40px,0) scale3d(.8,.8,1)}.itd__floatingInput__01e577ff:focus+.itd__floatingLabel__01e577ff:before{color:#0009}.itd__floatingInputinput__01e577ff:-webkit-autofill,.itd__floatingInputinput__01e577ff:-webkit-autofill:focus,.itd__floatingInputinput__01e577ff:-webkit-autofill:hover{-webkit-text-fill-color:#3496fa!important;-webkit-box-shadow:inset 0 0 0 30px #151d3d!important}",{}),function(M){M.TEXT="text",M.NUMBER="number",M.CURRENCY="currency",M.PASSWORD="password"}(Ta||(Ta={}));const
|
|
3451
|
+
`;var Ta,_a="itd__floatingLabel__01e577ff";gn(".itd__defaultInput__01e577ff{height:100%}.itd__floatingInput__01e577ff{caret-color:rgba(0,0,0,.851);color:rgba(0,0,0,.851);font-size:13px}.itd__floatingInput__01e577ff::placeholder{color:#0000}.itd__floatingInput__01e577ff:disabled :not(.itd__floatingInput__01e577ff[data-locked=true]),.itd__floatingInput__01e577ff:disabled:not(.itd__floatingInput__01e577ff[data-locked=true]){opacity:.5}.itd__floatingLabel__01e577ff{display:block;font-size:16px;font-weight:500;max-height:0;pointer-events:none;position:relative}.itd__floatingLabel__01e577ff:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;color:#0009;content:attr(data-content);display:inline-block;filter:blur(0);position:relative;transform-origin:left top;transition:transform .2s ease-out}.itd__floatingInput__01e577ff:placeholder-shown+.itd__floatingLabel__01e577ff:before{font-smooth:always;-webkit-font-smoothing:antialiased;transform:translate3d(0,-32px,0) scale3d(.8,.8,1)}.itd__floatingInput__01e577ff:focus+.itd__floatingLabel__01e577ff:before,.itd__floatingLabel__01e577ff:before{transform:translate3d(0,-40px,0) scale3d(.8,.8,1)}.itd__floatingInput__01e577ff:focus+.itd__floatingLabel__01e577ff:before{color:#0009}.itd__floatingInputinput__01e577ff:-webkit-autofill,.itd__floatingInputinput__01e577ff:-webkit-autofill:focus,.itd__floatingInputinput__01e577ff:-webkit-autofill:hover{-webkit-text-fill-color:#3496fa!important;-webkit-box-shadow:inset 0 0 0 30px #151d3d!important}",{}),function(M){M.TEXT="text",M.NUMBER="number",M.CURRENCY="currency",M.PASSWORD="password"}(Ta||(Ta={}));let Sa=!1,ka=!1;const Ea=p.forwardRef((({id:M,placeholder:b="",value:o="",defaultValue:c="",type:e=Ta.TEXT,className:O="",size:t="default",variant:n="default",prefix:A=null,suffix:a=null,addonBefore:r=null,addonAfter:i=null,status:d=null,locked:q=null,minValue:s=0,maxValue:l=-1,maxLength:W=-1,disabled:u=!1,floating:f=!1,autoComplete:h=!1,keepFocus:R=!1,focusRef:L=null,mask:m=null,allowEmptyFormatting:g=!1,allowLeadingZeros:N=!1,decimalSeparator:B=".",thousandSeparator:v=",",decimalScale:x=2,onChange:X=null,onUpdate:y=null,onFocus:w=null,onBlur:T=null,onPressEnter:_=null,onKeyDown:S=null,children:k=null},E)=>{const C=p.useRef(null),D=p.useMemo((()=>M||"itd-input-"+oM()),[M]),[P,j]=p.useState(e===Ta.NUMBER?0:""),[F,I]=p.useState(""),[$,H]=p.useState(!1),[U,V]=p.useState(!1),[G,Y]=p.useState(!1),[K,Q]=p.useState(!1),[J,Z]=p.useState(!0);p.useEffect((()=>{(()=>{if(Sa)return;Sa=!0,document.addEventListener("keydown",(M=>{M&&"Tab"===M.key&&(ka=!0)}));const M=()=>{ka=!1};document.addEventListener("mousedown",M,{passive:!0}),document.addEventListener("pointerdown",M,{passive:!0}),document.addEventListener("touchstart",M,{passive:!0})})(),MM(),c&&bM(c)}),[]),p.useEffect((()=>{if(!U)return;const M=M=>{C.current&&!C.current.contains(M.target)&&(H(!1),V(!1),R&&L?.current&&Y(L.current.contains(M.target)))},b=M=>{C.current&&C.current.contains(M.target)&&H(!1)};return document.addEventListener("mousedown",M),C.current?.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",M),C.current?.removeEventListener("mousedown",b)}}),[U,R,L]),p.useEffect((()=>{bM(e===Ta.NUMBER?Number(o):String(o),!0,""!==o)}),[o]);const MM=()=>{C.current&&R&&C.current&&(C.current?.focus(),V(!0))},bM=(M,b=!0,z=!0)=>{j(M),y&&y(M,b,z)};p.useImperativeHandle(E,(()=>({setFocus(){C.current&&(V(!0),C.current.focus()),Y(!0)},reset(M=!0,b=!0){j(c||""),I(""),bM(e===Ta.NUMBER?0:"",M,b)},setValue(M,b=!0,z=!0){j(M),bM(M,b,z)},getValue:()=>P,setError(M){I(M)},forceUpdate(){bM(P)},clear(){j("")}})));const zM=M=>{const b="string"==typeof M&&m&&M.replace(/\D+/g,"").length<m.replace(/\D+/g,"").length;bM(M,!0,!b),X&&X(M)},pM=M=>{zM(M.value)},cM=M=>{C.current?.focus(),V(!0),H(!0===ka),!h&&J&&Z(!1),w&&w(M)},OM=M=>{V(!1),H(!1),R&&G&&C.current&&(V(!0),C.current.focus()),m&&"string"==typeof P&&P.replace(/\D+/g,"").length<m.replace(/\D+/g,"").length&&c&&bM(c,!0,!1),T?T(M):M.target.blur()},tM=M=>{"Tab"===M.key&&H(!0),13===M.keyCode&&_&&_(M),S&&S(M)},nM=()=>{let M={id:D,placeholder:b,value:P,type:e,spellCheck:"false",autoCorrect:"off",autoCapitalize:"none",className:f?uM():WM(),onFocus:cM,onBlur:OM,onKeyDown:tM,disabled:u||q};return q&&(M["data-locked"]=!0),M=h?{...M,autoComplete:"on"}:{...M,autoComplete:"off",onMouseDown:()=>H(!1)},m?(M={...M,format:m,mask:"_",allowEmptyFormatting:g,onChange:M=>zM(M.target.value)},z.jsx(sa,{...M})):e===Ta.CURRENCY?(M={...M,maxLength:W,type:Ta.TEXT,allowLeadingZeros:N,decimalSeparator:B,thousandSeparator:v,decimalScale:x,getInputRef:C,onValueChange:pM,onMouseDown:()=>H(!1),isAllowed:M=>{const{floatValue:b}=M;return b>=s&&(b<=l||-1===l)||void 0===b}},z.jsx(da,{...M})):e===Ta.NUMBER?(M={...M,type:Ta.NUMBER,maxLength:W,onMouseDown:()=>H(!1),onChange:M=>{const b=Number(M.target.value.replace(/,/g,"."));b>=s&&-1===l||b>=s&&b<=l?zM(b):b<s?zM(s):b>l&&zM(l)},ref:C},z.jsx("input",{...M})):(M={...M,maxLength:W,onChange:M=>zM(M.target.value),onMouseDown:()=>H(!1),ref:C},z.jsx("input",{...M}))},AM=()=>{if(r)return z.jsx(ga,{className:"itd-input-addon-before",children:r})},aM=()=>{if(i)return z.jsx(Na,{className:"itd-input-addon-after",children:i})},rM=()=>{if(A)return z.jsx(ha,{className:"itd-input-prefix",children:A})},iM=()=>{if(a)return z.jsx(Ra,{className:"itd-input-suffix",children:a})},dM=()=>{if(q)return z.jsx(La,{className:"itd-input-locked",children:"boolean"!=typeof q?q:z.jsx(Ba,{className:"itd-svg",width:"18",height:"18"})})},qM=()=>{if(""!==F&&!u)return z.jsx(xa,{className:"itd-error-border"})},sM=z.jsx("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:z.jsx("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:z.jsxs("g",{id:"ErrorGroup",fillRule:"nonzero",children:[z.jsx("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),z.jsx("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),lM=()=>{if(""===F||u)return;let M={className:"itd-input-failed itd-failed-status",onPointerOver:()=>Q(!0),onPointerOut:()=>Q(!1)};return z.jsxs(wa,{...M,children:[K?z.jsx(va,{className:"itd-input-error-tooltip itd-error-tooltip",children:F}):null,d||sM]})},WM=()=>"itd-input-default-input",uM=()=>"itd-input-floating-input",fM=()=>{let M="itd-input itd-input-"+e;return M+=" itd-input-"+eM(t),M+=" itd-input-"+n,m&&(M+=" itd-input-masked"),u&&(M+=" itd-input-disabled"),q&&(M+=" itd-input-locked"),""!==O&&(M+=" "+O),U&&$&&(M+=" keyboard-focus"),U&&(M+=" focused"),M};return(()=>{if(k)throw new Error("ITD Input Error: Remove the children!");return z.jsxs(la,{className:fM(),children:[AM(),z.jsxs(Wa,{$hasPrefix:null!==A,$hasSuffix:null!==a,$hasError:""!==F&&!u,children:[rM(),z.jsxs(ua,{className:"itd-input-middle",children:[nM(),f?z.jsx("label",{htmlFor:D,className:"itd-input-floating-label "+_a+" "+b,"data-content":b,children:z.jsx(Xa,{children:b})}):null,qM()]}),z.jsxs(fa,{children:[iM(),dM(),lM()]})]}),aM()]})})()}));Ea.displayName="ITD-Input";const Ca=t.div`
|
|
3438
3452
|
|
|
3439
3453
|
border: 1px solid #d9d9d900;
|
|
3440
3454
|
border-radius: 6px;
|
|
@@ -3587,7 +3601,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3587
3601
|
height: 100%;
|
|
3588
3602
|
justify-self: flex-start;
|
|
3589
3603
|
|
|
3590
|
-
`;const
|
|
3604
|
+
`;const Da=t.div`
|
|
3591
3605
|
|
|
3592
3606
|
position: absolute;
|
|
3593
3607
|
border: 1px solid #f8285a;
|
|
@@ -3599,7 +3613,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3599
3613
|
pointer-events: none;
|
|
3600
3614
|
/* z-index: 1; */
|
|
3601
3615
|
|
|
3602
|
-
`,
|
|
3616
|
+
`,Pa=t.div`
|
|
3603
3617
|
|
|
3604
3618
|
display: flex;
|
|
3605
3619
|
align-items: center;
|
|
@@ -3620,17 +3634,17 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3620
3634
|
}
|
|
3621
3635
|
}
|
|
3622
3636
|
|
|
3623
|
-
`;t(
|
|
3637
|
+
`;t(Pa)`
|
|
3624
3638
|
|
|
3625
|
-
`,t(
|
|
3639
|
+
`,t(Pa)`
|
|
3626
3640
|
|
|
3627
|
-
`,t(
|
|
3641
|
+
`,t(Pa)`
|
|
3628
3642
|
|
|
3629
3643
|
&::before {
|
|
3630
3644
|
background-color: #f8285a;
|
|
3631
3645
|
}
|
|
3632
3646
|
|
|
3633
|
-
`;const
|
|
3647
|
+
`;let ja=!1,Fa=!1;const Ia=p.forwardRef((({id:M,placeholder:b="",value:o="",defaultValue:c="",className:e="",size:O="default",variant:t="default",rows:n=3,maxLength:A=-1,disabled:a=!1,showCount:r=!1,onChange:i,onUpdate:d,children:q},s)=>{const l=p.useRef(null),W=p.useMemo((()=>M||"itd-textarea-"+oM()),[M]),[u,f]=p.useState(""),[h,R]=p.useState(!1),[L,m]=p.useState(!1),[g,N]=p.useState("");p.useEffect((()=>{(()=>{if(ja)return;ja=!0,document.addEventListener("keydown",(M=>{M&&"Tab"===M.key&&(Fa=!0)}));const M=()=>{Fa=!1};document.addEventListener("mousedown",M,{passive:!0}),document.addEventListener("pointerdown",M,{passive:!0}),document.addEventListener("touchstart",M,{passive:!0})})(),c&&B(c)}),[]),p.useEffect((()=>{B(String(o),!0,""!==o)}),[o]);const B=(M,b=!0,z=!0)=>{f(M),d&&d(M,b,z)};p.useImperativeHandle(s,(()=>({setFocus(){l.current&&l.current.focus()},reset(M=!0,b=!0){f(c||""),N(""),B("",M,b)},setValue(M,b=!0,z=!0){f(M),B(M,b,z)},getValue:()=>u,setError(M){N(M)},forceUpdate(){B(u)},clear(){f("")}})));const v=M=>{f(M.target.value),B(M.target.value,!0,!0),i&&i({value:M.target.value,className:"itd-textarea",disabled:a,target:l,stopPropagation:()=>{M.stopPropagation()},preventDefault:()=>{M.preventDefault()}})},x=M=>{m(!0),R(!0===Fa)},X=M=>{m(!1),R(!1)},y=M=>{"Tab"===M.key&&R(!0)},w=()=>{let M={id:W,placeholder:b,value:u,className:"itd-textarea-default-input"+(h?" keyboard-focus":""),disabled:a,autoComplete:"off",rows:n,maxLength:A,onChange:v,onFocus:x,onBlur:X,onKeyDown:y,onMouseDown:()=>R(!1),ref:l};return z.jsx("textarea",{...M})},T=()=>{if(""!==g&&!a)return z.jsx(Da,{className:"itd-error-border"})},_=()=>{let M="itd-textarea";return M+=" itd-textarea-"+eM(O),M+=" itd-textarea-"+t,a&&(M+=" itd-textarea-disabled"),L&&(M+=" itd-textarea-focus"),r&&(M+=" itd-textarea-show-count"),""!==e&&(M+=" "+e),M};return(()=>{if(q)throw new Error("ITD TextArea Error: Remove the children!");return z.jsxs(Ca,{className:_(),children:[w(),T()]})})()}));Ia.displayName="ITD-TextArea";const $a=t.span`
|
|
3634
3648
|
|
|
3635
3649
|
content: '';
|
|
3636
3650
|
position: absolute;
|
|
@@ -3654,7 +3668,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3654
3668
|
|
|
3655
3669
|
}
|
|
3656
3670
|
|
|
3657
|
-
`,
|
|
3671
|
+
`,Ha=t.div`
|
|
3658
3672
|
|
|
3659
3673
|
cursor: pointer;
|
|
3660
3674
|
text-indent: -9999px;
|
|
@@ -3666,7 +3680,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3666
3680
|
position: relative;
|
|
3667
3681
|
//box-shadow: inset 0px 0px 20px rgba(0,0,0,0.4);
|
|
3668
3682
|
|
|
3669
|
-
`,
|
|
3683
|
+
`,Ua=t.div`
|
|
3670
3684
|
|
|
3671
3685
|
display: flex;
|
|
3672
3686
|
flex-direction: row;
|
|
@@ -3680,7 +3694,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3680
3694
|
|
|
3681
3695
|
&[data-state="checked"] {
|
|
3682
3696
|
|
|
3683
|
-
${
|
|
3697
|
+
${$a} {
|
|
3684
3698
|
left: calc(100% - 3px);
|
|
3685
3699
|
transform: translateX(-100%);
|
|
3686
3700
|
background:rgb(255, 255, 255);
|
|
@@ -3690,7 +3704,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3690
3704
|
|
|
3691
3705
|
&[data-state="unchecked"] {
|
|
3692
3706
|
|
|
3693
|
-
${
|
|
3707
|
+
${$a} {
|
|
3694
3708
|
.itd-spin-spinner >div>div {
|
|
3695
3709
|
border-color: #e4e4e7 transparent transparent;
|
|
3696
3710
|
}
|
|
@@ -3705,7 +3719,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3705
3719
|
// Disabled durumları - daha spesifik selector'lar
|
|
3706
3720
|
&[data-disabled="true"][data-state="checked"] {
|
|
3707
3721
|
|
|
3708
|
-
${
|
|
3722
|
+
${$a} {
|
|
3709
3723
|
background: #ffffff;
|
|
3710
3724
|
}
|
|
3711
3725
|
|
|
@@ -3718,7 +3732,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3718
3732
|
|
|
3719
3733
|
&[data-disabled="true"][data-state="unchecked"] {
|
|
3720
3734
|
|
|
3721
|
-
${
|
|
3735
|
+
${$a} {
|
|
3722
3736
|
background: #ffffff;
|
|
3723
3737
|
}
|
|
3724
3738
|
|
|
@@ -3741,7 +3755,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3741
3755
|
cursor: progress;
|
|
3742
3756
|
}
|
|
3743
3757
|
|
|
3744
|
-
`,
|
|
3758
|
+
`,Va=t.span`
|
|
3745
3759
|
|
|
3746
3760
|
position: absolute;
|
|
3747
3761
|
display: flex;
|
|
@@ -3777,7 +3791,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3777
3791
|
|
|
3778
3792
|
}
|
|
3779
3793
|
|
|
3780
|
-
|
|
3794
|
+
`,Ga=p.forwardRef((({id:M="",label:b="",checked:o,defaultChecked:c=!1,loading:e=!1,disabled:O=!1,onChange:t=null,onUpdate:n=null},A)=>{const[a,r]=p.useState(c||!1),[i,d]=p.useState(""),[q,s]=p.useState(M||`itd-switch-${oM()}`);p.useEffect((()=>{M&&M!==q&&s(M)}),[M]);const l=p.useCallback(((M,b=!0,z=!0)=>{n&&("development"===process.env.NODE_ENV?requestAnimationFrame((()=>n(M,b,z))):n(M,b,z))}),[n]);p.useEffect((()=>{void 0!==o&&o!==a&&(r(o),l(o))}),[o,l]);const W=p.useMemo((()=>({reset(M=!0,b=!0){const z=c||!1;r(z),l(z,M,b)},setValue(M,b=!0,z=!0){r(M),l(M,b,z)},getValue:()=>a,setError(M=""){d(M)},clear(){r(!1)}})),[a,c,l]);p.useImperativeHandle(A,(()=>W),[W]);const u=p.useCallback((M=>{if(e||O)return M.preventDefault(),void M.stopPropagation();const b=!a;r(b),l(b),t&&t(b)}),[e,O,a,l,t]),f=p.useMemo((()=>{let M="itd-switch";return a&&(M+=" itd-switch-checked"),O&&(M+=" itd-switch-disabled"),e&&(M+=" itd-switch-loading"),M}),[a,O,e]);return z.jsxs(Ua,{className:f,children:[z.jsx("button",{id:q,type:"button",role:"switch",value:a?"on":"off","data-state":a?"checked":"unchecked","aria-checked":a,"data-disabled":O?"true":"false","data-loading":e&&!O?"true":"false",disabled:O,onClick:u,children:z.jsx(Ha,{className:"itd-switch-body","data-disabled":O,children:z.jsx($a,{className:"itd-switch-thumb",children:z.jsx(F,{size:12,updating:e&&!O})})})}),b&&z.jsx("label",{htmlFor:q,children:b}),i&&z.jsx(Va,{className:"itd-switch-error-tooltip itd-error-tooltip",children:i})]})}));Ga.displayName="ITD-Switch";const Ya=t.div`
|
|
3781
3795
|
|
|
3782
3796
|
position : relative;
|
|
3783
3797
|
width : ${M=>M.$fluid?"100%":"max-content"};
|
|
@@ -3792,7 +3806,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3792
3806
|
|
|
3793
3807
|
}
|
|
3794
3808
|
|
|
3795
|
-
`,
|
|
3809
|
+
`,Ka=t.div`
|
|
3796
3810
|
|
|
3797
3811
|
>img {
|
|
3798
3812
|
max-width : 100%;
|
|
@@ -3823,7 +3837,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3823
3837
|
|
|
3824
3838
|
position: relative;
|
|
3825
3839
|
|
|
3826
|
-
`,
|
|
3840
|
+
`,Qa=t.div`
|
|
3827
3841
|
|
|
3828
3842
|
display: block;
|
|
3829
3843
|
|
|
@@ -3835,7 +3849,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3835
3849
|
transition-duration: 500ms;
|
|
3836
3850
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
3837
3851
|
|
|
3838
|
-
`,
|
|
3852
|
+
`,Ja=t.div`
|
|
3839
3853
|
|
|
3840
3854
|
position: absolute;
|
|
3841
3855
|
top: 50%;
|
|
@@ -3857,7 +3871,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3857
3871
|
}
|
|
3858
3872
|
`}}
|
|
3859
3873
|
|
|
3860
|
-
`,
|
|
3874
|
+
`,Za=t.div`
|
|
3861
3875
|
|
|
3862
3876
|
display : flex;
|
|
3863
3877
|
justify-content : center;
|
|
@@ -3869,7 +3883,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3869
3883
|
height : ${M=>M.$height?Vo(M.$height):"100%"};
|
|
3870
3884
|
}
|
|
3871
3885
|
|
|
3872
|
-
`,
|
|
3886
|
+
`,Mr=t.div`
|
|
3873
3887
|
|
|
3874
3888
|
transition-property: all;
|
|
3875
3889
|
transition-duration: 0ms;
|
|
@@ -3905,7 +3919,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3905
3919
|
top: 50%;
|
|
3906
3920
|
`}
|
|
3907
3921
|
|
|
3908
|
-
`,
|
|
3922
|
+
`,br=t.div`
|
|
3909
3923
|
|
|
3910
3924
|
position: absolute;
|
|
3911
3925
|
display: flex;
|
|
@@ -3928,7 +3942,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3928
3942
|
background-color: #ffffff90;
|
|
3929
3943
|
`}
|
|
3930
3944
|
|
|
3931
|
-
`,
|
|
3945
|
+
`,zr=t.div`
|
|
3932
3946
|
|
|
3933
3947
|
position: absolute;
|
|
3934
3948
|
|
|
@@ -3966,7 +3980,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3966
3980
|
}
|
|
3967
3981
|
`}
|
|
3968
3982
|
|
|
3969
|
-
`,
|
|
3983
|
+
`,pr=t.div`
|
|
3970
3984
|
transition-property: all;
|
|
3971
3985
|
transition-duration: 400ms;
|
|
3972
3986
|
transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
|
|
@@ -3991,7 +4005,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
3991
4005
|
pointer-events: none;
|
|
3992
4006
|
z-index: 1;
|
|
3993
4007
|
|
|
3994
|
-
`;const
|
|
4008
|
+
`;const or=t.div`
|
|
3995
4009
|
|
|
3996
4010
|
display: flex;
|
|
3997
4011
|
align-items: center;
|
|
@@ -4013,13 +4027,13 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4013
4027
|
}
|
|
4014
4028
|
}
|
|
4015
4029
|
|
|
4016
|
-
`,
|
|
4030
|
+
`,cr=t(or)`
|
|
4017
4031
|
|
|
4018
4032
|
&::before {
|
|
4019
4033
|
background-color: #f8285a;
|
|
4020
4034
|
}
|
|
4021
4035
|
|
|
4022
|
-
`,
|
|
4036
|
+
`,er=t.span`
|
|
4023
4037
|
|
|
4024
4038
|
position: absolute;
|
|
4025
4039
|
display: flex;
|
|
@@ -4054,14 +4068,14 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4054
4068
|
|
|
4055
4069
|
}
|
|
4056
4070
|
|
|
4057
|
-
`,
|
|
4071
|
+
`,Or=p.forwardRef((({id:M="itd-upload-"+oM(),resultFileName:o=null,action:c="",filePath:e="",binaryName:O="file",showDeleteIcon:t=!1,showPreviewIcon:n=!1,buttonsPosition:A="default",padding:a=10,fluid:r=!0,fileWidth:i="100%",fileHeight:d="auto",maxFileWidth:q="none",maxFileHeight:s="none",containerWidth:l="100%",containerHeight:W="auto",previewFileWidth:u="100%",previewFileHeight:f="100%",previewFilePadding:h="0",requestMethod:R="put",maxFileSize:L=1024,disabled:m=!1,extraFormData:g={},extraQueryString:N={},extraHeader:B={},fileTypes:v=[exports.FileTypes.JPG,exports.FileTypes.PNG,exports.FileTypes.SVG,exports.FileTypes.PDF],removeAction:x="",removeExtraFormData:X={},removeExtraQueryString:y={},removeExtraHeader:w={},onUpdate:T,onUploadSuccess:_,onUploadFailed:S,onRemoveFileSuccess:E,onRemoveFileFailed:C},D)=>{const P=p.useRef(null),{addNotification:j}=Ro.useNotifications(),{showModal:F}=HM.useModal(),{fetch:I,cancel:$}=k(),{t:H}=b.useTranslation("itd"),[U,V]=p.useState(!1),[G,Y]=p.useState(!1),[K,Q]=p.useState(".svg, .png, .jpg"),[J,Z]=p.useState(!1),[MM,bM]=p.useState(!1),[zM,pM]=p.useState(!1),[cM,eM]=p.useState(null),[OM,tM]=p.useState(null),[AM,aM]=p.useState(""),[rM,iM]=p.useState(!1),[dM,qM]=p.useState(!1),[sM,lM]=p.useState(null),[WM,uM]=p.useState(!1),[fM,hM]=p.useState(null);p.useEffect((()=>()=>{$()}),[]),p.useEffect((()=>{Y(m)}),[m]),p.useEffect((()=>{tM(e?e.split("?")[0]:"")}),[e]),p.useEffect((()=>{null!==OM&&(void 0!==OM?mM():V(!1))}),[OM]),p.useEffect((()=>{let M=[];v.map((b=>{M.push(Xo(b))})),Q(M.join(", "))}),[v]);const RM=(M,b)=>{j({title:M,description:b,placement:"topRight",autoHide:!0,delay:5e3,type:"error"})},LM=(M,b=!0,z=!0)=>{T&&T(M,b,z)};p.useImperativeHandle(D,(()=>({setFocus(){pM(!0)},reset(M=!1,b=!1){gM(),tM(null),aM(""),LM("",M,b)},setValue(M,b=!0,z=!0){tM(M),LM(M,b,z)},getValue:()=>OM||"",setError(M){aM(M)},forceUpdate(){LM(OM||"")},clear(){tM("")}})));const mM=async()=>{let M=!1;OM&&(M=await vo(OM),eM(M),M?LM(OM):LM("",!0,!0),U||V(!0)),""!==OM||U||V(!0),""===OM&&U&&LM("",!0,!0)},gM=()=>{hM(null),lM(null),uM(!1),eM(null)},NM=async()=>{Y(!0),F({content:z.jsx("div",{children:H("uploader.areYouSureToDeleteThisFile")}),title:H("uploader.removeFile"),okButtonText:H("uploader.yes"),cancelButtonText:H("uploader.no"),okButtonProps:{variant:"statable",state:"reject"},closeOnClickOutside:!1,showCloseButton:!1,onOk:()=>(x?I({action:x,params:X,queries:y,headers:w,onFetched:M=>{M.data.success?(gM(),LM("",!0,!0),E&&E(M.data.data)):C&&C()},onError:()=>{C&&C()}}):(gM(),LM("",!0,!0),E&&E()),Y(!1),!0),onCancel:()=>(Y(!1),!0)})},BM=M=>{M.preventDefault(),dM||bM(!0)},vM=M=>{M.preventDefault(),dM||bM(!1)},xM=M=>{M.preventDefault(),dM||(bM(!1),M.dataTransfer&&0!==M.dataTransfer.files.length?wM(M.dataTransfer.files[0]):console.log(H("uploader.browserDoesntSupportDND")))},XM=M=>{bM(!1);const b=M.target.files[0];wM(b)},yM=async({path:M,errorMessage:b,errorCode:z})=>{await yo(1e3),lM(null),qM(!1),await yo(1500),uM(!1),M?_&&_(M):b&&S&&S(b,z||0)},wM=M=>{if(M&&(M=>!!v.includes(M.type)||(RM(H("uploader.error"),H("uploader.fileFormatError",{fileFormat:K})),!1))(M)&&(M=>!(M.size>1024*L&&(RM(H("uploader.error"),H("uploader.fileSizeError",{fileSize:xo(1024*L)})),1)))(M)){if(o){const b=Xo(M.type);M=new File([M],o+b,{type:b,lastModified:M.lastModified})}(async M=>{if(!M)return;let b=new FormData;b.append(O,M),o&&b.append("name",o),Object.keys(g).forEach((M=>{b.append(M,g[M])})),I({action:c,requestMethod:R,params:b,queries:N,headers:B,onFetched:M=>{M.data.success?(hM({message:H("uploader.fileUploadSuccess"),status:"success"}),uM(!0),tM(M.data.data.url),yM({path:M.data.data.url})):(hM({message:H("uploader.fileUploadFailed"),status:"error"}),LM("",!0,!0),yM({errorMessage:H("uploader.fileUploadFailed")}))},onError:(M,b)=>{hM({message:H("uploader.fileUploadFailed"),status:"error"}),LM("",!0,!0),yM({errorMessage:M,errorCode:b})},onProgress:M=>{lM({estimated:M.estimated?(Math.round(100*M.estimated)/100).toFixed(2):"0",progress:M.progress?Math.round(100*M.progress):0,bytes:M.bytes?xo(M.bytes):"",total:M.total?xo(M.total):""})}})})(M),qM(!0)}},TM=()=>{Y(!0),F({content:z.jsx(Za,{className:"itd-upload-preview-content",$width:u,$height:f,$padding:h,children:z.jsx(kc,{src:OM||""})}),showOkButton:!1,showCancelButton:!1,contentPadding:"0px",width:"max-content",onCancel:()=>(Y(!1),!0)})},_M=()=>{if(t&&OM&&!dM&&cM)return z.jsx("span",{className:"delete-icon",children:z.jsx(nM,{variant:"solid",size:"small",type:"button",circle:!0,onClick:NM,disabled:G,icon:z.jsx(ec,{width:16,height:16}),className:"itd-upload-delete-button"})})},SM=()=>{if(n&&OM&&!dM&&cM)return z.jsx("span",{className:"preview-icon",children:z.jsx(nM,{variant:"solid",size:"small",type:"button",circle:!0,onClick:TM,disabled:G,icon:z.jsx(Oc,{width:16,height:16}),className:"itd-upload-preview-button"})})},kM=z.jsx("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:z.jsx("g",{id:"Error",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:z.jsxs("g",{id:"ErrorGroup",fillRule:"nonzero",children:[z.jsx("circle",{id:"ErrorBackground",fill:"#F8285A",cx:"10",cy:"10",r:"10"}),z.jsx("path",{d:"M10.0355339,8.6213203 L12.863961,5.79289322 C13.2544853,5.40236893 13.8876503,5.40236893 14.2781746,5.79289322 C14.6686989,6.18341751 14.6686989,6.81658249 14.2781746,7.20710678 L11.4497475,10.0355339 \n L14.2781746,12.863961 C14.6686989,13.2544853 14.6686989,13.8876503 14.2781746,14.2781746 C13.8876503,14.6686989 13.2544853,14.6686989 12.863961,14.2781746 L10.0355339,11.4497475 L7.20710678,14.2781746\n C6.81658249,14.6686989 6.18341751,14.6686989 5.79289322,14.2781746 C5.40236893,13.8876503 5.40236893,13.2544853 5.79289322,12.863961 L8.6213203,10.0355339 L5.79289322,7.20710678 C5.40236893,6.81658249\n 5.40236893,6.18341751 5.79289322,5.79289322 C6.18341751,5.40236893 6.81658249,5.40236893 7.20710678,5.79289322 L10.0355339,8.6213203 Z",id:"ErrorIcon",fill:"#FFFFFF"})]})})}),EM=()=>{if(""===AM||dM)return;let M={className:"itd-upload-failed itd-failed-status",onPointerOver:()=>iM(!0),onPointerOut:()=>iM(!1)};return z.jsxs(cr,{...M,children:[rM?z.jsx(er,{className:"itd-upload-error-tooltip itd-error-tooltip",children:AM}):null,kM]})},CM=()=>{if(U)return null===cM?z.jsx(zc,{width:24,height:24}):!1===cM?z.jsx(tc,{width:40,height:40}):z.jsx(kc,{src:OM||"",width:Vo(i),height:Vo(d)})},DM=()=>{let M=(J||MM)&&!dM&&!G;return z.jsx(br,{$isHover:M,className:"itd-upload-overlay",children:z.jsxs(Mr,{$isHover:M,className:"itd-upload-overlay-content",children:[z.jsx("span",{className:"itd-upload-header",children:H("uploader.header")}),z.jsx("span",{className:"itd-upload-hint",children:H("uploader.hint")})]})})};return z.jsxs(Ya,{className:"itd-upload",$fluid:r,children:[z.jsx("input",{type:"file",id:M,accept:K,onChange:XM,onFocus:M=>{M.target.matches(":focus-visible")&&pM(!0)},onBlur:()=>pM(!1),onPointerOver:()=>{!MM&&Z(!0)},onPointerOut:()=>{!MM&&Z(!1)},onDragOver:BM,onDragLeave:vM,onDrop:xM,disabled:dM||G,ref:P}),z.jsx(Qa,{$showFocus:zM,className:"itd-upload-label",children:z.jsxs(Ka,{$showBorder:(MM||J)&&!dM,$padding:a,$disabled:m,$hasError:""!==AM&&!dM,$fileWidth:i,$fileHeight:d,$maxFileWidth:q,$maxFileHeight:s,$containerWidth:l,$containerHeight:W,className:"itd-upload-content",children:[CM(),z.jsxs(zr,{className:"itd-upload-status",$isActive:dM,$complete:"success"===fM?.status,$error:"error"===fM?.status,children:[z.jsx(pr,{className:"itd-upload-status-box",$progress:sM?sM.progress:0,$complete:"success"===fM?.status,$error:"error"===fM?.status}),z.jsx("span",{className:"itd-upload-status-message",children:H(WM||fM?String(fM?.message):"uploader.fileUploading")}),sM?z.jsx("span",{className:"itd-upload-status-info",children:H("uploader.info",{total:sM.total,estimated:sM.estimated})}):z.jsx("span",{className:"itd-upload-status-calculating",children:H("uploader.calculating")})]}),DM(),z.jsxs(Ja,{$position:""===AM?A:"default",children:[z.jsxs(Ci,{vertical:!0,gap:"small",className:"itd-upload-icons",children:[_M(),SM()]}),EM()]})]})})]})})),tr=t(e.NavLink)`
|
|
4058
4072
|
|
|
4059
4073
|
text-decoration: none;
|
|
4060
4074
|
|
|
4061
|
-
`,
|
|
4075
|
+
`,nr=M=>z.jsx(tr,{to:M.to,...M,children:M.children}),Ar=t.div`
|
|
4062
4076
|
display: flex;
|
|
4063
4077
|
flex-direction: column;
|
|
4064
|
-
`,
|
|
4078
|
+
`,ar=t.div`
|
|
4065
4079
|
|
|
4066
4080
|
background-color: #1D2649;
|
|
4067
4081
|
width: 100%;
|
|
@@ -4100,37 +4114,37 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4100
4114
|
}
|
|
4101
4115
|
`}
|
|
4102
4116
|
|
|
4103
|
-
`,
|
|
4117
|
+
`,rr=t.div`
|
|
4104
4118
|
|
|
4105
4119
|
overflow: hidden;
|
|
4106
4120
|
transition: max-height 0.25s ease-out;
|
|
4107
4121
|
|
|
4108
|
-
`;var
|
|
4122
|
+
`;var ir="itd__arrow__ffb364c6",dr="itd__arrowNormal__ffb364c6",qr="itd__arrowOpen__ffb364c6",sr="itd__icon__ffb364c6";gn(".itd__arrow__ffb364c6{fill:#fff9;height:20px;margin-left:auto;transform:rotate(0deg);transition:all .25s ease-out;width:20px}.itd__arrowNormal__ffb364c6{margin-left:auto;transform:rotate(-90deg)}.itd__arrowOpen__ffb364c6{fill:#fff;transform:rotate(-180deg)}.itd__icon__ffb364c6{align-items:center;color:#fff9;display:flex;font-size:22px;height:22px;margin-right:8px;width:22px}",{});const lr=t.div`
|
|
4109
4123
|
display: flex;
|
|
4110
4124
|
flex-direction: column;
|
|
4111
|
-
`,
|
|
4125
|
+
`,Wr=({useLink:M=!1,children:b})=>{const[z,o]=p.useState("");p.useEffect((()=>{}),[]);const c=M=>{o(M)};return p.createElement(lr,null,p.Children.map(b,(b=>p.cloneElement(b,{...b.props,useLink:M,hasOpen:z===b.props.id,onChange:c}))))};Wr.Panel=function({id:M="",link:b="",icon:z="",title:o="",hasOpen:c=!1,useLink:O=!1,onChange:t=null,children:n=null}){const A=p.useRef(),a=e.useLocation(),[r,i]=p.useState(!1),[d,q]=p.useState(""),[s,l]=p.useState("0px");p.useEffect((()=>{q(0),W()&&A.current&&(A.current.style=`${A.current.scrollHeight}px`)}),[]),p.useEffect((()=>{c||i(!1)}),[c]),p.useEffect((()=>{r&&t(M),l(r&&A.current?`${A.current.scrollHeight}px`:"0px")}),[r]),p.useEffect((()=>{W()&&i(!0)}),[a]);const W=()=>{if(!O&&c)return!0;let M=!1;return n?n.forEach((b=>{a.pathname.indexOf(b.props.link)>-1&&(M=!0)})):a.pathname.indexOf(b)>-1&&(M=!0),M},u=()=>{i(!r)},f=()=>{let M=ir;return M+=n?r?" "+qr:"":" "+dr,React.createElement(bc,{width:"20",height:"20",className:M})};return React.createElement(Ar,null,React.createElement("div",null,n?React.createElement(ar,{className:d,onClick:u},React.createElement("div",{className:sr+" "+z}),React.createElement("span",null,o),f()):React.createElement(ar,{as:nr,$active:W(),to:b},React.createElement("div",{className:sr+" "+z}),React.createElement("span",null,o),f()),React.createElement(rr,{ref:A,style:{maxHeight:`${s}`}},n)))};const ur=t.keyframes`
|
|
4112
4126
|
0% { transform: scale(.2) rotate(-5deg);}
|
|
4113
4127
|
50% { transform: scale(1.3) rotate(5deg);}
|
|
4114
4128
|
60% { transform: scale(0.9) rotate(0deg);}
|
|
4115
4129
|
80% { transform: scale(1) }
|
|
4116
4130
|
100% { transform: scale(1) }
|
|
4117
|
-
`,
|
|
4131
|
+
`,fr=t.div`
|
|
4118
4132
|
right: 10px;
|
|
4119
4133
|
position: absolute;
|
|
4120
4134
|
font-size: 20px;
|
|
4121
4135
|
color: #3395FA;
|
|
4122
|
-
animation: ${
|
|
4123
|
-
`,
|
|
4136
|
+
animation: ${ur} 0.75s;
|
|
4137
|
+
`,hr=t.div`
|
|
4124
4138
|
color: #ffffff80;
|
|
4125
4139
|
font-size: 20px;
|
|
4126
4140
|
margin-right: 4px;
|
|
4127
|
-
`,
|
|
4141
|
+
`,Rr=t.div`
|
|
4128
4142
|
display: flex;
|
|
4129
|
-
`,
|
|
4143
|
+
`,Lr=t.label`
|
|
4130
4144
|
position: relative;
|
|
4131
4145
|
height: 100%;
|
|
4132
4146
|
width: 100%;
|
|
4133
|
-
`,
|
|
4147
|
+
`,mr=t.div`
|
|
4134
4148
|
|
|
4135
4149
|
display: flex;
|
|
4136
4150
|
align-items: center;
|
|
@@ -4144,7 +4158,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4144
4158
|
font-size: 13px;
|
|
4145
4159
|
}
|
|
4146
4160
|
|
|
4147
|
-
`,
|
|
4161
|
+
`,gr=t.div`
|
|
4148
4162
|
|
|
4149
4163
|
border: solid 1px transparent;
|
|
4150
4164
|
transition: border-color 0.2s ease;
|
|
@@ -4166,7 +4180,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4166
4180
|
font-size: 13px;
|
|
4167
4181
|
}
|
|
4168
4182
|
|
|
4169
|
-
`,
|
|
4183
|
+
`,Nr=t.div`
|
|
4170
4184
|
|
|
4171
4185
|
position: relative;
|
|
4172
4186
|
|
|
@@ -4184,10 +4198,10 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4184
4198
|
${({$hasCustomButton:M})=>M&&t.css`
|
|
4185
4199
|
|
|
4186
4200
|
&:hover:not(&.itd-radio-selected) {
|
|
4187
|
-
${
|
|
4201
|
+
${gr} {
|
|
4188
4202
|
border-color: #ADB1BB;
|
|
4189
4203
|
}
|
|
4190
|
-
${
|
|
4204
|
+
${mr} {
|
|
4191
4205
|
span {
|
|
4192
4206
|
color: #071437;
|
|
4193
4207
|
}
|
|
@@ -4198,9 +4212,9 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4198
4212
|
|
|
4199
4213
|
&:checked {
|
|
4200
4214
|
|
|
4201
|
-
+ ${
|
|
4215
|
+
+ ${Lr} {
|
|
4202
4216
|
|
|
4203
|
-
${
|
|
4217
|
+
${gr} {
|
|
4204
4218
|
|
|
4205
4219
|
border: solid 1px #3598fe;
|
|
4206
4220
|
|
|
@@ -4214,7 +4228,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4214
4228
|
|
|
4215
4229
|
}
|
|
4216
4230
|
|
|
4217
|
-
${
|
|
4231
|
+
${mr} {
|
|
4218
4232
|
span {
|
|
4219
4233
|
color: #3598fe;
|
|
4220
4234
|
}
|
|
@@ -4228,7 +4242,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4228
4242
|
|
|
4229
4243
|
`}
|
|
4230
4244
|
|
|
4231
|
-
`,
|
|
4245
|
+
`,Br=t.div`
|
|
4232
4246
|
|
|
4233
4247
|
position: absolute;
|
|
4234
4248
|
border: 1px solid #f8285a;
|
|
@@ -4240,15 +4254,15 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4240
4254
|
pointer-events: none;
|
|
4241
4255
|
/* z-index: 1; */
|
|
4242
4256
|
|
|
4243
|
-
`;function
|
|
4257
|
+
`;function vr({id:M="itd-radio-button-"+oM(),name:b="",value:o="",type:c="default",buttonProps:e={},checked:O=!1,hasError:t=!1,children:n=null,icon:A=null,image:a=null,component:r=null,onChange:i=()=>{}}){const d=()=>{console.log("handleOnChange",o),i&&i(o)};return z.jsxs(Nr,{className:(()=>{let M="itd-radio";return O&&(M+=" itd-radio-selected"),t&&(M+=" itd-radio-error"),M})(),$hasCustomButton:!r,children:[z.jsx("input",{type:"radio",onChange:d,id:M,name:b,value:o,checked:O,"aria-checked":O}),z.jsxs(Lr,{className:(()=>{let M="itd-radio-label";return O&&(M+=" itd-radio-label-selected"),t&&(M+=" itd-radio-label-error"),M})(),htmlFor:M,children:[null!==r?z.jsx("div",{className:"itd-radio-custom-button",children:(()=>{const M={checked:O,value:o,icon:A,children:n};return"childProps"in r?.props&&(M.childProps={...r?.props?.childProps||{},checked:O,value:o,icon:A,children:n}),p.cloneElement(r,M)})()}):"default"===c?z.jsxs(gr,{className:"itd-radio-default-button",children:[z.jsxs(Rr,{className:"itd-radio-content",children:[A?z.jsx(hr,{className:"itd-icon itd-pre-icon "+A}):a?z.jsx(kc,{className:"itd-image",src:a,height:"20",brokenHeight:"20"}):null,z.jsx("span",{children:n})]}),O?z.jsx(fr,{className:"itd-icon itd-check-icon it-web-check"}):null]}):"primary"===c?z.jsx(nM,{className:"itd-radio-primary-button",selected:O,onClick:d,...e,children:z.jsx("span",{children:n})}):z.jsx("span",{children:n}),t?z.jsx(Br,{className:"itd-error-border"}):null]})]})}const xr=t.div`
|
|
4244
4258
|
display : grid;
|
|
4245
4259
|
grid-auto-flow : ${M=>M.$onlyFlow?M.$direction:"column"===M.$direction?"row":"column"};
|
|
4246
4260
|
grid-template-columns : ${M=>"row"===M.$direction||M.$onlyFlow?"auto":`repeat(${M.$length}, ${M.$autoSize?"auto":"1fr"})`};
|
|
4247
4261
|
grid-template-rows : ${M=>"column"===M.$direction||M.$onlyFlow?"auto":`repeat(${M.$length}, ${M.$autoSize?"auto":"1fr"})`};
|
|
4248
4262
|
grid-gap : ${M=>M.$gap};
|
|
4249
|
-
`,
|
|
4263
|
+
`,Xr=p.forwardRef((({id:M="itd-radio-group-"+oM(),name:b="",message:o="",type:c="default",defaultValue:e="",value:O="",buttonProps:t={},className:n="",direction:A="column",gap:a="10px",length:r=3,onlyFlow:i=!1,autoSize:d=!1,onChange:q=null,onUpdate:s=null,children:l=null},W)=>{const[u,f]=p.useState(o),[h,R]=p.useState("");p.useEffect((()=>{e&&(R(e),L(e))}),[]),p.useEffect((()=>{R(O),L(O)}),[O]);const L=(M,b=!0,z=!0)=>{s&&s(M,b,z)};p.useImperativeHandle(W,(()=>({reset(M=!0,b=!0){R(e),f(""),L(e,M,b)},setValue(M,b=!0,z=!0){R(M),L(M,b,z)},getValue:()=>h,setError(M){f(M)},clear(){}})));const m=M=>{h!==M&&(R(M),L(M,!0,!1),f(""),q&&q(M))};return z.jsx(xr,{id:M,className:(()=>{let M="itd-radio-group";return M+=" itd-radio-group-"+c,M+=" itd-radio-group-"+A,u&&(M+=" itd-radio-group-error"),""!==n&&(M+=" "+n),M})(),role:"radiogroup",$direction:A,$length:r,$gap:a,$onlyFlow:i,$autoSize:d,children:(()=>{const M=z=>{if(!p.isValidElement(z))return null;if(z.type===vr)return p.cloneElement(z,{...z.props,checked:h===z.props.value,onChange:m,hasError:""!==u,name:b,type:c,buttonProps:t});if(z.props.children){const b=p.Children.map(z.props.children,M);return p.cloneElement(z,{...z.props,children:b})}return z};return p.Children.map(l,M)})()})}));var yr=p.memo(Xr);const wr=()=>null;wr.Group=yr,wr.Button=vr;var Tr="itd__label__9437953e",_r="itd__checkmark__9437953e",Sr="itd__check__9437953e",kr="itd__container__9437953e";gn(".itd__container__9437953e{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;user-select:none}.itd__label__9437953e{align-items:center;display:flex;position:relative}.itd__label__9437953e span{color:#fff9;font-size:12px;font-weight:400;line-height:1.2;margin-left:10px}.itd__checkmark__9437953e{align-items:center;background-color:#1d2649;border-radius:6px;display:flex;height:20px;justify-content:center;transition:background-color .25sn ease-out;width:20px}.itd__checkmark__9437953e svg{fill:#fff;visibility:hidden}.itd__check__9437953e{background-color:#3396fb}.itd__check__9437953e svg{animation:itd__bounce__9437953e .5s;visibility:visible}@keyframes itd__bounce__9437953e{0%{transform:scale(.2) rotate(4deg)}50%{transform:scale(1.2) rotate(-2deg)}75%{transform:scale(.9) rotate(1deg)}to{transform:scale(1) rotate(0deg)}}",{});const Er=({checked:M=!1,className:b="",children:z=null})=>p.createElement("label",{className:"itd-inline-select-checkbox-label "+b+" "+kr},p.createElement("div",{className:"itd-inline-select-checkbox-wrapper "+Tr},(()=>{let b="itd-inline-select-checkbox "+_r;return M&&(b+=" "+Sr),p.createElement("div",{className:b},p.createElement(oc,{className:"itd-svg",width:12,height:12}))})(),p.createElement("span",null,z)));var Cr="itd__option__733c7593",Dr="itd__selected__733c7593",Pr="itd__single__733c7593";gn(".itd__option__733c7593{align-items:center;cursor:pointer;display:flex;min-width:-webkit-max-content;min-width:max-content;padding:10px 30px 10px 15px}.itd__option__733c7593:not(:last-child){margin-bottom:1px}.itd__option__733c7593:hover{background-color:rgba(29,38,73,.502)}.itd__selected__733c7593 .itd__option__733c7593 span,.itd__selected__733c7593 .itd__single__733c7593{color:#fff}.itd__option__733c7593 span,.itd__single__733c7593{color:hsla(0,0%,100%,.667);font-size:12px;font-weight:400;line-height:12px;white-space:nowrap}",{});const jr=({value:M="",checked:b=!1,single:z=!1,onChange:o=null,children:c=null})=>{const[e,O]=p.useState(!1);return p.createElement("li",{onMouseEnter:M=>{O(!0),M.stopPropagation()},onMouseLeave:M=>{O(!1),M.stopPropagation()},className:(()=>{let M="itd-inline-select-item itd-inline-select-item-option";return M+=" "+Cr,b&&(M+=" "+Dr),b&&(M+=" itd-inline-select-item-option-selected"),e&&!b&&(M+=" itd-inline-select-item-option-active"),M})(),onClick:z=>{o(M,!b,c),z.stopPropagation()}},z?p.createElement("div",{className:"itd-item-single "+Pr},p.createElement("span",null,c)):p.createElement(Er,{className:"itd-item-multi",checked:b},c))};var Fr=p.memo(jr),Ir={menu:"itd__menu__211ba801",bodyWrapper:"itd__bodyWrapper__211ba801",bodyWrapperLong:"itd__bodyWrapperLong__211ba801",menuEnter:"itd__menuEnter__211ba801",menuEnterActive:"itd__menuEnterActive__211ba801",menuExit:"itd__menuExit__211ba801",menuExitActive:"itd__menuExitActive__211ba801",menuEnterActiveLong:"itd__menuEnterActiveLong__211ba801",menuExitActiveLong:"itd__menuExitActiveLong__211ba801",bottom:"itd__bottom__211ba801",left:"itd__left__211ba801"};function $r(M){const b=p.useRef(null),{value:z=[],children:o=null,onChange:e=null,isOpen:O=!1,single:t=!1,minWidth:n=0}=M,[A,a]=p.useState([]);p.useEffect((()=>{a(z)}),[z]);const r=(M,b,z)=>{if(t){const p=[b?M:""];a(p),e(p,z)}else{let p=[];b?p=[...A,M]:(A.splice(A.indexOf(M),1),p=[...A]),a(p),e(p,z)}};return p.createElement(c.CSSTransition,{in:O,timeout:500,classNames:{enter:Ir.menuEnter,enterActive:o.length>5?Ir.menuEnterActiveLong:Ir.menuEnterActive,exit:Ir.menuExit,exitActive:o.length>5?Ir.menuExitActiveLong:Ir.menuExitActive},nodeRef:b,unmountOnExit:!0},p.createElement("div",{className:"itd-inline-select-dropdown "+Ir.menu+" "+Ir.bottom+" "+Ir.left,style:{width:0===n?"max-content":n+"px"},ref:b},p.createElement("div",{className:Ir.spacer}),p.createElement(Bn,{className:"itd-inline-select-dropdown-body "+o.length>5?Ir.bodyWrapperLong:Ir.bodyWrapper},p.createElement("ul",null,p.Children.map(o,(M=>p.cloneElement(M,{onChange:r,checked:A.indexOf(M.props.value)>-1,key:M.props.value})))))))}gn(".itd__menu__211ba801{background-color:#050a20;border-radius:0 5px 5px 5px;box-shadow:0 20px 20px #00000040;overflow:hidden;position:absolute;transform-box:fill-box;transform-origin:50% 1%;transition-timing-function:cubic-bezier(.75,-.5,0,1.25);z-index:2}.itd__menu__211ba801 ul{min-width:-webkit-max-content;min-width:max-content}.itd__bodyWrapperLong__211ba801,.itd__bodyWrapper__211ba801{height:300px}.itd__bottom__211ba801{top:100%}.itd__left__211ba801{left:0}.itd__menuEnter__211ba801{height:50px;opacity:0}.itd__menuEnterActive__211ba801{height:300px;opacity:1;transition:height .15s ease-out}.itd__menuExit__211ba801{opacity:1}.itd__menuExitActive__211ba801{height:300px;opacity:0;transition:height .15s ease-out}.itd__menuEnterActiveLong__211ba801{height:300px;opacity:1;transition:height .15s ease-out}.itd__menuExitActiveLong__211ba801{height:300px;opacity:0;transition:height .15s ease-out}",{});const Hr=t.div`
|
|
4250
4264
|
width: max-content;
|
|
4251
|
-
`,
|
|
4265
|
+
`,Ur=t.span`
|
|
4252
4266
|
|
|
4253
4267
|
font-size: 13px;
|
|
4254
4268
|
font-weight: 400;
|
|
@@ -4256,7 +4270,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4256
4270
|
width: max-content;
|
|
4257
4271
|
transition: color .15s ease-out;
|
|
4258
4272
|
|
|
4259
|
-
`,
|
|
4273
|
+
`,Vr=t.div`
|
|
4260
4274
|
|
|
4261
4275
|
display: flex;
|
|
4262
4276
|
align-items: center;
|
|
@@ -4267,7 +4281,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4267
4281
|
transition: transform .3s ease-out;
|
|
4268
4282
|
}
|
|
4269
4283
|
|
|
4270
|
-
|
|
4284
|
+
`,Gr=t.div`
|
|
4271
4285
|
|
|
4272
4286
|
display: flex;
|
|
4273
4287
|
align-items: center;
|
|
@@ -4280,23 +4294,23 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4280
4294
|
${({$open:M})=>M&&t.css`
|
|
4281
4295
|
background-color: #050A20;
|
|
4282
4296
|
|
|
4283
|
-
${
|
|
4297
|
+
${Ur} {
|
|
4284
4298
|
color: #ffffff;
|
|
4285
4299
|
}
|
|
4286
4300
|
|
|
4287
|
-
${
|
|
4301
|
+
${Vr} {
|
|
4288
4302
|
svg {
|
|
4289
4303
|
transform: rotate(180deg);
|
|
4290
4304
|
}
|
|
4291
4305
|
}
|
|
4292
4306
|
`}
|
|
4293
4307
|
|
|
4294
|
-
`;function
|
|
4308
|
+
`;function Yr({label:M="",value:b="",count:z=0,isOpen:o=!1,single:c=!1,onChange:e=null}){const[O,t]=p.useState(o);p.useEffect((()=>{}),[]),p.useEffect((()=>{t(o)}),[o]);return p.createElement(Gr,{$open:o,onClick:M=>(t(!O),void e(!O)),className:"itd-inline-select-selector"},p.createElement(Hr,{className:"itd-inline-select-selection-item"},p.createElement(Vr,null,p.createElement(Ur,{className:"itd-inline-select-selection-label"},c||1===z?M:M+" ("+z+")"),p.createElement(cc,{className:"itd-inline-select-arrow",width:9,height:4.5}))))}const Kr=t.div`
|
|
4295
4309
|
|
|
4296
4310
|
position: relative;
|
|
4297
4311
|
width: max-content;
|
|
4298
4312
|
|
|
4299
|
-
`,
|
|
4313
|
+
`,Qr=({label:M="",value:b=[],children:z=null,single:o=!1,minWidth:c=0,className:e="",onChange:O=null})=>{const t=p.useRef(null),[n,A]=p.useState(!1),[a,r]=p.useState([]),[i,d]=p.useState("");p.useEffect((()=>{b&&b.length>0&&z.length>0&&(r(b),p.Children.map(z,(M=>{M.props.value===b[0]&&d(M.props.children)})))}),[b,z]),w(t,(()=>{A(!1)}));const q=(M,b)=>{if(O?O(M,b):console.warn("InlineSelect: 'onChange' method couldn't be called because it is not defined!"),o)r(M),d(b);else{const b=M[M.length-1];r(b||[])}};return p.createElement(Kr,{className:(()=>{let M="itd-inline-select";return n&&(M+=" itd-inline-select-open"),""!==e&&(M+=" "+e),M})(),ref:t},p.createElement(Yr,{onChange:M=>{A(M)},isOpen:n,count:a.length,single:o,label:(()=>{let b=o||!o&&1===a.length?i:M;return""===b?"··········":b})()}),p.createElement($r,{onChange:q,value:a,isOpen:n,single:o,minWidth:c},p.Children.map(z,(M=>{if(M&&M.hasOwnProperty("type")&&null!==M.type&&void 0!==M.type)return M.type===Fr?p.cloneElement(M,{...M.props,onChange:q,single:o}):void 0}))))};Qr.Option=Fr;const Jr=t.div`
|
|
4300
4314
|
|
|
4301
4315
|
display: flex;
|
|
4302
4316
|
align-items: center;
|
|
@@ -4379,17 +4393,17 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4379
4393
|
}
|
|
4380
4394
|
`}
|
|
4381
4395
|
|
|
4382
|
-
`,
|
|
4396
|
+
`,Zr=t.span`
|
|
4383
4397
|
font-size: 14px;
|
|
4384
4398
|
line-height: 14px;
|
|
4385
4399
|
font-weight: 500;
|
|
4386
4400
|
display: flex;
|
|
4387
4401
|
align-self: flex-start;
|
|
4388
|
-
`,
|
|
4402
|
+
`,Mi=t.span`
|
|
4389
4403
|
font-weight: 400;
|
|
4390
4404
|
font-size: 13px;
|
|
4391
4405
|
line-height: 15px;
|
|
4392
|
-
`,
|
|
4406
|
+
`,bi=t.span`
|
|
4393
4407
|
|
|
4394
4408
|
display: flex;
|
|
4395
4409
|
flex-direction: column;
|
|
@@ -4397,7 +4411,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4397
4411
|
height: 100%;
|
|
4398
4412
|
gap: ${M=>M.$noTitle?0:"5px"};
|
|
4399
4413
|
|
|
4400
|
-
`,
|
|
4414
|
+
`,zi=t.div`
|
|
4401
4415
|
|
|
4402
4416
|
width: 16px;
|
|
4403
4417
|
min-width: 16px;
|
|
@@ -4411,17 +4425,17 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4411
4425
|
align-self: flex-start;
|
|
4412
4426
|
}
|
|
4413
4427
|
|
|
4414
|
-
`,
|
|
4428
|
+
`,pi=({type:M="info",size:b="small",title:p,className:o,children:c,icon:e})=>{const O=()=>{let z="itd-alert";return z+=" itd-alert-"+M,z+=" itd-alert-"+("x-small"===b?"xs":"small"===b?"sm":"medium"===b?"md":"default"===b?"df":"large"===b?"lg":"x-large"===b?"xlg":"df"),""!==o&&(z+=" "+o),z};return z.jsxs(Jr,{className:O(),children:[z.jsx(zi,{children:e?"string"==typeof e?z.jsx(tM,{src:e}):e:z.jsx(tM,{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"})}),z.jsxs(bi,{$noTitle:!p,children:[""!==p?z.jsx(Zr,{children:p}):null,""!==c?z.jsx(Mi,{children:c}):null]})]})};pi.displayName="ITD-Alert";const oi=t.section`
|
|
4415
4429
|
width: 100%;
|
|
4416
4430
|
height: 100%;
|
|
4417
4431
|
position: relative;
|
|
4418
4432
|
overflow: hidden;
|
|
4419
|
-
`,
|
|
4433
|
+
`,ci=t.keyframes`
|
|
4420
4434
|
0% { transform: scale(.5); opacity: 0;}
|
|
4421
4435
|
50% { transform: scale(1.05); opacity: 1;}
|
|
4422
4436
|
75% { transform: scale(0.95); opacity: 1;}
|
|
4423
4437
|
100% { transform: scale(1); opacity: 1;}
|
|
4424
|
-
`,
|
|
4438
|
+
`,ei=t.div`
|
|
4425
4439
|
|
|
4426
4440
|
width: 100%;
|
|
4427
4441
|
height: 100%;
|
|
@@ -4430,7 +4444,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4430
4444
|
align-items: center;
|
|
4431
4445
|
justify-content: center;
|
|
4432
4446
|
|
|
4433
|
-
`,
|
|
4447
|
+
`,Oi=t.div`
|
|
4434
4448
|
|
|
4435
4449
|
opacity: 1;
|
|
4436
4450
|
|
|
@@ -4448,12 +4462,12 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4448
4462
|
gap : 20px;
|
|
4449
4463
|
|
|
4450
4464
|
${M=>{if(M.$animation)return t.css`
|
|
4451
|
-
animation : ${
|
|
4465
|
+
animation : ${ci} 0.5s ease-out;
|
|
4452
4466
|
transition : all 0.5s ease-out;
|
|
4453
4467
|
transform-origin : 50% 50%;
|
|
4454
4468
|
`}}
|
|
4455
4469
|
|
|
4456
|
-
`,
|
|
4470
|
+
`,ti=t.div`
|
|
4457
4471
|
|
|
4458
4472
|
position: relative;
|
|
4459
4473
|
display: flex;
|
|
@@ -4474,7 +4488,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4474
4488
|
height: auto;
|
|
4475
4489
|
}
|
|
4476
4490
|
|
|
4477
|
-
`,
|
|
4491
|
+
`,ni=t.div`
|
|
4478
4492
|
display: flex;
|
|
4479
4493
|
justify-content: center;
|
|
4480
4494
|
margin-top: 20px;
|
|
@@ -4487,7 +4501,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4487
4501
|
}
|
|
4488
4502
|
|
|
4489
4503
|
}
|
|
4490
|
-
`,
|
|
4504
|
+
`,Ai=t.div`
|
|
4491
4505
|
|
|
4492
4506
|
display: flex;
|
|
4493
4507
|
justify-content: center;
|
|
@@ -4498,7 +4512,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4498
4512
|
width: 100%;
|
|
4499
4513
|
}
|
|
4500
4514
|
|
|
4501
|
-
`,
|
|
4515
|
+
`,ai=t.div`
|
|
4502
4516
|
|
|
4503
4517
|
display: flex;
|
|
4504
4518
|
flex-direction: column;
|
|
@@ -4506,28 +4520,28 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4506
4520
|
justify-content: center;
|
|
4507
4521
|
gap: 10px;
|
|
4508
4522
|
|
|
4509
|
-
`,
|
|
4523
|
+
`,ri=t.div`
|
|
4510
4524
|
color: #57d43c;
|
|
4511
4525
|
font-size: 18px;
|
|
4512
4526
|
font-weight: 600;
|
|
4513
4527
|
text-align: center;
|
|
4514
4528
|
max-width: 80%;
|
|
4515
|
-
`,
|
|
4529
|
+
`,ii=t.div`
|
|
4516
4530
|
color: #cccccc;
|
|
4517
4531
|
font-size: 13px;
|
|
4518
4532
|
line-height: 18px;
|
|
4519
4533
|
font-weight: 500;
|
|
4520
4534
|
text-align: center;
|
|
4521
4535
|
max-width: 80%;
|
|
4522
|
-
`,
|
|
4536
|
+
`,di=({image:M="",title:b="",description:o="",extra:c=null,footer:e=null,type:O="default",fill:t=!1,autoCenter:n=!0,background:A=!0,animation:a=!0})=>{const[r,i]=p.useState("");p.useEffect((()=>{""!==M&&i(M)}),[M]);const d=()=>{if(c)return z.jsx(ni,{className:"itd-result-extras",children:c})},q=()=>{if(e)return z.jsx(Ai,{className:"itd-result-footer",children:e})},s=()=>{let M="itd-result";return M+=" itd-result-"+O,n&&(M+=" itd-result-auto-center"),t&&(M+=" itd-result-fill"),A&&(M+=" itd-result-background"),A||(M+=" itd-result-no-background"),M};return z.jsx(oi,{className:s(),children:z.jsx(ei,{className:"itd-result-content-wrapper",children:z.jsxs(Oi,{className:"itd-result-content",$autoCenter:n,$type:O,$background:A,$animation:a,$fill:t.toString(),children:[z.jsxs(ai,{className:"itd-result-body",children:[z.jsx(ti,{className:"itd-image-wrapper",children:"string"==typeof r?z.jsx(kc,{src:r}):r}),z.jsx(ri,{className:"itd-result-title",children:b}),z.jsx(ii,{className:"itd-result-sub-title",children:o})]}),d(),q()]})})})};di.displayName="ITD-Result";const qi=t.div`
|
|
4523
4537
|
position: fixed;
|
|
4524
4538
|
bottom: 80px;
|
|
4525
4539
|
right: 30px;
|
|
4526
4540
|
visibility: hidden;
|
|
4527
|
-
`,
|
|
4541
|
+
`,si=t.a`
|
|
4528
4542
|
|
|
4529
4543
|
visibility: ${M=>M.$show?"visible":"hidden"};
|
|
4530
|
-
animation: ${M=>M.$show?
|
|
4544
|
+
animation: ${M=>M.$show?li:"none"} 0.5s;
|
|
4531
4545
|
|
|
4532
4546
|
display: block;
|
|
4533
4547
|
transition: fill .3s ease-out;
|
|
@@ -4538,12 +4552,12 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4538
4552
|
fill: #3396fb;
|
|
4539
4553
|
}
|
|
4540
4554
|
|
|
4541
|
-
`,
|
|
4555
|
+
`,li=t.keyframes`
|
|
4542
4556
|
0% { transform: scale(.2) }
|
|
4543
4557
|
50% { transform: scale(1.1) }
|
|
4544
4558
|
75% { transform: scale(0.9) }
|
|
4545
4559
|
100% { transform: scale(1) }
|
|
4546
|
-
`;const
|
|
4560
|
+
`;const Wi={"gray-1":{background:"#F9F9F9",text:"#0714374D"},"gray-2":{background:"#F9F9F9",text:"#585455"},"gray-3":{background:"#F5F5F5",text:"#071437"},black:{background:"#071437",text:"#FFFFFF"},green:{background:"#DFFFEA",text:"#17C653"},purple:{background:"#F5F1FF",text:"#7239EA"},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-brown":{background:"#F5651A",text:"#FFF9F6"},"filled-violet":{background:"#7239EA",text:"#F5F1FF"},"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"},"filled-lavender":{background:"#AB60C0",text:"#FCF3FF"},"filled-gray-1":{background:"#585455",text:"#F9F9F9"},"filled-gray-2":{background:"#585455",text:"#F9F9F9"},"filled-gray-3":{background:"#071437",text:"#F5F5F5"},orange:{background:"#FFF4E6",text:"#FF8C00"},"filled-orange":{background:"#FF8C00",text:"#FFF4E6"},teal:{background:"#E6FFFA",text:"#2DD4BF"},"filled-teal":{background:"#2DD4BF",text:"#E6FFFA"},indigo:{background:"#EEF2FF",text:"#6366F1"},"filled-indigo":{background:"#6366F1",text:"#EEF2FF"},lime:{background:"#F7FEE7",text:"#65A30D"},"filled-lime":{background:"#65A30D",text:"#F7FEE7"}},ui=t.div`
|
|
4547
4561
|
|
|
4548
4562
|
display: flex;
|
|
4549
4563
|
align-items: center;
|
|
@@ -4611,13 +4625,13 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4611
4625
|
}
|
|
4612
4626
|
|
|
4613
4627
|
${({$status:M})=>{return b=M,t.css`
|
|
4614
|
-
background: ${
|
|
4628
|
+
background: ${Wi[b].background};
|
|
4615
4629
|
span {
|
|
4616
|
-
color: ${
|
|
4630
|
+
color: ${Wi[b].text};
|
|
4617
4631
|
}
|
|
4618
4632
|
`;var b}}
|
|
4619
4633
|
|
|
4620
|
-
`;const
|
|
4634
|
+
`;const fi={normal:{background:"#1B84FF",remaining:"#efefef"},active:{background:"#1B84FF",remaining:"#efefef"},success:{background:"#17C653",remaining:"#efefef"},exception:{background:"#F8285A",remaining:"#efefef"}},hi=t.div`
|
|
4621
4635
|
|
|
4622
4636
|
position: relative;
|
|
4623
4637
|
width: 100%;
|
|
@@ -4665,21 +4679,21 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4665
4679
|
|
|
4666
4680
|
${({$status:M})=>{return b=M,t.css`
|
|
4667
4681
|
.itd-progress-inner {
|
|
4668
|
-
background: ${
|
|
4682
|
+
background: ${fi[b].remaining};
|
|
4669
4683
|
.itd-progress-bg {
|
|
4670
|
-
background: ${
|
|
4684
|
+
background: ${fi[b].background};
|
|
4671
4685
|
}
|
|
4672
4686
|
}
|
|
4673
4687
|
.itd-progress-status {
|
|
4674
|
-
color: ${
|
|
4688
|
+
color: ${fi[b].background};
|
|
4675
4689
|
}
|
|
4676
4690
|
`;var b}}
|
|
4677
4691
|
|
|
4678
|
-
`;const
|
|
4692
|
+
`;const Ri=t.div`
|
|
4679
4693
|
|
|
4680
4694
|
height: ${M=>M.$height?M.$height+"px":"75px"};
|
|
4681
4695
|
|
|
4682
|
-
`,
|
|
4696
|
+
`,Li=t.div`
|
|
4683
4697
|
|
|
4684
4698
|
font-size: 14px;
|
|
4685
4699
|
height: 100%;
|
|
@@ -4765,12 +4779,12 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4765
4779
|
|
|
4766
4780
|
}
|
|
4767
4781
|
|
|
4768
|
-
`,
|
|
4782
|
+
`,mi=t.div`
|
|
4769
4783
|
|
|
4770
4784
|
padding: 20px 0;
|
|
4771
4785
|
color: #99a1b7;
|
|
4772
4786
|
|
|
4773
|
-
`,
|
|
4787
|
+
`,gi=({tabs:M=[],activeTabKey:b="",className:o="",variant:c="default",height:O,onTabChange:t})=>{const[n,A]=p.useState(b);p.useEffect((()=>{n!==b&&A(b)}),[b]);const a=(z,p)=>(()=>{let b=!1;return M.map((M=>{M.link&&(b=!0)})),b})()?"":n?n===z?"active":"":b&&0===p?"active":"",r=M=>{A(M),t&&t(M)},i=(M,b)=>z.jsx("a",{className:a(M.key,b),onClick:()=>r(M.key),children:z.jsx("span",{children:M.tab})}),d=(M,b)=>z.jsx(e.NavLink,{className:a(M.key,b),onClick:()=>r(M.key),to:M.link?M.link:"",children:z.jsx("span",{children:M.tab})});return z.jsxs(Ri,{$height:O,className:`itd-tabs ${o||""}`,children:[z.jsx(Li,{$isBold:"bold"===c,children:z.jsx("ul",{children:M.map(((M,b)=>z.jsx("li",{children:M.link?d(M,b):i(M,b)},M.key)))})}),(()=>{const b=M.filter((M=>M.key===n))[0];if(b&&b.children)return z.jsx(mi,{className:"itd-content-body",children:b.children})})()]})},Ni=t.div`
|
|
4774
4788
|
|
|
4775
4789
|
position: relative;
|
|
4776
4790
|
width: 100%;
|
|
@@ -4779,7 +4793,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4779
4793
|
height: 100%;
|
|
4780
4794
|
}
|
|
4781
4795
|
|
|
4782
|
-
`,
|
|
4796
|
+
`,Bi=t.div`
|
|
4783
4797
|
|
|
4784
4798
|
position: relative;
|
|
4785
4799
|
background-color: #ffffff;
|
|
@@ -4795,7 +4809,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4795
4809
|
grid-template-rows: ${M=>M.$hasHeader?"75px 1fr":"1fr"};
|
|
4796
4810
|
|
|
4797
4811
|
|
|
4798
|
-
`,
|
|
4812
|
+
`,vi=t.div`
|
|
4799
4813
|
|
|
4800
4814
|
padding: 0 30px;
|
|
4801
4815
|
|
|
@@ -4812,20 +4826,20 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
4812
4826
|
align-items: center;
|
|
4813
4827
|
}
|
|
4814
4828
|
|
|
4815
|
-
`,
|
|
4829
|
+
`,xi=t.div`
|
|
4816
4830
|
padding: 20px 0;
|
|
4817
4831
|
height: 100%;
|
|
4818
|
-
`,
|
|
4832
|
+
`,Xi=t.div`
|
|
4819
4833
|
|
|
4820
4834
|
display: grid;
|
|
4821
4835
|
padding: ${M=>M.$padding?M.$padding:"30px"};
|
|
4822
4836
|
|
|
4823
|
-
`,
|
|
4837
|
+
`,yi=t.div`
|
|
4824
4838
|
display: flex;
|
|
4825
4839
|
flex-direction: row;
|
|
4826
4840
|
justify-content: space-between;
|
|
4827
4841
|
gap: 10px;
|
|
4828
|
-
`,
|
|
4842
|
+
`,wi=t.div`
|
|
4829
4843
|
|
|
4830
4844
|
&:has(table.itd-table-no-data), &:has(table.itd-table-empty) {
|
|
4831
4845
|
height: 100%;
|
|
@@ -5239,7 +5253,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
5239
5253
|
|
|
5240
5254
|
}
|
|
5241
5255
|
|
|
5242
|
-
`,
|
|
5256
|
+
`,Ti=t.div`
|
|
5243
5257
|
|
|
5244
5258
|
height: 150px;
|
|
5245
5259
|
display: flex;
|
|
@@ -5262,7 +5276,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
5262
5276
|
fill: #4D4D4D;
|
|
5263
5277
|
}
|
|
5264
5278
|
|
|
5265
|
-
`,
|
|
5279
|
+
`,_i=t.span`
|
|
5266
5280
|
|
|
5267
5281
|
${M=>{if(M.$overflow)return t.css`
|
|
5268
5282
|
overflow : hidden;
|
|
@@ -5272,7 +5286,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
5272
5286
|
display : block;
|
|
5273
5287
|
`}}
|
|
5274
5288
|
|
|
5275
|
-
`,
|
|
5289
|
+
`,Si=t.span`
|
|
5276
5290
|
|
|
5277
5291
|
${M=>{if(M.$overflow)return t.css`
|
|
5278
5292
|
overflow : hidden;
|
|
@@ -5282,7 +5296,7 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
5282
5296
|
display : block;
|
|
5283
5297
|
`}}
|
|
5284
5298
|
|
|
5285
|
-
`,
|
|
5299
|
+
`,ki=p.forwardRef((({columns:M,data:o,cellHeight:c,size:e="default",headless:O=!1,bordered:t=!1,dashed:n=!1,noGaps:A=!1,hideGroupButtons:a=!1,getTRProps:r},i)=>{const{t:d}=b.useTranslation("itd"),[q,s]=p.useState(new Set),l=M=>{s((b=>{const z=new Set(b);return z.has(M)?z.delete(M):z.add(M),z}))};p.useImperativeHandle(i,(()=>({toggleRow:l,expandedRows:q})));const W=(M,b)=>{let z={};return"string"==typeof M.width?z.width=M.width:"number"==typeof M.width?z.minWidth=M.width+"px":z.width="auto",void 0!==M.maxWidth&&("string"==typeof M.maxWidth?z.maxWidth=M.maxWidth:"number"==typeof M.maxWidth&&(z.maxWidth=M.maxWidth+"px")),void 0!==M.minWidth&&("string"==typeof M.minWidth?z.minWidth=M.minWidth:"number"==typeof M.minWidth&&(z.minWidth=M.minWidth+"px")),"td"===b&&("string"==typeof c?z.height=c:"number"==typeof c?z.minHeight=c+"px":z.height="auto"),z},u=()=>{let M=!1;return o?.map((b=>{b.hasOwnProperty("children")&&(M=!0)})),!a&&M},f=(M,b,z)=>r?r(M,b,z):{},h=(M,b,z)=>{let p={"data-index":b+"_"+M,"data-level":b};return b>0&&(0===M&&(p["data-first"]="true"),M===z-1&&(p["data-last"]="true")),p},R=(b,o=0)=>b.map(((c,e)=>z.jsxs(p.Fragment,{children:[z.jsxs("tr",{...h(e,o,b?.length),...f(c,e,o),children:[u()?c.children?z.jsx("td",{style:{width:"40px"},children:z.jsx("div",{className:"expand-button",children:z.jsx(nM,{variant:"filled",size:"x-small",onClick:()=>l(c.key),circle:!0,children:z.jsx("span",{children:q.has(c.key)?"-":"+"})})})}):z.jsx("td",{}):null,M.map((M=>z.jsx("td",{style:W(M,"td"),children:z.jsx(Si,{$overflow:M.overflow,title:String(c[M.dataIndex]),children:M.render?M.render(c[M.dataIndex],c,o):M.dataIndex?String(c[M.dataIndex]):null})},String(M.key)+"_"+e+"_"+o)))]}),c.children&&q.has(c.key)&&R(c.children,o+1)]},String(o+"_"+e+"_"+c.key))));return z.jsx(wi,{$size:e,$noGaps:A,children:z.jsxs("table",{className:(()=>{let M="itd-table";return M+=" itd-table-"+eM(e),O&&(M+=" itd-table-headless"),t&&(M+=" itd-table-bordered"),A&&(M+=" itd-table-no-gaps"),o||(M+=" itd-table-empty"),0===o?.length&&(M+=" itd-table-no-data"),M+=n?" itd-table-dashed":" itd-table-solid",M+=" itd-table-main-table",M})(),children:[(()=>{if(!O)return z.jsx("thead",{children:z.jsxs("tr",{children:[u()&&z.jsx("th",{style:{maxWidth:"40px"}}),M.map((M=>z.jsx("th",{style:W(M,"th"),children:z.jsx(_i,{$overflow:M.overflow,children:M.title})},String(M.key))))]})})})(),o?0===o.length?z.jsx("tbody",{children:z.jsx("tr",{children:z.jsx("td",{colSpan:M.length,children:z.jsx(Ti,{children:z.jsxs("div",{children:[z.jsx(nc,{height:30}),z.jsx("span",{children:d("table.noData")})]})})})})}):z.jsx("tbody",{children:R(o)}):z.jsx("tbody",{children:z.jsx("tr",{children:z.jsx("td",{colSpan:M.length,children:z.jsx(Ti,{})})})})]})})})),Ei=t.div`
|
|
5286
5300
|
|
|
5287
5301
|
display : flex;
|
|
5288
5302
|
|
|
@@ -5316,4 +5330,4 @@ function(b,z){M.exports?M.exports=z(Co()):z(b.moment)}(Io,(function(M){void 0===
|
|
|
5316
5330
|
gap : ${z};
|
|
5317
5331
|
`}}}
|
|
5318
5332
|
|
|
5319
|
-
`,_i=({gap:M,justify:b,align:p,vertical:o,wrap:c,stretch:e,style:O,className:t,children:n})=>z.jsx(Ti,{$gap:M,$justify:b,$align:p,$vertical:o,$wrap:c,$stretch:e,style:O,className:t,children:n}),Si={tr:{itd:l,calendar:u},en:{itd:W,calendar:f}};M.use(b.initReactI18next).init({resources:Si,preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["itd","calendar"],defaultNS:"itd",initImmediate:!1,debug:!1,interpolation:{escapeValue:!1}}),exports.ALink=cr,exports.Accordion=uA,exports.AddDefaultThemeStyle=function(){const M=document.createElement("style");document.head.appendChild(M),M.textContent=":root{color: #ffffff}"},exports.AddDefaultUnit=Vo,exports.AddZero=function(M){var b=Number(M),z=M.toString().split(".");return(-1===M.toString().indexOf(".")||z[1].length<3||z[1].length>2)&&(M=(b=b.toFixed(2)).toString()),parseFloat(M).toFixed(2)},exports.Alert=Zr,exports.ArrowIcon=bc,exports.BackToTop=pc,exports.BackTop=function(M){const{children:b=null}=M,[o,c]=p.useState(!1);p.useEffect((()=>(document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)})),[]);const e=()=>{c(document.body.scrollTop>window.innerHeight)},O=()=>{window.scrollTo({top:0,behavior:"smooth"})};return z.jsx(ai,{className:"itd-back-to-top",children:z.jsx(ri,{onClick:O,$show:o,children:b||z.jsx(pc,{width:30,height:30})})})},exports.Base64Decode=function(M){return decodeURIComponent(atob(M).split("").map((function(M){return"%"+("00"+M.charCodeAt(0).toString(16)).slice(-2)})).join(""))},exports.Base64Encode=function(M){return btoa(encodeURIComponent(M).replace(/%([0-9A-F]{2})/g,(function(M,b){return String.fromCharCode(Number("0x"+b))})))},exports.Button=nM,exports.Calendar=TA,exports.Card=({title:M,titleSeparator:b,extra:o,tabs:c,onTabChange:e,minWidth:O,minHeight:t,children:n,activeTabKey:A="",updating:a=!1,contentPadding:r="30px"})=>{p.useEffect((()=>{}));const i=()=>{if(o)return z.jsx(Bi,{className:"itd-card-extra",children:o})},d=()=>{if(c)return z.jsx(hi,{tabs:c,activeTabKey:A,onTabChange:M=>e&&e(M)})},q=()=>{if(M)return z.jsx(gi,{className:"itd-card-title",children:z.jsx(Jo,{children:M})})},s=()=>!!(M||o||c);return z.jsx(Ri,{className:"itd-card",children:z.jsx(F,{updating:a,className:"itd-card-spin",children:z.jsxs(Li,{className:"itd-card-body",$minWidth:O,$minHeight:t,$hasHeader:s(),children:[(()=>{if(s())return z.jsxs(mi,{$showSeparator:b,className:"itd-card-header",children:[q(),d(),i()]})})(),(()=>{if(n)return z.jsx(Ni,{className:"itd-card-body",$padding:r,children:n})})()]})})})},exports.CheckFileURL=vo,exports.Checkbox=hc,exports.Checkmark=oc,exports.ChunkArray=function(M,b){let z=0,p=[];for(z=0;z<M.length;z+=b){const o=M.slice(z,z+b);"object"!=typeof o&&p.push(o)}return p},exports.Collapse=dr,exports.ConsoleLog=y,exports.ConvertCurrency=function(M,b){return M||(M=0),No(M,"TRY"===b?"₺":"USD"===b?"$":"EUR"===b?"€":"?")},exports.DatePicker=kA,exports.DetermineNewHeight=function(M,b,z){return M/b*z},exports.DetermineNewWidth=function(M,b,z){return b/M*z},exports.FileChecker=function(M="config",b="resource"){let z=void 0!==performance.getEntries().filter((M=>M.entryType===b)).filter((b=>b.name.indexOf(M)>-1))[0];return z?console.log("script already loaded"):console.log("script was not loaded"),z},exports.FindSelector=function(M){let b=!1;return document.querySelectorAll("head > style").forEach((z=>{Array(z.sheet.rules).forEach((z=>{for(var p=0;p<z.length;p++)z[p].cssText.search(M)>-1&&(b=!0)}))})),b},exports.Flex=_i,exports.Form=AA,exports.FormatBytes=xo,exports.FormatDate=function(M,b="tr",z="D MMMM YYYY dddd"){return Po(new Date(M)).locale(b).format(z)},exports.FormatDateTime=function(M,b="tr",z="D MMMM YYYY dddd - HH:mm"){return Po(new Date(M)).locale(b).format(z)},exports.FormatSimpleDate=function(M,b="tr",z="D MMMM YYYY"){return Po(new Date(M)).locale(b).format(z)},exports.FormatSimpleDateTime=function(M,b="tr",z="MM/DD/YYYY - HH:mm"){return Po(new Date(M)).locale(b).format(z)},exports.FormatTime=function(M,b="tr",z="HH:mm"){return Po(M).locale(b).format(z)},exports.GetByCurrency=function(M,b=!0,z="",p=2){if(""===z)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...)");isNaN(M)&&(M=0);let o=go(z);return b?new Intl.NumberFormat(o,{style:"currency",currency:z,minimumFractionDigits:p,maximumFractionDigits:p}).format(M):new Intl.NumberFormat(o,{minimumFractionDigits:p,maximumFractionDigits:p}).format(M)},exports.GetCountryCodeByCurrencyCode=go,exports.GetCountryCodeByLanguage=function(M){return"tr"===M?"tur":"en"===M?"usa":"language_not_found"},exports.GetCurrencyFormat=function(M,b=""){if(""===b)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return""===M?"":M=`${Bo(b)}${M}`.replace(/\B(?=(\d{3})+(?!\d))/g,".")},exports.GetCurrencySymbol=Bo,exports.GetDecimalByCurrency=function(M=""){if(""===M)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return"TRY"===M?",":"EUR"===M||"USD"===M?".":","},exports.GetTypeByFileType=Xo,exports.H1=({children:M})=>z.jsx(Go,{children:z.jsx("span",{children:M})}),exports.H2=Jo,exports.H3=({children:M})=>z.jsx(Ko,{children:z.jsx("span",{children:M})}),exports.H4=Zo,exports.ITDContext=mo,exports.ITDProvider=b=>{const[o,c]=p.useState(b.theme?b.theme:"dark"),[e,O]=p.useState(b.dateFormat?b.dateFormat:"MM/DD/YYYY"),[t,n]=p.useState(b.language?b.language:"en"),[A,a]=p.useState("en-US"),[r,i]=p.useState("");p.useEffect((()=>{b.theme&&c(b.theme),b.language&&(n(b.language),M.changeLanguage(b.language)),b.dateFormat&&O(b.dateFormat)}),[b.theme,b.language,b.dateFormat]);const d=p.useCallback((M=>{c(M)}),[]),q=p.useCallback((M=>{i(M)}),[]),s=p.useCallback((M=>{O(M)}),[]),l=p.useCallback((M=>{a(M)}),[]),W=p.useCallback((b=>{n(b),M.changeLanguage(b)}),[]),u=p.useMemo((()=>({theme:o,brokenImage:r,dateFormat:e,language:t,locale:A,changeTheme:d,changeBrokenImage:q,changeDateFormat:s,changeLanguage:W,changeLocale:l})),[o,r,e,t,A,d,q,s,W,l]);return z.jsx(Lo,{className:"itd-provider","data-theme":o,"data-lang":t,children:z.jsx(mo.Provider,{value:u,children:z.jsx(ho,{children:z.jsx($M,{children:b.children})})})})},exports.Image=kc,exports.InlineSVGCached=tM,exports.InlineSelect=Vr,exports.InlineSelectArrow=cc,exports.Input=Sa,exports.IsValidJSON=function(M){M="string"!=typeof M?JSON.stringify(M):M;try{M=JSON.parse(String(M))}catch(M){return!1}return"object"==typeof M&&null!==M},exports.LockIcon=Mc,exports.ModalManager=HM,exports.NoData=nc,exports.Notification=Ro,exports.Picture=tc,exports.Progress=function({status:M,percent:b=0,alwaysShowPercent:p=!1,showInfo:o=!0,className:c=""}){const e=()=>{let z="itd-progress";return z+=" itd-progress-percent-"+b,M&&(z+=" itd-progress-"+M),""!==c&&null!==c&&(z+=" "+c),z},O=z.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:z.jsx("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"})}),t=z.jsx("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:z.jsx("path",{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"})}),n=()=>M||(b<100?"normal":"success"),A=()=>{if(o)return z.jsx("span",{className:"itd-progress-status",children:a()})},a=()=>{const M=n();if("active"===M||"normal"===M||p){const M=b%1!=0?b.toFixed(2):Math.floor(b).toString();return z.jsx("span",{className:"itd-progress-status-text",children:M+"%"})}return"success"===M?O:"exception"===M?t:void 0};return z.jsx(li,{$status:n(),$percent:b,className:e(),children:z.jsxs("div",{className:"itd-progress-outer",children:[z.jsx("div",{className:"itd-progress-inner",children:z.jsx("div",{className:"itd-progress-bg"})}),A()]})})},exports.Radio=vr,exports.RemoveUnits=function(M){return M?(M=M.replaceAll("%","").replaceAll("px","").replaceAll("em","").replaceAll("ex","").replaceAll("ch","").replaceAll("rem","").replaceAll("vw","").replaceAll("vh","").replaceAll("vmin","").replaceAll("vmax","").replaceAll("pt","").replaceAll("pc","").replaceAll("in","").replaceAll("mm","").replaceAll("cm",""),parseInt(M)):0},exports.Result=Ai,exports.SVGLoader=(M,b,p)=>z.jsx(To,{$width:b,$height:p,children:z.jsx(tM,{src:M})}),exports.Select=En,exports.Spin=F,exports.Status=function({variant:M="gray-1",size:b="default",stretch:p=!1,bold:o=!0,children:c="",className:e=""}){const O=()=>{let z="itd-status";return z+=" itd-status-"+M,z+=" itd-status-"+eM(b),p&&(z+=" itd-status-stretch"),o&&(z+=" itd-status-bold"),""!==e&&null!==e&&(z+=" "+e),z};return z.jsx(qi,{$status:M,$bold:o,className:O(),children:z.jsx("span",{children:c})})},exports.Switch=$a,exports.Table=wi,exports.Tabs=hi,exports.TextArea=Da,exports.TinyScrollbar=Bn,exports.Trash=ec,exports.UniUpperCase=function(M="",b="tr"){var z={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return"tr"===b&&(M=M.replace(/(([iışğüçö]))/g,(M=>z[M]))),M.toUpperCase()},exports.UpdateThemeStyle=function(M){var b="",z=document.styleSheets[0];Object.keys(M).forEach((z=>{b+=`${z}:${M[z]};`})),z.hasOwnProperty("cssRules")&&(z.cssRules[0].style.cssText=b)},exports.Upload=pr,exports.UploadIcon=zc,exports.Wait=yo,exports.ZoomIn=Oc,exports.ZoomOut=({className:M="",height:b=24,width:p=24})=>z.jsx("svg",{className:M,height:b,width:p,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[z.jsx("rect",{x:"0",y:"0",width:"24",height:"24"}),z.jsx("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),z.jsx("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),z.jsx("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})}),exports.resources=Si,exports.toKebabCase=function(M,b=!1,z=!1){const p=["the","is","in","at","on","and","a","an","ve","bir","bu","için","gibi"],o={"ğ":"g","ü":"u","ş":"s","ı":"i","ö":"o","ç":"c","Ğ":"g","Ü":"u","Ş":"s","İ":"i","Ö":"o","Ç":"c"};return M=M.replace(/[ğüşiöçıĞÜŞİÖÇ]/g,(M=>o[M]||M)),b&&(M=M.split(" ").filter((M=>!p.includes(M.toLowerCase()))).join(" ")),z&&(M=M.replace(/\d+/g,"")),(M=(M=M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).toLowerCase().replace(/[^a-z0-9\s-]/g,"")).trim().replace(/\s+/g,"-")},exports.useAddExternalCSS=(M,b=!1)=>{p.useEffect((()=>{var p=!1,o=document.head,c=z();return document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(M)&&(p=!0)})),p||o.appendChild(c),()=>{b&&document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(M)&&document.head.removeChild(b)}))}}),[M]);const z=()=>{var b=document.createElement("link");return b.type="text/css",b.rel="stylesheet",b.href=M,b}},exports.useComponentSize=M=>{const[b,z]=p.useState({width:0,height:0});return p.useEffect((()=>{if(!M.current)return;const b=new ResizeObserver((M=>{M.forEach((({target:M})=>{z({width:M.clientWidth,height:M.clientHeight})}))}));return b.observe(M.current),()=>b.disconnect()}),[M]),[b]},exports.useConnectionStatus=M=>{p.useEffect((()=>{const b=b=>{M(b)};return window.addEventListener("online",b),()=>{window.removeEventListener("online",b)}}),[M])},exports.useConstructor=(M=()=>{})=>{const[b,z]=p.useState(!1);b||(M(),z(!0))},exports.useContextBridge=(...M)=>{if(0===M.length)return({children:M})=>z.jsx(z.Fragment,{children:M});const b=M.map(p.useContext),o=p.useRef(b);return o.current=b,p.useMemo((()=>({children:b})=>M.reduceRight(((M,b,p)=>z.jsx(b.Provider,{value:o.current[p],children:M})),b)),[])},exports.useCoreFetch=k,exports.useKeyboardShortcut=({key:M,onKeyPressed:b})=>{p.useEffect((()=>{function z(z){z.key===M&&(z.preventDefault(),b())}return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}}),[M,b])},exports.useMultiQuery=S,exports.useOnClickOutside=w,exports.useOnESCKeyDown=T,exports.useOnResize=M=>{p.useEffect((()=>{const b=b=>{M(b)};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}}),[M])},exports.useOrientation=()=>{const[M,b]=p.useState("portrait-primary"===window.screen.orientation.type?"portrait":"landscape");return p.useEffect((()=>{const M=M=>{const z=M.currentTarget.type;"landscape-primary"===z?b("landscape"):"portrait-primary"===z&&b("portrait")};return screen.orientation.addEventListener("change",M),()=>{screen.orientation.removeEventListener("change",M)}}),[]),M},exports.useReCaptcha=M=>{let b;const[z,o]=p.useState("");p.useEffect((()=>()=>{document.body.removeChild(b)}),[]);return{loadReCaptcha:M=>{b=document.createElement("script"),b.src="https://www.google.com/recaptcha/api.js?render="+M,b.onload=function(){o(M)},document.body.appendChild(b)},executeReCaptcha:()=>{if(""===z)return y.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(M&&M(null));window.grecaptcha.ready((b=>{try{window.grecaptcha.execute(z,{action:"login"}).then((b=>{y.double("ReCaptcha V3","Token is valid"),console.log("token: "+b),M&&M(b)}))}catch(M){y.double("ReCaptcha V3","Token is invalid","error")}}))}}},exports.useSingleQuery=_;
|
|
5333
|
+
`,Ci=({gap:M,justify:b,align:p,vertical:o,wrap:c,stretch:e,style:O,className:t,children:n})=>z.jsx(Ei,{$gap:M,$justify:b,$align:p,$vertical:o,$wrap:c,$stretch:e,style:O,className:t,children:n}),Di={tr:{itd:l,calendar:u},en:{itd:W,calendar:f}};M.use(b.initReactI18next).init({resources:Di,preload:["en","tr"],fallbackLng:["en","tr"],lng:"en-US",load:"languageOnly",ns:["itd","calendar"],defaultNS:"itd",initImmediate:!1,debug:!1,interpolation:{escapeValue:!1}}),exports.ALink=nr,exports.Accordion=uA,exports.AddDefaultThemeStyle=function(){const M=document.createElement("style");document.head.appendChild(M),M.textContent=":root{color: #ffffff}"},exports.AddDefaultUnit=Vo,exports.AddZero=function(M){var b=Number(M),z=M.toString().split(".");return(-1===M.toString().indexOf(".")||z[1].length<3||z[1].length>2)&&(M=(b=b.toFixed(2)).toString()),parseFloat(M).toFixed(2)},exports.Alert=pi,exports.ArrowIcon=bc,exports.BackToTop=pc,exports.BackTop=function(M){const{children:b=null}=M,[o,c]=p.useState(!1);p.useEffect((()=>(document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)})),[]);const e=()=>{c(document.body.scrollTop>window.innerHeight)},O=()=>{window.scrollTo({top:0,behavior:"smooth"})};return z.jsx(qi,{className:"itd-back-to-top",children:z.jsx(si,{onClick:O,$show:o,children:b||z.jsx(pc,{width:30,height:30})})})},exports.Base64Decode=function(M){return decodeURIComponent(atob(M).split("").map((function(M){return"%"+("00"+M.charCodeAt(0).toString(16)).slice(-2)})).join(""))},exports.Base64Encode=function(M){return btoa(encodeURIComponent(M).replace(/%([0-9A-F]{2})/g,(function(M,b){return String.fromCharCode(Number("0x"+b))})))},exports.Button=nM,exports.Calendar=TA,exports.Card=({title:M,titleSeparator:b,extra:o,tabs:c,onTabChange:e,minWidth:O,minHeight:t,children:n,activeTabKey:A="",updating:a=!1,contentPadding:r="30px"})=>{p.useEffect((()=>{}));const i=()=>{if(o)return z.jsx(yi,{className:"itd-card-extra",children:o})},d=()=>{if(c)return z.jsx(gi,{tabs:c,activeTabKey:A,onTabChange:M=>e&&e(M)})},q=()=>{if(M)return z.jsx(xi,{className:"itd-card-title",children:z.jsx(Jo,{children:M})})},s=()=>!!(M||o||c);return z.jsx(Ni,{className:"itd-card",children:z.jsx(F,{updating:a,className:"itd-card-spin",children:z.jsxs(Bi,{className:"itd-card-body",$minWidth:O,$minHeight:t,$hasHeader:s(),children:[(()=>{if(s())return z.jsxs(vi,{$showSeparator:b,className:"itd-card-header",children:[q(),d(),i()]})})(),(()=>{if(n)return z.jsx(Xi,{className:"itd-card-body",$padding:r,children:n})})()]})})})},exports.CheckFileURL=vo,exports.Checkbox=hc,exports.Checkmark=oc,exports.ChunkArray=function(M,b){let z=0,p=[];for(z=0;z<M.length;z+=b){const o=M.slice(z,z+b);"object"!=typeof o&&p.push(o)}return p},exports.Collapse=Wr,exports.ConsoleLog=y,exports.ConvertCurrency=function(M,b){return M||(M=0),No(M,"TRY"===b?"₺":"USD"===b?"$":"EUR"===b?"€":"?")},exports.DatePicker=kA,exports.DetermineNewHeight=function(M,b,z){return M/b*z},exports.DetermineNewWidth=function(M,b,z){return b/M*z},exports.FileChecker=function(M="config",b="resource"){let z=void 0!==performance.getEntries().filter((M=>M.entryType===b)).filter((b=>b.name.indexOf(M)>-1))[0];return z?console.log("script already loaded"):console.log("script was not loaded"),z},exports.FindSelector=function(M){let b=!1;return document.querySelectorAll("head > style").forEach((z=>{Array(z.sheet.rules).forEach((z=>{for(var p=0;p<z.length;p++)z[p].cssText.search(M)>-1&&(b=!0)}))})),b},exports.Flex=Ci,exports.Form=AA,exports.FormatBytes=xo,exports.FormatDate=function(M,b="tr",z="D MMMM YYYY dddd"){return Po(new Date(M)).locale(b).format(z)},exports.FormatDateTime=function(M,b="tr",z="D MMMM YYYY dddd - HH:mm"){return Po(new Date(M)).locale(b).format(z)},exports.FormatSimpleDate=function(M,b="tr",z="D MMMM YYYY"){return Po(new Date(M)).locale(b).format(z)},exports.FormatSimpleDateTime=function(M,b="tr",z="MM/DD/YYYY - HH:mm"){return Po(new Date(M)).locale(b).format(z)},exports.FormatTime=function(M,b="tr",z="HH:mm"){return Po(M).locale(b).format(z)},exports.GetByCurrency=function(M,b=!0,z="",p=2){if(""===z)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...)");isNaN(M)&&(M=0);let o=go(z);return b?new Intl.NumberFormat(o,{style:"currency",currency:z,minimumFractionDigits:p,maximumFractionDigits:p}).format(M):new Intl.NumberFormat(o,{minimumFractionDigits:p,maximumFractionDigits:p}).format(M)},exports.GetCountryCodeByCurrencyCode=go,exports.GetCountryCodeByLanguage=function(M){return"tr"===M?"tur":"en"===M?"usa":"language_not_found"},exports.GetCurrencyFormat=function(M,b=""){if(""===b)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return""===M?"":M=`${Bo(b)}${M}`.replace(/\B(?=(\d{3})+(?!\d))/g,".")},exports.GetCurrencySymbol=Bo,exports.GetDecimalByCurrency=function(M=""){if(""===M)throw new Error("Currency Error: You must send the currency (EUR, USD, TRY, etc...");return"TRY"===M?",":"EUR"===M||"USD"===M?".":","},exports.GetTypeByFileType=Xo,exports.H1=({children:M})=>z.jsx(Go,{children:z.jsx("span",{children:M})}),exports.H2=Jo,exports.H3=({children:M})=>z.jsx(Ko,{children:z.jsx("span",{children:M})}),exports.H4=Zo,exports.ITDContext=mo,exports.ITDProvider=b=>{const[o,c]=p.useState(b.theme?b.theme:"dark"),[e,O]=p.useState(b.dateFormat?b.dateFormat:"MM/DD/YYYY"),[t,n]=p.useState(b.language?b.language:"en"),[A,a]=p.useState("en-US"),[r,i]=p.useState("");p.useEffect((()=>{b.theme&&c(b.theme),b.language&&(n(b.language),M.changeLanguage(b.language)),b.dateFormat&&O(b.dateFormat)}),[b.theme,b.language,b.dateFormat]);const d=p.useCallback((M=>{c(M)}),[]),q=p.useCallback((M=>{i(M)}),[]),s=p.useCallback((M=>{O(M)}),[]),l=p.useCallback((M=>{a(M)}),[]),W=p.useCallback((b=>{n(b),M.changeLanguage(b)}),[]),u=p.useMemo((()=>({theme:o,brokenImage:r,dateFormat:e,language:t,locale:A,changeTheme:d,changeBrokenImage:q,changeDateFormat:s,changeLanguage:W,changeLocale:l})),[o,r,e,t,A,d,q,s,W,l]);return z.jsx(Lo,{className:"itd-provider","data-theme":o,"data-lang":t,children:z.jsx(mo.Provider,{value:u,children:z.jsx(ho,{children:z.jsx($M,{children:b.children})})})})},exports.Image=kc,exports.InlineSVGCached=tM,exports.InlineSelect=Qr,exports.InlineSelectArrow=cc,exports.Input=Ea,exports.IsValidJSON=function(M){M="string"!=typeof M?JSON.stringify(M):M;try{M=JSON.parse(String(M))}catch(M){return!1}return"object"==typeof M&&null!==M},exports.LockIcon=Mc,exports.ModalManager=HM,exports.NoData=nc,exports.Notification=Ro,exports.Picture=tc,exports.Progress=function({status:M,percent:b=0,alwaysShowPercent:p=!1,showInfo:o=!0,className:c=""}){const e=()=>{let z="itd-progress";return z+=" itd-progress-percent-"+b,M&&(z+=" itd-progress-"+M),""!==c&&null!==c&&(z+=" "+c),z},O=z.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:z.jsx("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"})}),t=z.jsx("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:z.jsx("path",{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"})}),n=()=>M||(b<100?"normal":"success"),A=()=>{if(o)return z.jsx("span",{className:"itd-progress-status",children:a()})},a=()=>{const M=n();if("active"===M||"normal"===M||p){const M=b%1!=0?b.toFixed(2):Math.floor(b).toString();return z.jsx("span",{className:"itd-progress-status-text",children:M+"%"})}return"success"===M?O:"exception"===M?t:void 0};return z.jsx(hi,{$status:n(),$percent:b,className:e(),children:z.jsxs("div",{className:"itd-progress-outer",children:[z.jsx("div",{className:"itd-progress-inner",children:z.jsx("div",{className:"itd-progress-bg"})}),A()]})})},exports.Radio=wr,exports.RemoveUnits=function(M){return M?(M=M.replaceAll("%","").replaceAll("px","").replaceAll("em","").replaceAll("ex","").replaceAll("ch","").replaceAll("rem","").replaceAll("vw","").replaceAll("vh","").replaceAll("vmin","").replaceAll("vmax","").replaceAll("pt","").replaceAll("pc","").replaceAll("in","").replaceAll("mm","").replaceAll("cm",""),parseInt(M)):0},exports.Result=di,exports.SVGLoader=(M,b,p)=>z.jsx(To,{$width:b,$height:p,children:z.jsx(tM,{src:M})}),exports.Select=En,exports.Spin=F,exports.Status=function({variant:M="gray-1",size:b="default",stretch:p=!1,bold:o=!0,children:c="",className:e=""}){const O=()=>{let z="itd-status";return z+=" itd-status-"+M,z+=" itd-status-"+eM(b),p&&(z+=" itd-status-stretch"),o&&(z+=" itd-status-bold"),""!==e&&null!==e&&(z+=" "+e),z};return z.jsx(ui,{$status:M,$bold:o,className:O(),children:z.jsx("span",{children:c})})},exports.Switch=Ga,exports.Table=ki,exports.Tabs=gi,exports.TextArea=Ia,exports.TinyScrollbar=Bn,exports.Trash=ec,exports.UniUpperCase=function(M="",b="tr"){var z={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return"tr"===b&&(M=M.replace(/(([iışğüçö]))/g,(M=>z[M]))),M.toUpperCase()},exports.UpdateThemeStyle=function(M){var b="",z=document.styleSheets[0];Object.keys(M).forEach((z=>{b+=`${z}:${M[z]};`})),z.hasOwnProperty("cssRules")&&(z.cssRules[0].style.cssText=b)},exports.Upload=Or,exports.UploadIcon=zc,exports.Wait=yo,exports.ZoomIn=Oc,exports.ZoomOut=({className:M="",height:b=24,width:p=24})=>z.jsx("svg",{className:M,height:b,width:p,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[z.jsx("rect",{x:"0",y:"0",width:"24",height:"24"}),z.jsx("path",{d:"M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z",fill:"#000000",fillRule:"nonzero",opacity:"0.3"}),z.jsx("path",{d:"M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z",fill:"#000000",fillRule:"nonzero"}),z.jsx("rect",{fill:"#000000",opacity:"0.3",x:"9",y:"10.5",width:"4",height:"1",rx:"0.5"})]})}),exports.resources=Di,exports.toKebabCase=function(M,b=!1,z=!1){const p=["the","is","in","at","on","and","a","an","ve","bir","bu","için","gibi"],o={"ğ":"g","ü":"u","ş":"s","ı":"i","ö":"o","ç":"c","Ğ":"g","Ü":"u","Ş":"s","İ":"i","Ö":"o","Ç":"c"};return M=M.replace(/[ğüşiöçıĞÜŞİÖÇ]/g,(M=>o[M]||M)),b&&(M=M.split(" ").filter((M=>!p.includes(M.toLowerCase()))).join(" ")),z&&(M=M.replace(/\d+/g,"")),(M=(M=M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).toLowerCase().replace(/[^a-z0-9\s-]/g,"")).trim().replace(/\s+/g,"-")},exports.useAddExternalCSS=(M,b=!1)=>{p.useEffect((()=>{var p=!1,o=document.head,c=z();return document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(M)&&(p=!0)})),p||o.appendChild(c),()=>{b&&document.querySelectorAll("head > link").forEach((b=>{-1!==b.href.indexOf(M)&&document.head.removeChild(b)}))}}),[M]);const z=()=>{var b=document.createElement("link");return b.type="text/css",b.rel="stylesheet",b.href=M,b}},exports.useComponentSize=M=>{const[b,z]=p.useState({width:0,height:0});return p.useEffect((()=>{if(!M.current)return;const b=new ResizeObserver((M=>{M.forEach((({target:M})=>{z({width:M.clientWidth,height:M.clientHeight})}))}));return b.observe(M.current),()=>b.disconnect()}),[M]),[b]},exports.useConnectionStatus=M=>{p.useEffect((()=>{const b=b=>{M(b)};return window.addEventListener("online",b),()=>{window.removeEventListener("online",b)}}),[M])},exports.useConstructor=(M=()=>{})=>{const[b,z]=p.useState(!1);b||(M(),z(!0))},exports.useContextBridge=(...M)=>{if(0===M.length)return({children:M})=>z.jsx(z.Fragment,{children:M});const b=M.map(p.useContext),o=p.useRef(b);return o.current=b,p.useMemo((()=>({children:b})=>M.reduceRight(((M,b,p)=>z.jsx(b.Provider,{value:o.current[p],children:M})),b)),[])},exports.useCoreFetch=k,exports.useKeyboardShortcut=({key:M,onKeyPressed:b})=>{p.useEffect((()=>{function z(z){z.key===M&&(z.preventDefault(),b())}return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}}),[M,b])},exports.useMultiQuery=S,exports.useOnClickOutside=w,exports.useOnESCKeyDown=T,exports.useOnResize=M=>{p.useEffect((()=>{const b=b=>{M(b)};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}}),[M])},exports.useOrientation=()=>{const[M,b]=p.useState("portrait-primary"===window.screen.orientation.type?"portrait":"landscape");return p.useEffect((()=>{const M=M=>{const z=M.currentTarget.type;"landscape-primary"===z?b("landscape"):"portrait-primary"===z&&b("portrait")};return screen.orientation.addEventListener("change",M),()=>{screen.orientation.removeEventListener("change",M)}}),[]),M},exports.useReCaptcha=M=>{let b;const[z,o]=p.useState("");p.useEffect((()=>()=>{document.body.removeChild(b)}),[]);return{loadReCaptcha:M=>{b=document.createElement("script"),b.src="https://www.google.com/recaptcha/api.js?render="+M,b.onload=function(){o(M)},document.body.appendChild(b)},executeReCaptcha:()=>{if(""===z)return y.double("useReCaptcha","Not yet initialized! reCaptcha can't execute right now.","error"),void(M&&M(null));window.grecaptcha.ready((b=>{try{window.grecaptcha.execute(z,{action:"login"}).then((b=>{y.double("ReCaptcha V3","Token is valid"),console.log("token: "+b),M&&M(b)}))}catch(M){y.double("ReCaptcha V3","Token is invalid","error")}}))}}},exports.useSingleQuery=_;
|