(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.teleuiamount-input{min-height:24px;max-width:100%;padding-left:0}.teleuiamount-input.unacceptable input{color:#cc2929}.teleuiamount-input .amount-input-main-row{display:flex;align-items:baseline}.teleuiamount-input .amount-input-main-row input{font-family:Roboto;font-size:36px;font-weight:500;background:none;border:none;margin:0;padding:0;line-height:20px;max-width:100%!important}.teleuiamount-input .amount-input-main-row input[type=number]::-webkit-outer-spin-button,.teleuiamount-input .amount-input-main-row input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.teleuiamount-input .amount-input-main-row input[type=number],.teleuiamount-input .amount-input-main-row input[type=number]:hover,.teleuiamount-input .amount-input-main-row input[type=number]:focus{-webkit-appearance:none;appearance:none;-moz-appearance:textfield}.teleuiamount-input .amount-input-main-row input:focus{outline:none}.teleuiamount-input .amount-input-main-row input ::placeholder{color:#00f;font-size:26px}.teleuiamount-input .amount-input-main-row .amount-input-label{color:#7f8c97;margin-right:5px;display:inline-flex;align-items:flex-end;-webkit-user-select:none;user-select:none}.teleuiamount-input .amount-input-main-row .amount-input-units{display:flex;align-items:flex-end;color:#7f8c97;-webkit-user-select:none;user-select:none}.teleuiamount-input .amount-input-underline{height:1px;margin-top:8px;border-bottom:1px solid #7f8c97}.teleuicustom-button{width:fit-content;max-height:48px;border-radius:5px;cursor:pointer;padding:8px;white-space:break-spaces;font-style:normal;font-family:Roboto Bold;display:inline-flex;align-items:center;justify-content:center;border:1px solid #50a7ea;color:#fff;background:#50a7ea}.teleuicustom-button:hover{border-color:#fff!important}.teleuicustom-button:disabled{opacity:.3}.teleuicustom-button.outline{background:none;box-shadow:none;color:#50a7ea}.teleuicustom-checkbox{display:flex;text-align:center}.teleuicustom-checkbox .custom-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:none;line-height:20px}.teleuicustom-checkbox .custom-checkbox+label{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;line-height:20px}.teleuicustom-checkbox.no-text .custom-checkbox+label:before{margin-right:0}.teleuicustom-checkbox.rounded .custom-checkbox+label:before{border-radius:50%}.teleuicustom-checkbox .custom-checkbox+label:before{content:"";margin-right:12px;display:inline-block;flex-shrink:0;flex-grow:0;border:1px solid #7f8c97;border-radius:4px;background:none;font-size:20px;line-height:20px;cursor:pointer;width:20px;height:20px}.teleuicustom-checkbox .custom-checkbox:checked+label:before{width:20px;height:20px;line-height:20px;content:"✓ ";color:#fff;background-color:#50a7ea;border-color:transparent}.teleuidots-slider{display:flex;height:11px;padding-top:24px;padding-bottom:8px}.teleuidots-slider>div{flex-grow:1;display:flex;align-items:center}.teleuidots-slider>div:last-child{flex-grow:0}.teleuidots-slider .dots-slider-point{width:6px;height:6px;border-radius:50%;margin:0 4px;filter:grayscale(50%);background:#7f8c97}.teleuidots-slider .dots-slider-point.active-dot{filter:none;background:#50a7ea}.teleuidots-slider .dots-slider-point.current-dot{width:11px;height:11px}.teleuidots-slider .dots-slider-point.current-dot .dots-slider-caption{bottom:24px;left:0}.teleuidots-slider .dots-slider-point .dots-slider-caption{font-size:12px;line-height:14px;position:relative;bottom:26px;color:#7f8c97;-webkit-user-select:none;user-select:none;width:20px;text-align:left}.teleuidots-slider .dots-slider-line{height:2px;flex-grow:1;filter:grayscale(75%);background:#7f8c97}.teleuidots-slider .dots-slider-line.active-line{filter:none;background:#50a7ea}.teleuispinner-container{width:100%;height:100%;margin:0;display:flex;place-items:center;justify-content:center}.teleuispinner-container .spinner{height:50px;width:50px;border-left:3px solid #7f8c97;border-bottom:3px solid #7f8c97;border-right:3px solid #7f8c97;border-top:3px solid transparent;border-radius:50%;animation:spinner .8s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.teleuiprogress-bar{overflow:hidden;width:100%}.teleuiprogress-bar .bar-background{display:block;background:#b0b9c2;border-radius:7px}.teleuiprogress-bar .bar-background .completed-progress{display:block;border-radius:7px;background:#50a7ea;padding:2px;width:0}.teleuirange-slider input{height:5px;width:100%;padding:0;margin:0}.teleuirange-slider input[type=range]{-webkit-appearance:none}.teleuirange-slider input[type=range]:focus{outline:none}.teleuirange-slider input[type=range]::-ms-track{width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.teleuirange-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:3px solid #6ea0e6;background:#fff;height:24px;width:24px;border-radius:50%;cursor:pointer;margin-top:-6px}.teleuirange-slider input[type=range]::-moz-range-thumb{border:3px solid #6ea0e6;background:#fff;height:24px;width:24px;border-radius:50%;cursor:pointer}.teleuirange-slider input[type=range]::-webkit-slider-runnable-track{height:10px;cursor:pointer;background:#50a7ea;border-radius:4px}.teleuirange-slider input[type=range]:focus::-webkit-slider-runnable-track{background:#50a7ea}.teleuirange-slider input[type=range]::-moz-range-track{height:10px;cursor:pointer;background:#50a7ea;border-radius:4px}.teleuisimple-input{min-height:24px;max-width:100%;padding-left:12px}.teleuisimple-input.unacceptable input{color:#cc2929}.teleuisimple-input .simple-input-main-row{display:flex;align-items:baseline}.teleuisimple-input .simple-input-main-row input{font-family:Roboto;font-size:16px;font-weight:400;background:none;border:none;margin:0;padding:0;line-height:19px;max-width:100%!important}.teleuisimple-input .simple-input-main-row input[type=number]::-webkit-outer-spin-button,.teleuisimple-input .simple-input-main-row input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.teleuisimple-input .simple-input-main-row input[type=number],.teleuisimple-input .simple-input-main-row input[type=number]:hover,.teleuisimple-input .simple-input-main-row input[type=number]:focus{-webkit-appearance:none;appearance:none;-moz-appearance:textfield}.teleuisimple-input .simple-input-main-row input:focus{outline:none}.teleuisimple-input .simple-input-main-row .simple-input-label{color:#7f8c97;margin-right:5px;display:inline-flex;align-items:flex-end}.teleuisimple-input .simple-input-main-row .simple-input-units{display:flex;align-items:flex-end;color:#7f8c97}.teleuisimple-input .simple-input-underline{height:1px;margin-top:8px;border-bottom:1px solid #7f8c97}.teleuicustom-switch{display:flex;align-items:center;height:20px}.teleuicustom-switch .switch-background{width:30px;height:13px;border-radius:10px;cursor:pointer;display:flex;align-items:center}.teleuicustom-switch .switch-punkt,.teleuicustom-switch .switch-punkt-selected{width:20px;height:20px;position:relative;border:2px solid;border-radius:10px;box-sizing:border-box;background:#fff;-webkit-transition:left .4s;-moz-transition:left .4s;-o-transition:left .4s;-ms-transition:left .4s;transition:left .4s}.teleuicustom-switch .switch-punkt{left:-15%}.teleuicustom-switch .switch-punkt-selected{left:50%}.teleuitabs-container{padding-bottom:12px;width:100%}.teleuitabs-container .tabs-captions{display:flex;flex-direction:row;justify-content:space-around}.teleuitabs-container .tabs-captions .tab-caption{font-family:Roboto;font-size:16px;font-weight:500;margin:12px 0 24px;color:#b0b9c2;-webkit-user-select:none;user-select:none;cursor:pointer}.teleuitabs-container .tabs-captions .tab-caption.current-tab{color:#50a7ea;border-bottom:3px solid #50a7ea;padding-bottom:12px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(x,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(x=typeof globalThis<"u"?globalThis:x||self,T(x.TeleUI={},x.react))})(this,function(x,T){"use strict";var te={exports:{}},G={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ve;function Ue(){if(ve)return G;ve=1;var a=T,r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function d(u,h,j){var b,S={},k=null,A=null;j!==void 0&&(k=""+j),h.key!==void 0&&(k=""+h.key),h.ref!==void 0&&(A=h.ref);for(b in h)i.call(h,b)&&!v.hasOwnProperty(b)&&(S[b]=h[b]);if(u&&u.defaultProps)for(b in h=u.defaultProps,h)S[b]===void 0&&(S[b]=h[b]);return{$$typeof:r,type:u,key:k,ref:A,props:S,_owner:s.current}}return G.Fragment=o,G.jsx=d,G.jsxs=d,G}var z={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var pe;function Be(){return pe||(pe=1,process.env.NODE_ENV!=="production"&&function(){var a=T,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),D=Symbol.iterator,W="@@iterator";function I(e){if(e===null||typeof e!="object")return null;var t=D&&e[D]||e[W];return typeof t=="function"?t:null}var O=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),c=1;c=1&&_>=0&&l[C]!==P[_];)_--;for(;C>=1&&_>=0;C--,_--)if(l[C]!==P[_]){if(C!==1||_!==1)do if(C--,_--,_<0||l[C]!==P[_]){var F=` `+l[C].replace(" at new "," at ");return e.displayName&&F.includes("")&&(F=F.replace("",e.displayName)),typeof e=="function"&&Q.set(e,F),F}while(C>=1&&_>=0);break}}}finally{se=!1,oe.current=E,br(),Error.prepareStackTrace=m}var $=e?e.displayName||e.name:"",Ye=$?Z($):"";return typeof e=="function"&&Q.set(e,Ye),Ye}function Er(e,t,n){return xe(e,!1)}function Rr(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function q(e,t,n){if(e==null)return"";if(typeof e=="function")return xe(e,Rr(e));if(typeof e=="string")return Z(e);switch(e){case j:return Z("Suspense");case b:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return Er(e.render);case S:return q(e.type,t,n);case k:{var c=e,m=c._payload,E=c._init;try{return q(E(m),t,n)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,ke={},Oe=O.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}function wr(e,t,n,c,m){{var E=Function.call.bind(ee);for(var p in e)if(E(e,p)){var l=void 0;try{if(typeof e[p]!="function"){var P=Error((c||"React class")+": "+n+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}l=e[p](t,p,c,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){l=C}l&&!(l instanceof Error)&&(re(m),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",n,p,typeof l),re(null)),l instanceof Error&&!(l.message in ke)&&(ke[l.message]=!0,re(m),y("Failed %s type: %s",n,l.message),re(null))}}}var Sr=Array.isArray;function ue(e){return Sr(e)}function Cr(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function _r(e){try{return Pe(e),!1}catch{return!0}}function Pe(e){return""+e}function Ne(e){if(_r(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Cr(e)),Pe(e)}var K=O.ReactCurrentOwner,Tr={key:!0,ref:!0,__self:!0,__source:!0},Fe,Ae,ce;ce={};function jr(e){if(ee.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function xr(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function kr(e,t){if(typeof e.ref=="string"&&K.current&&t&&K.current.stateNode!==t){var n=M(K.current.type);ce[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(K.current.type),e.ref),ce[n]=!0)}}function Or(e,t){{var n=function(){Fe||(Fe=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Pr(e,t){{var n=function(){Ae||(Ae=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Nr=function(e,t,n,c,m,E,p){var l={$$typeof:r,type:e,key:t,ref:n,props:p,_owner:E};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Fr(e,t,n,c,m){{var E,p={},l=null,P=null;n!==void 0&&(Ne(n),l=""+n),xr(t)&&(Ne(t.key),l=""+t.key),jr(t)&&(P=t.ref,kr(t,m));for(E in t)ee.call(t,E)&&!Tr.hasOwnProperty(E)&&(p[E]=t[E]);if(e&&e.defaultProps){var C=e.defaultProps;for(E in C)p[E]===void 0&&(p[E]=C[E])}if(l||P){var _=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&Or(p,_),P&&Pr(p,_)}return Nr(e,l,P,m,c,K.current,p)}}var le=O.ReactCurrentOwner,Ie=O.ReactDebugCurrentFrame;function J(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(n)}else Ie.setExtraStackFrame(null)}var fe;fe=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function De(){{if(le.current){var e=M(le.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function Ar(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return` Check your code at `+t+":"+n+"."}return""}}var Me={};function Ir(e){{var t=De();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=` Check the top-level render call using <`+n+">.")}return t}}function Le(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Ir(t);if(Me[n])return;Me[n]=!0;var c="";e&&e._owner&&e._owner!==le.current&&(c=" It was passed a child from "+M(e._owner.type)+"."),J(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,c),J(null)}}function We(e,t){{if(typeof e!="object")return;if(ue(e))for(var n=0;n",l=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,l)}var _=Fr(e,t,n,m,E);if(_==null)return _;if(p){var F=t.children;if(F!==void 0)if(c)if(ue(F)){for(var $=0;$"u"||r==null)},ne=f.isExistAndNotNull=he,X=function(){var r=arguments.length>=1?arguments[0]:0,o=arguments.length==2?arguments[1]:1e8;if(r>o)throw new Error("First params describe a minimum and it must be smaller than "+o+". If you need a bigger number use second argument");return Math.floor(Math.random()*(o-r)+r)};f.getRandomNum=X;var ze=function(r,o){if(typeof r!="number")throw new Error("First argument must be a number");var i=typeof o=="number"?o:1;return Math.round(r*Math.pow(10,i))/Math.pow(10,i)};f.roundNumber=ze;var Xe=function(r,o,i){if(!Array.isArray(r))throw new Error("First argument must be an array");if(!o||typeof o!="function")throw new Error("Second argument must be a function");for(var s=0;s0&&(v=o.indexOf(i),v>-1&&(v+=i.length,d=o.indexOf(";",v),d===-1&&(d=o.length),s=unescape(o.substring(v,d)))),s};f.getCookie=rr;var tr=function(r,o,i){var s=he(i)?i:31536e3;document.cookie=r+"="+o+"; max-age="+s+"; path=/;"};f.setCookie=tr;var nr=function(r,o,i){var s={value:o,expiry:Date.now()+i};localStorage.setItem(r,JSON.stringify(s))};f.setLocalItem=nr;var ar=function(r){var o=localStorage.getItem(r);if(!o)return null;var i=JSON.parse(o),s=new Date;return s.getTime()>i.expiry?(localStorage.removeItem(r),null):i.value};f.getLocalItem=ar;const Ur="",or=({className:a,value:r,valueSetter:o,placeholder:i,label:s,inputStyle:v,units:d,max:u})=>{const[h,j]=T.useState(!1),b=T.useRef(null),S=typeof u<"u",k=O=>{S&&O>u?j(!0):j(!1)},A=()=>{if(!b.current)return;const O=b.current.value;let y;y=parseFloat(O),isNaN(y)?y=0:u&&y>u&&(y=u,j(!0)),o(y),b.current.value=String(y)},D=N({"teleuiamount-input":!0,[a]:a,unacceptable:h}),W=ne(r)?String(r).length*20+5+"px":"25px",I={...v,width:W};return h&&I.color&&delete I.color,T.useEffect(()=>{b.current&&(S&&k(r),b.current.value=String(r))},[r,u,b.current]),g.jsx("div",{className:D,children:g.jsxs("div",{className:"amount-input-main-row",children:[s&&g.jsx("div",{className:"amount-input-label",children:s}),g.jsx("input",{onChange:A,type:"number",placeholder:i,style:I,inputMode:"decimal",ref:b}),d&&g.jsx("div",{className:"amount-input-units",children:d})]})})},Br="",ir=({type:a,size:r,color:o,className:i,children:s,onClick:v,disabled:d})=>{const u=r?r+"px":"auto",h=s?void 0:u,j=k=>{d||v(k)},b={width:r?h:"",height:r?u:"",color:o&&(a==="outline"?o:""),background:o&&(a!=="outline"?o:""),borderColor:o},S=N({"teleuicustom-button":!0,[a]:a,[o]:o,[i]:i});return g.jsx("button",{className:S,onClick:j,style:b,disabled:d,children:s})},Jr="",sr=({text:a,className:r,checked:o,valueSetter:i,rounded:s})=>{const v=T.useRef(null),d=me(6),u=()=>{i(v.current.checked)},h=N({"teleuicustom-checkbox":!0,"no-text":!a,[r]:r,rounded:s});return g.jsxs("div",{className:h,children:[g.jsx("input",{type:"checkbox",className:"custom-checkbox",id:d,onChange:u,ref:v,checked:o,name:d}),g.jsx("label",{htmlFor:d,children:a})]})},$r="",ur=({values:a,valueSetter:r,className:o,lineColor:i})=>{const s=a.filter(R=>R.selected===!0).length,v=s-1,d=T.useRef(null),u=R=>{if(R===s)return;const w=a.map((Y,B)=>{if(B<=R)return{...Y,selected:!0};if(B>R)return{...Y,selected:!1}});r(w)},[h,j]=T.useState(0),[b,S]=T.useState(0),[k,A]=T.useState(0),D=R=>{if("TouchEvent"in window&&R.nativeEvent instanceof TouchEvent)return R.nativeEvent.touches[0].clientX;if(R.nativeEvent instanceof MouseEvent)return R.nativeEvent.clientX},W=R=>{S(void 0),j(D(R))},I=R=>S(D(R)),O=()=>{if(!h||!b)return;const w=~~((b-h)/k),Y=w>0?s+w>=a.length?a.length:w:s-w<=0?0:w;u(s+Y)},y=N({"teleuidots-slider":!0,[o]:o});let V={};return i&&(V.background=i),T.useEffect(()=>{d.current&&A(d.current.offsetWidth/a.length)},[d.current]),g.jsx("div",{className:y,onTouchStart:W,onMouseDown:W,onTouchMove:I,onMouseMove:I,onTouchEnd:O,onMouseUp:O,ref:d,children:a.map((R,w)=>{const Y=N({"dots-slider-point":!0,"active-dot":R.selected,"current-dot":w===s}),B=N({"dots-slider-line":!0,"active-line":w<=v}),ae=wu(w),children:[g.jsx("div",{className:Y,style:V,onClick:()=>u(w),children:g.jsx("div",{className:"dots-slider-caption",onClick:()=>u(w),children:R.caption})}),ae&&g.jsx("div",{className:B,style:V})]},`${R.value}-slider-caption`)})})},Gr="",cr=({size:a,className:r})=>g.jsx("div",{className:N({"teleuispinner-container":!0,[r]:r}),children:g.jsx("div",{className:"spinner",style:{height:a+"px",width:a+"px"}})}),zr="",lr=({size:a,color:r,backgroundColor:o,className:i,completed:s})=>{const v=N({"teleuiprogress-bar":!0,[i]:i}),d={background:o||""},u={padding:a?`${a}px`:"2px",background:r||"",width:"0"};return ne(s)&&(s>100?u.width="100%":s<0?u.width="0":u.width=s+"%"),g.jsx("div",{className:v,children:g.jsx("div",{className:"bar-background",style:d,children:g.jsx("span",{className:"completed-progress",style:u})})})},Xr="",fr=({className:a,step:r,lineColor:o,value:i,valueSetter:s,min:v,max:d})=>{const u=T.useRef(null),h=N({"teleuirange-slider":!0,[a]:a}),j=()=>{const b=u==null?void 0:u.current,S=parseFloat(b.value);s(S)};return g.jsx("div",{className:h,children:g.jsx("input",{type:"range",step:r,style:{backgroundColor:o},value:i,ref:u,onChange:j,min:v,max:d})})},Hr="",dr=({className:a,value:r,valueSetter:o,type:i,placeholder:s,label:v,inputStyle:d,max:u,borderColor:h})=>{const[j,b]=T.useState(!1),[S,k]=T.useState(!1),A=i==="number",D=V=>{const R=V.currentTarget.value;let w;if(A){if(w=parseInt(R,10),!w)return;u&&w>u&&(w=u,b(!0))}else w=String(V.currentTarget.value);o(w)},W=()=>k(!0),I=()=>k(!1),O=N({"teleuisimple-input":!0,[a]:a,unacceptable:j}),y={...d};return j&&y.color&&delete y.color,g.jsxs("div",{className:O,children:[g.jsxs("div",{className:"simple-input-main-row",children:[v&&g.jsx("div",{className:"simple-input-label",children:v}),g.jsx("input",{value:r??"",onChange:D,type:i,placeholder:s,style:y,inputMode:A?"decimal":void 0,onFocus:W,onBlur:I})]}),g.jsx("div",{className:"simple-input-underline",style:{borderColor:S&&h?h:void 0}})]})},Kr="",vr=({className:a,selected:r,switchHandler:o,color:i,defaultColor:s})=>{const v=N({"teleuicustom-switch":!0,[a]:a}),d=N({"switch-background":!0,"no-select":!0}),u=N({"switch-punkt-selected":r,"switch-punkt":!r}),h=r?i:s;return g.jsx("div",{className:v,onClick:o,children:g.jsx("div",{className:d,style:{background:h},children:g.jsx("div",{className:u,style:{borderColor:i},children:" "})})})},Zr="",pr=({tabs:a,defaultIndex:r})=>{const[o,i]=T.useState(a[r??0].caption),s=a.map(u=>g.jsx("div",{className:N({"current-tab":u.caption===o,"tab-caption":!0}),onClick:()=>i(u.caption),children:u.caption},`${u.caption}-caption-key`)),v=a.find(u=>u.caption===o),d=v?v.content:a[0].content;return g.jsxs("div",{className:"teleuitabs-container",children:[g.jsx("div",{className:"tabs-captions",children:s}),d]})};x.AmountInput=or,x.Button=ir,x.Checkbox=sr,x.DotSlider=ur,x.Loader=cr,x.ProgressBar=lr,x.Range=fr,x.SimpleInput=dr,x.Switch=vr,x.Tabs=pr,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});